@codragraph/cli 2.1.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +18 -13
  2. package/dist/cli/analyze.d.ts +9 -4
  3. package/dist/cli/analyze.js +37 -13
  4. package/dist/cli/index.js +9 -3
  5. package/dist/cli/status.d.ts +1 -1
  6. package/dist/cli/status.js +8 -0
  7. package/dist/cli/tool.d.ts +10 -2
  8. package/dist/cli/tool.js +27 -6
  9. package/dist/core/adaptive-profile.d.ts +52 -0
  10. package/dist/core/adaptive-profile.js +180 -0
  11. package/dist/core/cgdb/cgdb-adapter.d.ts +34 -5
  12. package/dist/core/cgdb/cgdb-adapter.js +418 -5
  13. package/dist/core/cgdb/pool-adapter.js +1 -1
  14. package/dist/core/ingestion/pipeline-phases/parse-impl.js +3 -1
  15. package/dist/core/ingestion/pipeline-phases/structure.js +19 -3
  16. package/dist/core/ingestion/pipeline.d.ts +10 -0
  17. package/dist/core/run-analyze.d.ts +27 -2
  18. package/dist/core/run-analyze.js +598 -27
  19. package/dist/core/search/bm25-index.d.ts +19 -0
  20. package/dist/core/search/bm25-index.js +68 -29
  21. package/dist/mcp/local/local-backend.js +6 -3
  22. package/dist/storage/repo-manager.d.ts +29 -0
  23. package/dist/web/assets/__vite-browser-external-BIHI7g3E.js +1 -0
  24. package/dist/web/assets/agent-DcdaQnmu.js +1104 -0
  25. package/dist/web/assets/architectureDiagram-UL44E2DR-DFSpa3Hb.js +36 -0
  26. package/dist/web/assets/blockDiagram-7IZFK4PR-DlFaxH1b.js +132 -0
  27. package/dist/web/assets/{c4Diagram-DFAF54RM-C4Hl3J2U.js → c4Diagram-Y2BXMSZH-BjJ_Yrim.js} +1 -1
  28. package/dist/web/assets/{chunk-7RZVMHOQ-BitYcNVR.js → chunk-3SSMPTDK-KGZSzG3Y.js} +1 -1
  29. package/dist/web/assets/{chunk-TBF5ZNIQ-DL5stGM1.js → chunk-6764PJDD-p1sGJgVm.js} +1 -1
  30. package/dist/web/assets/{chunk-KSICW3F5-BYzvDLNI.js → chunk-AZZRMDJM-DIDkQA4V.js} +1 -1
  31. package/dist/web/assets/{chunk-AEOMTBSW-BgTIXPsY.js → chunk-JQRUD6KW-DAwg-yCU.js} +1 -1
  32. package/dist/web/assets/chunk-KRXBNO2N-ChVO_XdS.js +1 -0
  33. package/dist/web/assets/chunk-LCXTWHL2-DGYdb_Eh.js +231 -0
  34. package/dist/web/assets/{chunk-O5ABG6QK-dHwHzA6n.js → chunk-LII3EMHJ-Bzh9SNgD.js} +1 -1
  35. package/dist/web/assets/chunk-RG4AUYOV-Bcl7U_IV.js +206 -0
  36. package/dist/web/assets/{chunk-TU3PZOEN-RLyvLcv-.js → chunk-T5OCTHI4-CZYMg5sc.js} +1 -1
  37. package/dist/web/assets/chunk-W44A43WB-REOI67PN.js +13 -0
  38. package/dist/web/assets/{chunk-RWUO3TPN-BgRTY0_k.js → chunk-ZXARS5L4-BfFdV1tf.js} +1 -1
  39. package/dist/web/assets/classDiagram-KGZ6W3CR-B-qkKMYi.js +1 -0
  40. package/dist/web/assets/classDiagram-v2-72OJOZXJ-B-qkKMYi.js +1 -0
  41. package/dist/web/assets/{cose-bilkent-PNC4W37J-DVhePRYg.js → cose-bilkent-UX7MHV2Q-D6vANJGG.js} +1 -1
  42. package/dist/web/assets/dagre-ND4H6XIP-BiHe5Lal.js +4 -0
  43. package/dist/web/assets/diagram-3NCE3AQN-CEutBCOW.js +43 -0
  44. package/dist/web/assets/diagram-GF46GFSD-CZns6HPQ.js +24 -0
  45. package/dist/web/assets/diagram-HNR7UZ2L-Vz8fE5of.js +3 -0
  46. package/dist/web/assets/diagram-QXG6HAR7-D60HKZ_y.js +24 -0
  47. package/dist/web/assets/diagram-WEQXMOUZ-vGAf1p3E.js +10 -0
  48. package/dist/web/assets/{erDiagram-GCSMX5X6-C3dhDFA8.js → erDiagram-L5TCEMPS-DZaplJA6.js} +5 -5
  49. package/dist/web/assets/{flowDiagram-OTCZ4VVT-CWSFWmhr.js → flowDiagram-H6V6AXG4-BqUqeAsI.js} +9 -9
  50. package/dist/web/assets/ganttDiagram-JCBTUEKG-XEB6H-0G.js +292 -0
  51. package/dist/web/assets/gitGraphDiagram-S2ZK5IYY-7G50u1Cd.js +106 -0
  52. package/dist/web/assets/index-B5WxtMpv.js +1415 -0
  53. package/dist/web/assets/infoDiagram-3YFTVSEB-Cut_rzaf.js +2 -0
  54. package/dist/web/assets/{ishikawaDiagram-YMYX4NHK-DUoJvNP2.js → ishikawaDiagram-BNXS4ZKH-B4DGfGi3.js} +3 -3
  55. package/dist/web/assets/{journeyDiagram-SO5T7YLQ-RMFPNNqz.js → journeyDiagram-M6C3CM3L-BBFhsL3E.js} +1 -1
  56. package/dist/web/assets/{kanban-definition-LJHFXRCJ-BzpDs1K9.js → kanban-definition-75IXJCU3-DarGRyn3.js} +4 -4
  57. package/dist/web/assets/{katex-GD7MH7QM-DBQvrix-.js → katex-K3KEBU37-W5XTYMhr.js} +1 -1
  58. package/dist/web/assets/mindmap-definition-2TDM6QVE-BgeczIJM.js +96 -0
  59. package/dist/web/assets/pieDiagram-CU6KROY3-Kkoo-Noq.js +30 -0
  60. package/dist/web/assets/quadrantDiagram-VICAPDV7-CDQFeRWN.js +7 -0
  61. package/dist/web/assets/{requirementDiagram-M5DCFWZL-DLHOVTSv.js → requirementDiagram-JXO7QTGE-Cz9-XnkA.js} +2 -2
  62. package/dist/web/assets/sankeyDiagram-URQDO5SZ-CU26z0n7.js +40 -0
  63. package/dist/web/assets/sequenceDiagram-VS2MUI6T-OGK1FLOt.js +162 -0
  64. package/dist/web/assets/stateDiagram-7D4R322I-DJ9brq0U.js +1 -0
  65. package/dist/web/assets/stateDiagram-v2-36443NZ5-DhJ4Ky-7.js +1 -0
  66. package/dist/web/assets/{timeline-definition-5SPVSISX-TRSDRgPw.js → timeline-definition-O6YCAMPW-XZvnjqTT.js} +4 -4
  67. package/dist/web/assets/{vennDiagram-IE5QUKF5-DNy7HRBM.js → vennDiagram-MWXL3ELB-CJUssEjA.js} +6 -6
  68. package/dist/web/assets/wardley-L42UT6IY-5TKZOOLJ-DZr11zBG.js +173 -0
  69. package/dist/web/assets/wardleyDiagram-CUQ6CDDI-C276iqrN.js +78 -0
  70. package/dist/web/assets/{xychartDiagram-ZHJ5623Y-Dr9r7a35.js → xychartDiagram-N2JHSOCM-B9-uCZyP.js} +4 -4
  71. package/dist/web/index.html +1 -1
  72. package/package.json +1 -1
  73. package/vendor/node_modules/node-addon-api/node_addon_api_except.stamp +0 -0
  74. package/dist/web/assets/agent-D5lb0zXz.js +0 -1089
  75. package/dist/web/assets/architectureDiagram-EMZXCZ2Q-CZtc99v_.js +0 -36
  76. package/dist/web/assets/blockDiagram-IGV67L2C-BtoUp-6Y.js +0 -132
  77. package/dist/web/assets/chunk-3GS5O3IE-DkUjU0WD.js +0 -231
  78. package/dist/web/assets/chunk-3YCYZ6SJ-CQkVgT_z.js +0 -1
  79. package/dist/web/assets/chunk-H3VCZNTA-Cx5XV_aC.js +0 -13
  80. package/dist/web/assets/chunk-HN6EAY2L-BBnyTNdB.js +0 -1
  81. package/dist/web/assets/chunk-PK6DOVAG-CvsEnugt.js +0 -206
  82. package/dist/web/assets/classDiagram-PPOCWD7C-DTr8QIOf.js +0 -1
  83. package/dist/web/assets/classDiagram-v2-23LJLIIU-DTr8QIOf.js +0 -1
  84. package/dist/web/assets/dagre-E77IOHMT-Dzx0A6ZU.js +0 -4
  85. package/dist/web/assets/diagram-H7BISOXX-CC9pRew1.js +0 -43
  86. package/dist/web/assets/diagram-JC5VWROH-Bau_i9tf.js +0 -24
  87. package/dist/web/assets/diagram-LXUTUG65-D9_FM2Gt.js +0 -10
  88. package/dist/web/assets/diagram-WEHSV5V5-BMlayouL.js +0 -24
  89. package/dist/web/assets/ganttDiagram-MUNLMDZQ-D3a67Yol.js +0 -292
  90. package/dist/web/assets/gitGraphDiagram-3HKGZ4G3-7jmry-vM.js +0 -106
  91. package/dist/web/assets/index-BgeqpYgd.js +0 -1415
  92. package/dist/web/assets/infoDiagram-MN7RKWGX-G7lhP0Ib.js +0 -2
  93. package/dist/web/assets/mindmap-definition-2EUWGEK5-Bk0O4roa.js +0 -96
  94. package/dist/web/assets/pieDiagram-3IATQBI2-DKU7kpgS.js +0 -30
  95. package/dist/web/assets/quadrantDiagram-E256RVCF-BY0TGWCS.js +0 -7
  96. package/dist/web/assets/sankeyDiagram-L3NBLAOT-DVMj5rX2.js +0 -10
  97. package/dist/web/assets/sequenceDiagram-ZOUHS735-CJC73bV-.js +0 -157
  98. package/dist/web/assets/stateDiagram-MLPALWAM-BCFyESls.js +0 -1
  99. package/dist/web/assets/stateDiagram-v2-B5LQ5ZB2-DahzzIca.js +0 -1
  100. package/dist/web/assets/wardley-RL74JXVD-BCRCBASE-B-eZEzf9.js +0 -161
  101. package/dist/web/assets/wardleyDiagram-XU3VSMPF-BP-r1xzR.js +0 -20
@@ -1 +0,0 @@
1
- import{m as y}from"./chunk-HN6EAY2L-BBnyTNdB.js";import{Z as f,T as Y,N as ot,b as x,D,d as q,l as ie,J as m,a as O,s as b,y as L,f as Ne,c as Ee,Q as R,O as ae,t as rt,K as ue,e as T,X as I,R as z,g as it,n as j,h as at,i as ut,j as dt}from"./chunk-H3VCZNTA-Cx5XV_aC.js";import{m as d,bv as X,bw as st,aV as ct}from"./index-BgeqpYgd.js";function E(e,n,t,o){var r;do r=ie(o);while(e.hasNode(r));return t.dummy=n,e.setNode(r,t),r}d(E,"addDummyNode");function Oe(e){var n=new y().setGraph(e.graph());return f(e.nodes(),function(t){n.setNode(t,e.node(t))}),f(e.edges(),function(t){var o=n.edge(t.v,t.w)||{weight:0,minlen:1},r=e.edge(t);n.setEdge(t.v,t.w,{weight:o.weight+r.weight,minlen:Math.max(o.minlen,r.minlen)})}),n}d(Oe,"simplify");function de(e){var n=new y({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(t){e.children(t).length||n.setNode(t,e.node(t))}),f(e.edges(),function(t){n.setEdge(t,e.edge(t))}),n}d(de,"asNonCompoundGraph");function H(e,n){var t=e.x,o=e.y,r=n.x-t,i=n.y-o,a=e.width/2,u=e.height/2;if(!r&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var s,c;return Math.abs(i)*a>Math.abs(r)*u?(i<0&&(u=-u),s=u*r/i,c=u):(r<0&&(a=-a),s=a,c=a*i/r),{x:t+s,y:o+c}}d(H,"intersectRect");function S(e){var n=m(O(se(e)+1),function(){return[]});return f(e.nodes(),function(t){var o=e.node(t),r=o.rank;b(r)||(n[r][o.order]=t)}),n}d(S,"buildLayerMatrix");function Ie(e){var n=L(m(e.nodes(),function(t){return e.node(t).rank}));f(e.nodes(),function(t){var o=e.node(t);Ne(o,"rank")&&(o.rank-=n)})}d(Ie,"normalizeRanks");function Pe(e){var n=L(m(e.nodes(),function(i){return e.node(i).rank})),t=[];f(e.nodes(),function(i){var a=e.node(i).rank-n;t[a]||(t[a]=[]),t[a].push(i)});var o=0,r=e.graph().nodeRankFactor;f(t,function(i,a){b(i)&&a%r!==0?--o:o&&f(i,function(u){e.node(u).rank+=o})})}d(Pe,"removeEmptyRanks");function K(e,n,t,o){var r={width:0,height:0};return arguments.length>=4&&(r.rank=t,r.order=o),E(e,"border",r,n)}d(K,"addBorderNode");function se(e){return x(m(e.nodes(),function(n){var t=e.node(n).rank;if(!b(t))return t}))}d(se,"maxRank");function Ce(e,n){var t={lhs:[],rhs:[]};return f(e,function(o){n(o)?t.lhs.push(o):t.rhs.push(o)}),t}d(Ce,"partition");function Le(e,n){var t=Ee();try{return n()}finally{console.log(e+" time: "+(Ee()-t)+"ms")}}d(Le,"time");function _e(e,n){return n()}d(_e,"notime");function Re(e){function n(t){var o=e.children(t),r=e.node(t);if(o.length&&f(o,n),Object.prototype.hasOwnProperty.call(r,"minRank")){r.borderLeft=[],r.borderRight=[];for(var i=r.minRank,a=r.maxRank+1;i<a;++i)Z(e,"borderLeft","_bl",t,r,i),Z(e,"borderRight","_br",t,r,i)}}d(n,"dfs"),f(e.children(),n)}d(Re,"addBorderSegments");function Z(e,n,t,o,r,i){var a={width:0,height:0,rank:i,borderType:n},u=r[n][i-1],s=E(e,"border",a,t);r[n][i]=s,e.setParent(s,o),u&&e.setEdge(u,s,{weight:1})}d(Z,"addBorderNode");function Te(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&ce(e)}d(Te,"adjust");function je(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&Se(e),(n==="lr"||n==="rl")&&(Me(e),ce(e))}d(je,"undo");function ce(e){f(e.nodes(),function(n){Q(e.node(n))}),f(e.edges(),function(n){Q(e.edge(n))})}d(ce,"swapWidthHeight");function Q(e){var n=e.width;e.width=e.height,e.height=n}d(Q,"swapWidthHeightOne");function Se(e){f(e.nodes(),function(n){M(e.node(n))}),f(e.edges(),function(n){var t=e.edge(n);f(t.points,M),Object.prototype.hasOwnProperty.call(t,"y")&&M(t)})}d(Se,"reverseY");function M(e){e.y=-e.y}d(M,"reverseYOne");function Me(e){f(e.nodes(),function(n){G(e.node(n))}),f(e.edges(),function(n){var t=e.edge(n);f(t.points,G),Object.prototype.hasOwnProperty.call(t,"x")&&G(t)})}d(Me,"swapXY");function G(e){var n=e.x;e.x=e.y,e.y=n}d(G,"swapXYOne");var N,ft=(N=class{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,t=n._prev;if(t!==n)return U(t),t}enqueue(n){var t=this._sentinel;n._prev&&n._next&&U(n),n._next=t._next,t._next._prev=n,t._next=n,n._prev=t}toString(){for(var n=[],t=this._sentinel,o=t._prev;o!==t;)n.push(JSON.stringify(o,Ge)),o=o._prev;return"["+n.join(", ")+"]"}},d(N,"List"),N);function U(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}d(U,"unlink");function Ge(e,n){if(e!=="_next"&&e!=="_prev")return n}d(Ge,"filterOutLinks");var ht=st(1);function Be(e,n){if(e.nodeCount()<=1)return[];var t=Ve(e,n||ht),o=Fe(t.graph,t.buckets,t.zeroIdx);return R(m(o,function(r){return e.outEdges(r.v,r.w)}))}d(Be,"greedyFAS");function Fe(e,n,t){for(var o=[],r=n[n.length-1],i=n[0],a;e.nodeCount();){for(;a=i.dequeue();)B(e,n,t,a);for(;a=r.dequeue();)B(e,n,t,a);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(a=n[u].dequeue(),a){o=o.concat(B(e,n,t,a,!0));break}}}return o}d(Fe,"doGreedyFAS");function B(e,n,t,o,r){var i=r?[]:void 0;return f(e.inEdges(o.v),function(a){var u=e.edge(a),s=e.node(a.v);r&&i.push({v:a.v,w:a.w}),s.out-=u,$(n,t,s)}),f(e.outEdges(o.v),function(a){var u=e.edge(a),s=a.w,c=e.node(s);c.in-=u,$(n,t,c)}),e.removeNode(o.v),i}d(B,"removeNode");function Ve(e,n){var t=new y,o=0,r=0;f(e.nodes(),function(u){t.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var s=t.edge(u.v,u.w)||0,c=n(u),h=s+c;t.setEdge(u.v,u.w,h),r=Math.max(r,t.node(u.v).out+=c),o=Math.max(o,t.node(u.w).in+=c)});var i=O(r+o+3).map(function(){return new ft}),a=o+1;return f(t.nodes(),function(u){$(i,a,t.node(u))}),{graph:t,buckets:i,zeroIdx:a}}d(Ve,"buildState");function $(e,n,t){t.out?t.in?e[t.out-t.in+n].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}d($,"assignBucket");function Ye(e){var n=e.graph().acyclicer==="greedy"?Be(e,t(e)):De(e);f(n,function(o){var r=e.edge(o);e.removeEdge(o),r.forwardName=o.name,r.reversed=!0,e.setEdge(o.w,o.v,r,ie("rev"))});function t(o){return function(r){return o.edge(r).weight}}d(t,"weightFn")}d(Ye,"run");function De(e){var n=[],t={},o={};function r(i){Object.prototype.hasOwnProperty.call(o,i)||(o[i]=!0,t[i]=!0,f(e.outEdges(i),function(a){Object.prototype.hasOwnProperty.call(t,a.w)?n.push(a):r(a.w)}),delete t[i])}return d(r,"dfs"),f(e.nodes(),r),n}d(De,"dfsFAS");function $e(e){f(e.edges(),function(n){var t=e.edge(n);if(t.reversed){e.removeEdge(n);var o=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(n.w,n.v,t,o)}})}d($e,"undo");function qe(e){e.graph().dummyChains=[],f(e.edges(),function(n){ze(e,n)})}d(qe,"run");function ze(e,n){var t=n.v,o=e.node(t).rank,r=n.w,i=e.node(r).rank,a=n.name,u=e.edge(n),s=u.labelRank;if(i!==o+1){e.removeEdge(n);var c=void 0,h,g;for(g=0,++o;o<i;++g,++o)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:n,rank:o},h=E(e,"edge",c,"_d"),o===s&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),e.setEdge(t,h,{weight:u.weight},a),g===0&&e.graph().dummyChains.push(h),t=h;e.setEdge(t,r,{weight:u.weight},a)}}d(ze,"normalizeEdge");function Ae(e){f(e.graph().dummyChains,function(n){var t=e.node(n),o=t.edgeLabel,r;for(e.setEdge(t.edgeObj,o);t.dummy;)r=e.successors(n)[0],e.removeNode(n),o.points.push({x:t.x,y:t.y}),t.dummy==="edge-label"&&(o.x=t.x,o.y=t.y,o.width=t.width,o.height=t.height),n=r,t=e.node(n)})}d(Ae,"undo");function A(e){var n={};function t(o){var r=e.node(o);if(Object.prototype.hasOwnProperty.call(n,o))return r.rank;n[o]=!0;var i=L(m(e.outEdges(o),function(a){return t(a.w)-e.edge(a).minlen}));return(i===Number.POSITIVE_INFINITY||i===void 0||i===null)&&(i=0),r.rank=i}d(t,"dfs"),f(e.sources(),t)}d(A,"longestPath");function P(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}d(P,"slack");function fe(e){var n=new y({directed:!1}),t=e.nodes()[0],o=e.nodeCount();n.setNode(t,{});for(var r,i;Je(n,e)<o;)r=We(n,e),i=n.hasNode(r.v)?P(e,r):-P(e,r),Xe(n,e,i);return n}d(fe,"feasibleTree");function Je(e,n){function t(o){f(n.nodeEdges(o),function(r){var i=r.v,a=o===i?r.w:i;!e.hasNode(a)&&!P(n,r)&&(e.setNode(a,{}),e.setEdge(o,a,{}),t(a))})}return d(t,"dfs"),f(e.nodes(),t),e.nodeCount()}d(Je,"tightTree");function We(e,n){return ae(n.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return P(n,t)})}d(We,"findMinSlackEdge");function Xe(e,n,t){f(e.nodes(),function(o){n.node(o).rank+=t})}d(Xe,"shiftRanks");He.CycleException=_;function He(e){var n={},t={},o=[];function r(i){if(Object.prototype.hasOwnProperty.call(t,i))throw new _;Object.prototype.hasOwnProperty.call(n,i)||(t[i]=!0,n[i]=!0,f(e.predecessors(i),r),delete t[i],o.push(i))}if(d(r,"visit"),f(e.sinks(),r),rt(n)!==e.nodeCount())throw new _;return o}d(He,"topsort");function _(){}d(_,"CycleException");_.prototype=new Error;function he(e,n,t){ct(n)||(n=[n]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),r=[],i={};return f(n,function(a){if(!e.hasNode(a))throw new Error("Graph does not have node: "+a);ge(e,a,t==="post",i,o,r)}),r}d(he,"dfs");function ge(e,n,t,o,r,i){Object.prototype.hasOwnProperty.call(o,n)||(o[n]=!0,t||i.push(n),f(r(n),function(a){ge(e,a,t,o,r,i)}),t&&i.push(n))}d(ge,"doDfs");function Ke(e,n){return he(e,n,"post")}d(Ke,"postorder");function Ze(e,n){return he(e,n,"pre")}d(Ze,"preorder");k.initLowLimValues=W;k.initCutValues=J;k.calcCutValue=le;k.leaveEdge=ve;k.enterEdge=me;k.exchangeEdges=we;function k(e){e=Oe(e),A(e);var n=fe(e);W(n),J(n,e);for(var t,o;t=ve(n);)o=me(n,e,t),we(n,e,t,o)}d(k,"networkSimplex");function J(e,n){var t=Ke(e,e.nodes());t=t.slice(0,t.length-1),f(t,function(o){Qe(e,n,o)})}d(J,"initCutValues");function Qe(e,n,t){var o=e.node(t),r=o.parent;e.edge(t,r).cutvalue=le(e,n,t)}d(Qe,"assignCutValue");function le(e,n,t){var o=e.node(t),r=o.parent,i=!0,a=n.edge(t,r),u=0;return a||(i=!1,a=n.edge(r,t)),u=a.weight,f(n.nodeEdges(t),function(s){var c=s.v===t,h=c?s.w:s.v;if(h!==r){var g=c===i,l=n.edge(s).weight;if(u+=g?l:-l,en(e,t,h)){var p=e.edge(t,h).cutvalue;u+=g?-p:p}}}),u}d(le,"calcCutValue");function W(e,n){arguments.length<2&&(n=e.nodes()[0]),pe(e,{},1,n)}d(W,"initLowLimValues");function pe(e,n,t,o,r){var i=t,a=e.node(o);return n[o]=!0,f(e.neighbors(o),function(u){Object.prototype.hasOwnProperty.call(n,u)||(t=pe(e,n,t,u,o))}),a.low=i,a.lim=t++,r?a.parent=r:delete a.parent,t}d(pe,"dfsAssignLowLim");function ve(e){return ue(e.edges(),function(n){return e.edge(n).cutvalue<0})}d(ve,"leaveEdge");function me(e,n,t){var o=t.v,r=t.w;n.hasEdge(o,r)||(o=t.w,r=t.v);var i=e.node(o),a=e.node(r),u=i,s=!1;i.lim>a.lim&&(u=a,s=!0);var c=T(n.edges(),function(h){return s===ee(e,e.node(h.v),u)&&s!==ee(e,e.node(h.w),u)});return ae(c,function(h){return P(n,h)})}d(me,"enterEdge");function we(e,n,t,o){var r=t.v,i=t.w;e.removeEdge(r,i),e.setEdge(o.v,o.w,{}),W(e),J(e,n),Ue(e,n)}d(we,"exchangeEdges");function Ue(e,n){var t=ue(e.nodes(),function(r){return!n.node(r).parent}),o=Ze(e,t);o=o.slice(1),f(o,function(r){var i=e.node(r).parent,a=n.edge(r,i),u=!1;a||(a=n.edge(i,r),u=!0),n.node(r).rank=n.node(i).rank+(u?a.minlen:-a.minlen)})}d(Ue,"updateRanks");function en(e,n,t){return e.hasEdge(n,t)}d(en,"isTreeEdge");function ee(e,n,t){return t.low<=n.lim&&n.lim<=t.lim}d(ee,"isDescendant");function nn(e){switch(e.graph().ranker){case"network-simplex":ne(e);break;case"tight-tree":tn(e);break;case"longest-path":gt(e);break;default:ne(e)}}d(nn,"rank");var gt=A;function tn(e){A(e),fe(e)}d(tn,"tightTreeRanker");function ne(e){k(e)}d(ne,"networkSimplexRanker");function on(e){var n=E(e,"root",{},"_root"),t=rn(e),o=x(I(t))-1,r=2*o+1;e.graph().nestingRoot=n,f(e.edges(),function(a){e.edge(a).minlen*=r});var i=an(e)+1;f(e.children(),function(a){be(e,n,r,i,o,t,a)}),e.graph().nodeRankFactor=r}d(on,"run");function be(e,n,t,o,r,i,a){var u=e.children(a);if(!u.length){a!==n&&e.setEdge(n,a,{weight:0,minlen:t});return}var s=K(e,"_bt"),c=K(e,"_bb"),h=e.node(a);e.setParent(s,a),h.borderTop=s,e.setParent(c,a),h.borderBottom=c,f(u,function(g){be(e,n,t,o,r,i,g);var l=e.node(g),p=l.borderTop?l.borderTop:g,v=l.borderBottom?l.borderBottom:g,w=l.borderTop?o:2*o,C=p!==v?1:r-i[a]+1;e.setEdge(s,p,{weight:w,minlen:C,nestingEdge:!0}),e.setEdge(v,c,{weight:w,minlen:C,nestingEdge:!0})}),e.parent(a)||e.setEdge(n,s,{weight:0,minlen:r+i[a]})}d(be,"dfs");function rn(e){var n={};function t(o,r){var i=e.children(o);i&&i.length&&f(i,function(a){t(a,r+1)}),n[o]=r}return d(t,"dfs"),f(e.children(),function(o){t(o,1)}),n}d(rn,"treeDepths");function an(e){return z(e.edges(),function(n,t){return n+e.edge(t).weight},0)}d(an,"sumWeights");function un(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(t){var o=e.edge(t);o.nestingEdge&&e.removeEdge(t)})}d(un,"cleanup");function dn(e,n,t){var o={},r;f(t,function(i){for(var a=e.parent(i),u,s;a;){if(u=e.parent(a),u?(s=o[u],o[u]=a):(s=r,r=a),s&&s!==a){n.setEdge(s,a);return}a=u}})}d(dn,"addSubgraphConstraints");function sn(e,n,t){var o=cn(e),r=new y({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var a=e.node(i),u=e.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(r.setNode(i),r.setParent(i,u||o),f(e[t](i),function(s){var c=s.v===i?s.w:s.v,h=r.edge(c,i),g=b(h)?0:h.weight;r.setEdge(c,i,{weight:e.edge(s).weight+g})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&r.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),r}d(sn,"buildLayerGraph");function cn(e){for(var n;e.hasNode(n=ie("_root")););return n}d(cn,"createRootNode");function fn(e,n){for(var t=0,o=1;o<n.length;++o)t+=hn(e,n[o-1],n[o]);return t}d(fn,"crossCount");function hn(e,n,t){for(var o=it(t,m(t,function(c,h){return h})),r=R(m(n,function(c){return j(m(e.outEdges(c),function(h){return{pos:o[h.w],weight:e.edge(h).weight}}),"pos")})),i=1;i<t.length;)i<<=1;var a=2*i-1;i-=1;var u=m(new Array(a),function(){return 0}),s=0;return f(r.forEach(function(c){var h=c.pos+i;u[h]+=c.weight;for(var g=0;h>0;)h%2&&(g+=u[h+1]),h=h-1>>1,u[h]+=c.weight;s+=c.weight*g})),s}d(hn,"twoLayerCrossCount");function gn(e){var n={},t=T(e.nodes(),function(u){return!e.children(u).length}),o=x(m(t,function(u){return e.node(u).rank})),r=m(O(o+1),function(){return[]});function i(u){if(!Ne(n,u)){n[u]=!0;var s=e.node(u);r[s.rank].push(u),f(e.successors(u),i)}}d(i,"dfs");var a=j(t,function(u){return e.node(u).rank});return f(a,i),r}d(gn,"initOrder");function ln(e,n){return m(n,function(t){var o=e.inEdges(t);if(o.length){var r=z(o,function(i,a){var u=e.edge(a),s=e.node(a.v);return{sum:i.sum+u.weight*s.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}d(ln,"barycenter");function pn(e,n){var t={};f(e,function(r,i){var a=t[r.v]={indegree:0,in:[],out:[],vs:[r.v],i};b(r.barycenter)||(a.barycenter=r.barycenter,a.weight=r.weight)}),f(n.edges(),function(r){var i=t[r.v],a=t[r.w];!b(i)&&!b(a)&&(a.indegree++,i.out.push(t[r.w]))});var o=T(t,function(r){return!r.indegree});return vn(o)}d(pn,"resolveConflicts");function vn(e){var n=[];function t(i){return function(a){a.merged||(b(a.barycenter)||b(i.barycenter)||a.barycenter>=i.barycenter)&&mn(i,a)}}d(t,"handleIn");function o(i){return function(a){a.in.push(i),--a.indegree===0&&e.push(a)}}for(d(o,"handleOut");e.length;){var r=e.pop();n.push(r),f(r.in.reverse(),t(r)),f(r.out,o(r))}return m(T(n,function(i){return!i.merged}),function(i){return Y(i,["vs","i","barycenter","weight"])})}d(vn,"doResolveConflicts");function mn(e,n){var t=0,o=0;e.weight&&(t+=e.barycenter*e.weight,o+=e.weight),n.weight&&(t+=n.barycenter*n.weight,o+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=t/o,e.weight=o,e.i=Math.min(n.i,e.i),n.merged=!0}d(mn,"mergeEntries");function wn(e,n){var t=Ce(e,function(h){return Object.prototype.hasOwnProperty.call(h,"barycenter")}),o=t.lhs,r=j(t.rhs,function(h){return-h.i}),i=[],a=0,u=0,s=0;o.sort(bn(!!n)),s=te(i,r,s),f(o,function(h){s+=h.vs.length,i.push(h.vs),a+=h.barycenter*h.weight,u+=h.weight,s=te(i,r,s)});var c={vs:R(i)};return u&&(c.barycenter=a/u,c.weight=u),c}d(wn,"sort");function te(e,n,t){for(var o;n.length&&(o=D(n)).i<=t;)n.pop(),e.push(o.vs),t++;return t}d(te,"consumeUnsortable");function bn(e){return function(n,t){return n.barycenter<t.barycenter?-1:n.barycenter>t.barycenter?1:e?t.i-n.i:n.i-t.i}}d(bn,"compareWithBias");function ye(e,n,t,o){var r=e.children(n),i=e.node(n),a=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,s={};a&&(r=T(r,function(v){return v!==a&&v!==u}));var c=ln(e,r);f(c,function(v){if(e.children(v.v).length){var w=ye(e,v.v,t,o);s[v.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&kn(v,w)}});var h=pn(c,t);yn(h,s);var g=wn(h,o);if(a&&(g.vs=R([a,g.vs,u]),e.predecessors(a).length)){var l=e.node(e.predecessors(a)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+l.order+p.order)/(g.weight+2),g.weight+=2}return g}d(ye,"sortSubgraph");function yn(e,n){f(e,function(t){t.vs=R(t.vs.map(function(o){return n[o]?n[o].vs:o}))})}d(yn,"expandSubgraphs");function kn(e,n){b(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}d(kn,"mergeBarycenters");function xn(e){var n=se(e),t=oe(e,O(1,n+1),"inEdges"),o=oe(e,O(n-1,-1,-1),"outEdges"),r=gn(e);re(e,r);for(var i=Number.POSITIVE_INFINITY,a,u=0,s=0;s<4;++u,++s){En(u%2?t:o,u%4>=2),r=S(e);var c=fn(e,r);c<i&&(s=0,a=at(r),i=c)}re(e,a)}d(xn,"order");function oe(e,n,t){return m(n,function(o){return sn(e,o,t)})}d(oe,"buildLayerGraphs");function En(e,n){var t=new y;f(e,function(o){var r=o.graph().root,i=ye(o,r,t,n);f(i.vs,function(a,u){o.node(a).order=u}),dn(o,t,i.vs)})}d(En,"sweepLayerGraphs");function re(e,n){f(n,function(t){f(t,function(o,r){e.node(o).order=r})})}d(re,"assignOrder");function Nn(e){var n=In(e);f(e.graph().dummyChains,function(t){for(var o=e.node(t),r=o.edgeObj,i=On(e,n,r.v,r.w),a=i.path,u=i.lca,s=0,c=a[s],h=!0;t!==r.w;){if(o=e.node(t),h){for(;(c=a[s])!==u&&e.node(c).maxRank<o.rank;)s++;c===u&&(h=!1)}if(!h){for(;s<a.length-1&&e.node(c=a[s+1]).minRank<=o.rank;)s++;c=a[s]}e.setParent(t,c),t=e.successors(t)[0]}})}d(Nn,"parentDummyChains");function On(e,n,t,o){var r=[],i=[],a=Math.min(n[t].low,n[o].low),u=Math.max(n[t].lim,n[o].lim),s,c;s=t;do s=e.parent(s),r.push(s);while(s&&(n[s].low>a||u>n[s].lim));for(c=s,s=o;(s=e.parent(s))!==c;)i.push(s);return{path:r.concat(i.reverse()),lca:c}}d(On,"findPath");function In(e){var n={},t=0;function o(r){var i=t;f(e.children(r),o),n[r]={low:i,lim:t++}}return d(o,"dfs"),f(e.children(),o),n}d(In,"postorder");function Pn(e,n){var t={};function o(r,i){var a=0,u=0,s=r.length,c=D(i);return f(i,function(h,g){var l=Ln(e,h),p=l?e.node(l).order:s;(l||h===c)&&(f(i.slice(u,g+1),function(v){f(e.predecessors(v),function(w){var C=e.node(w),xe=C.order;(xe<a||p<xe)&&!(C.dummy&&e.node(v).dummy)&&ke(t,w,v)})}),u=g+1,a=p)}),i}return d(o,"visitLayer"),z(n,o),t}d(Pn,"findType1Conflicts");function Cn(e,n){var t={};function o(i,a,u,s,c){var h;f(O(a,u),function(g){h=i[g],e.node(h).dummy&&f(e.predecessors(h),function(l){var p=e.node(l);p.dummy&&(p.order<s||p.order>c)&&ke(t,l,h)})})}d(o,"scan");function r(i,a){var u=-1,s,c=0;return f(a,function(h,g){if(e.node(h).dummy==="border"){var l=e.predecessors(h);l.length&&(s=e.node(l[0]).order,o(a,c,g,u,s),c=g,u=s)}o(a,c,a.length,s,i.length)}),a}return d(r,"visitLayer"),z(n,r),t}d(Cn,"findType2Conflicts");function Ln(e,n){if(e.node(n).dummy)return ue(e.predecessors(n),function(t){return e.node(t).dummy})}d(Ln,"findOtherInnerSegmentNode");function ke(e,n,t){if(n>t){var o=n;n=t,t=o}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var r=e[n];Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:!0,writable:!0})}d(ke,"addConflict");function _n(e,n,t){if(n>t){var o=n;n=t,t=o}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],t)}d(_n,"hasConflict");function Rn(e,n,t,o){var r={},i={},a={};return f(n,function(u){f(u,function(s,c){r[s]=s,i[s]=s,a[s]=c})}),f(n,function(u){var s=-1;f(u,function(c){var h=o(c);if(h.length){h=j(h,function(w){return a[w]});for(var g=(h.length-1)/2,l=Math.floor(g),p=Math.ceil(g);l<=p;++l){var v=h[l];i[c]===c&&s<a[v]&&!_n(t,c,v)&&(i[v]=c,i[c]=r[c]=r[v],s=a[v])}}})}),{root:r,align:i}}d(Rn,"verticalAlignment");function Tn(e,n,t,o,r){var i={},a=jn(e,n,t,r),u=r?"borderLeft":"borderRight";function s(g,l){for(var p=a.nodes(),v=p.pop(),w={};v;)w[v]?g(v):(w[v]=!0,p.push(v),p=p.concat(l(v))),v=p.pop()}d(s,"iterate");function c(g){i[g]=a.inEdges(g).reduce(function(l,p){return Math.max(l,i[p.v]+a.edge(p))},0)}d(c,"pass1");function h(g){var l=a.outEdges(g).reduce(function(v,w){return Math.min(v,i[w.w]-a.edge(w))},Number.POSITIVE_INFINITY),p=e.node(g);l!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(i[g]=Math.max(i[g],l))}return d(h,"pass2"),s(c,a.predecessors.bind(a)),s(h,a.successors.bind(a)),f(o,function(g){i[g]=i[t[g]]}),i}d(Tn,"horizontalCompaction");function jn(e,n,t,o){var r=new y,i=e.graph(),a=Fn(i.nodesep,i.edgesep,o);return f(n,function(u){var s;f(u,function(c){var h=t[c];if(r.setNode(h),s){var g=t[s],l=r.edge(g,h);r.setEdge(g,h,Math.max(a(e,c,s),l||0))}s=c})}),r}d(jn,"buildBlockGraph");function Sn(e,n){return ae(I(n),function(t){var o=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return ut(t,function(i,a){var u=Vn(e,a)/2;o=Math.max(i+u,o),r=Math.min(i-u,r)}),o-r})}d(Sn,"findSmallestWidthAlignment");function Mn(e,n){var t=I(n),o=L(t),r=x(t);f(["u","d"],function(i){f(["l","r"],function(a){var u=i+a,s=e[u],c;if(s!==n){var h=I(s);c=a==="l"?o-L(h):r-x(h),c&&(e[u]=q(s,function(g){return g+c}))}})})}d(Mn,"alignCoordinates");function Gn(e,n){return q(e.ul,function(t,o){if(n)return e[n.toLowerCase()][o];var r=j(m(e,o));return(r[1]+r[2])/2})}d(Gn,"balance");function Bn(e){var n=S(e),t=X(Pn(e,n),Cn(e,n)),o={},r;f(["u","d"],function(a){r=a==="u"?n:I(n).reverse(),f(["l","r"],function(u){u==="r"&&(r=m(r,function(g){return I(g).reverse()}));var s=(a==="u"?e.predecessors:e.successors).bind(e),c=Rn(e,r,t,s),h=Tn(e,r,c.root,c.align,u==="r");u==="r"&&(h=q(h,function(g){return-g})),o[a+u]=h})});var i=Sn(e,o);return Mn(o,i),Gn(o,e.graph().align)}d(Bn,"positionX");function Fn(e,n,t){return function(o,r,i){var a=o.node(r),u=o.node(i),s=0,c;if(s+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":c=-a.width/2;break;case"r":c=a.width/2;break}if(c&&(s+=t?c:-c),c=0,s+=(a.dummy?n:e)/2,s+=(u.dummy?n:e)/2,s+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(s+=t?c:-c),c=0,s}}d(Fn,"sep");function Vn(e,n){return e.node(n).width}d(Vn,"width");function Yn(e){e=de(e),Dn(e),dt(Bn(e),function(n,t){e.node(t).x=n})}d(Yn,"position");function Dn(e){var n=S(e),t=e.graph().ranksep,o=0;f(n,function(r){var i=x(m(r,function(a){return e.node(a).height}));f(r,function(a){e.node(a).y=o+i/2}),o+=i+t})}d(Dn,"positionY");function lt(e,n){var t=n&&n.debugTiming?Le:_e;t("layout",()=>{var o=t(" buildLayoutGraph",()=>zn(e));t(" runLayout",()=>$n(o,t)),t(" updateInputGraph",()=>qn(e,o))})}d(lt,"layout");function $n(e,n){n(" makeSpaceForEdgeLabels",()=>An(e)),n(" removeSelfEdges",()=>et(e)),n(" acyclic",()=>Ye(e)),n(" nestingGraph.run",()=>on(e)),n(" rank",()=>nn(de(e))),n(" injectEdgeLabelProxies",()=>Jn(e)),n(" removeEmptyRanks",()=>Pe(e)),n(" nestingGraph.cleanup",()=>un(e)),n(" normalizeRanks",()=>Ie(e)),n(" assignRankMinMax",()=>Wn(e)),n(" removeEdgeLabelProxies",()=>Xn(e)),n(" normalize.run",()=>qe(e)),n(" parentDummyChains",()=>Nn(e)),n(" addBorderSegments",()=>Re(e)),n(" order",()=>xn(e)),n(" insertSelfEdges",()=>nt(e)),n(" adjustCoordinateSystem",()=>Te(e)),n(" position",()=>Yn(e)),n(" positionSelfEdges",()=>tt(e)),n(" removeBorderNodes",()=>Un(e)),n(" normalize.undo",()=>Ae(e)),n(" fixupEdgeLabelCoords",()=>Zn(e)),n(" undoCoordinateSystem",()=>je(e)),n(" translateGraph",()=>Hn(e)),n(" assignNodeIntersects",()=>Kn(e)),n(" reversePoints",()=>Qn(e)),n(" acyclic.undo",()=>$e(e))}d($n,"runLayout");function qn(e,n){f(e.nodes(),function(t){var o=e.node(t),r=n.node(t);o&&(o.x=r.x,o.y=r.y,n.children(t).length&&(o.width=r.width,o.height=r.height))}),f(e.edges(),function(t){var o=e.edge(t),r=n.edge(t);o.points=r.points,Object.prototype.hasOwnProperty.call(r,"x")&&(o.x=r.x,o.y=r.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}d(qn,"updateInputGraph");var pt=["nodesep","edgesep","ranksep","marginx","marginy"],vt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},mt=["acyclicer","ranker","rankdir","align"],wt=["width","height"],bt={width:0,height:0},yt=["minlen","weight","width","height","labeloffset"],kt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},xt=["labelpos"];function zn(e){var n=new y({multigraph:!0,compound:!0}),t=V(e.graph());return n.setGraph(X({},vt,F(t,pt),Y(t,mt))),f(e.nodes(),function(o){var r=V(e.node(o));n.setNode(o,ot(F(r,wt),bt)),n.setParent(o,e.parent(o))}),f(e.edges(),function(o){var r=V(e.edge(o));n.setEdge(o,X({},kt,F(r,yt),Y(r,xt)))}),n}d(zn,"buildLayoutGraph");function An(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(t){var o=e.edge(t);o.minlen*=2,o.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?o.width+=o.labeloffset:o.height+=o.labeloffset)})}d(An,"makeSpaceForEdgeLabels");function Jn(e){f(e.edges(),function(n){var t=e.edge(n);if(t.width&&t.height){var o=e.node(n.v),r=e.node(n.w),i={rank:(r.rank-o.rank)/2+o.rank,e:n};E(e,"edge-proxy",i,"_ep")}})}d(Jn,"injectEdgeLabelProxies");function Wn(e){var n=0;f(e.nodes(),function(t){var o=e.node(t);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,n=x(n,o.maxRank))}),e.graph().maxRank=n}d(Wn,"assignRankMinMax");function Xn(e){f(e.nodes(),function(n){var t=e.node(n);t.dummy==="edge-proxy"&&(e.edge(t.e).labelRank=t.rank,e.removeNode(n))})}d(Xn,"removeEdgeLabelProxies");function Hn(e){var n=Number.POSITIVE_INFINITY,t=0,o=Number.POSITIVE_INFINITY,r=0,i=e.graph(),a=i.marginx||0,u=i.marginy||0;function s(c){var h=c.x,g=c.y,l=c.width,p=c.height;n=Math.min(n,h-l/2),t=Math.max(t,h+l/2),o=Math.min(o,g-p/2),r=Math.max(r,g+p/2)}d(s,"getExtremes"),f(e.nodes(),function(c){s(e.node(c))}),f(e.edges(),function(c){var h=e.edge(c);Object.prototype.hasOwnProperty.call(h,"x")&&s(h)}),n-=a,o-=u,f(e.nodes(),function(c){var h=e.node(c);h.x-=n,h.y-=o}),f(e.edges(),function(c){var h=e.edge(c);f(h.points,function(g){g.x-=n,g.y-=o}),Object.prototype.hasOwnProperty.call(h,"x")&&(h.x-=n),Object.prototype.hasOwnProperty.call(h,"y")&&(h.y-=o)}),i.width=t-n+a,i.height=r-o+u}d(Hn,"translateGraph");function Kn(e){f(e.edges(),function(n){var t=e.edge(n),o=e.node(n.v),r=e.node(n.w),i,a;t.points?(i=t.points[0],a=t.points[t.points.length-1]):(t.points=[],i=r,a=o),t.points.unshift(H(o,i)),t.points.push(H(r,a))})}d(Kn,"assignNodeIntersects");function Zn(e){f(e.edges(),function(n){var t=e.edge(n);if(Object.prototype.hasOwnProperty.call(t,"x"))switch((t.labelpos==="l"||t.labelpos==="r")&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset;break}})}d(Zn,"fixupEdgeLabelCoords");function Qn(e){f(e.edges(),function(n){var t=e.edge(n);t.reversed&&t.points.reverse()})}d(Qn,"reversePointsForReversedEdges");function Un(e){f(e.nodes(),function(n){if(e.children(n).length){var t=e.node(n),o=e.node(t.borderTop),r=e.node(t.borderBottom),i=e.node(D(t.borderLeft)),a=e.node(D(t.borderRight));t.width=Math.abs(a.x-i.x),t.height=Math.abs(r.y-o.y),t.x=i.x+t.width/2,t.y=o.y+t.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}d(Un,"removeBorderNodes");function et(e){f(e.edges(),function(n){if(n.v===n.w){var t=e.node(n.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}d(et,"removeSelfEdges");function nt(e){var n=S(e);f(n,function(t){var o=0;f(t,function(r,i){var a=e.node(r);a.order=i+o,f(a.selfEdges,function(u){E(e,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:i+ ++o,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}d(nt,"insertSelfEdges");function tt(e){f(e.nodes(),function(n){var t=e.node(n);if(t.dummy==="selfedge"){var o=e.node(t.e.v),r=o.x+o.width/2,i=o.y,a=t.x-r,u=o.height/2;e.setEdge(t.e,t.label),e.removeNode(n),t.label.points=[{x:r+2*a/3,y:i-u},{x:r+5*a/6,y:i-u},{x:r+a,y:i},{x:r+5*a/6,y:i+u},{x:r+2*a/3,y:i+u}],t.label.x=t.x,t.label.y=t.y}})}d(tt,"positionSelfEdges");function F(e,n){return q(Y(e,n),Number)}d(F,"selectNumberAttrs");function V(e){var n={};return f(e,function(t,o){n[o.toLowerCase()]=t}),n}d(V,"canonicalize");export{lt as f};
@@ -1,13 +0,0 @@
1
- import{aR as E,aS as rt,aT as qe,aU as X,aV as p,aW as D,aX as M,aY as at,aZ as P,a_ as ee,a$ as tt,b0 as ut,b1 as F,b2 as it,b3 as U,b4 as Q,b5 as q,b6 as ot,b7 as Ne,b8 as N,b9 as R,ba as $,bb as ft,bc as A,bd as ue,be as ct,bf as Ve,bg as Te,bh as vt,bi as ze,bj as we,bk as st,bl as lt,bm as bt,bn as Z,bo as B,bp as ne,m as u,bq as ht,br as Ke,bs as Le,bt as pt,bu as gt}from"./index-BgeqpYgd.js";function Ge(e){return E(e)?rt(e):qe(e)}u(Ge,"keys");var S=Ge;function He(e,n){for(var r=-1,a=e==null?0:e.length;++r<a&&n(e[r],r,e)!==!1;);return e}u(He,"arrayEach");var Xe=He;function Ze(e,n){return e&&q(n,S(n),e)}u(Ze,"baseAssign");var yt=Ze;function Je(e,n){return e&&q(n,U(n),e)}u(Je,"baseAssignIn");var dt=Je;function We(e,n){for(var r=-1,a=e==null?0:e.length,t=0,i=[];++r<a;){var o=e[r];n(o,r,e)&&(i[t++]=o)}return i}u(We,"arrayFilter");var ie=We;function Qe(){return[]}u(Qe,"stubArray");var Ye=Qe,mt=Object.prototype,jt=mt.propertyIsEnumerable,Ae=Object.getOwnPropertySymbols,Ot=Ae?function(e){return e==null?[]:(e=Object(e),ie(Ae(e),function(n){return jt.call(e,n)}))}:Ye,oe=Ot;function en(e,n){return q(e,oe(e),n)}u(en,"copySymbols");var wt=en;function nn(e,n){for(var r=-1,a=n.length,t=e.length;++r<a;)e[t+r]=n[r];return e}u(nn,"arrayPush");var fe=nn,At=Object.getOwnPropertySymbols,St=At?function(e){for(var n=[];e;)fe(n,oe(e)),e=ft(e);return n}:Ye,rn=St;function an(e,n){return q(e,rn(e),n)}u(an,"copySymbolsIn");var It=an;function tn(e,n,r){var a=n(e);return p(e)?a:fe(a,r(e))}u(tn,"baseGetAllKeys");var un=tn;function on(e){return un(e,S,oe)}u(on,"getAllKeys");var re=on;function fn(e){return un(e,U,rn)}u(fn,"getAllKeysIn");var cn=fn,$t=Object.prototype,_t=$t.hasOwnProperty;function vn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&_t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}u(vn,"initCloneArray");var Et=vn;function sn(e,n){var r=n?Ne(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}u(sn,"cloneDataView");var xt=sn,Mt=/\w*$/;function ln(e){var n=new e.constructor(e.source,Mt.exec(e));return n.lastIndex=e.lastIndex,n}u(ln,"cloneRegExp");var Pt=ln,Se=A?A.prototype:void 0,Ie=Se?Se.valueOf:void 0;function bn(e){return Ie?Object(Ie.call(e)):{}}u(bn,"cloneSymbol");var Rt=bn,Bt="[object Boolean]",Ft="[object Date]",kt="[object Map]",Ct="[object Number]",Dt="[object RegExp]",Ut="[object Set]",qt="[object String]",Nt="[object Symbol]",Vt="[object ArrayBuffer]",Tt="[object DataView]",zt="[object Float32Array]",Kt="[object Float64Array]",Lt="[object Int8Array]",Gt="[object Int16Array]",Ht="[object Int32Array]",Xt="[object Uint8Array]",Zt="[object Uint8ClampedArray]",Jt="[object Uint16Array]",Wt="[object Uint32Array]";function hn(e,n,r){var a=e.constructor;switch(n){case Vt:return Ne(e);case Bt:case Ft:return new a(+e);case Tt:return xt(e,r);case zt:case Kt:case Lt:case Gt:case Ht:case Xt:case Zt:case Jt:case Wt:return ot(e,r);case kt:return new a;case Ct:case qt:return new a(e);case Dt:return Pt(e);case Ut:return new a;case Nt:return Rt(e)}}u(hn,"initCloneByTag");var Qt=hn,Yt="[object Map]";function pn(e){return $(e)&&P(e)==Yt}u(pn,"baseIsMap");var eu=pn,$e=R&&R.isMap,nu=$e?N($e):eu,ru=nu,au="[object Set]";function gn(e){return $(e)&&P(e)==au}u(gn,"baseIsSet");var tu=gn,_e=R&&R.isSet,uu=_e?N(_e):tu,iu=uu,ou=1,fu=2,cu=4,yn="[object Arguments]",vu="[object Array]",su="[object Boolean]",lu="[object Date]",bu="[object Error]",dn="[object Function]",hu="[object GeneratorFunction]",pu="[object Map]",gu="[object Number]",mn="[object Object]",yu="[object RegExp]",du="[object Set]",mu="[object String]",ju="[object Symbol]",Ou="[object WeakMap]",wu="[object ArrayBuffer]",Au="[object DataView]",Su="[object Float32Array]",Iu="[object Float64Array]",$u="[object Int8Array]",_u="[object Int16Array]",Eu="[object Int32Array]",xu="[object Uint8Array]",Mu="[object Uint8ClampedArray]",Pu="[object Uint16Array]",Ru="[object Uint32Array]",h={};h[yn]=h[vu]=h[wu]=h[Au]=h[su]=h[lu]=h[Su]=h[Iu]=h[$u]=h[_u]=h[Eu]=h[pu]=h[gu]=h[mn]=h[yu]=h[du]=h[mu]=h[ju]=h[xu]=h[Mu]=h[Pu]=h[Ru]=!0;h[bu]=h[dn]=h[Ou]=!1;function k(e,n,r,a,t,i){var o,f=n&ou,c=n&fu,v=n&cu;if(r&&(o=t?r(e,a,t,i):r(e)),o!==void 0)return o;if(!M(e))return e;var s=p(e);if(s){if(o=Et(e),!f)return at(e,o)}else{var l=P(e),b=l==dn||l==hu;if(ee(e))return tt(e,f);if(l==mn||l==yn||b&&!t){if(o=c||b?{}:ut(e),!f)return c?It(e,dt(o,e)):wt(e,yt(o,e))}else{if(!h[l])return t?e:{};o=Qt(e,l,f)}}i||(i=new F);var O=i.get(e);if(O)return O;i.set(e,o),iu(e)?e.forEach(function(g){o.add(k(g,n,r,g,e,i))}):ru(e)&&e.forEach(function(g,y){o.set(y,k(g,n,r,y,e,i))});var d=v?c?cn:re:c?U:S,m=s?void 0:d(e);return Xe(m||e,function(g,y){m&&(y=g,g=e[y]),Z(o,y,k(g,n,r,y,e,i))}),o}u(k,"baseClone");var jn=k,Bu=4;function On(e){return jn(e,Bu)}u(On,"clone");var xf=On,wn=Object.prototype,Fu=wn.hasOwnProperty,ku=X(function(e,n){e=Object(e);var r=-1,a=n.length,t=a>2?n[2]:void 0;for(t&&B(n[0],n[1],t)&&(a=1);++r<a;)for(var i=n[r],o=U(i),f=-1,c=o.length;++f<c;){var v=o[f],s=e[v];(s===void 0||ze(s,wn[v])&&!Fu.call(e,v))&&(e[v]=i[v])}return e}),Mf=ku;function An(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}u(An,"last");var Pf=An;function Sn(e,n){return e&&Ke(e,n,S)}u(Sn,"baseForOwn");var ce=Sn;function In(e,n){return function(r,a){if(r==null)return r;if(!E(r))return e(r,a);for(var t=r.length,i=n?t:-1,o=Object(r);(n?i--:++i<t)&&a(o[i],i,o)!==!1;);return r}}u(In,"createBaseEach");var Cu=In,Du=Cu(ce),x=Du;function $n(e){return typeof e=="function"?e:D}u($n,"castFunction");var ve=$n;function _n(e,n){var r=p(e)?Xe:x;return r(e,ve(n))}u(_n,"forEach");var Rf=_n;function En(e,n){var r=[];return x(e,function(a,t,i){n(a,t,i)&&r.push(a)}),r}u(En,"baseFilter");var xn=En,Uu="__lodash_hash_undefined__";function Mn(e){return this.__data__.set(e,Uu),this}u(Mn,"setCacheAdd");var qu=Mn;function Pn(e){return this.__data__.has(e)}u(Pn,"setCacheHas");var Nu=Pn;function C(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new it;++n<r;)this.add(e[n])}u(C,"SetCache");C.prototype.add=C.prototype.push=qu;C.prototype.has=Nu;var se=C;function Rn(e,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(e[r],r,e))return!0;return!1}u(Rn,"arraySome");var Bn=Rn;function Fn(e,n){return e.has(n)}u(Fn,"cacheHas");var le=Fn,Vu=1,Tu=2;function kn(e,n,r,a,t,i){var o=r&Vu,f=e.length,c=n.length;if(f!=c&&!(o&&c>f))return!1;var v=i.get(e),s=i.get(n);if(v&&s)return v==n&&s==e;var l=-1,b=!0,O=r&Tu?new se:void 0;for(i.set(e,n),i.set(n,e);++l<f;){var d=e[l],m=n[l];if(a)var g=o?a(m,d,l,n,e,i):a(d,m,l,e,n,i);if(g!==void 0){if(g)continue;b=!1;break}if(O){if(!Bn(n,function(y,I){if(!le(O,I)&&(d===y||t(d,y,r,a,i)))return O.push(I)})){b=!1;break}}else if(!(d===m||t(d,m,r,a,i))){b=!1;break}}return i.delete(e),i.delete(n),b}u(kn,"equalArrays");var Cn=kn;function Dn(e){var n=-1,r=Array(e.size);return e.forEach(function(a,t){r[++n]=[t,a]}),r}u(Dn,"mapToArray");var zu=Dn;function Un(e){var n=-1,r=Array(e.size);return e.forEach(function(a){r[++n]=a}),r}u(Un,"setToArray");var be=Un,Ku=1,Lu=2,Gu="[object Boolean]",Hu="[object Date]",Xu="[object Error]",Zu="[object Map]",Ju="[object Number]",Wu="[object RegExp]",Qu="[object Set]",Yu="[object String]",ei="[object Symbol]",ni="[object ArrayBuffer]",ri="[object DataView]",Ee=A?A.prototype:void 0,Y=Ee?Ee.valueOf:void 0;function qn(e,n,r,a,t,i,o){switch(r){case ri:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case ni:return!(e.byteLength!=n.byteLength||!i(new we(e),new we(n)));case Gu:case Hu:case Ju:return ze(+e,+n);case Xu:return e.name==n.name&&e.message==n.message;case Wu:case Yu:return e==n+"";case Zu:var f=zu;case Qu:var c=a&Ku;if(f||(f=be),e.size!=n.size&&!c)return!1;var v=o.get(e);if(v)return v==n;a|=Lu,o.set(e,n);var s=Cn(f(e),f(n),a,t,i,o);return o.delete(e),s;case ei:if(Y)return Y.call(e)==Y.call(n)}return!1}u(qn,"equalByTag");var ai=qn,ti=1,ui=Object.prototype,ii=ui.hasOwnProperty;function Nn(e,n,r,a,t,i){var o=r&ti,f=re(e),c=f.length,v=re(n),s=v.length;if(c!=s&&!o)return!1;for(var l=c;l--;){var b=f[l];if(!(o?b in n:ii.call(n,b)))return!1}var O=i.get(e),d=i.get(n);if(O&&d)return O==n&&d==e;var m=!0;i.set(e,n),i.set(n,e);for(var g=o;++l<c;){b=f[l];var y=e[b],I=n[b];if(a)var Oe=o?a(I,y,b,n,e,i):a(y,I,b,e,n,i);if(!(Oe===void 0?y===I||t(y,I,r,a,i):Oe)){m=!1;break}g||(g=b=="constructor")}if(m&&!g){var K=e.constructor,L=n.constructor;K!=L&&"constructor"in e&&"constructor"in n&&!(typeof K=="function"&&K instanceof K&&typeof L=="function"&&L instanceof L)&&(m=!1)}return i.delete(e),i.delete(n),m}u(Nn,"equalObjects");var oi=Nn,fi=1,xe="[object Arguments]",Me="[object Array]",G="[object Object]",ci=Object.prototype,Pe=ci.hasOwnProperty;function Vn(e,n,r,a,t,i){var o=p(e),f=p(n),c=o?Me:P(e),v=f?Me:P(n);c=c==xe?G:c,v=v==xe?G:v;var s=c==G,l=v==G,b=c==v;if(b&&ee(e)){if(!ee(n))return!1;o=!0,s=!1}if(b&&!s)return i||(i=new F),o||vt(e)?Cn(e,n,r,a,t,i):ai(e,n,c,r,a,t,i);if(!(r&fi)){var O=s&&Pe.call(e,"__wrapped__"),d=l&&Pe.call(n,"__wrapped__");if(O||d){var m=O?e.value():e,g=d?n.value():n;return i||(i=new F),t(m,g,r,a,i)}}return b?(i||(i=new F),oi(e,n,r,a,t,i)):!1}u(Vn,"baseIsEqualDeep");var vi=Vn;function he(e,n,r,a,t){return e===n?!0:e==null||n==null||!$(e)&&!$(n)?e!==e&&n!==n:vi(e,n,r,a,he,t)}u(he,"baseIsEqual");var Tn=he,si=1,li=2;function zn(e,n,r,a){var t=r.length,i=t,o=!a;if(e==null)return!i;for(e=Object(e);t--;){var f=r[t];if(o&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++t<i;){f=r[t];var c=f[0],v=e[c],s=f[1];if(o&&f[2]){if(v===void 0&&!(c in e))return!1}else{var l=new F;if(a)var b=a(v,s,c,e,n,l);if(!(b===void 0?Tn(s,v,si|li,a,l):b))return!1}}return!0}u(zn,"baseIsMatch");var bi=zn;function Kn(e){return e===e&&!M(e)}u(Kn,"isStrictComparable");var Ln=Kn;function Gn(e){for(var n=S(e),r=n.length;r--;){var a=n[r],t=e[a];n[r]=[a,t,Ln(t)]}return n}u(Gn,"getMatchData");var hi=Gn;function Hn(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}u(Hn,"matchesStrictComparable");var Xn=Hn;function Zn(e){var n=hi(e);return n.length==1&&n[0][2]?Xn(n[0][0],n[0][1]):function(r){return r===e||bi(r,e,n)}}u(Zn,"baseMatches");var pi=Zn,gi="[object Symbol]";function Jn(e){return typeof e=="symbol"||$(e)&&ue(e)==gi}u(Jn,"isSymbol");var _=Jn,yi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/;function Wn(e,n){if(p(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_(e)?!0:di.test(e)||!yi.test(e)||n!=null&&e in Object(n)}u(Wn,"isKey");var pe=Wn,mi=500;function Qn(e){var n=st(e,function(a){return r.size===mi&&r.clear(),a}),r=n.cache;return n}u(Qn,"memoizeCapped");var ji=Qn,Oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wi=/\\(\\)?/g,Ai=ji(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Oi,function(r,a,t,i){n.push(t?i.replace(wi,"$1"):a||r)}),n}),Si=Ai;function Yn(e,n){for(var r=-1,a=e==null?0:e.length,t=Array(a);++r<a;)t[r]=n(e[r],r,e);return t}u(Yn,"arrayMap");var w=Yn,Re=A?A.prototype:void 0,Be=Re?Re.toString:void 0;function ge(e){if(typeof e=="string")return e;if(p(e))return w(e,ge)+"";if(_(e))return Be?Be.call(e):"";var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}u(ge,"baseToString");var Ii=ge;function er(e){return e==null?"":Ii(e)}u(er,"toString");var nr=er;function rr(e,n){return p(e)?e:pe(e,n)?[e]:Si(nr(e))}u(rr,"castPath");var J=rr;function ar(e){if(typeof e=="string"||_(e))return e;var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}u(ar,"toKey");var V=ar;function tr(e,n){n=J(n,e);for(var r=0,a=n.length;e!=null&&r<a;)e=e[V(n[r++])];return r&&r==a?e:void 0}u(tr,"baseGet");var W=tr;function ur(e,n,r){var a=e==null?void 0:W(e,n);return a===void 0?r:a}u(ur,"get");var $i=ur;function ir(e,n){return e!=null&&n in Object(e)}u(ir,"baseHasIn");var _i=ir;function or(e,n,r){n=J(n,e);for(var a=-1,t=n.length,i=!1;++a<t;){var o=V(n[a]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++a!=t?i:(t=e==null?0:e.length,!!t&&ct(t)&&Ve(o,t)&&(p(e)||Te(e)))}u(or,"hasPath");var fr=or;function cr(e,n){return e!=null&&fr(e,n,_i)}u(cr,"hasIn");var vr=cr,Ei=1,xi=2;function sr(e,n){return pe(e)&&Ln(n)?Xn(V(e),n):function(r){var a=$i(r,e);return a===void 0&&a===n?vr(r,e):Tn(n,a,Ei|xi)}}u(sr,"baseMatchesProperty");var Mi=sr;function lr(e){return function(n){return n==null?void 0:n[e]}}u(lr,"baseProperty");var br=lr;function hr(e){return function(n){return W(n,e)}}u(hr,"basePropertyDeep");var Pi=hr;function pr(e){return pe(e)?br(V(e)):Pi(e)}u(pr,"property");var Ri=pr;function gr(e){return typeof e=="function"?e:e==null?D:typeof e=="object"?p(e)?Mi(e[0],e[1]):pi(e):Ri(e)}u(gr,"baseIteratee");var j=gr;function yr(e,n){var r=p(e)?ie:xn;return r(e,j(n))}u(yr,"filter");var Bf=yr;function dr(e,n){var r=-1,a=E(e)?Array(e.length):[];return x(e,function(t,i,o){a[++r]=n(t,i,o)}),a}u(dr,"baseMap");var mr=dr;function jr(e,n){var r=p(e)?w:mr;return r(e,j(n))}u(jr,"map");var Bi=jr;function Or(e,n){return w(n,function(r){return e[r]})}u(Or,"baseValues");var Fi=Or;function wr(e){return e==null?[]:Fi(e,S(e))}u(wr,"values");var ki=wr;function Ar(e){return e===void 0}u(Ar,"isUndefined");var Ff=Ar;function Sr(e,n){var r={};return n=j(n),ce(e,function(a,t,i){Le(r,t,n(a,t,i))}),r}u(Sr,"mapValues");var kf=Sr;function Ir(e,n,r){for(var a=-1,t=e.length;++a<t;){var i=e[a],o=n(i);if(o!=null&&(f===void 0?o===o&&!_(o):r(o,f)))var f=o,c=i}return c}u(Ir,"baseExtremum");var ye=Ir;function $r(e,n){return e>n}u($r,"baseGt");var Ci=$r;function _r(e){return e&&e.length?ye(e,D,Ci):void 0}u(_r,"max");var Cf=_r;function Er(e,n,r,a){if(!M(e))return e;n=J(n,e);for(var t=-1,i=n.length,o=i-1,f=e;f!=null&&++t<i;){var c=V(n[t]),v=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(t!=o){var s=f[c];v=a?a(s,c,f):void 0,v===void 0&&(v=M(s)?s:Ve(n[t+1])?[]:{})}Z(f,c,v),f=f[c]}return e}u(Er,"baseSet");var Di=Er;function xr(e,n,r){for(var a=-1,t=n.length,i={};++a<t;){var o=n[a],f=W(e,o);r(f,o)&&Di(i,J(o,e),f)}return i}u(xr,"basePickBy");var Mr=xr;function Pr(e,n){return Mr(e,n,function(r,a){return vr(e,a)})}u(Pr,"basePick");var Ui=Pr,Fe=A?A.isConcatSpreadable:void 0;function Rr(e){return p(e)||Te(e)||!!(Fe&&e&&e[Fe])}u(Rr,"isFlattenable");var qi=Rr;function de(e,n,r,a,t){var i=-1,o=e.length;for(r||(r=qi),t||(t=[]);++i<o;){var f=e[i];n>0&&r(f)?n>1?de(f,n-1,r,a,t):fe(t,f):a||(t[t.length]=f)}return t}u(de,"baseFlatten");var T=de;function Br(e){var n=e==null?0:e.length;return n?T(e,1):[]}u(Br,"flatten");var Ni=Br;function Fr(e){return pt(gt(e,void 0,Ni),e+"")}u(Fr,"flatRest");var Vi=Fr,Ti=Vi(function(e,n){return e==null?{}:Ui(e,n)}),Df=Ti;function kr(e,n,r,a){var t=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++t]);++t<i;)r=n(r,e[t],t,e);return r}u(kr,"arrayReduce");var zi=kr;function Cr(e,n,r,a,t){return t(e,function(i,o,f){r=a?(a=!1,i):n(r,i,o,f)}),r}u(Cr,"baseReduce");var Ki=Cr;function Dr(e,n,r){var a=p(e)?zi:Ki,t=arguments.length<3;return a(e,j(n),r,t,x)}u(Dr,"reduce");var Uf=Dr;function Ur(e,n,r,a){for(var t=e.length,i=r+(a?1:-1);a?i--:++i<t;)if(n(e[i],i,e))return i;return-1}u(Ur,"baseFindIndex");var qr=Ur;function Nr(e){return e!==e}u(Nr,"baseIsNaN");var Li=Nr;function Vr(e,n,r){for(var a=r-1,t=e.length;++a<t;)if(e[a]===n)return a;return-1}u(Vr,"strictIndexOf");var Gi=Vr;function Tr(e,n,r){return n===n?Gi(e,n,r):qr(e,Li,r)}u(Tr,"baseIndexOf");var me=Tr;function zr(e,n){var r=e==null?0:e.length;return!!r&&me(e,n,0)>-1}u(zr,"arrayIncludes");var Kr=zr;function Lr(e,n,r){for(var a=-1,t=e==null?0:e.length;++a<t;)if(r(n,e[a]))return!0;return!1}u(Lr,"arrayIncludesWith");var Gr=Lr;function Hr(){}u(Hr,"noop");var Hi=Hr,Xi=1/0,Zi=Q&&1/be(new Q([,-0]))[1]==Xi?function(e){return new Q(e)}:Hi,Ji=Zi,Wi=200;function Xr(e,n,r){var a=-1,t=Kr,i=e.length,o=!0,f=[],c=f;if(r)o=!1,t=Gr;else if(i>=Wi){var v=n?null:Ji(e);if(v)return be(v);o=!1,t=le,c=new se}else c=n?[]:f;e:for(;++a<i;){var s=e[a],l=n?n(s):s;if(s=r||s!==0?s:0,o&&l===l){for(var b=c.length;b--;)if(c[b]===l)continue e;n&&c.push(l),f.push(s)}else t(c,l,r)||(c!==f&&c.push(l),f.push(s))}return f}u(Xr,"baseUniq");var je=Xr,Qi=X(function(e){return je(T(e,1,ne,!0))}),qf=Qi,Yi=/\s/;function Zr(e){for(var n=e.length;n--&&Yi.test(e.charAt(n)););return n}u(Zr,"trimmedEndIndex");var eo=Zr,no=/^\s+/;function Jr(e){return e&&e.slice(0,eo(e)+1).replace(no,"")}u(Jr,"baseTrim");var ro=Jr,ke=NaN,ao=/^[-+]0x[0-9a-f]+$/i,to=/^0b[01]+$/i,uo=/^0o[0-7]+$/i,io=parseInt;function Wr(e){if(typeof e=="number")return e;if(_(e))return ke;if(M(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=M(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=ro(e);var r=to.test(e);return r||uo.test(e)?io(e.slice(2),r?2:8):ao.test(e)?ke:+e}u(Wr,"toNumber");var oo=Wr,Ce=1/0,fo=17976931348623157e292;function Qr(e){if(!e)return e===0?e:0;if(e=oo(e),e===Ce||e===-Ce){var n=e<0?-1:1;return n*fo}return e===e?e:0}u(Qr,"toFinite");var H=Qr;function Yr(e){var n=H(e),r=n%1;return n===n?r?n-r:n:0}u(Yr,"toInteger");var z=Yr,co=Object.prototype,vo=co.hasOwnProperty,so=lt(function(e,n){if(bt(n)||E(n)){q(n,S(n),e);return}for(var r in n)vo.call(n,r)&&Z(e,r,n[r])}),Nf=so;function ea(e,n,r){var a=-1,t=e.length;n<0&&(n=-n>t?0:t+n),r=r>t?t:r,r<0&&(r+=t),t=n>r?0:r-n>>>0,n>>>=0;for(var i=Array(t);++a<t;)i[a]=e[a+n];return i}u(ea,"baseSlice");var na=ea,lo="\\ud800-\\udfff",bo="\\u0300-\\u036f",ho="\\ufe20-\\ufe2f",po="\\u20d0-\\u20ff",go=bo+ho+po,yo="\\ufe0e\\ufe0f",mo="\\u200d",jo=RegExp("["+mo+lo+go+yo+"]");function ra(e){return jo.test(e)}u(ra,"hasUnicode");var Oo=ra,wo=1,Ao=4;function aa(e){return jn(e,wo|Ao)}u(aa,"cloneDeep");var Vf=aa;function ta(e){for(var n=-1,r=e==null?0:e.length,a=0,t=[];++n<r;){var i=e[n];i&&(t[a++]=i)}return t}u(ta,"compact");var Tf=ta;function ua(e,n,r,a){for(var t=-1,i=e==null?0:e.length;++t<i;){var o=e[t];n(a,o,r(o),e)}return a}u(ua,"arrayAggregator");var So=ua;function ia(e,n,r,a){return x(e,function(t,i,o){n(a,t,r(t),o)}),a}u(ia,"baseAggregator");var Io=ia;function oa(e,n){return function(r,a){var t=p(r)?So:Io,i=n?n():{};return t(r,e,j(a),i)}}u(oa,"createAggregator");var $o=oa,_o=u(function(){return ht.Date.now()},"now"),zf=_o,Eo=200;function fa(e,n,r,a){var t=-1,i=Kr,o=!0,f=e.length,c=[],v=n.length;if(!f)return c;r&&(n=w(n,N(r))),a?(i=Gr,o=!1):n.length>=Eo&&(i=le,o=!1,n=new se(n));e:for(;++t<f;){var s=e[t],l=r==null?s:r(s);if(s=a||s!==0?s:0,o&&l===l){for(var b=v;b--;)if(n[b]===l)continue e;c.push(s)}else i(n,l,a)||c.push(s)}return c}u(fa,"baseDifference");var xo=fa,Mo=X(function(e,n){return ne(e)?xo(e,T(n,1,ne,!0)):[]}),Kf=Mo;function ca(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===void 0?1:z(n),na(e,n<0?0:n,a)):[]}u(ca,"drop");var Lf=ca;function va(e,n,r){var a=e==null?0:e.length;return a?(n=r||n===void 0?1:z(n),n=a-n,na(e,0,n<0?0:n)):[]}u(va,"dropRight");var Gf=va;function sa(e,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(!n(e[r],r,e))return!1;return!0}u(sa,"arrayEvery");var Po=sa;function la(e,n){var r=!0;return x(e,function(a,t,i){return r=!!n(a,t,i),r}),r}u(la,"baseEvery");var Ro=la;function ba(e,n,r){var a=p(e)?Po:Ro;return r&&B(e,n,r)&&(n=void 0),a(e,j(n))}u(ba,"every");var Hf=ba;function ha(e){return function(n,r,a){var t=Object(n);if(!E(n)){var i=j(r);n=S(n),r=u(function(f){return i(t[f],f,t)},"predicate")}var o=e(n,r,a);return o>-1?t[i?n[o]:o]:void 0}}u(ha,"createFind");var Bo=ha,Fo=Math.max;function pa(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var t=r==null?0:z(r);return t<0&&(t=Fo(a+t,0)),qr(e,j(n),t)}u(pa,"findIndex");var ko=pa,Co=Bo(ko),Xf=Co;function ga(e){return e&&e.length?e[0]:void 0}u(ga,"head");var Zf=ga;function ya(e,n){return T(Bi(e,n),1)}u(ya,"flatMap");var Jf=ya;function da(e,n){return e==null?e:Ke(e,ve(n),U)}u(da,"forIn");var Wf=da;function ma(e,n){return e&&ce(e,ve(n))}u(ma,"forOwn");var Qf=ma,Do=Object.prototype,Uo=Do.hasOwnProperty,qo=$o(function(e,n,r){Uo.call(e,r)?e[r].push(n):Le(e,r,[n])}),Yf=qo,No=Object.prototype,Vo=No.hasOwnProperty;function ja(e,n){return e!=null&&Vo.call(e,n)}u(ja,"baseHas");var To=ja;function Oa(e,n){return e!=null&&fr(e,n,To)}u(Oa,"has");var ec=Oa,zo="[object String]";function wa(e){return typeof e=="string"||!p(e)&&$(e)&&ue(e)==zo}u(wa,"isString");var Aa=wa,Ko=Math.max;function Sa(e,n,r,a){e=E(e)?e:ki(e),r=r&&!a?z(r):0;var t=e.length;return r<0&&(r=Ko(t+r,0)),Aa(e)?r<=t&&e.indexOf(n,r)>-1:!!t&&me(e,n,r)>-1}u(Sa,"includes");var nc=Sa,Lo=Math.max;function Ia(e,n,r){var a=e==null?0:e.length;if(!a)return-1;var t=r==null?0:z(r);return t<0&&(t=Lo(a+t,0)),me(e,n,t)}u(Ia,"indexOf");var rc=Ia,Go="[object RegExp]";function $a(e){return $(e)&&ue(e)==Go}u($a,"baseIsRegExp");var Ho=$a,De=R&&R.isRegExp,Xo=De?N(De):Ho,ac=Xo;function _a(e,n){return e<n}u(_a,"baseLt");var Ea=_a;function xa(e){return e&&e.length?ye(e,D,Ea):void 0}u(xa,"min");var tc=xa;function Ma(e,n){return e&&e.length?ye(e,j(n),Ea):void 0}u(Ma,"minBy");var uc=Ma,Zo="Expected a function";function Pa(e){if(typeof e!="function")throw new TypeError(Zo);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}u(Pa,"negate");var Jo=Pa;function Ra(e,n){if(e==null)return{};var r=w(cn(e),function(a){return[a]});return n=j(n),Mr(e,r,function(a,t){return n(a,t[0])})}u(Ra,"pickBy");var ic=Ra;function Ba(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}u(Ba,"baseSortBy");var Wo=Ba;function Fa(e,n){if(e!==n){var r=e!==void 0,a=e===null,t=e===e,i=_(e),o=n!==void 0,f=n===null,c=n===n,v=_(n);if(!f&&!v&&!i&&e>n||i&&o&&c&&!f&&!v||a&&o&&c||!r&&c||!t)return 1;if(!a&&!i&&!v&&e<n||v&&r&&t&&!a&&!i||f&&r&&t||!o&&t||!c)return-1}return 0}u(Fa,"compareAscending");var Qo=Fa;function ka(e,n,r){for(var a=-1,t=e.criteria,i=n.criteria,o=t.length,f=r.length;++a<o;){var c=Qo(t[a],i[a]);if(c){if(a>=f)return c;var v=r[a];return c*(v=="desc"?-1:1)}}return e.index-n.index}u(ka,"compareMultiple");var Yo=ka;function Ca(e,n,r){n.length?n=w(n,function(i){return p(i)?function(o){return W(o,i.length===1?i[0]:i)}:i}):n=[D];var a=-1;n=w(n,N(j));var t=mr(e,function(i,o,f){var c=w(n,function(v){return v(i)});return{criteria:c,index:++a,value:i}});return Wo(t,function(i,o){return Yo(i,o,r)})}u(Ca,"baseOrderBy");var ef=Ca,nf=br("length"),rf=nf,Da="\\ud800-\\udfff",af="\\u0300-\\u036f",tf="\\ufe20-\\ufe2f",uf="\\u20d0-\\u20ff",of=af+tf+uf,ff="\\ufe0e\\ufe0f",cf="["+Da+"]",ae="["+of+"]",te="\\ud83c[\\udffb-\\udfff]",vf="(?:"+ae+"|"+te+")",Ua="[^"+Da+"]",qa="(?:\\ud83c[\\udde6-\\uddff]){2}",Na="[\\ud800-\\udbff][\\udc00-\\udfff]",sf="\\u200d",Va=vf+"?",Ta="["+ff+"]?",lf="(?:"+sf+"(?:"+[Ua,qa,Na].join("|")+")"+Ta+Va+")*",bf=Ta+Va+lf,hf="(?:"+[Ua+ae+"?",ae,qa,Na,cf].join("|")+")",Ue=RegExp(te+"(?="+te+")|"+hf+bf,"g");function za(e){for(var n=Ue.lastIndex=0;Ue.test(e);)++n;return n}u(za,"unicodeSize");var pf=za;function Ka(e){return Oo(e)?pf(e):rf(e)}u(Ka,"stringSize");var gf=Ka,yf=Math.ceil,df=Math.max;function La(e,n,r,a){for(var t=-1,i=df(yf((n-e)/(r||1)),0),o=Array(i);i--;)o[a?i:++t]=e,e+=r;return o}u(La,"baseRange");var mf=La;function Ga(e){return function(n,r,a){return a&&typeof a!="number"&&B(n,r,a)&&(r=a=void 0),n=H(n),r===void 0?(r=n,n=0):r=H(r),a=a===void 0?n<r?1:-1:H(a),mf(n,r,a,e)}}u(Ga,"createRange");var jf=Ga,Of=jf(),oc=Of;function Ha(e,n){var r=p(e)?ie:xn;return r(e,Jo(j(n)))}u(Ha,"reject");var fc=Ha,wf="[object Map]",Af="[object Set]";function Xa(e){if(e==null)return 0;if(E(e))return Aa(e)?gf(e):e.length;var n=P(e);return n==wf||n==Af?e.size:qe(e).length}u(Xa,"size");var cc=Xa;function Za(e,n){var r;return x(e,function(a,t,i){return r=n(a,t,i),!r}),!!r}u(Za,"baseSome");var Sf=Za;function Ja(e,n,r){var a=p(e)?Bn:Sf;return r&&B(e,n,r)&&(n=void 0),a(e,j(n))}u(Ja,"some");var vc=Ja,If=X(function(e,n){if(e==null)return[];var r=n.length;return r>1&&B(e,n[0],n[1])?n=[]:r>2&&B(n[0],n[1],n[2])&&(n=[n[0]]),ef(e,T(n,1),[])}),sc=If;function Wa(e){return e&&e.length?je(e):[]}u(Wa,"uniq");var lc=Wa;function Qa(e,n){return e&&e.length?je(e,j(n)):[]}u(Qa,"uniqBy");var bc=Qa,$f=0;function Ya(e){var n=++$f;return nr(e)+n}u(Ya,"uniqueId");var hc=Ya;function et(e,n,r){for(var a=-1,t=e.length,i=n.length,o={};++a<t;){var f=a<i?n[a]:void 0;r(o,e[a],f)}return o}u(et,"baseZipObject");var _f=et;function nt(e,n){return _f(e||[],n||[],Z)}u(nt,"zipObject");var pc=nt;/*! Bundled license information:
2
-
3
- lodash-es/lodash.js:
4
- (**
5
- * @license
6
- * Lodash (Custom Build) <https://lodash.com/>
7
- * Build: `lodash modularize exports="es" -o ./`
8
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
9
- * Released under MIT license <https://lodash.com/license>
10
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
11
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
12
- *)
13
- */export{Tf as A,nc as B,ac as C,Pf as D,Gf as E,lc as F,vc as G,rc as H,Bi as J,Xf as K,Lf as M,Mf as N,uc as O,Ni as Q,Uf as R,Df as T,Hf as U,Yf as V,ki as X,Rf as Z,xf as _,oc as a,Cf as b,zf as c,kf as d,Bf as e,ec as f,pc as g,Vf as h,Wf as i,Qf as j,S as k,hc as l,qf as m,sc as n,Nf as o,Hi as p,Zf as q,fc as r,Ff as s,cc as t,Aa as u,ic as v,bc as w,Kf as x,tc as y,Jf as z};
@@ -1 +0,0 @@
1
- import{k as l,e as m,Z as a,s as c,m as N,X as b,R as P}from"./chunk-H3VCZNTA-Cx5XV_aC.js";import{m as d,bw as f,bx as w,by as y}from"./index-BgeqpYgd.js";var D="\0",u="\0",E="",p,j=(p=class{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[u]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return w(t)||(t=f(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return l(this._nodes)}sources(){var t=this;return m(this.nodes(),function(e){return y(t._in[e])})}sinks(){var t=this;return m(this.nodes(),function(e){return y(t._out[e])})}setNodes(t,e){var s=arguments,r=this;return a(t,function(i){s.length>1?r.setNode(i,e):r.setNode(i)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=u,this._children[t]={},this._children[u][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=d(s=>this.removeEdge(this._edgeObjs[s]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],a(this.children(t),s=>{this.setParent(s)}),delete this._children[t]),a(l(this._in[t]),e),delete this._in[t],delete this._preds[t],a(l(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c(e))e=u;else{e+="";for(var s=e;!c(s);s=this.parent(s))if(s===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==u)return e}}children(t){if(c(t)&&(t=u),this._isCompound){var e=this._children[t];if(e)return l(e)}else{if(t===u)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return l(e)}successors(t){var e=this._sucs[t];if(e)return l(e)}neighbors(t){var e=this.predecessors(t);if(e)return N(e,this.successors(t))}isLeaf(t){var e;return this.isDirected()?e=this.successors(t):e=this.neighbors(t),e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var s=this;a(this._nodes,function(n,h){t(h)&&e.setNode(h,n)}),a(this._edgeObjs,function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,s.edge(n))});var r={};function i(n){var h=s.parent(n);return h===void 0||e.hasNode(h)?(r[n]=h,h):h in r?r[h]:i(h)}return d(i,"findParent"),this._isCompound&&a(e.nodes(),function(n){e.setParent(n,i(n))}),e}setDefaultEdgeLabel(t){return w(t)||(t=f(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return b(this._edgeObjs)}setPath(t,e){var s=this,r=arguments;return P(t,function(i,n){return r.length>1?s.setEdge(i,n,e):s.setEdge(i,n),n}),this}setEdge(){var t,e,s,r,i=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(t=n.v,e=n.w,s=n.name,arguments.length===2&&(r=arguments[1],i=!0)):(t=n,e=arguments[1],s=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,c(s)||(s=""+s);var h=g(this._isDirected,t,e,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return i&&(this._edgeLabels[h]=r),this;if(!c(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[h]=i?r:this._defaultEdgeLabelFn(t,e,s);var _=L(this._isDirected,t,e,s);return t=_.v,e=_.w,Object.freeze(_),this._edgeObjs[h]=_,O(this._preds[e],t),O(this._sucs[t],e),this._in[e][h]=_,this._out[t][h]=_,this._edgeCount++,this}edge(t,e,s){var r=arguments.length===1?v(this._isDirected,arguments[0]):g(this._isDirected,t,e,s);return this._edgeLabels[r]}hasEdge(t,e,s){var r=arguments.length===1?v(this._isDirected,arguments[0]):g(this._isDirected,t,e,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(t,e,s){var r=arguments.length===1?v(this._isDirected,arguments[0]):g(this._isDirected,t,e,s),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],C(this._preds[e],t),C(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}inEdges(t,e){var s=this._in[t];if(s){var r=b(s);return e?m(r,function(i){return i.v===e}):r}}outEdges(t,e){var s=this._out[t];if(s){var r=b(s);return e?m(r,function(i){return i.w===e}):r}}nodeEdges(t,e){var s=this.inEdges(t,e);if(s)return s.concat(this.outEdges(t,e))}},d(p,"Graph"),p);j.prototype._nodeCount=0;j.prototype._edgeCount=0;function O(o,t){o[t]?o[t]++:o[t]=1}d(O,"incrementOrInitEntry");function C(o,t){--o[t]||delete o[t]}d(C,"decrementOrRemoveEntry");function g(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}return r+E+i+E+(c(s)?D:s)}d(g,"edgeArgsToId");function L(o,t,e,s){var r=""+t,i=""+e;if(!o&&r>i){var n=r;r=i,i=n}var h={v:r,w:i};return s&&(h.name=s),h}d(L,"edgeArgsToObj");function v(o,t){return g(o,t.v,t.w,t.name)}d(v,"edgeObjToId");export{j as m};
@@ -1,206 +0,0 @@
1
- import{o as ee}from"./chunk-KSICW3F5-BYzvDLNI.js";import{T as se}from"./chunk-O5ABG6QK-dHwHzA6n.js";import{m as ie}from"./chunk-TBF5ZNIQ-DL5stGM1.js";import{y as ae}from"./chunk-RWUO3TPN-BgRTY0_k.js";import{m as d,p as Ot,q as F,g as re,P as ne,U as vt,i as pt,B as ue,e as le,s as oe,a as ce,l as he,h as pe,n as de,C as I,o as Ae,J as ye,c as be,al as U}from"./index-BgeqpYgd.js";var wt=function(){var s=d(function(L,c,h,r){for(h=h||{},r=L.length;r--;h[L[r]]=c);return h},"o"),i=[1,18],a=[1,19],n=[1,20],u=[1,41],l=[1,26],o=[1,42],A=[1,24],f=[1,25],N=[1,32],O=[1,33],At=[1,34],b=[1,45],yt=[1,35],bt=[1,36],gt=[1,37],mt=[1,38],Ct=[1,27],ft=[1,28],kt=[1,29],Et=[1,30],Tt=[1,31],g=[1,44],m=[1,46],C=[1,43],k=[1,47],Ft=[1,9],p=[1,8,9],Z=[1,58],tt=[1,59],et=[1,60],st=[1,61],it=[1,62],Dt=[1,63],Bt=[1,64],S=[1,8,9,41],Rt=[1,77],P=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],at=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],rt=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Pt=[13,60,68,69,70,71,72,86,100,102,103],nt=[1,102],Y=[1,120],W=[1,116],Q=[1,112],q=[1,118],X=[1,113],j=[1,114],H=[1,115],J=[1,117],V=[1,119],Mt=[22,50,60,61,82,86,87,88,89,90],_t=[1,8,9,39,41,44,46],ut=[1,8,9,22],Ut=[1,150],Gt=[1,8,9,61],$=[1,8,9,22,50,60,61,82,86,87,88,89,90],St={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:d(function(L,c,h,r,y,t,D){var e=t.length-1;switch(y){case 8:this.$=t[e-1];break;case 9:case 10:case 13:case 15:this.$=t[e];break;case 11:case 14:this.$=t[e-2]+"."+t[e];break;case 12:case 16:this.$=t[e-1]+t[e];break;case 17:case 18:this.$=t[e-1]+"~"+t[e]+"~";break;case 19:r.addRelation(t[e]);break;case 20:t[e-1].title=r.cleanupLabel(t[e]),r.addRelation(t[e-1]);break;case 31:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(t[e-3],t[e-1][0],t[e-1][1]);break;case 35:r.addClassesToNamespace(t[e-4],t[e-1][0],t[e-1][1]);break;case 36:this.$=t[e],r.addNamespace(t[e]);break;case 37:this.$=[[t[e]],[]];break;case 38:this.$=[[t[e-1]],[]];break;case 39:t[e][0].unshift(t[e-2]),this.$=t[e];break;case 40:this.$=[[],[t[e]]];break;case 41:this.$=[[],[t[e-1]]];break;case 42:t[e][1].unshift(t[e-2]),this.$=t[e];break;case 44:r.setCssClass(t[e-2],t[e]);break;case 45:r.addMembers(t[e-3],t[e-1]);break;case 47:r.setCssClass(t[e-5],t[e-3]),r.addMembers(t[e-5],t[e-1]);break;case 48:r.addAnnotation(t[e-3],t[e-1]);break;case 49:r.addAnnotation(t[e-6],t[e-4]),r.addMembers(t[e-6],t[e-1]);break;case 50:r.addAnnotation(t[e-5],t[e-3]);break;case 51:this.$=t[e],r.addClass(t[e]);break;case 52:this.$=t[e-1],r.addClass(t[e-1]),r.setClassLabel(t[e-1],t[e]);break;case 56:r.addAnnotation(t[e],t[e-2]);break;case 57:case 70:this.$=[t[e]];break;case 58:t[e].push(t[e-1]),this.$=t[e];break;case 59:break;case 60:r.addMember(t[e-1],r.cleanupLabel(t[e]));break;case 61:break;case 62:break;case 63:this.$={id1:t[e-2],id2:t[e],relation:t[e-1],relationTitle1:"none",relationTitle2:"none"};break;case 64:this.$={id1:t[e-3],id2:t[e],relation:t[e-1],relationTitle1:t[e-2],relationTitle2:"none"};break;case 65:this.$={id1:t[e-3],id2:t[e],relation:t[e-2],relationTitle1:"none",relationTitle2:t[e-1]};break;case 66:this.$={id1:t[e-4],id2:t[e],relation:t[e-2],relationTitle1:t[e-3],relationTitle2:t[e-1]};break;case 67:this.$=r.addNote(t[e],t[e-1]);break;case 68:this.$=r.addNote(t[e]);break;case 69:this.$=t[e-2],r.defineClass(t[e-1],t[e]);break;case 71:this.$=t[e-2].concat([t[e]]);break;case 72:r.setDirection("TB");break;case 73:r.setDirection("BT");break;case 74:r.setDirection("RL");break;case 75:r.setDirection("LR");break;case 76:this.$={type1:t[e-2],type2:t[e],lineType:t[e-1]};break;case 77:this.$={type1:"none",type2:t[e],lineType:t[e-1]};break;case 78:this.$={type1:t[e-1],type2:"none",lineType:t[e]};break;case 79:this.$={type1:"none",type2:"none",lineType:t[e]};break;case 80:this.$=r.relationType.AGGREGATION;break;case 81:this.$=r.relationType.EXTENSION;break;case 82:this.$=r.relationType.COMPOSITION;break;case 83:this.$=r.relationType.DEPENDENCY;break;case 84:this.$=r.relationType.LOLLIPOP;break;case 85:this.$=r.lineType.LINE;break;case 86:this.$=r.lineType.DOTTED_LINE;break;case 87:case 93:this.$=t[e-2],r.setClickEvent(t[e-1],t[e]);break;case 88:case 94:this.$=t[e-3],r.setClickEvent(t[e-2],t[e-1]),r.setTooltip(t[e-2],t[e]);break;case 89:this.$=t[e-2],r.setLink(t[e-1],t[e]);break;case 90:this.$=t[e-3],r.setLink(t[e-2],t[e-1],t[e]);break;case 91:this.$=t[e-3],r.setLink(t[e-2],t[e-1]),r.setTooltip(t[e-2],t[e]);break;case 92:this.$=t[e-4],r.setLink(t[e-3],t[e-2],t[e]),r.setTooltip(t[e-3],t[e-1]);break;case 95:this.$=t[e-3],r.setClickEvent(t[e-2],t[e-1],t[e]);break;case 96:this.$=t[e-4],r.setClickEvent(t[e-3],t[e-2],t[e-1]),r.setTooltip(t[e-3],t[e]);break;case 97:this.$=t[e-3],r.setLink(t[e-2],t[e]);break;case 98:this.$=t[e-4],r.setLink(t[e-3],t[e-1],t[e]);break;case 99:this.$=t[e-4],r.setLink(t[e-3],t[e-1]),r.setTooltip(t[e-3],t[e]);break;case 100:this.$=t[e-5],r.setLink(t[e-4],t[e-2],t[e]),r.setTooltip(t[e-4],t[e-1]);break;case 101:this.$=t[e-2],r.setCssStyle(t[e-1],t[e]);break;case 102:r.setCssClass(t[e-1],t[e]);break;case 103:this.$=[t[e]];break;case 104:t[e-2].push(t[e]),this.$=t[e-2];break;case 106:this.$=t[e-1]+t[e];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:u,43:23,46:l,48:o,51:A,52:f,54:N,56:O,57:At,60:b,62:yt,63:bt,64:gt,65:mt,75:Ct,76:ft,78:kt,82:Et,83:Tt,86:g,100:m,102:C,103:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Ft,[2,5],{8:[1,48]}),{8:[1,49]},s(p,[2,19],{22:[1,50]}),s(p,[2,21]),s(p,[2,22]),s(p,[2,23]),s(p,[2,24]),s(p,[2,25]),s(p,[2,26]),s(p,[2,27]),s(p,[2,28]),s(p,[2,29]),s(p,[2,30]),{34:[1,51]},{36:[1,52]},s(p,[2,33]),s(p,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:tt,70:et,71:st,72:it,73:Dt,74:Bt}),{39:[1,65]},s(S,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),s(p,[2,61]),s(p,[2,62]),{16:69,60:b,86:g,100:m,102:C},{16:39,17:40,19:70,60:b,86:g,100:m,102:C,103:k},{16:39,17:40,19:71,60:b,86:g,100:m,102:C,103:k},{16:39,17:40,19:72,60:b,86:g,100:m,102:C,103:k},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:g,100:m,102:C,103:k},{13:Rt,55:76},{58:78,60:[1,79]},s(p,[2,72]),s(p,[2,73]),s(p,[2,74]),s(p,[2,75]),s(P,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:g,100:m,102:C,103:k}),s(P,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:g,100:m,102:C,103:k},{16:39,17:40,19:87,60:b,86:g,100:m,102:C,103:k},s(at,[2,129]),s(at,[2,130]),s(at,[2,131]),s(at,[2,132]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),s(Ft,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:u,46:l,48:o,51:A,52:f,54:N,56:O,57:At,60:b,62:yt,63:bt,64:gt,65:mt,75:Ct,76:ft,78:kt,82:Et,83:Tt,86:g,100:m,102:C,103:k}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:u,43:23,46:l,48:o,51:A,52:f,54:N,56:O,57:At,60:b,62:yt,63:bt,64:gt,65:mt,75:Ct,76:ft,78:kt,82:Et,83:Tt,86:g,100:m,102:C,103:k},s(p,[2,20]),s(p,[2,31]),s(p,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:g,100:m,102:C,103:k},{53:92,66:56,67:57,68:Z,69:tt,70:et,71:st,72:it,73:Dt,74:Bt},s(p,[2,60]),{67:93,73:Dt,74:Bt},s(rt,[2,79],{66:94,68:Z,69:tt,70:et,71:st,72:it}),s(K,[2,80]),s(K,[2,81]),s(K,[2,82]),s(K,[2,83]),s(K,[2,84]),s(Pt,[2,85]),s(Pt,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:o,54:N,56:O},{16:99,60:b,86:g,100:m,102:C},{41:[1,101],45:100,51:nt},{16:103,60:b,86:g,100:m,102:C},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:Y,50:W,59:109,60:Q,82:q,84:110,85:111,86:X,87:j,88:H,89:J,90:V},{60:[1,121]},{13:Rt,55:122},s(S,[2,68]),s(S,[2,134]),{22:Y,50:W,59:123,60:Q,61:[1,124],82:q,84:110,85:111,86:X,87:j,88:H,89:J,90:V},s(Mt,[2,70]),{16:39,17:40,19:125,60:b,86:g,100:m,102:C,103:k},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:b,86:g,100:m,102:C,103:k},{39:[2,10]},s(_t,[2,51],{11:128,12:[1,129]}),s(Ft,[2,7]),{9:[1,130]},s(ut,[2,63]),{16:39,17:40,19:131,60:b,86:g,100:m,102:C,103:k},{13:[1,133],16:39,17:40,19:132,60:b,86:g,100:m,102:C,103:k},s(rt,[2,78],{66:134,68:Z,69:tt,70:et,71:st,72:it}),s(rt,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:o,54:N,56:O},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},s(S,[2,44],{39:[1,139]}),{41:[1,140]},s(S,[2,46]),{41:[2,57],45:141,51:nt},{47:[1,142]},{16:39,17:40,19:143,60:b,86:g,100:m,102:C,103:k},s(p,[2,87],{13:[1,144]}),s(p,[2,89],{13:[1,146],77:[1,145]}),s(p,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},s(p,[2,101],{61:Ut}),s(Gt,[2,103],{85:151,22:Y,50:W,60:Q,82:q,86:X,87:j,88:H,89:J,90:V}),s($,[2,105]),s($,[2,107]),s($,[2,108]),s($,[2,109]),s($,[2,110]),s($,[2,111]),s($,[2,112]),s($,[2,113]),s($,[2,114]),s($,[2,115]),s(p,[2,102]),s(S,[2,67]),s(p,[2,69],{61:Ut}),{60:[1,152]},s(P,[2,14]),{15:153,16:85,17:86,60:b,86:g,100:m,102:C,103:k},{39:[2,12]},s(_t,[2,52]),{13:[1,154]},{1:[2,4]},s(ut,[2,65]),s(ut,[2,64]),{16:39,17:40,19:155,60:b,86:g,100:m,102:C,103:k},s(rt,[2,76]),s(p,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:o,54:N,56:O},{24:97,30:98,40:158,41:[2,41],43:23,48:o,54:N,56:O},{45:159,51:nt},s(S,[2,45]),{41:[2,58]},s(S,[2,48],{39:[1,160]}),s(p,[2,56]),s(p,[2,88]),s(p,[2,90]),s(p,[2,91],{77:[1,161]}),s(p,[2,94]),s(p,[2,95],{13:[1,162]}),s(p,[2,97],{13:[1,164],77:[1,163]}),{22:Y,50:W,60:Q,82:q,84:165,85:111,86:X,87:j,88:H,89:J,90:V},s($,[2,106]),s(Mt,[2,71]),{39:[2,11]},{14:[1,166]},s(ut,[2,66]),s(p,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:nt},s(p,[2,92]),s(p,[2,96]),s(p,[2,98]),s(p,[2,99],{77:[1,170]}),s(Gt,[2,104],{85:151,22:Y,50:W,60:Q,82:q,86:X,87:j,88:H,89:J,90:V}),s(_t,[2,8]),s(S,[2,47]),{41:[1,171]},s(S,[2,50]),s(p,[2,100]),s(S,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:d(function(L,c){if(c.recoverable)this.trace(L);else{var h=new Error(L);throw h.hash=c,h}},"parseError"),parse:d(function(L){var c=this,h=[0],r=[],y=[null],t=[],D=this.table,e="",ot=0,zt=0,Ht=0,Jt=2,Kt=1,Vt=t.slice.call(arguments,1),E=Object.create(this.lexer),v={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(v.yy[$t]=this.yy[$t]);E.setInput(L,v.yy),v.yy.lexer=E,v.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Nt=E.yylloc;t.push(Nt);var Zt=E.options&&E.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(B){h.length=h.length-2*B,y.length=y.length-B,t.length=t.length-B}d(te,"popStack");function Yt(){var B;return B=r.pop()||E.lex()||Kt,typeof B!="number"&&(B instanceof Array&&(r=B,B=r.pop()),B=c.symbols_[B]||B),B}d(Yt,"lex");for(var T,Lt,w,_,ke,xt,M={},ct,x,Wt,ht;;){if(w=h[h.length-1],this.defaultActions[w]?_=this.defaultActions[w]:((T===null||typeof T>"u")&&(T=Yt()),_=D[w]&&D[w][T]),typeof _>"u"||!_.length||!_[0]){var It="";ht=[];for(ct in D[w])this.terminals_[ct]&&ct>Jt&&ht.push("'"+this.terminals_[ct]+"'");E.showPosition?It="Parse error on line "+(ot+1)+`:
2
- `+E.showPosition()+`
3
- Expecting `+ht.join(", ")+", got '"+(this.terminals_[T]||T)+"'":It="Parse error on line "+(ot+1)+": Unexpected "+(T==Kt?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(It,{text:E.match,token:this.terminals_[T]||T,line:E.yylineno,loc:Nt,expected:ht})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+T);switch(_[0]){case 1:h.push(T),y.push(E.yytext),t.push(E.yylloc),h.push(_[1]),T=null,Lt?(T=Lt,Lt=null):(zt=E.yyleng,e=E.yytext,ot=E.yylineno,Nt=E.yylloc,Ht>0);break;case 2:if(x=this.productions_[_[1]][1],M.$=y[y.length-x],M._$={first_line:t[t.length-(x||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(x||1)].first_column,last_column:t[t.length-1].last_column},Zt&&(M._$.range=[t[t.length-(x||1)].range[0],t[t.length-1].range[1]]),xt=this.performAction.apply(M,[e,zt,ot,v.yy,_[1],y,t].concat(Vt)),typeof xt<"u")return xt;x&&(h=h.slice(0,-1*x*2),y=y.slice(0,-1*x),t=t.slice(0,-1*x)),h.push(this.productions_[_[1]][0]),y.push(M.$),t.push(M._$),Wt=D[h[h.length-2]][h[h.length-1]],h.push(Wt);break;case 3:return!0}}return!0},"parse")},jt=function(){var L={EOF:1,parseError:d(function(c,h){if(this.yy.parser)this.yy.parser.parseError(c,h);else throw new Error(c)},"parseError"),setInput:d(function(c,h){return this.yy=h||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:d(function(c){var h=c.length,r=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var y=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===y.length?this.yylloc.first_column:0)+y[y.length-r.length].length-r[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(c){this.unput(this.match.slice(c))},"less"),pastInput:d(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
5
- `+h+"^"},"showPosition"),test_match:d(function(c,h){var r,y,t;if(this.options.backtrack_lexer&&(t={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(t.yylloc.range=this.yylloc.range.slice(0))),y=c[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],r=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var D in t)this[D]=t[D];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,h,r,y;this._more||(this.yytext="",this.match="");for(var t=this._currentRules(),D=0;D<t.length;D++)if(r=this._input.match(this.rules[t[D]]),r&&(!h||r[0].length>h[0].length)){if(h=r,y=D,this.options.backtrack_lexer){if(c=this.test_match(r,t[D]),c!==!1)return c;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(c=this.test_match(h,t[y]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var c=this.next();return c||this.lex()},"lex"),begin:d(function(c){this.conditionStack.push(c)},"begin"),popState:d(function(){var c=this.conditionStack.length-1;return c>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(c){return c=this.conditionStack.length-1-Math.abs(c||0),c>=0?this.conditionStack[c]:"INITIAL"},"topState"),pushState:d(function(c){this.begin(c)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:d(function(c,h,r,y){switch(r){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),48;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 46;case 56:return 47;case 57:return 81;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:return 77;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 69;case 69:return 69;case 70:return 71;case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:return 89;case 85:return 89;case 86:return 90;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:return 50;case 96:return 50;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}};return L}();St.lexer=jt;function lt(){this.yy={}}return d(lt,"Parser"),lt.prototype=St,St.Parser=lt,new lt}();wt.parser=wt;var _e=wt,Qt=["#","+","~","-",""],G,qt=(G=class{constructor(i,a){this.memberType=a,this.visibility="",this.classifier="",this.text="";let n=be(i,F());this.parseMember(n)}getDisplayDetails(){let i=this.visibility+U(this.id);this.memberType==="method"&&(i+=`(${U(this.parameters.trim())})`,this.returnType&&(i+=" : "+U(this.returnType))),i=i.trim();let a=this.parseClassifier();return{displayText:i,cssStyle:a}}parseMember(i){let a="";if(this.memberType==="method"){let u=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);if(u){let l=u[1]?u[1].trim():"";if(Qt.includes(l)&&(this.visibility=l),this.id=u[2],this.parameters=u[3]?u[3].trim():"",a=u[4]?u[4].trim():"",this.returnType=u[5]?u[5].trim():"",a===""){let o=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(o)&&(a=o,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let u=i.length,l=i.substring(0,1),o=i.substring(u-1);Qt.includes(l)&&(this.visibility=l),/[$*]/.exec(o)&&(a=o),this.id=i.substring(this.visibility===""?0:1,a===""?u:u-1)}this.classifier=a,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let n=`${this.visibility?"\\"+this.visibility:""}${U(this.id)}${this.memberType==="method"?`(${U(this.parameters)})${this.returnType?" : "+U(this.returnType):""}`:""}`;this.text=n.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},d(G,"ClassMember"),G),dt="classId-",Xt=0,R=d(s=>I.sanitizeText(s,F()),"sanitizeText"),z,Se=(z=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=d(i=>{let a=se();pt(i).select("svg").selectAll("g").filter(function(){return pt(this).attr("title")!==null}).on("mouseover",n=>{let u=pt(n.currentTarget),l=u.attr("title");if(!l)return;let o=n.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(ue.sanitize(l)).style("left",`${window.scrollX+o.left+o.width/2}px`).style("top",`${window.scrollY+o.bottom+4}px`),u.classed("hover",!0)}).on("mouseout",n=>{a.transition().duration(500).style("opacity",0),pt(n.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=le,this.getAccTitle=oe,this.setAccDescription=ce,this.getAccDescription=he,this.setDiagramTitle=pe,this.getDiagramTitle=de,this.getConfig=d(()=>F().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(i){let a=I.sanitizeText(i,F()),n="",u=a;if(a.indexOf("~")>0){let l=a.split("~");u=R(l[0]),n=R(l[1])}return{className:u,type:n}}setClassLabel(i,a){let n=I.sanitizeText(i,F());a&&(a=R(a));let{className:u}=this.splitClassNameAndType(n);this.classes.get(u).label=a,this.classes.get(u).text=`${a}${this.classes.get(u).type?`<${this.classes.get(u).type}>`:""}`}addClass(i){let a=I.sanitizeText(i,F()),{className:n,type:u}=this.splitClassNameAndType(a);if(this.classes.has(n))return;let l=I.sanitizeText(n,F());this.classes.set(l,{id:l,type:u,label:l,text:`${l}${u?`&lt;${u}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:dt+l+"-"+Xt}),Xt++}addInterface(i,a){let n={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(n)}setDiagramId(i){this.diagramId=i}lookUpDomId(i){let a=I.sanitizeText(i,F());if(this.classes.has(a)){let n=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${n}`:n}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.direction="TB",Ae()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(i){let a=typeof i=="number"?`note${i}`:i;return this.notes.get(a)}getNotes(){return this.notes}addRelation(i){Ot.debug("Adding relation: "+JSON.stringify(i));let a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=I.sanitizeText(i.relationTitle1.trim(),F()),i.relationTitle2=I.sanitizeText(i.relationTitle2.trim(),F()),this.relations.push(i)}addAnnotation(i,a){let n=this.splitClassNameAndType(i).className;this.classes.get(n).annotations.push(a)}addMember(i,a){this.addClass(i);let n=this.splitClassNameAndType(i).className,u=this.classes.get(n);if(typeof a=="string"){let l=a.trim();l.startsWith("<<")&&l.endsWith(">>")?u.annotations.push(R(l.substring(2,l.length-2))):l.indexOf(")")>0?u.methods.push(new qt(l,"method")):l&&u.members.push(new qt(l,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(n=>this.addMember(i,n)))}addNote(i,a){let n=this.notes.size,u={id:`note${n}`,class:a,text:i,index:n};return this.notes.set(u.id,u),u.id}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),R(i.trim())}setCssClass(i,a){i.split(",").forEach(n=>{let u=n;/\d/.exec(n[0])&&(u=dt+u);let l=this.classes.get(u);l&&(l.cssClasses+=" "+a)})}defineClass(i,a){for(let n of i){let u=this.styleClasses.get(n);u===void 0&&(u={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,u)),a&&a.forEach(l=>{if(/color/.exec(l)){let o=l.replace("fill","bgFill");u.textStyles.push(o)}u.styles.push(l)}),this.classes.forEach(l=>{l.cssClasses.includes(n)&&l.styles.push(...a.flatMap(o=>o.split(",")))})}}setTooltip(i,a){i.split(",").forEach(n=>{a!==void 0&&(this.classes.get(n).tooltip=R(a))})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,n){let u=F();i.split(",").forEach(l=>{let o=l;/\d/.exec(l[0])&&(o=dt+o);let A=this.classes.get(o);A&&(A.link=vt.formatUrl(a,u),u.securityLevel==="sandbox"?A.linkTarget="_top":typeof n=="string"?A.linkTarget=R(n):A.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,n){i.split(",").forEach(u=>{this.setClickFunc(u,a,n),this.classes.get(u).haveCallback=!0}),this.setCssClass(i,"clickable")}setClickFunc(i,a,n){let u=I.sanitizeText(i,F());if(F().securityLevel!=="loose"||a===void 0)return;let l=u;if(this.classes.has(l)){let o=[];if(typeof n=="string"){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let A=0;A<o.length;A++){let f=o[A].trim();f.startsWith('"')&&f.endsWith('"')&&(f=f.substr(1,f.length-2)),o[A]=f}}o.length===0&&o.push(l),this.functions.push(()=>{let A=this.lookUpDomId(l),f=document.querySelector(`[id="${A}"]`);f!==null&&f.addEventListener("click",()=>{vt.runFunc(a,...o)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}escapeHtml(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(i){this.direction=i}addNamespace(i){this.namespaces.has(i)||(this.namespaces.set(i,{id:i,classes:new Map,notes:new Map,children:new Map,domId:dt+i+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a,n){if(this.namespaces.has(i)){for(let u of a){let{className:l}=this.splitClassNameAndType(u),o=this.getClass(l);o.parent=i,this.namespaces.get(i).classes.set(l,o)}for(let u of n){let l=this.getNote(u);l.parent=i,this.namespaces.get(i).notes.set(u,l)}}}setCssStyle(i,a){let n=this.classes.get(i);if(!(!a||!n))for(let u of a)u.includes(",")?n.styles.push(...u.split(",")):n.styles.push(u)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}getData(){var l;let i=[],a=[],n=F();for(let o of this.namespaces.values()){let A={id:o.id,label:o.id,isGroup:!0,padding:n.class.padding??16,shape:"rect",cssStyles:[],look:n.look};i.push(A)}for(let o of this.classes.values()){let A={...o,type:void 0,isGroup:!1,parentId:o.parent,look:n.look};i.push(A)}for(let o of this.notes.values()){let A={id:o.id,label:o.text,isGroup:!1,shape:"note",padding:n.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:o.parent,labelType:"markdown"};i.push(A);let f=(l=this.classes.get(o.class))==null?void 0:l.id;if(f){let N={id:`edgeNote${o.index}`,start:o.id,end:f,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:n.look};a.push(N)}}for(let o of this.interfaces){let A={id:o.id,label:o.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:n.look};i.push(A)}let u=0;for(let o of this.relations){u++;let A={id:ye(o.id1,o.id2,{prefix:"id",counter:u}),start:o.id1,end:o.id2,type:"normal",label:o.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(o.relation.type1),arrowTypeEnd:this.getArrowMarker(o.relation.type2),startLabelRight:o.relationTitle1==="none"?"":o.relationTitle1,endLabelLeft:o.relationTitle2==="none"?"":o.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:o.style||"",pattern:o.relation.lineType==1?"dashed":"solid",look:n.look,labelType:"markdown"};a.push(A)}return{nodes:i,edges:a,other:{},config:n,direction:this.getDirection()}}},d(z,"ClassDB"),z),ge=d(s=>`g.classGroup text {
7
- fill: ${s.nodeBorder||s.classText};
8
- stroke: none;
9
- font-family: ${s.fontFamily};
10
- font-size: 10px;
11
-
12
- .title {
13
- font-weight: bolder;
14
- }
15
-
16
- }
17
-
18
- .cluster-label text {
19
- fill: ${s.titleColor};
20
- }
21
- .cluster-label span {
22
- color: ${s.titleColor};
23
- }
24
- .cluster-label span p {
25
- background-color: transparent;
26
- }
27
-
28
- .cluster rect {
29
- fill: ${s.clusterBkg};
30
- stroke: ${s.clusterBorder};
31
- stroke-width: 1px;
32
- }
33
-
34
- .cluster text {
35
- fill: ${s.titleColor};
36
- }
37
-
38
- .cluster span {
39
- color: ${s.titleColor};
40
- }
41
-
42
- .nodeLabel, .edgeLabel {
43
- color: ${s.classText};
44
- }
45
-
46
- .noteLabel .nodeLabel, .noteLabel .edgeLabel {
47
- color: ${s.noteTextColor};
48
- }
49
- .edgeLabel .label rect {
50
- fill: ${s.mainBkg};
51
- }
52
- .label text {
53
- fill: ${s.classText};
54
- }
55
-
56
- .labelBkg {
57
- background: ${s.mainBkg};
58
- }
59
- .edgeLabel .label span {
60
- background: ${s.mainBkg};
61
- }
62
-
63
- .classTitle {
64
- font-weight: bolder;
65
- }
66
- .node rect,
67
- .node circle,
68
- .node ellipse,
69
- .node polygon,
70
- .node path {
71
- fill: ${s.mainBkg};
72
- stroke: ${s.nodeBorder};
73
- stroke-width: ${s.strokeWidth};
74
- }
75
-
76
-
77
- .divider {
78
- stroke: ${s.nodeBorder};
79
- stroke-width: 1;
80
- }
81
-
82
- g.clickable {
83
- cursor: pointer;
84
- }
85
-
86
- g.classGroup rect {
87
- fill: ${s.mainBkg};
88
- stroke: ${s.nodeBorder};
89
- }
90
-
91
- g.classGroup line {
92
- stroke: ${s.nodeBorder};
93
- stroke-width: 1;
94
- }
95
-
96
- .classLabel .box {
97
- stroke: none;
98
- stroke-width: 0;
99
- fill: ${s.mainBkg};
100
- opacity: 0.5;
101
- }
102
-
103
- .classLabel .label {
104
- fill: ${s.nodeBorder};
105
- font-size: 10px;
106
- }
107
-
108
- .relation {
109
- stroke: ${s.lineColor};
110
- stroke-width: ${s.strokeWidth};
111
- fill: none;
112
- }
113
-
114
- .dashed-line{
115
- stroke-dasharray: 3;
116
- }
117
-
118
- .dotted-line{
119
- stroke-dasharray: 1 2;
120
- }
121
-
122
- [id$="-compositionStart"], .composition {
123
- fill: ${s.lineColor} !important;
124
- stroke: ${s.lineColor} !important;
125
- stroke-width: 1;
126
- }
127
-
128
- [id$="-compositionEnd"], .composition {
129
- fill: ${s.lineColor} !important;
130
- stroke: ${s.lineColor} !important;
131
- stroke-width: 1;
132
- }
133
-
134
- [id$="-dependencyStart"], .dependency {
135
- fill: ${s.lineColor} !important;
136
- stroke: ${s.lineColor} !important;
137
- stroke-width: 1;
138
- }
139
-
140
- [id$="-dependencyEnd"], .dependency {
141
- fill: ${s.lineColor} !important;
142
- stroke: ${s.lineColor} !important;
143
- stroke-width: 1;
144
- }
145
-
146
- [id$="-extensionStart"], .extension {
147
- fill: transparent !important;
148
- stroke: ${s.lineColor} !important;
149
- stroke-width: 1;
150
- }
151
-
152
- [id$="-extensionEnd"], .extension {
153
- fill: transparent !important;
154
- stroke: ${s.lineColor} !important;
155
- stroke-width: 1;
156
- }
157
-
158
- [id$="-aggregationStart"], .aggregation {
159
- fill: transparent !important;
160
- stroke: ${s.lineColor} !important;
161
- stroke-width: 1;
162
- }
163
-
164
- [id$="-aggregationEnd"], .aggregation {
165
- fill: transparent !important;
166
- stroke: ${s.lineColor} !important;
167
- stroke-width: 1;
168
- }
169
-
170
- [id$="-lollipopStart"], .lollipop {
171
- fill: ${s.mainBkg} !important;
172
- stroke: ${s.lineColor} !important;
173
- stroke-width: 1;
174
- }
175
-
176
- [id$="-lollipopEnd"], .lollipop {
177
- fill: ${s.mainBkg} !important;
178
- stroke: ${s.lineColor} !important;
179
- stroke-width: 1;
180
- }
181
-
182
- .edgeTerminals {
183
- font-size: 11px;
184
- line-height: initial;
185
- }
186
-
187
- .classTitleText {
188
- text-anchor: middle;
189
- font-size: 18px;
190
- fill: ${s.textColor};
191
- }
192
-
193
- .edgeLabel[data-look="neo"] {
194
- background-color: ${s.edgeLabelBackground};
195
- p {
196
- background-color: ${s.edgeLabelBackground};
197
- }
198
- rect {
199
- opacity: 0.5;
200
- background-color: ${s.edgeLabelBackground};
201
- fill: ${s.edgeLabelBackground};
202
- }
203
- text-align: center;
204
- }
205
- ${ee()}
206
- `,"getStyles"),$e=ge,me=d((s,i="TB")=>{if(!s.doc)return i;let a=i;for(let n of s.doc)n.stmt==="dir"&&(a=n.value);return a},"getDir"),Ce=d(function(s,i){return i.db.getClasses()},"getClasses"),fe=d(async function(s,i,a,n){Ot.info("REF0:"),Ot.info("Drawing class diagram (v3)",i);let{securityLevel:u,state:l,layout:o}=F();n.db.setDiagramId(i);let A=n.db.getData(),f=ie(i,u);A.type=n.type,A.layoutAlgorithm=re(o),A.nodeSpacing=(l==null?void 0:l.nodeSpacing)||50,A.rankSpacing=(l==null?void 0:l.rankSpacing)||50,A.markers=["aggregation","extension","composition","dependency","lollipop"],A.diagramId=i,await ne(A,f),vt.insertTitle(f,"classDiagramTitleText",(l==null?void 0:l.titleTopMargin)??25,n.db.getDiagramTitle()),ae(f,8,"classDiagram",(l==null?void 0:l.useMaxWidth)??!0)},"draw"),Ne={getClasses:Ce,draw:fe,getDir:me};export{_e as E,$e as U,Se as c,Ne as q};
@@ -1 +0,0 @@
1
- import{U as t,q as a,E as s,c as e}from"./chunk-PK6DOVAG-CvsEnugt.js";import"./chunk-KSICW3F5-BYzvDLNI.js";import"./chunk-O5ABG6QK-dHwHzA6n.js";import"./chunk-TBF5ZNIQ-DL5stGM1.js";import"./chunk-RWUO3TPN-BgRTY0_k.js";import{m as o}from"./index-BgeqpYgd.js";var b={parser:s,get db(){return new e},renderer:a,styles:t,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -1 +0,0 @@
1
- import{U as t,q as a,E as s,c as e}from"./chunk-PK6DOVAG-CvsEnugt.js";import"./chunk-KSICW3F5-BYzvDLNI.js";import"./chunk-O5ABG6QK-dHwHzA6n.js";import"./chunk-TBF5ZNIQ-DL5stGM1.js";import"./chunk-RWUO3TPN-BgRTY0_k.js";import{m as o}from"./index-BgeqpYgd.js";var b={parser:s,get db(){return new e},renderer:a,styles:t,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -1,4 +0,0 @@
1
- import{f as Y}from"./chunk-3YCYZ6SJ-CQkVgT_z.js";import{m as G}from"./chunk-HN6EAY2L-BBnyTNdB.js";import{m as w,bz as M,bA as $,bB as j,bC as H,p as a,q as _,bD as q,bE as W,aw as z,bF as Q,aD as Z,ax as D,av as K,bG as U,bH as V}from"./index-BgeqpYgd.js";import{s as S,_ as ee,J}from"./chunk-H3VCZNTA-Cx5XV_aC.js";function X(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:k(e),edges:P(e)};return S(e.graph())||(n.value=ee(e.graph())),n}w(X,"write");function k(e){return J(e.nodes(),function(n){var r=e.node(n),d=e.parent(n),l={v:n};return S(r)||(l.value=r),S(d)||(l.parent=d),l})}w(k,"writeNodes");function P(e){return J(e.edges(),function(n){var r=e.edge(n),d={v:n.v,w:n.w};return S(n.name)||(d.name=n.name),S(r)||(d.value=r),d})}w(P,"writeEdges");var c=new Map,E=new Map,B=new Map,re=w(()=>{E.clear(),B.clear(),c.clear()},"clear"),I=w((e,n)=>{let r=E.get(n)||[];return a.trace("In isDescendant",n," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),ne=w((e,n)=>{let r=E.get(n)||[];return a.info("Descendants of ",n," is ",r),a.info("Edge is ",e),e.v===n||e.w===n?!1:r?r.includes(e.v)||I(e.v,n)||I(e.w,n)||r.includes(e.w):(a.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),A=w((e,n,r,d)=>{a.warn("Copying children of ",e,"root",d,"data",n.node(e),d);let l=n.children(e)||[];e!==d&&l.push(e),a.warn("Copying (nodes) clusterId",e,"nodes",l),l.forEach(o=>{if(n.children(o).length>0)A(o,n,r,d);else{let i=n.node(o);a.info("cp ",o," to ",d," with parent ",e),r.setNode(o,i),d!==n.parent(o)&&(a.warn("Setting parent",o,n.parent(o)),r.setParent(o,n.parent(o))),e!==d&&o!==e?(a.debug("Setting parent",o,e),r.setParent(o,e)):(a.info("In copy ",e,"root",d,"data",n.node(e),d),a.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==d,"node!==clusterId",o!==e));let s=n.edges(o);a.debug("Copying Edges",s),s.forEach(u=>{a.info("Edge",u);let b=n.edge(u.v,u.w,u.name);a.info("Edge data",b,d);try{ne(u,d)?(a.info("Copying as ",u.v,u.w,b,u.name),r.setEdge(u.v,u.w,b,u.name),a.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):a.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",d," clusterId:",e)}catch(N){a.error(N)}})}a.debug("Removing node",o),n.removeNode(o)})},"copy"),R=w((e,n)=>{let r=n.children(e),d=[...r];for(let l of r)B.set(l,e),d=[...d,...R(l,n)];return d},"extractDescendants"),te=w((e,n,r)=>{let d=e.edges().filter(s=>s.v===n||s.w===n),l=e.edges().filter(s=>s.v===r||s.w===r),o=d.map(s=>({v:s.v===n?r:s.v,w:s.w===n?n:s.w})),i=l.map(s=>({v:s.v,w:s.w}));return o.filter(s=>i.some(u=>s.v===u.v&&s.w===u.w))},"findCommonEdges"),x=w((e,n,r)=>{let d=n.children(e);if(a.trace("Searching children of id ",e,d),d.length<1)return e;let l;for(let o of d){let i=x(o,n,r),s=te(n,r,i);if(i)if(s.length>0)l=i;else return i}return l},"findNonClusterChild"),O=w(e=>!c.has(e)||!c.get(e).externalConnections?e:c.has(e)?c.get(e).id:e,"getAnchorId"),ae=w((e,n)=>{if(!e||n>10){a.debug("Opting out, no graph ");return}else a.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(a.warn("Cluster identified",r," Replacement id in edges: ",x(r,e,r)),E.set(r,R(r,e)),c.set(r,{id:x(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){let d=e.children(r),l=e.edges();d.length>0?(a.debug("Cluster identified",r,E),l.forEach(o=>{let i=I(o.v,r),s=I(o.w,r);i^s&&(a.warn("Edge: ",o," leaves cluster ",r),a.warn("Descendants of XXX ",r,": ",E.get(r)),c.get(r).externalConnections=!0)})):a.debug("Not a cluster ",r,E)});for(let r of c.keys()){let d=c.get(r).id,l=e.parent(d);l!==r&&c.has(l)&&!c.get(l).externalConnections&&(c.get(r).id=l)}e.edges().forEach(function(r){let d=e.edge(r);a.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),a.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let l=r.v,o=r.w;if(a.warn("Fix XXX",c,"ids:",r.v,r.w,"Translating: ",c.get(r.v)," --- ",c.get(r.w)),c.get(r.v)||c.get(r.w)){if(a.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),l=O(r.v),o=O(r.w),e.removeEdge(r.v,r.w,r.name),l!==r.v){let i=e.parent(l);c.get(i).externalConnections=!0,d.fromCluster=r.v}if(o!==r.w){let i=e.parent(o);c.get(i).externalConnections=!0,d.toCluster=r.w}a.warn("Fix Replacing with XXX",l,o,r.name),e.setEdge(l,o,d,r.name)}}),a.warn("Adjusted Graph",X(e)),T(e,0),a.trace(c)},"adjustClustersAndEdges"),T=w((e,n)=>{var l,o;if(a.warn("extractor - ",n,X(e),e.children("D")),n>10){a.error("Bailing out");return}let r=e.nodes(),d=!1;for(let i of r){let s=e.children(i);d=d||s.length>0}if(!d){a.debug("Done, no node has children",e.nodes());return}a.debug("Nodes = ",r,n);for(let i of r)if(a.debug("Extracting node",i,c,c.has(i)&&!c.get(i).externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",n),!c.has(i))a.debug("Not a cluster",i,n);else if(!c.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){a.warn("Cluster without external connections, without a parent and with children",i,n);let s=e.graph().rankdir==="TB"?"LR":"TB";(o=(l=c.get(i))==null?void 0:l.clusterData)!=null&&o.dir&&(s=c.get(i).clusterData.dir,a.warn("Fixing dir",c.get(i).clusterData.dir,s));let u=new G({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});a.warn("Old graph before copy",X(e)),A(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:c.get(i).clusterData,label:c.get(i).label,graph:u}),a.warn("New graph after copy node: (",i,")",X(u)),a.debug("Old graph after copy",X(e))}else a.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!c.get(i).externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),n),a.debug(c);r=e.nodes(),a.warn("New list of nodes",r);for(let i of r){let s=e.node(i);a.warn(" Now next level",i,s),s!=null&&s.clusterNode&&T(s.graph,n+1)}},"extractor"),F=w((e,n)=>{if(n.length===0)return[];let r=Object.assign([],n);return n.forEach(d=>{let l=e.children(d),o=F(e,l);r=[...r,...o]}),r},"sorter"),ie=w(e=>F(e,e.children()),"sortNodesByHierarchy"),L=w(async(e,n,r,d,l,o)=>{a.warn("Graph in recursive render:XAX",X(n),l);let i=n.graph().rankdir;a.trace("Dir in recursive render - dir:",i);let s=e.insert("g").attr("class","root");n.nodes()?a.info("Recursive render XXX",n.nodes()):a.info("No nodes found for",n),n.edges().length>0&&a.info("Recursive edges",n.edge(n.edges()[0]));let u=s.insert("g").attr("class","clusters"),b=s.insert("g").attr("class","edgePaths"),N=s.insert("g").attr("class","edgeLabels"),p=s.insert("g").attr("class","nodes");await Promise.all(n.nodes().map(async function(g){let t=n.node(g);if(l!==void 0){let f=JSON.parse(JSON.stringify(l.clusterData));a.trace(`Setting data for parent cluster XXX
2
- Node.id = `,g,`
3
- data=`,f.height,`
4
- Parent cluster`,l.height),n.setNode(l.id,f),n.parent(g)||(a.trace("Setting parent",g,l.id),n.setParent(g,l.id,f))}if(a.info("(Insert) Node XXX"+g+": "+JSON.stringify(n.node(g))),t==null?void 0:t.clusterNode){a.info("Cluster identified XBX",g,t.width,n.node(g));let{ranksep:f,nodesep:v}=n.graph();t.graph.setGraph({...t.graph.graph(),ranksep:f+25,nodesep:v});let m=await L(p,t.graph,r,d,n.node(g),o),C=m.elem;q(t,C),t.diff=m.diff||0,a.info("New compound node after recursive render XAX",g,"width",t.width,"height",t.height),W(C,t)}else n.children(g).length>0?(a.trace("Cluster - the non recursive path XBX",g,t.id,t,t.width,"Graph:",n),a.trace(x(t.id,n)),c.set(t.id,{id:x(t.id,n),node:t})):(a.trace("Node - the non recursive path XAX",g,p,n.node(g),i),await z(p,n.node(g),{config:o,dir:i}))})),await w(async()=>{let g=n.edges().map(async function(t){let f=n.edge(t.v,t.w,t.name);a.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),a.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(n.edge(t))),a.info("Fix",c,"ids:",t.v,t.w,"Translating: ",c.get(t.v),c.get(t.w)),await Q(N,f)});await Promise.all(g)},"processEdges")(),a.info("Graph before layout:",JSON.stringify(X(n))),a.info("############################################# XXX"),a.info("### Layout ### XXX"),a.info("############################################# XXX"),Y(n),a.info("Graph after layout:",JSON.stringify(X(n)));let h=0,{subGraphTitleTotalMargin:y}=Z(o);return await Promise.all(ie(n).map(async function(g){var f;let t=n.node(g);if(a.info("Position XBX => "+g+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t==null?void 0:t.clusterNode)t.y+=y,a.info("A tainted cluster node XBX1",g,t.id,t.width,t.height,t.x,t.y,n.parent(g)),c.get(t.id).node=t,D(t);else if(n.children(g).length>0){a.info("A pure cluster node XBX1",g,t.id,t.x,t.y,t.width,t.height,n.parent(g)),t.height+=y,n.node(t.parentId);let v=(t==null?void 0:t.padding)/2||0,m=((f=t==null?void 0:t.labelBBox)==null?void 0:f.height)||0,C=m-v||0;a.debug("OffsetY",C,"labelHeight",m,"halfPadding",v),await K(u,t),c.get(t.id).node=t}else{let v=n.node(t.parentId);t.y+=y/2,a.info("A regular node XBX1 - using the padding",t.id,"parent",t.parentId,t.width,t.height,t.x,t.y,"offsetY",t.offsetY,"parent",v,v==null?void 0:v.offsetY,t),D(t)}})),n.edges().forEach(function(g){let t=n.edge(g);a.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(t),t),t.points.forEach(C=>C.y+=y/2);let f=n.node(g.v);var v=n.node(g.w);let m=U(b,t,c,r,f,v,d);V(t,m)}),n.nodes().forEach(function(g){let t=n.node(g);a.info(g,t.type,t.diff),t.isGroup&&(h=t.diff)}),a.warn("Returning from recursive render XAX",s,h),{elem:s,diff:h}},"recursiveRender"),ge=w(async(e,n)=>{var o,i,s,u,b,N;let r=new G({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((o=e.config)==null?void 0:o.nodeSpacing)||((s=(i=e.config)==null?void 0:i.flowchart)==null?void 0:s.nodeSpacing)||e.nodeSpacing,ranksep:((u=e.config)==null?void 0:u.rankSpacing)||((N=(b=e.config)==null?void 0:b.flowchart)==null?void 0:N.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),d=n.select("g");M(d,e.markers,e.type,e.diagramId),$(),j(),H(),re(),e.nodes.forEach(p=>{r.setNode(p.id,{...p}),p.parentId&&r.setParent(p.id,p.parentId)}),a.debug("Edges:",e.edges),e.edges.forEach(p=>{if(p.start===p.end){let h=p.start,y=h+"---"+h+"---1",g=h+"---"+h+"---2",t=r.node(h);r.setNode(y,{domId:y,id:y,parentId:t.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(y,t.parentId),r.setNode(g,{domId:g,id:g,parentId:t.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(g,t.parentId);let f=structuredClone(p),v=structuredClone(p),m=structuredClone(p);f.label="",f.arrowTypeEnd="none",f.id=h+"-cyclic-special-1",v.arrowTypeStart="none",v.arrowTypeEnd="none",v.id=h+"-cyclic-special-mid",m.label="",t.isGroup&&(f.fromCluster=h,m.toCluster=h),m.id=h+"-cyclic-special-2",m.arrowTypeStart="none",r.setEdge(h,y,f,h+"-cyclic-special-0"),r.setEdge(y,g,v,h+"-cyclic-special-1"),r.setEdge(g,h,m,h+"-cyc<lic-special-2")}else r.setEdge(p.start,p.end,{...p},p.id)}),a.warn("Graph at first:",JSON.stringify(X(r))),ae(r),a.warn("Graph after XAX:",JSON.stringify(X(r)));let l=_();await L(d,r,e.type,e.diagramId,void 0,l)},"render");export{ge as render};
@@ -1,43 +0,0 @@
1
- import{c as S}from"./chunk-AEOMTBSW-BgTIXPsY.js";import{d as I}from"./wardley-RL74JXVD-BCRCBASE-B-eZEzf9.js";import{a as E,l as F,n as z,h as P,s as R,e as B,m as o,a7 as D,o as W,L as v,y as G,O as w,p as V,ac as _,b as j}from"./index-BgeqpYgd.js";import"./chunk-H3VCZNTA-Cx5XV_aC.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},b={axes:[],curves:[],options:x},h=structuredClone(b),H=G.radar,U=o(()=>v({...H,...w().radar}),"getConfig"),M=o(()=>h.axes,"getAxes"),Z=o(()=>h.curves,"getCurves"),q=o(()=>h.options,"getOptions"),J=o(a=>{h.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=o(a=>{h.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=o(a=>{if(a[0].axis==null)return a.map(e=>e.value);let t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{let r=a.find(i=>{var n;return((n=i.axis)==null?void 0:n.$refText)===e.name});if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Q=o(a=>{var e,r,i,n,l;let t=a.reduce((s,c)=>(s[c.name]=c,s),{});h.options={showLegend:((e=t.showLegend)==null?void 0:e.value)??x.showLegend,ticks:((r=t.ticks)==null?void 0:r.value)??x.ticks,max:((i=t.max)==null?void 0:i.value)??x.max,min:((n=t.min)==null?void 0:n.value)??x.min,graticule:((l=t.graticule)==null?void 0:l.value)??x.graticule}},"setOptions"),X=o(()=>{W(),h=structuredClone(b)},"clear"),f={getAxes:M,getCurves:Z,getOptions:q,setAxes:J,setCurves:K,setOptions:Q,getConfig:U,clear:X,setAccTitle:B,getAccTitle:R,setDiagramTitle:P,getDiagramTitle:z,getAccDescription:F,setAccDescription:E},Y=o(a=>{S(a,f);let{axes:t,curves:e,options:r}=a;f.setAxes(t),f.setCurves(e),f.setOptions(r)},"populate"),tt={parse:o(async a=>{let t=await I("radar",a);V.debug(t),Y(t)},"parse")},et=o((a,t,e,r)=>{let i=r.db,n=i.getAxes(),l=i.getCurves(),s=i.getOptions(),c=i.getConfig(),d=i.getDiagramTitle(),p=D(t),g=at(p,c),u=s.max??Math.max(...l.map(y=>Math.max(...y.entries))),m=s.min,$=Math.min(c.width,c.height)/2;rt(g,n,$,s.ticks,s.graticule),it(g,n,$,c),C(g,n,l,m,u,s.graticule,c),k(g,l,s.showLegend,c),g.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),at=o((a,t)=>{let e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return j(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`),a.append("g").attr("transform",`translate(${i.x}, ${i.y})`)},"drawFrame"),rt=o((a,t,e,r,i)=>{if(i==="circle")for(let n=0;n<r;n++){let l=e*(n+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(i==="polygon"){let n=t.length;for(let l=0;l<r;l++){let s=e*(l+1)/r,c=t.map((d,p)=>{let g=2*p*Math.PI/n-Math.PI/2,u=s*Math.cos(g),m=s*Math.sin(g);return`${u},${m}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),it=o((a,t,e,r)=>{let i=t.length;for(let n=0;n<i;n++){let l=t[n].label,s=2*n*Math.PI/i-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*Math.cos(s)).attr("y2",e*r.axisScaleFactor*Math.sin(s)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",e*r.axisLabelFactor*Math.cos(s)).attr("y",e*r.axisLabelFactor*Math.sin(s)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,t,e,r,i,n,l){let s=t.length,c=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==s)return;let g=d.entries.map((u,m)=>{let $=2*Math.PI*m/s-Math.PI/2,y=L(u,r,i,c),A=y*Math.cos($),O=y*Math.sin($);return{x:A,y:O}});n==="circle"?a.append("path").attr("d",T(g,l.curveTension)).attr("class",`radarCurve-${p}`):n==="polygon"&&a.append("polygon").attr("points",g.map(u=>`${u.x},${u.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}o(C,"drawCurves");function L(a,t,e,r){let i=Math.min(Math.max(a,t),e);return r*(i-t)/(e-t)}o(L,"relativeRadius");function T(a,t){let e=a.length,r=`M${a[0].x},${a[0].y}`;for(let i=0;i<e;i++){let n=a[(i-1+e)%e],l=a[i],s=a[(i+1)%e],c=a[(i+2)%e],d={x:l.x+(s.x-n.x)*t,y:l.y+(s.y-n.y)*t},p={x:s.x-(c.x-l.x)*t,y:s.y-(c.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${s.x},${s.y}`}return`${r} Z`}o(T,"closedRoundCurve");function k(a,t,e,r){if(!e)return;let i=(r.width/2+r.marginRight)*3/4,n=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((s,c)=>{let d=a.append("g").attr("transform",`translate(${i}, ${n+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(s.label)})}o(k,"drawLegend");var st={draw:et},nt=o((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){let i=a[`cScale${r}`];e+=`
2
- .radarCurve-${r} {
3
- color: ${i};
4
- fill: ${i};
5
- fill-opacity: ${t.curveOpacity};
6
- stroke: ${i};
7
- stroke-width: ${t.curveStrokeWidth};
8
- }
9
- .radarLegendBox-${r} {
10
- fill: ${i};
11
- fill-opacity: ${t.curveOpacity};
12
- stroke: ${i};
13
- }
14
- `}return e},"genIndexStyles"),lt=o(a=>{let t=_(),e=w(),r=v(t,e.themeVariables),i=v(r.radar,a);return{themeVariables:r,radarOptions:i}},"buildRadarStyleOptions"),ot=o(({radar:a}={})=>{let{themeVariables:t,radarOptions:e}=lt(a);return`
15
- .radarTitle {
16
- font-size: ${t.fontSize};
17
- color: ${t.titleColor};
18
- dominant-baseline: hanging;
19
- text-anchor: middle;
20
- }
21
- .radarAxisLine {
22
- stroke: ${e.axisColor};
23
- stroke-width: ${e.axisStrokeWidth};
24
- }
25
- .radarAxisLabel {
26
- dominant-baseline: middle;
27
- text-anchor: middle;
28
- font-size: ${e.axisLabelFontSize}px;
29
- color: ${e.axisColor};
30
- }
31
- .radarGraticule {
32
- fill: ${e.graticuleColor};
33
- fill-opacity: ${e.graticuleOpacity};
34
- stroke: ${e.graticuleColor};
35
- stroke-width: ${e.graticuleStrokeWidth};
36
- }
37
- .radarLegendText {
38
- text-anchor: start;
39
- font-size: ${e.legendFontSize}px;
40
- dominant-baseline: hanging;
41
- }
42
- ${nt(t,e)}
43
- `},"styles"),ut={parser:tt,db:f,renderer:st,styles:ot};export{ut as diagram};
@@ -1,24 +0,0 @@
1
- import{c as v}from"./chunk-AEOMTBSW-BgTIXPsY.js";import{d as C}from"./wardley-RL74JXVD-BCRCBASE-B-eZEzf9.js";import{m as f,L as m,a7 as P,b as z,p as w,e as F,s as S,h as W,n as D,l as E,a as T,y as L,O as A,o as R}from"./index-BgeqpYgd.js";import"./chunk-H3VCZNTA-Cx5XV_aC.js";var M=L.packet,u,y=(u=class{constructor(){this.packet=[],this.setAccTitle=F,this.getAccTitle=S,this.setDiagramTitle=W,this.getDiagramTitle=D,this.getAccDescription=E,this.setAccDescription=T}getConfig(){let t=m({...M,...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),O=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<O;){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"},I=f(({packet:e}={})=>{let t=m(G,e);return`
2
- .packetByte {
3
- font-size: ${t.byteFontSize};
4
- }
5
- .packetByte.start {
6
- fill: ${t.startByteColor};
7
- }
8
- .packetByte.end {
9
- fill: ${t.endByteColor};
10
- }
11
- .packetLabel {
12
- fill: ${t.labelColor};
13
- font-size: ${t.labelFontSize};
14
- }
15
- .packetTitle {
16
- fill: ${t.titleColor};
17
- font-size: ${t.titleFontSize};
18
- }
19
- .packetBlock {
20
- stroke: ${t.blockStrokeColor};
21
- stroke-width: ${t.blockStrokeWidth};
22
- fill: ${t.blockFillColor};
23
- }
24
- `},"styles"),K={parser:$,get db(){return new y},renderer:q,styles:I};export{K as diagram};