This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"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;++u<o;){var f=e[u],m=t(f);if(m!=null&&(y===void 0?m===m&&!(0,Z.A)(m):r(m,y)))var y=m,C=f}return C}var ln=Mn;function _e(e,t){return e>t}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 e<t}var Le=ce;function Ye(e){return e&&e.length?ln(e,Nn.A,Le):void 0}var we=Ye,Qe=h("./node_modules/lodash-es/_root.js"),ke=function(){return Qe.A.Date.now()},Me=ke;function Ae(e,t,r,u){var o;do o=R.A(u);while(e.hasNode(o));return r.dummy=t,e.setNode(o,r),o}function dn(e){var t=new N.T().setGraph(e.graph());return g.A(e.nodes(),function(r){t.setNode(r,e.node(r))}),g.A(e.edges(),function(r){var u=t.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);t.setEdge(r.v,r.w,{weight:u.weight+o.weight,minlen:Math.max(u.minlen,o.minlen)})}),t}function w(e){var t=new N.T({multigraph:e.isMultigraph()}).setGraph(e.graph());return g.A(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),g.A(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function L(e){var t=_.map(e.nodes(),function(r){var u={};return _.forEach(e.outEdges(r),function(o){u[o.w]=(u[o.w]||0)+e.edge(o).weight}),u});return _.zipObject(e.nodes(),t)}function X(e){var t=_.map(e.nodes(),function(r){var u={};return _.forEach(e.inEdges(r),function(o){u[o.v]=(u[o.v]||0)+e.edge(o).weight}),u});return _.zipObject(e.nodes(),t)}function J(e,t){var r=e.x,u=e.y,o=t.x-r,f=t.y-u,m=e.width/2,y=e.height/2;if(!o&&!f)throw new Error("Not possible to find intersection inside of the rectangle");var C,S;return Math.abs(f)*m>Math.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<m;++f)xt(e,"borderLeft","_bl",r,o,f),xt(e,"borderRight","_br",r,o,f)}}g.A(e.children(),t)}function xt(e,t,r,u,o,f){var m={width:0,height:0,rank:f,borderType:t},y=o[t][f-1],C=Ae(e,"border",m,r);o[t][f]=C,e.setParent(C,u),y&&e.setEdge(y,C,{weight:1})}function Ft(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&gt(e)}function Ot(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&Pt(e),(t==="lr"||t==="rl")&&(Et(e),gt(e))}function gt(e){g.A(e.nodes(),function(t){yt(e.node(t))}),g.A(e.edges(),function(t){yt(e.edge(t))})}function yt(e){var t=e.width;e.width=e.height,e.height=t}function Pt(e){g.A(e.nodes(),function(t){Ze(e.node(t))}),g.A(e.edges(),function(t){var r=e.edge(t);g.A(r.points,Ze),F.A(r,"y")&&Ze(r)})}function Ze(e){e.y=-e.y}function Et(e){g.A(e.nodes(),function(t){_t(e.node(t))}),g.A(e.edges(),function(t){var r=e.edge(t);g.A(r.points,_t),F.A(r,"x")&&_t(r)})}function _t(e){var t=e.x;e.x=e.y,e.y=t}function Lt(e){e.graph().dummyChains=[],g.A(e.edges(),function(t){At(e,t)})}function At(e,t){var r=t.v,u=e.node(r).rank,o=t.w,f=e.node(o).rank,m=t.name,y=e.edge(t),C=y.labelRank;if(f!==u+1){e.removeEdge(t);var S,P,V;for(V=0,++u;u<f;++V,++u)y.points=[],P={width:0,height:0,edgeLabel:y,edgeObj:t,rank:u},S=Ae(e,"edge",P,"_d"),u===C&&(P.width=y.width,P.height=y.height,P.dummy="edge-label",P.labelpos=y.labelpos),e.setEdge(r,S,{weight:y.weight},m),V===0&&e.graph().dummyChains.push(S),r=S;e.setEdge(r,o,{weight:y.weight},m)}}function st(e){g.A(e.graph().dummyChains,function(t){var r=e.node(t),u=r.edgeLabel,o;for(e.setEdge(r.edgeObj,u);r.dummy;)o=e.successors(t)[0],e.removeNode(t),u.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(u.x=r.x,u.y=r.y,u.width=r.width,u.height=r.height),t=o,r=e.node(t)})}function Xe(e,t){return e&&e.length?ln(e,(0,Pe.A)(t,2),Le):void 0}var Ie=Xe;function Se(e){var t={};function r(u){var o=e.node(u);if(F.A(t,u))return o.rank;t[u]=!0;var f=we(D.A(e.outEdges(u),function(m){return r(m.w)-e.edge(m).minlen}));return(f===Number.POSITIVE_INFINITY||f===void 0||f===null)&&(f=0),o.rank=f}g.A(e.sources(),r)}function Je(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function wt(e){var t=new N.T({directed:!1}),r=e.nodes()[0],u=e.nodeCount();t.setNode(r,{});for(var o,f;Mt(t,e)<u;)o=Dt(t,e),f=t.hasNode(o.v)?Je(e,o):-Je(e,o),vt(t,e,f);return t}function Mt(e,t){function r(u){g.A(t.nodeEdges(u),function(o){var f=o.v,m=u===f?o.w:f;!e.hasNode(m)&&!Je(t,o)&&(e.setNode(m,{}),e.setEdge(u,m,{}),r(m))})}return g.A(e.nodes(),r),e.nodeCount()}function Dt(e,t){return Ie(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return Je(t,r)})}function vt(e,t,r){g.A(e.nodes(),function(u){t.node(u).rank+=r})}var bt=h("./node_modules/lodash-es/isArrayLike.js"),Bt=h("./node_modules/lodash-es/keys.js");function Rt(e){return function(t,r,u){var o=Object(t);if(!(0,bt.A)(t)){var f=(0,Pe.A)(r,3);t=(0,Bt.A)(t),r=function(y){return f(o[y],y,o)}}var m=e(t,r,u);return m>-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);En<V.distance&&(V.distance=En,V.predecessor=m,f.decrease(P,En))};for(e.nodes().forEach(function(S){var P=S===t?0:Number.POSITIVE_INFINITY;o[S]={distance:P},f.add(S,P)});f.size()>0&&(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;En<pn.distance&&(pn.distance=En,pn.predecessor=V.predecessor)})})}),u}var De=h("./node_modules/lodash-es/_baseKeys.js"),Fe=h("./node_modules/lodash-es/_getTag.js"),at=h("./node_modules/lodash-es/_baseGetTag.js"),Be=h("./node_modules/lodash-es/isArray.js"),ut=h("./node_modules/lodash-es/isObjectLike.js"),Yt="[object String]";function rr(e){return typeof e=="string"||!(0,Be.A)(e)&&(0,ut.A)(e)&&(0,at.A)(e)==Yt}var Nt=rr,ir=h("./node_modules/lodash-es/_baseProperty.js"),Ut=(0,ir.A)("length"),sr=Ut,Fn="\\ud800-\\udfff",kt="\\u0300-\\u036f",ar="\\ufe20-\\ufe2f",K="\\u20d0-\\u20ff",Cn=kt+ar+K,de="\\ufe0e\\ufe0f",ot="\\u200d",Ct=RegExp("["+ot+Fn+Cn+de+"]");function Ue(e){return Ct.test(e)}var he=Ue,lt="\\ud800-\\udfff",dt="\\u0300-\\u036f",ur="\\ufe20-\\ufe2f",Qt="\\u20d0-\\u20ff",qe=dt+ur+Qt,$t="\\ufe0e\\ufe0f",Zt="["+lt+"]",Wt="["+qe+"]",It="\\ud83c[\\udffb-\\udfff]",We="(?:"+Wt+"|"+It+")",Ke="[^"+lt+"]",mr="(?:\\ud83c[\\udde6-\\uddff]){2}",pr="[\\ud800-\\udbff][\\udc00-\\udfff]",Dr="\\u200d",gr=We+"?",_r="["+$t+"]?",Br="(?:"+Dr+"(?:"+[Ke,mr,pr].join("|")+")"+_r+gr+")*",Rr=_r+gr+Br,zr="(?:"+[Ke+Wt+"?",Wt,mr,pr,Zt].join("|")+")",Ar=RegExp(It+"(?="+It+")|"+zr+Rr,"g");function Nr(e){for(var t=Ar.lastIndex=0;Ar.test(e);)++t;return t}var Ur=Nr;function Wr(e){return he(e)?Ur(e):sr(e)}var Kr=Wr,Hr="[object Map]",Gr="[object Set]";function Vr(e){if(e==null)return 0;if((0,bt.A)(e))return Nt(e)?Kr(e):e.length;var t=(0,Fe.A)(e);return t==Hr||t==Gr?e.size:(0,De.A)(e).length}var vr=Vr;Yr.CycleException=Xt;function Yr(e){var t={},r={},u=[];function o(f){if(F.A(r,f))throw new Xt;F.A(t,f)||(r[f]=!0,t[f]=!0,g.A(e.predecessors(f),o),delete r[f],u.push(f))}if(g.A(e.sinks(),o),vr(t)!==e.nodeCount())throw new Xt;return u}function Xt(){}Xt.prototype=new Error;function Qr(e){try{topsort(e)}catch(t){if(t instanceof CycleException)return!1;throw t}return!0}function br(e,t,r){Be.A(t)||(t=[t]);var u=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],f={};return g.A(t,function(m){if(!e.hasNode(m))throw new Error("Graph does not have node: "+m);xr(e,m,r==="post",f,u,o)}),o}function xr(e,t,r,u,o,f){F.A(u,t)||(u[t]=!0,r||f.push(t),g.A(o(t),function(m){xr(e,m,r,u,o,f)}),r&&f.push(t))}function $r(e,t){return br(e,t,"post")}function Jt(e,t){return br(e,t,"pre")}var yr=h("./node_modules/dagre-d3-es/src/graphlib/graph.js");function Zr(e,t){var r=new Graph,u={},o=new PriorityQueue,f;function m(C){var S=C.v===f?C.w:C.v,P=o.priority(S);if(P!==void 0){var V=t(C);V<P&&(u[S]=f,o.decrease(S,V))}}if(e.nodeCount()===0)return r;_.each(e.nodes(),function(C){o.add(C,Number.POSITIVE_INFINITY),r.setNode(C)}),o.decrease(e.nodes()[0],0);for(var y=!1;o.size()>0;){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={};++u<o;){var y=u<f?t[u]:void 0;r(m,e[u],y)}return m}var I=p;function E(e,t){return I(e||[],t||[],d.A)}var b=E,j=h("./node_modules/lodash-es/_baseFlatten.js"),k=h("./node_modules/lodash-es/_arrayMap.js"),x=h("./node_modules/lodash-es/_baseGet.js"),In=h("./node_modules/lodash-es/_baseMap.js");function Sn(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var Kn=Sn,$=h("./node_modules/lodash-es/_baseUnary.js");function Xn(e,t){if(e!==t){var r=e!==void 0,u=e===null,o=e===e,f=(0,Z.A)(e),m=t!==void 0,y=t===null,C=t===t,S=(0,Z.A)(t);if(!y&&!S&&!f&&e>t||f&&m&&C&&!y&&!S||u&&m&&C||!r&&C||!o)return 1;if(!u&&!f&&!S&&e<t||S&&r&&o&&!u&&!f||y&&r&&o||!m&&o||!C)return-1}return 0}var en=Xn;function Yn(e,t,r){for(var u=-1,o=e.criteria,f=t.criteria,m=o.length,y=r.length;++u<m;){var C=en(o[u],f[u]);if(C){if(u>=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;u<t.length;++u)r+=tn(e,t[u-1],t[u]);return r}function tn(e,t,r){for(var u=b(r,D.A(r,function(S,P){return P})),o=z.A(D.A(t,function(S){return Hn(D.A(e.outEdges(S),function(P){return{pos:u[P.w],weight:e.edge(P).weight}}),"pos")})),f=1;f<r.length;)f<<=1;var m=2*f-1;f-=1;var y=D.A(new Array(m),function(){return 0}),C=0;return g.A(o.forEach(function(S){var P=S.pos+f;y[P]+=S.weight;for(var V=0;P>0;)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.barycenter<r.barycenter?-1:t.barycenter>r.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);S<f&&(C=0,m=i(o),f=S)}ae(e,m)}function tr(e,t,r){return D.A(t,function(u){return c(e,u,r)})}function Kt(e,t){var r=new N.T;g.A(e,function(u){var o=u.graph().root,f=Ve(u,o,r,t);g.A(f.vs,function(m,y){u.node(m).order=y}),s(u,r,f.vs)})}function ae(e,t){g.A(t,function(r){g.A(r,function(u,o){e.node(u).order=o})})}function Ht(e){var t=jt(e);g.A(e.graph().dummyChains,function(r){for(var u=e.node(r),o=u.edgeObj,f=nt(e,t,o.v,o.w),m=f.path,y=f.lca,C=0,S=m[C],P=!0;r!==o.w;){if(u=e.node(r),P){for(;(S=m[C])!==y&&e.node(S).maxRank<u.rank;)C++;S===y&&(P=!1)}if(!P){for(;C<m.length-1&&e.node(S=m[C+1]).minRank<=u.rank;)C++;S=m[C]}e.setParent(r,S),r=e.successors(r)[0]}})}function nt(e,t,r,u){var o=[],f=[],m=Math.min(t[r].low,t[u].low),y=Math.max(t[r].lim,t[u].lim),C,S;C=r;do C=e.parent(C),o.push(C);while(C&&(t[C].low>m||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;(pi<m||En<pi)&&!(hr.dummy&&e.node(Pn).dummy)&&Mr(r,ge,Pn)})}),y=V+1,m=En)}),f}return nr.A(t,u),r}function Pr(e,t){var r={};function u(f,m,y,C,S){var P;g.A(H.A(m,y),function(V){P=f[V],e.node(P).dummy&&g.A(e.predecessors(P),function(pn){var En=e.node(pn);En.dummy&&(En.order<C||En.order>S)&&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<m[Pn]&&!li(r,S,Pn)&&(f[Pn]=S,f[S]=o[S]=o[Pn],C=m[Pn])}}})}),{root:o,align:f}}function ci(e,t,r,u,o){var f={},m=fi(e,t,r,o),y=o?"borderLeft":"borderRight";function C(V,pn){for(var En=m.nodes(),Pn=En.pop(),ge={};Pn;)ge[Pn]?V(Pn):(ge[Pn]=!0,En.push(Pn),En=En.concat(pn(Pn))),Pn=En.pop()}function S(V){f[V]=m.inEdges(V).reduce(function(pn,En){return Math.max(pn,f[En.v]+m.edge(En))},0)}function P(V){var pn=m.outEdges(V).reduce(function(Pn,ge){return Math.min(Pn,f[ge.w]-m.edge(ge))},Number.POSITIVE_INFINITY),En=e.node(V);pn!==Number.POSITIVE_INFINITY&&En.borderType!==y&&(f[V]=Math.max(f[V],pn))}return C(S,m.predecessors.bind(m)),C(P,m.successors.bind(m)),g.A(u,function(V){f[V]=f[r[V]]}),f}function fi(e,t,r,u){var o=new N.T,f=e.graph(),m=Dn(f.nodesep,f.edgesep,u);return g.A(t,function(y){var C;g.A(y,function(S){var P=r[S];if(o.setNode(P),C){var V=r[C],pn=o.edge(V,P);o.setEdge(V,P,Math.max(m(e,S,C),pn||0))}C=S})}),o}function T(e,t){return Ie(ft.A(t),function(r){var u=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return Or(r,function(f,m){var y=ze(e,m)/2;u=Math.max(f+y,u),o=Math.min(f-y,o)}),u-o})}function G(e,t){var r=ft.A(t),u=we(r),o=ue(r);g.A(["u","d"],function(f){g.A(["l","r"],function(m){var y=f+m,C=e[y],S;if(C!==t){var P=ft.A(C);S=m==="l"?u-we(P):o-ue(P),S&&(e[y]=Ne(C,function(V){return V+S}))}})})}function on(e,t){return Ne(e.ul,function(r,u){if(t)return e[t.toLowerCase()][u];var o=Hn(D.A(e,u));return(o[1]+o[2])/2})}function On(e){var t=cn(e),r=gn.A(oi(e,t),Pr(e,t)),u={},o;g.A(["u","d"],function(m){o=m==="u"?t:ft.A(t).reverse(),g.A(["l","r"],function(y){y==="r"&&(o=D.A(o,function(V){return ft.A(V).reverse()}));var C=(m==="u"?e.predecessors:e.successors).bind(e),S=di(e,o,r,C),P=ci(e,o,S.root,S.align,y==="r");y==="r"&&(P=Ne(P,function(V){return-V})),u[m+y]=P})});var f=T(e,u);return G(u,f),on(u,e.graph().align)}function Dn(e,t,r){return function(u,o,f){var m=u.node(o),y=u.node(f),C=0,S;if(C+=m.width/2,F.A(m,"labelpos"))switch(m.labelpos.toLowerCase()){case"l":S=-m.width/2;break;case"r":S=m.width/2;break}if(S&&(C+=r?S:-S),S=0,C+=(m.dummy?t:e)/2,C+=(y.dummy?t:e)/2,C+=y.width/2,F.A(y,"labelpos"))switch(y.labelpos.toLowerCase()){case"l":S=y.width/2;break;case"r":S=-y.width/2;break}return S&&(C+=r?S:-S),S=0,C}}function ze(e,t){return e.node(t).width}function mt(e){e=w(e),et(e),ai(On(e),function(t,r){e.node(r).x=t})}function et(e){var t=cn(e),r=e.graph().ranksep,u=0;g.A(t,function(o){var f=ue(D.A(o,function(m){return e.node(m).height}));g.A(o,function(m){e.node(m).y=u+f/2}),u+=f+r})}function Gt(e,t){var r=t&&t.debugTiming?Ce:Zn;r("layout",function(){var u=r(" buildLayoutGraph",function(){return yi(e)});r(" runLayout",function(){Vt(u,r)}),r(" updateInputGraph",function(){ne(e,u)})})}function Vt(e,t){t(" makeSpaceForEdgeLabels",function(){Ei(e)}),t(" removeSelfEdges",function(){Oi(e)}),t(" acyclic",function(){Bn(e)}),t(" nestingGraph.run",function(){ei(e)}),t(" rank",function(){qr(w(e))}),t(" injectEdgeLabelProxies",function(){wi(e)}),t(" removeEmptyRanks",function(){kn(e)}),t(" nestingGraph.cleanup",function(){ii(e)}),t(" normalizeRanks",function(){An(e)}),t(" assignRankMinMax",function(){ki(e)}),t(" removeEdgeLabelProxies",function(){Ci(e)}),t(" normalize.run",function(){Lt(e)}),t(" parentDummyChains",function(){Ht(e)}),t(" addBorderSegments",function(){Tt(e)}),t(" order",function(){St(e)}),t(" insertSelfEdges",function(){Pi(e)}),t(" adjustCoordinateSystem",function(){Ft(e)}),t(" position",function(){mt(e)}),t(" positionSelfEdges",function(){Li(e)}),t(" removeBorderNodes",function(){Fi(e)}),t(" normalize.undo",function(){st(e)}),t(" fixupEdgeLabelCoords",function(){ji(e)}),t(" undoCoordinateSystem",function(){Ot(e)}),t(" translateGraph",function(){Ii(e)}),t(" assignNodeIntersects",function(){Si(e)}),t(" reversePoints",function(){Ti(e)}),t(" acyclic.undo",function(){sn(e)})}function ne(e,t){g.A(e.nodes(),function(r){var u=e.node(r),o=t.node(r);u&&(u.x=o.x,u.y=o.y,t.children(r).length&&(u.width=o.width,u.height=o.height))}),g.A(e.edges(),function(r){var u=e.edge(r),o=t.edge(r);u.points=o.points,F.A(o,"x")&&(u.x=o.x,u.y=o.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var fr=["nodesep","edgesep","ranksep","marginx","marginy"],tt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gi=["acyclicer","ranker","rankdir","align"],_i=["width","height"],Ai={width:0,height:0},vi=["minlen","weight","width","height","labeloffset"],bi={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},xi=["labelpos"];function yi(e){var t=new N.T({multigraph:!0,compound:!0}),r=mi(e.graph());return t.setGraph(gn.A({},tt,hi(r,fr),Rn.A(r,gi))),g.A(e.nodes(),function(u){var o=mi(e.node(u));t.setNode(u,xe.A(hi(o,_i),Ai)),t.setParent(u,e.parent(u))}),g.A(e.edges(),function(u){var o=mi(e.edge(u));t.setEdge(u,gn.A({},bi,hi(o,vi),Rn.A(o,xi)))}),t}function Ei(e){var t=e.graph();t.ranksep/=2,g.A(e.edges(),function(r){var u=e.edge(r);u.minlen*=2,u.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?u.width+=u.labeloffset:u.height+=u.labeloffset)})}function wi(e){g.A(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var u=e.node(t.v),o=e.node(t.w),f={rank:(o.rank-u.rank)/2+u.rank,e:t};Ae(e,"edge-proxy",f,"_ep")}})}function ki(e){var t=0;g.A(e.nodes(),function(r){var u=e.node(r);u.borderTop&&(u.minRank=e.node(u.borderTop).rank,u.maxRank=e.node(u.borderBottom).rank,t=ue(t,u.maxRank))}),e.graph().maxRank=t}function Ci(e){g.A(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function Ii(e){var t=Number.POSITIVE_INFINITY,r=0,u=Number.POSITIVE_INFINITY,o=0,f=e.graph(),m=f.marginx||0,y=f.marginy||0;function C(S){var P=S.x,V=S.y,pn=S.width,En=S.height;t=Math.min(t,P-pn/2),r=Math.max(r,P+pn/2),u=Math.min(u,V-En/2),o=Math.max(o,V+En/2)}g.A(e.nodes(),function(S){C(e.node(S))}),g.A(e.edges(),function(S){var P=e.edge(S);F.A(P,"x")&&C(P)}),t-=m,u-=y,g.A(e.nodes(),function(S){var P=e.node(S);P.x-=t,P.y-=u}),g.A(e.edges(),function(S){var P=e.edge(S);g.A(P.points,function(V){V.x-=t,V.y-=u}),F.A(P,"x")&&(P.x-=t),F.A(P,"y")&&(P.y-=u)}),f.width=r-t+m,f.height=o-u+y}function Si(e){g.A(e.edges(),function(t){var r=e.edge(t),u=e.node(t.v),o=e.node(t.w),f,m;r.points?(f=r.points[0],m=r.points[r.points.length-1]):(r.points=[],f=o,m=u),r.points.unshift(J(u,f)),r.points.push(J(o,m))})}function ji(e){g.A(e.edges(),function(t){var r=e.edge(t);if(F.A(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Ti(e){g.A(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function Fi(e){g.A(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),u=e.node(r.borderTop),o=e.node(r.borderBottom),f=e.node(ye(r.borderLeft)),m=e.node(ye(r.borderRight));r.width=Math.abs(m.x-f.x),r.height=Math.abs(o.y-u.y),r.x=f.x+r.width/2,r.y=u.y+r.height/2}}),g.A(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function Oi(e){g.A(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Pi(e){var t=cn(e);g.A(t,function(r){var u=0;g.A(r,function(o,f){var m=e.node(o);m.order=f+u,g.A(m.selfEdges,function(y){Ae(e,"selfedge",{width:y.label.width,height:y.label.height,rank:m.rank,order:f+ ++u,e:y.e,label:y.label},"_se")}),delete m.selfEdges})})}function Li(e){g.A(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var u=e.node(r.e.v),o=u.x+u.width/2,f=u.y,m=r.x-o,y=u.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:o+2*m/3,y:f-y},{x:o+5*m/6,y:f-y},{x:o+m,y:f},{x:o+5*m/6,y:f+y},{x:o+2*m/3,y:f+y}],r.label.x=r.x,r.label.y=r.y}})}function hi(e,t){return Ne(Rn.A(e,t),Number)}function mi(e){var t={};return g.A(e,function(r,u){t[u.toLowerCase()]=r}),t}},"./node_modules/dagre-d3-es/src/graphlib/graph.js":function(hn,W,h){h.d(W,{T:function(){return Ye}});var g=h("./node_modules/lodash-es/has.js"),R=h("./node_modules/lodash-es/constant.js"),F=h("./node_modules/lodash-es/isFunction.js"),M=h("./node_modules/lodash-es/keys.js"),z=h("./node_modules/lodash-es/filter.js"),D=h("./node_modules/lodash-es/isEmpty.js"),H=h("./node_modules/lodash-es/forEach.js"),N=h("./node_modules/lodash-es/isUndefined.js"),Y=h("./node_modules/lodash-es/_baseFlatten.js"),nn=h("./node_modules/lodash-es/_baseRest.js"),an=h("./node_modules/lodash-es/_SetCache.js"),Q=h("./node_modules/lodash-es/_baseFindIndex.js");function rn(dn){return dn!==dn}var q=rn;function yn(dn,w,L){for(var X=L-1,J=dn.length;++X<J;)if(dn[X]===w)return X;return-1}var Ln=yn;function mn(dn,w,L){return w===w?Ln(dn,w,L):(0,Q.A)(dn,q,L)}var Bn=mn;function ve(dn,w){var L=dn==null?0:dn.length;return!!L&&Bn(dn,w,0)>-1}var sn=ve;function gn(dn,w,L){for(var X=-1,J=dn==null?0:dn.length;++X<J;)if(L(w,dn[X]))return!0;return!1}var Rn=gn,xe=h("./node_modules/lodash-es/_cacheHas.js"),Z=h("./node_modules/lodash-es/_Set.js");function Mn(){}var ln=Mn,_e=h("./node_modules/lodash-es/_setToArray.js"),te=1/0,Nn=Z.A&&1/(0,_e.A)(new Z.A([,-0]))[1]==te?function(dn){return new Z.A(dn)}:ln,vn=Nn,ue=200;function pt(dn,w,L){var X=-1,J=sn,cn=dn.length,An=!0,kn=[],$n=kn;if(L)An=!1,J=Rn;else if(cn>=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(;++X<cn;){var fe=dn[X],Ce=w?w(fe):fe;if(fe=L||fe!==0?fe:0,An&&Ce===Ce){for(var Zn=$n.length;Zn--;)if($n[Zn]===Ce)continue n;w&&$n.push(Ce),kn.push(fe)}else J($n,Ce,L)||($n!==kn&&$n.push(Ce),kn.push(fe))}return kn}var ye=pt,rt=h("./node_modules/lodash-es/isArrayLikeObject.js"),it=(0,nn.A)(function(dn){return ye((0,Y.A)(dn,1,rt.A,!0))}),Pe=it,Ee=h("./node_modules/lodash-es/values.js"),Ne=h("./node_modules/lodash-es/reduce.js"),re="\0",ce="\0",Le="";class Ye{constructor(w={}){this._isDirected=g.A(w,"directed")?w.directed:!0,this._isMultigraph=g.A(w,"multigraph")?w.multigraph:!1,this._isCompound=g.A(w,"compound")?w.compound:!1,this._label=void 0,this._defaultNodeLabelFn=R.A(void 0),this._defaultEdgeLabelFn=R.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[ce]={}),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(w){return this._label=w,this}graph(){return this._label}setDefaultNodeLabel(w){return F.A(w)||(w=R.A(w)),this._defaultNodeLabelFn=w,this}nodeCount(){return this._nodeCount}nodes(){return M.A(this._nodes)}sources(){var w=this;return z.A(this.nodes(),function(L){return D.A(w._in[L])})}sinks(){var w=this;return z.A(this.nodes(),function(L){return D.A(w._out[L])})}setNodes(w,L){var X=arguments,J=this;return H.A(w,function(cn){X.length>1?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;++nn<an;)this.add(Y[nn])}H.prototype.add=H.prototype.push=M,H.prototype.has=D;var N=H},"./node_modules/lodash-es/_arrayEach.js":function(hn,W){function h(g,R){for(var F=-1,M=g==null?0:g.length;++F<M&&R(g[F],F,g)!==!1;);return g}W.A=h},"./node_modules/lodash-es/_arrayFilter.js":function(hn,W){function h(g,R){for(var F=-1,M=g==null?0:g.length,z=0,D=[];++F<M;){var H=g[F];R(H,F,g)&&(D[z++]=H)}return D}W.A=h},"./node_modules/lodash-es/_arrayMap.js":function(hn,W){function h(g,R){for(var F=-1,M=g==null?0:g.length,z=Array(M);++F<M;)z[F]=R(g[F],F,g);return z}W.A=h},"./node_modules/lodash-es/_arrayPush.js":function(hn,W){function h(g,R){for(var F=-1,M=R.length,z=g.length;++F<M;)g[z+F]=R[F];return g}W.A=h},"./node_modules/lodash-es/_baseClone.js":function(hn,W,h){h.d(W,{A:function(){return ar}});var g=h("./node_modules/lodash-es/_Stack.js"),R=h("./node_modules/lodash-es/_arrayEach.js"),F=h("./node_modules/lodash-es/_assignValue.js"),M=h("./node_modules/lodash-es/_copyObject.js"),z=h("./node_modules/lodash-es/keys.js");function D(K,Cn){return K&&(0,M.A)(Cn,(0,z.A)(Cn),K)}var H=D,N=h("./node_modules/lodash-es/keysIn.js");function Y(K,Cn){return K&&(0,M.A)(Cn,(0,N.A)(Cn),K)}var nn=Y,an=h("./node_modules/lodash-es/_cloneBuffer.js"),Q=h("./node_modules/lodash-es/_copyArray.js"),rn=h("./node_modules/lodash-es/_getSymbols.js");function q(K,Cn){return(0,M.A)(K,(0,rn.A)(K),Cn)}var yn=q,Ln=h("./node_modules/lodash-es/_arrayPush.js"),mn=h("./node_modules/lodash-es/_getPrototype.js"),Bn=h("./node_modules/lodash-es/stubArray.js"),ve=Object.getOwnPropertySymbols,sn=ve?function(K){for(var Cn=[];K;)(0,Ln.A)(Cn,(0,rn.A)(K)),K=(0,mn.A)(K);return Cn}:Bn.A,gn=sn;function Rn(K,Cn){return(0,M.A)(K,gn(K),Cn)}var xe=Rn,Z=h("./node_modules/lodash-es/_getAllKeys.js"),Mn=h("./node_modules/lodash-es/_baseGetAllKeys.js");function ln(K){return(0,Mn.A)(K,N.A,gn)}var _e=ln,te=h("./node_modules/lodash-es/_getTag.js"),Nn=Object.prototype,vn=Nn.hasOwnProperty;function ue(K){var Cn=K.length,de=new K.constructor(Cn);return Cn&&typeof K[0]=="string"&&vn.call(K,"index")&&(de.index=K.index,de.input=K.input),de}var pt=ue,ye=h("./node_modules/lodash-es/_cloneArrayBuffer.js");function rt(K,Cn){var de=Cn?(0,ye.A)(K.buffer):K.buffer;return new K.constructor(de,K.byteOffset,K.byteLength)}var it=rt,Pe=/\w*$/;function Ee(K){var Cn=new K.constructor(K.source,Pe.exec(K));return Cn.lastIndex=K.lastIndex,Cn}var Ne=Ee,re=h("./node_modules/lodash-es/_Symbol.js"),ce=re.A?re.A.prototype:void 0,Le=ce?ce.valueOf:void 0;function Ye(K){return Le?Object(Le.call(K)):{}}var we=Ye,Qe=h("./node_modules/lodash-es/_cloneTypedArray.js"),ke="[object Boolean]",Me="[object Date]",Ae="[object Map]",dn="[object Number]",w="[object RegExp]",L="[object Set]",X="[object String]",J="[object Symbol]",cn="[object ArrayBuffer]",An="[object DataView]",kn="[object Float32Array]",$n="[object Float64Array]",$e="[object Int8Array]",fe="[object Int16Array]",Ce="[object Int32Array]",Zn="[object Uint8Array]",Tt="[object Uint8ClampedArray]",xt="[object Uint16Array]",Ft="[object Uint32Array]";function Ot(K,Cn,de){var ot=K.constructor;switch(Cn){case cn:return(0,ye.A)(K);case ke:case Me:return new ot(+K);case An:return it(K,de);case kn:case $n:case $e:case fe:case Ce:case Zn:case Tt:case xt:case Ft:return(0,Qe.A)(K,de);case Ae:return new ot;case dn:case X:return new ot(K);case w:return Ne(K);case L:return new ot;case J:return we(K)}}var gt=Ot,yt=h("./node_modules/lodash-es/_initCloneObject.js"),Pt=h("./node_modules/lodash-es/isArray.js"),Ze=h("./node_modules/lodash-es/isBuffer.js"),Et=h("./node_modules/lodash-es/isObjectLike.js"),_t="[object Map]";function Lt(K){return(0,Et.A)(K)&&(0,te.A)(K)==_t}var At=Lt,st=h("./node_modules/lodash-es/_baseUnary.js"),Xe=h("./node_modules/lodash-es/_nodeUtil.js"),Ie=Xe.A&&Xe.A.isMap,Se=Ie?(0,st.A)(Ie):At,Je=Se,wt=h("./node_modules/lodash-es/isObject.js"),Mt="[object Set]";function Dt(K){return(0,Et.A)(K)&&(0,te.A)(K)==Mt}var vt=Dt,bt=Xe.A&&Xe.A.isSet,Bt=bt?(0,st.A)(bt):vt,Rt=Bt,zt=1,O=2,U=4,un="[object Arguments]",fn="[object Array]",jn="[object Boolean]",_n="[object Date]",Gn="[object Error]",Tn="[object Function]",Un="[object GeneratorFunction]",Wn="[object Map]",oe="[object Number]",ie="[object Object]",Vn="[object RegExp]",je="[object Set]",le="[object String]",pe="[object Symbol]",Te="[object WeakMap]",De="[object ArrayBuffer]",Fe="[object DataView]",at="[object Float32Array]",Be="[object Float64Array]",ut="[object Int8Array]",Yt="[object Int16Array]",rr="[object Int32Array]",Nt="[object Uint8Array]",ir="[object Uint8ClampedArray]",Ut="[object Uint16Array]",sr="[object Uint32Array]",Fn={};Fn[un]=Fn[fn]=Fn[De]=Fn[Fe]=Fn[jn]=Fn[_n]=Fn[at]=Fn[Be]=Fn[ut]=Fn[Yt]=Fn[rr]=Fn[Wn]=Fn[oe]=Fn[ie]=Fn[Vn]=Fn[je]=Fn[le]=Fn[pe]=Fn[Nt]=Fn[ir]=Fn[Ut]=Fn[sr]=!0,Fn[Gn]=Fn[Tn]=Fn[Te]=!1;function kt(K,Cn,de,ot,Ct,Ue){var he,lt=Cn&zt,dt=Cn&O,ur=Cn&U;if(de&&(he=Ct?de(K,ot,Ct,Ue):de(K)),he!==void 0)return he;if(!(0,wt.A)(K))return K;var Qt=(0,Pt.A)(K);if(Qt){if(he=pt(K),!lt)return(0,Q.A)(K,he)}else{var qe=(0,te.A)(K),$t=qe==Tn||qe==Un;if((0,Ze.A)(K))return(0,an.A)(K,lt);if(qe==ie||qe==un||$t&&!Ct){if(he=dt||$t?{}:(0,yt.A)(K),!lt)return dt?xe(K,nn(he,K)):yn(K,H(he,K))}else{if(!Fn[qe])return Ct?K:{};he=gt(K,qe,lt)}}Ue||(Ue=new g.A);var Zt=Ue.get(K);if(Zt)return Zt;Ue.set(K,he),Rt(K)?K.forEach(function(We){he.add(kt(We,Cn,de,We,K,Ue))}):Je(K)&&K.forEach(function(We,Ke){he.set(Ke,kt(We,Cn,de,Ke,K,Ue))});var Wt=ur?dt?_e:Z.A:dt?N.A:z.A,It=Qt?void 0:Wt(K);return(0,R.A)(It||K,function(We,Ke){It&&(Ke=We,We=K[Ke]),(0,F.A)(he,Ke,kt(We,Cn,de,Ke,K,Ue))}),he}var ar=kt},"./node_modules/lodash-es/_baseEach.js":function(hn,W,h){h.d(W,{A:function(){return D}});var g=h("./node_modules/lodash-es/_baseForOwn.js"),R=h("./node_modules/lodash-es/isArrayLike.js");function F(H,N){return function(Y,nn){if(Y==null)return Y;if(!(0,R.A)(Y))return H(Y,nn);for(var an=Y.length,Q=N?an:-1,rn=Object(Y);(N?Q--:++Q<an)&&nn(rn[Q],Q,rn)!==!1;);return Y}}var M=F,z=M(g.A),D=z},"./node_modules/lodash-es/_baseFindIndex.js":function(hn,W){function h(g,R,F,M){for(var z=g.length,D=F+(M?1:-1);M?D--:++D<z;)if(R(g[D],D,g))return D;return-1}W.A=h},"./node_modules/lodash-es/_baseFlatten.js":function(hn,W,h){h.d(W,{A:function(){return Y}});var g=h("./node_modules/lodash-es/_arrayPush.js"),R=h("./node_modules/lodash-es/_Symbol.js"),F=h("./node_modules/lodash-es/isArguments.js"),M=h("./node_modules/lodash-es/isArray.js"),z=R.A?R.A.isConcatSpreadable:void 0;function D(nn){return(0,M.A)(nn)||(0,F.A)(nn)||!!(z&&nn&&nn[z])}var H=D;function N(nn,an,Q,rn,q){var yn=-1,Ln=nn.length;for(Q||(Q=H),q||(q=[]);++yn<Ln;){var mn=nn[yn];an>0&&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&&D<H;)M=M[(0,R.A)(z[D++])];return D&&D==H?M:void 0}W.A=F},"./node_modules/lodash-es/_baseGetAllKeys.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_arrayPush.js"),R=h("./node_modules/lodash-es/isArray.js");function F(M,z,D){var H=z(M);return(0,R.A)(M)?H:(0,g.A)(H,D(M))}W.A=F},"./node_modules/lodash-es/_baseIteratee.js":function(hn,W,h){h.d(W,{A:function(){return zt}});var g=h("./node_modules/lodash-es/_Stack.js"),R=h("./node_modules/lodash-es/_SetCache.js");function F(O,U){for(var un=-1,fn=O==null?0:O.length;++un<fn;)if(U(O[un],un,O))return!0;return!1}var M=F,z=h("./node_modules/lodash-es/_cacheHas.js"),D=1,H=2;function N(O,U,un,fn,jn,_n){var Gn=un&D,Tn=O.length,Un=U.length;if(Tn!=Un&&!(Gn&&Un>Tn))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);++ie<Tn;){var le=O[ie],pe=U[ie];if(fn)var Te=Gn?fn(pe,le,ie,U,O,_n):fn(le,pe,ie,O,U,_n);if(Te!==void 0){if(Te)continue;Vn=!1;break}if(je){if(!M(U,function(De,Fe){if(!(0,z.A)(je,Fe)&&(le===De||jn(le,De,un,fn,_n)))return je.push(Fe)})){Vn=!1;break}}else if(!(le===pe||jn(le,pe,un,fn,_n))){Vn=!1;break}}return _n.delete(O),_n.delete(U),Vn}var Y=N,nn=h("./node_modules/lodash-es/_Symbol.js"),an=h("./node_modules/lodash-es/_Uint8Array.js"),Q=h("./node_modules/lodash-es/eq.js");function rn(O){var U=-1,un=Array(O.size);return O.forEach(function(fn,jn){un[++U]=[jn,fn]}),un}var q=rn,yn=h("./node_modules/lodash-es/_setToArray.js"),Ln=1,mn=2,Bn="[object Boolean]",ve="[object Date]",sn="[object Error]",gn="[object Map]",Rn="[object Number]",xe="[object RegExp]",Z="[object Set]",Mn="[object String]",ln="[object Symbol]",_e="[object ArrayBuffer]",te="[object DataView]",Nn=nn.A?nn.A.prototype:void 0,vn=Nn?Nn.valueOf:void 0;function ue(O,U,un,fn,jn,_n,Gn){switch(un){case te:if(O.byteLength!=U.byteLength||O.byteOffset!=U.byteOffset)return!1;O=O.buffer,U=U.buffer;case _e:return!(O.byteLength!=U.byteLength||!_n(new an.A(O),new an.A(U)));case Bn:case ve:case Rn:return(0,Q.A)(+O,+U);case sn:return O.name==U.name&&O.message==U.message;case xe:case Mn:return O==U+"";case gn:var Tn=q;case Z:var Un=fn&Ln;if(Tn||(Tn=yn.A),O.size!=U.size&&!Un)return!1;var Wn=Gn.get(O);if(Wn)return Wn==U;fn|=mn,Gn.set(O,U);var oe=Y(Tn(O),Tn(U),fn,jn,_n,Gn);return Gn.delete(O),oe;case ln:if(vn)return vn.call(O)==vn.call(U)}return!1}var pt=ue,ye=h("./node_modules/lodash-es/_getAllKeys.js"),rt=1,it=Object.prototype,Pe=it.hasOwnProperty;function Ee(O,U,un,fn,jn,_n){var Gn=un&rt,Tn=(0,ye.A)(O),Un=Tn.length,Wn=(0,ye.A)(U),oe=Wn.length;if(Un!=oe&&!Gn)return!1;for(var ie=Un;ie--;){var Vn=Tn[ie];if(!(Gn?Vn in U:Pe.call(U,Vn)))return!1}var je=_n.get(O),le=_n.get(U);if(je&&le)return je==U&&le==O;var pe=!0;_n.set(O,U),_n.set(U,O);for(var Te=Gn;++ie<Un;){Vn=Tn[ie];var De=O[Vn],Fe=U[Vn];if(fn)var at=Gn?fn(Fe,De,Vn,U,O,_n):fn(De,Fe,Vn,O,U,_n);if(!(at===void 0?De===Fe||jn(De,Fe,un,fn,_n):at)){pe=!1;break}Te||(Te=Vn=="constructor")}if(pe&&!Te){var Be=O.constructor,ut=U.constructor;Be!=ut&&"constructor"in O&&"constructor"in U&&!(typeof Be=="function"&&Be instanceof Be&&typeof ut=="function"&&ut instanceof ut)&&(pe=!1)}return _n.delete(O),_n.delete(U),pe}var Ne=Ee,re=h("./node_modules/lodash-es/_getTag.js"),ce=h("./node_modules/lodash-es/isArray.js"),Le=h("./node_modules/lodash-es/isBuffer.js"),Ye=h("./node_modules/lodash-es/isTypedArray.js"),we=1,Qe="[object Arguments]",ke="[object Array]",Me="[object Object]",Ae=Object.prototype,dn=Ae.hasOwnProperty;function w(O,U,un,fn,jn,_n){var Gn=(0,ce.A)(O),Tn=(0,ce.A)(U),Un=Gn?ke:(0,re.A)(O),Wn=Tn?ke:(0,re.A)(U);Un=Un==Qe?Me:Un,Wn=Wn==Qe?Me:Wn;var oe=Un==Me,ie=Wn==Me,Vn=Un==Wn;if(Vn&&(0,Le.A)(O)){if(!(0,Le.A)(U))return!1;Gn=!0,oe=!1}if(Vn&&!oe)return _n||(_n=new g.A),Gn||(0,Ye.A)(O)?Y(O,U,un,fn,jn,_n):pt(O,U,Un,un,fn,jn,_n);if(!(un&we)){var je=oe&&dn.call(O,"__wrapped__"),le=ie&&dn.call(U,"__wrapped__");if(je||le){var pe=je?O.value():O,Te=le?U.value():U;return _n||(_n=new g.A),jn(pe,Te,un,fn,_n)}}return Vn?(_n||(_n=new g.A),Ne(O,U,un,fn,jn,_n)):!1}var L=w,X=h("./node_modules/lodash-es/isObjectLike.js");function J(O,U,un,fn,jn){return O===U?!0:O==null||U==null||!(0,X.A)(O)&&!(0,X.A)(U)?O!==O&&U!==U:L(O,U,un,fn,J,jn)}var cn=J,An=1,kn=2;function $n(O,U,un,fn){var jn=un.length,_n=jn,Gn=!fn;if(O==null)return!_n;for(O=Object(O);jn--;){var Tn=un[jn];if(Gn&&Tn[2]?Tn[1]!==O[Tn[0]]:!(Tn[0]in O))return!1}for(;++jn<_n;){Tn=un[jn];var Un=Tn[0],Wn=O[Un],oe=Tn[1];if(Gn&&Tn[2]){if(Wn===void 0&&!(Un in O))return!1}else{var ie=new g.A;if(fn)var Vn=fn(Wn,oe,Un,O,U,ie);if(!(Vn===void 0?cn(oe,Wn,An|kn,fn,ie):Vn))return!1}}return!0}var $e=$n,fe=h("./node_modules/lodash-es/isObject.js");function Ce(O){return O===O&&!(0,fe.A)(O)}var Zn=Ce,Tt=h("./node_modules/lodash-es/keys.js");function xt(O){for(var U=(0,Tt.A)(O),un=U.length;un--;){var fn=U[un],jn=O[fn];U[un]=[fn,jn,Zn(jn)]}return U}var Ft=xt;function Ot(O,U){return function(un){return un==null?!1:un[O]===U&&(U!==void 0||O in Object(un))}}var gt=Ot;function yt(O){var U=Ft(O);return U.length==1&&U[0][2]?gt(U[0][0],U[0][1]):function(un){return un===O||$e(un,O,U)}}var Pt=yt,Ze=h("./node_modules/lodash-es/_baseGet.js");function Et(O,U,un){var fn=O==null?void 0:(0,Ze.A)(O,U);return fn===void 0?un:fn}var _t=Et,Lt=h("./node_modules/lodash-es/hasIn.js"),At=h("./node_modules/lodash-es/_isKey.js"),st=h("./node_modules/lodash-es/_toKey.js"),Xe=1,Ie=2;function Se(O,U){return(0,At.A)(O)&&Zn(U)?gt((0,st.A)(O),U):function(un){var fn=_t(un,O);return fn===void 0&&fn===U?(0,Lt.A)(un,O):cn(U,fn,Xe|Ie)}}var Je=Se,wt=h("./node_modules/lodash-es/identity.js"),Mt=h("./node_modules/lodash-es/_baseProperty.js");function Dt(O){return function(U){return(0,Ze.A)(U,O)}}var vt=Dt;function bt(O){return(0,At.A)(O)?(0,Mt.A)((0,st.A)(O)):vt(O)}var Bt=bt;function Rt(O){return typeof O=="function"?O:O==null?wt.A:typeof O=="object"?(0,ce.A)(O)?Je(O[0],O[1]):Pt(O):Bt(O)}var zt=Rt},"./node_modules/lodash-es/_baseMap.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_baseEach.js"),R=h("./node_modules/lodash-es/isArrayLike.js");function F(M,z){var D=-1,H=(0,R.A)(M)?Array(M.length):[];return(0,g.A)(M,function(N,Y,nn){H[++D]=z(N,Y,nn)}),H}W.A=F},"./node_modules/lodash-es/_baseProperty.js":function(hn,W){function h(g){return function(R){return R?.[g]}}W.A=h},"./node_modules/lodash-es/_cacheHas.js":function(hn,W){function h(g,R){return g.has(R)}W.A=h},"./node_modules/lodash-es/_castFunction.js":function(hn,W,h){var g=h("./node_modules/lodash-es/identity.js");function R(F){return typeof F=="function"?F:g.A}W.A=R},"./node_modules/lodash-es/_castPath.js":function(hn,W,h){h.d(W,{A:function(){return rn}});var g=h("./node_modules/lodash-es/isArray.js"),R=h("./node_modules/lodash-es/_isKey.js"),F=h("./node_modules/lodash-es/memoize.js"),M=500;function z(q){var yn=(0,F.A)(q,function(mn){return Ln.size===M&&Ln.clear(),mn}),Ln=yn.cache;return yn}var D=z,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N=/\\(\\)?/g,Y=D(function(q){var yn=[];return q.charCodeAt(0)===46&&yn.push(""),q.replace(H,function(Ln,mn,Bn,ve){yn.push(Bn?ve.replace(N,"$1"):mn||Ln)}),yn}),nn=Y,an=h("./node_modules/lodash-es/toString.js");function Q(q,yn){return(0,g.A)(q)?q:(0,R.A)(q,yn)?[q]:nn((0,an.A)(q))}var rn=Q},"./node_modules/lodash-es/_getAllKeys.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_baseGetAllKeys.js"),R=h("./node_modules/lodash-es/_getSymbols.js"),F=h("./node_modules/lodash-es/keys.js");function M(z){return(0,g.A)(z,F.A,R.A)}W.A=M},"./node_modules/lodash-es/_getSymbols.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_arrayFilter.js"),R=h("./node_modules/lodash-es/stubArray.js"),F=Object.prototype,M=F.propertyIsEnumerable,z=Object.getOwnPropertySymbols,D=z?function(H){return H==null?[]:(H=Object(H),(0,g.A)(z(H),function(N){return M.call(H,N)}))}:R.A;W.A=D},"./node_modules/lodash-es/_hasPath.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_castPath.js"),R=h("./node_modules/lodash-es/isArguments.js"),F=h("./node_modules/lodash-es/isArray.js"),M=h("./node_modules/lodash-es/_isIndex.js"),z=h("./node_modules/lodash-es/isLength.js"),D=h("./node_modules/lodash-es/_toKey.js");function H(N,Y,nn){Y=(0,g.A)(Y,N);for(var an=-1,Q=Y.length,rn=!1;++an<Q;){var q=(0,D.A)(Y[an]);if(!(rn=N!=null&&nn(N,q)))break;N=N[q]}return rn||++an!=Q?rn:(Q=N==null?0:N.length,!!Q&&(0,z.A)(Q)&&(0,M.A)(q,Q)&&((0,F.A)(N)||(0,R.A)(N)))}W.A=H},"./node_modules/lodash-es/_isKey.js":function(hn,W,h){var g=h("./node_modules/lodash-es/isArray.js"),R=h("./node_modules/lodash-es/isSymbol.js"),F=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/;function z(D,H){if((0,g.A)(D))return!1;var N=typeof D;return N=="number"||N=="symbol"||N=="boolean"||D==null||(0,R.A)(D)?!0:M.test(D)||!F.test(D)||H!=null&&D in Object(H)}W.A=z},"./node_modules/lodash-es/_setToArray.js":function(hn,W){function h(g){var R=-1,F=Array(g.size);return g.forEach(function(M){F[++R]=M}),F}W.A=h},"./node_modules/lodash-es/_toKey.js":function(hn,W,h){var g=h("./node_modules/lodash-es/isSymbol.js"),R=1/0;function F(M){if(typeof M=="string"||(0,g.A)(M))return M;var z=M+"";return z=="0"&&1/M==-R?"-0":z}W.A=F},"./node_modules/lodash-es/defaults.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_baseRest.js"),R=h("./node_modules/lodash-es/eq.js"),F=h("./node_modules/lodash-es/_isIterateeCall.js"),M=h("./node_modules/lodash-es/keysIn.js"),z=Object.prototype,D=z.hasOwnProperty,H=(0,g.A)(function(N,Y){N=Object(N);var nn=-1,an=Y.length,Q=an>2?Y[2]:void 0;for(Q&&(0,F.A)(Y[0],Y[1],Q)&&(an=1);++nn<an;)for(var rn=Y[nn],q=(0,M.A)(rn),yn=-1,Ln=q.length;++yn<Ln;){var mn=q[yn],Bn=N[mn];(Bn===void 0||(0,R.A)(Bn,z[mn])&&!D.call(N,mn))&&(N[mn]=rn[mn])}return N});W.A=H},"./node_modules/lodash-es/filter.js":function(hn,W,h){h.d(W,{A:function(){return N}});var g=h("./node_modules/lodash-es/_arrayFilter.js"),R=h("./node_modules/lodash-es/_baseEach.js");function F(Y,nn){var an=[];return(0,R.A)(Y,function(Q,rn,q){nn(Q,rn,q)&&an.push(Q)}),an}var M=F,z=h("./node_modules/lodash-es/_baseIteratee.js"),D=h("./node_modules/lodash-es/isArray.js");function H(Y,nn){var an=(0,D.A)(Y)?g.A:M;return an(Y,(0,z.A)(nn,3))}var N=H},"./node_modules/lodash-es/flatten.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_baseFlatten.js");function R(F){var M=F==null?0:F.length;return M?(0,g.A)(F,1):[]}W.A=R},"./node_modules/lodash-es/forEach.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_arrayEach.js"),R=h("./node_modules/lodash-es/_baseEach.js"),F=h("./node_modules/lodash-es/_castFunction.js"),M=h("./node_modules/lodash-es/isArray.js");function z(D,H){var N=(0,M.A)(D)?g.A:R.A;return N(D,(0,F.A)(H))}W.A=z},"./node_modules/lodash-es/has.js":function(hn,W,h){h.d(W,{A:function(){return H}});var g=Object.prototype,R=g.hasOwnProperty;function F(N,Y){return N!=null&&R.call(N,Y)}var M=F,z=h("./node_modules/lodash-es/_hasPath.js");function D(N,Y){return N!=null&&(0,z.A)(N,Y,M)}var H=D},"./node_modules/lodash-es/hasIn.js":function(hn,W,h){h.d(W,{A:function(){return z}});function g(D,H){return D!=null&&H in Object(D)}var R=g,F=h("./node_modules/lodash-es/_hasPath.js");function M(D,H){return D!=null&&(0,F.A)(D,H,R)}var z=M},"./node_modules/lodash-es/isSymbol.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_baseGetTag.js"),R=h("./node_modules/lodash-es/isObjectLike.js"),F="[object Symbol]";function M(z){return typeof z=="symbol"||(0,R.A)(z)&&(0,g.A)(z)==F}W.A=M},"./node_modules/lodash-es/isUndefined.js":function(hn,W){function h(g){return g===void 0}W.A=h},"./node_modules/lodash-es/keys.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_arrayLikeKeys.js"),R=h("./node_modules/lodash-es/_baseKeys.js"),F=h("./node_modules/lodash-es/isArrayLike.js");function M(z){return(0,F.A)(z)?(0,g.A)(z):(0,R.A)(z)}W.A=M},"./node_modules/lodash-es/map.js":function(hn,W,h){var g=h("./node_modules/lodash-es/_arrayMap.js"),R=h("./node_modules/lodash-es/_baseIteratee.js"),F=h("./node_modules/lodash-es/_baseMap.js"),M=h("./node_modules/lodash-es/isArray.js");function z(D,H){var N=(0,M.A)(D)?g.A:F.A;return N(D,(0,R.A)(H,3))}W.A=z},"./node_modules/lodash-es/pick.js":function(hn,W,h){h.d(W,{A:function(){return sn}});var g=h("./node_modules/lodash-es/_baseGet.js"),R=h("./node_modules/lodash-es/_assignValue.js"),F=h("./node_modules/lodash-es/_castPath.js"),M=h("./node_modules/lodash-es/_isIndex.js"),z=h("./node_modules/lodash-es/isObject.js"),D=h("./node_modules/lodash-es/_toKey.js");function H(gn,Rn,xe,Z){if(!(0,z.A)(gn))return gn;Rn=(0,F.A)(Rn,gn);for(var Mn=-1,ln=Rn.length,_e=ln-1,te=gn;te!=null&&++Mn<ln;){var Nn=(0,D.A)(Rn[Mn]),vn=xe;if(Nn==="__proto__"||Nn==="constructor"||Nn==="prototype")return gn;if(Mn!=_e){var ue=te[Nn];vn=Z?Z(ue,Nn,te):void 0,vn===void 0&&(vn=(0,z.A)(ue)?ue:(0,M.A)(Rn[Mn+1])?[]:{})}(0,R.A)(te,Nn,vn),te=te[Nn]}return gn}var N=H;function Y(gn,Rn,xe){for(var Z=-1,Mn=Rn.length,ln={};++Z<Mn;){var _e=Rn[Z],te=(0,g.A)(gn,_e);xe(te,_e)&&N(ln,(0,F.A)(_e,gn),te)}return ln}var nn=Y,an=h("./node_modules/lodash-es/hasIn.js");function Q(gn,Rn){return nn(gn,Rn,function(xe,Z){return(0,an.A)(gn,Z)})}var rn=Q,q=h("./node_modules/lodash-es/flatten.js"),yn=h("./node_modules/lodash-es/_overRest.js"),Ln=h("./node_modules/lodash-es/_setToString.js");function mn(gn){return(0,Ln.A)((0,yn.A)(gn,void 0,q.A),gn+"")}var Bn=mn,ve=Bn(function(gn,Rn){return gn==null?{}:rn(gn,Rn)}),sn=ve},"./node_modules/lodash-es/range.js":function(hn,W,h){h.d(W,{A:function(){return nn}});var g=Math.ceil,R=Math.max;function F(an,Q,rn,q){for(var yn=-1,Ln=R(g((Q-an)/(rn||1)),0),mn=Array(Ln);Ln--;)mn[q?Ln:++yn]=an,an+=rn;return mn}var M=F,z=h("./node_modules/lodash-es/_isIterateeCall.js"),D=h("./node_modules/lodash-es/toFinite.js");function H(an){return function(Q,rn,q){return q&&typeof q!="number"&&(0,z.A)(Q,rn,q)&&(rn=q=void 0),Q=(0,D.A)(Q),rn===void 0?(rn=Q,Q=0):rn=(0,D.A)(rn),q=q===void 0?Q<rn?1:-1:(0,D.A)(q),M(Q,rn,q,an)}}var N=H,Y=N(),nn=Y},"./node_modules/lodash-es/reduce.js":function(hn,W,h){h.d(W,{A:function(){return Y}});function g(nn,an,Q,rn){var q=-1,yn=nn==null?0:nn.length;for(rn&&yn&&(Q=nn[++q]);++q<yn;)Q=an(Q,nn[q],q,nn);return Q}var R=g,F=h("./node_modules/lodash-es/_baseEach.js"),M=h("./node_modules/lodash-es/_baseIteratee.js");function z(nn,an,Q,rn,q){return q(nn,function(yn,Ln,mn){Q=rn?(rn=!1,yn):an(Q,yn,Ln,mn)}),Q}var D=z,H=h("./node_modules/lodash-es/isArray.js");function N(nn,an,Q){var rn=(0,H.A)(nn)?R:D,q=arguments.length<3;return rn(nn,(0,M.A)(an,4),Q,q,F.A)}var Y=N},"./node_modules/lodash-es/stubArray.js":function(hn,W){function h(){return[]}W.A=h},"./node_modules/lodash-es/toFinite.js":function(hn,W,h){h.d(W,{A:function(){return ve}});var g=/\s/;function R(sn){for(var gn=sn.length;gn--&&g.test(sn.charAt(gn)););return gn}var F=R,M=/^\s+/;function z(sn){return sn&&sn.slice(0,F(sn)+1).replace(M,"")}var D=z,H=h("./node_modules/lodash-es/isObject.js"),N=h("./node_modules/lodash-es/isSymbol.js"),Y=NaN,nn=/^[-+]0x[0-9a-f]+$/i,an=/^0b[01]+$/i,Q=/^0o[0-7]+$/i,rn=parseInt;function q(sn){if(typeof sn=="number")return sn;if((0,N.A)(sn))return Y;if((0,H.A)(sn)){var gn=typeof sn.valueOf=="function"?sn.valueOf():sn;sn=(0,H.A)(gn)?gn+"":gn}if(typeof sn!="string")return sn===0?sn:+sn;sn=D(sn);var Rn=an.test(sn);return Rn||Q.test(sn)?rn(sn.slice(2),Rn?2:8):nn.test(sn)?Y:+sn}var yn=q,Ln=1/0,mn=17976931348623157e292;function Bn(sn){if(!sn)return sn===0?sn:0;if(sn=yn(sn),sn===Ln||sn===-Ln){var gn=sn<0?-1:1;return gn*mn}return sn===sn?sn:0}var ve=Bn},"./node_modules/lodash-es/toString.js":function(hn,W,h){h.d(W,{A:function(){return an}});var g=h("./node_modules/lodash-es/_Symbol.js"),R=h("./node_modules/lodash-es/_arrayMap.js"),F=h("./node_modules/lodash-es/isArray.js"),M=h("./node_modules/lodash-es/isSymbol.js"),z=1/0,D=g.A?g.A.prototype:void 0,H=D?D.toString:void 0;function N(Q){if(typeof Q=="string")return Q;if((0,F.A)(Q))return(0,R.A)(Q,N)+"";if((0,M.A)(Q))return H?H.call(Q):"";var rn=Q+"";return rn=="0"&&1/Q==-z?"-0":rn}var Y=N;function nn(Q){return Q==null?"":Y(Q)}var an=nn},"./node_modules/lodash-es/uniqueId.js":function(hn,W,h){var g=h("./node_modules/lodash-es/toString.js"),R=0;function F(M){var z=++R;return(0,g.A)(M)+z}W.A=F},"./node_modules/lodash-es/values.js":function(hn,W,h){h.d(W,{A:function(){return D}});var g=h("./node_modules/lodash-es/_arrayMap.js");function R(H,N){return(0,g.A)(N,function(Y){return H[Y]})}var F=R,M=h("./node_modules/lodash-es/keys.js");function z(H){return H==null?[]:F(H,(0,M.A)(H))}var D=z},"./node_modules/mermaid/dist/createText-6b48ae7d.js":function(hn,W,h){h.d(W,{a:function(){return si},c:function(){return ri}});var g={};h.r(g),h.d(g,{attentionMarkers:function(){return Hr},contentInitial:function(){return zr},disable:function(){return Gr},document:function(){return Rr},flow:function(){return Nr},flowInitial:function(){return Ar},insideSpan:function(){return Kr},string:function(){return Ur},text:function(){return Wr}});var R=h("./node_modules/mermaid/dist/mermaid-f47111a7.js");const F={};function M(n,a){const i=a||F,s=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,c=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return z(n,s,c)}function z(n,a,i){if(H(n)){if("value"in n)return n.type==="html"&&!i?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return D(n.children,a,i)}return Array.isArray(n)?D(n,a,i):""}function D(n,a,i){const s=[];let c=-1;for(;++c<n.length;)s[c]=z(n[c],a,i);return s.join("")}function H(n){return!!(n&&typeof n=="object")}function N(n,a,i,s){const c=n.length;let l=0,d;if(a<0?a=-a>c?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);l<s.length;)d=s.slice(l,l+1e4),d.unshift(a,0),n.splice(...d),l+=1e4,a+=1e4}function Y(n,a){return n.length>0?(N(n,n.length,0,a),n):a}const nn={}.hasOwnProperty;function an(n){const a={};let i=-1;for(;++i<n.length;)Q(a,n[i]);return a}function Q(n,a){let i;for(i in a){const c=(nn.call(n,i)?n[i]:void 0)||(n[i]={}),l=a[i];let d;if(l)for(d in l){nn.call(c,d)||(c[d]=[]);const p=l[d];rn(c[d],Array.isArray(p)?p:p?[p]:[])}}}function rn(n,a){let i=-1;const s=[];for(;++i<a.length;)(a[i].add==="after"?n:s).push(a[i]);N(n,0,0,s)}function q(n){const a={};let i=-1;for(;++i<n.length;)yn(a,n[i]);return a}function yn(n,a){let i;for(i in a){const c=(nn.call(n,i)?n[i]:void 0)||(n[i]={}),l=a[i];let d;if(l)for(d in l)c[d]=l[d]}}const Ln=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,mn=Nn(/[A-Za-z]/),Bn=Nn(/[\dA-Za-z]/),ve=Nn(/[#-'*+\--9=?A-Z^-~]/);function sn(n){return n!==null&&(n<32||n===127)}const gn=Nn(/\d/),Rn=Nn(/[\dA-Fa-f]/),xe=Nn(/[!-/:-@[-`{-~]/);function Z(n){return n!==null&&n<-2}function Mn(n){return n!==null&&(n<0||n===32)}function ln(n){return n===-2||n===-1||n===32}const _e=Nn(Ln),te=Nn(/\s/);function Nn(n){return a;function a(i){return i!==null&&n.test(String.fromCharCode(i))}}function vn(n,a,i,s){const c=s?s-1:Number.POSITIVE_INFINITY;let l=0;return d;function d(I){return ln(I)?(n.enter(i),p(I)):a(I)}function p(I){return ln(I)&&l++<c?(n.consume(I),p):(n.exit(i),a(I))}}const ue={tokenize:pt};function pt(n){const a=n.attempt(this.parser.constructs.contentInitial,s,c);let i;return a;function s(p){if(p===null){n.consume(p);return}return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),vn(n,a,"linePrefix")}function c(p){return n.enter("paragraph"),l(p)}function l(p){const I=n.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=I),i=I,d(p)}function d(p){if(p===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(p);return}return Z(p)?(n.consume(p),n.exit("chunkText"),l):(n.consume(p),d)}}const ye={tokenize:it},rt={tokenize:Pe};function it(n){const a=this,i=[];let s=0,c,l,d;return p;function p(en){if(s<i.length){const Yn=i[s];return a.containerState=Yn[1],n.attempt(Yn[0].continuation,I,E)(en)}return E(en)}function I(en){if(s++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,c&&Xn();const Yn=a.events.length;let Qn=Yn,B;for(;Qn--;)if(a.events[Qn][0]==="exit"&&a.events[Qn][1].type==="chunkFlow"){B=a.events[Qn][1].end;break}$(s);let zn=Yn;for(;zn<a.events.length;)a.events[zn][1].end=Object.assign({},B),zn++;return N(a.events,Qn+1,0,a.events.slice(Yn)),a.events.length=zn,E(en)}return p(en)}function E(en){if(s===i.length){if(!c)return k(en);if(c.currentConstruct&&c.currentConstruct.concrete)return In(en);a.interrupt=!!(c.currentConstruct&&!c._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(rt,b,j)(en)}function b(en){return c&&Xn(),$(s),k(en)}function j(en){return a.parser.lazy[a.now().line]=s!==i.length,d=a.now().offset,In(en)}function k(en){return a.containerState={},n.attempt(rt,x,In)(en)}function x(en){return s++,i.push([a.currentConstruct,a.containerState]),k(en)}function In(en){if(en===null){c&&Xn(),$(0),n.consume(en);return}return c=c||a.parser.flow(a.now()),n.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:c}),Sn(en)}function Sn(en){if(en===null){Kn(n.exit("chunkFlow"),!0),$(0),n.consume(en);return}return Z(en)?(n.consume(en),Kn(n.exit("chunkFlow")),s=0,a.interrupt=void 0,p):(n.consume(en),Sn)}function Kn(en,Yn){const Qn=a.sliceStream(en);if(Yn&&Qn.push(null),en.previous=l,l&&(l.next=en),l=en,c.defineSkip(en.start),c.write(Qn),a.parser.lazy[en.start.line]){let B=c.events.length;for(;B--;)if(c.events[B][1].start.offset<d&&(!c.events[B][1].end||c.events[B][1].end.offset>d))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;B<a.events.length;)a.events[B][1].end=Object.assign({},me),B++;N(a.events,ee+1,0,a.events.slice(zn)),a.events.length=B}}function $(en){let Yn=i.length;for(;Yn-- >en;){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<n.length;){for(;i in a;)i=a[i];if(s=n[i],i&&s[1].type==="chunkFlow"&&n[i-1][1].type==="listItemPrefix"&&(I=s[1]._tokenizer.events,l=0,l<I.length&&I[l][1].type==="lineEndingBlank"&&(l+=2),l<I.length&&I[l][1].type==="content"))for(;++l<I.length&&I[l][1].type!=="content";)I[l][1].type==="chunkText"&&(I[l][1]._isInFirstContentOfListItem=!0,l++);if(s[0]==="enter")s[1].contentType&&(Object.assign(a,ce(n,i)),i=a[i],E=!0);else if(s[1]._container){for(l=i,c=void 0;l--&&(d=n[l],d[1].type==="lineEnding"||d[1].type==="lineEndingBlank");)d[0]==="enter"&&(c&&(n[c][1].type="lineEndingBlank"),d[1].type="lineEnding",c=l);c&&(s[1].end=Object.assign({},n[c][1].start),p=n.slice(c,i),p.unshift(s),N(n,c,i-c+1,p))}}return!E}function ce(n,a){const i=n[a][1],s=n[a][2];let c=a-1;const l=[],d=i._tokenizer||s.parser[i.contentType](i.start),p=d.events,I=[],E={};let b,j,k=-1,x=i,In=0,Sn=0;const Kn=[Sn];for(;x;){for(;n[++c][1]!==x;);l.push(c),x._tokenizer||(b=s.sliceStream(x),x.next||b.push(null),j&&d.defineSkip(x.start),x._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(b),x._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),j=x,x=x.next}for(x=i;++k<p.length;)p[k][0]==="exit"&&p[k-1][0]==="enter"&&p[k][1].type===p[k-1][1].type&&p[k][1].start.line!==p[k][1].end.line&&(Sn=k+1,Kn.push(Sn),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(d.events=[],x?(x._tokenizer=void 0,x.previous=void 0):Kn.pop(),k=Kn.length;k--;){const $=p.slice(Kn[k],Kn[k+1]),Xn=l.pop();I.unshift([Xn,Xn+$.length-1]),N(n,Xn,2,$)}for(k=-1;++k<I.length;)E[In+I[k][0]]=In+I[k][1],In+=I[k][1]-I[k][0]-1;return E}const Le={tokenize:Qe,resolve:we},Ye={tokenize:ke,partial:!0};function we(n){return re(n),n}function Qe(n,a){let i;return s;function s(p){return n.enter("content"),i=n.enter("chunkContent",{contentType:"content"}),c(p)}function c(p){return p===null?l(p):Z(p)?n.check(Ye,d,l)(p):(n.consume(p),c)}function l(p){return n.exit("chunkContent"),n.exit("content"),a(p)}function d(p){return n.consume(p),n.exit("chunkContent"),i.next=n.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,c}}function ke(n,a,i){const s=this;return c;function c(d){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),vn(n,l,"linePrefix")}function l(d){if(d===null||Z(d))return i(d);const p=s.events[s.events.length-1];return!s.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=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<j.length;){const x=j[k];if(!x.previous||x.previous.call(s,s.previous))return!0}return!1}}}function J(n){return a;function a(i,s){let c=-1,l;for(;++c<=i.length;)l===void 0?i[c]&&i[c][1].type==="data"&&(l=c,c++):(!i[c]||i[c][1].type!=="data")&&(c!==l+2&&(i[l][1].end=i[c-1][1].end,i.splice(l+2,c-l-2),c=l+2),l=void 0);return n?n(i,s):i}}function cn(n,a){let i=0;for(;++i<=n.length;)if((i===n.length||n[i][1].type==="lineEnding")&&n[i-1][1].type==="data"){const s=n[i-1][1],c=a.sliceStream(s);let l=c.length,d=-1,p=0,I;for(;l--;){const E=c[l];if(typeof E=="string"){for(d=E.length;E.charCodeAt(d-1)===32;)p++,d--;if(d)break;d=-1}else if(E===-2)I=!0,p++;else if(E!==-1){l++;break}}if(p){const E={type:i===n.length||I||p<2?"lineSuffix":"hardBreakTrailing",start:{line:s.end.line,column:s.end.column-p,offset:s.end.offset-p,_index:s.start._index+l,_bufferIndex:l?d:s.start._bufferIndex+d},end:Object.assign({},s.end)};s.end=Object.assign({},E.start),s.start.offset===s.end.offset?Object.assign(s,E):(n.splice(i,0,["enter",E,a],["exit",E,a]),i+=2)}i++}return n}function An(n,a,i){const s=[];let c=-1;for(;++c<n.length;){const l=n[c].resolveAll;l&&!s.includes(l)&&(a=l(a,i),s.push(l))}return a}function kn(n,a,i){let s=Object.assign(i?Object.assign({},i):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const c={},l=[];let d=[],p=[],I=!0;const E={consume:Yn,enter:Qn,exit:B,attempt:qn(zn),check:qn(ee),interrupt:qn(ee,{interrupt:!0})},b={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:Sn,sliceSerialize:In,now:Kn,defineSkip:$,write:x};let j=a.tokenize.call(b,E),k;return a.resolveAll&&l.push(a),b;function x(tn){return d=Y(d,tn),Xn(),d[d.length-1]!==null?[]:(me(a,0),b.events=An(l,b.events,b),b.events)}function In(tn,xn){return $e(Sn(tn),xn)}function Sn(tn){return $n(d,tn)}function Kn(){const{line:tn,column:xn,offset:bn,_index:Jn,_bufferIndex:se}=s;return{line:tn,column:xn,offset:bn,_index:Jn,_bufferIndex:se}}function $(tn){c[tn.line]=tn.column,wn()}function Xn(){let tn;for(;s._index<d.length;){const xn=d[s._index];if(typeof xn=="string")for(tn=s._index,s._bufferIndex<0&&(s._bufferIndex=0);s._index===tn&&s._bufferIndex<xn.length;)en(xn.charCodeAt(s._bufferIndex));else en(xn)}}function en(tn){I=void 0,k=tn,j=j(tn)}function Yn(tn){Z(tn)?(s.line++,s.column=1,s.offset+=tn===-3?2:1,wn()):tn!==-1&&(s.column++,s.offset++),s._bufferIndex<0?s._index++:(s._bufferIndex++,s._bufferIndex===d[s._index].length&&(s._bufferIndex=-1,s._index++)),b.previous=tn,I=!0}function Qn(tn,xn){const bn=xn||{};return bn.type=tn,bn.start=Kn(),b.events.push(["enter",bn,b]),p.push(bn),bn}function B(tn){const xn=p.pop();return xn.end=Kn(),b.events.push(["exit",xn,b]),xn}function zn(tn,xn){me(tn,xn.from)}function ee(tn,xn){xn.restore()}function qn(tn,xn){return bn;function bn(Jn,se,Re){let Ge,A,Oe,Ve;return Array.isArray(Jn)?be(Jn):"tokenize"in Jn?be([Jn]):v(Jn);function v(ae){return Ht;function Ht(nt){const jt=nt!==null&&ae[nt],ht=nt!==null&&ae.null,cr=[...Array.isArray(jt)?jt:jt?[jt]:[],...Array.isArray(ht)?ht:ht?[ht]:[]];return be(cr)(nt)}}function be(ae){return Ge=ae,A=0,ae.length===0?Re:St(ae[A])}function St(ae){return Ht;function Ht(nt){return Ve=Hn(),Oe=ae,ae.partial||(b.currentConstruct=ae),ae.name&&b.parser.constructs.disable.null.includes(ae.name)?Kt(nt):ae.tokenize.call(xn?Object.assign(Object.create(b),xn):b,E,tr,Kt)(nt)}}function tr(ae){return I=!0,tn(Oe,Ve),se}function Kt(ae){return I=!0,Ve.restore(),++A<Ge.length?St(Ge[A]):Re}}}function me(tn,xn){tn.resolveAll&&!l.includes(tn)&&l.push(tn),tn.resolve&&N(b.events,xn,b.events.length-xn,tn.resolve(b.events.slice(xn),b)),tn.resolveTo&&(b.events=tn.resolveTo(b.events,b))}function Hn(){const tn=Kn(),xn=b.previous,bn=b.currentConstruct,Jn=b.events.length,se=Array.from(p);return{restore:Re,from:Jn};function Re(){s=tn,b.previous=xn,b.currentConstruct=bn,b.events.length=Jn,p=se,wn()}}function wn(){s.line in c&&s.column<2&&(s.column=c[s.line],s.offset+=c[s.line]-1)}}function $n(n,a){const i=a.start._index,s=a.start._bufferIndex,c=a.end._index,l=a.end._bufferIndex;let d;if(i===c)d=[n[i].slice(s,l)];else{if(d=n.slice(i,c),s>-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<n.length;){const l=n[i];let d;if(typeof l=="string")d=l;else switch(l){case-5:{d="\r";break}case-4:{d=`
`;break}case-3:{d=`\r
`;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&c)continue;d=" ";break}default:d=String.fromCharCode(l)}c=l===-2,s.push(d)}return s.join("")}const fe={name:"thematicBreak",tokenize:Ce};function Ce(n,a,i){let s=0,c;return l;function l(E){return n.enter("thematicBreak"),d(E)}function d(E){return c=E,p(E)}function p(E){return E===c?(n.enter("thematicBreakSequence"),I(E)):s>=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($)):b<E&&$===40?(n.consume($),b++,Sn):$===41?(n.consume($),b--,Sn):$===null||$===32||$===40||sn($)?i($):(n.consume($),$===92?Kn:Sn)}function Kn($){return $===40||$===41||$===92?(n.consume($),Sn):Sn($)}}function st(n,a,i,s,c,l){const d=this;let p=0,I;return E;function E(x){return n.enter(s),n.enter(c),n.consume(x),n.exit(c),n.enter(l),b}function b(x){return p>999||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++<l?(n.consume(j),b):i(j)}}const Yt={name:"characterEscape",tokenize:rr};function rr(n,a,i){return s;function s(l){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(l),n.exit("escapeMarker"),c}function c(l){return xe(l)?(n.enter("characterEscapeValue"),n.consume(l),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(l)}}const Nt={name:"lineEnding",tokenize:ir};function ir(n,a){return i;function i(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),vn(n,a,"linePrefix")}}const Ut={name:"labelEnd",tokenize:Cn,resolveTo:K,resolveAll:ar},sr={tokenize:de},Fn={tokenize:ot},kt={tokenize:Ct};function ar(n){let a=-1;for(;++a<n.length;){const i=n[a][1];(i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd")&&(n.splice(a+1,i.type==="labelImage"?4:2),i.type="data",a++)}return n}function K(n,a){let i=n.length,s=0,c,l,d,p;for(;i--;)if(c=n[i][1],l){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;n[i][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(d){if(n[i][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(l=i,c.type!=="labelLink")){s=2;break}}else c.type==="labelEnd"&&(d=i);const I={type:n[l][1].type==="labelLink"?"link":"image",start:Object.assign({},n[l][1].start),end:Object.assign({},n[n.length-1][1].end)},E={type:"label",start:Object.assign({},n[l][1].start),end:Object.assign({},n[d][1].end)},b={type:"labelText",start:Object.assign({},n[l+s+2][1].end),end:Object.assign({},n[d-2][1].start)};return p=[["enter",I,a],["enter",E,a]],p=Y(p,n.slice(l+1,l+s+3)),p=Y(p,[["enter",b,a]]),p=Y(p,An(a.parser.constructs.insideSpan.null,n.slice(l+s+4,d-3),a)),p=Y(p,[["exit",b,a],n[d-2],n[d-1],["exit",E,a]]),p=Y(p,n.slice(d+1)),p=Y(p,[["exit",I,a]]),N(n,l,n.length,p),n}function Cn(n,a,i){const s=this;let c=s.events.length,l,d;for(;c--;)if((s.events[c][1].type==="labelImage"||s.events[c][1].type==="labelLink")&&!s.events[c][1]._balanced){l=s.events[c][1];break}return p;function p(k){return l?l._inactive?j(k):(d=s.parser.defined.includes(Se(s.sliceSerialize({start:l.end,end:s.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(k),n.exit("labelMarker"),n.exit("labelEnd"),I):i(k)}function I(k){return k===40?n.attempt(sr,b,d?b:j)(k):k===91?n.attempt(Fn,b,d?E:j)(k):d?b(k):j(k)}function E(k){return n.attempt(kt,b,j)(k)}function b(k){return a(k)}function j(k){return l._balanced=!0,i(k)}}function de(n,a,i){return s;function s(j){return n.enter("resource"),n.enter("resourceMarker"),n.consume(j),n.exit("resourceMarker"),c}function c(j){return Mn(j)?Ie(n,l)(j):l(j)}function l(j){return j===41?b(j):At(n,d,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(j)}function d(j){return Mn(j)?Ie(n,I)(j):b(j)}function p(j){return i(j)}function I(j){return j===34||j===39||j===40?Xe(n,E,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(j):b(j)}function E(j){return Mn(j)?Ie(n,b)(j):b(j)}function b(j){return j===41?(n.enter("resourceMarker"),n.consume(j),n.exit("resourceMarker"),n.exit("resource"),a):i(j)}}function ot(n,a,i){const s=this;return c;function c(p){return st.call(s,n,l,d,"reference","referenceMarker","referenceString")(p)}function l(p){return s.parser.defined.includes(Se(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?a(p):i(p)}function d(p){return i(p)}}function Ct(n,a,i){return s;function s(l){return n.enter("reference"),n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),c}function c(l){return l===93?(n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),n.exit("reference"),a):i(l)}}const Ue={name:"labelStartImage",tokenize:he,resolveAll:Ut.resolveAll};function he(n,a,i){const s=this;return c;function c(p){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(p),n.exit("labelImageMarker"),l}function l(p){return p===91?(n.enter("labelMarker"),n.consume(p),n.exit("labelMarker"),n.exit("labelImage"),d):i(p)}function d(p){return p===94&&"_hiddenFootnoteSupport"in s.parser.constructs?i(p):a(p)}}function lt(n){if(n===null||Mn(n)||te(n))return 1;if(_e(n))return 2}const dt={name:"attention",tokenize:Qt,resolveAll:ur};function ur(n,a){let i=-1,s,c,l,d,p,I,E,b;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(s=i;s--;)if(n[s][0]==="exit"&&n[s][1].type==="attentionSequence"&&n[s][1]._open&&a.sliceSerialize(n[s][1]).charCodeAt(0)===a.sliceSerialize(n[i][1]).charCodeAt(0)){if((n[s][1]._close||n[i][1]._open)&&(n[i][1].end.offset-n[i][1].start.offset)%3&&!((n[s][1].end.offset-n[s][1].start.offset+n[i][1].end.offset-n[i][1].start.offset)%3))continue;I=n[s][1].end.offset-n[s][1].start.offset>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;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function Qt(n,a){const i=this.parser.constructs.attentionMarkers.null,s=this.previous,c=lt(s);let l;return d;function d(I){return l=I,n.enter("attentionSequence"),p(I)}function p(I){if(I===l)return n.consume(I),p;const E=n.exit("attentionSequence"),b=lt(I),j=!b||b===2&&c||i.includes(I),k=!c||c===2&&b||i.includes(s);return E._open=!!(l===42?j:j&&(c||!k)),E._close=!!(l===42?k:k&&(b||!j)),a(I)}}function qe(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const $t={name:"autolink",tokenize:Zt};function Zt(n,a,i){let s=0;return c;function c(x){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),l}function l(x){return mn(x)?(n.consume(x),d):E(x)}function d(x){return x===43||x===45||x===46||Bn(x)?(s=1,p(x)):E(x)}function p(x){return x===58?(n.consume(x),s=0,I):(x===43||x===45||x===46||Bn(x))&&s++<32?(n.consume(x),p):(s=0,E(x))}function I(x){return x===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),a):x===null||x===32||x===60||sn(x)?i(x):(n.consume(x),I)}function E(x){return x===64?(n.consume(x),b):ve(x)?(n.consume(x),E):i(x)}function b(x){return Bn(x)?j(x):i(x)}function j(x){return x===46?(n.consume(x),s=0,b):x===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),a):k(x)}function k(x){if((x===45||Bn(x))&&s++<63){const In=x===45?k:j;return n.consume(x),In}return i(x)}}const Wt={name:"htmlText",tokenize:It};function It(n,a,i){const s=this;let c,l,d;return p;function p(A){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(A),I}function I(A){return A===33?(n.consume(A),E):A===47?(n.consume(A),Qn):A===63?(n.consume(A),en):mn(A)?(n.consume(A),ee):i(A)}function E(A){return A===45?(n.consume(A),b):A===91?(n.consume(A),l=0,In):mn(A)?(n.consume(A),Xn):i(A)}function b(A){return A===45?(n.consume(A),x):i(A)}function j(A){return A===null?i(A):A===45?(n.consume(A),k):Z(A)?(d=j,se(A)):(n.consume(A),j)}function k(A){return A===45?(n.consume(A),x):j(A)}function x(A){return A===62?Jn(A):A===45?k(A):j(A)}function In(A){const Oe="CDATA[";return A===Oe.charCodeAt(l++)?(n.consume(A),l===Oe.length?Sn:In):i(A)}function Sn(A){return A===null?i(A):A===93?(n.consume(A),Kn):Z(A)?(d=Sn,se(A)):(n.consume(A),Sn)}function Kn(A){return A===93?(n.consume(A),$):Sn(A)}function $(A){return A===62?Jn(A):A===93?(n.consume(A),$):Sn(A)}function Xn(A){return A===null||A===62?Jn(A):Z(A)?(d=Xn,se(A)):(n.consume(A),Xn)}function en(A){return A===null?i(A):A===63?(n.consume(A),Yn):Z(A)?(d=en,se(A)):(n.consume(A),en)}function Yn(A){return A===62?Jn(A):en(A)}function Qn(A){return mn(A)?(n.consume(A),B):i(A)}function B(A){return A===45||Bn(A)?(n.consume(A),B):zn(A)}function zn(A){return Z(A)?(d=zn,se(A)):ln(A)?(n.consume(A),zn):Jn(A)}function ee(A){return A===45||Bn(A)?(n.consume(A),ee):A===47||A===62||Mn(A)?qn(A):i(A)}function qn(A){return A===47?(n.consume(A),Jn):A===58||A===95||mn(A)?(n.consume(A),me):Z(A)?(d=qn,se(A)):ln(A)?(n.consume(A),qn):Jn(A)}function me(A){return A===45||A===46||A===58||A===95||Bn(A)?(n.consume(A),me):Hn(A)}function Hn(A){return A===61?(n.consume(A),wn):Z(A)?(d=Hn,se(A)):ln(A)?(n.consume(A),Hn):qn(A)}function wn(A){return A===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(n.consume(A),c=A,tn):Z(A)?(d=wn,se(A)):ln(A)?(n.consume(A),wn):(n.consume(A),xn)}function tn(A){return A===c?(n.consume(A),c=void 0,bn):A===null?i(A):Z(A)?(d=tn,se(A)):(n.consume(A),tn)}function xn(A){return A===null||A===34||A===39||A===60||A===61||A===96?i(A):A===47||A===62||Mn(A)?qn(A):(n.consume(A),xn)}function bn(A){return A===47||A===62||Mn(A)?qn(A):i(A)}function Jn(A){return A===62?(n.consume(A),n.exit("htmlTextData"),n.exit("htmlText"),a):i(A)}function se(A){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(A),n.exit("lineEnding"),Re}function Re(A){return ln(A)?vn(n,Ge,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):Ge(A)}function Ge(A){return n.enter("htmlTextData"),d(A)}}const We={name:"labelStartLink",tokenize:Ke,resolveAll:Ut.resolveAll};function Ke(n,a,i){const s=this;return c;function c(d){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelLink"),l}function l(d){return d===94&&"_hiddenFootnoteSupport"in s.parser.constructs?i(d):a(d)}}const mr={name:"hardBreakEscape",tokenize:pr};function pr(n,a,i){return s;function s(l){return n.enter("hardBreakEscape"),n.consume(l),c}function c(l){return Z(l)?(n.exit("hardBreakEscape"),a(l)):i(l)}}const Dr={name:"codeText",tokenize:Br,resolve:gr,previous:_r};function gr(n){let a=n.length-4,i=3,s,c;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(s=i;++s<a;)if(n[s][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(s=i-1,a++;++s<=a;)c===void 0?s!==a&&n[s][1].type!=="lineEnding"&&(c=s):(s===a||n[s][1].type==="lineEnding")&&(n[c][1].type="codeTextData",s!==c+2&&(n[c][1].end=n[s-1][1].end,n.splice(c+2,s-c-2),a-=s-c-2,s=c+2),c=void 0);return n}function _r(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Br(n,a,i){const s=this;let c=0,l,d;return p;function p(k){return n.enter("codeText"),n.enter("codeTextSequence"),I(k)}function I(k){return k===96?(n.consume(k),c++,I):(n.exit("codeTextSequence"),E(k))}function E(k){return k===null?i(k):k===32?(n.enter("space"),n.consume(k),n.exit("space"),E):k===96?(d=n.enter("codeTextSequence"),l=0,j(k)):Z(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),E):(n.enter("codeTextData"),b(k))}function b(k){return k===null||k===32||k===96||Z(k)?(n.exit("codeTextData"),E(k)):(n.consume(k),b)}function j(k){return k===96?(n.consume(k),l++,j):l===c?(n.exit("codeTextSequence"),n.exit("codeText"),a(k)):(d.type="codeTextData",b(k))}}const Rr={42:Zn,43:Zn,45:Zn,48:Zn,49:Zn,50:Zn,51:Zn,52:Zn,53:Zn,54:Zn,55:Zn,56:Zn,57:Zn,62:Ze},zr={91:Je},Ar={[-2]:vt,[-1]:vt,32:vt},Nr={35:zt,42:fe,45:[un,fe],60:Tn,61:un,95:fe,96:pe,126:pe},Ur={38:Be,92:Yt},Wr={[-5]:Nt,[-4]:Nt,[-3]:Nt,33:Ue,38:Be,42:dt,60:[$t,Wt],91:We,92:[mr,Yt],93:Ut,95:dt,96:Dr},Kr={null:[dt,dn]},Hr={null:[42,95]},Gr={null:[]};function Vr(n){const i=an([g,...(n||{}).extensions||[]]),s={defined:[],lazy:{},constructs:i,content:c(ue),document:c(ye),flow:c(Me),string:c(w),text:c(L)};return s;function c(l){return d;function d(p){return kn(s,l,p)}}}const vr=/[\0\t\n\r]/g;function Yr(){let n=1,a="",i=!0,s;return c;function c(l,d,p){const I=[];let E,b,j,k,x;for(l=a+l.toString(d),j=0,a="",i&&(l.charCodeAt(0)===65279&&j++,i=void 0);j<l.length;){if(vr.lastIndex=j,E=vr.exec(l),k=E&&E.index!==void 0?E.index:l.length,x=l.charCodeAt(k),!E){a=l.slice(j);break}if(x===10&&j===k&&s)I.push(-3),s=void 0;else switch(s&&(I.push(-5),s=void 0),j<k&&(I.push(l.slice(j,k)),n+=k-j),x){case 0:{I.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,I.push(-2);n++<b;)I.push(-1);break}case 10:{I.push(-4),n=1;break}default:s=!0,n=1}j=k+1}return p&&(s&&I.push(-5),a&&I.push(a),I.push(null)),I}}function Xt(n){for(;!re(n););return n}function Qr(n,a){const i=Number.parseInt(n,a);return i<9||i===11||i>13&&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(;++Dn<T.length;)if(T[Dn][1].type==="listOrdered"||T[Dn][1].type==="listUnordered")if(T[Dn][0]==="enter")On.push(Dn);else{const ze=On.pop();Dn=c(T,ze,Dn)}for(Dn=-1;++Dn<T.length;){const ze=a[T[Dn][0]];qt.call(ze,T[Dn][1].type)&&ze[T[Dn][1].type].call(Object.assign({sliceSerialize:T[Dn][2].sliceSerialize},on),T[Dn][1])}if(on.tokenStack.length>0){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<a.transforms.length;)G=a.transforms[Dn](G)||G;return G}function c(T,G,on){let On=G-1,Dn=-1,ze=!1,mt,et,Gt,Vt;for(;++On<=on;){const ne=T[On];if(ne[1].type==="listUnordered"||ne[1].type==="listOrdered"||ne[1].type==="blockQuote"?(ne[0]==="enter"?Dn++:Dn--,Vt=void 0):ne[1].type==="lineEndingBlank"?ne[0]==="enter"&&(mt&&!Vt&&!Dn&&!Gt&&(Gt=On),Vt=void 0):ne[1].type==="linePrefix"||ne[1].type==="listItemValue"||ne[1].type==="listItemMarker"||ne[1].type==="listItemPrefix"||ne[1].type==="listItemPrefixWhitespace"||(Vt=void 0),!Dn&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||Dn===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(mt){let fr=On;for(et=void 0;fr--;){const tt=T[fr];if(tt[1].type==="lineEnding"||tt[1].type==="lineEndingBlank"){if(tt[0]==="exit")continue;et&&(T[et][1].type="lineEndingBlank",ze=!0),tt[1].type="lineEnding",et=fr}else if(!(tt[1].type==="linePrefix"||tt[1].type==="blockQuotePrefix"||tt[1].type==="blockQuotePrefixWhitespace"||tt[1].type==="blockQuoteMarker"||tt[1].type==="listItemIndent"))break}Gt&&(!et||Gt<et)&&(mt._spread=!0),mt.end=Object.assign({},et?T[et][1].start:ne[1].end),T.splice(et||On,0,["exit",mt,ne[2]]),On++,on++}ne[1].type==="listItemPrefix"&&(mt={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void 0},T.splice(On,0,["enter",mt,ne[2]]),On++,on++,Gt=void 0,Vt=!0)}}return T[G][1]._spread=ze,on}function l(T,G){i[T]=G}function d(T){return i[T]}function p(T,G){return on;function on(On){E.call(this,T(On),On),G&&G.call(this,On)}}function I(){this.stack.push({type:"fragment",children:[]})}function E(T,G,on){return this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([G,on]),T.position={start:He(G.start)},T}function b(T){return G;function G(on){T&&T.call(this,on),j.call(this,on)}}function j(T,G){const on=this.stack.pop(),On=this.tokenStack.pop();if(On)On[0].type!==T.type&&(G?G.call(this,T,On[0]):(On[1]||lr).call(this,T,On[0]));else throw new Error("Cannot close `"+T.type+"` ("+Jt({start:T.start,end:T.end})+"): it\u2019s not open");return on.position.end=He(T.end),on}function k(){return M(this.stack.pop())}function x(){l("expectingFirstListItemValue",!0)}function In(T){if(d("expectingFirstListItemValue")){const G=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(T),10),l("expectingFirstListItemValue")}}function Sn(){const T=this.resume(),G=this.stack[this.stack.length-1];G.lang=T}function Kn(){const T=this.resume(),G=this.stack[this.stack.length-1];G.meta=T}function $(){d("flowCodeInside")||(this.buffer(),l("flowCodeInside",!0))}function Xn(){const T=this.resume(),G=this.stack[this.stack.length-1];G.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),l("flowCodeInside")}function en(){const T=this.resume(),G=this.stack[this.stack.length-1];G.value=T.replace(/(\r?\n|\r)$/g,"")}function Yn(T){const G=this.resume(),on=this.stack[this.stack.length-1];on.label=G,on.identifier=Se(this.sliceSerialize(T)).toLowerCase()}function Qn(){const T=this.resume(),G=this.stack[this.stack.length-1];G.title=T}function B(){const T=this.resume(),G=this.stack[this.stack.length-1];G.url=T}function zn(T){const G=this.stack[this.stack.length-1];if(!G.depth){const on=this.sliceSerialize(T).length;G.depth=on}}function ee(){l("setextHeadingSlurpLineEnding",!0)}function qn(T){const G=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(T).charCodeAt(0)===61?1:2}function me(){l("setextHeadingSlurpLineEnding")}function Hn(T){const G=this.stack[this.stack.length-1];let on=G.children[G.children.length-1];(!on||on.type!=="text")&&(on=ci(),on.position={start:He(T.start)},G.children.push(on)),this.stack.push(on)}function wn(T){const G=this.stack.pop();G.value+=this.sliceSerialize(T),G.position.end=He(T.end)}function tn(T){const G=this.stack[this.stack.length-1];if(d("atHardBreak")){const on=G.children[G.children.length-1];on.position.end=He(T.end),l("atHardBreak");return}!d("setextHeadingSlurpLineEnding")&&a.canContainEols.includes(G.type)&&(Hn.call(this,T),wn.call(this,T))}function xn(){l("atHardBreak",!0)}function bn(){const T=this.resume(),G=this.stack[this.stack.length-1];G.value=T}function Jn(){const T=this.resume(),G=this.stack[this.stack.length-1];G.value=T}function se(){const T=this.resume(),G=this.stack[this.stack.length-1];G.value=T}function Re(){const T=this.stack[this.stack.length-1];if(d("inReference")){const G=d("referenceType")||"shortcut";T.type+="Reference",T.referenceType=G,delete T.url,delete T.title}else delete T.identifier,delete T.label;l("referenceType")}function Ge(){const T=this.stack[this.stack.length-1];if(d("inReference")){const G=d("referenceType")||"shortcut";T.type+="Reference",T.referenceType=G,delete T.url,delete T.title}else delete T.identifier,delete T.label;l("referenceType")}function A(T){const G=this.sliceSerialize(T),on=this.stack[this.stack.length-2];on.label=xr(G),on.identifier=Se(G).toLowerCase()}function Oe(){const T=this.stack[this.stack.length-1],G=this.resume(),on=this.stack[this.stack.length-1];if(l("inReference",!0),on.type==="link"){const On=T.children;on.children=On}else on.alt=G}function Ve(){const T=this.resume(),G=this.stack[this.stack.length-1];G.url=T}function v(){const T=this.resume(),G=this.stack[this.stack.length-1];G.title=T}function be(){l("inReference")}function St(){l("referenceType","collapsed")}function tr(T){const G=this.resume(),on=this.stack[this.stack.length-1];on.label=G,on.identifier=Se(this.sliceSerialize(T)).toLowerCase(),l("referenceType","full")}function Kt(T){l("characterReferenceType",T.type)}function ae(T){const G=this.sliceSerialize(T),on=d("characterReferenceType");let On;on?(On=Qr(G,on==="characterReferenceMarkerNumeric"?10:16),l("characterReferenceType")):On=at(G);const Dn=this.stack.pop();Dn.value+=On,Dn.position.end=He(T.end)}function Ht(T){wn.call(this,T);const G=this.stack[this.stack.length-1];G.url=this.sliceSerialize(T)}function nt(T){wn.call(this,T);const G=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(T)}function jt(){return{type:"blockquote",children:[]}}function ht(){return{type:"code",lang:null,meta:null,value:""}}function cr(){return{type:"inlineCode",value:""}}function ai(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ui(){return{type:"emphasis",children:[]}}function Tr(){return{type:"heading",depth:void 0,children:[]}}function Fr(){return{type:"break"}}function Or(){return{type:"html",value:""}}function oi(){return{type:"image",title:null,url:"",alt:null}}function Pr(){return{type:"link",title:null,url:"",children:[]}}function Lr(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Mr(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function li(){return{type:"paragraph",children:[]}}function di(){return{type:"strong",children:[]}}function ci(){return{type:"text",value:""}}function fi(){return{type:"thematicBreak"}}}function He(n){return{line:n.line,column:n.column,offset:n.offset}}function or(n,a){let i=-1;for(;++i<a.length;){const s=a[i];Array.isArray(s)?or(n,s):kr(n,s)}}function kr(n,a){let i;for(i in a)if(qt.call(a,i)){if(i==="canContainEols"){const s=a[i];s&&n[i].push(...s)}else if(i==="transforms"){const s=a[i];s&&n[i].push(...s)}else if(i==="enter"||i==="exit"){const s=a[i];s&&Object.assign(n[i],s)}}}function lr(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Jt({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Jt({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Jt({start:a.start,end:a.end})+") is still open")}var Cr=h("./node_modules/ts-dedent/esm/index.js");function Xr(n){const a=n.replace(/\n{2,}/g,`
`);return(0,Cr.T)(a)}function Jr(n){const a=Xr(n),{children:i}=Er(a),s=[[]];let c=0;function l(d,p="normal"){d.type==="text"?d.value.split(`
`).forEach((E,b)=>{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,"<br/>"):s.type==="strong"?`<strong>${s.children.map(i).join("")}</strong>`:s.type==="emphasis"?`<em>${s.children.map(i).join("")}</em>`:s.type==="paragraph"?`<p>${s.children.map(i).join("")}</p>`:`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(`
<span class="${I} ${s}" `+(a.labelStyle?'style="'+a.labelStyle+'"':"")+">"+p+"</span>"),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=>`<i class='${k.replace(":"," ")}'></i>`),labelStyle:i.replace("fill:","color:")};return ei(n,b,p,c,I)}else{const E=Jr(a);return ii(p,n,E,I)}}}}]);