orbitchat 2.2.3 → 2.2.5

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 (87) hide show
  1. package/bin/orbitchat.js +1 -1
  2. package/dist/assets/_basePickBy-BjEly54R-DqvpNhss.js +1 -0
  3. package/dist/assets/_baseUniq-DRc_T5HB-BD-eiKhZ.js +1 -0
  4. package/dist/assets/{api-CUMR6WpG.js → api-B0lJClJq.js} +1 -1
  5. package/dist/assets/arc-CZCQSTaI-COU74SO_.js +1 -0
  6. package/dist/assets/architectureDiagram-VXUJARFQ-Cfm45ePu-DpyHVagy.js +36 -0
  7. package/dist/assets/blockDiagram-VD42YOAC-BRbgLESd-Ck20-ft3.js +122 -0
  8. package/dist/assets/c4Diagram-YG6GDRKO-DLei6MnZ-CyXWsii7.js +10 -0
  9. package/dist/assets/channel-DkFrLL9m-pXEXdU8i.js +1 -0
  10. package/dist/assets/chunk-4BX2VUAB-DeMNg1Xd-CrtFwSE5.js +1 -0
  11. package/dist/assets/chunk-55IACEB6-_r7qMy9s-CVsj1DxS.js +1 -0
  12. package/dist/assets/chunk-B4BG7PRW-CIxgz8SC-at5hJRU9.js +165 -0
  13. package/dist/assets/chunk-DI55MBZ5-i035IDz6-DxOVU1og.js +220 -0
  14. package/dist/assets/chunk-FMBD7UC4-Bm0ev8jq-BTHOwKty.js +15 -0
  15. package/dist/assets/chunk-QN33PNHL-C8-RyAc3-DADdydNm.js +1 -0
  16. package/dist/assets/chunk-QZHKN3VN-DMEEp6GB-MKN7DFjX.js +1 -0
  17. package/dist/assets/chunk-TZMSLE5B-CNFsEzOl-BT3YM95Y.js +1 -0
  18. package/dist/assets/classDiagram-2ON5EDUG-DnsiOvOV-CXFnq-_j.js +1 -0
  19. package/dist/assets/classDiagram-v2-WZHVMYZB-DnsiOvOV-CXFnq-_j.js +1 -0
  20. package/dist/assets/clone-DduvFCk3-BXgbo_Py.js +1 -0
  21. package/dist/assets/cose-bilkent-S5V4N54A-VxeRCpgs-ToXg3tv0.js +1 -0
  22. package/dist/assets/cytoscape.esm-CjI2IsL8-Da6dFVsf.js +331 -0
  23. package/dist/assets/dagre-6UL2VRFP-B-o0qgxK-B7jIOGhI.js +4 -0
  24. package/dist/assets/diagram-PSM6KHXK-CoKmJ9sN-CeSAdKE7.js +24 -0
  25. package/dist/assets/diagram-QEK2KX5R-ETMfkzYL-BXfUD6Bz.js +43 -0
  26. package/dist/assets/diagram-S2PKOQOG-BgLbl6rv-Bq7z4qcN.js +24 -0
  27. package/dist/assets/erDiagram-Q2GNP2WA-Swwdy5pk-CDqK5rW5.js +60 -0
  28. package/dist/assets/flowDiagram-NV44I4VS-DXJdBBSZ-BwK5ukuy.js +162 -0
  29. package/dist/assets/ganttDiagram-LVOFAZNH-DmRbHwxf-DcLr4kCw.js +267 -0
  30. package/dist/assets/gitGraphDiagram-NY62KEGX-D30uHfXn-CQ3udd86.js +65 -0
  31. package/dist/assets/graph-ClfIprSM-Bo9NcOv2.js +1 -0
  32. package/dist/assets/{index-DlFdZiHl-C7HbEZKd.js → index-Bny2bm5_-BTHX9t_s.js} +1 -1
  33. package/dist/assets/index-CIi9dO9d.js +1184 -0
  34. package/dist/assets/infoDiagram-ER5ION4S-C0DTNQfZ-LvJs62gz.js +2 -0
  35. package/dist/assets/journeyDiagram-XKPGCS4Q-53CUbf20-CN2QFlhq.js +139 -0
  36. package/dist/assets/kanban-definition-3W4ZIXB7-B-HAgUf7-CCmqybnp.js +89 -0
  37. package/dist/assets/layout-DoRwGyA9-iPNfcIdd.js +1 -0
  38. package/dist/assets/mindmap-definition-VGOIOE7T-JxieKS1D-C0G1Iimv.js +68 -0
  39. package/dist/assets/pieDiagram-ADFJNKIX-vEsBIPBi-B9KBvrYJ.js +30 -0
  40. package/dist/assets/quadrantDiagram-AYHSOK5B-DuNXQUnS-aaneQodw.js +7 -0
  41. package/dist/assets/requirementDiagram-UZGBJVZJ-Ajt9-U96-DJ47o9fU.js +64 -0
  42. package/dist/assets/sankeyDiagram-TZEHDZUN-BNMEPupP-BUQLAXZ-.js +10 -0
  43. package/dist/assets/sequenceDiagram-WL72ISMW-D2j881gi-DESm0zUV.js +145 -0
  44. package/dist/assets/stateDiagram-FKZM4ZOC-D9G5SS9f-BGFYCrOw.js +1 -0
  45. package/dist/assets/stateDiagram-v2-4FDKWEC3-D0cjqibA-CBYfNThC.js +1 -0
  46. package/dist/assets/timeline-definition-IT6M3QCI-B95452nE-BhqaFUs-.js +61 -0
  47. package/dist/assets/treemap-KMMF4GRG-Dfxm7cSf-B7pg2atG.js +128 -0
  48. package/dist/assets/xychartDiagram-PRI3JC2R-CZX71UOJ-zWpWPPXY.js +7 -0
  49. package/dist/index.html +1 -1
  50. package/package.json +2 -2
  51. package/dist/assets/Tableau10-D7jGxypv-Cyu9clx1.js +0 -1
  52. package/dist/assets/arc-m8RC5oDD-D_zqriJo.js +0 -1
  53. package/dist/assets/blockDiagram-c4efeb88-CZ2mpei3-DNgkbqw8.js +0 -118
  54. package/dist/assets/c4Diagram-c83219d4-DL2EmCLj-CuUh45wR.js +0 -10
  55. package/dist/assets/channel-BKp1WYnX-Bfkn8_bQ.js +0 -1
  56. package/dist/assets/classDiagram-beda092f-vKbJ2bcD-CWrQ3PmP.js +0 -2
  57. package/dist/assets/classDiagram-v2-2358418a-BHXpn1Du-v6U68RJv.js +0 -2
  58. package/dist/assets/clone-B1V2003j-C6XGoCe0.js +0 -1
  59. package/dist/assets/createText-1719965b-C2-AT0ab-CSaYVcyR.js +0 -7
  60. package/dist/assets/edges-96097737-Zk-qG_8u-BvX-rD_e.js +0 -4
  61. package/dist/assets/erDiagram-0228fc6a-B94anMjz-C0RUxFzz.js +0 -51
  62. package/dist/assets/flowDb-c6c81e3f-CRRW-bQO-Dv8ApRnS.js +0 -10
  63. package/dist/assets/flowDiagram-50d868cf-DPzQMhJv-qcXw24Z1.js +0 -4
  64. package/dist/assets/flowDiagram-v2-4f6560a1-Si9enBmB-BosOeZuP.js +0 -1
  65. package/dist/assets/flowchart-elk-definition-6af322e1-CULhtvD--CMyJERSt.js +0 -139
  66. package/dist/assets/ganttDiagram-a2739b55-Bp8yOLEz-0p0LU6B2.js +0 -257
  67. package/dist/assets/gitGraphDiagram-82fe8481-BYtOQJl0-Cdvv8RH9.js +0 -70
  68. package/dist/assets/graph-BV6jB5rk-BPsWqwd1.js +0 -1
  69. package/dist/assets/index-5325376f-DrY72DrM-cyJIharh.js +0 -1
  70. package/dist/assets/index-CBAg0_Do.js +0 -1008
  71. package/dist/assets/infoDiagram-8eee0895-C6GFnrZ7-B58B7U0j.js +0 -7
  72. package/dist/assets/journeyDiagram-c64418c1-daS1W8qe-i2hoPaI4.js +0 -139
  73. package/dist/assets/layout-LXMv3mSS-D7gLeKlL.js +0 -1
  74. package/dist/assets/mindmap-definition-8da855dc-DmNQYVT1-8qfS2G_Q.js +0 -425
  75. package/dist/assets/pieDiagram-a8764435-381urBY5-BL34EuZ1.js +0 -35
  76. package/dist/assets/quadrantDiagram-1e28029f-hgRmK2bX-D0tGtC6c.js +0 -7
  77. package/dist/assets/requirementDiagram-08caed73-BB0Q-cI9-C_nbMj6N.js +0 -52
  78. package/dist/assets/sankeyDiagram-a04cb91d-BpsipZNt-BWArNeVf.js +0 -8
  79. package/dist/assets/sequenceDiagram-c5b8d532-xoAvPcQJ-DAGq-LjC.js +0 -122
  80. package/dist/assets/stateDiagram-1ecb1508-b721R49K-BIX80hin.js +0 -1
  81. package/dist/assets/stateDiagram-v2-c2b004d7-BmSbrbqZ-1xTqgfV7.js +0 -1
  82. package/dist/assets/styles-b4e223ce-TYmJC5IN-Bh92tu5N.js +0 -160
  83. package/dist/assets/styles-ca3715f6-CfJZu0Yn-DDmGuNcW.js +0 -207
  84. package/dist/assets/styles-d45a18b0-DZ8oSYcV-BPX-QgIY.js +0 -116
  85. package/dist/assets/svgDrawCommon-b86b1483-CXPkN8HW-BDGr_arU.js +0 -1
  86. package/dist/assets/timeline-definition-faaaa080-LDFf1jfb-C-sZwXLb.js +0 -61
  87. package/dist/assets/xychartDiagram-f5964ef8-DdhO5-Bp-BJGdviNy.js +0 -7
@@ -1,257 +0,0 @@
1
- import{L as Ae,D as Ee,j as Ye,M as Le,R as Ie,N as Fe,E as ot,F as kt,X as We,Y as Oe,V as Pe,Q as Be,r as Ne,t as R,O as vt,u as Kt,v as Ut,w as ze,y as Ve,B as Ge,$ as Re,C as qe,G as Qe,H as He,S as Zt,U as Xt,a0 as te,a1 as ee,a2 as ne,m as je,T as Je,I as Ke,a3 as $t,f as Ue,a4 as le,a5 as Ze,a6 as ue,a7 as de,a8 as he,a9 as Xe,aa as Nt}from"./index-CBAg0_Do.js";function tn(t){return t}var gt=1,Dt=2,Et=3,pt=4,ie=1e-6;function en(t){return"translate("+t+",0)"}function nn(t){return"translate(0,"+t+")"}function rn(t){return e=>+t(e)}function sn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),i=>+t(i)+e}function an(){return!this.__axis}function fe(t,e){var i=[],s=null,o=null,l=6,d=6,b=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:.5,w=t===gt||t===pt?-1:1,x=t===pt||t===Dt?"x":"y",E=t===gt||t===Et?en:nn;function T(v){var N=s??(e.ticks?e.ticks.apply(e,i):e.domain()),A=o??(e.tickFormat?e.tickFormat.apply(e,i):tn),k=Math.max(l,0)+b,C=e.range(),L=+C[0]+D,I=+C[C.length-1]+D,P=(e.bandwidth?sn:rn)(e.copy(),D),O=v.selection?v.selection():v,z=O.selectAll(".domain").data([null]),W=O.selectAll(".tick").data(N,e).order(),f=W.exit(),p=W.enter().append("g").attr("class","tick"),y=W.select("line"),m=W.select("text");z=z.merge(z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),W=W.merge(p),y=y.merge(p.append("line").attr("stroke","currentColor").attr(x+"2",w*l)),m=m.merge(p.append("text").attr("fill","currentColor").attr(x,w*k).attr("dy",t===gt?"0em":t===Et?"0.71em":"0.32em")),v!==O&&(z=z.transition(v),W=W.transition(v),y=y.transition(v),m=m.transition(v),f=f.transition(v).attr("opacity",ie).attr("transform",function(r){return isFinite(r=P(r))?E(r+D):this.getAttribute("transform")}),p.attr("opacity",ie).attr("transform",function(r){var u=this.parentNode.__axis;return E((u&&isFinite(u=u(r))?u:P(r))+D)})),f.remove(),z.attr("d",t===pt||t===Dt?d?"M"+w*d+","+L+"H"+D+"V"+I+"H"+w*d:"M"+D+","+L+"V"+I:d?"M"+L+","+w*d+"V"+D+"H"+I+"V"+w*d:"M"+L+","+D+"H"+I),W.attr("opacity",1).attr("transform",function(r){return E(P(r)+D)}),y.attr(x+"2",w*l),m.attr(x,w*k).text(A),O.filter(an).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Dt?"start":t===pt?"end":"middle"),O.each(function(){this.__axis=P})}return T.scale=function(v){return arguments.length?(e=v,T):e},T.ticks=function(){return i=Array.from(arguments),T},T.tickArguments=function(v){return arguments.length?(i=v==null?[]:Array.from(v),T):i.slice()},T.tickValues=function(v){return arguments.length?(s=v==null?null:Array.from(v),T):s&&s.slice()},T.tickFormat=function(v){return arguments.length?(o=v,T):o},T.tickSize=function(v){return arguments.length?(l=d=+v,T):l},T.tickSizeInner=function(v){return arguments.length?(l=+v,T):l},T.tickSizeOuter=function(v){return arguments.length?(d=+v,T):d},T.tickPadding=function(v){return arguments.length?(b=+v,T):b},T.offset=function(v){return arguments.length?(D=+v,T):D},T}function on(t){return fe(gt,t)}function cn(t){return fe(Et,t)}const ln=Math.PI/180,un=180/Math.PI,Tt=18,me=.96422,ye=1,ke=.82521,pe=4/29,ct=6/29,ge=3*ct*ct,dn=ct*ct*ct;function be(t){if(t instanceof K)return new K(t.l,t.a,t.b,t.opacity);if(t instanceof tt)return xe(t);t instanceof le||(t=Ze(t));var e=At(t.r),i=At(t.g),s=At(t.b),o=Ct((.2225045*e+.7168786*i+.0606169*s)/ye),l,d;return e===i&&i===s?l=d=o:(l=Ct((.4360747*e+.3850649*i+.1430804*s)/me),d=Ct((.0139322*e+.0971045*i+.7141733*s)/ke)),new K(116*o-16,500*(l-o),200*(o-d),t.opacity)}function hn(t,e,i,s){return arguments.length===1?be(t):new K(t,e,i,s??1)}function K(t,e,i,s){this.l=+t,this.a=+e,this.b=+i,this.opacity=+s}ue(K,hn,de(he,{brighter(t){return new K(this.l+Tt*(t??1),this.a,this.b,this.opacity)},darker(t){return new K(this.l-Tt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return e=me*St(e),t=ye*St(t),i=ke*St(i),new le(Mt(3.1338561*e-1.6168667*t-.4906146*i),Mt(-.9787684*e+1.9161415*t+.033454*i),Mt(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}}));function Ct(t){return t>dn?Math.pow(t,1/3):t/ge+pe}function St(t){return t>ct?t*t*t:ge*(t-pe)}function Mt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function At(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function fn(t){if(t instanceof tt)return new tt(t.h,t.c,t.l,t.opacity);if(t instanceof K||(t=be(t)),t.a===0&&t.b===0)return new tt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*un;return new tt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Yt(t,e,i,s){return arguments.length===1?fn(t):new tt(t,e,i,s??1)}function tt(t,e,i,s){this.h=+t,this.c=+e,this.l=+i,this.opacity=+s}function xe(t){if(isNaN(t.h))return new K(t.l,0,0,t.opacity);var e=t.h*ln;return new K(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}ue(tt,Yt,de(he,{brighter(t){return new tt(this.h,this.c,this.l+Tt*(t??1),this.opacity)},darker(t){return new tt(this.h,this.c,this.l-Tt*(t??1),this.opacity)},rgb(){return xe(this).rgb()}}));function mn(t){return function(e,i){var s=t((e=Yt(e)).h,(i=Yt(i)).h),o=$t(e.c,i.c),l=$t(e.l,i.l),d=$t(e.opacity,i.opacity);return function(b){return e.h=s(b),e.c=o(b),e.l=l(b),e.opacity=d(b),e+""}}}const yn=mn(Xe);var Lt={exports:{}},kn=Lt.exports,re;function pn(){return re||(re=1,function(t,e){(function(i,s){t.exports=s()})(kn,function(){var i="day";return function(s,o,l){var d=function(w){return w.add(4-w.isoWeekday(),i)},b=o.prototype;b.isoWeekYear=function(){return d(this).year()},b.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),i);var x,E,T,v,N=d(this),A=(x=this.isoWeekYear(),E=this.$u,T=(E?l.utc:l)().year(x).startOf("year"),v=4-T.isoWeekday(),T.isoWeekday()>4&&(v+=7),T.add(v,i));return N.diff(A,"week")+1},b.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var D=b.startOf;b.startOf=function(w,x){var E=this.$utils(),T=!!E.u(x)||x;return E.p(w)==="isoweek"?T?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):D.bind(this)(w,x)}}})}(Lt)),Lt.exports}var gn=pn();const bn=Nt(gn);var It={exports:{}},xn=It.exports,se;function vn(){return se||(se=1,function(t,e){(function(i,s){t.exports=s()})(xn,function(){var i={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"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,l=/\d\d/,d=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,D={},w=function(k){return(k=+k)+(k>68?1900:2e3)},x=function(k){return function(C){this[k]=+C}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var L=C.match(/([+-]|\d\d)/g),I=60*L[1]+(+L[2]||0);return I===0?0:L[0]==="+"?-I:I}(k)}],T=function(k){var C=D[k];return C&&(C.indexOf?C:C.s.concat(C.f))},v=function(k,C){var L,I=D.meridiem;if(I){for(var P=1;P<=24;P+=1)if(k.indexOf(I(P,0,C))>-1){L=P>12;break}}else L=k===(C?"pm":"PM");return L},N={A:[b,function(k){this.afternoon=v(k,!1)}],a:[b,function(k){this.afternoon=v(k,!0)}],Q:[o,function(k){this.month=3*(k-1)+1}],S:[o,function(k){this.milliseconds=100*+k}],SS:[l,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[d,x("seconds")],ss:[d,x("seconds")],m:[d,x("minutes")],mm:[d,x("minutes")],H:[d,x("hours")],h:[d,x("hours")],HH:[d,x("hours")],hh:[d,x("hours")],D:[d,x("day")],DD:[l,x("day")],Do:[b,function(k){var C=D.ordinal,L=k.match(/\d+/);if(this.day=L[0],C)for(var I=1;I<=31;I+=1)C(I).replace(/\[|\]/g,"")===k&&(this.day=I)}],w:[d,x("week")],ww:[l,x("week")],M:[d,x("month")],MM:[l,x("month")],MMM:[b,function(k){var C=T("months"),L=(T("monthsShort")||C.map(function(I){return I.slice(0,3)})).indexOf(k)+1;if(L<1)throw new Error;this.month=L%12||L}],MMMM:[b,function(k){var C=T("months").indexOf(k)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,x("year")],YY:[l,function(k){this.year=w(k)}],YYYY:[/\d{4}/,x("year")],Z:E,ZZ:E};function A(k){var C,L;C=k,L=D&&D.formats;for(var I=(k=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,m,r){var u=r&&r.toUpperCase();return m||L[r]||i[r]||L[u].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,h,a){return h||a.slice(1)})})).match(s),P=I.length,O=0;O<P;O+=1){var z=I[O],W=N[z],f=W&&W[0],p=W&&W[1];I[O]=p?{regex:f,parser:p}:z.replace(/^\[|\]$/g,"")}return function(y){for(var m={},r=0,u=0;r<P;r+=1){var c=I[r];if(typeof c=="string")u+=c.length;else{var h=c.regex,a=c.parser,Y=y.slice(u),n=h.exec(Y)[0];a.call(m,n),y=y.replace(n,"")}}return function(g){var M=g.afternoon;if(M!==void 0){var S=g.hours;M?S<12&&(g.hours+=12):S===12&&(g.hours=0),delete g.afternoon}}(m),m}}return function(k,C,L){L.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(w=k.parseTwoDigitYear);var I=C.prototype,P=I.parse;I.parse=function(O){var z=O.date,W=O.utc,f=O.args;this.$u=W;var p=f[1];if(typeof p=="string"){var y=f[2]===!0,m=f[3]===!0,r=y||m,u=f[2];m&&(u=f[2]),D=this.$locale(),!y&&u&&(D=L.Ls[u]),this.$d=function(Y,n,g,M){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*Y);var S=A(n)(Y),$=S.year,F=S.month,_=S.day,Q=S.hours,nt=S.minutes,dt=S.seconds,_t=S.milliseconds,yt=S.zone,V=S.week,H=new Date,G=_||($||F?1:H.getDate()),it=$||H.getFullYear(),j=0;$&&!F||(j=F>0?F-1:H.getMonth());var U,q=Q||0,at=nt||0,et=dt||0,rt=_t||0;return yt?new Date(Date.UTC(it,j,G,q,at,et,rt+60*yt.offset*1e3)):g?new Date(Date.UTC(it,j,G,q,at,et,rt)):(U=new Date(it,j,G,q,at,et,rt),V&&(U=M(U).week(V).toDate()),U)}catch{return new Date("")}}(z,p,W,L),this.init(),u&&u!==!0&&(this.$L=this.locale(u).$L),r&&z!=this.format(p)&&(this.$d=new Date("")),D={}}else if(p instanceof Array)for(var c=p.length,h=1;h<=c;h+=1){f[1]=p[h-1];var a=L.apply(this,f);if(a.isValid()){this.$d=a.$d,this.$L=a.$L,this.init();break}h===c&&(this.$d=new Date(""))}else P.call(this,O)}}})}(It)),It.exports}var Tn=vn();const wn=Nt(Tn);var Ft={exports:{}},_n=Ft.exports,ae;function $n(){return ae||(ae=1,function(t,e){(function(i,s){t.exports=s()})(_n,function(){return function(i,s){var o=s.prototype,l=o.format;o.format=function(d){var b=this,D=this.$locale();if(!this.isValid())return l.bind(this)(d);var w=this.$utils(),x=(d||"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(E){switch(E){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return D.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return D.ordinal(b.week(),"W");case"w":case"ww":return w.s(b.week(),E==="w"?1:2,"0");case"W":case"WW":return w.s(b.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return w.s(String(b.$H===0?24:b.$H),E==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return E}});return l.bind(this)(x)}}})}(Ft)),Ft.exports}var Dn=$n();const Cn=Nt(Dn);var Wt=function(){var t=function(m,r,u,c){for(u=u||{},c=m.length;c--;u[m[c]]=r);return u},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],i=[1,25],s=[1,26],o=[1,27],l=[1,28],d=[1,29],b=[1,30],D=[1,31],w=[1,9],x=[1,10],E=[1,11],T=[1,12],v=[1,13],N=[1,14],A=[1,15],k=[1,16],C=[1,18],L=[1,19],I=[1,20],P=[1,21],O=[1,22],z=[1,24],W=[1,32],f={trace:function(){},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,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$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",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"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],[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],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(m,r,u,c,h,a,Y){var n=a.length-1;switch(h){case 1:return a[n-1];case 2:this.$=[];break;case 3:a[n-1].push(a[n]),this.$=a[n-1];break;case 4:case 5:this.$=a[n];break;case 6:case 7:this.$=[];break;case 8:c.setWeekday("monday");break;case 9:c.setWeekday("tuesday");break;case 10:c.setWeekday("wednesday");break;case 11:c.setWeekday("thursday");break;case 12:c.setWeekday("friday");break;case 13:c.setWeekday("saturday");break;case 14:c.setWeekday("sunday");break;case 15:c.setDateFormat(a[n].substr(11)),this.$=a[n].substr(11);break;case 16:c.enableInclusiveEndDates(),this.$=a[n].substr(18);break;case 17:c.TopAxis(),this.$=a[n].substr(8);break;case 18:c.setAxisFormat(a[n].substr(11)),this.$=a[n].substr(11);break;case 19:c.setTickInterval(a[n].substr(13)),this.$=a[n].substr(13);break;case 20:c.setExcludes(a[n].substr(9)),this.$=a[n].substr(9);break;case 21:c.setIncludes(a[n].substr(9)),this.$=a[n].substr(9);break;case 22:c.setTodayMarker(a[n].substr(12)),this.$=a[n].substr(12);break;case 24:c.setDiagramTitle(a[n].substr(6)),this.$=a[n].substr(6);break;case 25:this.$=a[n].trim(),c.setAccTitle(this.$);break;case 26:case 27:this.$=a[n].trim(),c.setAccDescription(this.$);break;case 28:c.addSection(a[n].substr(8)),this.$=a[n].substr(8);break;case 30:c.addTask(a[n-1],a[n]),this.$="task";break;case 31:this.$=a[n-1],c.setClickEvent(a[n-1],a[n],null);break;case 32:this.$=a[n-2],c.setClickEvent(a[n-2],a[n-1],a[n]);break;case 33:this.$=a[n-2],c.setClickEvent(a[n-2],a[n-1],null),c.setLink(a[n-2],a[n]);break;case 34:this.$=a[n-3],c.setClickEvent(a[n-3],a[n-2],a[n-1]),c.setLink(a[n-3],a[n]);break;case 35:this.$=a[n-2],c.setClickEvent(a[n-2],a[n],null),c.setLink(a[n-2],a[n-1]);break;case 36:this.$=a[n-3],c.setClickEvent(a[n-3],a[n-1],a[n]),c.setLink(a[n-3],a[n-2]);break;case 37:this.$=a[n-1],c.setLink(a[n-1],a[n]);break;case 38:case 44:this.$=a[n-1]+" "+a[n];break;case 39:case 40:case 42:this.$=a[n-2]+" "+a[n-1]+" "+a[n];break;case 41:case 43:this.$=a[n-3]+" "+a[n-2]+" "+a[n-1]+" "+a[n];break}},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:i,13:s,14:o,15:l,16:d,17:b,18:D,19:w,20:x,21:E,22:T,23:v,24:N,25:A,26:k,27:C,28:L,30:I,32:P,33:O,34:23,35:z,37:W},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:i,13:s,14:o,15:l,16:d,17:b,18:D,19:w,20:x,21:E,22:T,23:v,24:N,25:A,26:k,27:C,28:L,30:I,32:P,33:O,34:23,35:z,37:W},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),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]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},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]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(m,r){if(r.recoverable)this.trace(m);else{var u=new Error(m);throw u.hash=r,u}},parse:function(m){var r=this,u=[0],c=[],h=[null],a=[],Y=this.table,n="",g=0,M=0,S=2,$=1,F=a.slice.call(arguments,1),_=Object.create(this.lexer),Q={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Q.yy[nt]=this.yy[nt]);_.setInput(m,Q.yy),Q.yy.lexer=_,Q.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var dt=_.yylloc;a.push(dt);var _t=_.options&&_.options.ranges;typeof Q.yy.parseError=="function"?this.parseError=Q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(){var Z;return Z=c.pop()||_.lex()||$,typeof Z!="number"&&(Z instanceof Array&&(c=Z,Z=c.pop()),Z=r.symbols_[Z]||Z),Z}for(var V,H,G,it,j={},U,q,at,et;;){if(H=u[u.length-1],this.defaultActions[H]?G=this.defaultActions[H]:((V===null||typeof V>"u")&&(V=yt()),G=Y[H]&&Y[H][V]),typeof G>"u"||!G.length||!G[0]){var rt="";et=[];for(U in Y[H])this.terminals_[U]&&U>S&&et.push("'"+this.terminals_[U]+"'");_.showPosition?rt="Parse error on line "+(g+1)+`:
2
- `+_.showPosition()+`
3
- Expecting `+et.join(", ")+", got '"+(this.terminals_[V]||V)+"'":rt="Parse error on line "+(g+1)+": Unexpected "+(V==$?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(rt,{text:_.match,token:this.terminals_[V]||V,line:_.yylineno,loc:dt,expected:et})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+V);switch(G[0]){case 1:u.push(V),h.push(_.yytext),a.push(_.yylloc),u.push(G[1]),V=null,M=_.yyleng,n=_.yytext,g=_.yylineno,dt=_.yylloc;break;case 2:if(q=this.productions_[G[1]][1],j.$=h[h.length-q],j._$={first_line:a[a.length-(q||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(q||1)].first_column,last_column:a[a.length-1].last_column},_t&&(j._$.range=[a[a.length-(q||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(j,[n,M,g,Q.yy,G[1],h,a].concat(F)),typeof it<"u")return it;q&&(u=u.slice(0,-1*q*2),h=h.slice(0,-1*q),a=a.slice(0,-1*q)),u.push(this.productions_[G[1]][0]),h.push(j.$),a.push(j._$),at=Y[u[u.length-2]][u[u.length-1]],u.push(at);break;case 3:return!0}}return!0}},p=function(){var m={EOF:1,parseError:function(r,u){if(this.yy.parser)this.yy.parser.parseError(r,u);else throw new Error(r)},setInput:function(r,u){return this.yy=u||this.yy||{},this._input=r,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},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var u=r.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),r},unput:function(r){var u=r.length,c=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var a=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:c?(c.length===h.length?this.yylloc.first_column:0)+h[h.length-c.length].length-c[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),u=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
- `+u+"^"},test_match:function(r,u){var c,h,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),h=r[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],c=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var Y in a)this[Y]=a[Y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,u,c,h;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),Y=0;Y<a.length;Y++)if(c=this._input.match(this.rules[a[Y]]),c&&(!u||c[0].length>u[0].length)){if(u=c,h=Y,this.options.backtrack_lexer){if(r=this.test_match(c,a[Y]),r!==!1)return r;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(r=this.test_match(u,a[h]),r!==!1?r:!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})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,u,c,h){switch(c){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;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 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;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"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},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,/^(?:\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],inclusive:!0}}};return m}();f.lexer=p;function y(){this.yy={}}return y.prototype=f,f.Parser=y,new y}();Wt.parser=Wt;const Sn=Wt;R.extend(bn);R.extend(wn);R.extend(Cn);let J="",zt="",Vt,Gt="",ht=[],ft=[],Rt={},qt=[],wt=[],ut="",Qt="";const ve=["active","done","crit","milestone"];let Ht=[],mt=!1,jt=!1,Jt="sunday",Ot=0;const Mn=function(){qt=[],wt=[],ut="",Ht=[],bt=0,Bt=void 0,xt=void 0,B=[],J="",zt="",Qt="",Vt=void 0,Gt="",ht=[],ft=[],mt=!1,jt=!1,Ot=0,Rt={},Ke(),Jt="sunday"},An=function(t){zt=t},En=function(){return zt},Yn=function(t){Vt=t},Ln=function(){return Vt},In=function(t){Gt=t},Fn=function(){return Gt},Wn=function(t){J=t},On=function(){mt=!0},Pn=function(){return mt},Bn=function(){jt=!0},Nn=function(){return jt},zn=function(t){Qt=t},Vn=function(){return Qt},Gn=function(){return J},Rn=function(t){ht=t.toLowerCase().split(/[\s,]+/)},qn=function(){return ht},Qn=function(t){ft=t.toLowerCase().split(/[\s,]+/)},Hn=function(){return ft},jn=function(){return Rt},Jn=function(t){ut=t,qt.push(t)},Kn=function(){return qt},Un=function(){let t=oe();const e=10;let i=0;for(;!t&&i<e;)t=oe(),i++;return wt=B,wt},Te=function(t,e,i,s){return s.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&i.includes("weekends")||i.includes(t.format("dddd").toLowerCase())?!0:i.includes(t.format(e.trim()))},Zn=function(t){Jt=t},Xn=function(){return Jt},we=function(t,e,i,s){if(!i.length||t.manualEndTime)return;let o;t.startTime instanceof Date?o=R(t.startTime):o=R(t.startTime,e,!0),o=o.add(1,"d");let l;t.endTime instanceof Date?l=R(t.endTime):l=R(t.endTime,e,!0);const[d,b]=ti(o,l,e,i,s);t.endTime=d.toDate(),t.renderEndTime=b},ti=function(t,e,i,s,o){let l=!1,d=null;for(;t<=e;)l||(d=e.toDate()),l=Te(t,i,s,o),l&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,d]},Pt=function(t,e,i){i=i.trim();const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(s!==null){let l=null;for(const b of s.groups.ids.split(" ")){let D=st(b);D!==void 0&&(!l||D.endTime>l.endTime)&&(l=D)}if(l)return l.endTime;const d=new Date;return d.setHours(0,0,0,0),d}let o=R(i,e.trim(),!0);if(o.isValid())return o.toDate();{vt.debug("Invalid date:"+i),vt.debug("With date format:"+e.trim());const l=new Date(i);if(l===void 0||isNaN(l.getTime())||l.getFullYear()<-1e4||l.getFullYear()>1e4)throw new Error("Invalid date:"+i);return l}},_e=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},$e=function(t,e,i,s=!1){i=i.trim();const o=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(o!==null){let w=null;for(const E of o.groups.ids.split(" ")){let T=st(E);T!==void 0&&(!w||T.startTime<w.startTime)&&(w=T)}if(w)return w.startTime;const x=new Date;return x.setHours(0,0,0,0),x}let l=R(i,e.trim(),!0);if(l.isValid())return s&&(l=l.add(1,"d")),l.toDate();let d=R(t);const[b,D]=_e(i);if(!Number.isNaN(b)){const w=d.add(b,D);w.isValid()&&(d=w)}return d.toDate()};let bt=0;const lt=function(t){return t===void 0?(bt=bt+1,"task"+bt):t},ei=function(t,e){let i;e.substr(0,1)===":"?i=e.substr(1,e.length):i=e;const s=i.split(","),o={};Me(s,o,ve);for(let d=0;d<s.length;d++)s[d]=s[d].trim();let l="";switch(s.length){case 1:o.id=lt(),o.startTime=t.endTime,l=s[0];break;case 2:o.id=lt(),o.startTime=Pt(void 0,J,s[0]),l=s[1];break;case 3:o.id=lt(s[0]),o.startTime=Pt(void 0,J,s[1]),l=s[2];break}return l&&(o.endTime=$e(o.startTime,J,l,mt),o.manualEndTime=R(l,"YYYY-MM-DD",!0).isValid(),we(o,J,ft,ht)),o},ni=function(t,e){let i;e.substr(0,1)===":"?i=e.substr(1,e.length):i=e;const s=i.split(","),o={};Me(s,o,ve);for(let l=0;l<s.length;l++)s[l]=s[l].trim();switch(s.length){case 1:o.id=lt(),o.startTime={type:"prevTaskEnd",id:t},o.endTime={data:s[0]};break;case 2:o.id=lt(),o.startTime={type:"getStartDate",startData:s[0]},o.endTime={data:s[1]};break;case 3:o.id=lt(s[0]),o.startTime={type:"getStartDate",startData:s[1]},o.endTime={data:s[2]};break}return o};let Bt,xt,B=[];const De={},ii=function(t,e){const i={section:ut,type:ut,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},s=ni(xt,e);i.raw.startTime=s.startTime,i.raw.endTime=s.endTime,i.id=s.id,i.prevTaskId=xt,i.active=s.active,i.done=s.done,i.crit=s.crit,i.milestone=s.milestone,i.order=Ot,Ot++;const o=B.push(i);xt=i.id,De[i.id]=o-1},st=function(t){const e=De[t];return B[e]},ri=function(t,e){const i={section:ut,type:ut,description:t,task:t,classes:[]},s=ei(Bt,e);i.startTime=s.startTime,i.endTime=s.endTime,i.id=s.id,i.active=s.active,i.done=s.done,i.crit=s.crit,i.milestone=s.milestone,Bt=i,wt.push(i)},oe=function(){const t=function(i){const s=B[i];let o="";switch(B[i].raw.startTime.type){case"prevTaskEnd":{const l=st(s.prevTaskId);s.startTime=l.endTime;break}case"getStartDate":o=Pt(void 0,J,B[i].raw.startTime.startData),o&&(B[i].startTime=o);break}return B[i].startTime&&(B[i].endTime=$e(B[i].startTime,J,B[i].raw.endTime.data,mt),B[i].endTime&&(B[i].processed=!0,B[i].manualEndTime=R(B[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),we(B[i],J,ft,ht))),B[i].processed};let e=!0;for(const[i,s]of B.entries())t(i),e=e&&s.processed;return e},si=function(t,e){let i=e;ot().securityLevel!=="loose"&&(i=Je.sanitizeUrl(e)),t.split(",").forEach(function(s){st(s)!==void 0&&(Se(s,()=>{window.open(i,"_self")}),Rt[s]=i)}),Ce(t,"clickable")},Ce=function(t,e){t.split(",").forEach(function(i){let s=st(i);s!==void 0&&s.classes.push(e)})},ai=function(t,e,i){if(ot().securityLevel!=="loose"||e===void 0)return;let s=[];if(typeof i=="string"){s=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<s.length;o++){let l=s[o].trim();l.charAt(0)==='"'&&l.charAt(l.length-1)==='"'&&(l=l.substr(1,l.length-2)),s[o]=l}}s.length===0&&s.push(t),st(t)!==void 0&&Se(t,()=>{Ue.runFunc(e,...s)})},Se=function(t,e){Ht.push(function(){const i=document.querySelector(`[id="${t}"]`);i!==null&&i.addEventListener("click",function(){e()})},function(){const i=document.querySelector(`[id="${t}-text"]`);i!==null&&i.addEventListener("click",function(){e()})})},oi=function(t,e,i){t.split(",").forEach(function(s){ai(s,e,i)}),Ce(t,"clickable")},ci=function(t){Ht.forEach(function(e){e(t)})},li={getConfig:()=>ot().gantt,clear:Mn,setDateFormat:Wn,getDateFormat:Gn,enableInclusiveEndDates:On,endDatesAreInclusive:Pn,enableTopAxis:Bn,topAxisEnabled:Nn,setAxisFormat:An,getAxisFormat:En,setTickInterval:Yn,getTickInterval:Ln,setTodayMarker:In,getTodayMarker:Fn,setAccTitle:Fe,getAccTitle:Ie,setDiagramTitle:Le,getDiagramTitle:Ye,setDisplayMode:zn,getDisplayMode:Vn,setAccDescription:Ee,getAccDescription:Ae,addSection:Jn,getSections:Kn,getTasks:Un,addTask:ii,findTaskById:st,addTaskOrg:ri,setIncludes:Rn,getIncludes:qn,setExcludes:Qn,getExcludes:Hn,setClickEvent:oi,setLink:si,getLinks:jn,bindFunctions:ci,parseDuration:_e,isInvalidDate:Te,setWeekday:Zn,getWeekday:Xn};function Me(t,e,i){let s=!0;for(;s;)s=!1,i.forEach(function(o){const l="^\\s*"+o+"\\s*$",d=new RegExp(l);t[0].match(d)&&(e[o]=!0,t.shift(1),s=!0)})}const ui=function(){vt.debug("Something is calling, setConf, remove the call")},ce={monday:He,tuesday:Qe,wednesday:qe,thursday:Re,friday:Ge,saturday:Ve,sunday:ze},di=(t,e)=>{let i=[...t].map(()=>-1/0),s=[...t].sort((l,d)=>l.startTime-d.startTime||l.order-d.order),o=0;for(const l of s)for(let d=0;d<i.length;d++)if(l.startTime>=i[d]){i[d]=l.endTime,l.order=d+e,d>o&&(o=d);break}return o};let X;const hi=function(t,e,i,s){const o=ot().gantt,l=ot().securityLevel;let d;l==="sandbox"&&(d=kt("#i"+e));const b=l==="sandbox"?kt(d.nodes()[0].contentDocument.body):kt("body"),D=l==="sandbox"?d.nodes()[0].contentDocument:document,w=D.getElementById(e);X=w.parentElement.offsetWidth,X===void 0&&(X=1200),o.useWidth!==void 0&&(X=o.useWidth);const x=s.db.getTasks();let E=[];for(const f of x)E.push(f.type);E=W(E);const T={};let v=2*o.topPadding;if(s.db.getDisplayMode()==="compact"||o.displayMode==="compact"){const f={};for(const y of x)f[y.section]===void 0?f[y.section]=[y]:f[y.section].push(y);let p=0;for(const y of Object.keys(f)){const m=di(f[y],p)+1;p+=m,v+=m*(o.barHeight+o.barGap),T[y]=m}}else{v+=x.length*(o.barHeight+o.barGap);for(const f of E)T[f]=x.filter(p=>p.type===f).length}w.setAttribute("viewBox","0 0 "+X+" "+v);const N=b.select(`[id="${e}"]`),A=We().domain([Oe(x,function(f){return f.startTime}),Pe(x,function(f){return f.endTime})]).rangeRound([0,X-o.leftPadding-o.rightPadding]);function k(f,p){const y=f.startTime,m=p.startTime;let r=0;return y>m?r=1:y<m&&(r=-1),r}x.sort(k),C(x,X,v),Be(N,v,X,o.useMaxWidth),N.append("text").text(s.db.getDiagramTitle()).attr("x",X/2).attr("y",o.titleTopMargin).attr("class","titleText");function C(f,p,y){const m=o.barHeight,r=m+o.barGap,u=o.topPadding,c=o.leftPadding,h=Ne().domain([0,E.length]).range(["#00B9FA","#F95002"]).interpolate(yn);I(r,u,c,p,y,f,s.db.getExcludes(),s.db.getIncludes()),P(c,u,p,y),L(f,r,u,c,m,h,p),O(r,u),z(c,u,p,y)}function L(f,p,y,m,r,u,c){const h=[...new Set(f.map(n=>n.order))].map(n=>f.find(g=>g.order===n));N.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",function(n,g){return g=n.order,g*p+y-2}).attr("width",function(){return c-o.rightPadding/2}).attr("height",p).attr("class",function(n){for(const[g,M]of E.entries())if(n.type===M)return"section section"+g%o.numberSectionStyles;return"section section0"});const a=N.append("g").selectAll("rect").data(f).enter(),Y=s.db.getLinks();if(a.append("rect").attr("id",function(n){return n.id}).attr("rx",3).attr("ry",3).attr("x",function(n){return n.milestone?A(n.startTime)+m+.5*(A(n.endTime)-A(n.startTime))-.5*r:A(n.startTime)+m}).attr("y",function(n,g){return g=n.order,g*p+y}).attr("width",function(n){return n.milestone?r:A(n.renderEndTime||n.endTime)-A(n.startTime)}).attr("height",r).attr("transform-origin",function(n,g){return g=n.order,(A(n.startTime)+m+.5*(A(n.endTime)-A(n.startTime))).toString()+"px "+(g*p+y+.5*r).toString()+"px"}).attr("class",function(n){const g="task";let M="";n.classes.length>0&&(M=n.classes.join(" "));let S=0;for(const[F,_]of E.entries())n.type===_&&(S=F%o.numberSectionStyles);let $="";return n.active?n.crit?$+=" activeCrit":$=" active":n.done?n.crit?$=" doneCrit":$=" done":n.crit&&($+=" crit"),$.length===0&&($=" task"),n.milestone&&($=" milestone "+$),$+=S,$+=" "+M,g+$}),a.append("text").attr("id",function(n){return n.id+"-text"}).text(function(n){return n.task}).attr("font-size",o.fontSize).attr("x",function(n){let g=A(n.startTime),M=A(n.renderEndTime||n.endTime);n.milestone&&(g+=.5*(A(n.endTime)-A(n.startTime))-.5*r),n.milestone&&(M=g+r);const S=this.getBBox().width;return S>M-g?M+S+1.5*o.leftPadding>c?g+m-5:M+m+5:(M-g)/2+g+m}).attr("y",function(n,g){return g=n.order,g*p+o.barHeight/2+(o.fontSize/2-2)+y}).attr("text-height",r).attr("class",function(n){const g=A(n.startTime);let M=A(n.endTime);n.milestone&&(M=g+r);const S=this.getBBox().width;let $="";n.classes.length>0&&($=n.classes.join(" "));let F=0;for(const[Q,nt]of E.entries())n.type===nt&&(F=Q%o.numberSectionStyles);let _="";return n.active&&(n.crit?_="activeCritText"+F:_="activeText"+F),n.done?n.crit?_=_+" doneCritText"+F:_=_+" doneText"+F:n.crit&&(_=_+" critText"+F),n.milestone&&(_+=" milestoneText"),S>M-g?M+S+1.5*o.leftPadding>c?$+" taskTextOutsideLeft taskTextOutside"+F+" "+_:$+" taskTextOutsideRight taskTextOutside"+F+" "+_+" width-"+S:$+" taskText taskText"+F+" "+_+" width-"+S}),ot().securityLevel==="sandbox"){let n;n=kt("#i"+e);const g=n.nodes()[0].contentDocument;a.filter(function(M){return Y[M.id]!==void 0}).each(function(M){var S=g.querySelector("#"+M.id),$=g.querySelector("#"+M.id+"-text");const F=S.parentNode;var _=g.createElement("a");_.setAttribute("xlink:href",Y[M.id]),_.setAttribute("target","_top"),F.appendChild(_),_.appendChild(S),_.appendChild($)})}}function I(f,p,y,m,r,u,c,h){if(c.length===0&&h.length===0)return;let a,Y;for(const{startTime:$,endTime:F}of u)(a===void 0||$<a)&&(a=$),(Y===void 0||F>Y)&&(Y=F);if(!a||!Y)return;if(R(Y).diff(R(a),"year")>5){vt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const n=s.db.getDateFormat(),g=[];let M=null,S=R(a);for(;S.valueOf()<=Y;)s.db.isInvalidDate(S,n,c,h)?M?M.end=S:M={start:S,end:S}:M&&(g.push(M),M=null),S=S.add(1,"d");N.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",function($){return"exclude-"+$.start.format("YYYY-MM-DD")}).attr("x",function($){return A($.start)+y}).attr("y",o.gridLineStartPadding).attr("width",function($){const F=$.end.add(1,"day");return A(F)-A($.start)}).attr("height",r-p-o.gridLineStartPadding).attr("transform-origin",function($,F){return(A($.start)+y+.5*(A($.end)-A($.start))).toString()+"px "+(F*f+.5*r).toString()+"px"}).attr("class","exclude-range")}function P(f,p,y,m){let r=cn(A).tickSize(-m+p+o.gridLineStartPadding).tickFormat(Kt(s.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||o.tickInterval);if(u!==null){const c=u[1],h=u[2],a=s.db.getWeekday()||o.weekday;switch(h){case"millisecond":r.ticks(ne.every(c));break;case"second":r.ticks(ee.every(c));break;case"minute":r.ticks(te.every(c));break;case"hour":r.ticks(Xt.every(c));break;case"day":r.ticks(Zt.every(c));break;case"week":r.ticks(ce[a].every(c));break;case"month":r.ticks(Ut.every(c));break}}if(N.append("g").attr("class","grid").attr("transform","translate("+f+", "+(m-50)+")").call(r).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||o.topAxis){let c=on(A).tickSize(-m+p+o.gridLineStartPadding).tickFormat(Kt(s.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));if(u!==null){const h=u[1],a=u[2],Y=s.db.getWeekday()||o.weekday;switch(a){case"millisecond":c.ticks(ne.every(h));break;case"second":c.ticks(ee.every(h));break;case"minute":c.ticks(te.every(h));break;case"hour":c.ticks(Xt.every(h));break;case"day":c.ticks(Zt.every(h));break;case"week":c.ticks(ce[Y].every(h));break;case"month":c.ticks(Ut.every(h));break}}N.append("g").attr("class","grid").attr("transform","translate("+f+", "+p+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function O(f,p){let y=0;const m=Object.keys(T).map(r=>[r,T[r]]);N.append("g").selectAll("text").data(m).enter().append(function(r){const u=r[0].split(je.lineBreakRegex),c=-(u.length-1)/2,h=D.createElementNS("http://www.w3.org/2000/svg","text");h.setAttribute("dy",c+"em");for(const[a,Y]of u.entries()){const n=D.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttribute("alignment-baseline","central"),n.setAttribute("x","10"),a>0&&n.setAttribute("dy","1em"),n.textContent=Y,h.appendChild(n)}return h}).attr("x",10).attr("y",function(r,u){if(u>0)for(let c=0;c<u;c++)return y+=m[u-1][1],r[1]*f/2+y*f+p;else return r[1]*f/2+p}).attr("font-size",o.sectionFontSize).attr("class",function(r){for(const[u,c]of E.entries())if(r[0]===c)return"sectionTitle sectionTitle"+u%o.numberSectionStyles;return"sectionTitle"})}function z(f,p,y,m){const r=s.db.getTodayMarker();if(r==="off")return;const u=N.append("g").attr("class","today"),c=new Date,h=u.append("line");h.attr("x1",A(c)+f).attr("x2",A(c)+f).attr("y1",o.titleTopMargin).attr("y2",m-o.titleTopMargin).attr("class","today"),r!==""&&h.attr("style",r.replace(/,/g,";"))}function W(f){const p={},y=[];for(let m=0,r=f.length;m<r;++m)Object.prototype.hasOwnProperty.call(p,f[m])||(p[f[m]]=!0,y.push(f[m]));return y}},fi={setConf:ui,draw:hi},mi=t=>`
7
- .mermaid-main-font {
8
- font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
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: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
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: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
94
- }
95
-
96
- .taskTextOutsideRight {
97
- fill: ${t.taskTextDarkColor};
98
- text-anchor: start;
99
- font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
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
-
199
- /* Tasks on the critical line */
200
-
201
- .crit0,
202
- .crit1,
203
- .crit2,
204
- .crit3 {
205
- stroke: ${t.critBorderColor};
206
- fill: ${t.critBkgColor};
207
- stroke-width: 2;
208
- }
209
-
210
- .activeCrit0,
211
- .activeCrit1,
212
- .activeCrit2,
213
- .activeCrit3 {
214
- stroke: ${t.critBorderColor};
215
- fill: ${t.activeTaskBkgColor};
216
- stroke-width: 2;
217
- }
218
-
219
- .doneCrit0,
220
- .doneCrit1,
221
- .doneCrit2,
222
- .doneCrit3 {
223
- stroke: ${t.critBorderColor};
224
- fill: ${t.doneTaskBkgColor};
225
- stroke-width: 2;
226
- cursor: pointer;
227
- shape-rendering: crispEdges;
228
- }
229
-
230
- .milestone {
231
- transform: rotate(45deg) scale(0.8,0.8);
232
- }
233
-
234
- .milestoneText {
235
- font-style: italic;
236
- }
237
- .doneCritText0,
238
- .doneCritText1,
239
- .doneCritText2,
240
- .doneCritText3 {
241
- fill: ${t.taskTextDarkColor} !important;
242
- }
243
-
244
- .activeCritText0,
245
- .activeCritText1,
246
- .activeCritText2,
247
- .activeCritText3 {
248
- fill: ${t.taskTextDarkColor} !important;
249
- }
250
-
251
- .titleText {
252
- text-anchor: middle;
253
- font-size: 18px;
254
- fill: ${t.titleColor||t.textColor};
255
- font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
256
- }
257
- `,yi=mi,pi={parser:Sn,db:li,renderer:fi,styles:yi};export{pi as diagram};
@@ -1,70 +0,0 @@
1
- import{j as Re,M as Le,D as ve,L as Ie,R as Ae,N as Oe,E as v,O as N,F as Ce,f as Se,q as Pe,I as Ge,m as D,p as Be}from"./index-CBAg0_Do.js";var he=function(){var i=function(T,l,f,r){for(f=f||{},r=T.length;r--;f[T[r]]=l);return f},n=[1,3],o=[1,6],m=[1,4],a=[1,5],s=[2,5],b=[1,12],y=[5,7,13,19,21,23,24,26,28,31,37,40,47],d=[7,13,19,21,23,24,26,28,31,37,40],k=[7,12,13,19,21,23,24,26,28,31,37,40],c=[7,13,47],R=[1,42],h=[1,41],$=[7,13,29,32,35,38,47],u=[1,55],p=[1,56],g=[1,57],C=[7,13,32,35,42,47],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(T,l,f,r,_,e,G){var t=e.length-1;switch(_){case 2:return e[t];case 3:return e[t-1];case 4:return r.setDirection(e[t-3]),e[t-1];case 6:r.setOptions(e[t-1]),this.$=e[t];break;case 7:e[t-1]+=e[t],this.$=e[t-1];break;case 9:this.$=[];break;case 10:e[t-1].push(e[t]),this.$=e[t-1];break;case 11:this.$=e[t-1];break;case 16:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 19:r.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 21:r.checkout(e[t]);break;case 22:r.branch(e[t]);break;case 23:r.branch(e[t-2],e[t]);break;case 24:r.cherryPick(e[t],"",void 0);break;case 25:r.cherryPick(e[t-2],"",void 0,e[t]);break;case 26:r.cherryPick(e[t-2],"",e[t]);break;case 27:r.cherryPick(e[t-4],"",e[t],e[t-2]);break;case 28:r.cherryPick(e[t-4],"",e[t-2],e[t]);break;case 29:r.cherryPick(e[t],"",e[t-2]);break;case 30:r.cherryPick(e[t],"","");break;case 31:r.cherryPick(e[t-2],"","");break;case 32:r.cherryPick(e[t-4],"","",e[t-2]);break;case 33:r.cherryPick(e[t-4],"","",e[t]);break;case 34:r.cherryPick(e[t-2],"",e[t-4],e[t]);break;case 35:r.cherryPick(e[t-2],"","",e[t]);break;case 36:r.merge(e[t],"","","");break;case 37:r.merge(e[t-2],e[t],"","");break;case 38:r.merge(e[t-2],"",e[t],"");break;case 39:r.merge(e[t-2],"","",e[t]);break;case 40:r.merge(e[t-4],e[t],"",e[t-2]);break;case 41:r.merge(e[t-4],"",e[t],e[t-2]);break;case 42:r.merge(e[t-4],"",e[t-2],e[t]);break;case 43:r.merge(e[t-4],e[t-2],e[t],"");break;case 44:r.merge(e[t-4],e[t-2],"",e[t]);break;case 45:r.merge(e[t-4],e[t],e[t-2],"");break;case 46:r.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 47:r.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 48:r.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 49:r.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 50:r.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 51:r.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 52:r.commit(e[t]);break;case 53:r.commit("","",r.commitType.NORMAL,e[t]);break;case 54:r.commit("","",e[t],"");break;case 55:r.commit("","",e[t],e[t-2]);break;case 56:r.commit("","",e[t-2],e[t]);break;case 57:r.commit("",e[t],r.commitType.NORMAL,"");break;case 58:r.commit("",e[t-2],r.commitType.NORMAL,e[t]);break;case 59:r.commit("",e[t],r.commitType.NORMAL,e[t-2]);break;case 60:r.commit("",e[t-2],e[t],"");break;case 61:r.commit("",e[t],e[t-2],"");break;case 62:r.commit("",e[t-4],e[t-2],e[t]);break;case 63:r.commit("",e[t-4],e[t],e[t-2]);break;case 64:r.commit("",e[t-2],e[t-4],e[t]);break;case 65:r.commit("",e[t],e[t-4],e[t-2]);break;case 66:r.commit("",e[t],e[t-2],e[t-4]);break;case 67:r.commit("",e[t-2],e[t],e[t-4]);break;case 68:r.commit(e[t],"",r.commitType.NORMAL,"");break;case 69:r.commit(e[t],"",r.commitType.NORMAL,e[t-2]);break;case 70:r.commit(e[t-2],"",r.commitType.NORMAL,e[t]);break;case 71:r.commit(e[t-2],"",e[t],"");break;case 72:r.commit(e[t],"",e[t-2],"");break;case 73:r.commit(e[t],e[t-2],r.commitType.NORMAL,"");break;case 74:r.commit(e[t-2],e[t],r.commitType.NORMAL,"");break;case 75:r.commit(e[t-4],"",e[t-2],e[t]);break;case 76:r.commit(e[t-4],"",e[t],e[t-2]);break;case 77:r.commit(e[t-2],"",e[t-4],e[t]);break;case 78:r.commit(e[t],"",e[t-4],e[t-2]);break;case 79:r.commit(e[t],"",e[t-2],e[t-4]);break;case 80:r.commit(e[t-2],"",e[t],e[t-4]);break;case 81:r.commit(e[t-4],e[t],e[t-2],"");break;case 82:r.commit(e[t-4],e[t-2],e[t],"");break;case 83:r.commit(e[t-2],e[t],e[t-4],"");break;case 84:r.commit(e[t],e[t-2],e[t-4],"");break;case 85:r.commit(e[t],e[t-4],e[t-2],"");break;case 86:r.commit(e[t-2],e[t-4],e[t],"");break;case 87:r.commit(e[t-4],e[t],r.commitType.NORMAL,e[t-2]);break;case 88:r.commit(e[t-4],e[t-2],r.commitType.NORMAL,e[t]);break;case 89:r.commit(e[t-2],e[t],r.commitType.NORMAL,e[t-4]);break;case 90:r.commit(e[t],e[t-2],r.commitType.NORMAL,e[t-4]);break;case 91:r.commit(e[t],e[t-4],r.commitType.NORMAL,e[t-2]);break;case 92:r.commit(e[t-2],e[t-4],r.commitType.NORMAL,e[t]);break;case 93:r.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 94:r.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 95:r.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 96:r.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 97:r.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 98:r.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 99:r.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 100:r.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 101:r.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 102:r.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 103:r.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 104:r.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 105:r.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 106:r.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 107:r.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 108:r.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 109:r.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 110:r.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 111:r.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 112:r.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 113:r.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 114:r.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 115:r.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 116:r.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 117:this.$="";break;case 118:this.$=e[t];break;case 119:this.$=r.commitType.NORMAL;break;case 120:this.$=r.commitType.REVERSE;break;case 121:this.$=r.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:o,13:m,47:a},{1:[3]},{3:7,4:2,5:n,7:o,13:m,47:a},{6:8,7:s,8:[1,9],9:[1,10],10:11,13:b},i(y,[2,124]),i(y,[2,125]),i(y,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:s,10:11,13:b},{8:[1,15]},i(d,[2,9],{11:16,12:[1,17]}),i(k,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:s,10:11,13:b},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},i(k,[2,7]),{1:[2,3]},{7:[1,36]},i(d,[2,10]),{4:37,7:o,13:m,47:a},i(d,[2,12]),i(c,[2,13]),i(c,[2,14]),i(c,[2,15]),{20:[1,38]},{22:[1,39]},i(c,[2,18]),i(c,[2,19]),i(c,[2,20]),{27:40,33:R,46:h},i(c,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:h},{32:[1,50],35:[1,51]},{27:52,33:R,46:h},{1:[2,4]},i(d,[2,11]),i(c,[2,16]),i(c,[2,17]),i(c,[2,21]),i($,[2,122]),i($,[2,123]),i(c,[2,52]),{33:[1,53]},{39:54,43:u,44:p,45:g},{33:[1,58]},{33:[1,59]},i(c,[2,118]),i(c,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},i(c,[2,22],{29:[1,66]}),i(c,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),i(c,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),i(C,[2,119]),i(C,[2,120]),i(C,[2,121]),i(c,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),i(c,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:u,44:p,45:g},{33:[1,81]},i(c,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:u,44:p,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:u,44:p,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:u,44:p,45:g},{33:[1,98]},i(c,[2,37],{35:[1,100],38:[1,99]}),i(c,[2,38],{32:[1,102],35:[1,101]}),i(c,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},i(c,[2,23]),i(c,[2,55],{32:[1,110],42:[1,111]}),i(c,[2,59],{38:[1,112],42:[1,113]}),i(c,[2,69],{32:[1,115],38:[1,114]}),i(c,[2,56],{32:[1,116],42:[1,117]}),i(c,[2,61],{35:[1,118],42:[1,119]}),i(c,[2,72],{32:[1,121],35:[1,120]}),i(c,[2,58],{38:[1,122],42:[1,123]}),i(c,[2,60],{35:[1,124],42:[1,125]}),i(c,[2,73],{35:[1,127],38:[1,126]}),i(c,[2,70],{32:[1,129],38:[1,128]}),i(c,[2,71],{32:[1,131],35:[1,130]}),i(c,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:u,44:p,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:u,44:p,45:g},i(c,[2,25],{35:[1,140]}),i(c,[2,26],{34:[1,141]}),i(c,[2,31],{34:[1,142]}),i(c,[2,29],{34:[1,143]}),i(c,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:u,44:p,45:g},{33:[1,148]},{39:149,43:u,44:p,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:u,44:p,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:u,44:p,45:g},{33:[1,162]},{39:163,43:u,44:p,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:u,44:p,45:g},{33:[1,168]},i(c,[2,43],{35:[1,169]}),i(c,[2,44],{38:[1,170]}),i(c,[2,42],{32:[1,171]}),i(c,[2,45],{35:[1,172]}),i(c,[2,40],{38:[1,173]}),i(c,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},i(c,[2,66],{42:[1,181]}),i(c,[2,79],{32:[1,182]}),i(c,[2,67],{42:[1,183]}),i(c,[2,90],{38:[1,184]}),i(c,[2,80],{32:[1,185]}),i(c,[2,89],{38:[1,186]}),i(c,[2,65],{42:[1,187]}),i(c,[2,78],{32:[1,188]}),i(c,[2,64],{42:[1,189]}),i(c,[2,84],{35:[1,190]}),i(c,[2,77],{32:[1,191]}),i(c,[2,83],{35:[1,192]}),i(c,[2,63],{42:[1,193]}),i(c,[2,91],{38:[1,194]}),i(c,[2,62],{42:[1,195]}),i(c,[2,85],{35:[1,196]}),i(c,[2,86],{35:[1,197]}),i(c,[2,92],{38:[1,198]}),i(c,[2,76],{32:[1,199]}),i(c,[2,87],{38:[1,200]}),i(c,[2,75],{32:[1,201]}),i(c,[2,81],{35:[1,202]}),i(c,[2,82],{35:[1,203]}),i(c,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:u,44:p,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:u,44:p,45:g},{33:[1,210]},i(c,[2,27]),i(c,[2,32]),i(c,[2,28]),i(c,[2,33]),i(c,[2,34]),i(c,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:u,44:p,45:g},{33:[1,215]},{39:216,43:u,44:p,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:u,44:p,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:u,44:p,45:g},{33:[1,229]},{39:230,43:u,44:p,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:u,44:p,45:g},i(c,[2,46]),i(c,[2,48]),i(c,[2,47]),i(c,[2,49]),i(c,[2,51]),i(c,[2,50]),i(c,[2,107]),i(c,[2,108]),i(c,[2,105]),i(c,[2,106]),i(c,[2,110]),i(c,[2,109]),i(c,[2,114]),i(c,[2,113]),i(c,[2,112]),i(c,[2,111]),i(c,[2,116]),i(c,[2,115]),i(c,[2,104]),i(c,[2,103]),i(c,[2,102]),i(c,[2,101]),i(c,[2,99]),i(c,[2,100]),i(c,[2,98]),i(c,[2,97]),i(c,[2,96]),i(c,[2,95]),i(c,[2,93]),i(c,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(T,l){if(l.recoverable)this.trace(T);else{var f=new Error(T);throw f.hash=l,f}},parse:function(T){var l=this,f=[0],r=[],_=[null],e=[],G=this.table,t="",te=0,ye=0,Ee=2,ue=1,Te=e.slice.call(arguments,1),I=Object.create(this.lexer),U={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(U.yy[ne]=this.yy[ne]);I.setInput(T,U.yy),U.yy.lexer=I,U.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var se=I.yylloc;e.push(se);var we=I.options&&I.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(){var Y;return Y=r.pop()||I.lex()||ue,typeof Y!="number"&&(Y instanceof Array&&(r=Y,Y=r.pop()),Y=l.symbols_[Y]||Y),Y}for(var B,q,z,oe,X={},ie,j,pe,re;;){if(q=f[f.length-1],this.defaultActions[q]?z=this.defaultActions[q]:((B===null||typeof B>"u")&&(B=Me()),z=G[q]&&G[q][B]),typeof z>"u"||!z.length||!z[0]){var le="";re=[];for(ie in G[q])this.terminals_[ie]&&ie>Ee&&re.push("'"+this.terminals_[ie]+"'");I.showPosition?le="Parse error on line "+(te+1)+`:
2
- `+I.showPosition()+`
3
- Expecting `+re.join(", ")+", got '"+(this.terminals_[B]||B)+"'":le="Parse error on line "+(te+1)+": Unexpected "+(B==ue?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(le,{text:I.match,token:this.terminals_[B]||B,line:I.yylineno,loc:se,expected:re})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+B);switch(z[0]){case 1:f.push(B),_.push(I.yytext),e.push(I.yylloc),f.push(z[1]),B=null,ye=I.yyleng,t=I.yytext,te=I.yylineno,se=I.yylloc;break;case 2:if(j=this.productions_[z[1]][1],X.$=_[_.length-j],X._$={first_line:e[e.length-(j||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(j||1)].first_column,last_column:e[e.length-1].last_column},we&&(X._$.range=[e[e.length-(j||1)].range[0],e[e.length-1].range[1]]),oe=this.performAction.apply(X,[t,ye,te,U.yy,z[1],_,e].concat(Te)),typeof oe<"u")return oe;j&&(f=f.slice(0,-1*j*2),_=_.slice(0,-1*j),e=e.slice(0,-1*j)),f.push(this.productions_[z[1]][0]),_.push(X.$),e.push(X._$),pe=G[f[f.length-2]][f[f.length-1]],f.push(pe);break;case 3:return!0}}return!0}},x=function(){var T={EOF:1,parseError:function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},setInput:function(l,f){return this.yy=f||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},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var f=l.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),l},unput:function(l){var f=l.length,r=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var _=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),r.length-1&&(this.yylineno-=r.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:r?(r.length===_.length?this.yylloc.first_column:0)+_[_.length-r.length].length-r[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var l=this.pastInput(),f=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
5
- `+f+"^"},test_match:function(l,f){var r,_,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))),_=l[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.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],r=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var G in e)this[G]=e[G];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,f,r,_;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),G=0;G<e.length;G++)if(r=this._input.match(this.rules[e[G]]),r&&(!f||r[0].length>f[0].length)){if(f=r,_=G,this.options.backtrack_lexer){if(l=this.test_match(r,e[G]),l!==!1)return l;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(l=this.test_match(f,e[_]),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})},lex:function(){var l=this.next();return l||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,f,r,_){switch(r){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return T}();E.lexer=x;function P(){this.yy={}}return P.prototype=E,E.Parser=P,new P}();he.parser=he;const He=he;let ae=v().gitGraph.mainBranchName,Ne=v().gitGraph.mainBranchOrder,L={},S=null,J={};J[ae]={name:ae,order:Ne};let M={};M[ae]=S;let O=ae,de="LR",W=0;function me(){return Be({length:7})}function ze(i,n){const o=Object.create(null);return i.reduce((m,a)=>{const s=n(a);return o[s]||(o[s]=!0,m.push(a)),m},[])}const De=function(i){de=i};let fe={};const je=function(i){N.debug("options str",i),i=i&&i.trim(),i=i||"{}";try{fe=JSON.parse(i)}catch(n){N.error("error while parsing gitGraph options",n.message)}},Ye=function(){return fe},Fe=function(i,n,o,m){N.debug("Entering commit:",i,n,o,m),n=D.sanitizeText(n,v()),i=D.sanitizeText(i,v()),m=D.sanitizeText(m,v());const a={id:n||W+"-"+me(),message:i,seq:W++,type:o||Q.NORMAL,tag:m||"",parents:S==null?[]:[S.id],branch:O};S=a,L[a.id]=a,M[O]=a.id,N.debug("in pushCommit "+a.id)},Ue=function(i,n){if(i=D.sanitizeText(i,v()),M[i]===void 0)M[i]=S!=null?S.id:null,J[i]={name:i,order:n?parseInt(n,10):null},$e(i),N.debug("in createBranch");else{let o=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 '+i+'")');throw o.hash={text:"branch "+i,token:"branch "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+i+'"']},o}},qe=function(i,n,o,m){i=D.sanitizeText(i,v()),n=D.sanitizeText(n,v());const a=L[M[O]],s=L[M[i]];if(O===i){let y=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw y.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},y}else if(a===void 0||!a){let y=new Error('Incorrect usage of "merge". Current branch ('+O+")has no commits");throw y.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},y}else if(M[i]===void 0){let y=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") does not exist");throw y.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+i]},y}else if(s===void 0||!s){let y=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") has no commits");throw y.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},y}else if(a===s){let y=new Error('Incorrect usage of "merge". Both branches have same head');throw y.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},y}else if(n&&L[n]!==void 0){let y=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw y.hash={text:"merge "+i+n+o+m,token:"merge "+i+n+o+m,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+i+" "+n+"_UNIQUE "+o+" "+m]},y}const b={id:n||W+"-"+me(),message:"merged branch "+i+" into "+O,seq:W++,parents:[S==null?null:S.id,M[i]],branch:O,type:Q.MERGE,customType:o,customId:!!n,tag:m||""};S=b,L[b.id]=b,M[O]=b.id,N.debug(M),N.debug("in mergeBranch")},Ke=function(i,n,o,m){if(N.debug("Entering cherryPick:",i,n,o),i=D.sanitizeText(i,v()),n=D.sanitizeText(n,v()),o=D.sanitizeText(o,v()),m=D.sanitizeText(m,v()),!i||L[i]===void 0){let b=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw b.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},b}let a=L[i],s=a.branch;if(m&&!(Array.isArray(a.parents)&&a.parents.includes(m)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(a.type===Q.MERGE&&!m)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||L[n]===void 0){if(s===O){let d=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw d.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},d}const b=L[M[O]];if(b===void 0||!b){let d=new Error('Incorrect usage of "cherry-pick". Current branch ('+O+")has no commits");throw d.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},d}const y={id:W+"-"+me(),message:"cherry-picked "+a+" into "+O,seq:W++,parents:[S==null?null:S.id,a.id],branch:O,type:Q.CHERRY_PICK,tag:o??`cherry-pick:${a.id}${a.type===Q.MERGE?`|parent:${m}`:""}`};S=y,L[y.id]=y,M[O]=y.id,N.debug(M),N.debug("in cherryPick")}},$e=function(i){if(i=D.sanitizeText(i,v()),M[i]===void 0){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+i+'")');throw n.hash={text:"checkout "+i,token:"checkout "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+i+'"']},n}else{O=i;const n=M[O];S=L[n]}};function be(i,n,o){const m=i.indexOf(n);m===-1?i.push(o):i.splice(m,1,o)}function ke(i){const n=i.reduce((a,s)=>a.seq>s.seq?a:s,i[0]);let o="";i.forEach(function(a){a===n?o+=" *":o+=" |"});const m=[o,n.id,n.seq];for(let a in M)M[a]===n.id&&m.push(a);if(N.debug(m.join(" ")),n.parents&&n.parents.length==2){const a=L[n.parents[0]];be(i,n,a),i.push(L[n.parents[1]])}else{if(n.parents.length==0)return;{const a=L[n.parents];be(i,n,a)}}i=ze(i,a=>a.id),ke(i)}const We=function(){N.debug(L);const i=xe()[0];ke([i])},Xe=function(){L={},S=null;let i=v().gitGraph.mainBranchName,n=v().gitGraph.mainBranchOrder;M={},M[i]=null,J={},J[i]={name:i,order:n},O=i,W=0,Ge()},Qe=function(){return Object.values(J).map((i,n)=>i.order!==null?i:{...i,order:parseFloat(`0.${n}`,10)}).sort((i,n)=>i.order-n.order).map(({name:i})=>({name:i}))},Ze=function(){return M},Ve=function(){return L},xe=function(){const i=Object.keys(L).map(function(n){return L[n]});return i.forEach(function(n){N.debug(n.id)}),i.sort((n,o)=>n.seq-o.seq),i},Je=function(){return O},et=function(){return de},tt=function(){return S},Q={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},it={getConfig:()=>v().gitGraph,setDirection:De,setOptions:je,getOptions:Ye,commit:Fe,branch:Ue,merge:qe,cherryPick:Ke,checkout:$e,prettyPrint:We,clear:Xe,getBranchesAsObjArray:Qe,getBranches:Ze,getCommits:Ve,getCommitsArray:xe,getCurrentBranch:Je,getDirection:et,getHead:tt,setAccTitle:Oe,getAccTitle:Ae,getAccDescription:Ie,setAccDescription:ve,setDiagramTitle:Le,getDiagramTitle:Re,commitType:Q};let Z={};const A={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},K=8;let H={},F={},ce=[],ee=0,w="LR";const rt=()=>{H={},F={},Z={},ee=0,ce=[],w="LR"},_e=i=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let o=[];typeof i=="string"?o=i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?o=i:o=[];for(const m of o){const a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),a.setAttribute("class","row"),a.textContent=m.trim(),n.appendChild(a)}return n},at=i=>{let n="",o=0;return i.forEach(m=>{const a=w==="TB"?F[m].y:F[m].x;a>=o&&(n=m,o=a)}),n||void 0},ge=(i,n,o)=>{const m=v().gitGraph,a=i.append("g").attr("class","commit-bullets"),s=i.append("g").attr("class","commit-labels");let b=0;w==="TB"&&(b=30);const y=Object.keys(n).sort((R,h)=>n[R].seq-n[h].seq),d=m.parallelCommits,k=10,c=40;y.forEach(R=>{const h=n[R];if(d)if(h.parents.length){const g=at(h.parents);b=w==="TB"?F[g].y+c:F[g].x+c}else b=0,w==="TB"&&(b=30);const $=b+k,u=w==="TB"?$:H[h.branch].pos,p=w==="TB"?H[h.branch].pos:$;if(o){let g,C=h.customType!==void 0&&h.customType!==""?h.customType:h.type;switch(C){case A.NORMAL:g="commit-normal";break;case A.REVERSE:g="commit-reverse";break;case A.HIGHLIGHT:g="commit-highlight";break;case A.MERGE:g="commit-merge";break;case A.CHERRY_PICK:g="commit-cherry-pick";break;default:g="commit-normal"}if(C===A.HIGHLIGHT){const E=a.append("rect");E.attr("x",p-10),E.attr("y",u-10),E.attr("height",20),E.attr("width",20),E.attr("class",`commit ${h.id} commit-highlight${H[h.branch].index%K} ${g}-outer`),a.append("rect").attr("x",p-6).attr("y",u-6).attr("height",12).attr("width",12).attr("class",`commit ${h.id} commit${H[h.branch].index%K} ${g}-inner`)}else if(C===A.CHERRY_PICK)a.append("circle").attr("cx",p).attr("cy",u).attr("r",10).attr("class",`commit ${h.id} ${g}`),a.append("circle").attr("cx",p-3).attr("cy",u+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${h.id} ${g}`),a.append("circle").attr("cx",p+3).attr("cy",u+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${h.id} ${g}`),a.append("line").attr("x1",p+3).attr("y1",u+1).attr("x2",p).attr("y2",u-5).attr("stroke","#fff").attr("class",`commit ${h.id} ${g}`),a.append("line").attr("x1",p-3).attr("y1",u+1).attr("x2",p).attr("y2",u-5).attr("stroke","#fff").attr("class",`commit ${h.id} ${g}`);else{const E=a.append("circle");if(E.attr("cx",p),E.attr("cy",u),E.attr("r",h.type===A.MERGE?9:10),E.attr("class",`commit ${h.id} commit${H[h.branch].index%K}`),C===A.MERGE){const x=a.append("circle");x.attr("cx",p),x.attr("cy",u),x.attr("r",6),x.attr("class",`commit ${g} ${h.id} commit${H[h.branch].index%K}`)}C===A.REVERSE&&a.append("path").attr("d",`M ${p-5},${u-5}L${p+5},${u+5}M${p-5},${u+5}L${p+5},${u-5}`).attr("class",`commit ${g} ${h.id} commit${H[h.branch].index%K}`)}}if(w==="TB"?F[h.id]={x:p,y:$}:F[h.id]={x:$,y:u},o){if(h.type!==A.CHERRY_PICK&&(h.customId&&h.type===A.MERGE||h.type!==A.MERGE)&&m.showCommitLabel){const g=s.append("g"),C=g.insert("rect").attr("class","commit-label-bkg"),E=g.append("text").attr("x",b).attr("y",u+25).attr("class","commit-label").text(h.id);let x=E.node().getBBox();if(C.attr("x",$-x.width/2-2).attr("y",u+13.5).attr("width",x.width+4).attr("height",x.height+4),w==="TB"&&(C.attr("x",p-(x.width+16+5)).attr("y",u-12),E.attr("x",p-(x.width+16)).attr("y",u+x.height-12)),w!=="TB"&&E.attr("x",$-x.width/2),m.rotateCommitLabel)if(w==="TB")E.attr("transform","rotate(-45, "+p+", "+u+")"),C.attr("transform","rotate(-45, "+p+", "+u+")");else{let P=-7.5-(x.width+10)/25*9.5,T=10+x.width/25*8.5;g.attr("transform","translate("+P+", "+T+") rotate(-45, "+b+", "+u+")")}}if(h.tag){const g=s.insert("polygon"),C=s.append("circle"),E=s.append("text").attr("y",u-16).attr("class","tag-label").text(h.tag);let x=E.node().getBBox();E.attr("x",$-x.width/2);const P=x.height/2,T=u-19.2;g.attr("class","tag-label-bkg").attr("points",`
7
- ${b-x.width/2-4/2},${T+2}
8
- ${b-x.width/2-4/2},${T-2}
9
- ${$-x.width/2-4},${T-P-2}
10
- ${$+x.width/2+4},${T-P-2}
11
- ${$+x.width/2+4},${T+P+2}
12
- ${$-x.width/2-4},${T+P+2}`),C.attr("cx",b-x.width/2+4/2).attr("cy",T).attr("r",1.5).attr("class","tag-hole"),w==="TB"&&(g.attr("class","tag-label-bkg").attr("points",`
13
- ${p},${b+2}
14
- ${p},${b-2}
15
- ${p+k},${b-P-2}
16
- ${p+k+x.width+4},${b-P-2}
17
- ${p+k+x.width+4},${b+P+2}
18
- ${p+k},${b+P+2}`).attr("transform","translate(12,12) rotate(45, "+p+","+b+")"),C.attr("cx",p+4/2).attr("cy",b).attr("transform","translate(12,12) rotate(45, "+p+","+b+")"),E.attr("x",p+5).attr("y",b+3).attr("transform","translate(14,14) rotate(45, "+p+","+b+")"))}}b+=c+k,b>ee&&(ee=b)})},ct=(i,n,o,m,a)=>{const s=(w==="TB"?o.x<m.x:o.y<m.y)?n.branch:i.branch,b=d=>d.branch===s,y=d=>d.seq>i.seq&&d.seq<n.seq;return Object.values(a).some(d=>y(d)&&b(d))},V=(i,n,o=0)=>{const m=i+Math.abs(i-n)/2;if(o>5)return m;if(ce.every(s=>Math.abs(s-m)>=10))return ce.push(m),m;const a=Math.abs(i-n);return V(i,n-a/5,o+1)},nt=(i,n,o,m)=>{const a=F[n.id],s=F[o.id],b=ct(n,o,a,s,m);let y="",d="",k=0,c=0,R=H[o.branch].index;o.type===A.MERGE&&n.id!==o.parents[0]&&(R=H[n.branch].index);let h;if(b){y="A 10 10, 0, 0, 0,",d="A 10 10, 0, 0, 1,",k=10,c=10;const $=a.y<s.y?V(a.y,s.y):V(s.y,a.y),u=a.x<s.x?V(a.x,s.x):V(s.x,a.x);w==="TB"?a.x<s.x?h=`M ${a.x} ${a.y} L ${u-k} ${a.y} ${d} ${u} ${a.y+c} L ${u} ${s.y-k} ${y} ${u+c} ${s.y} L ${s.x} ${s.y}`:(R=H[n.branch].index,h=`M ${a.x} ${a.y} L ${u+k} ${a.y} ${y} ${u} ${a.y+c} L ${u} ${s.y-k} ${d} ${u-c} ${s.y} L ${s.x} ${s.y}`):a.y<s.y?h=`M ${a.x} ${a.y} L ${a.x} ${$-k} ${y} ${a.x+c} ${$} L ${s.x-k} ${$} ${d} ${s.x} ${$+c} L ${s.x} ${s.y}`:(R=H[n.branch].index,h=`M ${a.x} ${a.y} L ${a.x} ${$+k} ${d} ${a.x+c} ${$} L ${s.x-k} ${$} ${y} ${s.x} ${$-c} L ${s.x} ${s.y}`)}else y="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",k=20,c=20,w==="TB"?(a.x<s.x&&(o.type===A.MERGE&&n.id!==o.parents[0]?h=`M ${a.x} ${a.y} L ${a.x} ${s.y-k} ${y} ${a.x+c} ${s.y} L ${s.x} ${s.y}`:h=`M ${a.x} ${a.y} L ${s.x-k} ${a.y} ${d} ${s.x} ${a.y+c} L ${s.x} ${s.y}`),a.x>s.x&&(y="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",k=20,c=20,o.type===A.MERGE&&n.id!==o.parents[0]?h=`M ${a.x} ${a.y} L ${a.x} ${s.y-k} ${d} ${a.x-c} ${s.y} L ${s.x} ${s.y}`:h=`M ${a.x} ${a.y} L ${s.x+k} ${a.y} ${y} ${s.x} ${a.y+c} L ${s.x} ${s.y}`),a.x===s.x&&(h=`M ${a.x} ${a.y} L ${s.x} ${s.y}`)):(a.y<s.y&&(o.type===A.MERGE&&n.id!==o.parents[0]?h=`M ${a.x} ${a.y} L ${s.x-k} ${a.y} ${d} ${s.x} ${a.y+c} L ${s.x} ${s.y}`:h=`M ${a.x} ${a.y} L ${a.x} ${s.y-k} ${y} ${a.x+c} ${s.y} L ${s.x} ${s.y}`),a.y>s.y&&(o.type===A.MERGE&&n.id!==o.parents[0]?h=`M ${a.x} ${a.y} L ${s.x-k} ${a.y} ${y} ${s.x} ${a.y-c} L ${s.x} ${s.y}`:h=`M ${a.x} ${a.y} L ${a.x} ${s.y+k} ${d} ${a.x+c} ${s.y} L ${s.x} ${s.y}`),a.y===s.y&&(h=`M ${a.x} ${a.y} L ${s.x} ${s.y}`));i.append("path").attr("d",h).attr("class","arrow arrow"+R%K)},st=(i,n)=>{const o=i.append("g").attr("class","commit-arrows");Object.keys(n).forEach(m=>{const a=n[m];a.parents&&a.parents.length>0&&a.parents.forEach(s=>{nt(o,n[s],a,n)})})},ot=(i,n)=>{const o=v().gitGraph,m=i.append("g");n.forEach((a,s)=>{const b=s%K,y=H[a.name].pos,d=m.append("line");d.attr("x1",0),d.attr("y1",y),d.attr("x2",ee),d.attr("y2",y),d.attr("class","branch branch"+b),w==="TB"&&(d.attr("y1",30),d.attr("x1",y),d.attr("y2",ee),d.attr("x2",y)),ce.push(y);let k=a.name;const c=_e(k),R=m.insert("rect"),h=m.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);h.node().appendChild(c);let $=c.getBBox();R.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-$.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-$.height/2+8).attr("width",$.width+18).attr("height",$.height+4),h.attr("transform","translate("+(-$.width-14-(o.rotateCommitLabel===!0?30:0))+", "+(y-$.height/2-1)+")"),w==="TB"&&(R.attr("x",y-$.width/2-10).attr("y",0),h.attr("transform","translate("+(y-$.width/2-5)+", 0)")),w!=="TB"&&R.attr("transform","translate(-19, "+(y-$.height/2)+")")})},lt=function(i,n,o,m){rt();const a=v(),s=a.gitGraph;N.debug("in gitgraph renderer",i+`
19
- `,"id:",n,o),Z=m.db.getCommits();const b=m.db.getBranchesAsObjArray();w=m.db.getDirection();const y=Ce(`[id="${n}"]`);let d=0;b.forEach((k,c)=>{const R=_e(k.name),h=y.append("g"),$=h.insert("g").attr("class","branchLabel"),u=$.insert("g").attr("class","label branch-label");u.node().appendChild(R);let p=R.getBBox();H[k.name]={pos:d,index:c},d+=50+(s.rotateCommitLabel?40:0)+(w==="TB"?p.width/2:0),u.remove(),$.remove(),h.remove()}),ge(y,Z,!1),s.showBranches&&ot(y,b),st(y,Z),ge(y,Z,!0),Se.insertTitle(y,"gitTitleText",s.titleTopMargin,m.db.getDiagramTitle()),Pe(void 0,y,s.diagramPadding,s.useMaxWidth??a.useMaxWidth)},ht={draw:lt},mt=i=>`
20
- .commit-id,
21
- .commit-msg,
22
- .branch-label {
23
- fill: lightgrey;
24
- color: lightgrey;
25
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
26
- font-family: var(--mermaid-font-family);
27
- }
28
- ${[0,1,2,3,4,5,6,7].map(n=>`
29
- .branch-label${n} { fill: ${i["gitBranchLabel"+n]}; }
30
- .commit${n} { stroke: ${i["git"+n]}; fill: ${i["git"+n]}; }
31
- .commit-highlight${n} { stroke: ${i["gitInv"+n]}; fill: ${i["gitInv"+n]}; }
32
- .label${n} { fill: ${i["git"+n]}; }
33
- .arrow${n} { stroke: ${i["git"+n]}; }
34
- `).join(`
35
- `)}
36
-
37
- .branch {
38
- stroke-width: 1;
39
- stroke: ${i.lineColor};
40
- stroke-dasharray: 2;
41
- }
42
- .commit-label { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelColor};}
43
- .commit-label-bkg { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelBackground}; opacity: 0.5; }
44
- .tag-label { font-size: ${i.tagLabelFontSize}; fill: ${i.tagLabelColor};}
45
- .tag-label-bkg { fill: ${i.tagLabelBackground}; stroke: ${i.tagLabelBorder}; }
46
- .tag-hole { fill: ${i.textColor}; }
47
-
48
- .commit-merge {
49
- stroke: ${i.primaryColor};
50
- fill: ${i.primaryColor};
51
- }
52
- .commit-reverse {
53
- stroke: ${i.primaryColor};
54
- fill: ${i.primaryColor};
55
- stroke-width: 3;
56
- }
57
- .commit-highlight-outer {
58
- }
59
- .commit-highlight-inner {
60
- stroke: ${i.primaryColor};
61
- fill: ${i.primaryColor};
62
- }
63
-
64
- .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
65
- .gitTitleText {
66
- text-anchor: middle;
67
- font-size: 18px;
68
- fill: ${i.textColor};
69
- }
70
- `,yt=mt,pt={parser:He,db:it,renderer:ht,styles:yt};export{pt as diagram};
@@ -1 +0,0 @@
1
- import{aF as x,l as rt,aq as Vt,b2 as qt,b3 as Kt,au as jt,ay as yt,b4 as Qt,b5 as N,b6 as q,b7 as Tt,b8 as Wt,b9 as L,aB as mt,at as _,aA as wt,ba as B,bb as Xt,bc as Ot,bd as z,be as D,bf as k,bg as Ht,bh as m,bi as Jt,bj as Zt,aD as Yt,bk as At,bl as tr,ax as rr,bm as et,bn as er,aE as nr,bo as ir,bp as nt,aG as sr,aw as Q,bq as ur}from"./index-CBAg0_Do.js";var or="[object Symbol]";function T(t){return typeof t=="symbol"||D(t)&&Jt(t)==or}function Ct(t,r){for(var e=-1,n=t==null?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}var it=m?m.prototype:void 0,st=it?it.toString:void 0;function Et(t){if(typeof t=="string")return t;if(_(t))return Ct(t,Et)+"";if(T(t))return st?st.call(t):"";var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function ar(){}function Lt(t,r){for(var e=-1,n=t==null?0:t.length;++e<n&&r(t[e],e,t)!==!1;);return t}function cr(t,r,e,n){for(var i=t.length,s=e+-1;++s<i;)if(r(t[s],s,t))return s;return-1}function fr(t){return t!==t}function lr(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}function hr(t,r,e){return r===r?lr(t,r,e):cr(t,fr,e)}function dr(t,r){var e=t==null?0:t.length;return!!e&&hr(t,r,0)>-1}function y(t){return jt(t)?qt(t):Kt(t)}var vr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/;function W(t,r){if(_(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||T(t)?!0:br.test(t)||!vr.test(t)||r!=null&&t in Object(r)}var gr=500;function pr(t){var r=er(t,function(n){return e.size===gr&&e.clear(),n}),e=r.cache;return r}var _r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jr=/\\(\\)?/g,yr=pr(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(_r,function(e,n,i,s){r.push(i?s.replace(jr,"$1"):n||e)}),r});function mr(t){return t==null?"":Et(t)}function Nt(t,r){return _(t)?t:W(t,r)?[t]:yr(mr(t))}function U(t){if(typeof t=="string"||T(t))return t;var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}function Dt(t,r){r=Nt(r,t);for(var e=0,n=r.length;t!=null&&e<n;)t=t[U(r[e++])];return e&&e==n?t:void 0}function wr(t,r,e){var n=t==null?void 0:Dt(t,r);return n===void 0?e:n}function X(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}var ut=m?m.isConcatSpreadable:void 0;function Or(t){return _(t)||At(t)||!!(ut&&t&&t[ut])}function Ar(t,r,e,n,i){var s=-1,u=t.length;for(e||(e=Or),i||(i=[]);++s<u;){var o=t[s];e(o)?X(i,o):n||(i[i.length]=o)}return i}function Cr(t,r,e,n){var i=-1,s=t==null?0:t.length;for(n&&s&&(e=t[++i]);++i<s;)e=r(e,t[i],i,t);return e}function Er(t,r){return t&&B(r,y(r),t)}function Lr(t,r){return t&&B(r,Q(r),t)}function Pt(t,r){for(var e=-1,n=t==null?0:t.length,i=0,s=[];++e<n;){var u=t[e];r(u,e,t)&&(s[i++]=u)}return s}function St(){return[]}var Nr=Object.prototype,Dr=Nr.propertyIsEnumerable,ot=Object.getOwnPropertySymbols,H=ot?function(t){return t==null?[]:(t=Object(t),Pt(ot(t),function(r){return Dr.call(t,r)}))}:St;function Pr(t,r){return B(t,H(t),r)}var Sr=Object.getOwnPropertySymbols,Mt=Sr?function(t){for(var r=[];t;)X(r,H(t)),t=ur(t);return r}:St;function Mr(t,r){return B(t,Mt(t),r)}function xt(t,r,e){var n=r(t);return _(t)?n:X(n,e(t))}function K(t){return xt(t,y,H)}function xr(t){return xt(t,Q,Mt)}var Fr=Object.prototype,Ir=Fr.hasOwnProperty;function zr(t){var r=t.length,e=new t.constructor(r);return r&&typeof t[0]=="string"&&Ir.call(t,"index")&&(e.index=t.index,e.input=t.input),e}function Br(t,r){var e=r?Ot(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}var Ur=/\w*$/;function kr(t){var r=new t.constructor(t.source,Ur.exec(t));return r.lastIndex=t.lastIndex,r}var at=m?m.prototype:void 0,ct=at?at.valueOf:void 0;function Gr(t){return ct?Object(ct.call(t)):{}}var $r="[object Boolean]",Rr="[object Date]",Vr="[object Map]",qr="[object Number]",Kr="[object RegExp]",Qr="[object Set]",Tr="[object String]",Wr="[object Symbol]",Xr="[object ArrayBuffer]",Hr="[object DataView]",Jr="[object Float32Array]",Zr="[object Float64Array]",Yr="[object Int8Array]",te="[object Int16Array]",re="[object Int32Array]",ee="[object Uint8Array]",ne="[object Uint8ClampedArray]",ie="[object Uint16Array]",se="[object Uint32Array]";function ue(t,r,e){var n=t.constructor;switch(r){case Xr:return Ot(t);case $r:case Rr:return new n(+t);case Hr:return Br(t,e);case Jr:case Zr:case Yr:case te:case re:case ee:case ne:case ie:case se:return Xt(t,e);case Vr:return new n;case qr:case Tr:return new n(t);case Kr:return kr(t);case Qr:return new n;case Wr:return Gr(t)}}var oe="[object Map]";function ae(t){return D(t)&&N(t)==oe}var ft=z&&z.isMap,ce=ft?mt(ft):ae,fe="[object Set]";function le(t){return D(t)&&N(t)==fe}var lt=z&&z.isSet,he=lt?mt(lt):le,de=1,ve=2,be=4,Ft="[object Arguments]",ge="[object Array]",pe="[object Boolean]",_e="[object Date]",je="[object Error]",It="[object Function]",ye="[object GeneratorFunction]",me="[object Map]",we="[object Number]",zt="[object Object]",Oe="[object RegExp]",Ae="[object Set]",Ce="[object String]",Ee="[object Symbol]",Le="[object WeakMap]",Ne="[object ArrayBuffer]",De="[object DataView]",Pe="[object Float32Array]",Se="[object Float64Array]",Me="[object Int8Array]",xe="[object Int16Array]",Fe="[object Int32Array]",Ie="[object Uint8Array]",ze="[object Uint8ClampedArray]",Be="[object Uint16Array]",Ue="[object Uint32Array]",f={};f[Ft]=f[ge]=f[Ne]=f[De]=f[pe]=f[_e]=f[Pe]=f[Se]=f[Me]=f[xe]=f[Fe]=f[me]=f[we]=f[zt]=f[Oe]=f[Ae]=f[Ce]=f[Ee]=f[Ie]=f[ze]=f[Be]=f[Ue]=!0;f[je]=f[It]=f[Le]=!1;function G(t,r,e,n,i,s){var u,o=r&de,a=r&ve,d=r&be;if(u!==void 0)return u;if(!yt(t))return t;var h=_(t);if(h){if(u=zr(t),!o)return Qt(t,u)}else{var c=N(t),l=c==It||c==ye;if(q(t))return Tt(t,o);if(c==zt||c==Ft||l&&!i){if(u=a||l?{}:Wt(t),!o)return a?Mr(t,Lr(u,t)):Pr(t,Er(u,t))}else{if(!f[c])return i?t:{};u=ue(t,c,o)}}s||(s=new L);var j=s.get(t);if(j)return j;s.set(t,u),he(t)?t.forEach(function(v){u.add(G(v,r,e,v,t,s))}):ce(t)&&t.forEach(function(v,b){u.set(b,G(v,r,e,b,t,s))});var g=d?a?xr:K:a?Q:y,p=h?void 0:g(t);return Lt(p||t,function(v,b){p&&(b=v,v=t[b]),nr(u,b,G(v,r,e,b,t,s))}),u}var ke="__lodash_hash_undefined__";function Ge(t){return this.__data__.set(t,ke),this}function $e(t){return this.__data__.has(t)}function P(t){var r=-1,e=t==null?0:t.length;for(this.__data__=new Ht;++r<e;)this.add(t[r])}P.prototype.add=P.prototype.push=Ge;P.prototype.has=$e;function Re(t,r){for(var e=-1,n=t==null?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}function Bt(t,r){return t.has(r)}var Ve=1,qe=2;function Ut(t,r,e,n,i,s){var u=e&Ve,o=t.length,a=r.length;if(o!=a&&!(u&&a>o))return!1;var d=s.get(t),h=s.get(r);if(d&&h)return d==r&&h==t;var c=-1,l=!0,j=e&qe?new P:void 0;for(s.set(t,r),s.set(r,t);++c<o;){var g=t[c],p=r[c];if(n)var v=u?n(p,g,c,r,t,s):n(g,p,c,t,r,s);if(v!==void 0){if(v)continue;l=!1;break}if(j){if(!Re(r,function(b,w){if(!Bt(j,w)&&(g===b||i(g,b,e,n,s)))return j.push(w)})){l=!1;break}}else if(!(g===p||i(g,p,e,n,s))){l=!1;break}}return s.delete(t),s.delete(r),l}function Ke(t){var r=-1,e=Array(t.size);return t.forEach(function(n,i){e[++r]=[i,n]}),e}function J(t){var r=-1,e=Array(t.size);return t.forEach(function(n){e[++r]=n}),e}var Qe=1,Te=2,We="[object Boolean]",Xe="[object Date]",He="[object Error]",Je="[object Map]",Ze="[object Number]",Ye="[object RegExp]",tn="[object Set]",rn="[object String]",en="[object Symbol]",nn="[object ArrayBuffer]",sn="[object DataView]",ht=m?m.prototype:void 0,$=ht?ht.valueOf:void 0;function un(t,r,e,n,i,s,u){switch(e){case sn:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case nn:return!(t.byteLength!=r.byteLength||!s(new et(t),new et(r)));case We:case Xe:case Ze:return rr(+t,+r);case He:return t.name==r.name&&t.message==r.message;case Ye:case rn:return t==r+"";case Je:var o=Ke;case tn:var a=n&Qe;if(o||(o=J),t.size!=r.size&&!a)return!1;var d=u.get(t);if(d)return d==r;n|=Te,u.set(t,r);var h=Ut(o(t),o(r),n,i,s,u);return u.delete(t),h;case en:if($)return $.call(t)==$.call(r)}return!1}var on=1,an=Object.prototype,cn=an.hasOwnProperty;function fn(t,r,e,n,i,s){var u=e&on,o=K(t),a=o.length,d=K(r),h=d.length;if(a!=h&&!u)return!1;for(var c=a;c--;){var l=o[c];if(!(u?l in r:cn.call(r,l)))return!1}var j=s.get(t),g=s.get(r);if(j&&g)return j==r&&g==t;var p=!0;s.set(t,r),s.set(r,t);for(var v=u;++c<a;){l=o[c];var b=t[l],w=r[l];if(n)var tt=u?n(w,b,l,r,t,s):n(b,w,l,t,r,s);if(!(tt===void 0?b===w||i(b,w,e,n,s):tt)){p=!1;break}v||(v=l=="constructor")}if(p&&!v){var S=t.constructor,M=r.constructor;S!=M&&"constructor"in t&&"constructor"in r&&!(typeof S=="function"&&S instanceof S&&typeof M=="function"&&M instanceof M)&&(p=!1)}return s.delete(t),s.delete(r),p}var ln=1,dt="[object Arguments]",vt="[object Array]",F="[object Object]",hn=Object.prototype,bt=hn.hasOwnProperty;function dn(t,r,e,n,i,s){var u=_(t),o=_(r),a=u?vt:N(t),d=o?vt:N(r);a=a==dt?F:a,d=d==dt?F:d;var h=a==F,c=d==F,l=a==d;if(l&&q(t)){if(!q(r))return!1;u=!0,h=!1}if(l&&!h)return s||(s=new L),u||tr(t)?Ut(t,r,e,n,i,s):un(t,r,a,e,n,i,s);if(!(e&ln)){var j=h&&bt.call(t,"__wrapped__"),g=c&&bt.call(r,"__wrapped__");if(j||g){var p=j?t.value():t,v=g?r.value():r;return s||(s=new L),i(p,v,e,n,s)}}return l?(s||(s=new L),fn(t,r,e,n,i,s)):!1}function Z(t,r,e,n,i){return t===r?!0:t==null||r==null||!D(t)&&!D(r)?t!==t&&r!==r:dn(t,r,e,n,Z,i)}var vn=1,bn=2;function gn(t,r,e,n){var i=e.length,s=i;if(t==null)return!s;for(t=Object(t);i--;){var u=e[i];if(u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<s;){u=e[i];var o=u[0],a=t[o],d=u[1];if(u[2]){if(a===void 0&&!(o in t))return!1}else{var h=new L,c;if(!(c===void 0?Z(d,a,vn|bn,n,h):c))return!1}}return!0}function kt(t){return t===t&&!yt(t)}function pn(t){for(var r=y(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,kt(i)]}return r}function Gt(t,r){return function(e){return e==null?!1:e[t]===r&&(r!==void 0||t in Object(e))}}function _n(t){var r=pn(t);return r.length==1&&r[0][2]?Gt(r[0][0],r[0][1]):function(e){return e===t||gn(e,t,r)}}function jn(t,r){return t!=null&&r in Object(t)}function yn(t,r,e){r=Nt(r,t);for(var n=-1,i=r.length,s=!1;++n<i;){var u=U(r[n]);if(!(s=t!=null&&e(t,u)))break;t=t[u]}return s||++n!=i?s:(i=t==null?0:t.length,!!i&&Zt(i)&&Yt(u,i)&&(_(t)||At(t)))}function mn(t,r){return t!=null&&yn(t,r,jn)}var wn=1,On=2;function An(t,r){return W(t)&&kt(r)?Gt(U(t),r):function(e){var n=wr(e,t);return n===void 0&&n===r?mn(e,t):Z(r,n,wn|On)}}function Cn(t){return function(r){return r==null?void 0:r[t]}}function En(t){return function(r){return Dt(r,t)}}function Ln(t){return W(t)?Cn(U(t)):En(t)}function $t(t){return typeof t=="function"?t:t==null?wt:typeof t=="object"?_(t)?An(t[0],t[1]):_n(t):Ln(t)}function Nn(t,r){return t&&sr(t,r,y)}function Dn(t,r){return function(e,n){if(e==null)return e;if(!jt(e))return t(e,n);for(var i=e.length,s=-1,u=Object(e);++s<i&&n(u[s],s,u)!==!1;);return e}}var Y=Dn(Nn);function Pn(t){return typeof t=="function"?t:wt}function O(t,r){var e=_(t)?Lt:Y;return e(t,Pn(r))}function Sn(t,r){var e=[];return Y(t,function(n,i,s){r(n,i,s)&&e.push(n)}),e}function I(t,r){var e=_(t)?Pt:Sn;return e(t,$t(r))}function Mn(t,r){return Ct(r,function(e){return t[e]})}function R(t){return t==null?[]:Mn(t,y(t))}function C(t){return t===void 0}function xn(t,r,e,n,i){return i(t,function(s,u,o){e=n?(n=!1,s):r(e,s,u,o)}),e}function Fn(t,r,e){var n=_(t)?Cr:xn,i=arguments.length<3;return n(t,$t(r),e,i,Y)}var In=1/0,zn=k&&1/J(new k([,-0]))[1]==In?function(t){return new k(t)}:ar,Bn=200;function Un(t,r,e){var n=-1,i=dr,s=t.length,u=!0,o=[],a=o;if(s>=Bn){var d=zn(t);if(d)return J(d);u=!1,i=Bt,a=new P}else a=o;t:for(;++n<s;){var h=t[n],c=h;if(h=h!==0?h:0,u&&c===c){for(var l=a.length;l--;)if(a[l]===c)continue t;o.push(h)}else i(a,c,e)||(a!==o&&a.push(c),o.push(h))}return o}var kn=Vt(function(t){return Un(Ar(t,1,ir,!0))}),Gn="\0",A="\0",gt="";class Rt{constructor(r={}){this._isDirected=Object.prototype.hasOwnProperty.call(r,"directed")?r.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(r,"multigraph")?r.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(r,"compound")?r.compound:!1,this._label=void 0,this._defaultNodeLabelFn=x(void 0),this._defaultEdgeLabelFn=x(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[A]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(r){return this._label=r,this}graph(){return this._label}setDefaultNodeLabel(r){return rt(r)||(r=x(r)),this._defaultNodeLabelFn=r,this}nodeCount(){return this._nodeCount}nodes(){return y(this._nodes)}sources(){var r=this;return I(this.nodes(),function(e){return nt(r._in[e])})}sinks(){var r=this;return I(this.nodes(),function(e){return nt(r._out[e])})}setNodes(r,e){var n=arguments,i=this;return O(r,function(s){n.length>1?i.setNode(s,e):i.setNode(s)}),this}setNode(r,e){return Object.prototype.hasOwnProperty.call(this._nodes,r)?(arguments.length>1&&(this._nodes[r]=e),this):(this._nodes[r]=arguments.length>1?e:this._defaultNodeLabelFn(r),this._isCompound&&(this._parent[r]=A,this._children[r]={},this._children[A][r]=!0),this._in[r]={},this._preds[r]={},this._out[r]={},this._sucs[r]={},++this._nodeCount,this)}node(r){return this._nodes[r]}hasNode(r){return Object.prototype.hasOwnProperty.call(this._nodes,r)}removeNode(r){if(Object.prototype.hasOwnProperty.call(this._nodes,r)){var e=n=>this.removeEdge(this._edgeObjs[n]);delete this._nodes[r],this._isCompound&&(this._removeFromParentsChildList(r),delete this._parent[r],O(this.children(r),n=>{this.setParent(n)}),delete this._children[r]),O(y(this._in[r]),e),delete this._in[r],delete this._preds[r],O(y(this._out[r]),e),delete this._out[r],delete this._sucs[r],--this._nodeCount}return this}setParent(r,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(C(e))e=A;else{e+="";for(var n=e;!C(n);n=this.parent(n))if(n===r)throw new Error("Setting "+e+" as parent of "+r+" would create a cycle");this.setNode(e)}return this.setNode(r),this._removeFromParentsChildList(r),this._parent[r]=e,this._children[e][r]=!0,this}_removeFromParentsChildList(r){delete this._children[this._parent[r]][r]}parent(r){if(this._isCompound){var e=this._parent[r];if(e!==A)return e}}children(r){if(C(r)&&(r=A),this._isCompound){var e=this._children[r];if(e)return y(e)}else{if(r===A)return this.nodes();if(this.hasNode(r))return[]}}predecessors(r){var e=this._preds[r];if(e)return y(e)}successors(r){var e=this._sucs[r];if(e)return y(e)}neighbors(r){var e=this.predecessors(r);if(e)return kn(e,this.successors(r))}isLeaf(r){var e;return this.isDirected()?e=this.successors(r):e=this.neighbors(r),e.length===0}filterNodes(r){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;O(this._nodes,function(u,o){r(o)&&e.setNode(o,u)}),O(this._edgeObjs,function(u){e.hasNode(u.v)&&e.hasNode(u.w)&&e.setEdge(u,n.edge(u))});var i={};function s(u){var o=n.parent(u);return o===void 0||e.hasNode(o)?(i[u]=o,o):o in i?i[o]:s(o)}return this._isCompound&&O(e.nodes(),function(u){e.setParent(u,s(u))}),e}setDefaultEdgeLabel(r){return rt(r)||(r=x(r)),this._defaultEdgeLabelFn=r,this}edgeCount(){return this._edgeCount}edges(){return R(this._edgeObjs)}setPath(r,e){var n=this,i=arguments;return Fn(r,function(s,u){return i.length>1?n.setEdge(s,u,e):n.setEdge(s,u),u}),this}setEdge(){var r,e,n,i,s=!1,u=arguments[0];typeof u=="object"&&u!==null&&"v"in u?(r=u.v,e=u.w,n=u.name,arguments.length===2&&(i=arguments[1],s=!0)):(r=u,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),r=""+r,e=""+e,C(n)||(n=""+n);var o=E(this._isDirected,r,e,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return s&&(this._edgeLabels[o]=i),this;if(!C(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(e),this._edgeLabels[o]=s?i:this._defaultEdgeLabelFn(r,e,n);var a=$n(this._isDirected,r,e,n);return r=a.v,e=a.w,Object.freeze(a),this._edgeObjs[o]=a,pt(this._preds[e],r),pt(this._sucs[r],e),this._in[e][o]=a,this._out[r][o]=a,this._edgeCount++,this}edge(r,e,n){var i=arguments.length===1?V(this._isDirected,arguments[0]):E(this._isDirected,r,e,n);return this._edgeLabels[i]}hasEdge(r,e,n){var i=arguments.length===1?V(this._isDirected,arguments[0]):E(this._isDirected,r,e,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(r,e,n){var i=arguments.length===1?V(this._isDirected,arguments[0]):E(this._isDirected,r,e,n),s=this._edgeObjs[i];return s&&(r=s.v,e=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],_t(this._preds[e],r),_t(this._sucs[r],e),delete this._in[e][i],delete this._out[r][i],this._edgeCount--),this}inEdges(r,e){var n=this._in[r];if(n){var i=R(n);return e?I(i,function(s){return s.v===e}):i}}outEdges(r,e){var n=this._out[r];if(n){var i=R(n);return e?I(i,function(s){return s.w===e}):i}}nodeEdges(r,e){var n=this.inEdges(r,e);if(n)return n.concat(this.outEdges(r,e))}}Rt.prototype._nodeCount=0;Rt.prototype._edgeCount=0;function pt(t,r){t[r]?t[r]++:t[r]=1}function _t(t,r){--t[r]||delete t[r]}function E(t,r,e,n){var i=""+r,s=""+e;if(!t&&i>s){var u=i;i=s,s=u}return i+gt+s+gt+(C(n)?Gn:n)}function $n(t,r,e,n){var i=""+r,s=""+e;if(!t&&i>s){var u=i;i=s,s=u}var o={v:i,w:s};return n&&(o.name=n),o}function V(t,r){return E(t,r.v,r.w,r.name)}export{Nn as $,$t as B,Dt as C,mr as E,U as G,Pn as I,Rt as K,Fn as M,yn as O,C as P,I as R,mn as T,G as U,T as X,Ct as a,Ar as b,R as c,Nt as d,y as e,cr as f,Y as k,O as m};
@@ -1 +0,0 @@
1
- import{P as E,K as j}from"./graph-BV6jB5rk-BPsWqwd1.js";import{A,w as J}from"./layout-LXMv3mSS-D7gLeKlL.js";import{a as K}from"./clone-B1V2003j-C6XGoCe0.js";import{c as z,m as H,o as W,h as q,x as Q,t as T,p as D,g as U,d as V,E as O,R,y as Y,f as Z}from"./edges-96097737-Zk-qG_8u-BvX-rD_e.js";import{O as i,E as B,x as C,F as G}from"./index-CBAg0_Do.js";import{$ as _}from"./createText-1719965b-C2-AT0ab-CSaYVcyR.js";function y(r){var e={options:{directed:r.isDirected(),multigraph:r.isMultigraph(),compound:r.isCompound()},nodes:ee(r),edges:te(r)};return E(r.graph())||(e.value=K(r.graph())),e}function ee(r){return J(r.nodes(),function(e){var t=r.node(e),a=r.parent(e),n={v:e};return E(t)||(n.value=t),E(a)||(n.parent=a),n})}function te(r){return J(r.edges(),function(e){var t=r.edge(e),a={v:e.v,w:e.w};return E(e.name)||(a.name=e.name),E(t)||(a.value=t),a})}let l={},u={},F={};const re=()=>{u={},F={},l={}},S=(r,e)=>(i.trace("In isDescendant",e," ",r," = ",u[e].includes(r)),!!u[e].includes(r)),ne=(r,e)=>(i.info("Descendants of ",e," is ",u[e]),i.info("Edge is ",r),r.v===e||r.w===e?!1:u[e]?u[e].includes(r.v)||S(r.v,e)||S(r.w,e)||u[e].includes(r.w):(i.debug("Tilt, ",e,",not in descendants"),!1)),$=(r,e,t,a)=>{i.warn("Copying children of ",r,"root",a,"data",e.node(r),a);const n=e.children(r)||[];r!==a&&n.push(r),i.warn("Copying (nodes) clusterId",r,"nodes",n),n.forEach(o=>{if(e.children(o).length>0)$(o,e,t,a);else{const c=e.node(o);i.info("cp ",o," to ",a," with parent ",r),t.setNode(o,c),a!==e.parent(o)&&(i.warn("Setting parent",o,e.parent(o)),t.setParent(o,e.parent(o))),r!==a&&o!==r?(i.debug("Setting parent",o,r),t.setParent(o,r)):(i.info("In copy ",r,"root",a,"data",e.node(r),a),i.debug("Not Setting parent for node=",o,"cluster!==rootId",r!==a,"node!==clusterId",o!==r));const g=e.edges(o);i.debug("Copying Edges",g),g.forEach(h=>{i.info("Edge",h);const f=e.edge(h.v,h.w,h.name);i.info("Edge data",f,a);try{ne(h,a)?(i.info("Copying as ",h.v,h.w,f,h.name),t.setEdge(h.v,h.w,f,h.name),i.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):i.info("Skipping copy of edge ",h.v,"-->",h.w," rootId: ",a," clusterId:",r)}catch(w){i.error(w)}})}i.debug("Removing node",o),e.removeNode(o)})},I=(r,e)=>{const t=e.children(r);let a=[...t];for(const n of t)F[n]=r,a=[...a,...I(n,e)];return a},X=(r,e)=>{i.trace("Searching",r);const t=e.children(r);if(i.trace("Searching children of id ",r,t),t.length<1)return i.trace("This is a valid node",r),r;for(const a of t){const n=X(a,e);if(n)return i.trace("Found replacement for",r," => ",n),n}},N=r=>!l[r]||!l[r].externalConnections?r:l[r]?l[r].id:r,ie=(r,e)=>{if(!r||e>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");r.nodes().forEach(function(t){r.children(t).length>0&&(i.warn("Cluster identified",t," Replacement id in edges: ",X(t,r)),u[t]=I(t,r),l[t]={id:X(t,r),clusterData:r.node(t)})}),r.nodes().forEach(function(t){const a=r.children(t),n=r.edges();a.length>0?(i.debug("Cluster identified",t,u),n.forEach(o=>{if(o.v!==t&&o.w!==t){const c=S(o.v,t),g=S(o.w,t);c^g&&(i.warn("Edge: ",o," leaves cluster ",t),i.warn("Descendants of XXX ",t,": ",u[t]),l[t].externalConnections=!0)}})):i.debug("Not a cluster ",t,u)});for(let t of Object.keys(l)){const a=l[t].id,n=r.parent(a);n!==t&&l[n]&&!l[n].externalConnections&&(l[t].id=n)}r.edges().forEach(function(t){const a=r.edge(t);i.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),i.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(r.edge(t)));let n=t.v,o=t.w;if(i.warn("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l[t.v]," --- ",l[t.w]),l[t.v]&&l[t.w]&&l[t.v]===l[t.w]){i.warn("Fixing and trixing link to self - removing XXX",t.v,t.w,t.name),i.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),n=N(t.v),o=N(t.w),r.removeEdge(t.v,t.w,t.name);const c=t.w+"---"+t.v;r.setNode(c,{domId:c,id:c,labelStyle:"",labelText:a.label,padding:0,shape:"labelRect",style:""});const g=structuredClone(a),h=structuredClone(a);g.label="",g.arrowTypeEnd="none",h.label="",g.fromCluster=t.v,h.toCluster=t.v,r.setEdge(n,c,g,t.name+"-cyclic-special"),r.setEdge(c,o,h,t.name+"-cyclic-special")}else if(l[t.v]||l[t.w]){if(i.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),n=N(t.v),o=N(t.w),r.removeEdge(t.v,t.w,t.name),n!==t.v){const c=r.parent(n);l[c].externalConnections=!0,a.fromCluster=t.v}if(o!==t.w){const c=r.parent(o);l[c].externalConnections=!0,a.toCluster=t.w}i.warn("Fix Replacing with XXX",n,o,t.name),r.setEdge(n,o,a,t.name)}}),i.warn("Adjusted Graph",y(r)),P(r,0),i.trace(l)},P=(r,e)=>{if(i.warn("extractor - ",e,y(r),r.children("D")),e>10){i.error("Bailing out");return}let t=r.nodes(),a=!1;for(const n of t){const o=r.children(n);a=a||o.length>0}if(!a){i.debug("Done, no node has children",r.nodes());return}i.debug("Nodes = ",t,e);for(const n of t)if(i.debug("Extracting node",n,l,l[n]&&!l[n].externalConnections,!r.parent(n),r.node(n),r.children("D")," Depth ",e),!l[n])i.debug("Not a cluster",n,e);else if(!l[n].externalConnections&&r.children(n)&&r.children(n).length>0){i.warn("Cluster without external connections, without a parent and with children",n,e);let o=r.graph().rankdir==="TB"?"LR":"TB";l[n]&&l[n].clusterData&&l[n].clusterData.dir&&(o=l[n].clusterData.dir,i.warn("Fixing dir",l[n].clusterData.dir,o));const c=new j({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",y(r)),$(n,r,c,n),r.setNode(n,{clusterNode:!0,id:n,clusterData:l[n].clusterData,labelText:l[n].labelText,graph:c}),i.warn("New graph after copy node: (",n,")",y(c)),i.debug("Old graph after copy",y(r))}else i.warn("Cluster ** ",n," **not meeting the criteria !externalConnections:",!l[n].externalConnections," no parent: ",!r.parent(n)," children ",r.children(n)&&r.children(n).length>0,r.children("D"),e),i.debug(l);t=r.nodes(),i.warn("New list of nodes",t);for(const n of t){const o=r.node(n);i.warn(" Now next level",n,o),o.clusterNode&&P(o.graph,e+1)}},k=(r,e)=>{if(e.length===0)return[];let t=Object.assign(e);return e.forEach(a=>{const n=r.children(a),o=k(r,n);t=[...t,...o]}),t},ae=r=>k(r,r.children()),oe=(r,e)=>{i.info("Creating subgraph rect for ",e.id,e);const t=B(),a=r.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),n=a.insert("rect",":first-child"),o=C(t.flowchart.htmlLabels),c=a.insert("g").attr("class","cluster-label"),g=e.labelType==="markdown"?_(c,e.labelText,{style:e.labelStyle,useHtmlLabels:o}):c.node().appendChild(R(e.labelText,e.labelStyle,void 0,!0));let h=g.getBBox();if(C(t.flowchart.htmlLabels)){const d=g.children[0],s=G(g);h=d.getBoundingClientRect(),s.attr("width",h.width),s.attr("height",h.height)}const f=0*e.padding,w=f/2,p=e.width<=h.width+f?h.width+f:e.width;e.width<=h.width+f?e.diff=(h.width-e.width)/2-e.padding/2:e.diff=-e.padding/2,i.trace("Data ",e,JSON.stringify(e)),n.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-p/2).attr("y",e.y-e.height/2-w).attr("width",p).attr("height",e.height+f);const{subGraphTitleTopMargin:x}=T(t);o?c.attr("transform",`translate(${e.x-h.width/2}, ${e.y-e.height/2+x})`):c.attr("transform",`translate(${e.x}, ${e.y-e.height/2+x})`);const v=n.node().getBBox();return e.width=v.width,e.height=v.height,e.intersect=function(d){return O(e,d)},a},de=(r,e)=>{const t=r.insert("g").attr("class","note-cluster").attr("id",e.id),a=t.insert("rect",":first-child"),n=0*e.padding,o=n/2;a.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2-o).attr("width",e.width+n).attr("height",e.height+n).attr("fill","none");const c=a.node().getBBox();return e.width=c.width,e.height=c.height,e.intersect=function(g){return O(e,g)},t},se=(r,e)=>{const t=B(),a=r.insert("g").attr("class",e.classes).attr("id",e.id),n=a.insert("rect",":first-child"),o=a.insert("g").attr("class","cluster-label"),c=a.append("rect"),g=o.node().appendChild(R(e.labelText,e.labelStyle,void 0,!0));let h=g.getBBox();if(C(t.flowchart.htmlLabels)){const d=g.children[0],s=G(g);h=d.getBoundingClientRect(),s.attr("width",h.width),s.attr("height",h.height)}h=g.getBBox();const f=0*e.padding,w=f/2,p=e.width<=h.width+e.padding?h.width+e.padding:e.width;e.width<=h.width+e.padding?e.diff=(h.width+e.padding*0-e.width)/2:e.diff=-e.padding/2,n.attr("class","outer").attr("x",e.x-p/2-w).attr("y",e.y-e.height/2-w).attr("width",p+f).attr("height",e.height+f),c.attr("class","inner").attr("x",e.x-p/2-w).attr("y",e.y-e.height/2-w+h.height-1).attr("width",p+f).attr("height",e.height+f-h.height-3);const{subGraphTitleTopMargin:x}=T(t);o.attr("transform",`translate(${e.x-h.width/2}, ${e.y-e.height/2-e.padding/3+(C(t.flowchart.htmlLabels)?5:3)+x})`);const v=n.node().getBBox();return e.height=v.height,e.intersect=function(d){return O(e,d)},a},le=(r,e)=>{const t=r.insert("g").attr("class",e.classes).attr("id",e.id),a=t.insert("rect",":first-child"),n=0*e.padding,o=n/2;a.attr("class","divider").attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2).attr("width",e.width+n).attr("height",e.height+n);const c=a.node().getBBox();return e.width=c.width,e.height=c.height,e.diff=-e.padding/2,e.intersect=function(g){return O(e,g)},t},he={rect:oe,roundedWithTitle:se,noteGroup:de,divider:le};let L={};const ce=(r,e)=>{i.trace("Inserting cluster");const t=e.shape||"rect";L[e.id]=he[t](r,e)},ge=()=>{L={}},M=async(r,e,t,a,n,o)=>{i.info("Graph in recursive render: XXX",y(e),n);const c=e.graph().rankdir;i.trace("Dir in recursive render - dir:",c);const g=r.insert("g").attr("class","root");e.nodes()?i.info("Recursive render XXX",e.nodes()):i.info("No nodes found for",e),e.edges().length>0&&i.trace("Recursive edges",e.edge(e.edges()[0]));const h=g.insert("g").attr("class","clusters"),f=g.insert("g").attr("class","edgePaths"),w=g.insert("g").attr("class","edgeLabels"),p=g.insert("g").attr("class","nodes");await Promise.all(e.nodes().map(async function(d){const s=e.node(d);if(n!==void 0){const m=JSON.parse(JSON.stringify(n.clusterData));i.info("Setting data for cluster XXX (",d,") ",m,n),e.setNode(n.id,m),e.parent(d)||(i.trace("Setting parent",d,n.id),e.setParent(d,n.id,m))}if(i.info("(Insert) Node XXX"+d+": "+JSON.stringify(e.node(d))),s&&s.clusterNode){i.info("Cluster identified",d,s.width,e.node(d));const m=await M(p,s.graph,t,a,e.node(d),o),b=m.elem;H(s,b),s.diff=m.diff||0,i.info("Node bounds (abc123)",d,s,s.width,s.x,s.y),W(b,s),i.warn("Recursive render complete ",b,s)}else e.children(d).length>0?(i.info("Cluster - the non recursive path XXX",d,s.id,s,e),i.info(X(s.id,e)),l[s.id]={id:X(s.id,e),node:s}):(i.info("Node - the non recursive path",d,s.id,s),await q(p,e.node(d),c))})),e.edges().forEach(function(d){const s=e.edge(d.v,d.w,d.name);i.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d)),i.info("Edge "+d.v+" -> "+d.w+": ",d," ",JSON.stringify(e.edge(d))),i.info("Fix",l,"ids:",d.v,d.w,"Translating: ",l[d.v],l[d.w]),Q(w,s)}),e.edges().forEach(function(d){i.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(d))}),i.info("#############################################"),i.info("### Layout ###"),i.info("#############################################"),i.info(e),A(e),i.info("Graph after layout:",y(e));let x=0;const{subGraphTitleTotalMargin:v}=T(o);return ae(e).forEach(function(d){const s=e.node(d);i.info("Position "+d+": "+JSON.stringify(e.node(d))),i.info("Position "+d+": ("+s.x,","+s.y,") width: ",s.width," height: ",s.height),s&&s.clusterNode?(s.y+=v,D(s)):e.children(d).length>0?(s.height+=v,ce(h,s),l[s.id].node=s):(s.y+=v/2,D(s))}),e.edges().forEach(function(d){const s=e.edge(d);i.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(s),s),s.points.forEach(b=>b.y+=v/2);const m=U(f,d,s,l,t,e,a);V(s,m)}),e.nodes().forEach(function(d){const s=e.node(d);i.info(d,s.type,s.diff),s.type==="group"&&(x=s.diff)}),{elem:g,diff:x}},me=async(r,e,t,a,n)=>{z(r,t,a,n),Y(),Z(),ge(),re(),i.warn("Graph at first:",JSON.stringify(y(e))),ie(e),i.warn("Graph after:",JSON.stringify(y(e)));const o=B();await M(r,e,a,n,void 0,o)};export{me as b};