@marimo-team/frontend 0.14.11-dev50 → 0.14.11-dev7

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 (138) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-CUoL500U.js → ConnectedDataExplorerComponent-C0P31a5y.js} +3 -3
  2. package/dist/assets/{ImageComparisonComponent-DDHwIJ8Q.js → ImageComparisonComponent-DXDeGx2f.js} +1 -1
  3. package/dist/assets/{VegaLite-Czmx_ECO.js → VegaLite-CUqFyetE.js} +1 -1
  4. package/dist/assets/_baseEach-BHb51vC7.js +1 -0
  5. package/dist/assets/_baseMap--rH4lBFQ.js +1 -0
  6. package/dist/assets/_baseUniq-CABXtSlj.js +1 -0
  7. package/dist/assets/{_createAggregator-CcihYROi.js → _createAggregator-SoA2y5HH.js} +1 -1
  8. package/dist/assets/{any-language-editor-bqVsHwiH.js → any-language-editor-Bw2cdBsS.js} +1 -1
  9. package/dist/assets/architectureDiagram-IEHRJDOE-rGoAHYH8.js +36 -0
  10. package/dist/assets/blockDiagram-JOT3LUYC-ZBJWq8Z_.js +121 -0
  11. package/dist/assets/{c4Diagram-6F6E4RAY-m6sAlCzp.js → c4Diagram-VJAJSXHY-BHtN7uMz.js} +2 -2
  12. package/dist/assets/channel-C96bdTqW.js +1 -0
  13. package/dist/assets/{chunk-353BL4L5-CnAx5AF0.js → chunk-4BMEZGHF-BO5DiwLV.js} +1 -1
  14. package/dist/assets/{chunk-QEP2MXWD-BxExN6Lp.js → chunk-A2AXSNBT-B07L-F60.js} +3 -4
  15. package/dist/assets/chunk-AEK57VVT-DN2-tsCz.js +220 -0
  16. package/dist/assets/{chunk-67H74DCK-Cto_4Bir.js → chunk-D6G4REZN-CbYGlbyQ.js} +1 -1
  17. package/dist/assets/chunk-RZ5BOZE2-DVex9AD8.js +1 -0
  18. package/dist/assets/{chunk-AACKK3MU-B_HaHcJu.js → chunk-XZIHB7SX-COKmet6t.js} +1 -1
  19. package/dist/assets/{circle-play-8nMu2iYy.js → circle-play-DSXPiHO0.js} +2 -2
  20. package/dist/assets/classDiagram-GIVACNV2-CehC5H1T.js +1 -0
  21. package/dist/assets/classDiagram-v2-COTLJTTW-CehC5H1T.js +1 -0
  22. package/dist/assets/clone-H0gxlZXI.js +1 -0
  23. package/dist/assets/compile-DEz1Y6_F.js +10 -0
  24. package/dist/assets/dagre-OKDRZEBW-CymbL2JX.js +4 -0
  25. package/dist/assets/{data-editor-BeWagiEI.js → data-editor-CTGVBJdC.js} +22 -22
  26. package/dist/assets/diagram-SSKATNLV-DY5vs_Bj.js +43 -0
  27. package/dist/assets/diagram-VNBRO52H-ZuQiOKh8.js +24 -0
  28. package/dist/assets/edit-page-DcQ6ZhfW.js +144 -0
  29. package/dist/assets/{erDiagram-R3QVA2FD-3xyAvrIh.js → erDiagram-Q7BY3M3F-l-V_9Yws.js} +1 -1
  30. package/dist/assets/flowDiagram-4HSFHLVR-BsHIJJTe.js +161 -0
  31. package/dist/assets/ganttDiagram-APWFNJXF-2gy5YbWU.js +257 -0
  32. package/dist/assets/gitGraphDiagram-7IBYFJ6S-B_ELHLbw.js +65 -0
  33. package/dist/assets/{graph-C4PkZZxf.js → graph-DpLAfWzk.js} +1 -1
  34. package/dist/assets/home-page-6auHzaGk.js +9 -0
  35. package/dist/assets/index-8IZtaDUn.css +1 -0
  36. package/dist/assets/index-B-mClP__.js +1 -0
  37. package/dist/assets/{index-DjJ-bG6v.js → index-BuqjbKw0.js} +1 -1
  38. package/dist/assets/{index-B-zQMBKJ.js → index-Bz3Lb65G.js} +1 -1
  39. package/dist/assets/{index-CKQeO2Lm.js → index-C9EPiaCd.js} +1 -1
  40. package/dist/assets/{index-DjpcQgUn.js → index-C9EbJL5c.js} +1 -1
  41. package/dist/assets/{index--PV_n6OT.js → index-Cig6xGYH.js} +1 -1
  42. package/dist/assets/{index-CEEx86Vd.js → index-CmVTfWOx.js} +1 -1
  43. package/dist/assets/{index-DnxVQzYt.js → index-Cs9jrmWP.js} +1 -1
  44. package/dist/assets/{index-BGwXzM6i.js → index-CxQo8Qlm.js} +1 -1
  45. package/dist/assets/{index-DGXmlIKQ.js → index-Czo055fo.js} +1 -1
  46. package/dist/assets/{index-tWtqwKDR.js → index-DAMc4rP9.js} +1 -1
  47. package/dist/assets/index-DDVWq6NK.js +501 -0
  48. package/dist/assets/{index-CqGB7278.js → index-DP4HiwTU.js} +1 -1
  49. package/dist/assets/{index-CtmLvKwt.js → index-DQwFB8dN.js} +1 -1
  50. package/dist/assets/{index-hzUC1b41.js → index-DZWCSqpf.js} +1 -1
  51. package/dist/assets/{index-Dx9C9kBl.js → index-DbunLlvf.js} +1 -1
  52. package/dist/assets/{index-grhOS4NZ.js → index-FYYNNs_X.js} +1 -1
  53. package/dist/assets/{index-TLD151he.js → index-N67HDT2u.js} +1 -1
  54. package/dist/assets/{index-BU0kTvje.js → index-kmp97oxc.js} +1 -1
  55. package/dist/assets/infoDiagram-PH2N3AL5-BwbaSo89.js +2 -0
  56. package/dist/assets/journeyDiagram-U35MCT3I-NKSvtlZA.js +138 -0
  57. package/dist/assets/{kanban-definition-ILFWEQ3N-CcX8Odhv.js → kanban-definition-NDS4AKOZ-Cw4Vh4wD.js} +8 -9
  58. package/dist/assets/{layout-CMZskpMv.js → layout-DodQLUx6.js} +1 -1
  59. package/dist/assets/linear-B_OPGLLI.js +1 -0
  60. package/dist/assets/loro_wasm_bg-DHBNbovs.wasm +0 -0
  61. package/dist/assets/mermaid-CVRC4Ruz.js +152 -0
  62. package/dist/assets/min-VmgWsmJ_.js +1 -0
  63. package/dist/assets/{mindmap-definition-CZNETY7S-CxqCAn65.js → mindmap-definition-ALO5MXBD-C0KGo_i_.js} +4 -4
  64. package/dist/assets/{pieDiagram-NIOCPIFQ-PRsPDCUf.js → pieDiagram-IB7DONF6-DCnELF9y.js} +1 -1
  65. package/dist/assets/{quadrantDiagram-2OG54O6I-pLLKFYFN.js → quadrantDiagram-7GDLP6J5-D0cP5ixt.js} +1 -1
  66. package/dist/assets/radar-MK3ICKWK-D8LhkSau.js +126 -0
  67. package/dist/assets/{react-plotly-O8CNh3yr.js → react-plotly-BmDAcz3M.js} +1 -1
  68. package/dist/assets/{requirementDiagram-SO3GGRV7-yjxijDDw.js → requirementDiagram-KVF5MWMF-BTksN04O.js} +3 -3
  69. package/dist/assets/run-page-17VQxU3e.js +1 -0
  70. package/dist/assets/{sankeyDiagram-4UZDY2LN-7AVzF911.js → sankeyDiagram-QLVOVGJD-DECOJIMC.js} +1 -1
  71. package/dist/assets/save-worker-DZnx0AG9.js +1 -0
  72. package/dist/assets/sequenceDiagram-X6HHIX6F-C5eDWwoH.js +122 -0
  73. package/dist/assets/shutdown-button-QvkERkPd.js +17 -0
  74. package/dist/assets/slides-component-DchvPU9C.js +1 -0
  75. package/dist/assets/sortBy-7ke7bFD2.js +1 -0
  76. package/dist/assets/stateDiagram-DGXRK772-D6Kwy963.js +1 -0
  77. package/dist/assets/stateDiagram-v2-YXO3MK2T-Bk10XR94.js +1 -0
  78. package/dist/assets/storage-BeNhlsrY.js +27 -0
  79. package/dist/assets/{terminal-Dxa0NUTG.js → terminal-MtCDBvKs.js} +1 -1
  80. package/dist/assets/{time-D69fB1YD.js → time-BoP93jle.js} +1 -1
  81. package/dist/assets/timeline-definition-BDJGKUSR-T1la59d1.js +61 -0
  82. package/dist/assets/tracing-CCltm96L.js +2 -0
  83. package/dist/assets/vega-component-j1BDb2QJ.js +1 -0
  84. package/dist/assets/worker-BbdB3qWL.js +1 -0
  85. package/dist/assets/worker-CnoOKJWk.js +1 -0
  86. package/dist/assets/xychartDiagram-VJFVF3MP-CoJqer7_.js +7 -0
  87. package/dist/index.html +2 -2
  88. package/package.json +42 -42
  89. package/dist/assets/_baseEach-C52A37kN.js +0 -1
  90. package/dist/assets/_baseMap-CErDCA3r.js +0 -1
  91. package/dist/assets/_baseUniq-hliKyzdp.js +0 -1
  92. package/dist/assets/architectureDiagram-NQ2NVSRB-BLiKdlfK.js +0 -36
  93. package/dist/assets/blockDiagram-PHRCVELO-Dj7uU_bm.js +0 -122
  94. package/dist/assets/channel-eH-Wxlwg.js +0 -1
  95. package/dist/assets/chunk-6OLS64BW-CrFJnDjp.js +0 -220
  96. package/dist/assets/chunk-BFAMUDN2-Di38VBDn.js +0 -1
  97. package/dist/assets/chunk-E2GYISFI-CPwLrORh.js +0 -15
  98. package/dist/assets/chunk-SKB7J2MH-CZ1cNiyn.js +0 -1
  99. package/dist/assets/classDiagram-BGRH5UQR-BnjY0hFP.js +0 -1
  100. package/dist/assets/classDiagram-v2-O24JOBDK-BnjY0hFP.js +0 -1
  101. package/dist/assets/clone-BqBqvZp5.js +0 -1
  102. package/dist/assets/compile-BFoHfP_H.js +0 -10
  103. package/dist/assets/dagre-FFZHY6LT-B2xtEGm4.js +0 -4
  104. package/dist/assets/diagram-3EMPZRKU-DSUnwT8T.js +0 -24
  105. package/dist/assets/diagram-5UYTHUR4-BKm2hW4S.js +0 -24
  106. package/dist/assets/diagram-ZTM2IBQH-BQuWD834.js +0 -43
  107. package/dist/assets/edit-page-Dp71Rq_B.js +0 -144
  108. package/dist/assets/flowDiagram-PKI6S5ZS-ZMlsBCaU.js +0 -162
  109. package/dist/assets/ganttDiagram-EK5VF46D-BCKhVKFb.js +0 -267
  110. package/dist/assets/gitGraphDiagram-GW3U2K7C-pHdDh1du.js +0 -65
  111. package/dist/assets/home-page-CmEC47AR.js +0 -9
  112. package/dist/assets/index-BEQfoZiP.js +0 -1
  113. package/dist/assets/index-D2Z1hqrf.js +0 -1
  114. package/dist/assets/index-DDdlzLJw.js +0 -503
  115. package/dist/assets/index-DnCBJYuC.css +0 -1
  116. package/dist/assets/infoDiagram-RLU2ROGC-CQRQmWBF.js +0 -2
  117. package/dist/assets/journeyDiagram-EWQZEKCU-DoTMV7Ld.js +0 -139
  118. package/dist/assets/linear-RD9P-hfS.js +0 -1
  119. package/dist/assets/links-BddFPrre.js +0 -17
  120. package/dist/assets/loro_wasm_bg-bPYKkGLG.wasm +0 -0
  121. package/dist/assets/mermaid-CjHlE8Co.js +0 -152
  122. package/dist/assets/min-DrLXTftx.js +0 -1
  123. package/dist/assets/run-page-CxZg57Ra.js +0 -1
  124. package/dist/assets/save-worker-B8gk1S9x.js +0 -1
  125. package/dist/assets/sequenceDiagram-ZIKVLSP4-CYsC6JlV.js +0 -122
  126. package/dist/assets/slides-component-t8hWAw30.js +0 -1
  127. package/dist/assets/sortBy-6rZ1GeDf.js +0 -1
  128. package/dist/assets/stateDiagram-XX37X6EN-DkOa47Ba.js +0 -1
  129. package/dist/assets/stateDiagram-v2-GD6S3NHB-CtNUX2HF.js +0 -1
  130. package/dist/assets/storage-DFM0grbQ.js +0 -25
  131. package/dist/assets/timeline-definition-RI47OAVP-Cv4RoOGw.js +0 -61
  132. package/dist/assets/tracing-CYcKBnLY.js +0 -2
  133. package/dist/assets/treemap-FKARHQ26-DIAQw-dY.js +0 -126
  134. package/dist/assets/vega-component-CzIbLUf6.js +0 -1
  135. package/dist/assets/worker-BYA2ASe8.js +0 -1
  136. package/dist/assets/worker-Ch6cKXnI.js +0 -1
  137. package/dist/assets/xychartDiagram-H2YORKM3-pYUlM72N.js +0 -7
  138. /package/dist/assets/{links-C1rhMrxo.css → shutdown-button-C1rhMrxo.css} +0 -0
@@ -1,267 +0,0 @@
1
- import{_ as d,g as le,s as de,q as ue,p as he,a as fe,b as me,c as ot,d as ye,ap as V,l as mt,j as ke,i as pe,y as ge,u as be}from"./mermaid-CjHlE8Co.js";import{z as gt,bW as Wt,bO as Ot,bN as ve,cs as xe,ct as Te,cu as we,cv as _e,cw as De,cx as $e,bM as Pt,bL as zt,bK as Bt,bA as Ht,bJ as Nt}from"./index-DDdlzLJw.js";import{s as bt}from"./transform-DetRMEbJ.js";import{t as Ce,m as Se,a as Me,i as Ee}from"./time-D69fB1YD.js";import{l as Ae}from"./linear-RD9P-hfS.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";import"./init-DLRA0X12.js";function Le(t){return t}var Gt=1e-6;function Ie(t){return"translate("+t+",0)"}function Ye(t){return"translate(0,"+t+")"}function Fe(t){return n=>+t(n)}function We(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),s=>+t(s)+n}function Oe(){return!this.__axis}function jt(t,n){var s=[],r=null,i=null,c=6,h=6,A=3,x=typeof window<"u"&&window.devicePixelRatio>1?0:.5,$=t===1||t===4?-1:1,L=t===4||t===2?"x":"y",W=t===1||t===3?Ie:Ye;function S(D){var p=r??(n.ticks?n.ticks.apply(n,s):n.domain()),y=i??(n.tickFormat?n.tickFormat.apply(n,s):Le),M=Math.max(c,0)+A,E=n.range(),P=+E[0]+x,z=+E[E.length-1]+x,j=(n.bandwidth?We:Fe)(n.copy(),x),B=D.selection?D.selection():D,O=B.selectAll(".domain").data([null]),Y=B.selectAll(".tick").data(p,n).order(),k=Y.exit(),w=Y.enter().append("g").attr("class","tick"),b=Y.select("line"),g=Y.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(w),b=b.merge(w.append("line").attr("stroke","currentColor").attr(L+"2",$*c)),g=g.merge(w.append("text").attr("fill","currentColor").attr(L,$*M).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),D!==B&&(O=O.transition(D),Y=Y.transition(D),b=b.transition(D),g=g.transition(D),k=k.transition(D).attr("opacity",Gt).attr("transform",function(f){return isFinite(f=j(f))?W(f+x):this.getAttribute("transform")}),w.attr("opacity",Gt).attr("transform",function(f){var o=this.parentNode.__axis;return W((o&&isFinite(o=o(f))?o:j(f))+x)})),k.remove(),O.attr("d",t===4||t===2?h?"M"+$*h+","+P+"H"+x+"V"+z+"H"+$*h:"M"+x+","+P+"V"+z:h?"M"+P+","+$*h+"V"+x+"H"+z+"V"+$*h:"M"+P+","+x+"H"+z),Y.attr("opacity",1).attr("transform",function(f){return W(j(f)+x)}),b.attr(L+"2",$*c),g.attr(L,$*M).text(y),B.filter(Oe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),B.each(function(){this.__axis=j})}return S.scale=function(D){return arguments.length?(n=D,S):n},S.ticks=function(){return s=Array.from(arguments),S},S.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),S):s.slice()},S.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),S):r&&r.slice()},S.tickFormat=function(D){return arguments.length?(i=D,S):i},S.tickSize=function(D){return arguments.length?(c=h=+D,S):c},S.tickSizeInner=function(D){return arguments.length?(c=+D,S):c},S.tickSizeOuter=function(D){return arguments.length?(h=+D,S):h},S.tickPadding=function(D){return arguments.length?(A=+D,S):A},S.offset=function(D){return arguments.length?(x=+D,S):x},S}var Vt,yt,Rt={exports:{}};const Pe=gt(Vt?Rt.exports:(Vt=1,Rt.exports=(yt="day",function(t,n,s){var r=function(h){return h.add(4-h.isoWeekday(),yt)},i=n.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(h){if(!this.$utils().u(h))return this.add(7*(h-this.isoWeek()),yt);var A,x,$,L=r(this),W=(A=this.isoWeekYear(),$=4-(x=(this.$u?s.utc:s)().year(A).startOf("year")).isoWeekday(),x.isoWeekday()>4&&($+=7),x.add($,yt));return L.diff(W,"week")+1},i.isoWeekday=function(h){return this.$utils().u(h)?this.day()||7:this.day(this.day()%7?h:h-7)};var c=i.startOf;i.startOf=function(h,A){var x=this.$utils(),$=!!x.u(A)||A;return x.p(h)==="isoweek"?$?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(h,A)}})));var Zt,Ut={exports:{}},ze=(Zt||(Zt=1,Ut.exports=function(){var t={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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,r=/\d\d/,i=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,h={},A=function(p){return(p=+p)+(p>68?1900:2e3)},x=function(p){return function(y){this[p]=+y}},$=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var M=y.match(/([+-]|\d\d)/g),E=60*M[1]+(+M[2]||0);return E===0?0:M[0]==="+"?-E:E}(p)}],L=function(p){var y=h[p];return y&&(y.indexOf?y:y.s.concat(y.f))},W=function(p,y){var M,E=h.meridiem;if(E){for(var P=1;P<=24;P+=1)if(p.indexOf(E(P,0,y))>-1){M=P>12;break}}else M=p===(y?"pm":"PM");return M},S={A:[c,function(p){this.afternoon=W(p,!1)}],a:[c,function(p){this.afternoon=W(p,!0)}],Q:[s,function(p){this.month=3*(p-1)+1}],S:[s,function(p){this.milliseconds=100*+p}],SS:[r,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,x("seconds")],ss:[i,x("seconds")],m:[i,x("minutes")],mm:[i,x("minutes")],H:[i,x("hours")],h:[i,x("hours")],HH:[i,x("hours")],hh:[i,x("hours")],D:[i,x("day")],DD:[r,x("day")],Do:[c,function(p){var y=h.ordinal,M=p.match(/\d+/);if(this.day=M[0],y)for(var E=1;E<=31;E+=1)y(E).replace(/\[|\]/g,"")===p&&(this.day=E)}],w:[i,x("week")],ww:[r,x("week")],M:[i,x("month")],MM:[r,x("month")],MMM:[c,function(p){var y=L("months"),M=(L("monthsShort")||y.map(function(E){return E.slice(0,3)})).indexOf(p)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[c,function(p){var y=L("months").indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,x("year")],YY:[r,function(p){this.year=A(p)}],YYYY:[/\d{4}/,x("year")],Z:$,ZZ:$};function D(p){var y,M;y=p,M=h&&h.formats;for(var E=(p=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,w,b){var g=b&&b.toUpperCase();return w||M[b]||t[b]||M[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(f,o,m){return o||m.slice(1)})})).match(n),P=E.length,z=0;z<P;z+=1){var j=E[z],B=S[j],O=B&&B[0],Y=B&&B[1];E[z]=Y?{regex:O,parser:Y}:j.replace(/^\[|\]$/g,"")}return function(k){for(var w={},b=0,g=0;b<P;b+=1){var f=E[b];if(typeof f=="string")g+=f.length;else{var o=f.regex,m=f.parser,u=k.slice(g),l=o.exec(u)[0];m.call(w,l),k=k.replace(l,"")}}return function(T){var e=T.afternoon;if(e!==void 0){var v=T.hours;e?v<12&&(T.hours+=12):v===12&&(T.hours=0),delete T.afternoon}}(w),w}}return function(p,y,M){M.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(A=p.parseTwoDigitYear);var E=y.prototype,P=E.parse;E.parse=function(z){var j=z.date,B=z.utc,O=z.args;this.$u=B;var Y=O[1];if(typeof Y=="string"){var k=O[2]===!0,w=O[3]===!0,b=k||w,g=O[2];w&&(g=O[2]),h=this.$locale(),!k&&g&&(h=M.Ls[g]),this.$d=function(u,l,T,e){try{if(["x","X"].indexOf(l)>-1)return new Date((l==="X"?1e3:1)*u);var v=D(l)(u),a=v.year,_=v.month,I=v.day,F=v.hours,C=v.minutes,U=v.seconds,tt=v.milliseconds,rt=v.zone,ft=v.week,st=new Date,N=I||(a||_?1:st.getDate()),q=a||st.getFullYear(),G=0;a&&!_||(G=_>0?_-1:st.getMonth());var et,X=F||0,R=C||0,at=U||0,J=tt||0;return rt?new Date(Date.UTC(q,G,N,X,R,at,J+60*rt.offset*1e3)):T?new Date(Date.UTC(q,G,N,X,R,at,J)):(et=new Date(q,G,N,X,R,at,J),ft&&(et=e(et).week(ft).toDate()),et)}catch{return new Date("")}}(j,Y,B,M),this.init(),g&&g!==!0&&(this.$L=this.locale(g).$L),b&&j!=this.format(Y)&&(this.$d=new Date("")),h={}}else if(Y instanceof Array)for(var f=Y.length,o=1;o<=f;o+=1){O[1]=Y[o-1];var m=M.apply(this,O);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}o===f&&(this.$d=new Date(""))}else P.call(this,z)}}}()),Ut.exports);const Be=gt(ze);var qt,Qt={exports:{}},He=(qt||(qt=1,Qt.exports=function(t,n){var s=n.prototype,r=s.format;s.format=function(i){var c=this,h=this.$locale();if(!this.isValid())return r.bind(this)(i);var A=this.$utils(),x=(i||"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($){switch($){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return h.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return h.ordinal(c.week(),"W");case"w":case"ww":return A.s(c.week(),$==="w"?1:2,"0");case"W":case"WW":return A.s(c.isoWeek(),$==="W"?1:2,"0");case"k":case"kk":return A.s(String(c.$H===0?24:c.$H),$==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return $}});return r.bind(this)(x)}}),Qt.exports);const Ne=gt(He);var vt=function(){var t=d(function(o,m,u,l){for(u=u||{},l=o.length;l--;u[o[l]]=m);return u},"o"),n=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],c=[1,29],h=[1,30],A=[1,31],x=[1,32],$=[1,33],L=[1,34],W=[1,9],S=[1,10],D=[1,11],p=[1,12],y=[1,13],M=[1,14],E=[1,15],P=[1,16],z=[1,19],j=[1,20],B=[1,21],O=[1,22],Y=[1,23],k=[1,25],w=[1,35],b={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(o,m,u,l,T,e,v){var a=e.length-1;switch(T){case 1:return e[a-1];case 2:case 6:case 7:this.$=[];break;case 3:e[a-1].push(e[a]),this.$=e[a-1];break;case 4:case 5:this.$=e[a];break;case 8:l.setWeekday("monday");break;case 9:l.setWeekday("tuesday");break;case 10:l.setWeekday("wednesday");break;case 11:l.setWeekday("thursday");break;case 12:l.setWeekday("friday");break;case 13:l.setWeekday("saturday");break;case 14:l.setWeekday("sunday");break;case 15:l.setWeekend("friday");break;case 16:l.setWeekend("saturday");break;case 17:l.setDateFormat(e[a].substr(11)),this.$=e[a].substr(11);break;case 18:l.enableInclusiveEndDates(),this.$=e[a].substr(18);break;case 19:l.TopAxis(),this.$=e[a].substr(8);break;case 20:l.setAxisFormat(e[a].substr(11)),this.$=e[a].substr(11);break;case 21:l.setTickInterval(e[a].substr(13)),this.$=e[a].substr(13);break;case 22:l.setExcludes(e[a].substr(9)),this.$=e[a].substr(9);break;case 23:l.setIncludes(e[a].substr(9)),this.$=e[a].substr(9);break;case 24:l.setTodayMarker(e[a].substr(12)),this.$=e[a].substr(12);break;case 27:l.setDiagramTitle(e[a].substr(6)),this.$=e[a].substr(6);break;case 28:this.$=e[a].trim(),l.setAccTitle(this.$);break;case 29:case 30:this.$=e[a].trim(),l.setAccDescription(this.$);break;case 31:l.addSection(e[a].substr(8)),this.$=e[a].substr(8);break;case 33:l.addTask(e[a-1],e[a]),this.$="task";break;case 34:this.$=e[a-1],l.setClickEvent(e[a-1],e[a],null);break;case 35:this.$=e[a-2],l.setClickEvent(e[a-2],e[a-1],e[a]);break;case 36:this.$=e[a-2],l.setClickEvent(e[a-2],e[a-1],null),l.setLink(e[a-2],e[a]);break;case 37:this.$=e[a-3],l.setClickEvent(e[a-3],e[a-2],e[a-1]),l.setLink(e[a-3],e[a]);break;case 38:this.$=e[a-2],l.setClickEvent(e[a-2],e[a],null),l.setLink(e[a-2],e[a-1]);break;case 39:this.$=e[a-3],l.setClickEvent(e[a-3],e[a-1],e[a]),l.setLink(e[a-3],e[a-2]);break;case 40:this.$=e[a-1],l.setLink(e[a-1],e[a]);break;case 41:case 47:this.$=e[a-1]+" "+e[a];break;case 42:case 43:case 45:this.$=e[a-2]+" "+e[a-1]+" "+e[a];break;case 44:case 46:this.$=e[a-3]+" "+e[a-2]+" "+e[a-1]+" "+e[a]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:c,16:h,17:A,18:x,19:18,20:$,21:L,22:W,23:S,24:D,25:p,26:y,27:M,28:E,29:P,30:z,31:j,33:B,35:O,36:Y,37:24,38:k,40:w},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:c,16:h,17:A,18:x,19:18,20:$,21:L,22:W,23:S,24:D,25:p,26:y,27:M,28:E,29:P,30:z,31:j,33:B,35:O,36:Y,37:24,38:k,40:w},t(n,[2,5]),t(n,[2,6]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,20]),t(n,[2,21]),t(n,[2,22]),t(n,[2,23]),t(n,[2,24]),t(n,[2,25]),t(n,[2,26]),t(n,[2,27]),{32:[1,37]},{34:[1,38]},t(n,[2,30]),t(n,[2,31]),t(n,[2,32]),{39:[1,39]},t(n,[2,8]),t(n,[2,9]),t(n,[2,10]),t(n,[2,11]),t(n,[2,12]),t(n,[2,13]),t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),{41:[1,40],43:[1,41]},t(n,[2,4]),t(n,[2,28]),t(n,[2,29]),t(n,[2,33]),t(n,[2,34],{42:[1,42],43:[1,43]}),t(n,[2,40],{41:[1,44]}),t(n,[2,35],{43:[1,45]}),t(n,[2,36]),t(n,[2,38],{42:[1,46]}),t(n,[2,37]),t(n,[2,39])],defaultActions:{},parseError:d(function(o,m){if(!m.recoverable){var u=new Error(o);throw u.hash=m,u}this.trace(o)},"parseError"),parse:d(function(o){var m=this,u=[0],l=[],T=[null],e=[],v=this.table,a="",_=0,I=0,F=e.slice.call(arguments,1),C=Object.create(this.lexer),U={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(U.yy[tt]=this.yy[tt]);C.setInput(o,U.yy),U.yy.lexer=C,U.yy.parser=this,C.yylloc===void 0&&(C.yylloc={});var rt=C.yylloc;e.push(rt);var ft=C.options&&C.options.ranges;function st(){var Z;return typeof(Z=l.pop()||C.lex()||1)!="number"&&(Z instanceof Array&&(Z=(l=Z).pop()),Z=m.symbols_[Z]||Z),Z}typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,d(function(Z){u.length=u.length-2*Z,T.length=T.length-Z,e.length=e.length-Z},"popStack"),d(st,"lex");for(var N,q,G,et,X,R,at,J,nt={};;){if(q=u[u.length-1],this.defaultActions[q]?G=this.defaultActions[q]:(N==null&&(N=st()),G=v[q]&&v[q][N]),G===void 0||!G.length||!G[0]){var Ft="";for(X in J=[],v[q])this.terminals_[X]&&X>2&&J.push("'"+this.terminals_[X]+"'");Ft=C.showPosition?"Parse error on line "+(_+1)+`:
2
- `+C.showPosition()+`
3
- Expecting `+J.join(", ")+", got '"+(this.terminals_[N]||N)+"'":"Parse error on line "+(_+1)+": Unexpected "+(N==1?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(Ft,{text:C.match,token:this.terminals_[N]||N,line:C.yylineno,loc:rt,expected:J})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+N);switch(G[0]){case 1:u.push(N),T.push(C.yytext),e.push(C.yylloc),u.push(G[1]),N=null,I=C.yyleng,a=C.yytext,_=C.yylineno,rt=C.yylloc;break;case 2:if(R=this.productions_[G[1]][1],nt.$=T[T.length-R],nt._$={first_line:e[e.length-(R||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(R||1)].first_column,last_column:e[e.length-1].last_column},ft&&(nt._$.range=[e[e.length-(R||1)].range[0],e[e.length-1].range[1]]),(et=this.performAction.apply(nt,[a,I,_,U.yy,G[1],T,e].concat(F)))!==void 0)return et;R&&(u=u.slice(0,-1*R*2),T=T.slice(0,-1*R),e=e.slice(0,-1*R)),u.push(this.productions_[G[1]][0]),T.push(nt.$),e.push(nt._$),at=v[u[u.length-2]][u[u.length-1]],u.push(at);break;case 3:return!0}}return!0},"parse")},g=function(){return{EOF:1,parseError:d(function(o,m){if(!this.yy.parser)throw new Error(o);this.yy.parser.parseError(o,m)},"parseError"),setInput:d(function(o,m){return this.yy=m||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:d(function(o){var m=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var l=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),u.length-1&&(this.yylineno-=u.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===l.length?this.yylloc.first_column:0)+l[l.length-u.length].length-u[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:d(function(o){this.unput(this.match.slice(o))},"less"),pastInput:d(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var o=this.pastInput(),m=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
- `+m+"^"},"showPosition"),test_match:d(function(o,m){var u,l,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),(l=o[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],u=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var e in T)this[e]=T[e];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;var o,m,u,l;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),e=0;e<T.length;e++)if((u=this._input.match(this.rules[T[e]]))&&(!m||u[0].length>m[0].length)){if(m=u,l=e,this.options.backtrack_lexer){if((o=this.test_match(u,T[e]))!==!1)return o;if(this._backtrack){m=!1;continue}return!1}if(!this.options.flex)break}return m?(o=this.test_match(m,T[l]))!==!1&&o:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var o=this.next();return o||this.lex()},"lex"),begin:d(function(o){this.conditionStack.push(o)},"begin"),popState:d(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(o){return(o=this.conditionStack.length-1-Math.abs(o||0))>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:d(function(o){this.begin(o)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(o,m,u,l){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}}();function f(){this.yy={}}return b.lexer=g,d(f,"Parser"),f.prototype=b,b.Parser=f,new f}();vt.parser=vt;var Ge=vt;V.extend(Pe),V.extend(Be),V.extend(Ne);var xt,kt,Xt={friday:5,saturday:6},Q="",Tt="",wt=void 0,_t="",dt=[],ut=[],Dt=new Map,$t=[],Ct=[],ct="",St="",Jt=["active","done","crit","milestone","vert"],Mt=[],ht=!1,Et=!1,At="sunday",pt="saturday",Lt=0,je=d(function(){$t=[],Ct=[],ct="",Mt=[],ie=0,xt=void 0,kt=void 0,H=[],Q="",Tt="",St="",wt=void 0,_t="",dt=[],ut=[],ht=!1,Et=!1,Lt=0,Dt=new Map,ge(),At="sunday",pt="saturday"},"clear"),Ve=d(function(t){Tt=t},"setAxisFormat"),Re=d(function(){return Tt},"getAxisFormat"),Ze=d(function(t){wt=t},"setTickInterval"),Ue=d(function(){return wt},"getTickInterval"),qe=d(function(t){_t=t},"setTodayMarker"),Qe=d(function(){return _t},"getTodayMarker"),Xe=d(function(t){Q=t},"setDateFormat"),Je=d(function(){ht=!0},"enableInclusiveEndDates"),Ke=d(function(){return ht},"endDatesAreInclusive"),tn=d(function(){Et=!0},"enableTopAxis"),en=d(function(){return Et},"topAxisEnabled"),nn=d(function(t){St=t},"setDisplayMode"),rn=d(function(){return St},"getDisplayMode"),sn=d(function(){return Q},"getDateFormat"),an=d(function(t){dt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),on=d(function(){return dt},"getIncludes"),cn=d(function(t){ut=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),ln=d(function(){return ut},"getExcludes"),dn=d(function(){return Dt},"getLinks"),un=d(function(t){ct=t,$t.push(t)},"addSection"),hn=d(function(){return $t},"getSections"),fn=d(function(){let t=se(),n=0;for(;!t&&n<10;)t=se(),n++;return Ct=H},"getTasks"),Kt=d(function(t,n,s,r){return!r.includes(t.format(n.trim()))&&(!(!s.includes("weekends")||t.isoWeekday()!==Xt[pt]&&t.isoWeekday()!==Xt[pt]+1)||!!s.includes(t.format("dddd").toLowerCase())||s.includes(t.format(n.trim())))},"isInvalidDate"),mn=d(function(t){At=t},"setWeekday"),yn=d(function(){return At},"getWeekday"),kn=d(function(t){pt=t},"setWeekend"),te=d(function(t,n,s,r){if(!s.length||t.manualEndTime)return;let i,c;i=t.startTime instanceof Date?V(t.startTime):V(t.startTime,n,!0),i=i.add(1,"d"),c=t.endTime instanceof Date?V(t.endTime):V(t.endTime,n,!0);const[h,A]=pn(i,c,n,s,r);t.endTime=h.toDate(),t.renderEndTime=A},"checkTaskDates"),pn=d(function(t,n,s,r,i){let c=!1,h=null;for(;t<=n;)c||(h=n.toDate()),c=Kt(t,s,r,i),c&&(n=n.add(1,"d")),t=t.add(1,"d");return[n,h]},"fixTaskDates"),It=d(function(t,n,s){s=s.trim();const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(s);if(r!==null){let c=null;for(const A of r.groups.ids.split(" ")){let x=it(A);x!==void 0&&(!c||x.endTime>c.endTime)&&(c=x)}if(c)return c.endTime;const h=new Date;return h.setHours(0,0,0,0),h}let i=V(s,n.trim(),!0);if(i.isValid())return i.toDate();{mt.debug("Invalid date:"+s),mt.debug("With date format:"+n.trim());const c=new Date(s);if(c===void 0||isNaN(c.getTime())||c.getFullYear()<-1e4||c.getFullYear()>1e4)throw new Error("Invalid date:"+s);return c}},"getStartDate"),ee=d(function(t){const n=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return n!==null?[Number.parseFloat(n[1]),n[2]]:[NaN,"ms"]},"parseDuration"),ne=d(function(t,n,s,r=!1){s=s.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(s);if(i!==null){let $=null;for(const W of i.groups.ids.split(" ")){let S=it(W);S!==void 0&&(!$||S.startTime<$.startTime)&&($=S)}if($)return $.startTime;const L=new Date;return L.setHours(0,0,0,0),L}let c=V(s,n.trim(),!0);if(c.isValid())return r&&(c=c.add(1,"d")),c.toDate();let h=V(t);const[A,x]=ee(s);if(!Number.isNaN(A)){const $=h.add(A,x);$.isValid()&&(h=$)}return h.toDate()},"getEndDate"),ie=0,lt=d(function(t){return t===void 0?"task"+(ie+=1):t},"parseId"),gn=d(function(t,n){let s;s=n.substr(0,1)===":"?n.substr(1,n.length):n;const r=s.split(","),i={};Yt(r,i,Jt);for(let h=0;h<r.length;h++)r[h]=r[h].trim();let c="";switch(r.length){case 1:i.id=lt(),i.startTime=t.endTime,c=r[0];break;case 2:i.id=lt(),i.startTime=It(void 0,Q,r[0]),c=r[1];break;case 3:i.id=lt(r[0]),i.startTime=It(void 0,Q,r[1]),c=r[2]}return c&&(i.endTime=ne(i.startTime,Q,c,ht),i.manualEndTime=V(c,"YYYY-MM-DD",!0).isValid(),te(i,Q,ut,dt)),i},"compileData"),bn=d(function(t,n){let s;s=n.substr(0,1)===":"?n.substr(1,n.length):n;const r=s.split(","),i={};Yt(r,i,Jt);for(let c=0;c<r.length;c++)r[c]=r[c].trim();switch(r.length){case 1:i.id=lt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=lt(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=lt(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i},"parseData"),H=[],re={},vn=d(function(t,n){const s={section:ct,type:ct,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:t,classes:[]},r=bn(kt,n);s.raw.startTime=r.startTime,s.raw.endTime=r.endTime,s.id=r.id,s.prevTaskId=kt,s.active=r.active,s.done=r.done,s.crit=r.crit,s.milestone=r.milestone,s.vert=r.vert,s.order=Lt,Lt++;const i=H.push(s);kt=s.id,re[s.id]=i-1},"addTask"),it=d(function(t){const n=re[t];return H[n]},"findTaskById"),xn=d(function(t,n){const s={section:ct,type:ct,description:t,task:t,classes:[]},r=gn(xt,n);s.startTime=r.startTime,s.endTime=r.endTime,s.id=r.id,s.active=r.active,s.done=r.done,s.crit=r.crit,s.milestone=r.milestone,s.vert=r.vert,xt=s,Ct.push(s)},"addTaskOrg"),se=d(function(){const t=d(function(s){const r=H[s];let i="";switch(H[s].raw.startTime.type){case"prevTaskEnd":{const c=it(r.prevTaskId);r.startTime=c.endTime;break}case"getStartDate":i=It(void 0,Q,H[s].raw.startTime.startData),i&&(H[s].startTime=i)}return H[s].startTime&&(H[s].endTime=ne(H[s].startTime,Q,H[s].raw.endTime.data,ht),H[s].endTime&&(H[s].processed=!0,H[s].manualEndTime=V(H[s].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),te(H[s],Q,ut,dt))),H[s].processed},"compileTask");let n=!0;for(const[s,r]of H.entries())t(s),n=n&&r.processed;return n},"compileTasks"),Tn=d(function(t,n){let s=n;ot().securityLevel!=="loose"&&(s=pe.sanitizeUrl(n)),t.split(",").forEach(function(r){it(r)!==void 0&&(oe(r,()=>{window.open(s,"_self")}),Dt.set(r,s))}),ae(t,"clickable")},"setLink"),ae=d(function(t,n){t.split(",").forEach(function(s){let r=it(s);r!==void 0&&r.classes.push(n)})},"setClass"),wn=d(function(t,n,s){if(ot().securityLevel!=="loose"||n===void 0)return;let r=[];if(typeof s=="string"){r=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<r.length;i++){let c=r[i].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),r[i]=c}}r.length===0&&r.push(t),it(t)!==void 0&&oe(t,()=>{be.runFunc(n,...r)})},"setClickFun"),oe=d(function(t,n){Mt.push(function(){const s=document.querySelector(`[id="${t}"]`);s!==null&&s.addEventListener("click",function(){n()})},function(){const s=document.querySelector(`[id="${t}-text"]`);s!==null&&s.addEventListener("click",function(){n()})})},"pushFun"),_n=d(function(t,n,s){t.split(",").forEach(function(r){wn(r,n,s)}),ae(t,"clickable")},"setClickEvent"),Dn=d(function(t){Mt.forEach(function(n){n(t)})},"bindFunctions"),$n={getConfig:d(()=>ot().gantt,"getConfig"),clear:je,setDateFormat:Xe,getDateFormat:sn,enableInclusiveEndDates:Je,endDatesAreInclusive:Ke,enableTopAxis:tn,topAxisEnabled:en,setAxisFormat:Ve,getAxisFormat:Re,setTickInterval:Ze,getTickInterval:Ue,setTodayMarker:qe,getTodayMarker:Qe,setAccTitle:me,getAccTitle:fe,setDiagramTitle:he,getDiagramTitle:ue,setDisplayMode:nn,getDisplayMode:rn,setAccDescription:de,getAccDescription:le,addSection:un,getSections:hn,getTasks:fn,addTask:vn,findTaskById:it,addTaskOrg:xn,setIncludes:an,getIncludes:on,setExcludes:cn,getExcludes:ln,setClickEvent:_n,setLink:Tn,getLinks:dn,bindFunctions:Dn,parseDuration:ee,isInvalidDate:Kt,setWeekday:mn,getWeekday:yn,setWeekend:kn};function Yt(t,n,s){let r=!0;for(;r;)r=!1,s.forEach(function(i){const c=new RegExp("^\\s*"+i+"\\s*$");t[0].match(c)&&(n[i]=!0,t.shift(1),r=!0)})}d(Yt,"getTaskTags");var K,Cn=d(function(){mt.debug("Something is calling, setConf, remove the call")},"setConf"),ce={monday:$e,tuesday:De,wednesday:_e,thursday:we,friday:Te,saturday:xe,sunday:ve},Sn=d((t,n)=>{let s=[...t].map(()=>-1/0),r=[...t].sort((c,h)=>c.startTime-h.startTime||c.order-h.order),i=0;for(const c of r)for(let h=0;h<s.length;h++)if(c.startTime>=s[h]){s[h]=c.endTime,c.order=h+n,h>i&&(i=h);break}return i},"getMaxIntersections"),Mn={parser:Ge,db:$n,renderer:{setConf:Cn,draw:d(function(t,n,s,r){const i=ot().gantt,c=ot().securityLevel;let h;c==="sandbox"&&(h=bt("#i"+n));const A=bt(c==="sandbox"?h.nodes()[0].contentDocument.body:"body"),x=c==="sandbox"?h.nodes()[0].contentDocument:document,$=x.getElementById(n);(K=$.parentElement.offsetWidth)===void 0&&(K=1200),i.useWidth!==void 0&&(K=i.useWidth);const L=r.db.getTasks();let W=[];for(const k of L)W.push(k.type);W=Y(W);const S={};let D=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const k={};for(const b of L)k[b.section]===void 0?k[b.section]=[b]:k[b.section].push(b);let w=0;for(const b of Object.keys(k)){const g=Sn(k[b],w)+1;w+=g,D+=g*(i.barHeight+i.barGap),S[b]=g}}else{D+=L.length*(i.barHeight+i.barGap);for(const k of W)S[k]=L.filter(w=>w.type===k).length}$.setAttribute("viewBox","0 0 "+K+" "+D);const p=A.select(`[id="${n}"]`),y=Ce().domain([Se(L,function(k){return k.startTime}),Me(L,function(k){return k.endTime})]).rangeRound([0,K-i.leftPadding-i.rightPadding]);function M(k,w){const b=k.startTime,g=w.startTime;let f=0;return b>g?f=1:b<g&&(f=-1),f}function E(k,w,b){const g=i.barHeight,f=g+i.barGap,o=i.topPadding,m=i.leftPadding,u=Ae().domain([0,W.length]).range(["#00B9FA","#F95002"]).interpolate(Ee);z(f,o,m,w,b,k,r.db.getExcludes(),r.db.getIncludes()),j(m,o,w,b),P(k,f,o,m,g,u,w),B(f,o),O(m,o,w,b)}function P(k,w,b,g,f,o,m){k.sort((e,v)=>e.vert===v.vert?0:e.vert?1:-1);const u=[...new Set(k.map(e=>e.order))].map(e=>k.find(v=>v.order===e));p.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(e,v){return e.order*w+b-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",w).attr("class",function(e){for(const[v,a]of W.entries())if(e.type===a)return"section section"+v%i.numberSectionStyles;return"section section0"}).enter();const l=p.append("g").selectAll("rect").data(k).enter(),T=r.db.getLinks();if(l.append("rect").attr("id",function(e){return e.id}).attr("rx",3).attr("ry",3).attr("x",function(e){return e.milestone?y(e.startTime)+g+.5*(y(e.endTime)-y(e.startTime))-.5*f:y(e.startTime)+g}).attr("y",function(e,v){return v=e.order,e.vert?i.gridLineStartPadding:v*w+b}).attr("width",function(e){return e.milestone?f:e.vert?.08*f:y(e.renderEndTime||e.endTime)-y(e.startTime)}).attr("height",function(e){return e.vert?L.length*(i.barHeight+i.barGap)+2*i.barHeight:f}).attr("transform-origin",function(e,v){return v=e.order,(y(e.startTime)+g+.5*(y(e.endTime)-y(e.startTime))).toString()+"px "+(v*w+b+.5*f).toString()+"px"}).attr("class",function(e){let v="";e.classes.length>0&&(v=e.classes.join(" "));let a=0;for(const[I,F]of W.entries())e.type===F&&(a=I%i.numberSectionStyles);let _="";return e.active?e.crit?_+=" activeCrit":_=" active":e.done?_=e.crit?" doneCrit":" done":e.crit&&(_+=" crit"),_.length===0&&(_=" task"),e.milestone&&(_=" milestone "+_),e.vert&&(_=" vert "+_),_+=a,_+=" "+v,"task"+_}),l.append("text").attr("id",function(e){return e.id+"-text"}).text(function(e){return e.task}).attr("font-size",i.fontSize).attr("x",function(e){let v=y(e.startTime),a=y(e.renderEndTime||e.endTime);if(e.milestone&&(v+=.5*(y(e.endTime)-y(e.startTime))-.5*f,a=v+f),e.vert)return y(e.startTime)+g;const _=this.getBBox().width;return _>a-v?a+_+1.5*i.leftPadding>m?v+g-5:a+g+5:(a-v)/2+v+g}).attr("y",function(e,v){return e.vert?i.gridLineStartPadding+L.length*(i.barHeight+i.barGap)+60:e.order*w+i.barHeight/2+(i.fontSize/2-2)+b}).attr("text-height",f).attr("class",function(e){const v=y(e.startTime);let a=y(e.endTime);e.milestone&&(a=v+f);const _=this.getBBox().width;let I="";e.classes.length>0&&(I=e.classes.join(" "));let F=0;for(const[U,tt]of W.entries())e.type===tt&&(F=U%i.numberSectionStyles);let C="";return e.active&&(C=e.crit?"activeCritText"+F:"activeText"+F),e.done?C=e.crit?C+" doneCritText"+F:C+" doneText"+F:e.crit&&(C=C+" critText"+F),e.milestone&&(C+=" milestoneText"),e.vert&&(C+=" vertText"),_>a-v?a+_+1.5*i.leftPadding>m?I+" taskTextOutsideLeft taskTextOutside"+F+" "+C:I+" taskTextOutsideRight taskTextOutside"+F+" "+C+" width-"+_:I+" taskText taskText"+F+" "+C+" width-"+_}),ot().securityLevel==="sandbox"){let e;e=bt("#i"+n);const v=e.nodes()[0].contentDocument;l.filter(function(a){return T.has(a.id)}).each(function(a){var _=v.querySelector("#"+a.id),I=v.querySelector("#"+a.id+"-text");const F=_.parentNode;var C=v.createElement("a");C.setAttribute("xlink:href",T.get(a.id)),C.setAttribute("target","_top"),F.appendChild(C),C.appendChild(_),C.appendChild(I)})}}function z(k,w,b,g,f,o,m,u){if(m.length===0&&u.length===0)return;let l,T;for(const{startTime:I,endTime:F}of o)(l===void 0||I<l)&&(l=I),(T===void 0||F>T)&&(T=F);if(!l||!T)return;if(V(T).diff(V(l),"year")>5)return void mt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const e=r.db.getDateFormat(),v=[];let a=null,_=V(l);for(;_.valueOf()<=T;)r.db.isInvalidDate(_,e,m,u)?a?a.end=_:a={start:_,end:_}:a&&(v.push(a),a=null),_=_.add(1,"d");p.append("g").selectAll("rect").data(v).enter().append("rect").attr("id",function(I){return"exclude-"+I.start.format("YYYY-MM-DD")}).attr("x",function(I){return y(I.start)+b}).attr("y",i.gridLineStartPadding).attr("width",function(I){const F=I.end.add(1,"day");return y(F)-y(I.start)}).attr("height",f-w-i.gridLineStartPadding).attr("transform-origin",function(I,F){return(y(I.start)+b+.5*(y(I.end)-y(I.start))).toString()+"px "+(F*k+.5*f).toString()+"px"}).attr("class","exclude-range")}function j(k,w,b,g){let f=(o=y,jt(3,o)).tickSize(-g+w+i.gridLineStartPadding).tickFormat(Wt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));var o;const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],l=m[2],T=r.db.getWeekday()||i.weekday;switch(l){case"millisecond":f.ticks(Nt.every(u));break;case"second":f.ticks(Ht.every(u));break;case"minute":f.ticks(Bt.every(u));break;case"hour":f.ticks(zt.every(u));break;case"day":f.ticks(Pt.every(u));break;case"week":f.ticks(ce[T].every(u));break;case"month":f.ticks(Ot.every(u))}}if(p.append("g").attr("class","grid").attr("transform","translate("+k+", "+(g-50)+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=function(l){return jt(1,l)}(y).tickSize(-g+w+i.gridLineStartPadding).tickFormat(Wt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const l=m[1],T=m[2],e=r.db.getWeekday()||i.weekday;switch(T){case"millisecond":u.ticks(Nt.every(l));break;case"second":u.ticks(Ht.every(l));break;case"minute":u.ticks(Bt.every(l));break;case"hour":u.ticks(zt.every(l));break;case"day":u.ticks(Pt.every(l));break;case"week":u.ticks(ce[e].every(l));break;case"month":u.ticks(Ot.every(l))}}p.append("g").attr("class","grid").attr("transform","translate("+k+", "+w+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function B(k,w){let b=0;const g=Object.keys(S).map(f=>[f,S[f]]);p.append("g").selectAll("text").data(g).enter().append(function(f){const o=f[0].split(ke.lineBreakRegex),m=-(o.length-1)/2,u=x.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[l,T]of o.entries()){const e=x.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),l>0&&e.setAttribute("dy","1em"),e.textContent=T,u.appendChild(e)}return u}).attr("x",10).attr("y",function(f,o){if(!(o>0))return f[1]*k/2+w;for(let m=0;m<o;m++)return b+=g[o-1][1],f[1]*k/2+b*k+w}).attr("font-size",i.sectionFontSize).attr("class",function(f){for(const[o,m]of W.entries())if(f[0]===m)return"sectionTitle sectionTitle"+o%i.numberSectionStyles;return"sectionTitle"})}function O(k,w,b,g){const f=r.db.getTodayMarker();if(f==="off")return;const o=p.append("g").attr("class","today"),m=new Date,u=o.append("line");u.attr("x1",y(m)+k).attr("x2",y(m)+k).attr("y1",i.titleTopMargin).attr("y2",g-i.titleTopMargin).attr("class","today"),f!==""&&u.attr("style",f.replace(/,/g,";"))}function Y(k){const w={},b=[];for(let g=0,f=k.length;g<f;++g)Object.prototype.hasOwnProperty.call(w,k[g])||(w[k[g]]=!0,b.push(k[g]));return b}d(M,"taskCompare"),L.sort(M),E(L,K,D),ye(p,D,K,i.useMaxWidth),p.append("text").text(r.db.getDiagramTitle()).attr("x",K/2).attr("y",i.titleTopMargin).attr("class","titleText"),d(E,"makeGantt"),d(P,"drawRects"),d(z,"drawExcludeDays"),d(j,"makeGrid"),d(B,"vertLabels"),d(O,"drawToday"),d(Y,"checkUnique")},"draw")},styles:d(t=>`
7
- .mermaid-main-font {
8
- font-family: ${t.fontFamily};
9
- }
10
-
11
- .exclude-range {
12
- fill: ${t.excludeBkgColor};
13
- }
14
-
15
- .section {
16
- stroke: none;
17
- opacity: 0.2;
18
- }
19
-
20
- .section0 {
21
- fill: ${t.sectionBkgColor};
22
- }
23
-
24
- .section2 {
25
- fill: ${t.sectionBkgColor2};
26
- }
27
-
28
- .section1,
29
- .section3 {
30
- fill: ${t.altSectionBkgColor};
31
- opacity: 0.2;
32
- }
33
-
34
- .sectionTitle0 {
35
- fill: ${t.titleColor};
36
- }
37
-
38
- .sectionTitle1 {
39
- fill: ${t.titleColor};
40
- }
41
-
42
- .sectionTitle2 {
43
- fill: ${t.titleColor};
44
- }
45
-
46
- .sectionTitle3 {
47
- fill: ${t.titleColor};
48
- }
49
-
50
- .sectionTitle {
51
- text-anchor: start;
52
- font-family: ${t.fontFamily};
53
- }
54
-
55
-
56
- /* Grid and axis */
57
-
58
- .grid .tick {
59
- stroke: ${t.gridColor};
60
- opacity: 0.8;
61
- shape-rendering: crispEdges;
62
- }
63
-
64
- .grid .tick text {
65
- font-family: ${t.fontFamily};
66
- fill: ${t.textColor};
67
- }
68
-
69
- .grid path {
70
- stroke-width: 0;
71
- }
72
-
73
-
74
- /* Today line */
75
-
76
- .today {
77
- fill: none;
78
- stroke: ${t.todayLineColor};
79
- stroke-width: 2px;
80
- }
81
-
82
-
83
- /* Task styling */
84
-
85
- /* Default task */
86
-
87
- .task {
88
- stroke-width: 2;
89
- }
90
-
91
- .taskText {
92
- text-anchor: middle;
93
- font-family: ${t.fontFamily};
94
- }
95
-
96
- .taskTextOutsideRight {
97
- fill: ${t.taskTextDarkColor};
98
- text-anchor: start;
99
- font-family: ${t.fontFamily};
100
- }
101
-
102
- .taskTextOutsideLeft {
103
- fill: ${t.taskTextDarkColor};
104
- text-anchor: end;
105
- }
106
-
107
-
108
- /* Special case clickable */
109
-
110
- .task.clickable {
111
- cursor: pointer;
112
- }
113
-
114
- .taskText.clickable {
115
- cursor: pointer;
116
- fill: ${t.taskTextClickableColor} !important;
117
- font-weight: bold;
118
- }
119
-
120
- .taskTextOutsideLeft.clickable {
121
- cursor: pointer;
122
- fill: ${t.taskTextClickableColor} !important;
123
- font-weight: bold;
124
- }
125
-
126
- .taskTextOutsideRight.clickable {
127
- cursor: pointer;
128
- fill: ${t.taskTextClickableColor} !important;
129
- font-weight: bold;
130
- }
131
-
132
-
133
- /* Specific task settings for the sections*/
134
-
135
- .taskText0,
136
- .taskText1,
137
- .taskText2,
138
- .taskText3 {
139
- fill: ${t.taskTextColor};
140
- }
141
-
142
- .task0,
143
- .task1,
144
- .task2,
145
- .task3 {
146
- fill: ${t.taskBkgColor};
147
- stroke: ${t.taskBorderColor};
148
- }
149
-
150
- .taskTextOutside0,
151
- .taskTextOutside2
152
- {
153
- fill: ${t.taskTextOutsideColor};
154
- }
155
-
156
- .taskTextOutside1,
157
- .taskTextOutside3 {
158
- fill: ${t.taskTextOutsideColor};
159
- }
160
-
161
-
162
- /* Active task */
163
-
164
- .active0,
165
- .active1,
166
- .active2,
167
- .active3 {
168
- fill: ${t.activeTaskBkgColor};
169
- stroke: ${t.activeTaskBorderColor};
170
- }
171
-
172
- .activeText0,
173
- .activeText1,
174
- .activeText2,
175
- .activeText3 {
176
- fill: ${t.taskTextDarkColor} !important;
177
- }
178
-
179
-
180
- /* Completed task */
181
-
182
- .done0,
183
- .done1,
184
- .done2,
185
- .done3 {
186
- stroke: ${t.doneTaskBorderColor};
187
- fill: ${t.doneTaskBkgColor};
188
- stroke-width: 2;
189
- }
190
-
191
- .doneText0,
192
- .doneText1,
193
- .doneText2,
194
- .doneText3 {
195
- fill: ${t.taskTextDarkColor} !important;
196
- }
197
-
198
-
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
- .vert {
245
- stroke: ${t.vertLineColor};
246
- }
247
-
248
- .vertText {
249
- font-size: 15px;
250
- text-anchor: middle;
251
- fill: ${t.vertLineColor} !important;
252
- }
253
-
254
- .activeCritText0,
255
- .activeCritText1,
256
- .activeCritText2,
257
- .activeCritText3 {
258
- fill: ${t.taskTextDarkColor} !important;
259
- }
260
-
261
- .titleText {
262
- text-anchor: middle;
263
- font-size: 18px;
264
- fill: ${t.titleColor||t.textColor};
265
- font-family: ${t.fontFamily};
266
- }
267
- `,"getStyles")};export{Mn as diagram};
@@ -1,65 +0,0 @@
1
- import{p as Y}from"./chunk-353BL4L5-CnAx5AF0.js";import{I as U}from"./chunk-AACKK3MU-B_HaHcJu.js";import{_ as d,q as V,p as J,s as Q,g as X,a as Z,b as tt,l as u,c as rt,u as et,D as ot,y as nt,j as k,E as at,F as st,G as ct,H as it}from"./mermaid-CjHlE8Co.js";import{p as ht}from"./treemap-FKARHQ26-DIAQw-dY.js";import{s as dt}from"./transform-DetRMEbJ.js";import"./index-DDdlzLJw.js";import"./step-BwsUM5iJ.js";import"./_baseEach-C52A37kN.js";import"./_baseUniq-hliKyzdp.js";import"./min-DrLXTftx.js";import"./_baseMap-CErDCA3r.js";import"./clone-BqBqvZp5.js";import"./_createAggregator-CcihYROi.js";import"./timer-Bqd5yn_a.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},mt=ct.gitGraph,R=d(()=>at({...mt,...st().gitGraph}),"getConfig"),i=new U(()=>{const e=R(),t=e.mainBranchName,o=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:o}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});function G(){return it({length:7})}function D(e,t){const o=Object.create(null);return e.reduce((a,r)=>{const n=t(r);return o[n]||(o[n]=!0,a.push(r)),a},[])}d(G,"getID"),d(D,"uniqBy");var $t=d(function(e){i.records.direction=e},"setDirection"),lt=d(function(e){u.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{i.records.options=JSON.parse(e)}catch(t){u.error("error while parsing gitGraph options",t.message)}},"setOptions"),yt=d(function(){return i.records.options},"getOptions"),gt=d(function(e){let t=e.msg,o=e.id;const a=e.type;let r=e.tags;u.info("commit",t,o,a,r),u.debug("Entering commit:",t,o,a,r);const n=R();o=k.sanitizeText(o,n),t=k.sanitizeText(t,n),r=r==null?void 0:r.map(s=>k.sanitizeText(s,n));const c={id:o||i.records.seq+"-"+G(),message:t,seq:i.records.seq++,type:a??p.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,u.info("main branch",n.mainBranchName),i.records.commits.has(c.id)&&u.warn(`Commit ID ${c.id} already exists`),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),u.debug("in pushCommit "+c.id)},"commit"),pt=d(function(e){let t=e.name;const o=e.order;if(t=k.sanitizeText(t,R()),i.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);i.records.branches.set(t,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(t,{name:t,order:o}),N(t),u.debug("in createBranch")},"branch"),xt=d(e=>{let t=e.branch,o=e.id;const a=e.type,r=e.tags,n=R();t=k.sanitizeText(t,n),o&&(o=k.sanitizeText(o,n));const c=i.records.branches.get(i.records.currBranch),s=i.records.branches.get(t),m=c?i.records.commits.get(c):void 0,y=s?i.records.commits.get(s):void 0;if(m&&y&&m.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(i.records.currBranch===t){const l=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw l.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},l}if(m===void 0||!m){const l=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw l.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},l}if(!i.records.branches.has(t)){const l=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw l.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},l}if(y===void 0||!y){const l=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw l.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},l}if(m===y){const l=new Error('Incorrect usage of "merge". Both branches have same head');throw l.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},l}if(o&&i.records.commits.has(o)){const l=new Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom id");throw l.hash={text:`merge ${t} ${o} ${a} ${r==null?void 0:r.join(" ")}`,token:`merge ${t} ${o} ${a} ${r==null?void 0:r.join(" ")}`,expected:[`merge ${t} ${o}_UNIQUE ${a} ${r==null?void 0:r.join(" ")}`]},l}const $=s||"",h={id:o||`${i.records.seq}-${G()}`,message:`merged branch ${t} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:p.MERGE,customType:a,customId:!!o,tags:r??[]};i.records.head=h,i.records.commits.set(h.id,h),i.records.branches.set(i.records.currBranch,h.id),u.debug(i.records.branches),u.debug("in mergeBranch")},"merge"),ft=d(function(e){let t=e.id,o=e.targetId,a=e.tags,r=e.parent;u.debug("Entering cherryPick:",t,o,a);const n=R();if(t=k.sanitizeText(t,n),o=k.sanitizeText(o,n),a=a==null?void 0:a.map(m=>k.sanitizeText(m,n)),r=k.sanitizeText(r,n),!t||!i.records.commits.has(t)){const m=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw m.hash={text:`cherryPick ${t} ${o}`,token:`cherryPick ${t} ${o}`,expected:["cherry-pick abc"]},m}const c=i.records.commits.get(t);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&(!Array.isArray(c.parents)||!c.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const s=c.branch;if(c.type===p.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!i.records.commits.has(o)){if(s===i.records.currBranch){const h=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw h.hash={text:`cherryPick ${t} ${o}`,token:`cherryPick ${t} ${o}`,expected:["cherry-pick abc"]},h}const m=i.records.branches.get(i.records.currBranch);if(m===void 0||!m){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${t} ${o}`,token:`cherryPick ${t} ${o}`,expected:["cherry-pick abc"]},h}const y=i.records.commits.get(m);if(y===void 0||!y){const h=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw h.hash={text:`cherryPick ${t} ${o}`,token:`cherryPick ${t} ${o}`,expected:["cherry-pick abc"]},h}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${c.id}${c.type===p.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),u.debug(i.records.branches),u.debug("in cherryPick")}},"cherryPick"),N=d(function(e){if(e=k.sanitizeText(e,R()),!i.records.branches.has(e)){const t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}{i.records.currBranch=e;const t=i.records.branches.get(i.records.currBranch);i.records.head=t!==void 0&&t?i.records.commits.get(t)??null:null}},"checkout");function q(e,t,o){const a=e.indexOf(t);a===-1?e.push(o):e.splice(a,1,o)}function H(e){const t=e.reduce((r,n)=>r.seq>n.seq?r:n,e[0]);let o="";e.forEach(function(r){o+=r===t?" *":" |"});const a=[o,t.id,t.seq];for(const r in i.records.branches)i.records.branches.get(r)===t.id&&a.push(r);if(u.debug(a.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){const r=i.records.commits.get(t.parents[0]);q(e,t,r),t.parents[1]&&e.push(i.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){const r=i.records.commits.get(t.parents[0]);q(e,t,r)}}H(e=D(e,r=>r.id))}d(q,"upsert"),d(H,"prettyPrintCommitHistory");var ut=d(function(){u.debug(i.records.commits),H([W()[0]])},"prettyPrint"),bt=d(function(){i.reset(),nt()},"clear"),wt=d(function(){return[...i.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Bt=d(function(){return i.records.branches},"getBranches"),Et=d(function(){return i.records.commits},"getCommits"),W=d(function(){const e=[...i.records.commits.values()];return e.forEach(function(t){u.debug(t.id)}),e.sort((t,o)=>t.seq-o.seq),e},"getCommitsArray"),j={commitType:p,getConfig:R,setDirection:$t,setOptions:lt,getOptions:yt,commit:gt,branch:pt,merge:xt,cherryPick:ft,checkout:N,prettyPrint:ut,clear:bt,getBranchesAsObjArray:wt,getBranches:Bt,getCommits:Et,getCommitsArray:W,getCurrentBranch:d(function(){return i.records.currBranch},"getCurrentBranch"),getDirection:d(function(){return i.records.direction},"getDirection"),getHead:d(function(){return i.records.head},"getHead"),setAccTitle:tt,getAccTitle:Z,getAccDescription:X,setAccDescription:Q,setDiagramTitle:J,getDiagramTitle:V},Ct=d((e,t)=>{Y(e,t),e.dir&&t.setDirection(e.dir);for(const o of e.statements)kt(o,t)},"populate"),kt=d((e,t)=>{const o={Commit:d(a=>t.commit(Lt(a)),"Commit"),Branch:d(a=>t.branch(Tt(a)),"Branch"),Merge:d(a=>t.merge(Mt(a)),"Merge"),Checkout:d(a=>t.checkout(vt(a)),"Checkout"),CherryPicking:d(a=>t.cherryPick(Pt(a)),"CherryPicking")}[e.$type];o?o(e):u.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Lt=d(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?p[e.type]:p.NORMAL,tags:e.tags??void 0}),"parseCommit"),Tt=d(e=>({name:e.name,order:e.order??0}),"parseBranch"),Mt=d(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?p[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),vt=d(e=>e.branch,"parseCheckout"),Pt=d(e=>{var t;return{id:e.id,targetId:"",tags:((t=e.tags)==null?void 0:t.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),Rt={parse:d(async e=>{const t=await ht("gitGraph",e);u.debug(t),Ct(t,j)},"parse")},z=rt(),f=z==null?void 0:z.gitGraph,T=10,M=40,E=new Map,C=new Map,I=new Map,O=[],v=0,g="LR",It=d(()=>{E.clear(),C.clear(),I.clear(),v=0,O=[],g="LR"},"clear"),F=d(e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(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=o.trim(),t.appendChild(a)}),t},"drawText"),_=d(e=>{let t,o,a;return g==="BT"?(o=d((r,n)=>r<=n,"comparisonFunc"),a=1/0):(o=d((r,n)=>r>=n,"comparisonFunc"),a=0),e.forEach(r=>{var c,s;const n=g==="TB"||g=="BT"?(c=C.get(r))==null?void 0:c.y:(s=C.get(r))==null?void 0:s.x;n!==void 0&&o(n,a)&&(t=r,a=n)}),t},"findClosestParent"),At=d(e=>{let t="",o=1/0;return e.forEach(a=>{const r=C.get(a).y;r<=o&&(t=a,o=r)}),t||void 0},"findClosestParentBT"),Gt=d((e,t,o)=>{let a=o,r=o;const n=[];e.forEach(c=>{const s=t.get(c);if(!s)throw new Error(`Commit not found for key ${c}`);s.parents.length?(a=qt(s),r=Math.max(a,r)):n.push(s),Ht(s,a)}),a=r,n.forEach(c=>{zt(c,a,o)}),e.forEach(c=>{const s=t.get(c);if(s!=null&&s.parents.length){const m=At(s.parents);a=C.get(m).y-M,a<=r&&(r=a);const y=E.get(s.branch).pos,$=a-T;C.set(s.id,{x:y,y:$})}})},"setParallelBTPos"),Ot=d(e=>{var a;const t=_(e.parents.filter(r=>r!==null));if(!t)throw new Error(`Closest parent not found for commit ${e.id}`);const o=(a=C.get(t))==null?void 0:a.y;if(o===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return o},"findClosestParentPos"),qt=d(e=>Ot(e)+M,"calculateCommitPosition"),Ht=d((e,t)=>{const o=E.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const a=o.pos,r=t+T;return C.set(e.id,{x:a,y:r}),{x:a,y:r}},"setCommitPosition"),zt=d((e,t,o)=>{const a=E.get(e.branch);if(!a)throw new Error(`Branch not found for commit ${e.id}`);const r=t+o,n=a.pos;C.set(e.id,{x:n,y:r})},"setRootPosition"),St=d((e,t,o,a,r,n)=>{if(n===p.HIGHLIGHT)e.append("rect").attr("x",o.x-10).attr("y",o.y-10).attr("width",20).attr("height",20).attr("class",`commit ${t.id} commit-highlight${r%8} ${a}-outer`),e.append("rect").attr("x",o.x-6).attr("y",o.y-6).attr("width",12).attr("height",12).attr("class",`commit ${t.id} commit${r%8} ${a}-inner`);else if(n===p.CHERRY_PICK)e.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",10).attr("class",`commit ${t.id} ${a}`),e.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${a}`),e.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${a}`),e.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${a}`),e.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${a}`);else{const c=e.append("circle");if(c.attr("cx",o.x),c.attr("cy",o.y),c.attr("r",t.type===p.MERGE?9:10),c.attr("class",`commit ${t.id} commit${r%8}`),n===p.MERGE){const s=e.append("circle");s.attr("cx",o.x),s.attr("cy",o.y),s.attr("r",6),s.attr("class",`commit ${a} ${t.id} commit${r%8}`)}n===p.REVERSE&&e.append("path").attr("d",`M ${o.x-5},${o.y-5}L${o.x+5},${o.y+5}M${o.x-5},${o.y+5}L${o.x+5},${o.y-5}`).attr("class",`commit ${a} ${t.id} commit${r%8}`)}},"drawCommitBullet"),Dt=d((e,t,o,a)=>{var r;if(t.type!==p.CHERRY_PICK&&(t.customId&&t.type===p.MERGE||t.type!==p.MERGE)&&(f!=null&&f.showCommitLabel)){const n=e.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),s=n.append("text").attr("x",a).attr("y",o.y+25).attr("class","commit-label").text(t.id),m=(r=s.node())==null?void 0:r.getBBox();if(m&&(c.attr("x",o.posWithOffset-m.width/2-2).attr("y",o.y+13.5).attr("width",m.width+4).attr("height",m.height+4),g==="TB"||g==="BT"?(c.attr("x",o.x-(m.width+16+5)).attr("y",o.y-12),s.attr("x",o.x-(m.width+16)).attr("y",o.y+m.height-12)):s.attr("x",o.posWithOffset-m.width/2),f.rotateCommitLabel))if(g==="TB"||g==="BT")s.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),c.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{const y=-7.5-(m.width+10)/25*9.5,$=10+m.width/25*8.5;n.attr("transform","translate("+y+", "+$+") rotate(-45, "+a+", "+o.y+")")}}},"drawCommitLabel"),Nt=d((e,t,o,a)=>{var r;if(t.tags.length>0){let n=0,c=0,s=0;const m=[];for(const y of t.tags.reverse()){const $=e.insert("polygon"),h=e.append("circle"),l=e.append("text").attr("y",o.y-16-n).attr("class","tag-label").text(y),x=(r=l.node())==null?void 0:r.getBBox();if(!x)throw new Error("Tag bbox not found");c=Math.max(c,x.width),s=Math.max(s,x.height),l.attr("x",o.posWithOffset-x.width/2),m.push({tag:l,hole:h,rect:$,yOffset:n}),n+=20}for(const{tag:y,hole:$,rect:h,yOffset:l}of m){const x=s/2,b=o.y-19.2-l;if(h.attr("class","tag-label-bkg").attr("points",`
2
- ${a-c/2-2},${b+2}
3
- ${a-c/2-2},${b-2}
4
- ${o.posWithOffset-c/2-4},${b-x-2}
5
- ${o.posWithOffset+c/2+4},${b-x-2}
6
- ${o.posWithOffset+c/2+4},${b+x+2}
7
- ${o.posWithOffset-c/2-4},${b+x+2}`),$.attr("cy",b).attr("cx",a-c/2+2).attr("r",1.5).attr("class","tag-hole"),g==="TB"||g==="BT"){const w=a+l;h.attr("class","tag-label-bkg").attr("points",`
8
- ${o.x},${w+2}
9
- ${o.x},${w-2}
10
- ${o.x+T},${w-x-2}
11
- ${o.x+T+c+4},${w-x-2}
12
- ${o.x+T+c+4},${w+x+2}
13
- ${o.x+T},${w+x+2}`).attr("transform","translate(12,12) rotate(45, "+o.x+","+a+")"),$.attr("cx",o.x+2).attr("cy",w).attr("transform","translate(12,12) rotate(45, "+o.x+","+a+")"),y.attr("x",o.x+5).attr("y",w+3).attr("transform","translate(14,14) rotate(45, "+o.x+","+a+")")}}}},"drawCommitTags"),Wt=d(e=>{switch(e.customType??e.type){case p.NORMAL:return"commit-normal";case p.REVERSE:return"commit-reverse";case p.HIGHLIGHT:return"commit-highlight";case p.MERGE:return"commit-merge";case p.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),jt=d((e,t,o,a)=>{const r={x:0,y:0};if(!(e.parents.length>0))return t==="TB"?30:t==="BT"?(a.get(e.id)??r).y-M:0;{const n=_(e.parents);if(n){const c=a.get(n)??r;return t==="TB"?c.y+M:t==="BT"?(a.get(e.id)??r).y-M:c.x+M}}return 0},"calculatePosition"),Ft=d((e,t,o)=>{var c,s;const a=g==="BT"&&o?t:t+T,r=g==="TB"||g==="BT"?a:(c=E.get(e.branch))==null?void 0:c.pos,n=g==="TB"||g==="BT"?(s=E.get(e.branch))==null?void 0:s.pos:a;if(n===void 0||r===void 0)throw new Error(`Position were undefined for commit ${e.id}`);return{x:n,y:r,posWithOffset:a}},"getCommitPosition"),K=d((e,t,o)=>{if(!f)throw new Error("GitGraph config not found");const a=e.append("g").attr("class","commit-bullets"),r=e.append("g").attr("class","commit-labels");let n=g==="TB"||g==="BT"?30:0;const c=[...t.keys()],s=(f==null?void 0:f.parallelCommits)??!1,m=d(($,h)=>{var b,w;const l=(b=t.get($))==null?void 0:b.seq,x=(w=t.get(h))==null?void 0:w.seq;return l!==void 0&&x!==void 0?l-x:0},"sortKeys");let y=c.sort(m);g==="BT"&&(s&&Gt(y,t,n),y=y.reverse()),y.forEach($=>{var x;const h=t.get($);if(!h)throw new Error(`Commit not found for key ${$}`);s&&(n=jt(h,g,n,C));const l=Ft(h,n,s);if(o){const b=Wt(h),w=h.customType??h.type,P=((x=E.get(h.branch))==null?void 0:x.index)??0;St(a,h,l,b,P,w),Dt(r,h,l,n),Nt(r,h,l,n)}g==="TB"||g==="BT"?C.set(h.id,{x:l.x,y:l.posWithOffset}):C.set(h.id,{x:l.posWithOffset,y:l.y}),n=g==="BT"&&s?n+M:n+M+T,n>v&&(v=n)})},"drawCommits"),_t=d((e,t,o,a,r)=>{const n=(g==="TB"||g==="BT"?o.x<a.x:o.y<a.y)?t.branch:e.branch,c=d(m=>m.branch===n,"isOnBranchToGetCurve"),s=d(m=>m.seq>e.seq&&m.seq<t.seq,"isBetweenCommits");return[...r.values()].some(m=>s(m)&&c(m))},"shouldRerouteArrow"),A=d((e,t,o=0)=>{const a=e+Math.abs(e-t)/2;if(o>5)return a;if(O.every(n=>Math.abs(n-a)>=10))return O.push(a),a;const r=Math.abs(e-t);return A(e,t-r/5,o+1)},"findLane"),Kt=d((e,t,o,a)=>{var x,b,w,P,S;const r=C.get(t.id),n=C.get(o.id);if(r===void 0||n===void 0)throw new Error(`Commit positions not found for commits ${t.id} and ${o.id}`);const c=_t(t,o,r,n,a);let s,m="",y="",$=0,h=0,l=(x=E.get(o.branch))==null?void 0:x.index;if(o.type===p.MERGE&&t.id!==o.parents[0]&&(l=(b=E.get(t.branch))==null?void 0:b.index),c){m="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",$=10,h=10;const L=r.y<n.y?A(r.y,n.y):A(n.y,r.y),B=r.x<n.x?A(r.x,n.x):A(n.x,r.x);g==="TB"?r.x<n.x?s=`M ${r.x} ${r.y} L ${B-$} ${r.y} ${y} ${B} ${r.y+h} L ${B} ${n.y-$} ${m} ${B+h} ${n.y} L ${n.x} ${n.y}`:(l=(w=E.get(t.branch))==null?void 0:w.index,s=`M ${r.x} ${r.y} L ${B+$} ${r.y} ${m} ${B} ${r.y+h} L ${B} ${n.y-$} ${y} ${B-h} ${n.y} L ${n.x} ${n.y}`):g==="BT"?r.x<n.x?s=`M ${r.x} ${r.y} L ${B-$} ${r.y} ${m} ${B} ${r.y-h} L ${B} ${n.y+$} ${y} ${B+h} ${n.y} L ${n.x} ${n.y}`:(l=(P=E.get(t.branch))==null?void 0:P.index,s=`M ${r.x} ${r.y} L ${B+$} ${r.y} ${y} ${B} ${r.y-h} L ${B} ${n.y+$} ${m} ${B-h} ${n.y} L ${n.x} ${n.y}`):r.y<n.y?s=`M ${r.x} ${r.y} L ${r.x} ${L-$} ${m} ${r.x+h} ${L} L ${n.x-$} ${L} ${y} ${n.x} ${L+h} L ${n.x} ${n.y}`:(l=(S=E.get(t.branch))==null?void 0:S.index,s=`M ${r.x} ${r.y} L ${r.x} ${L+$} ${y} ${r.x+h} ${L} L ${n.x-$} ${L} ${m} ${n.x} ${L-h} L ${n.x} ${n.y}`)}else m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",$=20,h=20,g==="TB"?(r.x<n.x&&(s=o.type===p.MERGE&&t.id!==o.parents[0]?`M ${r.x} ${r.y} L ${r.x} ${n.y-$} ${m} ${r.x+h} ${n.y} L ${n.x} ${n.y}`:`M ${r.x} ${r.y} L ${n.x-$} ${r.y} ${y} ${n.x} ${r.y+h} L ${n.x} ${n.y}`),r.x>n.x&&(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",$=20,h=20,s=o.type===p.MERGE&&t.id!==o.parents[0]?`M ${r.x} ${r.y} L ${r.x} ${n.y-$} ${y} ${r.x-h} ${n.y} L ${n.x} ${n.y}`:`M ${r.x} ${r.y} L ${n.x+$} ${r.y} ${m} ${n.x} ${r.y+h} L ${n.x} ${n.y}`),r.x===n.x&&(s=`M ${r.x} ${r.y} L ${n.x} ${n.y}`)):g==="BT"?(r.x<n.x&&(s=o.type===p.MERGE&&t.id!==o.parents[0]?`M ${r.x} ${r.y} L ${r.x} ${n.y+$} ${y} ${r.x+h} ${n.y} L ${n.x} ${n.y}`:`M ${r.x} ${r.y} L ${n.x-$} ${r.y} ${m} ${n.x} ${r.y-h} L ${n.x} ${n.y}`),r.x>n.x&&(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",$=20,h=20,s=o.type===p.MERGE&&t.id!==o.parents[0]?`M ${r.x} ${r.y} L ${r.x} ${n.y+$} ${m} ${r.x-h} ${n.y} L ${n.x} ${n.y}`:`M ${r.x} ${r.y} L ${n.x-$} ${r.y} ${m} ${n.x} ${r.y-h} L ${n.x} ${n.y}`),r.x===n.x&&(s=`M ${r.x} ${r.y} L ${n.x} ${n.y}`)):(r.y<n.y&&(s=o.type===p.MERGE&&t.id!==o.parents[0]?`M ${r.x} ${r.y} L ${n.x-$} ${r.y} ${y} ${n.x} ${r.y+h} L ${n.x} ${n.y}`:`M ${r.x} ${r.y} L ${r.x} ${n.y-$} ${m} ${r.x+h} ${n.y} L ${n.x} ${n.y}`),r.y>n.y&&(s=o.type===p.MERGE&&t.id!==o.parents[0]?`M ${r.x} ${r.y} L ${n.x-$} ${r.y} ${m} ${n.x} ${r.y-h} L ${n.x} ${n.y}`:`M ${r.x} ${r.y} L ${r.x} ${n.y+$} ${y} ${r.x+h} ${n.y} L ${n.x} ${n.y}`),r.y===n.y&&(s=`M ${r.x} ${r.y} L ${n.x} ${n.y}`));if(s===void 0)throw new Error("Line definition not found");e.append("path").attr("d",s).attr("class","arrow arrow"+l%8)},"drawArrow"),Yt=d((e,t)=>{const o=e.append("g").attr("class","commit-arrows");[...t.keys()].forEach(a=>{const r=t.get(a);r.parents&&r.parents.length>0&&r.parents.forEach(n=>{Kt(o,t.get(n),r,t)})})},"drawArrows"),Ut=d((e,t)=>{const o=e.append("g");t.forEach((a,r)=>{var x;const n=r%8,c=(x=E.get(a.name))==null?void 0:x.pos;if(c===void 0)throw new Error(`Position not found for branch ${a.name}`);const s=o.append("line");s.attr("x1",0),s.attr("y1",c),s.attr("x2",v),s.attr("y2",c),s.attr("class","branch branch"+n),g==="TB"?(s.attr("y1",30),s.attr("x1",c),s.attr("y2",v),s.attr("x2",c)):g==="BT"&&(s.attr("y1",v),s.attr("x1",c),s.attr("y2",30),s.attr("x2",c)),O.push(c);const m=a.name,y=F(m),$=o.insert("rect"),h=o.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+n);h.node().appendChild(y);const l=y.getBBox();$.attr("class","branchLabelBkg label"+n).attr("rx",4).attr("ry",4).attr("x",-l.width-4-((f==null?void 0:f.rotateCommitLabel)===!0?30:0)).attr("y",-l.height/2+8).attr("width",l.width+18).attr("height",l.height+4),h.attr("transform","translate("+(-l.width-14-((f==null?void 0:f.rotateCommitLabel)===!0?30:0))+", "+(c-l.height/2-1)+")"),g==="TB"?($.attr("x",c-l.width/2-10).attr("y",0),h.attr("transform","translate("+(c-l.width/2-5)+", 0)")):g==="BT"?($.attr("x",c-l.width/2-10).attr("y",v),h.attr("transform","translate("+(c-l.width/2-5)+", "+v+")")):$.attr("transform","translate(-19, "+(c-l.height/2)+")")})},"drawBranches"),Vt=d(function(e,t,o,a,r){return E.set(e,{pos:t,index:o}),t+=50+(r?40:0)+(g==="TB"||g==="BT"?a.width/2:0)},"setBranchPosition"),Jt={parser:Rt,db:j,renderer:{draw:d(function(e,t,o,a){if(It(),u.debug("in gitgraph renderer",e+`
14
- `,"id:",t,o),!f)throw new Error("GitGraph config not found");const r=f.rotateCommitLabel??!1,n=a.db;I=n.getCommits();const c=n.getBranchesAsObjArray();g=n.getDirection();const s=dt(`[id="${t}"]`);let m=0;c.forEach((y,$)=>{var P;const h=F(y.name),l=s.append("g"),x=l.insert("g").attr("class","branchLabel"),b=x.insert("g").attr("class","label branch-label");(P=b.node())==null||P.appendChild(h);const w=h.getBBox();m=Vt(y.name,m,$,w,r),b.remove(),x.remove(),l.remove()}),K(s,I,!1),f.showBranches&&Ut(s,c),Yt(s,I),K(s,I,!0),et.insertTitle(s,"gitTitleText",f.titleTopMargin??0,n.getDiagramTitle()),ot(void 0,s,f.diagramPadding,f.useMaxWidth)},"draw")},styles:d(e=>`
15
- .commit-id,
16
- .commit-msg,
17
- .branch-label {
18
- fill: lightgrey;
19
- color: lightgrey;
20
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
21
- font-family: var(--mermaid-font-family);
22
- }
23
- ${[0,1,2,3,4,5,6,7].map(t=>`
24
- .branch-label${t} { fill: ${e["gitBranchLabel"+t]}; }
25
- .commit${t} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; }
26
- .commit-highlight${t} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; }
27
- .label${t} { fill: ${e["git"+t]}; }
28
- .arrow${t} { stroke: ${e["git"+t]}; }
29
- `).join(`
30
- `)}
31
-
32
- .branch {
33
- stroke-width: 1;
34
- stroke: ${e.lineColor};
35
- stroke-dasharray: 2;
36
- }
37
- .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};}
38
- .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; }
39
- .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
40
- .tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; }
41
- .tag-hole { fill: ${e.textColor}; }
42
-
43
- .commit-merge {
44
- stroke: ${e.primaryColor};
45
- fill: ${e.primaryColor};
46
- }
47
- .commit-reverse {
48
- stroke: ${e.primaryColor};
49
- fill: ${e.primaryColor};
50
- stroke-width: 3;
51
- }
52
- .commit-highlight-outer {
53
- }
54
- .commit-highlight-inner {
55
- stroke: ${e.primaryColor};
56
- fill: ${e.primaryColor};
57
- }
58
-
59
- .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
60
- .gitTitleText {
61
- text-anchor: middle;
62
- font-size: 18px;
63
- fill: ${e.textColor};
64
- }
65
- `,"getStyles")};export{Jt as diagram};
@@ -1,9 +0,0 @@
1
- import{u as P,c as S,j as s,aW as ie,aX as le,aQ as ce,aY as F,aZ as de,a_ as me,a$ as he,b0 as E,ai as D,b1 as ue,b2 as fe,b3 as xe,X as H,b4 as pe,a as G,b5 as be,b6 as J,S as I,aK as U,b7 as ye,b8 as ge,b9 as je,ba as Q,bb as ve,bc as X,bd as we,be as ke,af as V,bf as Ne,bg as _e,bh as K,bi as Se,a1 as ze,bj as Ce,bk as Me,W as Ie,a6 as Pe,a7 as De,bl as Y,bm as Ae,bn as Oe,bo as Te,as as We,a5 as Re,bp as $e,bq as Le,br as Be,bs as Fe,bt as He,bu as Ue,bv as Ve,bw as Ye,bx as qe,by as Z,ad as Ee}from"./index-DDdlzLJw.js";import{G as Ge,A as Je,B as Qe,a as Xe,M as Ke,Y as Ze,o as et,L as tt,u as at,C as st,S as rt,T as ot,P as nt}from"./links-BddFPrre.js";import{C as it}from"./circle-play-8nMu2iYy.js";import"./index-Dx9C9kBl.js";/**
2
- * @license lucide-react v0.525.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const lt=P("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),ct=P("book-text",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]),dt=P("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]),mt=P("orbit",[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]]),ht={intro:["Introduction",lt,"Get started with marimo basics"],dataflow:["Dataflow",Je,"Learn how cells interact with each other"],ui:["UI Elements",P("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),"Create interactive UI components"],markdown:["Markdown",E,"Format text with parameterized markdown"],plots:["Plots",he,"Create interactive visualizations"],sql:["SQL",me,"Query databases directly in marimo"],layout:["Layout",Ge,"Customize the layout of your cells' output"],fileformat:["File format",de,"Understand marimo's pure-Python file format"],"for-jupyter-users":["For Jupyter users",mt,"Transiting from Jupyter to marimo"],"markdown-format":["Markdown format",F,"Using marimo to edit markdown files"]},ut=()=>{const e=S.c(3);let t,a,r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(dt,{className:"w-4 h-4 mr-2"}),e[0]=t):t=e[0],e[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(xe,{asChild:!0,children:s.jsxs(H,{"data-testid":"open-tutorial-button",size:"xs",variant:"outline",children:[t,"Tutorials",s.jsx(pe,{className:"w-3 h-3 ml-1"})]})}),e[1]=a):a=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(ie,{children:[a,s.jsx(le,{side:"bottom",align:"end",className:"no-print",children:ce.entries(ht).map(pt)})]}),e[2]=r):r=e[2],r},ft=[{title:"Documentation",description:"Official marimo documentation and API reference",icon:Qe,url:D.docsPage},{title:"GitHub",description:"View source code, report issues, or contribute",icon:Xe,url:D.githubPage},{title:"Community",description:"Join the marimo Discord community",icon:Ke,url:D.discordLink},{title:"YouTube",description:"Watch tutorials and demos",icon:Ze,url:D.youtube},{title:"Changelog",description:"See what's new in marimo",icon:E,url:D.releasesPage}],xt=()=>{const e=S.c(2);let t,a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(R,{Icon:tt,children:"Resources"}),e[0]=t):t=e[0],e[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("div",{className:"flex flex-col gap-2",children:[t,s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:ft.map(bt)})]}),e[1]=a):a=e[1],a},R=e=>{const t=S.c(8),{Icon:a,control:r,children:o}=e;let n,i,c;return t[0]!==a?(n=s.jsx(a,{className:"h-5 w-5"}),t[0]=a,t[1]=n):n=t[1],t[2]!==o||t[3]!==n?(i=s.jsxs("h2",{className:"flex items-center gap-2 text-xl font-semibold text-muted-foreground select-none",children:[n,o]}),t[2]=o,t[3]=n,t[4]=i):i=t[4],t[5]!==r||t[6]!==i?(c=s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[i,r]}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c};function pt(e){const[t,a]=e,[r,o,n]=a;return s.jsxs(ue,{onSelect:async()=>{const i=await fe({tutorialId:t});i&&et(i.path)},children:[s.jsx(o,{strokeWidth:1.5,className:"w-4 h-4 mr-3 self-start mt-1.5 text-muted-foreground"}),s.jsx("div",{className:"flex items-center",children:s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{children:r}),s.jsx("span",{className:"text-xs text-muted-foreground pr-1",children:n})]})})]},t)}function bt(e){return s.jsxs("a",{href:e.url,target:"_blank",className:"flex items-start gap-3 py-3 px-3 rounded-lg border hover:bg-accent/20 transition-colors shadow-xs",children:[s.jsx(e.icon,{className:"w-5 h-5 mt-1.5 text-primary"}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium",children:e.title}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e.description})]})]},e.title)}const ee=G.createContext({runningNotebooks:new Map,setRunningNotebooks:be.NOOP}),te=G.createContext(""),yt=J("marimo:home:include-markdown",!1,void 0,{getOnInit:!0}),ae=J("marimo:home:expanded-folders",{},void 0,{getOnInit:!0});function se(e){return`${Ee()}-${encodeURIComponent(e)}`}const gt=()=>{const e=S.c(52),[t,a]=I.useState(0);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],e[0]=r):r=e[0];const o=U(zt,r);let n,i,c;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{a(Ct)},i={delayMs:1e4,whenVisible:!0},e[1]=n,e[2]=i):(n=e[1],i=e[2]),at(n,i),e[3]!==t?(c=[t],e[3]=t,e[4]=c):c=e[4];const d=U(It,c);let u,h,m,l,p,f,b,x,y,w,g,v,N,k,z,_,M,j,C,A;if(e[5]!==o||e[6]!==d){b=Symbol.for("react.early_return_sentinel");e:{const $=ye(o,d);if($.error)throw $.error;const q=$.data;if(!q){let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(V,{centered:!0,size:"xlarge"}),e[20]=W):W=e[20],b=W;break e}const[ne,L]=q;let O,T;l=ne,m=I.Suspense,h=ee,p={runningNotebooks:L,setRunningNotebooks:d.setData},e[21]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ut,{}),T=s.jsx(st,{showAppConfig:!1}),e[21]=O,e[22]=T):(O=e[21],T=e[22]);const B=`This will shutdown the notebook server and terminate all running notebooks (${L.size}). You'll lose all data that's in memory.`;e[23]!==B?(f=s.jsxs("div",{className:"absolute top-3 right-5 flex gap-3 z-50",children:[O,T,s.jsx(rt,{description:B})]}),e[23]=B,e[24]=f):f=e[24],w="flex flex-col gap-6 max-w-6xl container pt-5 pb-20 z-10",e[25]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("img",{src:"logo.png",alt:"marimo logo",className:"w-48 mb-2"}),v=s.jsx(St,{}),N=s.jsx(xt,{}),e[25]=g,e[26]=v,e[27]=N):(g=e[25],v=e[26],N=e[27]),u=re,e[28]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(R,{Icon:it,children:"Running notebooks"}),e[28]=x):x=e[28],y=[...L.values()]}e[5]=o,e[6]=d,e[7]=u,e[8]=h,e[9]=m,e[10]=l,e[11]=p,e[12]=f,e[13]=b,e[14]=x,e[15]=y,e[16]=w,e[17]=g,e[18]=v,e[19]=N}else u=e[7],h=e[8],m=e[9],l=e[10],p=e[11],f=e[12],b=e[13],x=e[14],y=e[15],w=e[16],g=e[17],v=e[18],N=e[19];return b!==Symbol.for("react.early_return_sentinel")?b:(e[29]!==u||e[30]!==x||e[31]!==y?(k=s.jsx(u,{header:x,files:y}),e[29]=u,e[30]=x,e[31]=y,e[32]=k):k=e[32],e[33]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(R,{Icon:Ne,children:"Recent notebooks"}),e[33]=z):z=e[33],e[34]!==l.files?(_=s.jsx(re,{header:z,files:l.files}),e[34]=l.files,e[35]=_):_=e[35],e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(_e,{children:s.jsx(jt,{})}),e[36]=M):M=e[36],e[37]!==k||e[38]!==_||e[39]!==w||e[40]!==g||e[41]!==v||e[42]!==N?(j=s.jsxs("div",{className:w,children:[g,v,N,k,_,M]}),e[37]=k,e[38]=_,e[39]=w,e[40]=g,e[41]=v,e[42]=N,e[43]=j):j=e[43],e[44]!==h||e[45]!==p||e[46]!==f||e[47]!==j?(C=s.jsxs(h,{value:p,children:[f,j]}),e[44]=h,e[45]=p,e[46]=f,e[47]=j,e[48]=C):C=e[48],e[49]!==m||e[50]!==C?(A=s.jsx(m,{children:C}),e[49]=m,e[50]=C,e[51]=A):A=e[51],A)},jt=()=>{const e=S.c(39),[t,a]=K(yt),[r,o]=I.useState("");let n,i;e[0]!==t?(n=()=>Le({includeMarkdown:t}),i=[t],e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);const{isPending:c,data:d,error:u,isFetching:h,refetch:m}=U(n,i);if(c){let j;return e[3]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(V,{centered:!0,size:"xlarge",className:"mt-6"}),e[3]=j):j=e[3],j}if(u){let j,C;return e[4]!==u?(j=Se(u),e[4]=u,e[5]=j):j=e[5],e[6]!==j?(C=s.jsx(Be,{kind:"danger",className:"rounded p-4",children:j}),e[6]=j,e[7]=C):C=e[7],C}let l,p,f,b,x,y,w,g,v,N,k,z,_,M;return e[8]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Fe,{size:13}),p=j=>o(j.target.value),e[8]=l,e[9]=p):(l=e[8],p=e[9]),e[10]!==r?(f=s.jsx(He,{id:"search",value:r,icon:l,onChange:p,placeholder:"Search",className:"mb-0 border-border"}),e[10]=r,e[11]=f):f=e[11],e[12]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(vt,{}),e[12]=b):b=e[12],e[13]!==a?(x=j=>a(!!j),e[13]=a,e[14]=x):x=e[14],e[15]!==t||e[16]!==x?(y=s.jsx(Ue,{"data-testid":"include-markdown-checkbox",id:"include-markdown",checked:t,onCheckedChange:x}),e[15]=t,e[16]=x,e[17]=y):y=e[17],e[18]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ve,{htmlFor:"include-markdown",children:"Include markdown"}),e[18]=w):w=e[18],e[19]!==f||e[20]!==y?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[f,b,y,w]}),e[19]=f,e[20]=y,e[21]=g):g=e[21],e[22]!==m?(v=s.jsx(Ye,{className:"w-4 h-4 ml-1 cursor-pointer opacity-70 hover:opacity-100",onClick:()=>m()}),e[22]=m,e[23]=v):v=e[23],e[24]!==h?(N=h&&s.jsx(V,{size:"small"}),e[24]=h,e[25]=N):N=e[25],e[26]!==v||e[27]!==N||e[28]!==g?(k=s.jsxs(R,{Icon:ct,control:g,children:["Workspace",v,N]}),e[26]=v,e[27]=N,e[28]=g,e[29]=k):k=e[29],e[30]!==r||e[31]!==d.files?(z=s.jsx("div",{className:"flex flex-col divide-y divide-[var(--slate-3)] border rounded overflow-hidden max-h-[48rem] overflow-y-auto shadow-sm bg-background",children:s.jsx(wt,{searchText:r,files:d.files})}),e[30]=r,e[31]=d.files,e[32]=z):z=e[32],e[33]!==k||e[34]!==z?(_=s.jsxs("div",{className:"flex flex-col gap-2",children:[k,z]}),e[33]=k,e[34]=z,e[35]=_):_=e[35],e[36]!==_||e[37]!==d.root?(M=s.jsx(te,{value:d.root,children:_}),e[36]=_,e[37]=d.root,e[38]=M):M=e[38],M},vt=()=>{const e=S.c(5),t=ze(ae);let a,r,o;return e[0]!==t?(a=()=>{t({})},e[0]=t,e[1]=a):a=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(qe,{className:"w-4 h-4 mr-1"}),e[2]=r):r=e[2],e[3]!==a?(o=s.jsxs(H,{variant:"text",size:"sm",className:"h-fit hidden sm:flex",onClick:a,children:[r,"Collapse all"]}),e[3]=a,e[4]=o):o=e[4],o},wt=e=>{const t=S.c(12),{files:a,searchText:r}=e,[o,n]=K(ae),i=Object.keys(o).length===0,c=I.useRef(void 0);let d,u,h,m;if(t[0]!==i?(d=()=>{var l;i&&((l=c.current)==null||l.closeAll())},u=[i],t[0]=i,t[1]=d,t[2]=u):(d=t[1],u=t[2]),I.useEffect(d,u),a.length===0){let l;return t[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex flex-col px-5 py-10 items-center justify-center",children:s.jsx("p",{className:"text-center text-muted-foreground",children:"No files in this workspace"})}),t[3]=l):l=t[3],l}return t[4]!==o||t[5]!==n?(h=async l=>{const p=o[l]??!1;n({...o,[l]:!p})},t[4]=o,t[5]=n,t[6]=h):h=t[6],t[7]!==a||t[8]!==o||t[9]!==r||t[10]!==h?(m=s.jsx(ot,{ref:c,width:"100%",height:500,searchTerm:r,className:"h-full",idAccessor:Pt,data:a,openByDefault:!1,initialOpenState:o,onToggle:h,padding:5,rowHeight:35,indent:15,overscanCount:1e3,renderCursor:Dt,disableDrop:!0,disableDrag:!0,disableEdit:!0,disableMultiSelection:!0,children:kt}),t[7]=a,t[8]=o,t[9]=r,t[10]=h,t[11]=m):m=t[11],m},kt=e=>{const t=S.c(19),{node:a,style:r}=e,o=a.data.isDirectory?"directory":Ce(a.data.name),n=Me[o];let i;t[0]!==n?(i=s.jsx(n,{className:"w-5 h-5 flex-shrink-0",strokeWidth:1.5}),t[0]=n,t[1]=i):i=t[1];const c=i,d=I.use(te);let u;t[2]!==c||t[3]!==a.data.isDirectory||t[4]!==a.data.name||t[5]!==a.data.path||t[6]!==d?(u=()=>{if(a.data.isDirectory)return s.jsxs("span",{className:"flex items-center pl-1 cursor-pointer hover:bg-accent/50 hover:text-accent-foreground rounded-l flex-1 overflow-hidden h-full pr-3 gap-2",children:[c,a.data.name]});const x=a.data.path.startsWith(d)&&Z.isAbsolute(a.data.path)?Z.rest(a.data.path,d):a.data.path,y=x.endsWith(".md")||x.endsWith(".qmd");return s.jsxs("a",{className:"flex items-center pl-1 cursor-pointer hover:bg-accent/50 hover:text-accent-foreground rounded-l flex-1 overflow-hidden h-full pr-3 gap-2",href:X(`?file=${x}`).toString(),target:se(x),children:[c,s.jsxs("span",{className:"flex-1 overflow-hidden text-ellipsis",children:[a.data.name,y&&s.jsx(F,{className:"ml-2 inline opacity-80"})]}),s.jsx(oe,{filePath:x}),s.jsx(Y,{size:20,className:"group-hover:opacity-100 opacity-0 text-primary"})]})},t[2]=c,t[3]=a.data.isDirectory,t[4]=a.data.name,t[5]=a.data.path,t[6]=d,t[7]=u):u=t[7];const h=u;let m,l,p,f,b;return t[8]===Symbol.for("react.memo_cache_sentinel")?(m=Ie("flex items-center cursor-pointer ml-1 text-muted-foreground whitespace-nowrap group h-full"),t[8]=m):m=t[8],t[9]!==a?(l=x=>{x.stopPropagation(),a.data.isDirectory&&a.toggle()},p=s.jsx(Nt,{node:a}),t[9]=a,t[10]=l,t[11]=p):(l=t[10],p=t[11]),t[12]!==h?(f=h(),t[12]=h,t[13]=f):f=t[13],t[14]!==r||t[15]!==l||t[16]!==p||t[17]!==f?(b=s.jsxs("div",{style:r,className:m,onClick:l,children:[p,f]}),t[14]=r,t[15]=l,t[16]=p,t[17]=f,t[18]=b):b=t[18],b},Nt=e=>{const t=S.c(3),{node:a}=e;if(!a.data.isDirectory){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("span",{className:"w-5 h-5 flex-shrink-0"}),t[0]=o):o=t[0],o}let r;return t[1]!==a.isOpen?(r=a.isOpen?s.jsx(Pe,{className:"w-5 h-5 flex-shrink-0"}):s.jsx(De,{className:"w-5 h-5 flex-shrink-0"}),t[1]=a.isOpen,t[2]=r):r=t[2],r},re=e=>{const t=S.c(7),{header:a,files:r}=e;if(r.length===0)return null;let o,n,i;return t[0]!==r?(o=r.map(At),t[0]=r,t[1]=o):o=t[1],t[2]!==o?(n=s.jsx("div",{className:"flex flex-col divide-y divide-[var(--slate-3)] border rounded overflow-hidden max-h-[48rem] overflow-y-auto shadow-sm bg-background",children:o}),t[2]=o,t[3]=n):n=t[3],t[4]!==a||t[5]!==n?(i=s.jsxs("div",{className:"flex flex-col gap-2",children:[a,n]}),t[4]=a,t[5]=n,t[6]=i):i=t[6],i},_t=e=>{const t=S.c(40),{file:a}=e;let r;t[0]!==a.path?(r=ve(a.path),t[0]=a.path,t[1]=r):r=t[1];const o=r;let n,i,c,d;if(t[2]!==a.initializationId||t[3]!==a.path||t[4]!==o){const N=X(o?`?file=${a.initializationId}&session_id=${a.path}`:`?file=${a.path}`);let k;t[9]!==a.path?(k=a.path.endsWith(".md"),t[9]=a.path,t[10]=k):k=t[10],n=k,i="py-1.5 px-4 hover:bg-[var(--blue-2)] hover:text-primary transition-all duration-300 cursor-pointer group relative flex gap-4 items-center",c=a.path,d=N.toString(),t[2]=a.initializationId,t[3]=a.path,t[4]=o,t[5]=n,t[6]=i,t[7]=c,t[8]=d}else n=t[5],i=t[6],c=t[7],d=t[8];const u=a.initializationId||a.path;let h,m,l,p,f,b,x,y,w,g,v;return t[11]!==u?(h=se(u),t[11]=u,t[12]=h):h=t[12],t[13]!==n?(m=n&&s.jsx("span",{className:"opacity-80",children:s.jsx(F,{})}),t[13]=n,t[14]=m):m=t[14],t[15]!==a.name||t[16]!==m?(l=s.jsxs("span",{className:"flex items-center gap-2",children:[a.name,m]}),t[15]=a.name,t[16]=m,t[17]=l):l=t[17],t[18]!==a.path?(p=s.jsx("p",{title:a.path,className:"text-sm text-muted-foreground overflow-hidden whitespace-nowrap overflow-ellipsis",children:a.path}),t[18]=a.path,t[19]=p):p=t[19],t[20]!==l||t[21]!==p?(f=s.jsxs("div",{className:"flex flex-col justify-between flex-1",children:[l,p]}),t[20]=l,t[21]=p,t[22]=f):f=t[22],t[23]!==a.path?(b=s.jsx("div",{children:s.jsx(oe,{filePath:a.path})}),t[23]=a.path,t[24]=b):b=t[24],t[25]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Y,{size:20,className:"group-hover:opacity-100 opacity-0 transition-all duration-300 text-primary"}),t[25]=x):x=t[25],t[26]!==b?(y=s.jsxs("div",{className:"flex gap-3 items-center",children:[b,x]}),t[26]=b,t[27]=y):y=t[27],t[28]!==a.lastModified?(w=!!a.lastModified&&s.jsx("div",{className:"text-xs text-muted-foreground opacity-80",children:we(1e3*a.lastModified)}),t[28]=a.lastModified,t[29]=w):w=t[29],t[30]!==y||t[31]!==w?(g=s.jsxs("div",{className:"flex flex-col gap-1 items-end",children:[y,w]}),t[30]=y,t[31]=w,t[32]=g):g=t[32],t[33]!==f||t[34]!==g||t[35]!==i||t[36]!==c||t[37]!==d||t[38]!==h?(v=s.jsxs("a",{className:i,href:d,target:h,children:[f,g]},c),t[33]=f,t[34]=g,t[35]=i,t[36]=c,t[37]=d,t[38]=h,t[39]=v):v=t[39],v},oe=e=>{const t=S.c(9),{filePath:a}=e,{openConfirm:r,closeModal:o}=ke(),{runningNotebooks:n,setRunningNotebooks:i}=I.use(ee);if(!n.has(a))return null;let c,d,u;return t[0]!==o||t[1]!==a||t[2]!==r||t[3]!==n||t[4]!==i?(c=h=>{h.stopPropagation(),h.preventDefault(),r({title:"Shutdown",description:"This will terminate the Python kernel. You'll lose all data that's in memory.",variant:"destructive",confirmAction:s.jsx(Ae,{onClick:()=>{const m=n.get(a);Oe(m==null?void 0:m.sessionId),Te({sessionId:m.sessionId}).then(l=>{i(Q.keyBy(l.files,Ot))}),o(),We({description:"Notebook has been shutdown."})},"aria-label":"Confirm Shutdown",children:"Shutdown"})})},t[0]=o,t[1]=a,t[2]=r,t[3]=n,t[4]=i,t[5]=c):c=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(nt,{size:14}),t[6]=d):d=t[6],t[7]!==c?(u=s.jsx(Re,{content:"Shutdown",children:s.jsx(H,{size:"icon",variant:"outline",className:"opacity-80 hover:opacity-100 hover:bg-accent text-destructive border-destructive hover:border-destructive hover:text-destructive bg-background hover:bg-[var(--red-1)]",onClick:c,children:d})}),t[7]=c,t[8]=u):u=t[8],u},St=()=>{const e=S.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=$e(),e[0]=t):t=e[0];const a=t;let r,o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("h2",{className:"text-lg font-semibold",children:"Create a new notebook"}),e[1]=r):r=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs("a",{className:`relative rounded-lg p-6 group
7
- text-primary hover:bg-[var(--blue-2)] shadow-mdSolid shadow-accent border bg-[var(--blue-1)]
8
- transition-all duration-300 cursor-pointer
9
- `,href:a,target:"_blank",rel:"noreferrer",children:[r,s.jsx("div",{className:"group-hover:opacity-100 opacity-0 absolute right-5 top-0 bottom-0 rounded-lg flex items-center justify-center transition-all duration-300",children:s.jsx(Y,{size:24})})]}),e[2]=o):o=e[2],o};function zt(){return ge()}function Ct(e){return e+1}function Mt(e){return e.path}async function It(){const e=await je();return Q.keyBy(e.files,Mt)}function Pt(e){return e.path}function Dt(){return null}function At(e){return s.jsx(_t,{file:e},e.path)}function Ot(e){return e.path}export{gt as default};
@@ -1 +0,0 @@
1
- function j(n){var t=0,e=n.children,u=e&&e.length;if(u)for(;--u>=0;)t+=e[u].value;else t=1;n.value=t}function L(n,t){n instanceof Map?(n=[void 0,n],t===void 0&&(t=D)):t===void 0&&(t=C);for(var e,u,i,o,f,h=new A(n),c=[h];e=c.pop();)if((i=t(e.data))&&(f=(i=Array.from(i)).length))for(e.children=i,o=f-1;o>=0;--o)c.push(u=i[o]=new A(i[o])),u.parent=e,u.depth=e.depth+1;return h.eachBefore(O)}function C(n){return n.children}function D(n){return Array.isArray(n)?n[1]:null}function F(n){n.data.value!==void 0&&(n.value=n.data.value),n.data=n.data.data}function O(n){var t=0;do n.height=t;while((n=n.parent)&&n.height<++t)}function A(n){this.data=n,this.depth=this.height=0,this.parent=null}function G(n){return n==null?null:R(n)}function R(n){if(typeof n!="function")throw new Error;return n}function M(){return 0}function B(n){return function(){return n}}function q(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function w(n,t,e,u,i){for(var o,f=n.children,h=-1,c=f.length,s=n.value&&(u-t)/n.value;++h<c;)(o=f[h]).y0=e,o.y1=i,o.x0=t,o.x1=t+=o.value*s}function z(n,t,e,u,i){for(var o,f=n.children,h=-1,c=f.length,s=n.value&&(i-e)/n.value;++h<c;)(o=f[h]).x0=t,o.x1=u,o.y0=e,o.y1=e+=o.value*s}A.prototype=L.prototype={constructor:A,count:function(){return this.eachAfter(j)},each:function(n,t){let e=-1;for(const u of this)n.call(t,u,++e,this);return this},eachAfter:function(n,t){for(var e,u,i,o=this,f=[o],h=[],c=-1;o=f.pop();)if(h.push(o),e=o.children)for(u=0,i=e.length;u<i;++u)f.push(e[u]);for(;o=h.pop();)n.call(t,o,++c,this);return this},eachBefore:function(n,t){for(var e,u,i=this,o=[i],f=-1;i=o.pop();)if(n.call(t,i,++f,this),e=i.children)for(u=e.length-1;u>=0;--u)o.push(e[u]);return this},find:function(n,t){let e=-1;for(const u of this)if(n.call(t,u,++e,this))return u},sum:function(n){return this.eachAfter(function(t){for(var e=+n(t.data)||0,u=t.children,i=u&&u.length;--i>=0;)e+=u[i].value;t.value=e})},sort:function(n){return this.eachBefore(function(t){t.children&&t.children.sort(n)})},path:function(n){for(var t=this,e=function(o,f){if(o===f)return o;var h=o.ancestors(),c=f.ancestors(),s=null;for(o=h.pop(),f=c.pop();o===f;)s=o,o=h.pop(),f=c.pop();return s}(t,n),u=[t];t!==e;)t=t.parent,u.push(t);for(var i=u.length;n!==e;)u.splice(i,0,n),n=n.parent;return u},ancestors:function(){for(var n=this,t=[n];n=n.parent;)t.push(n);return t},descendants:function(){return Array.from(this)},leaves:function(){var n=[];return this.eachBefore(function(t){t.children||n.push(t)}),n},links:function(){var n=this,t=[];return n.each(function(e){e!==n&&t.push({source:e.parent,target:e})}),t},copy:function(){return L(this).eachBefore(F)},[Symbol.iterator]:function*(){var n,t,e,u,i=this,o=[i];do for(n=o.reverse(),o=[];i=n.pop();)if(yield i,t=i.children)for(e=0,u=t.length;e<u;++e)o.push(t[e]);while(o.length)}};var E=(1+Math.sqrt(5))/2;function N(n,t,e,u,i,o){for(var f,h,c,s,a,y,r,p,d,g,l,v=[],I=t.children,T=0,m=0,k=I.length,x=t.value;T<k;){c=i-e,s=o-u;do a=I[m++].value;while(!a&&m<k);for(y=r=a,l=a*a*(g=Math.max(s/c,c/s)/(x*n)),d=Math.max(r/l,l/y);m<k;++m){if(a+=h=I[m].value,h<y&&(y=h),h>r&&(r=h),l=a*a*g,(p=Math.max(r/l,l/y))>d){a-=h;break}d=p}v.push(f={value:a,dice:c<s,children:I.slice(T,m)}),f.dice?w(f,e,u,i,x?u+=s*a/x:o):z(f,e,u,x?e+=c*a/x:i,o),x-=a,T=m}return v}const S=function n(t){function e(u,i,o,f,h){N(t,u,i,o,f,h)}return e.ratio=function(u){return n((u=+u)>1?u:1)},e}(E);function H(){var n=S,t=!1,e=1,u=1,i=[0],o=M,f=M,h=M,c=M,s=M;function a(r){return r.x0=r.y0=0,r.x1=e,r.y1=u,r.eachBefore(y),i=[0],t&&r.eachBefore(q),r}function y(r){var p=i[r.depth],d=r.x0+p,g=r.y0+p,l=r.x1-p,v=r.y1-p;l<d&&(d=l=(d+l)/2),v<g&&(g=v=(g+v)/2),r.x0=d,r.y0=g,r.x1=l,r.y1=v,r.children&&(p=i[r.depth+1]=o(r)/2,d+=s(r)-p,g+=f(r)-p,(l-=h(r)-p)<d&&(d=l=(d+l)/2),(v-=c(r)-p)<g&&(g=v=(g+v)/2),n(r,d,g,l,v))}return a.round=function(r){return arguments.length?(t=!!r,a):t},a.size=function(r){return arguments.length?(e=+r[0],u=+r[1],a):[e,u]},a.tile=function(r){return arguments.length?(n=R(r),a):n},a.padding=function(r){return arguments.length?a.paddingInner(r).paddingOuter(r):a.paddingInner()},a.paddingInner=function(r){return arguments.length?(o=typeof r=="function"?r:B(+r),a):o},a.paddingOuter=function(r){return arguments.length?a.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r):a.paddingTop()},a.paddingTop=function(r){return arguments.length?(f=typeof r=="function"?r:B(+r),a):f},a.paddingRight=function(r){return arguments.length?(h=typeof r=="function"?r:B(+r),a):h},a.paddingBottom=function(r){return arguments.length?(c=typeof r=="function"?r:B(+r),a):c},a.paddingLeft=function(r){return arguments.length?(s=typeof r=="function"?r:B(+r),a):s},a}export{A as N,B as a,w as b,M as c,O as d,z as e,S as f,L as h,G as o,E as p,q as r,N as s,H as t};
@@ -1 +0,0 @@
1
- import{V as m}from"./VegaLite-Czmx_ECO.js";import{a as F}from"./VegaLite-Czmx_ECO.js";import{a as s}from"./index-DDdlzLJw.js";import"./compile-BFoHfP_H.js";import"./time-D69fB1YD.js";import"./timer-Bqd5yn_a.js";import"./linear-RD9P-hfS.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./zoom-COrs4lFh.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./step-BwsUM5iJ.js";import"./arc-CfyY4LWz.js";import"./index-BEQfoZiP.js";import"./index-Dx9C9kBl.js";function i(){return i=Object.assign||function(o){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(o[e]=r[e])}return o},i.apply(this,arguments)}function c(o){let{mode:t,spec:r}=o;class e extends s.PureComponent{render(){return s.createElement(m,i({mode:t,spec:r},this.props))}}var p,n,a;return a=function(){return r},(n="getSpec")in(p=e)?Object.defineProperty(p,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[n]=a,e}export{m as Vega,F as VegaLite,c as createClassFromSpec};