"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["-------"],{"./node_modules/dagre-d3-es/src/dagre/index.js":function(hn,W,h){h.d(W,{Zp:function(){return Gt}});var g=h("./node_modules/lodash-es/forEach.js"),R=h("./node_modules/lodash-es/uniqueId.js"),F=h("./node_modules/lodash-es/has.js"),M=h("./node_modules/lodash-es/constant.js"),z=h("./node_modules/lodash-es/flatten.js"),D=h("./node_modules/lodash-es/map.js"),H=h("./node_modules/lodash-es/range.js"),N=h("./node_modules/dagre-d3-es/src/graphlib/index.js");class Y{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return nn(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&nn(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,u=r._prev;u!==r;)t.push(JSON.stringify(u,an)),u=u._prev;return"["+t.join(", ")+"]"}}function nn(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function an(e,t){if(e!=="_next"&&e!=="_prev")return t}var Q=M.A(1);function rn(e,t){if(e.nodeCount()<=1)return[];var r=Ln(e,t||Q),u=q(r.graph,r.buckets,r.zeroIdx);return z.A(D.A(u,function(o){return e.outEdges(o.v,o.w)}))}function q(e,t,r){for(var u=[],o=t[t.length-1],f=t[0],m;e.nodeCount();){for(;m=f.dequeue();)yn(e,t,r,m);for(;m=o.dequeue();)yn(e,t,r,m);if(e.nodeCount()){for(var y=t.length-2;y>0;--y)if(m=t[y].dequeue(),m){u=u.concat(yn(e,t,r,m,!0));break}}}return u}function yn(e,t,r,u,o){var f=o?[]:void 0;return g.A(e.inEdges(u.v),function(m){var y=e.edge(m),C=e.node(m.v);o&&f.push({v:m.v,w:m.w}),C.out-=y,mn(t,r,C)}),g.A(e.outEdges(u.v),function(m){var y=e.edge(m),C=m.w,S=e.node(C);S.in-=y,mn(t,r,S)}),e.removeNode(u.v),f}function Ln(e,t){var r=new N.T,u=0,o=0;g.A(e.nodes(),function(y){r.setNode(y,{v:y,in:0,out:0})}),g.A(e.edges(),function(y){var C=r.edge(y.v,y.w)||0,S=t(y),P=C+S;r.setEdge(y.v,y.w,P),o=Math.max(o,r.node(y.v).out+=S),u=Math.max(u,r.node(y.w).in+=S)});var f=H.A(o+u+3).map(function(){return new Y}),m=u+1;return g.A(r.nodes(),function(y){mn(f,m,r.node(y))}),{graph:r,buckets:f,zeroIdx:m}}function mn(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Bn(e){var t=e.graph().acyclicer==="greedy"?rn(e,r(e)):ve(e);g.A(t,function(u){var o=e.edge(u);e.removeEdge(u),o.forwardName=u.name,o.reversed=!0,e.setEdge(u.w,u.v,o,R.A("rev"))});function r(u){return function(o){return u.edge(o).weight}}}function ve(e){var t=[],r={},u={};function o(f){F.A(u,f)||(u[f]=!0,r[f]=!0,g.A(e.outEdges(f),function(m){F.A(r,m.w)?t.push(m):o(m.w)}),delete r[f])}return g.A(e.nodes(),o),t}function sn(e){g.A(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var u=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,u)}})}var gn=h("./node_modules/lodash-es/merge.js"),Rn=h("./node_modules/lodash-es/pick.js"),xe=h("./node_modules/lodash-es/defaults.js"),Z=h("./node_modules/lodash-es/isSymbol.js");function Mn(e,t,r){for(var u=-1,o=e.length;++ut}var te=_e,Nn=h("./node_modules/lodash-es/identity.js");function vn(e){return e&&e.length?ln(e,Nn.A,te):void 0}var ue=vn;function pt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ye=pt,rt=h("./node_modules/lodash-es/_baseAssignValue.js"),it=h("./node_modules/lodash-es/_baseForOwn.js"),Pe=h("./node_modules/lodash-es/_baseIteratee.js");function Ee(e,t){var r={};return t=(0,Pe.A)(t,3),(0,it.A)(e,function(u,o,f){(0,rt.A)(r,o,t(u,o,f))}),r}var Ne=Ee,re=h("./node_modules/lodash-es/isUndefined.js");function ce(e,t){return eMath.abs(o)*y?(f<0&&(y=-y),C=y*o/f,S=y):(o<0&&(m=-m),C=m,S=m*f/o),{x:r+C,y:u+S}}function cn(e){var t=D.A(H.A($e(e)+1),function(){return[]});return g.A(e.nodes(),function(r){var u=e.node(r),o=u.rank;re.A(o)||(t[o][u.order]=r)}),t}function An(e){var t=we(D.A(e.nodes(),function(r){return e.node(r).rank}));g.A(e.nodes(),function(r){var u=e.node(r);F.A(u,"rank")&&(u.rank-=t)})}function kn(e){var t=we(D.A(e.nodes(),function(f){return e.node(f).rank})),r=[];g.A(e.nodes(),function(f){var m=e.node(f).rank-t;r[m]||(r[m]=[]),r[m].push(f)});var u=0,o=e.graph().nodeRankFactor;g.A(r,function(f,m){re.A(f)&&m%o!==0?--u:u&&g.A(f,function(y){e.node(y).rank+=u})})}function $n(e,t,r,u){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=u),Ae(e,"border",o,t)}function $e(e){return ue(D.A(e.nodes(),function(t){var r=e.node(t).rank;if(!re.A(r))return r}))}function fe(e,t){var r={lhs:[],rhs:[]};return g.A(e,function(u){t(u)?r.lhs.push(u):r.rhs.push(u)}),r}function Ce(e,t){var r=Me();try{return t()}finally{console.log(e+" time: "+(Me()-r)+"ms")}}function Zn(e,t){return t()}function Tt(e){function t(r){var u=e.children(r),o=e.node(r);if(u.length&&g.A(u,t),F.A(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var f=o.minRank,m=o.maxRank+1;f-1?o[f?t[m]:m]:void 0}}var zt=Rt,O=h("./node_modules/lodash-es/_baseFindIndex.js"),U=h("./node_modules/lodash-es/toFinite.js");function un(e){var t=(0,U.A)(e),r=t%1;return t===t?r?t-r:t:0}var fn=un,jn=Math.max;function _n(e,t,r){var u=e==null?0:e.length;if(!u)return-1;var o=r==null?0:fn(r);return o<0&&(o=jn(u+o,0)),(0,O.A)(e,(0,Pe.A)(t,3),o)}var Gn=_n,Tn=zt(Gn),Un=Tn,Wn=h("./node_modules/lodash-es/filter.js"),oe=M.A(1);function ie(e,t,r,u){return Vn(e,String(t),r||oe,u||function(o){return e.outEdges(o)})}function Vn(e,t,r,u){var o={},f=new PriorityQueue,m,y,C=function(S){var P=S.v!==m?S.v:S.w,V=o[P],pn=r(S),En=y.distance+pn;if(pn<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+S+" Weight: "+pn);En0&&(m=f.removeMin(),y=o[m],y.distance!==Number.POSITIVE_INFINITY);)u(m).forEach(C);return o}function je(e,t,r){return _.transform(e.nodes(),function(u,o){u[o]=dijkstra(e,o,t,r)},{})}var le=M.A(1);function pe(e,t,r){return Te(e,t||le,r||function(u){return e.outEdges(u)})}function Te(e,t,r){var u={},o=e.nodes();return o.forEach(function(f){u[f]={},u[f][f]={distance:0},o.forEach(function(m){f!==m&&(u[f][m]={distance:Number.POSITIVE_INFINITY})}),r(f).forEach(function(m){var y=m.v===f?m.w:m.v,C=t(m);u[f][y]={distance:C,predecessor:f}})}),o.forEach(function(f){var m=u[f];o.forEach(function(y){var C=u[y];o.forEach(function(S){var P=C[f],V=m[S],pn=C[S],En=P.distance+V.distance;En0;){if(f=o.removeMin(),_.has(u,f))r.setEdge(f,u[f]);else{if(y)throw new Error("Input graph is not connected: "+e);y=!0}e.nodeEdges(f).forEach(m)}return r}ct.initLowLimValues=He,ct.initCutValues=qt,ct.calcCutValue=wr,ct.leaveEdge=kr,ct.enterEdge=lr,ct.exchangeEdges=Cr;function ct(e){e=dn(e),Se(e);var t=wt(e);He(t),qt(t,e);for(var r,u;r=kr(t);)u=lr(t,e,r),Cr(t,e,r,u)}function qt(e,t){var r=$r(e,e.nodes());r=r.slice(0,r.length-1),g.A(r,function(u){Er(e,t,u)})}function Er(e,t,r){var u=e.node(r),o=u.parent;e.edge(r,o).cutvalue=wr(e,t,r)}function wr(e,t,r){var u=e.node(r),o=u.parent,f=!0,m=t.edge(r,o),y=0;return m||(f=!1,m=t.edge(o,r)),y=m.weight,g.A(t.nodeEdges(r),function(C){var S=C.v===r,P=S?C.w:C.v;if(P!==o){var V=S===f,pn=t.edge(C).weight;if(y+=V?pn:-pn,Jr(e,r,P)){var En=e.edge(r,P).cutvalue;y+=V?-En:En}}}),y}function He(e,t){arguments.length<2&&(t=e.nodes()[0]),or(e,{},1,t)}function or(e,t,r,u,o){var f=r,m=e.node(u);return t[u]=!0,g.A(e.neighbors(u),function(y){F.A(t,y)||(r=or(e,t,r,y,u))}),m.low=f,m.lim=r++,o?m.parent=o:delete m.parent,r}function kr(e){return Un(e.edges(),function(t){return e.edge(t).cutvalue<0})}function lr(e,t,r){var u=r.v,o=r.w;t.hasEdge(u,o)||(u=r.w,o=r.v);var f=e.node(u),m=e.node(o),y=f,C=!1;f.lim>m.lim&&(y=m,C=!0);var S=Wn.A(t.edges(),function(P){return C===Ir(e,e.node(P.v),y)&&C!==Ir(e,e.node(P.w),y)});return Ie(S,function(P){return Je(t,P)})}function Cr(e,t,r,u){var o=r.v,f=r.w;e.removeEdge(o,f),e.setEdge(u.v,u.w,{}),He(e),qt(e,t),Xr(e,t)}function Xr(e,t){var r=Un(e.nodes(),function(o){return!t.node(o).parent}),u=Jt(e,r);u=u.slice(1),g.A(u,function(o){var f=e.node(o).parent,m=t.edge(o,f),y=!1;m||(m=t.edge(f,o),y=!0),t.node(o).rank=t.node(f).rank+(y?m.minlen:-m.minlen)})}function Jr(e,t,r){return e.hasEdge(t,r)}function Ir(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}function qr(e){switch(e.graph().ranker){case"network-simplex":jr(e);break;case"tight-tree":Sr(e);break;case"longest-path":ni(e);break;default:jr(e)}}var ni=Se;function Sr(e){Se(e),wt(e)}function jr(e){ct(e)}var ft=h("./node_modules/lodash-es/values.js"),nr=h("./node_modules/lodash-es/reduce.js");function ei(e){var t=Ae(e,"root",{},"_root"),r=ti(e),u=ue(ft.A(r))-1,o=2*u+1;e.graph().nestingRoot=t,g.A(e.edges(),function(m){e.edge(m).minlen*=o});var f=ri(e)+1;g.A(e.children(),function(m){er(e,t,o,f,u,r,m)}),e.graph().nodeRankFactor=o}function er(e,t,r,u,o,f,m){var y=e.children(m);if(!y.length){m!==t&&e.setEdge(t,m,{weight:0,minlen:r});return}var C=$n(e,"_bt"),S=$n(e,"_bb"),P=e.node(m);e.setParent(C,m),P.borderTop=C,e.setParent(S,m),P.borderBottom=S,g.A(y,function(V){er(e,t,r,u,o,f,V);var pn=e.node(V),En=pn.borderTop?pn.borderTop:V,Pn=pn.borderBottom?pn.borderBottom:V,ge=pn.borderTop?u:2*u,hr=En!==Pn?1:o-f[m]+1;e.setEdge(C,En,{weight:ge,minlen:hr,nestingEdge:!0}),e.setEdge(Pn,S,{weight:ge,minlen:hr,nestingEdge:!0})}),e.parent(m)||e.setEdge(t,C,{weight:0,minlen:o+f[m]})}function ti(e){var t={};function r(u,o){var f=e.children(u);f&&f.length&&g.A(f,function(m){r(m,o+1)}),t[u]=o}return g.A(e.children(),function(u){r(u,1)}),t}function ri(e){return nr.A(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function ii(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,g.A(e.edges(),function(r){var u=e.edge(r);u.nestingEdge&&e.removeEdge(r)})}var dr=h("./node_modules/lodash-es/_baseClone.js"),si=1,n=4;function a(e){return(0,dr.A)(e,si|n)}var i=a;function s(e,t,r){var u={},o;g.A(r,function(f){for(var m=e.parent(f),y,C;m;){if(y=e.parent(m),y?(C=u[y],u[y]=m):(C=o,o=m),C&&C!==m){t.setEdge(C,m);return}m=y}})}function c(e,t,r){var u=l(e),o=new N.T({compound:!0}).setGraph({root:u}).setDefaultNodeLabel(function(f){return e.node(f)});return g.A(e.nodes(),function(f){var m=e.node(f),y=e.parent(f);(m.rank===t||m.minRank<=t&&t<=m.maxRank)&&(o.setNode(f),o.setParent(f,y||u),g.A(e[r](f),function(C){var S=C.v===f?C.w:C.v,P=o.edge(S,f),V=re.A(P)?0:P.weight;o.setEdge(S,f,{weight:e.edge(C).weight+V})}),F.A(m,"minRank")&&o.setNode(f,{borderLeft:m.borderLeft[t],borderRight:m.borderRight[t]}))}),o}function l(e){for(var t;e.hasNode(t=R.A("_root")););return t}var d=h("./node_modules/lodash-es/_assignValue.js");function p(e,t,r){for(var u=-1,o=e.length,f=t.length,m={};++ut||f&&m&&C&&!y&&!S||u&&m&&C||!r&&C||!o)return 1;if(!u&&!f&&!S&&e=y)return C;var S=r[u];return C*(S=="desc"?-1:1)}}return e.index-t.index}var Qn=Yn;function B(e,t,r){t.length?t=(0,k.A)(t,function(f){return(0,Be.A)(f)?function(m){return(0,x.A)(m,f.length===1?f[0]:f)}:f}):t=[Nn.A];var u=-1;t=(0,k.A)(t,(0,$.A)(Pe.A));var o=(0,In.A)(e,function(f,m,y){var C=(0,k.A)(t,function(S){return S(f)});return{criteria:C,index:++u,value:f}});return Kn(o,function(f,m){return Qn(f,m,r)})}var zn=B,ee=h("./node_modules/lodash-es/_baseRest.js"),qn=h("./node_modules/lodash-es/_isIterateeCall.js"),me=(0,ee.A)(function(e,t){if(e==null)return[];var r=t.length;return r>1&&(0,qn.A)(e,t[0],t[1])?t=[]:r>2&&(0,qn.A)(t[0],t[1],t[2])&&(t=[t[0]]),zn(e,(0,j.A)(t,1),[])}),Hn=me;function wn(e,t){for(var r=0,u=1;u0;)P%2&&(V+=y[P+1]),P=P-1>>1,y[P]+=S.weight;C+=S.weight*V})),C}function xn(e){var t={},r=Wn.A(e.nodes(),function(y){return!e.children(y).length}),u=ue(D.A(r,function(y){return e.node(y).rank})),o=D.A(H.A(u+1),function(){return[]});function f(y){if(!F.A(t,y)){t[y]=!0;var C=e.node(y);o[C.rank].push(y),g.A(e.successors(y),f)}}var m=Hn(r,function(y){return e.node(y).rank});return g.A(m,f),o}function bn(e,t){return D.A(t,function(r){var u=e.inEdges(r);if(u.length){var o=nr.A(u,function(f,m){var y=e.edge(m),C=e.node(m.v);return{sum:f.sum+y.weight*C.order,weight:f.weight+y.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:r}})}function Jn(e,t){var r={};g.A(e,function(o,f){var m=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:f};re.A(o.barycenter)||(m.barycenter=o.barycenter,m.weight=o.weight)}),g.A(t.edges(),function(o){var f=r[o.v],m=r[o.w];!re.A(f)&&!re.A(m)&&(m.indegree++,f.out.push(r[o.w]))});var u=Wn.A(r,function(o){return!o.indegree});return se(u)}function se(e){var t=[];function r(f){return function(m){m.merged||(re.A(m.barycenter)||re.A(f.barycenter)||m.barycenter>=f.barycenter)&&Re(f,m)}}function u(f){return function(m){m.in.push(f),--m.indegree===0&&e.push(m)}}for(;e.length;){var o=e.pop();t.push(o),g.A(o.in.reverse(),r(o)),g.A(o.out,u(o))}return D.A(Wn.A(t,function(f){return!f.merged}),function(f){return Rn.A(f,["vs","i","barycenter","weight"])})}function Re(e,t){var r=0,u=0;e.weight&&(r+=e.barycenter*e.weight,u+=e.weight),t.weight&&(r+=t.barycenter*t.weight,u+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/u,e.weight=u,e.i=Math.min(t.i,e.i),t.merged=!0}function Ge(e,t){var r=fe(e,function(P){return F.A(P,"barycenter")}),u=r.lhs,o=Hn(r.rhs,function(P){return-P.i}),f=[],m=0,y=0,C=0;u.sort(Oe(!!t)),C=A(f,o,C),g.A(u,function(P){C+=P.vs.length,f.push(P.vs),m+=P.barycenter*P.weight,y+=P.weight,C=A(f,o,C)});var S={vs:z.A(f)};return y&&(S.barycenter=m/y,S.weight=y),S}function A(e,t,r){for(var u;t.length&&(u=ye(t)).i<=r;)t.pop(),e.push(u.vs),r++;return r}function Oe(e){return function(t,r){return t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}}function Ve(e,t,r,u){var o=e.children(t),f=e.node(t),m=f?f.borderLeft:void 0,y=f?f.borderRight:void 0,C={};m&&(o=Wn.A(o,function(Pn){return Pn!==m&&Pn!==y}));var S=bn(e,o);g.A(S,function(Pn){if(e.children(Pn.v).length){var ge=Ve(e,Pn.v,r,u);C[Pn.v]=ge,F.A(ge,"barycenter")&&be(Pn,ge)}});var P=Jn(S,r);v(P,C);var V=Ge(P,u);if(m&&(V.vs=z.A([m,V.vs,y]),e.predecessors(m).length)){var pn=e.node(e.predecessors(m)[0]),En=e.node(e.predecessors(y)[0]);F.A(V,"barycenter")||(V.barycenter=0,V.weight=0),V.barycenter=(V.barycenter*V.weight+pn.order+En.order)/(V.weight+2),V.weight+=2}return V}function v(e,t){g.A(e,function(r){r.vs=z.A(r.vs.map(function(u){return t[u]?t[u].vs:u}))})}function be(e,t){re.A(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function St(e){var t=$e(e),r=tr(e,H.A(1,t+1),"inEdges"),u=tr(e,H.A(t-1,-1,-1),"outEdges"),o=xn(e);ae(e,o);for(var f=Number.POSITIVE_INFINITY,m,y=0,C=0;C<4;++y,++C){Kt(y%2?r:u,y%4>=2),o=cn(e);var S=wn(e,o);Sm||y>t[C].lim));for(S=C,C=u;(C=e.parent(C))!==S;)f.push(C);return{path:o.concat(f.reverse()),lca:S}}function jt(e){var t={},r=0;function u(o){var f=r;g.A(e.children(o),u),t[o]={low:f,lim:r++}}return g.A(e.children(),u),t}var ht=h("./node_modules/lodash-es/_castFunction.js");function cr(e,t){return e&&(0,it.A)(e,(0,ht.A)(t))}var ai=cr,ui=h("./node_modules/lodash-es/_baseFor.js"),Tr=h("./node_modules/lodash-es/keysIn.js");function Fr(e,t){return e==null?e:(0,ui.A)(e,(0,ht.A)(t),Tr.A)}var Or=Fr;function oi(e,t){var r={};function u(o,f){var m=0,y=0,C=o.length,S=ye(f);return g.A(f,function(P,V){var pn=Lr(e,P),En=pn?e.node(pn).order:C;(pn||P===S)&&(g.A(f.slice(y,V+1),function(Pn){g.A(e.predecessors(Pn),function(ge){var hr=e.node(ge),pi=hr.order;(piS)&&Mr(r,pn,P)})})}function o(f,m){var y=-1,C,S=0;return g.A(m,function(P,V){if(e.node(P).dummy==="border"){var pn=e.predecessors(P);pn.length&&(C=e.node(pn[0]).order,u(m,S,V,y,C),S=V,y=C)}u(m,S,m.length,C,f.length)}),m}return nr.A(t,o),r}function Lr(e,t){if(e.node(t).dummy)return Un(e.predecessors(t),function(r){return e.node(r).dummy})}function Mr(e,t,r){if(t>r){var u=t;t=r,r=u}var o=e[t];o||(e[t]=o={}),o[r]=!0}function li(e,t,r){if(t>r){var u=t;t=r,r=u}return F.A(e[t],r)}function di(e,t,r,u){var o={},f={},m={};return g.A(t,function(y){g.A(y,function(C,S){o[C]=C,f[C]=C,m[C]=S})}),g.A(t,function(y){var C=-1;g.A(y,function(S){var P=u(S);if(P.length){P=Hn(P,function(ge){return m[ge]});for(var V=(P.length-1)/2,pn=Math.floor(V),En=Math.ceil(V);pn<=En;++pn){var Pn=P[pn];f[S]===S&&C-1}var sn=ve;function gn(dn,w,L){for(var X=-1,J=dn==null?0:dn.length;++X=ue){var $e=w?null:vn(dn);if($e)return(0,_e.A)($e);An=!1,J=xe.A,$n=new an.A}else $n=w?[]:kn;n:for(;++X1?J.setNode(cn,L):J.setNode(cn)}),this}setNode(w,L){return g.A(this._nodes,w)?(arguments.length>1&&(this._nodes[w]=L),this):(this._nodes[w]=arguments.length>1?L:this._defaultNodeLabelFn(w),this._isCompound&&(this._parent[w]=ce,this._children[w]={},this._children[ce][w]=!0),this._in[w]={},this._preds[w]={},this._out[w]={},this._sucs[w]={},++this._nodeCount,this)}node(w){return this._nodes[w]}hasNode(w){return g.A(this._nodes,w)}removeNode(w){var L=this;if(g.A(this._nodes,w)){var X=function(J){L.removeEdge(L._edgeObjs[J])};delete this._nodes[w],this._isCompound&&(this._removeFromParentsChildList(w),delete this._parent[w],H.A(this.children(w),function(J){L.setParent(J)}),delete this._children[w]),H.A(M.A(this._in[w]),X),delete this._in[w],delete this._preds[w],H.A(M.A(this._out[w]),X),delete this._out[w],delete this._sucs[w],--this._nodeCount}return this}setParent(w,L){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(N.A(L))L=ce;else{L+="";for(var X=L;!N.A(X);X=this.parent(X))if(X===w)throw new Error("Setting "+L+" as parent of "+w+" would create a cycle");this.setNode(L)}return this.setNode(w),this._removeFromParentsChildList(w),this._parent[w]=L,this._children[L][w]=!0,this}_removeFromParentsChildList(w){delete this._children[this._parent[w]][w]}parent(w){if(this._isCompound){var L=this._parent[w];if(L!==ce)return L}}children(w){if(N.A(w)&&(w=ce),this._isCompound){var L=this._children[w];if(L)return M.A(L)}else{if(w===ce)return this.nodes();if(this.hasNode(w))return[]}}predecessors(w){var L=this._preds[w];if(L)return M.A(L)}successors(w){var L=this._sucs[w];if(L)return M.A(L)}neighbors(w){var L=this.predecessors(w);if(L)return Pe(L,this.successors(w))}isLeaf(w){var L;return this.isDirected()?L=this.successors(w):L=this.neighbors(w),L.length===0}filterNodes(w){var L=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});L.setGraph(this.graph());var X=this;H.A(this._nodes,function(An,kn){w(kn)&&L.setNode(kn,An)}),H.A(this._edgeObjs,function(An){L.hasNode(An.v)&&L.hasNode(An.w)&&L.setEdge(An,X.edge(An))});var J={};function cn(An){var kn=X.parent(An);return kn===void 0||L.hasNode(kn)?(J[An]=kn,kn):kn in J?J[kn]:cn(kn)}return this._isCompound&&H.A(L.nodes(),function(An){L.setParent(An,cn(An))}),L}setDefaultEdgeLabel(w){return F.A(w)||(w=R.A(w)),this._defaultEdgeLabelFn=w,this}edgeCount(){return this._edgeCount}edges(){return Ee.A(this._edgeObjs)}setPath(w,L){var X=this,J=arguments;return Ne.A(w,function(cn,An){return J.length>1?X.setEdge(cn,An,L):X.setEdge(cn,An),An}),this}setEdge(){var w,L,X,J,cn=!1,An=arguments[0];typeof An=="object"&&An!==null&&"v"in An?(w=An.v,L=An.w,X=An.name,arguments.length===2&&(J=arguments[1],cn=!0)):(w=An,L=arguments[1],X=arguments[3],arguments.length>2&&(J=arguments[2],cn=!0)),w=""+w,L=""+L,N.A(X)||(X=""+X);var kn=ke(this._isDirected,w,L,X);if(g.A(this._edgeLabels,kn))return cn&&(this._edgeLabels[kn]=J),this;if(!N.A(X)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(w),this.setNode(L),this._edgeLabels[kn]=cn?J:this._defaultEdgeLabelFn(w,L,X);var $n=Me(this._isDirected,w,L,X);return w=$n.v,L=$n.w,Object.freeze($n),this._edgeObjs[kn]=$n,we(this._preds[L],w),we(this._sucs[w],L),this._in[L][kn]=$n,this._out[w][kn]=$n,this._edgeCount++,this}edge(w,L,X){var J=arguments.length===1?Ae(this._isDirected,arguments[0]):ke(this._isDirected,w,L,X);return this._edgeLabels[J]}hasEdge(w,L,X){var J=arguments.length===1?Ae(this._isDirected,arguments[0]):ke(this._isDirected,w,L,X);return g.A(this._edgeLabels,J)}removeEdge(w,L,X){var J=arguments.length===1?Ae(this._isDirected,arguments[0]):ke(this._isDirected,w,L,X),cn=this._edgeObjs[J];return cn&&(w=cn.v,L=cn.w,delete this._edgeLabels[J],delete this._edgeObjs[J],Qe(this._preds[L],w),Qe(this._sucs[w],L),delete this._in[L][J],delete this._out[w][J],this._edgeCount--),this}inEdges(w,L){var X=this._in[w];if(X){var J=Ee.A(X);return L?z.A(J,function(cn){return cn.v===L}):J}}outEdges(w,L){var X=this._out[w];if(X){var J=Ee.A(X);return L?z.A(J,function(cn){return cn.w===L}):J}}nodeEdges(w,L){var X=this.inEdges(w,L);if(X)return X.concat(this.outEdges(w,L))}}Ye.prototype._nodeCount=0,Ye.prototype._edgeCount=0;function we(dn,w){dn[w]?dn[w]++:dn[w]=1}function Qe(dn,w){--dn[w]||delete dn[w]}function ke(dn,w,L,X){var J=""+w,cn=""+L;if(!dn&&J>cn){var An=J;J=cn,cn=An}return J+Le+cn+Le+(N.A(X)?re:X)}function Me(dn,w,L,X){var J=""+w,cn=""+L;if(!dn&&J>cn){var An=J;J=cn,cn=An}var kn={v:J,w:cn};return X&&(kn.name=X),kn}function Ae(dn,w){return ke(dn,w.v,w.w,w.name)}},"./node_modules/dagre-d3-es/src/graphlib/index.js":function(hn,W,h){h.d(W,{T:function(){return g.T}});var g=h("./node_modules/dagre-d3-es/src/graphlib/graph.js");const R="2.1.9-pre"},"./node_modules/lodash-es/_SetCache.js":function(hn,W,h){h.d(W,{A:function(){return N}});var g=h("./node_modules/lodash-es/_MapCache.js"),R="__lodash_hash_undefined__";function F(Y){return this.__data__.set(Y,R),this}var M=F;function z(Y){return this.__data__.has(Y)}var D=z;function H(Y){var nn=-1,an=Y==null?0:Y.length;for(this.__data__=new g.A;++nn0&&Q(mn)?an>1?N(mn,an-1,Q,rn,q):(0,g.A)(q,mn):rn||(q[q.length]=mn)}return q}var Y=N},"./node_modules/lodash-es/_baseForOwn.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_baseFor.js"),R=h("./node_modules/lodash-es/keys.js");function F(M,z){return M&&(0,g.A)(M,z,R.A)}W.A=F},"./node_modules/lodash-es/_baseGet.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_castPath.js"),R=h("./node_modules/lodash-es/_toKey.js");function F(M,z){z=(0,g.A)(z,M);for(var D=0,H=z.length;M!=null&&DTn))return!1;var Wn=_n.get(O),oe=_n.get(U);if(Wn&&oe)return Wn==U&&oe==O;var ie=-1,Vn=!0,je=un&H?new R.A:void 0;for(_n.set(O,U),_n.set(U,O);++ie2?Y[2]:void 0;for(Q&&(0,F.A)(Y[0],Y[1],Q)&&(an=1);++nnc?0:c+a:a=a>c?c:a,i=i>0?i:0,s.length<1e4)d=Array.from(s),d.unshift(a,i),n.splice(...d);else for(i&&n.splice(a,i);l0?(N(n,n.length,0,a),n):a}const nn={}.hasOwnProperty;function an(n){const a={};let i=-1;for(;++id))return;const zn=a.events.length;let ee=zn,qn,me;for(;ee--;)if(a.events[ee][0]==="exit"&&a.events[ee][1].type==="chunkFlow"){if(qn){me=a.events[ee][1].end;break}qn=!0}for($(s),B=zn;Ben;){const Qn=i[Yn];a.containerState=Qn[1],Qn[0].exit.call(a,n)}i.length=en}function Xn(){c.write([null]),l=void 0,c=void 0,a.containerState._closeFlow=void 0}}function Pe(n,a,i){return vn(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Ee={tokenize:Ne,partial:!0};function Ne(n,a,i){return s;function s(l){return ln(l)?vn(n,c,"linePrefix")(l):c(l)}function c(l){return l===null||Z(l)?a(l):i(l)}}function re(n){const a={};let i=-1,s,c,l,d,p,I,E;for(;++i=4?a(d):n.interrupt(s.parser.constructs.flow,i,a)(d)}}const Me={tokenize:Ae};function Ae(n){const a=this,i=n.attempt(Ee,s,n.attempt(this.parser.constructs.flowInitial,c,vn(n,n.attempt(this.parser.constructs.flow,c,n.attempt(Le,c)),"linePrefix")));return i;function s(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function c(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),a.currentConstruct=void 0,i}}const dn={resolveAll:J()},w=X("string"),L=X("text");function X(n){return{tokenize:a,resolveAll:J(n==="text"?cn:void 0)};function a(i){const s=this,c=this.parser.constructs[n],l=i.attempt(c,d,p);return d;function d(b){return E(b)?l(b):p(b)}function p(b){if(b===null){i.consume(b);return}return i.enter("data"),i.consume(b),I}function I(b){return E(b)?(i.exit("data"),l(b)):(i.consume(b),I)}function E(b){if(b===null)return!0;const j=c[b];let k=-1;if(j)for(;++k-1){const p=d[0];typeof p=="string"?d[0]=p.slice(s):d.shift()}l>0&&d.push(n[c].slice(0,l))}return d}function $e(n,a){let i=-1;const s=[];let c;for(;++i=3&&(E===null||Z(E))?(n.exit("thematicBreak"),a(E)):i(E)}function I(E){return E===c?(n.consume(E),s++,I):(n.exit("thematicBreakSequence"),ln(E)?vn(n,p,"whitespace")(E):p(E))}}const Zn={name:"list",tokenize:Ft,continuation:{tokenize:Ot},exit:yt},Tt={tokenize:Pt,partial:!0},xt={tokenize:gt,partial:!0};function Ft(n,a,i){const s=this,c=s.events[s.events.length-1];let l=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,d=0;return p;function p(x){const In=s.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(In==="listUnordered"?!s.containerState.marker||x===s.containerState.marker:gn(x)){if(s.containerState.type||(s.containerState.type=In,n.enter(In,{_container:!0})),In==="listUnordered")return n.enter("listItemPrefix"),x===42||x===45?n.check(fe,i,E)(x):E(x);if(!s.interrupt||x===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),I(x)}return i(x)}function I(x){return gn(x)&&++d<10?(n.consume(x),I):(!s.interrupt||d<2)&&(s.containerState.marker?x===s.containerState.marker:x===41||x===46)?(n.exit("listItemValue"),E(x)):i(x)}function E(x){return n.enter("listItemMarker"),n.consume(x),n.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||x,n.check(Ee,s.interrupt?i:b,n.attempt(Tt,k,j))}function b(x){return s.containerState.initialBlankLine=!0,l++,k(x)}function j(x){return ln(x)?(n.enter("listItemPrefixWhitespace"),n.consume(x),n.exit("listItemPrefixWhitespace"),k):i(x)}function k(x){return s.containerState.size=l+s.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(x)}}function Ot(n,a,i){const s=this;return s.containerState._closeFlow=void 0,n.check(Ee,c,l);function c(p){return s.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,vn(n,a,"listItemIndent",s.containerState.size+1)(p)}function l(p){return s.containerState.furtherBlankLines||!ln(p)?(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,d(p)):(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,n.attempt(xt,a,d)(p))}function d(p){return s.containerState._closeFlow=!0,s.interrupt=void 0,vn(n,n.attempt(Zn,a,i),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function gt(n,a,i){const s=this;return vn(n,c,"listItemIndent",s.containerState.size+1);function c(l){const d=s.events[s.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===s.containerState.size?a(l):i(l)}}function yt(n){n.exit(this.containerState.type)}function Pt(n,a,i){const s=this;return vn(n,c,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(l){const d=s.events[s.events.length-1];return!ln(l)&&d&&d[1].type==="listItemPrefixWhitespace"?a(l):i(l)}}const Ze={name:"blockQuote",tokenize:Et,continuation:{tokenize:_t},exit:Lt};function Et(n,a,i){const s=this;return c;function c(d){if(d===62){const p=s.containerState;return p.open||(n.enter("blockQuote",{_container:!0}),p.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(d),n.exit("blockQuoteMarker"),l}return i(d)}function l(d){return ln(d)?(n.enter("blockQuotePrefixWhitespace"),n.consume(d),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(d))}}function _t(n,a,i){const s=this;return c;function c(d){return ln(d)?vn(n,l,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):l(d)}function l(d){return n.attempt(Ze,a,i)(d)}}function Lt(n){n.exit("blockQuote")}function At(n,a,i,s,c,l,d,p,I){const E=I||Number.POSITIVE_INFINITY;let b=0;return j;function j($){return $===60?(n.enter(s),n.enter(c),n.enter(l),n.consume($),n.exit(l),k):$===null||$===32||$===41||sn($)?i($):(n.enter(s),n.enter(d),n.enter(p),n.enter("chunkString",{contentType:"string"}),Sn($))}function k($){return $===62?(n.enter(l),n.consume($),n.exit(l),n.exit(c),n.exit(s),a):(n.enter(p),n.enter("chunkString",{contentType:"string"}),x($))}function x($){return $===62?(n.exit("chunkString"),n.exit(p),k($)):$===null||$===60||Z($)?i($):(n.consume($),$===92?In:x)}function In($){return $===60||$===62||$===92?(n.consume($),x):x($)}function Sn($){return!b&&($===null||$===41||Mn($))?(n.exit("chunkString"),n.exit(p),n.exit(d),n.exit(s),a($)):b999||x===null||x===91||x===93&&!I||x===94&&!p&&"_hiddenFootnoteSupport"in d.parser.constructs?i(x):x===93?(n.exit(l),n.enter(c),n.consume(x),n.exit(c),n.exit(s),a):Z(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),j(x))}function j(x){return x===null||x===91||x===93||Z(x)||p++>999?(n.exit("chunkString"),b(x)):(n.consume(x),I||(I=!ln(x)),x===92?k:j)}function k(x){return x===91||x===92||x===93?(n.consume(x),p++,j):j(x)}}function Xe(n,a,i,s,c,l){let d;return p;function p(k){return k===34||k===39||k===40?(n.enter(s),n.enter(c),n.consume(k),n.exit(c),d=k===40?41:k,I):i(k)}function I(k){return k===d?(n.enter(c),n.consume(k),n.exit(c),n.exit(s),a):(n.enter(l),E(k))}function E(k){return k===d?(n.exit(l),I(d)):k===null?i(k):Z(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),vn(n,E,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===d||k===null||Z(k)?(n.exit("chunkString"),E(k)):(n.consume(k),k===92?j:b)}function j(k){return k===d||k===92?(n.consume(k),b):b(k)}}function Ie(n,a){let i;return s;function s(c){return Z(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),i=!0,s):ln(c)?vn(n,s,i?"linePrefix":"lineSuffix")(c):a(c)}}function Se(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Je={name:"definition",tokenize:Mt},wt={tokenize:Dt,partial:!0};function Mt(n,a,i){const s=this;let c;return l;function l(x){return n.enter("definition"),d(x)}function d(x){return st.call(s,n,p,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function p(x){return c=Se(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)),x===58?(n.enter("definitionMarker"),n.consume(x),n.exit("definitionMarker"),I):i(x)}function I(x){return Mn(x)?Ie(n,E)(x):E(x)}function E(x){return At(n,b,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function b(x){return n.attempt(wt,j,j)(x)}function j(x){return ln(x)?vn(n,k,"whitespace")(x):k(x)}function k(x){return x===null||Z(x)?(n.exit("definition"),s.parser.defined.push(c),a(x)):i(x)}}function Dt(n,a,i){return s;function s(p){return Mn(p)?Ie(n,c)(p):i(p)}function c(p){return Xe(n,l,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function l(p){return ln(p)?vn(n,d,"whitespace")(p):d(p)}function d(p){return p===null||Z(p)?a(p):i(p)}}const vt={name:"codeIndented",tokenize:Bt},bt={tokenize:Rt,partial:!0};function Bt(n,a,i){const s=this;return c;function c(E){return n.enter("codeIndented"),vn(n,l,"linePrefix",5)(E)}function l(E){const b=s.events[s.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?d(E):i(E)}function d(E){return E===null?I(E):Z(E)?n.attempt(bt,d,I)(E):(n.enter("codeFlowValue"),p(E))}function p(E){return E===null||Z(E)?(n.exit("codeFlowValue"),d(E)):(n.consume(E),p)}function I(E){return n.exit("codeIndented"),a(E)}}function Rt(n,a,i){const s=this;return c;function c(d){return s.parser.lazy[s.now().line]?i(d):Z(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c):vn(n,l,"linePrefix",5)(d)}function l(d){const p=s.events[s.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(d):Z(d)?c(d):i(d)}}const zt={name:"headingAtx",tokenize:U,resolve:O};function O(n,a){let i=n.length-2,s=3,c,l;return n[s][1].type==="whitespace"&&(s+=2),i-2>s&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(s===i-1||i-4>s&&n[i-2][1].type==="whitespace")&&(i-=s+1===i?2:4),i>s&&(c={type:"atxHeadingText",start:n[s][1].start,end:n[i][1].end},l={type:"chunkText",start:n[s][1].start,end:n[i][1].end,contentType:"text"},N(n,s,i-s+1,[["enter",c,a],["enter",l,a],["exit",l,a],["exit",c,a]])),n}function U(n,a,i){let s=0;return c;function c(b){return n.enter("atxHeading"),l(b)}function l(b){return n.enter("atxHeadingSequence"),d(b)}function d(b){return b===35&&s++<6?(n.consume(b),d):b===null||Mn(b)?(n.exit("atxHeadingSequence"),p(b)):i(b)}function p(b){return b===35?(n.enter("atxHeadingSequence"),I(b)):b===null||Z(b)?(n.exit("atxHeading"),a(b)):ln(b)?vn(n,p,"whitespace")(b):(n.enter("atxHeadingText"),E(b))}function I(b){return b===35?(n.consume(b),I):(n.exit("atxHeadingSequence"),p(b))}function E(b){return b===null||b===35||Mn(b)?(n.exit("atxHeadingText"),p(b)):(n.consume(b),E)}}const un={name:"setextUnderline",tokenize:jn,resolveTo:fn};function fn(n,a){let i=n.length,s,c,l;for(;i--;)if(n[i][0]==="enter"){if(n[i][1].type==="content"){s=i;break}n[i][1].type==="paragraph"&&(c=i)}else n[i][1].type==="content"&&n.splice(i,1),!l&&n[i][1].type==="definition"&&(l=i);const d={type:"setextHeading",start:Object.assign({},n[c][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[c][1].type="setextHeadingText",l?(n.splice(c,0,["enter",d,a]),n.splice(l+1,0,["exit",n[s][1],a]),n[s][1].end=Object.assign({},n[l][1].end)):n[s][1]=d,n.push(["exit",d,a]),n}function jn(n,a,i){const s=this;let c;return l;function l(E){let b=s.events.length,j;for(;b--;)if(s.events[b][1].type!=="lineEnding"&&s.events[b][1].type!=="linePrefix"&&s.events[b][1].type!=="content"){j=s.events[b][1].type==="paragraph";break}return!s.parser.lazy[s.now().line]&&(s.interrupt||j)?(n.enter("setextHeadingLine"),c=E,d(E)):i(E)}function d(E){return n.enter("setextHeadingLineSequence"),p(E)}function p(E){return E===c?(n.consume(E),p):(n.exit("setextHeadingLineSequence"),ln(E)?vn(n,I,"lineSuffix")(E):I(E))}function I(E){return E===null||Z(E)?(n.exit("setextHeadingLine"),a(E)):i(E)}}const _n=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gn=["pre","script","style","textarea"],Tn={name:"htmlFlow",tokenize:ie,resolveTo:oe,concrete:!0},Un={tokenize:je,partial:!0},Wn={tokenize:Vn,partial:!0};function oe(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function ie(n,a,i){const s=this;let c,l,d,p,I;return E;function E(v){return b(v)}function b(v){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(v),j}function j(v){return v===33?(n.consume(v),k):v===47?(n.consume(v),l=!0,Sn):v===63?(n.consume(v),c=3,s.interrupt?a:A):mn(v)?(n.consume(v),d=String.fromCharCode(v),Kn):i(v)}function k(v){return v===45?(n.consume(v),c=2,x):v===91?(n.consume(v),c=5,p=0,In):mn(v)?(n.consume(v),c=4,s.interrupt?a:A):i(v)}function x(v){return v===45?(n.consume(v),s.interrupt?a:A):i(v)}function In(v){const be="CDATA[";return v===be.charCodeAt(p++)?(n.consume(v),p===be.length?s.interrupt?a:wn:In):i(v)}function Sn(v){return mn(v)?(n.consume(v),d=String.fromCharCode(v),Kn):i(v)}function Kn(v){if(v===null||v===47||v===62||Mn(v)){const be=v===47,St=d.toLowerCase();return!be&&!l&&Gn.includes(St)?(c=1,s.interrupt?a(v):wn(v)):_n.includes(d.toLowerCase())?(c=6,be?(n.consume(v),$):s.interrupt?a(v):wn(v)):(c=7,s.interrupt&&!s.parser.lazy[s.now().line]?i(v):l?Xn(v):en(v))}return v===45||Bn(v)?(n.consume(v),d+=String.fromCharCode(v),Kn):i(v)}function $(v){return v===62?(n.consume(v),s.interrupt?a:wn):i(v)}function Xn(v){return ln(v)?(n.consume(v),Xn):me(v)}function en(v){return v===47?(n.consume(v),me):v===58||v===95||mn(v)?(n.consume(v),Yn):ln(v)?(n.consume(v),en):me(v)}function Yn(v){return v===45||v===46||v===58||v===95||Bn(v)?(n.consume(v),Yn):Qn(v)}function Qn(v){return v===61?(n.consume(v),B):ln(v)?(n.consume(v),Qn):en(v)}function B(v){return v===null||v===60||v===61||v===62||v===96?i(v):v===34||v===39?(n.consume(v),I=v,zn):ln(v)?(n.consume(v),B):ee(v)}function zn(v){return v===I?(n.consume(v),I=null,qn):v===null||Z(v)?i(v):(n.consume(v),zn)}function ee(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||Mn(v)?Qn(v):(n.consume(v),ee)}function qn(v){return v===47||v===62||ln(v)?en(v):i(v)}function me(v){return v===62?(n.consume(v),Hn):i(v)}function Hn(v){return v===null||Z(v)?wn(v):ln(v)?(n.consume(v),Hn):i(v)}function wn(v){return v===45&&c===2?(n.consume(v),Jn):v===60&&c===1?(n.consume(v),se):v===62&&c===4?(n.consume(v),Oe):v===63&&c===3?(n.consume(v),A):v===93&&c===5?(n.consume(v),Ge):Z(v)&&(c===6||c===7)?(n.exit("htmlFlowData"),n.check(Un,Ve,tn)(v)):v===null||Z(v)?(n.exit("htmlFlowData"),tn(v)):(n.consume(v),wn)}function tn(v){return n.check(Wn,xn,Ve)(v)}function xn(v){return n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),bn}function bn(v){return v===null||Z(v)?tn(v):(n.enter("htmlFlowData"),wn(v))}function Jn(v){return v===45?(n.consume(v),A):wn(v)}function se(v){return v===47?(n.consume(v),d="",Re):wn(v)}function Re(v){if(v===62){const be=d.toLowerCase();return Gn.includes(be)?(n.consume(v),Oe):wn(v)}return mn(v)&&d.length<8?(n.consume(v),d+=String.fromCharCode(v),Re):wn(v)}function Ge(v){return v===93?(n.consume(v),A):wn(v)}function A(v){return v===62?(n.consume(v),Oe):v===45&&c===2?(n.consume(v),A):wn(v)}function Oe(v){return v===null||Z(v)?(n.exit("htmlFlowData"),Ve(v)):(n.consume(v),Oe)}function Ve(v){return n.exit("htmlFlow"),a(v)}}function Vn(n,a,i){const s=this;return c;function c(d){return Z(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),l):i(d)}function l(d){return s.parser.lazy[s.now().line]?i(d):a(d)}}function je(n,a,i){return s;function s(c){return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),n.attempt(Ee,a,i)}}const le={tokenize:De,partial:!0},pe={name:"codeFenced",tokenize:Te,concrete:!0};function Te(n,a,i){const s=this,c={tokenize:Qn,partial:!0};let l=0,d=0,p;return I;function I(B){return E(B)}function E(B){const zn=s.events[s.events.length-1];return l=zn&&zn[1].type==="linePrefix"?zn[2].sliceSerialize(zn[1],!0).length:0,p=B,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(B)}function b(B){return B===p?(d++,n.consume(B),b):d<3?i(B):(n.exit("codeFencedFenceSequence"),ln(B)?vn(n,j,"whitespace")(B):j(B))}function j(B){return B===null||Z(B)?(n.exit("codeFencedFence"),s.interrupt?a(B):n.check(le,Sn,Yn)(B)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),k(B))}function k(B){return B===null||Z(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),j(B)):ln(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),vn(n,x,"whitespace")(B)):B===96&&B===p?i(B):(n.consume(B),k)}function x(B){return B===null||Z(B)?j(B):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),In(B))}function In(B){return B===null||Z(B)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),j(B)):B===96&&B===p?i(B):(n.consume(B),In)}function Sn(B){return n.attempt(c,Yn,Kn)(B)}function Kn(B){return n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),$}function $(B){return l>0&&ln(B)?vn(n,Xn,"linePrefix",l+1)(B):Xn(B)}function Xn(B){return B===null||Z(B)?n.check(le,Sn,Yn)(B):(n.enter("codeFlowValue"),en(B))}function en(B){return B===null||Z(B)?(n.exit("codeFlowValue"),Xn(B)):(n.consume(B),en)}function Yn(B){return n.exit("codeFenced"),a(B)}function Qn(B,zn,ee){let qn=0;return me;function me(bn){return B.enter("lineEnding"),B.consume(bn),B.exit("lineEnding"),Hn}function Hn(bn){return B.enter("codeFencedFence"),ln(bn)?vn(B,wn,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(bn):wn(bn)}function wn(bn){return bn===p?(B.enter("codeFencedFenceSequence"),tn(bn)):ee(bn)}function tn(bn){return bn===p?(qn++,B.consume(bn),tn):qn>=d?(B.exit("codeFencedFenceSequence"),ln(bn)?vn(B,xn,"whitespace")(bn):xn(bn)):ee(bn)}function xn(bn){return bn===null||Z(bn)?(B.exit("codeFencedFence"),zn(bn)):ee(bn)}}}function De(n,a,i){const s=this;return c;function c(d){return d===null?i(d):(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),l)}function l(d){return s.parser.lazy[s.now().line]?i(d):a(d)}}const Fe=document.createElement("i");function at(n){const a="&"+n+";";Fe.innerHTML=a;const i=Fe.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}const Be={name:"characterReference",tokenize:ut};function ut(n,a,i){const s=this;let c=0,l,d;return p;function p(j){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(j),n.exit("characterReferenceMarker"),I}function I(j){return j===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(j),n.exit("characterReferenceMarkerNumeric"),E):(n.enter("characterReferenceValue"),l=31,d=Bn,b(j))}function E(j){return j===88||j===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(j),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),l=6,d=Rn,b):(n.enter("characterReferenceValue"),l=7,d=gn,b(j))}function b(j){if(j===59&&c){const k=n.exit("characterReferenceValue");return d===Bn&&!at(s.sliceSerialize(k))?i(j):(n.enter("characterReferenceMarker"),n.consume(j),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return d(j)&&c++1&&n[i][1].end.offset-n[i][1].start.offset>1?2:1;const j=Object.assign({},n[s][1].end),k=Object.assign({},n[i][1].start);qe(j,-I),qe(k,I),d={type:I>1?"strongSequence":"emphasisSequence",start:j,end:Object.assign({},n[s][1].end)},p={type:I>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[i][1].start),end:k},l={type:I>1?"strongText":"emphasisText",start:Object.assign({},n[s][1].end),end:Object.assign({},n[i][1].start)},c={type:I>1?"strong":"emphasis",start:Object.assign({},d.start),end:Object.assign({},p.end)},n[s][1].end=Object.assign({},d.start),n[i][1].start=Object.assign({},p.end),E=[],n[s][1].end.offset-n[s][1].start.offset&&(E=Y(E,[["enter",n[s][1],a],["exit",n[s][1],a]])),E=Y(E,[["enter",c,a],["enter",d,a],["exit",d,a],["enter",l,a]]),E=Y(E,An(a.parser.constructs.insideSpan.null,n.slice(s+1,i),a)),E=Y(E,[["exit",l,a],["enter",p,a],["exit",p,a],["exit",c,a]]),n[i][1].end.offset-n[i][1].start.offset?(b=2,E=Y(E,[["enter",n[i][1],a],["exit",n[i][1],a]])):b=0,N(n,s-1,i-s+3,E),i=s+E.length-b-2;break}}for(i=-1;++i13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"\uFFFD":String.fromCharCode(i)}const br=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xr(n){return n.replace(br,$r)}function $r(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const c=i.charCodeAt(1),l=c===120||c===88;return Qr(i.slice(l?2:1),l?16:10)}return at(i)||n}function Jt(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Zr(n.position):"start"in n||"end"in n?Zr(n):"line"in n||"column"in n?yr(n):""}function yr(n){return ct(n&&n.line)+":"+ct(n&&n.column)}function Zr(n){return yr(n&&n.start)+"-"+yr(n&&n.end)}function ct(n){return n&&typeof n=="number"?n:1}const qt={}.hasOwnProperty,Er=function(n,a,i){return typeof a!="string"&&(i=a,a=void 0),wr(i)(Xt(Vr(i).document().write(Yr()(n,a,!0))))};function wr(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:p(Pr),autolinkProtocol:Hn,autolinkEmail:Hn,atxHeading:p(Tr),blockQuote:p(jt),characterEscape:Hn,characterReference:Hn,codeFenced:p(ht),codeFencedFenceInfo:I,codeFencedFenceMeta:I,codeIndented:p(ht,I),codeText:p(cr,I),codeTextData:Hn,data:Hn,codeFlowValue:Hn,definition:p(ai),definitionDestinationString:I,definitionLabelString:I,definitionTitleString:I,emphasis:p(ui),hardBreakEscape:p(Fr),hardBreakTrailing:p(Fr),htmlFlow:p(Or,I),htmlFlowData:Hn,htmlText:p(Or,I),htmlTextData:Hn,image:p(oi),label:I,link:p(Pr),listItem:p(Mr),listItemValue:In,listOrdered:p(Lr,x),listUnordered:p(Lr),paragraph:p(li),reference:St,referenceString:I,resourceDestinationString:I,resourceTitleString:I,setextHeading:p(Tr),strong:p(di),thematicBreak:p(fi)},exit:{atxHeading:b(),atxHeadingSequence:zn,autolink:b(),autolinkEmail:nt,autolinkProtocol:Ht,blockQuote:b(),characterEscapeValue:wn,characterReferenceMarkerHexadecimal:Kt,characterReferenceMarkerNumeric:Kt,characterReferenceValue:ae,codeFenced:b(Xn),codeFencedFence:$,codeFencedFenceInfo:Sn,codeFencedFenceMeta:Kn,codeFlowValue:wn,codeIndented:b(en),codeText:b(se),codeTextData:wn,data:wn,definition:b(),definitionDestinationString:B,definitionLabelString:Yn,definitionTitleString:Qn,emphasis:b(),hardBreakEscape:b(xn),hardBreakTrailing:b(xn),htmlFlow:b(bn),htmlFlowData:wn,htmlText:b(Jn),htmlTextData:wn,image:b(Ge),label:Oe,labelText:A,lineEnding:tn,link:b(Re),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:tr,resourceDestinationString:Ve,resourceTitleString:v,resource:be,setextHeading:b(me),setextHeadingLineSequence:qn,setextHeadingText:ee,strong:b(),thematicBreak:b()}};or(a,(n||{}).mdastExtensions||[]);const i={};return s;function s(T){let G={type:"root",children:[]};const on={stack:[G],tokenStack:[],config:a,enter:E,exit:j,buffer:I,resume:k,setData:l,getData:d},On=[];let Dn=-1;for(;++Dn0){const ze=on.tokenStack[on.tokenStack.length-1];(ze[1]||lr).call(on,void 0,ze[0])}for(G.position={start:He(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:He(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},Dn=-1;++Dn{b!==0&&(c++,s.push([])),E.split(" ").forEach(j=>{j&&s[c].push({content:j,type:p})})}):(d.type==="strong"||d.type==="emphasis")&&d.children.forEach(I=>{l(I,d.type)})}return i.forEach(d=>{d.type==="paragraph"&&d.children.forEach(p=>{l(p)})}),s}function Ir(n){const{children:a}=Er(n);function i(s){return s.type==="text"?s.value.replace(/\n/g,"
"):s.type==="strong"?`${s.children.map(i).join("")}`:s.type==="emphasis"?`${s.children.map(i).join("")}`:s.type==="paragraph"?`

${s.children.map(i).join("")}

`:`Unsupported markdown: ${s.type}`}return a.map(i).join("")}function qr(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(a=>a.segment):[...n]}function ni(n,a){const i=qr(a.content);return Sr(n,[],i,a.type)}function Sr(n,a,i,s){if(i.length===0)return[{content:a.join(""),type:s},{content:"",type:s}];const[c,...l]=i,d=[...a,c];return n([{content:d.join(""),type:s}])?Sr(n,d,l,s):(a.length===0&&c&&(a.push(c),i.shift()),[{content:a.join(""),type:s},{content:i.join(""),type:s}])}function jr(n,a){if(n.some(({content:i})=>i.includes(` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return ft(n,a)}function ft(n,a,i=[],s=[]){if(n.length===0)return s.length>0&&i.push(s),i.length>0?i:[];let c="";n[0].content===" "&&(c=" ",n.shift());const l=n.shift()??{content:" ",type:"normal"},d=[...s];if(c!==""&&d.push({content:c,type:"normal"}),d.push(l),a(d))return ft(n,a,i,d);if(s.length>0)i.push(s),n.unshift(l);else if(l.content){const[p,I]=ni(a,l);i.push([p]),I.content&&n.unshift(I)}return ft(n,a,i)}function nr(n,a){a&&n.attr("style",a)}function ei(n,a,i,s,c=!1){const l=n.append("foreignObject"),d=l.append("xhtml:div"),p=a.label,I=a.isNode?"nodeLabel":"edgeLabel";d.html(` "+p+""),nr(d,a.labelStyle),d.style("display","table-cell"),d.style("white-space","nowrap"),d.style("max-width",i+"px"),d.attr("xmlns","http://www.w3.org/1999/xhtml"),c&&d.attr("class","labelBkg");let E=d.node().getBoundingClientRect();return E.width===i&&(d.style("display","table"),d.style("white-space","break-spaces"),d.style("width",i+"px"),E=d.node().getBoundingClientRect()),l.style("width",E.width),l.style("height",E.height),l.node()}function er(n,a,i){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",a*i-.1+"em").attr("dy",i+"em")}function ti(n,a,i){const s=n.append("text"),c=er(s,1,a);dr(c,i);const l=c.node().getComputedTextLength();return s.remove(),l}function ri(n,a,i){var s;const c=n.append("text"),l=er(c,1,a);dr(l,[{content:i,type:"normal"}]);const d=(s=l.node())==null?void 0:s.getBoundingClientRect();return d&&c.remove(),d}function ii(n,a,i,s=!1){const l=a.append("g"),d=l.insert("rect").attr("class","background"),p=l.append("text").attr("y","-10.1");let I=0;for(const E of i){const b=k=>ti(l,1.1,k)<=n,j=b(E)?[E]:jr(E,b);for(const k of j){const x=er(p,I,1.1);dr(x,k),I++}}if(s){const E=p.node().getBBox(),b=2;return d.attr("x",-b).attr("y",-b).attr("width",E.width+2*b).attr("height",E.height+2*b),l.node()}else return p.node()}function dr(n,a){n.text(""),a.forEach((i,s)=>{const c=n.append("tspan").attr("font-style",i.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",i.type==="strong"?"bold":"normal");s===0?c.text(i.content):c.text(" "+i.content)})}const si=(n,a="",{style:i="",isTitle:s=!1,classes:c="",useHtmlLabels:l=!0,isNode:d=!0,width:p=200,addSvgBackground:I=!1}={})=>{if(R.l.info("createText",a,i,s,c,l,d,I),l){const E=Ir(a),b={isNode:d,label:(0,R.M)(E).replace(/fa[blrs]?:fa-[\w-]+/g,k=>``),labelStyle:i.replace("fill:","color:")};return ei(n,b,p,c,I)}else{const E=Jr(a);return ii(p,n,E,I)}}}}]);