/plugin/authgooglesheets/vendor/google/apiclient-services/src/CloudIdentity/ |
H A D | MembershipAdjacencyList.php | 40 public function getEdges() function in Google\\Service\\CloudIdentity\\MembershipAdjacencyList
|
/plugin/diagramsnet/lib/plugins/webcola/ |
H A D | mxWebColaLayout.js | 76 var edges = this.graph.getEdges(parent, null, true, true, true, true);
|
H A D | cola.min.js | 2 …getEdges(this.roots[0],b),b},a.getEdges=function(b,c){b.forAll(function(b){b.getEdges(c),a.getEdge…
|
/plugin/diagramsnet/lib/plugins/ |
H A D | explore.js | 296 var edges = sourceGraph.getEdges(sourceCell, null, true, true, false, true);
|
/plugin/jdraw/lib/ |
H A D | jgraphx.jar | META-INF/MANIFEST.MF
META-INF/HAMMURAP.SF
META-INF/HAMMURAP ... |
/plugin/diagramsnet/lib/mxgraph/ |
H A D | mxClient.js | 569 …getEdges(a,c.getParent(a),this.invert,!this.invert,!1).length)this.root=a;else{var d=this.graph.fi… 711 …getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b… method in mxHierarchicalLayout 717 …prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a),e=[],f=0;f<d.l… 730 …getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b… method in mxSwimlaneLayout 736 mxSwimlaneLayout.prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a… 755 …getEdges(a,!0,!0,!1)};mxGraphModel.prototype.getIncomingEdges=function(a){return this.getEdges(a,!… 756 mxGraphModel.prototype.getEdges=function(a,b,c,d){b=null!=b?b:!0;c=null!=c?c:!0;d=null!=d?d:!0;for(… method in mxGraphModel 1263 …getEdges(a,b,!0,!0,!1)};mxGraph.prototype.getIncomingEdges=function(a,b){return this.getEdges(a,b,… 1264 …getEdges=function(a,b,c,d,e,f){c=null!=c?c:!0;d=null!=d?d:!0;e=null!=e?e:!0;f=null!=f?f:!1;for(var… method in mxGraph 1267 mxGraph.prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a),e=[],f=… [all …]
|
/plugin/diagramsnet/lib/js/diagramly/ |
H A D | Trees.js | 109 …return this.model.filterCells(this.getEdges(cell, parent, incoming, outgoing, includeLoops, recurs…
|
/plugin/diagramsnet/lib/js/grapheditor/ |
H A D | Actions.js | 495 graph.addSelectionCells(graph.getEdges(cell));
|
/plugin/diagramsnet/lib/js/ |
H A D | viewer.min.js | 773 …getEdges(a,c.getParent(a),this.invert,!this.invert,!1).length)this.root=a;else{var d=this.graph.fi… 915 …getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b… method in mxHierarchicalLayout 921 …prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a),e=[],f=0;f<d.l… 934 …getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b… method in mxSwimlaneLayout 940 mxSwimlaneLayout.prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a… 959 …getEdges(a,!0,!0,!1)};mxGraphModel.prototype.getIncomingEdges=function(a){return this.getEdges(a,!… 960 mxGraphModel.prototype.getEdges=function(a,b,c,d){b=null!=b?b:!0;c=null!=c?c:!0;d=null!=d?d:!0;for(… method in mxGraphModel 1467 …getEdges(a,b,!0,!0,!1)};mxGraph.prototype.getIncomingEdges=function(a,b){return this.getEdges(a,b,… 1468 …getEdges=function(a,b,c,d,e,f){c=null!=c?c:!0;d=null!=d?d:!0;e=null!=e?e:!0;f=null!=f?f:!1;for(var… method in mxGraph 1471 mxGraph.prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a),e=[],f=… [all …]
|
H A D | app.min.js | 807 …getEdges(a,c.getParent(a),this.invert,!this.invert,!1).length)this.root=a;else{var d=this.graph.fi… 949 …getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b… method in mxHierarchicalLayout 955 …prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a),e=[],f=0;f<d.l… 968 …getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b… method in mxSwimlaneLayout 974 mxSwimlaneLayout.prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a… 993 …getEdges(a,!0,!0,!1)};mxGraphModel.prototype.getIncomingEdges=function(a){return this.getEdges(a,!… 994 mxGraphModel.prototype.getEdges=function(a,b,c,d){b=null!=b?b:!0;c=null!=c?c:!0;d=null!=d?d:!0;for(… method in mxGraphModel 1501 …getEdges(a,b,!0,!0,!1)};mxGraph.prototype.getIncomingEdges=function(a,b){return this.getEdges(a,b,… 1502 …getEdges=function(a,b,c,d,e,f){c=null!=c?c:!0;d=null!=d?d:!0;e=null!=e?e:!0;f=null!=f?f:!1;for(var… method in mxGraph 1505 mxGraph.prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a),e=[],f=… [all …]
|
H A D | viewer-static.min.js | 773 …getEdges(a,c.getParent(a),this.invert,!this.invert,!1).length)this.root=a;else{var d=this.graph.fi… 915 …getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b… method in mxHierarchicalLayout 921 …prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a),e=[],f=0;f<d.l… 934 …getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b… method in mxSwimlaneLayout 940 mxSwimlaneLayout.prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a… 959 …getEdges(a,!0,!0,!1)};mxGraphModel.prototype.getIncomingEdges=function(a){return this.getEdges(a,!… 960 mxGraphModel.prototype.getEdges=function(a,b,c,d){b=null!=b?b:!0;c=null!=c?c:!0;d=null!=d?d:!0;for(… method in mxGraphModel 1467 …getEdges(a,b,!0,!0,!1)};mxGraph.prototype.getIncomingEdges=function(a,b){return this.getEdges(a,b,… 1468 …getEdges=function(a,b,c,d,e,f){c=null!=c?c:!0;d=null!=d?d:!0;e=null!=e?e:!0;f=null!=f?f:!1;for(var… method in mxGraph 1471 mxGraph.prototype.getEdgesBetween=function(a,b,c){c=null!=c?c:!1;for(var d=this.getEdges(a),e=[],f=… [all …]
|
/plugin/ditaa/ditaa/ |
H A D | ditaa.jar | META-INF/
META-INF/MANIFEST.MF
net/
net/htmlparser/
net/ ... |
/plugin/jcapture/lib/ |
H A D | transform-3.0.2.jar | META-INF/MANIFEST.MF
META-INF/HAMMURAP.SF
META-INF/HAMMURAP ... |
/plugin/dirtylittlehelper/mermaid/editor/ |
H A D | bundle.js | 149 …getEdges",(function(){return W})),n.d(t,"getClasses",(function(){return H})),n.d(t,"clear",(functi… 153 …tle,"group",void 0,a.classes);var w=s.default.getVertices(),C=s.default.getEdges();f.log.info(C);v… 157 … C=s.default.getVertices();g.log.warn("Get vertices",C);var S=s.default.getEdges(),k=0;for(k=b.len…
|
/plugin/dirtylittlehelper/mermaid/editor/docs/ |
H A D | bundle.js | 149 …getEdges",(function(){return W})),n.d(t,"getClasses",(function(){return H})),n.d(t,"clear",(functi… 153 …tle,"group",void 0,a.classes);var w=s.default.getVertices(),C=s.default.getEdges();f.log.info(C);v… 157 … C=s.default.getVertices();g.log.warn("Get vertices",C);var S=s.default.getEdges(),k=0;for(k=b.len…
|
H A D | bundle.js.map | 1 …getEdges, getClasses, clear, setGen, defaultStyle, addSubGraph, getDepthFirstPos, indexNodes, getS…
|
/plugin/mermaid/ |
H A D | mermaid.min.js | 101 `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ts=this.next();return Ts||this.lex()},begin:function(Ts){this.conditionStack.push(Ts)},popState:function(){var Ts=this.conditionStack.length-1;return Ts>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ts){return Ts=this.conditionStack.length-1-Math.abs(Ts||0),Ts>=0?this.conditionStack[Ts]:"INITIAL"},pushState:function(Ts){this.begin(Ts)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ts,ka,xi,Yc){switch(xi){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return Ts.lex.firstGraph()&&this.begin("dir"),12;case 30:return Ts.lex.firstGraph()&&this.begin("dir"),12;case 31:return Ts.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return af}();rf.lexer=Oc;function sf(){this.yy={}}return sf.prototype=rf,rf.Parser=sf,new sf}();qdt.parser=qdt;const Hdt=qdt,rIe="flowchart-";let APt=0,Vdt=Oe(),wl={},gk=[],eL={},M5=[],rY={},iY={},sY=0,Gdt=!0,iw,aY,oY=[];const cY=i=>Kr.sanitizeText(i,Vdt),fF=function(i){const a=Object.keys(wl);for(const f of a)if(wl[f].id===i)return wl[f].domId;return i},LPt=function(i,a,f,p,w,m,b={}){let E,_=i;_!==void 0&&_.trim().length!==0&&(wl[_]===void 0&&(wl[_]={id:_,labelType:"text",domId:rIe+_+"-"+APt,styles:[],classes:[]}),APt++,a!==void 0?(Vdt=Oe(),E=cY(a.text.trim()),wl[_].labelType=a.type,E[0]==='"'&&E[E.length-1]==='"'&&(E=E.substring(1,E.length-1)),wl[_].text=E):wl[_].text===void 0&&(wl[_].text=i),f!==void 0&&(wl[_].type=f),p!=null&&p.forEach(function(A){wl[_].styles.push(A)}),w!=null&&w.forEach(function(A){wl[_].classes.push(A)}),m!==void 0&&(wl[_].dir=m),wl[_].props===void 0?wl[_].props=b:b!==void 0&&Object.assign(wl[_].props,b))},MPt=function(i,a,f){const m={start:i,end:a,type:void 0,text:"",labelType:"text"};Ut.info("abc78 Got edge...",m);const b=f.text;if(b!==void 0&&(m.text=cY(b.text.trim()),m.text[0]==='"'&&m.text[m.text.length-1]==='"'&&(m.text=m.text.substring(1,m.text.length-1)),m.labelType=b.type),f!==void 0&&(m.type=f.type,m.stroke=f.stroke,m.length=f.length),(m==null?void 0:m.length)>10&&(m.length=10),gk.length<280)Ut.info("abc78 pushing edge..."),gk.push(m);else throw new Error("Too many edges")},DPt=function(i,a,f){Ut.info("addLink (abc78)",i,a,f);let p,w;for(p=0;p<i.length;p++)for(w=0;w<a.length;w++)MPt(i[p],a[w],f)},IPt=function(i,a){i.forEach(function(f){f==="default"?gk.defaultInterpolate=a:gk[f].interpolate=a})},OPt=function(i,a){i.forEach(function(f){f==="default"?gk.defaultStyle=a:($a.isSubstringInArray("fill",a)===-1&&a.push("fill:none"),gk[f].style=a)})},PPt=function(i,a){i.split(",").forEach(function(f){eL[f]===void 0&&(eL[f]={id:f,styles:[],textStyles:[]}),a!=null&&a.forEach(function(p){if(p.match("color")){const w=p.replace("fill","bgFill").replace("color","fill");eL[f].textStyles.push(w)}eL[f].styles.push(p)})})},FPt=function(i){iw=i,iw.match(/.*</)&&(iw="RL"),iw.match(/.*\^/)&&(iw="BT"),iw.match(/.*>/)&&(iw="LR"),iw.match(/.*v/)&&(iw="TB"),iw==="TD"&&(iw="TB")},uY=function(i,a){i.split(",").forEach(function(f){let p=f;wl[p]!==void 0&&wl[p].classes.push(a),rY[p]!==void 0&&rY[p].classes.push(a)})},iIe=function(i,a){i.split(",").forEach(function(f){a!==void 0&&(iY[aY==="gen-1"?fF(f):f]=cY(a))})},sIe=function(i,a,f){let p=fF(i);if(Oe().securityLevel!=="loose"||a===void 0)return;let w=[];if(typeof f=="string"){w=f.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m<w.length;m++){let b=w[m].trim();b.charAt(0)==='"'&&b.charAt(b.length-1)==='"'&&(b=b.substr(1,b.length-2)),w[m]=b}}w.length===0&&w.push(i),wl[i]!==void 0&&(wl[i].haveCallback=!0,oY.push(function(){const m=document.querySelector(`[id="${p}"]`);m!==null&&m.addEventListener("click",function(){$a.runFunc(a,...w)},!1)}))},NPt=function(i,a,f){i.split(",").forEach(function(p){wl[p]!==void 0&&(wl[p].link=$a.formatUrl(a,Vdt),wl[p].linkTarget=f)}),uY(i,"clickable")},BPt=function(i){if(iY.hasOwnProperty(i))return iY[i]},RPt=function(i,a,f){i.split(",").forEach(function(p){sIe(p,a,f)}),uY(i,"clickable")},jPt=function(i){oY.forEach(function(a){a(i)})},$Pt=function(){return iw.trim()},zPt=function(){return wl},qPt=function(){return gk},HPt=function(){return eL},VPt=function(i){let a=yr(".mermaidTooltip");(a._groups||a)[0][0]===null&&(a=yr("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),yr(i).select("svg").selectAll("g.node").on("mouseover",function(){const w=yr(this);if(w.attr("title")===null)return;const b=this.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.text(w.attr("title")).style("left",window.scrollX+b.left+(b.right-b.left)/2+"px").style("top",window.scrollY+b.top-14+document.body.scrollTop+"px"),a.html(a.html().replace(/<br\/>/g,"<br/>")),w.classed("hover",!0)}).on("mouseout",function(){a.transition().duration(500).style("opacity",0),yr(this).classed("hover",!1)})};oY.push(VPt);const GPt=function(i="gen-1"){wl={},eL={},gk=[],oY=[VPt],M5=[],rY={},sY=0,iY={},Gdt=!0,aY=i,hg()},UPt=i=>{aY=i||"gen-2"},WPt=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},YPt=function(i,a,f){let p=i.text.trim(),w=f.text;i===f&&f.text.match(/\s/)&&(p=void 0);function m(I){const B={boolean:{},number:{},string:{}},N=[];let R;return{nodeList:I.filter(function(W){const et=typeof W;return W.stmt&&W.stmt==="dir"?(R=W.value,!1):W.trim()===""?!1:et in B?B[et].hasOwnProperty(W)?!1:B[et][W]=!0:N.includes(W)?!1:N.push(W)}),dir:R}}let b=[];const{nodeList:E,dir:_}=m(b.concat.apply(b,a));if(b=E,aY==="gen-1")for(let I=0;I<b.length;I++)b[I]=fF(b[I]);p=p||"subGraph"+sY,w=w||"",w=cY(w),sY=sY+1;const A={id:p,nodes:b,title:w.trim(),classes:[],dir:_,labelType:f.type};return Ut.info("Adding",A.id,A.nodes,A.dir),A.nodes=rFt(A,M5).nodes,M5.push(A),rY[p]=A,p},aIe=function(i){for(const[a,f]of M5.entries())if(f.id===i)return a;return-1};let dF=-1;const KPt=[],XPt=function(i,a){const f=M5[a].nodes;if(dF=dF+1,dF>2e3)return;if(KPt[dF]=a,M5[a].id===i)return{result:!0,count:0};let p=0,w=1;for(;p<f.length;){const m=aIe(f[p]);if(m>=0){const b=XPt(i,m);if(b.result)return{result:!0,count:w+b.count};w=w+b.count}p=p+1}return{result:!1,count:w}},QPt=function(i){return KPt[i]},ZPt=function(){dF=-1,M5.length>0&&XPt("none",M5.length-1)},JPt=function(){return M5},tFt=()=>Gdt?(Gdt=!1,!0):!1,oIe=i=>{let a=i.trim(),f="arrow_open";switch(a[0]){case"<":f="arrow_point",a=a.slice(1);break;case"x":f="arrow_cross",a=a.slice(1);break;case"o":f="arrow_circle",a=a.slice(1);break}let p="normal";return a.includes("=")&&(p="thick"),a.includes(".")&&(p="dotted"),{type:f,stroke:p}},cIe=(i,a)=>{const f=a.length;let p=0;for(let w=0;w<f;++w)a[w]===i&&++p;return p},uIe=i=>{const a=i.trim();let f=a.slice(0,-1),p="arrow_open";switch(a.slice(-1)){case"x":p="arrow_cross",a[0]==="x"&&(p="double_"+p,f=f.slice(1));break;case">":p="arrow_point",a[0]==="<"&&(p="double_"+p,f=f.slice(1));break;case"o":p="arrow_circle",a[0]==="o"&&(p="double_"+p,f=f.slice(1));break}let w="normal",m=f.length-1;f[0]==="="&&(w="thick"),f[0]==="~"&&(w="invisible");let b=cIe(".",f);return b&&(w="dotted",m=b),{type:p,stroke:w,length:m}},eFt=(i,a)=>{const f=uIe(i);let p;if(a){if(p=oIe(a),p.stroke!==f.stroke)return{type:"INVALID",stroke:"INVALID"};if(p.type==="arrow_open")p.type=f.type;else{if(p.type!==f.type)return{type:"INVALID",stroke:"INVALID"};p.type="double_"+p.type}return p.type==="double_arrow"&&(p.type="double_arrow_point"),p.length=f.length,p}return f},nFt=(i,a)=>{let f=!1;return i.forEach(p=>{p.nodes.indexOf(a)>=0&&(f=!0)}),f},rFt=(i,a)=>{const f=[];return i.nodes.forEach((p,w)=>{nFt(a,p)||f.push(i.nodes[w])}),{nodes:f}},iFt={firstGraph:tFt},wT={defaultConfig:()=>SOt.flowchart,setAccTitle:E0,getAccTitle:fg,getAccDescription:gg,setAccDescription:dg,addVertex:LPt,lookUpDomId:fF,addLink:DPt,updateLinkInterpolate:IPt,updateLink:OPt,addClass:PPt,setDirection:FPt,setClass:uY,setTooltip:iIe,getTooltip:BPt,setClickEvent:RPt,setLink:NPt,bindFunctions:jPt,getDirection:$Pt,getVertices:zPt,getEdges:qPt,getClasses:HPt,clear:GPt,setGen:UPt,defaultStyle:WPt,addSubGraph:YPt,getDepthFirstPos:QPt,indexNodes:ZPt,getSubGraphs:JPt,destructLink:eFt,lex:iFt,exists:nFt,makeUniq:rFt,setDiagramTitle:Nb,getDiagramTitle:pg},lIe=Object.freeze(Object.defineProperty({__proto__:null,addClass:PPt,addLink:DPt,addSingleLink:MPt,addSubGraph:YPt,addVertex:LPt,bindFunctions:jPt,clear:GPt,default:wT,defaultStyle:WPt,destructLink:eFt,firstGraph:tFt,getClasses:HPt,getDepthFirstPos:QPt,getDirection:$Pt,getEdges:qPt,getSubGraphs:JPt,getTooltip:BPt,getVertices:zPt,indexNodes:ZPt,lex:iFt,lookUpDomId:fF,setClass:uY,setClickEvent:RPt,setDirection:FPt,setGen:UPt,setLink:NPt,updateLink:OPt,updateLinkInterpolate:IPt},Symbol.toStringTag,{value:"Module"}));var hIe="[object Symbol]";function vT(i){return typeof i=="symbol"||f3(i)&&sT(i)==hIe}function nL(i,a){for(var f=-1,p=i==null?0:i.length,w=Array(p);++f<p;)w[f]=a(i[f],f,i);return w}var fIe=1/0,sFt=tw?tw.prototype:void 0,aFt=sFt?sFt.toString:void 0;function oFt(i){if(typeof i=="string")return i;if(If(i))return nL(i,oFt)+"";if(vT(i))return aFt?aFt.call(i):"";var a=i+"";return a=="0"&&1/i==-fIe?"-0":a}var dIe=/\s/;function gIe(i){for(var a=i.length;a--&&dIe.test(i.charAt(a)););return a}var pIe=/^\s+/;function bIe(i){return i&&i.slice(0,gIe(i)+1).replace(pIe,"")}var cFt=0/0,wIe=/^[-+]0x[0-9a-f]+$/i,vIe=/^0b[01]+$/i,mIe=/^0o[0-7]+$/i,yIe=parseInt;function xIe(i){if(typeof i=="number")return i;if(vT(i))return cFt;if(Fb(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=Fb(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=bIe(i);var f=vIe.test(i);return f||mIe.test(i)?yIe(i.slice(2),f?2:8):wIe.test(i)?cFt:+i}var uFt=1/0,kIe=17976931348623157e292;function lY(i){if(!i)return i===0?i:0;if(i=xIe(i),i===uFt||i===-uFt){var a=i<0?-1:1;return a*kIe}return i===i?i:0}function EIe(i){var a=lY(i),f=a%1;return a===a?f?a-f:a:0}function TIe(){}function lFt(i,a){for(var f=-1,p=i==null?0:i.length;++f<p&&a(i[f],f,i)!==!1;);return i}function hFt(i,a,f,p){for(var w=i.length,m=f+(p?1:-1);p?m--:++m<w;)if(a(i[m],m,i))return m;return-1}function CIe(i){return i!==i}function _Ie(i,a,f){for(var p=f-1,w=i.length;++p<w;)if(i[p]===a)return p;return-1}function SIe(i,a,f){return a===a?_Ie(i,a,f):hFt(i,CIe,f)}function AIe(i,a){var f=i==null?0:i.length;return!!f&&SIe(i,a,0)>-1}function Rb(i){return ck(i)?PIt(i):NOt(i)}var LIe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,MIe=/^\w*$/;function Udt(i,a){if(If(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||vT(i)?!0:MIe.test(i)||!LIe.test(i)||a!=null&&i in Object(a)}var DIe=500;function IIe(i){var a=jA(i,function(p){return f.size===DIe&&f.clear(),p}),f=a.cache;return a}var OIe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PIe=/\\(\\)?/g,FIe=IIe(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(OIe,function(f,p,w,m){a.push(w?m.replace(PIe,"$1"):p||f)}),a});const NIe=FIe;function fFt(i){return i==null?"":oFt(i)}function hY(i,a){return If(i)?i:Udt(i,a)?[i]:NIe(fFt(i))}var BIe=1/0;function gF(i){if(typeof i=="string"||vT(i))return i;var a=i+"";return a=="0"&&1/i==-BIe?"-0":a}function fY(i,a){a=hY(a,i);for(var f=0,p=a.length;i!=null&&f<p;)i=i[gF(a[f++])];return f&&f==p?i:void 0}function RIe(i,a,f){var p=i==null?void 0:fY(i,a);return p===void 0?f:p}function Wdt(i,a){for(var f=-1,p=a.length,w=i.length;++f<p;)i[w+f]=a[f];return i}var dFt=tw?tw.isConcatSpreadable:void 0;function jIe(i){return If(i)||$A(i)||!!(dFt&&i&&i[dFt])}function dY(i,a,f,p,w){var m=-1,b=i.length;for(f||(f=jIe),w||(w=[]);++m<b;){var E=i[m];a>0&&f(E)?a>1?dY(E,a-1,f,p,w):Wdt(w,E):p||(w[w.length]=E)}return w}function rL(i){var a=i==null?0:i.length;return a?dY(i,1):[]}function $Ie(i){return RIt(BIt(i,void 0,rL),i+"")}function zIe(i,a,f,p){var w=-1,m=i==null?0:i.length;for(p&&m&&(f=i[++w]);++w<m;)f=a(f,i[w],w,i);return f}function qIe(i,a){return i&&eF(a,Rb(a),i)}function HIe(i,a){return i&&eF(a,uT(a),i)}function gFt(i,a){for(var f=-1,p=i==null?0:i.length,w=0,m=[];++f<p;){var b=i[f];a(b,f,i)&&(m[w++]=b)}return m}function pFt(){return[]}var VIe=Object.prototype,GIe=VIe.propertyIsEnumerable,bFt=Object.getOwnPropertySymbols,UIe=bFt?function(i){return i==null?[]:(i=Object(i),gFt(bFt(i),function(a){return GIe.call(i,a)}))}:pFt;const Ydt=UIe;function WIe(i,a){return eF(i,Ydt(i),a)}var YIe=Object.getOwnPropertySymbols,KIe=YIe?function(i){for(var a=[];i;)Wdt(a,Ydt(i)),i=ndt(i);return a}:pFt;const wFt=KIe;function XIe(i,a){return eF(i,wFt(i),a)}function vFt(i,a,f){var p=a(i);return If(i)?p:Wdt(p,f(i))}function Kdt(i){return vFt(i,Rb,Ydt)}function QIe(i){return vFt(i,uT,wFt)}var ZIe=Object.prototype,JIe=ZIe.hasOwnProperty;function tOe(i){var a=i.length,f=new i.constructor(a);return a&&typeof i[0]=="string"&&JIe.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function eOe(i,a){var f=a?edt(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}var nOe=/\w*$/;function rOe(i){var a=new i.constructor(i.source,nOe.exec(i));return a.lastIndex=i.lastIndex,a}var mFt=tw?tw.prototype:void 0,yFt=mFt?mFt.valueOf:void 0;function iOe(i){return yFt?Object(yFt.call(i)):{}}var sOe="[object Boolean]",aOe="[object Date]",oOe="[object Map]",cOe="[object Number]",uOe="[object RegExp]",lOe="[object Set]",hOe="[object String]",fOe="[object Symbol]",dOe="[object ArrayBuffer]",gOe="[object DataView]",pOe="[object Float32Array]",bOe="[object Float64Array]",wOe="[object Int8Array]",vOe="[object Int16Array]",mOe="[object Int32Array]",yOe="[object Uint8Array]",xOe="[object Uint8ClampedArray]",kOe="[object Uint16Array]",EOe="[object Uint32Array]";function TOe(i,a,f){var p=i.constructor;switch(a){case dOe:return edt(i);case sOe:case aOe:return new p(+i);case gOe:return eOe(i,f);case pOe:case bOe:case wOe:case vOe:case mOe:case yOe:case xOe:case kOe:case EOe:return mIt(i,f);case oOe:return new p;case cOe:case hOe:return new p(i);case uOe:return rOe(i);case lOe:return new p;case fOe:return iOe(i)}}var COe="[object Map]";function _Oe(i){return f3(i)&&XA(i)==COe}var xFt=qA&&qA.isMap,SOe=xFt?SW(xFt):_Oe;const AOe=SOe;var LOe="[object Set]";function MOe(i){return f3(i)&&XA(i)==LOe}var kFt=qA&&qA.isSet,DOe=kFt?SW(kFt):MOe;const IOe=DOe;var OOe=1,POe=2,FOe=4,EFt="[object Arguments]",NOe="[object Array]",BOe="[object Boolean]",ROe="[object Date]",jOe="[object Error]",TFt="[object Function]",$Oe="[object GeneratorFunction]",zOe="[object Map]",qOe="[object Number]",CFt="[object Object]",HOe="[object RegExp]",VOe="[object Set]",GOe="[object String]",UOe="[object Symbol]",WOe="[object WeakMap]",YOe="[object ArrayBuffer]",KOe="[object DataView]",XOe="[object Float32Array]",QOe="[object Float64Array]",ZOe="[object Int8Array]",JOe="[object Int16Array]",tPe="[object Int32Array]",ePe="[object Uint8Array]",nPe="[object Uint8ClampedArray]",rPe="[object Uint16Array]",iPe="[object Uint32Array]",rl={};rl[EFt]=rl[NOe]=rl[YOe]=rl[KOe]=rl[BOe]=rl[ROe]=rl[XOe]=rl[QOe]=rl[ZOe]=rl[JOe]=rl[tPe]=rl[zOe]=rl[qOe]=rl[CFt]=rl[HOe]=rl[VOe]=rl[GOe]=rl[UOe]=rl[ePe]=rl[nPe]=rl[rPe]=rl[iPe]=!0,rl[jOe]=rl[TFt]=rl[WOe]=!1;function pF(i,a,f,p,w,m){var b,E=a&OOe,_=a&POe,A=a&FOe;if(f&&(b=w?f(i,p,w,m):f(i)),b!==void 0)return b;if(!Fb(i))return i;var I=If(i);if(I){if(b=tOe(i),!E)return yIt(i,b)}else{var B=XA(i),N=B==TFt||B==$Oe;if(zA(i))return vIt(i,E);if(B==CFt||B==EFt||N&&!w){if(b=_||N?{}:EIt(i),!E)return _?XIe(i,HIe(b,i)):WIe(i,qIe(b,i))}else{if(!rl[B])return w?i:{};b=TOe(i,B,E)}}m||(m=new rm);var R=m.get(i);if(R)return R;m.set(i,b),IOe(i)?i.forEach(function(et){b.add(pF(et,a,f,et,i,m))}):AOe(i)&&i.forEach(function(et,st){b.set(st,pF(et,a,f,st,i,m))});var z=A?_?QIe:Kdt:_?uT:Rb,W=I?void 0:z(i);return lFt(W||i,function(et,st){W&&(st=et,et=i[st]),LW(b,st,pF(et,a,f,st,i,m))}),b}var sPe=4;function aPe(i){return pF(i,sPe)}var oPe=1,cPe=4;function uPe(i){return pF(i,oPe|cPe)}var lPe="__lodash_hash_undefined__";function hPe(i){return this.__data__.set(i,lPe),this}function fPe(i){return this.__data__.has(i)}function bF(i){var a=-1,f=i==null?0:i.length;for(this.__data__=new S5;++a<f;)this.add(i[a])}bF.prototype.add=bF.prototype.push=hPe,bF.prototype.has=fPe;function dPe(i,a){for(var f=-1,p=i==null?0:i.length;++f<p;)if(a(i[f],f,i))return!0;return!1}function _Ft(i,a){return i.has(a)}var gPe=1,pPe=2;function SFt(i,a,f,p,w,m){var b=f&gPe,E=i.length,_=a.length;if(E!=_&&!(b&&_>E))return!1;var A=m.get(i),I=m.get(a);if(A&&I)return A==a&&I==i;var B=-1,N=!0,R=f&pPe?new bF:void 0;for(m.set(i,a),m.set(a,i);++B<E;){var z=i[B],W=a[B];if(p)var et=b?p(W,z,B,a,i,m):p(z,W,B,i,a,m);if(et!==void 0){if(et)continue;N=!1;break}if(R){if(!dPe(a,function(st,at){if(!_Ft(R,at)&&(z===st||w(z,st,f,p,m)))return R.push(at)})){N=!1;break}}else if(!(z===W||w(z,W,f,p,m))){N=!1;break}}return m.delete(i),m.delete(a),N}function bPe(i){var a=-1,f=Array(i.size);return i.forEach(function(p,w){f[++a]=[w,p]}),f}function Xdt(i){var a=-1,f=Array(i.size);return i.forEach(function(p){f[++a]=p}),f}var wPe=1,vPe=2,mPe="[object Boolean]",yPe="[object Date]",xPe="[object Error]",kPe="[object Map]",EPe="[object Number]",TPe="[object RegExp]",CPe="[object Set]",_Pe="[object String]",SPe="[object Symbol]",APe="[object ArrayBuffer]",LPe="[object DataView]",AFt=tw?tw.prototype:void 0,Qdt=AFt?AFt.valueOf:void 0;function MPe(i,a,f,p,w,m,b){switch(f){case LPe:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case APe:return!(i.byteLength!=a.byteLength||!m(new CW(i),new CW(a)));case mPe:case yPe:case EPe:return RA(+i,+a);case xPe:return i.name==a.name&&i.message==a.message;case TPe:case _Pe:return i==a+"";case kPe:var E=bPe;case CPe:var _=p&wPe;if(E||(E=Xdt),i.size!=a.size&&!_)return!1;var A=b.get(i);if(A)return A==a;p|=vPe,b.set(i,a);var I=SFt(E(i),E(a),p,w,m,b);return b.delete(i),I;case SPe:if(Qdt)return Qdt.call(i)==Qdt.call(a)}return!1}var DPe=1,IPe=Object.prototype,OPe=IPe.hasOwnProperty;function PPe(i,a,f,p,w,m){var b=f&DPe,E=Kdt(i),_=E.length,A=Kdt(a),I=A.length;if(_!=I&&!b)return!1;for(var B=_;B--;){var N=E[B];if(!(b?N in a:OPe.call(a,N)))return!1}var R=m.get(i),z=m.get(a);if(R&&z)return R==a&&z==i;var W=!0;m.set(i,a),m.set(a,i);for(var et=b;++B<_;){N=E[B];var st=i[N],at=a[N];if(p)var bt=b?p(at,st,N,a,i,m):p(st,at,N,i,a,m);if(!(bt===void 0?st===at||w(st,at,f,p,m):bt)){W=!1;break}et||(et=N=="constructor")}if(W&&!et){var mt=i.constructor,yt=a.constructor;mt!=yt&&"constructor"in i&&"constructor"in a&&!(typeof mt=="function"&&mt instanceof mt&&typeof yt=="function"&&yt instanceof yt)&&(W=!1)}return m.delete(i),m.delete(a),W}var FPe=1,LFt="[object Arguments]",MFt="[object Array]",gY="[object Object]",NPe=Object.prototype,DFt=NPe.hasOwnProperty;function BPe(i,a,f,p,w,m){var b=If(i),E=If(a),_=b?MFt:XA(i),A=E?MFt:XA(a);_=_==LFt?gY:_,A=A==LFt?gY:A;var I=_==gY,B=A==gY,N=_==A;if(N&&zA(i)){if(!zA(a))return!1;b=!0,I=!1}if(N&&!I)return m||(m=new rm),b||AW(i)?SFt(i,a,f,p,w,m):MPe(i,a,_,f,p,w,m);if(!(f&FPe)){var R=I&&DFt.call(i,"__wrapped__"),z=B&&DFt.call(a,"__wrapped__");if(R||z){var W=R?i.value():i,et=z?a.value():a;return m||(m=new rm),w(W,et,f,p,m)}}return N?(m||(m=new rm),PPe(i,a,f,p,w,m)):!1}function Zdt(i,a,f,p,w){return i===a?!0:i==null||a==null||!f3(i)&&!f3(a)?i!==i&&a!==a:BPe(i,a,f,p,Zdt,w)}var RPe=1,jPe=2;function $Pe(i,a,f,p){var w=f.length,m=w,b=!p;if(i==null)return!m;for(i=Object(i);w--;){var E=f[w];if(b&&E[2]?E[1]!==i[E[0]]:!(E[0]in i))return!1}for(;++w<m;){E=f[w];var _=E[0],A=i[_],I=E[1];if(b&&E[2]){if(A===void 0&&!(_ in i))return!1}else{var B=new rm;if(p)var N=p(A,I,_,i,a,B);if(!(N===void 0?Zdt(I,A,RPe|jPe,p,B):N))return!1}}return!0}function IFt(i){return i===i&&!Fb(i)}function zPe(i){for(var a=Rb(i),f=a.length;f--;){var p=a[f],w=i[p];a[f]=[p,w,IFt(w)]}return a}function OFt(i,a){return function(f){return f==null?!1:f[i]===a&&(a!==void 0||i in Object(f))}}function qPe(i){var a=zPe(i);return a.length==1&&a[0][2]?OFt(a[0][0],a[0][1]):function(f){return f===i||$Pe(f,i,a)}}function HPe(i,a){return i!=null&&a in Object(i)}function PFt(i,a,f){a=hY(a,i);for(var p=-1,w=a.length,m=!1;++p<w;){var b=gF(a[p]);if(!(m=i!=null&&f(i,b)))break;i=i[b]}return m||++p!=w?m:(w=i==null?0:i.length,!!w&&rdt(w)&&MW(b,w)&&(If(i)||$A(i)))}function FFt(i,a){return i!=null&&PFt(i,a,HPe)}var VPe=1,GPe=2;function UPe(i,a){return Udt(i)&&IFt(a)?OFt(gF(i),a):function(f){var p=RIe(f,i);return p===void 0&&p===a?FFt(f,i):Zdt(a,p,VPe|GPe)}}function WPe(i){return function(a){return a==null?void 0:a[i]}}function YPe(i){return function(a){return fY(a,i)}}function KPe(i){return Udt(i)?WPe(gF(i)):YPe(i)}function pk(i){return typeof i=="function"?i:i==null?lT:typeof i=="object"?If(i)?UPe(i[0],i[1]):qPe(i):KPe(i)}function Jdt(i,a){return i&&tdt(i,a,Rb)}function XPe(i,a){return function(f,p){if(f==null)return f;if(!ck(f))return i(f,p);for(var w=f.length,m=a?w:-1,b=Object(f);(a?m--:++m<w)&&p(b[m],m,b)!==!1;);return f}}var QPe=XPe(Jdt);const pY=QPe;var ZPe=function(){return nm.Date.now()};const NFt=ZPe;var BFt=Object.prototype,JPe=BFt.hasOwnProperty,tFe=DW(function(i,a){i=Object(i);var f=-1,p=a.length,w=p>2?a[2]:void 0;for(w&&nF(a[0],a[1],w)&&(p=1);++f<p;)for(var m=a[f],b=uT(m),E=-1,_=b.length;++E<_;){var A=b[E],I=i[A];(I===void 0||RA(I,BFt[A])&&!JPe.call(i,A))&&(i[A]=m[A])}return i});const iL=tFe;function eFe(i,a,f){for(var p=-1,w=i==null?0:i.length;++p<w;)if(f(a,i[p]))return!0;return!1}function bY(i){var a=i==null?0:i.length;return a?i[a-1]:void 0}function t0t(i){return typeof i=="function"?i:lT}function cr(i,a){var f=If(i)?lFt:pY;return f(i,t0t(a))}function nFe(i,a){var f=[];return pY(i,function(p,w,m){a(p,w,m)&&f.push(p)}),f}function D5(i,a){var f=If(i)?gFt:nFe;return f(i,pk(a))}function rFe(i){return function(a,f,p){var w=Object(a);if(!ck(a)){var m=pk(f);a=Rb(a),f=function(E){return m(w[E],E,w)}}var b=i(a,f,p);return b>-1?w[m?a[b]:b]:void 0}}var iFe=Math.max;function sFe(i,a,f){var p=i==null?0:i.length;if(!p)return-1;var w=f==null?0:EIe(f);return w<0&&(w=iFe(p+w,0)),hFt(i,pk(a),w)}var aFe=rFe(sFe);const e0t=aFe;function RFt(i,a){var f=-1,p=ck(i)?Array(i.length):[];return pY(i,function(w,m,b){p[++f]=a(w,m,b)}),p}function Ff(i,a){var f=If(i)?nL:RFt;return f(i,pk(a))}function oFe(i,a){return i==null?i:tdt(i,t0t(a),uT)}function cFe(i,a){return i&&Jdt(i,t0t(a))}function uFe(i,a){return i>a}var lFe=Object.prototype,hFe=lFe.hasOwnProperty;function fFe(i,a){return i!=null&&hFe.call(i,a)}function za(i,a){return i!=null&&PFt(i,a,fFe)}function dFe(i,a){return nL(a,function(f){return i[f]})}function I5(i){return i==null?[]:dFe(i,Rb(i))}function Jh(i){return i===void 0}function jFt(i,a){return i<a}function wY(i,a){var f={};return a=pk(a),Jdt(i,function(p,w,m){TW(f,w,a(p,w,m))}),f}function n0t(i,a,f){for(var p=-1,w=i.length;++p<w;){var m=i[p],b=a(m);if(b!=null&&(E===void 0?b===b&&!vT(b):f(b,E)))var E=b,_=m}return _}function mT(i){return i&&i.length?n0t(i,lT,uFe):void 0}function wF(i){return i&&i.length?n0t(i,lT,jFt):void 0}function r0t(i,a){return i&&i.length?n0t(i,pk(a),jFt):void 0}function gFe(i,a,f,p){if(!Fb(i))return i;a=hY(a,i);for(var w=-1,m=a.length,b=m-1,E=i;E!=null&&++w<m;){var _=gF(a[w]),A=f;if(_==="__proto__"||_==="constructor"||_==="prototype")return i;if(w!=b){var I=E[_];A=p?p(I,_,E):void 0,A===void 0&&(A=Fb(I)?I:MW(a[w+1])?[]:{})}LW(E,_,A),E=E[_]}return i}function pFe(i,a,f){for(var p=-1,w=a.length,m={};++p<w;){var b=a[p],E=fY(i,b);f(E,b)&&gFe(m,hY(b,i),E)}return m}function bFe(i,a){var f=i.length;for(i.sort(a);f--;)i[f]=i[f].value;return i}function wFe(i,a){if(i!==a){var f=i!==void 0,p=i===null,w=i===i,m=vT(i),b=a!==void 0,E=a===null,_=a===a,A=vT(a);if(!E&&!A&&!m&&i>a||m&&b&&_&&!E&&!A||p&&b&&_||!f&&_||!w)return 1;if(!p&&!m&&!A&&i<a||A&&f&&w&&!p&&!m||E&&f&&w||!b&&w||!_)return-1}return 0}function vFe(i,a,f){for(var p=-1,w=i.criteria,m=a.criteria,b=w.length,E=f.length;++p<b;){var _=wFe(w[p],m[p]);if(_){if(p>=E)return _;var A=f[p];return _*(A=="desc"?-1:1)}}return i.index-a.index}function mFe(i,a,f){a.length?a=nL(a,function(m){return If(m)?function(b){return fY(b,m.length===1?m[0]:m)}:m}):a=[lT];var p=-1;a=nL(a,SW(pk));var w=RFt(i,function(m,b,E){var _=nL(a,function(A){return A(m)});return{criteria:_,index:++p,value:m}});return bFe(w,function(m,b){return vFe(m,b,f)})}function yFe(i,a){return pFe(i,a,function(f,p){return FFt(i,p)})}var xFe=$Ie(function(i,a){return i==null?{}:yFe(i,a)});const vF=xFe;var kFe=Math.ceil,EFe=Math.max;function TFe(i,a,f,p){for(var w=-1,m=EFe(kFe((a-i)/(f||1)),0),b=Array(m);m--;)b[p?m:++w]=i,i+=f;return b}function CFe(i){return function(a,f,p){return p&&typeof p!="number"&&nF(a,f,p)&&(f=p=void 0),a=lY(a),f===void 0?(f=a,a=0):f=lY(f),p=p===void 0?a<f?1:-1:lY(p),TFe(a,f,p,i)}}var _Fe=CFe();const yT=_Fe;function SFe(i,a,f,p,w){return w(i,function(m,b,E){f=p?(p=!1,m):a(f,m,b,E)}),f}function mF(i,a,f){var p=If(i)?zIe:SFe,w=arguments.length<3;return p(i,pk(a),f,w,pY)}var AFe=DW(function(i,a){if(i==null)return[];var f=a.length;return f>1&&nF(i,a[0],a[1])?a=[]:f>2&&nF(a[0],a[1],a[2])&&(a=[a[0]]),mFe(i,dY(a,1),[])});const yF=AFe;var LFe=1/0,MFe=KA&&1/Xdt(new KA([,-0]))[1]==LFe?function(i){return new KA(i)}:TIe;const DFe=MFe;var IFe=200;function OFe(i,a,f){var p=-1,w=AIe,m=i.length,b=!0,E=[],_=E;if(f)b=!1,w=eFe;else if(m>=IFe){var A=a?null:DFe(i);if(A)return Xdt(A);b=!1,w=_Ft,_=new bF}else _=a?[]:E;t:for(;++p<m;){var I=i[p],B=a?a(I):I;if(I=f||I!==0?I:0,b&&B===B){for(var N=_.length;N--;)if(_[N]===B)continue t;a&&_.push(B),E.push(I)}else w(_,B,f)||(_!==E&&_.push(B),E.push(I))}return E}var PFe=DW(function(i){return OFe(dY(i,1,_It,!0))});const FFe=PFe;var NFe=0;function vY(i){var a=++NFe;return fFt(i)+a}function BFe(i,a,f){for(var p=-1,w=i.length,m=a.length,b={};++p<w;){var E=p<m?a[p]:void 0;f(b,i[p],E)}return b}function RFe(i,a){return BFe(i||[],a||[],LW)}var jFe="\0",xT="\0",$Ft="";class c1{constructor(a={}){this._isDirected=za(a,"directed")?a.directed:!0,this._isMultigraph=za(a,"multigraph")?a.multigraph:!1,this._isCompound=za(a,"compound")?a.compound:!1,this._label=void 0,this._defaultNodeLabelFn=HA(void 0),this._defaultEdgeLabelFn=HA(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[xT]={}),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(a){return this._label=a,this}graph(){return this._label}setDefaultNodeLabel(a){return BA(a)||(a=HA(a)),this._defaultNodeLabelFn=a,this}nodeCount(){return this._nodeCount}nodes(){return Rb(this._nodes)}sources(){var a=this;return D5(this.nodes(),function(f){return oF(a._in[f])})}sinks(){var a=this;return D5(this.nodes(),function(f){return oF(a._out[f])})}setNodes(a,f){var p=arguments,w=this;return cr(a,function(m){p.length>1?w.setNode(m,f):w.setNode(m)}),this}setNode(a,f){return za(this._nodes,a)?(arguments.length>1&&(this._nodes[a]=f),this):(this._nodes[a]=arguments.length>1?f:this._defaultNodeLabelFn(a),this._isCompound&&(this._parent[a]=xT,this._children[a]={},this._children[xT][a]=!0),this._in[a]={},this._preds[a]={},this._out[a]={},this._sucs[a]={},++this._nodeCount,this)}node(a){return this._nodes[a]}hasNode(a){return za(this._nodes,a)}removeNode(a){var f=this;if(za(this._nodes,a)){var p=function(w){f.removeEdge(f._edgeObjs[w])};delete this._nodes[a],this._isCompound&&(this._removeFromParentsChildList(a),delete this._parent[a],cr(this.children(a),function(w){f.setParent(w)}),delete this._children[a]),cr(Rb(this._in[a]),p),delete this._in[a],delete this._preds[a],cr(Rb(this._out[a]),p),delete this._out[a],delete this._sucs[a],--this._nodeCount}return this}setParent(a,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Jh(f))f=xT;else{f+="";for(var p=f;!Jh(p);p=this.parent(p))if(p===a)throw new Error("Setting "+f+" as parent of "+a+" would create a cycle");this.setNode(f)}return this.setNode(a),this._removeFromParentsChildList(a),this._parent[a]=f,this._children[f][a]=!0,this}_removeFromParentsChildList(a){delete this._children[this._parent[a]][a]}parent(a){if(this._isCompound){var f=this._parent[a];if(f!==xT)return f}}children(a){if(Jh(a)&&(a=xT),this._isCompound){var f=this._children[a];if(f)return Rb(f)}else{if(a===xT)return this.nodes();if(this.hasNode(a))return[]}}predecessors(a){var f=this._preds[a];if(f)return Rb(f)}successors(a){var f=this._sucs[a];if(f)return Rb(f)}neighbors(a){var f=this.predecessors(a);if(f)return FFe(f,this.successors(a))}isLeaf(a){var f;return this.isDirected()?f=this.successors(a):f=this.neighbors(a),f.length===0}filterNodes(a){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var p=this;cr(this._nodes,function(b,E){a(E)&&f.setNode(E,b)}),cr(this._edgeObjs,function(b){f.hasNode(b.v)&&f.hasNode(b.w)&&f.setEdge(b,p.edge(b))});var w={};function m(b){var E=p.parent(b);return E===void 0||f.hasNode(E)?(w[b]=E,E):E in w?w[E]:m(E)}return this._isCompound&&cr(f.nodes(),function(b){f.setParent(b,m(b))}),f}setDefaultEdgeLabel(a){return BA(a)||(a=HA(a)),this._defaultEdgeLabelFn=a,this}edgeCount(){return this._edgeCount}edges(){return I5(this._edgeObjs)}setPath(a,f){var p=this,w=arguments;return mF(a,function(m,b){return w.length>1?p.setEdge(m,b,f):p.setEdge(m,b),b}),this}setEdge(){var a,f,p,w,m=!1,b=arguments[0];typeof b=="object"&&b!==null&&"v"in b?(a=b.v,f=b.w,p=b.name,arguments.length===2&&(w=arguments[1],m=!0)):(a=b,f=arguments[1],p=arguments[3],arguments.length>2&&(w=arguments[2],m=!0)),a=""+a,f=""+f,Jh(p)||(p=""+p);var E=xF(this._isDirected,a,f,p);if(za(this._edgeLabels,E))return m&&(this._edgeLabels[E]=w),this;if(!Jh(p)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(a),this.setNode(f),this._edgeLabels[E]=m?w:this._defaultEdgeLabelFn(a,f,p);var _=$Fe(this._isDirected,a,f,p);return a=_.v,f=_.w,Object.freeze(_),this._edgeObjs[E]=_,zFt(this._preds[f],a),zFt(this._sucs[a],f),this._in[f][E]=_,this._out[a][E]=_,this._edgeCount++,this}edge(a,f,p){var w=arguments.length===1?i0t(this._isDirected,arguments[0]):xF(this._isDirected,a,f,p);return this._edgeLabels[w]}hasEdge(a,f,p){var w=arguments.length===1?i0t(this._isDirected,arguments[0]):xF(this._isDirected,a,f,p);return za(this._edgeLabels,w)}removeEdge(a,f,p){var w=arguments.length===1?i0t(this._isDirected,arguments[0]):xF(this._isDirected,a,f,p),m=this._edgeObjs[w];return m&&(a=m.v,f=m.w,delete this._edgeLabels[w],delete this._edgeObjs[w],qFt(this._preds[f],a),qFt(this._sucs[a],f),delete this._in[f][w],delete this._out[a][w],this._edgeCount--),this}inEdges(a,f){var p=this._in[a];if(p){var w=I5(p);return f?D5(w,function(m){return m.v===f}):w}}outEdges(a,f){var p=this._out[a];if(p){var w=I5(p);return f?D5(w,function(m){return m.w===f}):w}}nodeEdges(a,f){var p=this.inEdges(a,f);if(p)return p.concat(this.outEdges(a,f))}}c1.prototype._nodeCount=0,c1.prototype._edgeCount=0;function zFt(i,a){i[a]?i[a]++:i[a]=1}function qFt(i,a){--i[a]||delete i[a]}function xF(i,a,f,p){var w=""+a,m=""+f;if(!i&&w>m){var b=w;w=m,m=b}return w+$Ft+m+$Ft+(Jh(p)?jFe:p)}function $Fe(i,a,f,p){var w=""+a,m=""+f;if(!i&&w>m){var b=w;w=m,m=b}var E={v:w,w:m};return p&&(E.name=p),E}function i0t(i,a){return xF(i,a.v,a.w,a.name)}class zFe{constructor(){var a={};a._next=a._prev=a,this._sentinel=a}dequeue(){var a=this._sentinel,f=a._prev;if(f!==a)return HFt(f),f}enqueue(a){var f=this._sentinel;a._prev&&a._next&&HFt(a),a._next=f._next,f._next._prev=a,f._next=a,a._prev=f}toString(){for(var a=[],f=this._sentinel,p=f._prev;p!==f;)a.push(JSON.stringify(p,qFe)),p=p._prev;return"["+a.join(", ")+"]"}}function HFt(i){i._prev._next=i._next,i._next._prev=i._prev,delete i._next,delete i._prev}function qFe(i,a){if(i!=="_next"&&i!=="_prev")return a}var HFe=HA(1);function VFe(i,a){if(i.nodeCount()<=1)return[];var f=UFe(i,a||HFe),p=GFe(f.graph,f.buckets,f.zeroIdx);return rL(Ff(p,function(w){return i.outEdges(w.v,w.w)}))}function GFe(i,a,f){for(var p=[],w=a[a.length-1],m=a[0],b;i.nodeCount();){for(;b=m.dequeue();)s0t(i,a,f,b);for(;b=w.dequeue();)s0t(i,a,f,b);if(i.nodeCount()){for(var E=a.length-2;E>0;--E)if(b=a[E].dequeue(),b){p=p.concat(s0t(i,a,f,b,!0));break}}}return p}function s0t(i,a,f,p,w){var m=w?[]:void 0;return cr(i.inEdges(p.v),function(b){var E=i.edge(b),_=i.node(b.v);w&&m.push({v:b.v,w:b.w}),_.out-=E,a0t(a,f,_)}),cr(i.outEdges(p.v),function(b){var E=i.edge(b),_=b.w,A=i.node(_);A.in-=E,a0t(a,f,A)}),i.removeNode(p.v),m}function UFe(i,a){var f=new c1,p=0,w=0;cr(i.nodes(),function(E){f.setNode(E,{v:E,in:0,out:0})}),cr(i.edges(),function(E){var _=f.edge(E.v,E.w)||0,A=a(E),I=_+A;f.setEdge(E.v,E.w,I),w=Math.max(w,f.node(E.v).out+=A),p=Math.max(p,f.node(E.w).in+=A)});var m=yT(w+p+3).map(function(){return new zFe}),b=p+1;return cr(f.nodes(),function(E){a0t(m,b,f.node(E))}),{graph:f,buckets:m,zeroIdx:b}}function a0t(i,a,f){f.out?f.in?i[f.out-f.in+a].enqueue(f):i[i.length-1].enqueue(f):i[0].enqueue(f)}function WFe(i){var a=i.graph().acyclicer==="greedy"?VFe(i,f(i)):YFe(i);cr(a,function(p){var w=i.edge(p);i.removeEdge(p),w.forwardName=p.name,w.reversed=!0,i.setEdge(p.w,p.v,w,vY("rev"))});function f(p){return function(w){return p.edge(w).weight}}}function YFe(i){var a=[],f={},p={};function w(m){za(p,m)||(p[m]=!0,f[m]=!0,cr(i.outEdges(m),function(b){za(f,b.w)?a.push(b):w(b.w)}),delete f[m])}return cr(i.nodes(),w),a}function KFe(i){cr(i.edges(),function(a){var f=i.edge(a);if(f.reversed){i.removeEdge(a);var p=f.forwardName;delete f.reversed,delete f.forwardName,i.setEdge(a.w,a.v,f,p)}})}function sL(i,a,f,p){var w;do w=vY(p);while(i.hasNode(w));return f.dummy=a,i.setNode(w,f),w}function XFe(i){var a=new c1().setGraph(i.graph());return cr(i.nodes(),function(f){a.setNode(f,i.node(f))}),cr(i.edges(),function(f){var p=a.edge(f.v,f.w)||{weight:0,minlen:1},w=i.edge(f);a.setEdge(f.v,f.w,{weight:p.weight+w.weight,minlen:Math.max(p.minlen,w.minlen)})}),a}function VFt(i){var a=new c1({multigraph:i.isMultigraph()}).setGraph(i.graph());return cr(i.nodes(),function(f){i.children(f).length||a.setNode(f,i.node(f))}),cr(i.edges(),function(f){a.setEdge(f,i.edge(f))}),a}function GFt(i,a){var f=i.x,p=i.y,w=a.x-f,m=a.y-p,b=i.width/2,E=i.height/2;if(!w&&!m)throw new Error("Not possible to find intersection inside of the rectangle");var _,A;return Math.abs(m)*b>Math.abs(w)*E?(m<0&&(E=-E),_=E*w/m,A=E):(w<0&&(b=-b),_=b,A=b*m/w),{x:f+_,y:p+A}}function mY(i){var a=Ff(yT(WFt(i)+1),function(){return[]});return cr(i.nodes(),function(f){var p=i.node(f),w=p.rank;Jh(w)||(a[w][p.order]=f)}),a}function QFe(i){var a=wF(Ff(i.nodes(),function(f){return i.node(f).rank}));cr(i.nodes(),function(f){var p=i.node(f);za(p,"rank")&&(p.rank-=a)})}function ZFe(i){var a=wF(Ff(i.nodes(),function(m){return i.node(m).rank})),f=[];cr(i.nodes(),function(m){var b=i.node(m).rank-a;f[b]||(f[b]=[]),f[b].push(m)});var p=0,w=i.graph().nodeRankFactor;cr(f,function(m,b){Jh(m)&&b%w!==0?--p:p&&cr(m,function(E){i.node(E).rank+=p})})}function UFt(i,a,f,p){var w={width:0,height:0};return arguments.length>=4&&(w.rank=f,w.order=p),sL(i,"border",w,a)}function WFt(i){return mT(Ff(i.nodes(),function(a){var f=i.node(a).rank;if(!Jh(f))return f}))}function JFe(i,a){var f={lhs:[],rhs:[]};return cr(i,function(p){a(p)?f.lhs.push(p):f.rhs.push(p)}),f}function tNe(i,a){var f=NFt();try{return a()}finally{console.log(i+" time: "+(NFt()-f)+"ms")}}function eNe(i,a){return a()}function nNe(i){function a(f){var p=i.children(f),w=i.node(f);if(p.length&&cr(p,a),za(w,"minRank")){w.borderLeft=[],w.borderRight=[];for(var m=w.minRank,b=w.maxRank+1;m<b;++m)YFt(i,"borderLeft","_bl",f,w,m),YFt(i,"borderRight","_br",f,w,m)}}cr(i.children(),a)}function YFt(i,a,f,p,w,m){var b={width:0,height:0,rank:m,borderType:a},E=w[a][m-1],_=sL(i,"border",b,f);w[a][m]=_,i.setParent(_,p),E&&i.setEdge(E,_,{weight:1})}function rNe(i){var a=i.graph().rankdir.toLowerCase();(a==="lr"||a==="rl")&&KFt(i)}function iNe(i){var a=i.graph().rankdir.toLowerCase();(a==="bt"||a==="rl")&&sNe(i),(a==="lr"||a==="rl")&&(aNe(i),KFt(i))}function KFt(i){cr(i.nodes(),function(a){XFt(i.node(a))}),cr(i.edges(),function(a){XFt(i.edge(a))})}function XFt(i){var a=i.width;i.width=i.height,i.height=a}function sNe(i){cr(i.nodes(),function(a){o0t(i.node(a))}),cr(i.edges(),function(a){var f=i.edge(a);cr(f.points,o0t),za(f,"y")&&o0t(f)})}function o0t(i){i.y=-i.y}function aNe(i){cr(i.nodes(),function(a){c0t(i.node(a))}),cr(i.edges(),function(a){var f=i.edge(a);cr(f.points,c0t),za(f,"x")&&c0t(f)})}function c0t(i){var a=i.x;i.x=i.y,i.y=a}function oNe(i){i.graph().dummyChains=[],cr(i.edges(),function(a){cNe(i,a)})}function cNe(i,a){var f=a.v,p=i.node(f).rank,w=a.w,m=i.node(w).rank,b=a.name,E=i.edge(a),_=E.labelRank;if(m!==p+1){i.removeEdge(a);var A,I,B;for(B=0,++p;p<m;++B,++p)E.points=[],I={width:0,height:0,edgeLabel:E,edgeObj:a,rank:p},A=sL(i,"edge",I,"_d"),p===_&&(I.width=E.width,I.height=E.height,I.dummy="edge-label",I.labelpos=E.labelpos),i.setEdge(f,A,{weight:E.weight},b),B===0&&i.graph().dummyChains.push(A),f=A;i.setEdge(f,w,{weight:E.weight},b)}}function uNe(i){cr(i.graph().dummyChains,function(a){var f=i.node(a),p=f.edgeLabel,w;for(i.setEdge(f.edgeObj,p);f.dummy;)w=i.successors(a)[0],i.removeNode(a),p.points.push({x:f.x,y:f.y}),f.dummy==="edge-label"&&(p.x=f.x,p.y=f.y,p.width=f.width,p.height=f.height),a=w,f=i.node(a)})}function u0t(i){var a={};function f(p){var w=i.node(p);if(za(a,p))return w.rank;a[p]=!0;var m=wF(Ff(i.outEdges(p),function(b){return f(b.w)-i.edge(b).minlen}));return(m===Number.POSITIVE_INFINITY||m===void 0||m===null)&&(m=0),w.rank=m}cr(i.sources(),f)}function kF(i,a){return i.node(a.w).rank-i.node(a.v).rank-i.edge(a).minlen}function QFt(i){var a=new c1({directed:!1}),f=i.nodes()[0],p=i.nodeCount();a.setNode(f,{});for(var w,m;lNe(a,i)<p;)w=hNe(a,i),m=a.hasNode(w.v)?kF(i,w):-kF(i,w),fNe(a,i,m);return a}function lNe(i,a){function f(p){cr(a.nodeEdges(p),function(w){var m=w.v,b=p===m?w.w:m;!i.hasNode(b)&&!kF(a,w)&&(i.setNode(b,{}),i.setEdge(p,b,{}),f(b))})}return cr(i.nodes(),f),i.nodeCount()}function hNe(i,a){return r0t(a.edges(),function(f){if(i.hasNode(f.v)!==i.hasNode(f.w))return kF(a,f)})}function fNe(i,a,f){cr(i.nodes(),function(p){a.node(p).rank+=f})}function dNe(){}dNe.prototype=new Error;function ZFt(i,a,f){If(a)||(a=[a]);var p=(i.isDirected()?i.successors:i.neighbors).bind(i),w=[],m={};return cr(a,function(b){if(!i.hasNode(b))throw new Error("Graph does not have node: "+b);JFt(i,b,f==="post",m,p,w)}),w}function JFt(i,a,f,p,w,m){za(p,a)||(p[a]=!0,f||m.push(a),cr(w(a),function(b){JFt(i,b,f,p,w,m)}),f&&m.push(a))}function gNe(i,a){return ZFt(i,a,"post")}function pNe(i,a){return ZFt(i,a,"pre")}kT.initLowLimValues=h0t,kT.initCutValues=l0t,kT.calcCutValue=tNt,kT.leaveEdge=nNt,kT.enterEdge=rNt,kT.exchangeEdges=iNt;function kT(i){i=XFe(i),u0t(i);var a=QFt(i);h0t(a),l0t(a,i);for(var f,p;f=nNt(a);)p=rNt(a,i,f),iNt(a,i,f,p)}function l0t(i,a){var f=gNe(i,i.nodes());f=f.slice(0,f.length-1),cr(f,function(p){bNe(i,a,p)})}function bNe(i,a,f){var p=i.node(f),w=p.parent;i.edge(f,w).cutvalue=tNt(i,a,f)}function tNt(i,a,f){var p=i.node(f),w=p.parent,m=!0,b=a.edge(f,w),E=0;return b||(m=!1,b=a.edge(w,f)),E=b.weight,cr(a.nodeEdges(f),function(_){var A=_.v===f,I=A?_.w:_.v;if(I!==w){var B=A===m,N=a.edge(_).weight;if(E+=B?N:-N,vNe(i,f,I)){var R=i.edge(f,I).cutvalue;E+=B?-R:R}}}),E}function h0t(i,a){arguments.length<2&&(a=i.nodes()[0]),eNt(i,{},1,a)}function eNt(i,a,f,p,w){var m=f,b=i.node(p);return a[p]=!0,cr(i.neighbors(p),function(E){za(a,E)||(f=eNt(i,a,f,E,p))}),b.low=m,b.lim=f++,w?b.parent=w:delete b.parent,f}function nNt(i){return e0t(i.edges(),function(a){return i.edge(a).cutvalue<0})}function rNt(i,a,f){var p=f.v,w=f.w;a.hasEdge(p,w)||(p=f.w,w=f.v);var m=i.node(p),b=i.node(w),E=m,_=!1;m.lim>b.lim&&(E=b,_=!0);var A=D5(a.edges(),function(I){return _===sNt(i,i.node(I.v),E)&&_!==sNt(i,i.node(I.w),E)});return r0t(A,function(I){return kF(a,I)})}function iNt(i,a,f,p){var w=f.v,m=f.w;i.removeEdge(w,m),i.setEdge(p.v,p.w,{}),h0t(i),l0t(i,a),wNe(i,a)}function wNe(i,a){var f=e0t(i.nodes(),function(w){return!a.node(w).parent}),p=pNe(i,f);p=p.slice(1),cr(p,function(w){var m=i.node(w).parent,b=a.edge(w,m),E=!1;b||(b=a.edge(m,w),E=!0),a.node(w).rank=a.node(m).rank+(E?b.minlen:-b.minlen)})}function vNe(i,a,f){return i.hasEdge(a,f)}function sNt(i,a,f){return f.low<=a.lim&&a.lim<=f.lim}function mNe(i){switch(i.graph().ranker){case"network-simplex":aNt(i);break;case"tight-tree":xNe(i);break;case"longest-path":yNe(i);break;default:aNt(i)}}var yNe=u0t;function xNe(i){u0t(i),QFt(i)}function aNt(i){kT(i)}function kNe(i){var a=sL(i,"root",{},"_root"),f=ENe(i),p=mT(I5(f))-1,w=2*p+1;i.graph().nestingRoot=a,cr(i.edges(),function(b){i.edge(b).minlen*=w});var m=TNe(i)+1;cr(i.children(),function(b){oNt(i,a,w,m,p,f,b)}),i.graph().nodeRankFactor=w}function oNt(i,a,f,p,w,m,b){var E=i.children(b);if(!E.length){b!==a&&i.setEdge(a,b,{weight:0,minlen:f});return}var _=UFt(i,"_bt"),A=UFt(i,"_bb"),I=i.node(b);i.setParent(_,b),I.borderTop=_,i.setParent(A,b),I.borderBottom=A,cr(E,function(B){oNt(i,a,f,p,w,m,B);var N=i.node(B),R=N.borderTop?N.borderTop:B,z=N.borderBottom?N.borderBottom:B,W=N.borderTop?p:2*p,et=R!==z?1:w-m[b]+1;i.setEdge(_,R,{weight:W,minlen:et,nestingEdge:!0}),i.setEdge(z,A,{weight:W,minlen:et,nestingEdge:!0})}),i.parent(b)||i.setEdge(a,_,{weight:0,minlen:w+m[b]})}function ENe(i){var a={};function f(p,w){var m=i.children(p);m&&m.length&&cr(m,function(b){f(b,w+1)}),a[p]=w}return cr(i.children(),function(p){f(p,1)}),a}function TNe(i){return mF(i.edges(),function(a,f){return a+i.edge(f).weight},0)}function CNe(i){var a=i.graph();i.removeNode(a.nestingRoot),delete a.nestingRoot,cr(i.edges(),function(f){var p=i.edge(f);p.nestingEdge&&i.removeEdge(f)})}function _Ne(i,a,f){var p={},w;cr(f,function(m){for(var b=i.parent(m),E,_;b;){if(E=i.parent(b),E?(_=p[E],p[E]=b):(_=w,w=b),_&&_!==b){a.setEdge(_,b);return}b=E}})}function SNe(i,a,f){var p=ANe(i),w=new c1({compound:!0}).setGraph({root:p}).setDefaultNodeLabel(function(m){return i.node(m)});return cr(i.nodes(),function(m){var b=i.node(m),E=i.parent(m);(b.rank===a||b.minRank<=a&&a<=b.maxRank)&&(w.setNode(m),w.setParent(m,E||p),cr(i[f](m),function(_){var A=_.v===m?_.w:_.v,I=w.edge(A,m),B=Jh(I)?0:I.weight;w.setEdge(A,m,{weight:i.edge(_).weight+B})}),za(b,"minRank")&&w.setNode(m,{borderLeft:b.borderLeft[a],borderRight:b.borderRight[a]}))}),w}function ANe(i){for(var a;i.hasNode(a=vY("_root")););return a}function LNe(i,a){for(var f=0,p=1;p<a.length;++p)f+=MNe(i,a[p-1],a[p]);return f}function MNe(i,a,f){for(var p=RFe(f,Ff(f,function(A,I){return I})),w=rL(Ff(a,function(A){return yF(Ff(i.outEdges(A),function(I){return{pos:p[I.w],weight:i.edge(I).weight}}),"pos")})),m=1;m<f.length;)m<<=1;var b=2*m-1;m-=1;var E=Ff(new Array(b),function(){return 0}),_=0;return cr(w.forEach(function(A){var I=A.pos+m;E[I]+=A.weight;for(var B=0;I>0;)I%2&&(B+=E[I+1]),I=I-1>>1,E[I]+=A.weight;_+=A.weight*B})),_}function DNe(i){var a={},f=D5(i.nodes(),function(E){return!i.children(E).length}),p=mT(Ff(f,function(E){return i.node(E).rank})),w=Ff(yT(p+1),function(){return[]});function m(E){if(!za(a,E)){a[E]=!0;var _=i.node(E);w[_.rank].push(E),cr(i.successors(E),m)}}var b=yF(f,function(E){return i.node(E).rank});return cr(b,m),w}function INe(i,a){return Ff(a,function(f){var p=i.inEdges(f);if(p.length){var w=mF(p,function(m,b){var E=i.edge(b),_=i.node(b.v);return{sum:m.sum+E.weight*_.order,weight:m.weight+E.weight}},{sum:0,weight:0});return{v:f,barycenter:w.sum/w.weight,weight:w.weight}}else return{v:f}})}function ONe(i,a){var f={};cr(i,function(w,m){var b=f[w.v]={indegree:0,in:[],out:[],vs:[w.v],i:m};Jh(w.barycenter)||(b.barycenter=w.barycenter,b.weight=w.weight)}),cr(a.edges(),function(w){var m=f[w.v],b=f[w.w];!Jh(m)&&!Jh(b)&&(b.indegree++,m.out.push(f[w.w]))});var p=D5(f,function(w){return!w.indegree});return PNe(p)}function PNe(i){var a=[];function f(m){return function(b){b.merged||(Jh(b.barycenter)||Jh(m.barycenter)||b.barycenter>=m.barycenter)&&FNe(m,b)}}function p(m){return function(b){b.in.push(m),--b.indegree===0&&i.push(b)}}for(;i.length;){var w=i.pop();a.push(w),cr(w.in.reverse(),f(w)),cr(w.out,p(w))}return Ff(D5(a,function(m){return!m.merged}),function(m){return vF(m,["vs","i","barycenter","weight"])})}function FNe(i,a){var f=0,p=0;i.weight&&(f+=i.barycenter*i.weight,p+=i.weight),a.weight&&(f+=a.barycenter*a.weight,p+=a.weight),i.vs=a.vs.concat(i.vs),i.barycenter=f/p,i.weight=p,i.i=Math.min(a.i,i.i),a.merged=!0}function NNe(i,a){var f=JFe(i,function(I){return za(I,"barycenter")}),p=f.lhs,w=yF(f.rhs,function(I){return-I.i}),m=[],b=0,E=0,_=0;p.sort(BNe(!!a)),_=cNt(m,w,_),cr(p,function(I){_+=I.vs.length,m.push(I.vs),b+=I.barycenter*I.weight,E+=I.weight,_=cNt(m,w,_)});var A={vs:rL(m)};return E&&(A.barycenter=b/E,A.weight=E),A}function cNt(i,a,f){for(var p;a.length&&(p=bY(a)).i<=f;)a.pop(),i.push(p.vs),f++;return f}function BNe(i){return function(a,f){return a.barycenter<f.barycenter?-1:a.barycenter>f.barycenter?1:i?f.i-a.i:a.i-f.i}}function uNt(i,a,f,p){var w=i.children(a),m=i.node(a),b=m?m.borderLeft:void 0,E=m?m.borderRight:void 0,_={};b&&(w=D5(w,function(z){return z!==b&&z!==E}));var A=INe(i,w);cr(A,function(z){if(i.children(z.v).length){var W=uNt(i,z.v,f,p);_[z.v]=W,za(W,"barycenter")&&jNe(z,W)}});var I=ONe(A,f);RNe(I,_);var B=NNe(I,p);if(b&&(B.vs=rL([b,B.vs,E]),i.predecessors(b).length)){var N=i.node(i.predecessors(b)[0]),R=i.node(i.predecessors(E)[0]);za(B,"barycenter")||(B.barycenter=0,B.weight=0),B.barycenter=(B.barycenter*B.weight+N.order+R.order)/(B.weight+2),B.weight+=2}return B}function RNe(i,a){cr(i,function(f){f.vs=rL(f.vs.map(function(p){return a[p]?a[p].vs:p}))})}function jNe(i,a){Jh(i.barycenter)?(i.barycenter=a.barycenter,i.weight=a.weight):(i.barycenter=(i.barycenter*i.weight+a.barycenter*a.weight)/(i.weight+a.weight),i.weight+=a.weight)}function $Ne(i){var a=WFt(i),f=lNt(i,yT(1,a+1),"inEdges"),p=lNt(i,yT(a-1,-1,-1),"outEdges"),w=DNe(i);hNt(i,w);for(var m=Number.POSITIVE_INFINITY,b,E=0,_=0;_<4;++E,++_){zNe(E%2?f:p,E%4>=2),w=mY(i);var A=LNe(i,w);A<m&&(_=0,b=uPe(w),m=A)}hNt(i,b)}function lNt(i,a,f){return Ff(a,function(p){return SNe(i,p,f)})}function zNe(i,a){var f=new c1;cr(i,function(p){var w=p.graph().root,m=uNt(p,w,f,a);cr(m.vs,function(b,E){p.node(b).order=E}),_Ne(p,f,m.vs)})}function hNt(i,a){cr(a,function(f){cr(f,function(p,w){i.node(p).order=w})})}function qNe(i){var a=VNe(i);cr(i.graph().dummyChains,function(f){for(var p=i.node(f),w=p.edgeObj,m=HNe(i,a,w.v,w.w),b=m.path,E=m.lca,_=0,A=b[_],I=!0;f!==w.w;){if(p=i.node(f),I){for(;(A=b[_])!==E&&i.node(A).maxRank<p.rank;)_++;A===E&&(I=!1)}if(!I){for(;_<b.length-1&&i.node(A=b[_+1]).minRank<=p.rank;)_++;A=b[_]}i.setParent(f,A),f=i.successors(f)[0]}})}function HNe(i,a,f,p){var w=[],m=[],b=Math.min(a[f].low,a[p].low),E=Math.max(a[f].lim,a[p].lim),_,A;_=f;do _=i.parent(_),w.push(_);while(_&&(a[_].low>b||E>a[_].lim));for(A=_,_=p;(_=i.parent(_))!==A;)m.push(_);return{path:w.concat(m.reverse()),lca:A}}function VNe(i){var a={},f=0;function p(w){var m=f;cr(i.children(w),p),a[w]={low:m,lim:f++}}return cr(i.children(),p),a}function GNe(i,a){var f={};function p(w,m){var b=0,E=0,_=w.length,A=bY(m);return cr(m,function(I,B){var N=WNe(i,I),R=N?i.node(N).order:_;(N||I===A)&&(cr(m.slice(E,B+1),function(z){cr(i.predecessors(z),function(W){var et=i.node(W),st=et.order;(st<b||R<st)&&!(et.dummy&&i.node(z).dummy)&&fNt(f,W,z)})}),E=B+1,b=R)}),m}return mF(a,p),f}function UNe(i,a){var f={};function p(m,b,E,_,A){var I;cr(yT(b,E),function(B){I=m[B],i.node(I).dummy&&cr(i.predecessors(I),function(N){var R=i.node(N);R.dummy&&(R.order<_||R.order>A)&&fNt(f,N,I)})})}function w(m,b){var E=-1,_,A=0;return cr(b,function(I,B){if(i.node(I).dummy==="border"){var N=i.predecessors(I);N.length&&(_=i.node(N[0]).order,p(b,A,B,E,_),A=B,E=_)}p(b,A,b.length,_,m.length)}),b}return mF(a,w),f}function WNe(i,a){if(i.node(a).dummy)return e0t(i.predecessors(a),function(f){return i.node(f).dummy})}function fNt(i,a,f){if(a>f){var p=a;a=f,f=p}var w=i[a];w||(i[a]=w={}),w[f]=!0}function YNe(i,a,f){if(a>f){var p=a;a=f,f=p}return za(i[a],f)}function KNe(i,a,f,p){var w={},m={},b={};return cr(a,function(E){cr(E,function(_,A){w[_]=_,m[_]=_,b[_]=A})}),cr(a,function(E){var _=-1;cr(E,function(A){var I=p(A);if(I.length){I=yF(I,function(W){return b[W]});for(var B=(I.length-1)/2,N=Math.floor(B),R=Math.ceil(B);N<=R;++N){var z=I[N];m[A]===A&&_<b[z]&&!YNe(f,A,z)&&(m[z]=A,m[A]=w[A]=w[z],_=b[z])}}})}),{root:w,align:m}}function XNe(i,a,f,p,w){var m={},b=QNe(i,a,f,w),E=w?"borderLeft":"borderRight";function _(B,N){for(var R=b.nodes(),z=R.pop(),W={};z;)W[z]?B(z):(W[z]=!0,R.push(z),R=R.concat(N(z))),z=R.pop()}function A(B){m[B]=b.inEdges(B).reduce(function(N,R){return Math.max(N,m[R.v]+b.edge(R))},0)}function I(B){var N=b.outEdges(B).reduce(function(z,W){return Math.min(z,m[W.w]-b.edge(W))},Number.POSITIVE_INFINITY),R=i.node(B);N!==Number.POSITIVE_INFINITY&&R.borderType!==E&&(m[B]=Math.max(m[B],N))}return _(A,b.predecessors.bind(b)),_(I,b.successors.bind(b)),cr(p,function(B){m[B]=m[f[B]]}),m}function QNe(i,a,f,p){var w=new c1,m=i.graph(),b=nBe(m.nodesep,m.edgesep,p);return cr(a,function(E){var _;cr(E,function(A){var I=f[A];if(w.setNode(I),_){var B=f[_],N=w.edge(B,I);w.setEdge(B,I,Math.max(b(i,A,_),N||0))}_=A})}),w}function ZNe(i,a){return r0t(I5(a),function(f){var p=Number.NEGATIVE_INFINITY,w=Number.POSITIVE_INFINITY;return oFe(f,function(m,b){var E=rBe(i,b)/2;p=Math.max(m+E,p),w=Math.min(m-E,w)}),p-w})}function JNe(i,a){var f=I5(a),p=wF(f),w=mT(f);cr(["u","d"],function(m){cr(["l","r"],function(b){var E=m+b,_=i[E],A;if(_!==a){var I=I5(_);A=b==="l"?p-wF(I):w-mT(I),A&&(i[E]=wY(_,function(B){return B+A}))}})})}function tBe(i,a){return wY(i.ul,function(f,p){if(a)return i[a.toLowerCase()][p];var w=yF(Ff(i,p));return(w[1]+w[2])/2})}function eBe(i){var a=mY(i),f=IW(GNe(i,a),UNe(i,a)),p={},w;cr(["u","d"],function(b){w=b==="u"?a:I5(a).reverse(),cr(["l","r"],function(E){E==="r"&&(w=Ff(w,function(B){return I5(B).reverse()}));var _=(b==="u"?i.predecessors:i.successors).bind(i),A=KNe(i,w,f,_),I=XNe(i,w,A.root,A.align,E==="r");E==="r"&&(I=wY(I,function(B){return-B})),p[b+E]=I})});var m=ZNe(i,p);return JNe(p,m),tBe(p,i.graph().align)}function nBe(i,a,f){return function(p,w,m){var b=p.node(w),E=p.node(m),_=0,A;if(_+=b.width/2,za(b,"labelpos"))switch(b.labelpos.toLowerCase()){case"l":A=-b.width/2;break;case"r":A=b.width/2;break}if(A&&(_+=f?A:-A),A=0,_+=(b.dummy?a:i)/2,_+=(E.dummy?a:i)/2,_+=E.width/2,za(E,"labelpos"))switch(E.labelpos.toLowerCase()){case"l":A=E.width/2;break;case"r":A=-E.width/2;break}return A&&(_+=f?A:-A),A=0,_}}function rBe(i,a){return i.node(a).width}function iBe(i){i=VFt(i),sBe(i),cFe(eBe(i),function(a,f){i.node(f).x=a})}function sBe(i){var a=mY(i),f=i.graph().ranksep,p=0;cr(a,function(w){var m=mT(Ff(w,function(b){return i.node(b).height}));cr(w,function(b){i.node(b).y=p+m/2}),p+=m+f})}function aL(i,a){var f=a&&a.debugTiming?tNe:eNe;f("layout",function(){var p=f(" buildLayoutGraph",function(){return bBe(i)});f(" runLayout",function(){aBe(p,f)}),f(" updateInputGraph",function(){oBe(i,p)})})}function aBe(i,a){a(" makeSpaceForEdgeLabels",function(){wBe(i)}),a(" removeSelfEdges",function(){_Be(i)}),a(" acyclic",function(){WFe(i)}),a(" nestingGraph.run",function(){kNe(i)}),a(" rank",function(){mNe(VFt(i))}),a(" injectEdgeLabelProxies",function(){vBe(i)}),a(" removeEmptyRanks",function(){ZFe(i)}),a(" nestingGraph.cleanup",function(){CNe(i)}),a(" normalizeRanks",function(){QFe(i)}),a(" assignRankMinMax",function(){mBe(i)}),a(" removeEdgeLabelProxies",function(){yBe(i)}),a(" normalize.run",function(){oNe(i)}),a(" parentDummyChains",function(){qNe(i)}),a(" addBorderSegments",function(){nNe(i)}),a(" order",function(){$Ne(i)}),a(" insertSelfEdges",function(){SBe(i)}),a(" adjustCoordinateSystem",function(){rNe(i)}),a(" position",function(){iBe(i)}),a(" positionSelfEdges",function(){ABe(i)}),a(" removeBorderNodes",function(){CBe(i)}),a(" normalize.undo",function(){uNe(i)}),a(" fixupEdgeLabelCoords",function(){EBe(i)}),a(" undoCoordinateSystem",function(){iNe(i)}),a(" translateGraph",function(){xBe(i)}),a(" assignNodeIntersects",function(){kBe(i)}),a(" reversePoints",function(){TBe(i)}),a(" acyclic.undo",function(){KFe(i)})}function oBe(i,a){cr(i.nodes(),function(f){var p=i.node(f),w=a.node(f);p&&(p.x=w.x,p.y=w.y,a.children(f).length&&(p.width=w.width,p.height=w.height))}),cr(i.edges(),function(f){var p=i.edge(f),w=a.edge(f);p.points=w.points,za(w,"x")&&(p.x=w.x,p.y=w.y)}),i.graph().width=a.graph().width,i.graph().height=a.graph().height}var cBe=["nodesep","edgesep","ranksep","marginx","marginy"],uBe={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},lBe=["acyclicer","ranker","rankdir","align"],hBe=["width","height"],fBe={width:0,height:0},dBe=["minlen","weight","width","height","labeloffset"],gBe={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},pBe=["labelpos"];function bBe(i){var a=new c1({multigraph:!0,compound:!0}),f=d0t(i.graph());return a.setGraph(IW({},uBe,f0t(f,cBe),vF(f,lBe))),cr(i.nodes(),function(p){var w=d0t(i.node(p));a.setNode(p,iL(f0t(w,hBe),fBe)),a.setParent(p,i.parent(p))}),cr(i.edges(),function(p){var w=d0t(i.edge(p));a.setEdge(p,IW({},gBe,f0t(w,dBe),vF(w,pBe)))}),a}function wBe(i){var a=i.graph();a.ranksep/=2,cr(i.edges(),function(f){var p=i.edge(f);p.minlen*=2,p.labelpos.toLowerCase()!=="c"&&(a.rankdir==="TB"||a.rankdir==="BT"?p.width+=p.labeloffset:p.height+=p.labeloffset)})}function vBe(i){cr(i.edges(),function(a){var f=i.edge(a);if(f.width&&f.height){var p=i.node(a.v),w=i.node(a.w),m={rank:(w.rank-p.rank)/2+p.rank,e:a};sL(i,"edge-proxy",m,"_ep")}})}function mBe(i){var a=0;cr(i.nodes(),function(f){var p=i.node(f);p.borderTop&&(p.minRank=i.node(p.borderTop).rank,p.maxRank=i.node(p.borderBottom).rank,a=mT(a,p.maxRank))}),i.graph().maxRank=a}function yBe(i){cr(i.nodes(),function(a){var f=i.node(a);f.dummy==="edge-proxy"&&(i.edge(f.e).labelRank=f.rank,i.removeNode(a))})}function xBe(i){var a=Number.POSITIVE_INFINITY,f=0,p=Number.POSITIVE_INFINITY,w=0,m=i.graph(),b=m.marginx||0,E=m.marginy||0;function _(A){var I=A.x,B=A.y,N=A.width,R=A.height;a=Math.min(a,I-N/2),f=Math.max(f,I+N/2),p=Math.min(p,B-R/2),w=Math.max(w,B+R/2)}cr(i.nodes(),function(A){_(i.node(A))}),cr(i.edges(),function(A){var I=i.edge(A);za(I,"x")&&_(I)}),a-=b,p-=E,cr(i.nodes(),function(A){var I=i.node(A);I.x-=a,I.y-=p}),cr(i.edges(),function(A){var I=i.edge(A);cr(I.points,function(B){B.x-=a,B.y-=p}),za(I,"x")&&(I.x-=a),za(I,"y")&&(I.y-=p)}),m.width=f-a+b,m.height=w-p+E}function kBe(i){cr(i.edges(),function(a){var f=i.edge(a),p=i.node(a.v),w=i.node(a.w),m,b;f.points?(m=f.points[0],b=f.points[f.points.length-1]):(f.points=[],m=w,b=p),f.points.unshift(GFt(p,m)),f.points.push(GFt(w,b))})}function EBe(i){cr(i.edges(),function(a){var f=i.edge(a);if(za(f,"x"))switch((f.labelpos==="l"||f.labelpos==="r")&&(f.width-=f.labeloffset),f.labelpos){case"l":f.x-=f.width/2+f.labeloffset;break;case"r":f.x+=f.width/2+f.labeloffset;break}})}function TBe(i){cr(i.edges(),function(a){var f=i.edge(a);f.reversed&&f.points.reverse()})}function CBe(i){cr(i.nodes(),function(a){if(i.children(a).length){var f=i.node(a),p=i.node(f.borderTop),w=i.node(f.borderBottom),m=i.node(bY(f.borderLeft)),b=i.node(bY(f.borderRight));f.width=Math.abs(b.x-m.x),f.height=Math.abs(w.y-p.y),f.x=m.x+f.width/2,f.y=p.y+f.height/2}}),cr(i.nodes(),function(a){i.node(a).dummy==="border"&&i.removeNode(a)})}function _Be(i){cr(i.edges(),function(a){if(a.v===a.w){var f=i.node(a.v);f.selfEdges||(f.selfEdges=[]),f.selfEdges.push({e:a,label:i.edge(a)}),i.removeEdge(a)}})}function SBe(i){var a=mY(i);cr(a,function(f){var p=0;cr(f,function(w,m){var b=i.node(w);b.order=m+p,cr(b.selfEdges,function(E){sL(i,"selfedge",{width:E.label.width,height:E.label.height,rank:b.rank,order:m+ ++p,e:E.e,label:E.label},"_se")}),delete b.selfEdges})})}function ABe(i){cr(i.nodes(),function(a){var f=i.node(a);if(f.dummy==="selfedge"){var p=i.node(f.e.v),w=p.x+p.width/2,m=p.y,b=f.x-w,E=p.height/2;i.setEdge(f.e,f.label),i.removeNode(a),f.label.points=[{x:w+2*b/3,y:m-E},{x:w+5*b/6,y:m-E},{x:w+b,y:m},{x:w+5*b/6,y:m+E},{x:w+2*b/3,y:m+E}],f.label.x=f.x,f.label.y=f.y}})}function f0t(i,a){return wY(vF(i,a),Number)}function d0t(i){var a={};return cr(i,function(f,p){a[p.toLowerCase()]=f}),a}function dNt(i,a){return!!i.children(a).length}function gNt(i){return g0t(i.v)+":"+g0t(i.w)+":"+g0t(i.name)}var LBe=/:/g;function g0t(i){return i?String(i).replace(LBe,"\\:"):""}function w3(i,a){a&&i.attr("style",a)}function pNt(i,a,f){a&&i.attr("class",a).attr("class",f+" "+i.attr("class"))}function um(i,a){var f=a.graph();if(DIt(f)){var p=f.transition;if(BA(p))return p(i)}return i}var p0t={normal:DBe,vee:IBe,undirected:OBe};function MBe(i){p0t=i}function DBe(i,a,f,p){var w=i.append("marker").attr("id",a).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),m=w.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");w3(m,f[p+"Style"]),f[p+"Class"]&&m.attr("class",f[p+"Class"])}function IBe(i,a,f,p){var w=i.append("marker").attr("id",a).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),m=w.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");w3(m,f[p+"Style"]),f[p+"Class"]&&m.attr("class",f[p+"Class"])}function OBe(i,a,f,p){var w=i.append("marker").attr("id",a).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),m=w.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");w3(m,f[p+"Style"]),f[p+"Class"]&&m.attr("class",f[p+"Class"])}function b0t(i,a){var f=i.append("foreignObject").attr("width","100000"),p=f.append("xhtml:div");p.attr("xmlns","http://www.w3.org/1999/xhtml");var w=a.label;switch(typeof w){case"function":p.insert(w);break;case"object":p.insert(function(){return w});break;default:p.html(w)}w3(p,a.labelStyle),p.style("display","inline-block"),p.style("white-space","nowrap");var m=p.node().getBoundingClientRect();return f.attr("width",m.width).attr("height",m.height),f}function PBe(i,a){var f=i;return f.node().appendChild(a.label),w3(f,a.labelStyle),f}function FBe(i,a){for(var f=i.append("text"),p=NBe(a.label).split(` 104 `),b.style===void 0&&(I.style=I.style||"stroke: #333; stroke-width: 1.5px;fill:none"),I.labelStyle=I.labelStyle.replace("color:","fill:"))),I.id=E,I.class=_+" "+A,I.minlen=b.length||1,a.setEdge(f.db.lookUpDomId(b.start),f.db.lookUpDomId(b.end),I,p)})},hRe={setConf:lRe,addVertices:INt,addEdges:ONt,getClasses:function(i,a){return Ut.info("Extracting classes"),a.db.getClasses()},draw:function(i,a,f,p){Ut.info("Drawing flowchart");const{securityLevel:w,flowchart:m}=Oe();let b;w==="sandbox"&&(b=yr("#i"+a));const E=yr(w==="sandbox"?b.nodes()[0].contentDocument.body:"body"),_=w==="sandbox"?b.nodes()[0].contentDocument:document;let A=p.db.getDirection();A===void 0&&(A="TD");const I=m.nodeSpacing||50,B=m.rankSpacing||50,N=new c1({multigraph:!0,compound:!0}).setGraph({rankdir:A,nodesep:I,ranksep:B,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let R;const z=p.db.getSubGraphs();for(let ft=z.length-1;ft>=0;ft--)R=z[ft],p.db.addVertex(R.id,R.title,"group",void 0,R.classes);const W=p.db.getVertices();Ut.warn("Get vertices",W);const et=p.db.getEdges();let st=0;for(st=z.length-1;st>=0;st--){R=z[st],sMt("cluster").append("text");for(let ft=0;ft<R.nodes.length;ft++)Ut.warn("Setting subgraph",R.nodes[ft],p.db.lookUpDomId(R.nodes[ft]),p.db.lookUpDomId(R.id)),N.setParent(p.db.lookUpDomId(R.nodes[ft]),p.db.lookUpDomId(R.id))}INt(W,N,a,E,_,p),ONt(et,N,p);const at=new nRe;uRe.addToRender(at),at.arrows().none=function(ut,vt,X,pt){const Tt=ut.append("marker").attr("id",vt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");w3(Tt,X[pt+"Style"])},at.arrows().normal=function(ut,vt){ut.append("marker").attr("id",vt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const bt=E.select(`[id="${a}"]`),mt=E.select("#"+a+" g");for(at(mt,N),mt.selectAll("g.node").attr("title",function(){return p.db.getTooltip(this.id)}),p.db.indexNodes("subGraph"+st),st=0;st<z.length;st++)if(R=z[st],R.title!=="undefined"){const ft=_.querySelectorAll("#"+a+' [id="'+p.db.lookUpDomId(R.id)+'"] rect'),ut=_.querySelectorAll("#"+a+' [id="'+p.db.lookUpDomId(R.id)+'"]'),vt=ft[0].x.baseVal.value,X=ft[0].y.baseVal.value,pt=ft[0].width.baseVal.value,Tt=yr(ut[0]).select(".label");Tt.attr("transform",`translate(${vt+pt/2}, ${X+14})`),Tt.attr("id",a+"Text");for(let nt=0;nt<R.classes.length;nt++)ut[0].classList.add(R.classes[nt])}if(!m.htmlLabels){const ft=_.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const ut of ft){const vt=ut.getBBox(),X=_.createElementNS("http://www.w3.org/2000/svg","rect");X.setAttribute("rx",0),X.setAttribute("ry",0),X.setAttribute("width",vt.width),X.setAttribute("height",vt.height),ut.insertBefore(X,ut.firstChild)}}fT(N,bt,m.diagramPadding,m.useMaxWidth),Object.keys(W).forEach(function(ft){const ut=W[ft];if(ut.link){const vt=E.select("#"+a+' [id="'+p.db.lookUpDomId(ft)+'"]');if(vt){const X=_.createElementNS("http://www.w3.org/2000/svg","a");X.setAttributeNS("http://www.w3.org/2000/svg","class",ut.classes.join(" ")),X.setAttributeNS("http://www.w3.org/2000/svg","href",ut.link),X.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),w==="sandbox"?X.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ut.linkTarget&&X.setAttributeNS("http://www.w3.org/2000/svg","target",ut.linkTarget);const pt=vt.insert(function(){return X},":first-child"),U=vt.select(".label-container");U&&pt.append(function(){return U.node()});const Tt=vt.select(".label");Tt&&pt.append(function(){return Tt.node()})}}})}};function P5(i){var a={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:fRe(i),edges:dRe(i)};return Jh(i.graph())||(a.value=aPe(i.graph())),a}function fRe(i){return Ff(i.nodes(),function(a){var f=i.node(a),p=i.parent(a),w={v:a};return Jh(f)||(w.value=f),Jh(p)||(w.parent=p),w})}function dRe(i){return Ff(i.edges(),function(a){var f=i.edge(a),p={v:a.v,w:a.w};return Jh(a.name)||(p.name=a.name),Jh(f)||(p.value=f),p})}const gRe=(i,a,f,p)=>{a.forEach(w=>{pRe[w](i,f,p)})},pRe={extension:(i,a,f)=>{Ut.trace("Making markers for ",f),i.append("defs").append("marker").attr("id",f+"_"+a+"-extensionStart").attr("class","marker extension "+a).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id",f+"_"+a+"-extensionEnd").attr("class","marker extension "+a).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-compositionStart").attr("class","marker composition "+a).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",f+"_"+a+"-compositionEnd").attr("class","marker composition "+a).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-aggregationStart").attr("class","marker aggregation "+a).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",f+"_"+a+"-aggregationEnd").attr("class","marker aggregation "+a).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-dependencyStart").attr("class","marker dependency "+a).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",f+"_"+a+"-dependencyEnd").attr("class","marker dependency "+a).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-lollipopStart").attr("class","marker lollipop "+a).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),i.append("defs").append("marker").attr("id",f+"_"+a+"-lollipopEnd").attr("class","marker lollipop "+a).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point:(i,a,f)=>{i.append("marker").attr("id",f+"_"+a+"-pointEnd").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",f+"_"+a+"-pointStart").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(i,a,f)=>{i.append("marker").attr("id",f+"_"+a+"-circleEnd").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",f+"_"+a+"-circleStart").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(i,a,f)=>{i.append("marker").attr("id",f+"_"+a+"-crossEnd").attr("class","marker cross "+a).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),i.append("marker").attr("id",f+"_"+a+"-crossStart").attr("class","marker cross "+a).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},PNt=gRe;function bRe(i,a){a&&i.attr("style",a)}function wRe(i){const a=yr(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),f=a.append("xhtml:div"),p=i.label,w=i.isNode?"nodeLabel":"edgeLabel";return f.html('<span class="'+w+'" '+(i.labelStyle?'style="'+i.labelStyle+'"':"")+">"+p+"</span>"),bRe(f,i.labelStyle),f.style("display","inline-block"),f.style("white-space","nowrap"),f.attr("xmlns","http://www.w3.org/1999/xhtml"),a.node()}const gp=(i,a,f,p)=>{let w=i||"";if(typeof w=="object"&&(w=w[0]),o1(Oe().flowchart.htmlLabels)){w=w.replace(/\\n|\n/g,"<br />"),Ut.info("vertexText"+w);const m={isNode:p,label:uF(w).replace(/fa[blrs]?:fa-[\w-]+/g,E=>`<i class='${E.replace(":"," ")}'></i>`),labelStyle:a.replace("fill:","color:")};return wRe(m)}else{const m=document.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",a.replace("color:","fill:"));let b=[];typeof w=="string"?b=w.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(w)?b=w:b=[];for(const E of b){const _=document.createElementNS("http://www.w3.org/2000/svg","tspan");_.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_.setAttribute("dy","1em"),_.setAttribute("x","0"),f?_.setAttribute("class","title-row"):_.setAttribute("class","row"),_.textContent=E.trim(),m.appendChild(_)}return m}},vRe={};function mRe(i,a){const f=a||vRe,p=typeof f.includeImageAlt=="boolean"?f.includeImageAlt:!0,w=typeof f.includeHtml=="boolean"?f.includeHtml:!0;return FNt(i,p,w)}function FNt(i,a,f){if(yRe(i)){if("value"in i)return i.type==="html"&&!f?"":i.value;if(a&&"alt"in i&&i.alt)return i.alt;if("children"in i)return NNt(i.children,a,f)}return Array.isArray(i)?NNt(i,a,f):""}function NNt(i,a,f){const p=[];let w=-1;for(;++w<i.length;)p[w]=FNt(i[w],a,f);return p.join("")}function yRe(i){return!!(i&&typeof i=="object")}function m3(i,a,f,p){const w=i.length;let m=0,b;if(a<0?a=-a>w?0:w+a:a=a>w?w:a,f=f>0?f:0,p.length<1e4)b=Array.from(p),b.unshift(a,f),i.splice(...b);else for(f&&i.splice(a,f);m<p.length;)b=p.slice(m,m+1e4),b.unshift(a,0),i.splice(...b),m+=1e4,a+=1e4}function sw(i,a){return i.length>0?(m3(i,i.length,0,a),i):a}const BNt={}.hasOwnProperty;function xRe(i){const a={};let f=-1;for(;++f<i.length;)kRe(a,i[f]);return a}function kRe(i,a){let f;for(f in a){const w=(BNt.call(i,f)?i[f]:void 0)||(i[f]={}),m=a[f];let b;if(m)for(b in m){BNt.call(w,b)||(w[b]=[]);const E=m[b];ERe(w[b],Array.isArray(E)?E:E?[E]:[])}}}function ERe(i,a){let f=-1;const p=[];for(;++f<a.length;)(a[f].add==="after"?i:p).push(a[f]);m3(i,0,0,p)}const TRe=/[!-\/:-@\[-`\{-~\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]/,y3=bk(/[A-Za-z]/),lm=bk(/[\dA-Za-z]/),CRe=bk(/[#-'*+\--9=?A-Z^-~]/);function T0t(i){return i!==null&&(i<32||i===127)}const C0t=bk(/\d/),_Re=bk(/[\dA-Fa-f]/),SRe=bk(/[!-/:-@[-`{-~]/);function xa(i){return i!==null&&i<-2}function pp(i){return i!==null&&(i<0||i===32)}function Wc(i){return i===-2||i===-1||i===32}const ARe=bk(TRe),LRe=bk(/\s/);function bk(i){return a;function a(f){return f!==null&&i.test(String.fromCharCode(f))}}function il(i,a,f,p){const w=p?p-1:Number.POSITIVE_INFINITY;let m=0;return b;function b(_){return Wc(_)?(i.enter(f),E(_)):a(_)}function E(_){return Wc(_)&&m++<w?(i.consume(_),E):(i.exit(f),a(_))}}const MRe={tokenize:DRe};function DRe(i){const a=i.attempt(this.parser.constructs.contentInitial,p,w);let f;return a;function p(E){if(E===null){i.consume(E);return}return i.enter("lineEnding"),i.consume(E),i.exit("lineEnding"),il(i,a,"linePrefix")}function w(E){return i.enter("paragraph"),m(E)}function m(E){const _=i.enter("chunkText",{contentType:"text",previous:f});return f&&(f.next=_),f=_,b(E)}function b(E){if(E===null){i.exit("chunkText"),i.exit("paragraph"),i.consume(E);return}return xa(E)?(i.consume(E),i.exit("chunkText"),m):(i.consume(E),b)}}const IRe={tokenize:ORe},RNt={tokenize:PRe};function ORe(i){const a=this,f=[];let p=0,w,m,b;return E;function E(bt){if(p<f.length){const mt=f[p];return a.containerState=mt[1],i.attempt(mt[0].continuation,_,A)(bt)}return A(bt)}function _(bt){if(p++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,w&&at();const mt=a.events.length;let yt=mt,ft;for(;yt--;)if(a.events[yt][0]==="exit"&&a.events[yt][1].type==="chunkFlow"){ft=a.events[yt][1].end;break}st(p);let ut=mt;for(;ut<a.events.length;)a.events[ut][1].end=Object.assign({},ft),ut++;return m3(a.events,yt+1,0,a.events.slice(mt)),a.events.length=ut,A(bt)}return E(bt)}function A(bt){if(p===f.length){if(!w)return N(bt);if(w.currentConstruct&&w.currentConstruct.concrete)return z(bt);a.interrupt=!!(w.currentConstruct&&!w._gfmTableDynamicInterruptHack)}return a.containerState={},i.check(RNt,I,B)(bt)}function I(bt){return w&&at(),st(p),N(bt)}function B(bt){return a.parser.lazy[a.now().line]=p!==f.length,b=a.now().offset,z(bt)}function N(bt){return a.containerState={},i.attempt(RNt,R,z)(bt)}function R(bt){return p++,f.push([a.currentConstruct,a.containerState]),N(bt)}function z(bt){if(bt===null){w&&at(),st(0),i.consume(bt);return}return w=w||a.parser.flow(a.now()),i.enter("chunkFlow",{contentType:"flow",previous:m,_tokenizer:w}),W(bt)}function W(bt){if(bt===null){et(i.exit("chunkFlow"),!0),st(0),i.consume(bt);return}return xa(bt)?(i.consume(bt),et(i.exit("chunkFlow")),p=0,a.interrupt=void 0,E):(i.consume(bt),W)}function et(bt,mt){const yt=a.sliceStream(bt);if(mt&&yt.push(null),bt.previous=m,m&&(m.next=bt),m=bt,w.defineSkip(bt.start),w.write(yt),a.parser.lazy[bt.start.line]){let ft=w.events.length;for(;ft--;)if(w.events[ft][1].start.offset<b&&(!w.events[ft][1].end||w.events[ft][1].end.offset>b))return;const ut=a.events.length;let vt=ut,X,pt;for(;vt--;)if(a.events[vt][0]==="exit"&&a.events[vt][1].type==="chunkFlow"){if(X){pt=a.events[vt][1].end;break}X=!0}for(st(p),ft=ut;ft<a.events.length;)a.events[ft][1].end=Object.assign({},pt),ft++;m3(a.events,vt+1,0,a.events.slice(ut)),a.events.length=ft}}function st(bt){let mt=f.length;for(;mt-- >bt;){const yt=f[mt];a.containerState=yt[1],yt[0].exit.call(a,i)}f.length=bt}function at(){w.write([null]),m=void 0,w=void 0,a.containerState._closeFlow=void 0}}function PRe(i,a,f){return il(i,i.attempt(this.parser.constructs.document,a,f),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jNt(i){if(i===null||pp(i)||LRe(i))return 1;if(ARe(i))return 2}function _0t(i,a,f){const p=[];let w=-1;for(;++w<i.length;){const m=i[w].resolveAll;m&&!p.includes(m)&&(a=m(a,f),p.push(m))}return a}const S0t={name:"attention",tokenize:NRe,resolveAll:FRe};function FRe(i,a){let f=-1,p,w,m,b,E,_,A,I;for(;++f<i.length;)if(i[f][0]==="enter"&&i[f][1].type==="attentionSequence"&&i[f][1]._close){for(p=f;p--;)if(i[p][0]==="exit"&&i[p][1].type==="attentionSequence"&&i[p][1]._open&&a.sliceSerialize(i[p][1]).charCodeAt(0)===a.sliceSerialize(i[f][1]).charCodeAt(0)){if((i[p][1]._close||i[f][1]._open)&&(i[f][1].end.offset-i[f][1].start.offset)%3&&!((i[p][1].end.offset-i[p][1].start.offset+i[f][1].end.offset-i[f][1].start.offset)%3))continue;_=i[p][1].end.offset-i[p][1].start.offset>1&&i[f][1].end.offset-i[f][1].start.offset>1?2:1;const B=Object.assign({},i[p][1].end),N=Object.assign({},i[f][1].start);$Nt(B,-_),$Nt(N,_),b={type:_>1?"strongSequence":"emphasisSequence",start:B,end:Object.assign({},i[p][1].end)},E={type:_>1?"strongSequence":"emphasisSequence",start:Object.assign({},i[f][1].start),end:N},m={type:_>1?"strongText":"emphasisText",start:Object.assign({},i[p][1].end),end:Object.assign({},i[f][1].start)},w={type:_>1?"strong":"emphasis",start:Object.assign({},b.start),end:Object.assign({},E.end)},i[p][1].end=Object.assign({},b.start),i[f][1].start=Object.assign({},E.end),A=[],i[p][1].end.offset-i[p][1].start.offset&&(A=sw(A,[["enter",i[p][1],a],["exit",i[p][1],a]])),A=sw(A,[["enter",w,a],["enter",b,a],["exit",b,a],["enter",m,a]]),A=sw(A,_0t(a.parser.constructs.insideSpan.null,i.slice(p+1,f),a)),A=sw(A,[["exit",m,a],["enter",E,a],["exit",E,a],["exit",w,a]]),i[f][1].end.offset-i[f][1].start.offset?(I=2,A=sw(A,[["enter",i[f][1],a],["exit",i[f][1],a]])):I=0,m3(i,p-1,f-p+3,A),f=p+A.length-I-2;break}}for(f=-1;++f<i.length;)i[f][1].type==="attentionSequence"&&(i[f][1].type="data");return i}function NRe(i,a){const f=this.parser.constructs.attentionMarkers.null,p=this.previous,w=jNt(p);let m;return b;function b(_){return m=_,i.enter("attentionSequence"),E(_)}function E(_){if(_===m)return i.consume(_),E;const A=i.exit("attentionSequence"),I=jNt(_),B=!I||I===2&&w||f.includes(_),N=!w||w===2&&I||f.includes(p);return A._open=!!(m===42?B:B&&(w||!N)),A._close=!!(m===42?N:N&&(I||!B)),a(_)}}function $Nt(i,a){i.column+=a,i.offset+=a,i._bufferIndex+=a}const BRe={name:"autolink",tokenize:RRe};function RRe(i,a,f){let p=0;return w;function w(R){return i.enter("autolink"),i.enter("autolinkMarker"),i.consume(R),i.exit("autolinkMarker"),i.enter("autolinkProtocol"),m}function m(R){return y3(R)?(i.consume(R),b):A(R)}function b(R){return R===43||R===45||R===46||lm(R)?(p=1,E(R)):A(R)}function E(R){return R===58?(i.consume(R),p=0,_):(R===43||R===45||R===46||lm(R))&&p++<32?(i.consume(R),E):(p=0,A(R))}function _(R){return R===62?(i.exit("autolinkProtocol"),i.enter("autolinkMarker"),i.consume(R),i.exit("autolinkMarker"),i.exit("autolink"),a):R===null||R===32||R===60||T0t(R)?f(R):(i.consume(R),_)}function A(R){return R===64?(i.consume(R),I):CRe(R)?(i.consume(R),A):f(R)}function I(R){return lm(R)?B(R):f(R)}function B(R){return R===46?(i.consume(R),p=0,I):R===62?(i.exit("autolinkProtocol").type="autolinkEmail",i.enter("autolinkMarker"),i.consume(R),i.exit("autolinkMarker"),i.exit("autolink"),a):N(R)}function N(R){if((R===45||lm(R))&&p++<63){const z=R===45?N:B;return i.consume(R),z}return f(R)}}const yY={tokenize:jRe,partial:!0};function jRe(i,a,f){return p;function p(m){return Wc(m)?il(i,w,"linePrefix")(m):w(m)}function w(m){return m===null||xa(m)?a(m):f(m)}}const zNt={name:"blockQuote",tokenize:$Re,continuation:{tokenize:zRe},exit:qRe};function $Re(i,a,f){const p=this;return w;function w(b){if(b===62){const E=p.containerState;return E.open||(i.enter("blockQuote",{_container:!0}),E.open=!0),i.enter("blockQuotePrefix"),i.enter("blockQuoteMarker"),i.consume(b),i.exit("blockQuoteMarker"),m}return f(b)}function m(b){return Wc(b)?(i.enter("blockQuotePrefixWhitespace"),i.consume(b),i.exit("blockQuotePrefixWhitespace"),i.exit("blockQuotePrefix"),a):(i.exit("blockQuotePrefix"),a(b))}}function zRe(i,a,f){const p=this;return w;function w(b){return Wc(b)?il(i,m,"linePrefix",p.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):m(b)}function m(b){return i.attempt(zNt,a,f)(b)}}function qRe(i){i.exit("blockQuote")}const qNt={name:"characterEscape",tokenize:HRe};function HRe(i,a,f){return p;function p(m){return i.enter("characterEscape"),i.enter("escapeMarker"),i.consume(m),i.exit("escapeMarker"),w}function w(m){return SRe(m)?(i.enter("characterEscapeValue"),i.consume(m),i.exit("characterEscapeValue"),i.exit("characterEscape"),a):f(m)}}const HNt=document.createElement("i");function A0t(i){const a="&"+i+";";HNt.innerHTML=a;const f=HNt.textContent;return f.charCodeAt(f.length-1)===59&&i!=="semi"||f===a?!1:f}const VNt={name:"characterReference",tokenize:VRe};function VRe(i,a,f){const p=this;let w=0,m,b;return E;function E(B){return i.enter("characterReference"),i.enter("characterReferenceMarker"),i.consume(B),i.exit("characterReferenceMarker"),_}function _(B){return B===35?(i.enter("characterReferenceMarkerNumeric"),i.consume(B),i.exit("characterReferenceMarkerNumeric"),A):(i.enter("characterReferenceValue"),m=31,b=lm,I(B))}function A(B){return B===88||B===120?(i.enter("characterReferenceMarkerHexadecimal"),i.consume(B),i.exit("characterReferenceMarkerHexadecimal"),i.enter("characterReferenceValue"),m=6,b=_Re,I):(i.enter("characterReferenceValue"),m=7,b=C0t,I(B))}function I(B){if(B===59&&w){const N=i.exit("characterReferenceValue");return b===lm&&!A0t(p.sliceSerialize(N))?f(B):(i.enter("characterReferenceMarker"),i.consume(B),i.exit("characterReferenceMarker"),i.exit("characterReference"),a)}return b(B)&&w++<m?(i.consume(B),I):f(B)}}const GNt={tokenize:URe,partial:!0},UNt={name:"codeFenced",tokenize:GRe,concrete:!0};function GRe(i,a,f){const p=this,w={tokenize:yt,partial:!0};let m=0,b=0,E;return _;function _(ft){return A(ft)}function A(ft){const ut=p.events[p.events.length-1];return m=ut&&ut[1].type==="linePrefix"?ut[2].sliceSerialize(ut[1],!0).length:0,E=ft,i.enter("codeFenced"),i.enter("codeFencedFence"),i.enter("codeFencedFenceSequence"),I(ft)}function I(ft){return ft===E?(b++,i.consume(ft),I):b<3?f(ft):(i.exit("codeFencedFenceSequence"),Wc(ft)?il(i,B,"whitespace")(ft):B(ft))}function B(ft){return ft===null||xa(ft)?(i.exit("codeFencedFence"),p.interrupt?a(ft):i.check(GNt,W,mt)(ft)):(i.enter("codeFencedFenceInfo"),i.enter("chunkString",{contentType:"string"}),N(ft))}function N(ft){return ft===null||xa(ft)?(i.exit("chunkString"),i.exit("codeFencedFenceInfo"),B(ft)):Wc(ft)?(i.exit("chunkString"),i.exit("codeFencedFenceInfo"),il(i,R,"whitespace")(ft)):ft===96&&ft===E?f(ft):(i.consume(ft),N)}function R(ft){return ft===null||xa(ft)?B(ft):(i.enter("codeFencedFenceMeta"),i.enter("chunkString",{contentType:"string"}),z(ft))}function z(ft){return ft===null||xa(ft)?(i.exit("chunkString"),i.exit("codeFencedFenceMeta"),B(ft)):ft===96&&ft===E?f(ft):(i.consume(ft),z)}function W(ft){return i.attempt(w,mt,et)(ft)}function et(ft){return i.enter("lineEnding"),i.consume(ft),i.exit("lineEnding"),st}function st(ft){return m>0&&Wc(ft)?il(i,at,"linePrefix",m+1)(ft):at(ft)}function at(ft){return ft===null||xa(ft)?i.check(GNt,W,mt)(ft):(i.enter("codeFlowValue"),bt(ft))}function bt(ft){return ft===null||xa(ft)?(i.exit("codeFlowValue"),at(ft)):(i.consume(ft),bt)}function mt(ft){return i.exit("codeFenced"),a(ft)}function yt(ft,ut,vt){let X=0;return pt;function pt(Ot){return ft.enter("lineEnding"),ft.consume(Ot),ft.exit("lineEnding"),U}function U(Ot){return ft.enter("codeFencedFence"),Wc(Ot)?il(ft,Tt,"linePrefix",p.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ot):Tt(Ot)}function Tt(Ot){return Ot===E?(ft.enter("codeFencedFenceSequence"),nt(Ot)):vt(Ot)}function nt(Ot){return Ot===E?(X++,ft.consume(Ot),nt):X>=b?(ft.exit("codeFencedFenceSequence"),Wc(Ot)?il(ft,It,"whitespace")(Ot):It(Ot)):vt(Ot)}function It(Ot){return Ot===null||xa(Ot)?(ft.exit("codeFencedFence"),ut(Ot)):vt(Ot)}}}function URe(i,a,f){const p=this;return w;function w(b){return b===null?f(b):(i.enter("lineEnding"),i.consume(b),i.exit("lineEnding"),m)}function m(b){return p.parser.lazy[p.now().line]?f(b):a(b)}}const L0t={name:"codeIndented",tokenize:YRe},WRe={tokenize:KRe,partial:!0};function YRe(i,a,f){const p=this;return w;function w(A){return i.enter("codeIndented"),il(i,m,"linePrefix",4+1)(A)}function m(A){const I=p.events[p.events.length-1];return I&&I[1].type==="linePrefix"&&I[2].sliceSerialize(I[1],!0).length>=4?b(A):f(A)}function b(A){return A===null?_(A):xa(A)?i.attempt(WRe,b,_)(A):(i.enter("codeFlowValue"),E(A))}function E(A){return A===null||xa(A)?(i.exit("codeFlowValue"),b(A)):(i.consume(A),E)}function _(A){return i.exit("codeIndented"),a(A)}}function KRe(i,a,f){const p=this;return w;function w(b){return p.parser.lazy[p.now().line]?f(b):xa(b)?(i.enter("lineEnding"),i.consume(b),i.exit("lineEnding"),w):il(i,m,"linePrefix",4+1)(b)}function m(b){const E=p.events[p.events.length-1];return E&&E[1].type==="linePrefix"&&E[2].sliceSerialize(E[1],!0).length>=4?a(b):xa(b)?w(b):f(b)}}const XRe={name:"codeText",tokenize:JRe,resolve:QRe,previous:ZRe};function QRe(i){let a=i.length-4,f=3,p,w;if((i[f][1].type==="lineEnding"||i[f][1].type==="space")&&(i[a][1].type==="lineEnding"||i[a][1].type==="space")){for(p=f;++p<a;)if(i[p][1].type==="codeTextData"){i[f][1].type="codeTextPadding",i[a][1].type="codeTextPadding",f+=2,a-=2;break}}for(p=f-1,a++;++p<=a;)w===void 0?p!==a&&i[p][1].type!=="lineEnding"&&(w=p):(p===a||i[p][1].type==="lineEnding")&&(i[w][1].type="codeTextData",p!==w+2&&(i[w][1].end=i[p-1][1].end,i.splice(w+2,p-w-2),a-=p-w-2,p=w+2),w=void 0);return i}function ZRe(i){return i!==96||this.events[this.events.length-1][1].type==="characterEscape"}function JRe(i,a,f){let p=0,w,m;return b;function b(B){return i.enter("codeText"),i.enter("codeTextSequence"),E(B)}function E(B){return B===96?(i.consume(B),p++,E):(i.exit("codeTextSequence"),_(B))}function _(B){return B===null?f(B):B===32?(i.enter("space"),i.consume(B),i.exit("space"),_):B===96?(m=i.enter("codeTextSequence"),w=0,I(B)):xa(B)?(i.enter("lineEnding"),i.consume(B),i.exit("lineEnding"),_):(i.enter("codeTextData"),A(B))}function A(B){return B===null||B===32||B===96||xa(B)?(i.exit("codeTextData"),_(B)):(i.consume(B),A)}function I(B){return B===96?(i.consume(B),w++,I):w===p?(i.exit("codeTextSequence"),i.exit("codeText"),a(B)):(m.type="codeTextData",A(B))}}function WNt(i){const a={};let f=-1,p,w,m,b,E,_,A;for(;++f<i.length;){for(;f in a;)f=a[f];if(p=i[f],f&&p[1].type==="chunkFlow"&&i[f-1][1].type==="listItemPrefix"&&(_=p[1]._tokenizer.events,m=0,m<_.length&&_[m][1].type==="lineEndingBlank"&&(m+=2),m<_.length&&_[m][1].type==="content"))for(;++m<_.length&&_[m][1].type!=="content";)_[m][1].type==="chunkText"&&(_[m][1]._isInFirstContentOfListItem=!0,m++);if(p[0]==="enter")p[1].contentType&&(Object.assign(a,tje(i,f)),f=a[f],A=!0);else if(p[1]._container){for(m=f,w=void 0;m--&&(b=i[m],b[1].type==="lineEnding"||b[1].type==="lineEndingBlank");)b[0]==="enter"&&(w&&(i[w][1].type="lineEndingBlank"),b[1].type="lineEnding",w=m);w&&(p[1].end=Object.assign({},i[w][1].start),E=i.slice(w,f),E.unshift(p),m3(i,w,f-w+1,E))}}return!A}function tje(i,a){const f=i[a][1],p=i[a][2];let w=a-1;const m=[],b=f._tokenizer||p.parser[f.contentType](f.start),E=b.events,_=[],A={};let I,B,N=-1,R=f,z=0,W=0;const et=[W];for(;R;){for(;i[++w][1]!==R;);m.push(w),R._tokenizer||(I=p.sliceStream(R),R.next||I.push(null),B&&b.defineSkip(R.start),R._isInFirstContentOfListItem&&(b._gfmTasklistFirstContentOfListItem=!0),b.write(I),R._isInFirstContentOfListItem&&(b._gfmTasklistFirstContentOfListItem=void 0)),B=R,R=R.next}for(R=f;++N<E.length;)E[N][0]==="exit"&&E[N-1][0]==="enter"&&E[N][1].type===E[N-1][1].type&&E[N][1].start.line!==E[N][1].end.line&&(W=N+1,et.push(W),R._tokenizer=void 0,R.previous=void 0,R=R.next);for(b.events=[],R?(R._tokenizer=void 0,R.previous=void 0):et.pop(),N=et.length;N--;){const st=E.slice(et[N],et[N+1]),at=m.pop();_.unshift([at,at+st.length-1]),m3(i,at,2,st)}for(N=-1;++N<_.length;)A[z+_[N][0]]=z+_[N][1],z+=_[N][1]-_[N][0]-1;return A}const eje={tokenize:ije,resolve:rje},nje={tokenize:sje,partial:!0};function rje(i){return WNt(i),i}function ije(i,a){let f;return p;function p(E){return i.enter("content"),f=i.enter("chunkContent",{contentType:"content"}),w(E)}function w(E){return E===null?m(E):xa(E)?i.check(nje,b,m)(E):(i.consume(E),w)}function m(E){return i.exit("chunkContent"),i.exit("content"),a(E)}function b(E){return i.consume(E),i.exit("chunkContent"),f.next=i.enter("chunkContent",{contentType:"content",previous:f}),f=f.next,w}}function sje(i,a,f){const p=this;return w;function w(b){return i.exit("chunkContent"),i.enter("lineEnding"),i.consume(b),i.exit("lineEnding"),il(i,m,"linePrefix")}function m(b){if(b===null||xa(b))return f(b);const E=p.events[p.events.length-1];return!p.parser.constructs.disable.null.includes("codeIndented")&&E&&E[1].type==="linePrefix"&&E[2].sliceSerialize(E[1],!0).length>=4?a(b):i.interrupt(p.parser.constructs.flow,f,a)(b)}}function YNt(i,a,f,p,w,m,b,E,_){const A=_||Number.POSITIVE_INFINITY;let I=0;return B;function B(st){return st===60?(i.enter(p),i.enter(w),i.enter(m),i.consume(st),i.exit(m),N):st===null||st===32||st===41||T0t(st)?f(st):(i.enter(p),i.enter(b),i.enter(E),i.enter("chunkString",{contentType:"string"}),W(st))}function N(st){return st===62?(i.enter(m),i.consume(st),i.exit(m),i.exit(w),i.exit(p),a):(i.enter(E),i.enter("chunkString",{contentType:"string"}),R(st))}function R(st){return st===62?(i.exit("chunkString"),i.exit(E),N(st)):st===null||st===60||xa(st)?f(st):(i.consume(st),st===92?z:R)}function z(st){return st===60||st===62||st===92?(i.consume(st),R):R(st)}function W(st){return!I&&(st===null||st===41||pp(st))?(i.exit("chunkString"),i.exit(E),i.exit(b),i.exit(p),a(st)):I<A&&st===40?(i.consume(st),I++,W):st===41?(i.consume(st),I--,W):st===null||st===32||st===40||T0t(st)?f(st):(i.consume(st),st===92?et:W)}function et(st){return st===40||st===41||st===92?(i.consume(st),W):W(st)}}function KNt(i,a,f,p,w,m){const b=this;let E=0,_;return A;function A(R){return i.enter(p),i.enter(w),i.consume(R),i.exit(w),i.enter(m),I}function I(R){return E>999||R===null||R===91||R===93&&!_||R===94&&!E&&"_hiddenFootnoteSupport"in b.parser.constructs?f(R):R===93?(i.exit(m),i.enter(w),i.consume(R),i.exit(w),i.exit(p),a):xa(R)?(i.enter("lineEnding"),i.consume(R),i.exit("lineEnding"),I):(i.enter("chunkString",{contentType:"string"}),B(R))}function B(R){return R===null||R===91||R===93||xa(R)||E++>999?(i.exit("chunkString"),I(R)):(i.consume(R),_||(_=!Wc(R)),R===92?N:B)}function N(R){return R===91||R===92||R===93?(i.consume(R),E++,B):B(R)}}function XNt(i,a,f,p,w,m){let b;return E;function E(N){return N===34||N===39||N===40?(i.enter(p),i.enter(w),i.consume(N),i.exit(w),b=N===40?41:N,_):f(N)}function _(N){return N===b?(i.enter(w),i.consume(N),i.exit(w),i.exit(p),a):(i.enter(m),A(N))}function A(N){return N===b?(i.exit(m),_(b)):N===null?f(N):xa(N)?(i.enter("lineEnding"),i.consume(N),i.exit("lineEnding"),il(i,A,"linePrefix")):(i.enter("chunkString",{contentType:"string"}),I(N))}function I(N){return N===b||N===null||xa(N)?(i.exit("chunkString"),A(N)):(i.consume(N),N===92?B:I)}function B(N){return N===b||N===92?(i.consume(N),I):I(N)}}function TF(i,a){let f;return p;function p(w){return xa(w)?(i.enter("lineEnding"),i.consume(w),i.exit("lineEnding"),f=!0,p):Wc(w)?il(i,p,f?"linePrefix":"lineSuffix")(w):a(w)}}function oL(i){return i.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const aje={name:"definition",tokenize:cje},oje={tokenize:uje,partial:!0};function cje(i,a,f){const p=this;let w;return m;function m(R){return i.enter("definition"),b(R)}function b(R){return KNt.call(p,i,E,f,"definitionLabel","definitionLabelMarker","definitionLabelString")(R)}function E(R){return w=oL(p.sliceSerialize(p.events[p.events.length-1][1]).slice(1,-1)),R===58?(i.enter("definitionMarker"),i.consume(R),i.exit("definitionMarker"),_):f(R)}function _(R){return pp(R)?TF(i,A)(R):A(R)}function A(R){return YNt(i,I,f,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(R)}function I(R){return i.attempt(oje,B,B)(R)}function B(R){return Wc(R)?il(i,N,"whitespace")(R):N(R)}function N(R){return R===null||xa(R)?(i.exit("definition"),p.parser.defined.push(w),a(R)):f(R)}}function uje(i,a,f){return p;function p(E){return pp(E)?TF(i,w)(E):f(E)}function w(E){return XNt(i,m,f,"definitionTitle","definitionTitleMarker","definitionTitleString")(E)}function m(E){return Wc(E)?il(i,b,"whitespace")(E):b(E)}function b(E){return E===null||xa(E)?a(E):f(E)}}const lje={name:"hardBreakEscape",tokenize:hje};function hje(i,a,f){return p;function p(m){return i.enter("hardBreakEscape"),i.consume(m),w}function w(m){return xa(m)?(i.exit("hardBreakEscape"),a(m)):f(m)}}const fje={name:"headingAtx",tokenize:gje,resolve:dje};function dje(i,a){let f=i.length-2,p=3,w,m;return i[p][1].type==="whitespace"&&(p+=2),f-2>p&&i[f][1].type==="whitespace"&&(f-=2),i[f][1].type==="atxHeadingSequence"&&(p===f-1||f-4>p&&i[f-2][1].type==="whitespace")&&(f-=p+1===f?2:4),f>p&&(w={type:"atxHeadingText",start:i[p][1].start,end:i[f][1].end},m={type:"chunkText",start:i[p][1].start,end:i[f][1].end,contentType:"text"},m3(i,p,f-p+1,[["enter",w,a],["enter",m,a],["exit",m,a],["exit",w,a]])),i}function gje(i,a,f){let p=0;return w;function w(I){return i.enter("atxHeading"),m(I)}function m(I){return i.enter("atxHeadingSequence"),b(I)}function b(I){return I===35&&p++<6?(i.consume(I),b):I===null||pp(I)?(i.exit("atxHeadingSequence"),E(I)):f(I)}function E(I){return I===35?(i.enter("atxHeadingSequence"),_(I)):I===null||xa(I)?(i.exit("atxHeading"),a(I)):Wc(I)?il(i,E,"whitespace")(I):(i.enter("atxHeadingText"),A(I))}function _(I){return I===35?(i.consume(I),_):(i.exit("atxHeadingSequence"),E(I))}function A(I){return I===null||I===35||pp(I)?(i.exit("atxHeadingText"),E(I)):(i.consume(I),A)}}const pje=["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"],QNt=["pre","script","style","textarea"],bje={name:"htmlFlow",tokenize:yje,resolveTo:mje,concrete:!0},wje={tokenize:kje,partial:!0},vje={tokenize:xje,partial:!0};function mje(i){let a=i.length;for(;a--&&!(i[a][0]==="enter"&&i[a][1].type==="htmlFlow"););return a>1&&i[a-2][1].type==="linePrefix"&&(i[a][1].start=i[a-2][1].start,i[a+1][1].start=i[a-2][1].start,i.splice(a-2,2)),i}function yje(i,a,f){const p=this;let w,m,b,E,_;return A;function A(Ft){return I(Ft)}function I(Ft){return i.enter("htmlFlow"),i.enter("htmlFlowData"),i.consume(Ft),B}function B(Ft){return Ft===33?(i.consume(Ft),N):Ft===47?(i.consume(Ft),m=!0,W):Ft===63?(i.consume(Ft),w=3,p.interrupt?a:xt):y3(Ft)?(i.consume(Ft),b=String.fromCharCode(Ft),et):f(Ft)}function N(Ft){return Ft===45?(i.consume(Ft),w=2,R):Ft===91?(i.consume(Ft),w=5,E=0,z):y3(Ft)?(i.consume(Ft),w=4,p.interrupt?a:xt):f(Ft)}function R(Ft){return Ft===45?(i.consume(Ft),p.interrupt?a:xt):f(Ft)}function z(Ft){const gn="CDATA[";return Ft===gn.charCodeAt(E++)?(i.consume(Ft),E===gn.length?p.interrupt?a:Tt:z):f(Ft)}function W(Ft){return y3(Ft)?(i.consume(Ft),b=String.fromCharCode(Ft),et):f(Ft)}function et(Ft){if(Ft===null||Ft===47||Ft===62||pp(Ft)){const gn=Ft===47,Se=b.toLowerCase();return!gn&&!m&&QNt.includes(Se)?(w=1,p.interrupt?a(Ft):Tt(Ft)):pje.includes(b.toLowerCase())?(w=6,gn?(i.consume(Ft),st):p.interrupt?a(Ft):Tt(Ft)):(w=7,p.interrupt&&!p.parser.lazy[p.now().line]?f(Ft):m?at(Ft):bt(Ft))}return Ft===45||lm(Ft)?(i.consume(Ft),b+=String.fromCharCode(Ft),et):f(Ft)}function st(Ft){return Ft===62?(i.consume(Ft),p.interrupt?a:Tt):f(Ft)}function at(Ft){return Wc(Ft)?(i.consume(Ft),at):pt(Ft)}function bt(Ft){return Ft===47?(i.consume(Ft),pt):Ft===58||Ft===95||y3(Ft)?(i.consume(Ft),mt):Wc(Ft)?(i.consume(Ft),bt):pt(Ft)}function mt(Ft){return Ft===45||Ft===46||Ft===58||Ft===95||lm(Ft)?(i.consume(Ft),mt):yt(Ft)}function yt(Ft){return Ft===61?(i.consume(Ft),ft):Wc(Ft)?(i.consume(Ft),yt):bt(Ft)}function ft(Ft){return Ft===null||Ft===60||Ft===61||Ft===62||Ft===96?f(Ft):Ft===34||Ft===39?(i.consume(Ft),_=Ft,ut):Wc(Ft)?(i.consume(Ft),ft):vt(Ft)}function ut(Ft){return Ft===_?(i.consume(Ft),_=null,X):Ft===null||xa(Ft)?f(Ft):(i.consume(Ft),ut)}function vt(Ft){return Ft===null||Ft===34||Ft===39||Ft===47||Ft===60||Ft===61||Ft===62||Ft===96||pp(Ft)?yt(Ft):(i.consume(Ft),vt)}function X(Ft){return Ft===47||Ft===62||Wc(Ft)?bt(Ft):f(Ft)}function pt(Ft){return Ft===62?(i.consume(Ft),U):f(Ft)}function U(Ft){return Ft===null||xa(Ft)?Tt(Ft):Wc(Ft)?(i.consume(Ft),U):f(Ft)}function Tt(Ft){return Ft===45&&w===2?(i.consume(Ft),Bt):Ft===60&&w===1?(i.consume(Ft),Et):Ft===62&&w===4?(i.consume(Ft),Ht):Ft===63&&w===3?(i.consume(Ft),xt):Ft===93&&w===5?(i.consume(Ft),Ct):xa(Ft)&&(w===6||w===7)?(i.exit("htmlFlowData"),i.check(wje,Le,nt)(Ft)):Ft===null||xa(Ft)?(i.exit("htmlFlowData"),nt(Ft)):(i.consume(Ft),Tt)}function nt(Ft){return i.check(vje,It,Le)(Ft)}function It(Ft){return i.enter("lineEnding"),i.consume(Ft),i.exit("lineEnding"),Ot}function Ot(Ft){return Ft===null||xa(Ft)?nt(Ft):(i.enter("htmlFlowData"),Tt(Ft))}function Bt(Ft){return Ft===45?(i.consume(Ft),xt):Tt(Ft)}function Et(Ft){return Ft===47?(i.consume(Ft),b="",Z):Tt(Ft)}function Z(Ft){if(Ft===62){const gn=b.toLowerCase();return QNt.includes(gn)?(i.consume(Ft),Ht):Tt(Ft)}return y3(Ft)&&b.length<8?(i.consume(Ft),b+=String.fromCharCode(Ft),Z):Tt(Ft)}function Ct(Ft){return Ft===93?(i.consume(Ft),xt):Tt(Ft)}function xt(Ft){return Ft===62?(i.consume(Ft),Ht):Ft===45&&w===2?(i.consume(Ft),xt):Tt(Ft)}function Ht(Ft){return Ft===null||xa(Ft)?(i.exit("htmlFlowData"),Le(Ft)):(i.consume(Ft),Ht)}function Le(Ft){return i.exit("htmlFlow"),a(Ft)}}function xje(i,a,f){const p=this;return w;function w(b){return xa(b)?(i.enter("lineEnding"),i.consume(b),i.exit("lineEnding"),m):f(b)}function m(b){return p.parser.lazy[p.now().line]?f(b):a(b)}}function kje(i,a,f){return p;function p(w){return i.enter("lineEnding"),i.consume(w),i.exit("lineEnding"),i.attempt(yY,a,f)}}const Eje={name:"htmlText",tokenize:Tje};function Tje(i,a,f){const p=this;let w,m,b;return E;function E(xt){return i.enter("htmlText"),i.enter("htmlTextData"),i.consume(xt),_}function _(xt){return xt===33?(i.consume(xt),A):xt===47?(i.consume(xt),yt):xt===63?(i.consume(xt),bt):y3(xt)?(i.consume(xt),vt):f(xt)}function A(xt){return xt===45?(i.consume(xt),I):xt===91?(i.consume(xt),m=0,z):y3(xt)?(i.consume(xt),at):f(xt)}function I(xt){return xt===45?(i.consume(xt),R):f(xt)}function B(xt){return xt===null?f(xt):xt===45?(i.consume(xt),N):xa(xt)?(b=B,Et(xt)):(i.consume(xt),B)}function N(xt){return xt===45?(i.consume(xt),R):B(xt)}function R(xt){return xt===62?Bt(xt):xt===45?N(xt):B(xt)}function z(xt){const Ht="CDATA[";return xt===Ht.charCodeAt(m++)?(i.consume(xt),m===Ht.length?W:z):f(xt)}function W(xt){return xt===null?f(xt):xt===93?(i.consume(xt),et):xa(xt)?(b=W,Et(xt)):(i.consume(xt),W)}function et(xt){return xt===93?(i.consume(xt),st):W(xt)}function st(xt){return xt===62?Bt(xt):xt===93?(i.consume(xt),st):W(xt)}function at(xt){return xt===null||xt===62?Bt(xt):xa(xt)?(b=at,Et(xt)):(i.consume(xt),at)}function bt(xt){return xt===null?f(xt):xt===63?(i.consume(xt),mt):xa(xt)?(b=bt,Et(xt)):(i.consume(xt),bt)}function mt(xt){return xt===62?Bt(xt):bt(xt)}function yt(xt){return y3(xt)?(i.consume(xt),ft):f(xt)}function ft(xt){return xt===45||lm(xt)?(i.consume(xt),ft):ut(xt)}function ut(xt){return xa(xt)?(b=ut,Et(xt)):Wc(xt)?(i.consume(xt),ut):Bt(xt)}function vt(xt){return xt===45||lm(xt)?(i.consume(xt),vt):xt===47||xt===62||pp(xt)?X(xt):f(xt)}function X(xt){return xt===47?(i.consume(xt),Bt):xt===58||xt===95||y3(xt)?(i.consume(xt),pt):xa(xt)?(b=X,Et(xt)):Wc(xt)?(i.consume(xt),X):Bt(xt)}function pt(xt){return xt===45||xt===46||xt===58||xt===95||lm(xt)?(i.consume(xt),pt):U(xt)}function U(xt){return xt===61?(i.consume(xt),Tt):xa(xt)?(b=U,Et(xt)):Wc(xt)?(i.consume(xt),U):X(xt)}function Tt(xt){return xt===null||xt===60||xt===61||xt===62||xt===96?f(xt):xt===34||xt===39?(i.consume(xt),w=xt,nt):xa(xt)?(b=Tt,Et(xt)):Wc(xt)?(i.consume(xt),Tt):(i.consume(xt),It)}function nt(xt){return xt===w?(i.consume(xt),w=void 0,Ot):xt===null?f(xt):xa(xt)?(b=nt,Et(xt)):(i.consume(xt),nt)}function It(xt){return xt===null||xt===34||xt===39||xt===60||xt===61||xt===96?f(xt):xt===47||xt===62||pp(xt)?X(xt):(i.consume(xt),It)}function Ot(xt){return xt===47||xt===62||pp(xt)?X(xt):f(xt)}function Bt(xt){return xt===62?(i.consume(xt),i.exit("htmlTextData"),i.exit("htmlText"),a):f(xt)}function Et(xt){return i.exit("htmlTextData"),i.enter("lineEnding"),i.consume(xt),i.exit("lineEnding"),Z}function Z(xt){return Wc(xt)?il(i,Ct,"linePrefix",p.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(xt):Ct(xt)}function Ct(xt){return i.enter("htmlTextData"),b(xt)}}const M0t={name:"labelEnd",tokenize:Mje,resolveTo:Lje,resolveAll:Aje},Cje={tokenize:Dje},_je={tokenize:Ije},Sje={tokenize:Oje};function Aje(i){let a=-1;for(;++a<i.length;){const f=i[a][1];(f.type==="labelImage"||f.type==="labelLink"||f.type==="labelEnd")&&(i.splice(a+1,f.type==="labelImage"?4:2),f.type="data",a++)}return i}function Lje(i,a){let f=i.length,p=0,w,m,b,E;for(;f--;)if(w=i[f][1],m){if(w.type==="link"||w.type==="labelLink"&&w._inactive)break;i[f][0]==="enter"&&w.type==="labelLink"&&(w._inactive=!0)}else if(b){if(i[f][0]==="enter"&&(w.type==="labelImage"||w.type==="labelLink")&&!w._balanced&&(m=f,w.type!=="labelLink")){p=2;break}}else w.type==="labelEnd"&&(b=f);const _={type:i[m][1].type==="labelLink"?"link":"image",start:Object.assign({},i[m][1].start),end:Object.assign({},i[i.length-1][1].end)},A={type:"label",start:Object.assign({},i[m][1].start),end:Object.assign({},i[b][1].end)},I={type:"labelText",start:Object.assign({},i[m+p+2][1].end),end:Object.assign({},i[b-2][1].start)};return E=[["enter",_,a],["enter",A,a]],E=sw(E,i.slice(m+1,m+p+3)),E=sw(E,[["enter",I,a]]),E=sw(E,_0t(a.parser.constructs.insideSpan.null,i.slice(m+p+4,b-3),a)),E=sw(E,[["exit",I,a],i[b-2],i[b-1],["exit",A,a]]),E=sw(E,i.slice(b+1)),E=sw(E,[["exit",_,a]]),m3(i,m,i.length,E),i}function Mje(i,a,f){const p=this;let w=p.events.length,m,b;for(;w--;)if((p.events[w][1].type==="labelImage"||p.events[w][1].type==="labelLink")&&!p.events[w][1]._balanced){m=p.events[w][1];break}return E;function E(N){return m?m._inactive?B(N):(b=p.parser.defined.includes(oL(p.sliceSerialize({start:m.end,end:p.now()}))),i.enter("labelEnd"),i.enter("labelMarker"),i.consume(N),i.exit("labelMarker"),i.exit("labelEnd"),_):f(N)}function _(N){return N===40?i.attempt(Cje,I,b?I:B)(N):N===91?i.attempt(_je,I,b?A:B)(N):b?I(N):B(N)}function A(N){return i.attempt(Sje,I,B)(N)}function I(N){return a(N)}function B(N){return m._balanced=!0,f(N)}}function Dje(i,a,f){return p;function p(B){return i.enter("resource"),i.enter("resourceMarker"),i.consume(B),i.exit("resourceMarker"),w}function w(B){return pp(B)?TF(i,m)(B):m(B)}function m(B){return B===41?I(B):YNt(i,b,E,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(B)}function b(B){return pp(B)?TF(i,_)(B):I(B)}function E(B){return f(B)}function _(B){return B===34||B===39||B===40?XNt(i,A,f,"resourceTitle","resourceTitleMarker","resourceTitleString")(B):I(B)}function A(B){return pp(B)?TF(i,I)(B):I(B)}function I(B){return B===41?(i.enter("resourceMarker"),i.consume(B),i.exit("resourceMarker"),i.exit("resource"),a):f(B)}}function Ije(i,a,f){const p=this;return w;function w(E){return KNt.call(p,i,m,b,"reference","referenceMarker","referenceString")(E)}function m(E){return p.parser.defined.includes(oL(p.sliceSerialize(p.events[p.events.length-1][1]).slice(1,-1)))?a(E):f(E)}function b(E){return f(E)}}function Oje(i,a,f){return p;function p(m){return i.enter("reference"),i.enter("referenceMarker"),i.consume(m),i.exit("referenceMarker"),w}function w(m){return m===93?(i.enter("referenceMarker"),i.consume(m),i.exit("referenceMarker"),i.exit("reference"),a):f(m)}}const Pje={name:"labelStartImage",tokenize:Fje,resolveAll:M0t.resolveAll};function Fje(i,a,f){const p=this;return w;function w(E){return i.enter("labelImage"),i.enter("labelImageMarker"),i.consume(E),i.exit("labelImageMarker"),m}function m(E){return E===91?(i.enter("labelMarker"),i.consume(E),i.exit("labelMarker"),i.exit("labelImage"),b):f(E)}function b(E){return E===94&&"_hiddenFootnoteSupport"in p.parser.constructs?f(E):a(E)}}const Nje={name:"labelStartLink",tokenize:Bje,resolveAll:M0t.resolveAll};function Bje(i,a,f){const p=this;return w;function w(b){return i.enter("labelLink"),i.enter("labelMarker"),i.consume(b),i.exit("labelMarker"),i.exit("labelLink"),m}function m(b){return b===94&&"_hiddenFootnoteSupport"in p.parser.constructs?f(b):a(b)}}const D0t={name:"lineEnding",tokenize:Rje};function Rje(i,a){return f;function f(p){return i.enter("lineEnding"),i.consume(p),i.exit("lineEnding"),il(i,a,"linePrefix")}}const xY={name:"thematicBreak",tokenize:jje};function jje(i,a,f){let p=0,w;return m;function m(A){return i.enter("thematicBreak"),b(A)}function b(A){return w=A,E(A)}function E(A){return A===w?(i.enter("thematicBreakSequence"),_(A)):p>=3&&(A===null||xa(A))?(i.exit("thematicBreak"),a(A)):f(A)}function _(A){return A===w?(i.consume(A),p++,_):(i.exit("thematicBreakSequence"),Wc(A)?il(i,E,"whitespace")(A):E(A))}}const bp={name:"list",tokenize:qje,continuation:{tokenize:Hje},exit:Gje},$je={tokenize:Uje,partial:!0},zje={tokenize:Vje,partial:!0};function qje(i,a,f){const p=this,w=p.events[p.events.length-1];let m=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,b=0;return E;function E(R){const z=p.containerState.type||(R===42||R===43||R===45?"listUnordered":"listOrdered");if(z==="listUnordered"?!p.containerState.marker||R===p.containerState.marker:C0t(R)){if(p.containerState.type||(p.containerState.type=z,i.enter(z,{_container:!0})),z==="listUnordered")return i.enter("listItemPrefix"),R===42||R===45?i.check(xY,f,A)(R):A(R);if(!p.interrupt||R===49)return i.enter("listItemPrefix"),i.enter("listItemValue"),_(R)}return f(R)}function _(R){return C0t(R)&&++b<10?(i.consume(R),_):(!p.interrupt||b<2)&&(p.containerState.marker?R===p.containerState.marker:R===41||R===46)?(i.exit("listItemValue"),A(R)):f(R)}function A(R){return i.enter("listItemMarker"),i.consume(R),i.exit("listItemMarker"),p.containerState.marker=p.containerState.marker||R,i.check(yY,p.interrupt?f:I,i.attempt($je,N,B))}function I(R){return p.containerState.initialBlankLine=!0,m++,N(R)}function B(R){return Wc(R)?(i.enter("listItemPrefixWhitespace"),i.consume(R),i.exit("listItemPrefixWhitespace"),N):f(R)}function N(R){return p.containerState.size=m+p.sliceSerialize(i.exit("listItemPrefix"),!0).length,a(R)}}function Hje(i,a,f){const p=this;return p.containerState._closeFlow=void 0,i.check(yY,w,m);function w(E){return p.containerState.furtherBlankLines=p.containerState.furtherBlankLines||p.containerState.initialBlankLine,il(i,a,"listItemIndent",p.containerState.size+1)(E)}function m(E){return p.containerState.furtherBlankLines||!Wc(E)?(p.containerState.furtherBlankLines=void 0,p.containerState.initialBlankLine=void 0,b(E)):(p.containerState.furtherBlankLines=void 0,p.containerState.initialBlankLine=void 0,i.attempt(zje,a,b)(E))}function b(E){return p.containerState._closeFlow=!0,p.interrupt=void 0,il(i,i.attempt(bp,a,f),"linePrefix",p.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E)}}function Vje(i,a,f){const p=this;return il(i,w,"listItemIndent",p.containerState.size+1);function w(m){const b=p.events[p.events.length-1];return b&&b[1].type==="listItemIndent"&&b[2].sliceSerialize(b[1],!0).length===p.containerState.size?a(m):f(m)}}function Gje(i){i.exit(this.containerState.type)}function Uje(i,a,f){const p=this;return il(i,w,"listItemPrefixWhitespace",p.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function w(m){const b=p.events[p.events.length-1];return!Wc(m)&&b&&b[1].type==="listItemPrefixWhitespace"?a(m):f(m)}}const ZNt={name:"setextUnderline",tokenize:Yje,resolveTo:Wje};function Wje(i,a){let f=i.length,p,w,m;for(;f--;)if(i[f][0]==="enter"){if(i[f][1].type==="content"){p=f;break}i[f][1].type==="paragraph"&&(w=f)}else i[f][1].type==="content"&&i.splice(f,1),!m&&i[f][1].type==="definition"&&(m=f);const b={type:"setextHeading",start:Object.assign({},i[w][1].start),end:Object.assign({},i[i.length-1][1].end)};return i[w][1].type="setextHeadingText",m?(i.splice(w,0,["enter",b,a]),i.splice(m+1,0,["exit",i[p][1],a]),i[p][1].end=Object.assign({},i[m][1].end)):i[p][1]=b,i.push(["exit",b,a]),i}function Yje(i,a,f){const p=this;let w;return m;function m(A){let I=p.events.length,B;for(;I--;)if(p.events[I][1].type!=="lineEnding"&&p.events[I][1].type!=="linePrefix"&&p.events[I][1].type!=="content"){B=p.events[I][1].type==="paragraph";break}return!p.parser.lazy[p.now().line]&&(p.interrupt||B)?(i.enter("setextHeadingLine"),w=A,b(A)):f(A)}function b(A){return i.enter("setextHeadingLineSequence"),E(A)}function E(A){return A===w?(i.consume(A),E):(i.exit("setextHeadingLineSequence"),Wc(A)?il(i,_,"lineSuffix")(A):_(A))}function _(A){return A===null||xa(A)?(i.exit("setextHeadingLine"),a(A)):f(A)}}const Kje={tokenize:Xje};function Xje(i){const a=this,f=i.attempt(yY,p,i.attempt(this.parser.constructs.flowInitial,w,il(i,i.attempt(this.parser.constructs.flow,w,i.attempt(eje,w)),"linePrefix")));return f;function p(m){if(m===null){i.consume(m);return}return i.enter("lineEndingBlank"),i.consume(m),i.exit("lineEndingBlank"),a.currentConstruct=void 0,f}function w(m){if(m===null){i.consume(m);return}return i.enter("lineEnding"),i.consume(m),i.exit("lineEnding"),a.currentConstruct=void 0,f}}const Qje={resolveAll:tBt()},Zje=JNt("string"),Jje=JNt("text");function JNt(i){return{tokenize:a,resolveAll:tBt(i==="text"?t$e:void 0)};function a(f){const p=this,w=this.parser.constructs[i],m=f.attempt(w,b,E);return b;function b(I){return A(I)?m(I):E(I)}function E(I){if(I===null){f.consume(I);return}return f.enter("data"),f.consume(I),_}function _(I){return A(I)?(f.exit("data"),m(I)):(f.consume(I),_)}function A(I){if(I===null)return!0;const B=w[I];let N=-1;if(B)for(;++N<B.length;){const R=B[N];if(!R.previous||R.previous.call(p,p.previous))return!0}return!1}}}function tBt(i){return a;function a(f,p){let w=-1,m;for(;++w<=f.length;)m===void 0?f[w]&&f[w][1].type==="data"&&(m=w,w++):(!f[w]||f[w][1].type!=="data")&&(w!==m+2&&(f[m][1].end=f[w-1][1].end,f.splice(m+2,w-m-2),w=m+2),m=void 0);return i?i(f,p):f}}function t$e(i,a){let f=0;for(;++f<=i.length;)if((f===i.length||i[f][1].type==="lineEnding")&&i[f-1][1].type==="data"){const p=i[f-1][1],w=a.sliceStream(p);let m=w.length,b=-1,E=0,_;for(;m--;){const A=w[m];if(typeof A=="string"){for(b=A.length;A.charCodeAt(b-1)===32;)E++,b--;if(b)break;b=-1}else if(A===-2)_=!0,E++;else if(A!==-1){m++;break}}if(E){const A={type:f===i.length||_||E<2?"lineSuffix":"hardBreakTrailing",start:{line:p.end.line,column:p.end.column-E,offset:p.end.offset-E,_index:p.start._index+m,_bufferIndex:m?b:p.start._bufferIndex+b},end:Object.assign({},p.end)};p.end=Object.assign({},A.start),p.start.offset===p.end.offset?Object.assign(p,A):(i.splice(f,0,["enter",A,a],["exit",A,a]),f+=2)}f++}return i}function e$e(i,a,f){let p=Object.assign(f?Object.assign({},f):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const w={},m=[];let b=[],E=[];const _={consume:at,enter:bt,exit:mt,attempt:ut(yt),check:ut(ft),interrupt:ut(ft,{interrupt:!0})},A={previous:null,code:null,containerState:{},events:[],parser:i,sliceStream:R,sliceSerialize:N,now:z,defineSkip:W,write:B};let I=a.tokenize.call(A,_);return a.resolveAll&&m.push(a),A;function B(U){return b=sw(b,U),et(),b[b.length-1]!==null?[]:(vt(a,0),A.events=_0t(m,A.events,A),A.events)}function N(U,Tt){return r$e(R(U),Tt)}function R(U){return n$e(b,U)}function z(){const{line:U,column:Tt,offset:nt,_index:It,_bufferIndex:Ot}=p;return{line:U,column:Tt,offset:nt,_index:It,_bufferIndex:Ot}}function W(U){w[U.line]=U.column,pt()}function et(){let U;for(;p._index<b.length;){const Tt=b[p._index];if(typeof Tt=="string")for(U=p._index,p._bufferIndex<0&&(p._bufferIndex=0);p._index===U&&p._bufferIndex<Tt.length;)st(Tt.charCodeAt(p._bufferIndex));else st(Tt)}}function st(U){I=I(U)}function at(U){xa(U)?(p.line++,p.column=1,p.offset+=U===-3?2:1,pt()):U!==-1&&(p.column++,p.offset++),p._bufferIndex<0?p._index++:(p._bufferIndex++,p._bufferIndex===b[p._index].length&&(p._bufferIndex=-1,p._index++)),A.previous=U}function bt(U,Tt){const nt=Tt||{};return nt.type=U,nt.start=z(),A.events.push(["enter",nt,A]),E.push(nt),nt}function mt(U){const Tt=E.pop();return Tt.end=z(),A.events.push(["exit",Tt,A]),Tt}function yt(U,Tt){vt(U,Tt.from)}function ft(U,Tt){Tt.restore()}function ut(U,Tt){return nt;function nt(It,Ot,Bt){let Et,Z,Ct,xt;return Array.isArray(It)?Le(It):"tokenize"in It?Le([It]):Ht(It);function Ht(me){return Ve;function Ve(Ye){const ce=Ye!==null&&me[Ye],ke=Ye!==null&&me.null,zt=[...Array.isArray(ce)?ce:ce?[ce]:[],...Array.isArray(ke)?ke:ke?[ke]:[]];return Le(zt)(Ye)}}function Le(me){return Et=me,Z=0,me.length===0?Bt:Ft(me[Z])}function Ft(me){return Ve;function Ve(Ye){return xt=X(),Ct=me,me.partial||(A.currentConstruct=me),me.name&&A.parser.constructs.disable.null.includes(me.name)?Se():me.tokenize.call(Tt?Object.assign(Object.create(A),Tt):A,_,gn,Se)(Ye)}}function gn(me){return U(Ct,xt),Ot}function Se(me){return xt.restore(),++Z<Et.length?Ft(Et[Z]):Bt}}}function vt(U,Tt){U.resolveAll&&!m.includes(U)&&m.push(U),U.resolve&&m3(A.events,Tt,A.events.length-Tt,U.resolve(A.events.slice(Tt),A)),U.resolveTo&&(A.events=U.resolveTo(A.events,A))}function X(){const U=z(),Tt=A.previous,nt=A.currentConstruct,It=A.events.length,Ot=Array.from(E);return{restore:Bt,from:It};function Bt(){p=U,A.previous=Tt,A.currentConstruct=nt,A.events.length=It,E=Ot,pt()}}function pt(){p.line in w&&p.column<2&&(p.column=w[p.line],p.offset+=w[p.line]-1)}}function n$e(i,a){const f=a.start._index,p=a.start._bufferIndex,w=a.end._index,m=a.end._bufferIndex;let b;if(f===w)b=[i[f].slice(p,m)];else{if(b=i.slice(f,w),p>-1){const E=b[0];typeof E=="string"?b[0]=E.slice(p):b.shift()}m>0&&b.push(i[w].slice(0,m))}return b}function r$e(i,a){let f=-1;const p=[];let w;for(;++f<i.length;){const m=i[f];let b;if(typeof m=="string")b=m;else switch(m){case-5:{b="\r";break}case-4:{b=` 114 `),E.style===void 0&&(N.style=N.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),N.labelStyle=N.labelStyle.replace("color:","fill:"),N.id=A,N.classes="flowchart-link "+I+" "+B,a.setEdge(E.start,E.end,N,p)})},B0t={setConf:aze,addVertices:MBt,addEdges:DBt,getClasses:function(i,a){return a.db.getClasses()},draw:async function(i,a,f,p){Ut.info("Drawing flowchart");let w=p.db.getDirection();w===void 0&&(w="TD");const{securityLevel:m,flowchart:b}=Oe(),E=b.nodeSpacing||50,_=b.rankSpacing||50;let A;m==="sandbox"&&(A=yr("#i"+a));const I=yr(m==="sandbox"?A.nodes()[0].contentDocument.body:"body"),B=m==="sandbox"?A.nodes()[0].contentDocument:document,N=new c1({multigraph:!0,compound:!0}).setGraph({rankdir:w,nodesep:E,ranksep:_,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let R;const z=p.db.getSubGraphs();Ut.info("Subgraphs - ",z);for(let yt=z.length-1;yt>=0;yt--)R=z[yt],Ut.info("Subgraph - ",R),p.db.addVertex(R.id,{text:R.title,type:R.labelType},"group",void 0,R.classes,R.dir);const W=p.db.getVertices(),et=p.db.getEdges();Ut.info("Edges",et);let st=0;for(st=z.length-1;st>=0;st--){R=z[st],sMt("cluster").append("text");for(let yt=0;yt<R.nodes.length;yt++)Ut.info("Setting up subgraphs",R.nodes[yt],R.id),N.setParent(R.nodes[yt],R.id)}MBt(W,N,a,I,B,p),DBt(et,N);const at=I.select(`[id="${a}"]`),bt=I.select("#"+a+" g");if(await N0t(bt,N,["point","circle","cross"],"flowchart",a),$a.insertTitle(at,"flowchartTitleText",b.titleTopMargin,p.db.getDiagramTitle()),fT(N,at,b.diagramPadding,b.useMaxWidth),p.db.indexNodes("subGraph"+st),!b.htmlLabels){const yt=B.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const ft of yt){const ut=ft.getBBox(),vt=B.createElementNS("http://www.w3.org/2000/svg","rect");vt.setAttribute("rx",0),vt.setAttribute("ry",0),vt.setAttribute("width",ut.width),vt.setAttribute("height",ut.height),ft.insertBefore(vt,ft.firstChild)}}Object.keys(W).forEach(function(yt){const ft=W[yt];if(ft.link){const ut=yr("#"+a+' [id="'+yt+'"]');if(ut){const vt=B.createElementNS("http://www.w3.org/2000/svg","a");vt.setAttributeNS("http://www.w3.org/2000/svg","class",ft.classes.join(" ")),vt.setAttributeNS("http://www.w3.org/2000/svg","href",ft.link),vt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),m==="sandbox"?vt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ft.linkTarget&&vt.setAttributeNS("http://www.w3.org/2000/svg","target",ft.linkTarget);const X=ut.insert(function(){return vt},":first-child"),pt=ut.select(".label-container");pt&&X.append(function(){return pt.node()});const U=ut.select(".label");U&&X.append(function(){return U.node()})}}})}},oze=(i,a)=>{const f=cCe,p=f(i,"r"),w=f(i,"g"),m=f(i,"b");return FA(p,w,m,a)},IBt=i=>`.label { 1574 `),xt=0;xt<At.length;xt++){var Mt=At[xt],Dt=tt.measureText(Mt),Bt=Math.ceil(Dt.width),Zt=z;ut=Math.max(Bt,ut),dt+=Zt}return ut+=O,dt+=O,A[T]={width:ut,height:dt}},kp.calculateLabel global() method in H [all...] |
/plugin/dirtylittlehelper/script/ |
H A D | mermaid.min.js.map | 1 …getEdges","ver","setGen","_title","prims","objs","nodeList","boolean","subGraph","getDepthFirstPos…
|