@codragraph/cli 2.1.4 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +36 -7
  2. package/dist/cli/ai-context.js +297 -0
  3. package/dist/cli/analyze.d.ts +9 -4
  4. package/dist/cli/analyze.js +37 -13
  5. package/dist/cli/index.js +40 -14
  6. package/dist/cli/status.d.ts +1 -1
  7. package/dist/cli/status.js +8 -0
  8. package/dist/cli/tool.d.ts +10 -2
  9. package/dist/cli/tool.js +100 -39
  10. package/dist/config/ignore-service.js +1 -0
  11. package/dist/core/adaptive-profile.d.ts +52 -0
  12. package/dist/core/adaptive-profile.js +180 -0
  13. package/dist/core/cgdb/cgdb-adapter.d.ts +34 -5
  14. package/dist/core/cgdb/cgdb-adapter.js +418 -5
  15. package/dist/core/cgdb/pool-adapter.js +130 -20
  16. package/dist/core/ingestion/parsing-processor.js +7 -1
  17. package/dist/core/ingestion/pipeline-phases/parse-impl.js +7 -1
  18. package/dist/core/ingestion/pipeline-phases/structure.js +19 -3
  19. package/dist/core/ingestion/pipeline.d.ts +10 -0
  20. package/dist/core/ingestion/workers/parse-worker.js +1 -1
  21. package/dist/core/ingestion/workers/worker-pool.d.ts +14 -1
  22. package/dist/core/ingestion/workers/worker-pool.js +33 -17
  23. package/dist/core/run-analyze.d.ts +27 -2
  24. package/dist/core/run-analyze.js +626 -32
  25. package/dist/core/search/bm25-index.d.ts +16 -8
  26. package/dist/core/search/bm25-index.js +72 -110
  27. package/dist/mcp/local/local-backend.d.ts +2 -0
  28. package/dist/mcp/local/local-backend.js +241 -21
  29. package/dist/storage/repo-manager.d.ts +29 -0
  30. package/dist/web/assets/__vite-browser-external-BIHI7g3E.js +1 -0
  31. package/dist/web/assets/agent-DcdaQnmu.js +1104 -0
  32. package/dist/web/assets/architectureDiagram-UL44E2DR-DFSpa3Hb.js +36 -0
  33. package/dist/web/assets/blockDiagram-7IZFK4PR-DlFaxH1b.js +132 -0
  34. package/dist/web/assets/{c4Diagram-DFAF54RM-C4Hl3J2U.js → c4Diagram-Y2BXMSZH-BjJ_Yrim.js} +1 -1
  35. package/dist/web/assets/{chunk-7RZVMHOQ-BitYcNVR.js → chunk-3SSMPTDK-KGZSzG3Y.js} +1 -1
  36. package/dist/web/assets/{chunk-TBF5ZNIQ-DL5stGM1.js → chunk-6764PJDD-p1sGJgVm.js} +1 -1
  37. package/dist/web/assets/{chunk-KSICW3F5-BYzvDLNI.js → chunk-AZZRMDJM-DIDkQA4V.js} +1 -1
  38. package/dist/web/assets/{chunk-AEOMTBSW-BgTIXPsY.js → chunk-JQRUD6KW-DAwg-yCU.js} +1 -1
  39. package/dist/web/assets/chunk-KRXBNO2N-ChVO_XdS.js +1 -0
  40. package/dist/web/assets/chunk-LCXTWHL2-DGYdb_Eh.js +231 -0
  41. package/dist/web/assets/{chunk-O5ABG6QK-dHwHzA6n.js → chunk-LII3EMHJ-Bzh9SNgD.js} +1 -1
  42. package/dist/web/assets/chunk-RG4AUYOV-Bcl7U_IV.js +206 -0
  43. package/dist/web/assets/{chunk-TU3PZOEN-RLyvLcv-.js → chunk-T5OCTHI4-CZYMg5sc.js} +1 -1
  44. package/dist/web/assets/chunk-W44A43WB-REOI67PN.js +13 -0
  45. package/dist/web/assets/{chunk-RWUO3TPN-BgRTY0_k.js → chunk-ZXARS5L4-BfFdV1tf.js} +1 -1
  46. package/dist/web/assets/classDiagram-KGZ6W3CR-B-qkKMYi.js +1 -0
  47. package/dist/web/assets/classDiagram-v2-72OJOZXJ-B-qkKMYi.js +1 -0
  48. package/dist/web/assets/{cose-bilkent-PNC4W37J-DVhePRYg.js → cose-bilkent-UX7MHV2Q-D6vANJGG.js} +1 -1
  49. package/dist/web/assets/dagre-ND4H6XIP-BiHe5Lal.js +4 -0
  50. package/dist/web/assets/diagram-3NCE3AQN-CEutBCOW.js +43 -0
  51. package/dist/web/assets/diagram-GF46GFSD-CZns6HPQ.js +24 -0
  52. package/dist/web/assets/diagram-HNR7UZ2L-Vz8fE5of.js +3 -0
  53. package/dist/web/assets/diagram-QXG6HAR7-D60HKZ_y.js +24 -0
  54. package/dist/web/assets/diagram-WEQXMOUZ-vGAf1p3E.js +10 -0
  55. package/dist/web/assets/{erDiagram-GCSMX5X6-C3dhDFA8.js → erDiagram-L5TCEMPS-DZaplJA6.js} +5 -5
  56. package/dist/web/assets/{flowDiagram-OTCZ4VVT-CWSFWmhr.js → flowDiagram-H6V6AXG4-BqUqeAsI.js} +9 -9
  57. package/dist/web/assets/ganttDiagram-JCBTUEKG-XEB6H-0G.js +292 -0
  58. package/dist/web/assets/gitGraphDiagram-S2ZK5IYY-7G50u1Cd.js +106 -0
  59. package/dist/web/assets/index-B5WxtMpv.js +1415 -0
  60. package/dist/web/assets/infoDiagram-3YFTVSEB-Cut_rzaf.js +2 -0
  61. package/dist/web/assets/{ishikawaDiagram-YMYX4NHK-DUoJvNP2.js → ishikawaDiagram-BNXS4ZKH-B4DGfGi3.js} +3 -3
  62. package/dist/web/assets/{journeyDiagram-SO5T7YLQ-RMFPNNqz.js → journeyDiagram-M6C3CM3L-BBFhsL3E.js} +1 -1
  63. package/dist/web/assets/{kanban-definition-LJHFXRCJ-BzpDs1K9.js → kanban-definition-75IXJCU3-DarGRyn3.js} +4 -4
  64. package/dist/web/assets/{katex-GD7MH7QM-DBQvrix-.js → katex-K3KEBU37-W5XTYMhr.js} +1 -1
  65. package/dist/web/assets/mindmap-definition-2TDM6QVE-BgeczIJM.js +96 -0
  66. package/dist/web/assets/pieDiagram-CU6KROY3-Kkoo-Noq.js +30 -0
  67. package/dist/web/assets/quadrantDiagram-VICAPDV7-CDQFeRWN.js +7 -0
  68. package/dist/web/assets/{requirementDiagram-M5DCFWZL-DLHOVTSv.js → requirementDiagram-JXO7QTGE-Cz9-XnkA.js} +2 -2
  69. package/dist/web/assets/sankeyDiagram-URQDO5SZ-CU26z0n7.js +40 -0
  70. package/dist/web/assets/sequenceDiagram-VS2MUI6T-OGK1FLOt.js +162 -0
  71. package/dist/web/assets/stateDiagram-7D4R322I-DJ9brq0U.js +1 -0
  72. package/dist/web/assets/stateDiagram-v2-36443NZ5-DhJ4Ky-7.js +1 -0
  73. package/dist/web/assets/{timeline-definition-5SPVSISX-TRSDRgPw.js → timeline-definition-O6YCAMPW-XZvnjqTT.js} +4 -4
  74. package/dist/web/assets/{vennDiagram-IE5QUKF5-DNy7HRBM.js → vennDiagram-MWXL3ELB-CJUssEjA.js} +6 -6
  75. package/dist/web/assets/wardley-L42UT6IY-5TKZOOLJ-DZr11zBG.js +173 -0
  76. package/dist/web/assets/wardleyDiagram-CUQ6CDDI-C276iqrN.js +78 -0
  77. package/dist/web/assets/{xychartDiagram-ZHJ5623Y-Dr9r7a35.js → xychartDiagram-N2JHSOCM-B9-uCZyP.js} +4 -4
  78. package/dist/web/index.html +1 -1
  79. package/hooks/claude/codragraph-hook.cjs +15 -122
  80. package/package.json +1 -1
  81. package/vendor/node_modules/node-addon-api/node_addon_api_except.stamp +0 -0
  82. package/dist/web/assets/agent-D5lb0zXz.js +0 -1089
  83. package/dist/web/assets/architectureDiagram-EMZXCZ2Q-CZtc99v_.js +0 -36
  84. package/dist/web/assets/blockDiagram-IGV67L2C-BtoUp-6Y.js +0 -132
  85. package/dist/web/assets/chunk-3GS5O3IE-DkUjU0WD.js +0 -231
  86. package/dist/web/assets/chunk-3YCYZ6SJ-CQkVgT_z.js +0 -1
  87. package/dist/web/assets/chunk-H3VCZNTA-Cx5XV_aC.js +0 -13
  88. package/dist/web/assets/chunk-HN6EAY2L-BBnyTNdB.js +0 -1
  89. package/dist/web/assets/chunk-PK6DOVAG-CvsEnugt.js +0 -206
  90. package/dist/web/assets/classDiagram-PPOCWD7C-DTr8QIOf.js +0 -1
  91. package/dist/web/assets/classDiagram-v2-23LJLIIU-DTr8QIOf.js +0 -1
  92. package/dist/web/assets/dagre-E77IOHMT-Dzx0A6ZU.js +0 -4
  93. package/dist/web/assets/diagram-H7BISOXX-CC9pRew1.js +0 -43
  94. package/dist/web/assets/diagram-JC5VWROH-Bau_i9tf.js +0 -24
  95. package/dist/web/assets/diagram-LXUTUG65-D9_FM2Gt.js +0 -10
  96. package/dist/web/assets/diagram-WEHSV5V5-BMlayouL.js +0 -24
  97. package/dist/web/assets/ganttDiagram-MUNLMDZQ-D3a67Yol.js +0 -292
  98. package/dist/web/assets/gitGraphDiagram-3HKGZ4G3-7jmry-vM.js +0 -106
  99. package/dist/web/assets/index-BgeqpYgd.js +0 -1415
  100. package/dist/web/assets/infoDiagram-MN7RKWGX-G7lhP0Ib.js +0 -2
  101. package/dist/web/assets/mindmap-definition-2EUWGEK5-Bk0O4roa.js +0 -96
  102. package/dist/web/assets/pieDiagram-3IATQBI2-DKU7kpgS.js +0 -30
  103. package/dist/web/assets/quadrantDiagram-E256RVCF-BY0TGWCS.js +0 -7
  104. package/dist/web/assets/sankeyDiagram-L3NBLAOT-DVMj5rX2.js +0 -10
  105. package/dist/web/assets/sequenceDiagram-ZOUHS735-CJC73bV-.js +0 -157
  106. package/dist/web/assets/stateDiagram-MLPALWAM-BCFyESls.js +0 -1
  107. package/dist/web/assets/stateDiagram-v2-B5LQ5ZB2-DahzzIca.js +0 -1
  108. package/dist/web/assets/wardley-RL74JXVD-BCRCBASE-B-eZEzf9.js +0 -161
  109. package/dist/web/assets/wardleyDiagram-XU3VSMPF-BP-r1xzR.js +0 -20
@@ -0,0 +1,292 @@
1
+ import{a as ue,l as he,o as fe,n as ke,s as ye,e as me,m as c,q as dt,i as $t,F as pe,V as ge,G as xe,b as be,Z as ve,Y as Te,p as it,S as $e,H as jt,J as Ut,$ as we,K as _e,N as De,Q as Se,R as Ce,T as Me,U as Ye,_ as qt,a0 as Qt,a1 as Jt,a2 as Xt,a3 as Zt,a4 as Ee,C as Oe,u as Ae,f as st,a5 as ie,g as Ie,k as Le,a6 as Ct}from"./index-B5WxtMpv.js";var We=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isoWeek=i()})(t,function(){var r="day";return function(i,n,h){var x=c(function(M){return M.add(4-M.isoWeekday(),r)},"a"),D=n.prototype;D.isoWeekYear=function(){return x(this).year()},D.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),r);var w,A,W,N,z=x(this),S=(w=this.isoWeekYear(),A=this.$u,W=(A?h.utc:h)().year(w).startOf("year"),N=4-W.isoWeekday(),W.isoWeekday()>4&&(N+=7),W.add(N,r));return z.diff(S,"week")+1},D.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var L=D.startOf;D.startOf=function(M,w){var A=this.$utils(),W=!!A.u(w)||w;return A.p(M)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):L.bind(this)(M,w)}}})}),Fe=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=i()})(t,function(){var r={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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,h=/\d\d/,x=/\d\d?/,D=/\d*[^-_:/,()\s\d]+/,L={},M=c(function($){return($=+$)+($>68?1900:2e3)},"a"),w=c(function($){return function(C){this[$]=+C}},"f"),A=[/[+-]\d\d:?(\d\d)?|Z/,function($){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var I=C.match(/([+-]|\d\d)/g),E=60*I[1]+(+I[2]||0);return E===0?0:I[0]==="+"?-E:E}($)}],W=c(function($){var C=L[$];return C&&(C.indexOf?C:C.s.concat(C.f))},"u"),N=c(function($,C){var I,E=L.meridiem;if(E){for(var R=1;R<=24;R+=1)if($.indexOf(E(R,0,C))>-1){I=R>12;break}}else I=$===(C?"pm":"PM");return I},"d"),z={A:[D,function($){this.afternoon=N($,!1)}],a:[D,function($){this.afternoon=N($,!0)}],Q:[n,function($){this.month=3*($-1)+1}],S:[n,function($){this.milliseconds=100*+$}],SS:[h,function($){this.milliseconds=10*+$}],SSS:[/\d{3}/,function($){this.milliseconds=+$}],s:[x,w("seconds")],ss:[x,w("seconds")],m:[x,w("minutes")],mm:[x,w("minutes")],H:[x,w("hours")],h:[x,w("hours")],HH:[x,w("hours")],hh:[x,w("hours")],D:[x,w("day")],DD:[h,w("day")],Do:[D,function($){var C=L.ordinal,I=$.match(/\d+/);if(this.day=I[0],C)for(var E=1;E<=31;E+=1)C(E).replace(/\[|\]/g,"")===$&&(this.day=E)}],w:[x,w("week")],ww:[h,w("week")],M:[x,w("month")],MM:[h,w("month")],MMM:[D,function($){var C=W("months"),I=(W("monthsShort")||C.map(function(E){return E.slice(0,3)})).indexOf($)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[D,function($){var C=W("months").indexOf($)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,w("year")],YY:[h,function($){this.year=M($)}],YYYY:[/\d{4}/,w("year")],Z:A,ZZ:A};function S($){var C,I;C=$,I=L&&L.formats;for(var E=($=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,p,m){var y=m&&m.toUpperCase();return p||I[m]||r[m]||I[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,u,d){return u||d.slice(1)})})).match(i),R=E.length,V=0;V<R;V+=1){var Y=E[V],b=z[Y],k=b&&b[0],f=b&&b[1];E[V]=f?{regex:k,parser:f}:Y.replace(/^\[|\]$/g,"")}return function(g){for(var p={},m=0,y=0;m<R;m+=1){var l=E[m];if(typeof l=="string")y+=l.length;else{var u=l.regex,d=l.parser,v=g.slice(y),e=u.exec(v)[0];d.call(p,e),g=g.replace(e,"")}}return function(a){var o=a.afternoon;if(o!==void 0){var T=a.hours;o?T<12&&(a.hours+=12):T===12&&(a.hours=0),delete a.afternoon}}(p),p}}return c(S,"l"),function($,C,I){I.p.customParseFormat=!0,$&&$.parseTwoDigitYear&&(M=$.parseTwoDigitYear);var E=C.prototype,R=E.parse;E.parse=function(V){var Y=V.date,b=V.utc,k=V.args;this.$u=b;var f=k[1];if(typeof f=="string"){var g=k[2]===!0,p=k[3]===!0,m=g||p,y=k[2];p&&(y=k[2]),L=this.$locale(),!g&&y&&(L=I.Ls[y]),this.$d=function(v,e,a,o){try{if(["x","X"].indexOf(e)>-1)return new Date((e==="X"?1e3:1)*v);var T=S(e)(v),O=T.year,_=T.month,F=T.day,P=T.hours,ft=T.minutes,H=T.seconds,X=T.milliseconds,at=T.zone,nt=T.week,kt=new Date,yt=F||(O||_?1:kt.getDate()),ot=O||kt.getFullYear(),B=0;O&&!_||(B=_>0?_-1:kt.getMonth());var tt,Q=P||0,j=ft||0,bt=H||0,et=X||0;return at?new Date(Date.UTC(ot,B,yt,Q,j,bt,et+60*at.offset*1e3)):a?new Date(Date.UTC(ot,B,yt,Q,j,bt,et)):(tt=new Date(ot,B,yt,Q,j,bt,et),nt&&(tt=o(tt).week(nt).toDate()),tt)}catch{return new Date("")}}(Y,f,b,I),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),m&&Y!=this.format(f)&&(this.$d=new Date("")),L={}}else if(f instanceof Array)for(var l=f.length,u=1;u<=l;u+=1){k[1]=f[u-1];var d=I.apply(this,k);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}u===l&&(this.$d=new Date(""))}else R.call(this,V)}}})}),Pe=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=i()})(t,function(){return function(r,i){var n=i.prototype,h=n.format;n.format=function(x){var D=this,L=this.$locale();if(!this.isValid())return h.bind(this)(x);var M=this.$utils(),w=(x||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(A){switch(A){case"Q":return Math.ceil((D.$M+1)/3);case"Do":return L.ordinal(D.$D);case"gggg":return D.weekYear();case"GGGG":return D.isoWeekYear();case"wo":return L.ordinal(D.week(),"W");case"w":case"ww":return M.s(D.week(),A==="w"?1:2,"0");case"W":case"WW":return M.s(D.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return M.s(String(D.$H===0?24:D.$H),A==="k"?1:2,"0");case"X":return Math.floor(D.$d.getTime()/1e3);case"x":return D.$d.getTime();case"z":return"["+D.offsetName()+"]";case"zzz":return"["+D.offsetName("long")+"]";default:return A}});return h.bind(this)(w)}}})}),ze=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_duration=i()})(t,function(){var r,i,n=1e3,h=6e4,x=36e5,D=864e5,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M=31536e6,w=2628e6,A=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W={years:M,months:w,days:D,hours:x,minutes:h,seconds:n,milliseconds:1,weeks:6048e5},N=c(function(Y){return Y instanceof R},"c"),z=c(function(Y,b,k){return new R(Y,k,b.$l)},"f"),S=c(function(Y){return i.p(Y)+"s"},"m"),$=c(function(Y){return Y<0},"l"),C=c(function(Y){return $(Y)?Math.ceil(Y):Math.floor(Y)},"$"),I=c(function(Y){return Math.abs(Y)},"y"),E=c(function(Y,b){return Y?$(Y)?{negative:!0,format:""+I(Y)+b}:{negative:!1,format:""+Y+b}:{negative:!1,format:""}},"v"),R=function(){function Y(k,f,g){var p=this;if(this.$d={},this.$l=g,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),f)return z(k*W[S(f)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach(function(l){p.$d[S(l)]=k[l]}),this.calMilliseconds(),this;if(typeof k=="string"){var m=k.match(A);if(m){var y=m.slice(2).map(function(l){return l!=null?Number(l):0});return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}c(Y,"l");var b=Y.prototype;return b.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce(function(f,g){return f+(k.$d[g]||0)*W[g]},0)},b.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=C(k/M),k%=M,this.$d.months=C(k/w),k%=w,this.$d.days=C(k/D),k%=D,this.$d.hours=C(k/x),k%=x,this.$d.minutes=C(k/h),k%=h,this.$d.seconds=C(k/n),k%=n,this.$d.milliseconds=k},b.toISOString=function(){var k=E(this.$d.years,"Y"),f=E(this.$d.months,"M"),g=+this.$d.days||0;this.$d.weeks&&(g+=7*this.$d.weeks);var p=E(g,"D"),m=E(this.$d.hours,"H"),y=E(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3,l=Math.round(1e3*l)/1e3);var u=E(l,"S"),d=k.negative||f.negative||p.negative||m.negative||y.negative||u.negative,v=m.format||y.format||u.format?"T":"",e=(d?"-":"")+"P"+k.format+f.format+p.format+v+m.format+y.format+u.format;return e==="P"||e==="-P"?"P0D":e},b.toJSON=function(){return this.toISOString()},b.format=function(k){var f=k||"YYYY-MM-DDTHH:mm:ss",g={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return f.replace(L,function(p,m){return m||String(g[p])})},b.as=function(k){return this.$ms/W[S(k)]},b.get=function(k){var f=this.$ms,g=S(k);return g==="milliseconds"?f%=1e3:f=g==="weeks"?C(f/W[g]):this.$d[g],f||0},b.add=function(k,f,g){var p;return p=f?k*W[S(f)]:N(k)?k.$ms:z(k,this).$ms,z(this.$ms+p*(g?-1:1),this)},b.subtract=function(k,f){return this.add(k,f,!0)},b.locale=function(k){var f=this.clone();return f.$l=k,f},b.clone=function(){return z(this.$ms,this)},b.humanize=function(k){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},Y}(),V=c(function(Y,b,k){return Y.add(b.years()*k,"y").add(b.months()*k,"M").add(b.days()*k,"d").add(b.hours()*k,"h").add(b.minutes()*k,"m").add(b.seconds()*k,"s").add(b.milliseconds()*k,"ms")},"p");return function(Y,b,k){r=k,i=k().$utils(),k.duration=function(p,m){var y=k.locale();return z(p,{$l:y},m)},k.isDuration=N;var f=b.prototype.add,g=b.prototype.subtract;b.prototype.add=function(p,m){return N(p)?V(this,p,1):f.bind(this)(p,m)},b.prototype.subtract=function(p,m){return N(p)?V(this,p,-1):g.bind(this)(p,m)}}})}),Et=function(){var t=c(function(y,l,u,d){for(u=u||{},d=y.length;d--;u[y[d]]=l);return u},"o"),s=[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],r=[1,26],i=[1,27],n=[1,28],h=[1,29],x=[1,30],D=[1,31],L=[1,32],M=[1,33],w=[1,34],A=[1,9],W=[1,10],N=[1,11],z=[1,12],S=[1,13],$=[1,14],C=[1,15],I=[1,16],E=[1,19],R=[1,20],V=[1,21],Y=[1,22],b=[1,23],k=[1,25],f=[1,35],g={trace:c(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:c(function(y,l,u,d,v,e,a){var o=e.length-1;switch(v){case 1:return e[o-1];case 2:this.$=[];break;case 3:e[o-1].push(e[o]),this.$=e[o-1];break;case 4:case 5:this.$=e[o];break;case 6:case 7:this.$=[];break;case 8:d.setWeekday("monday");break;case 9:d.setWeekday("tuesday");break;case 10:d.setWeekday("wednesday");break;case 11:d.setWeekday("thursday");break;case 12:d.setWeekday("friday");break;case 13:d.setWeekday("saturday");break;case 14:d.setWeekday("sunday");break;case 15:d.setWeekend("friday");break;case 16:d.setWeekend("saturday");break;case 17:d.setDateFormat(e[o].substr(11)),this.$=e[o].substr(11);break;case 18:d.enableInclusiveEndDates(),this.$=e[o].substr(18);break;case 19:d.TopAxis(),this.$=e[o].substr(8);break;case 20:d.setAxisFormat(e[o].substr(11)),this.$=e[o].substr(11);break;case 21:d.setTickInterval(e[o].substr(13)),this.$=e[o].substr(13);break;case 22:d.setExcludes(e[o].substr(9)),this.$=e[o].substr(9);break;case 23:d.setIncludes(e[o].substr(9)),this.$=e[o].substr(9);break;case 24:d.setTodayMarker(e[o].substr(12)),this.$=e[o].substr(12);break;case 27:d.setDiagramTitle(e[o].substr(6)),this.$=e[o].substr(6);break;case 28:this.$=e[o].trim(),d.setAccTitle(this.$);break;case 29:case 30:this.$=e[o].trim(),d.setAccDescription(this.$);break;case 31:d.addSection(e[o].substr(8)),this.$=e[o].substr(8);break;case 33:d.addTask(e[o-1],e[o]),this.$="task";break;case 34:this.$=e[o-1],d.setClickEvent(e[o-1],e[o],null);break;case 35:this.$=e[o-2],d.setClickEvent(e[o-2],e[o-1],e[o]);break;case 36:this.$=e[o-2],d.setClickEvent(e[o-2],e[o-1],null),d.setLink(e[o-2],e[o]);break;case 37:this.$=e[o-3],d.setClickEvent(e[o-3],e[o-2],e[o-1]),d.setLink(e[o-3],e[o]);break;case 38:this.$=e[o-2],d.setClickEvent(e[o-2],e[o],null),d.setLink(e[o-2],e[o-1]);break;case 39:this.$=e[o-3],d.setClickEvent(e[o-3],e[o-1],e[o]),d.setLink(e[o-3],e[o-2]);break;case 40:this.$=e[o-1],d.setLink(e[o-1],e[o]);break;case 41:case 47:this.$=e[o-1]+" "+e[o];break;case 42:case 43:case 45:this.$=e[o-2]+" "+e[o-1]+" "+e[o];break;case 44:case 46:this.$=e[o-3]+" "+e[o-2]+" "+e[o-1]+" "+e[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:n,15:h,16:x,17:D,18:L,19:18,20:M,21:w,22:A,23:W,24:N,25:z,26:S,27:$,28:C,29:I,30:E,31:R,33:V,35:Y,36:b,37:24,38:k,40:f},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:r,13:i,14:n,15:h,16:x,17:D,18:L,19:18,20:M,21:w,22:A,23:W,24:N,25:z,26:S,27:$,28:C,29:I,30:E,31:R,33:V,35:Y,36:b,37:24,38:k,40:f},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:c(function(y,l){if(l.recoverable)this.trace(y);else{var u=new Error(y);throw u.hash=l,u}},"parseError"),parse:c(function(y){var l=this,u=[0],d=[],v=[null],e=[],a=this.table,o="",T=0,O=0,_=0,F=2,P=1,ft=e.slice.call(arguments,1),H=Object.create(this.lexer),X={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(X.yy[at]=this.yy[at]);H.setInput(y,X.yy),X.yy.lexer=H,X.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var nt=H.yylloc;e.push(nt);var kt=H.options&&H.options.ranges;typeof X.yy.parseError=="function"?this.parseError=X.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(U){u.length=u.length-2*U,v.length=v.length-U,e.length=e.length-U}c(yt,"popStack");function ot(){var U;return U=d.pop()||H.lex()||P,typeof U!="number"&&(U instanceof Array&&(d=U,U=d.pop()),U=l.symbols_[U]||U),U}c(ot,"lex");for(var B,tt,Q,j,bt,et,lt={},vt,Z,Vt,Tt;;){if(Q=u[u.length-1],this.defaultActions[Q]?j=this.defaultActions[Q]:((B===null||typeof B>"u")&&(B=ot()),j=a[Q]&&a[Q][B]),typeof j>"u"||!j.length||!j[0]){var Mt="";Tt=[];for(vt in a[Q])this.terminals_[vt]&&vt>F&&Tt.push("'"+this.terminals_[vt]+"'");H.showPosition?Mt="Parse error on line "+(T+1)+`:
2
+ `+H.showPosition()+`
3
+ Expecting `+Tt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Mt="Parse error on line "+(T+1)+": Unexpected "+(B==P?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Mt,{text:H.match,token:this.terminals_[B]||B,line:H.yylineno,loc:nt,expected:Tt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+B);switch(j[0]){case 1:u.push(B),v.push(H.yytext),e.push(H.yylloc),u.push(j[1]),B=null,tt?(B=tt,tt=null):(O=H.yyleng,o=H.yytext,T=H.yylineno,nt=H.yylloc,_>0);break;case 2:if(Z=this.productions_[j[1]][1],lt.$=v[v.length-Z],lt._$={first_line:e[e.length-(Z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Z||1)].first_column,last_column:e[e.length-1].last_column},kt&&(lt._$.range=[e[e.length-(Z||1)].range[0],e[e.length-1].range[1]]),et=this.performAction.apply(lt,[o,O,T,X.yy,j[1],v,e].concat(ft)),typeof et<"u")return et;Z&&(u=u.slice(0,-1*Z*2),v=v.slice(0,-1*Z),e=e.slice(0,-1*Z)),u.push(this.productions_[j[1]][0]),v.push(lt.$),e.push(lt._$),Vt=a[u[u.length-2]][u[u.length-1]],u.push(Vt);break;case 3:return!0}}return!0},"parse")},p=function(){var y={EOF:1,parseError:c(function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},"parseError"),setInput:c(function(l,u){return this.yy=u||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:c(function(l){var u=l.length,d=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;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),d.length-1&&(this.yylineno-=d.length-1);var e=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:d?(d.length===v.length?this.yylloc.first_column:0)+v[v.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(l){this.unput(this.match.slice(l))},"less"),pastInput:c(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
5
+ `+u+"^"},"showPosition"),test_match:c(function(l,u){var d,v,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),v=l[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+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var a in e)this[a]=e[a];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,u,d,v;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),a=0;a<e.length;a++)if(d=this._input.match(this.rules[e[a]]),d&&(!u||d[0].length>u[0].length)){if(u=d,v=a,this.options.backtrack_lexer){if(l=this.test_match(d,e[a]),l!==!1)return l;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(l=this.test_match(u,e[v]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:c(function(){var l=this.next();return l||this.lex()},"lex"),begin:c(function(l){this.conditionStack.push(l)},"begin"),popState:c(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(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:c(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:c(function(l){this.begin(l)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:c(function(l,u,d,v){switch(d){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 y}();g.lexer=p;function m(){this.yy={}}return c(m,"Parser"),m.prototype=g,g.Parser=m,new m}();Et.parser=Et;var He=Et,Ne=st(Ie()),q=st(ie()),Be=st(We()),Re=st(Fe()),Ge=st(Pe());q.default.extend(Be.default);q.default.extend(Re.default);q.default.extend(Ge.default);var Kt={friday:5,saturday:6},J="",Lt="",Wt,Ft="",pt=[],gt=[],Pt=new Map,zt=[],Dt=[],ht="",Ht="",se=["active","done","crit","milestone","vert"],Nt=[],ct="",xt=!1,Bt=!1,Rt="sunday",St="saturday",Ot=0,Ve=c(function(){zt=[],Dt=[],ht="",Nt=[],wt=0,It=void 0,_t=void 0,G=[],J="",Lt="",Ht="",Wt=void 0,Ft="",pt=[],gt=[],xt=!1,Bt=!1,Ot=0,Pt=new Map,ct="",Ae(),Rt="sunday",St="saturday"},"clear"),je=c(function(t){ct=t},"setDiagramId"),Ue=c(function(t){Lt=t},"setAxisFormat"),qe=c(function(){return Lt},"getAxisFormat"),Qe=c(function(t){Wt=t},"setTickInterval"),Je=c(function(){return Wt},"getTickInterval"),Xe=c(function(t){Ft=t},"setTodayMarker"),Ze=c(function(){return Ft},"getTodayMarker"),Ke=c(function(t){J=t},"setDateFormat"),ti=c(function(){xt=!0},"enableInclusiveEndDates"),ei=c(function(){return xt},"endDatesAreInclusive"),ii=c(function(){Bt=!0},"enableTopAxis"),si=c(function(){return Bt},"topAxisEnabled"),ri=c(function(t){Ht=t},"setDisplayMode"),ai=c(function(){return Ht},"getDisplayMode"),ni=c(function(){return J},"getDateFormat"),oi=c(function(t){pt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),li=c(function(){return pt},"getIncludes"),ci=c(function(t){gt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),di=c(function(){return gt},"getExcludes"),ui=c(function(){return Pt},"getLinks"),hi=c(function(t){ht=t,zt.push(t)},"addSection"),fi=c(function(){return zt},"getSections"),ki=c(function(){let t=te(),s=10,r=0;for(;!t&&r<s;)t=te(),r++;return Dt=G,Dt},"getTasks"),re=c(function(t,s,r,i){let n=t.format(s.trim()),h=t.format("YYYY-MM-DD");return i.includes(n)||i.includes(h)?!1:r.includes("weekends")&&(t.isoWeekday()===Kt[St]||t.isoWeekday()===Kt[St]+1)||r.includes(t.format("dddd").toLowerCase())?!0:r.includes(n)||r.includes(h)},"isInvalidDate"),yi=c(function(t){Rt=t},"setWeekday"),mi=c(function(){return Rt},"getWeekday"),pi=c(function(t){St=t},"setWeekend"),ae=c(function(t,s,r,i){if(!r.length||t.manualEndTime)return;let n;t.startTime instanceof Date?n=(0,q.default)(t.startTime):n=(0,q.default)(t.startTime,s,!0),n=n.add(1,"d");let h;t.endTime instanceof Date?h=(0,q.default)(t.endTime):h=(0,q.default)(t.endTime,s,!0);let[x,D]=gi(n,h,s,r,i);t.endTime=x.toDate(),t.renderEndTime=D},"checkTaskDates"),gi=c(function(t,s,r,i,n){let h=!1,x=null,D=s.add(1e4,"d");for(;t<=s;){if(h||(x=s.toDate()),h=re(t,r,i,n),h&&(s=s.add(1,"d"),s>D))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[s,x]},"fixTaskDates"),At=c(function(t,s,r){if(r=r.trim(),c(h=>{let x=h.trim();return x==="x"||x==="X"},"isTimestampFormat")(s)&&/^\d+$/.test(r))return new Date(Number(r));let i=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(i!==null){let h=null;for(let D of i.groups.ids.split(" ")){let L=rt(D);L!==void 0&&(!h||L.endTime>h.endTime)&&(h=L)}if(h)return h.endTime;let x=new Date;return x.setHours(0,0,0,0),x}let n=(0,q.default)(r,s.trim(),!0);if(n.isValid())return n.toDate();{it.debug("Invalid date:"+r),it.debug("With date format:"+s.trim());let h=new Date(r);if(h===void 0||isNaN(h.getTime())||h.getFullYear()<-1e4||h.getFullYear()>1e4)throw new Error("Invalid date:"+r);return h}},"getStartDate"),ne=c(function(t){let s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return s!==null?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},"parseDuration"),oe=c(function(t,s,r,i=!1){r=r.trim();let n=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(n!==null){let M=null;for(let A of n.groups.ids.split(" ")){let W=rt(A);W!==void 0&&(!M||W.startTime<M.startTime)&&(M=W)}if(M)return M.startTime;let w=new Date;return w.setHours(0,0,0,0),w}let h=(0,q.default)(r,s.trim(),!0);if(h.isValid())return i&&(h=h.add(1,"d")),h.toDate();let x=(0,q.default)(t),[D,L]=ne(r);if(!Number.isNaN(D)){let M=x.add(D,L);M.isValid()&&(x=M)}return x.toDate()},"getEndDate"),wt=0,ut=c(function(t){return t===void 0?(wt=wt+1,"task"+wt):t},"parseId"),xi=c(function(t,s){let r;s.substr(0,1)===":"?r=s.substr(1,s.length):r=s;let i=r.split(","),n={};Gt(i,n,se);for(let x=0;x<i.length;x++)i[x]=i[x].trim();let h="";switch(i.length){case 1:n.id=ut(),n.startTime=t.endTime,h=i[0];break;case 2:n.id=ut(),n.startTime=At(void 0,J,i[0]),h=i[1];break;case 3:n.id=ut(i[0]),n.startTime=At(void 0,J,i[1]),h=i[2];break}return h&&(n.endTime=oe(n.startTime,J,h,xt),n.manualEndTime=(0,q.default)(h,"YYYY-MM-DD",!0).isValid(),ae(n,J,gt,pt)),n},"compileData"),bi=c(function(t,s){let r;s.substr(0,1)===":"?r=s.substr(1,s.length):r=s;let i=r.split(","),n={};Gt(i,n,se);for(let h=0;h<i.length;h++)i[h]=i[h].trim();switch(i.length){case 1:n.id=ut(),n.startTime={type:"prevTaskEnd",id:t},n.endTime={data:i[0]};break;case 2:n.id=ut(),n.startTime={type:"getStartDate",startData:i[0]},n.endTime={data:i[1]};break;case 3:n.id=ut(i[0]),n.startTime={type:"getStartDate",startData:i[1]},n.endTime={data:i[2]};break}return n},"parseData"),It,_t,G=[],le={},vi=c(function(t,s){let r={section:ht,type:ht,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},i=bi(_t,s);r.raw.startTime=i.startTime,r.raw.endTime=i.endTime,r.id=i.id,r.prevTaskId=_t,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,r.order=Ot,Ot++;let n=G.push(r);_t=r.id,le[r.id]=n-1},"addTask"),rt=c(function(t){let s=le[t];return G[s]},"findTaskById"),Ti=c(function(t,s){let r={section:ht,type:ht,description:t,task:t,classes:[]},i=xi(It,s);r.startTime=i.startTime,r.endTime=i.endTime,r.id=i.id,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,It=r,Dt.push(r)},"addTaskOrg"),te=c(function(){let t=c(function(r){let i=G[r],n="";switch(G[r].raw.startTime.type){case"prevTaskEnd":{let h=rt(i.prevTaskId);i.startTime=h.endTime;break}case"getStartDate":n=At(void 0,J,G[r].raw.startTime.startData),n&&(G[r].startTime=n);break}return G[r].startTime&&(G[r].endTime=oe(G[r].startTime,J,G[r].raw.endTime.data,xt),G[r].endTime&&(G[r].processed=!0,G[r].manualEndTime=(0,q.default)(G[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),ae(G[r],J,gt,pt))),G[r].processed},"compileTask"),s=!0;for(let[r,i]of G.entries())t(r),s=s&&i.processed;return s},"compileTasks"),$i=c(function(t,s){let r=s;dt().securityLevel!=="loose"&&(r=(0,Ne.sanitizeUrl)(s)),t.split(",").forEach(function(i){rt(i)!==void 0&&(de(i,()=>{window.open(r,"_self")}),Pt.set(i,r))}),ce(t,"clickable")},"setLink"),ce=c(function(t,s){t.split(",").forEach(function(r){let i=rt(r);i!==void 0&&i.classes.push(s)})},"setClass"),wi=c(function(t,s,r){if(dt().securityLevel!=="loose"||s===void 0)return;let i=[];if(typeof r=="string"){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let n=0;n<i.length;n++){let h=i[n].trim();h.startsWith('"')&&h.endsWith('"')&&(h=h.substr(1,h.length-2)),i[n]=h}}i.length===0&&i.push(t),rt(t)!==void 0&&de(t,()=>{Le.runFunc(s,...i)})},"setClickFun"),de=c(function(t,s){Nt.push(function(){let r=ct?`${ct}-${t}`:t,i=document.querySelector(`[id="${r}"]`);i!==null&&i.addEventListener("click",function(){s()})},function(){let r=ct?`${ct}-${t}`:t,i=document.querySelector(`[id="${r}-text"]`);i!==null&&i.addEventListener("click",function(){s()})})},"pushFun"),_i=c(function(t,s,r){t.split(",").forEach(function(i){wi(i,s,r)}),ce(t,"clickable")},"setClickEvent"),Di=c(function(t){Nt.forEach(function(s){s(t)})},"bindFunctions"),Si={getConfig:c(()=>dt().gantt,"getConfig"),clear:Ve,setDateFormat:Ke,getDateFormat:ni,enableInclusiveEndDates:ti,endDatesAreInclusive:ei,enableTopAxis:ii,topAxisEnabled:si,setAxisFormat:Ue,getAxisFormat:qe,setTickInterval:Qe,getTickInterval:Je,setTodayMarker:Xe,getTodayMarker:Ze,setAccTitle:me,getAccTitle:ye,setDiagramTitle:ke,getDiagramTitle:fe,setDiagramId:je,setDisplayMode:ri,getDisplayMode:ai,setAccDescription:he,getAccDescription:ue,addSection:hi,getSections:fi,getTasks:ki,addTask:vi,findTaskById:rt,addTaskOrg:Ti,setIncludes:oi,getIncludes:li,setExcludes:ci,getExcludes:di,setClickEvent:_i,setLink:$i,getLinks:ui,bindFunctions:Di,parseDuration:ne,isInvalidDate:re,setWeekday:yi,getWeekday:mi,setWeekend:pi};function Gt(t,s,r){let i=!0;for(;i;)i=!1,r.forEach(function(n){let h="^\\s*"+n+"\\s*$",x=new RegExp(h);t[0].match(x)&&(s[n]=!0,t.shift(1),i=!0)})}c(Gt,"getTaskTags");var mt=st(ie()),Ci=st(ze());mt.default.extend(Ci.default);var Mi=c(function(){it.debug("Something is calling, setConf, remove the call")},"setConf"),ee={monday:Ye,tuesday:Me,wednesday:Ce,thursday:Se,friday:De,saturday:_e,sunday:we},Yi=c((t,s)=>{let r=[...t].map(()=>-1/0),i=[...t].sort((h,x)=>h.startTime-x.startTime||h.order-x.order),n=0;for(let h of i)for(let x=0;x<r.length;x++)if(h.startTime>=r[x]){r[x]=h.endTime,h.order=x+s,x>n&&(n=x);break}return n},"getMaxIntersections"),K,Yt=1e4,Ei=c(function(t,s,r,i){let n=dt().gantt;i.db.setDiagramId(s);let h=dt().securityLevel,x;h==="sandbox"&&(x=$t("#i"+s));let D=h==="sandbox"?$t(x.nodes()[0].contentDocument.body):$t("body"),L=h==="sandbox"?x.nodes()[0].contentDocument:document,M=L.getElementById(s);K=M.parentElement.offsetWidth,K===void 0&&(K=1200),n.useWidth!==void 0&&(K=n.useWidth);let w=i.db.getTasks(),A=[];for(let f of w)A.push(f.type);A=k(A);let W={},N=2*n.topPadding;if(i.db.getDisplayMode()==="compact"||n.displayMode==="compact"){let f={};for(let p of w)f[p.section]===void 0?f[p.section]=[p]:f[p.section].push(p);let g=0;for(let p of Object.keys(f)){let m=Yi(f[p],g)+1;g+=m,N+=m*(n.barHeight+n.barGap),W[p]=m}}else{N+=w.length*(n.barHeight+n.barGap);for(let f of A)W[f]=w.filter(g=>g.type===f).length}M.setAttribute("viewBox","0 0 "+K+" "+N);let z=D.select(`[id="${s}"]`),S=pe().domain([ge(w,function(f){return f.startTime}),xe(w,function(f){return f.endTime})]).rangeRound([0,K-n.leftPadding-n.rightPadding]);function $(f,g){let p=f.startTime,m=g.startTime,y=0;return p>m?y=1:p<m&&(y=-1),y}c($,"taskCompare"),w.sort($),C(w,K,N),be(z,N,K,n.useMaxWidth),z.append("text").text(i.db.getDiagramTitle()).attr("x",K/2).attr("y",n.titleTopMargin).attr("class","titleText");function C(f,g,p){let m=n.barHeight,y=m+n.barGap,l=n.topPadding,u=n.leftPadding,d=ve().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(Te);E(y,l,u,g,p,f,i.db.getExcludes(),i.db.getIncludes()),V(u,l,g,p),I(f,y,l,u,m,d,g),Y(y,l),b(u,l,g,p)}c(C,"makeGantt");function I(f,g,p,m,y,l,u){f.sort((a,o)=>a.vert===o.vert?0:a.vert?1:-1);let d=[...new Set(f.map(a=>a.order))].map(a=>f.find(o=>o.order===a));z.append("g").selectAll("rect").data(d).enter().append("rect").attr("x",0).attr("y",function(a,o){return o=a.order,o*g+p-2}).attr("width",function(){return u-n.rightPadding/2}).attr("height",g).attr("class",function(a){for(let[o,T]of A.entries())if(a.type===T)return"section section"+o%n.numberSectionStyles;return"section section0"}).enter();let v=z.append("g").selectAll("rect").data(f).enter(),e=i.db.getLinks();if(v.append("rect").attr("id",function(a){return s+"-"+a.id}).attr("rx",3).attr("ry",3).attr("x",function(a){return a.milestone?S(a.startTime)+m+.5*(S(a.endTime)-S(a.startTime))-.5*y:S(a.startTime)+m}).attr("y",function(a,o){return o=a.order,a.vert?n.gridLineStartPadding:o*g+p}).attr("width",function(a){return a.milestone?y:a.vert?.08*y:S(a.renderEndTime||a.endTime)-S(a.startTime)}).attr("height",function(a){return a.vert?w.length*(n.barHeight+n.barGap)+n.barHeight*2:y}).attr("transform-origin",function(a,o){return o=a.order,(S(a.startTime)+m+.5*(S(a.endTime)-S(a.startTime))).toString()+"px "+(o*g+p+.5*y).toString()+"px"}).attr("class",function(a){let o="task",T="";a.classes.length>0&&(T=a.classes.join(" "));let O=0;for(let[F,P]of A.entries())a.type===P&&(O=F%n.numberSectionStyles);let _="";return a.active?a.crit?_+=" activeCrit":_=" active":a.done?a.crit?_=" doneCrit":_=" done":a.crit&&(_+=" crit"),_.length===0&&(_=" task"),a.milestone&&(_=" milestone "+_),a.vert&&(_=" vert "+_),_+=O,_+=" "+T,o+_}),v.append("text").attr("id",function(a){return s+"-"+a.id+"-text"}).text(function(a){return a.task}).attr("font-size",n.fontSize).attr("x",function(a){let o=S(a.startTime),T=S(a.renderEndTime||a.endTime);if(a.milestone&&(o+=.5*(S(a.endTime)-S(a.startTime))-.5*y,T=o+y),a.vert)return S(a.startTime)+m;let O=this.getBBox().width;return O>T-o?T+O+1.5*n.leftPadding>u?o+m-5:T+m+5:(T-o)/2+o+m}).attr("y",function(a,o){return a.vert?n.gridLineStartPadding+w.length*(n.barHeight+n.barGap)+60:(o=a.order,o*g+n.barHeight/2+(n.fontSize/2-2)+p)}).attr("text-height",y).attr("class",function(a){let o=S(a.startTime),T=S(a.endTime);a.milestone&&(T=o+y);let O=this.getBBox().width,_="";a.classes.length>0&&(_=a.classes.join(" "));let F=0;for(let[ft,H]of A.entries())a.type===H&&(F=ft%n.numberSectionStyles);let P="";return a.active&&(a.crit?P="activeCritText"+F:P="activeText"+F),a.done?a.crit?P=P+" doneCritText"+F:P=P+" doneText"+F:a.crit&&(P=P+" critText"+F),a.milestone&&(P+=" milestoneText"),a.vert&&(P+=" vertText"),O>T-o?T+O+1.5*n.leftPadding>u?_+" taskTextOutsideLeft taskTextOutside"+F+" "+P:_+" taskTextOutsideRight taskTextOutside"+F+" "+P+" width-"+O:_+" taskText taskText"+F+" "+P+" width-"+O}),dt().securityLevel==="sandbox"){let a;a=$t("#i"+s);let o=a.nodes()[0].contentDocument;v.filter(function(T){return e.has(T.id)}).each(function(T){var O=o.querySelector("#"+CSS.escape(s+"-"+T.id)),_=o.querySelector("#"+CSS.escape(s+"-"+T.id+"-text"));let F=O.parentNode;var P=o.createElement("a");P.setAttribute("xlink:href",e.get(T.id)),P.setAttribute("target","_top"),F.appendChild(P),P.appendChild(O),P.appendChild(_)})}}c(I,"drawRects");function E(f,g,p,m,y,l,u,d){if(u.length===0&&d.length===0)return;let v,e;for(let{startTime:_,endTime:F}of l)(v===void 0||_<v)&&(v=_),(e===void 0||F>e)&&(e=F);if(!v||!e)return;if((0,mt.default)(e).diff((0,mt.default)(v),"year")>5){it.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let a=i.db.getDateFormat(),o=[],T=null,O=(0,mt.default)(v);for(;O.valueOf()<=e;)i.db.isInvalidDate(O,a,u,d)?T?T.end=O:T={start:O,end:O}:T&&(o.push(T),T=null),O=O.add(1,"d");z.append("g").selectAll("rect").data(o).enter().append("rect").attr("id",_=>s+"-exclude-"+_.start.format("YYYY-MM-DD")).attr("x",_=>S(_.start.startOf("day"))+p).attr("y",n.gridLineStartPadding).attr("width",_=>S(_.end.endOf("day"))-S(_.start.startOf("day"))).attr("height",y-g-n.gridLineStartPadding).attr("transform-origin",function(_,F){return(S(_.start)+p+.5*(S(_.end)-S(_.start))).toString()+"px "+(F*f+.5*y).toString()+"px"}).attr("class","exclude-range")}c(E,"drawExcludeDays");function R(f,g,p,m){if(p<=0||f>g)return 1/0;let y=g-f,l=mt.default.duration({[m??"day"]:p}).asMilliseconds();return l<=0?1/0:Math.ceil(y/l)}c(R,"getEstimatedTickCount");function V(f,g,p,m){let y=i.db.getDateFormat(),l=i.db.getAxisFormat(),u;l?u=l:y==="D"?u="%d":u=n.axisFormat??"%Y-%m-%d";let d=$e(S).tickSize(-m+g+n.gridLineStartPadding).tickFormat(jt(u)),v=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||n.tickInterval);if(v!==null){let e=parseInt(v[1],10);if(isNaN(e)||e<=0)it.warn(`Invalid tick interval value: "${v[1]}". Skipping custom tick interval.`);else{let a=v[2],o=i.db.getWeekday()||n.weekday,T=S.domain(),O=T[0],_=T[1],F=R(O,_,e,a);if(F>Yt)it.warn(`The tick interval "${e}${a}" would generate ${F} ticks, which exceeds the maximum allowed (${Yt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(a){case"millisecond":d.ticks(Zt.every(e));break;case"second":d.ticks(Xt.every(e));break;case"minute":d.ticks(Jt.every(e));break;case"hour":d.ticks(Qt.every(e));break;case"day":d.ticks(qt.every(e));break;case"week":d.ticks(ee[o].every(e));break;case"month":d.ticks(Ut.every(e));break}}}if(z.append("g").attr("class","grid").attr("transform","translate("+f+", "+(m-50)+")").call(d).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||n.topAxis){let e=Ee(S).tickSize(-m+g+n.gridLineStartPadding).tickFormat(jt(u));if(v!==null){let a=parseInt(v[1],10);if(isNaN(a)||a<=0)it.warn(`Invalid tick interval value: "${v[1]}". Skipping custom tick interval.`);else{let o=v[2],T=i.db.getWeekday()||n.weekday,O=S.domain(),_=O[0],F=O[1];if(R(_,F,a,o)<=Yt)switch(o){case"millisecond":e.ticks(Zt.every(a));break;case"second":e.ticks(Xt.every(a));break;case"minute":e.ticks(Jt.every(a));break;case"hour":e.ticks(Qt.every(a));break;case"day":e.ticks(qt.every(a));break;case"week":e.ticks(ee[T].every(a));break;case"month":e.ticks(Ut.every(a));break}}}z.append("g").attr("class","grid").attr("transform","translate("+f+", "+g+")").call(e).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}c(V,"makeGrid");function Y(f,g){let p=0,m=Object.keys(W).map(y=>[y,W[y]]);z.append("g").selectAll("text").data(m).enter().append(function(y){let l=y[0].split(Oe.lineBreakRegex),u=-(l.length-1)/2,d=L.createElementNS("http://www.w3.org/2000/svg","text");d.setAttribute("dy",u+"em");for(let[v,e]of l.entries()){let a=L.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=e,d.appendChild(a)}return d}).attr("x",10).attr("y",function(y,l){if(l>0)for(let u=0;u<l;u++)return p+=m[l-1][1],y[1]*f/2+p*f+g;else return y[1]*f/2+g}).attr("font-size",n.sectionFontSize).attr("class",function(y){for(let[l,u]of A.entries())if(y[0]===u)return"sectionTitle sectionTitle"+l%n.numberSectionStyles;return"sectionTitle"})}c(Y,"vertLabels");function b(f,g,p,m){let y=i.db.getTodayMarker();if(y==="off")return;let l=z.append("g").attr("class","today"),u=new Date,d=l.append("line");d.attr("x1",S(u)+f).attr("x2",S(u)+f).attr("y1",n.titleTopMargin).attr("y2",m-n.titleTopMargin).attr("class","today"),y!==""&&d.attr("style",y.replace(/,/g,";"))}c(b,"drawToday");function k(f){let g={},p=[];for(let m=0,y=f.length;m<y;++m)Object.prototype.hasOwnProperty.call(g,f[m])||(g[f[m]]=!0,p.push(f[m]));return p}c(k,"checkUnique")},"draw"),Oi={setConf:Mi,draw:Ei},Ai=c(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"),Ii=Ai,Wi={parser:He,db:Si,renderer:Oi,styles:Ii};export{Wi as diagram};
@@ -0,0 +1,106 @@
1
+ import{s as lt}from"./chunk-T5OCTHI4-CZYMg5sc.js";import{c as ht}from"./chunk-JQRUD6KW-DAwg-yCU.js";import{d as $t}from"./wardley-L42UT6IY-5TKZOOLJ-DZr11zBG.js";import{o as mt,n as gt,l as pt,a as ft,s as yt,e as xt,m as h,I as Q,p as k,i as ut,q as F,k as bt,z as wt,u as kt,C as M,L as Bt,E as Et,O as Ct}from"./index-B5WxtMpv.js";var u={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Lt=Et.gitGraph,W=h(()=>Bt({...Lt,...Q().gitGraph}),"getConfig"),c=new lt(()=>{let t=W(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function V(){return Ct({length:7})}h(V,"getID");function et(t,r){let e=Object.create(null);return t.reduce((i,n)=>{let d=r(n);return e[d]||(e[d]=!0,i.push(n)),i},[])}h(et,"uniqBy");var Tt=h(function(t){c.records.direction=t},"setDirection"),Mt=h(function(t){k.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{c.records.options=JSON.parse(t)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),vt=h(function(){return c.records.options},"getOptions"),It=h(function(t){let r=t.msg,e=t.id,i=t.type,n=t.tags;k.info("commit",r,e,i,n),k.debug("Entering commit:",r,e,i,n);let d=W();e=M.sanitizeText(e,d),r=M.sanitizeText(r,d),n=n==null?void 0:n.map(o=>M.sanitizeText(o,d));let a={id:e||c.records.seq+"-"+V(),message:r,seq:c.records.seq++,type:i??u.NORMAL,tags:n??[],parents:c.records.head==null?[]:[c.records.head.id],branch:c.records.currBranch};c.records.head=a,k.info("main branch",d.mainBranchName),c.records.commits.has(a.id)&&k.warn(`Commit ID ${a.id} already exists`),c.records.commits.set(a.id,a),c.records.branches.set(c.records.currBranch,a.id),k.debug("in pushCommit "+a.id)},"commit"),Rt=h(function(t){let r=t.name,e=t.order;if(r=M.sanitizeText(r,W()),c.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);c.records.branches.set(r,c.records.head!=null?c.records.head.id:null),c.records.branchConfig.set(r,{name:r,order:e}),ot(r),k.debug("in createBranch")},"branch"),Ot=h(t=>{let r=t.branch,e=t.id,i=t.type,n=t.tags,d=W();r=M.sanitizeText(r,d),e&&(e=M.sanitizeText(e,d));let a=c.records.branches.get(c.records.currBranch),o=c.records.branches.get(r),l=a?c.records.commits.get(a):void 0,m=o?c.records.commits.get(o):void 0;if(l&&m&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(c.records.currBranch===r){let s=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},s}if(l===void 0||!l){let s=new Error(`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`);throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},s}if(!c.records.branches.has(r)){let s=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},s}if(m===void 0||!m){let s=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},s}if(l===m){let s=new Error('Incorrect usage of "merge". Both branches have same head');throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},s}if(e&&c.records.commits.has(e)){let s=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw s.hash={text:`merge ${r} ${e} ${i} ${n==null?void 0:n.join(" ")}`,token:`merge ${r} ${e} ${i} ${n==null?void 0:n.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${i} ${n==null?void 0:n.join(" ")}`]},s}let g=o||"",$={id:e||`${c.records.seq}-${V()}`,message:`merged branch ${r} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,g],branch:c.records.currBranch,type:u.MERGE,customType:i,customId:!!e,tags:n??[]};c.records.head=$,c.records.commits.set($.id,$),c.records.branches.set(c.records.currBranch,$.id),k.debug(c.records.branches),k.debug("in mergeBranch")},"merge"),Pt=h(function(t){let r=t.id,e=t.targetId,i=t.tags,n=t.parent;k.debug("Entering cherryPick:",r,e,i);let d=W();if(r=M.sanitizeText(r,d),e=M.sanitizeText(e,d),i=i==null?void 0:i.map(l=>M.sanitizeText(l,d)),n=M.sanitizeText(n,d),!r||!c.records.commits.has(r)){let l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},l}let a=c.records.commits.get(r);if(a===void 0||!a)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&!(Array.isArray(a.parents)&&a.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=a.branch;if(a.type===u.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!c.records.commits.has(e)){if(o===c.records.currBranch){let $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let l=c.records.branches.get(c.records.currBranch);if(l===void 0||!l){let $=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let m=c.records.commits.get(l);if(m===void 0||!m){let $=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let g={id:c.records.seq+"-"+V(),message:`cherry-picked ${a==null?void 0:a.message} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,a.id],branch:c.records.currBranch,type:u.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${a.id}${a.type===u.MERGE?`|parent:${n}`:""}`]};c.records.head=g,c.records.commits.set(g.id,g),c.records.branches.set(c.records.currBranch,g.id),k.debug(c.records.branches),k.debug("in cherryPick")}},"cherryPick"),ot=h(function(t){if(t=M.sanitizeText(t,W()),c.records.branches.has(t)){c.records.currBranch=t;let r=c.records.branches.get(c.records.currBranch);r===void 0||!r?c.records.head=null:c.records.head=c.records.commits.get(r)??null}else{let r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function U(t,r,e){let i=t.indexOf(r);i===-1?t.push(e):t.splice(i,1,e)}h(U,"upsert");function X(t){let r=t.reduce((n,d)=>n.seq>d.seq?n:d,t[0]),e="";t.forEach(function(n){n===r?e+=" *":e+=" |"});let i=[e,r.id,r.seq];for(let n in c.records.branches)c.records.branches.get(n)===r.id&&i.push(n);if(k.debug(i.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let n=c.records.commits.get(r.parents[0]);U(t,r,n),r.parents[1]&&t.push(c.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){let n=c.records.commits.get(r.parents[0]);U(t,r,n)}}t=et(t,n=>n.id),X(t)}h(X,"prettyPrintCommitHistory");var At=h(function(){k.debug(c.records.commits);let t=at()[0];X([t])},"prettyPrint"),Gt=h(function(){c.reset(),kt()},"clear"),St=h(function(){return[...c.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),Ht=h(function(){return c.records.branches},"getBranches"),Wt=h(function(){return c.records.commits},"getCommits"),at=h(function(){let t=[...c.records.commits.values()];return t.forEach(function(r){k.debug(r.id)}),t.sort((r,e)=>r.seq-e.seq),t},"getCommitsArray"),qt=h(function(){return c.records.currBranch},"getCurrentBranch"),zt=h(function(){return c.records.direction},"getDirection"),_t=h(function(){return c.records.head},"getHead"),it={commitType:u,getConfig:W,setDirection:Tt,setOptions:Mt,getOptions:vt,commit:It,branch:Rt,merge:Ot,cherryPick:Pt,checkout:ot,prettyPrint:At,clear:Gt,getBranchesAsObjArray:St,getBranches:Ht,getCommits:Wt,getCommitsArray:at,getCurrentBranch:qt,getDirection:zt,getHead:_t,setAccTitle:xt,getAccTitle:yt,getAccDescription:ft,setAccDescription:pt,setDiagramTitle:gt,getDiagramTitle:mt},Dt=h((t,r)=>{ht(t,r),t.dir&&r.setDirection(t.dir);for(let e of t.statements)Ft(e,r)},"populate"),Ft=h((t,r)=>{let e={Commit:h(i=>r.commit(Nt(i)),"Commit"),Branch:h(i=>r.branch(jt(i)),"Branch"),Merge:h(i=>r.merge(Kt(i)),"Merge"),Checkout:h(i=>r.checkout(Vt(i)),"Checkout"),CherryPicking:h(i=>r.cherryPick(Yt(i)),"CherryPicking")}[t.$type];e?e(t):k.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Nt=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?u[t.type]:u.NORMAL,tags:t.tags??void 0}),"parseCommit"),jt=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Kt=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?u[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Vt=h(t=>t.branch,"parseCheckout"),Yt=h(t=>{var r;return{id:t.id,targetId:"",tags:((r=t.tags)==null?void 0:r.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Ut={parse:h(async t=>{let r=await $t("gitGraph",t);k.debug(r),Dt(r,it)},"parse")},P=10,A=40,v=4,I=2,S=8,Y=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,Z=new Set(["redux-color","redux-dark-color"]),Jt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),L=new Map,T=new Map,j=30,_=new Map,K=[],R=0,f="LR",Qt=h(()=>{L.clear(),T.clear(),_.clear(),R=0,K=[],f="LR"},"clear"),nt=h(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(e=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=e.trim(),r.appendChild(i)}),r},"drawText"),st=h(t=>{let r,e,i;return f==="BT"?(e=h((n,d)=>n<=d,"comparisonFunc"),i=1/0):(e=h((n,d)=>n>=d,"comparisonFunc"),i=0),t.forEach(n=>{var a,o;let d=f==="TB"||f=="BT"?(a=T.get(n))==null?void 0:a.y:(o=T.get(n))==null?void 0:o.x;d!==void 0&&e(d,i)&&(r=n,i=d)}),r},"findClosestParent"),Xt=h(t=>{let r="",e=1/0;return t.forEach(i=>{let n=T.get(i).y;n<=e&&(r=i,e=n)}),r||void 0},"findClosestParentBT"),Zt=h((t,r,e)=>{let i=e,n=e,d=[];t.forEach(a=>{let o=r.get(a);if(!o)throw new Error(`Commit not found for key ${a}`);o.parents.length?(i=rr(o),n=Math.max(i,n)):d.push(o),er(o,i)}),i=n,d.forEach(a=>{or(a,i,e)}),t.forEach(a=>{let o=r.get(a);if(o!=null&&o.parents.length){let l=Xt(o.parents);i=T.get(l).y-A,i<=n&&(n=i);let m=L.get(o.branch).pos,g=i-P;T.set(o.id,{x:m,y:g})}})},"setParallelBTPos"),tr=h(t=>{var i;let r=st(t.parents.filter(n=>n!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);let e=(i=T.get(r))==null?void 0:i.y;if(e===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return e},"findClosestParentPos"),rr=h(t=>tr(t)+A,"calculateCommitPosition"),er=h((t,r)=>{let e=L.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);let i=e.pos,n=r+P;return T.set(t.id,{x:i,y:n}),{x:i,y:n}},"setCommitPosition"),or=h((t,r,e)=>{let i=L.get(t.branch);if(!i)throw new Error(`Branch not found for commit ${t.id}`);let n=r+e,d=i.pos;T.set(t.id,{x:d,y:n})},"setRootPosition"),ar=h((t,r,e,i,n,d)=>{let{theme:a}=F(),o=Y.has(a??""),l=Z.has(a??""),m=Jt.has(a??"");if(d===u.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(o?3:0)).attr("y",e.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${H(n,S,l)} ${i}-outer`),t.append("rect").attr("x",e.x-6+(o?2:0)).attr("y",e.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${H(n,S,l)} ${i}-inner`);else if(d===u.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${i}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",o?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",o?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`);else{let g=t.append("circle");if(g.attr("cx",e.x),g.attr("cy",e.y),g.attr("r",o?7:10),g.attr("class",`commit ${r.id} commit${H(n,S,l)}`),d===u.MERGE){let $=t.append("circle");$.attr("cx",e.x),$.attr("cy",e.y),$.attr("r",o?5:6),$.attr("class",`commit ${i} ${r.id} commit${H(n,S,l)}`)}if(d===u.REVERSE){let $=t.append("path"),s=o?4:5;$.attr("d",`M ${e.x-s},${e.y-s}L${e.x+s},${e.y+s}M${e.x-s},${e.y+s}L${e.x+s},${e.y-s}`).attr("class",`commit ${i} ${r.id} commit${H(n,S,l)}`)}}},"drawCommitBullet"),ir=h((t,r,e,i,n)=>{var d;if(r.type!==u.CHERRY_PICK&&(r.customId&&r.type===u.MERGE||r.type!==u.MERGE)&&n.showCommitLabel){let a=t.append("g"),o=a.insert("rect").attr("class","commit-label-bkg"),l=a.append("text").attr("x",i).attr("y",e.y+25).attr("class","commit-label").text(r.id),m=(d=l.node())==null?void 0:d.getBBox();if(m&&(o.attr("x",e.posWithOffset-m.width/2-I).attr("y",e.y+13.5).attr("width",m.width+2*I).attr("height",m.height+2*I),f==="TB"||f==="BT"?(o.attr("x",e.x-(m.width+4*v+5)).attr("y",e.y-12),l.attr("x",e.x-(m.width+4*v)).attr("y",e.y+m.height-12)):l.attr("x",e.posWithOffset-m.width/2),n.rotateCommitLabel))if(f==="TB"||f==="BT")l.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),o.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{let g=-7.5-(m.width+10)/25*9.5,$=10+m.width/25*8.5;a.attr("transform","translate("+g+", "+$+") rotate(-45, "+i+", "+e.y+")")}}},"drawCommitLabel"),nr=h((t,r,e,i)=>{var n;if(r.tags.length>0){let d=0,a=0,o=0,l=[];for(let m of r.tags.reverse()){let g=t.insert("polygon"),$=t.append("circle"),s=t.append("text").attr("y",e.y-16-d).attr("class","tag-label").text(m),y=(n=s.node())==null?void 0:n.getBBox();if(!y)throw new Error("Tag bbox not found");a=Math.max(a,y.width),o=Math.max(o,y.height),s.attr("x",e.posWithOffset-y.width/2),l.push({tag:s,hole:$,rect:g,yOffset:d}),d+=20}for(let{tag:m,hole:g,rect:$,yOffset:s}of l){let y=o/2,p=e.y-19.2-s;if($.attr("class","tag-label-bkg").attr("points",`
2
+ ${i-a/2-v/2},${p+I}
3
+ ${i-a/2-v/2},${p-I}
4
+ ${e.posWithOffset-a/2-v},${p-y-I}
5
+ ${e.posWithOffset+a/2+v},${p-y-I}
6
+ ${e.posWithOffset+a/2+v},${p+y+I}
7
+ ${e.posWithOffset-a/2-v},${p+y+I}`),g.attr("cy",p).attr("cx",i-a/2+v/2).attr("r",1.5).attr("class","tag-hole"),f==="TB"||f==="BT"){let x=i+s;$.attr("class","tag-label-bkg").attr("points",`
8
+ ${e.x},${x+2}
9
+ ${e.x},${x-2}
10
+ ${e.x+P},${x-y-2}
11
+ ${e.x+P+a+4},${x-y-2}
12
+ ${e.x+P+a+4},${x+y+2}
13
+ ${e.x+P},${x+y+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+i+")"),g.attr("cx",e.x+v/2).attr("cy",x).attr("transform","translate(12,12) rotate(45, "+e.x+","+i+")"),m.attr("x",e.x+5).attr("y",x+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+i+")")}}}},"drawCommitTags"),sr=h(t=>{switch(t.customType??t.type){case u.NORMAL:return"commit-normal";case u.REVERSE:return"commit-reverse";case u.HIGHLIGHT:return"commit-highlight";case u.MERGE:return"commit-merge";case u.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),cr=h((t,r,e,i)=>{let n={x:0,y:0};if(t.parents.length>0){let d=st(t.parents);if(d){let a=i.get(d)??n;return r==="TB"?a.y+A:r==="BT"?(i.get(t.id)??n).y-A:a.x+A}}else return r==="TB"?j:r==="BT"?(i.get(t.id)??n).y-A:0;return 0},"calculatePosition"),dr=h((t,r,e)=>{var l,m;let i=f==="BT"&&e?r:r+P,n=(l=L.get(t.branch))==null?void 0:l.pos,d=f==="TB"||f==="BT"?(m=L.get(t.branch))==null?void 0:m.pos:i;if(d===void 0||n===void 0)throw new Error(`Position were undefined for commit ${t.id}`);let a=Y.has(F().theme??""),o=f==="TB"||f==="BT"?i:n+(a?J/2+1:-2);return{x:d,y:o,posWithOffset:i}},"getCommitPosition"),rt=h((t,r,e,i)=>{let n=t.append("g").attr("class","commit-bullets"),d=t.append("g").attr("class","commit-labels"),a=f==="TB"||f==="BT"?j:0,o=[...r.keys()],l=i.parallelCommits??!1,m=h(($,s)=>{var x,E;let y=(x=r.get($))==null?void 0:x.seq,p=(E=r.get(s))==null?void 0:E.seq;return y!==void 0&&p!==void 0?y-p:0},"sortKeys"),g=o.sort(m);f==="BT"&&(l&&Zt(g,r,a),g=g.reverse()),g.forEach($=>{var p;let s=r.get($);if(!s)throw new Error(`Commit not found for key ${$}`);l&&(a=cr(s,f,a,T));let y=dr(s,a,l);if(e){let x=sr(s),E=s.customType??s.type,w=((p=L.get(s.branch))==null?void 0:p.index)??0;ar(n,s,y,x,w,E),ir(d,s,y,a,i),nr(d,s,y,a)}f==="TB"||f==="BT"?T.set(s.id,{x:y.x,y:y.posWithOffset}):T.set(s.id,{x:y.posWithOffset,y:y.y}),a=f==="BT"&&l?a+A:a+A+P,a>R&&(R=a)})},"drawCommits"),lr=h((t,r,e,i,n)=>{let d=(f==="TB"||f==="BT"?e.x<i.x:e.y<i.y)?r.branch:t.branch,a=h(l=>l.branch===d,"isOnBranchToGetCurve"),o=h(l=>l.seq>t.seq&&l.seq<r.seq,"isBetweenCommits");return[...n.values()].some(l=>o(l)&&a(l))},"shouldRerouteArrow"),D=h((t,r,e=0)=>{let i=t+Math.abs(t-r)/2;if(e>5)return i;if(K.every(d=>Math.abs(d-i)>=10))return K.push(i),i;let n=Math.abs(t-r);return D(t,r-n/5,e+1)},"findLane"),hr=h((t,r,e,i)=>{var x,E,w,q,O;let{theme:n}=F(),d=Z.has(n??""),a=T.get(r.id),o=T.get(e.id);if(a===void 0||o===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);let l=lr(r,e,a,o,i),m="",g="",$=0,s=0,y=(x=L.get(e.branch))==null?void 0:x.index;e.type===u.MERGE&&r.id!==e.parents[0]&&(y=(E=L.get(r.branch))==null?void 0:E.index);let p;if(l){m="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",$=10,s=10;let B=a.y<o.y?D(a.y,o.y):D(o.y,a.y),b=a.x<o.x?D(a.x,o.x):D(o.x,a.x);f==="TB"?a.x<o.x?p=`M ${a.x} ${a.y} L ${b-$} ${a.y} ${g} ${b} ${a.y+s} L ${b} ${o.y-$} ${m} ${b+s} ${o.y} L ${o.x} ${o.y}`:(y=(w=L.get(r.branch))==null?void 0:w.index,p=`M ${a.x} ${a.y} L ${b+$} ${a.y} ${m} ${b} ${a.y+s} L ${b} ${o.y-$} ${g} ${b-s} ${o.y} L ${o.x} ${o.y}`):f==="BT"?a.x<o.x?p=`M ${a.x} ${a.y} L ${b-$} ${a.y} ${m} ${b} ${a.y-s} L ${b} ${o.y+$} ${g} ${b+s} ${o.y} L ${o.x} ${o.y}`:(y=(q=L.get(r.branch))==null?void 0:q.index,p=`M ${a.x} ${a.y} L ${b+$} ${a.y} ${g} ${b} ${a.y-s} L ${b} ${o.y+$} ${m} ${b-s} ${o.y} L ${o.x} ${o.y}`):a.y<o.y?p=`M ${a.x} ${a.y} L ${a.x} ${B-$} ${m} ${a.x+s} ${B} L ${o.x-$} ${B} ${g} ${o.x} ${B+s} L ${o.x} ${o.y}`:(y=(O=L.get(r.branch))==null?void 0:O.index,p=`M ${a.x} ${a.y} L ${a.x} ${B+$} ${g} ${a.x+s} ${B} L ${o.x-$} ${B} ${m} ${o.x} ${B-s} L ${o.x} ${o.y}`)}else m="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,s=20,f==="TB"?(a.x<o.x&&(e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${a.x} ${o.y-$} ${m} ${a.x+s} ${o.y} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${o.x-$} ${a.y} ${g} ${o.x} ${a.y+s} L ${o.x} ${o.y}`),a.x>o.x&&(m="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,s=20,e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${a.x} ${o.y-$} ${g} ${a.x-s} ${o.y} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${o.x+$} ${a.y} ${m} ${o.x} ${a.y+s} L ${o.x} ${o.y}`),a.x===o.x&&(p=`M ${a.x} ${a.y} L ${o.x} ${o.y}`)):f==="BT"?(a.x<o.x&&(e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${a.x} ${o.y+$} ${g} ${a.x+s} ${o.y} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${o.x-$} ${a.y} ${m} ${o.x} ${a.y-s} L ${o.x} ${o.y}`),a.x>o.x&&(m="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,s=20,e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${a.x} ${o.y+$} ${m} ${a.x-s} ${o.y} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${o.x+$} ${a.y} ${g} ${o.x} ${a.y-s} L ${o.x} ${o.y}`),a.x===o.x&&(p=`M ${a.x} ${a.y} L ${o.x} ${o.y}`)):(a.y<o.y&&(e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${o.x-$} ${a.y} ${g} ${o.x} ${a.y+s} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${a.x} ${o.y-$} ${m} ${a.x+s} ${o.y} L ${o.x} ${o.y}`),a.y>o.y&&(e.type===u.MERGE&&r.id!==e.parents[0]?p=`M ${a.x} ${a.y} L ${o.x-$} ${a.y} ${m} ${o.x} ${a.y-s} L ${o.x} ${o.y}`:p=`M ${a.x} ${a.y} L ${a.x} ${o.y+$} ${g} ${a.x+s} ${o.y} L ${o.x} ${o.y}`),a.y===o.y&&(p=`M ${a.x} ${a.y} L ${o.x} ${o.y}`));if(p===void 0)throw new Error("Line definition not found");t.append("path").attr("d",p).attr("class","arrow arrow"+H(y,S,d))},"drawArrow"),$r=h((t,r)=>{let e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(i=>{let n=r.get(i);n.parents&&n.parents.length>0&&n.parents.forEach(d=>{hr(e,r.get(d),n,r)})})},"drawArrows"),mr=h((t,r,e,i)=>{let{look:n,theme:d,themeVariables:a}=F(),{dropShadow:o,THEME_COLOR_LIMIT:l}=a,m=Y.has(d??""),g=Z.has(d??""),$=t.append("g");r.forEach((s,y)=>{var tt;let p=H(y,m?l:S,g),x=(tt=L.get(s.name))==null?void 0:tt.pos;if(x===void 0)throw new Error(`Position not found for branch ${s.name}`);let E=f==="TB"||f==="BT"?x:m?x+J/2+1:x-2,w=$.append("line");w.attr("x1",0),w.attr("y1",E),w.attr("x2",R),w.attr("y2",E),w.attr("class","branch branch"+p),f==="TB"?(w.attr("y1",j),w.attr("x1",x),w.attr("y2",R),w.attr("x2",x)):f==="BT"&&(w.attr("y1",R),w.attr("x1",x),w.attr("y2",j),w.attr("x2",x)),K.push(E);let q=s.name,O=nt(q),B=$.insert("rect"),b=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+p);b.node().appendChild(O);let C=O.getBBox(),N=m?0:4,G=m?16:0,z=m?J:0;n==="neo"&&B.attr("data-look","neo"),B.attr("class","branchLabelBkg label"+p).attr("style",n==="neo"?`filter:${m?`url(#${i}-drop-shadow)`:o}`:"").attr("rx",N).attr("ry",N).attr("x",-C.width-4-(e.rotateCommitLabel===!0?30:0)).attr("y",-C.height/2+10).attr("width",C.width+18+G).attr("height",C.height+4+z),b.attr("transform","translate("+(-C.width-14-(e.rotateCommitLabel===!0?30:0)+G/2)+", "+(E-C.height/2-2)+")"),f==="TB"?(B.attr("x",x-C.width/2-10).attr("y",0),b.attr("transform","translate("+(x-C.width/2-5)+", 0)"),m&&(B.attr("transform",`translate(${-G/2-3}, ${-z-10})`),b.attr("transform","translate("+(x-C.width/2-5)+", "+(-z*2+7)+")"))):f==="BT"?(B.attr("x",x-C.width/2-10).attr("y",R),b.attr("transform","translate("+(x-C.width/2-5)+", "+R+")"),m&&(B.attr("transform",`translate(${-G/2-3}, ${z+10})`),b.attr("transform","translate("+(x-C.width/2-5)+", "+(R+z*2+4)+")"))):B.attr("transform","translate(-19, "+(E-12-z/2)+")")})},"drawBranches"),gr=h(function(t,r,e,i,n){return L.set(t,{pos:r,index:e}),r+=50+(n?40:0)+(f==="TB"||f==="BT"?i.width/2:0),r},"setBranchPosition"),pr=h(function(t,r,e,i){Qt(),k.debug("in gitgraph renderer",t+`
14
+ `,"id:",r,e);let n=i.db;if(!n.getConfig){k.error("getConfig method is not available on db");return}let d=n.getConfig(),a=d.rotateCommitLabel??!1;_=n.getCommits();let o=n.getBranchesAsObjArray();f=n.getDirection();let l=ut(`[id="${r}"]`),{look:m,theme:g,themeVariables:$}=F(),{useGradient:s,gradientStart:y,gradientStop:p,filterColor:x}=$;if(s){let w=l.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");w.append("stop").attr("offset","0%").attr("stop-color",y).attr("stop-opacity",1),w.append("stop").attr("offset","100%").attr("stop-color",p).attr("stop-opacity",1)}m==="neo"&&Y.has(g??"")&&l.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",x);let E=0;o.forEach((w,q)=>{var G;let O=nt(w.name),B=l.append("g"),b=B.insert("g").attr("class","branchLabel"),C=b.insert("g").attr("class","label branch-label");(G=C.node())==null||G.appendChild(O);let N=O.getBBox();E=gr(w.name,E,q,N,a),C.remove(),b.remove(),B.remove()}),rt(l,_,!1,d),d.showBranches&&mr(l,o,d,r),$r(l,_),rt(l,_,!0,d),bt.insertTitle(l,"gitTitleText",d.titleTopMargin??0,n.getDiagramTitle()),wt(void 0,l,d.diagramPadding,d.useMaxWidth)},"draw"),fr={draw:pr},ct=8,dt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),yr=new Set(["redux-color","redux-dark-color"]),xr=new Set(["neo","neo-dark"]),ur=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),br=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),wr=h(t=>{let{svgId:r}=t,e="";if(t.useGradient&&r)for(let i=0;i<t.THEME_COLOR_LIMIT;i++)e+=`
15
+ .label${i} { fill: ${t.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${t.strokeWidth};}
16
+ `;return e},"genGitGraphGradient"),kr=h(t=>{let r=Q(),{theme:e,themeVariables:i}=r,{borderColorArray:n}=i,d=dt.has(e);if(xr.has(e)){let a="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(o===0)a+=`
17
+ .branch-label${o} { fill: ${t.nodeBorder};}
18
+ .commit${o} { stroke: ${t.nodeBorder}; }
19
+ .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
20
+ .arrow${o} { stroke: ${t.nodeBorder}; }
21
+ .commit-bullets { fill: ${t.nodeBorder}; }
22
+ .commit-cherry-pick${o} { stroke: ${t.nodeBorder}; }
23
+ ${wr(t)}`;else{let l=o%ct;a+=`
24
+ .branch-label${o} { fill: ${t["gitBranchLabel"+l]}; }
25
+ .commit${o} { stroke: ${t["git"+l]}; fill: ${t["git"+l]}; }
26
+ .commit-highlight${o} { stroke: ${t["gitInv"+l]}; fill: ${t["gitInv"+l]}; }
27
+ .arrow${o} { stroke: ${t["git"+l]}; }
28
+ `}return a}else if(yr.has(e)){let a="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(o===0)a+=`
29
+ .branch-label${o} { fill: ${t.nodeBorder}; ${d?`font-weight:${t.noteFontWeight}`:""} }
30
+ .commit${o} { stroke: ${t.nodeBorder}; }
31
+ .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }
32
+ .label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${d?`font-weight:${t.noteFontWeight}`:""} }
33
+ .arrow${o} { stroke: ${t.nodeBorder}; }
34
+ .commit-bullets { fill: ${t.nodeBorder}; }
35
+ `;else{let l=o%n.length;a+=`
36
+ .branch-label${o} { fill: ${t.nodeBorder}; ${d?`font-weight:${t.noteFontWeight}`:""} }
37
+ .commit${o} { stroke: ${n[l]}; fill: ${n[l]}; }
38
+ .commit-highlight${o} { stroke: ${n[l]}; fill: ${n[l]}; }
39
+ .label${o} { fill: ${ur.has(e)?t.mainBkg:n[l]}; stroke: ${n[l]}; stroke-width: ${t.strokeWidth}; }
40
+ .arrow${o} { stroke: ${n[l]}; }
41
+ `}return a}else{let a="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)a+=`
42
+ .branch-label${o} { fill: ${t.nodeBorder}; ${d?`font-weight:${t.noteFontWeight}`:""} }
43
+ .commit${o} { stroke: ${t.nodeBorder}; }
44
+ .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
45
+ .label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${d?`font-weight:${t.noteFontWeight}`:""}}
46
+ .arrow${o} { stroke: ${t.nodeBorder}; }
47
+ .commit-bullets { fill: ${t.nodeBorder}; }
48
+ .commit-cherry-pick${o} { stroke: ${t.nodeBorder}; }
49
+ `;return a}},"genColor"),Br=h(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(r,e)=>e).map(r=>{let e=r%ct;return`
50
+ .branch-label${r} { fill: ${t["gitBranchLabel"+e]}; }
51
+ .commit${r} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }
52
+ .commit-highlight${r} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }
53
+ .label${r} { fill: ${t["git"+e]}; }
54
+ .arrow${r} { stroke: ${t["git"+e]}; }
55
+ `}).join(`
56
+ `)}`,"normalTheme"),Er=h(t=>{let r=Q(),{theme:e}=r,i=br.has(e);return`
57
+ .commit-id,
58
+ .commit-msg,
59
+ .branch-label {
60
+ fill: lightgrey;
61
+ color: lightgrey;
62
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
63
+ font-family: var(--mermaid-font-family);
64
+ }
65
+
66
+ ${i?kr(t):Br(t)}
67
+
68
+ .branch {
69
+ stroke-width: ${t.strokeWidth};
70
+ stroke: ${t.commitLineColor??t.lineColor};
71
+ stroke-dasharray: ${i?"4 2":"2"};
72
+ }
73
+ .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${i?t.nodeBorder:t.commitLabelColor}; ${i?`font-weight:${t.noteFontWeight};`:""}}
74
+ .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${i?"transparent":t.commitLabelBackground}; opacity: ${i?"":.5}; }
75
+ .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
76
+ .tag-label-bkg { fill: ${i?t.mainBkg:t.tagLabelBackground}; stroke: ${i?t.nodeBorder:t.tagLabelBorder}; ${i?`filter:${t.dropShadow}`:""} }
77
+ .tag-hole { fill: ${t.textColor}; }
78
+
79
+ .commit-merge {
80
+ stroke: ${i?t.mainBkg:t.primaryColor};
81
+ fill: ${i?t.mainBkg:t.primaryColor};
82
+ }
83
+ .commit-reverse {
84
+ stroke: ${i?t.mainBkg:t.primaryColor};
85
+ fill: ${i?t.mainBkg:t.primaryColor};
86
+ stroke-width: ${i?t.strokeWidth:3};
87
+ }
88
+ .commit-highlight-outer {
89
+ }
90
+ .commit-highlight-inner {
91
+ stroke: ${i?t.mainBkg:t.primaryColor};
92
+ fill: ${i?t.mainBkg:t.primaryColor};
93
+ }
94
+
95
+ .arrow {
96
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
97
+ stroke-width: ${dt.has(e)?t.strokeWidth:8};
98
+ stroke-linecap: round;
99
+ fill: none
100
+ }
101
+ .gitTitleText {
102
+ text-anchor: middle;
103
+ font-size: 18px;
104
+ fill: ${t.textColor};
105
+ }
106
+ `},"getStyles"),Cr=Er,Ir={parser:Ut,db:it,renderer:fr,styles:Cr};export{Ir as diagram};