orbitchat 3.5.6 → 3.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ChartRenderer-BVH86-DP.js +78 -0
- package/dist/assets/{MermaidRenderer-B3IpBAYI.js → MermaidRenderer-ClnVVojO.js} +6 -6
- package/dist/assets/{MusicRenderer--TIzwyJe.js → MusicRenderer-BvjZSM5d.js} +2 -2
- package/dist/assets/{SVGRenderer-B1jdoJ4P.js → SVGRenderer-bX9HqBpn.js} +1 -1
- package/dist/assets/{_basePickBy-DE8kKsHR.js → _basePickBy-_75ztjai.js} +1 -1
- package/dist/assets/{_baseUniq-Clue9vf0.js → _baseUniq-CMpN5YUJ.js} +1 -1
- package/dist/assets/{architectureDiagram-2XIMDMQ5-BGF7kK68.js → architectureDiagram-2XIMDMQ5-DxT3tJO-.js} +1 -1
- package/dist/assets/{blockDiagram-WCTKOSBZ-Byd2JD88.js → blockDiagram-WCTKOSBZ-B3Z-Rrop.js} +1 -1
- package/dist/assets/{c4Diagram-IC4MRINW-BdJh4j3j.js → c4Diagram-IC4MRINW-CCTnLJh-.js} +1 -1
- package/dist/assets/channel-Cc4Qfoqr.js +1 -0
- package/dist/assets/{chunk-4BX2VUAB-BibQqD9y.js → chunk-4BX2VUAB-C-5Dx24J.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-gjZyNH_o.js → chunk-55IACEB6-Debu16Nn.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-DX6LH-cn.js → chunk-FMBD7UC4-C876Kh2q.js} +1 -1
- package/dist/assets/{chunk-JSJVCQXG-CZVNc-8N.js → chunk-JSJVCQXG-zWgQfGRp.js} +1 -1
- package/dist/assets/{chunk-KX2RTZJC-C1_7Uv3y.js → chunk-KX2RTZJC-BXERK9GI.js} +1 -1
- package/dist/assets/{chunk-NQ4KR5QH-C4mTw-1X.js → chunk-NQ4KR5QH-Uh4R11ZT.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-p28FY_qp.js → chunk-QZHKN3VN-kdG1oKO0.js} +1 -1
- package/dist/assets/{chunk-WL4C6EOR-VlgOCclu.js → chunk-WL4C6EOR-DSWjkL7h.js} +1 -1
- package/dist/assets/classDiagram-VBA2DB6C-JmSb2obX.js +1 -0
- package/dist/assets/classDiagram-v2-RAHNMMFH-JmSb2obX.js +1 -0
- package/dist/assets/clone-iyxN0W0g.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-CZ3_3aGv.js → cose-bilkent-S5V4N54A-CgCF0kvR.js} +1 -1
- package/dist/assets/{dagre-KLK3FWXG-C1dn84St.js → dagre-KLK3FWXG-DDAxcdoe.js} +1 -1
- package/dist/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/assets/diagram-E7M64L7V-7mLVHalo.js +24 -0
- package/dist/assets/{diagram-IFDJBPK2-Da_Jhz3F.js → diagram-IFDJBPK2-Cg75QZ9N.js} +1 -1
- package/dist/assets/{diagram-P4PSJMXO-D1uOY55F.js → diagram-P4PSJMXO-D3P9hD4X.js} +1 -1
- package/dist/assets/{erDiagram-INFDFZHY-BJ_9cjPR.js → erDiagram-INFDFZHY-wiqHNei5.js} +1 -1
- package/dist/assets/{flowDiagram-PKNHOUZH-C7gcNiTk.js → flowDiagram-PKNHOUZH-9YbezLZT.js} +1 -1
- package/dist/assets/ganttDiagram-A5KZAMGK-CLfBT1pD.js +292 -0
- package/dist/assets/{gitGraphDiagram-K3NZZRJ6-C023eQi8.js → gitGraphDiagram-K3NZZRJ6-CA2Fu7FY.js} +1 -1
- package/dist/assets/{graph-RUzlorf7.js → graph-B7ionaRp.js} +1 -1
- package/dist/assets/index-8QFIymns.css +1 -0
- package/dist/assets/{index-Bw59sLto.js → index-BhIyX9RR.js} +61 -54
- package/dist/assets/{index-BQilf7Vz.js → index-CNaWCZKy.js} +1 -1
- package/dist/assets/{infoDiagram-LFFYTUFH-fpMB_9Of.js → infoDiagram-LFFYTUFH-BtxtzUtv.js} +1 -1
- package/dist/assets/{ishikawaDiagram-PHBUUO56-774l_BQB.js → ishikawaDiagram-PHBUUO56-BUw3-0_2.js} +1 -1
- package/dist/assets/{journeyDiagram-4ABVD52K-BDRZkTWt.js → journeyDiagram-4ABVD52K-CpGLjEju.js} +1 -1
- package/dist/assets/{kanban-definition-K7BYSVSG-08jdhaPr.js → kanban-definition-K7BYSVSG-DbrQCUxI.js} +1 -1
- package/dist/assets/{layout-Bi6OqCvS.js → layout-q9p-XdiM.js} +1 -1
- package/dist/assets/linear-CKzVTQ0r.js +1 -0
- package/dist/assets/{mindmap-definition-YRQLILUH-BMltpbO_.js → mindmap-definition-YRQLILUH-CabnnlAP.js} +1 -1
- package/dist/assets/{pieDiagram-SKSYHLDU-BqWjMa3F.js → pieDiagram-SKSYHLDU-BFf5TCyL.js} +1 -1
- package/dist/assets/{quadrantDiagram-337W2JSQ-BWS6P7V9.js → quadrantDiagram-337W2JSQ-B8gSZ4q6.js} +4 -4
- package/dist/assets/{requirementDiagram-Z7DCOOCP-DundWNeg.js → requirementDiagram-Z7DCOOCP-C3kcRv-9.js} +1 -1
- package/dist/assets/{sankeyDiagram-WA2Y5GQK-Bfy6vaBy.js → sankeyDiagram-WA2Y5GQK-W3EsMP59.js} +1 -1
- package/dist/assets/{sequenceDiagram-2WXFIKYE-DzPaOnGU.js → sequenceDiagram-2WXFIKYE-BgOeP_Tg.js} +1 -1
- package/dist/assets/{stateDiagram-RAJIS63D-Dhx9f_zH.js → stateDiagram-RAJIS63D-qfGEm9w6.js} +1 -1
- package/dist/assets/stateDiagram-v2-FVOUBMTO-B8_rQmWP.js +1 -0
- package/dist/assets/time-h5EapSZu.js +1 -0
- package/dist/assets/{timeline-definition-YZTLITO2-DKbWbxeI.js → timeline-definition-YZTLITO2-BMAfD2ee.js} +1 -1
- package/dist/assets/{treemap-KZPCXAKY-BB_bxQV0.js → treemap-KZPCXAKY-Cs_5k_aH.js} +1 -1
- package/dist/assets/{vennDiagram-LZ73GAT5-DLVWYof0.js → vennDiagram-LZ73GAT5-1ObRafJZ.js} +1 -1
- package/dist/assets/{xychartDiagram-JWTSCODW-BlbcnWY9.js → xychartDiagram-JWTSCODW-DtIG7mz4.js} +2 -2
- package/dist/index.html +2 -2
- package/package.json +2 -2
- package/dist/assets/ChartRenderer-CRkKwoFL.js +0 -78
- package/dist/assets/channel-ByGCPEwQ.js +0 -1
- package/dist/assets/classDiagram-VBA2DB6C-CkkfdRp_.js +0 -1
- package/dist/assets/classDiagram-v2-RAHNMMFH-CkkfdRp_.js +0 -1
- package/dist/assets/clone-B26JPn0A.js +0 -1
- package/dist/assets/diagram-E7M64L7V-CqZmtrXE.js +0 -24
- package/dist/assets/ganttDiagram-A5KZAMGK-BTMVujZd.js +0 -292
- package/dist/assets/index-CRisEKFT.css +0 -1
- package/dist/assets/linear-BmIPqizB.js +0 -1
- package/dist/assets/stateDiagram-v2-FVOUBMTO-DkeilTKm.js +0 -1
- package/dist/assets/time-DEO-mtw_.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a9 as o,aa as n}from"./MermaidRenderer-B3IpBAYI.js";const t=(a,r)=>o.lang.round(n.parse(a)[r]);export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,c as s,a as e,C as t}from"./chunk-WL4C6EOR-VlgOCclu.js";import{_ as i}from"./MermaidRenderer-B3IpBAYI.js";import"./chunk-FMBD7UC4-DX6LH-cn.js";import"./chunk-JSJVCQXG-CZVNc-8N.js";import"./chunk-55IACEB6-gjZyNH_o.js";import"./chunk-KX2RTZJC-C1_7Uv3y.js";import"./purify.es-Bc-0F0ao.js";import"./index-Bw59sLto.js";import"./step-EjIQ8UIn.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,c as s,a as e,C as t}from"./chunk-WL4C6EOR-VlgOCclu.js";import{_ as i}from"./MermaidRenderer-B3IpBAYI.js";import"./chunk-FMBD7UC4-DX6LH-cn.js";import"./chunk-JSJVCQXG-CZVNc-8N.js";import"./chunk-55IACEB6-gjZyNH_o.js";import"./chunk-KX2RTZJC-C1_7Uv3y.js";import"./purify.es-Bc-0F0ao.js";import"./index-Bw59sLto.js";import"./step-EjIQ8UIn.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as r}from"./_baseUniq-Clue9vf0.js";var e=4;function a(o){return r(o,e)}export{a as c};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{_ as F,D as me,F as ge,H as we,e as Ce,l as oe,aF as I,d as J,b as Me,a as Te,p as Le,q as $e,g as ke,s as Ae,E as Fe,aG as Ne,y as ze}from"./MermaidRenderer-B3IpBAYI.js";import{s as Pe}from"./chunk-KX2RTZJC-C1_7Uv3y.js";import{p as _e}from"./chunk-4BX2VUAB-BibQqD9y.js";import{p as De}from"./treemap-KZPCXAKY-BB_bxQV0.js";import{o as ie}from"./ordinal-DILIJJjt.js";import"./index-Bw59sLto.js";import"./purify.es-Bc-0F0ao.js";import"./step-EjIQ8UIn.js";import"./_baseUniq-Clue9vf0.js";import"./_basePickBy-DE8kKsHR.js";import"./clone-B26JPn0A.js";import"./init-Dmth1JHB.js";function Ve(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Q(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function Ee(e){return e=Q(Math.abs(e)),e?e[1]:NaN}function Be(e,t){return function(r,a){for(var o=r.length,i=[],c=0,h=e[0],S=0;o>0&&h>0&&(S+h+1>a&&(h=Math.max(1,a-S)),i.push(r.substring(o-=h,o+h)),!((S+=h+1)>a));)h=e[c=(c+1)%e.length];return i.reverse().join(t)}}function Re(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var We=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function se(e){if(!(t=We.exec(e)))throw new Error("invalid format: "+e);var t;return new le({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}se.prototype=le.prototype;function le(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}le.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ie(e){e:for(var t=e.length,r=1,a=-1,o;r<t;++r)switch(e[r]){case".":a=o=r;break;case"0":a===0&&(a=r),o=r;break;default:if(!+e[r])break e;a>0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(o+1):e}var ee;function He(e,t){var r=Q(e,t);if(!r)return ee=void 0,e.toPrecision(t);var a=r[0],o=r[1],i=o-(ee=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=a.length;return i===c?a:i>c?a+new Array(i-c+1).join("0"):i>0?a.slice(0,i)+"."+a.slice(i):"0."+new Array(1-i).join("0")+Q(e,Math.max(0,t+i-1))[0]}function de(e,t){var r=Q(e,t);if(!r)return e+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}const he={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ve,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>de(e*100,t),r:de,s:He,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ue(e){return e}var fe=Array.prototype.map,pe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function je(e){var t=e.grouping===void 0||e.thousands===void 0?ue:Be(fe.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?ue:Re(fe.call(e.numerals,String)),c=e.percent===void 0?"%":e.percent+"",h=e.minus===void 0?"−":e.minus+"",S=e.nan===void 0?"NaN":e.nan+"";function d(f,s){f=se(f);var b=f.fill,v=f.align,y=f.sign,u=f.symbol,x=f.zero,N=f.width,A=f.comma,L=f.precision,V=f.trim,C=f.type;C==="n"?(A=!0,C="g"):he[C]||(L===void 0&&(L=12),V=!0,C="g"),(x||b==="0"&&v==="=")&&(x=!0,b="0",v="=");var Z=(s&&s.prefix!==void 0?s.prefix:"")+(u==="$"?r:u==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),ne=(u==="$"?a:/[%p]/.test(C)?c:"")+(s&&s.suffix!==void 0?s.suffix:""),E=he[C],ae=/[defgprs%]/.test(C);L=L===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,L)):Math.max(0,Math.min(20,L));function B(m){var _=Z,n=ne,l,g,M;if(C==="c")n=E(m)+n,m="";else{m=+m;var $=m<0||1/m<0;if(m=isNaN(m)?S:E(Math.abs(m),L),V&&(m=Ie(m)),$&&+m==0&&y!=="+"&&($=!1),_=($?y==="("?y:h:y==="-"||y==="("?"":y)+_,n=(C==="s"&&!isNaN(m)&&ee!==void 0?pe[8+ee/3]:"")+n+($&&y==="("?")":""),ae){for(l=-1,g=m.length;++l<g;)if(M=m.charCodeAt(l),48>M||M>57){n=(M===46?o+m.slice(l+1):m.slice(l))+n,m=m.slice(0,l);break}}}A&&!x&&(m=t(m,1/0));var k=_.length+m.length+n.length,T=k<N?new Array(N-k+1).join(b):"";switch(A&&x&&(m=t(T+m,T.length?N-n.length:1/0),T=""),v){case"<":m=_+m+n+T;break;case"=":m=_+T+m+n;break;case"^":m=T.slice(0,k=T.length>>1)+_+m+n+T.slice(k);break;default:m=T+_+m+n;break}return i(m)}return B.toString=function(){return f+""},B}function p(f,s){var b=Math.max(-8,Math.min(8,Math.floor(Ee(s)/3)))*3,v=Math.pow(10,-b),y=d((f=se(f),f.type="f",f),{suffix:pe[8+b/3]});return function(u){return y(v*u)}}return{format:d,formatPrefix:p}}var K,j;Ge({thousands:",",grouping:[3],currency:["$",""]});function Ge(e){return K=je(e),j=K.format,K.formatPrefix,K}function Oe(e){var t=0,r=e.children,a=r&&r.length;if(!a)t=1;else for(;--a>=0;)t+=r[a].value;e.value=t}function Xe(){return this.eachAfter(Oe)}function qe(e,t){let r=-1;for(const a of this)e.call(t,a,++r,this);return this}function Ye(e,t){for(var r=this,a=[r],o,i,c=-1;r=a.pop();)if(e.call(t,r,++c,this),o=r.children)for(i=o.length-1;i>=0;--i)a.push(o[i]);return this}function Ue(e,t){for(var r=this,a=[r],o=[],i,c,h,S=-1;r=a.pop();)if(o.push(r),i=r.children)for(c=0,h=i.length;c<h;++c)a.push(i[c]);for(;r=o.pop();)e.call(t,r,++S,this);return this}function Ze(e,t){let r=-1;for(const a of this)if(e.call(t,a,++r,this))return a}function Je(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,a=t.children,o=a&&a.length;--o>=0;)r+=a[o].value;t.value=r})}function Ke(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Qe(e){for(var t=this,r=et(t,e),a=[t];t!==r;)t=t.parent,a.push(t);for(var o=a.length;e!==r;)a.splice(o,0,e),e=e.parent;return a}function et(e,t){if(e===t)return e;var r=e.ancestors(),a=t.ancestors(),o=null;for(e=r.pop(),t=a.pop();e===t;)o=e,e=r.pop(),t=a.pop();return o}function tt(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function nt(){return Array.from(this)}function at(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function rt(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*it(){var e=this,t,r=[e],a,o,i;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,a=e.children)for(o=0,i=a.length;o<i;++o)r.push(a[o]);while(r.length)}function ce(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=lt)):t===void 0&&(t=st);for(var r=new te(e),a,o=[r],i,c,h,S;a=o.pop();)if((c=t(a.data))&&(S=(c=Array.from(c)).length))for(a.children=c,h=S-1;h>=0;--h)o.push(i=c[h]=new te(c[h])),i.parent=a,i.depth=a.depth+1;return r.eachBefore(dt)}function ot(){return ce(this).eachBefore(ct)}function st(e){return e.children}function lt(e){return Array.isArray(e)?e[1]:null}function ct(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function dt(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function te(e){this.data=e,this.depth=this.height=0,this.parent=null}te.prototype=ce.prototype={constructor:te,count:Xe,each:qe,eachAfter:Ue,eachBefore:Ye,find:Ze,sum:Je,sort:Ke,path:Qe,ancestors:tt,descendants:nt,leaves:at,links:rt,copy:ot,[Symbol.iterator]:it};function ht(e){if(typeof e!="function")throw new Error;return e}function q(){return 0}function Y(e){return function(){return e}}function ut(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ft(e,t,r,a,o){for(var i=e.children,c,h=-1,S=i.length,d=e.value&&(a-t)/e.value;++h<S;)c=i[h],c.y0=r,c.y1=o,c.x0=t,c.x1=t+=c.value*d}function pt(e,t,r,a,o){for(var i=e.children,c,h=-1,S=i.length,d=e.value&&(o-r)/e.value;++h<S;)c=i[h],c.x0=t,c.x1=a,c.y0=r,c.y1=r+=c.value*d}var mt=(1+Math.sqrt(5))/2;function gt(e,t,r,a,o,i){for(var c=[],h=t.children,S,d,p=0,f=0,s=h.length,b,v,y=t.value,u,x,N,A,L,V,C;p<s;){b=o-r,v=i-a;do u=h[f++].value;while(!u&&f<s);for(x=N=u,V=Math.max(v/b,b/v)/(y*e),C=u*u*V,L=Math.max(N/C,C/x);f<s;++f){if(u+=d=h[f].value,d<x&&(x=d),d>N&&(N=d),C=u*u*V,A=Math.max(N/C,C/x),A>L){u-=d;break}L=A}c.push(S={value:u,dice:b<v,children:h.slice(p,f)}),S.dice?ft(S,r,a,o,y?a+=v*u/y:i):pt(S,r,a,y?r+=b*u/y:o,i),y-=u,p=f}return c}const yt=function e(t){function r(a,o,i,c,h){gt(t,a,o,i,c,h)}return r.ratio=function(a){return e((a=+a)>1?a:1)},r}(mt);function St(){var e=yt,t=!1,r=1,a=1,o=[0],i=q,c=q,h=q,S=q,d=q;function p(s){return s.x0=s.y0=0,s.x1=r,s.y1=a,s.eachBefore(f),o=[0],t&&s.eachBefore(ut),s}function f(s){var b=o[s.depth],v=s.x0+b,y=s.y0+b,u=s.x1-b,x=s.y1-b;u<v&&(v=u=(v+u)/2),x<y&&(y=x=(y+x)/2),s.x0=v,s.y0=y,s.x1=u,s.y1=x,s.children&&(b=o[s.depth+1]=i(s)/2,v+=d(s)-b,y+=c(s)-b,u-=h(s)-b,x-=S(s)-b,u<v&&(v=u=(v+u)/2),x<y&&(y=x=(y+x)/2),e(s,v,y,u,x))}return p.round=function(s){return arguments.length?(t=!!s,p):t},p.size=function(s){return arguments.length?(r=+s[0],a=+s[1],p):[r,a]},p.tile=function(s){return arguments.length?(e=ht(s),p):e},p.padding=function(s){return arguments.length?p.paddingInner(s).paddingOuter(s):p.paddingInner()},p.paddingInner=function(s){return arguments.length?(i=typeof s=="function"?s:Y(+s),p):i},p.paddingOuter=function(s){return arguments.length?p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):p.paddingTop()},p.paddingTop=function(s){return arguments.length?(c=typeof s=="function"?s:Y(+s),p):c},p.paddingRight=function(s){return arguments.length?(h=typeof s=="function"?s:Y(+s),p):h},p.paddingBottom=function(s){return arguments.length?(S=typeof s=="function"?s:Y(+s),p):S},p.paddingLeft=function(s){return arguments.length?(d=typeof s=="function"?s:Y(+s),p):d},p}var G,ye=(G=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Me,this.getAccTitle=Te,this.setDiagramTitle=Le,this.getDiagramTitle=$e,this.getAccDescription=ke,this.setAccDescription=Ae}getNodes(){return this.nodes}getConfig(){const t=Fe,r=ge();return me({...t.treemap,...r.treemap??{}})}addNode(t,r){this.nodes.push(t),this.levels.set(t,r),r===0&&(this.outerNodes.push(t),this.root??(this.root=t))}getRoot(){return{name:"",children:this.outerNodes}}addClass(t,r){const a=this.classes.get(t)??{id:t,styles:[],textStyles:[]},o=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");o&&o.forEach(i=>{Ne(i)&&(a!=null&&a.textStyles?a.textStyles.push(i):a.textStyles=[i]),a!=null&&a.styles?a.styles.push(i):a.styles=[i]}),this.classes.set(t,a)}getClasses(){return this.classes}getStylesForClass(t){var r;return((r=this.classes.get(t))==null?void 0:r.styles)??[]}clear(){ze(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},F(G,"TreeMapDB"),G);function Se(e){if(!e.length)return[];const t=[],r=[];return e.forEach(a=>{const o={name:a.name,children:a.type==="Leaf"?void 0:[]};for(o.classSelector=a==null?void 0:a.classSelector,a!=null&&a.cssCompiledStyles&&(o.cssCompiledStyles=a.cssCompiledStyles),a.type==="Leaf"&&a.value!==void 0&&(o.value=a.value);r.length>0&&r[r.length-1].level>=a.level;)r.pop();if(r.length===0)t.push(o);else{const i=r[r.length-1].node;i.children?i.children.push(o):i.children=[o]}a.type!=="Leaf"&&r.push({node:o,level:a.level})}),t}F(Se,"buildHierarchy");var xt=F((e,t)=>{_e(e,t);const r=[];for(const i of e.TreemapRows??[])i.$type==="ClassDefStatement"&&t.addClass(i.className??"",i.styleText??"");for(const i of e.TreemapRows??[]){const c=i.item;if(!c)continue;const h=i.indent?parseInt(i.indent):0,S=bt(c),d=c.classSelector?t.getStylesForClass(c.classSelector):[],p=d.length>0?d:void 0,f={level:h,name:S,type:c.$type,value:c.value,classSelector:c.classSelector,cssCompiledStyles:p};r.push(f)}const a=Se(r),o=F((i,c)=>{for(const h of i)t.addNode(h,c),h.children&&h.children.length>0&&o(h.children,c+1)},"addNodesRecursively");o(a,0)},"populate"),bt=F(e=>e.name?String(e.name):"","getItemName"),xe={parser:{yy:void 0},parse:F(async e=>{var t;try{const a=await De("treemap",e);oe.debug("Treemap AST:",a);const o=(t=xe.parser)==null?void 0:t.yy;if(!(o instanceof ye))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");xt(a,o)}catch(r){throw oe.error("Error parsing treemap:",r),r}},"parse")},vt=10,H=10,U=25,wt=F((e,t,r,a)=>{const o=a.db,i=o.getConfig(),c=i.padding??vt,h=o.getDiagramTitle(),S=o.getRoot(),{themeVariables:d}=ge();if(!S)return;const p=h?30:0,f=we(t),s=i.nodeWidth?i.nodeWidth*H:960,b=i.nodeHeight?i.nodeHeight*H:500,v=s,y=b+p;f.attr("viewBox",`0 0 ${v} ${y}`),Ce(f,y,v,i.useMaxWidth);let u;try{const n=i.valueFormat||",";if(n==="$0,0")u=F(l=>"$"+j(",")(l),"valueFormat");else if(n.startsWith("$")&&n.includes(",")){const l=/\.\d+/.exec(n),g=l?l[0]:"";u=F(M=>"$"+j(","+g)(M),"valueFormat")}else if(n.startsWith("$")){const l=n.substring(1);u=F(g=>"$"+j(l||"")(g),"valueFormat")}else u=j(n)}catch(n){oe.error("Error creating format function:",n),u=j(",")}const x=ie().range(["transparent",d.cScale0,d.cScale1,d.cScale2,d.cScale3,d.cScale4,d.cScale5,d.cScale6,d.cScale7,d.cScale8,d.cScale9,d.cScale10,d.cScale11]),N=ie().range(["transparent",d.cScalePeer0,d.cScalePeer1,d.cScalePeer2,d.cScalePeer3,d.cScalePeer4,d.cScalePeer5,d.cScalePeer6,d.cScalePeer7,d.cScalePeer8,d.cScalePeer9,d.cScalePeer10,d.cScalePeer11]),A=ie().range([d.cScaleLabel0,d.cScaleLabel1,d.cScaleLabel2,d.cScaleLabel3,d.cScaleLabel4,d.cScaleLabel5,d.cScaleLabel6,d.cScaleLabel7,d.cScaleLabel8,d.cScaleLabel9,d.cScaleLabel10,d.cScaleLabel11]);h&&f.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const L=f.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),V=ce(S).sum(n=>n.value??0).sort((n,l)=>(l.value??0)-(n.value??0)),Z=St().size([s,b]).paddingTop(n=>n.children&&n.children.length>0?U+H:0).paddingInner(c).paddingLeft(n=>n.children&&n.children.length>0?H:0).paddingRight(n=>n.children&&n.children.length>0?H:0).paddingBottom(n=>n.children&&n.children.length>0?H:0).round(!0)(V),ne=Z.descendants().filter(n=>n.children&&n.children.length>0),E=L.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",n=>`translate(${n.x0},${n.y0})`);E.append("rect").attr("width",n=>n.x1-n.x0).attr("height",U).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",n=>n.depth===0?"display: none;":""),E.append("clipPath").attr("id",(n,l)=>`clip-section-${t}-${l}`).append("rect").attr("width",n=>Math.max(0,n.x1-n.x0-12)).attr("height",U),E.append("rect").attr("width",n=>n.x1-n.x0).attr("height",n=>n.y1-n.y0).attr("class",(n,l)=>`treemapSection section${l}`).attr("fill",n=>x(n.data.name)).attr("fill-opacity",.6).attr("stroke",n=>N(n.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",n=>{if(n.depth===0)return"display: none;";const l=I({cssCompiledStyles:n.data.cssCompiledStyles});return l.nodeStyles+";"+l.borderStyles.join(";")}),E.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",U/2).attr("dominant-baseline","middle").text(n=>n.depth===0?"":n.data.name).attr("font-weight","bold").attr("style",n=>{if(n.depth===0)return"display: none;";const l="dominant-baseline: middle; font-size: 12px; fill:"+A(n.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=I({cssCompiledStyles:n.data.cssCompiledStyles});return l+g.labelStyles.replace("color:","fill:")}).each(function(n){if(n.depth===0)return;const l=J(this),g=n.data.name;l.text(g);const M=n.x1-n.x0,$=6;let k;i.showValues!==!1&&n.value?k=M-10-30-10-$:k=M-$-6;const D=Math.max(15,k),w=l.node();if(w.getComputedTextLength()>D){const z="...";let P=g;for(;P.length>0;){if(P=g.substring(0,P.length-1),P.length===0){l.text(z),w.getComputedTextLength()>D&&l.text("");break}if(l.text(P+z),w.getComputedTextLength()<=D)break}}}),i.showValues!==!1&&E.append("text").attr("class","treemapSectionValue").attr("x",n=>n.x1-n.x0-10).attr("y",U/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(n=>n.value?u(n.value):"").attr("font-style","italic").attr("style",n=>{if(n.depth===0)return"display: none;";const l="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+A(n.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=I({cssCompiledStyles:n.data.cssCompiledStyles});return l+g.labelStyles.replace("color:","fill:")});const ae=Z.leaves(),B=L.selectAll(".treemapLeafGroup").data(ae).enter().append("g").attr("class",(n,l)=>`treemapNode treemapLeafGroup leaf${l}${n.data.classSelector?` ${n.data.classSelector}`:""}x`).attr("transform",n=>`translate(${n.x0},${n.y0})`);B.append("rect").attr("width",n=>n.x1-n.x0).attr("height",n=>n.y1-n.y0).attr("class","treemapLeaf").attr("fill",n=>n.parent?x(n.parent.data.name):x(n.data.name)).attr("style",n=>I({cssCompiledStyles:n.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",n=>n.parent?x(n.parent.data.name):x(n.data.name)).attr("stroke-width",3),B.append("clipPath").attr("id",(n,l)=>`clip-${t}-${l}`).append("rect").attr("width",n=>Math.max(0,n.x1-n.x0-4)).attr("height",n=>Math.max(0,n.y1-n.y0-4)),B.append("text").attr("class","treemapLabel").attr("x",n=>(n.x1-n.x0)/2).attr("y",n=>(n.y1-n.y0)/2).attr("style",n=>{const l="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+A(n.data.name)+";",g=I({cssCompiledStyles:n.data.cssCompiledStyles});return l+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(n,l)=>`url(#clip-${t}-${l})`).text(n=>n.data.name).each(function(n){const l=J(this),g=n.x1-n.x0,M=n.y1-n.y0,$=l.node(),k=4,T=g-2*k,D=M-2*k;if(T<10||D<10){l.style("display","none");return}let w=parseInt(l.style("font-size"),10);const R=8,z=28,P=.6,W=6,O=2;for(;$.getComputedTextLength()>T&&w>R;)w--,l.style("font-size",`${w}px`);let X=Math.max(W,Math.min(z,Math.round(w*P))),re=w+O+X;for(;re>D&&w>R&&(w--,X=Math.max(W,Math.min(z,Math.round(w*P))),!(X<W&&w===R));)l.style("font-size",`${w}px`),re=w+O+X;l.style("font-size",`${w}px`),($.getComputedTextLength()>T||w<R||D<w)&&l.style("display","none")}),i.showValues!==!1&&B.append("text").attr("class","treemapValue").attr("x",l=>(l.x1-l.x0)/2).attr("y",function(l){return(l.y1-l.y0)/2}).attr("style",l=>{const g="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+A(l.data.name)+";",M=I({cssCompiledStyles:l.data.cssCompiledStyles});return g+M.labelStyles.replace("color:","fill:")}).attr("clip-path",(l,g)=>`url(#clip-${t}-${g})`).text(l=>l.value?u(l.value):"").each(function(l){const g=J(this),M=this.parentNode;if(!M){g.style("display","none");return}const $=J(M).select(".treemapLabel");if($.empty()||$.style("display")==="none"){g.style("display","none");return}const k=parseFloat($.style("font-size")),T=28,D=.6,w=6,R=2,z=Math.max(w,Math.min(T,Math.round(k*D)));g.style("font-size",`${z}px`);const W=(l.y1-l.y0)/2+k/2+R;g.attr("y",W);const O=l.x1-l.x0,be=l.y1-l.y0-4,ve=O-2*4;g.node().getComputedTextLength()>ve||W+z>be||z<w?g.style("display","none"):g.style("display",null)});const _=i.diagramPadding??8;Pe(f,_,"flowchart",(i==null?void 0:i.useMaxWidth)||!1)},"draw"),Ct=F(function(e,t){return t.db.getClasses()},"getClasses"),Mt={draw:wt,getClasses:Ct},Tt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},Lt=F(({treemap:e}={})=>{const t=me(Tt,e);return`
|
|
2
|
-
.treemapNode.section {
|
|
3
|
-
stroke: ${t.sectionStrokeColor};
|
|
4
|
-
stroke-width: ${t.sectionStrokeWidth};
|
|
5
|
-
fill: ${t.sectionFillColor};
|
|
6
|
-
}
|
|
7
|
-
.treemapNode.leaf {
|
|
8
|
-
stroke: ${t.leafStrokeColor};
|
|
9
|
-
stroke-width: ${t.leafStrokeWidth};
|
|
10
|
-
fill: ${t.leafFillColor};
|
|
11
|
-
}
|
|
12
|
-
.treemapLabel {
|
|
13
|
-
fill: ${t.labelColor};
|
|
14
|
-
font-size: ${t.labelFontSize};
|
|
15
|
-
}
|
|
16
|
-
.treemapValue {
|
|
17
|
-
fill: ${t.valueColor};
|
|
18
|
-
font-size: ${t.valueFontSize};
|
|
19
|
-
}
|
|
20
|
-
.treemapTitle {
|
|
21
|
-
fill: ${t.titleColor};
|
|
22
|
-
font-size: ${t.titleFontSize};
|
|
23
|
-
}
|
|
24
|
-
`},"getStyles"),$t=Lt,Wt={parser:xe,get db(){return new ye},renderer:Mt,styles:$t};export{Wt as diagram};
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import{g as Yn,s as Fn,q as Un,p as En,a as Ln,b as In,_ as d,c as wt,d as Pt,e as An,aE as rt,l as gt,k as Wn,j as On,y as $n,u as Hn}from"./MermaidRenderer-B3IpBAYI.js";import{c as jt,g as Qt}from"./index-Bw59sLto.js";import{t as Nn,m as Pn,a as Vn}from"./time-DEO-mtw_.js";import{l as zn}from"./linear-BmIPqizB.js";import{R as Xe,r as Rn,o as Ge,q as je,C as Qe,u as Kt,v as Zn}from"./step-EjIQ8UIn.js";import"./purify.es-Bc-0F0ao.js";import"./init-Dmth1JHB.js";function Bn(t){return t}var zt=1,te=2,le=3,Vt=4,Ie=1e-6;function qn(t){return"translate("+t+",0)"}function Xn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Je(t,e){var n=[],r=null,s=null,o=6,c=6,y=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===zt||t===Vt?-1:1,C=t===Vt||t===te?"x":"y",H=t===zt||t===le?qn:Xn;function U(S){var G=r??(e.ticks?e.ticks.apply(e,n):e.domain()),W=s??(e.tickFormat?e.tickFormat.apply(e,n):Bn),_=Math.max(o,0)+y,E=e.range(),V=+E[0]+Y,I=+E[E.length-1]+Y,Z=(e.bandwidth?jn:Gn)(e.copy(),Y),j=S.selection?S.selection():S,F=j.selectAll(".domain").data([null]),T=j.selectAll(".tick").data(G,e).order(),m=T.exit(),h=T.enter().append("g").attr("class","tick"),b=T.select("line"),x=T.select("text");F=F.merge(F.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(h),b=b.merge(h.append("line").attr("stroke","currentColor").attr(C+"2",L*o)),x=x.merge(h.append("text").attr("fill","currentColor").attr(C,L*_).attr("dy",t===zt?"0em":t===le?"0.71em":"0.32em")),S!==j&&(F=F.transition(S),T=T.transition(S),b=b.transition(S),x=x.transition(S),m=m.transition(S).attr("opacity",Ie).attr("transform",function(k){return isFinite(k=Z(k))?H(k+Y):this.getAttribute("transform")}),h.attr("opacity",Ie).attr("transform",function(k){var g=this.parentNode.__axis;return H((g&&isFinite(g=g(k))?g:Z(k))+Y)})),m.remove(),F.attr("d",t===Vt||t===te?c?"M"+L*c+","+V+"H"+Y+"V"+I+"H"+L*c:"M"+Y+","+V+"V"+I:c?"M"+V+","+L*c+"V"+Y+"H"+I+"V"+L*c:"M"+V+","+Y+"H"+I),T.attr("opacity",1).attr("transform",function(k){return H(Z(k)+Y)}),b.attr(C+"2",L*o),x.attr(C,L*_).text(W),j.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Vt?"end":"middle"),j.each(function(){this.__axis=Z})}return U.scale=function(S){return arguments.length?(e=S,U):e},U.ticks=function(){return n=Array.from(arguments),U},U.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),U):n.slice()},U.tickValues=function(S){return arguments.length?(r=S==null?null:Array.from(S),U):r&&r.slice()},U.tickFormat=function(S){return arguments.length?(s=S,U):s},U.tickSize=function(S){return arguments.length?(o=c=+S,U):o},U.tickSizeInner=function(S){return arguments.length?(o=+S,U):o},U.tickSizeOuter=function(S){return arguments.length?(c=+S,U):c},U.tickPadding=function(S){return arguments.length?(y=+S,U):y},U.offset=function(S){return arguments.length?(Y=+S,U):Y},U}function Jn(t){return Je(zt,t)}function Kn(t){return Je(le,t)}const tr=Math.PI/180,er=180/Math.PI,Bt=18,Ke=.96422,tn=1,en=.82521,nn=4/29,Ct=6/29,rn=3*Ct*Ct,nr=Ct*Ct*Ct;function sn(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return an(t);t instanceof Xe||(t=Rn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),s=ee((.2225045*e+.7168786*n+.0606169*r)/tn),o,c;return e===n&&n===r?o=c=s:(o=ee((.4360747*e+.3850649*n+.1430804*r)/Ke),c=ee((.0139322*e+.0971045*n+.7141733*r)/en)),new lt(116*s-16,500*(o-s),200*(s-c),t.opacity)}function rr(t,e,n,r){return arguments.length===1?sn(t):new lt(t,e,n,r??1)}function lt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Ge(lt,rr,je(Qe,{brighter(t){return new lt(this.l+Bt*(t??1),this.a,this.b,this.opacity)},darker(t){return new lt(this.l-Bt*(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=Ke*ne(e),t=tn*ne(t),n=en*ne(n),new Xe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>nr?Math.pow(t,1/3):t/rn+nn}function ne(t){return t>Ct?t*t*t:rn*(t-nn)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ir(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof lt||(t=sn(t)),t.a===0&&t.b===0)return new dt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*er;return new dt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?ir(t):new dt(t,e,n,r??1)}function dt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function an(t){if(isNaN(t.h))return new lt(t.l,0,0,t.opacity);var e=t.h*tr;return new lt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Ge(dt,fe,je(Qe,{brighter(t){return new dt(this.h,this.c,this.l+Bt*(t??1),this.opacity)},darker(t){return new dt(this.h,this.c,this.l-Bt*(t??1),this.opacity)},rgb(){return an(this).rgb()}}));function sr(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),s=Kt(e.c,n.c),o=Kt(e.l,n.l),c=Kt(e.opacity,n.opacity);return function(y){return e.h=r(y),e.c=s(y),e.l=o(y),e.opacity=c(y),e+""}}}const ar=sr(Zn),se=new Date,ae=new Date;function et(t,e,n,r){function s(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return s.floor=o=>(t(o=new Date(+o)),o),s.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),s.round=o=>{const c=s(o),y=s.ceil(o);return o-c<y-o?c:y},s.offset=(o,c)=>(e(o=new Date(+o),c==null?1:Math.floor(c)),o),s.range=(o,c,y)=>{const Y=[];if(o=s.ceil(o),y=y==null?1:Math.floor(y),!(o<c)||!(y>0))return Y;let L;do Y.push(L=new Date(+o)),e(o,y),t(o);while(L<o&&o<c);return Y},s.filter=o=>et(c=>{if(c>=c)for(;t(c),!o(c);)c.setTime(c-1)},(c,y)=>{if(c>=c)if(y<0)for(;++y<=0;)for(;e(c,-1),!o(c););else for(;--y>=0;)for(;e(c,1),!o(c););}),n&&(s.count=(o,c)=>(se.setTime(+o),ae.setTime(+c),t(se),t(ae),Math.floor(n(se,ae))),s.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(r?c=>r(c)%o===0:c=>s.count(0,c)%o===0):s)),s}const Ut=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const Et=1e3,mt=Et*60,Lt=mt*60,It=Lt*24,on=It*7,de=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Et)},(t,e)=>(e-t)/Et,t=>t.getUTCSeconds());de.range;const he=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Et)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getMinutes());he.range;const or=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCMinutes());or.range;const me=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Et-t.getMinutes()*mt)},(t,e)=>{t.setTime(+t+e*Lt)},(t,e)=>(e-t)/Lt,t=>t.getHours());me.range;const cr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Lt)},(t,e)=>(e-t)/Lt,t=>t.getUTCHours());cr.range;const At=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*mt)/It,t=>t.getDate()-1);At.range;const xe=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/It,t=>t.getUTCDate()-1);xe.range;const ur=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/It,t=>Math.floor(t/It));ur.range;function vt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*mt)/on)}const be=vt(0),Wt=vt(1),cn=vt(2),un=vt(3),yt=vt(4),ln=vt(5),fn=vt(6);be.range;Wt.range;cn.range;un.range;yt.range;ln.range;fn.range;function Tt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/on)}const dn=Tt(0),qt=Tt(1),lr=Tt(2),fr=Tt(3),Mt=Tt(4),dr=Tt(5),hr=Tt(6);dn.range;qt.range;lr.range;fr.range;Mt.range;dr.range;hr.range;const ge=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());ge.range;const mr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const pt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function oe(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ce(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function _t(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function gr(t){var e=t.dateTime,n=t.date,r=t.time,s=t.periods,o=t.days,c=t.shortDays,y=t.months,Y=t.shortMonths,L=Yt(s),C=Ft(s),H=Yt(o),U=Ft(o),S=Yt(c),G=Ft(c),W=Yt(y),_=Ft(y),E=Yt(Y),V=Ft(Y),I={a:v,A:D,b:a,B:q,c:null,d:Ne,e:Ne,f:$r,g:Xr,G:jr,H:Ar,I:Wr,j:Or,L:hn,m:Hr,M:Nr,p:i,q:M,Q:ze,s:Re,S:Pr,u:Vr,U:zr,V:Rr,w:Zr,W:Br,x:null,X:null,y:qr,Y:Gr,Z:Qr,"%":Ve},Z={a:R,A:z,b:N,B:K,c:null,d:Pe,e:Pe,f:ei,g:fi,G:hi,H:Jr,I:Kr,j:ti,L:gn,m:ni,M:ri,p:O,q:st,Q:ze,s:Re,S:ii,u:si,U:ai,V:oi,w:ci,W:ui,x:null,X:null,y:li,Y:di,Z:mi,"%":Ve},j={a:b,A:x,b:k,B:g,c:u,d:$e,e:$e,f:Ur,g:Oe,G:We,H:He,I:He,j:Sr,L:Fr,m:Mr,M:_r,p:h,q:Dr,Q:Lr,s:Ir,S:Yr,u:Tr,U:xr,V:br,w:vr,W:wr,x:f,X:p,y:Oe,Y:We,Z:Cr,"%":Er};I.x=F(n,I),I.X=F(r,I),I.c=F(e,I),Z.x=F(n,Z),Z.X=F(r,Z),Z.c=F(e,Z);function F(w,$){return function(P){var l=[],J=-1,A=0,Q=w.length,X,it,at;for(P instanceof Date||(P=new Date(+P));++J<Q;)w.charCodeAt(J)===37&&(l.push(w.slice(A,J)),(it=Ae[X=w.charAt(++J)])!=null?X=w.charAt(++J):it=X==="e"?" ":"0",(at=$[X])&&(X=at(P,it)),l.push(X),A=J+1);return l.push(w.slice(A,J)),l.join("")}}function T(w,$){return function(P){var l=_t(1900,void 0,1),J=m(l,w,P+="",0),A,Q;if(J!=P.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if($&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(A=ce(_t(l.y,0,1)),Q=A.getUTCDay(),A=Q>4||Q===0?qt.ceil(A):qt(A),A=xe.offset(A,(l.V-1)*7),l.y=A.getUTCFullYear(),l.m=A.getUTCMonth(),l.d=A.getUTCDate()+(l.w+6)%7):(A=oe(_t(l.y,0,1)),Q=A.getDay(),A=Q>4||Q===0?Wt.ceil(A):Wt(A),A=At.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),Q="Z"in l?ce(_t(l.y,0,1)).getUTCDay():oe(_t(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ce(l)):oe(l)}}function m(w,$,P,l){for(var J=0,A=$.length,Q=P.length,X,it;J<A;){if(l>=Q)return-1;if(X=$.charCodeAt(J++),X===37){if(X=$.charAt(J++),it=j[X in Ae?$.charAt(J++):X],!it||(l=it(w,P,l))<0)return-1}else if(X!=P.charCodeAt(l++))return-1}return l}function h(w,$,P){var l=L.exec($.slice(P));return l?(w.p=C.get(l[0].toLowerCase()),P+l[0].length):-1}function b(w,$,P){var l=S.exec($.slice(P));return l?(w.w=G.get(l[0].toLowerCase()),P+l[0].length):-1}function x(w,$,P){var l=H.exec($.slice(P));return l?(w.w=U.get(l[0].toLowerCase()),P+l[0].length):-1}function k(w,$,P){var l=E.exec($.slice(P));return l?(w.m=V.get(l[0].toLowerCase()),P+l[0].length):-1}function g(w,$,P){var l=W.exec($.slice(P));return l?(w.m=_.get(l[0].toLowerCase()),P+l[0].length):-1}function u(w,$,P){return m(w,e,$,P)}function f(w,$,P){return m(w,n,$,P)}function p(w,$,P){return m(w,r,$,P)}function v(w){return c[w.getDay()]}function D(w){return o[w.getDay()]}function a(w){return Y[w.getMonth()]}function q(w){return y[w.getMonth()]}function i(w){return s[+(w.getHours()>=12)]}function M(w){return 1+~~(w.getMonth()/3)}function R(w){return c[w.getUTCDay()]}function z(w){return o[w.getUTCDay()]}function N(w){return Y[w.getUTCMonth()]}function K(w){return y[w.getUTCMonth()]}function O(w){return s[+(w.getUTCHours()>=12)]}function st(w){return 1+~~(w.getUTCMonth()/3)}return{format:function(w){var $=F(w+="",I);return $.toString=function(){return w},$},parse:function(w){var $=T(w+="",!1);return $.toString=function(){return w},$},utcFormat:function(w){var $=F(w+="",Z);return $.toString=function(){return w},$},utcParse:function(w){var $=T(w+="",!0);return $.toString=function(){return w},$}}}var Ae={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,yr=/^%/,kr=/[\\^$*+?|[\]().{}]/g;function B(t,e,n){var r=t<0?"-":"",s=(r?-t:t)+"",o=s.length;return r+(o<n?new Array(n-o+1).join(e)+s:s)}function pr(t){return t.replace(kr,"\\$&")}function Yt(t){return new RegExp("^(?:"+t.map(pr).join("|")+")","i")}function Ft(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function vr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Tr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function xr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function br(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function We(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Oe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Cr(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 Dr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Mr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function $e(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function He(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function _r(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Er(t,e,n){var r=yr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ne(t,e){return B(t.getDate(),e,2)}function Ar(t,e){return B(t.getHours(),e,2)}function Wr(t,e){return B(t.getHours()%12||12,e,2)}function Or(t,e){return B(1+At.count(kt(t),t),e,3)}function hn(t,e){return B(t.getMilliseconds(),e,3)}function $r(t,e){return hn(t,e)+"000"}function Hr(t,e){return B(t.getMonth()+1,e,2)}function Nr(t,e){return B(t.getMinutes(),e,2)}function Pr(t,e){return B(t.getSeconds(),e,2)}function Vr(t){var e=t.getDay();return e===0?7:e}function zr(t,e){return B(be.count(kt(t)-1,t),e,2)}function mn(t){var e=t.getDay();return e>=4||e===0?yt(t):yt.ceil(t)}function Rr(t,e){return t=mn(t),B(yt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function Zr(t){return t.getDay()}function Br(t,e){return B(Wt.count(kt(t)-1,t),e,2)}function qr(t,e){return B(t.getFullYear()%100,e,2)}function Xr(t,e){return t=mn(t),B(t.getFullYear()%100,e,2)}function Gr(t,e){return B(t.getFullYear()%1e4,e,4)}function jr(t,e){var n=t.getDay();return t=n>=4||n===0?yt(t):yt.ceil(t),B(t.getFullYear()%1e4,e,4)}function Qr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+B(e/60|0,"0",2)+B(e%60,"0",2)}function Pe(t,e){return B(t.getUTCDate(),e,2)}function Jr(t,e){return B(t.getUTCHours(),e,2)}function Kr(t,e){return B(t.getUTCHours()%12||12,e,2)}function ti(t,e){return B(1+xe.count(pt(t),t),e,3)}function gn(t,e){return B(t.getUTCMilliseconds(),e,3)}function ei(t,e){return gn(t,e)+"000"}function ni(t,e){return B(t.getUTCMonth()+1,e,2)}function ri(t,e){return B(t.getUTCMinutes(),e,2)}function ii(t,e){return B(t.getUTCSeconds(),e,2)}function si(t){var e=t.getUTCDay();return e===0?7:e}function ai(t,e){return B(dn.count(pt(t)-1,t),e,2)}function yn(t){var e=t.getUTCDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function oi(t,e){return t=yn(t),B(Mt.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function ci(t){return t.getUTCDay()}function ui(t,e){return B(qt.count(pt(t)-1,t),e,2)}function li(t,e){return B(t.getUTCFullYear()%100,e,2)}function fi(t,e){return t=yn(t),B(t.getUTCFullYear()%100,e,2)}function di(t,e){return B(t.getUTCFullYear()%1e4,e,4)}function hi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Mt(t):Mt.ceil(t),B(t.getUTCFullYear()%1e4,e,4)}function mi(){return"+0000"}function Ve(){return"%"}function ze(t){return+t}function Re(t){return Math.floor(+t/1e3)}var bt,ye;gi({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 gi(t){return bt=gr(t),ye=bt.format,bt.parse,bt.utcFormat,bt.utcParse,bt}var kn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(jt,function(){var n="day";return function(r,s,o){var c=function(L){return L.add(4-L.isoWeekday(),n)},y=s.prototype;y.isoWeekYear=function(){return c(this).year()},y.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),n);var C,H,U,S,G=c(this),W=(C=this.isoWeekYear(),H=this.$u,U=(H?o.utc:o)().year(C).startOf("year"),S=4-U.isoWeekday(),U.isoWeekday()>4&&(S+=7),U.add(S,n));return G.diff(W,"week")+1},y.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var Y=y.startOf;y.startOf=function(L,C){var H=this.$utils(),U=!!H.u(C)||C;return H.p(L)==="isoweek"?U?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):Y.bind(this)(L,C)}}})})(kn);var yi=kn.exports;const ki=Qt(yi);var pn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(jt,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,o=/\d\d/,c=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,Y={},L=function(_){return(_=+_)+(_>68?1900:2e3)},C=function(_){return function(E){this[_]=+E}},H=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var V=E.match(/([+-]|\d\d)/g),I=60*V[1]+(+V[2]||0);return I===0?0:V[0]==="+"?-I:I}(_)}],U=function(_){var E=Y[_];return E&&(E.indexOf?E:E.s.concat(E.f))},S=function(_,E){var V,I=Y.meridiem;if(I){for(var Z=1;Z<=24;Z+=1)if(_.indexOf(I(Z,0,E))>-1){V=Z>12;break}}else V=_===(E?"pm":"PM");return V},G={A:[y,function(_){this.afternoon=S(_,!1)}],a:[y,function(_){this.afternoon=S(_,!0)}],Q:[s,function(_){this.month=3*(_-1)+1}],S:[s,function(_){this.milliseconds=100*+_}],SS:[o,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[c,C("seconds")],ss:[c,C("seconds")],m:[c,C("minutes")],mm:[c,C("minutes")],H:[c,C("hours")],h:[c,C("hours")],HH:[c,C("hours")],hh:[c,C("hours")],D:[c,C("day")],DD:[o,C("day")],Do:[y,function(_){var E=Y.ordinal,V=_.match(/\d+/);if(this.day=V[0],E)for(var I=1;I<=31;I+=1)E(I).replace(/\[|\]/g,"")===_&&(this.day=I)}],w:[c,C("week")],ww:[o,C("week")],M:[c,C("month")],MM:[o,C("month")],MMM:[y,function(_){var E=U("months"),V=(U("monthsShort")||E.map(function(I){return I.slice(0,3)})).indexOf(_)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[y,function(_){var E=U("months").indexOf(_)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,C("year")],YY:[o,function(_){this.year=L(_)}],YYYY:[/\d{4}/,C("year")],Z:H,ZZ:H};function W(_){var E,V;E=_,V=Y&&Y.formats;for(var I=(_=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,x,k){var g=k&&k.toUpperCase();return x||V[k]||n[k]||V[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,f,p){return f||p.slice(1)})})).match(r),Z=I.length,j=0;j<Z;j+=1){var F=I[j],T=G[F],m=T&&T[0],h=T&&T[1];I[j]=h?{regex:m,parser:h}:F.replace(/^\[|\]$/g,"")}return function(b){for(var x={},k=0,g=0;k<Z;k+=1){var u=I[k];if(typeof u=="string")g+=u.length;else{var f=u.regex,p=u.parser,v=b.slice(g),D=f.exec(v)[0];p.call(x,D),b=b.replace(D,"")}}return function(a){var q=a.afternoon;if(q!==void 0){var i=a.hours;q?i<12&&(a.hours+=12):i===12&&(a.hours=0),delete a.afternoon}}(x),x}}return function(_,E,V){V.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(L=_.parseTwoDigitYear);var I=E.prototype,Z=I.parse;I.parse=function(j){var F=j.date,T=j.utc,m=j.args;this.$u=T;var h=m[1];if(typeof h=="string"){var b=m[2]===!0,x=m[3]===!0,k=b||x,g=m[2];x&&(g=m[2]),Y=this.$locale(),!b&&g&&(Y=V.Ls[g]),this.$d=function(v,D,a,q){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*v);var i=W(D)(v),M=i.year,R=i.month,z=i.day,N=i.hours,K=i.minutes,O=i.seconds,st=i.milliseconds,w=i.zone,$=i.week,P=new Date,l=z||(M||R?1:P.getDate()),J=M||P.getFullYear(),A=0;M&&!R||(A=R>0?R-1:P.getMonth());var Q,X=N||0,it=K||0,at=O||0,ht=st||0;return w?new Date(Date.UTC(J,A,l,X,it,at,ht+60*w.offset*1e3)):a?new Date(Date.UTC(J,A,l,X,it,at,ht)):(Q=new Date(J,A,l,X,it,at,ht),$&&(Q=q(Q).week($).toDate()),Q)}catch{return new Date("")}}(F,h,T,V),this.init(),g&&g!==!0&&(this.$L=this.locale(g).$L),k&&F!=this.format(h)&&(this.$d=new Date("")),Y={}}else if(h instanceof Array)for(var u=h.length,f=1;f<=u;f+=1){m[1]=h[f-1];var p=V.apply(this,m);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}f===u&&(this.$d=new Date(""))}else Z.call(this,j)}}})})(pn);var pi=pn.exports;const vi=Qt(pi);var vn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(jt,function(){return function(n,r){var s=r.prototype,o=s.format;s.format=function(c){var y=this,Y=this.$locale();if(!this.isValid())return o.bind(this)(c);var L=this.$utils(),C=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(H){switch(H){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return Y.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return Y.ordinal(y.week(),"W");case"w":case"ww":return L.s(y.week(),H==="w"?1:2,"0");case"W":case"WW":return L.s(y.isoWeek(),H==="W"?1:2,"0");case"k":case"kk":return L.s(String(y.$H===0?24:y.$H),H==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return H}});return o.bind(this)(C)}}})})(vn);var Ti=vn.exports;const xi=Qt(Ti);var Tn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(jt,function(){var n,r,s=1e3,o=6e4,c=36e5,y=864e5,Y=/\[([^\]]+)]|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,L=31536e6,C=2628e6,H=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,U={years:L,months:C,days:y,hours:c,minutes:o,seconds:s,milliseconds:1,weeks:6048e5},S=function(F){return F instanceof Z},G=function(F,T,m){return new Z(F,m,T.$l)},W=function(F){return r.p(F)+"s"},_=function(F){return F<0},E=function(F){return _(F)?Math.ceil(F):Math.floor(F)},V=function(F){return Math.abs(F)},I=function(F,T){return F?_(F)?{negative:!0,format:""+V(F)+T}:{negative:!1,format:""+F+T}:{negative:!1,format:""}},Z=function(){function F(m,h,b){var x=this;if(this.$d={},this.$l=b,m===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return G(m*U[W(h)],this);if(typeof m=="number")return this.$ms=m,this.parseFromMilliseconds(),this;if(typeof m=="object")return Object.keys(m).forEach(function(u){x.$d[W(u)]=m[u]}),this.calMilliseconds(),this;if(typeof m=="string"){var k=m.match(H);if(k){var g=k.slice(2).map(function(u){return u!=null?Number(u):0});return this.$d.years=g[0],this.$d.months=g[1],this.$d.weeks=g[2],this.$d.days=g[3],this.$d.hours=g[4],this.$d.minutes=g[5],this.$d.seconds=g[6],this.calMilliseconds(),this}}return this}var T=F.prototype;return T.calMilliseconds=function(){var m=this;this.$ms=Object.keys(this.$d).reduce(function(h,b){return h+(m.$d[b]||0)*U[b]},0)},T.parseFromMilliseconds=function(){var m=this.$ms;this.$d.years=E(m/L),m%=L,this.$d.months=E(m/C),m%=C,this.$d.days=E(m/y),m%=y,this.$d.hours=E(m/c),m%=c,this.$d.minutes=E(m/o),m%=o,this.$d.seconds=E(m/s),m%=s,this.$d.milliseconds=m},T.toISOString=function(){var m=I(this.$d.years,"Y"),h=I(this.$d.months,"M"),b=+this.$d.days||0;this.$d.weeks&&(b+=7*this.$d.weeks);var x=I(b,"D"),k=I(this.$d.hours,"H"),g=I(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var f=I(u,"S"),p=m.negative||h.negative||x.negative||k.negative||g.negative||f.negative,v=k.format||g.format||f.format?"T":"",D=(p?"-":"")+"P"+m.format+h.format+x.format+v+k.format+g.format+f.format;return D==="P"||D==="-P"?"P0D":D},T.toJSON=function(){return this.toISOString()},T.format=function(m){var h=m||"YYYY-MM-DDTHH:mm:ss",b={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(Y,function(x,k){return k||String(b[x])})},T.as=function(m){return this.$ms/U[W(m)]},T.get=function(m){var h=this.$ms,b=W(m);return b==="milliseconds"?h%=1e3:h=b==="weeks"?E(h/U[b]):this.$d[b],h||0},T.add=function(m,h,b){var x;return x=h?m*U[W(h)]:S(m)?m.$ms:G(m,this).$ms,G(this.$ms+x*(b?-1:1),this)},T.subtract=function(m,h){return this.add(m,h,!0)},T.locale=function(m){var h=this.clone();return h.$l=m,h},T.clone=function(){return G(this.$ms,this)},T.humanize=function(m){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!m)},T.valueOf=function(){return this.asMilliseconds()},T.milliseconds=function(){return this.get("milliseconds")},T.asMilliseconds=function(){return this.as("milliseconds")},T.seconds=function(){return this.get("seconds")},T.asSeconds=function(){return this.as("seconds")},T.minutes=function(){return this.get("minutes")},T.asMinutes=function(){return this.as("minutes")},T.hours=function(){return this.get("hours")},T.asHours=function(){return this.as("hours")},T.days=function(){return this.get("days")},T.asDays=function(){return this.as("days")},T.weeks=function(){return this.get("weeks")},T.asWeeks=function(){return this.as("weeks")},T.months=function(){return this.get("months")},T.asMonths=function(){return this.as("months")},T.years=function(){return this.get("years")},T.asYears=function(){return this.as("years")},F}(),j=function(F,T,m){return F.add(T.years()*m,"y").add(T.months()*m,"M").add(T.days()*m,"d").add(T.hours()*m,"h").add(T.minutes()*m,"m").add(T.seconds()*m,"s").add(T.milliseconds()*m,"ms")};return function(F,T,m){n=m,r=m().$utils(),m.duration=function(x,k){var g=m.locale();return G(x,{$l:g},k)},m.isDuration=S;var h=T.prototype.add,b=T.prototype.subtract;T.prototype.add=function(x,k){return S(x)?j(this,x,1):h.bind(this)(x,k)},T.prototype.subtract=function(x,k){return S(x)?j(this,x,-1):b.bind(this)(x,k)}}})})(Tn);var bi=Tn.exports;const wi=Qt(bi);var ke=function(){var t=d(function(g,u,f,p){for(f=f||{},p=g.length;p--;f[g[p]]=u);return f},"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],s=[1,28],o=[1,29],c=[1,30],y=[1,31],Y=[1,32],L=[1,33],C=[1,34],H=[1,9],U=[1,10],S=[1,11],G=[1,12],W=[1,13],_=[1,14],E=[1,15],V=[1,16],I=[1,19],Z=[1,20],j=[1,21],F=[1,22],T=[1,23],m=[1,25],h=[1,35],b={trace:d(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:d(function(u,f,p,v,D,a,q){var i=a.length-1;switch(D){case 1:return a[i-1];case 2:this.$=[];break;case 3:a[i-1].push(a[i]),this.$=a[i-1];break;case 4:case 5:this.$=a[i];break;case 6:case 7:this.$=[];break;case 8:v.setWeekday("monday");break;case 9:v.setWeekday("tuesday");break;case 10:v.setWeekday("wednesday");break;case 11:v.setWeekday("thursday");break;case 12:v.setWeekday("friday");break;case 13:v.setWeekday("saturday");break;case 14:v.setWeekday("sunday");break;case 15:v.setWeekend("friday");break;case 16:v.setWeekend("saturday");break;case 17:v.setDateFormat(a[i].substr(11)),this.$=a[i].substr(11);break;case 18:v.enableInclusiveEndDates(),this.$=a[i].substr(18);break;case 19:v.TopAxis(),this.$=a[i].substr(8);break;case 20:v.setAxisFormat(a[i].substr(11)),this.$=a[i].substr(11);break;case 21:v.setTickInterval(a[i].substr(13)),this.$=a[i].substr(13);break;case 22:v.setExcludes(a[i].substr(9)),this.$=a[i].substr(9);break;case 23:v.setIncludes(a[i].substr(9)),this.$=a[i].substr(9);break;case 24:v.setTodayMarker(a[i].substr(12)),this.$=a[i].substr(12);break;case 27:v.setDiagramTitle(a[i].substr(6)),this.$=a[i].substr(6);break;case 28:this.$=a[i].trim(),v.setAccTitle(this.$);break;case 29:case 30:this.$=a[i].trim(),v.setAccDescription(this.$);break;case 31:v.addSection(a[i].substr(8)),this.$=a[i].substr(8);break;case 33:v.addTask(a[i-1],a[i]),this.$="task";break;case 34:this.$=a[i-1],v.setClickEvent(a[i-1],a[i],null);break;case 35:this.$=a[i-2],v.setClickEvent(a[i-2],a[i-1],a[i]);break;case 36:this.$=a[i-2],v.setClickEvent(a[i-2],a[i-1],null),v.setLink(a[i-2],a[i]);break;case 37:this.$=a[i-3],v.setClickEvent(a[i-3],a[i-2],a[i-1]),v.setLink(a[i-3],a[i]);break;case 38:this.$=a[i-2],v.setClickEvent(a[i-2],a[i],null),v.setLink(a[i-2],a[i-1]);break;case 39:this.$=a[i-3],v.setClickEvent(a[i-3],a[i-1],a[i]),v.setLink(a[i-3],a[i-2]);break;case 40:this.$=a[i-1],v.setLink(a[i-1],a[i]);break;case 41:case 47:this.$=a[i-1]+" "+a[i];break;case 42:case 43:case 45:this.$=a[i-2]+" "+a[i-1]+" "+a[i];break;case 44:case 46:this.$=a[i-3]+" "+a[i-2]+" "+a[i-1]+" "+a[i];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:s,15:o,16:c,17:y,18:Y,19:18,20:L,21:C,22:H,23:U,24:S,25:G,26:W,27:_,28:E,29:V,30:I,31:Z,33:j,35:F,36:T,37:24,38:m,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:s,15:o,16:c,17:y,18:Y,19:18,20:L,21:C,22:H,23:U,24:S,25:G,26:W,27:_,28:E,29:V,30:I,31:Z,33:j,35:F,36:T,37:24,38:m,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:d(function(u,f){if(f.recoverable)this.trace(u);else{var p=new Error(u);throw p.hash=f,p}},"parseError"),parse:d(function(u){var f=this,p=[0],v=[],D=[null],a=[],q=this.table,i="",M=0,R=0,z=2,N=1,K=a.slice.call(arguments,1),O=Object.create(this.lexer),st={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(st.yy[w]=this.yy[w]);O.setInput(u,st.yy),st.yy.lexer=O,st.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var $=O.yylloc;a.push($);var P=O.options&&O.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(ot){p.length=p.length-2*ot,D.length=D.length-ot,a.length=a.length-ot}d(l,"popStack");function J(){var ot;return ot=v.pop()||O.lex()||N,typeof ot!="number"&&(ot instanceof Array&&(v=ot,ot=v.pop()),ot=f.symbols_[ot]||ot),ot}d(J,"lex");for(var A,Q,X,it,at={},ht,ct,Le,Nt;;){if(Q=p[p.length-1],this.defaultActions[Q]?X=this.defaultActions[Q]:((A===null||typeof A>"u")&&(A=J()),X=q[Q]&&q[Q][A]),typeof X>"u"||!X.length||!X[0]){var Jt="";Nt=[];for(ht in q[Q])this.terminals_[ht]&&ht>z&&Nt.push("'"+this.terminals_[ht]+"'");O.showPosition?Jt="Parse error on line "+(M+1)+`:
|
|
2
|
-
`+O.showPosition()+`
|
|
3
|
-
Expecting `+Nt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Jt="Parse error on line "+(M+1)+": Unexpected "+(A==N?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Jt,{text:O.match,token:this.terminals_[A]||A,line:O.yylineno,loc:$,expected:Nt})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+A);switch(X[0]){case 1:p.push(A),D.push(O.yytext),a.push(O.yylloc),p.push(X[1]),A=null,R=O.yyleng,i=O.yytext,M=O.yylineno,$=O.yylloc;break;case 2:if(ct=this.productions_[X[1]][1],at.$=D[D.length-ct],at._$={first_line:a[a.length-(ct||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(ct||1)].first_column,last_column:a[a.length-1].last_column},P&&(at._$.range=[a[a.length-(ct||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(at,[i,R,M,st.yy,X[1],D,a].concat(K)),typeof it<"u")return it;ct&&(p=p.slice(0,-1*ct*2),D=D.slice(0,-1*ct),a=a.slice(0,-1*ct)),p.push(this.productions_[X[1]][0]),D.push(at.$),a.push(at._$),Le=q[p[p.length-2]][p[p.length-1]],p.push(Le);break;case 3:return!0}}return!0},"parse")},x=function(){var g={EOF:1,parseError:d(function(f,p){if(this.yy.parser)this.yy.parser.parseError(f,p);else throw new Error(f)},"parseError"),setInput:d(function(u,f){return this.yy=f||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:d(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var f=u.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:d(function(u){var f=u.length,p=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var v=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),p.length-1&&(this.yylineno-=p.length-1);var D=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:p?(p.length===v.length?this.yylloc.first_column:0)+v[v.length-p.length].length-p[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(u){this.unput(this.match.slice(u))},"less"),pastInput:d(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:d(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:d(function(){var u=this.pastInput(),f=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
|
5
|
-
`+f+"^"},"showPosition"),test_match:d(function(u,f){var p,v,D;if(this.options.backtrack_lexer&&(D={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&&(D.yylloc.range=this.yylloc.range.slice(0))),v=u[0].match(/(?:\r\n?|\n).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.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],p=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var a in D)this[a]=D[a];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,f,p,v;this._more||(this.yytext="",this.match="");for(var D=this._currentRules(),a=0;a<D.length;a++)if(p=this._input.match(this.rules[D[a]]),p&&(!f||p[0].length>f[0].length)){if(f=p,v=a,this.options.backtrack_lexer){if(u=this.test_match(p,D[a]),u!==!1)return u;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(u=this.test_match(f,D[v]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var f=this.next();return f||this.lex()},"lex"),begin:d(function(f){this.conditionStack.push(f)},"begin"),popState:d(function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(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:d(function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},"topState"),pushState:d(function(f){this.begin(f)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(f,p,v,D){switch(v){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 g}();b.lexer=x;function k(){this.yy={}}return d(k,"Parser"),k.prototype=b,b.Parser=k,new k}();ke.parser=ke;var Ci=ke;rt.extend(ki);rt.extend(vi);rt.extend(xi);var Ze={friday:5,saturday:6},ut="",we="",Ce=void 0,De="",Ot=[],$t=[],Me=new Map,Se=[],Xt=[],St="",_e="",xn=["active","done","crit","milestone","vert"],Ye=[],Ht=!1,Fe=!1,Ue="sunday",Gt="saturday",pe=0,Di=d(function(){Se=[],Xt=[],St="",Ye=[],Rt=0,Te=void 0,Zt=void 0,tt=[],ut="",we="",_e="",Ce=void 0,De="",Ot=[],$t=[],Ht=!1,Fe=!1,pe=0,Me=new Map,$n(),Ue="sunday",Gt="saturday"},"clear"),Mi=d(function(t){we=t},"setAxisFormat"),Si=d(function(){return we},"getAxisFormat"),_i=d(function(t){Ce=t},"setTickInterval"),Yi=d(function(){return Ce},"getTickInterval"),Fi=d(function(t){De=t},"setTodayMarker"),Ui=d(function(){return De},"getTodayMarker"),Ei=d(function(t){ut=t},"setDateFormat"),Li=d(function(){Ht=!0},"enableInclusiveEndDates"),Ii=d(function(){return Ht},"endDatesAreInclusive"),Ai=d(function(){Fe=!0},"enableTopAxis"),Wi=d(function(){return Fe},"topAxisEnabled"),Oi=d(function(t){_e=t},"setDisplayMode"),$i=d(function(){return _e},"getDisplayMode"),Hi=d(function(){return ut},"getDateFormat"),Ni=d(function(t){Ot=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),Pi=d(function(){return Ot},"getIncludes"),Vi=d(function(t){$t=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),zi=d(function(){return $t},"getExcludes"),Ri=d(function(){return Me},"getLinks"),Zi=d(function(t){St=t,Se.push(t)},"addSection"),Bi=d(function(){return Se},"getSections"),qi=d(function(){let t=Be();const e=10;let n=0;for(;!t&&n<e;)t=Be(),n++;return Xt=tt,Xt},"getTasks"),bn=d(function(t,e,n,r){const s=t.format(e.trim()),o=t.format("YYYY-MM-DD");return r.includes(s)||r.includes(o)?!1:n.includes("weekends")&&(t.isoWeekday()===Ze[Gt]||t.isoWeekday()===Ze[Gt]+1)||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(s)||n.includes(o)},"isInvalidDate"),Xi=d(function(t){Ue=t},"setWeekday"),Gi=d(function(){return Ue},"getWeekday"),ji=d(function(t){Gt=t},"setWeekend"),wn=d(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let s;t.startTime instanceof Date?s=rt(t.startTime):s=rt(t.startTime,e,!0),s=s.add(1,"d");let o;t.endTime instanceof Date?o=rt(t.endTime):o=rt(t.endTime,e,!0);const[c,y]=Qi(s,o,e,n,r);t.endTime=c.toDate(),t.renderEndTime=y},"checkTaskDates"),Qi=d(function(t,e,n,r,s){let o=!1,c=null;for(;t<=e;)o||(c=e.toDate()),o=bn(t,n,r,s),o&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,c]},"fixTaskDates"),ve=d(function(t,e,n){if(n=n.trim(),d(y=>{const Y=y.trim();return Y==="x"||Y==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let y=null;for(const L of o.groups.ids.split(" ")){let C=xt(L);C!==void 0&&(!y||C.endTime>y.endTime)&&(y=C)}if(y)return y.endTime;const Y=new Date;return Y.setHours(0,0,0,0),Y}let c=rt(n,e.trim(),!0);if(c.isValid())return c.toDate();{gt.debug("Invalid date:"+n),gt.debug("With date format:"+e.trim());const y=new Date(n);if(y===void 0||isNaN(y.getTime())||y.getFullYear()<-1e4||y.getFullYear()>1e4)throw new Error("Invalid date:"+n);return y}},"getStartDate"),Cn=d(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Dn=d(function(t,e,n,r=!1){n=n.trim();const o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let C=null;for(const U of o.groups.ids.split(" ")){let S=xt(U);S!==void 0&&(!C||S.startTime<C.startTime)&&(C=S)}if(C)return C.startTime;const H=new Date;return H.setHours(0,0,0,0),H}let c=rt(n,e.trim(),!0);if(c.isValid())return r&&(c=c.add(1,"d")),c.toDate();let y=rt(t);const[Y,L]=Cn(n);if(!Number.isNaN(Y)){const C=y.add(Y,L);C.isValid()&&(y=C)}return y.toDate()},"getEndDate"),Rt=0,Dt=d(function(t){return t===void 0?(Rt=Rt+1,"task"+Rt):t},"parseId"),Ji=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};Ee(r,s,xn);for(let c=0;c<r.length;c++)r[c]=r[c].trim();let o="";switch(r.length){case 1:s.id=Dt(),s.startTime=t.endTime,o=r[0];break;case 2:s.id=Dt(),s.startTime=ve(void 0,ut,r[0]),o=r[1];break;case 3:s.id=Dt(r[0]),s.startTime=ve(void 0,ut,r[1]),o=r[2];break}return o&&(s.endTime=Dn(s.startTime,ut,o,Ht),s.manualEndTime=rt(o,"YYYY-MM-DD",!0).isValid(),wn(s,ut,$t,Ot)),s},"compileData"),Ki=d(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),s={};Ee(r,s,xn);for(let o=0;o<r.length;o++)r[o]=r[o].trim();switch(r.length){case 1:s.id=Dt(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:r[0]};break;case 2:s.id=Dt(),s.startTime={type:"getStartDate",startData:r[0]},s.endTime={data:r[1]};break;case 3:s.id=Dt(r[0]),s.startTime={type:"getStartDate",startData:r[1]},s.endTime={data:r[2]};break}return s},"parseData"),Te,Zt,tt=[],Mn={},ts=d(function(t,e){const n={section:St,type:St,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Ki(Zt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Zt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=pe,pe++;const s=tt.push(n);Zt=n.id,Mn[n.id]=s-1},"addTask"),xt=d(function(t){const e=Mn[t];return tt[e]},"findTaskById"),es=d(function(t,e){const n={section:St,type:St,description:t,task:t,classes:[]},r=Ji(Te,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,Te=n,Xt.push(n)},"addTaskOrg"),Be=d(function(){const t=d(function(n){const r=tt[n];let s="";switch(tt[n].raw.startTime.type){case"prevTaskEnd":{const o=xt(r.prevTaskId);r.startTime=o.endTime;break}case"getStartDate":s=ve(void 0,ut,tt[n].raw.startTime.startData),s&&(tt[n].startTime=s);break}return tt[n].startTime&&(tt[n].endTime=Dn(tt[n].startTime,ut,tt[n].raw.endTime.data,Ht),tt[n].endTime&&(tt[n].processed=!0,tt[n].manualEndTime=rt(tt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),wn(tt[n],ut,$t,Ot))),tt[n].processed},"compileTask");let e=!0;for(const[n,r]of tt.entries())t(n),e=e&&r.processed;return e},"compileTasks"),ns=d(function(t,e){let n=e;wt().securityLevel!=="loose"&&(n=On(e)),t.split(",").forEach(function(r){xt(r)!==void 0&&(_n(r,()=>{window.open(n,"_self")}),Me.set(r,n))}),Sn(t,"clickable")},"setLink"),Sn=d(function(t,e){t.split(",").forEach(function(n){let r=xt(n);r!==void 0&&r.classes.push(e)})},"setClass"),rs=d(function(t,e,n){if(wt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<r.length;o++){let c=r[o].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),r[o]=c}}r.length===0&&r.push(t),xt(t)!==void 0&&_n(t,()=>{Hn.runFunc(e,...r)})},"setClickFun"),_n=d(function(t,e){Ye.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"),is=d(function(t,e,n){t.split(",").forEach(function(r){rs(r,e,n)}),Sn(t,"clickable")},"setClickEvent"),ss=d(function(t){Ye.forEach(function(e){e(t)})},"bindFunctions"),as={getConfig:d(()=>wt().gantt,"getConfig"),clear:Di,setDateFormat:Ei,getDateFormat:Hi,enableInclusiveEndDates:Li,endDatesAreInclusive:Ii,enableTopAxis:Ai,topAxisEnabled:Wi,setAxisFormat:Mi,getAxisFormat:Si,setTickInterval:_i,getTickInterval:Yi,setTodayMarker:Fi,getTodayMarker:Ui,setAccTitle:In,getAccTitle:Ln,setDiagramTitle:En,getDiagramTitle:Un,setDisplayMode:Oi,getDisplayMode:$i,setAccDescription:Fn,getAccDescription:Yn,addSection:Zi,getSections:Bi,getTasks:qi,addTask:ts,findTaskById:xt,addTaskOrg:es,setIncludes:Ni,getIncludes:Pi,setExcludes:Vi,getExcludes:zi,setClickEvent:is,setLink:ns,getLinks:Ri,bindFunctions:ss,parseDuration:Cn,isInvalidDate:bn,setWeekday:Xi,getWeekday:Gi,setWeekend:ji};function Ee(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(s){const o="^\\s*"+s+"\\s*$",c=new RegExp(o);t[0].match(c)&&(e[s]=!0,t.shift(1),r=!0)})}d(Ee,"getTaskTags");rt.extend(wi);var os=d(function(){gt.debug("Something is calling, setConf, remove the call")},"setConf"),qe={monday:Wt,tuesday:cn,wednesday:un,thursday:yt,friday:ln,saturday:fn,sunday:be},cs=d((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((o,c)=>o.startTime-c.startTime||o.order-c.order),s=0;for(const o of r)for(let c=0;c<n.length;c++)if(o.startTime>=n[c]){n[c]=o.endTime,o.order=c+e,c>s&&(s=c);break}return s},"getMaxIntersections"),ft,ue=1e4,us=d(function(t,e,n,r){const s=wt().gantt,o=wt().securityLevel;let c;o==="sandbox"&&(c=Pt("#i"+e));const y=o==="sandbox"?Pt(c.nodes()[0].contentDocument.body):Pt("body"),Y=o==="sandbox"?c.nodes()[0].contentDocument:document,L=Y.getElementById(e);ft=L.parentElement.offsetWidth,ft===void 0&&(ft=1200),s.useWidth!==void 0&&(ft=s.useWidth);const C=r.db.getTasks();let H=[];for(const h of C)H.push(h.type);H=m(H);const U={};let S=2*s.topPadding;if(r.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const h={};for(const x of C)h[x.section]===void 0?h[x.section]=[x]:h[x.section].push(x);let b=0;for(const x of Object.keys(h)){const k=cs(h[x],b)+1;b+=k,S+=k*(s.barHeight+s.barGap),U[x]=k}}else{S+=C.length*(s.barHeight+s.barGap);for(const h of H)U[h]=C.filter(b=>b.type===h).length}L.setAttribute("viewBox","0 0 "+ft+" "+S);const G=y.select(`[id="${e}"]`),W=Nn().domain([Pn(C,function(h){return h.startTime}),Vn(C,function(h){return h.endTime})]).rangeRound([0,ft-s.leftPadding-s.rightPadding]);function _(h,b){const x=h.startTime,k=b.startTime;let g=0;return x>k?g=1:x<k&&(g=-1),g}d(_,"taskCompare"),C.sort(_),E(C,ft,S),An(G,S,ft,s.useMaxWidth),G.append("text").text(r.db.getDiagramTitle()).attr("x",ft/2).attr("y",s.titleTopMargin).attr("class","titleText");function E(h,b,x){const k=s.barHeight,g=k+s.barGap,u=s.topPadding,f=s.leftPadding,p=zn().domain([0,H.length]).range(["#00B9FA","#F95002"]).interpolate(ar);I(g,u,f,b,x,h,r.db.getExcludes(),r.db.getIncludes()),j(f,u,b,x),V(h,g,u,f,k,p,b),F(g,u),T(f,u,b,x)}d(E,"makeGantt");function V(h,b,x,k,g,u,f){h.sort((i,M)=>i.vert===M.vert?0:i.vert?1:-1);const v=[...new Set(h.map(i=>i.order))].map(i=>h.find(M=>M.order===i));G.append("g").selectAll("rect").data(v).enter().append("rect").attr("x",0).attr("y",function(i,M){return M=i.order,M*b+x-2}).attr("width",function(){return f-s.rightPadding/2}).attr("height",b).attr("class",function(i){for(const[M,R]of H.entries())if(i.type===R)return"section section"+M%s.numberSectionStyles;return"section section0"}).enter();const D=G.append("g").selectAll("rect").data(h).enter(),a=r.db.getLinks();if(D.append("rect").attr("id",function(i){return i.id}).attr("rx",3).attr("ry",3).attr("x",function(i){return i.milestone?W(i.startTime)+k+.5*(W(i.endTime)-W(i.startTime))-.5*g:W(i.startTime)+k}).attr("y",function(i,M){return M=i.order,i.vert?s.gridLineStartPadding:M*b+x}).attr("width",function(i){return i.milestone?g:i.vert?.08*g:W(i.renderEndTime||i.endTime)-W(i.startTime)}).attr("height",function(i){return i.vert?C.length*(s.barHeight+s.barGap)+s.barHeight*2:g}).attr("transform-origin",function(i,M){return M=i.order,(W(i.startTime)+k+.5*(W(i.endTime)-W(i.startTime))).toString()+"px "+(M*b+x+.5*g).toString()+"px"}).attr("class",function(i){const M="task";let R="";i.classes.length>0&&(R=i.classes.join(" "));let z=0;for(const[K,O]of H.entries())i.type===O&&(z=K%s.numberSectionStyles);let N="";return i.active?i.crit?N+=" activeCrit":N=" active":i.done?i.crit?N=" doneCrit":N=" done":i.crit&&(N+=" crit"),N.length===0&&(N=" task"),i.milestone&&(N=" milestone "+N),i.vert&&(N=" vert "+N),N+=z,N+=" "+R,M+N}),D.append("text").attr("id",function(i){return i.id+"-text"}).text(function(i){return i.task}).attr("font-size",s.fontSize).attr("x",function(i){let M=W(i.startTime),R=W(i.renderEndTime||i.endTime);if(i.milestone&&(M+=.5*(W(i.endTime)-W(i.startTime))-.5*g,R=M+g),i.vert)return W(i.startTime)+k;const z=this.getBBox().width;return z>R-M?R+z+1.5*s.leftPadding>f?M+k-5:R+k+5:(R-M)/2+M+k}).attr("y",function(i,M){return i.vert?s.gridLineStartPadding+C.length*(s.barHeight+s.barGap)+60:(M=i.order,M*b+s.barHeight/2+(s.fontSize/2-2)+x)}).attr("text-height",g).attr("class",function(i){const M=W(i.startTime);let R=W(i.endTime);i.milestone&&(R=M+g);const z=this.getBBox().width;let N="";i.classes.length>0&&(N=i.classes.join(" "));let K=0;for(const[st,w]of H.entries())i.type===w&&(K=st%s.numberSectionStyles);let O="";return i.active&&(i.crit?O="activeCritText"+K:O="activeText"+K),i.done?i.crit?O=O+" doneCritText"+K:O=O+" doneText"+K:i.crit&&(O=O+" critText"+K),i.milestone&&(O+=" milestoneText"),i.vert&&(O+=" vertText"),z>R-M?R+z+1.5*s.leftPadding>f?N+" taskTextOutsideLeft taskTextOutside"+K+" "+O:N+" taskTextOutsideRight taskTextOutside"+K+" "+O+" width-"+z:N+" taskText taskText"+K+" "+O+" width-"+z}),wt().securityLevel==="sandbox"){let i;i=Pt("#i"+e);const M=i.nodes()[0].contentDocument;D.filter(function(R){return a.has(R.id)}).each(function(R){var z=M.querySelector("#"+R.id),N=M.querySelector("#"+R.id+"-text");const K=z.parentNode;var O=M.createElement("a");O.setAttribute("xlink:href",a.get(R.id)),O.setAttribute("target","_top"),K.appendChild(O),O.appendChild(z),O.appendChild(N)})}}d(V,"drawRects");function I(h,b,x,k,g,u,f,p){if(f.length===0&&p.length===0)return;let v,D;for(const{startTime:z,endTime:N}of u)(v===void 0||z<v)&&(v=z),(D===void 0||N>D)&&(D=N);if(!v||!D)return;if(rt(D).diff(rt(v),"year")>5){gt.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 a=r.db.getDateFormat(),q=[];let i=null,M=rt(v);for(;M.valueOf()<=D;)r.db.isInvalidDate(M,a,f,p)?i?i.end=M:i={start:M,end:M}:i&&(q.push(i),i=null),M=M.add(1,"d");G.append("g").selectAll("rect").data(q).enter().append("rect").attr("id",z=>"exclude-"+z.start.format("YYYY-MM-DD")).attr("x",z=>W(z.start.startOf("day"))+x).attr("y",s.gridLineStartPadding).attr("width",z=>W(z.end.endOf("day"))-W(z.start.startOf("day"))).attr("height",g-b-s.gridLineStartPadding).attr("transform-origin",function(z,N){return(W(z.start)+x+.5*(W(z.end)-W(z.start))).toString()+"px "+(N*h+.5*g).toString()+"px"}).attr("class","exclude-range")}d(I,"drawExcludeDays");function Z(h,b,x,k){if(x<=0||h>b)return 1/0;const g=b-h,u=rt.duration({[k??"day"]:x}).asMilliseconds();return u<=0?1/0:Math.ceil(g/u)}d(Z,"getEstimatedTickCount");function j(h,b,x,k){const g=r.db.getDateFormat(),u=r.db.getAxisFormat();let f;u?f=u:g==="D"?f="%d":f=s.axisFormat??"%Y-%m-%d";let p=Kn(W).tickSize(-k+b+s.gridLineStartPadding).tickFormat(ye(f));const D=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||s.tickInterval);if(D!==null){const a=parseInt(D[1],10);if(isNaN(a)||a<=0)gt.warn(`Invalid tick interval value: "${D[1]}". Skipping custom tick interval.`);else{const q=D[2],i=r.db.getWeekday()||s.weekday,M=W.domain(),R=M[0],z=M[1],N=Z(R,z,a,q);if(N>ue)gt.warn(`The tick interval "${a}${q}" would generate ${N} ticks, which exceeds the maximum allowed (${ue}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(q){case"millisecond":p.ticks(Ut.every(a));break;case"second":p.ticks(de.every(a));break;case"minute":p.ticks(he.every(a));break;case"hour":p.ticks(me.every(a));break;case"day":p.ticks(At.every(a));break;case"week":p.ticks(qe[i].every(a));break;case"month":p.ticks(ge.every(a));break}}}if(G.append("g").attr("class","grid").attr("transform","translate("+h+", "+(k-50)+")").call(p).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||s.topAxis){let a=Jn(W).tickSize(-k+b+s.gridLineStartPadding).tickFormat(ye(f));if(D!==null){const q=parseInt(D[1],10);if(isNaN(q)||q<=0)gt.warn(`Invalid tick interval value: "${D[1]}". Skipping custom tick interval.`);else{const i=D[2],M=r.db.getWeekday()||s.weekday,R=W.domain(),z=R[0],N=R[1];if(Z(z,N,q,i)<=ue)switch(i){case"millisecond":a.ticks(Ut.every(q));break;case"second":a.ticks(de.every(q));break;case"minute":a.ticks(he.every(q));break;case"hour":a.ticks(me.every(q));break;case"day":a.ticks(At.every(q));break;case"week":a.ticks(qe[M].every(q));break;case"month":a.ticks(ge.every(q));break}}}G.append("g").attr("class","grid").attr("transform","translate("+h+", "+b+")").call(a).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}d(j,"makeGrid");function F(h,b){let x=0;const k=Object.keys(U).map(g=>[g,U[g]]);G.append("g").selectAll("text").data(k).enter().append(function(g){const u=g[0].split(Wn.lineBreakRegex),f=-(u.length-1)/2,p=Y.createElementNS("http://www.w3.org/2000/svg","text");p.setAttribute("dy",f+"em");for(const[v,D]of u.entries()){const a=Y.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),v>0&&a.setAttribute("dy","1em"),a.textContent=D,p.appendChild(a)}return p}).attr("x",10).attr("y",function(g,u){if(u>0)for(let f=0;f<u;f++)return x+=k[u-1][1],g[1]*h/2+x*h+b;else return g[1]*h/2+b}).attr("font-size",s.sectionFontSize).attr("class",function(g){for(const[u,f]of H.entries())if(g[0]===f)return"sectionTitle sectionTitle"+u%s.numberSectionStyles;return"sectionTitle"})}d(F,"vertLabels");function T(h,b,x,k){const g=r.db.getTodayMarker();if(g==="off")return;const u=G.append("g").attr("class","today"),f=new Date,p=u.append("line");p.attr("x1",W(f)+h).attr("x2",W(f)+h).attr("y1",s.titleTopMargin).attr("y2",k-s.titleTopMargin).attr("class","today"),g!==""&&p.attr("style",g.replace(/,/g,";"))}d(T,"drawToday");function m(h){const b={},x=[];for(let k=0,g=h.length;k<g;++k)Object.prototype.hasOwnProperty.call(b,h[k])||(b[h[k]]=!0,x.push(h[k]));return x}d(m,"checkUnique")},"draw"),ls={setConf:os,draw:us},fs=d(t=>`
|
|
7
|
-
.mermaid-main-font {
|
|
8
|
-
font-family: ${t.fontFamily};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.exclude-range {
|
|
12
|
-
fill: ${t.excludeBkgColor};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.section {
|
|
16
|
-
stroke: none;
|
|
17
|
-
opacity: 0.2;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.section0 {
|
|
21
|
-
fill: ${t.sectionBkgColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.section2 {
|
|
25
|
-
fill: ${t.sectionBkgColor2};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.section1,
|
|
29
|
-
.section3 {
|
|
30
|
-
fill: ${t.altSectionBkgColor};
|
|
31
|
-
opacity: 0.2;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.sectionTitle0 {
|
|
35
|
-
fill: ${t.titleColor};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.sectionTitle1 {
|
|
39
|
-
fill: ${t.titleColor};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.sectionTitle2 {
|
|
43
|
-
fill: ${t.titleColor};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sectionTitle3 {
|
|
47
|
-
fill: ${t.titleColor};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.sectionTitle {
|
|
51
|
-
text-anchor: start;
|
|
52
|
-
font-family: ${t.fontFamily};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/* Grid and axis */
|
|
57
|
-
|
|
58
|
-
.grid .tick {
|
|
59
|
-
stroke: ${t.gridColor};
|
|
60
|
-
opacity: 0.8;
|
|
61
|
-
shape-rendering: crispEdges;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.grid .tick text {
|
|
65
|
-
font-family: ${t.fontFamily};
|
|
66
|
-
fill: ${t.textColor};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.grid path {
|
|
70
|
-
stroke-width: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/* Today line */
|
|
75
|
-
|
|
76
|
-
.today {
|
|
77
|
-
fill: none;
|
|
78
|
-
stroke: ${t.todayLineColor};
|
|
79
|
-
stroke-width: 2px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/* Task styling */
|
|
84
|
-
|
|
85
|
-
/* Default task */
|
|
86
|
-
|
|
87
|
-
.task {
|
|
88
|
-
stroke-width: 2;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.taskText {
|
|
92
|
-
text-anchor: middle;
|
|
93
|
-
font-family: ${t.fontFamily};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.taskTextOutsideRight {
|
|
97
|
-
fill: ${t.taskTextDarkColor};
|
|
98
|
-
text-anchor: start;
|
|
99
|
-
font-family: ${t.fontFamily};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.taskTextOutsideLeft {
|
|
103
|
-
fill: ${t.taskTextDarkColor};
|
|
104
|
-
text-anchor: end;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/* Special case clickable */
|
|
109
|
-
|
|
110
|
-
.task.clickable {
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.taskText.clickable {
|
|
115
|
-
cursor: pointer;
|
|
116
|
-
fill: ${t.taskTextClickableColor} !important;
|
|
117
|
-
font-weight: bold;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.taskTextOutsideLeft.clickable {
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
fill: ${t.taskTextClickableColor} !important;
|
|
123
|
-
font-weight: bold;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.taskTextOutsideRight.clickable {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
fill: ${t.taskTextClickableColor} !important;
|
|
129
|
-
font-weight: bold;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
/* Specific task settings for the sections*/
|
|
134
|
-
|
|
135
|
-
.taskText0,
|
|
136
|
-
.taskText1,
|
|
137
|
-
.taskText2,
|
|
138
|
-
.taskText3 {
|
|
139
|
-
fill: ${t.taskTextColor};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.task0,
|
|
143
|
-
.task1,
|
|
144
|
-
.task2,
|
|
145
|
-
.task3 {
|
|
146
|
-
fill: ${t.taskBkgColor};
|
|
147
|
-
stroke: ${t.taskBorderColor};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.taskTextOutside0,
|
|
151
|
-
.taskTextOutside2
|
|
152
|
-
{
|
|
153
|
-
fill: ${t.taskTextOutsideColor};
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.taskTextOutside1,
|
|
157
|
-
.taskTextOutside3 {
|
|
158
|
-
fill: ${t.taskTextOutsideColor};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
/* Active task */
|
|
163
|
-
|
|
164
|
-
.active0,
|
|
165
|
-
.active1,
|
|
166
|
-
.active2,
|
|
167
|
-
.active3 {
|
|
168
|
-
fill: ${t.activeTaskBkgColor};
|
|
169
|
-
stroke: ${t.activeTaskBorderColor};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.activeText0,
|
|
173
|
-
.activeText1,
|
|
174
|
-
.activeText2,
|
|
175
|
-
.activeText3 {
|
|
176
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/* Completed task */
|
|
181
|
-
|
|
182
|
-
.done0,
|
|
183
|
-
.done1,
|
|
184
|
-
.done2,
|
|
185
|
-
.done3 {
|
|
186
|
-
stroke: ${t.doneTaskBorderColor};
|
|
187
|
-
fill: ${t.doneTaskBkgColor};
|
|
188
|
-
stroke-width: 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.doneText0,
|
|
192
|
-
.doneText1,
|
|
193
|
-
.doneText2,
|
|
194
|
-
.doneText3 {
|
|
195
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* Done task text displayed outside the bar sits against the diagram background,
|
|
199
|
-
not against the done-task bar, so it must use the outside/contrast color. */
|
|
200
|
-
.doneText0.taskTextOutsideLeft,
|
|
201
|
-
.doneText0.taskTextOutsideRight,
|
|
202
|
-
.doneText1.taskTextOutsideLeft,
|
|
203
|
-
.doneText1.taskTextOutsideRight,
|
|
204
|
-
.doneText2.taskTextOutsideLeft,
|
|
205
|
-
.doneText2.taskTextOutsideRight,
|
|
206
|
-
.doneText3.taskTextOutsideLeft,
|
|
207
|
-
.doneText3.taskTextOutsideRight {
|
|
208
|
-
fill: ${t.taskTextOutsideColor} !important;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
/* Tasks on the critical line */
|
|
213
|
-
|
|
214
|
-
.crit0,
|
|
215
|
-
.crit1,
|
|
216
|
-
.crit2,
|
|
217
|
-
.crit3 {
|
|
218
|
-
stroke: ${t.critBorderColor};
|
|
219
|
-
fill: ${t.critBkgColor};
|
|
220
|
-
stroke-width: 2;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.activeCrit0,
|
|
224
|
-
.activeCrit1,
|
|
225
|
-
.activeCrit2,
|
|
226
|
-
.activeCrit3 {
|
|
227
|
-
stroke: ${t.critBorderColor};
|
|
228
|
-
fill: ${t.activeTaskBkgColor};
|
|
229
|
-
stroke-width: 2;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.doneCrit0,
|
|
233
|
-
.doneCrit1,
|
|
234
|
-
.doneCrit2,
|
|
235
|
-
.doneCrit3 {
|
|
236
|
-
stroke: ${t.critBorderColor};
|
|
237
|
-
fill: ${t.doneTaskBkgColor};
|
|
238
|
-
stroke-width: 2;
|
|
239
|
-
cursor: pointer;
|
|
240
|
-
shape-rendering: crispEdges;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.milestone {
|
|
244
|
-
transform: rotate(45deg) scale(0.8,0.8);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.milestoneText {
|
|
248
|
-
font-style: italic;
|
|
249
|
-
}
|
|
250
|
-
.doneCritText0,
|
|
251
|
-
.doneCritText1,
|
|
252
|
-
.doneCritText2,
|
|
253
|
-
.doneCritText3 {
|
|
254
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/* Done-crit task text outside the bar — same reasoning as doneText above. */
|
|
258
|
-
.doneCritText0.taskTextOutsideLeft,
|
|
259
|
-
.doneCritText0.taskTextOutsideRight,
|
|
260
|
-
.doneCritText1.taskTextOutsideLeft,
|
|
261
|
-
.doneCritText1.taskTextOutsideRight,
|
|
262
|
-
.doneCritText2.taskTextOutsideLeft,
|
|
263
|
-
.doneCritText2.taskTextOutsideRight,
|
|
264
|
-
.doneCritText3.taskTextOutsideLeft,
|
|
265
|
-
.doneCritText3.taskTextOutsideRight {
|
|
266
|
-
fill: ${t.taskTextOutsideColor} !important;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.vert {
|
|
270
|
-
stroke: ${t.vertLineColor};
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.vertText {
|
|
274
|
-
font-size: 15px;
|
|
275
|
-
text-anchor: middle;
|
|
276
|
-
fill: ${t.vertLineColor} !important;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.activeCritText0,
|
|
280
|
-
.activeCritText1,
|
|
281
|
-
.activeCritText2,
|
|
282
|
-
.activeCritText3 {
|
|
283
|
-
fill: ${t.taskTextDarkColor} !important;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.titleText {
|
|
287
|
-
text-anchor: middle;
|
|
288
|
-
font-size: 18px;
|
|
289
|
-
fill: ${t.titleColor||t.textColor};
|
|
290
|
-
font-family: ${t.fontFamily};
|
|
291
|
-
}
|
|
292
|
-
`,"getStyles"),ds=fs,Ts={parser:Ci,db:as,renderer:ls,styles:ds};export{Ts as diagram};
|