diff --git a/bin/beta-release b/bin/beta-release new file mode 100755 index 00000000..caa2960d --- /dev/null +++ b/bin/beta-release @@ -0,0 +1,14 @@ +#!/bin/bash + +# Clone mermaid-js/docs parallel with the mermaid live editor + +# git clone git@github.com:mermaid-js/docs.git +# git clone https://github.com/mermaid-js/docs.git + +yarn release +pushd . +cp -r docs/* ../docs/mermaid-live-editor-beta +cd ../docs +git commit * -m "Beta updated with latest changes" +git push +popd diff --git a/docs/bundle.js b/docs/bundle.js index 5ee17e1e..ad118dcb 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -275,6 +275,293 @@ !*** ./src/mermaid.js ***! \************************/ /*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! entity-decode/browser */"entity-decode/browser"),i=n.n(r),o=n(/*! ./mermaidAPI */"./src/mermaidAPI.js"),s=n(/*! ./logger */"./src/logger.js"),a=function(){u.startOnLoad?o.default.getConfig().startOnLoad&&u.init():void 0===u.startOnLoad&&(s.logger.debug("In start, no config"),o.default.getConfig().startOnLoad&&u.init())};"undefined"!=typeof document&& +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var r=n(387),i=n(388),o=n(116);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;oa&&(n=a-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(r,i),l=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function Y(e,t,n,r,o){return o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);A(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return Y(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return Y(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(9))},function(e,t,n){"use strict";var r=n(4),i=n(16).Graph;function o(e,t,n,i){var o;do{o=r.uniqueId(i)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function s(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:o,simplify:function(e){var t=(new i).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,u=e.width/2,c=e.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*u>Math.abs(s)*c?(a<0&&(c=-c),n=c*s/a,r=c):(s<0&&(u=-u),n=u,r=u*a/s);return{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(s(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,(function(t){e.node(t).rank+=i}))}))},addBorderNode:function(e,t,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(e,"border",i,t)},maxRank:s,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(5),o=n(10),s=n(140);r.assert=o,r.toArray=s.toArray,r.zero2=s.zero2,r.toHex=s.toHex,r.encode=s.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,r[s]=a,o.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var o,s,a,u=e.andln(3)+r&3,c=t.andln(3)+i&3;if(3===u&&(u=-1),3===c&&(c=-1),0==(1&u))o=0;else o=3!==(a=e.andln(7)+r&7)&&5!==a||2!==c?u:-u;if(n[0].push(o),0==(1&c))s=0;else s=3!==(a=t.andln(7)+i&7)&&5!==a||2!==u?c:-c;n[1].push(s),2*r===o+1&&(r=1-r),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){var r;try{r={clone:n(465),constant:n(102),each:n(103),filter:n(174),has:n(109),isArray:n(6),isEmpty:n(541),isFunction:n(36),isUndefined:n(185),keys:n(25),map:n(186),reduce:n(188),size:n(544),transform:n(550),union:n(551),values:n(193)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(42);e.exports={isSubgraph:function(e,t){return!!e.children(t).length},edgeToId:function(e){return o(e.v)+":"+o(e.w)+":"+o(e.name)},applyStyle:function(e,t){t&&e.attr("style",t)},applyClass:function(e,t,n){t&&e.attr("class",t).attr("class",n+" "+e.attr("class"))},applyTransition:function(e,t){var n=t.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(e)}return e}};var i=/:/g;function o(e){return e?String(e).replace(i,"\\:"):""}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var r=n(1),i=void 0===e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return r.g?"win32":r.d?"darwin":"linux"},nextTick:function(e){return Object(r.h)(e)}}:e,o=i.cwd,s=i.env,a=i.platform}).call(this,n(19))},function(e,t,n){var r;try{r=n(91)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){var r=n(155),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(e,t){module.exports=t(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global?global:this,(function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.1",buffer;if(module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,r=e.length;n>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)].join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e)).toString("base64")}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e)).toString("base64")}:function(e){return btoa(utob(e))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(String(e))},encodeURI=function(e){return encode(e,!0)},re_btou=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),cb_btou=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return fromCharCode(55296+(t>>>10))+fromCharCode(56320+(1023&t));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),i=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return i.length-=[0,0,2,1][n],i.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum((function(){return decode(this)}))),Object.defineProperty(String.prototype,"toBase64",noEnum((function(e){return encode(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",noEnum((function(){return encode(this,!0)})))}}return global.Meteor&&(Base64=global.Base64),module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)),{Base64:global.Base64}}))}).call(this,__webpack_require__(9))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=a(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var l=0,d=t;return l+=(d=d+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(36),i=n(96);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(521),i=n(531),o=n(31),s=n(6),a=n(538);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):r(e):a(e)}},function(e,t,n){var r=n(3).Buffer,i=n(76).Transform,o=n(80).StringDecoder;function s(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(2)(s,i),s.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=s},function(e,t,n){var r=n(158),i=n(98),o=n(22);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r;if(!r)try{r=n(344)}catch(e){}r||(r=window.d3),e.exports=r},function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/mermaid.js")}({"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss": +/*!*****************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss ***! + \*****************************************************************************************************************/ +/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,"/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n/* state colors */\n.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: #333; }\n\n.label text {\n fill: #333; }\n\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon,\n.node path {\n fill: #1f2020;\n stroke: #81B1DB;\n stroke-width: 1px; }\n\n.node .label {\n text-align: center; }\n\n.node.clickable {\n cursor: pointer; }\n\n.arrowheadPath {\n fill: lightgrey; }\n\n.edgePath .path {\n stroke: lightgrey;\n stroke-width: 1.5px; }\n\n.flowchart-link {\n stroke: lightgrey;\n fill: none; }\n\n.edgeLabel {\n background-color: #e8e8e8;\n text-align: center; }\n .edgeLabel rect {\n opacity: 0.5; }\n\n.cluster rect {\n fill: #474949;\n stroke: rgba(255, 255, 255, 0.25);\n stroke-width: 1px; }\n\n.cluster text {\n fill: #F9FFFE; }\n\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: #474949;\n border: 1px solid rgba(255, 255, 255, 0.25);\n border-radius: 2px;\n pointer-events: none;\n z-index: 100; }\n\n.actor {\n stroke: #81B1DB;\n fill: #1f2020; }\n\ntext.actor > tspan {\n fill: lightgrey;\n stroke: none; }\n\n.actor-line {\n stroke: lightgrey; }\n\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: lightgrey; }\n\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: lightgrey; }\n\n#arrowhead path {\n fill: lightgrey;\n stroke: lightgrey; }\n\n.sequenceNumber {\n fill: black; }\n\n#sequencenumber {\n fill: lightgrey; }\n\n#crosshead path {\n fill: lightgrey;\n stroke: lightgrey; }\n\n.messageText {\n fill: lightgrey;\n stroke: lightgrey; }\n\n.labelBox {\n stroke: #81B1DB;\n fill: #1f2020; }\n\n.labelText, .labelText > tspan {\n fill: lightgrey;\n stroke: none; }\n\n.loopText, .loopText > tspan {\n fill: lightgrey;\n stroke: none; }\n\n.loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: #81B1DB;\n fill: #81B1DB; }\n\n.note {\n stroke: rgba(255, 255, 255, 0.25);\n fill: #fff5ad; }\n\n.noteText, .noteText > tspan {\n fill: #1f2020;\n stroke: none; }\n\n.activation0 {\n fill: #474949;\n stroke: #81B1DB; }\n\n.activation1 {\n fill: #474949;\n stroke: #81B1DB; }\n\n.activation2 {\n fill: #474949;\n stroke: #81B1DB; }\n\n/** Section styling */\n.mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.section {\n stroke: none;\n opacity: 0.2; }\n\n.section0 {\n fill: rgba(255, 255, 255, 0.3); }\n\n.section2 {\n fill: #EAE8B9; }\n\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2; }\n\n.sectionTitle0 {\n fill: #F9FFFE; }\n\n.sectionTitle1 {\n fill: #F9FFFE; }\n\n.sectionTitle2 {\n fill: #F9FFFE; }\n\n.sectionTitle3 {\n fill: #F9FFFE; }\n\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n/* Grid and axis */\n.grid .tick {\n stroke: lightgrey;\n opacity: 0.8;\n shape-rendering: crispEdges; }\n .grid .tick text {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.grid path {\n stroke-width: 0; }\n\n/* Today line */\n.today {\n fill: none;\n stroke: #DB5757;\n stroke-width: 2px; }\n\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2; }\n\n.taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.taskText:not([font-size]) {\n font-size: 11px; }\n\n.taskTextOutsideRight {\n fill: #323D47;\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.taskTextOutsideLeft {\n fill: #323D47;\n text-anchor: end;\n font-size: 11px; }\n\n/* Special case clickable */\n.task.clickable {\n cursor: pointer; }\n\n.taskText.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: #323D47; }\n\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #1f2020;\n stroke: rgba(255, 255, 255, 0.5); }\n\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: lightgrey; }\n\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: lightgrey; }\n\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #81B1DB;\n stroke: rgba(255, 255, 255, 0.5); }\n\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: #323D47 !important; }\n\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: grey;\n fill: lightgrey;\n stroke-width: 2; }\n\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: #323D47 !important; }\n\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #E83737;\n fill: #E83737;\n stroke-width: 2; }\n\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #E83737;\n fill: #81B1DB;\n stroke-width: 2; }\n\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #E83737;\n fill: lightgrey;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges; }\n\n.milestone {\n transform: rotate(45deg) scale(0.8, 0.8); }\n\n.milestoneText {\n font-style: italic; }\n\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: #323D47 !important; }\n\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: #323D47 !important; }\n\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: #323D47;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.classGroup text {\n fill: #81B1DB;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 10px; }\n g.classGroup text .title {\n font-weight: bolder; }\n\ng.clickable {\n cursor: pointer; }\n\ng.classGroup rect {\n fill: #1f2020;\n stroke: #81B1DB; }\n\ng.classGroup line {\n stroke: #81B1DB;\n stroke-width: 1; }\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #1f2020;\n opacity: 0.5; }\n\n.classLabel .label {\n fill: #81B1DB;\n font-size: 10px; }\n\n.relation {\n stroke: #81B1DB;\n stroke-width: 1;\n fill: none; }\n\n.dashed-line {\n stroke-dasharray: 3; }\n\n#compositionStart {\n fill: #81B1DB;\n stroke: #81B1DB;\n stroke-width: 1; }\n\n#compositionEnd {\n fill: #81B1DB;\n stroke: #81B1DB;\n stroke-width: 1; }\n\n#aggregationStart {\n fill: #1f2020;\n stroke: #81B1DB;\n stroke-width: 1; }\n\n#aggregationEnd {\n fill: #1f2020;\n stroke: #81B1DB;\n stroke-width: 1; }\n\n#dependencyStart {\n fill: #81B1DB;\n stroke: #81B1DB;\n stroke-width: 1; }\n\n#dependencyEnd {\n fill: #81B1DB;\n stroke: #81B1DB;\n stroke-width: 1; }\n\n#extensionStart {\n fill: #81B1DB;\n stroke: #81B1DB;\n stroke-width: 1; }\n\n#extensionEnd {\n fill: #81B1DB;\n stroke: #81B1DB;\n stroke-width: 1; }\n\n.commit-id,\n.commit-msg,\n.branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: #323D47;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.slice {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.stateGroup text {\n fill: #81B1DB;\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.stateGroup text {\n fill: #81B1DB;\n stroke: none;\n font-size: 10px; }\n\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: black; }\n\ng.stateGroup rect {\n fill: #1f2020;\n stroke: #81B1DB; }\n\ng.stateGroup line {\n stroke: #81B1DB;\n stroke-width: 1; }\n\n.transition {\n stroke: #81B1DB;\n stroke-width: 1;\n fill: none; }\n\n.stateGroup .composit {\n fill: white;\n border-bottom: 1px; }\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px; }\n\n.state-note {\n stroke: rgba(255, 255, 255, 0.25);\n fill: #fff5ad; }\n .state-note text {\n fill: black;\n stroke: none;\n font-size: 10px; }\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #1f2020;\n opacity: 0.5; }\n\n.stateLabel text {\n fill: black;\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.node circle.state-start {\n fill: black;\n stroke: black; }\n\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5; }\n\n#statediagram-barbEnd {\n fill: #81B1DB; }\n\n.statediagram-cluster rect {\n fill: #1f2020;\n stroke: #81B1DB;\n stroke-width: 1px; }\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-state .divider {\n stroke: #81B1DB; }\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-cluster.statediagram-cluster .inner {\n fill: white; }\n\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0; }\n\n.statediagram-cluster .inner {\n rx: 0;\n ry: 0; }\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: #efefef; }\n\n.note-edge {\n stroke-dasharray: 5; }\n\n.statediagram-note rect {\n fill: #fff5ad;\n stroke: rgba(255, 255, 255, 0.25);\n stroke-width: 1px;\n rx: 0;\n ry: 0; }\n\n:root {\n --mermaid-font-family: '\"trebuchet ms\", verdana, arial';\n --mermaid-font-family: \"Comic Sans MS\", \"Comic Sans\", cursive; }\n\n/* Classes common for multiple diagrams */\n.error-icon {\n fill: #a44141; }\n\n.error-text {\n fill: #ddd;\n stroke: #ddd; }\n\n.edge-thickness-normal {\n stroke-width: 2px; }\n\n.edge-thickness-thick {\n stroke-width: 3.5px; }\n\n.edge-pattern-solid {\n stroke-dasharray: 0; }\n\n.edge-pattern-dashed {\n stroke-dasharray: 3; }\n\n.edge-pattern-dotted {\n stroke-dasharray: 2; }\n\n.marker {\n fill: lightgrey; }\n\n.marker.cross {\n stroke: lightgrey; }\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss": +/*!********************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss ***! + \********************************************************************************************************************/ +/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,"/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n/* state colors */\n.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: #333; }\n\n.label text {\n fill: #333; }\n\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon,\n.node path {\n fill: #ECECFF;\n stroke: #9370DB;\n stroke-width: 1px; }\n\n.node .label {\n text-align: center; }\n\n.node.clickable {\n cursor: pointer; }\n\n.arrowheadPath {\n fill: #333333; }\n\n.edgePath .path {\n stroke: #333333;\n stroke-width: 1.5px; }\n\n.flowchart-link {\n stroke: #333333;\n fill: none; }\n\n.edgeLabel {\n background-color: #e8e8e8;\n text-align: center; }\n .edgeLabel rect {\n opacity: 0.5; }\n\n.cluster rect {\n fill: #ffffde;\n stroke: #aaaa33;\n stroke-width: 1px; }\n\n.cluster text {\n fill: #333; }\n\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: #ffffde;\n border: 1px solid #aaaa33;\n border-radius: 2px;\n pointer-events: none;\n z-index: 100; }\n\n.actor {\n stroke: #CCCCFF;\n fill: #ECECFF; }\n\ntext.actor > tspan {\n fill: black;\n stroke: none; }\n\n.actor-line {\n stroke: grey; }\n\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: #333; }\n\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: #333; }\n\n#arrowhead path {\n fill: #333;\n stroke: #333; }\n\n.sequenceNumber {\n fill: white; }\n\n#sequencenumber {\n fill: #333; }\n\n#crosshead path {\n fill: #333;\n stroke: #333; }\n\n.messageText {\n fill: #333;\n stroke: #333; }\n\n.labelBox {\n stroke: #CCCCFF;\n fill: #ECECFF; }\n\n.labelText, .labelText > tspan {\n fill: black;\n stroke: none; }\n\n.loopText, .loopText > tspan {\n fill: black;\n stroke: none; }\n\n.loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: #CCCCFF;\n fill: #CCCCFF; }\n\n.note {\n stroke: #aaaa33;\n fill: #fff5ad; }\n\n.noteText, .noteText > tspan {\n fill: black;\n stroke: none; }\n\n.activation0 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation1 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation2 {\n fill: #f4f4f4;\n stroke: #666; }\n\n/** Section styling */\n.mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.section {\n stroke: none;\n opacity: 0.2; }\n\n.section0 {\n fill: rgba(102, 102, 255, 0.49); }\n\n.section2 {\n fill: #fff400; }\n\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2; }\n\n.sectionTitle0 {\n fill: #333; }\n\n.sectionTitle1 {\n fill: #333; }\n\n.sectionTitle2 {\n fill: #333; }\n\n.sectionTitle3 {\n fill: #333; }\n\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n/* Grid and axis */\n.grid .tick {\n stroke: lightgrey;\n opacity: 0.8;\n shape-rendering: crispEdges; }\n .grid .tick text {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.grid path {\n stroke-width: 0; }\n\n/* Today line */\n.today {\n fill: none;\n stroke: red;\n stroke-width: 2px; }\n\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2; }\n\n.taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.taskText:not([font-size]) {\n font-size: 11px; }\n\n.taskTextOutsideRight {\n fill: black;\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.taskTextOutsideLeft {\n fill: black;\n text-anchor: end;\n font-size: 11px; }\n\n/* Special case clickable */\n.task.clickable {\n cursor: pointer; }\n\n.taskText.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: white; }\n\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #8a90dd;\n stroke: #534fbc; }\n\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: black; }\n\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: black; }\n\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #bfc7ff;\n stroke: #534fbc; }\n\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: black !important; }\n\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: grey;\n fill: lightgrey;\n stroke-width: 2; }\n\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: black !important; }\n\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #ff8888;\n fill: red;\n stroke-width: 2; }\n\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #ff8888;\n fill: #bfc7ff;\n stroke-width: 2; }\n\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #ff8888;\n fill: lightgrey;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges; }\n\n.milestone {\n transform: rotate(45deg) scale(0.8, 0.8); }\n\n.milestoneText {\n font-style: italic; }\n\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: black !important; }\n\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: black !important; }\n\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: black;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.classGroup text {\n fill: #9370DB;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 10px; }\n g.classGroup text .title {\n font-weight: bolder; }\n\ng.clickable {\n cursor: pointer; }\n\ng.classGroup rect {\n fill: #ECECFF;\n stroke: #9370DB; }\n\ng.classGroup line {\n stroke: #9370DB;\n stroke-width: 1; }\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #ECECFF;\n opacity: 0.5; }\n\n.classLabel .label {\n fill: #9370DB;\n font-size: 10px; }\n\n.relation {\n stroke: #9370DB;\n stroke-width: 1;\n fill: none; }\n\n.dashed-line {\n stroke-dasharray: 3; }\n\n#compositionStart {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#compositionEnd {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#aggregationStart {\n fill: #ECECFF;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#aggregationEnd {\n fill: #ECECFF;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#dependencyStart {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#dependencyEnd {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#extensionStart {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n#extensionEnd {\n fill: #9370DB;\n stroke: #9370DB;\n stroke-width: 1; }\n\n.commit-id,\n.commit-msg,\n.branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: black;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.slice {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.stateGroup text {\n fill: #9370DB;\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.stateGroup text {\n fill: #9370DB;\n stroke: none;\n font-size: 10px; }\n\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: black; }\n\ng.stateGroup rect {\n fill: #ECECFF;\n stroke: #9370DB; }\n\ng.stateGroup line {\n stroke: #9370DB;\n stroke-width: 1; }\n\n.transition {\n stroke: #9370DB;\n stroke-width: 1;\n fill: none; }\n\n.stateGroup .composit {\n fill: white;\n border-bottom: 1px; }\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px; }\n\n.state-note {\n stroke: #aaaa33;\n fill: #fff5ad; }\n .state-note text {\n fill: black;\n stroke: none;\n font-size: 10px; }\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #ECECFF;\n opacity: 0.5; }\n\n.stateLabel text {\n fill: black;\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.node circle.state-start {\n fill: black;\n stroke: black; }\n\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5; }\n\n#statediagram-barbEnd {\n fill: #9370DB; }\n\n.statediagram-cluster rect {\n fill: #ECECFF;\n stroke: #9370DB;\n stroke-width: 1px; }\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-state .divider {\n stroke: #9370DB; }\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-cluster.statediagram-cluster .inner {\n fill: white; }\n\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0; }\n\n.statediagram-cluster .inner {\n rx: 0;\n ry: 0; }\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: #efefef; }\n\n.note-edge {\n stroke-dasharray: 5; }\n\n.statediagram-note rect {\n fill: #fff5ad;\n stroke: #aaaa33;\n stroke-width: 1px;\n rx: 0;\n ry: 0; }\n\n:root {\n --mermaid-font-family: '\"trebuchet ms\", verdana, arial';\n --mermaid-font-family: \"Comic Sans MS\", \"Comic Sans\", cursive; }\n\n/* Classes common for multiple diagrams */\n.error-icon {\n fill: #552222; }\n\n.error-text {\n fill: #552222;\n stroke: #552222; }\n\n.edge-thickness-normal {\n stroke-width: 2px; }\n\n.edge-thickness-thick {\n stroke-width: 3.5px; }\n\n.edge-pattern-solid {\n stroke-dasharray: 0; }\n\n.edge-pattern-dashed {\n stroke-dasharray: 3; }\n\n.edge-pattern-dotted {\n stroke-dasharray: 2; }\n\n.marker {\n fill: #333333; }\n\n.marker.cross {\n stroke: #333333; }\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss": +/*!*******************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss ***! + \*******************************************************************************************************************/ +/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,"/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n/* state colors */\n.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: #333; }\n\n.label text {\n fill: #333; }\n\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon,\n.node path {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1px; }\n\n.node .label {\n text-align: center; }\n\n.node.clickable {\n cursor: pointer; }\n\n.arrowheadPath {\n fill: green; }\n\n.edgePath .path {\n stroke: green;\n stroke-width: 1.5px; }\n\n.flowchart-link {\n stroke: green;\n fill: none; }\n\n.edgeLabel {\n background-color: #e8e8e8;\n text-align: center; }\n .edgeLabel rect {\n opacity: 0.5; }\n\n.cluster rect {\n fill: #cdffb2;\n stroke: #6eaa49;\n stroke-width: 1px; }\n\n.cluster text {\n fill: #333; }\n\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: #cdffb2;\n border: 1px solid #6eaa49;\n border-radius: 2px;\n pointer-events: none;\n z-index: 100; }\n\n.actor {\n stroke: #13540c;\n fill: #cde498; }\n\ntext.actor > tspan {\n fill: black;\n stroke: none; }\n\n.actor-line {\n stroke: grey; }\n\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: #333; }\n\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: #333; }\n\n#arrowhead path {\n fill: #333;\n stroke: #333; }\n\n.sequenceNumber {\n fill: white; }\n\n#sequencenumber {\n fill: #333; }\n\n#crosshead path {\n fill: #333;\n stroke: #333; }\n\n.messageText {\n fill: #333;\n stroke: #333; }\n\n.labelBox {\n stroke: #326932;\n fill: #cde498; }\n\n.labelText, .labelText > tspan {\n fill: black;\n stroke: none; }\n\n.loopText, .loopText > tspan {\n fill: black;\n stroke: none; }\n\n.loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: #326932;\n fill: #326932; }\n\n.note {\n stroke: #6eaa49;\n fill: #fff5ad; }\n\n.noteText, .noteText > tspan {\n fill: black;\n stroke: none; }\n\n.activation0 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation1 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation2 {\n fill: #f4f4f4;\n stroke: #666; }\n\n/** Section styling */\n.mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.section {\n stroke: none;\n opacity: 0.2; }\n\n.section0 {\n fill: #6eaa49; }\n\n.section2 {\n fill: #6eaa49; }\n\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2; }\n\n.sectionTitle0 {\n fill: #333; }\n\n.sectionTitle1 {\n fill: #333; }\n\n.sectionTitle2 {\n fill: #333; }\n\n.sectionTitle3 {\n fill: #333; }\n\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n/* Grid and axis */\n.grid .tick {\n stroke: lightgrey;\n opacity: 0.8;\n shape-rendering: crispEdges; }\n .grid .tick text {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.grid path {\n stroke-width: 0; }\n\n/* Today line */\n.today {\n fill: none;\n stroke: red;\n stroke-width: 2px; }\n\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2; }\n\n.taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.taskText:not([font-size]) {\n font-size: 11px; }\n\n.taskTextOutsideRight {\n fill: black;\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.taskTextOutsideLeft {\n fill: black;\n text-anchor: end;\n font-size: 11px; }\n\n/* Special case clickable */\n.task.clickable {\n cursor: pointer; }\n\n.taskText.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: white; }\n\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #487e3a;\n stroke: #13540c; }\n\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: black; }\n\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: black; }\n\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #cde498;\n stroke: #13540c; }\n\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: black !important; }\n\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: grey;\n fill: lightgrey;\n stroke-width: 2; }\n\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: black !important; }\n\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #ff8888;\n fill: red;\n stroke-width: 2; }\n\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #ff8888;\n fill: #cde498;\n stroke-width: 2; }\n\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #ff8888;\n fill: lightgrey;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges; }\n\n.milestone {\n transform: rotate(45deg) scale(0.8, 0.8); }\n\n.milestoneText {\n font-style: italic; }\n\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: black !important; }\n\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: black !important; }\n\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: black;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.classGroup text {\n fill: #13540c;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 10px; }\n g.classGroup text .title {\n font-weight: bolder; }\n\ng.clickable {\n cursor: pointer; }\n\ng.classGroup rect {\n fill: #cde498;\n stroke: #13540c; }\n\ng.classGroup line {\n stroke: #13540c;\n stroke-width: 1; }\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #cde498;\n opacity: 0.5; }\n\n.classLabel .label {\n fill: #13540c;\n font-size: 10px; }\n\n.relation {\n stroke: #13540c;\n stroke-width: 1;\n fill: none; }\n\n.dashed-line {\n stroke-dasharray: 3; }\n\n#compositionStart {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#compositionEnd {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#aggregationStart {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1; }\n\n#aggregationEnd {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1; }\n\n#dependencyStart {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#dependencyEnd {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#extensionStart {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n#extensionEnd {\n fill: #13540c;\n stroke: #13540c;\n stroke-width: 1; }\n\n.commit-id,\n.commit-msg,\n.branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: black;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.slice {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.stateGroup text {\n fill: #13540c;\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.stateGroup text {\n fill: #13540c;\n stroke: none;\n font-size: 10px; }\n\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: black; }\n\ng.stateGroup rect {\n fill: #cde498;\n stroke: #13540c; }\n\ng.stateGroup line {\n stroke: #13540c;\n stroke-width: 1; }\n\n.transition {\n stroke: #13540c;\n stroke-width: 1;\n fill: none; }\n\n.stateGroup .composit {\n fill: white;\n border-bottom: 1px; }\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px; }\n\n.state-note {\n stroke: #6eaa49;\n fill: #fff5ad; }\n .state-note text {\n fill: black;\n stroke: none;\n font-size: 10px; }\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #cde498;\n opacity: 0.5; }\n\n.stateLabel text {\n fill: black;\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.node circle.state-start {\n fill: black;\n stroke: black; }\n\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5; }\n\n#statediagram-barbEnd {\n fill: #13540c; }\n\n.statediagram-cluster rect {\n fill: #cde498;\n stroke: #13540c;\n stroke-width: 1px; }\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-state .divider {\n stroke: #13540c; }\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-cluster.statediagram-cluster .inner {\n fill: white; }\n\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0; }\n\n.statediagram-cluster .inner {\n rx: 0;\n ry: 0; }\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: #efefef; }\n\n.note-edge {\n stroke-dasharray: 5; }\n\n.statediagram-note rect {\n fill: #fff5ad;\n stroke: #6eaa49;\n stroke-width: 1px;\n rx: 0;\n ry: 0; }\n\n:root {\n --mermaid-font-family: '\"trebuchet ms\", verdana, arial';\n --mermaid-font-family: \"Comic Sans MS\", \"Comic Sans\", cursive; }\n\n/* Classes common for multiple diagrams */\n.error-icon {\n fill: #552222; }\n\n.error-text {\n fill: #552222;\n stroke: #552222; }\n\n.edge-thickness-normal {\n stroke-width: 2px; }\n\n.edge-thickness-thick {\n stroke-width: 3.5px; }\n\n.edge-pattern-solid {\n stroke-dasharray: 0; }\n\n.edge-pattern-dashed {\n stroke-dasharray: 3; }\n\n.edge-pattern-dotted {\n stroke-dasharray: 2; }\n\n.marker {\n fill: green; }\n\n.marker.cross {\n stroke: green; }\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss": +/*!********************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss ***! + \********************************************************************************************************************/ +/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,"/* Flowchart variables */\n/* Sequence Diagram variables */\n/* Gantt chart variables */\n/* state colors */\n.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: #333; }\n\n.label text {\n fill: #333; }\n\n.node rect,\n.node circle,\n.node ellipse,\n.node polygon,\n.node path {\n fill: #eee;\n stroke: #999;\n stroke-width: 1px; }\n\n.node .label {\n text-align: center; }\n\n.node.clickable {\n cursor: pointer; }\n\n.arrowheadPath {\n fill: #333333; }\n\n.edgePath .path {\n stroke: #666;\n stroke-width: 1.5px; }\n\n.flowchart-link {\n stroke: #666;\n fill: none; }\n\n.edgeLabel {\n background-color: white;\n text-align: center; }\n .edgeLabel rect {\n opacity: 0.5; }\n\n.cluster rect {\n fill: #eaf2fb;\n stroke: #26a;\n stroke-width: 1px; }\n\n.cluster text {\n fill: #333; }\n\ndiv.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: #eaf2fb;\n border: 1px solid #26a;\n border-radius: 2px;\n pointer-events: none;\n z-index: 100; }\n\n.actor {\n stroke: #999;\n fill: #eee; }\n\ntext.actor > tspan {\n fill: #333;\n stroke: none; }\n\n.actor-line {\n stroke: #666; }\n\n.messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: #333; }\n\n.messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: #333; }\n\n#arrowhead path {\n fill: #333;\n stroke: #333; }\n\n.sequenceNumber {\n fill: white; }\n\n#sequencenumber {\n fill: #333; }\n\n#crosshead path {\n fill: #333;\n stroke: #333; }\n\n.messageText {\n fill: #333;\n stroke: #333; }\n\n.labelBox {\n stroke: #999;\n fill: #eee; }\n\n.labelText, .labelText > tspan {\n fill: #333;\n stroke: none; }\n\n.loopText, .loopText > tspan {\n fill: #333;\n stroke: none; }\n\n.loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: #999;\n fill: #999; }\n\n.note {\n stroke: #777700;\n fill: #ffa; }\n\n.noteText, .noteText > tspan {\n fill: #333;\n stroke: none; }\n\n.activation0 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation1 {\n fill: #f4f4f4;\n stroke: #666; }\n\n.activation2 {\n fill: #f4f4f4;\n stroke: #666; }\n\n/** Section styling */\n.mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.section {\n stroke: none;\n opacity: 0.2; }\n\n.section0 {\n fill: #80b3e6; }\n\n.section2 {\n fill: #80b3e6; }\n\n.section1,\n.section3 {\n fill: white;\n opacity: 0.2; }\n\n.sectionTitle0 {\n fill: #333; }\n\n.sectionTitle1 {\n fill: #333; }\n\n.sectionTitle2 {\n fill: #333; }\n\n.sectionTitle3 {\n fill: #333; }\n\n.sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n/* Grid and axis */\n.grid .tick {\n stroke: #e6e6e6;\n opacity: 0.8;\n shape-rendering: crispEdges; }\n .grid .tick text {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.grid path {\n stroke-width: 0; }\n\n/* Today line */\n.today {\n fill: none;\n stroke: #d42;\n stroke-width: 2px; }\n\n/* Task styling */\n/* Default task */\n.task {\n stroke-width: 2; }\n\n.taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.taskText:not([font-size]) {\n font-size: 11px; }\n\n.taskTextOutsideRight {\n fill: #333;\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.taskTextOutsideLeft {\n fill: #333;\n text-anchor: end;\n font-size: 11px; }\n\n/* Special case clickable */\n.task.clickable {\n cursor: pointer; }\n\n.taskText.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n.taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: #003163 !important;\n font-weight: bold; }\n\n/* Specific task settings for the sections*/\n.taskText0,\n.taskText1,\n.taskText2,\n.taskText3 {\n fill: white; }\n\n.task0,\n.task1,\n.task2,\n.task3 {\n fill: #26a;\n stroke: #1a4d80; }\n\n.taskTextOutside0,\n.taskTextOutside2 {\n fill: #333; }\n\n.taskTextOutside1,\n.taskTextOutside3 {\n fill: #333; }\n\n/* Active task */\n.active0,\n.active1,\n.active2,\n.active3 {\n fill: #eee;\n stroke: #1a4d80; }\n\n.activeText0,\n.activeText1,\n.activeText2,\n.activeText3 {\n fill: #333 !important; }\n\n/* Completed task */\n.done0,\n.done1,\n.done2,\n.done3 {\n stroke: #666;\n fill: #bbb;\n stroke-width: 2; }\n\n.doneText0,\n.doneText1,\n.doneText2,\n.doneText3 {\n fill: #333 !important; }\n\n/* Tasks on the critical line */\n.crit0,\n.crit1,\n.crit2,\n.crit3 {\n stroke: #b1361b;\n fill: #d42;\n stroke-width: 2; }\n\n.activeCrit0,\n.activeCrit1,\n.activeCrit2,\n.activeCrit3 {\n stroke: #b1361b;\n fill: #eee;\n stroke-width: 2; }\n\n.doneCrit0,\n.doneCrit1,\n.doneCrit2,\n.doneCrit3 {\n stroke: #b1361b;\n fill: #bbb;\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges; }\n\n.milestone {\n transform: rotate(45deg) scale(0.8, 0.8); }\n\n.milestoneText {\n font-style: italic; }\n\n.doneCritText0,\n.doneCritText1,\n.doneCritText2,\n.doneCritText3 {\n fill: #333 !important; }\n\n.activeCritText0,\n.activeCritText1,\n.activeCritText2,\n.activeCritText3 {\n fill: #333 !important; }\n\n.titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: #333;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.classGroup text {\n fill: #999;\n stroke: none;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 10px; }\n g.classGroup text .title {\n font-weight: bolder; }\n\ng.clickable {\n cursor: pointer; }\n\ng.classGroup rect {\n fill: #eee;\n stroke: #999; }\n\ng.classGroup line {\n stroke: #999;\n stroke-width: 1; }\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #eee;\n opacity: 0.5; }\n\n.classLabel .label {\n fill: #999;\n font-size: 10px; }\n\n.relation {\n stroke: #999;\n stroke-width: 1;\n fill: none; }\n\n.dashed-line {\n stroke-dasharray: 3; }\n\n#compositionStart {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#compositionEnd {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#aggregationStart {\n fill: #eee;\n stroke: #999;\n stroke-width: 1; }\n\n#aggregationEnd {\n fill: #eee;\n stroke: #999;\n stroke-width: 1; }\n\n#dependencyStart {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#dependencyEnd {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#extensionStart {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n#extensionEnd {\n fill: #999;\n stroke: #999;\n stroke-width: 1; }\n\n.commit-id,\n.commit-msg,\n.branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: #333;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.slice {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.stateGroup text {\n fill: #999;\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\ng.stateGroup text {\n fill: #999;\n stroke: none;\n font-size: 10px; }\n\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: black; }\n\ng.stateGroup rect {\n fill: #eee;\n stroke: #999; }\n\ng.stateGroup line {\n stroke: #999;\n stroke-width: 1; }\n\n.transition {\n stroke: #999;\n stroke-width: 1;\n fill: none; }\n\n.stateGroup .composit {\n fill: white;\n border-bottom: 1px; }\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px; }\n\n.state-note {\n stroke: #777700;\n fill: #ffa; }\n .state-note text {\n fill: black;\n stroke: none;\n font-size: 10px; }\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: #eee;\n opacity: 0.5; }\n\n.stateLabel text {\n fill: black;\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family); }\n\n.node circle.state-start {\n fill: black;\n stroke: black; }\n\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5; }\n\n#statediagram-barbEnd {\n fill: #999; }\n\n.statediagram-cluster rect {\n fill: #eee;\n stroke: #999;\n stroke-width: 1px; }\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-state .divider {\n stroke: #999; }\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-cluster.statediagram-cluster .inner {\n fill: white; }\n\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0; }\n\n.statediagram-cluster .inner {\n rx: 0;\n ry: 0; }\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px; }\n\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: #efefef; }\n\n.note-edge {\n stroke-dasharray: 5; }\n\n.statediagram-note rect {\n fill: #ffa;\n stroke: #777700;\n stroke-width: 1px;\n rx: 0;\n ry: 0; }\n\n:root {\n --mermaid-font-family: '\"trebuchet ms\", verdana, arial';\n --mermaid-font-family: \"Comic Sans MS\", \"Comic Sans\", cursive; }\n\n/* Classes common for multiple diagrams */\n.error-icon {\n fill: #552222; }\n\n.error-text {\n fill: #552222;\n stroke: #552222; }\n\n.edge-thickness-normal {\n stroke-width: 2px; }\n\n.edge-thickness-thick {\n stroke-width: 3.5px; }\n\n.edge-pattern-solid {\n stroke-dasharray: 0; }\n\n.edge-pattern-dashed {\n stroke-dasharray: 3; }\n\n.edge-pattern-dotted {\n stroke-dasharray: 2; }\n\n.marker {\n fill: #666; }\n\n.marker.cross {\n stroke: #666; }\n",""])},"./node_modules/css-loader/dist/runtime/api.js": +/*!*****************************************************!*\ + !*** ./node_modules/css-loader/dist/runtime/api.js ***! + \*****************************************************/ +/*! no static exports found */function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",i=e[3];if(!i)return r;if(t&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[r].concat(s).concat([o]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),s="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&s&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(/*! ./../process/browser.js */"./node_modules/process/browser.js"))},"./node_modules/process/browser.js": +/*!*****************************************!*\ + !*** ./node_modules/process/browser.js ***! + \*****************************************/ +/*! no static exports found */function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=a(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test && yarn e2e","prepush":"yarn test","prepare":"yarn build"},"repository":"git://github.com/mermaid-js/mermaid","author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","crypto-random-string":"^3.0.1","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","minify":"^4.1.1","moment-mini":"^2.22.1","scope-css":"^1.2.1"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.12.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"]}')},"./src/config.js": +/*!***********************!*\ + !*** ./src/config.js ***! + \***********************/ +/*! exports provided: defaultConfig, setSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, reset, default */function(e,t,n){"use strict";n.r(t),n.d(t,"defaultConfig",(function(){return s})),n.d(t,"setSiteConfig",(function(){return c})),n.d(t,"getSiteConfig",(function(){return l})),n.d(t,"setConfig",(function(){return d})),n.d(t,"getConfig",(function(){return h})),n.d(t,"sanitize",(function(){return f})),n.d(t,"reset",(function(){return p}));var r=n(/*! ./utils */"./src/utils.js"),i=n(/*! ./logger */"./src/logger.js"),o={theme:"default",themeCSS:void 0,maxTextSize:5e4,fontFamily:'"trebuchet ms", verdana, arial;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],flowchart:{htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"linear",padding:15},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"},journey:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1},class:{arrowMarkerAbsolute:!1},git:{arrowMarkerAbsolute:!1},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12}};o.class.arrowMarkerAbsolute=o.arrowMarkerAbsolute,o.git.arrowMarkerAbsolute=o.arrowMarkerAbsolute;var s=Object.freeze(o),a=Object(r.assignWithDepth)({},s),u=Object(r.assignWithDepth)({},s),c=function(e){return Object(r.assignWithDepth)(u,e,{clobber:!0}),Object(r.assignWithDepth)(a,e),l()},l=function(){return Object(r.assignWithDepth)({},a)},d=function(e){return f(e),Object(r.assignWithDepth)(u,e),h()},h=function(){return Object(r.assignWithDepth)({},u)},f=function(e){Object.keys(a.secure).forEach((function(t){void 0!==e[a.secure[t]]&&(i.logger.warn("Denied attempt to modify a secure key ".concat(a.secure[t]),e[a.secure[t]]),delete e[a.secure[t]])}))},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l();Object.keys(a).forEach((function(e){return delete a[e]})),Object.keys(u).forEach((function(e){return delete u[e]})),Object(r.assignWithDepth)(a,e,{clobber:!0}),Object(r.assignWithDepth)(u,e,{clobber:!0})},g=Object.freeze({sanitize:f,setSiteConfig:c,getSiteConfig:l,setConfig:d,getConfig:h,reset:p,defaultConfig:s});t.default=g},"./src/dagre-wrapper/clusters.js": +/*!***************************************!*\ + !*** ./src/dagre-wrapper/clusters.js ***! + \***************************************/ +/*! exports provided: insertCluster, getClusterTitleWidth, clear, positionCluster */function(e,t,n){"use strict";n.r(t),n.d(t,"insertCluster",(function(){return l})),n.d(t,"getClusterTitleWidth",(function(){return d})),n.d(t,"clear",(function(){return h})),n.d(t,"positionCluster",(function(){return f}));var r=n(/*! ./intersect/intersect-rect */"./src/dagre-wrapper/intersect/intersect-rect.js"),i=n(/*! ../logger */"./src/logger.js"),o=n(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),s=n(/*! d3 */"d3"),a=n(/*! ../config */"./src/config.js"),u={rect:function(e,t){i.logger.trace("Creating subgraph rect for ",t.id,t);var n=e.insert("g").attr("class","cluster").attr("id",t.id),u=n.insert("rect",":first-child"),c=n.insert("g").attr("class","cluster-label"),l=c.node().appendChild(Object(o.default)(t.labelText,t.labelStyle,void 0,!0)),d=l.getBBox();if(Object(a.getConfig)().flowchart.htmlLabels){var h=l.children[0],f=Object(s.select)(l);d=h.getBoundingClientRect(),f.attr("width",d.width),f.attr("height",d.height)}var p=0*t.padding,g=p/2;i.logger.trace("Data ",t,JSON.stringify(t)),u.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-g).attr("y",t.y-t.height/2-g).attr("width",t.width+p).attr("height",t.height+p),c.attr("transform","translate("+(t.x-d.width/2)+", "+(t.y-t.height/2-t.padding/3+3)+")");var m=u.node().getBBox();return t.width=m.width,t.height=m.height,t.intersect=function(e){return Object(r.default)(t,e)},n},roundedWithTitle:function(e,t){var n=e.insert("g").attr("class",t.classes).attr("id",t.id),i=n.insert("rect",":first-child"),u=n.insert("g").attr("class","cluster-label"),c=n.append("rect"),l=u.node().appendChild(Object(o.default)(t.labelText,t.labelStyle,void 0,!0)),d=l.getBBox();if(Object(a.getConfig)().flowchart.htmlLabels){var h=l.children[0],f=Object(s.select)(l);d=h.getBoundingClientRect(),f.attr("width",d.width),f.attr("height",d.height)}d=l.getBBox();var p=0*t.padding,g=p/2;i.attr("class","outer").attr("x",t.x-t.width/2-g).attr("y",t.y-t.height/2-g).attr("width",t.width+p).attr("height",t.height+p),c.attr("class","inner").attr("x",t.x-t.width/2-g).attr("y",t.y-t.height/2-g+d.height-1).attr("width",t.width+p).attr("height",t.height+p-d.height-3),u.attr("transform","translate("+(t.x-d.width/2)+", "+(t.y-t.height/2-t.padding/3+(Object(a.getConfig)().flowchart.htmlLabels?5:3))+")");var m=i.node().getBBox();return t.width=m.width,t.height=m.height,t.intersect=function(e){return Object(r.default)(t,e)},n},noteGroup:function(e,t){var n=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=n.insert("rect",":first-child"),o=0*t.padding,s=o/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+o).attr("height",t.height+o).attr("fill","none");var a=i.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(e){return Object(r.default)(t,e)},n},divider:function(e,t){var n=e.insert("g").attr("class",t.classes).attr("id",t.id),i=n.insert("rect",":first-child"),o=0*t.padding,s=o/2;i.attr("class","divider").attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2).attr("width",t.width+o).attr("height",t.height+o);var a=i.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(e){return Object(r.default)(t,e)},n}},c={},l=function(e,t){i.logger.trace("Inserting cluster");var n=t.shape||"rect";c[t.id]=u[n](e,t)},d=function(e,t){var n=Object(o.default)(t.labelText,t.labelStyle,void 0,!0);e.node().appendChild(n);var r=n.getBBox().width;return e.node().removeChild(n),r},h=function(){c={}},f=function(e){i.logger.info("Position cluster"),c[e.id].attr("transform","translate("+e.x+", "+e.y+")")}},"./src/dagre-wrapper/createLabel.js": +/*!******************************************!*\ + !*** ./src/dagre-wrapper/createLabel.js ***! + \******************************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! d3 */"d3"),i=n(/*! ../logger */"./src/logger.js"),o=n(/*! ../config */"./src/config.js");t.default=function(e,t,n,s){var a=e||"";if(Object(o.getConfig)().flowchart.htmlLabels)return a=a.replace(/\\n|\n/g,"
"),i.logger.info("vertexText"+a),function(e){var t,n,i=Object(r.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),o=i.append("xhtml:div"),s=e.label,a=e.isNode?"nodeLabel":"edgeLabel";return o.html(''+s+""),t=o,(n=e.labelStyle)&&t.attr("style",n),o.style("display","inline-block"),o.style("white-space","nowrap"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i.node()}({isNode:s,label:a.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"")}))});var u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("style",t.replace("color:","fill:"));var c=[];c="string"==typeof a?a.split(/\\n|\n|/gi):Array.isArray(a)?a:[];for(var l=0;l=s||o>=a},f=function(e,t,n){r.logger.warn("intersection calc o:",t," i:",n,e);var i=e.x,o=e.y,s=Math.abs(i-n.x),a=e.width/2,u=n.xMath.abs(i-t.x)*c){var m=n.y=0;b--){var w=c[b],C=i[n.fromCluster].node;if(h(C,w)||v)r.logger.trace("Outside point",w),v||y.unshift(w);else{r.logger.warn("inside",n.fromCluster,w,C);var S=f(C,_,w);y.unshift(S),v=!0}_=w}c=y,l=!0}var x,k=c.filter((function(e){return!Number.isNaN(e.y)})),L=Object(o.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(o.curveBasis);switch(n.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;default:x=""}switch(n.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed"}var M=e.append("path").attr("d",L(k)).attr("id",n.id).attr("class"," "+x+(n.classes?" "+n.classes:"")),D="";switch(Object(s.getConfig)().state.arrowMarkerAbsolute&&(D=(D=(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),r.logger.info("arrowType",n.arrowType),n.arrowType){case"arrow_cross":M.attr("marker-end","url("+D+"#"+a+"-crossEnd)");break;case"double_arrow_cross":M.attr("marker-end","url("+D+"#"+a+"-crossEnd)"),M.attr("marker-start","url("+D+"#"+a+"-crossStart)");break;case"arrow_point":M.attr("marker-end","url("+D+"#"+a+"-pointEnd)");break;case"double_arrow_point":M.attr("marker-end","url("+D+"#"+a+"-pointEnd)"),M.attr("marker-start","url("+D+"#"+a+"-pointStart)");break;case"arrow_barb":M.attr("marker-end","url("+D+"#"+a+"-barbEnd)");break;case"double_arrow_barb":M.attr("marker-end","url("+D+"#"+a+"-barnEnd)"),M.attr("marker-start","url("+D+"#"+a+"-barbStart)");break;case"arrow_circle":M.attr("marker-end","url("+D+"#"+a+"-circleEnd)");break;case"double_arrow_circle":M.attr("marker-end","url("+D+"#"+a+"-circleEnd)"),M.attr("marker-start","url("+D+"#"+a+"-circleStart)")}if(l)return c}},"./src/dagre-wrapper/index.js": +/*!************************************!*\ + !*** ./src/dagre-wrapper/index.js ***! + \************************************/ +/*! exports provided: render */function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return p}));var r=n(/*! dagre */"dagre"),i=n.n(r),o=n(/*! graphlib */"graphlib"),s=n.n(o),a=n(/*! ./markers */"./src/dagre-wrapper/markers.js"),u=n(/*! ./shapes/util */"./src/dagre-wrapper/shapes/util.js"),c=n(/*! ./mermaid-graphlib */"./src/dagre-wrapper/mermaid-graphlib.js"),l=n(/*! ./nodes */"./src/dagre-wrapper/nodes.js"),d=n(/*! ./clusters */"./src/dagre-wrapper/clusters.js"),h=n(/*! ./edges */"./src/dagre-wrapper/edges.js"),f=n(/*! ../logger */"./src/logger.js"),p=function(e,t,n,r,o){Object(a.default)(e,n,r,o),Object(l.clear)(),Object(h.clear)(),Object(d.clear)(),Object(c.clear)(),f.logger.warn("Graph before:",s.a.json.write(t)),Object(c.adjustClustersAndEdges)(t),f.logger.warn("Graph after:",s.a.json.write(t)),f.logger.warn("Graph ever after:",t.graph()),function e(t,n,r,o){f.logger.info("Graph in recursive render:",s.a.json.write(n),o);var a=n.graph().rankdir;f.logger.warn("Dir in recursive render - dir:",a);var p=t.insert("g").attr("class","root");n.nodes()?f.logger.trace("Recursive render",n.nodes()):f.logger.trace("No nodes found for",n),n.edges().length>0&&f.logger.trace("Recursive edges",n.edge(n.edges()[0]));var g=p.insert("g").attr("class","clusters"),m=p.insert("g").attr("class","edgePaths"),_=p.insert("g").attr("class","edgeLabels"),y=p.insert("g").attr("class","nodes");return n.nodes().forEach((function(t){var i=n.node(t);if(void 0!==o){var s=JSON.parse(JSON.stringify(o.clusterData));f.logger.trace("Setting data for cluster",s),n.setNode(o.id,s),n.setParent(t,o.id,s)}if(f.logger.trace("(Insert) Node "+t+": "+JSON.stringify(n.node(t))),i&&i.clusterNode){f.logger.trace("Cluster identified",t,i,n.node(t));var d=e(y,i.graph,r,n.node(t));Object(u.updateNodeBounds)(i,d),Object(l.setNodeElem)(d,i),f.logger.warn("Recursive render complete",d,i)}else n.children(t).length>0?(f.logger.trace("Cluster - the non recursive path",t,i.id,i,n),f.logger.trace(Object(c.findNonClusterChild)(i.id,n)),c.clusterDb[i.id]={id:Object(c.findNonClusterChild)(i.id,n),node:i}):(f.logger.trace("Node - the non recursive path",t,i.id,i),Object(l.insertNode)(y,n.node(t),a))})),n.edges().forEach((function(e){var t=n.edge(e.v,e.w,e.name);f.logger.trace("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),f.logger.trace("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(n.edge(e))),f.logger.trace("Fix",c.clusterDb,"ids:",e.v,e.w,"Translateing: ",c.clusterDb[e.v],c.clusterDb[e.w]),Object(h.insertEdgeLabel)(_,t)})),n.edges().forEach((function(e){f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))})),f.logger.info("#############################################"),f.logger.info("### Layout ###"),f.logger.info("#############################################"),f.logger.info(n),i.a.layout(n),f.logger.trace("Graph after layout:",s.a.json.write(n)),n.nodes().forEach((function(e){var t=n.node(e);f.logger.trace("Position "+e+": "+JSON.stringify(n.node(e))),f.logger.info("Position "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t&&t.clusterNode?Object(l.positionNode)(t):n.children(e).length>0?(Object(d.insertCluster)(g,t),c.clusterDb[t.id].node=t):Object(l.positionNode)(t)})),n.edges().forEach((function(e){var t=n.edge(e);f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t);var i=Object(h.insertEdge)(m,e,t,c.clusterDb,r,n);Object(h.positionEdgeLabel)(t,i)})),p}(e,t,r)}},"./src/dagre-wrapper/intersect/index.js": +/*!**********************************************!*\ + !*** ./src/dagre-wrapper/intersect/index.js ***! + \**********************************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./intersect-node.js */"./src/dagre-wrapper/intersect/intersect-node.js"),i=n.n(r),o=n(/*! ./intersect-circle.js */"./src/dagre-wrapper/intersect/intersect-circle.js"),s=n(/*! ./intersect-ellipse.js */"./src/dagre-wrapper/intersect/intersect-ellipse.js"),a=n(/*! ./intersect-polygon.js */"./src/dagre-wrapper/intersect/intersect-polygon.js"),u=n(/*! ./intersect-rect.js */"./src/dagre-wrapper/intersect/intersect-rect.js");t.default={node:i.a,circle:o.default,ellipse:s.default,polygon:a.default,rect:u.default}},"./src/dagre-wrapper/intersect/intersect-circle.js": +/*!*********************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-circle.js ***! + \*********************************************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./intersect-ellipse */"./src/dagre-wrapper/intersect/intersect-ellipse.js");t.default=function(e,t,n){return Object(r.default)(e,t,t,n)}},"./src/dagre-wrapper/intersect/intersect-ellipse.js": +/*!**********************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-ellipse.js ***! + \**********************************************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e,t,n,r){var i=e.x,o=e.y,s=i-r.x,a=o-r.y,u=Math.sqrt(t*t*a*a+n*n*s*s),c=Math.abs(t*n*s/u);r.x0}n.r(t),t.default=function(e,t,n,i){var o,s,a,u,c,l,d,h,f,p,g,m,_;if(o=t.y-e.y,a=e.x-t.x,c=t.x*e.y-e.x*t.y,f=o*n.x+a*n.y+c,p=o*i.x+a*i.y+c,!(0!==f&&0!==p&&r(f,p)||(s=i.y-n.y,u=n.x-i.x,l=i.x*n.y-n.x*i.y,d=s*e.x+u*e.y+l,h=s*t.x+u*t.y+l,0!==d&&0!==h&&r(d,h)||0==(g=o*u-s*a))))return m=Math.abs(g/2),{x:(_=a*l-u*c)<0?(_-m)/g:(_+m)/g,y:(_=s*c-o*l)<0?(_-m)/g:(_+m)/g}}},"./src/dagre-wrapper/intersect/intersect-node.js": +/*!*******************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-node.js ***! + \*******************************************************/ +/*! no static exports found */function(e,t){e.exports=function(e,t){return console.info("Intersect Node"),e.intersect(t)}},"./src/dagre-wrapper/intersect/intersect-polygon.js": +/*!**********************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-polygon.js ***! + \**********************************************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./intersect-line */"./src/dagre-wrapper/intersect/intersect-line.js");t.default=function(e,t,n){var i=e.x,o=e.y,s=[],a=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY;t.forEach((function(e){a=Math.min(a,e.x),u=Math.min(u,e.y)}));for(var c=i-e.width/2-a,l=o-e.height/2-u,d=0;d1&&s.sort((function(e,t){var r=e.x-n.x,i=e.y-n.y,o=Math.sqrt(r*r+i*i),s=t.x-n.x,a=t.y-n.y,u=Math.sqrt(s*s+a*a);return oMath.abs(s)*c?(a<0&&(c=-c),n=0===a?0:c*s/a,r=c):(s<0&&(u=-u),n=u,r=0===s?0:u*a/s),{x:i+n,y:o+r}}},"./src/dagre-wrapper/markers.js": +/*!**************************************!*\ + !*** ./src/dagre-wrapper/markers.js ***! + \**************************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ../logger */"./src/logger.js"),i={extension:function(e,t,n){r.logger.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",t+"-extensionEnd "+t).attr("class","marker extension "+t).attr("refX",19).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:function(e,t){e.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker extension "+t).attr("refX",0).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"),e.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker extension "+t).attr("refX",19).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:function(e,t){e.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker extension "+t).attr("refX",0).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"),e.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker "+t).attr("refX",19).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:function(e,t){e.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker extension "+t).attr("refX",0).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"),e.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker "+t).attr("refX",19).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")},point:function(e,t){e.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",9).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"),e.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).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:function(e,t){e.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).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"),e.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).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:function(e,t){e.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).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"),e.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).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:function(e,t){e.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits",0).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};t.default=function(e,t,n,r){t.forEach((function(t){i[t](e,n,r)}))}},"./src/dagre-wrapper/mermaid-graphlib.js": +/*!***********************************************!*\ + !*** ./src/dagre-wrapper/mermaid-graphlib.js ***! + \***********************************************/ +/*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor */function(e,t,n){"use strict";n.r(t),n.d(t,"clusterDb",(function(){return s})),n.d(t,"clear",(function(){return c})),n.d(t,"extractDecendants",(function(){return h})),n.d(t,"validate",(function(){return f})),n.d(t,"findNonClusterChild",(function(){return p})),n.d(t,"adjustClustersAndEdges",(function(){return m})),n.d(t,"extractor",(function(){return _}));var r=n(/*! ../logger */"./src/logger.js"),i=n(/*! graphlib */"graphlib"),o=n.n(i),s={},a={},u={},c=function(){a={},u={},s={}},l=function(e,t){return r.logger.debug("In isDecendant",t," ",e," = ",a[t].indexOf(e)>=0),a[t].indexOf(e)>=0},d=function e(t,n,i,o){r.logger.info("Copying children of ",t,"root",o,"data",n.node(t),o);var s=n.children(t)||[];t!==o&&s.push(t),r.logger.debug("Copying (nodes) clusterId",t,"nodes",s),s.forEach((function(s){if(n.children(s).length>0)e(s,n,i,o);else{var u=n.node(s);r.logger.info("cp ",s," to ",o," with parent ",t),i.setNode(s,u),r.logger.debug("Setting parent",s,n.parent(s)),o!==n.parent(s)&&i.setParent(s,n.parent(s)),t!==o&&s!==t?(r.logger.debug("Setting parent",s,t),i.setParent(s,t)):(r.logger.info("In copy ",t,"root",o,"data",n.node(t),o),r.logger.debug("Not Setting parent for node=",s,"cluster!==rootId",t!==o,"node!==clusterId",s!==t));var c=n.edges(s);r.logger.debug("Copying Edges",c),c.forEach((function(e){r.logger.info("Edge",e);var s=n.edge(e.v,e.w,e.name);r.logger.info("Edge data",s,o);try{!function(e,t){return r.logger.info("Decendants of ",t," is ",a[t]),r.logger.info("Edge is ",e),e.v!==t&&e.w!==t&&(a[t]?(r.logger.info("Here "),a[t].indexOf(e.v)>=0||!!l(e.v,t)||!!l(e.w,t)||a[t].indexOf(e.w)>=0):(r.logger.debug("Tilt, ",t,",not in decendants"),!1))}(e,o)?r.logger.info("Skipping copy of edge ",e.v,"--\x3e",e.w," rootId: ",o," clusterId:",t):(r.logger.info("Copying as ",e.v,e.w,s,e.name),i.setEdge(e.v,e.w,s,e.name),r.logger.info("newGraph edges ",i.edges(),i.edge(i.edges()[0])))}catch(e){r.logger.error(e)}}))}r.logger.debug("Removing node",s),n.removeNode(s)}))},h=function e(t,n){for(var r=n.children(t),i=[].concat(r),o=0;o0)return r.logger.trace("The node ",t[n].v," is part of and edge even though it has children"),!1;if(e.children(t[n].w).length>0)return r.logger.trace("The node ",t[n].w," is part of and edge even though it has children"),!1}return!0},p=function e(t,n){r.logger.trace("Searching",t);var i=n.children(t);if(r.logger.trace("Searching children of id ",t,i),i.length<1)return r.logger.trace("This is a valid node",t),t;for(var o=0;o ",s),s}},g=function(e){return s[e]&&s[e].externalConnections&&s[e]?s[e].id:e},m=function(e,t){!e||t>10?r.logger.debug("Opting out, no graph "):(r.logger.debug("Opting in, graph "),e.nodes().forEach((function(t){e.children(t).length>0&&(r.logger.warn("Cluster identified",t," Replacement id in edges: ",p(t,e)),a[t]=h(t,e),s[t]={id:p(t,e),clusterData:e.node(t)})})),e.nodes().forEach((function(t){var n=e.children(t),i=e.edges();n.length>0&&(r.logger.debug("Cluster identified",t,a),i.forEach((function(e){e.v!==t&&e.w!==t&&l(e.v,t)^l(e.w,t)&&(r.logger.debug("Edge: ",e," leaves cluster ",t),r.logger.debug("Decendants of ",t,": ",a[t]),s[t].externalConnections=!0)})))})),_(e,0),e.edges().forEach((function(t){var n=e.edge(t);r.logger.trace("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),r.logger.trace("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));var i=t.v,o=t.w;r.logger.trace("Fix",s,"ids:",t.v,t.w,"Translateing: ",s[t.v],s[t.w]),(s[t.v]||s[t.w])&&(r.logger.warn("Fixing and trixing - removing",t.v,t.w,t.name),i=g(t.v),o=g(t.w),e.removeEdge(t.v,t.w,t.name),i!==t.v&&(n.fromCluster=t.v),o!==t.w&&(n.toCluster=t.w),r.logger.warn("Replacing with",i,o,t.name),e.setEdge(i,o,n,t.name))})),r.logger.warn("Adjusted Graph",o.a.json.write(e)),r.logger.trace(s))},_=function e(t,n){if(r.logger.debug("extractor - ",n,o.a.json.write(t),t.children("D")),n>10)r.logger.error("Bailing out");else{for(var i=t.nodes(),a=!1,u=0;u0}if(a){r.logger.debug("Nodes = ",i,n);for(var h=0;h0){r.logger.debug("Cluster without external connections, without a parent and with children",f,n);var p=t.graph(),g=new o.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB"===p.rankdir?"LR":"TB",nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));r.logger.debug("Old graph before copy",o.a.json.write(t)),d(f,t,g,f),t.setNode(f,{clusterNode:!0,id:f,clusterData:s[f].clusterData,labelText:s[f].labelText,graph:g}),r.logger.debug("New graph after copy",o.a.json.write(g)),r.logger.debug("Old graph after copy",o.a.json.write(t))}else r.logger.debug("Cluster ** ",f," **not meeting the criteria !externalConnections:",!s[f].externalConnections," no parent: ",!t.parent(f)," children ",t.children(f)&&t.children(f).length>0,t.children("D"),n),r.logger.debug(s);else r.logger.debug("Not a cluster",f,n)}i=t.nodes(),r.logger.debug("New list of nodes",i);for(var m=0;m"),t.labelStyle,!0,!0));if(Object(a.getConfig)().flowchart.htmlLabels){var w=b.children[0],C=Object(i.select)(b);p=w.getBoundingClientRect(),C.attr("width",p.width),C.attr("height",p.height)}var S=t.padding/2;return Object(i.select)(b).attr("transform","translate( "+(p.width>v.width?0:(v.width-p.width)/2)+", "+(v.height+S+5)+")"),Object(i.select)(g).attr("transform","translate( "+(p.widtht.height/2-c)){var o=c*c*(1-i*i/(u*u));0!=o&&(o=Math.sqrt(o)),o=c-o,e.y-t.y>0&&(o=-o),n.y+=o}return n},i},start:function(e,t){var n=e.insert("g").attr("class","node default").attr("id",t.id),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Object(s.updateNodeBounds)(t,i),t.intersect=function(e){return r.default.circle(t,7,e)},n},end:function(e,t){var n=e.insert("g").attr("class","node default").attr("id",t.id),i=n.insert("circle",":first-child"),o=n.insert("circle",":first-child");return o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Object(s.updateNodeBounds)(t,o),t.intersect=function(e){return r.default.circle(t,7,e)},n},note:n(/*! ./shapes/note */"./src/dagre-wrapper/shapes/note.js").default,subroutine:function(e,t){var n=Object(s.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,o=n.bbox,a=o.width+t.padding,u=o.height+t.padding,c=[{x:0,y:0},{x:a,y:0},{x:a,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-u},{x:-8,y:-u},{x:-8,y:0}],l=Object(s.insertPolygonShape)(i,a,u,c);return Object(s.updateNodeBounds)(t,l),t.intersect=function(e){return r.default.polygon(t,e)},i},fork:c,join:c},d={},h=function(e,t,n){d[t.id]=l[t.shape](e,t,n)},f=function(e,t){d[t.id]=e},p=function(){d={}},g=function(e){var t=d[e.id];o.logger.trace("Transforming node",e,"translate("+(e.x-e.width/2-5)+", "+(e.y-e.height/2-5)+")"),e.clusterNode?t.attr("transform","translate("+(e.x-e.width/2-8)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")")}},"./src/dagre-wrapper/shapes/note.js": +/*!******************************************!*\ + !*** ./src/dagre-wrapper/shapes/note.js ***! + \******************************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./util */"./src/dagre-wrapper/shapes/util.js"),i=n(/*! ../../logger */"./src/logger.js"),o=n(/*! ../intersect/index.js */"./src/dagre-wrapper/intersect/index.js");t.default=function(e,t){var n=Object(r.labelHelper)(e,t,"node "+t.classes,!0),s=n.shapeSvg,a=n.bbox,u=n.halfPadding;i.logger.info("Classes = ",t.classes);var c=s.insert("rect",":first-child");return c.attr("rx",t.rx).attr("ry",t.ry).attr("x",-a.width/2-u).attr("y",-a.height/2-u).attr("width",a.width+t.padding).attr("height",a.height+t.padding),Object(r.updateNodeBounds)(t,c),t.intersect=function(e){return o.default.rect(t,e)},s}},"./src/dagre-wrapper/shapes/util.js": +/*!******************************************!*\ + !*** ./src/dagre-wrapper/shapes/util.js ***! + \******************************************/ +/*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */function(e,t,n){"use strict";n.r(t),n.d(t,"labelHelper",(function(){return s})),n.d(t,"updateNodeBounds",(function(){return a})),n.d(t,"insertPolygonShape",(function(){return u}));var r=n(/*! ../createLabel */"./src/dagre-wrapper/createLabel.js"),i=n(/*! ../../config */"./src/config.js"),o=n(/*! d3 */"d3"),s=function(e,t,n,s){var a;a=n||"node default";var u=e.insert("g").attr("class",a).attr("id",t.id),c=u.insert("g").attr("class","label"),l=c.node().appendChild(Object(r.default)(t.labelText,t.labelStyle,!1,s)),d=l.getBBox();if(Object(i.getConfig)().flowchart.htmlLabels){var h=l.children[0],f=Object(o.select)(l);d=h.getBoundingClientRect(),f.attr("width",d.width),f.attr("height",d.height)}var p=t.padding/2;return c.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),{shapeSvg:u,bbox:d,halfPadding:p,label:c}},a=function(e,t){var n=t.node().getBBox();e.width=n.width,e.height=n.height};function u(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}},"./src/diagrams/class/classDb.js": +/*!***************************************!*\ + !*** ./src/diagrams/class/classDb.js ***! + \***************************************/ +/*! exports provided: addClass, lookUpDomId, clear, getClass, getClasses, getRelations, addRelation, addAnnotation, addMember, addMembers, cleanupLabel, setCssClass, setLink, setClickEvent, bindFunctions, lineType, relationType, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addClass",(function(){return p})),n.d(t,"lookUpDomId",(function(){return g})),n.d(t,"clear",(function(){return m})),n.d(t,"getClass",(function(){return _})),n.d(t,"getClasses",(function(){return y})),n.d(t,"getRelations",(function(){return v})),n.d(t,"addRelation",(function(){return b})),n.d(t,"addAnnotation",(function(){return w})),n.d(t,"addMember",(function(){return C})),n.d(t,"addMembers",(function(){return S})),n.d(t,"cleanupLabel",(function(){return x})),n.d(t,"setCssClass",(function(){return k})),n.d(t,"setLink",(function(){return L})),n.d(t,"setClickEvent",(function(){return M})),n.d(t,"bindFunctions",(function(){return E})),n.d(t,"lineType",(function(){return T})),n.d(t,"relationType",(function(){return N}));var r=n(/*! d3 */"d3"),i=n(/*! ../../logger */"./src/logger.js"),o=n(/*! ../../config */"./src/config.js"),s=n(/*! ../common/common */"./src/diagrams/common/common.js"),a=n(/*! ../../utils */"./src/utils.js"),u=Object(o.getConfig)(),c=[],l={},d=0,h=[],f=function(e){var t="",n=e;if(e.indexOf("~")>0){var r=e.split("~");n=r[0],t=r[1]}return{className:n,type:t}},p=function(e){var t=f(e);void 0===l[t.className]&&(l[t.className]={id:t.className,type:t.type,cssClasses:[],methods:[],members:[],annotations:[],domId:"classid-"+t.className+"-"+d},d++)},g=function(e){for(var t=Object.keys(l),n=0;n>")?r.annotations.push(i.substring(2,i.length-2)):i.indexOf(")")>0?r.methods.push(i):i&&r.members.push(i)}},S=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach((function(t){return C(e,t)})))},x=function(e){return":"===e.substring(0,1)?e.substr(1).trim():e.trim()},k=function(e,t){e.split(",").forEach((function(e){var n=e;e[0].match(/\d/)&&(n="classid-"+n),void 0!==l[n]&&l[n].cssClasses.push(t)}))},L=function(e,t,n){e.split(",").forEach((function(e){var r=e;e[0].match(/\d/)&&(r="classid-"+r),void 0!==l[r]&&(l[r].link=a.default.formatUrl(t,u),n&&(l[r].tooltip=s.default.sanitizeText(n,u)))})),k(e,"clickable")},M=function(e,t,n){e.split(",").forEach((function(e){D(e,t,n)})),k(e,"clickable")},D=function(e,t,n){var r=e,i=g(r);"loose"===u.securityLevel&&void 0!==t&&void 0!==l[r]&&(n&&(l[r].tooltip=s.default.sanitizeText(n,u)),h.push((function(){var e=document.querySelector('[id="'.concat(i,'"]'));null!==e&&e.addEventListener("click",(function(){a.default.runFunc(t,i)}),!1)})))},E=function(e){h.forEach((function(t){t(e)}))},T={LINE:0,DOTTED_LINE:1},N={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},O=function(e){var t=Object(r.select)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=Object(r.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(r.select)(e).select("svg").selectAll("g.node").on("mouseover",(function(){var e=Object(r.select)(this);if(null!==e.attr("title")){var n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.classed("hover",!0)}})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0),Object(r.select)(this).classed("hover",!1)}))};h.push(O),t.default={addClass:p,bindFunctions:E,clear:m,getClass:_,getClasses:y,addAnnotation:w,getRelations:v,addRelation:b,addMember:C,addMembers:S,cleanupLabel:x,lineType:T,relationType:N,setClickEvent:M,setCssClass:k,setLink:L,lookUpDomId:g}},"./src/diagrams/class/classRenderer.js": +/*!*********************************************!*\ + !*** ./src/diagrams/class/classRenderer.js ***! + \*********************************************/ +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return g})),n.d(t,"draw",(function(){return m}));var r=n(/*! d3 */"d3"),i=n(/*! dagre */"dagre"),o=n.n(i),s=n(/*! graphlib */"graphlib"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),c=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),l=n(/*! ./parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),d=n(/*! ./svgDraw */"./src/diagrams/class/svgDraw.js");l.parser.yy=c.default;var h={},f={dividerMargin:10,padding:5,textHeight:10},p=function(e){for(var t=Object.keys(h),n=0;n "+e.w+": "+JSON.stringify(s.edge(e))),d.default.drawEdge(i,s.edge(e),s.edge(e).relation,f))}));var b=i.node().getBBox(),w=b.width+40,C=b.height+40;f.useMaxWidth?(i.attr("width","100%"),i.attr("style","max-width: ".concat(w,"px;"))):(i.attr("height",C),i.attr("width",w));var S="".concat(b.x-20," ").concat(b.y-20," ").concat(w," ").concat(C);u.logger.debug("viewBox ".concat(S)),i.attr("viewBox",S)};t.default={setConf:g,draw:m}},"./src/diagrams/class/parser/classDiagram.jison": +/*!******************************************************!*\ + !*** ./src/diagrams/class/parser/classDiagram.jison ***! + \******************************************************/ +/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,13],n=[1,16],r=[1,14],i=[1,15],o=[1,17],s=[1,18],a=[1,20],u=[1,21],c=[1,22],l=[6,8],d=[1,31],h=[1,32],f=[1,33],p=[1,34],g=[1,35],m=[1,36],_=[6,8,14,20,28,31,32,33,34,35,36],y=[6,8,12,14,20,24,28,31,32,33,34,35,36,52,53,54],v=[28,52,53,54],b=[28,35,36,52,53,54],w=[28,31,32,33,34,52,53,54],C=[6,8,14],S=[1,59],x={trace:function(){},yy:{},symbols_:{error:2,mermaidDoc:3,graphConfig:4,CLASS_DIAGRAM:5,NEWLINE:6,statements:7,EOF:8,statement:9,className:10,alphaNumToken:11,GENERICTYPE:12,relationStatement:13,LABEL:14,classStatement:15,methodStatement:16,annotationStatement:17,clickStatement:18,CLASS:19,STRUCT_START:20,members:21,STRUCT_STOP:22,ANNOTATION_START:23,ANNOTATION_END:24,MEMBER:25,SEPARATOR:26,relation:27,STR:28,relationType:29,lineType:30,AGGREGATION:31,EXTENSION:32,COMPOSITION:33,DEPENDENCY:34,LINE:35,DOTTED_LINE:36,CALLBACK:37,LINK:38,commentToken:39,textToken:40,graphCodeTokens:41,textNoTagsToken:42,TAGSTART:43,TAGEND:44,"==":45,"--":46,PCT:47,DEFAULT:48,SPACE:49,MINUS:50,keywords:51,UNICODE_TEXT:52,NUM:53,ALPHA:54,$accept:0,$end:1},terminals_:{2:"error",5:"CLASS_DIAGRAM",6:"NEWLINE",8:"EOF",12:"GENERICTYPE",14:"LABEL",19:"CLASS",20:"STRUCT_START",22:"STRUCT_STOP",23:"ANNOTATION_START",24:"ANNOTATION_END",25:"MEMBER",26:"SEPARATOR",28:"STR",31:"AGGREGATION",32:"EXTENSION",33:"COMPOSITION",34:"DEPENDENCY",35:"LINE",36:"DOTTED_LINE",37:"CALLBACK",38:"LINK",41:"graphCodeTokens",43:"TAGSTART",44:"TAGEND",45:"==",46:"--",47:"PCT",48:"DEFAULT",49:"SPACE",50:"MINUS",51:"keywords",52:"UNICODE_TEXT",53:"NUM",54:"ALPHA"},productions_:[0,[3,1],[4,4],[7,1],[7,2],[7,3],[10,2],[10,1],[10,3],[10,2],[9,1],[9,2],[9,1],[9,1],[9,1],[9,1],[15,2],[15,5],[17,4],[21,1],[21,2],[16,1],[16,2],[16,1],[16,1],[13,3],[13,4],[13,4],[13,5],[27,3],[27,2],[27,2],[27,1],[29,1],[29,1],[29,1],[29,1],[30,1],[30,1],[18,3],[18,4],[18,3],[18,4],[39,1],[39,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[42,1],[42,1],[42,1],[42,1],[11,1],[11,1],[11,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 6:this.$=o[a-1]+o[a];break;case 7:this.$=o[a];break;case 8:this.$=o[a-2]+"~"+o[a-1]+o[a];break;case 9:this.$=o[a-1]+"~"+o[a];break;case 10:r.addRelation(o[a]);break;case 11:o[a-1].title=r.cleanupLabel(o[a]),r.addRelation(o[a-1]);break;case 16:r.addClass(o[a]);break;case 17:r.addClass(o[a-3]),r.addMembers(o[a-3],o[a-1]);break;case 18:r.addAnnotation(o[a],o[a-2]);break;case 19:this.$=[o[a]];break;case 20:o[a].push(o[a-1]),this.$=o[a];break;case 21:break;case 22:r.addMember(o[a-1],r.cleanupLabel(o[a]));break;case 23:case 24:break;case 25:this.$={id1:o[a-2],id2:o[a],relation:o[a-1],relationTitle1:"none",relationTitle2:"none"};break;case 26:this.$={id1:o[a-3],id2:o[a],relation:o[a-1],relationTitle1:o[a-2],relationTitle2:"none"};break;case 27:this.$={id1:o[a-3],id2:o[a],relation:o[a-2],relationTitle1:"none",relationTitle2:o[a-1]};break;case 28:this.$={id1:o[a-4],id2:o[a],relation:o[a-2],relationTitle1:o[a-3],relationTitle2:o[a-1]};break;case 29:this.$={type1:o[a-2],type2:o[a],lineType:o[a-1]};break;case 30:this.$={type1:"none",type2:o[a],lineType:o[a-1]};break;case 31:this.$={type1:o[a-1],type2:"none",lineType:o[a]};break;case 32:this.$={type1:"none",type2:"none",lineType:o[a]};break;case 33:this.$=r.relationType.AGGREGATION;break;case 34:this.$=r.relationType.EXTENSION;break;case 35:this.$=r.relationType.COMPOSITION;break;case 36:this.$=r.relationType.DEPENDENCY;break;case 37:this.$=r.lineType.LINE;break;case 38:this.$=r.lineType.DOTTED_LINE;break;case 39:this.$=o[a-2],r.setClickEvent(o[a-1],o[a],void 0);break;case 40:this.$=o[a-3],r.setClickEvent(o[a-2],o[a-1],o[a]);break;case 41:this.$=o[a-2],r.setLink(o[a-1],o[a],void 0);break;case 42:this.$=o[a-3],r.setLink(o[a-2],o[a-1],o[a])}},table:[{3:1,4:2,5:[1,3]},{1:[3]},{1:[2,1]},{6:[1,4]},{7:5,9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:t,23:n,25:r,26:i,37:o,38:s,52:a,53:u,54:c},{8:[1,23]},{6:[1,24],8:[2,3]},e(l,[2,10],{14:[1,25]}),e(l,[2,12]),e(l,[2,13]),e(l,[2,14]),e(l,[2,15]),e(l,[2,21],{27:26,29:29,30:30,14:[1,28],28:[1,27],31:d,32:h,33:f,34:p,35:g,36:m}),{10:37,11:19,52:a,53:u,54:c},e(l,[2,23]),e(l,[2,24]),{11:38,52:a,53:u,54:c},{10:39,11:19,52:a,53:u,54:c},{10:40,11:19,52:a,53:u,54:c},e(_,[2,7],{11:19,10:41,12:[1,42],52:a,53:u,54:c}),e(y,[2,56]),e(y,[2,57]),e(y,[2,58]),{1:[2,2]},{7:43,8:[2,4],9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:t,23:n,25:r,26:i,37:o,38:s,52:a,53:u,54:c},e(l,[2,11]),{10:44,11:19,28:[1,45],52:a,53:u,54:c},{27:46,29:29,30:30,31:d,32:h,33:f,34:p,35:g,36:m},e(l,[2,22]),{30:47,35:g,36:m},e(v,[2,32],{29:48,31:d,32:h,33:f,34:p}),e(b,[2,33]),e(b,[2,34]),e(b,[2,35]),e(b,[2,36]),e(w,[2,37]),e(w,[2,38]),e(l,[2,16],{20:[1,49]}),{24:[1,50]},{28:[1,51]},{28:[1,52]},e(_,[2,6]),e(_,[2,9],{11:19,10:53,52:a,53:u,54:c}),{8:[2,5]},e(C,[2,25]),{10:54,11:19,52:a,53:u,54:c},{10:55,11:19,28:[1,56],52:a,53:u,54:c},e(v,[2,31],{29:57,31:d,32:h,33:f,34:p}),e(v,[2,30]),{21:58,25:S},{10:60,11:19,52:a,53:u,54:c},e(l,[2,39],{28:[1,61]}),e(l,[2,41],{28:[1,62]}),e(_,[2,8]),e(C,[2,27]),e(C,[2,26]),{10:63,11:19,52:a,53:u,54:c},e(v,[2,29]),{22:[1,64]},{21:65,22:[2,19],25:S},e(l,[2,18]),e(l,[2,40]),e(l,[2,42]),e(C,[2,28]),e(l,[2,17]),{22:[2,20]}],defaultActions:{2:[2,1],23:[2,2],43:[2,5],65:[2,20]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,c=0,l=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,k,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(k in D=[],s[C])this.terminals_[k]&&k>d&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:return 6;case 2:break;case 3:return 5;case 4:return this.begin("struct"),20;case 5:return"EOF_IN_STRUCT";case 6:return"OPEN_IN_STRUCT";case 7:return this.popState(),22;case 8:break;case 9:return"MEMBER";case 10:return 19;case 11:return 37;case 12:return 38;case 13:return 23;case 14:return 24;case 15:this.begin("generic");break;case 16:this.popState();break;case 17:return"GENERICTYPE";case 18:this.begin("string");break;case 19:this.popState();break;case 20:return"STR";case 21:case 22:return 32;case 23:case 24:return 34;case 25:return 33;case 26:return 31;case 27:return 35;case 28:return 36;case 29:return 14;case 30:return 50;case 31:return"DOT";case 32:return"PLUS";case 33:return 47;case 34:case 35:return"EQUALS";case 36:return 54;case 37:return"PUNCTUATION";case 38:return 53;case 39:return 52;case 40:return 49;case 41:return 8}},rules:[/^(?:%%[^\n]*\n*)/,/^(?:\n+)/,/^(?:\s+)/,/^(?:classDiagram\b)/,/^(?:[\{])/,/^(?:$)/,/^(?:[\{])/,/^(?:\})/,/^(?:[\n])/,/^(?:[^\{\}\n]*)/,/^(?:class\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\\/])/,/^(?:[0-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])/,/^(?:\s)/,/^(?:$)/],conditions:{string:{rules:[19,20],inclusive:!1},generic:{rules:[16,17],inclusive:!1},struct:{rules:[5,6,7,8,9],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,10,11,12,13,14,15,18,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],inclusive:!0}}};function L(){this.yy={}}return x.lexer=k,L.prototype=x,x.Parser=L,new L}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/class/svgDraw.js": +/*!***************************************!*\ + !*** ./src/diagrams/class/svgDraw.js ***! + \***************************************/ +/*! exports provided: drawEdge, drawClass, parseMember, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawEdge",(function(){return u})),n.d(t,"drawClass",(function(){return c})),n.d(t,"parseMember",(function(){return l}));var r=n(/*! d3 */"d3"),i=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),o=n(/*! ../../utils */"./src/utils.js"),s=n(/*! ../../logger */"./src/logger.js"),a=0,u=function(e,t,n,u){var c=function(e){switch(e){case i.relationType.AGGREGATION:return"aggregation";case i.relationType.EXTENSION:return"extension";case i.relationType.COMPOSITION:return"composition";case i.relationType.DEPENDENCY:return"dependency"}};t.points=t.points.filter((function(e){return!Number.isNaN(e.y)}));var l,d,h=t.points,f=Object(r.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(r.curveBasis),p=e.append("path").attr("d",f(h)).attr("id","edge"+a).attr("class","relation"),g="";u.arrowMarkerAbsolute&&(g=(g=(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==n.relation.lineType&&p.attr("class","relation dashed-line"),"none"!==n.relation.type1&&p.attr("marker-start","url("+g+"#"+c(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&p.attr("marker-end","url("+g+"#"+c(n.relation.type2)+"End)");var m,_,y,v,b=t.points.length,w=o.default.calcLabelPosition(t.points);if(l=w.x,d=w.y,b%2!=0&&b>1){var C=o.default.calcCardinalityPosition("none"!==n.relation.type1,t.points,t.points[0]),S=o.default.calcCardinalityPosition("none"!==n.relation.type2,t.points,t.points[b-1]);s.logger.debug("cardinality_1_point "+JSON.stringify(C)),s.logger.debug("cardinality_2_point "+JSON.stringify(S)),m=C.x,_=C.y,y=S.x,v=S.y}if(void 0!==n.title){var x=e.append("g").attr("class","classLabel"),k=x.append("text").attr("class","label").attr("x",l).attr("y",d).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=k;var L=k.node().getBBox();x.insert("rect",":first-child").attr("class","box").attr("x",L.x-u.padding/2).attr("y",L.y-u.padding/2).attr("width",L.width+u.padding).attr("height",L.height+u.padding)}s.logger.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",m).attr("y",_).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&e.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",y).attr("y",v).attr("fill","black").attr("font-size","6").text(n.relationTitle2),a++},c=function(e,t,n){s.logger.info("Rendering class "+t);var r="classGroup ";t.cssClasses.length>0&&(r+=t.cssClasses.join(" "));var o,a=t.id,u={id:a,label:t.id,width:0,height:0},c=e.append("g").attr("id",Object(i.lookUpDomId)(a)).attr("class",r);o=t.link?c.append("svg:a").attr("xlink:href",t.link).attr("target","_blank").append("text").attr("y",n.textHeight+n.padding).attr("x",0):c.append("text").attr("y",n.textHeight+n.padding).attr("x",0);var l=!0;t.annotations.forEach((function(e){var t=o.append("tspan").text("«"+e+"»");l||t.attr("dy",n.textHeight),l=!1}));var d=t.id;void 0!==t.type&&""!==t.type&&(d+="<"+t.type+">");var h=o.append("tspan").text(d).attr("class","title");l||h.attr("dy",n.textHeight);var f=o.node().getBBox().height,g=c.append("line").attr("x1",0).attr("y1",n.padding+f+n.dividerMargin/2).attr("y2",n.padding+f+n.dividerMargin/2),m=c.append("text").attr("x",n.padding).attr("y",f+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.members.forEach((function(e){p(m,e,l,n),l=!1}));var _=m.node().getBBox(),y=c.append("line").attr("x1",0).attr("y1",n.padding+f+n.dividerMargin+_.height).attr("y2",n.padding+f+n.dividerMargin+_.height),v=c.append("text").attr("x",n.padding).attr("y",f+2*n.dividerMargin+_.height+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.methods.forEach((function(e){p(v,e,l,n),l=!1}));var b=c.node().getBBox(),w=c.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*n.padding).attr("height",b.height+n.padding+.5*n.dividerMargin).node().getBBox().width;return o.node().childNodes.forEach((function(e){e.setAttribute("x",(w-e.getBBox().width)/2)})),t.tooltip&&o.insert("title").text(t.tooltip),g.attr("x2",w),y.attr("x2",w),u.width=w,u.height=b.height+n.padding+.5*n.dividerMargin,u},l=function(e){var t=e.match(/(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/),n=e.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return t&&!n?d(t):n?h(n):f(e)},d=function(e){var t="";try{t=(e[1]?e[1].trim():"")+(e[2]?e[2].trim():"")+(e[3]?g(e[3].trim()):"")+" "+(e[4]?e[4].trim():"")}catch(n){t=e}return{displayText:t,cssStyle:""}},h=function(e){var t="",n="";try{var r=e[1]?e[1].trim():"",i=e[2]?e[2].trim():"",o=e[3]?g(e[3].trim()):"",s=e[4]?e[4].trim():"";n=r+i+"("+o+")"+(e[5]?" : "+g(e[5]).trim():""),t=m(s)}catch(t){n=e}return{displayText:n,cssStyle:t}},f=function(e){var t="",n="",r="",i=e.indexOf("("),o=e.indexOf(")");if(i>1&&o>i&&o<=e.length){var s="",a="",u=e.substring(0,1);u.match(/\w/)?a=e.substring(0,i).trim():(u.match(/\+|-|~|#/)&&(s=u),a=e.substring(1,i).trim());var c=e.substring(i+1,o),l=e.substring(o+1,1);n=m(l),t=s+a+"("+g(c.trim())+")",o<"".length&&""!==(r=e.substring(o+2).trim())&&(r=" : "+g(r))}else t=g(e);return{displayText:t,cssStyle:n}},p=function(e,t,n,r){var i=l(t),o=e.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&o.attr("style",i.cssStyle),n||o.attr("dy",r.textHeight)},g=function e(t){var n=t;return-1!=t.indexOf("~")?e(n=(n=n.replace("~","<")).replace("~",">")):n},m=function(e){switch(e){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};t.default={drawClass:c,drawEdge:u,parseMember:l}},"./src/diagrams/common/common.js": +/*!***************************************!*\ + !*** ./src/diagrams/common/common.js ***! + \***************************************/ +/*! exports provided: getRows, sanitizeText, lineBreakRegex, hasBreaks, splitBreaks, default */function(e,t,n){"use strict";n.r(t),n.d(t,"getRows",(function(){return r})),n.d(t,"sanitizeText",(function(){return i})),n.d(t,"lineBreakRegex",(function(){return o})),n.d(t,"hasBreaks",(function(){return s})),n.d(t,"splitBreaks",(function(){return a}));var r=function(e){if(!e)return 1;var t=u(e);return(t=t.replace(/\\n/g,"#br#")).split("#br#")},i=function(e,t){var n=e,r=!0;return!t.flowchart||!1!==t.flowchart.htmlLabels&&"false"!==t.flowchart.htmlLabels||(r=!1),"loose"!==t.securityLevel&&r&&(n=(n=(n=u(n)).replace(//g,">")).replace(/=/g,"="),n=c(n)),n},o=//gi,s=function(e){return//gi.test(e)},a=function(e){return e.split(//gi)},u=function(e){return e.replace(o,"#br#")},c=function(e){return e.replace(/#br#/g,"
")};t.default={getRows:r,sanitizeText:i,hasBreaks:s,splitBreaks:a,lineBreakRegex:o}},"./src/diagrams/er/erDb.js": +/*!*********************************!*\ + !*** ./src/diagrams/er/erDb.js ***! + \*********************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ../../logger */"./src/logger.js"),i={},o=[],s="";t.default={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},addEntity:function(e){void 0===i[e]&&(i[e]=e,r.logger.debug("Added new entity :",e))},getEntities:function(){return i},addRelationship:function(e,t,n,i){var s={entityA:e,roleA:t,entityB:n,relSpec:i};o.push(s),r.logger.debug("Added new relationship :",s)},getRelationships:function(){return o},clear:function(){i={},o=[],s=""},setTitle:function(e){s=e},getTitle:function(){return s}}},"./src/diagrams/er/erMarkers.js": +/*!**************************************!*\ + !*** ./src/diagrams/er/erMarkers.js ***! + \**************************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};t.default={ERMarkers:r,insertMarkers:function(e,t){var n;e.append("defs").append("marker").attr("id",r.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",r.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}}},"./src/diagrams/er/erRenderer.js": +/*!***************************************!*\ + !*** ./src/diagrams/er/erRenderer.js ***! + \***************************************/ +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return g})),n.d(t,"draw",(function(){return y}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./erDb */"./src/diagrams/er/erDb.js"),a=n(/*! ./parser/erDiagram */"./src/diagrams/er/parser/erDiagram.jison"),u=n.n(a),c=n(/*! dagre */"dagre"),l=n.n(c),d=n(/*! ../../config */"./src/config.js"),h=n(/*! ../../logger */"./src/logger.js"),f=n(/*! ./erMarkers */"./src/diagrams/er/erMarkers.js"),p={},g=function(e){for(var t=Object.keys(e),n=0;nd&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},l={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:return"SPACE";case 2:return 21;case 3:return 4;case 4:return 15;case 5:return 16;case 6:return 17;case 7:return 18;case 8:return 15;case 9:return 16;case 10:return 17;case 11:return 19;case 12:return 20;case 13:case 14:return 19;case 15:return 12;case 16:return t.yytext[0];case 17:return 6}},rules:[/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function d(){this.yy={}}return c.lexer=l,d.prototype=c,c.Parser=d,new d}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/flowchart/flowChartShapes.js": +/*!***************************************************!*\ + !*** ./src/diagrams/flowchart/flowChartShapes.js ***! + \***************************************************/ +/*! exports provided: addToRender, addToRenderV2, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addToRender",(function(){return m})),n.d(t,"addToRenderV2",(function(){return _}));var r=n(/*! dagre-d3 */"dagre-d3"),i=n.n(r);function o(e,t,n){var r=.9*(t.width+t.height),o=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],s=y(e,r,r,o);return n.intersect=function(e){return i.a.intersect.polygon(n,o,e)},s}function s(e,t,n){var r=t.height,o=r/4,s=t.width+2*o,a=[{x:o,y:0},{x:s-o,y:0},{x:s,y:-r/2},{x:s-o,y:-r},{x:o,y:-r},{x:0,y:-r/2}],u=y(e,s,r,a);return n.intersect=function(e){return i.a.intersect.polygon(n,a,e)},u}function a(e,t,n){var r=t.width,o=t.height,s=[{x:-o/2,y:0},{x:r,y:0},{x:r,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function u(e,t,n){var r=t.width,o=t.height,s=[{x:-2*o/6,y:0},{x:r-o/6,y:0},{x:r+2*o/6,y:-o},{x:o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function c(e,t,n){var r=t.width,o=t.height,s=[{x:2*o/6,y:0},{x:r+o/6,y:0},{x:r-2*o/6,y:-o},{x:-o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function l(e,t,n){var r=t.width,o=t.height,s=[{x:-2*o/6,y:0},{x:r+2*o/6,y:0},{x:r-o/6,y:-o},{x:o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function d(e,t,n){var r=t.width,o=t.height,s=[{x:o/6,y:0},{x:r-o/6,y:0},{x:r+2*o/6,y:-o},{x:-2*o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function h(e,t,n){var r=t.width,o=t.height,s=[{x:0,y:0},{x:r+o/2,y:0},{x:r,y:-o/2},{x:r+o/2,y:-o},{x:0,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function f(e,t,n){var r=t.height,o=t.width+r/4,s=e.insert("rect",":first-child").attr("rx",r/2).attr("ry",r/2).attr("x",-o/2).attr("y",-r/2).attr("width",o).attr("height",r);return n.intersect=function(e){return i.a.intersect.rect(n,e)},s}function p(e,t,n){var r=t.width,o=t.height,s=[{x:0,y:0},{x:r,y:0},{x:r,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function g(e,t,n){var r=t.width,o=r/2,s=o/(2.5+r/50),a=t.height+s,u="M 0,"+s+" a "+o+","+s+" 0,0,0 "+r+" 0 a "+o+","+s+" 0,0,0 "+-r+" 0 l 0,"+a+" a "+o+","+s+" 0,0,0 "+r+" 0 l 0,"+-a,c=e.attr("label-offset-y",s).insert("path",":first-child").attr("d",u).attr("transform","translate("+-r/2+","+-(a/2+s)+")");return n.intersect=function(e){var t=i.a.intersect.rect(n,e),r=t.x-n.x;if(0!=o&&(Math.abs(r)n.height/2-s)){var a=s*s*(1-r*r/(o*o));0!=a&&(a=Math.sqrt(a)),a=s-a,e.y-n.y>0&&(a=-a),t.y+=a}return t},c}function m(e){e.shapes().question=o,e.shapes().hexagon=s,e.shapes().stadium=f,e.shapes().subroutine=p,e.shapes().cylinder=g,e.shapes().rect_left_inv_arrow=a,e.shapes().lean_right=u,e.shapes().lean_left=c,e.shapes().trapezoid=l,e.shapes().inv_trapezoid=d,e.shapes().rect_right_inv_arrow=h}function _(e){e({question:o}),e({hexagon:s}),e({stadium:f}),e({subroutine:p}),e({cylinder:g}),e({rect_left_inv_arrow:a}),e({lean_right:u}),e({lean_left:c}),e({trapezoid:l}),e({inv_trapezoid:d}),e({rect_right_inv_arrow:h})}function y(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("transform","translate("+-t/2+","+n/2+")")}t.default={addToRender:m,addToRenderV2:_}},"./src/diagrams/flowchart/flowDb.js": +/*!******************************************!*\ + !*** ./src/diagrams/flowchart/flowDb.js ***! + \******************************************/ +/*! exports provided: addVertex, addSingleLink, addLink, updateLinkInterpolate, updateLink, addClass, setDirection, setClass, setLink, getTooltip, setClickEvent, bindFunctions, getDirection, getVertices, getEdges, getClasses, clear, defaultStyle, addSubGraph, getDepthFirstPos, indexNodes, getSubGraphs, firstGraph, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addVertex",(function(){return v})),n.d(t,"addSingleLink",(function(){return b})),n.d(t,"addLink",(function(){return w})),n.d(t,"updateLinkInterpolate",(function(){return C})),n.d(t,"updateLink",(function(){return S})),n.d(t,"addClass",(function(){return x})),n.d(t,"setDirection",(function(){return k})),n.d(t,"setClass",(function(){return L})),n.d(t,"setLink",(function(){return D})),n.d(t,"getTooltip",(function(){return E})),n.d(t,"setClickEvent",(function(){return T})),n.d(t,"bindFunctions",(function(){return N})),n.d(t,"getDirection",(function(){return O})),n.d(t,"getVertices",(function(){return A})),n.d(t,"getEdges",(function(){return I})),n.d(t,"getClasses",(function(){return P})),n.d(t,"clear",(function(){return F})),n.d(t,"defaultStyle",(function(){return Y})),n.d(t,"addSubGraph",(function(){return j})),n.d(t,"getDepthFirstPos",(function(){return V})),n.d(t,"indexNodes",(function(){return z})),n.d(t,"getSubGraphs",(function(){return U})),n.d(t,"firstGraph",(function(){return q}));var r=n(/*! d3 */"d3"),i=(n(/*! ../../logger */"./src/logger.js"),n(/*! ../../utils */"./src/utils.js")),o=n(/*! ../../config */"./src/config.js"),s=n(/*! ../common/common */"./src/diagrams/common/common.js");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u,c=Object(o.getConfig)(),l={},d=[],h=[],f=[],p={},g={},m=0,_=!0,y=[],v=function(e,t,n,r,i){var o,a=e;void 0!==a&&0!==a.trim().length&&(a[0].match(/\d/)&&(a=""+a),void 0===l[a]&&(l[a]={id:a,styles:[],classes:[]}),void 0!==t?('"'===(o=s.default.sanitizeText(t.trim(),c))[0]&&'"'===o[o.length-1]&&(o=o.substring(1,o.length-1)),l[a].text=o):void 0===l[a].text&&(l[a].text=e),void 0!==n&&(l[a].type=n),null!=r&&r.forEach((function(e){l[a].styles.push(e)})),null!=i&&i.forEach((function(e){l[a].classes.push(e)})))},b=function(e,t,n,r){var i=e,o=t;i[0].match(/\d/)&&(i=""+i),o[0].match(/\d/)&&(o=""+o);var a={start:i,end:o,type:void 0,text:""};void 0!==(r=n.text)&&(a.text=s.default.sanitizeText(r.trim(),c),'"'===a.text[0]&&'"'===a.text[a.text.length-1]&&(a.text=a.text.substring(1,a.text.length-1))),void 0!==n&&(a.type=n.type,a.stroke=n.stroke),d.push(a)},w=function(e,t,n,r){var i,o;for(i=0;i/)&&(u="LR"),u.match(/.*v/)&&(u="TB")},L=function(e,t){e.split(",").forEach((function(e){var n=e;e[0].match(/\d/)&&(n=""+n),void 0!==l[n]&&l[n].classes.push(t),void 0!==p[n]&&p[n].classes.push(t)}))},M=function(e,t){e.split(",").forEach((function(e){void 0!==t&&(g[e]=s.default.sanitizeText(t,c))}))},D=function(e,t,n){e.split(",").forEach((function(e){var n=e;e[0].match(/\d/)&&(n=""+n),void 0!==l[n]&&(l[n].link=i.default.formatUrl(t,c))})),M(e,n),L(e,"clickable")},E=function(e){return g[e]},T=function(e,t,n){e.split(",").forEach((function(e){!function(e,t){var n=e;e[0].match(/\d/)&&(n=""+n),"loose"===Object(o.getConfig)().securityLevel&&void 0!==t&&void 0!==l[n]&&y.push((function(){var e=document.querySelector('[id="'.concat(n,'"]'));null!==e&&e.addEventListener("click",(function(){i.default.runFunc(t,n)}),!1)}))}(e,t)})),M(e,n),L(e,"clickable")},N=function(e){y.forEach((function(t){t(e)}))},O=function(){return u.trim()},A=function(){return l},I=function(){return d},P=function(){return h},R=function(e){var t=Object(r.select)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=Object(r.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(r.select)(e).select("svg").selectAll("g.node").on("mouseover",(function(){var e=Object(r.select)(this);if(null!==e.attr("title")){var n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.classed("hover",!0)}})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0),Object(r.select)(this).classed("hover",!1)}))};y.push(R);var F=function(){l={},h={},d=[],(y=[]).push(R),f=[],p={},m=0,g=[],_=!0},Y=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},j=function(e,t,n){var r=e.trim(),i=n;e===n&&n.match(/\s/)&&(r=void 0);var o,u,l,d=[];o=d.concat.apply(d,t),u={boolean:{},number:{},string:{}},l=[],d=o.filter((function(e){var t=a(e);return""!==e.trim()&&(t in u?!u[t].hasOwnProperty(e)&&(u[t][e]=!0):!(l.indexOf(e)>=0)&&l.push(e))}));for(var h=0;h0&&function e(t,n){var r=f[n].nodes;if(!((H+=1)>2e3)){if(W[H]=n,f[n].id===t)return{result:!0,count:0};for(var i=0,o=1;i=0){var a=e(t,s);if(a.result)return{result:!0,count:o+a.count};o+=a.count}i+=1}return{result:!1,count:o}}}("none",f.length-1)},U=function(){return f},q=function(){return!!_&&(_=!1,!0)};t.default={addVertex:v,addLink:w,updateLinkInterpolate:C,updateLink:S,addClass:x,setDirection:k,setClass:L,getTooltip:E,setClickEvent:T,setLink:D,bindFunctions:N,getDirection:O,getVertices:A,getEdges:I,getClasses:P,clear:F,defaultStyle:Y,addSubGraph:j,getDepthFirstPos:V,indexNodes:z,getSubGraphs:U,destructLink:function(e,t){var n,r=function(e){switch(e.trim()){case"--x":return{type:"arrow_cross",stroke:"normal"};case"--\x3e":return{type:"arrow_point",stroke:"normal"};case"<--\x3e":return{type:"double_arrow_point",stroke:"normal"};case"x--x":return{type:"double_arrow_cross",stroke:"normal"};case"o--o":return{type:"double_arrow_circle",stroke:"normal"};case"o.-o":return{type:"double_arrow_circle",stroke:"dotted"};case"<==>":return{type:"double_arrow_point",stroke:"thick"};case"o==o":return{type:"double_arrow_circle",stroke:"thick"};case"x==x":return{type:"double_arrow_cross",stroke:"thick"};case"x.-x":case"x-.-x":return{type:"double_arrow_cross",stroke:"dotted"};case"<.->":case"<-.->":return{type:"double_arrow_point",stroke:"dotted"};case"o-.-o":return{type:"double_arrow_circle",stroke:"dotted"};case"--o":return{type:"arrow_circle",stroke:"normal"};case"---":return{type:"arrow_open",stroke:"normal"};case"-.-x":return{type:"arrow_cross",stroke:"dotted"};case"-.->":return{type:"arrow_point",stroke:"dotted"};case"-.-o":return{type:"arrow_circle",stroke:"dotted"};case"-.-":return{type:"arrow_open",stroke:"dotted"};case".-x":return{type:"arrow_cross",stroke:"dotted"};case".->":return{type:"arrow_point",stroke:"dotted"};case".-o":return{type:"arrow_circle",stroke:"dotted"};case".-":return{type:"arrow_open",stroke:"dotted"};case"==x":return{type:"arrow_cross",stroke:"thick"};case"==>":return{type:"arrow_point",stroke:"thick"};case"==o":return{type:"arrow_circle",stroke:"thick"};case"===":return{type:"arrow_open",stroke:"thick"}}}(e);if(t){if((n=function(e){switch(e.trim()){case"<--":return{type:"arrow_point",stroke:"normal"};case"x--":return{type:"arrow_cross",stroke:"normal"};case"o--":return{type:"arrow_circle",stroke:"normal"};case"<-.":return{type:"arrow_point",stroke:"dotted"};case"x-.":return{type:"arrow_cross",stroke:"dotted"};case"o-.":return{type:"arrow_circle",stroke:"dotted"};case"<==":return{type:"arrow_point",stroke:"thick"};case"x==":return{type:"arrow_cross",stroke:"thick"};case"o==":return{type:"arrow_circle",stroke:"thick"};case"--":return{type:"arrow_open",stroke:"normal"};case"==":return{type:"arrow_open",stroke:"thick"};case"-.":return{type:"arrow_open",stroke:"dotted"}}}(t)).stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===n.type)n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return"double_arrow"===n.type&&(n.type="double_arrow_point"),n}return r},lex:{firstGraph:q}}},"./src/diagrams/flowchart/flowRenderer-v2.js": +/*!***************************************************!*\ + !*** ./src/diagrams/flowchart/flowRenderer-v2.js ***! + \***************************************************/ +/*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return _})),n.d(t,"addVertices",(function(){return y})),n.d(t,"addEdges",(function(){return v})),n.d(t,"getClasses",(function(){return b})),n.d(t,"draw",(function(){return w}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./flowDb */"./src/diagrams/flowchart/flowDb.js"),a=n(/*! ./parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),u=n.n(a),c=n(/*! ../../config */"./src/config.js"),l=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),d=n(/*! dagre-d3/lib/label/add-html-label.js */"dagre-d3/lib/label/add-html-label.js"),h=n.n(d),f=n(/*! ../../logger */"./src/logger.js"),p=n(/*! ../common/common */"./src/diagrams/common/common.js"),g=n(/*! ../../utils */"./src/utils.js"),m={},_=function(e){for(var t=Object.keys(e),n=0;n0&&(o=i.classes.join(" "));var s,a=Object(g.getStylesFromArray)(i.styles),u=void 0!==i.text?i.text:i.id;if(Object(c.getConfig)().flowchart.htmlLabels){var l={label:u.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"")}))};(s=h()(r,l).node()).parentNode.removeChild(s)}else{var d=document.createElementNS("http://www.w3.org/2000/svg","text");d.setAttribute("style",a.labelStyle.replace("color:","fill:"));for(var m=u.split(p.default.lineBreakRegex),_=0;_=0;_--)a=m[_],f.logger.info("Subgraph - ",a),s.default.addVertex(a.id,a.title,"group",void 0,a.classes);var b=s.default.getVertices(),w=s.default.getEdges();f.logger.info(w);var C=0;for(C=m.length-1;C>=0;C--){a=m[C],Object(o.selectAll)("cluster").append("text");for(var S=0;S0&&(o=i.classes.join(" "));var s,a=Object(m.getStylesFromArray)(i.styles),u=void 0!==i.text?i.text:i.id;if(Object(c.getConfig)().flowchart.htmlLabels){var l={label:u.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"")}))};(s=f()(r,l).node()).parentNode.removeChild(s)}else{var d=document.createElementNS("http://www.w3.org/2000/svg","text");d.setAttribute("style",a.labelStyle.replace("color:","fill:"));for(var h=u.split(g.default.lineBreakRegex),p=0;p').concat(s.text,"")):(d.labelType="text",d.label=s.text.replace(g.default.lineBreakRegex,"\n"),void 0===s.style&&(d.style=d.style||"stroke: #333; stroke-width: 1.5px;fill:none"),d.labelStyle=d.labelStyle.replace("color:","fill:"))),d.id=a,d.class=u+" "+l,t.setEdge(s.start,s.end,d,i)}))},C=function(e){p.logger.info("Extracting classes"),s.default.clear();try{var t=u.a.parser;return t.yy=s.default,t.parse(e),s.default.getClasses()}catch(e){return}},S=function(e,t){p.logger.info("Drawing flowchart"),s.default.clear();var n=u.a.parser;n.yy=s.default,n.parse(e);var r=s.default.getDirection();void 0===r&&(r="TD");for(var a,l=Object(c.getConfig)().flowchart,h=l.nodeSpacing||50,f=l.rankSpacing||50,g=new i.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:h,ranksep:f,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),m=s.default.getSubGraphs(),y=m.length-1;y>=0;y--)a=m[y],s.default.addVertex(a.id,a.title,"group",void 0,a.classes);var v=s.default.getVertices(),C=s.default.getEdges(),S=0;for(S=m.length-1;S>=0;S--){a=m[S],Object(o.selectAll)("cluster").append("text");for(var x=0;xd&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},ze={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:this.begin("string");break;case 2:this.popState();break;case 3:return"STR";case 4:return 63;case 5:return 72;case 6:return 64;case 7:return 77;case 8:return 65;case 9:return 66;case 10:return 67;case 11:case 12:return e.lex.firstGraph()&&this.begin("dir"),12;case 13:return 26;case 14:return 30;case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:return this.popState(),13;case 25:return 78;case 26:return 86;case 27:return 35;case 28:return 83;case 29:return 34;case 30:return 8;case 31:return 79;case 32:return 97;case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:return 58;case 61:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:return 57;case 73:return 39;case 74:return 40;case 75:return 41;case 76:return 42;case 77:return 43;case 78:return 44;case 79:return 45;case 80:return 46;case 81:return 84;case 82:return 87;case 83:return 98;case 84:return 95;case 85:return 88;case 86:case 87:return 96;case 88:return 89;case 89:return 49;case 90:return 69;case 91:return"SEP";case 92:return 68;case 93:return 82;case 94:return 51;case 95:return 50;case 96:return 53;case 97:return 52;case 98:return 93;case 99:return 94;case 100:return 59;case 101:return 37;case 102:return 38;case 103:return 28;case 104:return 29;case 105:return 47;case 106:return 48;case 107:return 104;case 108:return 9;case 109:return 10;case 110:return 11}},rules:[/^(?:%%[^\n]*\n*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--[x]\s*)/,/^(?:\s*-->\s*)/,/^(?:\s*<-->\s*)/,/^(?:\s*[x]--[x]\s*)/,/^(?:\s*[o]--[o]\s*)/,/^(?:\s*[o]\.-[o]\s*)/,/^(?:\s*<==>\s*)/,/^(?:\s*[o]==[o]\s*)/,/^(?:\s*[x]==[x]\s*)/,/^(?:\s*[x].-[x]\s*)/,/^(?:\s*[x]-\.-[x]\s*)/,/^(?:\s*<\.->\s*)/,/^(?:\s*<-\.->\s*)/,/^(?:\s*[o]-\.-[o]\s*)/,/^(?:\s*--[o]\s*)/,/^(?:\s*---\s*)/,/^(?:\s*-\.-[x]\s*)/,/^(?:\s*-\.->\s*)/,/^(?:\s*-\.-[o]\s*)/,/^(?:\s*-\.-\s*)/,/^(?:\s*.-[x]\s*)/,/^(?:\s*\.->\s*)/,/^(?:\s*\.-[o]\s*)/,/^(?:\s*\.-\s*)/,/^(?:\s*==[x]\s*)/,/^(?:\s*==>\s*)/,/^(?:\s*==[o]\s*)/,/^(?:\s*==[\=]\s*)/,/^(?:\s*<--\s*)/,/^(?:\s*[x]--\s*)/,/^(?:\s*[o]--\s*)/,/^(?:\s*<-\.\s*)/,/^(?:\s*[x]-\.\s*)/,/^(?:\s*[o]-\.\s*)/,/^(?:\s*<==\s*)/,/^(?:\s*[x]==\s*)/,/^(?:\s*[o]==\s*)/,/^(?:\s*--\s*)/,/^(?:\s*-\.\s*)/,/^(?:\s*==\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_\/])/,/^(?:[\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|\r\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{vertex:{rules:[],inclusive:!1},dir:{rules:[15,16,17,18,19,20,21,22,23,24],inclusive:!1},string:{rules:[2,3],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,8,9,10,11,12,13,14,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],inclusive:!0}}};function Ue(){this.yy={}}return Ve.lexer=ze,Ue.prototype=Ve,Ve.Parser=Ue,new Ue}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/gantt/ganttDb.js": +/*!***************************************!*\ + !*** ./src/diagrams/gantt/ganttDb.js ***! + \***************************************/ +/*! exports provided: clear, setAxisFormat, getAxisFormat, setTodayMarker, getTodayMarker, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */function(e,t,n){"use strict";n.r(t),n.d(t,"clear",(function(){return x})),n.d(t,"setAxisFormat",(function(){return k})),n.d(t,"getAxisFormat",(function(){return L})),n.d(t,"setTodayMarker",(function(){return M})),n.d(t,"getTodayMarker",(function(){return D})),n.d(t,"setDateFormat",(function(){return E})),n.d(t,"enableInclusiveEndDates",(function(){return T})),n.d(t,"endDatesAreInclusive",(function(){return N})),n.d(t,"getDateFormat",(function(){return O})),n.d(t,"setExcludes",(function(){return A})),n.d(t,"getExcludes",(function(){return I})),n.d(t,"setTitle",(function(){return P})),n.d(t,"getTitle",(function(){return R})),n.d(t,"addSection",(function(){return F})),n.d(t,"getSections",(function(){return Y})),n.d(t,"getTasks",(function(){return j})),n.d(t,"addTask",(function(){return Z})),n.d(t,"findTaskById",(function(){return J})),n.d(t,"addTaskOrg",(function(){return X})),n.d(t,"setLink",(function(){return ee})),n.d(t,"setClass",(function(){return te})),n.d(t,"setClickEvent",(function(){return re})),n.d(t,"bindFunctions",(function(){return ie}));var r=n(/*! moment-mini */"moment-mini"),i=n.n(r),o=n(/*! @braintree/sanitize-url */"@braintree/sanitize-url"),s=n(/*! ../../logger */"./src/logger.js"),a=n(/*! ../../config */"./src/config.js"),u=n(/*! ../../utils */"./src/utils.js");function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=6&&n.indexOf("weekends")>=0||n.indexOf(e.format("dddd").toLowerCase())>=0||n.indexOf(e.format(t.trim()))>=0},H=function(e,t,n){if(n.length&&!e.manualEndTime){var r=i()(e.startTime,t,!0);r.add(1,"d");var o=i()(e.endTime,t,!0),s=W(r,o,t,n);e.endTime=o.toDate(),e.renderEndTime=s}},W=function(e,t,n,r){for(var i=!1,o=null;e<=t;)i||(o=t.toDate()),(i=B(e,n,r))&&t.add(1,"d"),e.add(1,"d");return o},V=function(e,t,n){n=n.trim();var r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){var o=null;if(r[1].split(" ").forEach((function(e){var t=J(e);void 0!==t&&(o?t.endTime>o.endTime&&(o=t):o=t)})),o)return o.endTime;var a=new Date;return a.setHours(0,0,0,0),a}var u=i()(n,t.trim(),!0);return u.isValid()?u.toDate():(s.logger.debug("Invalid date:"+n),s.logger.debug("With date format:"+t.trim()),new Date)},z=function(e,t){if(null!==e)switch(e[2]){case"s":t.add(e[1],"seconds");break;case"m":t.add(e[1],"minutes");break;case"h":t.add(e[1],"hours");break;case"d":t.add(e[1],"days");break;case"w":t.add(e[1],"weeks")}return t.toDate()},U=function(e,t,n,r){r=r||!1,n=n.trim();var o=i()(n,t.trim(),!0);return o.isValid()?(r&&o.add(1,"d"),o.toDate()):z(/^([\d]+)([wdhms])/.exec(n.trim()),i()(e))},q=0,K=function(e){return void 0===e?"task"+(q+=1):e},G=[],$={},Z=function(e,t){var n={section:v,type:v,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=function(e,t){var n=(":"===t.substr(0,1)?t.substr(1,t.length):t).split(","),r={};oe(n,r,b);for(var i=0;ir?i=1:n0&&(t=e.classes.join(" "));for(var n=0,r=0;rn-t?n+o+1.5*u.leftPadding>s?t+r-5:n+r+5:(n-t)/2+t+r})).attr("y",(function(e,r){return e.order*t+u.barHeight/2+(u.fontSize/2-2)+n})).attr("text-height",i).attr("class",(function(e){var t=h(e.startTime),n=h(e.endTime);e.milestone&&(n=t+i);var r=this.getBBox().width,o="";e.classes.length>0&&(o=e.classes.join(" "));var a=0;console.log(u);for(var c=0;cn-t?n+r+1.5*u.leftPadding>s?o+" taskTextOutsideLeft taskTextOutside"+a+" "+l:o+" taskTextOutsideRight taskTextOutside"+a+" "+l+" width-"+r:o+" taskText taskText"+a+" "+l+" width-"+r}))}(g,v,b,w,y,0,m),function(e,t){for(var n=[],r=0,i=0;i0&&s.setAttribute("dy","1em"),s.textContent=t[i],r.appendChild(s)}return r})).attr("x",10).attr("y",(function(i,o){if(!(o>0))return i[1]*e/2+t;for(var s=0;sd&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},h={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 10;case 1:case 2:case 3:break;case 4:this.begin("href");break;case 5:this.popState();break;case 6:return 24;case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 22;case 11:this.popState();break;case 12:return 23;case 13:this.begin("click");break;case 14:this.popState();break;case 15:return 21;case 16:return 4;case 17:return 11;case 18:return 12;case 19:return 13;case 20:return 14;case 21:return 15;case 22:return"date";case 23:return 16;case 24:return 17;case 25:return 19;case 26:return 20;case 27:return":";case 28:return 6;case 29:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{callbackargs:{rules:[11,12],inclusive:!1},callbackname:{rules:[8,9,10],inclusive:!1},href:{rules:[5,6],inclusive:!1},click:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],inclusive:!0}}};function f(){this.yy={}}return d.lexer=h,f.prototype=d,d.Parser=f,new f}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/git/gitGraphAst.js": +/*!*****************************************!*\ + !*** ./src/diagrams/git/gitGraphAst.js ***! + \*****************************************/ +/*! exports provided: setDirection, setOptions, getOptions, commit, branch, merge, checkout, reset, prettyPrint, clear, getBranchesAsObjArray, getBranches, getCommits, getCommitsArray, getCurrentBranch, getDirection, getHead, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setDirection",(function(){return h})),n.d(t,"setOptions",(function(){return p})),n.d(t,"getOptions",(function(){return g})),n.d(t,"commit",(function(){return m})),n.d(t,"branch",(function(){return _})),n.d(t,"merge",(function(){return y})),n.d(t,"checkout",(function(){return v})),n.d(t,"reset",(function(){return b})),n.d(t,"prettyPrint",(function(){return S})),n.d(t,"clear",(function(){return x})),n.d(t,"getBranchesAsObjArray",(function(){return k})),n.d(t,"getBranches",(function(){return L})),n.d(t,"getCommits",(function(){return M})),n.d(t,"getCommitsArray",(function(){return D})),n.d(t,"getCurrentBranch",(function(){return E})),n.d(t,"getDirection",(function(){return T})),n.d(t,"getHead",(function(){return N}));var r=n(/*! ../../logger */"./src/logger.js"),i={},o=null,s={master:o},a="master",u="LR",c=0;function l(){return function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,i=0;it.seq&&d(t,e)}(t,n))r.logger.debug("Already merged");else{if(d(t,n))s[a]=s[e],o=i[s[a]];else{var u={id:l(),message:"merged branch "+e+" into "+a,seq:c++,parent:[null==o?null:o.id,s[e]]};o=u,i[u.id]=u,s[a]=u.id}r.logger.debug(s),r.logger.debug("in mergeBranch")}},v=function(e){r.logger.debug("in checkout");var t=s[a=e];o=i[t]},b=function(e){r.logger.debug("in reset",e);var t=e.split(":")[0],n=parseInt(e.split(":")[1]),u="HEAD"===t?o:i[s[t]];for(r.logger.debug(u,n);n>0;)if(n--,!(u=i[u.parent])){var c="Critical error - unique parent commit not found during reset";throw r.logger.error(c),c}o=u,s[a]=u.id};function w(e,t,n){var r=e.indexOf(t);-1===r?e.push(n):e.splice(r,1,n)}function C(e){var t=e.reduce((function(e,t){return e.seq>t.seq?e:t}),e[0]),n="";e.forEach((function(e){n+=e===t?"\t*":"\t|"}));var o,a,u,c=[n,t.id,t.seq];for(var l in s)s[l]===t.id&&c.push(l);if(r.logger.debug(c.join(" ")),Array.isArray(t.parent)){var d=i[t.parent[0]];w(e,t,d),e.push(i[t.parent[1]])}else{if(null==t.parent)return;var h=i[t.parent];w(e,t,h)}o=e,a=function(e){return e.id},u=Object.create(null),C(e=o.reduce((function(e,t){var n=a(t);return u[n]||(u[n]=!0,e.push(t)),e}),[]))}var S=function(){r.logger.debug(i),C([D()[0]])},x=function(){i={},s={master:o=null},a="master",c=0},k=function(){var e=[];for(var t in s)e.push({name:t,commit:i[s[t]]});return e},L=function(){return s},M=function(){return i},D=function(){var e=Object.keys(i).map((function(e){return i[e]}));return e.forEach((function(e){r.logger.debug(e.id)})),e.sort((function(e,t){return t.seq-e.seq})),e},E=function(){return a},T=function(){return u},N=function(){return o};t.default={setDirection:h,setOptions:p,getOptions:g,commit:m,branch:_,merge:y,checkout:v,reset:b,prettyPrint:S,clear:x,getBranchesAsObjArray:k,getBranches:L,getCommits:M,getCommitsArray:D,getCurrentBranch:E,getDirection:T,getHead:N}},"./src/diagrams/git/gitGraphRenderer.js": +/*!**********************************************!*\ + !*** ./src/diagrams/git/gitGraphRenderer.js ***! + \**********************************************/ +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return f})),n.d(t,"draw",(function(){return b}));var r,i=n(/*! d3 */"d3"),o=n(/*! ./gitGraphAst */"./src/diagrams/git/gitGraphAst.js"),s=n(/*! ./parser/gitGraph */"./src/diagrams/git/parser/gitGraph.jison"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),c=n(/*! ../../utils */"./src/utils.js"),l={},d={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},h={},f=function(e){h=e};function p(e,t,n,r){var o=Object(c.interpolateToCurve)(r,i.curveBasis),s=d.branchColors[n%d.branchColors.length],a=Object(i.line)().x((function(e){return Math.round(e.x)})).y((function(e){return Math.round(e.y)})).curve(o);e.append("svg:path").attr("d",a(t)).style("stroke",s).style("stroke-width",d.lineStrokeWidth).style("fill","none")}function g(e,t){t=t||e.node().getBBox();var n=e.node().getCTM();return{left:n.e+t.x*n.a,top:n.f+t.y*n.d,width:t.width,height:t.height}}function m(e,t,n,r,i){u.logger.debug("svgDrawLineForCommits: ",t,n);var o=g(e.select("#node-"+t+" circle")),s=g(e.select("#node-"+n+" circle"));switch(r){case"LR":if(o.left-s.left>d.nodeSpacing){var a={x:o.left-d.nodeSpacing,y:s.top+s.height/2};p(e,[a,{x:s.left+s.width,y:s.top+s.height/2}],i,"linear"),p(e,[{x:o.left,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:a.y},a],i)}else p(e,[{x:o.left,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:s.top+s.height/2},{x:s.left+s.width,y:s.top+s.height/2}],i);break;case"BT":if(s.top-o.top>d.nodeSpacing){var c={x:s.left+s.width/2,y:o.top+o.height+d.nodeSpacing};p(e,[c,{x:s.left+s.width/2,y:s.top}],i,"linear"),p(e,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+o.height+d.nodeSpacing/2},{x:s.left+s.width/2,y:c.y-d.nodeSpacing/2},c],i)}else p(e,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+d.nodeSpacing/2},{x:s.left+s.width/2,y:s.top-d.nodeSpacing/2},{x:s.left+s.width/2,y:s.top}],i)}}function _(e,t){return e.select(t).node().cloneNode(!0)}function y(e,t,n,i){var o,s=Object.keys(l).length;if("string"==typeof t)do{if(o=l[t],u.logger.debug("in renderCommitHistory",o.id,o.seq),e.select("#node-"+t).size()>0)return;e.append((function(){return _(e,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+o.id})).attr("transform",(function(){switch(i){case"LR":return"translate("+(o.seq*d.nodeSpacing+d.leftMargin)+", "+r*d.branchOffset+")";case"BT":return"translate("+(r*d.branchOffset+d.leftMargin)+", "+(s-o.seq)*d.nodeSpacing+")"}})).attr("fill",d.nodeFillColor).attr("stroke",d.nodeStrokeColor).attr("stroke-width",d.nodeStrokeWidth);var a=void 0;for(var c in n)if(n[c].commit===o){a=n[c];break}a&&(u.logger.debug("found branch ",a.name),e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","branch-label").text(a.name+", ")),e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","commit-id").text(o.id),""!==o.message&&"BT"===i&&e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+o.message),t=o.parent}while(t&&l[t]);Array.isArray(t)&&(u.logger.debug("found merge commmit",t),y(e,t[0],n,i),r++,y(e,t[1],n,i),r--)}function v(e,t,n,r){for(r=r||0;t.seq>0&&!t.lineDrawn;)"string"==typeof t.parent?(m(e,t.id,t.parent,n,r),t.lineDrawn=!0,t=l[t.parent]):Array.isArray(t.parent)&&(m(e,t.id,t.parent[0],n,r),m(e,t.id,t.parent[1],n,r+1),v(e,l[t.parent[1]],n,r+1),t.lineDrawn=!0,t=l[t.parent[0]])}var b=function(e,t,n){try{var s=a.a.parser;s.yy=o.default,s.yy.clear(),u.logger.debug("in gitgraph renderer",e+"\n","id:",t,n),s.parse(e+"\n"),d=Object.assign(d,h,o.default.getOptions()),u.logger.debug("effective options",d);var c=o.default.getDirection();l=o.default.getCommits();var f=o.default.getBranchesAsObjArray();"BT"===c&&(d.nodeLabel.x=f.length*d.branchOffset,d.nodeLabel.width="100%",d.nodeLabel.y=-2*d.nodeRadius);var p=Object(i.select)('[id="'.concat(t,'"]'));for(var g in function(e){e.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",d.nodeRadius).attr("cx",0).attr("cy",0),e.select("#def-commit").append("foreignObject").attr("width",d.nodeLabel.width).attr("height",d.nodeLabel.height).attr("x",d.nodeLabel.x).attr("y",d.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(p),r=1,f){var m=f[g];y(p,m.commit.id,f,c),v(p,m.commit,c),r++}p.attr("height",(function(){return"BT"===c?Object.keys(l).length*d.nodeSpacing:(f.length+1)*d.branchOffset}))}catch(e){u.logger.error("Error while rendering gitgraph"),u.logger.error(e.message)}};t.default={setConf:f,draw:b}},"./src/diagrams/git/parser/gitGraph.jison": +/*!************************************************!*\ + !*** ./src/diagrams/git/parser/gitGraph.jison ***! + \************************************************/ +/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[2,3],n=[1,7],r=[7,12,15,17,19,20,21],i=[7,11,12,15,17,19,20,21],o=[2,20],s=[1,32],a={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:return o[a-1];case 2:return r.setDirection(o[a-3]),o[a-1];case 4:r.setOptions(o[a-1]),this.$=o[a];break;case 5:o[a-1]+=o[a],this.$=o[a-1];break;case 7:this.$=[];break;case 8:o[a-1].push(o[a]),this.$=o[a-1];break;case 9:this.$=o[a-1];break;case 11:r.commit(o[a]);break;case 12:r.branch(o[a]);break;case 13:r.checkout(o[a]);break;case 14:r.merge(o[a]);break;case 15:r.reset(o[a]);break;case 16:this.$="";break;case 17:this.$=o[a];break;case 18:this.$=o[a-1]+":"+o[a];break;case 19:this.$=o[a-1]+":"+r.count,r.count=0;break;case 20:r.count=0;break;case 21:r.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:t,9:6,12:n},{5:[1,8]},{7:[1,9]},e(r,[2,7],{10:10,11:[1,11]}),e(i,[2,6]),{6:12,7:t,9:6,12:n},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},e(i,[2,5]),{7:[1,21]},e(r,[2,8]),{12:[1,22]},e(r,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},e(r,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:o,25:31,26:s},{12:o,25:33,26:s},{12:[2,18]},{12:o,25:34,26:s},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,c=0,l=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,k,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(k in D=[],s[C])this.terminals_[k]&&k>d&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},u={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 18:this.popState();break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function c(){this.yy={}}return a.lexer=u,c.prototype=a,a.Parser=c,new c}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/info/infoDb.js": +/*!*************************************!*\ + !*** ./src/diagrams/info/infoDb.js ***! + \*************************************/ +/*! exports provided: setMessage, getMessage, setInfo, getInfo, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setMessage",(function(){return s})),n.d(t,"getMessage",(function(){return a})),n.d(t,"setInfo",(function(){return u})),n.d(t,"getInfo",(function(){return c}));var r=n(/*! ../../logger */"./src/logger.js"),i="",o=!1,s=function(e){r.logger.debug("Setting message to: "+e),i=e},a=function(){return i},u=function(e){o=e},c=function(){return o};t.default={setMessage:s,getMessage:a,setInfo:u,getInfo:c}},"./src/diagrams/info/infoRenderer.js": +/*!*******************************************!*\ + !*** ./src/diagrams/info/infoRenderer.js ***! + \*******************************************/ +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return c})),n.d(t,"draw",(function(){return l}));var r=n(/*! d3 */"d3"),i=n(/*! ./infoDb */"./src/diagrams/info/infoDb.js"),o=n(/*! ./parser/info */"./src/diagrams/info/parser/info.jison"),s=n.n(o),a=n(/*! ../../logger */"./src/logger.js"),u={},c=function(e){Object.keys(e).forEach((function(t){u[t]=e[t]}))},l=function(e,t,n){try{var o=s.a.parser;o.yy=i.default,a.logger.debug("Renering info diagram\n"+e),o.parse(e),a.logger.debug("Parsed info diagram");var u=Object(r.select)("#"+t);u.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),u.attr("height",100),u.attr("width",400)}catch(e){a.logger.error("Error while rendering info diagram"),a.logger.error(e.message)}};t.default={setConf:c,draw:l}},"./src/diagrams/info/parser/info.jison": +/*!*********************************************!*\ + !*** ./src/diagrams/info/parser/info.jison ***! + \*********************************************/ +/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(e,t,n,r,i,o,s){switch(o.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(t,[2,3]),e(t,[2,4]),e(t,[2,5]),e(t,[2,6])],defaultActions:{4:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,c=0,l=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,k,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(k in D=[],s[C])this.terminals_[k]&&k>d&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/pie/parser/pie.jison": +/*!*******************************************!*\ + !*** ./src/diagrams/pie/parser/pie.jison ***! + \*******************************************/ +/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[6,9,10,12],n={trace:function(){},yy:{},symbols_:{error:2,start:3,pie:4,document:5,EOF:6,line:7,statement:8,NL:9,STR:10,VALUE:11,title:12,$accept:0,$end:1},terminals_:{2:"error",4:"pie",6:"EOF",9:"NL",10:"STR",11:"VALUE",12:"title"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 4:break;case 6:r.addSection(o[a-1],r.cleanupValue(o[a]));break;case 7:r.setTitle(o[a].substr(6)),this.$=o[a].substr(6)}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},e(t,[2,3]),e(t,[2,4]),e(t,[2,5]),{11:[1,10]},e(t,[2,7]),e(t,[2,6])],defaultActions:{4:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,c=0,l=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,k,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(k in D=[],s[C])this.terminals_[k]&&k>d&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:case 1:break;case 2:return 4;case 3:return 9;case 4:return"space";case 5:return 12;case 6:this.begin("string");break;case 7:this.popState();break;case 8:return"STR";case 9:return"VALUE";case 10:return 6}},rules:[/^(?:%%[^\n]*)/i,/^(?:\s+)/i,/^(?:pie\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:title\s[^#\n;]+)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{string:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,9,10],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/pie/pieDb.js": +/*!***********************************!*\ + !*** ./src/diagrams/pie/pieDb.js ***! + \***********************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ../../logger */"./src/logger.js"),i={},o="";t.default={addSection:function(e,t){void 0===i[e]&&(i[e]=t,r.logger.debug("Added new section :",e))},getSections:function(){return i},cleanupValue:function(e){return":"===e.substring(0,1)?(e=e.substring(1).trim(),Number(e.trim())):Number(e.trim())},clear:function(){i={},o=""},setTitle:function(e){o=e},getTitle:function(){return o}}},"./src/diagrams/pie/pieRenderer.js": +/*!*****************************************!*\ + !*** ./src/diagrams/pie/pieRenderer.js ***! + \*****************************************/ +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return l})),n.d(t,"draw",(function(){return d}));var r,i=n(/*! d3 */"d3"),o=n(/*! ./pieDb */"./src/diagrams/pie/pieDb.js"),s=n(/*! ./parser/pie */"./src/diagrams/pie/parser/pie.jison"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),c={},l=function(e){Object.keys(e).forEach((function(t){c[t]=e[t]}))},d=function(e,t){try{var n=a.a.parser;n.yy=o.default,u.logger.debug("Rendering info diagram\n"+e),n.yy.clear(),n.parse(e),u.logger.debug("Parsed info diagram");var s=document.getElementById(t);void 0===(r=s.parentElement.offsetWidth)&&(r=1200),void 0!==c.useWidth&&(r=c.useWidth),s.setAttribute("height","100%"),s.setAttribute("viewBox","0 0 "+r+" 450");var l=r,d=Math.min(l,450)/2-40,h=Object(i.select)("#"+t).append("svg").attr("width",l).attr("height",450).append("g").attr("transform","translate("+l/2+",225)"),f=o.default.getSections(),p=0;Object.keys(f).forEach((function(e){p+=f[e]})),u.logger.info(f);var g=Object(i.scaleOrdinal)().domain(f).range(i.schemeSet2),m=Object(i.pie)().value((function(e){return e.value}))(Object(i.entries)(f)),_=Object(i.arc)().innerRadius(0).outerRadius(d);h.selectAll("mySlices").data(m).enter().append("path").attr("d",_).attr("fill",(function(e){return g(e.data.key)})).attr("stroke","black").style("stroke-width","2px").style("opacity",.7),h.selectAll("mySlices").data(m).enter().append("text").text((function(e){return(e.data.value/p*100).toFixed(0)+"%"})).attr("transform",(function(e){return"translate("+_.centroid(e)+")"})).style("text-anchor","middle").attr("class","slice").style("font-size",17),h.append("text").text(n.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var y=h.selectAll(".legend").data(g.domain()).enter().append("g").attr("class","legend").attr("transform",(function(e,t){return"translate(216,"+(22*t-22*g.domain().length/2)+")"}));y.append("rect").attr("width",18).attr("height",18).style("fill",g).style("stroke",g),y.append("text").attr("x",22).attr("y",14).text((function(e){return e}))}catch(e){u.logger.error("Error while rendering info diagram"),u.logger.error(e.message)}};t.default={setConf:l,draw:d}},"./src/diagrams/sequence/parser/sequenceDiagram.jison": +/*!************************************************************!*\ + !*** ./src/diagrams/sequence/parser/sequenceDiagram.jison ***! + \************************************************************/ +/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,3],r=[1,5],i=[1,7],o=[2,5],s=[1,15],a=[1,17],u=[1,18],c=[1,20],l=[1,21],d=[1,22],h=[1,24],f=[1,25],p=[1,26],g=[1,27],m=[1,28],_=[1,29],y=[1,32],v=[1,33],b=[1,36],w=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],C=[1,44],S=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],x=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],k=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],L=[46,47,48],M=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],D={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,signal:20,autonumber:21,activate:22,deactivate:23,note_statement:24,title:25,text2:26,loop:27,end:28,rect:29,opt:30,alt:31,else_sections:32,par:33,par_sections:34,and:35,else:36,note:37,placement:38,over:39,actor_pair:40,spaceList:41,",":42,left_of:43,right_of:44,signaltype:45,"+":46,"-":47,ACTOR:48,SOLID_OPEN_ARROW:49,DOTTED_OPEN_ARROW:50,SOLID_ARROW:51,DOTTED_ARROW:52,SOLID_CROSS:53,DOTTED_CROSS:54,TXT:55,open_directive:56,type_directive:57,arg_directive:58,close_directive:59,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",21:"autonumber",22:"activate",23:"deactivate",25:"title",27:"loop",28:"end",29:"rect",30:"opt",31:"alt",33:"par",35:"and",36:"else",37:"note",39:"over",42:",",43:"left_of",44:"right_of",46:"+",47:"-",48:"ACTOR",49:"SOLID_OPEN_ARROW",50:"DOTTED_OPEN_ARROW",51:"SOLID_ARROW",52:"DOTTED_ARROW",53:"SOLID_CROSS",54:"DOTTED_CROSS",55:"TXT",56:"open_directive",57:"type_directive",58:"arg_directive",59:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 4:return r.apply(o[a]),o[a];case 5:this.$=[];break;case 6:o[a-1].push(o[a]),this.$=o[a-1];break;case 7:case 8:this.$=o[a];break;case 9:this.$=[];break;case 12:o[a-3].description=r.parseMessage(o[a-1]),this.$=o[a-3];break;case 13:this.$=o[a-1];break;case 15:r.enableSequenceNumbers();break;case 16:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[a-1]};break;case 17:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[a-1]};break;case 19:this.$=[{type:"setTitle",text:o[a-1]}];break;case 20:o[a-1].unshift({type:"loopStart",loopText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.LOOP_START}),o[a-1].push({type:"loopEnd",loopText:o[a-2],signalType:r.LINETYPE.LOOP_END}),this.$=o[a-1];break;case 21:o[a-1].unshift({type:"rectStart",color:r.parseMessage(o[a-2]),signalType:r.LINETYPE.RECT_START}),o[a-1].push({type:"rectEnd",color:r.parseMessage(o[a-2]),signalType:r.LINETYPE.RECT_END}),this.$=o[a-1];break;case 22:o[a-1].unshift({type:"optStart",optText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.OPT_START}),o[a-1].push({type:"optEnd",optText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.OPT_END}),this.$=o[a-1];break;case 23:o[a-1].unshift({type:"altStart",altText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.ALT_START}),o[a-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=o[a-1];break;case 24:o[a-1].unshift({type:"parStart",parText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.PAR_START}),o[a-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=o[a-1];break;case 27:this.$=o[a-3].concat([{type:"and",parText:r.parseMessage(o[a-1]),signalType:r.LINETYPE.PAR_AND},o[a]]);break;case 29:this.$=o[a-3].concat([{type:"else",altText:r.parseMessage(o[a-1]),signalType:r.LINETYPE.ALT_ELSE},o[a]]);break;case 30:this.$=[o[a-1],{type:"addNote",placement:o[a-2],actor:o[a-1].actor,text:o[a]}];break;case 31:o[a-2]=[].concat(o[a-1],o[a-1]).slice(0,2),o[a-2][0]=o[a-2][0].actor,o[a-2][1]=o[a-2][1].actor,this.$=[o[a-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:o[a-2].slice(0,2),text:o[a]}];break;case 34:this.$=[o[a-2],o[a]];break;case 35:this.$=o[a];break;case 36:this.$=r.PLACEMENT.LEFTOF;break;case 37:this.$=r.PLACEMENT.RIGHTOF;break;case 38:this.$=[o[a-4],o[a-1],{type:"addMessage",from:o[a-4].actor,to:o[a-1].actor,signalType:o[a-3],msg:o[a]},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[a-1]}];break;case 39:this.$=[o[a-4],o[a-1],{type:"addMessage",from:o[a-4].actor,to:o[a-1].actor,signalType:o[a-3],msg:o[a]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[a-4]}];break;case 40:this.$=[o[a-3],o[a-1],{type:"addMessage",from:o[a-3].actor,to:o[a-1].actor,signalType:o[a-2],msg:o[a]}];break;case 41:this.$={type:"addActor",actor:o[a]};break;case 42:this.$=r.LINETYPE.SOLID_OPEN;break;case 43:this.$=r.LINETYPE.DOTTED_OPEN;break;case 44:this.$=r.LINETYPE.SOLID;break;case 45:this.$=r.LINETYPE.DOTTED;break;case 46:this.$=r.LINETYPE.SOLID_CROSS;break;case 47:this.$=r.LINETYPE.DOTTED_CROSS;break;case 48:this.$=r.parseMessage(o[a].trim().substring(1));break;case 49:r.parseDirective("%%{","open_directive");break;case 50:r.parseDirective(o[a],"type_directive");break;case 51:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 52:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:t,5:n,6:4,7:r,11:6,56:i},{1:[3]},{3:8,4:t,5:n,6:4,7:r,11:6,56:i},{3:9,4:t,5:n,6:4,7:r,11:6,56:i},{3:10,4:t,5:n,6:4,7:r,11:6,56:i},e([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],o,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:c,22:l,23:d,24:23,25:h,27:f,29:p,30:g,31:m,33:_,37:y,48:v,56:i},{13:34,14:[1,35],59:b},e([14,59],[2,50]),e(w,[2,6]),{6:30,10:37,11:6,16:u,17:31,20:19,21:c,22:l,23:d,24:23,25:h,27:f,29:p,30:g,31:m,33:_,37:y,48:v,56:i},e(w,[2,8]),e(w,[2,9]),{17:38,48:v},{5:[1,39]},e(w,[2,15]),{17:40,48:v},{17:41,48:v},{5:[1,42]},{26:43,55:C},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},e(w,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},e([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},e(w,[2,7]),{5:[1,65],18:[1,64]},e(w,[2,14]),{5:[1,66]},{5:[1,67]},e(w,[2,18]),{5:[1,68]},{5:[2,48]},e(S,o,{8:69}),e(S,o,{8:70}),e(S,o,{8:71}),e(x,o,{32:72,8:73}),e(k,o,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:v},e(L,[2,42]),e(L,[2,43]),e(L,[2,44]),e(L,[2,45]),e(L,[2,46]),e(L,[2,47]),{17:79,48:v},{17:81,40:80,48:v},{48:[2,36]},{48:[2,37]},e(M,[2,10]),{13:82,59:b},{59:[2,51]},{19:[1,83]},e(w,[2,13]),e(w,[2,16]),e(w,[2,17]),e(w,[2,19]),{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:c,22:l,23:d,24:23,25:h,27:f,28:[1,84],29:p,30:g,31:m,33:_,37:y,48:v,56:i},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:c,22:l,23:d,24:23,25:h,27:f,28:[1,85],29:p,30:g,31:m,33:_,37:y,48:v,56:i},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:c,22:l,23:d,24:23,25:h,27:f,28:[1,86],29:p,30:g,31:m,33:_,37:y,48:v,56:i},{28:[1,87]},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:c,22:l,23:d,24:23,25:h,27:f,28:[2,28],29:p,30:g,31:m,33:_,36:[1,88],37:y,48:v,56:i},{28:[1,89]},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:c,22:l,23:d,24:23,25:h,27:f,28:[2,26],29:p,30:g,31:m,33:_,35:[1,90],37:y,48:v,56:i},{17:91,48:v},{17:92,48:v},{26:93,55:C},{26:94,55:C},{26:95,55:C},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},e(w,[2,20]),e(w,[2,21]),e(w,[2,22]),e(w,[2,23]),{19:[1,99]},e(w,[2,24]),{19:[1,100]},{26:101,55:C},{26:102,55:C},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:v},e(M,[2,11]),e(w,[2,12]),e(x,o,{8:73,32:104}),e(k,o,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],defaultActions:{7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,c=0,l=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,k,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(k in D=[],s[C])this.terminals_[k]&&k>d&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},E={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("OPEN_DIRECTIVE"),56;case 1:return this.begin("TYPE_DIRECTIVE"),57;case 2:return this.popState(),this.begin("ARG_DIRECTIVE"),14;case 3:return this.popState(),this.popState(),59;case 4:return 58;case 5:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),48;case 13:return this.popState(),this.popState(),this.begin("LINE"),18;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),27;case 16:return this.begin("LINE"),29;case 17:return this.begin("LINE"),30;case 18:return this.begin("LINE"),31;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),33;case 21:return this.begin("LINE"),35;case 22:return this.popState(),19;case 23:return 28;case 24:return 43;case 25:return 44;case 26:return 39;case 27:return 37;case 28:return this.begin("ID"),22;case 29:return this.begin("ID"),23;case 30:return 25;case 31:return 7;case 32:return 21;case 33:return 42;case 34:return 5;case 35:return t.yytext=t.yytext.trim(),48;case 36:return 51;case 37:return 52;case 38:return 49;case 39:return 50;case 40:return 53;case 41:return 54;case 42:return 55;case 43:return 46;case 44:return 47;case 45:return 5;case 46:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[7,8,22],inclusive:!1},ARG_DIRECTIVE:{rules:[3,4,8],inclusive:!1},TYPE_DIRECTIVE:{rules:[2,3,8],inclusive:!1},OPEN_DIRECTIVE:{rules:[1,8],inclusive:!1},ALIAS:{rules:[7,8,13,14],inclusive:!1},ID:{rules:[7,8,12],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};function T(){this.yy={}}return D.lexer=E,T.prototype=D,D.Parser=T,new T}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/sequence/sequenceDb.js": +/*!*********************************************!*\ + !*** ./src/diagrams/sequence/sequenceDb.js ***! + \*********************************************/ +/*! exports provided: parseDirective, addActor, addMessage, addSignal, getMessages, getActors, getActor, getActorKeys, getTitle, getTitleWrapped, enableSequenceNumbers, showSequenceNumbers, setWrap, autoWrap, clear, parseMessage, LINETYPE, ARROWTYPE, PLACEMENT, addNote, setTitle, apply, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return g})),n.d(t,"addActor",(function(){return m})),n.d(t,"addMessage",(function(){return y})),n.d(t,"addSignal",(function(){return v})),n.d(t,"getMessages",(function(){return b})),n.d(t,"getActors",(function(){return w})),n.d(t,"getActor",(function(){return C})),n.d(t,"getActorKeys",(function(){return S})),n.d(t,"getTitle",(function(){return x})),n.d(t,"getTitleWrapped",(function(){return k})),n.d(t,"enableSequenceNumbers",(function(){return L})),n.d(t,"showSequenceNumbers",(function(){return M})),n.d(t,"setWrap",(function(){return D})),n.d(t,"autoWrap",(function(){return E})),n.d(t,"clear",(function(){return T})),n.d(t,"parseMessage",(function(){return N})),n.d(t,"LINETYPE",(function(){return O})),n.d(t,"ARROWTYPE",(function(){return A})),n.d(t,"PLACEMENT",(function(){return I})),n.d(t,"addNote",(function(){return P})),n.d(t,"setTitle",(function(){return R})),n.d(t,"apply",(function(){return F}));var r=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),i=n(/*! ../../config */"./src/config.js"),o=n(/*! ../common/common */"./src/diagrams/common/common.js"),s=n(/*! ../../logger */"./src/logger.js"),a=void 0,u={},c=[],l=[],d="",h=!1,f=!1,p=!1,g=function(e,t,n){r.default.parseDirective(e,t,n)},m=function(e,t,n){var r=u[e];r&&t===r.name&&null==n||(null!=n&&null!=n.text||(n={text:t,wrap:null}),u[e]={name:t,description:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,prevActor:a},a&&u[a]&&(u[a].nextActor=e),a=e)},_=function(e){var t,n=0;for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},r=arguments.length>3?arguments[3]:void 0;if(r===O.ACTIVE_END){var i=_(e.actor);if(i<1){var o=new Error("Trying to inactivate an inactive participant ("+e.actor+")");throw o.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},o}}return c.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,type:r}),!0},b=function(){return c},w=function(){return u},C=function(e){return u[e]},S=function(){return Object.keys(u)},x=function(){return d},k=function(){return h},L=function(){f=!0},M=function(){return f},D=function(e){p=e},E=function(){return p},T=function(){u={},c=[]},N=function(e){var t=e.trim(),n={text:t.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null===t.match(/^[:]?(?:no)?wrap:/)?o.default.hasBreaks(t)||E():null!==t.match(/^[:]?wrap:/)||null===t.match(/^[:]?nowrap:/)&&E()};return s.logger.debug("parseMessage:",n),n},O={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23},A={FILLED:0,OPEN:1},I={LEFTOF:0,RIGHTOF:1,OVER:2},P=function(e,t,n){var r={actor:e,placement:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap},i=[].concat(e,e);l.push(r),c.push({from:i[0],to:i[1],message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,type:O.NOTE,placement:t})},R=function(e){d=e.text,h=void 0===e.wrap&&E()||!!e.wrap},F=function e(t){if(t instanceof Array)t.forEach((function(t){e(t)}));else switch(t.type){case"addActor":m(t.actor,t.actor,t.description);break;case"activeStart":case"activeEnd":v(t.actor,void 0,void 0,t.signalType);break;case"addNote":P(t.actor,t.placement,t.text);break;case"addMessage":v(t.from,t.to,t.msg,t.signalType);break;case"loopStart":v(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":v(void 0,void 0,void 0,t.signalType);break;case"rectStart":v(void 0,void 0,t.color,t.signalType);break;case"rectEnd":v(void 0,void 0,void 0,t.signalType);break;case"optStart":v(void 0,void 0,t.optText,t.signalType);break;case"optEnd":v(void 0,void 0,void 0,t.signalType);break;case"altStart":case"else":v(void 0,void 0,t.altText,t.signalType);break;case"altEnd":v(void 0,void 0,void 0,t.signalType);break;case"setTitle":R(t.text);break;case"parStart":case"and":v(void 0,void 0,t.parText,t.signalType);break;case"parEnd":v(void 0,void 0,void 0,t.signalType)}};t.default={addActor:m,addMessage:y,addSignal:v,autoWrap:E,setWrap:D,enableSequenceNumbers:L,showSequenceNumbers:M,getMessages:b,getActors:w,getActor:C,getActorKeys:S,getTitle:x,parseDirective:g,getConfig:function(){return i.default.getConfig().sequence},getTitleWrapped:k,clear:T,parseMessage:N,LINETYPE:O,ARROWTYPE:A,PLACEMENT:I,addNote:P,setTitle:R,apply:F}},"./src/diagrams/sequence/sequenceRenderer.js": +/*!***************************************************!*\ + !*** ./src/diagrams/sequence/sequenceRenderer.js ***! + \***************************************************/ +/*! exports provided: bounds, drawActors, setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"bounds",(function(){return d})),n.d(t,"drawActors",(function(){return h})),n.d(t,"setConf",(function(){return f})),n.d(t,"draw",(function(){return _}));var r=n(/*! d3 */"d3"),i=n(/*! ./svgDraw */"./src/diagrams/sequence/svgDraw.js"),o=n(/*! ../../logger */"./src/logger.js"),s=n(/*! ./parser/sequenceDiagram */"./src/diagrams/sequence/parser/sequenceDiagram.jison"),a=n(/*! ../common/common */"./src/diagrams/common/common.js"),u=n(/*! ./sequenceDb */"./src/diagrams/sequence/sequenceDb.js"),c=n(/*! ../../utils */"./src/utils.js");s.parser.yy=u.default;var l={},d={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((function(e){return e.height||0})))+(0===this.loops.length?0:this.loops.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))+(0===this.messages.length?0:this.messages.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))+(0===this.notes.length?0:this.notes.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(e){this.actors.push(e)},addLoop:function(e){this.loops.push(e)},addMessage:function(e){this.messages.push(e)},addNote:function(e){this.notes.push(e)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,f(s.parser.yy.getConfig())},updateVal:function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},updateBounds:function(e,t,n,r){var i=this,o=0;function s(s){return function(a){o++;var u=i.sequenceItems.length-o+1;i.updateVal(a,"starty",t-u*l.boxMargin,Math.min),i.updateVal(a,"stopy",r+u*l.boxMargin,Math.max),i.updateVal(d.data,"startx",e-u*l.boxMargin,Math.min),i.updateVal(d.data,"stopx",n+u*l.boxMargin,Math.max),"activation"!==s&&(i.updateVal(a,"startx",e-u*l.boxMargin,Math.min),i.updateVal(a,"stopx",n+u*l.boxMargin,Math.max),i.updateVal(d.data,"starty",t-u*l.boxMargin,Math.min),i.updateVal(d.data,"stopy",r+u*l.boxMargin,Math.max))}}this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},insert:function(e,t,n,r){var i=Math.min(e,n),o=Math.max(e,n),s=Math.min(t,r),a=Math.max(t,r);this.updateVal(d.data,"startx",i,Math.min),this.updateVal(d.data,"starty",s,Math.min),this.updateVal(d.data,"stopx",o,Math.max),this.updateVal(d.data,"stopy",a,Math.max),this.updateBounds(i,s,o,a)},newActivation:function(e,t,n){var r=n[e.from.actor],o=p(e.from.actor).length||0,s=r.x+r.width/2+(o-1)*l.activationWidth/2;this.activations.push({startx:s,starty:this.verticalPos+2,stopx:s+l.activationWidth,stopy:void 0,actor:e.from.actor,anchored:i.default.anchorElement(t)})},endActivation:function(e){var t=this.activations.map((function(e){return e.actor})).lastIndexOf(e.from.actor);return this.activations.splice(t,1)[0]},createLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},t=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},newLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},t=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(e,t))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(e){var t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:d.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},h=function(e,t,n,r){for(var o=0,s=0,a=0;at&&(r.starty=t-6,t+=12),i.default.drawActivation(n,r,t,l,p(e.from.actor).length),d.insert(r.startx,t-10,r.stopx,t)}(e,d.getVerticalPos());break;case s.parser.yy.LINETYPE.LOOP_START:m(S,e,l.boxMargin,l.boxMargin+l.boxTextMargin,(function(e){return d.newLoop(e)}));break;case s.parser.yy.LINETYPE.LOOP_END:t=d.endLoop(),i.default.drawLoop(n,t,"loop",l),d.bumpVerticalPos(t.stopy-d.getVerticalPos()),d.models.addLoop(t);break;case s.parser.yy.LINETYPE.RECT_START:m(S,e,l.boxMargin,l.boxMargin,(function(e){return d.newLoop(void 0,e.message)}));break;case s.parser.yy.LINETYPE.RECT_END:t=d.endLoop(),i.default.drawBackgroundRect(n,t),d.models.addLoop(t),d.bumpVerticalPos(t.stopy-d.getVerticalPos());break;case s.parser.yy.LINETYPE.OPT_START:m(S,e,l.boxMargin,l.boxMargin+l.boxTextMargin,(function(e){return d.newLoop(e)}));break;case s.parser.yy.LINETYPE.OPT_END:t=d.endLoop(),i.default.drawLoop(n,t,"opt",l),d.bumpVerticalPos(t.stopy-d.getVerticalPos()),d.models.addLoop(t);break;case s.parser.yy.LINETYPE.ALT_START:m(S,e,l.boxMargin,l.boxMargin+l.boxTextMargin,(function(e){return d.newLoop(e)}));break;case s.parser.yy.LINETYPE.ALT_ELSE:m(S,e,l.boxMargin+l.boxTextMargin,l.boxMargin,(function(e){return d.addSectionToLoop(e)}));break;case s.parser.yy.LINETYPE.ALT_END:t=d.endLoop(),i.default.drawLoop(n,t,"alt",l),d.bumpVerticalPos(t.stopy-d.getVerticalPos()),d.models.addLoop(t);break;case s.parser.yy.LINETYPE.PAR_START:m(S,e,l.boxMargin,l.boxMargin+l.boxTextMargin,(function(e){return d.newLoop(e)}));break;case s.parser.yy.LINETYPE.PAR_AND:m(S,e,l.boxMargin+l.boxTextMargin,l.boxMargin,(function(e){return d.addSectionToLoop(e)}));break;case s.parser.yy.LINETYPE.PAR_END:t=d.endLoop(),i.default.drawLoop(n,t,"par",l),d.bumpVerticalPos(t.stopy-d.getVerticalPos()),d.models.addLoop(t);break;default:try{(h=e.msgModel).starty=d.getVerticalPos(),h.sequenceIndex=x,function(e,t){d.bumpVerticalPos(10);var n=t.startx,r=t.stopx,o=t.starty,h=t.message,f=t.type,p=t.sequenceIndex,g=t.wrap,m=a.default.splitBreaks(h).length,_=c.default.calculateTextDimensions(h,l.messageFont()),y=_.height/m;t.height+=y,d.bumpVerticalPos(y);var v=i.default.getTextObj();v.x=n,v.y=o+10,v.width=r-n,v.class="messageText",v.dy="1em",v.text=h,v.fontFamily=l.messageFontFamily,v.fontSize=l.messageFontSize,v.fontWeight=l.messageFontWeight,v.anchor=l.messageAlign,v.valign=l.messageAlign,v.textMargin=l.wrapPadding,v.tspan=!1,v.wrap=g,Object(i.drawText)(e,v);var b,w,C=_.height-10,S=_.width;if(n===r){w=d.getVerticalPos()+C,l.rightAngles?b=e.append("path").attr("d","M ".concat(n,",").concat(w," H ").concat(n+Math.max(l.width/2,S/2)," V ").concat(w+25," H ").concat(n)):(C+=l.boxMargin,w=d.getVerticalPos()+C,b=e.append("path").attr("d","M "+n+","+w+" C "+(n+60)+","+(w-10)+" "+(n+60)+","+(w+30)+" "+n+","+(w+20))),C+=30;var x=Math.max(S/2,l.width/2);d.insert(n-x,d.getVerticalPos()-10+C,r+x,d.getVerticalPos()+30+C)}else C+=l.boxMargin,w=d.getVerticalPos()+C,(b=e.append("line")).attr("x1",n),b.attr("y1",w),b.attr("x2",r),b.attr("y2",w),d.insert(n,w-10,r,w);f===s.parser.yy.LINETYPE.DOTTED||f===s.parser.yy.LINETYPE.DOTTED_CROSS||f===s.parser.yy.LINETYPE.DOTTED_OPEN?(b.style("stroke-dasharray","3, 3"),b.attr("class","messageLine1")):b.attr("class","messageLine0");var k="";l.arrowMarkerAbsolute&&(k=(k=(k=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),b.attr("stroke-width",2),b.attr("stroke","none"),b.style("fill","none"),f!==s.parser.yy.LINETYPE.SOLID&&f!==s.parser.yy.LINETYPE.DOTTED||b.attr("marker-end","url("+k+"#arrowhead)"),f!==s.parser.yy.LINETYPE.SOLID_CROSS&&f!==s.parser.yy.LINETYPE.DOTTED_CROSS||b.attr("marker-end","url("+k+"#crosshead)"),(u.default.showSequenceNumbers()||l.showSequenceNumbers)&&(b.attr("marker-start","url("+k+"#sequencenumber)"),e.append("text").attr("x",n).attr("y",w+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(p)),d.bumpVerticalPos(C),t.height+=C,t.stopy=t.starty+t.height,d.insert(t.fromBounds,t.starty,t.toBounds,t.stopy)}(n,h),d.models.addMessage(h)}catch(e){o.logger.error("error while drawing message",e)}}[s.parser.yy.LINETYPE.SOLID_OPEN,s.parser.yy.LINETYPE.DOTTED_OPEN,s.parser.yy.LINETYPE.SOLID,s.parser.yy.LINETYPE.DOTTED,s.parser.yy.LINETYPE.SOLID_CROSS,s.parser.yy.LINETYPE.DOTTED_CROSS].includes(e.type)&&x++})),l.mirrorActors&&(d.bumpVerticalPos(2*l.boxMargin),h(n,f,g,d.getVerticalPos()));var k=d.getBounds().bounds;o.logger.debug("For line height fix Querying: #"+t+" .actor-line"),Object(r.selectAll)("#"+t+" .actor-line").attr("y2",k.stopy);var L=k.stopy-k.starty+2*l.diagramMarginY;l.mirrorActors&&(L=L-l.boxMargin+l.bottomMarginAdj);var M=k.stopx-k.startx+2*l.diagramMarginX;w&&n.append("text").text(w).attr("x",(k.stopx-k.startx)/2-2*l.diagramMarginX).attr("y",-25),l.useMaxWidth?(n.attr("height","100%"),n.attr("width","100%"),n.attr("style","max-width:"+M+"px;")):(n.attr("height",L),n.attr("width",M));var D=w?40:0;n.attr("viewBox",k.startx-l.diagramMarginX+" -"+(l.diagramMarginY+D)+" "+M+" "+(L+D)),o.logger.debug("models:",d.models)},y=function(e,t){var n={};return t.forEach((function(t){if(e[t.to]&&e[t.from]){var r=e[t.to];if(t.placement===s.parser.yy.PLACEMENT.LEFTOF&&!r.prevActor)return;if(t.placement===s.parser.yy.PLACEMENT.RIGHTOF&&!r.nextActor)return;var i=void 0!==t.placement,o=!i,a=i?l.noteFont():l.messageFont(),u=t.wrap?c.default.wrapLabel(t.message,l.width-2*l.wrapPadding,a):t.message,d=c.default.calculateTextDimensions(u,a).width+2*l.wrapPadding;o&&t.from===r.nextActor?n[t.to]=Math.max(n[t.to]||0,d):o&&t.from===r.prevActor?n[t.from]=Math.max(n[t.from]||0,d):o&&t.from===t.to?(n[t.from]=Math.max(n[t.from]||0,d/2),n[t.to]=Math.max(n[t.to]||0,d/2)):t.placement===s.parser.yy.PLACEMENT.RIGHTOF?n[t.from]=Math.max(n[t.from]||0,d):t.placement===s.parser.yy.PLACEMENT.LEFTOF?n[r.prevActor]=Math.max(n[r.prevActor]||0,d):t.placement===s.parser.yy.PLACEMENT.OVER&&(r.prevActor&&(n[r.prevActor]=Math.max(n[r.prevActor]||0,d/2)),r.nextActor&&(n[t.from]=Math.max(n[t.from]||0,d/2)))}})),o.logger.debug("maxMessageWidthPerActor:",n),n},v=function(e,t){var n=0;for(var r in Object.keys(e).forEach((function(t){var r=e[t];r.wrap&&(r.description=c.default.wrapLabel(r.description,l.width-2*l.wrapPadding,l.actorFont()));var i=c.default.calculateTextDimensions(r.description,l.actorFont());r.width=r.wrap?l.width:Math.max(l.width,i.width+2*l.wrapPadding),r.height=r.wrap?Math.max(i.height,l.height):l.height,n=Math.max(n,r.height)})),t){var i=e[r];if(i){var o=e[i.nextActor];if(o){var s=t[r]+l.actorMargin-i.width/2-o.width/2;i.margin=Math.max(s,l.actorMargin)}}}return Math.max(n,l.height)},b=function(e,t){var n,r,i,a={},u=[];return e.forEach((function(e){switch(e.id=c.default.random({length:10}),e.type){case s.parser.yy.LINETYPE.LOOP_START:case s.parser.yy.LINETYPE.ALT_START:case s.parser.yy.LINETYPE.OPT_START:case s.parser.yy.LINETYPE.PAR_START:u.push({id:e.id,msg:e.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.parser.yy.LINETYPE.ALT_ELSE:case s.parser.yy.LINETYPE.PAR_AND:e.message&&(n=u.pop(),a[n.id]=n,a[e.id]=n,u.push(n));break;case s.parser.yy.LINETYPE.LOOP_END:case s.parser.yy.LINETYPE.ALT_END:case s.parser.yy.LINETYPE.OPT_END:case s.parser.yy.LINETYPE.PAR_END:n=u.pop(),a[n.id]=n;break;case s.parser.yy.LINETYPE.ACTIVE_START:var h=t[e.from?e.from.actor:e.to.actor],f=p(e.from?e.from.actor:e.to.actor).length,m=h.x+h.width/2+(f-1)*l.activationWidth/2,_={startx:m,stopx:m+l.activationWidth,actor:e.from.actor,enabled:!0};d.activations.push(_);break;case s.parser.yy.LINETYPE.ACTIVE_END:var y=d.activations.map((function(e){return e.actor})).lastIndexOf(e.from.actor);delete d.activations.splice(y,1)[0]}void 0!==e.placement?(r=function(e,t){var n=t[e.from].x,r=t[e.to].x,i=e.wrap&&e.message,a=c.default.calculateTextDimensions(i?c.default.wrapLabel(e.message,l.width,l.noteFont()):e.message,l.noteFont()),u={width:i?l.width:Math.max(l.width,a.width+2*l.noteMargin),height:0,startx:t[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===s.parser.yy.PLACEMENT.RIGHTOF?(u.width=i?Math.max(l.width,a.width):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*l.noteMargin),u.startx=n+(t[e.from].width+l.actorMargin)/2):e.placement===s.parser.yy.PLACEMENT.LEFTOF?(u.width=i?Math.max(l.width,a.width+2*l.noteMargin):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*l.noteMargin),u.startx=n-u.width+(t[e.from].width-l.actorMargin)/2):e.to===e.from?(a=c.default.calculateTextDimensions(i?c.default.wrapLabel(e.message,Math.max(l.width,t[e.from].width),l.noteFont()):e.message,l.noteFont()),u.width=i?Math.max(l.width,t[e.from].width):Math.max(t[e.from].width,l.width,a.width+2*l.noteMargin),u.startx=n+(t[e.from].width-u.width)/2):(u.width=Math.abs(n+t[e.from].width/2-(r+t[e.to].width/2))+l.actorMargin,u.startx=n0&&u.forEach((function(r){if(n=r,i.startx===i.stopx){var o=t[e.from],s=t[e.to];n.from=Math.min(o.x-i.width/2,o.x-o.width/2,n.from),n.to=Math.max(s.x+i.width/2,s.x+o.width/2,n.to),n.width=Math.max(n.width,Math.abs(n.to-n.from))-l.labelBoxWidth}else n.from=Math.min(i.startx,n.from),n.to=Math.max(i.stopx,n.to),n.width=Math.max(n.width,i.width)-l.labelBoxWidth})))})),d.activations=[],o.logger.debug("Loop type widths:",a),a};t.default={bounds:d,drawActors:h,setConf:f,draw:_}},"./src/diagrams/sequence/svgDraw.js": +/*!******************************************!*\ + !*** ./src/diagrams/sequence/svgDraw.js ***! + \******************************************/ +/*! exports provided: drawRect, drawText, drawLabel, drawActor, anchorElement, drawActivation, drawLoop, drawBackgroundRect, insertArrowHead, insertSequenceNumber, insertArrowCrossHead, getTextObj, getNoteRect, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawRect",(function(){return i})),n.d(t,"drawText",(function(){return o})),n.d(t,"drawLabel",(function(){return s})),n.d(t,"drawActor",(function(){return u})),n.d(t,"anchorElement",(function(){return c})),n.d(t,"drawActivation",(function(){return l})),n.d(t,"drawLoop",(function(){return d})),n.d(t,"drawBackgroundRect",(function(){return h})),n.d(t,"insertArrowHead",(function(){return f})),n.d(t,"insertSequenceNumber",(function(){return p})),n.d(t,"insertArrowCrossHead",(function(){return g})),n.d(t,"getTextObj",(function(){return m})),n.d(t,"getNoteRect",(function(){return _}));var r=n(/*! ../common/common */"./src/diagrams/common/common.js"),i=function(e,t){var n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},o=function(e,t){var n=0,i=0,o=t.wrap?t.text.split(r.default.lineBreakRegex):[t.text.replace(r.default.lineBreakRegex," ")],s=[],a=0,u=function(){return t.y};if(void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0)switch(t.valign){case"top":case"start":u=function(){return Math.round(t.y+t.textMargin)};break;case"middle":case"center":u=function(){return Math.round(t.y+(n+i+t.textMargin)/2)};break;case"bottom":case"end":u=function(){return Math.round(t.y+(n+i+2*t.textMargin)-t.textMargin)}}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="text-after-edge",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="text-before-edge",t.alignmentBaseline="middle"}for(var c=0;c0&&(i+=(d._groups||d)[0][0].getBBox().height,n=i),s.push(d)}return s},s=function(e,t){var n,r,i,s,a,u=e.append("polygon");return u.attr("points",(n=t.x,r=t.y,i=t.width,s=t.height,n+","+r+" "+(n+i)+","+r+" "+(n+i)+","+(r+s-(a=7))+" "+(n+i-1.2*a)+","+(r+s)+" "+n+","+(r+s))),u.attr("class","labelBox"),t.y=t.y+t.height/2,o(e,t),u},a=-1,u=function(e,t,n){var r=t.x+t.width/2,o=e.append("g");0===t.y&&(a++,o.append("line").attr("id","actor"+a).attr("x1",r).attr("y1",5).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var s=_();s.x=t.x,s.y=t.y,s.fill="#eaeaea",s.width=t.width,s.height=t.height,s.class="actor",s.rx=3,s.ry=3,i(o,s),y(n)(t.description,o,s.x,s.y,s.width,s.height,{class:"actor"},n)},c=function(e){return e.append("g")},l=function(e,t,n,r,o){var s=_(),a=t.anchored;s.x=t.startx,s.y=t.starty,s.class="activation"+o%3,s.width=t.stopx-t.startx,s.height=n-t.starty,i(a,s)},d=function(e,t,n,r){var i=r.boxMargin,a=r.boxTextMargin,u=r.labelBoxHeight,c=r.labelBoxWidth,l=r.messageFontFamily,d=r.messageFontSize,h=r.messageFontWeight,f=e.append("g"),p=function(e,t,n,r){return f.append("line").attr("x1",e).attr("y1",t).attr("x2",n).attr("y2",r).attr("class","loopLine")};p(t.startx,t.starty,t.stopx,t.starty),p(t.stopx,t.starty,t.stopx,t.stopy),p(t.startx,t.stopy,t.stopx,t.stopy),p(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach((function(e){p(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")}));var g=m();g.text=n,g.x=t.startx,g.y=t.starty,g.fontFamily=l,g.fontSize=d,g.fontWeight=h,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=c||50,g.height=u||20,g.textMargin=a,g.class="labelText",s(f,g),(g=m()).text=t.title,g.x=t.startx+c/2+(t.stopx-t.startx)/2,g.y=t.starty+i+a,g.anchor="middle",g.valign="middle",g.textMargin=a,g.class="loopText",g.fontFamily=l,g.fontSize=d,g.fontWeight=h,g.wrap=!0;var _=o(f,g);return void 0!==t.sectionTitles&&t.sectionTitles.forEach((function(e,n){if(e.message){g.text=e.message,g.x=t.startx+(t.stopx-t.startx)/2,g.y=t.sections[n].y+i+a,g.class="loopText",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=l,g.fontSize=d,g.fontWeight=h,g.wrap=t.wrap,_=o(f,g);var r=Math.round(_.map((function(e){return(e._groups||e)[0][0].getBBox().height})).reduce((function(e,t){return e+t})));t.sections[n].height+=r-(i+a)}})),t.height=Math.round(t.stopy-t.starty),f},h=function(e,t){i(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},f=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},p=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},g=function(e){var t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},m=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},_=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},y=function(){function e(e,t,n,r,o,s,a){i(t.append("text").attr("x",n+o/2).attr("y",r+s/2+5).style("text-anchor","middle").text(e),a)}function t(e,t,n,o,s,a,u,c){for(var l=c.actorFontSize,d=c.actorFontFamily,h=c.actorFontWeight,f=e.split(r.default.lineBreakRegex),p=0;pd&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},w={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 5;case 1:case 2:case 3:case 4:break;case 5:return this.pushState("SCALE"),14;case 6:return 15;case 7:this.popState();break;case 8:this.pushState("STATE");break;case 9:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),22;case 10:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),23;case 11:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),22;case 12:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),23;case 13:this.begin("STATE_STRING");break;case 14:return this.popState(),this.pushState("STATE_ID"),"AS";case 15:return this.popState(),"ID";case 16:this.popState();break;case 17:return"STATE_DESCR";case 18:return 16;case 19:this.popState();break;case 20:return this.popState(),this.pushState("struct"),17;case 21:return this.popState(),18;case 22:break;case 23:return this.begin("NOTE"),25;case 24:return this.popState(),this.pushState("NOTE_ID"),29;case 25:return this.popState(),this.pushState("NOTE_ID"),30;case 26:this.popState(),this.pushState("FLOATING_NOTE");break;case 27:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 28:break;case 29:return"NOTE_TEXT";case 30:return this.popState(),"ID";case 31:return this.popState(),this.pushState("NOTE_TEXT"),21;case 32:return this.popState(),t.yytext=t.yytext.substr(2).trim(),27;case 33:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),27;case 34:case 35:return 6;case 36:return 13;case 37:return 28;case 38:return 21;case 39:return t.yytext=t.yytext.trim(),11;case 40:return 12;case 41:return 24;case 42:return 5;case 43:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:\s*[^:;]+end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[2,3],inclusive:!1},struct:{rules:[2,3,8,21,22,23,37,38,39,40,41],inclusive:!1},FLOATING_NOTE_ID:{rules:[30],inclusive:!1},FLOATING_NOTE:{rules:[27,28,29],inclusive:!1},NOTE_TEXT:{rules:[32,33],inclusive:!1},NOTE_ID:{rules:[31],inclusive:!1},NOTE:{rules:[24,25,26],inclusive:!1},SCALE:{rules:[6,7],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[15],inclusive:!1},STATE_STRING:{rules:[16,17],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[2,3,9,10,11,12,13,14,18,19,20],inclusive:!1},ID:{rules:[2,3],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],inclusive:!0}}};function C(){this.yy={}}return b.lexer=w,C.prototype=b,b.Parser=C,new C}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/state/shapes.js": +/*!**************************************!*\ + !*** ./src/diagrams/state/shapes.js ***! + \**************************************/ +/*! exports provided: drawStartState, drawDivider, drawSimpleState, drawDescrState, addTitleAndBox, drawText, drawNote, drawState, drawEdge */function(e,t,n){"use strict";n.r(t),n.d(t,"drawStartState",(function(){return l})),n.d(t,"drawDivider",(function(){return d})),n.d(t,"drawSimpleState",(function(){return h})),n.d(t,"drawDescrState",(function(){return f})),n.d(t,"addTitleAndBox",(function(){return p})),n.d(t,"drawText",(function(){return g})),n.d(t,"drawNote",(function(){return m})),n.d(t,"drawState",(function(){return _})),n.d(t,"drawEdge",(function(){return v}));var r=n(/*! d3 */"d3"),i=n(/*! ./id-cache.js */"./src/diagrams/state/id-cache.js"),o=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),s=n(/*! ../../utils */"./src/utils.js"),a=n(/*! ../common/common */"./src/diagrams/common/common.js"),u=n(/*! ../../config */"./src/config.js"),c=n(/*! ../../logger */"./src/logger.js"),l=function(e){return e.append("circle").style("stroke","black").style("fill","black").attr("r",Object(u.getConfig)().state.sizeUnit).attr("cx",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit).attr("cy",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit)},d=function(e){return e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Object(u.getConfig)().state.textHeight).attr("class","divider").attr("x2",2*Object(u.getConfig)().state.textHeight).attr("y1",0).attr("y2",0)},h=function(e,t){var n=e.append("text").attr("x",2*Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.textHeight+2*Object(u.getConfig)().state.padding).attr("font-size",Object(u.getConfig)().state.fontSize).attr("class","state-title").text(t.id),r=n.node().getBBox();return e.insert("rect",":first-child").attr("x",Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.padding).attr("width",r.width+2*Object(u.getConfig)().state.padding).attr("height",r.height+2*Object(u.getConfig)().state.padding).attr("rx",Object(u.getConfig)().state.radius),n},f=function(e,t){var n=e.append("text").attr("x",2*Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.textHeight+1.3*Object(u.getConfig)().state.padding).attr("font-size",Object(u.getConfig)().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),r=n.height,i=e.append("text").attr("x",Object(u.getConfig)().state.padding).attr("y",r+.4*Object(u.getConfig)().state.padding+Object(u.getConfig)().state.dividerMargin+Object(u.getConfig)().state.textHeight).attr("class","state-description"),o=!0,s=!0;t.descriptions.forEach((function(e){o||(function(e,t,n){var r=e.append("tspan").attr("x",2*Object(u.getConfig)().state.padding).text(t);n||r.attr("dy",Object(u.getConfig)().state.textHeight)}(i,e,s),s=!1),o=!1}));var a=e.append("line").attr("x1",Object(u.getConfig)().state.padding).attr("y1",Object(u.getConfig)().state.padding+r+Object(u.getConfig)().state.dividerMargin/2).attr("y2",Object(u.getConfig)().state.padding+r+Object(u.getConfig)().state.dividerMargin/2).attr("class","descr-divider"),c=i.node().getBBox(),l=Math.max(c.width,n.width);return a.attr("x2",l+3*Object(u.getConfig)().state.padding),e.insert("rect",":first-child").attr("x",Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.padding).attr("width",l+2*Object(u.getConfig)().state.padding).attr("height",c.height+r+2*Object(u.getConfig)().state.padding).attr("rx",Object(u.getConfig)().state.radius),e},p=function(e,t,n){var r,i=Object(u.getConfig)().state.padding,o=2*Object(u.getConfig)().state.padding,s=e.node().getBBox(),a=s.width,c=s.x,l=e.append("text").attr("x",0).attr("y",Object(u.getConfig)().state.titleShift).attr("font-size",Object(u.getConfig)().state.fontSize).attr("class","state-title").text(t.id),d=l.node().getBBox().width+o,h=Math.max(d,a);h===a&&(h+=o);var f=e.node().getBBox();t.doc,r=c-i,d>a&&(r=(a-h)/2+i),Math.abs(c-f.x)a&&(r=c-(d-a)/2);var p=1-Object(u.getConfig)().state.textHeight;return e.insert("rect",":first-child").attr("x",r).attr("y",p).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",f.height+Object(u.getConfig)().state.textHeight+Object(u.getConfig)().state.titleShift+1).attr("rx","0"),l.attr("x",r+i),d<=a&&l.attr("x",c+(h-o)/2-d/2+i),e.insert("rect",":first-child").attr("x",r).attr("y",Object(u.getConfig)().state.titleShift-Object(u.getConfig)().state.textHeight-Object(u.getConfig)().state.padding).attr("width",h).attr("height",3*Object(u.getConfig)().state.textHeight).attr("rx",Object(u.getConfig)().state.radius),e.insert("rect",":first-child").attr("x",r).attr("y",Object(u.getConfig)().state.titleShift-Object(u.getConfig)().state.textHeight-Object(u.getConfig)().state.padding).attr("width",h).attr("height",f.height+3+2*Object(u.getConfig)().state.textHeight).attr("rx",Object(u.getConfig)().state.radius),e},g=function(e,t){var n=t.text.replace(a.default.lineBreakRegex," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.style("text-anchor",t.anchor),r.attr("fill",t.fill),void 0!==t.class&&r.attr("class",t.class);var i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.attr("fill",t.fill),i.text(n),r},m=function(e,t){t.attr("class","state-note");var n=t.append("rect").attr("x",0).attr("y",Object(u.getConfig)().state.padding),r=function(e,t,n,r){var i=0,o=r.append("text");o.style("text-anchor","start"),o.attr("class","noteText");var s=e.replace(/\r\n/g,"
"),c=(s=s.replace(/\n/g,"
")).split(a.default.lineBreakRegex),l=1.25*Object(u.getConfig)().state.noteMargin,d=!0,h=!1,f=void 0;try{for(var p,g=c[Symbol.iterator]();!(d=(p=g.next()).done);d=!0){var m=p.value.trim();if(m.length>0){var _=o.append("tspan");_.text(m),0===l&&(l+=_.node().getBBox().height),i+=l,_.attr("x",t+Object(u.getConfig)().state.noteMargin),_.attr("y",n+i+1.25*Object(u.getConfig)().state.noteMargin)}}}catch(e){h=!0,f=e}finally{try{d||null==g.return||g.return()}finally{if(h)throw f}}return{textWidth:o.node().getBBox().width,textHeight:i}}(e,0,0,t.append("g")),i=r.textWidth,o=r.textHeight;return n.attr("height",o+2*Object(u.getConfig)().state.noteMargin),n.attr("width",i+2*Object(u.getConfig)().state.noteMargin),n},_=function(e,t){var n=t.id,r={id:n,label:t.id,width:0,height:0},o=e.append("g").attr("id",n).attr("class","stateGroup");"start"===t.type&&l(o),"end"===t.type&&function(e){e.append("circle").style("stroke","black").style("fill","white").attr("r",Object(u.getConfig)().state.sizeUnit+Object(u.getConfig)().state.miniPadding).attr("cx",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+Object(u.getConfig)().state.miniPadding).attr("cy",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+Object(u.getConfig)().state.miniPadding),e.append("circle").style("stroke","black").style("fill","black").attr("r",Object(u.getConfig)().state.sizeUnit).attr("cx",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+2).attr("cy",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+2)}(o),"fork"!==t.type&&"join"!==t.type||function(e,t){var n=Object(u.getConfig)().state.forkWidth,r=Object(u.getConfig)().state.forkHeight;if(t.parentId){var i=n;n=r,r=i}e.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.padding)}(o,t),"note"===t.type&&m(t.note.text,o),"divider"===t.type&&d(o),"default"===t.type&&0===t.descriptions.length&&h(o,t),"default"===t.type&&t.descriptions.length>0&&f(o,t);var s=o.node().getBBox();return r.width=s.width+2*Object(u.getConfig)().state.padding,r.height=s.height+2*Object(u.getConfig)().state.padding,i.default.set(n,r),r},y=0,v=function(e,t,n){t.points=t.points.filter((function(e){return!Number.isNaN(e.y)}));var i=t.points,l=Object(r.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(r.curveBasis),d=e.append("path").attr("d",l(i)).attr("id","edge"+y).attr("class","transition"),h="";if(Object(u.getConfig)().state.arrowMarkerAbsolute&&(h=(h=(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),d.attr("marker-end","url("+h+"#"+function(e){switch(e){case o.default.relationType.AGGREGATION:return"aggregation";case o.default.relationType.EXTENSION:return"extension";case o.default.relationType.COMPOSITION:return"composition";case o.default.relationType.DEPENDENCY:return"dependency"}}(o.default.relationType.DEPENDENCY)+"End)"),void 0!==n.title){for(var f=e.append("g").attr("class","stateLabel"),p=s.default.calcLabelPosition(t.points),g=p.x,m=p.y,_=a.default.getRows(n.title),v=0,b=[],w=0,C=0,S=0;S<=_.length;S++){var x=f.append("text").attr("text-anchor","middle").text(_[S]).attr("x",g).attr("y",m+v),k=x.node().getBBox();if(w=Math.max(w,k.width),C=Math.min(C,k.x),c.logger.info(k.x,g,m+v),0===v){var L=x.node().getBBox();v=L.height,c.logger.info("Title height",v,m)}b.push(x)}var M=v*_.length;if(_.length>1){var D=(_.length-1)*v*.5;b.forEach((function(e,t){return e.attr("y",m+t*v-D)})),M=v*_.length}var E=f.node().getBBox();f.insert("rect",":first-child").attr("class","box").attr("x",g-w/2-Object(u.getConfig)().state.padding/2).attr("y",m-M/2-Object(u.getConfig)().state.padding/2-3.5).attr("width",w+Object(u.getConfig)().state.padding).attr("height",M+Object(u.getConfig)().state.padding),c.logger.info(E)}y++}},"./src/diagrams/state/stateDb.js": +/*!***************************************!*\ + !*** ./src/diagrams/state/stateDb.js ***! + \***************************************/ +/*! exports provided: addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addState",(function(){return d})),n.d(t,"clear",(function(){return h})),n.d(t,"getState",(function(){return f})),n.d(t,"getStates",(function(){return p})),n.d(t,"logDocuments",(function(){return g})),n.d(t,"getRelations",(function(){return m})),n.d(t,"addRelation",(function(){return _})),n.d(t,"cleanupLabel",(function(){return v})),n.d(t,"lineType",(function(){return b})),n.d(t,"relationType",(function(){return S}));var r=n(/*! ../../logger */"./src/logger.js"),i=n(/*! ../../utils */"./src/utils.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=function(e){return JSON.parse(JSON.stringify(e))},a=[],u={root:{relations:[],states:{},documents:{}}},c=u.root,l=0,d=function(e,t,n,i,s){void 0===c.states[e]?c.states[e]={id:e,descriptions:[],type:t,doc:n,note:s}:(c.states[e].doc||(c.states[e].doc=n),c.states[e].type||(c.states[e].type=t)),i&&(r.logger.info("Adding state ",e,i),"string"==typeof i&&y(e,i.trim()),"object"===o(i)&&i.forEach((function(t){return y(e,t.trim())}))),s&&(c.states[e].note=s)},h=function(){c=(u={root:{relations:[],states:{},documents:{}}}).root,c=u.root,l=0,C=[]},f=function(e){return c.states[e]},p=function(){return c.states},g=function(){r.logger.info("Documents = ",u)},m=function(){return c.relations},_=function(e,t,n){var r=e,i=t,o="default",s="default";"[*]"===e&&(r="start"+ ++l,o="start"),"[*]"===t&&(i="end"+l,s="end"),d(r,o),d(i,s),c.relations.push({id1:r,id2:i,title:n})},y=function(e,t){var n=c.states[e],r=t;":"===r[0]&&(r=r.substr(1).trim()),n.descriptions.push(r)},v=function(e){return":"===e.substring(0,1)?e.substr(2).trim():e.trim()},b={LINE:0,DOTTED_LINE:1},w=0,C=[],S={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3};t.default={addState:d,clear:h,getState:f,getStates:p,getRelations:m,getClasses:function(){return C},getDirection:function(){return"TB"},addRelation:_,getDividerId:function(){return"divider-id-"+ ++w},cleanupLabel:v,lineType:b,relationType:S,logDocuments:g,getRootDoc:function(){return a},setRootDoc:function(e){r.logger.info("Setting root doc",e),a=e},getRootDocV2:function(){return function e(t,n,r){if("relation"===n.stmt)e(t,n.state1,!0),e(t,n.state2,!1);else if("state"===n.stmt&&"[*]"===n.id&&(n.id=r?t.id+"_start":t.id+"_end",n.start=r),n.doc){var o=[],a=0,u=[];for(a=0;a0&&u.length>0){var l={stmt:"state",id:Object(i.generateId)(),type:"divider",doc:s(u)};o.push(s(l)),n.doc=o}n.doc.forEach((function(t){return e(n,t,!0)}))}}({id:"root"},{id:"root",doc:a},!0),{id:"root",doc:a}},extract:function(e){var t;t=e.doc?e.doc:e,r.logger.info(t),h(),r.logger.info("Extract",t),t.forEach((function(e){"state"===e.stmt&&d(e.id,e.type,e.doc,e.description,e.note),"relation"===e.stmt&&_(e.state1.id,e.state2.id,e.description)}))},trimColon:function(e){return e&&":"===e[0]?e.substr(1).trim():e.trim()}}},"./src/diagrams/state/stateRenderer-v2.js": +/*!************************************************!*\ + !*** ./src/diagrams/state/stateRenderer-v2.js ***! + \************************************************/ +/*! exports provided: setConf, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return f})),n.d(t,"getClasses",(function(){return g})),n.d(t,"draw",(function(){return v}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),a=n(/*! ./parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),u=n.n(a),c=n(/*! ../../config */"./src/config.js"),l=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),d=n(/*! ../../logger */"./src/logger.js"),h={},f=function(e){for(var t=Object.keys(e),n=0;n0?(p[n.id].shape="rectWithTitle",p[n.id].description===n.id?p[n.id].description=[n.description]:p[n.id].description=[p[n.id].description,n.description]):(p[n.id].shape="rect",p[n.id].description=n.description)),!p[n.id].type&&n.doc&&(d.logger.info("Setting cluser for ",n.id),p[n.id].type="group",p[n.id].shape="divider"===n.type?"divider":"roundedWithTitle",p[n.id].classes=p[n.id].classes+" "+(r?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var o={labelStyle:"",shape:p[n.id].shape,labelText:p[n.id].description,classes:p[n.id].classes,style:"",id:n.id,type:p[n.id].type,padding:15};if(n.note){var s={labelStyle:"",shape:"note",labelText:n.note.text,classes:"statediagram-note",style:"",id:n.id+"----note",type:p[n.id].type,padding:15},a={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:p[n.id].classes,style:"",id:n.id+"----parent",type:"group",padding:0};e.setNode(n.id+"----parent",a),e.setNode(s.id,s),e.setNode(n.id,o),e.setParent(n.id,n.id+"----parent"),e.setParent(s.id,n.id+"----parent");var u=n.id,c=s.id;"left of"===n.note.position&&(u=s.id,c=n.id),e.setEdge(u,c,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else e.setNode(n.id,o)}t&&"root"!==t.id&&(d.logger.info("Setting node ",n.id," to be child of its parent ",t.id),e.setParent(n.id,t.id)),n.doc&&(d.logger.info("Adding nodes children "),y(e,n,n.doc,!r))},_=0,y=function(e,t,n,r){d.logger.trace("items",n),n.forEach((function(n){if("state"===n.stmt||"default"===n.stmt)m(e,t,n,r);else if("relation"===n.stmt){m(e,t,n.state1,r),m(e,t,n.state2,r);var i={id:"edge"+_,arrowhead:"normal",arrowType:"arrow_barb",style:"fill:none",labelStyle:"",label:n.description,arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},o=n.state1.id,s=n.state2.id;e.setEdge(o,s,i,_),_++}}))},v=function(e,t){d.logger.info("Drawing state diagram (v2)",t),s.default.clear(),p={};var n=u.a.parser;n.yy=s.default;try{n.parse(e)}catch(e){d.logger.debug("Parsing failed")}var r=s.default.getDirection();void 0===r&&(r="LR");var a=Object(c.getConfig)().state,h=a.nodeSpacing||50,f=a.rankSpacing||50,g=new i.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB",nodesep:h,ranksep:f,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));d.logger.info(s.default.getRootDocV2()),s.default.extract(s.default.getRootDocV2()),d.logger.info(s.default.getRootDocV2()),m(g,void 0,s.default.getRootDocV2(),!0);var _=Object(o.select)('[id="'.concat(t,'"]')),y=Object(o.select)("#"+t+" g");Object(l.render)(y,g,["barb"],"statediagram",t);var v=_.node().getBBox(),b=v.width+16,w=v.height+16;_.attr("width",1.75*b),_.attr("class","statediagram");var C=_.node().getBBox();a.useMaxWidth?(_.attr("width","100%"),_.attr("style","max-width: ".concat(b,"px;"))):(_.attr("height",w),_.attr("width",b));var S="".concat(C.x-8," ").concat(C.y-8," ").concat(b," ").concat(w);if(d.logger.debug("viewBox ".concat(S)),_.attr("viewBox",S),!a.htmlLabels)for(var x=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),k=0;k "+e.w+": "+JSON.stringify(p.edge(e))),Object(f.drawEdge)(n,p.edge(e),p.edge(e).relation))})),E=D.getBBox();var T={id:o||"root",label:o||"root",width:0,height:0};return T.width=E.width+2*r.padding,T.height=E.height+2*r.padding,c.logger.debug("Doc rendered",T,p),T};t.default={setConf:m,draw:_}},"./src/diagrams/user-journey/journeyDb.js": +/*!************************************************!*\ + !*** ./src/diagrams/user-journey/journeyDb.js ***! + \************************************************/ +/*! exports provided: clear, setTitle, getTitle, addSection, getSections, getTasks, addTask, addTaskOrg, default */function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);td&&D.push("'"+this.terminals_[k]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(c=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,l>0&&l--);break;case 2:if(L=this.productions_[S[1]][1],E.$=i[i.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,c,u,g.yy,S[1],i,o].concat(f))))return x;L&&(n=n.slice(0,-1*L*2),i=i.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},s={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>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(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 10;case 1:case 2:case 3:break;case 4:return 4;case 5:return 11;case 6:return 12;case 7:return 13;case 8:return 14;case 9:return":";case 10:return 6;case 11:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11],inclusive:!0}}};function a(){this.yy={}}return o.lexer=s,a.prototype=o,o.Parser=a,new a}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/user-journey/svgDraw.js": +/*!**********************************************!*\ + !*** ./src/diagrams/user-journey/svgDraw.js ***! + \**********************************************/ +/*! exports provided: drawRect, drawFace, drawCircle, drawText, drawLabel, drawSection, drawTask, drawBackgroundRect, getTextObj, getNoteRect, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawRect",(function(){return i})),n.d(t,"drawFace",(function(){return o})),n.d(t,"drawCircle",(function(){return s})),n.d(t,"drawText",(function(){return a})),n.d(t,"drawLabel",(function(){return u})),n.d(t,"drawSection",(function(){return c})),n.d(t,"drawTask",(function(){return d})),n.d(t,"drawBackgroundRect",(function(){return h})),n.d(t,"getTextObj",(function(){return f})),n.d(t,"getNoteRect",(function(){return p}));var r=n(/*! d3 */"d3"),i=function(e,t){var n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},o=function(e,t){var n=15,i=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("fill","#FFF8DC").attr("stroke","#999").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),o=e.append("g");return o.append("circle").attr("cx",t.cx-n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),o.append("circle").attr("cx",t.cx+n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.score>3?function(e){var i=Object(r.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("d",i).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}(o):t.score<3?function(e){var i=Object(r.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("d",i).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}(o):function(e){e.append("line").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","task-line").attr("stroke-width","1px").attr("stroke","#666")}(o),i},s=function(e,t){var n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),void 0!==n.class&&n.attr("class",n.class),void 0!==t.title&&n.append("title").text(t.title),n},a=function(e,t){var n=t.text.replace(//gi," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.style("text-anchor",t.anchor),void 0!==t.class&&r.attr("class",t.class);var i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.text(n),r},u=function(e,t){var n,r,i,o,s,u=e.append("polygon");u.attr("points",(n=t.x,r=t.y,n+","+r+" "+(n+(i=50))+","+r+" "+(n+i)+","+(r+(o=20)-(s=7))+" "+(n+i-1.2*s)+","+(r+o)+" "+n+","+(r+o))),u.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,a(e,t)},c=function(e,t,n){var r=e.append("g"),o=p();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class="journey-section",o.rx=3,o.ry=3,i(r,o),g(n)(t.text,r,o.x,o.y,o.width,o.height,{class:"journey-section"},n,t.colour)},l=-1,d=function(e,t,n){var r=t.x+n.width/2,a=e.append("g");l++,a.append("line").attr("id","task"+l).attr("x1",r).attr("y1",t.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),o(a,{cx:r,cy:300+30*(5-t.score),score:t.score});var u=p();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=n.width,u.height=n.height,u.class="task",u.rx=3,u.ry=3,i(a,u);var c=t.x+14;t.people.forEach((function(e){var n=t.actors[e],r={cx:c,cy:t.y,r:7,fill:n,stroke:"#000",title:e};s(a,r),c+=10})),g(n)(t.task,a,u.x,u.y,u.width,u.height,{class:"task"},n,t.colour)},h=function(e,t){i(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},f=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},p=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},g=function(){function e(e,t,n,i,o,s,a,u){r(t.append("text").attr("x",n+o/2).attr("y",i+s/2+5).style("font-color",u).style("text-anchor","middle").text(e),a)}function t(e,t,n,i,o,s,a,u,c){for(var l=u.taskFontSize,d=u.taskFontFamily,h=e.split(//gi),f=0;f0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(e)&&(e=e.toLowerCase(),void 0!==o[e]&&(e=o[e])),s.trace=function(){},s.debug=function(){},s.info=function(){},s.warn=function(){},s.error=function(){},s.fatal=function(){},e<=o.fatal&&(s.fatal=console.error?console.error.bind(console,u("FATAL"),"color: orange"):console.log.bind(console,"",u("FATAL"))),e<=o.error&&(s.error=console.error?console.error.bind(console,u("ERROR"),"color: orange"):console.log.bind(console,"",u("ERROR"))),e<=o.warn&&(s.warn=console.warn?console.warn.bind(console,u("WARN"),"color: orange"):console.log.bind(console,"",u("WARN"))),e<=o.info&&(s.info=console.info?console.info.bind(console,u("INFO"),"color: lightblue"):console.log.bind(console,"",u("INFO"))),e<=o.debug&&(s.debug=console.debug?console.debug.bind(console,u("DEBUG"),"color: lightgreen"):console.log.bind(console,"",u("DEBUG")))},u=function(e){var t=i()().format("ss.SSS");return"%c".concat(t," : ").concat(e," : ")}},"./src/mermaid.js": +/*!************************!*\ + !*** ./src/mermaid.js ***! + \************************/ +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! entity-decode/browser */"entity-decode/browser"),i=n.n(r),o=n(/*! ./mermaidAPI */"./src/mermaidAPI.js"),s=n(/*! ./logger */"./src/logger.js"),a=n(/*! ./utils */"./src/utils.js"),u=function(){c.startOnLoad?o.default.getConfig().startOnLoad&&c.init():void 0===c.startOnLoad&&(s.logger.debug("In start, no config"),o.default.getConfig().startOnLoad&&c.init())};"undefined"!=typeof document&& /*! * Wait for document loaded before starting the execution */ diff --git a/package-lock.json b/package-lock.json index fd2cfd5b..f076937d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mermaid-live-editor", - "version": "1.1.0", + "version": "1.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -9,6 +9,24 @@ "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-3.1.0.tgz", "integrity": "sha512-GcIY79elgB+azP74j8vqkiXz8xLFfIzbQJdlwOPisgbKT00tviJQuEghOXSMVxJ00HoYJbGswr4kcllUc4xCcg==" }, + "@mermaid-js/mermaid": { + "version": "8.6.0-preview.977", + "resolved": "https://npm.pkg.github.com/download/@mermaid-js/mermaid/8.6.0-preview.977/f4391517bbf05df8c11b97a8be14fab7915d322a51efe1c35b9f9c8cfc115b6d", + "integrity": "sha512-gmZzqGEe9uWSzf/xi9/5IKijHT12GDNPRrBmUX2dzZRdMBi4BqttjFaBPyh4ZvM9YxQLlzJGb0VDXwOYG4enRA==", + "requires": { + "@braintree/sanitize-url": "^3.1.0", + "crypto-random-string": "^3.0.1", + "d3": "^5.7.0", + "dagre": "^0.8.4", + "dagre-d3": "^0.6.4", + "entity-decode": "^2.0.2", + "graphlib": "^2.1.7", + "he": "^1.2.0", + "minify": "^4.1.1", + "moment-mini": "^2.22.1", + "scope-css": "^1.2.1" + } + }, "@types/events": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", @@ -1910,6 +1928,14 @@ } } }, + "entity-decode": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/entity-decode/-/entity-decode-2.0.2.tgz", + "integrity": "sha512-5CCY/3ci4MC1m2jlumNjWd7VBFt4VfFnmSqSNmVcXq4gxM3Vmarxtt+SvmBnzwLS669MWdVuXboNVj1qN2esVg==", + "requires": { + "he": "^1.1.1" + } + }, "errno": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", @@ -3853,24 +3879,6 @@ "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", "dev": true }, - "mermaid": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-8.5.0.tgz", - "integrity": "sha512-fZf4GAzkqWuSwo5L+BmzaBwWPudHkxL3M/t1RmS9Dvc2mcnv6hdhMaeC7poARpHaSGwkpb74LL81qXj+vAsVBg==", - "requires": { - "@braintree/sanitize-url": "^3.1.0", - "crypto-random-string": "^3.0.1", - "d3": "^5.7.0", - "dagre": "^0.8.4", - "dagre-d3": "^0.6.4", - "graphlib": "^2.1.7", - "he": "^1.2.0", - "lodash": "^4.17.11", - "minify": "^4.1.1", - "moment-mini": "^2.22.1", - "scope-css": "^1.2.1" - } - }, "methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", diff --git a/package.json b/package.json index a80eb356..7028ee1d 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "webpack-dev-server": "^3.3.1" }, "scripts": { + "release": "cross-env NODE_ENV=production webpack -p", "build": "cross-env NODE_ENV=production webpack", "dev": "webpack-dev-server --content-base docs" }, diff --git a/webpack.config.js b/webpack.config.js index a3aa9589..48f609a7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -11,8 +11,8 @@ module.exports = { resolve: { alias: { svelte: path.resolve('node_modules', 'svelte'), - "@mermaid": 'mermaid' - //"@mermaid": '@mermaid-js/mermaid' + //"@mermaid": 'mermaid' + "@mermaid": '@mermaid-js/mermaid' }, extensions: ['.mjs', '.js', '.svelte'], mainFields: ['svelte', 'browser', 'module', 'main'] diff --git a/yarn.lock b/yarn.lock index efe7c978..9f99c5b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6,6 +6,23 @@ version "3.1.0" resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-3.1.0.tgz#8ff71d51053cd5ee4981e5a501d80a536244f7fd" +"@mermaid-js/mermaid@*": + version "8.5.2-preview.946" + resolved "https://npm.pkg.github.com/download/@mermaid-js/mermaid/8.5.2-preview.946/5074ebd4748b1f9e5426c8e38de9996dbff467cd92e7a694138a1836e18e74e1#ebc578d3eb161cf3d3ff3298fd2c74866a9870ed" + integrity sha512-jy82rOjOOeiIta9DxIJk3wbv5EpkvN2iEdBTIPIPMu6a3XYS/bD2QYYZRjtFw6dbJL1vBxMaX1tXHN+3TKrVPg== + dependencies: + "@braintree/sanitize-url" "^3.1.0" + crypto-random-string "^3.0.1" + d3 "^5.7.0" + dagre "^0.8.4" + dagre-d3 "^0.6.4" + entity-decode "^2.0.2" + graphlib "^2.1.7" + he "^1.2.0" + minify "^4.1.1" + moment-mini "^2.22.1" + scope-css "^1.2.1" + "@types/events@*": version "3.0.0" resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7"