mermaid/dist/mermaid.slim.min.js

14 lines
336 KiB
JavaScript
Raw Normal View History

2015-10-19 22:08:17 +02:00
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.mermaid=t()}}(function(){var define,module,exports;return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[o]={exports:{}};e[o][0].call(l.exports,function(t){var r=e[o][1][t];return i(r?r:t)},l,l.exports,t,e,r,n)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(){},{}],2:[function(t,e,r){(function(t){function e(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(t){return i.exec(t).slice(1)};r.resolve=function(){for(var r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(r=o+"/"+r,i="/"===o.charAt(0))}return r=e(n(r.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+r||"."},r.normalize=function(t){var i=r.isAbsolute(t),a="/"===o(t,-1);return t=e(n(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},r.isAbsolute=function(t){return"/"===t.charAt(0)},r.join=function(){var t=Array.prototype.slice.call(arguments,0);return r.normalize(n(t,function(t){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},r.relative=function(t,e){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=r.resolve(t).substr(1),e=r.resolve(e).substr(1);for(var i=n(t.split("/")),a=n(e.split("/")),o=Math.min(i.length,a.length),s=o,u=0;o>u;u++)if(i[u]!==a[u]){s=u;break}for(var c=[],u=s;u<i.length;u++)c.push("..");return c=c.concat(a.slice(s)),c.join("/")},r.sep="/",r.delimiter=":",r.dirname=function(t){var e=a(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},r.basename=function(t,e){var r=a(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},r.extname=function(t){return a(t)[3]};var o="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return 0>e&&(e=t.length+e),t.substr(e,r)}}).call(this,t("_process"))},{_process:3}],3:[function(t,e){function r(){}var n=e.exports={};n.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.MutationObserver,r="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var n=[];if(e){var i=document.createElement("div"),a=new MutationObserver(function(){var t=n.slice();n.length=0,t.forEach(function(t){t()})});return a.observe(i,{attributes:!0}),function(t){n.length||i.setAttribute("yes","no"),n.push(t)}}return r?(window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}):function(t){setTimeout(t,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=r,n.addListener=r,n.once=r,n.off=r,n.removeListener=r,n.removeAllListeners=r,n.emit=r,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}},{}],4:[function(t,e){e.exports={graphlib:t("./lib/graphlib"),dagre:t("./lib/dagre"),intersect:t("./lib/intersect"),render:t("./lib/render"),util:t("./lib/
n(t,e)})}function n(t,e){var r=e.v,n=t.node(r).rank,i=e.w,a=t.node(i).rank,s=e.name,u=t.edge(e),c=u.labelRank;if(a!==n+1){t.removeEdge(e);var l,h,d;for(d=0,++n;a>n;++d,++n)u.points=[],h={width:0,height:0,edgeLabel:u,edgeObj:e,rank:n},l=o.addDummyNode(t,"edge",h,"_d"),n===c&&(h.width=u.width,h.height=u.height,h.dummy="edge-label",h.labelpos=u.labelpos),t.setEdge(r,l,{weight:u.weight},s),0===d&&t.graph().dummyChains.push(l),r=l;t.setEdge(r,i,{weight:u.weight},s)}}function i(t){a.each(t.graph().dummyChains,function(e){var r,n=t.node(e),i=n.edgeLabel;for(t.setEdge(n.edgeObj,i);n.dummy;)r=t.successors(e)[0],t.removeNode(e),i.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(i.x=n.x,i.y=n.y,i.width=n.width,i.height=n.height),e=r,n=t.node(e)})}var a=t("./lodash"),o=t("./util");e.exports={run:r,undo:i}},{"./lodash":41,"./util":60}],44:[function(t,e){function r(t,e,r){var i,a={};n.each(r,function(r){for(var n,o,s=t.parent(r);s;){if(n=t.parent(s),n?(o=a[n],a[n]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=n}})}var n=t("../lodash");e.exports=r},{"../lodash":41}],45:[function(t,e){function r(t,e){return n.map(e,function(e){var r=t.inEdges(e);if(r.length){var i=n.reduce(r,function(e,r){var n=t.edge(r),i=t.node(r.v);return{sum:e.sum+n.weight*i.order,weight:e.weight+n.weight}},{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}})}var n=t("../lodash");e.exports=r},{"../lodash":41}],46:[function(t,e){function r(t,e,r){var o=n(t),s=new a({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(e){return t.node(e)});return i.each(t.nodes(),function(n){var a=t.node(n),u=t.parent(n);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(s.setNode(n),s.setParent(n,u||o),i.each(t[r](n),function(e){var r=e.v===n?e.w:e.v,a=s.edge(r,n),o=i.isUndefined(a)?0:a.weight;s.setEdge(r,n,{weight:t.edge(e).weight+o})}),i.has(a,"minRank")&&s.setNode(n,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),s}function n(t){for(var e;t.hasNode(e=i.uniqueId("_root")););return e}var i=t("../lodash"),a=t("../graphlib").Graph;e.exports=r},{"../graphlib":38,"../lodash":41}],47:[function(t,e){"use strict";function r(t,e){for(var r=0,i=1;i<e.length;++i)r+=n(t,e[i-1],e[i]);return r}function n(t,e,r){for(var n=i.zipObject(r,i.map(r,function(t,e){return e})),a=i.flatten(i.map(e,function(e){return i.chain(t.outEdges(e)).map(function(e){return{pos:n[e.w],weight:t.edge(e).weight}}).sortBy("pos").value()}),!0),o=1;o<r.length;)o<<=1;var s=2*o-1;o-=1;var u=i.map(new Array(s),function(){return 0}),c=0;return i.each(a.forEach(function(t){var e=t.pos+o;u[e]+=t.weight;for(var r=0;e>0;)e%2&&(r+=u[e+1]),e=e-1>>1,u[e]+=t.weight;c+=t.weight*r})),c}var i=t("../lodash");e.exports=r},{"../lodash":41}],48:[function(t,e){"use strict";function r(t){var e=f.maxRank(t),r=n(t,o.range(1,e+1),"inEdges"),c=n(t,o.range(e-1,-1,-1),"outEdges"),l=s(t);a(t,l);for(var h,d=Number.POSITIVE_INFINITY,p=0,g=0;4>g;++p,++g){i(p%2?r:c,p%4>=2),l=f.buildLayerMatrix(t);var y=u(t,l);d>y&&(g=0,h=o.cloneDeep(l),d=y)}a(t,h)}function n(t,e,r){return o.map(e,function(e){return l(t,e,r)})}function i(t,e){var r=new d;o.each(t,function(t){var n=t.graph().root,i=c(t,n,r,e);o.each(i.vs,function(e,r){t.node(e).order=r}),h(t,r,i.vs)})}function a(t,e){o.each(e,function(e){o.each(e,function(e,r){t.node(e).order=r})})}var o=t("../lodash"),s=t("./init-order"),u=t("./cross-count"),c=t("./sort-subgraph"),l=t("./build-layer-graph"),h=t("./add-subgraph-constraints"),d=t("../graphlib").Graph,f=t("../util");e.exports=r},{"../graphlib":38,"../lodash":41,"../util":60,"./add-subgraph-constraints":44,"./build-layer-graph":46,"./cross-count":47,"./init-order":49,"./sort-subgraph":51}],49:[function(t,e){"use strict";function r(t){function e(i){if(!n.has(r,i)){r[i]=!0;var a=t.node(i);o[a.rank].push(i),n.each(t.successors(i),e)}}var r={},i=n.filter(t.nodes(),function(e){return!t.children(e).length}),a=n.max(n.map(i,function(e){return t.node(e).rank})),o=n.map(n.range(a+1),function(){return[]}),s=n.sortBy(i,function(e){return t.node(e).rank});return n.each(s,e),o}var n=t("../lodash");e.exports=r},{"../
lodash:82}],81:[function(t,e){e.exports="1.0.7"},{}],82:[function(t,e,r){(function(t){(function(){function n(t,e){if(t!==e){var r=null===t,n=t===E,i=t===t,a=null===e,o=e===E,s=e===e;if(t>e&&!a||!i||r&&!o&&s||n&&s)return 1;if(e>t&&!r||!s||a&&!n&&i||o&&i)return-1}return 0}function i(t,e,r){for(var n=t.length,i=r?n:-1;r?i--:++i<n;)if(e(t[i],i,t))return i;return-1}function a(t,e,r){if(e!==e)return y(t,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function o(t){return"function"==typeof t||!1}function s(t){return null==t?"":t+""}function u(t,e){for(var r=-1,n=t.length;++r<n&&e.indexOf(t.charAt(r))>-1;);return r}function c(t,e){for(var r=t.length;r--&&e.indexOf(t.charAt(r))>-1;);return r}function l(t,e){return n(t.criteria,e.criteria)||t.index-e.index}function h(t,e,r){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,u=r.length;++i<s;){var c=n(a[i],o[i]);if(c){if(i>=u)return c;var l=r[i];return c*("asc"===l||l===!0?1:-1)}}return t.index-e.index}function d(t){return Gt[t]}function f(t){return $t[t]}function p(t,e,r){return e?t=zt[t]:r&&(t=Zt[t]),"\\"+t}function g(t){return"\\"+Zt[t]}function y(t,e,r){for(var n=t.length,i=e+(r?0:-1);r?i--:++i<n;){var a=t[i];if(a!==a)return i}return-1}function m(t){return!!t&&"object"==typeof t}function v(t){return 160>=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function b(t,e){for(var r=-1,n=t.length,i=-1,a=[];++r<n;)t[r]===e&&(t[r]=G,a[++i]=r);return a}function _(t,e){for(var r,n=-1,i=t.length,a=-1,o=[];++n<i;){var s=t[n],u=e?e(s,n,t):s;n&&r===u||(r=u,o[++a]=s)}return o}function w(t){for(var e=-1,r=t.length;++e<r&&v(t.charCodeAt(e)););return e}function x(t){for(var e=t.length;e--&&v(t.charCodeAt(e)););return e}function A(t){return Ht[t]}function k(t){function e(t){if(m(t)&&!Ss(t)&&!(t instanceof X)){if(t instanceof v)return t;if(to.call(t,"__chain__")&&to.call(t,"__wrapped__"))return fn(t)}return new v(t)}function r(){}function v(t,e,r){this.__wrapped__=t,this.__actions__=r||[],this.__chain__=!!e}function X(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=To,this.__views__=[]}function et(){var t=new X(this.__wrapped__);return t.__actions__=te(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=te(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=te(this.__views__),t}function nt(){if(this.__filtered__){var t=new X(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Gt(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ss(t),n=0>e,i=r?t.length:0,a=$r(0,i,this.__views__),o=a.start,s=a.end,u=s-o,c=n?s:o-1,l=this.__iteratees__,h=l.length,d=0,f=Ao(u,this.__takeCount__);if(!r||j>i||i==u&&f==u)return rr(n&&r?t.reverse():t,this.__actions__);var p=[];t:for(;u--&&f>d;){c+=e;for(var g=-1,y=t[c];++g<h;){var m=l[g],v=m.iteratee,b=m.type,_=v(y);if(b==Y)y=_;else if(!_){if(b==U)continue t;break t}}p[d++]=y}return p}function $t(){this.__data__={}}function Ht(t){return this.has(t)&&delete this.__data__[t]}function Wt(t){return"__proto__"==t?E:this.__data__[t]}function zt(t){return"__proto__"!=t&&to.call(this.__data__,t)}function Zt(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this}function Kt(t){var e=t?t.length:0;for(this.data={hash:mo(null),set:new lo};e--;)this.push(t[e])}function Xt(t,e){var r=t.data,n="string"==typeof e||Ii(e)?r.set.has(e):r.hash[e];return n?0:-1}function Jt(t){var e=this.data;"string"==typeof t||Ii(t)?e.set.add(t):e.hash[t]=!0}function Qt(t,e){for(var r=-1,n=t.length,i=-1,a=e.length,o=ja(n+a);++r<n;)o[r]=t[r];for(;++i<a;)o[r++]=e[i];return o}function te(t,e){var r=-1,n=t.length;for(e||(e=ja(n));++r<n;)e[r]=t[r];return e}function ee(t,e){for(var r=-1,n=t.length;++r<n&&e(t[r],r,t)!==!1;);return t}function ie(t,e){for(var r=t.length;r--&&e(t[r],r,t)!==!1;);return t}function ae(t,e){for(var r=-1,n=t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function oe(t,e,r,n){for(var i=-1,a=t.length,o=n,s=o;++i<a;){var u=t[i],c=+e(u);r(c,o)&&(
t&&t.charAt(0).toUpperCase()+t.slice(1)}function la(t){return t=s(t),t&&t.replace(Nt,d).replace(St,"")}function ha(t,e,r){t=s(t),e+="";var n=t.length;return r=r===E?n:Ao(0>r?0:+r||0,n),r-=e.length,r>=0&&t.indexOf(e,r)==r}function da(t){return t=s(t),t&&_t.test(t)?t.replace(vt,f):t}function fa(t){return t=s(t),t&&Tt.test(t)?t.replace(Ct,p):t||"(?:)"}function pa(t,e,r){t=s(t),e=+e;var n=t.length;if(n>=e||!_o(e))return t;var i=(e-n)/2,a=vo(i),o=yo(i);return r=Br("",o,r),r.slice(0,a)+t+r}function ga(t,e,r){return(r?Jr(t,e,r):null==e)?e=0:e&&(e=+e),t=ba(t),Eo(t,e||(Ot.test(t)?16:10))}function ya(t,e){var r="";if(t=s(t),e=+e,1>e||!t||!_o(e))return r;do e%2&&(r+=t),e=vo(e/2),t+=t;while(e);return r}function ma(t,e,r){return t=s(t),r=null==r?0:Ao(0>r?0:+r||0,t.length),t.lastIndexOf(e,r)==r}function va(t,r,n){var i=e.templateSettings;n&&Jr(t,r,n)&&(r=n=E),t=s(t),r=ye(me({},n||r),i,ge);var a,o,u=ye(me({},r.imports),i.imports,ge),c=js(u),l=tr(u,c),h=0,d=r.interpolate||Pt,f="__p += '",p=Wa((r.escape||Pt).source+"|"+d.source+"|"+(d===At?Lt:Pt).source+"|"+(r.evaluate||Pt).source+"|$","g"),y="//# sourceURL="+("sourceURL"in r?r.sourceURL:"lodash.templateSources["+ ++Ut+"]")+"\n";t.replace(p,function(e,r,n,i,s,u){return n||(n=i),f+=t.slice(h,u).replace(Rt,g),r&&(a=!0,f+="' +\n__e("+r+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),h=u+e.length,e}),f+="';\n";var m=r.variable;m||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(pt,""):f).replace(gt,"$1").replace(yt,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Xs(function(){return Va(c,y+"return "+f).apply(E,l)});if(v.source=f,Li(v))throw v;return v}function ba(t,e,r){var n=t;return(t=s(t))?(r?Jr(n,e,r):null==e)?t.slice(w(t),x(t)+1):(e+="",t.slice(u(t,e),c(t,e)+1)):t}function _a(t,e,r){var n=t;return t=s(t),t?t.slice((r?Jr(n,e,r):null==e)?w(t):u(t,e+"")):t}function wa(t,e,r){var n=t;return t=s(t),t?(r?Jr(n,e,r):null==e)?t.slice(0,x(t)+1):t.slice(0,c(t,e+"")+1):t}function xa(t,e,r){r&&Jr(t,e,r)&&(e=E);var n=N,i=P;if(null!=e)if(Ii(e)){var a="separator"in e?e.separator:a;n="length"in e?+e.length||0:n,i="omission"in e?s(e.omission):i}else n=+e||0;if(t=s(t),n>=t.length)return t;var o=n-i.length;if(1>o)return i;var u=t.slice(0,o);if(null==a)return u+i;if(Ui(a)){if(t.slice(o).search(a)){var c,l,h=t.slice(0,o);for(a.global||(a=Wa(a.source,(Bt.exec(a)||"")+"g")),a.lastIndex=0;c=a.exec(h);)l=c.index;u=u.slice(0,null==l?o:l)}}else if(t.indexOf(a,o)!=o){var d=u.lastIndexOf(a);d>-1&&(u=u.slice(0,d))}return u+i}function Aa(t){return t=s(t),t&&bt.test(t)?t.replace(mt,A):t}function ka(t,e,r){return r&&Jr(t,e,r)&&(e=E),t=s(t),t.match(e||qt)||[]}function Ea(t,e,r){return r&&Jr(t,e,r)&&(e=E),m(t)?Ta(t):_e(t,e)}function Da(t){return function(){return t}}function Ca(t){return t}function Ta(t){return qe(we(t,!0))}function Sa(t,e){return je(t,we(e,!0))}function Fa(t,e,r){if(null==r){var n=Ii(e),i=n?js(e):E,a=i&&i.length?Oe(e,i):E;(a?a.length:n)||(a=!1,r=e,e=t,t=this)}a||(a=Oe(e,js(e)));var o=!0,s=-1,u=Oi(t),c=a.length;r===!1?o=!1:Ii(r)&&"chain"in r&&(o=r.chain);for(;++s<c;){var l=a[s],h=e[l];t[l]=h,u&&(t.prototype[l]=function(e){return function(){var r=this.__chain__;if(o||r){var n=t(this.__wrapped__),i=n.__actions__=te(this.__actions__);return i.push({func:e,args:arguments,thisArg:t}),n.__chain__=r,n}return e.apply(t,ce([this.value()],arguments))}}(h))}return t}function La(){return re._=no,this}function Ba(){}function Oa(t){return Qr(t)?Ve(t):Ge(t)}function Ia(t){return function(e){return Ie(t,dn(e),e+"")}}function Ma(t,e,r){r&&Jr(t,e,r)&&(e=r=E),t=+t||0,r=null==r?1:+r||0,null==e?(e=t,t=0):e=+e||0;for(var n=-1,i=xo(yo((e-t)/(r||1)),0),a=ja(i);++n<i;)a[n]=t,t+=r;return a}function Na(t,e,r){if(t=vo(t),1>t||!_o(t))return[];var n=-1,i=ja(Ao(t,So));for(e=ar(e,r,1);++n<t;)So>n?i[n]=e(n):e(n);return i}function Pa(t){var e=++eo;return s(t)+e}function Ra(t,e){return(+t||0)+(+e||0)}f
"⟶":"xrarr","↬":"rarrlp","⦅":"lopar","𝕃":"Lopf","𝕝":"lopf","⨭":"loplus","⨴":"lotimes","":"lowast",_:"lowbar","↙":"swarr","↘":"searr","◊":"loz","(":"lpar","⦓":"lparlt","⥭":"lrhard","":"lrm","⊿":"lrtri","":"lsaquo","𝓁":"lscr","↰":"lsh","⪍":"lsime","⪏":"lsimg","":"lsquo","":"sbquo","Ł":"Lstrok","ł":"lstrok","⪦":"ltcc","⩹":"ltcir","<":"lt","⋉":"ltimes","⥶":"ltlarr","⩻":"ltquest","◃":"ltri","⦖":"ltrPar","⥊":"lurdshar","⥦":"luruhar","≨︀":"lvnE","¯":"macr","♂":"male","✠":"malt","⤅":"Map","↦":"map","↥":"mapstoup","▮":"marker","⨩":"mcomma","М":"Mcy","м":"mcy","—":"mdash","∺":"mDDot","":"MediumSpace","":"Mscr","𝔐":"Mfr","𝔪":"mfr","℧":"mho","µ":"micro","⫰":"midcir","":"mid","":"minus","⨪":"minusdu","∓":"mp","⫛":"mlcp","⊧":"models","𝕄":"Mopf","𝕞":"mopf","𝓂":"mscr","Μ":"Mu","μ":"mu","⊸":"mumap","Ń":"Nacute","ń":"nacute","∠⃒":"nang","≉":"nap","⩰̸":"napE","≋̸":"napid","ʼn":"napos","♮":"natur","":"Nopf"," ":"nbsp","≎̸":"nbump","≏̸":"nbumpe","⩃":"ncap","Ň":"Ncaron","ň":"ncaron","Ņ":"Ncedil","ņ":"ncedil","≇":"ncong","⩭̸":"ncongdot","⩂":"ncup","Н":"Ncy","н":"ncy","":"ndash","⤤":"nearhk","↗":"nearr","⇗":"neArr","≠":"ne","≐̸":"nedot","":"ZeroWidthSpace","≢":"nequiv","⤨":"toea","≂̸":"nesim","\n":"NewLine","∄":"nexist","𝔑":"Nfr","𝔫":"nfr","≧̸":"ngE","≱":"nge","⩾̸":"nges","⋙̸":"nGg","≵":"ngsim","≫⃒":"nGt","≯":"ngt","≫̸":"nGtv","↮":"nharr","⇎":"nhArr","⫲":"nhpar","∋":"ni","⋼":"nis","⋺":"nisd","Њ":"NJcy","њ":"njcy","↚":"nlarr","⇍":"nlArr","‥":"nldr","≦̸":"nlE","≰":"nle","⩽̸":"nles","≮":"nlt","⋘̸":"nLl","≴":"nlsim","≪⃒":"nLt","⋪":"nltri","⋬":"nltrie","≪̸":"nLtv","∤":"nmid","":"NoBreak","𝕟":"nopf","⫬":"Not","¬":"not","≭":"NotCupCap","∦":"npar","∉":"notin","≹":"ntgl","⋵̸":"notindot","⋹̸":"notinE","⋷":"notinvb","⋶":"notinvc","⧏̸":"NotLeftTriangleBar","≸":"ntlg","⪢̸":"NotNestedGreaterGreater","⪡̸":"NotNestedLessLess","∌":"notni","⋾":"notnivb","⋽":"notnivc","⊀":"npr","⪯̸":"npre","⋠":"nprcue","⧐̸":"NotRightTriangleBar","⋫":"nrtri","⋭":"nrtrie","⊏̸":"NotSquareSubset","⋢":"nsqsube","⊐̸":"NotSquareSuperset","⋣":"nsqsupe","⊂⃒":"vnsub","⊈":"nsube","⊁":"nsc","⪰̸":"nsce","⋡":"nsccue","≿̸":"NotSucceedsTilde","⊃⃒":"vnsup","⊉":"nsupe","≁":"nsim","≄":"nsime","⫽⃥":"nparsl","∂̸":"npart","⨔":"npolint","⤳̸":"nrarrc","↛":"nrarr","⇏":"nrArr","↝̸":"nrarrw","𝒩":"Nscr","𝓃":"nscr","⊄":"nsub","⫅̸":"nsubE","⊅":"nsup","⫆̸":"nsupE","Ñ":"Ntilde","ñ":"ntilde","Ν":"Nu","ν":"nu","#":"num","№":"numero","":"numsp","≍⃒":"nvap","⊬":"nvdash","⊭":"nvDash","⊮":"nVdash","⊯":"nVDash","≥⃒":"nvge",">⃒":"nvgt","⤄":"nvHarr","⧞":"nvinfin","⤂":"nvlArr","≤⃒":"nvle","<⃒":"nvlt","⊴⃒":"nvltrie","⤃":"nvrArr","⊵⃒":"nvrtrie","∼⃒":"nvsim","⤣":"nwarhk","↖":"nwarr","⇖":"nwArr","⤧":"nwnear","Ó":"Oacute","ó":"oacute","Ô":"Ocirc","ô":"ocirc","О":"Ocy","о":"ocy","Ő":"Odblac","ő":"odblac","⨸":"odiv","⦼":"odsold","Œ":"OElig","œ":"oelig","⦿":"ofcir","𝔒":"Ofr","𝔬":"ofr","˛":"ogon","Ò":"Ograve","ò":"ograve","⧁":"ogt","⦵":"ohbar","Ω":"ohm","⦾":"olcir","⦻":"olcross","‾":"oline","⧀":"olt","Ō":"Omacr","ō":"omacr","ω":"omega","Ο":"Omicron","ο":"omicron","⦶":"omid","𝕆":"Oopf","𝕠":"oopf","⦷":"opar","⦹":"operp","⩔":"Or","":"or","⩝":"ord","":"oscr","ª":"ordf","º":"ordm","⊶":"origof","⩖":"oror","⩗":"orslope","⩛":"orv","𝒪":"Oscr","Ø":"Oslash","ø":"oslash","⊘":"osol","Õ":"Otilde","õ":"otilde","⨶":"otimesas","⨷":"Otimes","Ö":"Ouml","ö":"ouml","⌽":"ovbar","⏞":"OverBrace","⎴":"tbrk","⏜":"OverParenthesis","¶":"para","⫳":"parsim","⫽":"parsl","∂":"part","П":"Pcy","п":"pcy","%":"percnt",".":"period","‰":"permil","‱":"pertenk","𝔓":"Pfr","𝔭":"pfr","Φ":"P
timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"",Vee:"",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:"",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},v={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",la
}var Mr,Nr,Pr=r.momentProperties=[],Rr=!1,qr={},jr={},Ur=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Yr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vr={},Gr={},$r=/\d/,Hr=/\d\d/,Wr=/\d{3}/,zr=/\d{4}/,Zr=/[+-]?\d{6}/,Kr=/\d\d?/,Xr=/\d{1,3}/,Jr=/\d{1,4}/,Qr=/[+-]?\d{1,6}/,tn=/\d+/,en=/[+-]?\d+/,rn=/Z|[+-]\d\d:?\d\d/gi,nn=/[+-]?\d+(\.\d{1,3})?/,an=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,on={},sn={},un=0,cn=1,ln=2,hn=3,dn=4,fn=5,pn=6;M("M",["MM",2],"Mo",function(){return this.month()+1}),M("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),M("MMMM",0,0,function(t){return this.localeData().months(this,t)}),C("month","M"),U("M",Kr),U("MM",Kr,Hr),U("MMM",an),U("MMMM",an),G(["M","MM"],function(t,e){e[cn]=v(t)-1}),G(["MMM","MMMM"],function(t,e,r,n){var i=r._locale.monthsParse(t,n,r._strict);null!=i?e[cn]=i:h(r).invalidMonth=t});var gn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),yn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),mn={};r.suppressDeprecationWarnings=!1;var vn=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],_n=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],wn=/^\/?Date\((\-?\d+)/i;r.createFromInputFallback=rt("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),M(0,["YY",2],0,function(){return this.year()%100}),M(0,["YYYY",4],0,"year"),M(0,["YYYYY",5],0,"year"),M(0,["YYYYYY",6,!0],0,"year"),C("year","y"),U("Y",en),U("YY",Kr,Hr),U("YYYY",Jr,zr),U("YYYYY",Qr,Zr),U("YYYYYY",Qr,Zr),G(["YYYYY","YYYYYY"],un),G("YYYY",function(t,e){e[un]=2===t.length?r.parseTwoDigitYear(t):v(t)}),G("YY",function(t,e){e[un]=r.parseTwoDigitYear(t)}),r.parseTwoDigitYear=function(t){return v(t)+(v(t)>68?1900:2e3)};var xn=F("FullYear",!1);M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),U("w",Kr),U("ww",Kr,Hr),U("W",Kr),U("WW",Kr,Hr),$(["w","ww","W","WW"],function(t,e,r,n){e[n.substr(0,1)]=v(t)});var An={dow:0,doy:6};M("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),U("DDD",Xr),U("DDDD",Wr),G(["DDD","DDDD"],function(t,e,r){r._dayOfYear=v(t)}),r.ISO_8601=function(){};var kn=rt("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Lt.apply(null,arguments);return this>t?this:t}),En=rt("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Lt.apply(null,arguments);return t>this?this:t});Pt("Z",":"),Pt("ZZ",""),U("Z",rn),U("ZZ",rn),G(["Z","ZZ"],function(t,e,r){r._useUTC=!0,r._tzm=Rt(t)});var Dn=/([\+\-]|\d\d)/gi;r.updateOffset=function(){};var Cn=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Tn=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Jt.fn=Mt.prototype;var Sn=re(1,"add"),Fn=re(-1,"subtract");r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Ln=rt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});M(0,["gg",2],0,function(){return this.weekYear()%100}),M(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Le("gggg","weekYear"),Le("ggggg","weekYear"),Le("GGGG","isoWeekYear"),Le("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWee
o},w.shapes().rect_right_inv_arrow=function(t,e,r){var n=e.width,i=e.height,a=[{x:0,y:0},{x:n+i/2,y:0},{x:n,y:-i/2},{x:n+i/2,y:-i},{x:0,y:-i}],o=t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("transform","translate("+-n/2+","+2*i/4+")");return r.intersect=function(t){return l.intersect.polygon(r,a,t)},o},w.arrows().none=function(t,e,r,n){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),a=i.append("path").attr("d","M 0 0 L 0 0 L 0 0 z");l.util.applyStyle(a,r[n+"Style"])};var x=c.select("#"+e),A=c.select("#"+e+" g");for(w(A,g),A.selectAll("g.node").attr("title",function(){return o.getTooltip(this.id)}),d.useMaxWidth?(x.attr("height","100%"),x.attr("width",d.width),x.attr("viewBox","0 0 "+(g.graph().width+20)+" "+(g.graph().height+20)),x.attr("style","max-width:"+(g.graph().width+20)+"px;")):(x.attr("height",g.graph().height),"undefined"==typeof d.width?x.attr("width",g.graph().width):x.attr("width",d.width),x.attr("viewBox","0 0 "+(g.graph().width+20)+" "+(g.graph().height+20))),o.indexNodes("subGraph"+m),m=0;m<y.length;m++)if(p=y[m],"undefined"!==p.title){var k=document.querySelectorAll("#"+e+" #"+p.id+" rect"),E=document.querySelectorAll("#"+e+" #"+p.id),D=k[0].x.baseVal.value,C=k[0].y.baseVal.value,T=k[0].width.baseVal.value,S=c.select(E[0]),F=S.append("text");F.attr("x",D+T/2),F.attr("y",C+14),F.attr("fill","black"),F.attr("stroke","none"),F.attr("id",e+"Text"),F.style("text-anchor","middle"),F.text("undefined"==typeof p.title?"Undef":p.title)}}},{"../../d3":86,"../../logger":102,"./dagre-d3":90,"./graphDb":92,"./parser/dot":93,"./parser/flow":94}],92:[function(require,module,exports){(function(global){"use strict";function _interopRequireWildcard(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}var _logger=require("../../logger"),Logger=_interopRequireWildcard(_logger),log=new Logger.Log,d3=require("../../d3"),vertices={},edges=[],classes=[],subGraphs=[],tooltips={},subCount=0,direction,funs=[];exports.addVertex=function(t,e,r,n){var i;"undefined"!=typeof t&&0!==t.trim().length&&("undefined"==typeof vertices[t]&&(vertices[t]={id:t,styles:[],classes:[]}),"undefined"!=typeof e&&(i=e.trim(),'"'===i[0]&&'"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),vertices[t].text=i),"undefined"!=typeof r&&(vertices[t].type=r),"undefined"!=typeof r&&(vertices[t].type=r),"undefined"!=typeof n&&null!==n&&n.forEach(function(e){vertices[t].styles.push(e)}))},exports.addLink=function(t,e,r,n){log.debug("Got edge",t,e);var i={start:t,end:e,type:void 0,text:""};n=r.text,"undefined"!=typeof n&&(i.text=n.trim(),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),"undefined"!=typeof r&&(i.type=r.type,i.stroke=r.stroke),edges.push(i)},exports.updateLink=function(t,e){"default"===t?edges.defaultStyle=e:edges[t].style=e},exports.addClass=function(t,e){"undefined"==typeof classes[t]&&(classes[t]={id:t,styles:[]}),"undefined"!=typeof e&&null!==e&&e.forEach(function(e){classes[t].styles.push(e)})},exports.setDirection=function(t){direction=t},exports.setClass=function(t,e){t.indexOf(",")>0?t.split(",").forEach(function(t){"undefined"!=typeof vertices[t]&&vertices[t].classes.push(e)}):"undefined"!=typeof vertices[t]&&vertices[t].classes.push(e)};var setTooltip=function(t,e){"undefined"!=typeof e&&(tooltips[t]=e)},setClickFun=function setClickFun(id,functionName){"undefined"!=typeof functionName&&"undefined"!=typeof vertices[id]&&funs.push(function(element){var elem=d3.select(element).select("#"+id);null!==elem&&elem.on("click",function(){eval(functionName+"('"+id+"')")})})},setLink=function(t,e){"undefined"!=typeof e&&"undefined"!=typeof vertices[t]&&funs.push(function(r){var n=d3.select(r).select("#"+t);null!==n&&n.on("click",function(){window.open(e,"newTab")})})};exports.getTooltip=function(t){return tooltips
n.addVertex(a[o-4],a[o-2],"square");break;case 45:this.$=a[o-5],n.addVertex(a[o-5],a[o-2],"circle");break;case 46:this.$=a[o-6],n.addVertex(a[o-6],a[o-3],"circle");break;case 47:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"round");break;case 48:this.$=a[o-4],n.addVertex(a[o-4],a[o-2],"round");break;case 49:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"diamond");break;case 50:this.$=a[o-4],n.addVertex(a[o-4],a[o-2],"diamond");break;case 51:this.$=a[o-3],n.addVertex(a[o-3],a[o-1],"odd");break;case 52:this.$=a[o-4],n.addVertex(a[o-4],a[o-2],"odd");break;case 53:this.$=a[o],n.addVertex(a[o]);break;case 54:this.$=a[o-1],n.addVertex(a[o-1]);break;case 56:case 91:case 94:case 107:this.$=a[o-1]+""+a[o];break;case 59:this.$="v";break;case 60:this.$="-";break;case 61:a[o-1].text=a[o],this.$=a[o-1];break;case 62:case 63:a[o-2].text=a[o-1],this.$=a[o-2];break;case 64:this.$=a[o];break;case 65:this.$={type:"arrow",stroke:"normal",text:a[o-1]};break;case 66:this.$={type:"arrow_circle",stroke:"normal",text:a[o-1]};break;case 67:this.$={type:"arrow_cross",stroke:"normal",text:a[o-1]};break;case 68:this.$={type:"arrow_open",stroke:"normal",text:a[o-1]};break;case 69:this.$={type:"arrow",stroke:"dotted",text:a[o-1]};break;case 70:this.$={type:"arrow_circle",stroke:"dotted",text:a[o-1]};break;case 71:this.$={type:"arrow_cross",stroke:"dotted",text:a[o-1]};break;case 72:this.$={type:"arrow_open",stroke:"dotted",text:a[o-1]};break;case 73:this.$={type:"arrow",stroke:"thick",text:a[o-1]};break;case 74:this.$={type:"arrow_circle",stroke:"thick",text:a[o-1]};break;case 75:this.$={type:"arrow_cross",stroke:"thick",text:a[o-1]};break;case 76:this.$={type:"arrow_open",stroke:"thick",text:a[o-1]};break;case 77:this.$={type:"arrow",stroke:"normal"};break;case 78:this.$={type:"arrow_circle",stroke:"normal"};break;case 79:this.$={type:"arrow_cross",stroke:"normal"};break;case 80:this.$={type:"arrow_open",stroke:"normal"};break;case 81:this.$={type:"arrow",stroke:"dotted"};break;case 82:this.$={type:"arrow_circle",stroke:"dotted"};break;case 83:this.$={type:"arrow_cross",stroke:"dotted"};break;case 84:this.$={type:"arrow_open",stroke:"dotted"};break;case 85:this.$={type:"arrow",stroke:"thick"};break;case 86:this.$={type:"arrow_circle",stroke:"thick"};break;case 87:this.$={type:"arrow_cross",stroke:"thick"};break;case 88:this.$={type:"arrow_open",stroke:"thick"};break;case 89:this.$=a[o-1];break;case 108:case 109:this.$=a[o-4],n.addClass(a[o-2],a[o]);break;case 110:this.$=a[o-4],n.setClass(a[o-2],a[o]);break;case 111:this.$=a[o-4],n.setClickEvent(a[o-2],a[o],void 0,void 0);break;case 112:this.$=a[o-6],n.setClickEvent(a[o-4],a[o-2],void 0,a[o]);break;case 113:this.$=a[o-4],n.setClickEvent(a[o-2],void 0,a[o],void 0);break;case 114:this.$=a[o-6],n.setClickEvent(a[o-4],void 0,a[o-2],a[o]);break;case 115:this.$=a[o-4],n.addVertex(a[o-2],void 0,void 0,a[o]);break;case 116:case 117:case 118:this.$=a[o-4],n.updateLink(a[o-2],a[o]);break;case 120:this.$=[a[o]];break;case 121:a[o-2].push(a[o]),this.$=a[o-2];break;case 123:this.$=a[o-1]+a[o]}},table:[{3:1,4:2,9:r,10:n,12:i},{1:[3]},e(a,o,{5:6}),{4:7,9:r,10:n,12:i},{4:8,9:r,10:n,12:i},{10:[1,9]},{1:[2,1],6:10,7:11,8:s,9:u,10:c,11:l,13:h,18:d,23:16,25:17,26:18,27:19,28:20,29:21,30:f,33:23,35:29,42:30,43:32,44:p,69:g,70:y,71:m,72:v,73:b,79:_,83:w,85:x,86:A,88:k,89:E,91:D,92:C,93:T},e(a,[2,9]),e(a,[2,10]),{13:[1,44],15:[1,45],16:[1,46],17:[1,47],18:[1,48]},e(S,[2,3]),e(S,[2,4]),e(S,[2,5]),e(S,[2,6]),e(S,[2,7]),e(S,[2,8]),{8:F,9:L,11:B,24:49},{8:F,9:L,11:B,24:53},{8:F,9:L,11:B,24:54},{8:F,9:L,11:B,24:55},{8:F,9:L,11:B,24:56},{8:F,9:L,11:B,24:57},{8:F,9:L,10:O,11:B,12:I,13:M,15:N,16:P,17:R,18:q,24:59,30:j,31:58,32:U,43:69,44:Y,48:V,58:G,64:60,65:$,68:72,69:H,70:W,71:z,72:Z,73:K,75:62,76:X,79:_,81:J,83:w,85:x,86:A,88:k,89:E,91:D,92:C,93:T},e(Q,[2,42],{34:84,45:85,48:[1,86],49:[1,89],50:[1,90],51:[1,91],52:[1,92],53:[1,87],54:[1,93],55:[1,94],56:[1,95],57:[1,96],58:[1,88],59:[1,97],60:[1,98],61:[1,99],62:[1,100]}),{10:[1,101]},{10:[1,102]},{10:[1,103]},{10:[1,104]},{10:[1,105]},e(tt,[2,53],{43:32,21:110,42:111,10:et,13:h,15:[1,10
n>7&&230>n&&(h=h.ticks(i.time.monday.range)),b.append("g").attr("class","grid").attr("transform","translate("+t+", "+(a-50)+")").call(h).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em")}function h(t,e){for(var r=[],n=0,i=0;i<A.length;i++)r[i]=[A[i],g(A[i],E)];b.append("g").selectAll("text").data(r).enter().append("text").text(function(t){return t[0]}).attr("x",10).attr("y",function(i,a){if(!(a>0))return i[1]*t/2+e;for(var o=0;a>o;o++)return n+=r[a-1][1],i[1]*t/2+n*t+e}).attr("class",function(t){for(var e=0;e<A.length;e++)if(t[0]===A[e])return"sectionTitle sectionTitle"+e%o.numberSectionStyles;return"sectionTitle"})}function d(t,e,r,n){var i=b.append("g").attr("class","today"),a=new Date;i.append("line").attr("x1",x(a)+t).attr("x2",x(a)+t).attr("y1",o.titleTopMargin).attr("y2",n-o.titleTopMargin).attr("class","today")}function f(t){for(var e={},r=[],n=0,i=t.length;i>n;++n)e.hasOwnProperty(t[n])||(e[t[n]]=!0,r.push(t[n]));return r}function p(t){for(var e=t.length,r={};e;)r[t[--e]]=(r[t[e]]||0)+1;return r}function g(t,e){return p(e)[t]||0}r.yy.clear(),r.parse(t);var y=document.getElementById(e);s=y.parentElement.offsetWidth,"undefined"==typeof s&&(s=1200),"undefined"!=typeof o.useWidth&&(s=o.useWidth);var m=r.yy.getTasks(),v=m.length*(o.barHeight+o.barGap)+2*o.topPadding;y.setAttribute("height","100%"),y.setAttribute("viewBox","0 0 "+s+" "+v);var b=i.select("#"+e),_=i.min(m,function(t){return t.startTime}),w=i.max(m,function(t){return t.endTime}),x=i.time.scale().domain([i.min(m,function(t){return t.startTime}),i.max(m,function(t){return t.endTime})]).rangeRound([0,s-150]),A=[];n=a.duration(w-_).asDays();for(var k=0;k<m.length;k++)A.push(m[k].type);var E=A;A=f(A),u(m,s,v),"undefined"!=typeof o.useWidth&&y.setAttribute("width",s),b.append("text").text(r.yy.getTitle()).attr("x",s/2).attr("y",o.titleTopMargin).attr("class","titleText")}},{"../../d3":86,"./ganttDb":95,"./parser/gantt":97,moment:84}],97:[function(t,e,r){(function(n){"use strict";var i=function(){function t(){this.yy={}}var e=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},r=[6,8,10,11,12,13,14],n=[1,9],i=[1,10],a=[1,11],o=[1,12],s={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,dateFormat:11,title:12,section:13,taskTxt:14,taskData:15,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",11:"dateFormat",12:"title",13:"section",14:"taskTxt",15:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,2]],performAction:function(t,e,r,n,i,a){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:n.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 9:n.setTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 10:n.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 11:n.addTask(a[o-1],a[o]),this.$="task"}},table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:i,13:a,14:o},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:13,11:n,12:i,13:a,14:o},e(r,[2,5]),e(r,[2,6]),e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),{15:[1,14]},e(r,[2,4]),e(r,[2,11])],defaultActions:{},parseError:function(t,e){if(!e.recoverable)throw new Error(t);this.trace(t)},parse:function(t){var e=this,r=[0],n=[null],i=[],a=this.table,o="",s=0,u=0,c=0,l=2,h=1,d=i.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);f.setInput(t,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var y=f.yylloc;i.push(y);var m=f.options&&f.options.ranges;this.parseError="function"==typeof p.yy.parseError?p.yy.parseError:Object.getPrototypeOf(this).parseError;for(var v,b,_,w,x,A,k,E,D,C=function(){var t;return t=f.lex()||h,"number"!=typeof t&&(t=e.symbols_[t]||t),t},T={};;){if(_=r[r.length-1],this.defaultActions[_]?w=this.defau
break;case o.yy.LINETYPE.LOOP_END:e=r.bounds.endLoop(),s.drawLoop(f,e,"loop",l),r.bounds.bumpVerticalPos(l.boxMargin);break;case o.yy.LINETYPE.OPT_START:r.bounds.bumpVerticalPos(l.boxMargin),r.bounds.newLoop(t.message),r.bounds.bumpVerticalPos(l.boxMargin+l.boxTextMargin);break;case o.yy.LINETYPE.OPT_END:e=r.bounds.endLoop(),s.drawLoop(f,e,"opt",l),r.bounds.bumpVerticalPos(l.boxMargin);break;case o.yy.LINETYPE.ALT_START:r.bounds.bumpVerticalPos(l.boxMargin),r.bounds.newLoop(t.message),r.bounds.bumpVerticalPos(l.boxMargin+l.boxTextMargin);break;case o.yy.LINETYPE.ALT_ELSE:r.bounds.bumpVerticalPos(l.boxMargin),e=r.bounds.addElseToLoop(t.message),r.bounds.bumpVerticalPos(l.boxMargin);break;case o.yy.LINETYPE.ALT_END:e=r.bounds.endLoop(),s.drawLoop(f,e,"alt",l),r.bounds.bumpVerticalPos(l.boxMargin);break;default:r.bounds.bumpVerticalPos(l.messageMargin),i=p[t.from].x+l.width/2,a=p[t.to].x+l.width/2,d(f,i,a,r.bounds.getVerticalPos(),t)}}),l.mirrorActors&&(r.bounds.bumpVerticalPos(2*l.boxMargin),e.exports.drawActors(f,p,g,r.bounds.getVerticalPos()));var m=r.bounds.getBounds();c.debug("For line height fix Querying: #"+n+" .actor-line");var v=u.selectAll("#"+n+" .actor-line");v.attr("y2",m.stopy);var b=m.stopy-m.starty+2*l.diagramMarginY;l.mirrorActors&&(b=b-l.boxMargin+l.bottomMarginAdj);var _=m.stopx-m.startx+2*l.diagramMarginX;l.useMaxWidth?(f.attr("height","100%"),f.attr("width","100%"),f.attr("style","max-width:"+_+"px;")):(f.attr("height",b),f.attr("width",_)),f.attr("viewBox",m.startx-l.diagramMarginX+" -"+l.diagramMarginY+" "+_+" "+b)}},{"../../d3":86,"../../logger":102,"./parser/sequenceDiagram":98,"./sequenceDb":99,"./svgDraw":101}],101:[function(t,e,r){"use strict";r.drawRect=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),"undefined"!=typeof e["class"]&&r.attr("class",e["class"]),r},r.drawText=function(t,e,r){var n=e.text.replace(/<br\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.attr("fill",e.fill),"undefined"!=typeof e["class"]&&i.attr("class",e["class"]);var a=i.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(n),"undefined"!=typeof i.textwrap&&i.textwrap({x:e.x,y:e.y,width:r,height:1800},e.textMargin),i},r.drawLabel=function(t,e){var n=r.getNoteRect();n.x=e.x,n.y=e.y,n.width=50,n.height=20,n.fill="#526e52",n.stroke="none",n["class"]="labelBox",r.drawRect(t,n),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,e.fill="white",r.drawText(t,e)};var n=-1;r.drawActor=function(t,e,i,a,o){var s=e+o.width/2,u=t.append("g");0===i&&(n++,u.append("line").attr("id","actor"+n).attr("x1",s).attr("y1",5).attr("x2",s).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var c=r.getNoteRect();c.x=e,c.y=i,c.fill="#eaeaea",c.width=o.width,c.height=o.height,c["class"]="actor",c.rx=3,c.ry=3,r.drawRect(u,c),u.append("text").attr("x",s).attr("y",i+o.height/2+5).attr("class","actor").style("text-anchor","middle").text(a)},r.drawLoop=function(t,e,n,i){var a=t.append("g"),o=function(t,e,r,n){a.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",n).attr("stroke-width",2).attr("stroke","#526e52").attr("class","loopLine")};o(e.startx,e.starty,e.stopx,e.starty),o(e.stopx,e.starty,e.stopx,e.stopy),o(e.startx,e.stopy,e.stopx,e.stopy),o(e.startx,e.starty,e.startx,e.stopy),"undefined"!=typeof e.elsey&&o(e.startx,e.elsey,e.stopx,e.elsey);var s=r.getTextObj();s.text=n,s.x=e.startx,s.y=e.starty,s.labelMargin=1.5*i.boxMargin,s["class"]="labelText",s.fill="white",r.drawLabel(a,s),s=r.getTextObj(),s.text="[ "+e.title+" ]",s.x=e.startx+(e.stopx-e.startx)/2,s.y=e.starty+1.5*i.boxMargin,s.anchor="middle",s["class"]="loopText",r.drawText(a,s),"undefined"!=typeof e.elseText&&(s.text="[ "+e.elseText+" ]",s.y=e.elsey+1.5*i.boxMargin,r.drawText(a,s))},r.insertArrowHead=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).att