@codragraph/cli 2.1.6 → 2.2.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/cli/graphpack.d.ts +48 -0
- package/dist/cli/graphpack.js +217 -0
- package/dist/cli/index.js +72 -0
- package/dist/cli/tool.d.ts +1 -0
- package/dist/cli/tool.js +111 -2
- package/dist/core/graphpack/index.d.ts +14 -0
- package/dist/core/graphpack/index.js +474 -0
- package/dist/core/graphpack/types.d.ts +129 -0
- package/dist/core/graphpack/types.js +4 -0
- package/dist/core/semantic/relationships.d.ts +36 -0
- package/dist/core/semantic/relationships.js +261 -0
- package/dist/mcp/local/local-backend.js +42 -0
- package/dist/mcp/resources.js +125 -0
- package/dist/mcp/tools.js +105 -0
- package/dist/server/api.js +112 -0
- package/dist/web/assets/agent-CQNZQ-hg.js +1139 -0
- package/dist/web/assets/{architectureDiagram-UL44E2DR-DFSpa3Hb.js → architectureDiagram-UL44E2DR-B5_goS_i.js} +1 -1
- package/dist/web/assets/{blockDiagram-7IZFK4PR-DlFaxH1b.js → blockDiagram-7IZFK4PR-D7ZAlDyv.js} +1 -1
- package/dist/web/assets/{c4Diagram-Y2BXMSZH-BjJ_Yrim.js → c4Diagram-Y2BXMSZH-Djcgm_54.js} +1 -1
- package/dist/web/assets/{chunk-3SSMPTDK-KGZSzG3Y.js → chunk-3SSMPTDK-Cv2Zy2FO.js} +1 -1
- package/dist/web/assets/{chunk-6764PJDD-p1sGJgVm.js → chunk-6764PJDD-Cppb-jH-.js} +1 -1
- package/dist/web/assets/{chunk-AZZRMDJM-DIDkQA4V.js → chunk-AZZRMDJM-BHlLC7p3.js} +1 -1
- package/dist/web/assets/{chunk-JQRUD6KW-DAwg-yCU.js → chunk-JQRUD6KW-3F8Zg-1N.js} +1 -1
- package/dist/web/assets/{chunk-KRXBNO2N-ChVO_XdS.js → chunk-KRXBNO2N-C0mbN9a7.js} +1 -1
- package/dist/web/assets/{chunk-LCXTWHL2-DGYdb_Eh.js → chunk-LCXTWHL2-BoiuJpIF.js} +1 -1
- package/dist/web/assets/{chunk-LII3EMHJ-Bzh9SNgD.js → chunk-LII3EMHJ-Dqq0Qguw.js} +1 -1
- package/dist/web/assets/{chunk-RG4AUYOV-Bcl7U_IV.js → chunk-RG4AUYOV-Bl5F_gDs.js} +1 -1
- package/dist/web/assets/{chunk-T5OCTHI4-CZYMg5sc.js → chunk-T5OCTHI4-B2tIcggA.js} +1 -1
- package/dist/web/assets/{chunk-W44A43WB-REOI67PN.js → chunk-W44A43WB-BHe37iN7.js} +1 -1
- package/dist/web/assets/{chunk-ZXARS5L4-BfFdV1tf.js → chunk-ZXARS5L4-wcrIaQvY.js} +1 -1
- package/dist/web/assets/classDiagram-KGZ6W3CR-IbI6v_24.js +1 -0
- package/dist/web/assets/classDiagram-v2-72OJOZXJ-IbI6v_24.js +1 -0
- package/dist/web/assets/{cose-bilkent-UX7MHV2Q-D6vANJGG.js → cose-bilkent-UX7MHV2Q-BWr7v0Wr.js} +1 -1
- package/dist/web/assets/{dagre-ND4H6XIP-BiHe5Lal.js → dagre-ND4H6XIP-De5LIh1B.js} +1 -1
- package/dist/web/assets/{diagram-3NCE3AQN-CEutBCOW.js → diagram-3NCE3AQN-Dd22FSHy.js} +1 -1
- package/dist/web/assets/{diagram-GF46GFSD-CZns6HPQ.js → diagram-GF46GFSD-Cev3THY8.js} +1 -1
- package/dist/web/assets/{diagram-HNR7UZ2L-Vz8fE5of.js → diagram-HNR7UZ2L-D8Z8RQGs.js} +1 -1
- package/dist/web/assets/{diagram-QXG6HAR7-D60HKZ_y.js → diagram-QXG6HAR7-B8VOJOiE.js} +1 -1
- package/dist/web/assets/{diagram-WEQXMOUZ-vGAf1p3E.js → diagram-WEQXMOUZ-va1bLoMD.js} +1 -1
- package/dist/web/assets/{erDiagram-L5TCEMPS-DZaplJA6.js → erDiagram-L5TCEMPS-B3_9uAoP.js} +1 -1
- package/dist/web/assets/{flowDiagram-H6V6AXG4-BqUqeAsI.js → flowDiagram-H6V6AXG4-98m6maI1.js} +1 -1
- package/dist/web/assets/{ganttDiagram-JCBTUEKG-XEB6H-0G.js → ganttDiagram-JCBTUEKG-vE2nzETb.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-S2ZK5IYY-7G50u1Cd.js → gitGraphDiagram-S2ZK5IYY-DKc8uUg_.js} +1 -1
- package/dist/web/assets/index-BAhe1HSk.css +1 -0
- package/dist/web/assets/{index-B5WxtMpv.js → index-VTKdaklA.js} +230 -230
- package/dist/web/assets/{infoDiagram-3YFTVSEB-Cut_rzaf.js → infoDiagram-3YFTVSEB-DYP-Srzx.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-BNXS4ZKH-B4DGfGi3.js → ishikawaDiagram-BNXS4ZKH-QZnkpmmb.js} +1 -1
- package/dist/web/assets/{journeyDiagram-M6C3CM3L-BBFhsL3E.js → journeyDiagram-M6C3CM3L-B5ojIuqu.js} +1 -1
- package/dist/web/assets/{kanban-definition-75IXJCU3-DarGRyn3.js → kanban-definition-75IXJCU3-BJA8liRR.js} +1 -1
- package/dist/web/assets/{katex-K3KEBU37-W5XTYMhr.js → katex-K3KEBU37-DUqZiCRL.js} +1 -1
- package/dist/web/assets/{mindmap-definition-2TDM6QVE-BgeczIJM.js → mindmap-definition-2TDM6QVE-BQj5yylD.js} +1 -1
- package/dist/web/assets/{pieDiagram-CU6KROY3-Kkoo-Noq.js → pieDiagram-CU6KROY3-4eSrPiQz.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-VICAPDV7-CDQFeRWN.js → quadrantDiagram-VICAPDV7-PzxN8j55.js} +1 -1
- package/dist/web/assets/{requirementDiagram-JXO7QTGE-Cz9-XnkA.js → requirementDiagram-JXO7QTGE-CtplTc5y.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-URQDO5SZ-CU26z0n7.js → sankeyDiagram-URQDO5SZ-CoSgvkxv.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-VS2MUI6T-OGK1FLOt.js → sequenceDiagram-VS2MUI6T-D7ygyXvJ.js} +1 -1
- package/dist/web/assets/{stateDiagram-7D4R322I-DJ9brq0U.js → stateDiagram-7D4R322I-v01gvwji.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-36443NZ5-DFD2b8_x.js +1 -0
- package/dist/web/assets/{timeline-definition-O6YCAMPW-XZvnjqTT.js → timeline-definition-O6YCAMPW-CTI3M65J.js} +1 -1
- package/dist/web/assets/{vennDiagram-MWXL3ELB-CJUssEjA.js → vennDiagram-MWXL3ELB-RnB0XMP7.js} +1 -1
- package/dist/web/assets/{wardley-L42UT6IY-5TKZOOLJ-DZr11zBG.js → wardley-L42UT6IY-5TKZOOLJ-C-ZcgEBb.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-CUQ6CDDI-C276iqrN.js → wardleyDiagram-CUQ6CDDI-EwRi4kwo.js} +1 -1
- package/dist/web/assets/{xychartDiagram-N2JHSOCM-B9-uCZyP.js → xychartDiagram-N2JHSOCM-DA38II6y.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +2 -2
- package/dist/web/assets/__vite-browser-external-BIHI7g3E.js +0 -1
- package/dist/web/assets/agent-DcdaQnmu.js +0 -1104
- package/dist/web/assets/classDiagram-KGZ6W3CR-B-qkKMYi.js +0 -1
- package/dist/web/assets/classDiagram-v2-72OJOZXJ-B-qkKMYi.js +0 -1
- package/dist/web/assets/index-CT0GtFLZ.css +0 -1
- package/dist/web/assets/stateDiagram-v2-36443NZ5-DhJ4Ky-7.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{c as oe}from"./chunk-JQRUD6KW-
|
|
1
|
+
import{c as oe}from"./chunk-JQRUD6KW-3F8Zg-1N.js";import{d as le,z as se}from"./wardley-L42UT6IY-5TKZOOLJ-C-ZcgEBb.js";import{o as de,n as me,l as xe,a as ce,s as ue,e as fe,m as o,p as g,q as W,i as ge,z as he,u as be,L as pe,E as we,I as F,d as y,P,aL as ve}from"./index-VTKdaklA.js";var T="position frame",O="frame positioned",k="position relation",I="relation positioned",ye=o(function(e){g.debug("options str",e)},"setOptions"),Pe=o(function(){return{}},"getOptions"),Me=o(function(){C(),be()},"clear");function C(){$={}}o(C,"reset");var ke=we.eventmodeling,Se=o(()=>pe({...ke,...F().eventmodeling}),"getConfig"),$={};function H(){let e=Be,{ast:a}=$,t=E();if(!a)throw new Error("No data for EventModel");return a.frames.forEach((i,n)=>{let r=L(i,a.dataEntities,t);e=v(e,{$kind:T,index:n,frame:i,textProps:r});let s;Q(i)?(g.debug("source frame",i.sourceFrames),s=a.frames.filter(d=>i.sourceFrames.some(m=>m.$refText===d.name)),s.forEach(d=>{e=v(e,{$kind:k,index:n,frame:i,sourceFrame:d})})):e=v(e,{$kind:k,index:n,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(H,"getState");function D(e){$.ast=e}o(D,"setAst");var l={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return l}o(E,"getDiagramProps");var Be={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function N(e){let a=e.split(".");if(a.length===2)return a[0]}o(N,"extractNamespace");function U(e){let a=e.split(".");return a.length===2?a[1]:e}o(U,"extractName");function z(e,a){if(!(!a||a.length===0))return Object.values(e).find(t=>t.namespace===a)}o(z,"findSwimlaneByNamespace");function w(e,a,t){return Math.max(a,...Object.keys(e).filter(i=>{let n=Number.parseInt(i);return n>a&&n<t}).map(i=>Number.parseInt(i)))+1}o(w,"findNextAvailableIndex");function j(e,a){let t=N(e.entityIdentifier),i=z(a,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||l.labelUiAutomation}:t?{index:w(a,0,100),label:l.labelUiAutomationPrefix+t}:{index:0,label:l.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||l.labelCommandReadModel}:t?{index:w(a,100,200),label:l.labelCommandReadModelPrefix+t}:{index:100,label:l.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||l.labelEvents}:t?{index:w(a,200,300),label:l.labelEventsPrefix+t}:{index:200,label:l.labelEvents}}}o(j,"calculateSwimlaneProps");function V(e){let{themeVariables:a}=F();switch(e.modelEntityType){case"ui":return{fill:a.emUiFill??"white",stroke:a.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:a.emProcessorFill??"#edb3f6",stroke:a.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:a.emReadModelFill??"#d3f1a2",stroke:a.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:a.emCommandFill??"#bcd6fe",stroke:a.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:a.emEventFill??"#ffb778",stroke:a.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(V,"calculateEntityVisualProps");function L(e,a,t){let i=F(),n=y(U(e.entityIdentifier)??"",i),r,s={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},d=`<b>${P(n,t.textMaxWidth,s)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,s),r=r.replaceAll(" "," ")),e.dataReference){let f=a.find(b=>{var p;return b.name===((p=e.dataReference)==null?void 0:p.$refText)});f&&(r=f.dataBlockValue,r=r.substring(r.indexOf(`{
|
|
2
2
|
`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,s),r=r.replaceAll(" "," "),r+="<br/>")}let m=r!==void 0;m&&(d+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);let c={fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:s.fontFamily},x=ve(d,c),u=m?x.width/3:x.width,h={content:d,width:u,height:x.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,h),h}o(L,"calculateTextProps");function X(e,a){let t=a,i=V(t.frame),n={width:t.textProps.width+2*l.boxTextPadding,height:t.textProps.height+2*l.boxTextPadding};return[{$kind:O,frame:t.frame,index:t.index,visual:i,dimension:n,textProps:t.textProps}]}o(X,"decidePositionFrame");function q(e,a,t){return a===void 0?l.contentStartX:a.index===e.index&&e.r?e.r+l.boxPadding:t===void 0?l.contentStartX:t.r-l.boxOverlap+l.boxPadding}o(q,"calculateX");function G(e,a){let t=[...e.map(i=>i.r),a];return Math.max(...t)}o(G,"calculateMaxRight");function A(e){return Object.values(e).sort((a,t)=>a.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,a){let t=a,i=j(t.frame,e.swimlanes),n;i.index in e.swimlanes?n=e.swimlanes[i.index]:n={index:i.index,label:i.label,r:0,y:i.index*l.swimlaneMinHeight+l.swimlaneGap,height:l.swimlaneMinHeight,maxHeight:l.swimlaneMinHeight};let r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,s=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,d={width:Math.max(l.boxMinWidth,Math.min(l.boxMaxWidth,t.dimension.width))+2*l.boxPadding,height:Math.max(l.boxMinHeight,Math.min(l.boxMaxHeight,t.dimension.height))+2*l.boxPadding},m=q(n,s,r),c=m+d.width+l.boxPadding,x=G(Object.values(e.swimlanes),c);n.r=m+d.width,n.maxHeight=Math.max(n.maxHeight,d.height),n.height=Math.max(l.swimlaneMinHeight,n.maxHeight)+2*l.swimlanePadding;let u={x:m,y:l.swimlanePadding+n.y,r:c,dimension:d,leftSibling:!1,swimlane:n,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${n.index}`]:n},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let b=1;b<f.length;b++){let p=f[b],R=f[b-1];p.y=R.y+R.height+l.swimlaneGap}return h}o(Y,"evolveFramePositioned");function J(e,a){return e===0&&a.sourceFrames.length===0}o(J,"isFirstFrame");function Q(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(Q,"hasSourceFrame");function S(e,a){if(a!=null)return e.find(t=>t.frame.name===a.name)}o(S,"findBoxByFrame");function Z(e,a,t){if(!(t<0))for(let i=t;i>=0;i--){let n=e[i];if(n.swimlane.index!==a)return n}}o(Z,"findBoxByLineIndex");function _(e,a){let t=a;if(se(t.frame)||J(t.index,t.frame))return[];let i=S(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let n;return t.sourceFrame?n=S(e.boxes,t.sourceFrame):n=Z(e.boxes,i.swimlane.index,t.index-1),n===void 0?[]:[{$kind:I,frame:t.frame,index:t.index,sourceBox:n,targetBox:i}]}o(_,"decidePositionRelation");function K(e,a){let t=a,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(K,"evolveRelationPositioned");var Fe={[T]:X,[k]:_},$e={[O]:Y,[I]:K};function ee(e,a){let t=Fe[a.$kind];if(t==null)return[];let i=t(e,a);return g.debug("decided events",i),i}o(ee,"decide");function te(e,a){let t=a.reduce((i,n)=>{let r=$e[n.$kind];return r==null?i:r(i,n)},e);return g.debug("evolve events",{state:e,newState:t,events:a}),t}o(te,"evolve");function v(e,a){let t=ee(e,a);return te(e,t)}o(v,"dispatch");var B={getConfig:Se,setOptions:ye,getOptions:Pe,clear:Me,setAccTitle:fe,getAccTitle:ue,getAccDescription:ce,setAccDescription:xe,setDiagramTitle:me,getDiagramTitle:de,setAst:D,getDiagramProps:E,getState:H},Ee={parse:o(async e=>{let a=await le("eventmodeling",e);g.debug(a),B.setAst(a),oe(a,B)},"parse")},M=W(),Ae=M==null?void 0:M.eventmodeling;function ae(e,a){return t=>{let i=t.swimlane.y+a.swimlanePadding,n=e.append("g").attr("class","em-box");n.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),n.append("foreignObject").attr("x",t.x+a.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*a.boxPadding).attr("height",t.dimension.height-2*a.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(ae,"renderD3Box");function ie(e,a){return e>a}o(ie,"dirUpwards");function ne(e,a,t,i){return n=>{let r=n.sourceBox.swimlane.y+a.swimlanePadding,s=n.targetBox.swimlane.y+a.swimlanePadding,d=ie(r,s),m=n.sourceBox.x+n.sourceBox.dimension.width*2/3,c=n.targetBox.x+n.targetBox.dimension.width/3,x,u;g.debug(`rendering relation up=${d} for `,{sourceBox:n.sourceBox,targetBox:n.targetBox}),d?(x=r,u=s+n.targetBox.dimension.height):(x=r+n.sourceBox.dimension.height,u=s);let h=i.emRelationStroke??n.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",n.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${m} ${x} L${c} ${u}`)}}o(ne,"renderD3Relation");function re(e,a,t,i){return n=>{let r=e.append("g").attr("class","em-swimlane"),s=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",d=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",n.y).attr("rx","3").attr("width",a+t.swimlanePadding).attr("height",n.height).attr("fill",s).attr("stroke",d),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",n.y+30).text(n.label)}}o(re,"renderD3Swimlane");var Re=o(function(e,a,t,i){if(g.debug("in eventmodeling renderer",e+`
|
|
3
3
|
`,"id:",a,t),!Ae)throw new Error("EventModeling config not found");let n=i.db,{themeVariables:r,eventmodeling:s}=W(),d=ge(`[id="${a}"]`),m=n.getDiagramProps(),c=n.getState(),x=`em-arrowhead-${a}`,u=r.emArrowhead??"#000000";c.sortedSwimlanesArray.forEach(re(d,c.maxR,m,r)),c.boxes.forEach(ae(d,m)),c.relations.forEach(ne(d,m,x,r)),d.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),he(void 0,d,(s==null?void 0:s.padding)??30,s==null?void 0:s.useMaxWidth)},"draw"),We={draw:Re},Te=o(e=>"","getStyles"),Oe=Te,De={parser:Ee,db:B,renderer:We,styles:Oe};export{De as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as v}from"./chunk-JQRUD6KW-
|
|
1
|
+
import{c as v}from"./chunk-JQRUD6KW-3F8Zg-1N.js";import{d as C}from"./wardley-L42UT6IY-5TKZOOLJ-C-ZcgEBb.js";import{m as f,L as m,a7 as P,b as z,p as w,e as F,s as S,n as E,o as W,a as D,l as T,E as L,I as A,u as R}from"./index-VTKdaklA.js";var I=L.packet,u,y=(u=class{constructor(){this.packet=[],this.setAccTitle=F,this.getAccTitle=S,this.setDiagramTitle=E,this.getDiagramTitle=W,this.getAccDescription=D,this.setAccDescription=T}getConfig(){let t=m({...I,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){R(),this.packet=[]}},f(u,"PacketDB"),u),M=1e4,Y=f((e,t)=>{v(e,t);let s=-1,r=[],l=1,{bitsPerRow:n}=t.getConfig();for(let{start:a,end:o,bits:c,label:d}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??(a=s+1),a!==s+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${s+1}.`);if(c===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??(o=a+(c??1)-1),c??(c=o-a+1),s=o,w.debug(`Packet block ${a} - ${s} with label ${d}`);r.length<=n+1&&t.getPacket().length<M;){let[p,i]=H({start:a,end:o,bits:c,label:d},l,n);if(r.push(p),p.end+1===l*n&&(t.pushWord(r),r=[],l++),!i)break;({start:a,end:o,bits:c,label:d}=i)}}t.pushWord(r)},"populate"),H=f((e,t,s)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*s)return[e,void 0];let r=t*s-1,l=t*s;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),$={parser:{yy:void 0},parse:f(async e=>{var r;let t=await C("packet",e),s=(r=$.parser)==null?void 0:r.yy;if(!(s instanceof y))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,s)},"parse")},N=f((e,t,s,r)=>{let l=r.db,n=l.getConfig(),{rowHeight:a,paddingY:o,bitWidth:c,bitsPerRow:d}=n,p=l.getPacket(),i=l.getDiagramTitle(),b=a+o,h=b*(p.length+1)-(i?0:a),k=c*d+2,g=P(t);g.attr("viewBox",`0 0 ${k} ${h}`),z(g,h,k,n.useMaxWidth);for(let[x,B]of p.entries())j(g,B,x,n);g.append("text").text(i).attr("x",k/2).attr("y",h-b/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),j=f((e,t,s,{rowHeight:r,paddingX:l,paddingY:n,bitWidth:a,bitsPerRow:o,showBits:c})=>{let d=e.append("g"),p=s*(r+n)+n;for(let i of t){let b=i.start%o*a+1,h=(i.end-i.start+1)*a-l;if(d.append("rect").attr("x",b).attr("y",p).attr("width",h).attr("height",r).attr("class","packetBlock"),d.append("text").attr("x",b+h/2).attr("y",p+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!c)continue;let k=i.end===i.start,g=p-2;d.append("text").attr("x",b+(k?h/2:0)).attr("y",g).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||d.append("text").attr("x",b+h).attr("y",g).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),q={draw:N},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},O=f(({packet:e}={})=>{let t=m(G,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as u}from"./chunk-T5OCTHI4-
|
|
1
|
+
import{s as u}from"./chunk-T5OCTHI4-B2tIcggA.js";import{c as B}from"./chunk-JQRUD6KW-3F8Zg-1N.js";import{d as V}from"./wardley-L42UT6IY-5TKZOOLJ-C-ZcgEBb.js";import{n as v,e as T,l as $,o as y,a as C,s as I,m as i,L as b,p as f,a7 as X,b as A,I as L,E as N,u as z}from"./index-VTKdaklA.js";var o=new u(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),D=i(()=>{o.reset(),z()},"clear"),R=i(()=>o.records.stack[0],"getRoot"),W=i(()=>o.records.cnt,"getCount"),F=N.treeView,H=i(()=>b(F,L().treeView),"getConfig"),M=i((e,t)=>{for(;e<=o.records.stack[o.records.stack.length-1].level;)o.records.stack.pop();let a={id:o.records.cnt++,level:e,name:t,children:[]};o.records.stack[o.records.stack.length-1].children.push(a),o.records.stack.push(a)},"addNode"),E={clear:D,addNode:M,getRoot:R,getCount:W,getConfig:H,getAccTitle:I,getAccDescription:C,getDiagramTitle:y,setAccDescription:$,setAccTitle:T,setDiagramTitle:v},x=E,S=i(e=>{B(e,x),e.nodes.map(t=>x.addNode(t.indent?parseInt(t.indent):0,t.name))},"populate"),Y={parse:i(async e=>{let t=await V("treeView",e);f.debug(t),S(t)},"parse")},j=i((e,t,a,s,l)=>{let c=s.append("text").text(a.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:g,width:r}=c.node().getBBox(),d=g+l.paddingY*2,n=r+l.paddingX*2;c.attr("x",e+l.paddingX),c.attr("y",t+d/2),a.BBox={x:e,y:t,width:n,height:d}},"positionLabel"),k=i((e,t,a,s,l,c)=>e.append("line").attr("x1",t).attr("y1",a).attr("x2",s).attr("y2",l).attr("stroke-width",c).attr("class","treeView-node-line"),"positionLine"),q=i((e,t,a)=>{let s=0,l=0,c=i((r,d,n,p)=>{let w=p*(n.rowIndent+n.paddingX);j(w,s,d,r,n);let{height:h,width:m}=d.BBox;k(r,w-n.rowIndent,s+h/2,w,s+h/2,n.lineThickness),l=Math.max(l,w+m),s+=h},"drawNode"),g=i((r,d=0)=>{c(e,r,a,d),r.children.forEach(h=>{g(h,d+1)});let{x:n,y:p,height:w}=r.BBox;if(r.children.length){let{y:h,height:m}=r.children[r.children.length-1].BBox;k(e,n+a.paddingX,p+w,n+a.paddingX,h+m/2+a.lineThickness/2,a.lineThickness)}},"processNode");return g(t),{totalHeight:s,totalWidth:l}},"drawTree"),J=i((e,t,a,s)=>{f.debug(`Rendering treeView diagram
|
|
2
2
|
`+e);let l=s.db,c=l.getRoot(),g=l.getConfig(),r=X(t),d=r.append("g");d.attr("class","tree-view");let{totalHeight:n,totalWidth:p}=q(d,c,g);r.attr("viewBox",`-${g.lineThickness/2} 0 ${p} ${n}`),A(r,n,p,g.useMaxWidth)},"draw"),O={draw:J},P=O,U={labelFontSize:"16px",labelColor:"black",lineColor:"black"},_=i(({treeView:e})=>{let{labelFontSize:t,labelColor:a,lineColor:s}=b(U,e);return`
|
|
3
3
|
.treeView-node-label {
|
|
4
4
|
font-size: ${t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as Ft}from"./chunk-6764PJDD-p1sGJgVm.js";import{y as Yt}from"./chunk-ZXARS5L4-BfFdV1tf.js";import{m as y,e as Pt,s as zt,l as Zt,a as Gt,n as Kt,o as Ut,q as st,p as D,u as jt,t as Wt,v as Xt,x as Qt,y as qt,M as Ht,j as Jt,i as Vt,k as te}from"./index-B5WxtMpv.js";var bt=function(){var s=y(function(k,a,n,r){for(n=n||{},r=k.length;r--;n[k[r]]=a);return n},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],c=[1,11],l=[1,12],h=[1,13],p=[1,23],u=[1,24],E=[1,25],j=[1,26],W=[1,27],O=[1,19],rt=[1,28],w=[1,29],$=[1,20],S=[1,18],C=[1,21],B=[1,22],at=[1,36],nt=[1,37],lt=[1,38],ot=[1,39],ct=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],N=[1,45],A=[1,46],Y=[1,55],P=[40,48,50,51,52,70,71],z=[1,66],Z=[1,64],I=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],gt=[65,66,67,68,69],mt=[1,84],kt=[1,83],Et=[1,81],Tt=[1,82],Ot=[6,10,42,47],v=[6,10,13,41,42,47,48,49],Q=[1,92],q=[1,91],H=[1,90],U=[19,58],St=[1,101],Nt=[1,100],ht=[19,58,60,62],ut={trace:y(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,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$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",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"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],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:y(function(k,a,n,r,d,t,b){var e=t.length-1;switch(d){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"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:o,24:c,26:l,28:h,29:14,30:15,31:16,32:17,33:p,34:u,35:E,36:j,37:W,40:O,43:rt,44:w,48:$,50:S,51:C,52:B},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:c,26:l,28:h,29:14,30:15,31:16,32:17,33:p,34:u,35:E,36:j,37:W,40:O,43:rt,44:w,48:$,50:S,51:C,52:B},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:at,66:nt,67:lt,68:ot,69:ct}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:N,41:A},{16:47,40:N,41:A},{16:48,40:N,41:A},s(i,[2,4]),{11:49,40:O,48:$,50:S,51:C,52:B},{16:50,40:N,41:A},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:O,48:$,50:S,51:C,52:B},{64:57,70:[1,58],71:[1,59]},s(P,[2,72]),s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:Z,42:I,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:N,41:A,42:I},{13:z,38:69,41:Z,42:I,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:I,65:at,66:nt,67:lt,68:ot,69:ct}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:at,66:nt,67:lt,68:ot,69:ct},s(gt,[2,77]),s(gt,[2,78]),{6:mt,10:kt,39:80,42:Et,47:Tt},{40:[1,85],41:[1,86]},s(Ot,[2,43],{46:87,13:z,41:Z,48:G,49:K}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:I}),{6:mt,10:kt,39:88,42:Et,47:Tt},{14:89,40:Q,50:q,72:H},{16:93,40:N,41:A},{11:94,40:O,48:$,50:S,51:C,52:B},{18:95,19:[1,96],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:97,57:98,59:99,61:St,62:Nt}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:z,41:Z,45:104,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:I},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(U,[2,62],{57:109,60:[1,110],62:Nt}),s(U,[2,63]),s(ht,[2,67]),s(U,[2,70]),s(ht,[2,69]),{18:111,19:[1,112],53:53,54:54,58:Y},{16:113,40:N,41:A},s(Ot,[2,44],{46:87,13:z,41:Z,48:G,49:K}),{14:114,40:Q,50:q,72:H},{16:115,40:N,41:A},{14:116,40:Q,50:q,72:H},s(i,[2,13]),s(U,[2,64]),{59:117,61:St},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:I}),s(i,[2,11]),{13:[1,120],42:I},s(i,[2,10]),s(ht,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:Y},{14:123,40:Q,50:q,72:H},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:y(function(k,a){if(a.recoverable)this.trace(k);else{var n=new Error(k);throw n.hash=a,n}},"parseError"),parse:y(function(k){var a=this,n=[0],r=[],d=[null],t=[],b=this.table,e="",V=0,At=0,Lt=0,Dt=2,It=1,Mt=t.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yt)&&(R.yy[yt]=this.yy[yt]);_.setInput(k,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var dt=_.yylloc;t.push(dt);var wt=_.options&&_.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Bt(g){n.length=n.length-2*g,d.length=d.length-g,t.length=t.length-g}y(Bt,"popStack");function $t(){var g;return g=r.pop()||_.lex()||It,typeof g!="number"&&(g instanceof Array&&(r=g,g=r.pop()),g=a.symbols_[g]||g),g}y($t,"lex");for(var f,pt,x,m,le,_t,L={},tt,T,Ct,et;;){if(x=n[n.length-1],this.defaultActions[x]?m=this.defaultActions[x]:((f===null||typeof f>"u")&&(f=$t()),m=b[x]&&b[x][f]),typeof m>"u"||!m.length||!m[0]){var ft="";et=[];for(tt in b[x])this.terminals_[tt]&&tt>Dt&&et.push("'"+this.terminals_[tt]+"'");_.showPosition?ft="Parse error on line "+(V+1)+`:
|
|
1
|
+
import{m as Ft}from"./chunk-6764PJDD-Cppb-jH-.js";import{y as Yt}from"./chunk-ZXARS5L4-wcrIaQvY.js";import{m as y,e as Pt,s as zt,l as Zt,a as Gt,n as Kt,o as Ut,q as st,p as D,u as jt,t as Wt,v as Xt,x as Qt,y as qt,M as Ht,j as Jt,i as Vt,k as te}from"./index-VTKdaklA.js";var bt=function(){var s=y(function(k,a,n,r){for(n=n||{},r=k.length;r--;n[k[r]]=a);return n},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],c=[1,11],l=[1,12],h=[1,13],p=[1,23],u=[1,24],E=[1,25],j=[1,26],W=[1,27],O=[1,19],rt=[1,28],w=[1,29],$=[1,20],S=[1,18],C=[1,21],B=[1,22],at=[1,36],nt=[1,37],lt=[1,38],ot=[1,39],ct=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],N=[1,45],A=[1,46],Y=[1,55],P=[40,48,50,51,52,70,71],z=[1,66],Z=[1,64],I=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],gt=[65,66,67,68,69],mt=[1,84],kt=[1,83],Et=[1,81],Tt=[1,82],Ot=[6,10,42,47],v=[6,10,13,41,42,47,48,49],Q=[1,92],q=[1,91],H=[1,90],U=[19,58],St=[1,101],Nt=[1,100],ht=[19,58,60,62],ut={trace:y(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,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$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",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"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],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:y(function(k,a,n,r,d,t,b){var e=t.length-1;switch(d){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"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:o,24:c,26:l,28:h,29:14,30:15,31:16,32:17,33:p,34:u,35:E,36:j,37:W,40:O,43:rt,44:w,48:$,50:S,51:C,52:B},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:c,26:l,28:h,29:14,30:15,31:16,32:17,33:p,34:u,35:E,36:j,37:W,40:O,43:rt,44:w,48:$,50:S,51:C,52:B},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:at,66:nt,67:lt,68:ot,69:ct}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:N,41:A},{16:47,40:N,41:A},{16:48,40:N,41:A},s(i,[2,4]),{11:49,40:O,48:$,50:S,51:C,52:B},{16:50,40:N,41:A},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:O,48:$,50:S,51:C,52:B},{64:57,70:[1,58],71:[1,59]},s(P,[2,72]),s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:Z,42:I,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:N,41:A,42:I},{13:z,38:69,41:Z,42:I,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:I,65:at,66:nt,67:lt,68:ot,69:ct}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:at,66:nt,67:lt,68:ot,69:ct},s(gt,[2,77]),s(gt,[2,78]),{6:mt,10:kt,39:80,42:Et,47:Tt},{40:[1,85],41:[1,86]},s(Ot,[2,43],{46:87,13:z,41:Z,48:G,49:K}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:I}),{6:mt,10:kt,39:88,42:Et,47:Tt},{14:89,40:Q,50:q,72:H},{16:93,40:N,41:A},{11:94,40:O,48:$,50:S,51:C,52:B},{18:95,19:[1,96],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:97,57:98,59:99,61:St,62:Nt}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:z,41:Z,45:104,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:I},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(U,[2,62],{57:109,60:[1,110],62:Nt}),s(U,[2,63]),s(ht,[2,67]),s(U,[2,70]),s(ht,[2,69]),{18:111,19:[1,112],53:53,54:54,58:Y},{16:113,40:N,41:A},s(Ot,[2,44],{46:87,13:z,41:Z,48:G,49:K}),{14:114,40:Q,50:q,72:H},{16:115,40:N,41:A},{14:116,40:Q,50:q,72:H},s(i,[2,13]),s(U,[2,64]),{59:117,61:St},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:I}),s(i,[2,11]),{13:[1,120],42:I},s(i,[2,10]),s(ht,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:Y},{14:123,40:Q,50:q,72:H},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:y(function(k,a){if(a.recoverable)this.trace(k);else{var n=new Error(k);throw n.hash=a,n}},"parseError"),parse:y(function(k){var a=this,n=[0],r=[],d=[null],t=[],b=this.table,e="",V=0,At=0,Lt=0,Dt=2,It=1,Mt=t.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yt)&&(R.yy[yt]=this.yy[yt]);_.setInput(k,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var dt=_.yylloc;t.push(dt);var wt=_.options&&_.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Bt(g){n.length=n.length-2*g,d.length=d.length-g,t.length=t.length-g}y(Bt,"popStack");function $t(){var g;return g=r.pop()||_.lex()||It,typeof g!="number"&&(g instanceof Array&&(r=g,g=r.pop()),g=a.symbols_[g]||g),g}y($t,"lex");for(var f,pt,x,m,le,_t,L={},tt,T,Ct,et;;){if(x=n[n.length-1],this.defaultActions[x]?m=this.defaultActions[x]:((f===null||typeof f>"u")&&(f=$t()),m=b[x]&&b[x][f]),typeof m>"u"||!m.length||!m[0]){var ft="";et=[];for(tt in b[x])this.terminals_[tt]&&tt>Dt&&et.push("'"+this.terminals_[tt]+"'");_.showPosition?ft="Parse error on line "+(V+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+et.join(", ")+", got '"+(this.terminals_[f]||f)+"'":ft="Parse error on line "+(V+1)+": Unexpected "+(f==It?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(ft,{text:_.match,token:this.terminals_[f]||f,line:_.yylineno,loc:dt,expected:et})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+f);switch(m[0]){case 1:n.push(f),d.push(_.yytext),t.push(_.yylloc),n.push(m[1]),f=null,pt?(f=pt,pt=null):(At=_.yyleng,e=_.yytext,V=_.yylineno,dt=_.yylloc,Lt>0);break;case 2:if(T=this.productions_[m[1]][1],L.$=d[d.length-T],L._$={first_line:t[t.length-(T||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(T||1)].first_column,last_column:t[t.length-1].last_column},wt&&(L._$.range=[t[t.length-(T||1)].range[0],t[t.length-1].range[1]]),_t=this.performAction.apply(L,[e,At,V,R.yy,m[1],d,t].concat(Mt)),typeof _t<"u")return _t;T&&(n=n.slice(0,-1*T*2),d=d.slice(0,-1*T),t=t.slice(0,-1*T)),n.push(this.productions_[m[1]][0]),d.push(L.$),t.push(L._$),Ct=b[n[n.length-2]][n[n.length-1]],n.push(Ct);break;case 3:return!0}}return!0},"parse")},vt=function(){var k={EOF:1,parseError:y(function(a,n){if(this.yy.parser)this.yy.parser.parseError(a,n);else throw new Error(a)},"parseError"),setInput:y(function(a,n){return this.yy=n||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:y(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var n=a.match(/(?:\r\n?|\n).*/g);return n?(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:y(function(a){var n=a.length,r=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var 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:r?(r.length===d.length?this.yylloc.first_column:0)+d[d.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:y(function(a){this.unput(this.match.slice(a))},"less"),pastInput:y(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:y(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:y(function(){var a=this.pastInput(),n=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
package/dist/web/assets/{flowDiagram-H6V6AXG4-BqUqeAsI.js → flowDiagram-H6V6AXG4-98m6maI1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as Yt}from"./chunk-AZZRMDJM-
|
|
1
|
+
import{o as Yt}from"./chunk-AZZRMDJM-BHlLC7p3.js";import{m as b,h as Mt,p as K,q as g1,M as Kt,j as Qt,k as rt,e as Zt,l as Jt,n as te,s as ee,a as se,o as ie,C as re,A as ae,r as ne,X as ue,t as st,i as it,B as oe,u as le,w as ce,v as he,x as de}from"./index-VTKdaklA.js";import{T as pe}from"./chunk-LII3EMHJ-Dqq0Qguw.js";import{m as ge}from"./chunk-6764PJDD-Cppb-jH-.js";import{y as Ae}from"./chunk-ZXARS5L4-wcrIaQvY.js";var fe="flowchart-",I1,be=(I1=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",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=Jt,this.setDiagramTitle=te,this.getAccTitle=ee,this.getAccDescription=se,this.getDiagramTitle=ie,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 re.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(let n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,r,a,u,p,d={},c){var H,D;if(!i||i.trim().length===0)return;let l;if(c!==void 0){let g;c.includes(`
|
|
2
2
|
`)?g=c+`
|
|
3
3
|
`:g=`{
|
|
4
4
|
`+c+`
|
package/dist/web/assets/{ganttDiagram-JCBTUEKG-XEB6H-0G.js → ganttDiagram-JCBTUEKG-vE2nzETb.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ue,l as he,o as fe,n as ke,s as ye,e as me,m as c,q as dt,i as $t,F as pe,V as ge,G as xe,b as be,Z as ve,Y as Te,p as it,S as $e,H as jt,J as Ut,$ as we,K as _e,N as De,Q as Se,R as Ce,T as Me,U as Ye,_ as qt,a0 as Qt,a1 as Jt,a2 as Xt,a3 as Zt,a4 as Ee,C as Oe,u as Ae,f as st,a5 as ie,g as Ie,k as Le,a6 as Ct}from"./index-B5WxtMpv.js";var We=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isoWeek=i()})(t,function(){var r="day";return function(i,n,h){var x=c(function(M){return M.add(4-M.isoWeekday(),r)},"a"),D=n.prototype;D.isoWeekYear=function(){return x(this).year()},D.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),r);var w,A,W,N,z=x(this),S=(w=this.isoWeekYear(),A=this.$u,W=(A?h.utc:h)().year(w).startOf("year"),N=4-W.isoWeekday(),W.isoWeekday()>4&&(N+=7),W.add(N,r));return z.diff(S,"week")+1},D.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var L=D.startOf;D.startOf=function(M,w){var A=this.$utils(),W=!!A.u(w)||w;return A.p(M)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):L.bind(this)(M,w)}}})}),Fe=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=i()})(t,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,h=/\d\d/,x=/\d\d?/,D=/\d*[^-_:/,()\s\d]+/,L={},M=c(function($){return($=+$)+($>68?1900:2e3)},"a"),w=c(function($){return function(C){this[$]=+C}},"f"),A=[/[+-]\d\d:?(\d\d)?|Z/,function($){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var I=C.match(/([+-]|\d\d)/g),E=60*I[1]+(+I[2]||0);return E===0?0:I[0]==="+"?-E:E}($)}],W=c(function($){var C=L[$];return C&&(C.indexOf?C:C.s.concat(C.f))},"u"),N=c(function($,C){var I,E=L.meridiem;if(E){for(var R=1;R<=24;R+=1)if($.indexOf(E(R,0,C))>-1){I=R>12;break}}else I=$===(C?"pm":"PM");return I},"d"),z={A:[D,function($){this.afternoon=N($,!1)}],a:[D,function($){this.afternoon=N($,!0)}],Q:[n,function($){this.month=3*($-1)+1}],S:[n,function($){this.milliseconds=100*+$}],SS:[h,function($){this.milliseconds=10*+$}],SSS:[/\d{3}/,function($){this.milliseconds=+$}],s:[x,w("seconds")],ss:[x,w("seconds")],m:[x,w("minutes")],mm:[x,w("minutes")],H:[x,w("hours")],h:[x,w("hours")],HH:[x,w("hours")],hh:[x,w("hours")],D:[x,w("day")],DD:[h,w("day")],Do:[D,function($){var C=L.ordinal,I=$.match(/\d+/);if(this.day=I[0],C)for(var E=1;E<=31;E+=1)C(E).replace(/\[|\]/g,"")===$&&(this.day=E)}],w:[x,w("week")],ww:[h,w("week")],M:[x,w("month")],MM:[h,w("month")],MMM:[D,function($){var C=W("months"),I=(W("monthsShort")||C.map(function(E){return E.slice(0,3)})).indexOf($)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[D,function($){var C=W("months").indexOf($)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,w("year")],YY:[h,function($){this.year=M($)}],YYYY:[/\d{4}/,w("year")],Z:A,ZZ:A};function S($){var C,I;C=$,I=L&&L.formats;for(var E=($=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,p,m){var y=m&&m.toUpperCase();return p||I[m]||r[m]||I[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,u,d){return u||d.slice(1)})})).match(i),R=E.length,V=0;V<R;V+=1){var Y=E[V],b=z[Y],k=b&&b[0],f=b&&b[1];E[V]=f?{regex:k,parser:f}:Y.replace(/^\[|\]$/g,"")}return function(g){for(var p={},m=0,y=0;m<R;m+=1){var l=E[m];if(typeof l=="string")y+=l.length;else{var u=l.regex,d=l.parser,v=g.slice(y),e=u.exec(v)[0];d.call(p,e),g=g.replace(e,"")}}return function(a){var o=a.afternoon;if(o!==void 0){var T=a.hours;o?T<12&&(a.hours+=12):T===12&&(a.hours=0),delete a.afternoon}}(p),p}}return c(S,"l"),function($,C,I){I.p.customParseFormat=!0,$&&$.parseTwoDigitYear&&(M=$.parseTwoDigitYear);var E=C.prototype,R=E.parse;E.parse=function(V){var Y=V.date,b=V.utc,k=V.args;this.$u=b;var f=k[1];if(typeof f=="string"){var g=k[2]===!0,p=k[3]===!0,m=g||p,y=k[2];p&&(y=k[2]),L=this.$locale(),!g&&y&&(L=I.Ls[y]),this.$d=function(v,e,a,o){try{if(["x","X"].indexOf(e)>-1)return new Date((e==="X"?1e3:1)*v);var T=S(e)(v),O=T.year,_=T.month,F=T.day,P=T.hours,ft=T.minutes,H=T.seconds,X=T.milliseconds,at=T.zone,nt=T.week,kt=new Date,yt=F||(O||_?1:kt.getDate()),ot=O||kt.getFullYear(),B=0;O&&!_||(B=_>0?_-1:kt.getMonth());var tt,Q=P||0,j=ft||0,bt=H||0,et=X||0;return at?new Date(Date.UTC(ot,B,yt,Q,j,bt,et+60*at.offset*1e3)):a?new Date(Date.UTC(ot,B,yt,Q,j,bt,et)):(tt=new Date(ot,B,yt,Q,j,bt,et),nt&&(tt=o(tt).week(nt).toDate()),tt)}catch{return new Date("")}}(Y,f,b,I),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),m&&Y!=this.format(f)&&(this.$d=new Date("")),L={}}else if(f instanceof Array)for(var l=f.length,u=1;u<=l;u+=1){k[1]=f[u-1];var d=I.apply(this,k);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}u===l&&(this.$d=new Date(""))}else R.call(this,V)}}})}),Pe=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=i()})(t,function(){return function(r,i){var n=i.prototype,h=n.format;n.format=function(x){var D=this,L=this.$locale();if(!this.isValid())return h.bind(this)(x);var M=this.$utils(),w=(x||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(A){switch(A){case"Q":return Math.ceil((D.$M+1)/3);case"Do":return L.ordinal(D.$D);case"gggg":return D.weekYear();case"GGGG":return D.isoWeekYear();case"wo":return L.ordinal(D.week(),"W");case"w":case"ww":return M.s(D.week(),A==="w"?1:2,"0");case"W":case"WW":return M.s(D.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return M.s(String(D.$H===0?24:D.$H),A==="k"?1:2,"0");case"X":return Math.floor(D.$d.getTime()/1e3);case"x":return D.$d.getTime();case"z":return"["+D.offsetName()+"]";case"zzz":return"["+D.offsetName("long")+"]";default:return A}});return h.bind(this)(w)}}})}),ze=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_duration=i()})(t,function(){var r,i,n=1e3,h=6e4,x=36e5,D=864e5,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M=31536e6,w=2628e6,A=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W={years:M,months:w,days:D,hours:x,minutes:h,seconds:n,milliseconds:1,weeks:6048e5},N=c(function(Y){return Y instanceof R},"c"),z=c(function(Y,b,k){return new R(Y,k,b.$l)},"f"),S=c(function(Y){return i.p(Y)+"s"},"m"),$=c(function(Y){return Y<0},"l"),C=c(function(Y){return $(Y)?Math.ceil(Y):Math.floor(Y)},"$"),I=c(function(Y){return Math.abs(Y)},"y"),E=c(function(Y,b){return Y?$(Y)?{negative:!0,format:""+I(Y)+b}:{negative:!1,format:""+Y+b}:{negative:!1,format:""}},"v"),R=function(){function Y(k,f,g){var p=this;if(this.$d={},this.$l=g,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),f)return z(k*W[S(f)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach(function(l){p.$d[S(l)]=k[l]}),this.calMilliseconds(),this;if(typeof k=="string"){var m=k.match(A);if(m){var y=m.slice(2).map(function(l){return l!=null?Number(l):0});return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}c(Y,"l");var b=Y.prototype;return b.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce(function(f,g){return f+(k.$d[g]||0)*W[g]},0)},b.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=C(k/M),k%=M,this.$d.months=C(k/w),k%=w,this.$d.days=C(k/D),k%=D,this.$d.hours=C(k/x),k%=x,this.$d.minutes=C(k/h),k%=h,this.$d.seconds=C(k/n),k%=n,this.$d.milliseconds=k},b.toISOString=function(){var k=E(this.$d.years,"Y"),f=E(this.$d.months,"M"),g=+this.$d.days||0;this.$d.weeks&&(g+=7*this.$d.weeks);var p=E(g,"D"),m=E(this.$d.hours,"H"),y=E(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3,l=Math.round(1e3*l)/1e3);var u=E(l,"S"),d=k.negative||f.negative||p.negative||m.negative||y.negative||u.negative,v=m.format||y.format||u.format?"T":"",e=(d?"-":"")+"P"+k.format+f.format+p.format+v+m.format+y.format+u.format;return e==="P"||e==="-P"?"P0D":e},b.toJSON=function(){return this.toISOString()},b.format=function(k){var f=k||"YYYY-MM-DDTHH:mm:ss",g={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return f.replace(L,function(p,m){return m||String(g[p])})},b.as=function(k){return this.$ms/W[S(k)]},b.get=function(k){var f=this.$ms,g=S(k);return g==="milliseconds"?f%=1e3:f=g==="weeks"?C(f/W[g]):this.$d[g],f||0},b.add=function(k,f,g){var p;return p=f?k*W[S(f)]:N(k)?k.$ms:z(k,this).$ms,z(this.$ms+p*(g?-1:1),this)},b.subtract=function(k,f){return this.add(k,f,!0)},b.locale=function(k){var f=this.clone();return f.$l=k,f},b.clone=function(){return z(this.$ms,this)},b.humanize=function(k){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},Y}(),V=c(function(Y,b,k){return Y.add(b.years()*k,"y").add(b.months()*k,"M").add(b.days()*k,"d").add(b.hours()*k,"h").add(b.minutes()*k,"m").add(b.seconds()*k,"s").add(b.milliseconds()*k,"ms")},"p");return function(Y,b,k){r=k,i=k().$utils(),k.duration=function(p,m){var y=k.locale();return z(p,{$l:y},m)},k.isDuration=N;var f=b.prototype.add,g=b.prototype.subtract;b.prototype.add=function(p,m){return N(p)?V(this,p,1):f.bind(this)(p,m)},b.prototype.subtract=function(p,m){return N(p)?V(this,p,-1):g.bind(this)(p,m)}}})}),Et=function(){var t=c(function(y,l,u,d){for(u=u||{},d=y.length;d--;u[y[d]]=l);return u},"o"),s=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],i=[1,27],n=[1,28],h=[1,29],x=[1,30],D=[1,31],L=[1,32],M=[1,33],w=[1,34],A=[1,9],W=[1,10],N=[1,11],z=[1,12],S=[1,13],$=[1,14],C=[1,15],I=[1,16],E=[1,19],R=[1,20],V=[1,21],Y=[1,22],b=[1,23],k=[1,25],f=[1,35],g={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:c(function(y,l,u,d,v,e,a){var o=e.length-1;switch(v){case 1:return e[o-1];case 2:this.$=[];break;case 3:e[o-1].push(e[o]),this.$=e[o-1];break;case 4:case 5:this.$=e[o];break;case 6:case 7:this.$=[];break;case 8:d.setWeekday("monday");break;case 9:d.setWeekday("tuesday");break;case 10:d.setWeekday("wednesday");break;case 11:d.setWeekday("thursday");break;case 12:d.setWeekday("friday");break;case 13:d.setWeekday("saturday");break;case 14:d.setWeekday("sunday");break;case 15:d.setWeekend("friday");break;case 16:d.setWeekend("saturday");break;case 17:d.setDateFormat(e[o].substr(11)),this.$=e[o].substr(11);break;case 18:d.enableInclusiveEndDates(),this.$=e[o].substr(18);break;case 19:d.TopAxis(),this.$=e[o].substr(8);break;case 20:d.setAxisFormat(e[o].substr(11)),this.$=e[o].substr(11);break;case 21:d.setTickInterval(e[o].substr(13)),this.$=e[o].substr(13);break;case 22:d.setExcludes(e[o].substr(9)),this.$=e[o].substr(9);break;case 23:d.setIncludes(e[o].substr(9)),this.$=e[o].substr(9);break;case 24:d.setTodayMarker(e[o].substr(12)),this.$=e[o].substr(12);break;case 27:d.setDiagramTitle(e[o].substr(6)),this.$=e[o].substr(6);break;case 28:this.$=e[o].trim(),d.setAccTitle(this.$);break;case 29:case 30:this.$=e[o].trim(),d.setAccDescription(this.$);break;case 31:d.addSection(e[o].substr(8)),this.$=e[o].substr(8);break;case 33:d.addTask(e[o-1],e[o]),this.$="task";break;case 34:this.$=e[o-1],d.setClickEvent(e[o-1],e[o],null);break;case 35:this.$=e[o-2],d.setClickEvent(e[o-2],e[o-1],e[o]);break;case 36:this.$=e[o-2],d.setClickEvent(e[o-2],e[o-1],null),d.setLink(e[o-2],e[o]);break;case 37:this.$=e[o-3],d.setClickEvent(e[o-3],e[o-2],e[o-1]),d.setLink(e[o-3],e[o]);break;case 38:this.$=e[o-2],d.setClickEvent(e[o-2],e[o],null),d.setLink(e[o-2],e[o-1]);break;case 39:this.$=e[o-3],d.setClickEvent(e[o-3],e[o-1],e[o]),d.setLink(e[o-3],e[o-2]);break;case 40:this.$=e[o-1],d.setLink(e[o-1],e[o]);break;case 41:case 47:this.$=e[o-1]+" "+e[o];break;case 42:case 43:case 45:this.$=e[o-2]+" "+e[o-1]+" "+e[o];break;case 44:case 46:this.$=e[o-3]+" "+e[o-2]+" "+e[o-1]+" "+e[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:n,15:h,16:x,17:D,18:L,19:18,20:M,21:w,22:A,23:W,24:N,25:z,26:S,27:$,28:C,29:I,30:E,31:R,33:V,35:Y,36:b,37:24,38:k,40:f},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:r,13:i,14:n,15:h,16:x,17:D,18:L,19:18,20:M,21:w,22:A,23:W,24:N,25:z,26:S,27:$,28:C,29:I,30:E,31:R,33:V,35:Y,36:b,37:24,38:k,40:f},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:c(function(y,l){if(l.recoverable)this.trace(y);else{var u=new Error(y);throw u.hash=l,u}},"parseError"),parse:c(function(y){var l=this,u=[0],d=[],v=[null],e=[],a=this.table,o="",T=0,O=0,_=0,F=2,P=1,ft=e.slice.call(arguments,1),H=Object.create(this.lexer),X={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(X.yy[at]=this.yy[at]);H.setInput(y,X.yy),X.yy.lexer=H,X.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var nt=H.yylloc;e.push(nt);var kt=H.options&&H.options.ranges;typeof X.yy.parseError=="function"?this.parseError=X.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(U){u.length=u.length-2*U,v.length=v.length-U,e.length=e.length-U}c(yt,"popStack");function ot(){var U;return U=d.pop()||H.lex()||P,typeof U!="number"&&(U instanceof Array&&(d=U,U=d.pop()),U=l.symbols_[U]||U),U}c(ot,"lex");for(var B,tt,Q,j,bt,et,lt={},vt,Z,Vt,Tt;;){if(Q=u[u.length-1],this.defaultActions[Q]?j=this.defaultActions[Q]:((B===null||typeof B>"u")&&(B=ot()),j=a[Q]&&a[Q][B]),typeof j>"u"||!j.length||!j[0]){var Mt="";Tt=[];for(vt in a[Q])this.terminals_[vt]&&vt>F&&Tt.push("'"+this.terminals_[vt]+"'");H.showPosition?Mt="Parse error on line "+(T+1)+`:
|
|
1
|
+
import{a as ue,l as he,o as fe,n as ke,s as ye,e as me,m as c,q as dt,i as $t,F as pe,V as ge,G as xe,b as be,Z as ve,Y as Te,p as it,S as $e,H as jt,J as Ut,$ as we,K as _e,N as De,Q as Se,R as Ce,T as Me,U as Ye,_ as qt,a0 as Qt,a1 as Jt,a2 as Xt,a3 as Zt,a4 as Ee,C as Oe,u as Ae,f as st,a5 as ie,g as Ie,k as Le,a6 as Ct}from"./index-VTKdaklA.js";var We=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isoWeek=i()})(t,function(){var r="day";return function(i,n,h){var x=c(function(M){return M.add(4-M.isoWeekday(),r)},"a"),D=n.prototype;D.isoWeekYear=function(){return x(this).year()},D.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),r);var w,A,W,N,z=x(this),S=(w=this.isoWeekYear(),A=this.$u,W=(A?h.utc:h)().year(w).startOf("year"),N=4-W.isoWeekday(),W.isoWeekday()>4&&(N+=7),W.add(N,r));return z.diff(S,"week")+1},D.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var L=D.startOf;D.startOf=function(M,w){var A=this.$utils(),W=!!A.u(w)||w;return A.p(M)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):L.bind(this)(M,w)}}})}),Fe=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=i()})(t,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,h=/\d\d/,x=/\d\d?/,D=/\d*[^-_:/,()\s\d]+/,L={},M=c(function($){return($=+$)+($>68?1900:2e3)},"a"),w=c(function($){return function(C){this[$]=+C}},"f"),A=[/[+-]\d\d:?(\d\d)?|Z/,function($){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var I=C.match(/([+-]|\d\d)/g),E=60*I[1]+(+I[2]||0);return E===0?0:I[0]==="+"?-E:E}($)}],W=c(function($){var C=L[$];return C&&(C.indexOf?C:C.s.concat(C.f))},"u"),N=c(function($,C){var I,E=L.meridiem;if(E){for(var R=1;R<=24;R+=1)if($.indexOf(E(R,0,C))>-1){I=R>12;break}}else I=$===(C?"pm":"PM");return I},"d"),z={A:[D,function($){this.afternoon=N($,!1)}],a:[D,function($){this.afternoon=N($,!0)}],Q:[n,function($){this.month=3*($-1)+1}],S:[n,function($){this.milliseconds=100*+$}],SS:[h,function($){this.milliseconds=10*+$}],SSS:[/\d{3}/,function($){this.milliseconds=+$}],s:[x,w("seconds")],ss:[x,w("seconds")],m:[x,w("minutes")],mm:[x,w("minutes")],H:[x,w("hours")],h:[x,w("hours")],HH:[x,w("hours")],hh:[x,w("hours")],D:[x,w("day")],DD:[h,w("day")],Do:[D,function($){var C=L.ordinal,I=$.match(/\d+/);if(this.day=I[0],C)for(var E=1;E<=31;E+=1)C(E).replace(/\[|\]/g,"")===$&&(this.day=E)}],w:[x,w("week")],ww:[h,w("week")],M:[x,w("month")],MM:[h,w("month")],MMM:[D,function($){var C=W("months"),I=(W("monthsShort")||C.map(function(E){return E.slice(0,3)})).indexOf($)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[D,function($){var C=W("months").indexOf($)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,w("year")],YY:[h,function($){this.year=M($)}],YYYY:[/\d{4}/,w("year")],Z:A,ZZ:A};function S($){var C,I;C=$,I=L&&L.formats;for(var E=($=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,p,m){var y=m&&m.toUpperCase();return p||I[m]||r[m]||I[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,u,d){return u||d.slice(1)})})).match(i),R=E.length,V=0;V<R;V+=1){var Y=E[V],b=z[Y],k=b&&b[0],f=b&&b[1];E[V]=f?{regex:k,parser:f}:Y.replace(/^\[|\]$/g,"")}return function(g){for(var p={},m=0,y=0;m<R;m+=1){var l=E[m];if(typeof l=="string")y+=l.length;else{var u=l.regex,d=l.parser,v=g.slice(y),e=u.exec(v)[0];d.call(p,e),g=g.replace(e,"")}}return function(a){var o=a.afternoon;if(o!==void 0){var T=a.hours;o?T<12&&(a.hours+=12):T===12&&(a.hours=0),delete a.afternoon}}(p),p}}return c(S,"l"),function($,C,I){I.p.customParseFormat=!0,$&&$.parseTwoDigitYear&&(M=$.parseTwoDigitYear);var E=C.prototype,R=E.parse;E.parse=function(V){var Y=V.date,b=V.utc,k=V.args;this.$u=b;var f=k[1];if(typeof f=="string"){var g=k[2]===!0,p=k[3]===!0,m=g||p,y=k[2];p&&(y=k[2]),L=this.$locale(),!g&&y&&(L=I.Ls[y]),this.$d=function(v,e,a,o){try{if(["x","X"].indexOf(e)>-1)return new Date((e==="X"?1e3:1)*v);var T=S(e)(v),O=T.year,_=T.month,F=T.day,P=T.hours,ft=T.minutes,H=T.seconds,X=T.milliseconds,at=T.zone,nt=T.week,kt=new Date,yt=F||(O||_?1:kt.getDate()),ot=O||kt.getFullYear(),B=0;O&&!_||(B=_>0?_-1:kt.getMonth());var tt,Q=P||0,j=ft||0,bt=H||0,et=X||0;return at?new Date(Date.UTC(ot,B,yt,Q,j,bt,et+60*at.offset*1e3)):a?new Date(Date.UTC(ot,B,yt,Q,j,bt,et)):(tt=new Date(ot,B,yt,Q,j,bt,et),nt&&(tt=o(tt).week(nt).toDate()),tt)}catch{return new Date("")}}(Y,f,b,I),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),m&&Y!=this.format(f)&&(this.$d=new Date("")),L={}}else if(f instanceof Array)for(var l=f.length,u=1;u<=l;u+=1){k[1]=f[u-1];var d=I.apply(this,k);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}u===l&&(this.$d=new Date(""))}else R.call(this,V)}}})}),Pe=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=i()})(t,function(){return function(r,i){var n=i.prototype,h=n.format;n.format=function(x){var D=this,L=this.$locale();if(!this.isValid())return h.bind(this)(x);var M=this.$utils(),w=(x||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(A){switch(A){case"Q":return Math.ceil((D.$M+1)/3);case"Do":return L.ordinal(D.$D);case"gggg":return D.weekYear();case"GGGG":return D.isoWeekYear();case"wo":return L.ordinal(D.week(),"W");case"w":case"ww":return M.s(D.week(),A==="w"?1:2,"0");case"W":case"WW":return M.s(D.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return M.s(String(D.$H===0?24:D.$H),A==="k"?1:2,"0");case"X":return Math.floor(D.$d.getTime()/1e3);case"x":return D.$d.getTime();case"z":return"["+D.offsetName()+"]";case"zzz":return"["+D.offsetName("long")+"]";default:return A}});return h.bind(this)(w)}}})}),ze=Ct((t,s)=>{(function(r,i){typeof t=="object"&&typeof s<"u"?s.exports=i():typeof define=="function"&&define.amd?define(i):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_duration=i()})(t,function(){var r,i,n=1e3,h=6e4,x=36e5,D=864e5,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M=31536e6,w=2628e6,A=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W={years:M,months:w,days:D,hours:x,minutes:h,seconds:n,milliseconds:1,weeks:6048e5},N=c(function(Y){return Y instanceof R},"c"),z=c(function(Y,b,k){return new R(Y,k,b.$l)},"f"),S=c(function(Y){return i.p(Y)+"s"},"m"),$=c(function(Y){return Y<0},"l"),C=c(function(Y){return $(Y)?Math.ceil(Y):Math.floor(Y)},"$"),I=c(function(Y){return Math.abs(Y)},"y"),E=c(function(Y,b){return Y?$(Y)?{negative:!0,format:""+I(Y)+b}:{negative:!1,format:""+Y+b}:{negative:!1,format:""}},"v"),R=function(){function Y(k,f,g){var p=this;if(this.$d={},this.$l=g,k===void 0&&(this.$ms=0,this.parseFromMilliseconds()),f)return z(k*W[S(f)],this);if(typeof k=="number")return this.$ms=k,this.parseFromMilliseconds(),this;if(typeof k=="object")return Object.keys(k).forEach(function(l){p.$d[S(l)]=k[l]}),this.calMilliseconds(),this;if(typeof k=="string"){var m=k.match(A);if(m){var y=m.slice(2).map(function(l){return l!=null?Number(l):0});return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}c(Y,"l");var b=Y.prototype;return b.calMilliseconds=function(){var k=this;this.$ms=Object.keys(this.$d).reduce(function(f,g){return f+(k.$d[g]||0)*W[g]},0)},b.parseFromMilliseconds=function(){var k=this.$ms;this.$d.years=C(k/M),k%=M,this.$d.months=C(k/w),k%=w,this.$d.days=C(k/D),k%=D,this.$d.hours=C(k/x),k%=x,this.$d.minutes=C(k/h),k%=h,this.$d.seconds=C(k/n),k%=n,this.$d.milliseconds=k},b.toISOString=function(){var k=E(this.$d.years,"Y"),f=E(this.$d.months,"M"),g=+this.$d.days||0;this.$d.weeks&&(g+=7*this.$d.weeks);var p=E(g,"D"),m=E(this.$d.hours,"H"),y=E(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3,l=Math.round(1e3*l)/1e3);var u=E(l,"S"),d=k.negative||f.negative||p.negative||m.negative||y.negative||u.negative,v=m.format||y.format||u.format?"T":"",e=(d?"-":"")+"P"+k.format+f.format+p.format+v+m.format+y.format+u.format;return e==="P"||e==="-P"?"P0D":e},b.toJSON=function(){return this.toISOString()},b.format=function(k){var f=k||"YYYY-MM-DDTHH:mm:ss",g={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return f.replace(L,function(p,m){return m||String(g[p])})},b.as=function(k){return this.$ms/W[S(k)]},b.get=function(k){var f=this.$ms,g=S(k);return g==="milliseconds"?f%=1e3:f=g==="weeks"?C(f/W[g]):this.$d[g],f||0},b.add=function(k,f,g){var p;return p=f?k*W[S(f)]:N(k)?k.$ms:z(k,this).$ms,z(this.$ms+p*(g?-1:1),this)},b.subtract=function(k,f){return this.add(k,f,!0)},b.locale=function(k){var f=this.clone();return f.$l=k,f},b.clone=function(){return z(this.$ms,this)},b.humanize=function(k){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!k)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},Y}(),V=c(function(Y,b,k){return Y.add(b.years()*k,"y").add(b.months()*k,"M").add(b.days()*k,"d").add(b.hours()*k,"h").add(b.minutes()*k,"m").add(b.seconds()*k,"s").add(b.milliseconds()*k,"ms")},"p");return function(Y,b,k){r=k,i=k().$utils(),k.duration=function(p,m){var y=k.locale();return z(p,{$l:y},m)},k.isDuration=N;var f=b.prototype.add,g=b.prototype.subtract;b.prototype.add=function(p,m){return N(p)?V(this,p,1):f.bind(this)(p,m)},b.prototype.subtract=function(p,m){return N(p)?V(this,p,-1):g.bind(this)(p,m)}}})}),Et=function(){var t=c(function(y,l,u,d){for(u=u||{},d=y.length;d--;u[y[d]]=l);return u},"o"),s=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],i=[1,27],n=[1,28],h=[1,29],x=[1,30],D=[1,31],L=[1,32],M=[1,33],w=[1,34],A=[1,9],W=[1,10],N=[1,11],z=[1,12],S=[1,13],$=[1,14],C=[1,15],I=[1,16],E=[1,19],R=[1,20],V=[1,21],Y=[1,22],b=[1,23],k=[1,25],f=[1,35],g={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:c(function(y,l,u,d,v,e,a){var o=e.length-1;switch(v){case 1:return e[o-1];case 2:this.$=[];break;case 3:e[o-1].push(e[o]),this.$=e[o-1];break;case 4:case 5:this.$=e[o];break;case 6:case 7:this.$=[];break;case 8:d.setWeekday("monday");break;case 9:d.setWeekday("tuesday");break;case 10:d.setWeekday("wednesday");break;case 11:d.setWeekday("thursday");break;case 12:d.setWeekday("friday");break;case 13:d.setWeekday("saturday");break;case 14:d.setWeekday("sunday");break;case 15:d.setWeekend("friday");break;case 16:d.setWeekend("saturday");break;case 17:d.setDateFormat(e[o].substr(11)),this.$=e[o].substr(11);break;case 18:d.enableInclusiveEndDates(),this.$=e[o].substr(18);break;case 19:d.TopAxis(),this.$=e[o].substr(8);break;case 20:d.setAxisFormat(e[o].substr(11)),this.$=e[o].substr(11);break;case 21:d.setTickInterval(e[o].substr(13)),this.$=e[o].substr(13);break;case 22:d.setExcludes(e[o].substr(9)),this.$=e[o].substr(9);break;case 23:d.setIncludes(e[o].substr(9)),this.$=e[o].substr(9);break;case 24:d.setTodayMarker(e[o].substr(12)),this.$=e[o].substr(12);break;case 27:d.setDiagramTitle(e[o].substr(6)),this.$=e[o].substr(6);break;case 28:this.$=e[o].trim(),d.setAccTitle(this.$);break;case 29:case 30:this.$=e[o].trim(),d.setAccDescription(this.$);break;case 31:d.addSection(e[o].substr(8)),this.$=e[o].substr(8);break;case 33:d.addTask(e[o-1],e[o]),this.$="task";break;case 34:this.$=e[o-1],d.setClickEvent(e[o-1],e[o],null);break;case 35:this.$=e[o-2],d.setClickEvent(e[o-2],e[o-1],e[o]);break;case 36:this.$=e[o-2],d.setClickEvent(e[o-2],e[o-1],null),d.setLink(e[o-2],e[o]);break;case 37:this.$=e[o-3],d.setClickEvent(e[o-3],e[o-2],e[o-1]),d.setLink(e[o-3],e[o]);break;case 38:this.$=e[o-2],d.setClickEvent(e[o-2],e[o],null),d.setLink(e[o-2],e[o-1]);break;case 39:this.$=e[o-3],d.setClickEvent(e[o-3],e[o-1],e[o]),d.setLink(e[o-3],e[o-2]);break;case 40:this.$=e[o-1],d.setLink(e[o-1],e[o]);break;case 41:case 47:this.$=e[o-1]+" "+e[o];break;case 42:case 43:case 45:this.$=e[o-2]+" "+e[o-1]+" "+e[o];break;case 44:case 46:this.$=e[o-3]+" "+e[o-2]+" "+e[o-1]+" "+e[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:n,15:h,16:x,17:D,18:L,19:18,20:M,21:w,22:A,23:W,24:N,25:z,26:S,27:$,28:C,29:I,30:E,31:R,33:V,35:Y,36:b,37:24,38:k,40:f},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:r,13:i,14:n,15:h,16:x,17:D,18:L,19:18,20:M,21:w,22:A,23:W,24:N,25:z,26:S,27:$,28:C,29:I,30:E,31:R,33:V,35:Y,36:b,37:24,38:k,40:f},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:c(function(y,l){if(l.recoverable)this.trace(y);else{var u=new Error(y);throw u.hash=l,u}},"parseError"),parse:c(function(y){var l=this,u=[0],d=[],v=[null],e=[],a=this.table,o="",T=0,O=0,_=0,F=2,P=1,ft=e.slice.call(arguments,1),H=Object.create(this.lexer),X={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(X.yy[at]=this.yy[at]);H.setInput(y,X.yy),X.yy.lexer=H,X.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var nt=H.yylloc;e.push(nt);var kt=H.options&&H.options.ranges;typeof X.yy.parseError=="function"?this.parseError=X.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(U){u.length=u.length-2*U,v.length=v.length-U,e.length=e.length-U}c(yt,"popStack");function ot(){var U;return U=d.pop()||H.lex()||P,typeof U!="number"&&(U instanceof Array&&(d=U,U=d.pop()),U=l.symbols_[U]||U),U}c(ot,"lex");for(var B,tt,Q,j,bt,et,lt={},vt,Z,Vt,Tt;;){if(Q=u[u.length-1],this.defaultActions[Q]?j=this.defaultActions[Q]:((B===null||typeof B>"u")&&(B=ot()),j=a[Q]&&a[Q][B]),typeof j>"u"||!j.length||!j[0]){var Mt="";Tt=[];for(vt in a[Q])this.terminals_[vt]&&vt>F&&Tt.push("'"+this.terminals_[vt]+"'");H.showPosition?Mt="Parse error on line "+(T+1)+`:
|
|
2
2
|
`+H.showPosition()+`
|
|
3
3
|
Expecting `+Tt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Mt="Parse error on line "+(T+1)+": Unexpected "+(B==P?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Mt,{text:H.match,token:this.terminals_[B]||B,line:H.yylineno,loc:nt,expected:Tt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+B);switch(j[0]){case 1:u.push(B),v.push(H.yytext),e.push(H.yylloc),u.push(j[1]),B=null,tt?(B=tt,tt=null):(O=H.yyleng,o=H.yytext,T=H.yylineno,nt=H.yylloc,_>0);break;case 2:if(Z=this.productions_[j[1]][1],lt.$=v[v.length-Z],lt._$={first_line:e[e.length-(Z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Z||1)].first_column,last_column:e[e.length-1].last_column},kt&&(lt._$.range=[e[e.length-(Z||1)].range[0],e[e.length-1].range[1]]),et=this.performAction.apply(lt,[o,O,T,X.yy,j[1],v,e].concat(ft)),typeof et<"u")return et;Z&&(u=u.slice(0,-1*Z*2),v=v.slice(0,-1*Z),e=e.slice(0,-1*Z)),u.push(this.productions_[j[1]][0]),v.push(lt.$),e.push(lt._$),Vt=a[u[u.length-2]][u[u.length-1]],u.push(Vt);break;case 3:return!0}}return!0},"parse")},p=function(){var y={EOF:1,parseError:c(function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},"parseError"),setInput:c(function(l,u){return this.yy=u||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:c(function(l){var u=l.length,d=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var v=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===v.length?this.yylloc.first_column:0)+v[v.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(l){this.unput(this.match.slice(l))},"less"),pastInput:c(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as lt}from"./chunk-T5OCTHI4-CZYMg5sc.js";import{c as ht}from"./chunk-JQRUD6KW-DAwg-yCU.js";import{d as $t}from"./wardley-L42UT6IY-5TKZOOLJ-DZr11zBG.js";import{o as mt,n as gt,l as pt,a as ft,s as yt,e as xt,m as h,I as Q,p as k,i as ut,q as F,k as bt,z as wt,u as kt,C as M,L as Bt,E as Et,O as Ct}from"./index-B5WxtMpv.js";var u={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Lt=Et.gitGraph,W=h(()=>Bt({...Lt,...Q().gitGraph}),"getConfig"),c=new lt(()=>{let t=W(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function V(){return Ct({length:7})}h(V,"getID");function et(t,r){let e=Object.create(null);return t.reduce((i,n)=>{let d=r(n);return e[d]||(e[d]=!0,i.push(n)),i},[])}h(et,"uniqBy");var Tt=h(function(t){c.records.direction=t},"setDirection"),Mt=h(function(t){k.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{c.records.options=JSON.parse(t)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),vt=h(function(){return c.records.options},"getOptions"),It=h(function(t){let r=t.msg,e=t.id,i=t.type,n=t.tags;k.info("commit",r,e,i,n),k.debug("Entering commit:",r,e,i,n);let d=W();e=M.sanitizeText(e,d),r=M.sanitizeText(r,d),n=n==null?void 0:n.map(o=>M.sanitizeText(o,d));let a={id:e||c.records.seq+"-"+V(),message:r,seq:c.records.seq++,type:i??u.NORMAL,tags:n??[],parents:c.records.head==null?[]:[c.records.head.id],branch:c.records.currBranch};c.records.head=a,k.info("main branch",d.mainBranchName),c.records.commits.has(a.id)&&k.warn(`Commit ID ${a.id} already exists`),c.records.commits.set(a.id,a),c.records.branches.set(c.records.currBranch,a.id),k.debug("in pushCommit "+a.id)},"commit"),Rt=h(function(t){let r=t.name,e=t.order;if(r=M.sanitizeText(r,W()),c.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);c.records.branches.set(r,c.records.head!=null?c.records.head.id:null),c.records.branchConfig.set(r,{name:r,order:e}),ot(r),k.debug("in createBranch")},"branch"),Ot=h(t=>{let r=t.branch,e=t.id,i=t.type,n=t.tags,d=W();r=M.sanitizeText(r,d),e&&(e=M.sanitizeText(e,d));let a=c.records.branches.get(c.records.currBranch),o=c.records.branches.get(r),l=a?c.records.commits.get(a):void 0,m=o?c.records.commits.get(o):void 0;if(l&&m&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(c.records.currBranch===r){let s=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},s}if(l===void 0||!l){let s=new Error(`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`);throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},s}if(!c.records.branches.has(r)){let s=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},s}if(m===void 0||!m){let s=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},s}if(l===m){let s=new Error('Incorrect usage of "merge". Both branches have same head');throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},s}if(e&&c.records.commits.has(e)){let s=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw s.hash={text:`merge ${r} ${e} ${i} ${n==null?void 0:n.join(" ")}`,token:`merge ${r} ${e} ${i} ${n==null?void 0:n.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${i} ${n==null?void 0:n.join(" ")}`]},s}let g=o||"",$={id:e||`${c.records.seq}-${V()}`,message:`merged branch ${r} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,g],branch:c.records.currBranch,type:u.MERGE,customType:i,customId:!!e,tags:n??[]};c.records.head=$,c.records.commits.set($.id,$),c.records.branches.set(c.records.currBranch,$.id),k.debug(c.records.branches),k.debug("in mergeBranch")},"merge"),Pt=h(function(t){let r=t.id,e=t.targetId,i=t.tags,n=t.parent;k.debug("Entering cherryPick:",r,e,i);let d=W();if(r=M.sanitizeText(r,d),e=M.sanitizeText(e,d),i=i==null?void 0:i.map(l=>M.sanitizeText(l,d)),n=M.sanitizeText(n,d),!r||!c.records.commits.has(r)){let l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},l}let a=c.records.commits.get(r);if(a===void 0||!a)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&!(Array.isArray(a.parents)&&a.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=a.branch;if(a.type===u.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!c.records.commits.has(e)){if(o===c.records.currBranch){let $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let l=c.records.branches.get(c.records.currBranch);if(l===void 0||!l){let $=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let m=c.records.commits.get(l);if(m===void 0||!m){let $=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let g={id:c.records.seq+"-"+V(),message:`cherry-picked ${a==null?void 0:a.message} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,a.id],branch:c.records.currBranch,type:u.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${a.id}${a.type===u.MERGE?`|parent:${n}`:""}`]};c.records.head=g,c.records.commits.set(g.id,g),c.records.branches.set(c.records.currBranch,g.id),k.debug(c.records.branches),k.debug("in cherryPick")}},"cherryPick"),ot=h(function(t){if(t=M.sanitizeText(t,W()),c.records.branches.has(t)){c.records.currBranch=t;let r=c.records.branches.get(c.records.currBranch);r===void 0||!r?c.records.head=null:c.records.head=c.records.commits.get(r)??null}else{let r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function U(t,r,e){let i=t.indexOf(r);i===-1?t.push(e):t.splice(i,1,e)}h(U,"upsert");function X(t){let r=t.reduce((n,d)=>n.seq>d.seq?n:d,t[0]),e="";t.forEach(function(n){n===r?e+=" *":e+=" |"});let i=[e,r.id,r.seq];for(let n in c.records.branches)c.records.branches.get(n)===r.id&&i.push(n);if(k.debug(i.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let n=c.records.commits.get(r.parents[0]);U(t,r,n),r.parents[1]&&t.push(c.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){let n=c.records.commits.get(r.parents[0]);U(t,r,n)}}t=et(t,n=>n.id),X(t)}h(X,"prettyPrintCommitHistory");var At=h(function(){k.debug(c.records.commits);let t=at()[0];X([t])},"prettyPrint"),Gt=h(function(){c.reset(),kt()},"clear"),St=h(function(){return[...c.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),Ht=h(function(){return c.records.branches},"getBranches"),Wt=h(function(){return c.records.commits},"getCommits"),at=h(function(){let t=[...c.records.commits.values()];return t.forEach(function(r){k.debug(r.id)}),t.sort((r,e)=>r.seq-e.seq),t},"getCommitsArray"),qt=h(function(){return c.records.currBranch},"getCurrentBranch"),zt=h(function(){return c.records.direction},"getDirection"),_t=h(function(){return c.records.head},"getHead"),it={commitType:u,getConfig:W,setDirection:Tt,setOptions:Mt,getOptions:vt,commit:It,branch:Rt,merge:Ot,cherryPick:Pt,checkout:ot,prettyPrint:At,clear:Gt,getBranchesAsObjArray:St,getBranches:Ht,getCommits:Wt,getCommitsArray:at,getCurrentBranch:qt,getDirection:zt,getHead:_t,setAccTitle:xt,getAccTitle:yt,getAccDescription:ft,setAccDescription:pt,setDiagramTitle:gt,getDiagramTitle:mt},Dt=h((t,r)=>{ht(t,r),t.dir&&r.setDirection(t.dir);for(let e of t.statements)Ft(e,r)},"populate"),Ft=h((t,r)=>{let e={Commit:h(i=>r.commit(Nt(i)),"Commit"),Branch:h(i=>r.branch(jt(i)),"Branch"),Merge:h(i=>r.merge(Kt(i)),"Merge"),Checkout:h(i=>r.checkout(Vt(i)),"Checkout"),CherryPicking:h(i=>r.cherryPick(Yt(i)),"CherryPicking")}[t.$type];e?e(t):k.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Nt=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?u[t.type]:u.NORMAL,tags:t.tags??void 0}),"parseCommit"),jt=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Kt=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?u[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Vt=h(t=>t.branch,"parseCheckout"),Yt=h(t=>{var r;return{id:t.id,targetId:"",tags:((r=t.tags)==null?void 0:r.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Ut={parse:h(async t=>{let r=await $t("gitGraph",t);k.debug(r),Dt(r,it)},"parse")},P=10,A=40,v=4,I=2,S=8,Y=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,Z=new Set(["redux-color","redux-dark-color"]),Jt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),L=new Map,T=new Map,j=30,_=new Map,K=[],R=0,f="LR",Qt=h(()=>{L.clear(),T.clear(),_.clear(),R=0,K=[],f="LR"},"clear"),nt=h(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(e=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=e.trim(),r.appendChild(i)}),r},"drawText"),st=h(t=>{let r,e,i;return f==="BT"?(e=h((n,d)=>n<=d,"comparisonFunc"),i=1/0):(e=h((n,d)=>n>=d,"comparisonFunc"),i=0),t.forEach(n=>{var a,o;let d=f==="TB"||f=="BT"?(a=T.get(n))==null?void 0:a.y:(o=T.get(n))==null?void 0:o.x;d!==void 0&&e(d,i)&&(r=n,i=d)}),r},"findClosestParent"),Xt=h(t=>{let r="",e=1/0;return t.forEach(i=>{let n=T.get(i).y;n<=e&&(r=i,e=n)}),r||void 0},"findClosestParentBT"),Zt=h((t,r,e)=>{let i=e,n=e,d=[];t.forEach(a=>{let o=r.get(a);if(!o)throw new Error(`Commit not found for key ${a}`);o.parents.length?(i=rr(o),n=Math.max(i,n)):d.push(o),er(o,i)}),i=n,d.forEach(a=>{or(a,i,e)}),t.forEach(a=>{let o=r.get(a);if(o!=null&&o.parents.length){let l=Xt(o.parents);i=T.get(l).y-A,i<=n&&(n=i);let m=L.get(o.branch).pos,g=i-P;T.set(o.id,{x:m,y:g})}})},"setParallelBTPos"),tr=h(t=>{var i;let r=st(t.parents.filter(n=>n!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);let e=(i=T.get(r))==null?void 0:i.y;if(e===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return e},"findClosestParentPos"),rr=h(t=>tr(t)+A,"calculateCommitPosition"),er=h((t,r)=>{let e=L.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);let i=e.pos,n=r+P;return T.set(t.id,{x:i,y:n}),{x:i,y:n}},"setCommitPosition"),or=h((t,r,e)=>{let i=L.get(t.branch);if(!i)throw new Error(`Branch not found for commit ${t.id}`);let n=r+e,d=i.pos;T.set(t.id,{x:d,y:n})},"setRootPosition"),ar=h((t,r,e,i,n,d)=>{let{theme:a}=F(),o=Y.has(a??""),l=Z.has(a??""),m=Jt.has(a??"");if(d===u.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(o?3:0)).attr("y",e.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${H(n,S,l)} ${i}-outer`),t.append("rect").attr("x",e.x-6+(o?2:0)).attr("y",e.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${H(n,S,l)} ${i}-inner`);else if(d===u.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${i}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",o?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",o?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`);else{let g=t.append("circle");if(g.attr("cx",e.x),g.attr("cy",e.y),g.attr("r",o?7:10),g.attr("class",`commit ${r.id} commit${H(n,S,l)}`),d===u.MERGE){let $=t.append("circle");$.attr("cx",e.x),$.attr("cy",e.y),$.attr("r",o?5:6),$.attr("class",`commit ${i} ${r.id} commit${H(n,S,l)}`)}if(d===u.REVERSE){let $=t.append("path"),s=o?4:5;$.attr("d",`M ${e.x-s},${e.y-s}L${e.x+s},${e.y+s}M${e.x-s},${e.y+s}L${e.x+s},${e.y-s}`).attr("class",`commit ${i} ${r.id} commit${H(n,S,l)}`)}}},"drawCommitBullet"),ir=h((t,r,e,i,n)=>{var d;if(r.type!==u.CHERRY_PICK&&(r.customId&&r.type===u.MERGE||r.type!==u.MERGE)&&n.showCommitLabel){let a=t.append("g"),o=a.insert("rect").attr("class","commit-label-bkg"),l=a.append("text").attr("x",i).attr("y",e.y+25).attr("class","commit-label").text(r.id),m=(d=l.node())==null?void 0:d.getBBox();if(m&&(o.attr("x",e.posWithOffset-m.width/2-I).attr("y",e.y+13.5).attr("width",m.width+2*I).attr("height",m.height+2*I),f==="TB"||f==="BT"?(o.attr("x",e.x-(m.width+4*v+5)).attr("y",e.y-12),l.attr("x",e.x-(m.width+4*v)).attr("y",e.y+m.height-12)):l.attr("x",e.posWithOffset-m.width/2),n.rotateCommitLabel))if(f==="TB"||f==="BT")l.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),o.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{let g=-7.5-(m.width+10)/25*9.5,$=10+m.width/25*8.5;a.attr("transform","translate("+g+", "+$+") rotate(-45, "+i+", "+e.y+")")}}},"drawCommitLabel"),nr=h((t,r,e,i)=>{var n;if(r.tags.length>0){let d=0,a=0,o=0,l=[];for(let m of r.tags.reverse()){let g=t.insert("polygon"),$=t.append("circle"),s=t.append("text").attr("y",e.y-16-d).attr("class","tag-label").text(m),y=(n=s.node())==null?void 0:n.getBBox();if(!y)throw new Error("Tag bbox not found");a=Math.max(a,y.width),o=Math.max(o,y.height),s.attr("x",e.posWithOffset-y.width/2),l.push({tag:s,hole:$,rect:g,yOffset:d}),d+=20}for(let{tag:m,hole:g,rect:$,yOffset:s}of l){let y=o/2,p=e.y-19.2-s;if($.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{s as lt}from"./chunk-T5OCTHI4-B2tIcggA.js";import{c as ht}from"./chunk-JQRUD6KW-3F8Zg-1N.js";import{d as $t}from"./wardley-L42UT6IY-5TKZOOLJ-C-ZcgEBb.js";import{o as mt,n as gt,l as pt,a as ft,s as yt,e as xt,m as h,I as Q,p as k,i as ut,q as F,k as bt,z as wt,u as kt,C as M,L as Bt,E as Et,O as Ct}from"./index-VTKdaklA.js";var u={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Lt=Et.gitGraph,W=h(()=>Bt({...Lt,...Q().gitGraph}),"getConfig"),c=new lt(()=>{let t=W(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function V(){return Ct({length:7})}h(V,"getID");function et(t,r){let e=Object.create(null);return t.reduce((i,n)=>{let d=r(n);return e[d]||(e[d]=!0,i.push(n)),i},[])}h(et,"uniqBy");var Tt=h(function(t){c.records.direction=t},"setDirection"),Mt=h(function(t){k.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{c.records.options=JSON.parse(t)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),vt=h(function(){return c.records.options},"getOptions"),It=h(function(t){let r=t.msg,e=t.id,i=t.type,n=t.tags;k.info("commit",r,e,i,n),k.debug("Entering commit:",r,e,i,n);let d=W();e=M.sanitizeText(e,d),r=M.sanitizeText(r,d),n=n==null?void 0:n.map(o=>M.sanitizeText(o,d));let a={id:e||c.records.seq+"-"+V(),message:r,seq:c.records.seq++,type:i??u.NORMAL,tags:n??[],parents:c.records.head==null?[]:[c.records.head.id],branch:c.records.currBranch};c.records.head=a,k.info("main branch",d.mainBranchName),c.records.commits.has(a.id)&&k.warn(`Commit ID ${a.id} already exists`),c.records.commits.set(a.id,a),c.records.branches.set(c.records.currBranch,a.id),k.debug("in pushCommit "+a.id)},"commit"),Rt=h(function(t){let r=t.name,e=t.order;if(r=M.sanitizeText(r,W()),c.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);c.records.branches.set(r,c.records.head!=null?c.records.head.id:null),c.records.branchConfig.set(r,{name:r,order:e}),ot(r),k.debug("in createBranch")},"branch"),Ot=h(t=>{let r=t.branch,e=t.id,i=t.type,n=t.tags,d=W();r=M.sanitizeText(r,d),e&&(e=M.sanitizeText(e,d));let a=c.records.branches.get(c.records.currBranch),o=c.records.branches.get(r),l=a?c.records.commits.get(a):void 0,m=o?c.records.commits.get(o):void 0;if(l&&m&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(c.records.currBranch===r){let s=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},s}if(l===void 0||!l){let s=new Error(`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`);throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},s}if(!c.records.branches.has(r)){let s=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},s}if(m===void 0||!m){let s=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},s}if(l===m){let s=new Error('Incorrect usage of "merge". Both branches have same head');throw s.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},s}if(e&&c.records.commits.has(e)){let s=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw s.hash={text:`merge ${r} ${e} ${i} ${n==null?void 0:n.join(" ")}`,token:`merge ${r} ${e} ${i} ${n==null?void 0:n.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${i} ${n==null?void 0:n.join(" ")}`]},s}let g=o||"",$={id:e||`${c.records.seq}-${V()}`,message:`merged branch ${r} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,g],branch:c.records.currBranch,type:u.MERGE,customType:i,customId:!!e,tags:n??[]};c.records.head=$,c.records.commits.set($.id,$),c.records.branches.set(c.records.currBranch,$.id),k.debug(c.records.branches),k.debug("in mergeBranch")},"merge"),Pt=h(function(t){let r=t.id,e=t.targetId,i=t.tags,n=t.parent;k.debug("Entering cherryPick:",r,e,i);let d=W();if(r=M.sanitizeText(r,d),e=M.sanitizeText(e,d),i=i==null?void 0:i.map(l=>M.sanitizeText(l,d)),n=M.sanitizeText(n,d),!r||!c.records.commits.has(r)){let l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},l}let a=c.records.commits.get(r);if(a===void 0||!a)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&!(Array.isArray(a.parents)&&a.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=a.branch;if(a.type===u.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!c.records.commits.has(e)){if(o===c.records.currBranch){let $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let l=c.records.branches.get(c.records.currBranch);if(l===void 0||!l){let $=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let m=c.records.commits.get(l);if(m===void 0||!m){let $=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},$}let g={id:c.records.seq+"-"+V(),message:`cherry-picked ${a==null?void 0:a.message} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,a.id],branch:c.records.currBranch,type:u.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${a.id}${a.type===u.MERGE?`|parent:${n}`:""}`]};c.records.head=g,c.records.commits.set(g.id,g),c.records.branches.set(c.records.currBranch,g.id),k.debug(c.records.branches),k.debug("in cherryPick")}},"cherryPick"),ot=h(function(t){if(t=M.sanitizeText(t,W()),c.records.branches.has(t)){c.records.currBranch=t;let r=c.records.branches.get(c.records.currBranch);r===void 0||!r?c.records.head=null:c.records.head=c.records.commits.get(r)??null}else{let r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function U(t,r,e){let i=t.indexOf(r);i===-1?t.push(e):t.splice(i,1,e)}h(U,"upsert");function X(t){let r=t.reduce((n,d)=>n.seq>d.seq?n:d,t[0]),e="";t.forEach(function(n){n===r?e+=" *":e+=" |"});let i=[e,r.id,r.seq];for(let n in c.records.branches)c.records.branches.get(n)===r.id&&i.push(n);if(k.debug(i.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let n=c.records.commits.get(r.parents[0]);U(t,r,n),r.parents[1]&&t.push(c.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){let n=c.records.commits.get(r.parents[0]);U(t,r,n)}}t=et(t,n=>n.id),X(t)}h(X,"prettyPrintCommitHistory");var At=h(function(){k.debug(c.records.commits);let t=at()[0];X([t])},"prettyPrint"),Gt=h(function(){c.reset(),kt()},"clear"),St=h(function(){return[...c.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),Ht=h(function(){return c.records.branches},"getBranches"),Wt=h(function(){return c.records.commits},"getCommits"),at=h(function(){let t=[...c.records.commits.values()];return t.forEach(function(r){k.debug(r.id)}),t.sort((r,e)=>r.seq-e.seq),t},"getCommitsArray"),qt=h(function(){return c.records.currBranch},"getCurrentBranch"),zt=h(function(){return c.records.direction},"getDirection"),_t=h(function(){return c.records.head},"getHead"),it={commitType:u,getConfig:W,setDirection:Tt,setOptions:Mt,getOptions:vt,commit:It,branch:Rt,merge:Ot,cherryPick:Pt,checkout:ot,prettyPrint:At,clear:Gt,getBranchesAsObjArray:St,getBranches:Ht,getCommits:Wt,getCommitsArray:at,getCurrentBranch:qt,getDirection:zt,getHead:_t,setAccTitle:xt,getAccTitle:yt,getAccDescription:ft,setAccDescription:pt,setDiagramTitle:gt,getDiagramTitle:mt},Dt=h((t,r)=>{ht(t,r),t.dir&&r.setDirection(t.dir);for(let e of t.statements)Ft(e,r)},"populate"),Ft=h((t,r)=>{let e={Commit:h(i=>r.commit(Nt(i)),"Commit"),Branch:h(i=>r.branch(jt(i)),"Branch"),Merge:h(i=>r.merge(Kt(i)),"Merge"),Checkout:h(i=>r.checkout(Vt(i)),"Checkout"),CherryPicking:h(i=>r.cherryPick(Yt(i)),"CherryPicking")}[t.$type];e?e(t):k.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Nt=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?u[t.type]:u.NORMAL,tags:t.tags??void 0}),"parseCommit"),jt=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Kt=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?u[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Vt=h(t=>t.branch,"parseCheckout"),Yt=h(t=>{var r;return{id:t.id,targetId:"",tags:((r=t.tags)==null?void 0:r.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Ut={parse:h(async t=>{let r=await $t("gitGraph",t);k.debug(r),Dt(r,it)},"parse")},P=10,A=40,v=4,I=2,S=8,Y=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,Z=new Set(["redux-color","redux-dark-color"]),Jt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),L=new Map,T=new Map,j=30,_=new Map,K=[],R=0,f="LR",Qt=h(()=>{L.clear(),T.clear(),_.clear(),R=0,K=[],f="LR"},"clear"),nt=h(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(e=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=e.trim(),r.appendChild(i)}),r},"drawText"),st=h(t=>{let r,e,i;return f==="BT"?(e=h((n,d)=>n<=d,"comparisonFunc"),i=1/0):(e=h((n,d)=>n>=d,"comparisonFunc"),i=0),t.forEach(n=>{var a,o;let d=f==="TB"||f=="BT"?(a=T.get(n))==null?void 0:a.y:(o=T.get(n))==null?void 0:o.x;d!==void 0&&e(d,i)&&(r=n,i=d)}),r},"findClosestParent"),Xt=h(t=>{let r="",e=1/0;return t.forEach(i=>{let n=T.get(i).y;n<=e&&(r=i,e=n)}),r||void 0},"findClosestParentBT"),Zt=h((t,r,e)=>{let i=e,n=e,d=[];t.forEach(a=>{let o=r.get(a);if(!o)throw new Error(`Commit not found for key ${a}`);o.parents.length?(i=rr(o),n=Math.max(i,n)):d.push(o),er(o,i)}),i=n,d.forEach(a=>{or(a,i,e)}),t.forEach(a=>{let o=r.get(a);if(o!=null&&o.parents.length){let l=Xt(o.parents);i=T.get(l).y-A,i<=n&&(n=i);let m=L.get(o.branch).pos,g=i-P;T.set(o.id,{x:m,y:g})}})},"setParallelBTPos"),tr=h(t=>{var i;let r=st(t.parents.filter(n=>n!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);let e=(i=T.get(r))==null?void 0:i.y;if(e===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return e},"findClosestParentPos"),rr=h(t=>tr(t)+A,"calculateCommitPosition"),er=h((t,r)=>{let e=L.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);let i=e.pos,n=r+P;return T.set(t.id,{x:i,y:n}),{x:i,y:n}},"setCommitPosition"),or=h((t,r,e)=>{let i=L.get(t.branch);if(!i)throw new Error(`Branch not found for commit ${t.id}`);let n=r+e,d=i.pos;T.set(t.id,{x:d,y:n})},"setRootPosition"),ar=h((t,r,e,i,n,d)=>{let{theme:a}=F(),o=Y.has(a??""),l=Z.has(a??""),m=Jt.has(a??"");if(d===u.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(o?3:0)).attr("y",e.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${H(n,S,l)} ${i}-outer`),t.append("rect").attr("x",e.x-6+(o?2:0)).attr("y",e.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${H(n,S,l)} ${i}-inner`);else if(d===u.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${i}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",o?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",o?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${i}`);else{let g=t.append("circle");if(g.attr("cx",e.x),g.attr("cy",e.y),g.attr("r",o?7:10),g.attr("class",`commit ${r.id} commit${H(n,S,l)}`),d===u.MERGE){let $=t.append("circle");$.attr("cx",e.x),$.attr("cy",e.y),$.attr("r",o?5:6),$.attr("class",`commit ${i} ${r.id} commit${H(n,S,l)}`)}if(d===u.REVERSE){let $=t.append("path"),s=o?4:5;$.attr("d",`M ${e.x-s},${e.y-s}L${e.x+s},${e.y+s}M${e.x-s},${e.y+s}L${e.x+s},${e.y-s}`).attr("class",`commit ${i} ${r.id} commit${H(n,S,l)}`)}}},"drawCommitBullet"),ir=h((t,r,e,i,n)=>{var d;if(r.type!==u.CHERRY_PICK&&(r.customId&&r.type===u.MERGE||r.type!==u.MERGE)&&n.showCommitLabel){let a=t.append("g"),o=a.insert("rect").attr("class","commit-label-bkg"),l=a.append("text").attr("x",i).attr("y",e.y+25).attr("class","commit-label").text(r.id),m=(d=l.node())==null?void 0:d.getBBox();if(m&&(o.attr("x",e.posWithOffset-m.width/2-I).attr("y",e.y+13.5).attr("width",m.width+2*I).attr("height",m.height+2*I),f==="TB"||f==="BT"?(o.attr("x",e.x-(m.width+4*v+5)).attr("y",e.y-12),l.attr("x",e.x-(m.width+4*v)).attr("y",e.y+m.height-12)):l.attr("x",e.posWithOffset-m.width/2),n.rotateCommitLabel))if(f==="TB"||f==="BT")l.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),o.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{let g=-7.5-(m.width+10)/25*9.5,$=10+m.width/25*8.5;a.attr("transform","translate("+g+", "+$+") rotate(-45, "+i+", "+e.y+")")}}},"drawCommitLabel"),nr=h((t,r,e,i)=>{var n;if(r.tags.length>0){let d=0,a=0,o=0,l=[];for(let m of r.tags.reverse()){let g=t.insert("polygon"),$=t.append("circle"),s=t.append("text").attr("y",e.y-16-d).attr("class","tag-label").text(m),y=(n=s.node())==null?void 0:n.getBBox();if(!y)throw new Error("Tag bbox not found");a=Math.max(a,y.width),o=Math.max(o,y.height),s.attr("x",e.posWithOffset-y.width/2),l.push({tag:s,hole:$,rect:g,yOffset:d}),d+=20}for(let{tag:m,hole:g,rect:$,yOffset:s}of l){let y=o/2,p=e.y-19.2-s;if($.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${i-a/2-v/2},${p+I}
|
|
3
3
|
${i-a/2-v/2},${p-I}
|
|
4
4
|
${e.posWithOffset-a/2-v},${p-y-I}
|