@marimo-team/frontend 0.14.11-dev0 → 0.14.11-dev10

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 (97) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-xhypXmHP.js → ConnectedDataExplorerComponent-uXz93dNS.js} +1 -1
  2. package/dist/assets/{ImageComparisonComponent-CuT2DiU_.js → ImageComparisonComponent-BKnsl2Lw.js} +1 -1
  3. package/dist/assets/{VegaLite-CZPBjYdL.js → VegaLite-BaImNNv3.js} +1 -1
  4. package/dist/assets/_baseEach-_Aph8Tu3.js +1 -0
  5. package/dist/assets/_baseMap-DLvObhA2.js +1 -0
  6. package/dist/assets/_baseUniq-ydsgt4N4.js +1 -0
  7. package/dist/assets/{_createAggregator-Ba81XR0f.js → _createAggregator-UP8Yzte5.js} +1 -1
  8. package/dist/assets/{any-language-editor-D89ohP8-.js → any-language-editor-DRrR5rXm.js} +1 -1
  9. package/dist/assets/{architectureDiagram-IEHRJDOE-Bqy8A1ty.js → architectureDiagram-IEHRJDOE-uFOQEO33.js} +1 -1
  10. package/dist/assets/{blockDiagram-JOT3LUYC-DWGFz276.js → blockDiagram-JOT3LUYC-DEvMFeRP.js} +1 -1
  11. package/dist/assets/{c4Diagram-VJAJSXHY-BaOdN25X.js → c4Diagram-VJAJSXHY-CUi9TQC0.js} +1 -1
  12. package/dist/assets/channel-0q_RQ8BB.js +1 -0
  13. package/dist/assets/{chunk-4BMEZGHF-CkjJnX2u.js → chunk-4BMEZGHF-D2t_7m-l.js} +1 -1
  14. package/dist/assets/{chunk-A2AXSNBT-a1s-o-2J.js → chunk-A2AXSNBT-eJyrTwta.js} +1 -1
  15. package/dist/assets/{chunk-AEK57VVT-AIgYDw2J.js → chunk-AEK57VVT-DBCcQUkl.js} +1 -1
  16. package/dist/assets/{chunk-D6G4REZN-DWoFE-ph.js → chunk-D6G4REZN-PEhYQ7FV.js} +1 -1
  17. package/dist/assets/{chunk-RZ5BOZE2-D_FFPG3U.js → chunk-RZ5BOZE2-Ww9F4D19.js} +1 -1
  18. package/dist/assets/{chunk-XZIHB7SX-EkhL4wJD.js → chunk-XZIHB7SX-DVug_9TW.js} +1 -1
  19. package/dist/assets/{circle-play-BMHPESBW.js → circle-play-Do5wdxBG.js} +1 -1
  20. package/dist/assets/classDiagram-GIVACNV2-CtATtfTL.js +1 -0
  21. package/dist/assets/classDiagram-v2-COTLJTTW-CtATtfTL.js +1 -0
  22. package/dist/assets/clone-WlurXIwI.js +1 -0
  23. package/dist/assets/{compile-Damt1e16.js → compile-CS53SapK.js} +1 -1
  24. package/dist/assets/{dagre-OKDRZEBW-CGUb-yRu.js → dagre-OKDRZEBW-BnZptSaW.js} +1 -1
  25. package/dist/assets/{data-editor-bYstOkO_.js → data-editor-CkjuKdYe.js} +1 -1
  26. package/dist/assets/{diagram-SSKATNLV-FwTyvSfY.js → diagram-SSKATNLV-B1pf0a7a.js} +1 -1
  27. package/dist/assets/{diagram-VNBRO52H-3TqYsaSt.js → diagram-VNBRO52H-Dwersrui.js} +1 -1
  28. package/dist/assets/edit-page-FmqkTE0k.js +144 -0
  29. package/dist/assets/{erDiagram-Q7BY3M3F-CtRJc8Nz.js → erDiagram-Q7BY3M3F-B6F7ju5f.js} +1 -1
  30. package/dist/assets/{flowDiagram-4HSFHLVR-DjtJKD_Z.js → flowDiagram-4HSFHLVR-BZFM8dwO.js} +1 -1
  31. package/dist/assets/{ganttDiagram-APWFNJXF-9Lh3_xwg.js → ganttDiagram-APWFNJXF-C5tnuAdQ.js} +3 -3
  32. package/dist/assets/{gitGraphDiagram-7IBYFJ6S-mSQBtVLg.js → gitGraphDiagram-7IBYFJ6S-CfB_wvgD.js} +1 -1
  33. package/dist/assets/{graph-IrIGy0Ij.js → graph-wIsv4ssO.js} +1 -1
  34. package/dist/assets/{home-page-CNMiYKVV.js → home-page-C4EqZnZ_.js} +3 -3
  35. package/dist/assets/index-8IZtaDUn.css +1 -0
  36. package/dist/assets/{index-5b7VjltT.js → index-B6FmCnnO.js} +1 -1
  37. package/dist/assets/{index-C3fEZ0Os.js → index-BRUyjTC9.js} +1 -1
  38. package/dist/assets/{index-Ba21-oA7.js → index-BRhVM8bV.js} +1 -1
  39. package/dist/assets/{index-txb0mb7R.js → index-Brn5h-MN.js} +193 -192
  40. package/dist/assets/{index-DEVx6k2J.js → index-C2wmC6fr.js} +1 -1
  41. package/dist/assets/{index-BzDF-7zA.js → index-CAMhb73a.js} +1 -1
  42. package/dist/assets/{index-CUzcOfxz.js → index-CNd6d_Hy.js} +1 -1
  43. package/dist/assets/{index-35e8utiM.js → index-CUP2IjKA.js} +1 -1
  44. package/dist/assets/{index-Dab8F8qD.js → index-Cpkva4YR.js} +1 -1
  45. package/dist/assets/{index-DhdD-An0.js → index-CwKyWSy1.js} +1 -1
  46. package/dist/assets/{index-JuXGMVhT.js → index-D6dKte92.js} +1 -1
  47. package/dist/assets/{index-BsUs07E9.js → index-D8WfHeCN.js} +1 -1
  48. package/dist/assets/{index-2n_uhCrQ.js → index-DGgaTWAE.js} +1 -1
  49. package/dist/assets/{index-CSsS2b0Z.js → index-DNQQBv-I.js} +1 -1
  50. package/dist/assets/{index-EbLetw4e.js → index-DnFPJYjY.js} +1 -1
  51. package/dist/assets/{index-Bfi4fmBc.js → index-RZfe2xwT.js} +1 -1
  52. package/dist/assets/{index-BVP4ykSA.js → index-bmSr8I3W.js} +1 -1
  53. package/dist/assets/{index-Dyk-xt3p.js → index-gobDTezl.js} +1 -1
  54. package/dist/assets/{index-Cq15mGfX.js → index-qUTVxT1L.js} +1 -1
  55. package/dist/assets/infoDiagram-PH2N3AL5-BOyAI4Oa.js +2 -0
  56. package/dist/assets/{journeyDiagram-U35MCT3I-CbytJqly.js → journeyDiagram-U35MCT3I-BmSDnsgn.js} +1 -1
  57. package/dist/assets/{kanban-definition-NDS4AKOZ-W6yBdwhF.js → kanban-definition-NDS4AKOZ-CHQtWsik.js} +1 -1
  58. package/dist/assets/{layout-DlbUiVTi.js → layout-DkXQ4_M1.js} +1 -1
  59. package/dist/assets/{linear-Dj45uvUC.js → linear-CKa6tYxf.js} +1 -1
  60. package/dist/assets/{mermaid-CF64dWR7.js → mermaid-CKYMkzSc.js} +4 -4
  61. package/dist/assets/min-DPzXE2V0.js +1 -0
  62. package/dist/assets/{mindmap-definition-ALO5MXBD-CEZNGiuh.js → mindmap-definition-ALO5MXBD-B1X_X_4_.js} +1 -1
  63. package/dist/assets/{pieDiagram-IB7DONF6-Bmtf6Osx.js → pieDiagram-IB7DONF6-BgMOnu-h.js} +1 -1
  64. package/dist/assets/{quadrantDiagram-7GDLP6J5-BJI493xo.js → quadrantDiagram-7GDLP6J5-BjE1BJSG.js} +1 -1
  65. package/dist/assets/{radar-MK3ICKWK-tcdT_E-c.js → radar-MK3ICKWK-BGF1Bvyn.js} +26 -26
  66. package/dist/assets/{react-plotly-Cm8tbitC.js → react-plotly-Hgniu5d7.js} +1 -1
  67. package/dist/assets/{requirementDiagram-KVF5MWMF-B0Dl_7g_.js → requirementDiagram-KVF5MWMF-DAYTGE0Y.js} +1 -1
  68. package/dist/assets/{run-page-D4giGLEq.js → run-page-DH3oskJG.js} +1 -1
  69. package/dist/assets/{sankeyDiagram-QLVOVGJD-3MDzKxBN.js → sankeyDiagram-QLVOVGJD-Dskrs1np.js} +1 -1
  70. package/dist/assets/{sequenceDiagram-X6HHIX6F-5W9llLvo.js → sequenceDiagram-X6HHIX6F-CjFOqeNr.js} +1 -1
  71. package/dist/assets/{shutdown-button-s5kelj0_.js → shutdown-button-T9XyTVKT.js} +13 -13
  72. package/dist/assets/{slides-component-Bj1IZwWl.js → slides-component-B5LFcBlv.js} +1 -1
  73. package/dist/assets/{sortBy-YjMpBoem.js → sortBy-w86K0CWQ.js} +1 -1
  74. package/dist/assets/{stateDiagram-DGXRK772-CDmwph_l.js → stateDiagram-DGXRK772-CPPjYL76.js} +1 -1
  75. package/dist/assets/stateDiagram-v2-YXO3MK2T-3iPgv_dT.js +1 -0
  76. package/dist/assets/{storage-TQaz51Ul.js → storage-BSuExvg_.js} +6 -6
  77. package/dist/assets/{terminal-BoXScU3t.js → terminal-BwkkP8Z5.js} +1 -1
  78. package/dist/assets/{time-uFdtyzoO.js → time-4AULYytW.js} +1 -1
  79. package/dist/assets/{timeline-definition-BDJGKUSR-Bc4KvRrH.js → timeline-definition-BDJGKUSR-CAO3o0Eo.js} +1 -1
  80. package/dist/assets/tracing-DV52BG1x.js +2 -0
  81. package/dist/assets/{vega-component-DETxercC.js → vega-component-DbwTp9Hj.js} +1 -1
  82. package/dist/assets/{xychartDiagram-VJFVF3MP-YgHFBUco.js → xychartDiagram-VJFVF3MP-Q0piBnso.js} +1 -1
  83. package/dist/index.html +2 -2
  84. package/package.json +1 -1
  85. package/dist/assets/_baseEach-BCq1QunV.js +0 -1
  86. package/dist/assets/_baseMap-DIOkSXLh.js +0 -1
  87. package/dist/assets/_baseUniq-DsVx03Xh.js +0 -1
  88. package/dist/assets/channel-CkgsSbnI.js +0 -1
  89. package/dist/assets/classDiagram-GIVACNV2-B0rECIpB.js +0 -1
  90. package/dist/assets/classDiagram-v2-COTLJTTW-B0rECIpB.js +0 -1
  91. package/dist/assets/clone-DnjbzbBr.js +0 -1
  92. package/dist/assets/edit-page-DDga9Bn0.js +0 -144
  93. package/dist/assets/index-B-hr6ABS.css +0 -1
  94. package/dist/assets/infoDiagram-PH2N3AL5-Djntz0RO.js +0 -2
  95. package/dist/assets/min-Bi7qOXpu.js +0 -1
  96. package/dist/assets/stateDiagram-v2-YXO3MK2T-C-dFepoJ.js +0 -1
  97. package/dist/assets/tracing-C7fLEsxH.js +0 -2
@@ -1,4 +1,4 @@
1
- var D;import{g as It,s as Ct}from"./chunk-RZ5BOZE2-D_FFPG3U.js";import{_ as h,b as xt,a as Dt,s as $t,g as vt,p as wt,q as Lt,c as V,l as x,y as Mt,x as Bt,A as Ft,B as Yt,o as Pt,r as zt,u as Gt}from"./mermaid-CF64dWR7.js";import{s as Kt}from"./transform-DetRMEbJ.js";import{c as Zt}from"./channel-CkgsSbnI.js";import"./index-txb0mb7R.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";var lt=function(){var s=h(function(a,u,o,n){for(o=o||{},n=a.length;n--;o[a[n]]=u);return o},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],l=[1,10],y=[1,11],c=[1,12],r=[1,13],_=[1,20],g=[1,21],E=[1,22],$=[1,23],v=[1,24],N=[1,19],w=[1,25],Z=[1,26],L=[1,18],tt=[1,33],et=[1,34],st=[1,35],it=[1,36],nt=[1,37],ht=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],T=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],S=[1,58],P=[1,62],z=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],yt=[63,64,65,66,67],ut=[1,81],dt=[1,80],pt=[1,78],_t=[1,79],gt=[6,10,42,47],I=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],Q=[1,87],G=[19,56],mt=[1,98],ft=[1,97],at=[19,56,58,60],rt={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:h(function(a,u,o,n,d,t,K){var e=t.length-1;switch(d){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:case 55:case 78:case 62:case 63:case 66:this.$=t[e];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:case 43:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 44:case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:case 67:this.$=t[e].replace(/"/g,"");break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:tt,64:et,65:st,66:it,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ht,[2,54]),s(ht,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:T},{16:44,40:O,41:T},{16:45,40:O,41:T},s(i,[2,4]),{11:46,40:N,50:L},{16:47,40:O,41:T},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:N,50:L},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:S,45:59,46:60,48:P,49:z},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:T,42:S},{13:F,38:66,41:Y,42:S,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:S,63:tt,64:et,65:st,66:it,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:tt,64:et,65:st,66:it,67:nt},s(yt,[2,74]),s(yt,[2,75]),{6:ut,10:dt,39:77,42:pt,47:_t},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(I,[2,45]),s(I,[2,50]),s(I,[2,51]),s(I,[2,52]),s(I,[2,53]),s(i,[2,41],{42:S}),{6:ut,10:dt,39:85,42:pt,47:_t},{14:86,40:j,50:W,70:Q},{16:90,40:O,41:T},{11:91,40:N,50:L},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:mt,60:ft}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(I,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:S},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:ft}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:T},s(gt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:j,50:W,70:Q},{16:112,40:O,41:T},{14:113,40:j,50:W,70:Q},s(i,[2,13]),s(G,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:S}),s(i,[2,11]),{13:[1,117],42:S},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:j,50:W,70:Q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:h(function(a,u){if(!u.recoverable){var o=new Error(a);throw o.hash=u,o}this.trace(a)},"parseError"),parse:h(function(a){var u=this,o=[0],n=[],d=[null],t=[],K=this.table,e="",q=0,bt=0,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),R={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(R.yy[ct]=this.yy[ct]);p.setInput(a,R.yy),R.yy.lexer=p,R.yy.parser=this,p.yylloc===void 0&&(p.yylloc={});var ot=p.yylloc;t.push(ot);var At=p.options&&p.options.ranges;function Et(){var b;return typeof(b=n.pop()||p.lex()||1)!="number"&&(b instanceof Array&&(b=(n=b).pop()),b=u.symbols_[b]||b),b}typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,h(function(b){o.length=o.length-2*b,d.length=d.length-b,t.length=t.length-b},"popStack"),h(Et,"lex");for(var m,A,f,kt,H,k,Ot,J,C={};;){if(A=o[o.length-1],this.defaultActions[A]?f=this.defaultActions[A]:(m==null&&(m=Et()),f=K[A]&&K[A][m]),f===void 0||!f.length||!f[0]){var Tt="";for(H in J=[],K[A])this.terminals_[H]&&H>2&&J.push("'"+this.terminals_[H]+"'");Tt=p.showPosition?"Parse error on line "+(q+1)+`:
1
+ var D;import{g as It,s as Ct}from"./chunk-RZ5BOZE2-Ww9F4D19.js";import{_ as h,b as xt,a as Dt,s as $t,g as vt,p as wt,q as Lt,c as V,l as x,y as Mt,x as Bt,A as Ft,B as Yt,o as Pt,r as zt,u as Gt}from"./mermaid-CKYMkzSc.js";import{s as Kt}from"./transform-DetRMEbJ.js";import{c as Zt}from"./channel-0q_RQ8BB.js";import"./index-Brn5h-MN.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";var lt=function(){var s=h(function(a,u,o,n){for(o=o||{},n=a.length;n--;o[a[n]]=u);return o},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],l=[1,10],y=[1,11],c=[1,12],r=[1,13],_=[1,20],g=[1,21],E=[1,22],$=[1,23],v=[1,24],N=[1,19],w=[1,25],Z=[1,26],L=[1,18],tt=[1,33],et=[1,34],st=[1,35],it=[1,36],nt=[1,37],ht=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],T=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],S=[1,58],P=[1,62],z=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],yt=[63,64,65,66,67],ut=[1,81],dt=[1,80],pt=[1,78],_t=[1,79],gt=[6,10,42,47],I=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],Q=[1,87],G=[19,56],mt=[1,98],ft=[1,97],at=[19,56,58,60],rt={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:h(function(a,u,o,n,d,t,K){var e=t.length-1;switch(d){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:case 55:case 78:case 62:case 63:case 66:this.$=t[e];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:case 43:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 44:case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:case 67:this.$=t[e].replace(/"/g,"");break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:tt,64:et,65:st,66:it,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ht,[2,54]),s(ht,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:T},{16:44,40:O,41:T},{16:45,40:O,41:T},s(i,[2,4]),{11:46,40:N,50:L},{16:47,40:O,41:T},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:N,50:L},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:S,45:59,46:60,48:P,49:z},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:T,42:S},{13:F,38:66,41:Y,42:S,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:S,63:tt,64:et,65:st,66:it,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:tt,64:et,65:st,66:it,67:nt},s(yt,[2,74]),s(yt,[2,75]),{6:ut,10:dt,39:77,42:pt,47:_t},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(I,[2,45]),s(I,[2,50]),s(I,[2,51]),s(I,[2,52]),s(I,[2,53]),s(i,[2,41],{42:S}),{6:ut,10:dt,39:85,42:pt,47:_t},{14:86,40:j,50:W,70:Q},{16:90,40:O,41:T},{11:91,40:N,50:L},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:mt,60:ft}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(I,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:S},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:ft}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:T},s(gt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:j,50:W,70:Q},{16:112,40:O,41:T},{14:113,40:j,50:W,70:Q},s(i,[2,13]),s(G,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:S}),s(i,[2,11]),{13:[1,117],42:S},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:j,50:W,70:Q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:h(function(a,u){if(!u.recoverable){var o=new Error(a);throw o.hash=u,o}this.trace(a)},"parseError"),parse:h(function(a){var u=this,o=[0],n=[],d=[null],t=[],K=this.table,e="",q=0,bt=0,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),R={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(R.yy[ct]=this.yy[ct]);p.setInput(a,R.yy),R.yy.lexer=p,R.yy.parser=this,p.yylloc===void 0&&(p.yylloc={});var ot=p.yylloc;t.push(ot);var At=p.options&&p.options.ranges;function Et(){var b;return typeof(b=n.pop()||p.lex()||1)!="number"&&(b instanceof Array&&(b=(n=b).pop()),b=u.symbols_[b]||b),b}typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,h(function(b){o.length=o.length-2*b,d.length=d.length-b,t.length=t.length-b},"popStack"),h(Et,"lex");for(var m,A,f,kt,H,k,Ot,J,C={};;){if(A=o[o.length-1],this.defaultActions[A]?f=this.defaultActions[A]:(m==null&&(m=Et()),f=K[A]&&K[A][m]),f===void 0||!f.length||!f[0]){var Tt="";for(H in J=[],K[A])this.terminals_[H]&&H>2&&J.push("'"+this.terminals_[H]+"'");Tt=p.showPosition?"Parse error on line "+(q+1)+`:
2
2
  `+p.showPosition()+`
3
3
  Expecting `+J.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(q+1)+": Unexpected "+(m==1?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(Tt,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:ot,expected:J})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+m);switch(f[0]){case 1:o.push(m),d.push(p.yytext),t.push(p.yylloc),o.push(f[1]),m=null,bt=p.yyleng,e=p.yytext,q=p.yylineno,ot=p.yylloc;break;case 2:if(k=this.productions_[f[1]][1],C.$=d[d.length-k],C._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},At&&(C._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),(kt=this.performAction.apply(C,[e,bt,q,R.yy,f[1],d,t].concat(Rt)))!==void 0)return kt;k&&(o=o.slice(0,-1*k*2),d=d.slice(0,-1*k),t=t.slice(0,-1*k)),o.push(this.productions_[f[1]][0]),d.push(C.$),t.push(C._$),Ot=K[o[o.length-2]][o[o.length-1]],o.push(Ot);break;case 3:return!0}}return!0},"parse")},Nt=function(){return{EOF:1,parseError:h(function(a,u){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,u)},"parseError"),setInput:h(function(a,u){return this.yy=u||this.yy||{},this._input=a,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:h(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},"input"),unput:h(function(a){var u=a.length,o=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var n=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),o.length-1&&(this.yylineno-=o.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===n.length?this.yylloc.first_column:0)+n[n.length-o.length].length-o[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:h(function(a){this.unput(this.match.slice(a))},"less"),pastInput:h(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var a=this.pastInput(),u=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- var P1;import{_ as f,n as Pt,l as J,c as R1,o as Wt,r as jt,u as Z1,b as zt,s as Kt,p as Yt,a as Ht,g as qt,q as Xt,j as Qt,t as Jt,J as Zt,v as te,x as tt,y as ee,z as se,A as ie}from"./mermaid-CF64dWR7.js";import{g as ne,s as ae}from"./chunk-RZ5BOZE2-D_FFPG3U.js";import{s as k1}from"./transform-DetRMEbJ.js";import{c as ue}from"./channel-CkgsSbnI.js";import"./index-txb0mb7R.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";var re=(P1=class{constructor(){this.vertexCounter=0,this.config=R1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=zt,this.setAccDescription=Kt,this.setDiagramTitle=Yt,this.getAccTitle=Ht,this.getAccDescription=qt,this.getDiagramTitle=Xt,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return Qt.sanitizeText(i,this.config)}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return a.domId;return i}addVertex(i,a,n,r,u,p,d={},c){var j,y;if(!i||i.trim().length===0)return;let o;if(c!==void 0){let g;g=c.includes(`
1
+ var P1;import{_ as f,n as Pt,l as J,c as R1,o as Wt,r as jt,u as Z1,b as zt,s as Kt,p as Yt,a as Ht,g as qt,q as Xt,j as Qt,t as Jt,J as Zt,v as te,x as tt,y as ee,z as se,A as ie}from"./mermaid-CKYMkzSc.js";import{g as ne,s as ae}from"./chunk-RZ5BOZE2-Ww9F4D19.js";import{s as k1}from"./transform-DetRMEbJ.js";import{c as ue}from"./channel-0q_RQ8BB.js";import"./index-Brn5h-MN.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";var re=(P1=class{constructor(){this.vertexCounter=0,this.config=R1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=zt,this.setAccDescription=Kt,this.setDiagramTitle=Yt,this.getAccTitle=Ht,this.getAccDescription=qt,this.getDiagramTitle=Xt,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return Qt.sanitizeText(i,this.config)}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return a.domId;return i}addVertex(i,a,n,r,u,p,d={},c){var j,y;if(!i||i.trim().length===0)return;let o;if(c!==void 0){let g;g=c.includes(`
2
2
  `)?c+`
3
3
  `:`{
4
4
  `+c+`
@@ -1,9 +1,9 @@
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,am as V,l as mt,j as ke,i as pe,y as ge,u as be}from"./mermaid-CF64dWR7.js";import{y as gt,bU as Wt,bM as Ot,bL as xe,cq as Te,cr as ve,cs as we,ct as _e,cu as De,cv as $e,bK as Pt,bJ as zt,bI as Bt,by as Ht,bH as Nt}from"./index-txb0mb7R.js";import{s as bt}from"./transform-DetRMEbJ.js";import{t as Ce,m as Se,a as Me,i as Ee}from"./time-uFdtyzoO.js";import{l as Ae}from"./linear-Dj45uvUC.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";import"./init-DLRA0X12.js";function Ie(t){return t}var jt=1e-6;function Le(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)),r=>+t(r)+n}function Oe(){return!this.__axis}function Gt(t,n){var r=[],s=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?Le:Ye;function S(_){var k=s??(n.ticks?n.ticks.apply(n,r):n.domain()),y=i??(n.tickFormat?n.tickFormat.apply(n,r):Ie),M=Math.max(c,0)+A,E=n.range(),P=+E[0]+x,z=+E[E.length-1]+x,G=(n.bandwidth?We:Fe)(n.copy(),x),B=_.selection?_.selection():_,O=B.selectAll(".domain").data([null]),Y=B.selectAll(".tick").data(k,n).order(),p=Y.exit(),w=Y.enter().append("g").attr("class","tick"),g=Y.select("line"),b=Y.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(w),g=g.merge(w.append("line").attr("stroke","currentColor").attr(L+"2",$*c)),b=b.merge(w.append("text").attr("fill","currentColor").attr(L,$*M).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),_!==B&&(O=O.transition(_),Y=Y.transition(_),g=g.transition(_),b=b.transition(_),p=p.transition(_).attr("opacity",jt).attr("transform",function(f){return isFinite(f=G(f))?W(f+x):this.getAttribute("transform")}),w.attr("opacity",jt).attr("transform",function(f){var o=this.parentNode.__axis;return W((o&&isFinite(o=o(f))?o:G(f))+x)})),p.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(G(f)+x)}),g.attr(L+"2",$*c),b.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=G})}return S.scale=function(_){return arguments.length?(n=_,S):n},S.ticks=function(){return r=Array.from(arguments),S},S.tickArguments=function(_){return arguments.length?(r=_==null?[]:Array.from(_),S):r.slice()},S.tickValues=function(_){return arguments.length?(s=_==null?null:Array.from(_),S):s&&s.slice()},S.tickFormat=function(_){return arguments.length?(i=_,S):i},S.tickSize=function(_){return arguments.length?(c=h=+_,S):c},S.tickSizeInner=function(_){return arguments.length?(c=+_,S):c},S.tickSizeOuter=function(_){return arguments.length?(h=+_,S):h},S.tickPadding=function(_){return arguments.length?(A=+_,S):A},S.offset=function(_){return arguments.length?(x=+_,S):x},S}var Vt,yt,Rt={exports:{}};const Pe=gt(Vt?Rt.exports:(Vt=1,Rt.exports=(yt="day",function(t,n,r){var s=function(h){return h.add(4-h.isoWeekday(),yt)},i=n.prototype;i.isoWeekYear=function(){return s(this).year()},i.isoWeek=function(h){if(!this.$utils().u(h))return this.add(7*(h-this.isoWeek()),yt);var A,x,$,L=s(this),W=(A=this.isoWeekYear(),$=4-(x=(this.$u?r.utc:r)().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 Ut,Zt={exports:{}},ze=(Ut||(Ut=1,Zt.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,r=/\d/,s=/\d\d/,i=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,h={},A=function(k){return(k=+k)+(k>68?1900:2e3)},x=function(k){return function(y){this[k]=+y}},$=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(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}(k)}],L=function(k){var y=h[k];return y&&(y.indexOf?y:y.s.concat(y.f))},W=function(k,y){var M,E=h.meridiem;if(E){for(var P=1;P<=24;P+=1)if(k.indexOf(E(P,0,y))>-1){M=P>12;break}}else M=k===(y?"pm":"PM");return M},S={A:[c,function(k){this.afternoon=W(k,!1)}],a:[c,function(k){this.afternoon=W(k,!0)}],Q:[r,function(k){this.month=3*(k-1)+1}],S:[r,function(k){this.milliseconds=100*+k}],SS:[s,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],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:[s,x("day")],Do:[c,function(k){var y=h.ordinal,M=k.match(/\d+/);if(this.day=M[0],y)for(var E=1;E<=31;E+=1)y(E).replace(/\[|\]/g,"")===k&&(this.day=E)}],w:[i,x("week")],ww:[s,x("week")],M:[i,x("month")],MM:[s,x("month")],MMM:[c,function(k){var y=L("months"),M=(L("monthsShort")||y.map(function(E){return E.slice(0,3)})).indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[c,function(k){var y=L("months").indexOf(k)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,x("year")],YY:[s,function(k){this.year=A(k)}],YYYY:[/\d{4}/,x("year")],Z:$,ZZ:$};function _(k){var y,M;y=k,M=h&&h.formats;for(var E=(k=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,w,g){var b=g&&g.toUpperCase();return w||M[g]||t[g]||M[b].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 G=E[z],B=S[G],O=B&&B[0],Y=B&&B[1];E[z]=Y?{regex:O,parser:Y}:G.replace(/^\[|\]$/g,"")}return function(p){for(var w={},g=0,b=0;g<P;g+=1){var f=E[g];if(typeof f=="string")b+=f.length;else{var o=f.regex,m=f.parser,u=p.slice(b),l=o.exec(u)[0];m.call(w,l),p=p.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(k,y,M){M.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(A=k.parseTwoDigitYear);var E=y.prototype,P=E.parse;E.parse=function(z){var G=z.date,B=z.utc,O=z.args;this.$u=B;var Y=O[1];if(typeof Y=="string"){var p=O[2]===!0,w=O[3]===!0,g=p||w,b=O[2];w&&(b=O[2]),h=this.$locale(),!p&&b&&(h=M.Ls[b]),this.$d=function(u,l,T,e){try{if(["x","X"].indexOf(l)>-1)return new Date((l==="X"?1e3:1)*u);var v=_(l)(u),a=v.year,D=v.month,I=v.day,F=v.hours,C=v.minutes,Z=v.seconds,tt=v.milliseconds,st=v.zone,ft=v.week,rt=new Date,N=I||(a||D?1:rt.getDate()),q=a||rt.getFullYear(),j=0;a&&!D||(j=D>0?D-1:rt.getMonth());var et,X=F||0,R=C||0,at=Z||0,J=tt||0;return st?new Date(Date.UTC(q,j,N,X,R,at,J+60*st.offset*1e3)):T?new Date(Date.UTC(q,j,N,X,R,at,J)):(et=new Date(q,j,N,X,R,at,J),ft&&(et=e(et).week(ft).toDate()),et)}catch{return new Date("")}}(G,Y,B,M),this.init(),b&&b!==!0&&(this.$L=this.locale(b).$L),g&&G!=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)}}}()),Zt.exports);const Be=gt(ze);var qt,Qt={exports:{}},He=(qt||(qt=1,Qt.exports=function(t,n){var r=n.prototype,s=r.format;r.format=function(i){var c=this,h=this.$locale();if(!this.isValid())return s.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 s.bind(this)(x)}}),Qt.exports);const Ne=gt(He);var xt=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],r=[1,26],s=[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],_=[1,11],k=[1,12],y=[1,13],M=[1,14],E=[1,15],P=[1,16],z=[1,19],G=[1,20],B=[1,21],O=[1,22],Y=[1,23],p=[1,25],w=[1,35],g={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:r,13:s,14:i,15:c,16:h,17:A,18:x,19:18,20:$,21:L,22:W,23:S,24:_,25:k,26:y,27:M,28:E,29:P,30:z,31:G,33:B,35:O,36:Y,37:24,38:p,40:w},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:r,13:s,14:i,15:c,16:h,17:A,18:x,19:18,20:$,21:L,22:W,23:S,24:_,25:k,26:y,27:M,28:E,29:P,30:z,31:G,33:B,35:O,36:Y,37:24,38:p,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="",D=0,I=0,F=e.slice.call(arguments,1),C=Object.create(this.lexer),Z={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(Z.yy[tt]=this.yy[tt]);C.setInput(o,Z.yy),Z.yy.lexer=C,Z.yy.parser=this,C.yylloc===void 0&&(C.yylloc={});var st=C.yylloc;e.push(st);var ft=C.options&&C.options.ranges;function rt(){var U;return typeof(U=l.pop()||C.lex()||1)!="number"&&(U instanceof Array&&(U=(l=U).pop()),U=m.symbols_[U]||U),U}typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,d(function(U){u.length=u.length-2*U,T.length=T.length-U,e.length=e.length-U},"popStack"),d(rt,"lex");for(var N,q,j,et,X,R,at,J,nt={};;){if(q=u[u.length-1],this.defaultActions[q]?j=this.defaultActions[q]:(N==null&&(N=rt()),j=v[q]&&v[q][N]),j===void 0||!j.length||!j[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 "+(D+1)+`:
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,am as V,l as mt,j as ke,i as pe,y as ge,u as be}from"./mermaid-CKYMkzSc.js";import{y as gt,bV as Wt,bN as Ot,bM as xe,cr as Te,cs as ve,ct as we,cu as _e,cv as De,cw as $e,bL as Pt,bK as zt,bJ as Bt,bz as Nt,bI as Ht}from"./index-Brn5h-MN.js";import{s as bt}from"./transform-DetRMEbJ.js";import{t as Ce,m as Se,a as Me,i as Ee}from"./time-4AULYytW.js";import{l as Ae}from"./linear-CKa6tYxf.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";import"./init-DLRA0X12.js";function Ie(t){return t}var jt=1e-6;function Le(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)),r=>+t(r)+n}function Oe(){return!this.__axis}function Gt(t,n){var r=[],s=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?Le:Ye;function S(_){var k=s??(n.ticks?n.ticks.apply(n,r):n.domain()),y=i??(n.tickFormat?n.tickFormat.apply(n,r):Ie),M=Math.max(c,0)+A,E=n.range(),P=+E[0]+x,z=+E[E.length-1]+x,G=(n.bandwidth?We:Fe)(n.copy(),x),B=_.selection?_.selection():_,O=B.selectAll(".domain").data([null]),Y=B.selectAll(".tick").data(k,n).order(),p=Y.exit(),w=Y.enter().append("g").attr("class","tick"),g=Y.select("line"),b=Y.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(w),g=g.merge(w.append("line").attr("stroke","currentColor").attr(L+"2",$*c)),b=b.merge(w.append("text").attr("fill","currentColor").attr(L,$*M).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),_!==B&&(O=O.transition(_),Y=Y.transition(_),g=g.transition(_),b=b.transition(_),p=p.transition(_).attr("opacity",jt).attr("transform",function(f){return isFinite(f=G(f))?W(f+x):this.getAttribute("transform")}),w.attr("opacity",jt).attr("transform",function(f){var o=this.parentNode.__axis;return W((o&&isFinite(o=o(f))?o:G(f))+x)})),p.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(G(f)+x)}),g.attr(L+"2",$*c),b.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=G})}return S.scale=function(_){return arguments.length?(n=_,S):n},S.ticks=function(){return r=Array.from(arguments),S},S.tickArguments=function(_){return arguments.length?(r=_==null?[]:Array.from(_),S):r.slice()},S.tickValues=function(_){return arguments.length?(s=_==null?null:Array.from(_),S):s&&s.slice()},S.tickFormat=function(_){return arguments.length?(i=_,S):i},S.tickSize=function(_){return arguments.length?(c=h=+_,S):c},S.tickSizeInner=function(_){return arguments.length?(c=+_,S):c},S.tickSizeOuter=function(_){return arguments.length?(h=+_,S):h},S.tickPadding=function(_){return arguments.length?(A=+_,S):A},S.offset=function(_){return arguments.length?(x=+_,S):x},S}var Vt,yt,Rt={exports:{}};const Pe=gt(Vt?Rt.exports:(Vt=1,Rt.exports=(yt="day",function(t,n,r){var s=function(h){return h.add(4-h.isoWeekday(),yt)},i=n.prototype;i.isoWeekYear=function(){return s(this).year()},i.isoWeek=function(h){if(!this.$utils().u(h))return this.add(7*(h-this.isoWeek()),yt);var A,x,$,L=s(this),W=(A=this.isoWeekYear(),$=4-(x=(this.$u?r.utc:r)().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,r=/\d/,s=/\d\d/,i=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,h={},A=function(k){return(k=+k)+(k>68?1900:2e3)},x=function(k){return function(y){this[k]=+y}},$=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(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}(k)}],L=function(k){var y=h[k];return y&&(y.indexOf?y:y.s.concat(y.f))},W=function(k,y){var M,E=h.meridiem;if(E){for(var P=1;P<=24;P+=1)if(k.indexOf(E(P,0,y))>-1){M=P>12;break}}else M=k===(y?"pm":"PM");return M},S={A:[c,function(k){this.afternoon=W(k,!1)}],a:[c,function(k){this.afternoon=W(k,!0)}],Q:[r,function(k){this.month=3*(k-1)+1}],S:[r,function(k){this.milliseconds=100*+k}],SS:[s,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],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:[s,x("day")],Do:[c,function(k){var y=h.ordinal,M=k.match(/\d+/);if(this.day=M[0],y)for(var E=1;E<=31;E+=1)y(E).replace(/\[|\]/g,"")===k&&(this.day=E)}],w:[i,x("week")],ww:[s,x("week")],M:[i,x("month")],MM:[s,x("month")],MMM:[c,function(k){var y=L("months"),M=(L("monthsShort")||y.map(function(E){return E.slice(0,3)})).indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[c,function(k){var y=L("months").indexOf(k)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,x("year")],YY:[s,function(k){this.year=A(k)}],YYYY:[/\d{4}/,x("year")],Z:$,ZZ:$};function _(k){var y,M;y=k,M=h&&h.formats;for(var E=(k=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,w,g){var b=g&&g.toUpperCase();return w||M[g]||t[g]||M[b].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 G=E[z],B=S[G],O=B&&B[0],Y=B&&B[1];E[z]=Y?{regex:O,parser:Y}:G.replace(/^\[|\]$/g,"")}return function(p){for(var w={},g=0,b=0;g<P;g+=1){var f=E[g];if(typeof f=="string")b+=f.length;else{var o=f.regex,m=f.parser,u=p.slice(b),l=o.exec(u)[0];m.call(w,l),p=p.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(k,y,M){M.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(A=k.parseTwoDigitYear);var E=y.prototype,P=E.parse;E.parse=function(z){var G=z.date,B=z.utc,O=z.args;this.$u=B;var Y=O[1];if(typeof Y=="string"){var p=O[2]===!0,w=O[3]===!0,g=p||w,b=O[2];w&&(b=O[2]),h=this.$locale(),!p&&b&&(h=M.Ls[b]),this.$d=function(u,l,T,e){try{if(["x","X"].indexOf(l)>-1)return new Date((l==="X"?1e3:1)*u);var v=_(l)(u),a=v.year,D=v.month,I=v.day,F=v.hours,C=v.minutes,U=v.seconds,tt=v.milliseconds,st=v.zone,ft=v.week,rt=new Date,H=I||(a||D?1:rt.getDate()),q=a||rt.getFullYear(),j=0;a&&!D||(j=D>0?D-1:rt.getMonth());var et,X=F||0,R=C||0,at=U||0,J=tt||0;return st?new Date(Date.UTC(q,j,H,X,R,at,J+60*st.offset*1e3)):T?new Date(Date.UTC(q,j,H,X,R,at,J)):(et=new Date(q,j,H,X,R,at,J),ft&&(et=e(et).week(ft).toDate()),et)}catch{return new Date("")}}(G,Y,B,M),this.init(),b&&b!==!0&&(this.$L=this.locale(b).$L),g&&G!=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:{}},Ne=(qt||(qt=1,Qt.exports=function(t,n){var r=n.prototype,s=r.format;r.format=function(i){var c=this,h=this.$locale();if(!this.isValid())return s.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 s.bind(this)(x)}}),Qt.exports);const He=gt(Ne);var xt=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],r=[1,26],s=[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],_=[1,11],k=[1,12],y=[1,13],M=[1,14],E=[1,15],P=[1,16],z=[1,19],G=[1,20],B=[1,21],O=[1,22],Y=[1,23],p=[1,25],w=[1,35],g={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:r,13:s,14:i,15:c,16:h,17:A,18:x,19:18,20:$,21:L,22:W,23:S,24:_,25:k,26:y,27:M,28:E,29:P,30:z,31:G,33:B,35:O,36:Y,37:24,38:p,40:w},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:36,11:17,12:r,13:s,14:i,15:c,16:h,17:A,18:x,19:18,20:$,21:L,22:W,23:S,24:_,25:k,26:y,27:M,28:E,29:P,30:z,31:G,33:B,35:O,36:Y,37:24,38:p,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="",D=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 st=C.yylloc;e.push(st);var ft=C.options&&C.options.ranges;function rt(){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(rt,"lex");for(var H,q,j,et,X,R,at,J,nt={};;){if(q=u[u.length-1],this.defaultActions[q]?j=this.defaultActions[q]:(H==null&&(H=rt()),j=v[q]&&v[q][H]),j===void 0||!j.length||!j[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 "+(D+1)+`:
2
2
  `+C.showPosition()+`
3
- Expecting `+J.join(", ")+", got '"+(this.terminals_[N]||N)+"'":"Parse error on line "+(D+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:st,expected:J})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+N);switch(j[0]){case 1:u.push(N),T.push(C.yytext),e.push(C.yylloc),u.push(j[1]),N=null,I=C.yyleng,a=C.yytext,D=C.yylineno,st=C.yylloc;break;case 2:if(R=this.productions_[j[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,D,Z.yy,j[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_[j[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")},b=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).
3
+ Expecting `+J.join(", ")+", got '"+(this.terminals_[H]||H)+"'":"Parse error on line "+(D+1)+": Unexpected "+(H==1?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(Ft,{text:C.match,token:this.terminals_[H]||H,line:C.yylineno,loc:st,expected:J})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+H);switch(j[0]){case 1:u.push(H),T.push(C.yytext),e.push(C.yylloc),u.push(j[1]),H=null,I=C.yyleng,a=C.yytext,D=C.yylineno,st=C.yylloc;break;case 2:if(R=this.productions_[j[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,D,U.yy,j[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_[j[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")},b=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
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
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 g.lexer=b,d(f,"Parser"),f.prototype=g,g.Parser=f,new f}();xt.parser=xt;var je=xt;V.extend(Pe),V.extend(Be),V.extend(Ne);var Tt,kt,Xt={friday:5,saturday:6},Q="",vt="",wt=void 0,_t="",dt=[],ut=[],Dt=new Map,$t=[],Ct=[],ct="",St="",Jt=["active","done","crit","milestone"],Mt=[],ht=!1,Et=!1,At="sunday",pt="saturday",It=0,Ge=d(function(){$t=[],Ct=[],ct="",Mt=[],ie=0,Tt=void 0,kt=void 0,H=[],Q="",vt="",St="",wt=void 0,_t="",dt=[],ut=[],ht=!1,Et=!1,It=0,Dt=new Map,ge(),At="sunday",pt="saturday"},"clear"),Ve=d(function(t){vt=t},"setAxisFormat"),Re=d(function(){return vt},"getAxisFormat"),Ue=d(function(t){wt=t},"setTickInterval"),Ze=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"),sn=d(function(){return St},"getDisplayMode"),rn=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=re(),n=0;for(;!t&&n<10;)t=re(),n++;return Ct=H},"getTasks"),Kt=d(function(t,n,r,s){return!s.includes(t.format(n.trim()))&&(!(!r.includes("weekends")||t.isoWeekday()!==Xt[pt]&&t.isoWeekday()!==Xt[pt]+1)||!!r.includes(t.format("dddd").toLowerCase())||r.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,r,s){if(!r.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,r,s);t.endTime=h.toDate(),t.renderEndTime=A},"checkTaskDates"),pn=d(function(t,n,r,s,i){let c=!1,h=null;for(;t<=n;)c||(h=n.toDate()),c=Kt(t,r,s,i),c&&(n=n.add(1,"d")),t=t.add(1,"d");return[n,h]},"fixTaskDates"),Lt=d(function(t,n,r){r=r.trim();const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(s!==null){let c=null;for(const A of s.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(r,n.trim(),!0);if(i.isValid())return i.toDate();{mt.debug("Invalid date:"+r),mt.debug("With date format:"+n.trim());const c=new Date(r);if(c===void 0||isNaN(c.getTime())||c.getFullYear()<-1e4||c.getFullYear()>1e4)throw new Error("Invalid date:"+r);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,r,s=!1){r=r.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);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(r,n.trim(),!0);if(c.isValid())return s&&(c=c.add(1,"d")),c.toDate();let h=V(t);const[A,x]=ee(r);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 r;r=n.substr(0,1)===":"?n.substr(1,n.length):n;const s=r.split(","),i={};Yt(s,i,Jt);for(let h=0;h<s.length;h++)s[h]=s[h].trim();let c="";switch(s.length){case 1:i.id=lt(),i.startTime=t.endTime,c=s[0];break;case 2:i.id=lt(),i.startTime=Lt(void 0,Q,s[0]),c=s[1];break;case 3:i.id=lt(s[0]),i.startTime=Lt(void 0,Q,s[1]),c=s[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 r;r=n.substr(0,1)===":"?n.substr(1,n.length):n;const s=r.split(","),i={};Yt(s,i,Jt);for(let c=0;c<s.length;c++)s[c]=s[c].trim();switch(s.length){case 1:i.id=lt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:s[0]};break;case 2:i.id=lt(),i.startTime={type:"getStartDate",startData:s[0]},i.endTime={data:s[1]};break;case 3:i.id=lt(s[0]),i.startTime={type:"getStartDate",startData:s[1]},i.endTime={data:s[2]}}return i},"parseData"),H=[],se={},xn=d(function(t,n){const r={section:ct,type:ct,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:t,classes:[]},s=bn(kt,n);r.raw.startTime=s.startTime,r.raw.endTime=s.endTime,r.id=s.id,r.prevTaskId=kt,r.active=s.active,r.done=s.done,r.crit=s.crit,r.milestone=s.milestone,r.order=It,It++;const i=H.push(r);kt=r.id,se[r.id]=i-1},"addTask"),it=d(function(t){const n=se[t];return H[n]},"findTaskById"),Tn=d(function(t,n){const r={section:ct,type:ct,description:t,task:t,classes:[]},s=gn(Tt,n);r.startTime=s.startTime,r.endTime=s.endTime,r.id=s.id,r.active=s.active,r.done=s.done,r.crit=s.crit,r.milestone=s.milestone,Tt=r,Ct.push(r)},"addTaskOrg"),re=d(function(){const t=d(function(r){const s=H[r];let i="";switch(H[r].raw.startTime.type){case"prevTaskEnd":{const c=it(s.prevTaskId);s.startTime=c.endTime;break}case"getStartDate":i=Lt(void 0,Q,H[r].raw.startTime.startData),i&&(H[r].startTime=i)}return H[r].startTime&&(H[r].endTime=ne(H[r].startTime,Q,H[r].raw.endTime.data,ht),H[r].endTime&&(H[r].processed=!0,H[r].manualEndTime=V(H[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),te(H[r],Q,ut,dt))),H[r].processed},"compileTask");let n=!0;for(const[r,s]of H.entries())t(r),n=n&&s.processed;return n},"compileTasks"),vn=d(function(t,n){let r=n;ot().securityLevel!=="loose"&&(r=pe.sanitizeUrl(n)),t.split(",").forEach(function(s){it(s)!==void 0&&(oe(s,()=>{window.open(r,"_self")}),Dt.set(s,r))}),ae(t,"clickable")},"setLink"),ae=d(function(t,n){t.split(",").forEach(function(r){let s=it(r);s!==void 0&&s.classes.push(n)})},"setClass"),wn=d(function(t,n,r){if(ot().securityLevel!=="loose"||n===void 0)return;let s=[];if(typeof r=="string"){s=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<s.length;i++){let c=s[i].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),s[i]=c}}s.length===0&&s.push(t),it(t)!==void 0&&oe(t,()=>{be.runFunc(n,...s)})},"setClickFun"),oe=d(function(t,n){Mt.push(function(){const r=document.querySelector(`[id="${t}"]`);r!==null&&r.addEventListener("click",function(){n()})},function(){const r=document.querySelector(`[id="${t}-text"]`);r!==null&&r.addEventListener("click",function(){n()})})},"pushFun"),_n=d(function(t,n,r){t.split(",").forEach(function(s){wn(s,n,r)}),ae(t,"clickable")},"setClickEvent"),Dn=d(function(t){Mt.forEach(function(n){n(t)})},"bindFunctions"),$n={getConfig:d(()=>ot().gantt,"getConfig"),clear:Ge,setDateFormat:Xe,getDateFormat:rn,enableInclusiveEndDates:Je,endDatesAreInclusive:Ke,enableTopAxis:tn,topAxisEnabled:en,setAxisFormat:Ve,getAxisFormat:Re,setTickInterval:Ue,getTickInterval:Ze,setTodayMarker:qe,getTodayMarker:Qe,setAccTitle:me,getAccTitle:fe,setDiagramTitle:he,getDiagramTitle:ue,setDisplayMode:nn,getDisplayMode:sn,setAccDescription:de,getAccDescription:le,addSection:un,getSections:hn,getTasks:fn,addTask:xn,findTaskById:it,addTaskOrg:Tn,setIncludes:an,getIncludes:on,setExcludes:cn,getExcludes:ln,setClickEvent:_n,setLink:vn,getLinks:dn,bindFunctions:Dn,parseDuration:ee,isInvalidDate:Kt,setWeekday:mn,getWeekday:yn,setWeekend:kn};function Yt(t,n,r){let s=!0;for(;s;)s=!1,r.forEach(function(i){const c=new RegExp("^\\s*"+i+"\\s*$");t[0].match(c)&&(n[i]=!0,t.shift(1),s=!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:ve,saturday:Te,sunday:xe},Sn=d((t,n)=>{let r=[...t].map(()=>-1/0),s=[...t].sort((c,h)=>c.startTime-h.startTime||c.order-h.order),i=0;for(const c of s)for(let h=0;h<r.length;h++)if(c.startTime>=r[h]){r[h]=c.endTime,c.order=h+n,h>i&&(i=h);break}return i},"getMaxIntersections"),Mn={parser:je,db:$n,renderer:{setConf:Cn,draw:d(function(t,n,r,s){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=s.db.getTasks();let W=[];for(const p of L)W.push(p.type);W=Y(W);const S={};let _=2*i.topPadding;if(s.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const p={};for(const g of L)p[g.section]===void 0?p[g.section]=[g]:p[g.section].push(g);let w=0;for(const g of Object.keys(p)){const b=Sn(p[g],w)+1;w+=b,_+=b*(i.barHeight+i.barGap),S[g]=b}}else{_+=L.length*(i.barHeight+i.barGap);for(const p of W)S[p]=L.filter(w=>w.type===p).length}$.setAttribute("viewBox","0 0 "+K+" "+_);const k=A.select(`[id="${n}"]`),y=Ce().domain([Se(L,function(p){return p.startTime}),Me(L,function(p){return p.endTime})]).rangeRound([0,K-i.leftPadding-i.rightPadding]);function M(p,w){const g=p.startTime,b=w.startTime;let f=0;return g>b?f=1:g<b&&(f=-1),f}function E(p,w,g){const b=i.barHeight,f=b+i.barGap,o=i.topPadding,m=i.leftPadding,u=Ae().domain([0,W.length]).range(["#00B9FA","#F95002"]).interpolate(Ee);z(f,o,m,w,g,p,s.db.getExcludes(),s.db.getIncludes()),G(m,o,w,g),P(p,f,o,m,b,u,w),B(f,o),O(m,o,w,g)}function P(p,w,g,b,f,o,m){const u=[...new Set(p.map(e=>e.order))].map(e=>p.find(v=>v.order===e));k.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(e,v){return e.order*w+g-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"});const l=k.append("g").selectAll("rect").data(p).enter(),T=s.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)+b+.5*(y(e.endTime)-y(e.startTime))-.5*f:y(e.startTime)+b}).attr("y",function(e,v){return e.order*w+g}).attr("width",function(e){return e.milestone?f:y(e.renderEndTime||e.endTime)-y(e.startTime)}).attr("height",f).attr("transform-origin",function(e,v){return v=e.order,(y(e.startTime)+b+.5*(y(e.endTime)-y(e.startTime))).toString()+"px "+(v*w+g+.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 D="";return e.active?e.crit?D+=" activeCrit":D=" active":e.done?D=e.crit?" doneCrit":" done":e.crit&&(D+=" crit"),D.length===0&&(D=" task"),e.milestone&&(D=" milestone "+D),D+=a,D+=" "+v,"task"+D}),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);e.milestone&&(v+=.5*(y(e.endTime)-y(e.startTime))-.5*f),e.milestone&&(a=v+f);const D=this.getBBox().width;return D>a-v?a+D+1.5*i.leftPadding>m?v+b-5:a+b+5:(a-v)/2+v+b}).attr("y",function(e,v){return e.order*w+i.barHeight/2+(i.fontSize/2-2)+g}).attr("text-height",f).attr("class",function(e){const v=y(e.startTime);let a=y(e.endTime);e.milestone&&(a=v+f);const D=this.getBBox().width;let I="";e.classes.length>0&&(I=e.classes.join(" "));let F=0;for(const[Z,tt]of W.entries())e.type===tt&&(F=Z%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"),D>a-v?a+D+1.5*i.leftPadding>m?I+" taskTextOutsideLeft taskTextOutside"+F+" "+C:I+" taskTextOutsideRight taskTextOutside"+F+" "+C+" width-"+D:I+" taskText taskText"+F+" "+C+" width-"+D}),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 D=v.querySelector("#"+a.id),I=v.querySelector("#"+a.id+"-text");const F=D.parentNode;var C=v.createElement("a");C.setAttribute("xlink:href",T.get(a.id)),C.setAttribute("target","_top"),F.appendChild(C),C.appendChild(D),C.appendChild(I)})}}function z(p,w,g,b,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=s.db.getDateFormat(),v=[];let a=null,D=V(l);for(;D.valueOf()<=T;)s.db.isInvalidDate(D,e,m,u)?a?a.end=D:a={start:D,end:D}:a&&(v.push(a),a=null),D=D.add(1,"d");k.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)+g}).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)+g+.5*(y(I.end)-y(I.start))).toString()+"px "+(F*p+.5*f).toString()+"px"}).attr("class","exclude-range")}function G(p,w,g,b){let f=(o=y,Gt(3,o)).tickSize(-b+w+i.gridLineStartPadding).tickFormat(Wt(s.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));var o;const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],l=m[2],T=s.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(k.append("g").attr("class","grid").attr("transform","translate("+p+", "+(b-50)+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||i.topAxis){let u=function(l){return Gt(1,l)}(y).tickSize(-b+w+i.gridLineStartPadding).tickFormat(Wt(s.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const l=m[1],T=m[2],e=s.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))}}k.append("g").attr("class","grid").attr("transform","translate("+p+", "+w+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function B(p,w){let g=0;const b=Object.keys(S).map(f=>[f,S[f]]);k.append("g").selectAll("text").data(b).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]*p/2+w;for(let m=0;m<o;m++)return g+=b[o-1][1],f[1]*p/2+g*p+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(p,w,g,b){const f=s.db.getTodayMarker();if(f==="off")return;const o=k.append("g").attr("class","today"),m=new Date,u=o.append("line");u.attr("x1",y(m)+p).attr("x2",y(m)+p).attr("y1",i.titleTopMargin).attr("y2",b-i.titleTopMargin).attr("class","today"),f!==""&&u.attr("style",f.replace(/,/g,";"))}function Y(p){const w={},g=[];for(let b=0,f=p.length;b<f;++b)Object.prototype.hasOwnProperty.call(w,p[b])||(w[p[b]]=!0,g.push(p[b]));return g}d(M,"taskCompare"),L.sort(M),E(L,K,_),ye(k,_,K,i.useMaxWidth),k.append("text").text(s.db.getDiagramTitle()).attr("x",K/2).attr("y",i.titleTopMargin).attr("class","titleText"),d(E,"makeGantt"),d(P,"drawRects"),d(z,"drawExcludeDays"),d(G,"makeGrid"),d(B,"vertLabels"),d(O,"drawToday"),d(Y,"checkUnique")},"draw")},styles:d(t=>`
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 g.lexer=b,d(f,"Parser"),f.prototype=g,g.Parser=f,new f}();xt.parser=xt;var je=xt;V.extend(Pe),V.extend(Be),V.extend(He);var Tt,kt,Xt={friday:5,saturday:6},Q="",vt="",wt=void 0,_t="",dt=[],ut=[],Dt=new Map,$t=[],Ct=[],ct="",St="",Jt=["active","done","crit","milestone"],Mt=[],ht=!1,Et=!1,At="sunday",pt="saturday",It=0,Ge=d(function(){$t=[],Ct=[],ct="",Mt=[],ie=0,Tt=void 0,kt=void 0,N=[],Q="",vt="",St="",wt=void 0,_t="",dt=[],ut=[],ht=!1,Et=!1,It=0,Dt=new Map,ge(),At="sunday",pt="saturday"},"clear"),Ve=d(function(t){vt=t},"setAxisFormat"),Re=d(function(){return vt},"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"),sn=d(function(){return St},"getDisplayMode"),rn=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=re(),n=0;for(;!t&&n<10;)t=re(),n++;return Ct=N},"getTasks"),Kt=d(function(t,n,r,s){return!s.includes(t.format(n.trim()))&&(!(!r.includes("weekends")||t.isoWeekday()!==Xt[pt]&&t.isoWeekday()!==Xt[pt]+1)||!!r.includes(t.format("dddd").toLowerCase())||r.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,r,s){if(!r.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,r,s);t.endTime=h.toDate(),t.renderEndTime=A},"checkTaskDates"),pn=d(function(t,n,r,s,i){let c=!1,h=null;for(;t<=n;)c||(h=n.toDate()),c=Kt(t,r,s,i),c&&(n=n.add(1,"d")),t=t.add(1,"d");return[n,h]},"fixTaskDates"),Lt=d(function(t,n,r){r=r.trim();const s=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(s!==null){let c=null;for(const A of s.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(r,n.trim(),!0);if(i.isValid())return i.toDate();{mt.debug("Invalid date:"+r),mt.debug("With date format:"+n.trim());const c=new Date(r);if(c===void 0||isNaN(c.getTime())||c.getFullYear()<-1e4||c.getFullYear()>1e4)throw new Error("Invalid date:"+r);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,r,s=!1){r=r.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);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(r,n.trim(),!0);if(c.isValid())return s&&(c=c.add(1,"d")),c.toDate();let h=V(t);const[A,x]=ee(r);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 r;r=n.substr(0,1)===":"?n.substr(1,n.length):n;const s=r.split(","),i={};Yt(s,i,Jt);for(let h=0;h<s.length;h++)s[h]=s[h].trim();let c="";switch(s.length){case 1:i.id=lt(),i.startTime=t.endTime,c=s[0];break;case 2:i.id=lt(),i.startTime=Lt(void 0,Q,s[0]),c=s[1];break;case 3:i.id=lt(s[0]),i.startTime=Lt(void 0,Q,s[1]),c=s[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 r;r=n.substr(0,1)===":"?n.substr(1,n.length):n;const s=r.split(","),i={};Yt(s,i,Jt);for(let c=0;c<s.length;c++)s[c]=s[c].trim();switch(s.length){case 1:i.id=lt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:s[0]};break;case 2:i.id=lt(),i.startTime={type:"getStartDate",startData:s[0]},i.endTime={data:s[1]};break;case 3:i.id=lt(s[0]),i.startTime={type:"getStartDate",startData:s[1]},i.endTime={data:s[2]}}return i},"parseData"),N=[],se={},xn=d(function(t,n){const r={section:ct,type:ct,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:t,classes:[]},s=bn(kt,n);r.raw.startTime=s.startTime,r.raw.endTime=s.endTime,r.id=s.id,r.prevTaskId=kt,r.active=s.active,r.done=s.done,r.crit=s.crit,r.milestone=s.milestone,r.order=It,It++;const i=N.push(r);kt=r.id,se[r.id]=i-1},"addTask"),it=d(function(t){const n=se[t];return N[n]},"findTaskById"),Tn=d(function(t,n){const r={section:ct,type:ct,description:t,task:t,classes:[]},s=gn(Tt,n);r.startTime=s.startTime,r.endTime=s.endTime,r.id=s.id,r.active=s.active,r.done=s.done,r.crit=s.crit,r.milestone=s.milestone,Tt=r,Ct.push(r)},"addTaskOrg"),re=d(function(){const t=d(function(r){const s=N[r];let i="";switch(N[r].raw.startTime.type){case"prevTaskEnd":{const c=it(s.prevTaskId);s.startTime=c.endTime;break}case"getStartDate":i=Lt(void 0,Q,N[r].raw.startTime.startData),i&&(N[r].startTime=i)}return N[r].startTime&&(N[r].endTime=ne(N[r].startTime,Q,N[r].raw.endTime.data,ht),N[r].endTime&&(N[r].processed=!0,N[r].manualEndTime=V(N[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),te(N[r],Q,ut,dt))),N[r].processed},"compileTask");let n=!0;for(const[r,s]of N.entries())t(r),n=n&&s.processed;return n},"compileTasks"),vn=d(function(t,n){let r=n;ot().securityLevel!=="loose"&&(r=pe.sanitizeUrl(n)),t.split(",").forEach(function(s){it(s)!==void 0&&(oe(s,()=>{window.open(r,"_self")}),Dt.set(s,r))}),ae(t,"clickable")},"setLink"),ae=d(function(t,n){t.split(",").forEach(function(r){let s=it(r);s!==void 0&&s.classes.push(n)})},"setClass"),wn=d(function(t,n,r){if(ot().securityLevel!=="loose"||n===void 0)return;let s=[];if(typeof r=="string"){s=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<s.length;i++){let c=s[i].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),s[i]=c}}s.length===0&&s.push(t),it(t)!==void 0&&oe(t,()=>{be.runFunc(n,...s)})},"setClickFun"),oe=d(function(t,n){Mt.push(function(){const r=document.querySelector(`[id="${t}"]`);r!==null&&r.addEventListener("click",function(){n()})},function(){const r=document.querySelector(`[id="${t}-text"]`);r!==null&&r.addEventListener("click",function(){n()})})},"pushFun"),_n=d(function(t,n,r){t.split(",").forEach(function(s){wn(s,n,r)}),ae(t,"clickable")},"setClickEvent"),Dn=d(function(t){Mt.forEach(function(n){n(t)})},"bindFunctions"),$n={getConfig:d(()=>ot().gantt,"getConfig"),clear:Ge,setDateFormat:Xe,getDateFormat:rn,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:sn,setAccDescription:de,getAccDescription:le,addSection:un,getSections:hn,getTasks:fn,addTask:xn,findTaskById:it,addTaskOrg:Tn,setIncludes:an,getIncludes:on,setExcludes:cn,getExcludes:ln,setClickEvent:_n,setLink:vn,getLinks:dn,bindFunctions:Dn,parseDuration:ee,isInvalidDate:Kt,setWeekday:mn,getWeekday:yn,setWeekend:kn};function Yt(t,n,r){let s=!0;for(;s;)s=!1,r.forEach(function(i){const c=new RegExp("^\\s*"+i+"\\s*$");t[0].match(c)&&(n[i]=!0,t.shift(1),s=!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:ve,saturday:Te,sunday:xe},Sn=d((t,n)=>{let r=[...t].map(()=>-1/0),s=[...t].sort((c,h)=>c.startTime-h.startTime||c.order-h.order),i=0;for(const c of s)for(let h=0;h<r.length;h++)if(c.startTime>=r[h]){r[h]=c.endTime,c.order=h+n,h>i&&(i=h);break}return i},"getMaxIntersections"),Mn={parser:je,db:$n,renderer:{setConf:Cn,draw:d(function(t,n,r,s){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=s.db.getTasks();let W=[];for(const p of L)W.push(p.type);W=Y(W);const S={};let _=2*i.topPadding;if(s.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const p={};for(const g of L)p[g.section]===void 0?p[g.section]=[g]:p[g.section].push(g);let w=0;for(const g of Object.keys(p)){const b=Sn(p[g],w)+1;w+=b,_+=b*(i.barHeight+i.barGap),S[g]=b}}else{_+=L.length*(i.barHeight+i.barGap);for(const p of W)S[p]=L.filter(w=>w.type===p).length}$.setAttribute("viewBox","0 0 "+K+" "+_);const k=A.select(`[id="${n}"]`),y=Ce().domain([Se(L,function(p){return p.startTime}),Me(L,function(p){return p.endTime})]).rangeRound([0,K-i.leftPadding-i.rightPadding]);function M(p,w){const g=p.startTime,b=w.startTime;let f=0;return g>b?f=1:g<b&&(f=-1),f}function E(p,w,g){const b=i.barHeight,f=b+i.barGap,o=i.topPadding,m=i.leftPadding,u=Ae().domain([0,W.length]).range(["#00B9FA","#F95002"]).interpolate(Ee);z(f,o,m,w,g,p,s.db.getExcludes(),s.db.getIncludes()),G(m,o,w,g),P(p,f,o,m,b,u,w),B(f,o),O(m,o,w,g)}function P(p,w,g,b,f,o,m){const u=[...new Set(p.map(e=>e.order))].map(e=>p.find(v=>v.order===e));k.append("g").selectAll("rect").data(u).enter().append("rect").attr("x",0).attr("y",function(e,v){return e.order*w+g-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"});const l=k.append("g").selectAll("rect").data(p).enter(),T=s.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)+b+.5*(y(e.endTime)-y(e.startTime))-.5*f:y(e.startTime)+b}).attr("y",function(e,v){return e.order*w+g}).attr("width",function(e){return e.milestone?f:y(e.renderEndTime||e.endTime)-y(e.startTime)}).attr("height",f).attr("transform-origin",function(e,v){return v=e.order,(y(e.startTime)+b+.5*(y(e.endTime)-y(e.startTime))).toString()+"px "+(v*w+g+.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 D="";return e.active?e.crit?D+=" activeCrit":D=" active":e.done?D=e.crit?" doneCrit":" done":e.crit&&(D+=" crit"),D.length===0&&(D=" task"),e.milestone&&(D=" milestone "+D),D+=a,D+=" "+v,"task"+D}),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);e.milestone&&(v+=.5*(y(e.endTime)-y(e.startTime))-.5*f),e.milestone&&(a=v+f);const D=this.getBBox().width;return D>a-v?a+D+1.5*i.leftPadding>m?v+b-5:a+b+5:(a-v)/2+v+b}).attr("y",function(e,v){return e.order*w+i.barHeight/2+(i.fontSize/2-2)+g}).attr("text-height",f).attr("class",function(e){const v=y(e.startTime);let a=y(e.endTime);e.milestone&&(a=v+f);const D=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"),D>a-v?a+D+1.5*i.leftPadding>m?I+" taskTextOutsideLeft taskTextOutside"+F+" "+C:I+" taskTextOutsideRight taskTextOutside"+F+" "+C+" width-"+D:I+" taskText taskText"+F+" "+C+" width-"+D}),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 D=v.querySelector("#"+a.id),I=v.querySelector("#"+a.id+"-text");const F=D.parentNode;var C=v.createElement("a");C.setAttribute("xlink:href",T.get(a.id)),C.setAttribute("target","_top"),F.appendChild(C),C.appendChild(D),C.appendChild(I)})}}function z(p,w,g,b,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=s.db.getDateFormat(),v=[];let a=null,D=V(l);for(;D.valueOf()<=T;)s.db.isInvalidDate(D,e,m,u)?a?a.end=D:a={start:D,end:D}:a&&(v.push(a),a=null),D=D.add(1,"d");k.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)+g}).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)+g+.5*(y(I.end)-y(I.start))).toString()+"px "+(F*p+.5*f).toString()+"px"}).attr("class","exclude-range")}function G(p,w,g,b){let f=(o=y,Gt(3,o)).tickSize(-b+w+i.gridLineStartPadding).tickFormat(Wt(s.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));var o;const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],l=m[2],T=s.db.getWeekday()||i.weekday;switch(l){case"millisecond":f.ticks(Ht.every(u));break;case"second":f.ticks(Nt.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(k.append("g").attr("class","grid").attr("transform","translate("+p+", "+(b-50)+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||i.topAxis){let u=function(l){return Gt(1,l)}(y).tickSize(-b+w+i.gridLineStartPadding).tickFormat(Wt(s.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const l=m[1],T=m[2],e=s.db.getWeekday()||i.weekday;switch(T){case"millisecond":u.ticks(Ht.every(l));break;case"second":u.ticks(Nt.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))}}k.append("g").attr("class","grid").attr("transform","translate("+p+", "+w+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function B(p,w){let g=0;const b=Object.keys(S).map(f=>[f,S[f]]);k.append("g").selectAll("text").data(b).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]*p/2+w;for(let m=0;m<o;m++)return g+=b[o-1][1],f[1]*p/2+g*p+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(p,w,g,b){const f=s.db.getTodayMarker();if(f==="off")return;const o=k.append("g").attr("class","today"),m=new Date,u=o.append("line");u.attr("x1",y(m)+p).attr("x2",y(m)+p).attr("y1",i.titleTopMargin).attr("y2",b-i.titleTopMargin).attr("class","today"),f!==""&&u.attr("style",f.replace(/,/g,";"))}function Y(p){const w={},g=[];for(let b=0,f=p.length;b<f;++b)Object.prototype.hasOwnProperty.call(w,p[b])||(w[p[b]]=!0,g.push(p[b]));return g}d(M,"taskCompare"),L.sort(M),E(L,K,_),ye(k,_,K,i.useMaxWidth),k.append("text").text(s.db.getDiagramTitle()).attr("x",K/2).attr("y",i.titleTopMargin).attr("class","titleText"),d(E,"makeGantt"),d(P,"drawRects"),d(z,"drawExcludeDays"),d(G,"makeGrid"),d(B,"vertLabels"),d(O,"drawToday"),d(Y,"checkUnique")},"draw")},styles:d(t=>`
7
7
  .mermaid-main-font {
8
8
  font-family: ${t.fontFamily};
9
9
  }
@@ -1,4 +1,4 @@
1
- import{p as Y}from"./chunk-4BMEZGHF-CkjJnX2u.js";import{I as U}from"./chunk-XZIHB7SX-EkhL4wJD.js";import{_ as d,q as V,p as X,s as Z,g as J,a as Q,b as tt,l as w,c as rt,u as et,D as ot,y as nt,j as C,E as at,F as st,G as ct,H as it}from"./mermaid-CF64dWR7.js";import{p as ht}from"./radar-MK3ICKWK-tcdT_E-c.js";import{s as dt}from"./transform-DetRMEbJ.js";import"./index-txb0mb7R.js";import"./step-BwsUM5iJ.js";import"./_baseEach-BCq1QunV.js";import"./_baseUniq-DsVx03Xh.js";import"./min-Bi7qOXpu.js";import"./_baseMap-DIOkSXLh.js";import"./clone-DnjbzbBr.js";import"./_createAggregator-Ba81XR0f.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){w.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{i.records.options=JSON.parse(e)}catch(t){w.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;w.info("commit",t,o,a,r),w.debug("Entering commit:",t,o,a,r);const n=R();o=C.sanitizeText(o,n),t=C.sanitizeText(t,n),r=r==null?void 0:r.map(s=>C.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,w.info("main branch",n.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),w.debug("in pushCommit "+c.id)},"commit"),pt=d(function(e){let t=e.name;const o=e.order;if(t=C.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),w.debug("in createBranch")},"branch"),xt=d(e=>{let t=e.branch,o=e.id;const a=e.type,r=e.tags,n=R();t=C.sanitizeText(t,n),o&&(o=C.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),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),ft=d(function(e){let t=e.id,o=e.targetId,a=e.tags,r=e.parent;w.debug("Entering cherryPick:",t,o,a);const n=R();if(t=C.sanitizeText(t,n),o=C.sanitizeText(o,n),a=a==null?void 0:a.map(m=>C.sanitizeText(m,n)),r=C.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),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),N=d(function(e){if(e=C.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(w.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(){w.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){w.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:Q,getAccDescription:J,setAccDescription:Z,setDiagramTitle:X,getDiagramTitle:V},kt=d((e,t)=>{Y(e,t),e.dir&&t.setDirection(e.dir);for(const o of e.statements)Ct(o,t)},"populate"),Ct=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):w.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);w.debug(t),kt(t,j)},"parse")},z=rt(),f=z==null?void 0:z.gitGraph,T=10,M=40,E=new Map,k=new Map,I=new Map,O=[],v=0,g="LR",It=d(()=>{E.clear(),k.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=k.get(r))==null?void 0:c.y:(s=k.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=k.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=k.get(m).y-M,a<=r&&(r=a);const y=E.get(s.branch).pos,$=a-T;k.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=k.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 k.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;k.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,u=o.y-19.2-l;if(h.attr("class","tag-label-bkg").attr("points",`
1
+ import{p as Y}from"./chunk-4BMEZGHF-D2t_7m-l.js";import{I as U}from"./chunk-XZIHB7SX-DVug_9TW.js";import{_ as d,q as V,p as X,s as Z,g as J,a as Q,b as tt,l as w,c as rt,u as et,D as ot,y as nt,j as C,E as at,F as st,G as ct,H as it}from"./mermaid-CKYMkzSc.js";import{p as ht}from"./radar-MK3ICKWK-BGF1Bvyn.js";import{s as dt}from"./transform-DetRMEbJ.js";import"./index-Brn5h-MN.js";import"./step-BwsUM5iJ.js";import"./_baseEach-_Aph8Tu3.js";import"./_baseUniq-ydsgt4N4.js";import"./min-DPzXE2V0.js";import"./_baseMap-DLvObhA2.js";import"./clone-WlurXIwI.js";import"./_createAggregator-UP8Yzte5.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){w.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{i.records.options=JSON.parse(e)}catch(t){w.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;w.info("commit",t,o,a,r),w.debug("Entering commit:",t,o,a,r);const n=R();o=C.sanitizeText(o,n),t=C.sanitizeText(t,n),r=r==null?void 0:r.map(s=>C.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,w.info("main branch",n.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),w.debug("in pushCommit "+c.id)},"commit"),pt=d(function(e){let t=e.name;const o=e.order;if(t=C.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),w.debug("in createBranch")},"branch"),xt=d(e=>{let t=e.branch,o=e.id;const a=e.type,r=e.tags,n=R();t=C.sanitizeText(t,n),o&&(o=C.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),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),ft=d(function(e){let t=e.id,o=e.targetId,a=e.tags,r=e.parent;w.debug("Entering cherryPick:",t,o,a);const n=R();if(t=C.sanitizeText(t,n),o=C.sanitizeText(o,n),a=a==null?void 0:a.map(m=>C.sanitizeText(m,n)),r=C.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),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),N=d(function(e){if(e=C.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(w.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(){w.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){w.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:Q,getAccDescription:J,setAccDescription:Z,setDiagramTitle:X,getDiagramTitle:V},kt=d((e,t)=>{Y(e,t),e.dir&&t.setDirection(e.dir);for(const o of e.statements)Ct(o,t)},"populate"),Ct=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):w.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);w.debug(t),kt(t,j)},"parse")},z=rt(),f=z==null?void 0:z.gitGraph,T=10,M=40,E=new Map,k=new Map,I=new Map,O=[],v=0,g="LR",It=d(()=>{E.clear(),k.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=k.get(r))==null?void 0:c.y:(s=k.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=k.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=k.get(m).y-M,a<=r&&(r=a);const y=E.get(s.branch).pos,$=a-T;k.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=k.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 k.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;k.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,u=o.y-19.2-l;if(h.attr("class","tag-label-bkg").attr("points",`
2
2
  ${a-c/2-2},${u+2}
3
3
  ${a-c/2-2},${u-2}
4
4
  ${o.posWithOffset-c/2-4},${u-x-2}
@@ -1 +1 @@
1
- import{H as M,J as G,K as k,M as f,O as y,P as _}from"./index-txb0mb7R.js";import{a as x,f as m,c as d,i as l,v,r as z}from"./_baseUniq-DsVx03Xh.js";import{a9 as N}from"./mermaid-CF64dWR7.js";var H=M(function(o){return x(G(o,1,k,!0))}),a="\0";class b{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return y(t)||(t=f(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var t=this;return m(this.nodes(),function(e){return N(t._in[e])})}sinks(){var t=this;return m(this.nodes(),function(e){return N(t._out[e])})}setNodes(t,e){var s=arguments,r=this;return d(t,function(i){s.length>1?r.setNode(i,e):r.setNode(i)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=a,this._children[t]={},this._children[a][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],d(this.children(t),s=>{this.setParent(s)}),delete this._children[t]),d(_(this._in[t]),e),delete this._in[t],delete this._preds[t],d(_(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(e))e=a;else{for(var s=e+="";!l(s);s=this.parent(s))if(s===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==a)return e}}children(t){if(l(t)&&(t=a),this._isCompound){var e=this._children[t];if(e)return _(e)}else{if(t===a)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return _(e)}successors(t){var e=this._sucs[t];if(e)return _(e)}neighbors(t){var e=this.predecessors(t);if(e)return H(e,this.successors(t))}isLeaf(t){return(this.isDirected()?this.successors(t):this.neighbors(t)).length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){t(h)&&e.setNode(h,n)}),d(this._edgeObjs,function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,s.edge(n))});var r={};function i(n){var h=s.parent(n);return h===void 0||e.hasNode(h)?(r[n]=h,h):h in r?r[h]:i(h)}return this._isCompound&&d(e.nodes(),function(n){e.setParent(n,i(n))}),e}setDefaultEdgeLabel(t){return y(t)||(t=f(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return v(this._edgeObjs)}setPath(t,e){var s=this,r=arguments;return z(t,function(i,n){return r.length>1?s.setEdge(i,n,e):s.setEdge(i,n),n}),this}setEdge(){var t,e,s,r,i=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(t=n.v,e=n.w,s=n.name,arguments.length===2&&(r=arguments[1],i=!0)):(t=n,e=arguments[1],s=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,l(s)||(s=""+s);var h=c(this._isDirected,t,e,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return i&&(this._edgeLabels[h]=r),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[h]=i?r:this._defaultEdgeLabelFn(t,e,s);var u=function(j,P,D,O){var g=""+P,p=""+D;if(!j&&g>p){var F=g;g=p,p=F}var w={v:g,w:p};return O&&(w.name=O),w}(this._isDirected,t,e,s);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[h]=u,E(this._preds[e],t),E(this._sucs[t],e),this._in[e][h]=u,this._out[t][h]=u,this._edgeCount++,this}edge(t,e,s){var r=arguments.length===1?C(this._isDirected,arguments[0]):c(this._isDirected,t,e,s);return this._edgeLabels[r]}hasEdge(t,e,s){var r=arguments.length===1?C(this._isDirected,arguments[0]):c(this._isDirected,t,e,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(t,e,s){var r=arguments.length===1?C(this._isDirected,arguments[0]):c(this._isDirected,t,e,s),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],L(this._preds[e],t),L(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}inEdges(t,e){var s=this._in[t];if(s){var r=v(s);return e?m(r,function(i){return i.v===e}):r}}outEdges(t,e){var s=this._out[t];if(s){var r=v(s);return e?m(r,function(i){return i.w===e}):r}}nodeEdges(t,e){var s=this.inEdges(t,e);if(s)return s.concat(this.outEdges(t,e))}}function E(o,t){o[t]?o[t]++:o[t]=1}function L(o,t){--o[t]||delete o[t]}function c(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}return r+""+i+""+(l(s)?"\0":s)}function C(o,t){return c(o,t.v,t.w,t.name)}b.prototype._nodeCount=0,b.prototype._edgeCount=0;export{b as G};
1
+ import{H as M,J as G,K as k,M as f,O as y,P as _}from"./index-Brn5h-MN.js";import{a as x,f as m,c as d,i as l,v,r as z}from"./_baseUniq-ydsgt4N4.js";import{a9 as N}from"./mermaid-CKYMkzSc.js";var H=M(function(o){return x(G(o,1,k,!0))}),a="\0";class b{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return y(t)||(t=f(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var t=this;return m(this.nodes(),function(e){return N(t._in[e])})}sinks(){var t=this;return m(this.nodes(),function(e){return N(t._out[e])})}setNodes(t,e){var s=arguments,r=this;return d(t,function(i){s.length>1?r.setNode(i,e):r.setNode(i)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=a,this._children[t]={},this._children[a][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],d(this.children(t),s=>{this.setParent(s)}),delete this._children[t]),d(_(this._in[t]),e),delete this._in[t],delete this._preds[t],d(_(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(e))e=a;else{for(var s=e+="";!l(s);s=this.parent(s))if(s===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==a)return e}}children(t){if(l(t)&&(t=a),this._isCompound){var e=this._children[t];if(e)return _(e)}else{if(t===a)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return _(e)}successors(t){var e=this._sucs[t];if(e)return _(e)}neighbors(t){var e=this.predecessors(t);if(e)return H(e,this.successors(t))}isLeaf(t){return(this.isDirected()?this.successors(t):this.neighbors(t)).length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){t(h)&&e.setNode(h,n)}),d(this._edgeObjs,function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,s.edge(n))});var r={};function i(n){var h=s.parent(n);return h===void 0||e.hasNode(h)?(r[n]=h,h):h in r?r[h]:i(h)}return this._isCompound&&d(e.nodes(),function(n){e.setParent(n,i(n))}),e}setDefaultEdgeLabel(t){return y(t)||(t=f(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return v(this._edgeObjs)}setPath(t,e){var s=this,r=arguments;return z(t,function(i,n){return r.length>1?s.setEdge(i,n,e):s.setEdge(i,n),n}),this}setEdge(){var t,e,s,r,i=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(t=n.v,e=n.w,s=n.name,arguments.length===2&&(r=arguments[1],i=!0)):(t=n,e=arguments[1],s=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,l(s)||(s=""+s);var h=c(this._isDirected,t,e,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return i&&(this._edgeLabels[h]=r),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[h]=i?r:this._defaultEdgeLabelFn(t,e,s);var u=function(j,P,D,O){var g=""+P,p=""+D;if(!j&&g>p){var F=g;g=p,p=F}var w={v:g,w:p};return O&&(w.name=O),w}(this._isDirected,t,e,s);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[h]=u,E(this._preds[e],t),E(this._sucs[t],e),this._in[e][h]=u,this._out[t][h]=u,this._edgeCount++,this}edge(t,e,s){var r=arguments.length===1?C(this._isDirected,arguments[0]):c(this._isDirected,t,e,s);return this._edgeLabels[r]}hasEdge(t,e,s){var r=arguments.length===1?C(this._isDirected,arguments[0]):c(this._isDirected,t,e,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(t,e,s){var r=arguments.length===1?C(this._isDirected,arguments[0]):c(this._isDirected,t,e,s),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],L(this._preds[e],t),L(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}inEdges(t,e){var s=this._in[t];if(s){var r=v(s);return e?m(r,function(i){return i.v===e}):r}}outEdges(t,e){var s=this._out[t];if(s){var r=v(s);return e?m(r,function(i){return i.w===e}):r}}nodeEdges(t,e){var s=this.inEdges(t,e);if(s)return s.concat(this.outEdges(t,e))}}function E(o,t){o[t]?o[t]++:o[t]=1}function L(o,t){--o[t]||delete o[t]}function c(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}return r+""+i+""+(l(s)?"\0":s)}function C(o,t){return c(o,t.v,t.w,t.name)}b.prototype._nodeCount=0,b.prototype._edgeCount=0;export{b as G};
@@ -1,9 +1,9 @@
1
- import{u as P,c as S,j as s,aU as ie,aV as le,aO as ce,aW as U,aX as de,aY as me,aZ as he,a_ as G,ag as D,a$ as ue,b0 as fe,b1 as q,b2 as xe,W as B,b3 as pe,a as J,b4 as be,b5 as Q,Q as I,aI as F,b6 as ye,b7 as ge,b8 as je,b9 as X,ba as ve,bb as ke,bc as we,ad as H,bd as Ne,be as _e,bf as Z,bg as Se,a0 as ze,bh as Ce,bi as Me,V as Ie,a5 as Pe,a6 as De,bj as Y,bk as Oe,bl as Ae,bm as Te,aq as We,a4 as $e,bn as Re,bo as Le,bp as Ve,bq as Ue,br as qe,bs as Be,bt as Fe,bu as He,bv as Ye,bw as K,ab as Ee}from"./index-txb0mb7R.js";import{G as Ge,A as Je,B as Qe,a as Xe,M as Ze,Y as Ke,L as et,u as tt,C as at,S as st,T as rt,P as ot}from"./shutdown-button-s5kelj0_.js";import{C as nt}from"./circle-play-BMHPESBW.js";import"./index-Cq15mGfX.js";/**
1
+ import{u as P,c as S,j as s,aV as ie,aW as le,aP as ce,aX as B,aY as de,aZ as me,a_ as he,a$ as E,ah as D,b0 as ue,b1 as fe,b2 as F,b3 as xe,W as H,b4 as pe,a as G,b5 as be,b6 as Q,Q as I,aJ as U,b7 as ye,b8 as ge,b9 as je,ba as X,bb as ve,bc as ke,bd as we,ae as Y,be as Ne,bf as _e,bg as Z,bh as Se,a0 as ze,bi as Ce,bj as Me,V as Ie,a5 as Pe,a6 as De,bk as q,bl as Ae,bm as Oe,bn as Te,ar as We,a4 as $e,bo as Re,bp as Le,bq as Ve,br as Be,bs as Fe,bt as He,bu as Ue,bv as Ye,bw as qe,bx as K,ac as Je}from"./index-Brn5h-MN.js";import{G as Ee,A as Ge,B as Qe,a as Xe,M as Ze,Y as Ke,L as et,u as tt,C as at,S as st,T as rt,P as ot}from"./shutdown-button-T9XyTVKT.js";import{C as nt}from"./circle-play-Do5wdxBG.js";import"./index-qUTVxT1L.js";/**
2
2
  * @license lucide-react v0.503.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const it=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"}]]),lt=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"}]]),ct=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"}]]),dt=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"}]]),mt={intro:["Introduction",it,"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",G,"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",dt,"Transiting from Jupyter to marimo"],"markdown-format":["Markdown format",U,"Using marimo to edit markdown files"]},ht=()=>{const e=S.c(3);let t,a,r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ct,{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(B,{"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(mt).map(xt)})]}),e[2]=r):r=e[2],r},ut=[{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:Ze,url:D.discordLink},{title:"YouTube",description:"Watch tutorials and demos",icon:Ke,url:D.youtube},{title:"Changelog",description:"See what's new in marimo",icon:G,url:D.releasesPage}],ft=()=>{const e=S.c(2);let t,a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx($,{Icon:et,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:ut.map(pt)})]}),e[1]=a):a=e[1],a},$=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 xt(e){const[t,a]=e,[r,o,n]=a;return s.jsxs(ue,{onSelect:async()=>{const i=await fe({tutorialId:t});i&&window.open(q(`?file=${i.path}`).toString(),"_blank")},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 pt(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=J.createContext({runningNotebooks:new Map,setRunningNotebooks:be.NOOP}),te=J.createContext(""),bt=Q("marimo:home:include-markdown",!1,void 0,{getOnInit:!0}),ae=Q("marimo:home:expanded-folders",{},void 0,{getOnInit:!0});function se(e){return`${Ee()}-${encodeURIComponent(e)}`}const yt=()=>{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=F(St,r);let n,i,c;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{a(zt)},i={delayMs:1e4,whenVisible:!0},e[1]=n,e[2]=i):(n=e[1],i=e[2]),tt(n,i),e[3]!==t?(c=[t],e[3]=t,e[4]=c):c=e[4];const d=F(Mt,c);let u,h,m,l,p,f,b,x,y,k,g,v,N,w,z,_,M,j,C,O;if(e[5]!==o||e[6]!==d){b=Symbol.for("react.early_return_sentinel");e:{const R=ye(o,d);if(R.error)throw R.error;const E=R.data;if(!E){let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(H,{centered:!0,size:"xlarge"}),e[20]=W):W=e[20],b=W;break e}const[ne,L]=E;let A,T;l=ne,m=I.Suspense,h=ee,p={runningNotebooks:L,setRunningNotebooks:d.setData},e[21]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ht,{}),T=s.jsx(at,{showAppConfig:!1}),e[21]=A,e[22]=T):(A=e[21],T=e[22]);const V=`This will shutdown the notebook server and terminate all running notebooks (${L.size}). You'll lose all data that's in memory.`;e[23]!==V?(f=s.jsxs("div",{className:"absolute top-3 right-5 flex gap-3 z-50",children:[A,T,s.jsx(st,{description:V})]}),e[23]=V,e[24]=f):f=e[24],k="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(_t,{}),N=s.jsx(ft,{}),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($,{Icon:nt,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]=k,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],k=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?(w=s.jsx(u,{header:x,files:y}),e[29]=u,e[30]=x,e[31]=y,e[32]=w):w=e[32],e[33]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx($,{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(gt,{})}),e[36]=M):M=e[36],e[37]!==w||e[38]!==_||e[39]!==k||e[40]!==g||e[41]!==v||e[42]!==N?(j=s.jsxs("div",{className:k,children:[g,v,N,w,_,M]}),e[37]=w,e[38]=_,e[39]=k,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?(O=s.jsx(m,{children:C}),e[49]=m,e[50]=C,e[51]=O):O=e[51],O)},gt=()=>{const e=S.c(39),[t,a]=Z(bt),[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}=F(n,i);if(c){let j;return e[3]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(H,{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(Ve,{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,k,g,v,N,w,z,_,M;return e[8]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Ue,{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(qe,{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(jt,{}),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(Be,{"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")?(k=s.jsx(Fe,{htmlFor:"include-markdown",children:"Include markdown"}),e[18]=k):k=e[18],e[19]!==f||e[20]!==y?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[f,b,y,k]}),e[19]=f,e[20]=y,e[21]=g):g=e[21],e[22]!==m?(v=s.jsx(He,{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(H,{size:"small"}),e[24]=h,e[25]=N):N=e[25],e[26]!==v||e[27]!==N||e[28]!==g?(w=s.jsxs($,{Icon:lt,control:g,children:["Workspace",v,N]}),e[26]=v,e[27]=N,e[28]=g,e[29]=w):w=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(vt,{searchText:r,files:d.files})}),e[30]=r,e[31]=d.files,e[32]=z):z=e[32],e[33]!==w||e[34]!==z?(_=s.jsxs("div",{className:"flex flex-col gap-2",children:[w,z]}),e[33]=w,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},jt=()=>{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(Ye,{className:"w-4 h-4 mr-1"}),e[2]=r):r=e[2],e[3]!==a?(o=s.jsxs(B,{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},vt=e=>{const t=S.c(12),{files:a,searchText:r}=e,[o,n]=Z(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(rt,{ref:c,width:"100%",height:500,searchTerm:r,className:"h-full",idAccessor:It,data:a,openByDefault:!1,initialOpenState:o,onToggle:h,padding:5,rowHeight:35,indent:15,overscanCount:1e3,renderCursor:Pt,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)&&K.isAbsolute(a.data.path)?K.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:q(`?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(U,{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(wt,{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},wt=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(Dt),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},Nt=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=q(o?`?file=${a.initializationId}&session_id=${a.path}`:`?file=${a.path}`);let w;t[9]!==a.path?(w=a.path.endsWith(".md"),t[9]=a.path,t[10]=w):w=t[10],n=w,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,k,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(U,{})}),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?(k=!!a.lastModified&&s.jsx("div",{className:"text-xs text-muted-foreground opacity-80",children:ke(1e3*a.lastModified)}),t[28]=a.lastModified,t[29]=k):k=t[29],t[30]!==y||t[31]!==k?(g=s.jsxs("div",{className:"flex flex-col gap-1 items-end",children:[y,k]}),t[30]=y,t[31]=k,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}=we(),{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(Oe,{onClick:()=>{const m=n.get(a);Ae(m==null?void 0:m.sessionId),Te({sessionId:m.sessionId}).then(l=>{i(X.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(ot,{size:14}),t[6]=d):d=t[6],t[7]!==c?(u=s.jsx($e,{content:"Shutdown",children:s.jsx(B,{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},_t=()=>{const e=S.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Re(),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
6
+ */const it=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"}]]),lt=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"}]]),ct=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"}]]),dt=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"}]]),mt={intro:["Introduction",it,"Get started with marimo basics"],dataflow:["Dataflow",Ge,"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",Ee,"Customize the layout of your cells' output"],fileformat:["File format",de,"Understand marimo's pure-Python file format"],"for-jupyter-users":["For Jupyter users",dt,"Transiting from Jupyter to marimo"],"markdown-format":["Markdown format",B,"Using marimo to edit markdown files"]},ht=()=>{const e=S.c(3);let t,a,r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ct,{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(mt).map(xt)})]}),e[2]=r):r=e[2],r},ut=[{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:Ze,url:D.discordLink},{title:"YouTube",description:"Watch tutorials and demos",icon:Ke,url:D.youtube},{title:"Changelog",description:"See what's new in marimo",icon:E,url:D.releasesPage}],ft=()=>{const e=S.c(2);let t,a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx($,{Icon:et,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:ut.map(pt)})]}),e[1]=a):a=e[1],a},$=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 xt(e){const[t,a]=e,[r,o,n]=a;return s.jsxs(ue,{onSelect:async()=>{const i=await fe({tutorialId:t});i&&window.open(F(`?file=${i.path}`).toString(),"_blank")},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 pt(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(""),bt=Q("marimo:home:include-markdown",!1,void 0,{getOnInit:!0}),ae=Q("marimo:home:expanded-folders",{},void 0,{getOnInit:!0});function se(e){return`${Je()}-${encodeURIComponent(e)}`}const yt=()=>{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(St,r);let n,i,c;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{a(zt)},i={delayMs:1e4,whenVisible:!0},e[1]=n,e[2]=i):(n=e[1],i=e[2]),tt(n,i),e[3]!==t?(c=[t],e[3]=t,e[4]=c):c=e[4];const d=U(Mt,c);let u,h,m,l,p,f,b,x,y,k,g,v,N,w,z,_,M,j,C,A;if(e[5]!==o||e[6]!==d){b=Symbol.for("react.early_return_sentinel");e:{const R=ye(o,d);if(R.error)throw R.error;const J=R.data;if(!J){let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(Y,{centered:!0,size:"xlarge"}),e[20]=W):W=e[20],b=W;break e}const[ne,L]=J;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(ht,{}),T=s.jsx(at,{showAppConfig:!1}),e[21]=O,e[22]=T):(O=e[21],T=e[22]);const V=`This will shutdown the notebook server and terminate all running notebooks (${L.size}). You'll lose all data that's in memory.`;e[23]!==V?(f=s.jsxs("div",{className:"absolute top-3 right-5 flex gap-3 z-50",children:[O,T,s.jsx(st,{description:V})]}),e[23]=V,e[24]=f):f=e[24],k="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(_t,{}),N=s.jsx(ft,{}),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($,{Icon:nt,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]=k,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],k=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?(w=s.jsx(u,{header:x,files:y}),e[29]=u,e[30]=x,e[31]=y,e[32]=w):w=e[32],e[33]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx($,{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(gt,{})}),e[36]=M):M=e[36],e[37]!==w||e[38]!==_||e[39]!==k||e[40]!==g||e[41]!==v||e[42]!==N?(j=s.jsxs("div",{className:k,children:[g,v,N,w,_,M]}),e[37]=w,e[38]=_,e[39]=k,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)},gt=()=>{const e=S.c(39),[t,a]=Z(bt),[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(Y,{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(Ve,{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,k,g,v,N,w,z,_,M;return e[8]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Be,{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(Fe,{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(jt,{}),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(He,{"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")?(k=s.jsx(Ue,{htmlFor:"include-markdown",children:"Include markdown"}),e[18]=k):k=e[18],e[19]!==f||e[20]!==y?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[f,b,y,k]}),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(Y,{size:"small"}),e[24]=h,e[25]=N):N=e[25],e[26]!==v||e[27]!==N||e[28]!==g?(w=s.jsxs($,{Icon:lt,control:g,children:["Workspace",v,N]}),e[26]=v,e[27]=N,e[28]=g,e[29]=w):w=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(vt,{searchText:r,files:d.files})}),e[30]=r,e[31]=d.files,e[32]=z):z=e[32],e[33]!==w||e[34]!==z?(_=s.jsxs("div",{className:"flex flex-col gap-2",children:[w,z]}),e[33]=w,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},jt=()=>{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},vt=e=>{const t=S.c(12),{files:a,searchText:r}=e,[o,n]=Z(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(rt,{ref:c,width:"100%",height:500,searchTerm:r,className:"h-full",idAccessor:It,data:a,openByDefault:!1,initialOpenState:o,onToggle:h,padding:5,rowHeight:35,indent:15,overscanCount:1e3,renderCursor:Pt,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)&&K.isAbsolute(a.data.path)?K.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:F(`?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(B,{className:"ml-2 inline opacity-80"})]}),s.jsx(oe,{filePath:x}),s.jsx(q,{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(wt,{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},wt=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(Dt),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},Nt=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=F(o?`?file=${a.initializationId}&session_id=${a.path}`:`?file=${a.path}`);let w;t[9]!==a.path?(w=a.path.endsWith(".md"),t[9]=a.path,t[10]=w):w=t[10],n=w,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,k,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(B,{})}),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(q,{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?(k=!!a.lastModified&&s.jsx("div",{className:"text-xs text-muted-foreground opacity-80",children:ke(1e3*a.lastModified)}),t[28]=a.lastModified,t[29]=k):k=t[29],t[30]!==y||t[31]!==k?(g=s.jsxs("div",{className:"flex flex-col gap-1 items-end",children:[y,k]}),t[30]=y,t[31]=k,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}=we(),{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(X.keyBy(l.files,At))}),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(ot,{size:14}),t[6]=d):d=t[6],t[7]!==c?(u=s.jsx($e,{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},_t=()=>{const e=S.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Re(),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
7
  text-primary hover:bg-[var(--blue-2)] shadow-mdSolid shadow-accent border bg-[var(--blue-1)]
8
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 St(){return ge()}function zt(e){return e+1}function Ct(e){return e.path}async function Mt(){const e=await je();return X.keyBy(e.files,Ct)}function It(e){return e.path}function Pt(){return null}function Dt(e){return s.jsx(Nt,{file:e},e.path)}function Ot(e){return e.path}export{yt as default};
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(q,{size:24})})]}),e[2]=o):o=e[2],o};function St(){return ge()}function zt(e){return e+1}function Ct(e){return e.path}async function Mt(){const e=await je();return X.keyBy(e.files,Ct)}function It(e){return e.path}function Pt(){return null}function Dt(e){return s.jsx(Nt,{file:e},e.path)}function At(e){return e.path}export{yt as default};