varr=n(246),i=n(247),a=n(130);functiono(){returnc.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functions(t,e){if(o()<e)thrownewRangeError("Invalid typed array length");returnc.TYPED_ARRAY_SUPPORT?(t=newUint8Array(e)).__proto__=c.prototype:(null===t&&(t=newc(e)),t.length=e),t}functionc(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||thisinstanceofc))returnnewc(t,e,n);if("number"==typeoft){if("string"==typeofe)thrownewError("If encoding is specified then the first argument must be a string");returnh(this,t)}returnu(this,t,e,n)}functionu(t,e,n,r){if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&einstanceofArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))thrownewRangeError("'length' is out of bounds");e=void0===n&&void0===r?newUint8Array(e):void0===r?newUint8Array(e,n):newUint8Array(e,n,r);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=l(t,e);returnt}(t,e,n,r):"string"==typeofe?function(t,e,n){"string"==typeofn&&""!==n||(n="utf8");if(!c.isEncoding(n))thrownewTypeError('"encoding" must be a valid string encoding');varr=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));returnt}(t,e,n):function(t,e){if(c.isBuffer(e)){varn=0|d(e.length);return0===(t=s(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)return"number"!=typeofe.length||(r=e.length)!=r?s(t,0):l(t,e);if("Buffer"===e.type&&a(e.data))returnl(t,e.data)}varr;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}functionf(t){if("number"!=typeoft)thrownewTypeError('"size" argument must be a number');if(t<0)thrownewRangeError('"size" argument must not be negative')}functionh(t,e){if(f(e),t=s(t,e<0?0:0|d(e)),!c.TYPED_ARRAY_SUPPORT)for(varn=0;n<e;++n)t[n]=0;returnt}functionl(t,e){varn=e.length<0?0:0|d(e.length);t=s(t,n);for(varr=0;r<n;r+=1)t[r]=255&e[r];returnt}functiond(t){if(t>=o())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return0|t}functionp(t,e){if(c.isBuffer(t))returnt.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(t)||tinstanceofArrayBuffer))returnt.byteLength;"string"!=typeoft&&(t=""+t);varn=t.length;if(0===n)return0;for(varr=!1;;)switch(e){case"ascii":case"latin1":case"binary":returnn;case"utf8":case"utf-8":casevoid0:returnz(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*n;case"hex":returnn>>>1;case"base64":returnU(t).length;default:if(r)returnz(t).length;e=(""+e).toLowerCase(),r=!0}}functiony(t,e,n){varr=!1;if((void0===e||e<0)&&(e=0),e>this.length)return"";if((void0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":returnO(this,e,n);case"utf8":case"utf-8":returnA(this,e,n);case"ascii":returnM(this,e,n);case"latin1":case"binary":returnT(this,e,n);case"base64":returnS(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnC(this,e,n);default:if(r)thrownewTypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}functiong(t,e,n){varr=t[e];t[e]=t[n],t[n]=r}functionb(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeofn?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}elseif(n<0){if(!i)return-1;n=0}if("string"==typeofe&&(e=c.from(e,r)),c.isBuffer(e))return0===e.length?-1:m(t,e,n,r,i);if("number"==typeofe)returne&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);thrownewTypeError("val must be string, number or Buffer")}functionm(t,e,n,r,i){vara,o=1,s=t.length,c=e.length;if(void0!==r&&("ucs2"===(r=String(r).toLowerCase())
t.exports={graphlib:n(438),dagre:n(213),intersect:n(495),render:n(497),util:n(17),version:n(509)}},function(t,e,n){"use strict";varr=n(5),i=n(19).Graph;functiona(t,e,n,i){vara;do{a=r.uniqueId(i)}while(t.hasNode(a));returnn.dummy=e,t.setNode(a,n),a}functiono(t){returnr.max(r.map(t.nodes(),(function(e){varn=t.node(e).rank;if(!r.isUndefined(n))returnn})))}t.exports={addDummyNode:a,simplify:function(t){vare=(newi).setGraph(t.graph());returnr.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){varr=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){vare=newi({multigraph:t.isMultigraph()}).setGraph(t.graph());returnr.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){vare=r.map(t.nodes(),(function(e){varn={};returnr.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));returnr.zipObject(t.nodes(),e)},predecessorWeights:function(t){vare=r.map(t.nodes(),(function(e){varn={};returnr.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));returnr.zipObject(t.nodes(),e)},intersectRect:function(t,e){varn,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,u=t.height/2;if(!o&&!s)thrownewError("Not possible to find intersection inside of the rectangle");Math.abs(s)*c>Math.abs(o)*u?(s<0&&(u=-u),n=u*o/s,r=u):(o<0&&(c=-c),n=c,r=c*s/o);return{x:i+n,y:a+r}},buildLayerMatrix:function(t){vare=r.map(r.range(o(t)+1),(function(){return[]}));returnr.forEach(t.nodes(),(function(n){vari=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){vare=r.min(r.map(t.nodes(),(function(e){returnt.node(e).rank})));r.forEach(t.nodes(),(function(n){vari=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){vare=r.min(r.map(t.nodes(),(function(e){returnt.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){vari=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));vari=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){vari={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);returna(t,"border",i,e)},maxRank:o,partition:function(t,e){varn={lhs:[],rhs:[]};returnr.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){varn=r.now();try{returne()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){returne()}}},function(t,e){functionn(t,e){if(!t)thrownewError(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)thrownewError(n||"Assertion failed: "+t+" != "+e)}},function(t,e,n){"use strict";varr=e,i=n(6),a=n(13),o=n(154);r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(t,e,n){varr=newArray(Math.max(t.bitLength(),n)+1);r.fill(0);for(vari=1<<e+1,a=t.clone(),o=0;o<r.length;o++){vars,c=a.andln(i-1);a.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}returnr},r.getJSF=function(t,e){varn=[[],[]];t=t.clone(),e=e.clone();for(varr=0,i=0;t.cmpn(-r)>0||e.cmpn(-i)>0;){vara,o,s,c=t.andln(3)+r&3,u=e.andln(3)+i&3;if(3===c&&(c=-1),3===u&&(u=-1),0==(1&c))a=0;elsea=3!==(s=t.andln(7)+r&7)&&5!==s||2!==u?c:-c;if(n[0].push(a),0==(1&u))o=0;elseo=3!==(s=e.andln(7)+i&7)&&5!==s||2!==c?u:-u;n[1].push(o),2*r===a+1&&(r=1-r),2*i===o+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}returnn},r.cachedProperty=function(t,e,n){varr="_"+e;t.prototype[e]=function(){returnvoid0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"==typeoft?r.toArray(t,"hex"):t},r.intFromLE=function(t){returnnewi(t,"hex","le")}},function(t,e,n){varr;try{r={clone:n(327),constant:n(118),each:n(119),filter:n(188),has:n(125),isArray:n(8),isEmpty:n(403),isFunction:n(44),isUndefined:n(199),keys:n(34),map:n(200),reduce:n(202),size:n(406),transfo
void0!==arguments[0]&&(oo.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],"function"==typeofarguments[arguments.length-1]?(e=arguments[arguments.length-1],l.debug("Callback function found")):void0!==a.mermaid&&("function"==typeofa.mermaid.callback?(e=a.mermaid.callback,l.debug("Callback function found")):l.debug("No Callback function found")),t=void0===t?document.querySelectorAll(".mermaid"):"string"==typeoft?document.querySelectorAll(t):tinstanceofwindow.Node?[t]:t,l.debug("Start On Load before: "+oo.startOnLoad),void0!==oo.startOnLoad&&(l.debug("Start On Load inner: "+oo.startOnLoad),io.initialize({startOnLoad:oo.startOnLoad})),void0!==oo.ganttConfig&&io.initialize({gantt:oo.ganttConfig});for(varo=function(a){varo=t[a];
/*! Check if previously processed */if(o.getAttribute("data-processed"))return"continue";o.setAttribute("data-processed",!0);vars="mermaid-".concat(Date.now());n=i(n=o.innerHTML).trim().replace(/<br\s*\/?>/gi,"<br/>");varc=Y.detectInit(n);c&&l.debug("Detected early reinit: ",c);try{io.render(s,n,(function(t,n){o.innerHTML=t,void0!==e&&e(s),n&&n(o)}),o)}catch(t){l.warn("Syntax Error rendering"),l.warn(t),r.parseError&&r.parseError(t)}},s=0;s<t.length;s++)o(s)},initialize:function(t){io.reset(),void0!==t.mermaid&&(void0!==t.mermaid.startOnLoad&&(oo.startOnLoad=t.mermaid.startOnLoad),void0!==t.mermaid.htmlLabels&&(oo.htmlLabels=t.mermaid.htmlLabels)),io.initialize(t)},contentLoaded:ao};e.default=oo}]).default}));