wiki-js-customization/test/wiki_homepage_files/vendor.js

446 lines
2.3 MiB
JavaScript
Raw Normal View History

2024-03-14 21:45:50 +00:00
/*! Wiki.js - wiki.js.org - Licensed under AGPL */
(this.webpackJsonp=this.webpackJsonp||[]).push([["vendor"],{"./node_modules/@braintree/sanitize-url/index.js":function(e,t,a){"use strict";var n=/^(%20|\s)*(javascript|data)/im,i=/[^\x20-\x7E]/gim,r=/^([^:]+):/gm,s=[".","/"];e.exports={sanitizeUrl:function(e){if(!e)return"about:blank";var t,a,o=e.replace(i,"").trim();return function(e){return s.indexOf(e[0])>-1}(o)?o:(a=o.match(r))?(t=a[0],n.test(t)?"about:blank":o):"about:blank"}}},"./node_modules/clipboard/dist/clipboard.js":function(e,t,a){
/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
var n;n=function(){return function(){var e={686:function(e,t,a){"use strict";a.d(t,{default:function(){return x}});var n=a(279),i=a.n(n),r=a(370),s=a.n(r),o=a(817),l=a.n(o);function c(e){try{return document.execCommand(e)}catch(e){return!1}}var d=function(e){var t=l()(e);return c("cut"),t},u=function(e,t){var a=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),a=document.createElement("textarea");a.style.fontSize="12pt",a.style.border="0",a.style.padding="0",a.style.margin="0",a.style.position="absolute",a.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;return a.style.top="".concat(n,"px"),a.setAttribute("readonly",""),a.value=e,a}(e);t.container.appendChild(a);var n=l()(a);return c("copy"),a.remove(),n},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},a="";return"string"==typeof e?a=u(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?a=u(e.value,t):(a=l()(e),c("copy")),a};function m(e){return(m="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 p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,a=void 0===t?"copy":t,n=e.container,i=e.target,r=e.text;if("copy"!==a&&"cut"!==a)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==m(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===a&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===a&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return r?h(r,{container:n}):i?"cut"===a?d(i):h(i,{container:n}):void 0};function f(e){return(f="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)}function g(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=k(e);if(t){var i=k(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return v(this,a)}}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){var a="data-clipboard-".concat(e);if(t.hasAttribute(a))return t.getAttribute(a)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(r,e);var t,a,n,i=y(r);function r(e,t){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(a=i.call(this)).resolveOptions(t),a.listenClick(e),a}return t=r,n=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(e,t)}},{key:"cut",value:function(e){return d(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!
/**
* @license
* Copyright (c) 2012-2013 Chris Pettitt
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
e.exports={graphlib:a("./node_modules/dagre-d3/lib/graphlib.js"),dagre:a("./node_modules/dagre-d3/lib/dagre.js"),intersect:a("./node_modules/dagre-d3/lib/intersect/index.js"),render:a("./node_modules/dagre-d3/lib/render.js"),util:a("./node_modules/dagre-d3/lib/util.js"),version:a("./node_modules/dagre-d3/lib/version.js")}},"./node_modules/dagre-d3/lib/arrows.js":function(e,t,a){var n=a("./node_modules/dagre-d3/lib/util.js");function i(e,t,a,i){var r=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");n.applyStyle(r,a[i+"Style"]),a[i+"Class"]&&r.attr("class",a[i+"Class"])}e.exports={default:i,normal:i,vee:function(e,t,a,i){var r=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");n.applyStyle(r,a[i+"Style"]),a[i+"Class"]&&r.attr("class",a[i+"Class"])},undirected:function(e,t,a,i){var r=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");n.applyStyle(r,a[i+"Style"]),a[i+"Class"]&&r.attr("class",a[i+"Class"])}}},"./node_modules/dagre-d3/lib/create-clusters.js":function(e,t,a){var n=a("./node_modules/dagre-d3/lib/util.js"),i=a("./node_modules/dagre-d3/lib/d3.js"),r=a("./node_modules/dagre-d3/lib/label/add-label.js");e.exports=function(e,t){var a,s=t.nodes().filter((function(e){return n.isSubgraph(t,e)})),o=e.selectAll("g.cluster").data(s,(function(e){return e}));o.selectAll("*").remove(),o.enter().append("g").attr("class","cluster").attr("id",(function(e){return t.node(e).id})).style("opacity",0),o=e.selectAll("g.cluster"),n.applyTransition(o,t).style("opacity",1),o.each((function(e){var a=t.node(e),n=i.select(this);i.select(this).append("rect");var s=n.append("g").attr("class","label");r(s,a,a.clusterLabelPos)})),o.selectAll("rect").each((function(e){var a=t.node(e),r=i.select(this);n.applyStyle(r,a.style)})),a=o.exit?o.exit():o.selectAll(null);return n.applyTransition(a,t).style("opacity",0).remove(),o}},"./node_modules/dagre-d3/lib/create-edge-labels.js":function(e,t,a){"use strict";var n=a("./node_modules/dagre-d3/lib/lodash.js"),i=a("./node_modules/dagre-d3/lib/label/add-label.js"),r=a("./node_modules/dagre-d3/lib/util.js"),s=a("./node_modules/dagre-d3/lib/d3.js");e.exports=function(e,t){var a,o=e.selectAll("g.edgeLabel").data(t.edges(),(function(e){return r.edgeToId(e)})).classed("update",!0);o.exit().remove(),o.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(o=e.selectAll("g.edgeLabel")).each((function(e){var a=s.select(this);a.select(".label").remove();var r=t.edge(e),o=i(a,t.edge(e),0,0).classed("label",!0),l=o.node().getBBox();r.labelId&&o.attr("id",r.labelId),n.has(r,"width")||(r.width=l.width),n.has(r,"height")||(r.height=l.height)})),a=o.exit?o.exit():o.selectAll(null);return r.applyTransition(a,t).style("opacity",0).remove(),o}},"./node_modules/dagre-d3/lib/create-edge-paths.js":function(e,t,a){"use strict";var n=a("./node_modules/dagre-d3/lib/lodash.js"),i=a("./node_modules/dagre-d3/lib/intersect/intersect-node.js"),r=a("./node_modules/dagre-d3/lib/util.js"),s=a("./node_modules/dagre-d3/lib/d3.js");function o(e,t){var a=(s.line||s.svg.line)().x((function(e){return e.x})).y((function(e){return e.y}));return(a.curve||a.interpolate)(e.curve),a(t)}e.exports=function(e,t,a){var l=e.selectAll("g.edgePath").data(t.edges(),(function(e){return r.edgeToId(e)})).classed("update",!0),c=function(e,t){var a=e.enter().append("g").attr("class","edgePath").style("opacity",0);return a.append("pat
/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */
e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,a){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,a)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,i,r){return(n=a()?Reflect.construct:function(e,a,n){var i=[null];i.push.apply(i,a);var r=new(Function.bind.apply(e,i));return n&&t(r,n.prototype),r}).apply(null,arguments)}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var s=Object.hasOwnProperty,o=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor,u=Object.freeze,h=Object.seal,m=Object.create,p="undefined"!=typeof Reflect&&Reflect,f=p.apply,g=p.construct;f||(f=function(e,t,a){return e.apply(t,a)}),u||(u=function(e){return e}),h||(h=function(e){return e}),g||(g=function(e,t){return n(e,i(t))});var b,y=A(Array.prototype.forEach),v=A(Array.prototype.pop),k=A(Array.prototype.push),w=A(String.prototype.toLowerCase),x=A(String.prototype.toString),_=A(String.prototype.match),j=A(String.prototype.replace),z=A(String.prototype.indexOf),S=A(String.prototype.trim),C=A(RegExp.prototype.test),E=(b=TypeError,function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return g(b,t)});function A(e){return function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];return f(e,t,n)}}function T(e,t,a){a=a||w,o&&o(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=a(i);r!==i&&(l(t)||(t[n]=r),i=r)}e[i]=!0}return e}function q(e){var t,a=m(null);for(t in e)!0===f(s,e,[t])&&(a[t]=e[t]);return a}function M(e,t){for(;null!==e;){var a=d(e,t);if(a){if(a.get)return A(a.get);if("function"==typeof a.value)return A(a.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var O=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","r
/*!******************************************************!*\
!*** ./node_modules/node-libs-browser/mock/empty.js ***!
\******************************************************/
/*! no static exports found */function(e,t){},"./node_modules/path-browserify/index.js":
/*!***********************************************!*\
!*** ./node_modules/path-browserify/index.js ***!
\***********************************************/
/*! no static exports found */function(e,t,a){(function(e){function a(e,t){for(var a=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),a++):a&&(e.splice(n,1),a--)}if(t)for(;a--;a)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var a=[],n=0;n<e.length;n++)t(e[n],n,e)&&a.push(e[n]);return a}t.resolve=function(){for(var t="",i=!1,r=arguments.length-1;r>=-1&&!i;r--){var s=r>=0?arguments[r]: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=a(n(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var r=t.isAbsolute(e),s="/"===i(e,-1);return(e=a(n(e.split("/"),(function(e){return!!e})),!r).join("/"))||r||(e="."),e&&s&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(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,a){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var a=e.length-1;a>=0&&""===e[a];a--);return t>a?[]:e.slice(t,a-t+1)}e=t.resolve(e).substr(1),a=t.resolve(a).substr(1);for(var i=n(e.split("/")),r=n(a.split("/")),s=Math.min(i.length,r.length),o=s,l=0;l<s;l++)if(i[l]!==r[l]){o=l;break}var c=[];for(l=o;l<i.length;l++)c.push("..");return(c=c.concat(r.slice(o))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),a=47===t,n=-1,i=!0,r=e.length-1;r>=1;--r)if(47===(t=e.charCodeAt(r))){if(!i){n=r;break}}else i=!1;return-1===n?a?"/":".":a&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var a=function(e){"string"!=typeof e&&(e+="");var t,a=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){a=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(a,n)}(e);return t&&a.substr(-1*t.length)===t&&(a=a.substr(0,a.length-t.length)),a},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,a=0,n=-1,i=!0,r=0,s=e.length-1;s>=0;--s){var o=e.charCodeAt(s);if(47!==o)-1===n&&(i=!1,n=s+1),46===o?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!i){a=s+1;break}}return-1===t||-1===n||0===r||1===r&&t===n-1&&t===a+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,a){return e.substr(t,a)}:function(e,t,a){return t<0&&(t=e.length+t),e.substr(t,a)}}).call(this,a(/*! ./../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 a,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(a===setTimeout)return setTimeout(e,0);if((a===r||!a)&&setTimeout)return a=setTimeout,setTimeout(e,0);try{return a(e,0)}catch(t){try{return a.call(null,e,0)}catch(t){return a.call(this,e,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:r}catch(e){a=r}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l,c=[],d=!1,u=-1;function h(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&m())}function m(){if(!d){var e=o(h);d=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,d=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];c.push(new p(e,t)),1!==c.length||d||o(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},"./node_modules/webpack/buildin/module.js":
/*!***********************************!*\
!*** (webpack)/buildin/module.js ***!
\***********************************/
/*! no static exports found */function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./package.json":
/*!**********************!*\
!*** ./package.json ***!
\**********************/
/*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, husky, default */function(e){e.exports=JSON.parse('{"name":"mermaid","version":"8.8.2","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build:development":"webpack --progress --colors","build:production":"yarn build:development -p --config webpack.config.prod.babel.js","build":"yarn build:development && yarn build:production","postbuild":"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false | sed \'1i---\\\\nsort: 3\\\\ntitle: Configurations\\\\n---\\\\n\' > docs/getting-started/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./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","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","babel-eslint":"^10.1.0","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","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"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"],"husky":{"hooks":{"pre-push":"yarn test"}}}')},"./src/config.js":
/*!***********************!*\
!*** ./src/config.js ***!
\***********************/
/*! exports provided: defaultConfig, updateCurrentConfig, setSiteConfig, setSiteConfigDelta, updateSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, addDirective, reset */function(e,t,a){"use strict";a.r(t),a.d(t,"defaultConfig",(function(){return l})),a.d(t,"updateCurrentConfig",(function(){return h})),a.d(t,"setSiteConfig",(function(){return m})),a.d(t,"setSiteConfigDelta",(function(){return p})),a.d(t,"updateSiteConfig",(function(){return f})),a.d(t,"getSiteConfig",(function(){return g})),a.d(t,"setConfig",(function(){return b})),a.d(t,"getConfig",(function(){return y})),a.d(t,"sanitize",(function(){return v})),a.d(t,"addDirective",(function(){return k})),a.d(t,"reset",(function(){return w}));var n,i=a(/*! ./utils */"./src/utils.js"),r=a(/*! ./logger */"./src/logger.js"),s=a(/*! ./themes */"./src/themes/index.js"),o=a(/*! ./defaultConfig */"./src/defaultConfig.js"),l=Object.freeze(o.default),c=Object(i.assignWithDepth)({},l),d=[],u=Object(i.assignWithDepth)({},l),h=function(e,t){for(var a=Object(i.assignWithDepth)({},e),r={},o=0;o<t.length;o++){var l=t[o];v(l),r=Object(i.assignWithDepth)(r,l)}if(a=Object(i.assignWithDepth)(a,r),r.theme){var c=Object(i.assignWithDepth)(n.themeVariables||{},r.themeVariables);a.themeVariables=s.default[a.theme].getThemeVariables(c)}return u=a,a},m=function(e){return c=Object(i.assignWithDepth)({},l),c=Object(i.assignWithDepth)(c,e),e.theme&&(c.themeVariables=s.default[e.theme].getThemeVariables(e.themeVariables)),u=h(c,d),c},p=function(e){n=Object(i.assignWithDepth)({},e)},f=function(e){return c=Object(i.assignWithDepth)(c,e),h(c,d),c},g=function(){return Object(i.assignWithDepth)({},c)},b=function(e){return Object(i.assignWithDepth)(u,e),y()},y=function(){return Object(i.assignWithDepth)({},u)},v=function(e){Object.keys(c.secure).forEach((function(t){void 0!==e[c.secure[t]]&&(r.logger.debug("Denied attempt to modify a secure key ".concat(c.secure[t]),e[c.secure[t]]),delete e[c.secure[t]])}))},k=function(e){e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),d.push(e),h(c,d)},w=function(){h(c,d=[])}},"./src/dagre-wrapper/clusters.js":
/*!***************************************!*\
!*** ./src/dagre-wrapper/clusters.js ***!
\***************************************/
/*! exports provided: insertCluster, getClusterTitleWidth, clear, positionCluster */function(e,t,a){"use strict";a.r(t),a.d(t,"insertCluster",(function(){return d})),a.d(t,"getClusterTitleWidth",(function(){return u})),a.d(t,"clear",(function(){return h})),a.d(t,"positionCluster",(function(){return m}));var n=a(/*! ./intersect/intersect-rect */"./src/dagre-wrapper/intersect/intersect-rect.js"),i=a(/*! ../logger */"./src/logger.js"),r=a(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),s=a(/*! d3 */"d3"),o=a(/*! ../config */"./src/config.js"),l={rect:function(e,t){i.logger.trace("Creating subgraph rect for ",t.id,t);var a=e.insert("g").attr("class","cluster").attr("id",t.id),l=a.insert("rect",":first-child"),c=a.insert("g").attr("class","cluster-label"),d=c.node().appendChild(Object(r.default)(t.labelText,t.labelStyle,void 0,!0)),u=d.getBBox();if(Object(o.getConfig)().flowchart.htmlLabels){var h=d.children[0],m=Object(s.select)(d);u=h.getBoundingClientRect(),m.attr("width",u.width),m.attr("height",u.height)}var p=0*t.padding,f=p/2;i.logger.trace("Data ",t,JSON.stringify(t)),l.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-f).attr("y",t.y-t.height/2-f).attr("width",t.width+p).attr("height",t.height+p),c.attr("transform","translate("+(t.x-u.width/2)+", "+(t.y-t.height/2-t.padding/3+3)+")");var g=l.node().getBBox();return t.width=g.width,t.height=g.height,t.intersect=function(e){return Object(n.default)(t,e)},a},roundedWithTitle:function(e,t){var a=e.insert("g").attr("class",t.classes).attr("id",t.id),i=a.insert("rect",":first-child"),l=a.insert("g").attr("class","cluster-label"),c=a.append("rect"),d=l.node().appendChild(Object(r.default)(t.labelText,t.labelStyle,void 0,!0)),u=d.getBBox();if(Object(o.getConfig)().flowchart.htmlLabels){var h=d.children[0],m=Object(s.select)(d);u=h.getBoundingClientRect(),m.attr("width",u.width),m.attr("height",u.height)}u=d.getBBox();var p=0*t.padding,f=p/2;i.attr("class","outer").attr("x",t.x-t.width/2-f).attr("y",t.y-t.height/2-f).attr("width",t.width+p).attr("height",t.height+p),c.attr("class","inner").attr("x",t.x-t.width/2-f).attr("y",t.y-t.height/2-f+u.height-1).attr("width",t.width+p).attr("height",t.height+p-u.height-3),l.attr("transform","translate("+(t.x-u.width/2)+", "+(t.y-t.height/2-t.padding/3+(Object(o.getConfig)().flowchart.htmlLabels?5:3))+")");var g=i.node().getBBox();return t.width=g.width,t.height=g.height,t.intersect=function(e){return Object(n.default)(t,e)},a},noteGroup:function(e,t){var a=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=a.insert("rect",":first-child"),r=0*t.padding,s=r/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+r).attr("height",t.height+r).attr("fill","none");var o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return Object(n.default)(t,e)},a},divider:function(e,t){var a=e.insert("g").attr("class",t.classes).attr("id",t.id),i=a.insert("rect",":first-child"),r=0*t.padding,s=r/2;i.attr("class","divider").attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2).attr("width",t.width+r).attr("height",t.height+r);var o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return Object(n.default)(t,e)},a}},c={},d=function(e,t){i.logger.trace("Inserting cluster");var a=t.shape||"rect";c[t.id]=l[a](e,t)},u=function(e,t){var a=Object(r.default)(t.labelText,t.labelStyle,void 0,!0);e.node().appendChild(a);var n=a.getBBox().width;return e.node().removeChild(a),n},h=function(){c={}},m=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,a){"use strict";a.r(t);var n=a(/*! d3 */"d3"),i=a(/*! ../logger */"./src/logger.js"),r=a(/*! ../config */"./src/config.js");t.default=function(e,t,a,s){var o=e||"";if(Object(r.getConfig)().flowchart.htmlLabels)return o=o.replace(/\\n|\n/g,"<br />"),i.logger.info("vertexText"+o),function(e){var t,a,i=Object(n.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=i.append("xhtml:div"),s=e.label,o=e.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+o+'">'+s+"</span>"),t=r,(a=e.labelStyle)&&t.attr("style",a),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),i.node()}({isNode:s,label:o.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")}))});var l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("style",t.replace("color:","fill:"));var c=[];c="string"==typeof o?o.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(o)?o:[];for(var d=0;d<c.length;d++){var u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),a?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=c[d].trim(),l.appendChild(u)}return l}},"./src/dagre-wrapper/edges.js":
/*!************************************!*\
!*** ./src/dagre-wrapper/edges.js ***!
\************************************/
/*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */function(e,t,a){"use strict";a.r(t),a.d(t,"clear",(function(){return d})),a.d(t,"insertEdgeLabel",(function(){return u})),a.d(t,"positionEdgeLabel",(function(){return h})),a.d(t,"intersection",(function(){return p})),a.d(t,"insertEdge",(function(){return f}));var n=a(/*! ../logger */"./src/logger.js"),i=a(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),r=a(/*! d3 */"d3"),s=a(/*! ../config */"./src/config.js"),o=a(/*! ../utils */"./src/utils.js"),l={},c={},d=function(){l={},c={}},u=function(e,t){var a=Object(i.default)(t.label,t.labelStyle),n=e.insert("g").attr("class","edgeLabel"),o=n.insert("g").attr("class","label");o.node().appendChild(a);var d=a.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var u=a.children[0],h=Object(r.select)(a);d=u.getBoundingClientRect(),h.attr("width",d.width),h.attr("height",d.height)}if(o.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),l[t.id]=n,t.width=d.width,t.height=d.height,t.startLabelLeft){var m=Object(i.default)(t.startLabelLeft,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),f=p.insert("g").attr("class","inner");f.node().appendChild(m);var g=m.getBBox();f.attr("transform","translate("+-g.width/2+", "+-g.height/2+")"),c[t.id]||(c[t.id]={}),c[t.id].startLeft=p}if(t.startLabelRight){var b=Object(i.default)(t.startLabelRight,t.labelStyle),y=e.insert("g").attr("class","edgeTerminals"),v=y.insert("g").attr("class","inner");y.node().appendChild(b),v.node().appendChild(b);var k=b.getBBox();v.attr("transform","translate("+-k.width/2+", "+-k.height/2+")"),c[t.id]||(c[t.id]={}),c[t.id].startRight=y}if(t.endLabelLeft){var w=Object(i.default)(t.endLabelLeft,t.labelStyle),x=e.insert("g").attr("class","edgeTerminals"),_=x.insert("g").attr("class","inner");_.node().appendChild(w);var j=w.getBBox();_.attr("transform","translate("+-j.width/2+", "+-j.height/2+")"),x.node().appendChild(w),c[t.id]||(c[t.id]={}),c[t.id].endLeft=x}if(t.endLabelRight){var z=Object(i.default)(t.endLabelRight,t.labelStyle),S=e.insert("g").attr("class","edgeTerminals"),C=S.insert("g").attr("class","inner");C.node().appendChild(z);var E=z.getBBox();C.attr("transform","translate("+-E.width/2+", "+-E.height/2+")"),S.node().appendChild(z),c[t.id]||(c[t.id]={}),c[t.id].endRight=S}},h=function(e,t){n.logger.info("Moving label",e.id,e.label,l[e.id]);var a=t.updatedPath?t.updatedPath:t.originalPath;if(e.label){var i=l[e.id],r=e.x,s=e.y;if(a){var d=o.default.calcLabelPosition(a);n.logger.info("Moving label from (",r,",",s,") to (",d.x,",",d.y,")")}i.attr("transform","translate("+r+", "+s+")")}if(e.startLabelLeft){var u=c[e.id].startLeft,h=e.x,m=e.y;if(a){var p=o.default.calcTerminalLabelPosition(0,"start_left",a);h=p.x,m=p.y}u.attr("transform","translate("+h+", "+m+")")}if(e.startLabelRight){var f=c[e.id].startRight,g=e.x,b=e.y;if(a){var y=o.default.calcTerminalLabelPosition(0,"start_right",a);g=y.x,b=y.y}f.attr("transform","translate("+g+", "+b+")")}if(e.endLabelLeft){var v=c[e.id].endLeft,k=e.x,w=e.y;if(a){var x=o.default.calcTerminalLabelPosition(0,"end_left",a);k=x.x,w=x.y}v.attr("transform","translate("+k+", "+w+")")}if(e.endLabelRight){var _=c[e.id].endRight,j=e.x,z=e.y;if(a){var S=o.default.calcTerminalLabelPosition(0,"end_right",a);j=S.x,z=S.y}_.attr("transform","translate("+j+", "+z+")")}},m=function(e,t){var a=e.x,n=e.y,i=Math.abs(t.x-a),r=Math.abs(t.y-n),s=e.width/2,o=e.height/2;return i>=s||r>=o},p=function(e,t,a){n.logger.warn("intersection calc o:",t," i:",a,e);var i=e.x,r=e.y,s=Math.abs(i-a.x),o=e.width/2,l=a.x<t.x?o-s:o+s,c=e.height/2,d=i-o,u=i+o,h=r-c,m=r+c;if(t.x===d||t.x===u||t.y===h||t.y===m)return n.logger.warn("calc equals on edge"),t;var p=Math.abs(t.y-a.y),f=Math.abs(t.x-a.x);if(Math.abs(r-t.y)*o>Math.abs(i-t.x)*c){var g=a.y<t.y?t.y-c-r:r-c-t.y;l=f*g/p;var b={x:a.x<t.x?a.x+f-l:a.x-l,y:t.y+g};return n.logger.warn("topp/bott calc, Q ".concat(p,", q ").concat(g,", R ").concat(f,", r ").concat(l),b),b}var y=y=p*(l=a.x<t.x?t.x-o-i:i-o-t.x)/f;return n.logger.warn("sides calc, Q "
/*!************************************!*\
!*** ./src/dagre-wrapper/index.js ***!
\************************************/
/*! exports provided: render */function(e,t,a){"use strict";a.r(t),a.d(t,"render",(function(){return p}));var n=a(/*! dagre */"dagre"),i=a.n(n),r=a(/*! graphlib */"graphlib"),s=a.n(r),o=a(/*! ./markers */"./src/dagre-wrapper/markers.js"),l=a(/*! ./shapes/util */"./src/dagre-wrapper/shapes/util.js"),c=a(/*! ./mermaid-graphlib */"./src/dagre-wrapper/mermaid-graphlib.js"),d=a(/*! ./nodes */"./src/dagre-wrapper/nodes.js"),u=a(/*! ./clusters */"./src/dagre-wrapper/clusters.js"),h=a(/*! ./edges */"./src/dagre-wrapper/edges.js"),m=a(/*! ../logger */"./src/logger.js"),p=function(e,t,a,n,r){Object(o.default)(e,a,n,r),Object(d.clear)(),Object(h.clear)(),Object(u.clear)(),Object(c.clear)(),m.logger.warn("Graph at first:",s.a.json.write(t)),Object(c.adjustClustersAndEdges)(t),m.logger.warn("Graph after:",s.a.json.write(t)),function e(t,a,n,r){m.logger.info("Graph in recursive render: XXX",s.a.json.write(a),r);var o=a.graph().rankdir;m.logger.warn("Dir in recursive render - dir:",o);var p=t.insert("g").attr("class","root");a.nodes()?m.logger.info("Recursive render XXX",a.nodes()):m.logger.info("No nodes found for",a),a.edges().length>0&&m.logger.info("Recursive edges",a.edge(a.edges()[0]));var f=p.insert("g").attr("class","clusters"),g=p.insert("g").attr("class","edgePaths"),b=p.insert("g").attr("class","edgeLabels"),y=p.insert("g").attr("class","nodes");return a.nodes().forEach((function(t){var i=a.node(t);if(void 0!==r){var s=JSON.parse(JSON.stringify(r.clusterData));m.logger.info("Setting data for cluster XXX (",t,") ",s,r),a.setNode(r.id,s),a.parent(t)||(m.logger.warn("Setting parent",t,r.id),a.setParent(t,r.id,s))}if(m.logger.info("(Insert) Node XXX"+t+": "+JSON.stringify(a.node(t))),i&&i.clusterNode){m.logger.info("Cluster identified",t,i,a.node(t));var u=e(y,i.graph,n,a.node(t));Object(l.updateNodeBounds)(i,u),Object(d.setNodeElem)(u,i),m.logger.warn("Recursive render complete",u,i)}else a.children(t).length>0?(m.logger.info("Cluster - the non recursive path XXX",t,i.id,i,a),m.logger.info(Object(c.findNonClusterChild)(i.id,a)),c.clusterDb[i.id]={id:Object(c.findNonClusterChild)(i.id,a),node:i}):(m.logger.info("Node - the non recursive path",t,i.id,i),Object(d.insertNode)(y,a.node(t),o))})),a.edges().forEach((function(e){var t=a.edge(e.v,e.w,e.name);m.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),m.logger.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(a.edge(e))),m.logger.info("Fix",c.clusterDb,"ids:",e.v,e.w,"Translateing: ",c.clusterDb[e.v],c.clusterDb[e.w]),Object(h.insertEdgeLabel)(b,t)})),a.edges().forEach((function(e){m.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))})),m.logger.info("#############################################"),m.logger.info("### Layout ###"),m.logger.info("#############################################"),m.logger.info(a),i.a.layout(a),m.logger.info("Graph after layout:",s.a.json.write(a)),Object(c.sortNodesByHierarchy)(a).forEach((function(e){var t=a.node(e);m.logger.info("Position "+e+": "+JSON.stringify(a.node(e))),m.logger.info("Position "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t&&t.clusterNode?Object(d.positionNode)(t):a.children(e).length>0?(Object(u.insertCluster)(f,t),c.clusterDb[t.id].node=t):Object(d.positionNode)(t)})),a.edges().forEach((function(e){var t=a.edge(e);m.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t);var i=Object(h.insertEdge)(g,e,t,c.clusterDb,n,a);Object(h.positionEdgeLabel)(t,i)})),p}(e,t,n)}},"./src/dagre-wrapper/intersect/index.js":
/*!**********************************************!*\
!*** ./src/dagre-wrapper/intersect/index.js ***!
\**********************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t);var n=a(/*! ./intersect-node.js */"./src/dagre-wrapper/intersect/intersect-node.js"),i=a.n(n),r=a(/*! ./intersect-circle.js */"./src/dagre-wrapper/intersect/intersect-circle.js"),s=a(/*! ./intersect-ellipse.js */"./src/dagre-wrapper/intersect/intersect-ellipse.js"),o=a(/*! ./intersect-polygon.js */"./src/dagre-wrapper/intersect/intersect-polygon.js"),l=a(/*! ./intersect-rect.js */"./src/dagre-wrapper/intersect/intersect-rect.js");t.default={node:i.a,circle:r.default,ellipse:s.default,polygon:o.default,rect:l.default}},"./src/dagre-wrapper/intersect/intersect-circle.js":
/*!*********************************************************!*\
!*** ./src/dagre-wrapper/intersect/intersect-circle.js ***!
\*********************************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t);var n=a(/*! ./intersect-ellipse */"./src/dagre-wrapper/intersect/intersect-ellipse.js");t.default=function(e,t,a){return Object(n.default)(e,t,t,a)}},"./src/dagre-wrapper/intersect/intersect-ellipse.js":
/*!**********************************************************!*\
!*** ./src/dagre-wrapper/intersect/intersect-ellipse.js ***!
\**********************************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e,t,a,n){var i=e.x,r=e.y,s=i-n.x,o=r-n.y,l=Math.sqrt(t*t*o*o+a*a*s*s),c=Math.abs(t*a*s/l);n.x<i&&(c=-c);var d=Math.abs(t*a*o/l);return n.y<r&&(d=-d),{x:i+c,y:r+d}}},"./src/dagre-wrapper/intersect/intersect-line.js":
/*!*******************************************************!*\
!*** ./src/dagre-wrapper/intersect/intersect-line.js ***!
\*******************************************************/
/*! exports provided: default */function(e,t,a){"use strict";function n(e,t){return e*t>0}a.r(t),t.default=function(e,t,a,i){var r,s,o,l,c,d,u,h,m,p,f,g,b;if(r=t.y-e.y,o=e.x-t.x,c=t.x*e.y-e.x*t.y,m=r*a.x+o*a.y+c,p=r*i.x+o*i.y+c,!(0!==m&&0!==p&&n(m,p)||(s=i.y-a.y,l=a.x-i.x,d=i.x*a.y-a.x*i.y,u=s*e.x+l*e.y+d,h=s*t.x+l*t.y+d,0!==u&&0!==h&&n(u,h)||0==(f=r*l-s*o))))return g=Math.abs(f/2),{x:(b=o*d-l*c)<0?(b-g)/f:(b+g)/f,y:(b=s*c-r*d)<0?(b-g)/f:(b+g)/f}}},"./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 e.intersect(t)}},"./src/dagre-wrapper/intersect/intersect-polygon.js":
/*!**********************************************************!*\
!*** ./src/dagre-wrapper/intersect/intersect-polygon.js ***!
\**********************************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t);var n=a(/*! ./intersect-line */"./src/dagre-wrapper/intersect/intersect-line.js");t.default=function(e,t,a){var i=e.x,r=e.y,s=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach((function(e){o=Math.min(o,e.x),l=Math.min(l,e.y)})):(o=Math.min(o,t.x),l=Math.min(l,t.y));for(var c=i-e.width/2-o,d=r-e.height/2-l,u=0;u<t.length;u++){var h=t[u],m=t[u<t.length-1?u+1:0],p=Object(n.default)(e,a,{x:c+h.x,y:d+h.y},{x:c+m.x,y:d+m.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort((function(e,t){var n=e.x-a.x,i=e.y-a.y,r=Math.sqrt(n*n+i*i),s=t.x-a.x,o=t.y-a.y,l=Math.sqrt(s*s+o*o);return r<l?-1:r===l?0:1})),s[0]):e}},"./src/dagre-wrapper/intersect/intersect-rect.js":
/*!*******************************************************!*\
!*** ./src/dagre-wrapper/intersect/intersect-rect.js ***!
\*******************************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e,t){var a,n,i=e.x,r=e.y,s=t.x-i,o=t.y-r,l=e.width/2,c=e.height/2;return Math.abs(o)*l>Math.abs(s)*c?(o<0&&(c=-c),a=0===o?0:c*s/o,n=c):(s<0&&(l=-l),a=l,n=0===s?0:l*o/s),{x:i+a,y:r+n}}},"./src/dagre-wrapper/markers.js":
/*!**************************************!*\
!*** ./src/dagre-wrapper/markers.js ***!
\**************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t);var n=a(/*! ../logger */"./src/logger.js"),i={extension:function(e,t,a){n.logger.trace("Making markers for ",a),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").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 composition "+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 composition "+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 aggregation "+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 aggregation "+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 dependency "+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 dependency "+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(
/*!***********************************************!*\
!*** ./src/dagre-wrapper/mermaid-graphlib.js ***!
\***********************************************/
/*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor, sortNodesByHierarchy */function(e,t,a){"use strict";a.r(t),a.d(t,"clusterDb",(function(){return s})),a.d(t,"clear",(function(){return c})),a.d(t,"extractDecendants",(function(){return h})),a.d(t,"validate",(function(){return m})),a.d(t,"findNonClusterChild",(function(){return p})),a.d(t,"adjustClustersAndEdges",(function(){return g})),a.d(t,"extractor",(function(){return b})),a.d(t,"sortNodesByHierarchy",(function(){return y}));var n=a(/*! ../logger */"./src/logger.js"),i=a(/*! graphlib */"graphlib"),r=a.n(i),s={},o={},l={},c=function(){o={},l={},s={}},d=function(e,t){return n.logger.debug("In isDecendant",t," ",e," = ",o[t].indexOf(e)>=0),o[t].indexOf(e)>=0},u=function e(t,a,i,r){n.logger.warn("Copying children of ",t,"root",r,"data",a.node(t),r);var s=a.children(t)||[];t!==r&&s.push(t),n.logger.warn("Copying (nodes) clusterId",t,"nodes",s),s.forEach((function(s){if(a.children(s).length>0)e(s,a,i,r);else{var l=a.node(s);n.logger.info("cp ",s," to ",r," with parent ",t),i.setNode(s,l),r!==a.parent(s)&&(n.logger.warn("Setting parent",s,a.parent(s)),i.setParent(s,a.parent(s))),t!==r&&s!==t?(n.logger.debug("Setting parent",s,t),i.setParent(s,t)):(n.logger.info("In copy ",t,"root",r,"data",a.node(t),r),n.logger.debug("Not Setting parent for node=",s,"cluster!==rootId",t!==r,"node!==clusterId",s!==t));var c=a.edges(s);n.logger.debug("Copying Edges",c),c.forEach((function(e){n.logger.info("Edge",e);var s=a.edge(e.v,e.w,e.name);n.logger.info("Edge data",s,r);try{!function(e,t){return n.logger.info("Decendants of ",t," is ",o[t]),n.logger.info("Edge is ",e),e.v!==t&&e.w!==t&&(o[t]?(n.logger.info("Here "),o[t].indexOf(e.v)>=0||!!d(e.v,t)||!!d(e.w,t)||o[t].indexOf(e.w)>=0):(n.logger.debug("Tilt, ",t,",not in decendants"),!1))}(e,r)?n.logger.info("Skipping copy of edge ",e.v,"--\x3e",e.w," rootId: ",r," clusterId:",t):(n.logger.info("Copying as ",e.v,e.w,s,e.name),i.setEdge(e.v,e.w,s,e.name),n.logger.info("newGraph edges ",i.edges(),i.edge(i.edges()[0])))}catch(e){n.logger.error(e)}}))}n.logger.debug("Removing node",s),a.removeNode(s)}))},h=function e(t,a){for(var n=a.children(t),i=[].concat(n),r=0;r<n.length;r++)l[n[r]]=t,i=i.concat(e(n[r],a));return i},m=function(e){var t=e.edges();n.logger.trace("Edges: ",t);for(var a=0;a<t.length;a++){if(e.children(t[a].v).length>0)return n.logger.trace("The node ",t[a].v," is part of and edge even though it has children"),!1;if(e.children(t[a].w).length>0)return n.logger.trace("The node ",t[a].w," is part of and edge even though it has children"),!1}return!0},p=function e(t,a){n.logger.trace("Searching",t);var i=a.children(t);if(n.logger.trace("Searching children of id ",t,i),i.length<1)return n.logger.trace("This is a valid node",t),t;for(var r=0;r<i.length;r++){var s=e(i[r],a);if(s)return n.logger.trace("Found replacement for",t," => ",s),s}},f=function(e){return s[e]&&s[e].externalConnections&&s[e]?s[e].id:e},g=function(e,t){!e||t>10?n.logger.debug("Opting out, no graph "):(n.logger.debug("Opting in, graph "),e.nodes().forEach((function(t){e.children(t).length>0&&(n.logger.warn("Cluster identified",t," Replacement id in edges: ",p(t,e)),o[t]=h(t,e),s[t]={id:p(t,e),clusterData:e.node(t)})})),e.nodes().forEach((function(t){var a=e.children(t),i=e.edges();a.length>0?(n.logger.debug("Cluster identified",t,o),i.forEach((function(e){e.v!==t&&e.w!==t&&d(e.v,t)^d(e.w,t)&&(n.logger.warn("Edge: ",e," leaves cluster ",t),n.logger.warn("Decendants of XXX ",t,": ",o[t]),s[t].externalConnections=!0)}))):n.logger.debug("Not a cluster ",t,o)})),e.edges().forEach((function(t){var a=e.edge(t);n.logger.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),n.logger.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));var i=t.v,r=t.w;n.logger.warn("Fix XXX",s,"ids:",t.v,t.w,"Translateing: ",s[t.v]," --- ",s[t.w]),(s[t.v]||s[t.w])&&(n.logger.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),i=f(t.v),r=f(t.w),e.removeEdge(t.v,t.w,t.name),i!==t.v&&(a.fromCluster=t.v),r!==t.w&&(a
/*!************************************!*\
!*** ./src/dagre-wrapper/nodes.js ***!
\************************************/
/*! exports provided: insertNode, setNodeElem, clear, positionNode */function(e,t,a){"use strict";a.r(t),a.d(t,"insertNode",(function(){return p})),a.d(t,"setNodeElem",(function(){return f})),a.d(t,"clear",(function(){return g})),a.d(t,"positionNode",(function(){return b}));var n=a(/*! d3 */"d3"),i=a(/*! ../logger */"./src/logger.js"),r=a(/*! ./shapes/util */"./src/dagre-wrapper/shapes/util.js"),s=a(/*! ../config */"./src/config.js"),o=a(/*! ./intersect/index.js */"./src/dagre-wrapper/intersect/index.js"),l=a(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),c=a(/*! ./shapes/note */"./src/dagre-wrapper/shapes/note.js"),d=a(/*! ../diagrams/class/svgDraw */"./src/diagrams/class/svgDraw.js"),u=function(e,t,a){var n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=70,s=10;"LR"===a&&(i=10,s=70);var l=n.append("rect").style("stroke","black").style("fill","black").attr("x",-1*i/2).attr("y",-1*s/2).attr("width",i).attr("height",s).attr("class","fork-join");return Object(r.updateNodeBounds)(t,l),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(e){return o.default.rect(t,e)},n},h={question:function(e,t){var a=Object(r.labelHelper)(e,t,void 0,!0),n=a.shapeSvg,s=a.bbox,l=s.width+t.padding+(s.height+t.padding),c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];i.logger.info("Question main (Circle)");var d=Object(r.insertPolygonShape)(n,l,l,c);return Object(r.updateNodeBounds)(t,d),t.intersect=function(e){return i.logger.warn("Intersect called"),o.default.polygon(t,c,e)},n},rect:function(e,t){var a=Object(r.labelHelper)(e,t,"node "+t.classes,!0),n=a.shapeSvg,s=a.bbox,l=a.halfPadding;i.logger.trace("Classes = ",t.classes);var c=n.insert("rect",":first-child");return c.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-l).attr("y",-s.height/2-l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),Object(r.updateNodeBounds)(t,c),t.intersect=function(e){return o.default.rect(t,e)},n},rectWithTitle:function(e,t){var a;a=t.classes?"node "+t.classes:"node default";var c=e.insert("g").attr("class",a).attr("id",t.domId||t.id),d=c.insert("rect",":first-child"),u=c.insert("line"),h=c.insert("g").attr("class","label"),m=t.labelText.flat();i.logger.info("Label text",m[0]);var p,f=h.node().appendChild(Object(l.default)(m[0],t.labelStyle,!0,!0));if(Object(s.getConfig)().flowchart.htmlLabels){var g=f.children[0],b=Object(n.select)(f);p=g.getBoundingClientRect(),b.attr("width",p.width),b.attr("height",p.height)}i.logger.info("Text 2",m);var y=m.slice(1,m.length),v=f.getBBox(),k=h.node().appendChild(Object(l.default)(y.join("<br/>"),t.labelStyle,!0,!0));if(Object(s.getConfig)().flowchart.htmlLabels){var w=k.children[0],x=Object(n.select)(k);p=w.getBoundingClientRect(),x.attr("width",p.width),x.attr("height",p.height)}var _=t.padding/2;return Object(n.select)(k).attr("transform","translate( "+(p.width>v.width?0:(v.width-p.width)/2)+", "+(v.height+_+5)+")"),Object(n.select)(f).attr("transform","translate( "+(p.width<v.width?0:-(v.width-p.width)/2)+", 0)"),p=h.node().getBBox(),h.attr("transform","translate("+-p.width/2+", "+(-p.height/2-_+3)+")"),d.attr("class","outer title-state").attr("x",-p.width/2-_).attr("y",-p.height/2-_).attr("width",p.width+t.padding).attr("height",p.height+t.padding),u.attr("class","divider").attr("x1",-p.width/2-_).attr("x2",p.width/2+_).attr("y1",-p.height/2-_+v.height+_).attr("y2",-p.height/2-_+v.height+_),Object(r.updateNodeBounds)(t,d),t.intersect=function(e){return o.default.rect(t,e)},c},circle:function(e,t){var a=Object(r.labelHelper)(e,t,void 0,!0),n=a.shapeSvg,s=a.bbox,l=a.halfPadding,c=n.insert("circle",":first-child");return c.attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),i.logger.info("Circle main"),Object(r.updateNodeBounds)(t,c),t.intersect=function(e){return i.logger.info("Circle intersect",t,s.width/2+l,e),o.default.circle(t,s.width/2+l,e)},n},stadium:function(e,t){var a=Object(r.labelHelper)(e,t,void 0,
/*!******************************************!*\
!*** ./src/dagre-wrapper/shapes/note.js ***!
\******************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t);var n=a(/*! ./util */"./src/dagre-wrapper/shapes/util.js"),i=a(/*! ../../logger */"./src/logger.js"),r=a(/*! ../intersect/index.js */"./src/dagre-wrapper/intersect/index.js");t.default=function(e,t){var a=Object(n.labelHelper)(e,t,"node "+t.classes,!0),s=a.shapeSvg,o=a.bbox,l=a.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",-o.width/2-l).attr("y",-o.height/2-l).attr("width",o.width+t.padding).attr("height",o.height+t.padding),Object(n.updateNodeBounds)(t,c),t.intersect=function(e){return r.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,a){"use strict";a.r(t),a.d(t,"labelHelper",(function(){return s})),a.d(t,"updateNodeBounds",(function(){return o})),a.d(t,"insertPolygonShape",(function(){return l}));var n=a(/*! ../createLabel */"./src/dagre-wrapper/createLabel.js"),i=a(/*! ../../config */"./src/config.js"),r=a(/*! d3 */"d3"),s=function(e,t,a,s){var o;o=a||"node default";var l=e.insert("g").attr("class",o).attr("id",t.domId||t.id),c=l.insert("g").attr("class","label").attr("style",t.labelStyle),d=c.node().appendChild(Object(n.default)(t.labelText,t.labelStyle,!1,s)),u=d.getBBox();if(Object(i.getConfig)().flowchart.htmlLabels){var h=d.children[0],m=Object(r.select)(d);u=h.getBoundingClientRect(),m.attr("width",u.width),m.attr("height",u.height)}var p=t.padding/2;return c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),{shapeSvg:l,bbox:u,halfPadding:p,label:c}},o=function(e,t){var a=t.node().getBBox();e.width=a.width,e.height=a.height};function l(e,t,a,n){return e.insert("polygon",":first-child").attr("points",n.map((function(e){return e.x+","+e.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}},"./src/defaultConfig.js":
/*!******************************!*\
!*** ./src/defaultConfig.js ***!
\******************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t);var n={theme:"default",themeVariables:a(/*! ./themes */"./src/themes/index.js").default.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,fontFamily:'"trebuchet ms", verdana, arial;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"linear",padding:15,useMaxWidth:!0},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",useMaxWidth:!0,useWidth:void 0},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,useMaxWidth:!0},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},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,useMaxWidth:!0},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0}};n.class.arrowMarkerAbsolute=n.arrowMarkerAbsolute,n.git.arrowMarkerAbsolute=n.arrowMarkerAbsolute,t.default=n},"./src/diagrams/class/classDb.js":
/*!***************************************!*\
!*** ./src/diagrams/class/classDb.js ***!
\***************************************/
/*! exports provided: parseDirective, addClass, lookUpDomId, clear, getClass, getClasses, getRelations, addRelation, addAnnotation, addMember, addMembers, cleanupLabel, setCssClass, setLink, setClickEvent, bindFunctions, lineType, relationType, default */function(e,t,a){"use strict";a.r(t),a.d(t,"parseDirective",(function(){return m})),a.d(t,"addClass",(function(){return f})),a.d(t,"lookUpDomId",(function(){return g})),a.d(t,"clear",(function(){return b})),a.d(t,"getClass",(function(){return y})),a.d(t,"getClasses",(function(){return v})),a.d(t,"getRelations",(function(){return k})),a.d(t,"addRelation",(function(){return w})),a.d(t,"addAnnotation",(function(){return x})),a.d(t,"addMember",(function(){return _})),a.d(t,"addMembers",(function(){return j})),a.d(t,"cleanupLabel",(function(){return z})),a.d(t,"setCssClass",(function(){return S})),a.d(t,"setLink",(function(){return C})),a.d(t,"setClickEvent",(function(){return E})),a.d(t,"bindFunctions",(function(){return T})),a.d(t,"lineType",(function(){return q})),a.d(t,"relationType",(function(){return M}));var n=a(/*! d3 */"d3"),i=a(/*! ../../logger */"./src/logger.js"),r=a(/*! ../../config */"./src/config.js"),s=a(/*! ../common/common */"./src/diagrams/common/common.js"),o=a(/*! ../../utils */"./src/utils.js"),l=a(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),c=[],d={},u=0,h=[],m=function(e,t,a){l.default.parseDirective(this,e,t,a)},p=function(e){var t="",a=e;if(e.indexOf("~")>0){var n=e.split("~");a=n[0],t=n[1]}return{className:a,type:t}},f=function(e){var t=p(e);void 0===d[t.className]&&(d[t.className]={id:t.className,type:t.type,cssClasses:[],methods:[],members:[],annotations:[],domId:"classid-"+t.className+"-"+u},u++)},g=function(e){for(var t=Object.keys(d),a=0;a<t.length;a++)if(d[t[a]].id===e)return d[t[a]].domId},b=function(){c=[],d={},(h=[]).push(O)},y=function(e){return d[e]},v=function(){return d},k=function(){return c},w=function(e){i.logger.debug("Adding relation: "+JSON.stringify(e)),f(e.id1),f(e.id2),e.id1=p(e.id1).className,e.id2=p(e.id2).className,c.push(e)},x=function(e,t){var a=p(e).className;d[a].annotations.push(t)},_=function(e,t){var a=p(e).className,n=d[a];if("string"==typeof t){var i=t.trim();i.startsWith("<<")&&i.endsWith(">>")?n.annotations.push(i.substring(2,i.length-2)):i.indexOf(")")>0?n.methods.push(i):i&&n.members.push(i)}},j=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach((function(t){return _(e,t)})))},z=function(e){return":"===e.substring(0,1)?e.substr(1).trim():e.trim()},S=function(e,t){e.split(",").forEach((function(e){var a=e;e[0].match(/\d/)&&(a="classid-"+a),void 0!==d[a]&&d[a].cssClasses.push(t)}))},C=function(e,t,a){var n=r.getConfig();e.split(",").forEach((function(e){var i=e;e[0].match(/\d/)&&(i="classid-"+i),void 0!==d[i]&&(d[i].link=o.default.formatUrl(t,n),a&&(d[i].tooltip=s.default.sanitizeText(a,n)))})),S(e,"clickable")},E=function(e,t,a){e.split(",").forEach((function(e){A(e,t,a),d[e].haveCallback=!0})),S(e,"clickable")},A=function(e,t,a){var n=r.getConfig(),i=e,l=g(i);"loose"===n.securityLevel&&void 0!==t&&void 0!==d[i]&&(a&&(d[i].tooltip=s.default.sanitizeText(a,n)),h.push((function(){var e=document.querySelector('[id="'.concat(l,'"]'));null!==e&&e.addEventListener("click",(function(){o.default.runFunc(t,l)}),!1)})))},T=function(e){h.forEach((function(t){t(e)}))},q={LINE:0,DOTTED_LINE:1},M={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},O=function(e){var t=Object(n.select)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=Object(n.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(n.select)(e).select("svg").selectAll("g.node").on("mouseover",(function(){var e=Object(n.select)(this);if(null!==e.attr("title")){var a=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(e.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),e.classed("hover",!0)}})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0),Object(n.select)(this).classed("
/*!************************************************!*\
!*** ./src/diagrams/class/classRenderer-v2.js ***!
\************************************************/
/*! exports provided: addClasses, addRelations, setConf, drawOld, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"addClasses",(function(){return y})),a.d(t,"addRelations",(function(){return v})),a.d(t,"setConf",(function(){return w})),a.d(t,"drawOld",(function(){return x})),a.d(t,"draw",(function(){return _}));var n=a(/*! d3 */"d3"),i=a(/*! dagre */"dagre"),r=a.n(i),s=a(/*! graphlib */"graphlib"),o=a.n(s),l=a(/*! ../../logger */"./src/logger.js"),c=a(/*! ./classDb */"./src/diagrams/class/classDb.js"),d=a(/*! ./parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),u=a(/*! ./svgDraw */"./src/diagrams/class/svgDraw.js"),h=a(/*! ../../config */"./src/config.js"),m=a(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),p=a(/*! ../../utils */"./src/utils.js"),f=a(/*! ../common/common */"./src/diagrams/common/common.js");d.parser.yy=c.default;var g={},b={dividerMargin:10,padding:5,textHeight:10},y=function(e,t){var a=Object.keys(e);l.logger.info("keys:",a),l.logger.info(e),a.forEach((function(a){var n=e[a],i="";n.cssClasses.length>0&&(i=i+" "+n.cssClasses.join(" "));var r={labelStyle:""},s=void 0!==n.text?n.text:n.id,o="";switch(n.type){case"class":o="class_box";break;default:o="class_box"}t.setNode(n.id,{labelStyle:r.labelStyle,shape:o,labelText:s,classData:n,rx:0,ry:0,class:i,style:r.style,id:n.id,domId:n.domId,haveCallback:n.haveCallback,link:n.link,width:"group"===n.type?500:void 0,type:n.type,padding:Object(h.getConfig)().flowchart.padding}),l.logger.info("setNode",{labelStyle:r.labelStyle,shape:o,labelText:s,rx:0,ry:0,class:i,style:r.style,id:n.id,width:"group"===n.type?500:void 0,type:n.type,padding:Object(h.getConfig)().flowchart.padding})}))},v=function(e,t){var a=0;e.forEach((function(i){a++;var r={classes:"relation"};r.pattern=1==i.relation.lineType?"dashed":"solid",r.id="id"+a,"arrow_open"===i.type?r.arrowhead="none":r.arrowhead="normal",l.logger.info(r,i),r.startLabelRight="none"===i.relationTitle1?"":i.relationTitle1,r.endLabelLeft="none"===i.relationTitle2?"":i.relationTitle2,r.arrowTypeStart=j(i.relation.type1),r.arrowTypeEnd=j(i.relation.type2);var s="",o="";if(void 0!==i.style){var c=Object(p.getStylesFromArray)(i.style);s=c.style,o=c.labelStyle}else s="fill:none";r.style=s,r.labelStyle=o,void 0!==i.interpolate?r.curve=Object(p.interpolateToCurve)(i.interpolate,n.curveLinear):void 0!==e.defaultInterpolate?r.curve=Object(p.interpolateToCurve)(e.defaultInterpolate,n.curveLinear):r.curve=Object(p.interpolateToCurve)(b.curve,n.curveLinear),i.text=i.title,void 0===i.text?void 0!==i.style&&(r.arrowheadStyle="fill: #333"):(r.arrowheadStyle="fill: #333",r.labelpos="c",Object(h.getConfig)().flowchart.htmlLabels,r.labelType="text",r.label=i.text.replace(f.default.lineBreakRegex,"\n"),void 0===i.style&&(r.style=r.style||"stroke: #333; stroke-width: 1.5px;fill:none"),r.labelStyle=r.labelStyle.replace("color:","fill:")),t.setEdge(i.id1,i.id2,r,a)}))},k=function(e){for(var t=Object.keys(g),a=0;a<t.length;a++)if(g[t[a]].label===e)return t[a]},w=function(e){Object.keys(e).forEach((function(t){b[t]=e[t]}))},x=function(e,t){g={},d.parser.yy.clear(),d.parser.parse(e),l.logger.info("Rendering diagram "+e);var a=Object(n.select)("[id='".concat(t,"']")),i=new o.a.Graph({multigraph:!0});i.setGraph({isMultiGraph:!0}),i.setDefaultEdgeLabel((function(){return{}}));var s=c.default.getClasses();l.logger.info("classes:"),l.logger.info(s);for(var h=Object.keys(s),m=0;m<h.length;m++){var f=s[h[m]],y=u.default.drawClass(a,f,b);g[y.id]=y,i.setNode(y.id,y),l.logger.info("Org height: "+y.height)}var v=c.default.getRelations();l.logger.info("relations:",v),v.forEach((function(e){l.logger.info("tjoho"+k(e.id1)+k(e.id2)+JSON.stringify(e)),i.setEdge(k(e.id1),k(e.id2),{relation:e},e.title||"DEFAULT")})),r.a.layout(i),i.nodes().forEach((function(e){void 0!==e&&void 0!==i.node(e)&&(l.logger.debug("Node "+e+": "+JSON.stringify(i.node(e))),Object(n.select)("#"+Object(c.lookUpDomId)(e)).attr("transform","translate("+(i.node(e).x-i.node(e).width/2)+","+(i.node(e).y-i.node(e).height/2)+" )"))})),i.edges().forEach
/*!*********************************************!*\
!*** ./src/diagrams/class/classRenderer.js ***!
\*********************************************/
/*! exports provided: setConf, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return g})),a.d(t,"draw",(function(){return b}));var n=a(/*! d3 */"d3"),i=a(/*! dagre */"dagre"),r=a.n(i),s=a(/*! graphlib */"graphlib"),o=a.n(s),l=a(/*! ../../logger */"./src/logger.js"),c=a(/*! ./classDb */"./src/diagrams/class/classDb.js"),d=a(/*! ./parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),u=a(/*! ./svgDraw */"./src/diagrams/class/svgDraw.js"),h=a(/*! ../../utils */"./src/utils.js");d.parser.yy=c.default;var m={},p={dividerMargin:10,padding:5,textHeight:10},f=function(e){for(var t=Object.keys(m),a=0;a<t.length;a++)if(m[t[a]].label===e)return t[a]},g=function(e){Object.keys(e).forEach((function(t){p[t]=e[t]}))},b=function(e,t){m={},d.parser.yy.clear(),d.parser.parse(e),l.logger.info("Rendering diagram "+e);var a,i=Object(n.select)("[id='".concat(t,"']"));i.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(a=i).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").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"),a.append("defs").append("marker").attr("id","extensionEnd").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"),a.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").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"),a.append("defs").append("marker").attr("id","compositionEnd").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"),a.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").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"),a.append("defs").append("marker").attr("id","aggregationEnd").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"),a.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").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"),a.append("defs").append("marker").attr("id","dependencyEnd").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");var s=new o.a.Graph({multigraph:!0});s.setGraph({isMultiGraph:!0}),s.setDefaultEdgeLabel((function(){return{}}));for(var g=c.default.getClasses(),b=Object.keys(g),y=0;y<b.length;y++){var v=g[b[y]],k=u.default.drawClass(i,v,p);m[k.id]=k,s.setNode(k.id,k),l.logger.info("Org height: "+k.height)}c.default.getRelations().forEach((function(e){l.logger.info("tjoho"+f(e.id1)+f(e.id2)+JSON.stringify(e)),s.setEdge(f(e.id1),f(e.id2),{relation:e},e.title||"DEFAULT")})),r.a.layout(s),s.nodes().forEach((function(e){void 0!==e&&void 0!==s.node(e)&&(l.logger.debug("Node "+e+": "+JSON.stringify(s.node(e))),Object(n.select)("#"+Object(c.lookUpDomId)(e)).attr("transform","translate("+(s.node(e).x-s.node(e).width/2)+","+(s.node(e).y-s.node(e).height/2)+" )"))})),s.edges().forEach((function(e){void 0!==e&&void 0!==s.edge(e)&&(l.logger.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(s.edge(e))),u.default.drawEdge(i,s.edge(e),s.edge(e).relation,p))}));var w=i.node().getBBox(),x=w.width+40,_=w.height+40;Object(h.configureSvgSize)(i,_,x,p.useMaxWidth);var j="".concat(w.x-20," ").concat(w.y-20," ").concat(x," ").concat(_);l.logger.debug("viewBox ".concat(j)),i.attr("viewBox",j)};t.default={setConf:g,draw:b}},"./src/diagrams/class/parser/classDiagram.jison":
/*!******************************************************!*\
!*** ./src/diagrams/class/parser/classDiagram.jison ***!
\******************************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[1,7],a=[1,6],n=[1,14],i=[1,25],r=[1,28],s=[1,26],o=[1,27],l=[1,29],c=[1,30],d=[1,31],u=[1,33],h=[1,34],m=[1,35],p=[10,19],f=[1,47],g=[1,48],b=[1,49],y=[1,50],v=[1,51],k=[1,52],w=[10,19,25,32,33,41,44,45,46,47,48,49],x=[10,19,23,25,32,33,37,41,44,45,46,47,48,49,66,67,68],_=[10,13,17,19],j=[41,66,67,68],z=[41,48,49,66,67,68],S=[41,44,45,46,47,66,67,68],C=[10,19,25],E=[1,81],A={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,graphConfig:6,openDirective:7,typeDirective:8,closeDirective:9,NEWLINE:10,":":11,argDirective:12,open_directive:13,type_directive:14,arg_directive:15,close_directive:16,CLASS_DIAGRAM:17,statements:18,EOF:19,statement:20,className:21,alphaNumToken:22,GENERICTYPE:23,relationStatement:24,LABEL:25,classStatement:26,methodStatement:27,annotationStatement:28,clickStatement:29,cssClassStatement:30,CLASS:31,STYLE_SEPARATOR:32,STRUCT_START:33,members:34,STRUCT_STOP:35,ANNOTATION_START:36,ANNOTATION_END:37,MEMBER:38,SEPARATOR:39,relation:40,STR:41,relationType:42,lineType:43,AGGREGATION:44,EXTENSION:45,COMPOSITION:46,DEPENDENCY:47,LINE:48,DOTTED_LINE:49,CALLBACK:50,LINK:51,CSSCLASS:52,commentToken:53,textToken:54,graphCodeTokens:55,textNoTagsToken:56,TAGSTART:57,TAGEND:58,"==":59,"--":60,PCT:61,DEFAULT:62,SPACE:63,MINUS:64,keywords:65,UNICODE_TEXT:66,NUM:67,ALPHA:68,$accept:0,$end:1},terminals_:{2:"error",10:"NEWLINE",11:":",13:"open_directive",14:"type_directive",15:"arg_directive",16:"close_directive",17:"CLASS_DIAGRAM",19:"EOF",23:"GENERICTYPE",25:"LABEL",31:"CLASS",32:"STYLE_SEPARATOR",33:"STRUCT_START",35:"STRUCT_STOP",36:"ANNOTATION_START",37:"ANNOTATION_END",38:"MEMBER",39:"SEPARATOR",41:"STR",44:"AGGREGATION",45:"EXTENSION",46:"COMPOSITION",47:"DEPENDENCY",48:"LINE",49:"DOTTED_LINE",50:"CALLBACK",51:"LINK",52:"CSSCLASS",55:"graphCodeTokens",57:"TAGSTART",58:"TAGEND",59:"==",60:"--",61:"PCT",62:"DEFAULT",63:"SPACE",64:"MINUS",65:"keywords",66:"UNICODE_TEXT",67:"NUM",68:"ALPHA"},productions_:[0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,1],[21,2],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,4],[26,5],[26,7],[28,4],[34,1],[34,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[40,3],[40,2],[40,2],[40,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[29,3],[29,4],[29,3],[29,4],[30,3],[53,1],[53,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[22,1]],performAction:function(e,t,a,n,i,r,s){var o=r.length-1;switch(i){case 6:n.parseDirective("%%{","open_directive");break;case 7:n.parseDirective(r[o],"type_directive");break;case 8:r[o]=r[o].trim().replace(/'/g,'"'),n.parseDirective(r[o],"arg_directive");break;case 9:n.parseDirective("}%%","close_directive","class");break;case 14:this.$=r[o];break;case 15:this.$=r[o-1]+r[o];break;case 16:this.$=r[o-2]+"~"+r[o-1]+r[o];break;case 17:this.$=r[o-1]+"~"+r[o];break;case 18:n.addRelation(r[o]);break;case 19:r[o-1].title=n.cleanupLabel(r[o]),n.addRelation(r[o-1]);break;case 26:n.addClass(r[o]);break;case 27:n.addClass(r[o-2]),n.setCssClass(r[o-2],r[o]);break;case 28:n.addClass(r[o-3]),n.addMembers(r[o-3],r[o-1]);break;case 29:n.addClass(r[o-5]),n.setCssClass(r[o-5],r[o-3]),n.addMembers(r[o-5],r[o-1]);break;case 30:n.addAnnotation(r[o],r[o-2]);break;case 31:this.$=[r[o]];break;case 32:r[o].push(r[o-1]),this.$=r[o];break;case 33:break;case 34:n.addMember(r[o-1],n.cleanupLabel(r[o]));break;case 35:case 36:break;case 37:this.$={id1:r[o-2],id2:r[o],relation:r[o-1],relationTitle1:"none",relationTitle2:"none"};break;case 38:this.$={id1:r[o-3],id2:r[o],relation:r[o-1],relationTitle1:r[o-2],relationTitle2:"none"};break;case 39:this.$={id1:r[o-3],id2:r[o],relation:r[o-2],relationTitle1:"none",relationTitle2:r[o-1]};break;case 40:this.$={id1:r[o-4],id2:r[o],relation:r[o-2],relationTitle1:r[o-3],relationTitle2:r[o-1]};break;case 41:this.$={type1:r[o-2],type2:r[o],lineType:r[o-1]};
/*!**************************************!*\
!*** ./src/diagrams/class/styles.js ***!
\**************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e){return"g.classGroup text {\n fill: ".concat(e.nodeBorder,";\n fill: ").concat(e.classText,";\n stroke: none;\n font-family: ").concat(e.fontFamily,";\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ").concat(e.nodeBorder,";\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n}\n\ng.classGroup line {\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(e.mainBkg,";\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ").concat(e.nodeBorder,";\n font-size: 10px;\n}\n\n.relation {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ").concat(e.mainBkg," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ").concat(e.mainBkg," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n")}},"./src/diagrams/class/svgDraw.js":
/*!***************************************!*\
!*** ./src/diagrams/class/svgDraw.js ***!
\***************************************/
/*! exports provided: drawEdge, drawClass, parseMember, default */function(e,t,a){"use strict";a.r(t),a.d(t,"drawEdge",(function(){return l})),a.d(t,"drawClass",(function(){return c})),a.d(t,"parseMember",(function(){return d}));var n=a(/*! d3 */"d3"),i=a(/*! ./classDb */"./src/diagrams/class/classDb.js"),r=a(/*! ../../utils */"./src/utils.js"),s=a(/*! ../../logger */"./src/logger.js"),o=0,l=function(e,t,a,l){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 d,u,h=t.points,m=Object(n.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(n.curveBasis),p=e.append("path").attr("d",m(h)).attr("id","edge"+o).attr("class","relation"),f="";l.arrowMarkerAbsolute&&(f=(f=(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==a.relation.lineType&&p.attr("class","relation dashed-line"),"none"!==a.relation.type1&&p.attr("marker-start","url("+f+"#"+c(a.relation.type1)+"Start)"),"none"!==a.relation.type2&&p.attr("marker-end","url("+f+"#"+c(a.relation.type2)+"End)");var g,b,y,v,k=t.points.length,w=r.default.calcLabelPosition(t.points);if(d=w.x,u=w.y,k%2!=0&&k>1){var x=r.default.calcCardinalityPosition("none"!==a.relation.type1,t.points,t.points[0]),_=r.default.calcCardinalityPosition("none"!==a.relation.type2,t.points,t.points[k-1]);s.logger.debug("cardinality_1_point "+JSON.stringify(x)),s.logger.debug("cardinality_2_point "+JSON.stringify(_)),g=x.x,b=x.y,y=_.x,v=_.y}if(void 0!==a.title){var j=e.append("g").attr("class","classLabel"),z=j.append("text").attr("class","label").attr("x",d).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(a.title);window.label=z;var S=z.node().getBBox();j.insert("rect",":first-child").attr("class","box").attr("x",S.x-l.padding/2).attr("y",S.y-l.padding/2).attr("width",S.width+l.padding).attr("height",S.height+l.padding)}s.logger.info("Rendering relation "+JSON.stringify(a)),void 0!==a.relationTitle1&&"none"!==a.relationTitle1&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",g).attr("y",b).attr("fill","black").attr("font-size","6").text(a.relationTitle1),void 0!==a.relationTitle2&&"none"!==a.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(a.relationTitle2),o++},c=function(e,t,a){s.logger.info("Rendering class "+t);var n,r=t.id,o={id:r,label:t.id,width:0,height:0},l=e.append("g").attr("id",Object(i.lookUpDomId)(r)).attr("class","classGroup");n=t.link?l.append("svg:a").attr("xlink:href",t.link).attr("target","_blank").append("text").attr("y",a.textHeight+a.padding).attr("x",0):l.append("text").attr("y",a.textHeight+a.padding).attr("x",0);var c=!0;t.annotations.forEach((function(e){var t=n.append("tspan").text("«"+e+"»");c||t.attr("dy",a.textHeight),c=!1}));var d=t.id;void 0!==t.type&&""!==t.type&&(d+="<"+t.type+">");var u=n.append("tspan").text(d).attr("class","title");c||u.attr("dy",a.textHeight);var h=n.node().getBBox().height,m=l.append("line").attr("x1",0).attr("y1",a.padding+h+a.dividerMargin/2).attr("y2",a.padding+h+a.dividerMargin/2),f=l.append("text").attr("x",a.padding).attr("y",h+a.dividerMargin+a.textHeight).attr("fill","white").attr("class","classText");c=!0,t.members.forEach((function(e){p(f,e,c,a),c=!1}));var g=f.node().getBBox(),b=l.append("line").attr("x1",0).attr("y1",a.padding+h+a.dividerMargin+g.height).attr("y2",a.padding+h+a.dividerMargin+g.height),y=l.append("text").attr("x",a.padding).attr("y",h+2*a.dividerMargin+g.height+a.textHeight).attr("fill","white").attr("class","classText");c=!0,t.methods.forEach((function(e){p(y,e,c,a),c=!1}));var v=l.node().getBBox(),k=" ";t.cssClasses.length>0&&(k+=t.cssClasses.join(" "));var w=l.insert("rect",":first-child").a
/*!***************************************!*\
!*** ./src/diagrams/common/common.js ***!
\***************************************/
/*! exports provided: getRows, removeScript, sanitizeText, lineBreakRegex, hasBreaks, splitBreaks, default */function(e,t,a){"use strict";a.r(t),a.d(t,"getRows",(function(){return n})),a.d(t,"removeScript",(function(){return i})),a.d(t,"sanitizeText",(function(){return r})),a.d(t,"lineBreakRegex",(function(){return s})),a.d(t,"hasBreaks",(function(){return o})),a.d(t,"splitBreaks",(function(){return l}));var n=function(e){if(!e)return 1;var t=c(e);return(t=t.replace(/\\n/g,"#br#")).split("#br#")},i=function(e){for(var t="",a=0;a>=0;){if(!((a=e.indexOf("<script"))>=0)){t+=e,a=-1;break}t+=e.substr(0,a),(a=(e=e.substr(a+1)).indexOf("<\/script>"))>=0&&(a+=9,e=e.substr(a))}return t},r=function(e,t){var a=e,n=!0;if(!t.flowchart||!1!==t.flowchart.htmlLabels&&"false"!==t.flowchart.htmlLabels||(n=!1),n){var r=t.securityLevel;"antiscript"===r?a=i(a):"loose"!==r&&(a=(a=(a=c(a)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),a=d(a))}return a},s=/<br\s*\/?>/gi,o=function(e){return/<br\s*[/]?>/gi.test(e)},l=function(e){return e.split(/<br\s*[/]?>/gi)},c=function(e){return e.replace(s,"#br#")},d=function(e){return e.replace(/#br#/g,"<br/>")};t.default={getRows:n,sanitizeText:r,hasBreaks:o,splitBreaks:l,lineBreakRegex:s,removeScript:i}},"./src/diagrams/er/erDb.js":
/*!*********************************!*\
!*** ./src/diagrams/er/erDb.js ***!
\*********************************/
/*! exports provided: parseDirective, default */function(e,t,a){"use strict";a.r(t),a.d(t,"parseDirective",(function(){return c}));var n=a(/*! ../../logger */"./src/logger.js"),i=a(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),r=a(/*! ../../config */"./src/config.js"),s={},o=[],l="",c=function(e,t,a){i.default.parseDirective(this,e,t,a)};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"},parseDirective:c,getConfig:function(){return r.getConfig().er},addEntity:function(e){void 0===s[e]&&(s[e]=e,n.logger.debug("Added new entity :",e))},getEntities:function(){return s},addRelationship:function(e,t,a,i){var r={entityA:e,roleA:t,entityB:a,relSpec:i};o.push(r),n.logger.debug("Added new relationship :",r)},getRelationships:function(){return o},clear:function(){s={},o=[],l=""},setTitle:function(e){l=e},getTitle:function(){return l}}},"./src/diagrams/er/erMarkers.js":
/*!**************************************!*\
!*** ./src/diagrams/er/erMarkers.js ***!
\**************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t);var n={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:n,insertMarkers:function(e,t){var a;e.append("defs").append("marker").attr("id",n.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",n.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"),(a=e.append("defs").append("marker").attr("id",n.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),a.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(a=e.append("defs").append("marker").attr("id",n.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),a.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",n.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",n.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"),(a=e.append("defs").append("marker").attr("id",n.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),a.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(a=e.append("defs").append("marker").attr("id",n.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),a.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,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return g})),a.d(t,"draw",(function(){return v}));var n=a(/*! graphlib */"graphlib"),i=a.n(n),r=a(/*! d3 */"d3"),s=a(/*! ./erDb */"./src/diagrams/er/erDb.js"),o=a(/*! ./parser/erDiagram */"./src/diagrams/er/parser/erDiagram.jison"),l=a.n(o),c=a(/*! dagre */"dagre"),d=a.n(c),u=a(/*! ../../config */"./src/config.js"),h=a(/*! ../../logger */"./src/logger.js"),m=a(/*! ./erMarkers */"./src/diagrams/er/erMarkers.js"),p=a(/*! ../../utils */"./src/utils.js"),f={},g=function(e){for(var t=Object.keys(e),a=0;a<t.length;a++)f[t[a]]=e[t[a]]},b=function(e){return(e.entityA+e.roleA+e.entityB).replace(/\s/g,"")},y=0,v=function(e,t){h.logger.info("Drawing ER diagram"),s.default.clear();var a=l.a.parser;a.yy=s.default;try{a.parse(e)}catch(e){h.logger.debug("Parsing failed")}var n,o=Object(r.select)("[id='".concat(t,"']"));m.default.insertMarkers(o,f),n=new i.a.Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:f.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));var c,g,v,k,w=(c=o,g=s.default.getEntities(),v=n,Object.keys(g).forEach((function(e){var t=c.append("g").attr("id",e);k=void 0===k?e:k;var a="entity-"+e,n=t.append("text").attr("class","er entityLabel").attr("id",a).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Object(u.getConfig)().fontFamily+"; font-size: "+f.fontSize+"px").text(e),i=n.node().getBBox(),r=Math.max(f.minEntityWidth,i.width+2*f.entityPadding),s=Math.max(f.minEntityHeight,i.height+2*f.entityPadding);n.attr("transform","translate("+r/2+","+s/2+")");var o=t.insert("rect","#"+a).attr("class","er entityBox").attr("fill",f.fill).attr("fill-opacity","100%").attr("stroke",f.stroke).attr("x",0).attr("y",0).attr("width",r).attr("height",s).node().getBBox();v.setNode(e,{width:o.width,height:o.height,shape:"rect",id:e})})),k),x=function(e,t){return e.forEach((function(e){t.setEdge(e.entityA,e.entityB,{relationship:e},b(e))})),e}(s.default.getRelationships(),n);d.a.layout(n),function(e,t){t.nodes().forEach((function(a){void 0!==a&&void 0!==t.node(a)&&e.select("#"+a).attr("transform","translate("+(t.node(a).x-t.node(a).width/2)+","+(t.node(a).y-t.node(a).height/2)+" )")}))}(o,n),x.forEach((function(e){!function(e,t,a,n){y++;var i=a.edge(t.entityA,t.entityB,b(t)),o=Object(r.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(r.curveBasis),l=e.insert("path","#"+n).attr("class","er relationshipLine").attr("d",o(i.points)).attr("stroke",f.stroke).attr("fill","none");t.relSpec.relType===s.default.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");var c="";switch(f.arrowMarkerAbsolute&&(c=(c=(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),t.relSpec.cardA){case s.default.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+c+"#"+m.default.ERMarkers.ZERO_OR_ONE_END+")");break;case s.default.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+c+"#"+m.default.ERMarkers.ZERO_OR_MORE_END+")");break;case s.default.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+c+"#"+m.default.ERMarkers.ONE_OR_MORE_END+")");break;case s.default.Cardinality.ONLY_ONE:l.attr("marker-end","url("+c+"#"+m.default.ERMarkers.ONLY_ONE_END+")")}switch(t.relSpec.cardB){case s.default.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+c+"#"+m.default.ERMarkers.ZERO_OR_ONE_START+")");break;case s.default.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+c+"#"+m.default.ERMarkers.ZERO_OR_MORE_START+")");break;case s.default.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+c+"#"+m.default.ERMarkers.ONE_OR_MORE_START+")");break;case s.default.Cardinality.ONLY_ONE:l.attr("marker-start","url("+c+"#"+m.default.ERMarkers.ONLY_ONE_START+")")}var d=l.node().getTotalLength(),h=l.node().getPointAtLength(.5*d),p="rel"+y,g=e.append("text").attr("class","er relationshipLabel").attr("
/*!************************************************!*\
!*** ./src/diagrams/er/parser/erDiagram.jison ***!
\************************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[1,2],a=[1,5],n=[6,9,11,20,30],i=[1,17],r=[1,20],s=[1,24],o=[1,25],l=[1,26],c=[1,27],d=[20,27,28],u=[4,6,9,11,20,30],h=[23,24,25,26],m={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,ALPHANUM:20,cardinality:21,relType:22,ZERO_OR_ONE:23,ZERO_OR_MORE:24,ONE_OR_MORE:25,ONLY_ONE:26,NON_IDENTIFYING:27,IDENTIFYING:28,WORD:29,open_directive:30,type_directive:31,arg_directive:32,close_directive:33,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"ALPHANUM",23:"ZERO_OR_ONE",24:"ZERO_OR_MORE",25:"ONE_OR_MORE",26:"ONLY_ONE",27:"NON_IDENTIFYING",28:"IDENTIFYING",29:"WORD",30:"open_directive",31:"type_directive",32:"arg_directive",33:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[17,1],[18,3],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,a,n,i,r,s){var o=r.length-1;switch(i){case 1:break;case 3:this.$=[];break;case 4:r[o-1].push(r[o]),this.$=r[o-1];break;case 5:case 6:this.$=r[o];break;case 7:case 8:this.$=[];break;case 12:n.addEntity(r[o-4]),n.addEntity(r[o-2]),n.addRelationship(r[o-4],r[o],r[o-2],r[o-3]);break;case 13:this.$=r[o];break;case 14:this.$={cardA:r[o],relType:r[o-1],cardB:r[o-2]};break;case 15:this.$=n.Cardinality.ZERO_OR_ONE;break;case 16:this.$=n.Cardinality.ZERO_OR_MORE;break;case 17:this.$=n.Cardinality.ONE_OR_MORE;break;case 18:this.$=n.Cardinality.ONLY_ONE;break;case 19:this.$=n.Identification.NON_IDENTIFYING;break;case 20:this.$=n.Identification.IDENTIFYING;break;case 21:this.$=r[o].replace(/"/g,"");break;case 22:this.$=r[o];break;case 23:n.parseDirective("%%{","open_directive");break;case 24:n.parseDirective(r[o],"type_directive");break;case 25:r[o]=r[o].trim().replace(/'/g,'"'),n.parseDirective(r[o],"arg_directive");break;case 26:n.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:t,7:3,12:4,30:a},{1:[3]},e(n,[2,3],{5:6}),{3:7,4:t,7:3,12:4,30:a},{13:8,31:[1,9]},{31:[2,23]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,20:i,30:a},{1:[2,2]},{14:18,15:[1,19],33:r},e([15,33],[2,24]),e(n,[2,8],{1:[2,1]}),e(n,[2,4]),{7:15,10:21,12:4,17:16,20:i,30:a},e(n,[2,6]),e(n,[2,7]),e(n,[2,11]),{18:22,21:23,23:s,24:o,25:l,26:c},e([15,23,24,25,26],[2,13]),{11:[1,28]},{16:29,32:[1,30]},{11:[2,26]},e(n,[2,5]),{17:31,20:i},{22:32,27:[1,33],28:[1,34]},e(d,[2,15]),e(d,[2,16]),e(d,[2,17]),e(d,[2,18]),e(u,[2,9]),{14:35,33:r},{33:[2,25]},{15:[1,36]},{21:37,23:s,24:o,25:l,26:c},e(h,[2,19]),e(h,[2,20]),{11:[1,38]},{19:39,20:[1,41],29:[1,40]},{20:[2,14]},e(u,[2,10]),e(n,[2,12]),e(n,[2,21]),e(n,[2,22])],defaultActions:{5:[2,23],7:[2,2],20:[2,26],30:[2,25],37:[2,14]},parseError:function(e,t){if(!t.recoverable){var a=new Error(e);throw a.hash=t,a}this.trace(e)},parse:function(e){var t=this,a=[0],n=[],i=[null],r=[],s=this.table,o="",l=0,c=0,d=0,u=2,h=1,m=r.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var b=p.yylloc;r.push(b);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,w,x,_,j,z,S,C,E,A={};;){if(x=a[a.length-1],this.defaultActions[x]?_=this.defaultActions[x]:(null==k&&(k=v()),_=s[x]&&s[x][k]),void 0===_||!_.length||!_[0]){var T="";for(z in E=[],s[x])this.terminals_[z]&&z>u&&E.push("'"+this.terminals_[z]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpect
/*!***********************************!*\
!*** ./src/diagrams/er/styles.js ***!
\***********************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e){return"\n .entityBox {\n fill: ".concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n }\n\n .relationshipLabelBox {\n fill: ").concat(e.tertiaryColor,";\n opacity: 0.7;\n background-color: ").concat(e.tertiaryColor,";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(e.lineColor,";\n }\n")}},"./src/diagrams/flowchart/flowChartShapes.js":
/*!***************************************************!*\
!*** ./src/diagrams/flowchart/flowChartShapes.js ***!
\***************************************************/
/*! exports provided: addToRender, addToRenderV2, default */function(e,t,a){"use strict";a.r(t),a.d(t,"addToRender",(function(){return g})),a.d(t,"addToRenderV2",(function(){return b}));var n=a(/*! dagre-d3 */"dagre-d3"),i=a.n(n);function r(e,t,a){var n=.9*(t.width+t.height),r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],s=y(e,n,n,r);return a.intersect=function(e){return i.a.intersect.polygon(a,r,e)},s}function s(e,t,a){var n=t.height,r=n/4,s=t.width+2*r,o=[{x:r,y:0},{x:s-r,y:0},{x:s,y:-n/2},{x:s-r,y:-n},{x:r,y:-n},{x:0,y:-n/2}],l=y(e,s,n,o);return a.intersect=function(e){return i.a.intersect.polygon(a,o,e)},l}function o(e,t,a){var n=t.width,r=t.height,s=[{x:-r/2,y:0},{x:n,y:0},{x:n,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}],o=y(e,n,r,s);return a.intersect=function(e){return i.a.intersect.polygon(a,s,e)},o}function l(e,t,a){var n=t.width,r=t.height,s=[{x:-2*r/6,y:0},{x:n-r/6,y:0},{x:n+2*r/6,y:-r},{x:r/6,y:-r}],o=y(e,n,r,s);return a.intersect=function(e){return i.a.intersect.polygon(a,s,e)},o}function c(e,t,a){var n=t.width,r=t.height,s=[{x:2*r/6,y:0},{x:n+r/6,y:0},{x:n-2*r/6,y:-r},{x:-r/6,y:-r}],o=y(e,n,r,s);return a.intersect=function(e){return i.a.intersect.polygon(a,s,e)},o}function d(e,t,a){var n=t.width,r=t.height,s=[{x:-2*r/6,y:0},{x:n+2*r/6,y:0},{x:n-r/6,y:-r},{x:r/6,y:-r}],o=y(e,n,r,s);return a.intersect=function(e){return i.a.intersect.polygon(a,s,e)},o}function u(e,t,a){var n=t.width,r=t.height,s=[{x:r/6,y:0},{x:n-r/6,y:0},{x:n+2*r/6,y:-r},{x:-2*r/6,y:-r}],o=y(e,n,r,s);return a.intersect=function(e){return i.a.intersect.polygon(a,s,e)},o}function h(e,t,a){var n=t.width,r=t.height,s=[{x:0,y:0},{x:n+r/2,y:0},{x:n,y:-r/2},{x:n+r/2,y:-r},{x:0,y:-r}],o=y(e,n,r,s);return a.intersect=function(e){return i.a.intersect.polygon(a,s,e)},o}function m(e,t,a){var n=t.height,r=t.width+n/4,s=e.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-r/2).attr("y",-n/2).attr("width",r).attr("height",n);return a.intersect=function(e){return i.a.intersect.rect(a,e)},s}function p(e,t,a){var n=t.width,r=t.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],o=y(e,n,r,s);return a.intersect=function(e){return i.a.intersect.polygon(a,s,e)},o}function f(e,t,a){var n=t.width,r=n/2,s=r/(2.5+n/50),o=t.height+s,l="M 0,"+s+" a "+r+","+s+" 0,0,0 "+n+" 0 a "+r+","+s+" 0,0,0 "+-n+" 0 l 0,"+o+" a "+r+","+s+" 0,0,0 "+n+" 0 l 0,"+-o,c=e.attr("label-offset-y",s).insert("path",":first-child").attr("d",l).attr("transform","translate("+-n/2+","+-(o/2+s)+")");return a.intersect=function(e){var t=i.a.intersect.rect(a,e),n=t.x-a.x;if(0!=r&&(Math.abs(n)<a.width/2||Math.abs(n)==a.width/2&&Math.abs(t.y-a.y)>a.height/2-s)){var o=s*s*(1-n*n/(r*r));0!=o&&(o=Math.sqrt(o)),o=s-o,e.y-a.y>0&&(o=-o),t.y+=o}return t},c}function g(e){e.shapes().question=r,e.shapes().hexagon=s,e.shapes().stadium=m,e.shapes().subroutine=p,e.shapes().cylinder=f,e.shapes().rect_left_inv_arrow=o,e.shapes().lean_right=l,e.shapes().lean_left=c,e.shapes().trapezoid=d,e.shapes().inv_trapezoid=u,e.shapes().rect_right_inv_arrow=h}function b(e){e({question:r}),e({hexagon:s}),e({stadium:m}),e({subroutine:p}),e({cylinder:f}),e({rect_left_inv_arrow:o}),e({lean_right:l}),e({lean_left:c}),e({trapezoid:d}),e({inv_trapezoid:u}),e({rect_right_inv_arrow:h})}function y(e,t,a,n){return e.insert("polygon",":first-child").attr("points",n.map((function(e){return e.x+","+e.y})).join(" ")).attr("transform","translate("+-t/2+","+a/2+")")}t.default={addToRender:g,addToRenderV2:b}},"./src/diagrams/flowchart/flowDb.js":
/*!******************************************!*\
!*** ./src/diagrams/flowchart/flowDb.js ***!
\******************************************/
/*! exports provided: parseDirective, lookUpDomId, addVertex, addSingleLink, addLink, updateLinkInterpolate, updateLink, addClass, setDirection, setClass, setLink, getTooltip, setClickEvent, bindFunctions, getDirection, getVertices, getEdges, getClasses, clear, setGen, defaultStyle, addSubGraph, getDepthFirstPos, indexNodes, getSubGraphs, firstGraph, default */function(e,t,a){"use strict";a.r(t),a.d(t,"parseDirective",(function(){return _})),a.d(t,"lookUpDomId",(function(){return j})),a.d(t,"addVertex",(function(){return z})),a.d(t,"addSingleLink",(function(){return S})),a.d(t,"addLink",(function(){return C})),a.d(t,"updateLinkInterpolate",(function(){return E})),a.d(t,"updateLink",(function(){return A})),a.d(t,"addClass",(function(){return T})),a.d(t,"setDirection",(function(){return q})),a.d(t,"setClass",(function(){return M})),a.d(t,"setLink",(function(){return D})),a.d(t,"getTooltip",(function(){return N})),a.d(t,"setClickEvent",(function(){return I})),a.d(t,"bindFunctions",(function(){return B})),a.d(t,"getDirection",(function(){return L})),a.d(t,"getVertices",(function(){return P})),a.d(t,"getEdges",(function(){return F})),a.d(t,"getClasses",(function(){return R})),a.d(t,"clear",(function(){return V})),a.d(t,"setGen",(function(){return Y})),a.d(t,"defaultStyle",(function(){return H})),a.d(t,"addSubGraph",(function(){return U})),a.d(t,"getDepthFirstPos",(function(){return Z})),a.d(t,"indexNodes",(function(){return K})),a.d(t,"getSubGraphs",(function(){return J})),a.d(t,"firstGraph",(function(){return Q}));var n=a(/*! d3 */"d3"),i=a(/*! ../../utils */"./src/utils.js"),r=a(/*! ../../config */"./src/config.js"),s=a(/*! ../common/common */"./src/diagrams/common/common.js"),o=a(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),l=a(/*! ../../logger */"./src/logger.js");function c(e){return(c="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 d,u,h=0,m=r.getConfig(),p={},f=[],g=[],b=[],y={},v={},k=0,w=!0,x=[],_=function(e,t,a){o.default.parseDirective(this,e,t,a)},j=function(e){for(var t=Object.keys(p),a=0;a<t.length;a++)if(p[t[a]].id===e)return p[t[a]].domId;return e},z=function(e,t,a,n,i){var o,l=e;void 0!==l&&0!==l.trim().length&&(void 0===p[l]&&(p[l]={id:l,domId:"flowchart-"+l+"-"+h,styles:[],classes:[]}),h++,void 0!==t?(m=r.getConfig(),'"'===(o=s.default.sanitizeText(t.trim(),m))[0]&&'"'===o[o.length-1]&&(o=o.substring(1,o.length-1)),p[l].text=o):void 0===p[l].text&&(p[l].text=e),void 0!==a&&(p[l].type=a),null!=n&&n.forEach((function(e){p[l].styles.push(e)})),null!=i&&i.forEach((function(e){p[l].classes.push(e)})))},S=function(e,t,a,n){var i={start:e,end:t,type:void 0,text:""};void 0!==(n=a.text)&&(i.text=s.default.sanitizeText(n.trim(),m),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),void 0!==a&&(i.type=a.type,i.stroke=a.stroke,i.length=a.length),f.push(i)},C=function(e,t,a,n){var i,r;for(i=0;i<e.length;i++)for(r=0;r<t.length;r++)S(e[i],t[r],a,n)},E=function(e,t){e.forEach((function(e){"default"===e?f.defaultInterpolate=t:f[e].interpolate=t}))},A=function(e,t){e.forEach((function(e){"default"===e?f.defaultStyle=t:(-1===i.default.isSubstringInArray("fill",t)&&t.push("fill:none"),f[e].style=t)}))},T=function(e,t){void 0===g[e]&&(g[e]={id:e,styles:[],textStyles:[]}),null!=t&&t.forEach((function(t){if(t.match("color")){var a=t.replace("fill","bgFill").replace("color","fill");g[e].textStyles.push(a)}g[e].styles.push(t)}))},q=function(e){(d=e).match(/.*</)&&(d="RL"),d.match(/.*\^/)&&(d="BT"),d.match(/.*>/)&&(d="LR"),d.match(/.*v/)&&(d="TB")},M=function(e,t){e.split(",").forEach((function(e){var a=e;void 0!==p[a]&&p[a].classes.push(t),void 0!==y[a]&&y[a].classes.push(t)}))},O=function(e,t){e.split(",").forEach((function(e){void 0!==t&&(v["gen-1"===u?j(e):e]=s.default.sanitizeText(t,m))}))},D=function(e,t,a,n){e.split(",").forEach((function(e){void 0!==p[e]&&(p[e].link=i.default.formatUrl(t,m),p[e].linkTarget=n)})),O(e,a),M(
/*!***************************************************!*\
!*** ./src/diagrams/flowchart/flowRenderer-v2.js ***!
\***************************************************/
/*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return b})),a.d(t,"addVertices",(function(){return y})),a.d(t,"addEdges",(function(){return v})),a.d(t,"getClasses",(function(){return k})),a.d(t,"draw",(function(){return w}));var n=a(/*! graphlib */"graphlib"),i=a.n(n),r=a(/*! d3 */"d3"),s=a(/*! ./flowDb */"./src/diagrams/flowchart/flowDb.js"),o=a(/*! ./parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),l=a.n(o),c=a(/*! ../../config */"./src/config.js"),d=a(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),u=a(/*! dagre-d3/lib/label/add-html-label.js */"dagre-d3/lib/label/add-html-label.js"),h=a.n(u),m=a(/*! ../../logger */"./src/logger.js"),p=a(/*! ../common/common */"./src/diagrams/common/common.js"),f=a(/*! ../../utils */"./src/utils.js"),g={},b=function(e){for(var t=Object.keys(e),a=0;a<t.length;a++)g[t[a]]=e[t[a]]},y=function(e,t,a){var n=Object(r.select)('[id="'.concat(a,'"]'));Object.keys(e).forEach((function(a){var i=e[a],r="default";i.classes.length>0&&(r=i.classes.join(" "));var o,l=Object(f.getStylesFromArray)(i.styles),d=void 0!==i.text?i.text:i.id;if(Object(c.getConfig)().flowchart.htmlLabels){var u={label:d.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")}))};(o=h()(n,u).node()).parentNode.removeChild(o)}else{var g=document.createElementNS("http://www.w3.org/2000/svg","text");g.setAttribute("style",l.labelStyle.replace("color:","fill:"));for(var b=d.split(p.default.lineBreakRegex),y=0;y<b.length;y++){var v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=b[y],g.appendChild(v)}o=g}var k=0,w="";switch(i.type){case"round":k=5,w="rect";break;case"square":w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"odd_right":w="rect_left_inv_arrow";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"group":w="rect";break;default:w="rect"}t.setNode(i.id,{labelStyle:l.labelStyle,shape:w,labelText:d,rx:k,ry:k,class:r,style:l.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:s.default.getTooltip(i.id)||"",domId:s.default.lookUpDomId(i.id),haveCallback:i.haveCallback,width:"group"===i.type?500:void 0,type:i.type,padding:Object(c.getConfig)().flowchart.padding}),m.logger.info("setNode",{labelStyle:l.labelStyle,shape:w,labelText:d,rx:k,ry:k,class:r,style:l.style,id:i.id,domId:s.default.lookUpDomId(i.id),width:"group"===i.type?500:void 0,type:i.type,padding:Object(c.getConfig)().flowchart.padding})}))},v=function(e,t){var a,n,i=0;if(void 0!==e.defaultStyle){var s=Object(f.getStylesFromArray)(e.defaultStyle);a=s.style,n=s.labelStyle}e.forEach((function(s){i++;var o="L-"+s.start+"-"+s.end,l="LS-"+s.start,d="LE-"+s.end,u={};switch(u.minlen=s.length||1,"arrow_open"===s.type?u.arrowhead="none":u.arrowhead="normal",u.arrowTypeStart="arrow_open",u.arrowTypeEnd="arrow_open",s.type){case"double_arrow_cross":u.arrowTypeStart="arrow_cross";case"arrow_cross":u.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":u.arrowTypeStart="arrow_point";case"arrow_point":u.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":u.arrowTypeStart="arrow_circle";case"arrow_circle":u.arrowTypeEnd="arrow_circle"}var h="",m="";if(void 0!==s.style){var b=Object(f.getStylesFromArray)(s.style);h=b.style,m=b.labelStyle}else switch(s.stroke){case"normal":h="fill:none",void 0!==a&&(h=a),void 0!==n&&(m=n),u.thickness="normal",u.pattern="solid";break;case"dotted":u.thickness="normal",u.pattern="dotted";break;case"thick":u.thickness="thick",u.pattern="solid"}u.style=h,u.labelSt
/*!************************************************!*\
!*** ./src/diagrams/flowchart/flowRenderer.js ***!
\************************************************/
/*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return v})),a.d(t,"addVertices",(function(){return k})),a.d(t,"addEdges",(function(){return w})),a.d(t,"getClasses",(function(){return x})),a.d(t,"draw",(function(){return _}));var n=a(/*! graphlib */"graphlib"),i=a.n(n),r=a(/*! d3 */"d3"),s=a(/*! ./flowDb */"./src/diagrams/flowchart/flowDb.js"),o=a(/*! ./parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),l=a.n(o),c=a(/*! ../../config */"./src/config.js"),d=a(/*! dagre-d3 */"dagre-d3"),u=a.n(d),h=a(/*! dagre-d3/lib/label/add-html-label.js */"dagre-d3/lib/label/add-html-label.js"),m=a.n(h),p=a(/*! ../../logger */"./src/logger.js"),f=a(/*! ../common/common */"./src/diagrams/common/common.js"),g=a(/*! ../../utils */"./src/utils.js"),b=a(/*! ./flowChartShapes */"./src/diagrams/flowchart/flowChartShapes.js"),y={},v=function(e){for(var t=Object.keys(e),a=0;a<t.length;a++)y[t[a]]=e[t[a]]},k=function(e,t,a){var n=Object(r.select)('[id="'.concat(a,'"]'));Object.keys(e).forEach((function(a){var i=e[a],r="default";i.classes.length>0&&(r=i.classes.join(" "));var o,l=Object(g.getStylesFromArray)(i.styles),d=void 0!==i.text?i.text:i.id;if(Object(c.getConfig)().flowchart.htmlLabels){var u={label:d.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")}))};(o=m()(n,u).node()).parentNode.removeChild(o)}else{var h=document.createElementNS("http://www.w3.org/2000/svg","text");h.setAttribute("style",l.labelStyle.replace("color:","fill:"));for(var b=d.split(f.default.lineBreakRegex),y=0;y<b.length;y++){var v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=b[y],h.appendChild(v)}o=h}var k=0,w="";switch(i.type){case"round":k=5,w="rect";break;case"square":w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"odd_right":w="rect_left_inv_arrow";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"group":w="rect";break;default:w="rect"}p.logger.warn("Adding node",i.id,i.domId),t.setNode(s.default.lookUpDomId(i.id),{labelType:"svg",labelStyle:l.labelStyle,shape:w,label:o,rx:k,ry:k,class:r,style:l.style,id:s.default.lookUpDomId(i.id)})}))},w=function(e,t){var a,n,i=0;if(void 0!==e.defaultStyle){var o=Object(g.getStylesFromArray)(e.defaultStyle);a=o.style,n=o.labelStyle}e.forEach((function(o){i++;var l="L-"+o.start+"-"+o.end,d="LS-"+o.start,u="LE-"+o.end,h={};"arrow_open"===o.type?h.arrowhead="none":h.arrowhead="normal";var m="",p="";if(void 0!==o.style){var b=Object(g.getStylesFromArray)(o.style);m=b.style,p=b.labelStyle}else switch(o.stroke){case"normal":m="fill:none",void 0!==a&&(m=a),void 0!==n&&(p=n);break;case"dotted":m="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":m=" stroke-width: 3.5px;fill:none"}h.style=m,h.labelStyle=p,void 0!==o.interpolate?h.curve=Object(g.interpolateToCurve)(o.interpolate,r.curveLinear):void 0!==e.defaultInterpolate?h.curve=Object(g.interpolateToCurve)(e.defaultInterpolate,r.curveLinear):h.curve=Object(g.interpolateToCurve)(y.curve,r.curveLinear),void 0===o.text?void 0!==o.style&&(h.arrowheadStyle="fill: #333"):(h.arrowheadStyle="fill: #333",h.labelpos="c",Object(c.getConfig)().flowchart.htmlLabels?(h.labelType="html",h.label='<span id="L-'.concat(l,'" class="edgeLabel L-').concat(d,"' L-").concat(u,'">').concat(o.text,"</span>")):(h.labelType="text",h.label=o.text.replace(f.default.lineBreakRegex,"\n"),void 0===o.style&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none"),h.labelStyle=h.labelStyle.replace("color:","fill:"))),h.id=l,h.class=d+
/*!**************************************************!*\
!*** ./src/diagrams/flowchart/parser/flow.jison ***!
\**************************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[1,9],a=[1,7],n=[1,6],i=[1,8],r=[1,20,21,22,23,38,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],s=[2,10],o=[1,20],l=[1,21],c=[1,22],d=[1,23],u=[1,30],h=[1,54],m=[1,32],p=[1,33],f=[1,34],g=[1,35],b=[1,36],y=[1,48],v=[1,43],k=[1,45],w=[1,40],x=[1,44],_=[1,47],j=[1,51],z=[1,52],S=[1,53],C=[1,42],E=[1,46],A=[1,49],T=[1,50],q=[1,41],M=[1,57],O=[1,62],D=[1,20,21,22,23,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],N=[1,66],I=[1,65],B=[1,67],L=[20,21,23,69,70],P=[20,21,22,23,69,70],F=[20,21,22,23,47,69,70],R=[20,21,22,23,40,46,47,49,51,53,55,57,59,61,62,64,69,70,80,91,92,95,96,97,99,100,106,107,108,109,110,111],$=[20,21,23],V=[20,21,23,46,69,70,80,91,92,95,96,97,99,100,106,107,108,109,110,111],Y=[1,12,20,21,22,23,24,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],H=[46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],U=[1,115],W=[1,136],G=[1,137],X=[1,138],Z=[1,139],K=[1,119],J=[1,110],Q=[1,111],ee=[1,107],te=[1,131],ae=[1,132],ne=[1,133],ie=[1,134],re=[1,135],se=[1,140],oe=[1,141],le=[1,113],ce=[1,121],de=[1,124],ue=[1,122],he=[1,123],me=[1,116],pe=[1,129],fe=[1,128],ge=[1,112],be=[1,109],ye=[1,118],ve=[1,120],ke=[1,125],we=[1,126],xe=[1,127],_e=[1,130],je=[20,21,22,23,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],ze=[1,144],Se=[1,148],Ce=[1,150],Ee=[1,151],Ae=[12,21,22,24],Te=[20,21,22,23,24,26,38,40,41,42,46,50,52,54,56,58,60,61,63,65,69,70,71,75,76,77,78,79,80,81,84,91,92,95,96,97,99,100,101,102,106,107,108,109,110,111],qe=[20,21,22,23,26,46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],Me=[22,92],Oe=[1,220],De=[1,224],Ne=[1,221],Ie=[1,218],Be=[1,215],Le=[1,216],Pe=[1,217],Fe=[1,219],Re=[1,222],$e=[1,223],Ve=[1,225],Ye=[1,241],He=[20,21,23,92],Ue=[20,21,22,23,75,88,91,92,95,96,97,98,99,100,101],We={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,link:43,node:44,vertex:45,AMP:46,STYLE_SEPARATOR:47,idString:48,PS:49,PE:50,"(-":51,"-)":52,STADIUMSTART:53,STADIUMEND:54,SUBROUTINESTART:55,SUBROUTINEEND:56,CYLINDERSTART:57,CYLINDEREND:58,DIAMOND_START:59,DIAMOND_STOP:60,TAGEND:61,TRAPSTART:62,TRAPEND:63,INVTRAPSTART:64,INVTRAPEND:65,linkStatement:66,arrowText:67,TESTSTR:68,START_LINK:69,LINK:70,PIPE:71,textToken:72,STR:73,keywords:74,STYLE:75,LINKSTYLE:76,CLASSDEF:77,CLASS:78,CLICK:79,DOWN:80,UP:81,textNoTags:82,textNoTagsToken:83,DEFAULT:84,stylesOpt:85,alphaNum:86,LINK_TARGET:87,HEX:88,numList:89,INTERPOLATE:90,NUM:91,COMMA:92,style:93,styleComponent:94,ALPHA:95,COLON:96,MINUS:97,UNIT:98,BRKT:99,DOT:100,PCT:101,TAGSTART:102,alphaNumToken:103,idStringToken:104,alphaNumStatement:105,PUNCTUATION:106,UNICODE_TEXT:107,PLUS:108,EQUALS:109,MULT:110,UNDERSCORE:111,graphCodeTokens:112,ARROW_CROSS:113,ARROW_POINT:114,ARROW_CIRCLE:115,ARROW_OPEN:116,QUOTE:117,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",46:"AMP",47:"STYLE_SEPARATOR",49:"PS",50:"PE",51:"(-",52:"-)",53:"STADIUMSTART",54:"STADIUMEND",55:"SUBROUTINESTART",56:"SUBROUTINEEND",57:"CYLINDERSTART",58:"CYLINDEREND",59:"DIAMOND_START",60:"DIAMOND_STOP",61:"TAGEND",62:"TRAPSTART",63:"TRAPEND",64:"INVTRAPSTART",65:"INVTRAPEND",68:"TESTSTR",69:"START_LINK",70:"LINK",71:"PIPE",73:"STR",75:"STYLE",76:"LINKSTYLE",77:"CLASS
/*!******************************************!*\
!*** ./src/diagrams/flowchart/styles.js ***!
\******************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e){return".label {\n font-family: ".concat(e.fontFamily,";\n color: ").concat(e.nodeTextColor||e.textColor,";\n }\n\n .label text {\n fill: ").concat(e.nodeTextColor||e.textColor,";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(e.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(e.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(e.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n background-color: ").concat(e.edgeLabelBackground,";\n fill: ").concat(e.edgeLabelBackground,";\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(e.clusterBkg,";\n stroke: ").concat(e.clusterBorder,";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(e.titleColor,";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(e.fontFamily,";\n font-size: 12px;\n background: ").concat(e.tertiaryColor,";\n border: 1px solid ").concat(e.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n")}},"./src/diagrams/gantt/ganttDb.js":
/*!***************************************!*\
!*** ./src/diagrams/gantt/ganttDb.js ***!
\***************************************/
/*! exports provided: parseDirective, 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,a){"use strict";a.r(t),a.d(t,"parseDirective",(function(){return z})),a.d(t,"clear",(function(){return S})),a.d(t,"setAxisFormat",(function(){return C})),a.d(t,"getAxisFormat",(function(){return E})),a.d(t,"setTodayMarker",(function(){return A})),a.d(t,"getTodayMarker",(function(){return T})),a.d(t,"setDateFormat",(function(){return q})),a.d(t,"enableInclusiveEndDates",(function(){return M})),a.d(t,"endDatesAreInclusive",(function(){return O})),a.d(t,"getDateFormat",(function(){return D})),a.d(t,"setExcludes",(function(){return N})),a.d(t,"getExcludes",(function(){return I})),a.d(t,"setTitle",(function(){return B})),a.d(t,"getTitle",(function(){return L})),a.d(t,"addSection",(function(){return P})),a.d(t,"getSections",(function(){return F})),a.d(t,"getTasks",(function(){return R})),a.d(t,"addTask",(function(){return J})),a.d(t,"findTaskById",(function(){return Q})),a.d(t,"addTaskOrg",(function(){return ee})),a.d(t,"setLink",(function(){return ae})),a.d(t,"setClass",(function(){return ne})),a.d(t,"setClickEvent",(function(){return re})),a.d(t,"bindFunctions",(function(){return se}));var n=a(/*! moment-mini */"moment-mini"),i=a.n(n),r=a(/*! @braintree/sanitize-url */"@braintree/sanitize-url"),s=a(/*! ../../logger */"./src/logger.js"),o=a(/*! ../../config */"./src/config.js"),l=a(/*! ../../utils */"./src/utils.js"),c=a(/*! ../../mermaidAPI */"./src/mermaidAPI.js");function d(e){return function(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t<e.length;t++)a[t]=e[t];return a}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var u,h,m="",p="",f="",g=[],b="",y=[],v=[],k="",w=["active","done","crit","milestone"],x=[],_=!1,j=0,z=function(e,t,a){c.default.parseDirective(this,e,t,a)},S=function(){y=[],v=[],k="",x=[],b="",G=0,u=void 0,h=void 0,Z=[],m="",p="",f="",g=[],_=!1,j=0},C=function(e){p=e},E=function(){return p},A=function(e){f=e},T=function(){return f},q=function(e){m=e},M=function(){_=!0},O=function(){return _},D=function(){return m},N=function(e){g=e.toLowerCase().split(/[\s,]+/)},I=function(){return g},B=function(e){b=e},L=function(){return b},P=function(e){k=e,y.push(e)},F=function(){return y},R=function(){for(var e=te(),t=0;!e&&t<10;)e=te(),t++;return v=Z},$=function(e,t,a){return e.isoWeekday()>=6&&a.indexOf("weekends")>=0||a.indexOf(e.format("dddd").toLowerCase())>=0||a.indexOf(e.format(t.trim()))>=0},V=function(e,t,a){if(a.length&&!e.manualEndTime){var n=i()(e.startTime,t,!0);n.add(1,"d");var r=i()(e.endTime,t,!0),s=Y(n,r,t,a);e.endTime=r.toDate(),e.renderEndTime=s}},Y=function(e,t,a,n){for(var i=!1,r=null;e<=t;)i||(r=t.toDate()),(i=$(e,a,n))&&t.add(1,"d"),e.add(1,"d");return r},H=function(e,t,a){a=a.trim();var n=/^after\s+([\d\w- ]+)/.exec(a.trim());if(null!==n){var r=null;if(n[1].split(" ").forEach((function(e){var t=Q(e);void 0!==t&&(r?t.endTime>r.endTime&&(r=t):r=t)})),r)return r.endTime;var o=new Date;return o.setHours(0,0,0,0),o}var l=i()(a,t.trim(),!0);return l.isValid()?l.toDate():(s.logger.debug("Invalid date:"+a),s.logger.debug("With date format:"+t.trim()),new Date)},U=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()},W=function(e,t,a,n){n=n||!1,a=a.trim();var r=i()(a,t.trim(),!0);return r.isValid()?(n&&r.add(1,"d"),r.toDate()):U(/^([\d]+)([wdhms])/.exec(a.trim()),i()(e))},G=0,X=function(e){return void 0===e?"task"+(G+=1):e},Z=[],K={},J=function(e,t){var a={section:k,type:k,processed:!1,manua
/*!*********************************************!*\
!*** ./src/diagrams/gantt/ganttRenderer.js ***!
\*********************************************/
/*! exports provided: setConf, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return d})),a.d(t,"draw",(function(){return u}));var n=a(/*! d3 */"d3"),i=a(/*! ./parser/gantt */"./src/diagrams/gantt/parser/gantt.jison"),r=a(/*! ../common/common */"./src/diagrams/common/common.js"),s=a(/*! ./ganttDb */"./src/diagrams/gantt/ganttDb.js"),o=a(/*! ../../utils */"./src/utils.js");i.parser.yy=s.default;var l,c={titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"'},d=function(e){Object.keys(e).forEach((function(t){c[t]=e[t]}))},u=function(e,t){i.parser.yy.clear(),i.parser.parse(e);var a=document.getElementById(t);void 0===(l=a.parentElement.offsetWidth)&&(l=1200),void 0!==c.useWidth&&(l=c.useWidth);var d=i.parser.yy.getTasks(),u=d.length*(c.barHeight+c.barGap)+2*c.topPadding;a.setAttribute("viewBox","0 0 "+l+" "+u);for(var h=Object(n.select)('[id="'.concat(t,'"]')),m=Object(n.scaleTime)().domain([Object(n.min)(d,(function(e){return e.startTime})),Object(n.max)(d,(function(e){return e.endTime}))]).rangeRound([0,l-c.leftPadding-c.rightPadding]),p=[],f=0;f<d.length;f++)p.push(d[f].type);var g,b,y,v,k,w,x,_=p;function j(e){for(var t=e.length,a={};t;)a[e[--t]]=(a[e[t]]||0)+1;return a}p=function(e){for(var t={},a=[],n=0,i=e.length;n<i;++n)t.hasOwnProperty(e[n])||(t[e[n]]=!0,a.push(e[n]));return a}(p),d.sort((function(e,t){var a=e.startTime,n=t.startTime,i=0;return a>n?i=1:a<n&&(i=-1),i})),g=d,b=l,y=u,v=c.barHeight,k=v+c.barGap,w=c.topPadding,x=c.leftPadding,Object(n.scaleLinear)().domain([0,p.length]).range(["#00B9FA","#F95002"]).interpolate(n.interpolateHcl),function(e,t,a,r){var s=Object(n.axisBottom)(m).tickSize(-r+t+c.gridLineStartPadding).tickFormat(Object(n.timeFormat)(i.parser.yy.getAxisFormat()||c.axisFormat||"%Y-%m-%d"));h.append("g").attr("class","grid").attr("transform","translate("+e+", "+(r-50)+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em")}(x,w,0,y),function(e,t,a,n,i,r,s){h.append("g").selectAll("rect").data(e).enter().append("rect").attr("x",0).attr("y",(function(e,n){return e.order*t+a-2})).attr("width",(function(){return s-c.rightPadding/2})).attr("height",t).attr("class",(function(e){for(var t=0;t<p.length;t++)if(e.type===p[t])return"section section"+t%c.numberSectionStyles;return"section section0"}));var o=h.append("g").selectAll("rect").data(e).enter();o.append("rect").attr("id",(function(e){return e.id})).attr("rx",3).attr("ry",3).attr("x",(function(e){return e.milestone?m(e.startTime)+n+.5*(m(e.endTime)-m(e.startTime))-.5*i:m(e.startTime)+n})).attr("y",(function(e,n){return e.order*t+a})).attr("width",(function(e){return e.milestone?i:m(e.renderEndTime||e.endTime)-m(e.startTime)})).attr("height",i).attr("transform-origin",(function(e,r){return(m(e.startTime)+n+.5*(m(e.endTime)-m(e.startTime))).toString()+"px "+(r*t+a+.5*i).toString()+"px"})).attr("class",(function(e){var t="";e.classes.length>0&&(t=e.classes.join(" "));for(var a=0,n=0;n<p.length;n++)e.type===p[n]&&(a=n%c.numberSectionStyles);var i="";return e.active?e.crit?i+=" activeCrit":i=" active":e.done?i=e.crit?" doneCrit":" done":e.crit&&(i+=" crit"),0===i.length&&(i=" task"),e.milestone&&(i=" milestone "+i),i+=a,"task"+(i+=" "+t)})),o.append("text").attr("id",(function(e){return e.id+"-text"})).text((function(e){return e.task})).attr("font-size",c.fontSize).attr("x",(function(e){var t=m(e.startTime),a=m(e.renderEndTime||e.endTime);e.milestone&&(t+=.5*(m(e.endTime)-m(e.startTime))-.5*i),e.milestone&&(a=t+i);var r=this.getBBox().width;return r>a-t?a+r+1.5*c.leftPadding>s?t+n-5:a+n+5:(a-t)/2+t+n})).attr("y",(function(e,n){return e.order*t+c.barHeight/2+(c.fontSize/2-2)+a})).attr("text-height",i).attr("class",(function(e){var t=m(e.startTime),a=m(e.endTime);e.milestone&&(a=t+i);var n=this.getBBox().width,r="";e.classes.length>0&&(r=e.classes.join(" "));for(var o=0,l=0;l<p.length;l++)e.type===p[l]&&(o=l%c.numberSectionStyles);var
/*!***********************************************!*\
!*** ./src/diagrams/gantt/parser/gantt.jison ***!
\***********************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[1,3],a=[1,5],n=[7,9,11,12,13,14,15,16,17,18,20,27,32],i=[1,15],r=[1,16],s=[1,17],o=[1,18],l=[1,19],c=[1,20],d=[1,21],u=[1,23],h=[1,25],m=[1,28],p=[5,7,9,11,12,13,14,15,16,17,18,20,27,32],f={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,axisFormat:14,excludes:15,todayMarker:16,title:17,section:18,clickStatement:19,taskTxt:20,taskData:21,openDirective:22,typeDirective:23,closeDirective:24,":":25,argDirective:26,click:27,callbackname:28,callbackargs:29,href:30,clickStatementDebug:31,open_directive:32,type_directive:33,arg_directive:34,close_directive:35,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"axisFormat",15:"excludes",16:"todayMarker",17:"title",18:"section",20:"taskTxt",21:"taskData",25:":",27:"click",28:"callbackname",29:"callbackargs",30:"href",32:"open_directive",33:"type_directive",34:"arg_directive",35:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]],performAction:function(e,t,a,n,i,r,s){var o=r.length-1;switch(i){case 2:return r[o-1];case 3:this.$=[];break;case 4:r[o-1].push(r[o]),this.$=r[o-1];break;case 5:case 6:this.$=r[o];break;case 7:case 8:this.$=[];break;case 9:n.setDateFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 10:n.enableInclusiveEndDates(),this.$=r[o].substr(18);break;case 11:n.setAxisFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 12:n.setExcludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 13:n.setTodayMarker(r[o].substr(12)),this.$=r[o].substr(12);break;case 14:n.setTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 15:n.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 17:n.addTask(r[o-1],r[o]),this.$="task";break;case 21:this.$=r[o-1],n.setClickEvent(r[o-1],r[o],null);break;case 22:this.$=r[o-2],n.setClickEvent(r[o-2],r[o-1],r[o]);break;case 23:this.$=r[o-2],n.setClickEvent(r[o-2],r[o-1],null),n.setLink(r[o-2],r[o]);break;case 24:this.$=r[o-3],n.setClickEvent(r[o-3],r[o-2],r[o-1]),n.setLink(r[o-3],r[o]);break;case 25:this.$=r[o-2],n.setClickEvent(r[o-2],r[o],null),n.setLink(r[o-2],r[o-1]);break;case 26:this.$=r[o-3],n.setClickEvent(r[o-3],r[o-1],r[o]),n.setLink(r[o-3],r[o-2]);break;case 27:this.$=r[o-1],n.setLink(r[o-1],r[o]);break;case 28:case 34:this.$=r[o-1]+" "+r[o];break;case 29:case 30:case 32:this.$=r[o-2]+" "+r[o-1]+" "+r[o];break;case 31:case 33:this.$=r[o-3]+" "+r[o-2]+" "+r[o-1]+" "+r[o];break;case 35:n.parseDirective("%%{","open_directive");break;case 36:n.parseDirective(r[o],"type_directive");break;case 37:r[o]=r[o].trim().replace(/'/g,'"'),n.parseDirective(r[o],"arg_directive");break;case 38:n.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:t,22:4,32:a},{1:[3]},{3:6,4:2,5:t,22:4,32:a},e(n,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:r,14:s,15:o,16:l,17:c,18:d,19:22,20:u,22:4,27:h,32:a},{24:26,25:[1,27],35:m},e([25,35],[2,36]),e(n,[2,8],{1:[2,2]}),e(n,[2,4]),{4:24,10:29,12:i,13:r,14:s,15:o,16:l,17:c,18:d,19:22,20:u,22:4,27:h,32:a},e(n,[2,6]),e(n,[2,7]),e(n,[2,9]),e(n,[2,10]),e(n,[2,11]),e(n,[2,12]),e(n,[2,13]),e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),{21:[1,30]},e(n,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},e(n,[2,5]),e(n,[2,17]),e(n,[2,21],{29:[1,36],30:[1,37]}),e(n,[2,27],{28:[1,38]}),e(p,[2,19]),{24:39,35:m},{35:[2,37]},e(n,[2,22],{30:[1,40]}),e(n,[2,23]),e(n,[2,25],{29:[1,41]}),{11:[1,42]},e(n,[2,24]),e(n,[2,26]),e(p,[2,20])],defaultActions:{5:[2,35],6:[2,1],28:[2,38],35:[2,37]},parseError:function(e,t){if(!t.recoverable){var a=new Error(e);throw a.hash=t,a}this.tr
/*!**************************************!*\
!*** ./src/diagrams/gantt/styles.js ***!
\**************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e){return'\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: '.concat(e.sectionBkgColor,";\n }\n\n .section2 {\n fill: ").concat(e.sectionBkgColor2,";\n }\n\n .section1,\n .section3 {\n fill: ").concat(e.altSectionBkgColor,";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(e.titleColor,";\n }\n\n .sectionTitle1 {\n fill: ").concat(e.titleColor,";\n }\n\n .sectionTitle2 {\n fill: ").concat(e.titleColor,";\n }\n\n .sectionTitle3 {\n fill: ").concat(e.titleColor,";\n }\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 }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(e.gridColor,";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(e.fontFamily,";\n fill: ").concat(e.textColor,";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(e.todayLineColor,";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ").concat(e.taskTextDarkColor,";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(e.taskTextDarkColor,";\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(e.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(e.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(e.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(e.taskTextColor,";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(e.taskBkgColor,";\n stroke: ").concat(e.taskBorderColor,";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(e.taskTextOutsideColor,";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(e.taskTextOutsideColor,";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(e.activeTaskBkgColor,";\n stroke: ").concat(e.activeTaskBorderColor,";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(e.taskTextDarkColor," !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(e.doneTaskBorderColor,";\n fill: ").concat(e.doneTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(e.taskTextDarkColor," !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(e.critBorderColor,";\n fill: ").concat(e.critBkgColor,";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(e.critBorderColor,";\n fill: ").concat(e.activeTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .done
/*!*****************************************!*\
!*** ./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,a){"use strict";a.r(t),a.d(t,"setDirection",(function(){return m})),a.d(t,"setOptions",(function(){return f})),a.d(t,"getOptions",(function(){return g})),a.d(t,"commit",(function(){return b})),a.d(t,"branch",(function(){return y})),a.d(t,"merge",(function(){return v})),a.d(t,"checkout",(function(){return k})),a.d(t,"reset",(function(){return w})),a.d(t,"prettyPrint",(function(){return j})),a.d(t,"clear",(function(){return z})),a.d(t,"getBranchesAsObjArray",(function(){return S})),a.d(t,"getBranches",(function(){return C})),a.d(t,"getCommits",(function(){return E})),a.d(t,"getCommitsArray",(function(){return A})),a.d(t,"getCurrentBranch",(function(){return T})),a.d(t,"getDirection",(function(){return q})),a.d(t,"getHead",(function(){return M}));var n=a(/*! ../../logger */"./src/logger.js"),i=a(/*! ../../utils */"./src/utils.js"),r={},s=null,o={master:s},l="master",c="LR",d=0;function u(){return Object(i.random)({length:7})}function h(e,t){for(n.logger.debug("Entering isfastforwardable:",e.id,t.id);e.seq<=t.seq&&e!==t&&null!=t.parent;){if(Array.isArray(t.parent))return n.logger.debug("In merge commit:",t.parent),h(e,r[t.parent[0]])||h(e,r[t.parent[1]]);t=r[t.parent]}return n.logger.debug(e.id,t.id),e.id===t.id}var m=function(e){c=e},p={},f=function(e){n.logger.debug("options str",e),e=(e=e&&e.trim())||"{}";try{p=JSON.parse(e)}catch(e){n.logger.error("error while parsing gitGraph options",e.message)}},g=function(){return p},b=function(e){var t={id:u(),message:e,seq:d++,parent:null==s?null:s.id};s=t,r[t.id]=t,o[l]=t.id,n.logger.debug("in pushCommit "+t.id)},y=function(e){o[e]=null!=s?s.id:null,n.logger.debug("in createBranch")},v=function(e){var t=r[o[l]],a=r[o[e]];if(function(e,t){return e.seq>t.seq&&h(t,e)}(t,a))n.logger.debug("Already merged");else{if(h(t,a))o[l]=o[e],s=r[o[l]];else{var i={id:u(),message:"merged branch "+e+" into "+l,seq:d++,parent:[null==s?null:s.id,o[e]]};s=i,r[i.id]=i,o[l]=i.id}n.logger.debug(o),n.logger.debug("in mergeBranch")}},k=function(e){n.logger.debug("in checkout");var t=o[l=e];s=r[t]},w=function(e){n.logger.debug("in reset",e);var t=e.split(":")[0],a=parseInt(e.split(":")[1]),i="HEAD"===t?s:r[o[t]];for(n.logger.debug(i,a);a>0;)if(a--,!(i=r[i.parent])){var c="Critical error - unique parent commit not found during reset";throw n.logger.error(c),c}s=i,o[l]=i.id};function x(e,t,a){var n=e.indexOf(t);-1===n?e.push(a):e.splice(n,1,a)}function _(e){var t=e.reduce((function(e,t){return e.seq>t.seq?e:t}),e[0]),a="";e.forEach((function(e){a+=e===t?"\t*":"\t|"}));var i,s,l,c=[a,t.id,t.seq];for(var d in o)o[d]===t.id&&c.push(d);if(n.logger.debug(c.join(" ")),Array.isArray(t.parent)){var u=r[t.parent[0]];x(e,t,u),e.push(r[t.parent[1]])}else{if(null==t.parent)return;var h=r[t.parent];x(e,t,h)}i=e,s=function(e){return e.id},l=Object.create(null),_(e=i.reduce((function(e,t){var a=s(t);return l[a]||(l[a]=!0,e.push(t)),e}),[]))}var j=function(){n.logger.debug(r),_([A()[0]])},z=function(){r={},o={master:s=null},l="master",d=0},S=function(){var e=[];for(var t in o)e.push({name:t,commit:r[o[t]]});return e},C=function(){return o},E=function(){return r},A=function(){var e=Object.keys(r).map((function(e){return r[e]}));return e.forEach((function(e){n.logger.debug(e.id)})),e.sort((function(e,t){return t.seq-e.seq})),e},T=function(){return l},q=function(){return c},M=function(){return s};t.default={setDirection:m,setOptions:f,getOptions:g,commit:b,branch:y,merge:v,checkout:k,reset:w,prettyPrint:j,clear:z,getBranchesAsObjArray:S,getBranches:C,getCommits:E,getCommitsArray:A,getCurrentBranch:T,getDirection:q,getHead:M}},"./src/diagrams/git/gitGraphRenderer.js":
/*!**********************************************!*\
!*** ./src/diagrams/git/gitGraphRenderer.js ***!
\**********************************************/
/*! exports provided: setConf, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return m})),a.d(t,"draw",(function(){return k}));var n,i=a(/*! d3 */"d3"),r=a(/*! ./gitGraphAst */"./src/diagrams/git/gitGraphAst.js"),s=a(/*! ./parser/gitGraph */"./src/diagrams/git/parser/gitGraph.jison"),o=a.n(s),l=a(/*! ../../logger */"./src/logger.js"),c=a(/*! ../../utils */"./src/utils.js"),d={},u={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={},m=function(e){h=e};function p(e,t,a,n){var r=Object(c.interpolateToCurve)(n,i.curveBasis),s=u.branchColors[a%u.branchColors.length],o=Object(i.line)().x((function(e){return Math.round(e.x)})).y((function(e){return Math.round(e.y)})).curve(r);e.append("svg:path").attr("d",o(t)).style("stroke",s).style("stroke-width",u.lineStrokeWidth).style("fill","none")}function f(e,t){t=t||e.node().getBBox();var a=e.node().getCTM();return{left:a.e+t.x*a.a,top:a.f+t.y*a.d,width:t.width,height:t.height}}function g(e,t,a,n,i){l.logger.debug("svgDrawLineForCommits: ",t,a);var r=f(e.select("#node-"+t+" circle")),s=f(e.select("#node-"+a+" circle"));switch(n){case"LR":if(r.left-s.left>u.nodeSpacing){var o={x:r.left-u.nodeSpacing,y:s.top+s.height/2};p(e,[o,{x:s.left+s.width,y:s.top+s.height/2}],i,"linear"),p(e,[{x:r.left,y:r.top+r.height/2},{x:r.left-u.nodeSpacing/2,y:r.top+r.height/2},{x:r.left-u.nodeSpacing/2,y:o.y},o],i)}else p(e,[{x:r.left,y:r.top+r.height/2},{x:r.left-u.nodeSpacing/2,y:r.top+r.height/2},{x:r.left-u.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-r.top>u.nodeSpacing){var c={x:s.left+s.width/2,y:r.top+r.height+u.nodeSpacing};p(e,[c,{x:s.left+s.width/2,y:s.top}],i,"linear"),p(e,[{x:r.left+r.width/2,y:r.top+r.height},{x:r.left+r.width/2,y:r.top+r.height+u.nodeSpacing/2},{x:s.left+s.width/2,y:c.y-u.nodeSpacing/2},c],i)}else p(e,[{x:r.left+r.width/2,y:r.top+r.height},{x:r.left+r.width/2,y:r.top+u.nodeSpacing/2},{x:s.left+s.width/2,y:s.top-u.nodeSpacing/2},{x:s.left+s.width/2,y:s.top}],i)}}function b(e,t){return e.select(t).node().cloneNode(!0)}function y(e,t,a,i){var r,s=Object.keys(d).length;if("string"==typeof t)do{if(r=d[t],l.logger.debug("in renderCommitHistory",r.id,r.seq),e.select("#node-"+t).size()>0)return;e.append((function(){return b(e,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+r.id})).attr("transform",(function(){switch(i){case"LR":return"translate("+(r.seq*u.nodeSpacing+u.leftMargin)+", "+n*u.branchOffset+")";case"BT":return"translate("+(n*u.branchOffset+u.leftMargin)+", "+(s-r.seq)*u.nodeSpacing+")"}})).attr("fill",u.nodeFillColor).attr("stroke",u.nodeStrokeColor).attr("stroke-width",u.nodeStrokeWidth);var o=void 0;for(var c in a)if(a[c].commit===r){o=a[c];break}o&&(l.logger.debug("found branch ",o.name),e.select("#node-"+r.id+" p").append("xhtml:span").attr("class","branch-label").text(o.name+", ")),e.select("#node-"+r.id+" p").append("xhtml:span").attr("class","commit-id").text(r.id),""!==r.message&&"BT"===i&&e.select("#node-"+r.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+r.message),t=r.parent}while(t&&d[t]);Array.isArray(t)&&(l.logger.debug("found merge commmit",t),y(e,t[0],a,i),n++,y(e,t[1],a,i),n--)}function v(e,t,a,n){for(n=n||0;t.seq>0&&!t.lineDrawn;)"string"==typeof t.parent?(g(e,t.id,t.parent,a,n),t.lineDrawn=!0,t=d[t.parent]):Array.isArray(t.parent)&&(g(e,t.id,t.parent[0],a,n),g(e,t.id,t.parent[1],a,n+1),v(e,d[t.parent[1]],a,n+1),t.lineDrawn=!0,t=d[t.parent[0]])}var k=function(e,t,a){try{var s=o.a.parser;s.yy=r.default,s.yy.clear(),l.logger.debug("in gitgraph renderer",e+"\n","id:",t,a),s.parse(e+"\n"),u=Object.assign(u,h,r.default.getOptions()),l.logger.debug("effective options",u);var c=r.default.getDirection();d=r.default.getCommits();var m=r.default.getBranchesAsObjArray();"BT"===c&&(u.nodeLabel.x=m.length*u.branchOffset,u.node
/*!************************************************!*\
!*** ./src/diagrams/git/parser/gitGraph.jison ***!
\************************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[2,3],a=[1,7],n=[7,12,15,17,19,20,21],i=[7,11,12,15,17,19,20,21],r=[2,20],s=[1,32],o={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,a,n,i,r,s){var o=r.length-1;switch(i){case 1:return r[o-1];case 2:return n.setDirection(r[o-3]),r[o-1];case 4:n.setOptions(r[o-1]),this.$=r[o];break;case 5:r[o-1]+=r[o],this.$=r[o-1];break;case 7:this.$=[];break;case 8:r[o-1].push(r[o]),this.$=r[o-1];break;case 9:this.$=r[o-1];break;case 11:n.commit(r[o]);break;case 12:n.branch(r[o]);break;case 13:n.checkout(r[o]);break;case 14:n.merge(r[o]);break;case 15:n.reset(r[o]);break;case 16:this.$="";break;case 17:this.$=r[o];break;case 18:this.$=r[o-1]+":"+r[o];break;case 19:this.$=r[o-1]+":"+n.count,n.count=0;break;case 20:n.count=0;break;case 21:n.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:t,9:6,12:a},{5:[1,8]},{7:[1,9]},e(n,[2,7],{10:10,11:[1,11]}),e(i,[2,6]),{6:12,7:t,9:6,12:a},{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(n,[2,8]),{12:[1,22]},e(n,[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(n,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:r,25:31,26:s},{12:r,25:33,26:s},{12:[2,18]},{12:r,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 a=new Error(e);throw a.hash=t,a}this.trace(e)},parse:function(e){var t=this,a=[0],n=[],i=[null],r=[],s=this.table,o="",l=0,c=0,d=0,u=2,h=1,m=r.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var b=p.yylloc;r.push(b);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,w,x,_,j,z,S,C,E,A={};;){if(x=a[a.length-1],this.defaultActions[x]?_=this.defaultActions[x]:(null==k&&(k=v()),_=s[x]&&s[x][k]),void 0===_||!_.length||!_[0]){var T="";for(z in E=[],s[x])this.terminals_[z]&&z>u&&E.push("'"+this.terminals_[z]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(l+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:b,expected:E})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+k);switch(_[0]){case 1:a.push(k),i.push(p.yytext),r.push(p.yylloc),a.push(_[1]),k=null,w?(k=w,w=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,b=p.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[_[1]][1],A.$=i[i.length-S],A._$={first_line:r[r.length-(S||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(S||1)].first_column,last_column:r[r.length-1].last_column},y&&(A._$.range=[r[r.length-(S||1)].range[0],r[r.length-1].range[1]]),void 0!==(j=this.performAction.
/*!************************************!*\
!*** ./src/diagrams/git/styles.js ***!
\************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(){return"\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"}},"./src/diagrams/info/infoDb.js":
/*!*************************************!*\
!*** ./src/diagrams/info/infoDb.js ***!
\*************************************/
/*! exports provided: setMessage, getMessage, setInfo, getInfo, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setMessage",(function(){return s})),a.d(t,"getMessage",(function(){return o})),a.d(t,"setInfo",(function(){return l})),a.d(t,"getInfo",(function(){return c}));var n=a(/*! ../../logger */"./src/logger.js"),i="",r=!1,s=function(e){n.logger.debug("Setting message to: "+e),i=e},o=function(){return i},l=function(e){r=e},c=function(){return r};t.default={setMessage:s,getMessage:o,setInfo:l,getInfo:c}},"./src/diagrams/info/infoRenderer.js":
/*!*******************************************!*\
!*** ./src/diagrams/info/infoRenderer.js ***!
\*******************************************/
/*! exports provided: setConf, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return c})),a.d(t,"draw",(function(){return d}));var n=a(/*! d3 */"d3"),i=a(/*! ./infoDb */"./src/diagrams/info/infoDb.js"),r=a(/*! ./parser/info */"./src/diagrams/info/parser/info.jison"),s=a.n(r),o=a(/*! ../../logger */"./src/logger.js"),l={},c=function(e){Object.keys(e).forEach((function(t){l[t]=e[t]}))},d=function(e,t,a){try{var r=s.a.parser;r.yy=i.default,o.logger.debug("Renering info diagram\n"+e),r.parse(e),o.logger.debug("Parsed info diagram");var l=Object(n.select)("#"+t);l.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+a),l.attr("height",100),l.attr("width",400)}catch(e){o.logger.error("Error while rendering info diagram"),o.logger.error(e.message)}};t.default={setConf:c,draw:d}},"./src/diagrams/info/parser/info.jison":
/*!*********************************************!*\
!*** ./src/diagrams/info/parser/info.jison ***!
\*********************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[6,9,10],a={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,a,n,i,r,s){switch(r.length,i){case 1:return n;case 4:break;case 6:n.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 a=new Error(e);throw a.hash=t,a}this.trace(e)},parse:function(e){var t=this,a=[0],n=[],i=[null],r=[],s=this.table,o="",l=0,c=0,d=0,u=2,h=1,m=r.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var b=p.yylloc;r.push(b);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,w,x,_,j,z,S,C,E,A={};;){if(x=a[a.length-1],this.defaultActions[x]?_=this.defaultActions[x]:(null==k&&(k=v()),_=s[x]&&s[x][k]),void 0===_||!_.length||!_[0]){var T="";for(z in E=[],s[x])this.terminals_[z]&&z>u&&E.push("'"+this.terminals_[z]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(l+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:b,expected:E})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+k);switch(_[0]){case 1:a.push(k),i.push(p.yytext),r.push(p.yylloc),a.push(_[1]),k=null,w?(k=w,w=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,b=p.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[_[1]][1],A.$=i[i.length-S],A._$={first_line:r[r.length-(S||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(S||1)].first_column,last_column:r[r.length-1].last_column},y&&(A._$.range=[r[r.length-(S||1)].range[0],r[r.length-1].range[1]]),void 0!==(j=this.performAction.apply(A,[o,c,l,f.yy,_[1],i,r].concat(m))))return j;S&&(a=a.slice(0,-1*S*2),i=i.slice(0,-1*S),r=r.slice(0,-1*S)),a.push(this.productions_[_[1]][0]),i.push(A.$),r.push(A._$),C=s[a[a.length-2]][a[a.length-1]],a.push(C);break;case 3:return!0}}return!0}},n={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,a=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 n=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),a.length-1&&(this.yylineno-=a.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:a?(a.lengt
/*!*************************************!*\
!*** ./src/diagrams/info/styles.js ***!
\*************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(){return""}},"./src/diagrams/pie/parser/pie.jison":
/*!*******************************************!*\
!*** ./src/diagrams/pie/parser/pie.jison ***!
\*******************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[1,4],a=[1,5],n=[1,6],i=[1,7],r=[1,9],s=[1,10,12,19,20,21,22],o=[1,6,10,12,19,20,21,22],l=[19,20,21],c=[1,22],d=[6,19,20,21,22],u={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,NEWLINE:19,";":20,EOF:21,open_directive:22,type_directive:23,arg_directive:24,close_directive:25,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",10:"txt",11:"value",12:"title",13:"title_value",17:":",19:"NEWLINE",20:";",21:"EOF",22:"open_directive",23:"type_directive",24:"arg_directive",25:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(e,t,a,n,i,r,s){var o=r.length-1;switch(i){case 6:this.$=r[o-1];break;case 8:n.addSection(r[o-1],n.cleanupValue(r[o]));break;case 9:this.$=r[o].trim(),n.setTitle(this.$);break;case 16:n.parseDirective("%%{","open_directive");break;case 17:n.parseDirective(r[o],"type_directive");break;case 18:r[o]=r[o].trim().replace(/'/g,'"'),n.parseDirective(r[o],"arg_directive");break;case 19:n.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:t,14:8,19:a,20:n,21:i,22:r},{1:[3]},{3:10,4:2,5:3,6:t,14:8,19:a,20:n,21:i,22:r},{3:11,4:2,5:3,6:t,14:8,19:a,20:n,21:i,22:r},e(s,[2,4],{7:12}),e(o,[2,13]),e(o,[2,14]),e(o,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},e(l,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:r}),{16:20,17:[1,21],25:c},e([17,25],[2,17]),e(s,[2,5]),{4:23,19:a,20:n,21:i},{11:[1,24]},{13:[1,25]},e(l,[2,10]),e(d,[2,11]),{18:26,24:[1,27]},e(d,[2,19]),e(s,[2,6]),e(l,[2,8]),e(l,[2,9]),{16:28,25:c},{25:[2,18]},e(d,[2,12])],defaultActions:{9:[2,16],10:[2,1],11:[2,2],27:[2,18]},parseError:function(e,t){if(!t.recoverable){var a=new Error(e);throw a.hash=t,a}this.trace(e)},parse:function(e){var t=this,a=[0],n=[],i=[null],r=[],s=this.table,o="",l=0,c=0,d=0,u=2,h=1,m=r.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var b=p.yylloc;r.push(b);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,w,x,_,j,z,S,C,E,A={};;){if(x=a[a.length-1],this.defaultActions[x]?_=this.defaultActions[x]:(null==k&&(k=v()),_=s[x]&&s[x][k]),void 0===_||!_.length||!_[0]){var T="";for(z in E=[],s[x])this.terminals_[z]&&z>u&&E.push("'"+this.terminals_[z]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(l+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:b,expected:E})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+k);switch(_[0]){case 1:a.push(k),i.push(p.yytext),r.push(p.yylloc),a.push(_[1]),k=null,w?(k=w,w=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,b=p.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[_[1]][1],A.$=i[i.length-S],A._$={first_line:r[r.length-(S||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(S||1)].first_column,last_column:r[r.length-1].last_column},y&&(A._$.range=[r[r.length-(S||1)].range[0],r[r.length-1].range[1]]),void 0!==(j=this.performAction.apply(A,[o,c,l,f.yy,_[1],i,r].concat(m))))return j;S&&(a=a.slice(0,-1*S*2),i=i.slice(0,-1*S),r=r.slice(0,-1*S)),a.push(this.productions_[_[1]][0]),i.push(A.$),r.push(A._$),C=s[a[a.l
/*!***********************************!*\
!*** ./src/diagrams/pie/pieDb.js ***!
\***********************************/
/*! exports provided: parseDirective, default */function(e,t,a){"use strict";a.r(t),a.d(t,"parseDirective",(function(){return l}));var n=a(/*! ../../logger */"./src/logger.js"),i=a(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),r=a(/*! ../../config */"./src/config.js"),s={},o="",l=function(e,t,a){i.default.parseDirective(this,e,t,a)};t.default={parseDirective:l,getConfig:function(){return r.getConfig().pie},addSection:function(e,t){void 0===s[e]&&(s[e]=t,n.logger.debug("Added new section :",e))},getSections:function(){return s},cleanupValue:function(e){return":"===e.substring(0,1)?(e=e.substring(1).trim(),Number(e.trim())):Number(e.trim())},clear:function(){s={},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,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return u})),a.d(t,"draw",(function(){return h}));var n,i=a(/*! d3 */"d3"),r=a(/*! ./pieDb */"./src/diagrams/pie/pieDb.js"),s=a(/*! ./parser/pie */"./src/diagrams/pie/parser/pie.jison"),o=a.n(s),l=a(/*! ../../logger */"./src/logger.js"),c=a(/*! ../../utils */"./src/utils.js"),d={},u=function(e){Object.keys(e).forEach((function(t){d[t]=e[t]}))},h=function(e,t){try{var a=o.a.parser;a.yy=r.default,l.logger.debug("Rendering info diagram\n"+e),a.yy.clear(),a.parse(e),l.logger.debug("Parsed info diagram");var s=document.getElementById(t);void 0===(n=s.parentElement.offsetWidth)&&(n=1200),void 0!==d.useWidth&&(n=d.useWidth);var u=Object(i.select)("#"+t);Object(c.configureSvgSize)(u,450,n,d.useMaxWidth),s.setAttribute("viewBox","0 0 "+n+" 450");var h=Math.min(n,450)/2-40,m=u.append("g").attr("transform","translate("+n/2+",225)"),p=r.default.getSections(),f=0;Object.keys(p).forEach((function(e){f+=p[e]}));var g=Object(i.scaleOrdinal)().domain(p).range(i.schemeSet2),b=Object(i.pie)().value((function(e){return e.value}))(Object(i.entries)(p)),y=Object(i.arc)().innerRadius(0).outerRadius(h);m.selectAll("mySlices").data(b).enter().append("path").attr("d",y).attr("fill",(function(e){return g(e.data.key)})).attr("stroke","black").style("stroke-width","2px").style("opacity",.7),m.selectAll("mySlices").data(b).enter().append("text").text((function(e){return(e.data.value/f*100).toFixed(0)+"%"})).attr("transform",(function(e){return"translate("+y.centroid(e)+")"})).style("text-anchor","middle").attr("class","slice").style("font-size",17),m.append("text").text(a.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var v=m.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)+")"}));v.append("rect").attr("width",18).attr("height",18).style("fill",g).style("stroke",g),v.append("text").attr("x",22).attr("y",14).text((function(e){return e}))}catch(e){l.logger.error("Error while rendering info diagram"),l.logger.error(e)}};t.default={setConf:u,draw:h}},"./src/diagrams/pie/styles.js":
/*!************************************!*\
!*** ./src/diagrams/pie/styles.js ***!
\************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e){return".pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ".concat(e.taskTextDarkColor,";\n font-family: ").concat(e.fontFamily,";\n }\n .slice {\n font-family: ").concat(e.fontFamily,";\n fill: ").concat(e.textColor,";\n // fill: white;\n }\n .legend text {\n fill: ").concat(e.taskTextDarkColor,";\n font-family: ").concat(e.fontFamily,";\n font-size: 17px;\n }\n")}},"./src/diagrams/sequence/parser/sequenceDiagram.jison":
/*!************************************************************!*\
!*** ./src/diagrams/sequence/parser/sequenceDiagram.jison ***!
\************************************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[1,2],a=[1,3],n=[1,5],i=[1,7],r=[2,5],s=[1,15],o=[1,17],l=[1,18],c=[1,20],d=[1,21],u=[1,22],h=[1,24],m=[1,25],p=[1,26],f=[1,27],g=[1,28],b=[1,29],y=[1,32],v=[1,33],k=[1,36],w=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],x=[1,44],_=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],j=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],z=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],S=[46,47,48],C=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],E={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE: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:"NEWLINE",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,a,n,i,r,s){var o=r.length-1;switch(i){case 4:return n.apply(r[o]),r[o];case 5:this.$=[];break;case 6:r[o-1].push(r[o]),this.$=r[o-1];break;case 7:case 8:this.$=r[o];break;case 9:this.$=[];break;case 12:r[o-3].description=n.parseMessage(r[o-1]),this.$=r[o-3];break;case 13:this.$=r[o-1];break;case 15:n.enableSequenceNumbers();break;case 16:this.$={type:"activeStart",signalType:n.LINETYPE.ACTIVE_START,actor:r[o-1]};break;case 17:this.$={type:"activeEnd",signalType:n.LINETYPE.ACTIVE_END,actor:r[o-1]};break;case 19:this.$=[{type:"setTitle",text:r[o-1]}];break;case 20:r[o-1].unshift({type:"loopStart",loopText:n.parseMessage(r[o-2]),signalType:n.LINETYPE.LOOP_START}),r[o-1].push({type:"loopEnd",loopText:r[o-2],signalType:n.LINETYPE.LOOP_END}),this.$=r[o-1];break;case 21:r[o-1].unshift({type:"rectStart",color:n.parseMessage(r[o-2]),signalType:n.LINETYPE.RECT_START}),r[o-1].push({type:"rectEnd",color:n.parseMessage(r[o-2]),signalType:n.LINETYPE.RECT_END}),this.$=r[o-1];break;case 22:r[o-1].unshift({type:"optStart",optText:n.parseMessage(r[o-2]),signalType:n.LINETYPE.OPT_START}),r[o-1].push({type:"optEnd",optText:n.parseMessage(r[o-2]),signalType:n.LINETYPE.OPT_END}),this.$=r[o-1];break;case 23:r[o-1].unshift({type:"altStart",altText:n.parseMessage(r[o-2]),signalType:n.LINETYPE.ALT_START}),r[o-1].push({type:"altEnd",signalType:n.LINETYPE.ALT_END}),this.$=r[o-1];break;case 24:r[o-1].unshift({type:"parStart",parText:n.parseMessage(r[o-2]),signalType:n.LINETYPE.PAR_START}),r[o-1].push({type:"parEnd",signalType:n.LINETYPE.PAR_END}),this.$=r[o-1];break;case 27:this.$=r[o-3].concat([{type:"and",parText:n.parseMessage(r[o-1]),signalType:n.LINETYPE.PAR_AND},r[o]]);break;case 29:this.$=r[o-3].concat([{type:"else",altText:n.parseMessage(r[o-1]),signalType:n.LINETYPE.ALT_ELSE},r[o]]);break;case 30:this.$=[r[o-1]
/*!*********************************************!*\
!*** ./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,a){"use strict";a.r(t),a.d(t,"parseDirective",(function(){return f})),a.d(t,"addActor",(function(){return g})),a.d(t,"addMessage",(function(){return y})),a.d(t,"addSignal",(function(){return v})),a.d(t,"getMessages",(function(){return k})),a.d(t,"getActors",(function(){return w})),a.d(t,"getActor",(function(){return x})),a.d(t,"getActorKeys",(function(){return _})),a.d(t,"getTitle",(function(){return j})),a.d(t,"getTitleWrapped",(function(){return z})),a.d(t,"enableSequenceNumbers",(function(){return S})),a.d(t,"showSequenceNumbers",(function(){return C})),a.d(t,"setWrap",(function(){return E})),a.d(t,"autoWrap",(function(){return A})),a.d(t,"clear",(function(){return T})),a.d(t,"parseMessage",(function(){return q})),a.d(t,"LINETYPE",(function(){return M})),a.d(t,"ARROWTYPE",(function(){return O})),a.d(t,"PLACEMENT",(function(){return D})),a.d(t,"addNote",(function(){return N})),a.d(t,"setTitle",(function(){return I})),a.d(t,"apply",(function(){return B}));var n=a(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),i=a(/*! ../../config */"./src/config.js"),r=a(/*! ../common/common */"./src/diagrams/common/common.js"),s=a(/*! ../../logger */"./src/logger.js"),o=void 0,l={},c=[],d=[],u="",h=!1,m=!1,p=!1,f=function(e,t,a){n.default.parseDirective(this,e,t,a)},g=function(e,t,a){var n=l[e];n&&t===n.name&&null==a||(null!=a&&null!=a.text||(a={text:t,wrap:null}),l[e]={name:t,description:a.text,wrap:void 0===a.wrap&&A()||!!a.wrap,prevActor:o},o&&l[o]&&(l[o].nextActor=e),o=e)},b=function(e){var t,a=0;for(t=0;t<c.length;t++)c[t].type===M.ACTIVE_START&&c[t].from.actor===e&&a++,c[t].type===M.ACTIVE_END&&c[t].from.actor===e&&a--;return a},y=function(e,t,a,n){c.push({from:e,to:t,message:a.text,wrap:void 0===a.wrap&&A()||!!a.wrap,answer:n})},v=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},n=arguments.length>3?arguments[3]:void 0;if(n===M.ACTIVE_END){var i=b(e.actor);if(i<1){var r=new Error("Trying to inactivate an inactive participant ("+e.actor+")");throw r.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},r}}return c.push({from:e,to:t,message:a.text,wrap:void 0===a.wrap&&A()||!!a.wrap,type:n}),!0},k=function(){return c},w=function(){return l},x=function(e){return l[e]},_=function(){return Object.keys(l)},j=function(){return u},z=function(){return h},S=function(){m=!0},C=function(){return m},E=function(e){p=e},A=function(){return p},T=function(){l={},c=[]},q=function(e){var t=e.trim(),a={text:t.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null===t.match(/^[:]?(?:no)?wrap:/)?r.default.hasBreaks(t)||void 0:null!==t.match(/^[:]?wrap:/)||null===t.match(/^[:]?nowrap:/)&&void 0};return s.logger.debug("parseMessage:",a),a},M={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},O={FILLED:0,OPEN:1},D={LEFTOF:0,RIGHTOF:1,OVER:2},N=function(e,t,a){var n={actor:e,placement:t,message:a.text,wrap:void 0===a.wrap&&A()||!!a.wrap},i=[].concat(e,e);d.push(n),c.push({from:i[0],to:i[1],message:a.text,wrap:void 0===a.wrap&&A()||!!a.wrap,type:M.NOTE,placement:t})},I=function(e){u=e.text,h=void 0===e.wrap&&A()||!!e.wrap},B=function e(t){if(t instanceof Array)t.forEach((function(t){e(t)}));else switch(t.type){case"addActor":g(t.actor,t.actor,t.description);break;case"activeStart":case"activeEnd":v(t.actor,void 0,void 0,t.signalType);break;case"addNote":N(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
/*!***************************************************!*\
!*** ./src/diagrams/sequence/sequenceRenderer.js ***!
\***************************************************/
/*! exports provided: bounds, drawActors, setConf, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"bounds",(function(){return h})),a.d(t,"drawActors",(function(){return g})),a.d(t,"setConf",(function(){return b})),a.d(t,"draw",(function(){return w}));var n=a(/*! d3 */"d3"),i=a(/*! ./svgDraw */"./src/diagrams/sequence/svgDraw.js"),r=a(/*! ../../logger */"./src/logger.js"),s=a(/*! ./parser/sequenceDiagram */"./src/diagrams/sequence/parser/sequenceDiagram.jison"),o=a(/*! ../common/common */"./src/diagrams/common/common.js"),l=a(/*! ./sequenceDb */"./src/diagrams/sequence/sequenceDb.js"),c=a(/*! ../../config */"./src/config.js"),d=a(/*! ../../utils */"./src/utils.js");s.parser.yy=l.default;var u={},h={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,b(s.parser.yy.getConfig())},updateVal:function(e,t,a,n){void 0===e[t]?e[t]=a:e[t]=n(a,e[t])},updateBounds:function(e,t,a,n){var i=this,r=0;function s(s){return function(o){r++;var l=i.sequenceItems.length-r+1;i.updateVal(o,"starty",t-l*u.boxMargin,Math.min),i.updateVal(o,"stopy",n+l*u.boxMargin,Math.max),i.updateVal(h.data,"startx",e-l*u.boxMargin,Math.min),i.updateVal(h.data,"stopx",a+l*u.boxMargin,Math.max),"activation"!==s&&(i.updateVal(o,"startx",e-l*u.boxMargin,Math.min),i.updateVal(o,"stopx",a+l*u.boxMargin,Math.max),i.updateVal(h.data,"starty",t-l*u.boxMargin,Math.min),i.updateVal(h.data,"stopy",n+l*u.boxMargin,Math.max))}}this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},insert:function(e,t,a,n){var i=Math.min(e,a),r=Math.max(e,a),s=Math.min(t,n),o=Math.max(t,n);this.updateVal(h.data,"startx",i,Math.min),this.updateVal(h.data,"starty",s,Math.min),this.updateVal(h.data,"stopx",r,Math.max),this.updateVal(h.data,"stopy",o,Math.max),this.updateBounds(i,s,r,o)},newActivation:function(e,t,a){var n=a[e.from.actor],r=y(e.from.actor).length||0,s=n.x+n.width/2+(r-1)*u.activationWidth/2;this.activations.push({startx:s,starty:this.verticalPos+2,stopx:s+u.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.sect
/*!*****************************************!*\
!*** ./src/diagrams/sequence/styles.js ***!
\*****************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e){return".actor {\n stroke: ".concat(e.actorBorder,";\n fill: ").concat(e.actorBkg,";\n }\n\n text.actor > tspan {\n fill: ").concat(e.actorTextColor,";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(e.actorLineColor,";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(e.signalColor,";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(e.signalColor,";\n }\n\n #arrowhead path {\n fill: ").concat(e.signalColor,";\n stroke: ").concat(e.signalColor,";\n }\n\n .sequenceNumber {\n fill: ").concat(e.sequenceNumberColor,";\n }\n\n #sequencenumber {\n fill: ").concat(e.signalColor,";\n }\n\n #crosshead path {\n fill: ").concat(e.signalColor,";\n stroke: ").concat(e.signalColor,";\n }\n\n .messageText {\n fill: ").concat(e.signalTextColor,";\n stroke: ").concat(e.signalTextColor,";\n }\n\n .labelBox {\n stroke: ").concat(e.labelBoxBorderColor,";\n fill: ").concat(e.labelBoxBkgColor,";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(e.labelTextColor,";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(e.loopTextColor,";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(e.labelBoxBorderColor,";\n fill: ").concat(e.labelBoxBorderColor,";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(e.noteBorderColor,";\n fill: ").concat(e.noteBkgColor,";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(e.noteTextColor,";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(e.activationBkgColor,";\n stroke: ").concat(e.activationBorderColor,";\n }\n\n .activation1 {\n fill: ").concat(e.activationBkgColor,";\n stroke: ").concat(e.activationBorderColor,";\n }\n\n .activation2 {\n fill: ").concat(e.activationBkgColor,";\n stroke: ").concat(e.activationBorderColor,";\n }\n")}},"./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,a){"use strict";a.r(t),a.d(t,"drawRect",(function(){return i})),a.d(t,"drawText",(function(){return r})),a.d(t,"drawLabel",(function(){return s})),a.d(t,"drawActor",(function(){return l})),a.d(t,"anchorElement",(function(){return c})),a.d(t,"drawActivation",(function(){return d})),a.d(t,"drawLoop",(function(){return u})),a.d(t,"drawBackgroundRect",(function(){return h})),a.d(t,"insertArrowHead",(function(){return m})),a.d(t,"insertSequenceNumber",(function(){return p})),a.d(t,"insertArrowCrossHead",(function(){return f})),a.d(t,"getTextObj",(function(){return g})),a.d(t,"getNoteRect",(function(){return b}));var n=a(/*! ../common/common */"./src/diagrams/common/common.js"),i=function(e,t){var a=e.append("rect");return a.attr("x",t.x),a.attr("y",t.y),a.attr("fill",t.fill),a.attr("stroke",t.stroke),a.attr("width",t.width),a.attr("height",t.height),a.attr("rx",t.rx),a.attr("ry",t.ry),void 0!==t.class&&a.attr("class",t.class),a},r=function(e,t){var a=0,i=0,r=t.wrap?t.text.split(n.default.lineBreakRegex):[t.text.replace(n.default.lineBreakRegex," ")],s=[],o=0,l=function(){return t.y};if(void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0)switch(t.valign){case"top":case"start":l=function(){return Math.round(t.y+t.textMargin)};break;case"middle":case"center":l=function(){return Math.round(t.y+(a+i+t.textMargin)/2)};break;case"bottom":case"end":l=function(){return Math.round(t.y+(a+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;c<r.length;c++){var d=r[c];void 0!==t.textMargin&&0===t.textMargin&&void 0!==t.fontSize&&(o=c*t.fontSize);var u=e.append("text");if(u.attr("x",t.x),u.attr("y",l()),void 0!==t.anchor&&u.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),void 0!==t.fontFamily&&u.style("font-family",t.fontFamily),void 0!==t.fontSize&&u.style("font-size",t.fontSize),void 0!==t.fontWeight&&u.style("font-weight",t.fontWeight),void 0!==t.fill&&u.attr("fill",t.fill),void 0!==t.class&&u.attr("class",t.class),void 0!==t.dy?u.attr("dy",t.dy):0!==o&&u.attr("dy",o),t.tspan){var h=u.append("tspan");h.attr("x",t.x),void 0!==t.fill&&h.attr("fill",t.fill),h.text(d)}else u.text(d);void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0&&(i+=(u._groups||u)[0][0].getBBox().height,a=i),s.push(u)}return s},s=function(e,t){var a,n,i,s,o,l=e.append("polygon");return l.attr("points",(a=t.x,n=t.y,i=t.width,s=t.height,a+","+n+" "+(a+i)+","+n+" "+(a+i)+","+(n+s-(o=7))+" "+(a+i-1.2*o)+","+(n+s)+" "+a+","+(n+s))),l.attr("class","labelBox"),t.y=t.y+t.height/2,r(e,t),l},o=-1,l=function(e,t,a){var n=t.x+t.width/2,r=e.append("g");0===t.y&&(o++,r.append("line").attr("id","actor"+o).attr("x1",n).attr("y1",5).attr("x2",n).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var s=b();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(r,s),y(a)(t.description,r,s.x,s.y,s.width,s.height,{class:"actor"},a)},c=function(e){return e.append("g")},d=function(e,t,a,n,r){var s=b(),o=t.anchored;s.x=t.startx,s.y=t.starty,s.class="activation"+r%3,s.width=t.stopx-t.startx,s.height=a-t.starty,i(o,s)},u=function(e,t,a,n){var i=n.boxMargin,o=n.boxTextMargin,l=n.labelBoxHeight,c=n.labelBoxWidth,d=n.messageFontFamily,u=n.messageFontSize,h=n.messageFontWeight,m=e.append("g"),p=function(e,t,a,n
/*!****************************************!*\
!*** ./src/diagrams/state/id-cache.js ***!
\****************************************/
/*! exports provided: set, get, keys, size, default */function(e,t,a){"use strict";a.r(t),a.d(t,"set",(function(){return i})),a.d(t,"get",(function(){return r})),a.d(t,"keys",(function(){return s})),a.d(t,"size",(function(){return o}));var n={},i=function(e,t){n[e]=t},r=function(e){return n[e]},s=function(){return Object.keys(n)},o=function(){return s().length};t.default={get:r,set:i,keys:s,size:o}},"./src/diagrams/state/parser/stateDiagram.jison":
/*!******************************************************!*\
!*** ./src/diagrams/state/parser/stateDiagram.jison ***!
\******************************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[1,2],a=[1,3],n=[1,5],i=[1,7],r=[2,5],s=[1,15],o=[1,17],l=[1,19],c=[1,20],d=[1,21],u=[1,22],h=[1,28],m=[1,23],p=[1,24],f=[1,25],g=[1,26],b=[1,29],y=[1,32],v=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],k=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],w=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],x=[4,5,14,15,17,19,20,22,23,24,25,26,36,39],_={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CONCURRENT:25,note:26,notePosition:27,NOTE_TEXT:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,eol:34,";":35,EDGE_STATE:36,left_of:37,right_of:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CONCURRENT",26:"note",28:"NOTE_TEXT",32:":",35:";",36:"EDGE_STATE",37:"left_of",38:"right_of",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]],performAction:function(e,t,a,n,i,r,s){var o=r.length-1;switch(i){case 4:return n.setRootDoc(r[o]),r[o];case 5:this.$=[];break;case 6:"nl"!=r[o]&&(r[o-1].push(r[o]),this.$=r[o-1]);break;case 7:case 8:this.$=r[o];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:r[o],type:"default",description:""};break;case 11:this.$={stmt:"state",id:r[o-1],type:"default",description:n.trimColon(r[o])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:r[o-2],type:"default",description:""},state2:{stmt:"state",id:r[o],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:r[o-3],type:"default",description:""},state2:{stmt:"state",id:r[o-1],type:"default",description:""},description:r[o].substr(1).trim()};break;case 17:this.$={stmt:"state",id:r[o-3],type:"default",description:"",doc:r[o-1]};break;case 18:var l=r[o],c=r[o-2].trim();if(r[o].match(":")){var d=r[o].split(":");l=d[0],c=[c,d[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 19:this.$={stmt:"state",id:r[o-3],type:"default",description:r[o-5],doc:r[o-1]};break;case 20:this.$={stmt:"state",id:r[o],type:"fork"};break;case 21:this.$={stmt:"state",id:r[o],type:"join"};break;case 22:this.$={stmt:"state",id:n.getDividerId(),type:"divider"};break;case 23:this.$={stmt:"state",id:r[o-1].trim(),note:{position:r[o-2].trim(),text:r[o].trim()}};break;case 30:case 31:this.$=r[o];break;case 34:n.parseDirective("%%{","open_directive");break;case 35:n.parseDirective(r[o],"type_directive");break;case 36:r[o]=r[o].trim().replace(/'/g,'"'),n.parseDirective(r[o],"arg_directive");break;case 37:n.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:t,5:a,6:4,7:n,29:6,39:i},{1:[3]},{3:8,4:t,5:a,6:4,7:n,29:6,39:i},{3:9,4:t,5:a,6:4,7:n,29:6,39:i},{3:10,4:t,5:a,6:4,7:n,29:6,39:i},e([1,4,5,14,15,17,20,22,23,24,25,26,36,39],r,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:o,6:27,9:14,10:16,11:18,14:l,15:c,17:d,20:u,22:h,23:m,24:p,25:f,26:g,29:6,36:b,39:i},{31:30,32:[1,31],42:y},e([32,42],[2,35]),e(v,[2,6]),{6:27,10:33,11:18,14:l,15:c,17:d,20:u,22:h,23:m,24:p,25:f,26:g,29:6,36:b,39:i},e(v,[2,8]),e(v,[2,9]),e(v,[2,10],{12:[1,34],13:[1,35]}),e(v,[2,14]),{16:[1,36]},e(v,[2,16],{18:[1,37]}),{21:[1,38]},e(v,[2,20]),e(v,[2,21]),e(v,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},e(v,[2,25]),e(k,[2,30]),e(k,[2,31]),e(w,[2,26
/*!**************************************!*\
!*** ./src/diagrams/state/shapes.js ***!
\**************************************/
/*! exports provided: drawStartState, drawDivider, drawSimpleState, drawDescrState, addTitleAndBox, drawText, drawNote, drawState, drawEdge */function(e,t,a){"use strict";a.r(t),a.d(t,"drawStartState",(function(){return d})),a.d(t,"drawDivider",(function(){return u})),a.d(t,"drawSimpleState",(function(){return h})),a.d(t,"drawDescrState",(function(){return m})),a.d(t,"addTitleAndBox",(function(){return p})),a.d(t,"drawText",(function(){return f})),a.d(t,"drawNote",(function(){return g})),a.d(t,"drawState",(function(){return b})),a.d(t,"drawEdge",(function(){return v}));var n=a(/*! d3 */"d3"),i=a(/*! ./id-cache.js */"./src/diagrams/state/id-cache.js"),r=a(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),s=a(/*! ../../utils */"./src/utils.js"),o=a(/*! ../common/common */"./src/diagrams/common/common.js"),l=a(/*! ../../config */"./src/config.js"),c=a(/*! ../../logger */"./src/logger.js"),d=function(e){return e.append("circle").attr("class","start-state").attr("r",Object(l.getConfig)().state.sizeUnit).attr("cx",Object(l.getConfig)().state.padding+Object(l.getConfig)().state.sizeUnit).attr("cy",Object(l.getConfig)().state.padding+Object(l.getConfig)().state.sizeUnit)},u=function(e){return e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Object(l.getConfig)().state.textHeight).attr("class","divider").attr("x2",2*Object(l.getConfig)().state.textHeight).attr("y1",0).attr("y2",0)},h=function(e,t){var a=e.append("text").attr("x",2*Object(l.getConfig)().state.padding).attr("y",Object(l.getConfig)().state.textHeight+2*Object(l.getConfig)().state.padding).attr("font-size",Object(l.getConfig)().state.fontSize).attr("class","state-title").text(t.id),n=a.node().getBBox();return e.insert("rect",":first-child").attr("x",Object(l.getConfig)().state.padding).attr("y",Object(l.getConfig)().state.padding).attr("width",n.width+2*Object(l.getConfig)().state.padding).attr("height",n.height+2*Object(l.getConfig)().state.padding).attr("rx",Object(l.getConfig)().state.radius),a},m=function(e,t){var a=e.append("text").attr("x",2*Object(l.getConfig)().state.padding).attr("y",Object(l.getConfig)().state.textHeight+1.3*Object(l.getConfig)().state.padding).attr("font-size",Object(l.getConfig)().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),n=a.height,i=e.append("text").attr("x",Object(l.getConfig)().state.padding).attr("y",n+.4*Object(l.getConfig)().state.padding+Object(l.getConfig)().state.dividerMargin+Object(l.getConfig)().state.textHeight).attr("class","state-description"),r=!0,s=!0;t.descriptions.forEach((function(e){r||(function(e,t,a){var n=e.append("tspan").attr("x",2*Object(l.getConfig)().state.padding).text(t);a||n.attr("dy",Object(l.getConfig)().state.textHeight)}(i,e,s),s=!1),r=!1}));var o=e.append("line").attr("x1",Object(l.getConfig)().state.padding).attr("y1",Object(l.getConfig)().state.padding+n+Object(l.getConfig)().state.dividerMargin/2).attr("y2",Object(l.getConfig)().state.padding+n+Object(l.getConfig)().state.dividerMargin/2).attr("class","descr-divider"),c=i.node().getBBox(),d=Math.max(c.width,a.width);return o.attr("x2",d+3*Object(l.getConfig)().state.padding),e.insert("rect",":first-child").attr("x",Object(l.getConfig)().state.padding).attr("y",Object(l.getConfig)().state.padding).attr("width",d+2*Object(l.getConfig)().state.padding).attr("height",c.height+n+2*Object(l.getConfig)().state.padding).attr("rx",Object(l.getConfig)().state.radius),e},p=function(e,t,a){var n,i=Object(l.getConfig)().state.padding,r=2*Object(l.getConfig)().state.padding,s=e.node().getBBox(),o=s.width,c=s.x,d=e.append("text").attr("x",0).attr("y",Object(l.getConfig)().state.titleShift).attr("font-size",Object(l.getConfig)().state.fontSize).attr("class","state-title").text(t.id),u=d.node().getBBox().width+r,h=Math.max(u,o);h===o&&(h+=r);var m=e.node().getBBox();t.doc,n=c-i,u>o&&(n=(o-h)/2+i),Math.abs(c-m.x)<i&&u>o&&(n=c-(u-o)/2);var p=1-Object(l.getConfig)().state.textHeight;return e.insert("rect",":first-child").attr("x",n).attr("y",p).attr("class",a?"alt-composit":"composit").attr("w
/*!***************************************!*\
!*** ./src/diagrams/state/stateDb.js ***!
\***************************************/
/*! exports provided: parseDirective, addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */function(e,t,a){"use strict";a.r(t),a.d(t,"parseDirective",(function(){return d})),a.d(t,"addState",(function(){return p})),a.d(t,"clear",(function(){return f})),a.d(t,"getState",(function(){return g})),a.d(t,"getStates",(function(){return b})),a.d(t,"logDocuments",(function(){return y})),a.d(t,"getRelations",(function(){return v})),a.d(t,"addRelation",(function(){return k})),a.d(t,"cleanupLabel",(function(){return x})),a.d(t,"lineType",(function(){return _})),a.d(t,"relationType",(function(){return S}));var n=a(/*! ../../logger */"./src/logger.js"),i=a(/*! ../../utils */"./src/utils.js"),r=a(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),s=a(/*! ../../config */"./src/config.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 l=function(e){return JSON.parse(JSON.stringify(e))},c=[],d=function(e,t,a){r.default.parseDirective(this,e,t,a)},u={root:{relations:[],states:{},documents:{}}},h=u.root,m=0,p=function(e,t,a,i,r){void 0===h.states[e]?h.states[e]={id:e,descriptions:[],type:t,doc:a,note:r}:(h.states[e].doc||(h.states[e].doc=a),h.states[e].type||(h.states[e].type=t)),i&&(n.logger.info("Adding state ",e,i),"string"==typeof i&&w(e,i.trim()),"object"===o(i)&&i.forEach((function(t){return w(e,t.trim())}))),r&&(h.states[e].note=r)},f=function(){h=(u={root:{relations:[],states:{},documents:{}}}).root,h=u.root,m=0,z=[]},g=function(e){return h.states[e]},b=function(){return h.states},y=function(){n.logger.info("Documents = ",u)},v=function(){return h.relations},k=function(e,t,a){var n=e,i=t,r="default",s="default";"[*]"===e&&(n="start"+ ++m,r="start"),"[*]"===t&&(i="end"+m,s="end"),p(n,r),p(i,s),h.relations.push({id1:n,id2:i,title:a})},w=function(e,t){var a=h.states[e],n=t;":"===n[0]&&(n=n.substr(1).trim()),a.descriptions.push(n)},x=function(e){return":"===e.substring(0,1)?e.substr(2).trim():e.trim()},_={LINE:0,DOTTED_LINE:1},j=0,z=[],S={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3};t.default={parseDirective:d,getConfig:function(){return s.getConfig().state},addState:p,clear:f,getState:g,getStates:b,getRelations:v,getClasses:function(){return z},getDirection:function(){return"TB"},addRelation:k,getDividerId:function(){return"divider-id-"+ ++j},cleanupLabel:x,lineType:_,relationType:S,logDocuments:y,getRootDoc:function(){return c},setRootDoc:function(e){n.logger.info("Setting root doc",e),c=e},getRootDocV2:function(){return function e(t,a,n){if("relation"===a.stmt)e(t,a.state1,!0),e(t,a.state2,!1);else if("state"===a.stmt&&"[*]"===a.id&&(a.id=n?t.id+"_start":t.id+"_end",a.start=n),a.doc){var r=[],s=0,o=[];for(s=0;s<a.doc.length;s++)if("divider"===a.doc[s].type){var c=l(a.doc[s]);c.doc=l(o),r.push(c),o=[]}else o.push(a.doc[s]);if(r.length>0&&o.length>0){var d={stmt:"state",id:Object(i.generateId)(),type:"divider",doc:l(o)};r.push(l(d)),a.doc=r}a.doc.forEach((function(t){return e(a,t,!0)}))}}({id:"root"},{id:"root",doc:c},!0),{id:"root",doc:c}},extract:function(e){var t;t=e.doc?e.doc:e,n.logger.info(t),f(),n.logger.info("Extract",t),t.forEach((function(e){"state"===e.stmt&&p(e.id,e.type,e.doc,e.description,e.note),"relation"===e.stmt&&k(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,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return p})),a.d(t,"getClasses",(function(){return g})),a.d(t,"draw",(function(){return k}));var n=a(/*! graphlib */"graphlib"),i=a.n(n),r=a(/*! d3 */"d3"),s=a(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),o=a(/*! ./parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),l=a.n(o),c=a(/*! ../../config */"./src/config.js"),d=a(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),u=a(/*! ../../logger */"./src/logger.js"),h=a(/*! ../../utils */"./src/utils.js"),m={},p=function(e){for(var t=Object.keys(e),a=0;a<t.length;a++)m[t[a]]=e[t[a]]},f={},g=function(e){u.logger.trace("Extracting classes"),s.default.clear();var t=l.a.parser;return t.yy=s.default,t.parse(e),s.default.getClasses()},b=function(e,t,a,n){if("root"!==a.id){var i="rect";!0===a.start&&(i="start"),!1===a.start&&(i="end"),"default"!==a.type&&(i=a.type),f[a.id]||(f[a.id]={id:a.id,shape:i,description:a.id,classes:"statediagram-state"}),a.description&&(Array.isArray(f[a.id].description)?(f[a.id].shape="rectWithTitle",f[a.id].description.push(a.description)):f[a.id].description.length>0?(f[a.id].shape="rectWithTitle",f[a.id].description===a.id?f[a.id].description=[a.description]:f[a.id].description=[f[a.id].description,a.description]):(f[a.id].shape="rect",f[a.id].description=a.description)),!f[a.id].type&&a.doc&&(u.logger.info("Setting cluser for ",a.id),f[a.id].type="group",f[a.id].shape="divider"===a.type?"divider":"roundedWithTitle",f[a.id].classes=f[a.id].classes+" "+(n?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var r={labelStyle:"",shape:f[a.id].shape,labelText:f[a.id].description,classes:f[a.id].classes,style:"",id:a.id,domId:"state-"+a.id+"-"+y,type:f[a.id].type,padding:15};if(a.note){var s={labelStyle:"",shape:"note",labelText:a.note.text,classes:"statediagram-note",style:"",id:a.id+"----note",domId:"state-"+a.id+"----note-"+y,type:f[a.id].type,padding:15},o={labelStyle:"",shape:"noteGroup",labelText:a.note.text,classes:f[a.id].classes,style:"",id:a.id+"----parent",domId:"state-"+a.id+"----parent-"+y,type:"group",padding:0};y++,e.setNode(a.id+"----parent",o),e.setNode(s.id,s),e.setNode(a.id,r),e.setParent(a.id,a.id+"----parent"),e.setParent(s.id,a.id+"----parent");var l=a.id,c=s.id;"left of"===a.note.position&&(l=s.id,c=a.id),e.setEdge(l,c,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else e.setNode(a.id,r)}t&&"root"!==t.id&&(u.logger.info("Setting node ",a.id," to be child of its parent ",t.id),e.setParent(a.id,t.id)),a.doc&&(u.logger.info("Adding nodes children "),v(e,a,a.doc,!n))},y=0,v=function(e,t,a,n){y=0,u.logger.trace("items",a),a.forEach((function(a){if("state"===a.stmt||"default"===a.stmt)b(e,t,a,n);else if("relation"===a.stmt){b(e,t,a.state1,n),b(e,t,a.state2,n);var i={id:"edge"+y,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:a.description,arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},r=a.state1.id,s=a.state2.id;e.setEdge(r,s,i,y),y++}}))},k=function(e,t){u.logger.info("Drawing state diagram (v2)",t),s.default.clear(),f={};var a=l.a.parser;a.yy=s.default,a.parse(e);var n=s.default.getDirection();void 0===n&&(n="LR");var o=Object(c.getConfig)().state,m=o.nodeSpacing||50,p=o.rankSpacing||50,g=new i.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB",nodesep:m,ranksep:p,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));u.logger.info(s.default.getRootDocV2()),s.default.extract(s.default.getRootDocV2()),u.logger.info(s.default.getRootDocV2()),b(g,void 0,s.default.getRootDocV2(),!0);var y=Object(r.select)('[id="'.concat(t,'"]')),v=Object(r.select)("#"+t+" g");Object(d.render)(v,g,["barb"],"statediagram",t);var k=y.node().getBBox(),w=k.width+16,x=k.height+16;y.attr("class","statediagram");var _=y.node().getBBox();Object(h.configureSv
/*!*********************************************!*\
!*** ./src/diagrams/state/stateRenderer.js ***!
\*********************************************/
/*! exports provided: setConf, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return b})),a.d(t,"draw",(function(){return y}));var n,i=a(/*! d3 */"d3"),r=a(/*! dagre */"dagre"),s=a.n(r),o=a(/*! graphlib */"graphlib"),l=a.n(o),c=a(/*! ../../logger */"./src/logger.js"),d=a(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),u=a(/*! ../common/common */"./src/diagrams/common/common.js"),h=a(/*! ./parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),m=a(/*! ./shapes */"./src/diagrams/state/shapes.js"),p=a(/*! ../../config */"./src/config.js"),f=a(/*! ../../utils */"./src/utils.js");h.parser.yy=d.default;var g={},b=function(){},y=function(e,t){n=Object(p.getConfig)().state,h.parser.yy.clear(),h.parser.parse(e),c.logger.debug("Rendering diagram "+e);var a=Object(i.select)("[id='".concat(t,"']"));a.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new l.a.Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));var r=d.default.getRootDoc();v(r,a,void 0,!1);var s=n.padding,o=a.node().getBBox(),u=o.width+2*s,m=o.height+2*s,g=1.75*u;Object(f.configureSvgSize)(a,m,g,n.useMaxWidth),a.attr("viewBox","".concat(o.x-n.padding," ").concat(o.y-n.padding," ")+u+" "+m)},v=function e(t,a,r,o){var h,p=new l.a.Graph({compound:!0,multigraph:!0}),f=!0;for(h=0;h<t.length;h++)if("relation"===t[h].stmt){f=!1;break}r?p.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:f?1:n.edgeLengthFactor,nodeSep:f?1:50,isMultiGraph:!0}):p.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:f?1:n.edgeLengthFactor,nodeSep:f?1:50,ranker:"tight-tree",isMultiGraph:!0}),p.setDefaultEdgeLabel((function(){return{}})),d.default.extract(t);for(var b=d.default.getStates(),y=d.default.getRelations(),v=Object.keys(b),k=0;k<v.length;k++){var w=b[v[k]];r&&(w.parentId=r);var x=void 0;if(w.doc){var _=a.append("g").attr("id",w.id).attr("class","stateGroup");x=e(w.doc,_,w.id,!o);var j=(_=Object(m.addTitleAndBox)(_,w,o)).node().getBBox();x.width=j.width,x.height=j.height+n.padding/2,g[w.id]={y:n.compositTitleSize}}else x=Object(m.drawState)(a,w,p);if(w.note){var z={descriptions:[],id:w.id+"-note",note:w.note,type:"note"},S=Object(m.drawState)(a,z,p);"left of"===w.note.position?(p.setNode(x.id+"-note",S),p.setNode(x.id,x)):(p.setNode(x.id,x),p.setNode(x.id+"-note",S)),p.setParent(x.id,x.id+"-group"),p.setParent(x.id+"-note",x.id+"-group")}else p.setNode(x.id,x)}c.logger.debug("Count=",p.nodeCount(),p);var C=0;y.forEach((function(e){var t;C++,c.logger.debug("Setting edge",e),p.setEdge(e.id1,e.id2,{relation:e,width:(t=e.title,t?t.length*n.fontSizeFactor:1),height:n.labelHeight*u.default.getRows(e.title).length,labelpos:"c"},"id"+C)})),s.a.layout(p),c.logger.debug("Graph after layout",p.nodes());var E=a.node();p.nodes().forEach((function(e){void 0!==e&&void 0!==p.node(e)?(c.logger.warn("Node "+e+": "+JSON.stringify(p.node(e))),Object(i.select)("#"+E.id+" #"+e).attr("transform","translate("+(p.node(e).x-p.node(e).width/2)+","+(p.node(e).y+(g[e]?g[e].y:0)-p.node(e).height/2)+" )"),Object(i.select)("#"+E.id+" #"+e).attr("data-x-shift",p.node(e).x-p.node(e).width/2),document.querySelectorAll("#"+E.id+" #"+e+" .divider").forEach((function(e){var t=e.parentElement,a=0,n=0;t&&(t.parentElement&&(a=t.parentElement.getBBox().width),n=parseInt(t.getAttribute("data-x-shift"),10),Number.isNaN(n)&&(n=0)),e.setAttribute("x1",0-n+8),e.setAttribute("x2",a-n-8)}))):c.logger.debug("No Node "+e+": "+JSON.stringify(p.node(e)))}));var A=E.getBBox();p.edges().forEach((function(e){void 0!==e&&void 0!==p.edge(e)&&(c.logger.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(p.edge(e))),Object(m.drawEdge)(a,p.edge(e),p.edge(e).relation))})),A=E.getBBox();var T={id:r||"root",label:r||"root",width:0,height:0};return T.width=A.width+2*n.padding,T.height=A.height+2*n.padding,c.logger.debug("Doc rendered",T,p),T};t.default={setConf:b,draw:y}},"
/*!**************************************!*\
!*** ./src/diagrams/state/styles.js ***!
\**************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e){return"g.stateGroup text {\n fill: ".concat(e.nodeBorder,";\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ").concat(e.textColor,";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(e.labelColor,";\n}\n\ng.stateGroup rect {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n}\n\ng.stateGroup line {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(e.background,";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(e.noteBorderColor,";\n fill: ").concat(e.noteBkgColor,";\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(e.mainBkg,";\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ").concat(e.tertiaryColor,";\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ").concat(e.tertiaryTextColor,";\n}\n.label div .edgeLabel {\n color: ").concat(e.tertiaryTextColor,";\n}\n\n.stateLabel text {\n fill: ").concat(e.labelColor,";\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ").concat(e.lineColor,";\n stroke: black;\n}\n.node circle.state-end {\n fill: ").concat(e.primaryBorderColor,";\n stroke: ").concat(e.background,";\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ").concat(e.background,";\n // stroke: ").concat(e.background,";\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(e.lineColor,";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(e.textColor,";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(e.nodeBorder,";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(e.background,";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\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: ").concat(e.altBackground?e.altBackground:"#efefef",";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(e.noteBkgColor,";\n stroke: ").concat(e.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(e.noteBkgColor,";\n stroke: ").concat(e.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ").concat(e.noteTextColor,";\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(e.noteTextColor,";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(e.lineColor,";\n stroke: ").concat(e.lineColor,";\n stroke-width: 1;\n}\n")}},"./src/diagrams/user-journey/journeyDb.js":
/*!************************************************!*\
!*** ./src/diagrams/user-journey/journeyDb.js ***!
\************************************************/
/*! exports provided: parseDirective, clear, setTitle, getTitle, addSection, getSections, getTasks, addTask, addTaskOrg, default */function(e,t,a){"use strict";a.r(t),a.d(t,"parseDirective",(function(){return u})),a.d(t,"clear",(function(){return h})),a.d(t,"setTitle",(function(){return m})),a.d(t,"getTitle",(function(){return p})),a.d(t,"addSection",(function(){return f})),a.d(t,"getSections",(function(){return g})),a.d(t,"getTasks",(function(){return b})),a.d(t,"addTask",(function(){return y})),a.d(t,"addTaskOrg",(function(){return v}));var n=a(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),i=a(/*! ../../config */"./src/config.js");function r(e){return function(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t<e.length;t++)a[t]=e[t];return a}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s="",o="",l=[],c=[],d=[],u=function(e,t,a){n.default.parseDirective(this,e,t,a)},h=function(){l.length=0,c.length=0,o="",s="",d.length=0},m=function(e){s=e},p=function(){return s},f=function(e){o=e,l.push(e)},g=function(){return l},b=function(){for(var e=k(),t=0;!e&&t<100;)e=k(),t++;return c.push.apply(c,d),c},y=function(e,t){var a=t.substr(1).split(":"),n=0,i=[];1===a.length?(n=Number(a[0]),i=[]):(n=Number(a[0]),i=a[1].split(","));var r=i.map((function(e){return e.trim()})),s={section:o,type:o,people:r,task:e,score:n};d.push(s)},v=function(e){var t={section:o,type:o,description:e,task:e,classes:[]};c.push(t)},k=function(){for(var e=!0,t=0;t<d.length;t++)d[t].processed,e=e&&d[t].processed;return e};t.default={parseDirective:u,getConfig:function(){return i.getConfig().journey},clear:h,setTitle:m,getTitle:p,addSection:f,getSections:g,getTasks:b,addTask:y,addTaskOrg:v,getActors:function(){return e=[],c.forEach((function(t){t.people&&e.push.apply(e,r(t.people))})),r(new Set(e)).sort();var e}}},"./src/diagrams/user-journey/journeyRenderer.js":
/*!******************************************************!*\
!*** ./src/diagrams/user-journey/journeyRenderer.js ***!
\******************************************************/
/*! exports provided: setConf, draw, bounds, drawTasks, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return c})),a.d(t,"draw",(function(){return h})),a.d(t,"bounds",(function(){return m})),a.d(t,"drawTasks",(function(){return g}));var n=a(/*! d3 */"d3"),i=a(/*! ./parser/journey */"./src/diagrams/user-journey/parser/journey.jison"),r=a(/*! ./journeyDb */"./src/diagrams/user-journey/journeyDb.js"),s=a(/*! ./svgDraw */"./src/diagrams/user-journey/svgDraw.js"),o=a(/*! ../../utils */"./src/utils.js");i.parser.yy=r.default;var l={leftMargin:150,diagramMarginX:50,diagramMarginY:20,taskMargin:50,width:150,height:50,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},c=function(e){Object.keys(e).forEach((function(t){l[t]=e[t]}))},d={},u=l.leftMargin,h=function(e,t){i.parser.yy.clear(),i.parser.parse(e+"\n"),m.init();var a=Object(n.select)("#"+t);a.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),s.default.initGraphics(a);var r=i.parser.yy.getTasks(),c=i.parser.yy.getTitle(),h=i.parser.yy.getActors();for(var p in d)delete d[p];var f=0;h.forEach((function(e){d[e]=l.actorColours[f%l.actorColours.length],f++})),function(e){var t=60;Object.keys(d).forEach((function(a){var n=d[a],i={cx:20,cy:t,r:7,fill:n,stroke:"#000"};s.default.drawCircle(e,i);var r={x:40,y:t+7,fill:"#666",text:a,textMargin:5|l.boxTextMargin};s.default.drawText(e,r),t+=20}))}(a),m.insert(0,0,u,50*Object.keys(d).length),g(a,r,0);var b=m.getBounds();c&&a.append("text").text(c).attr("x",u).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var y=b.stopy-b.starty+2*l.diagramMarginY,v=u+b.stopx+2*l.diagramMarginX;Object(o.configureSvgSize)(a,y,v,l.useMaxWidth),a.append("line").attr("x1",u).attr("y1",4*l.height).attr("x2",v-u-4).attr("y2",4*l.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var k=c?70:0;a.attr("viewBox","".concat(b.startx," -25 ").concat(v," ").concat(y+k)),a.attr("preserveAspectRatio","xMinYMin meet")},m={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(e,t,a,n){void 0===e[t]?e[t]=a:e[t]=n(a,e[t])},updateBounds:function(e,t,a,n){var i,r=this,s=0;this.sequenceItems.forEach((function(o){s++;var c=r.sequenceItems.length-s+1;r.updateVal(o,"starty",t-c*l.boxMargin,Math.min),r.updateVal(o,"stopy",n+c*l.boxMargin,Math.max),r.updateVal(m.data,"startx",e-c*l.boxMargin,Math.min),r.updateVal(m.data,"stopx",a+c*l.boxMargin,Math.max),"activation"!==i&&(r.updateVal(o,"startx",e-c*l.boxMargin,Math.min),r.updateVal(o,"stopx",a+c*l.boxMargin,Math.max),r.updateVal(m.data,"starty",t-c*l.boxMargin,Math.min),r.updateVal(m.data,"stopy",n+c*l.boxMargin,Math.max))}))},insert:function(e,t,a,n){var i=Math.min(e,a),r=Math.max(e,a),s=Math.min(t,n),o=Math.max(t,n);this.updateVal(m.data,"startx",i,Math.min),this.updateVal(m.data,"starty",s,Math.min),this.updateVal(m.data,"stopx",r,Math.max),this.updateVal(m.data,"stopy",o,Math.max),this.updateBounds(i,s,r,o)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},p=l.sectionFills,f=l.sectionColours,g=function(e,t,a){for(var n="",i=a+(2*l.height+l.diagramMarginY),r=0,o="#CCC",c="black",h=0,g=0;g<t.length;g++){var b=t[g];if(n!==b.section){o=p[r%p.length],h=r%p.length,c=f[r%f.length];var y={x:g*l.taskMargin+g*l.width+u,y:50,text:b.section,fill:o,num:h,colour:c};s.default.drawSection(e,y,l),n=b.section,r++}var v=b.people.reduce((function(e,t){return d[t]&&(e[t]=d[t]),e}),{});b.x=g*l.taskMargin+g*l.width+u,b.y=i,b.wid
/*!********************************************************!*\
!*** ./src/diagrams/user-journey/parser/journey.jison ***!
\********************************************************/
/*! no static exports found */function(e,t,a){(function(e,n){var i=function(){var e=function(e,t,a,n){for(a=a||{},n=e.length;n--;a[e[n]]=t);return a},t=[1,2],a=[1,5],n=[6,9,11,17,18,19,21],i=[1,15],r=[1,16],s=[1,17],o=[1,21],l=[4,6,9,11,17,18,19,21],c={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,a,n,i,r,s){var o=r.length-1;switch(i){case 1:return r[o-1];case 3:this.$=[];break;case 4:r[o-1].push(r[o]),this.$=r[o-1];break;case 5:case 6:this.$=r[o];break;case 7:case 8:this.$=[];break;case 11:n.setTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 12:n.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 13:n.addTask(r[o-1],r[o]),this.$="task";break;case 15:n.parseDirective("%%{","open_directive");break;case 16:n.parseDirective(r[o],"type_directive");break;case 17:r[o]=r[o].trim().replace(/'/g,'"'),n.parseDirective(r[o],"arg_directive");break;case 18:n.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:t,7:3,12:4,21:a},{1:[3]},e(n,[2,3],{5:6}),{3:7,4:t,7:3,12:4,21:a},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:r,19:s,21:a},{1:[2,2]},{14:19,15:[1,20],24:o},e([15,24],[2,16]),e(n,[2,8],{1:[2,1]}),e(n,[2,4]),{7:18,10:22,12:4,17:i,18:r,19:s,21:a},e(n,[2,6]),e(n,[2,7]),e(n,[2,11]),e(n,[2,12]),{20:[1,23]},e(n,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},e(n,[2,5]),e(n,[2,13]),e(l,[2,9]),{14:27,24:o},{24:[2,17]},{11:[1,28]},e(l,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(e,t){if(!t.recoverable){var a=new Error(e);throw a.hash=t,a}this.trace(e)},parse:function(e){var t=this,a=[0],n=[],i=[null],r=[],s=this.table,o="",l=0,c=0,d=0,u=2,h=1,m=r.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var b=p.yylloc;r.push(b);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=n.pop()||p.lex()||h)&&(e instanceof Array&&(e=(n=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,w,x,_,j,z,S,C,E,A={};;){if(x=a[a.length-1],this.defaultActions[x]?_=this.defaultActions[x]:(null==k&&(k=v()),_=s[x]&&s[x][k]),void 0===_||!_.length||!_[0]){var T="";for(z in E=[],s[x])this.terminals_[z]&&z>u&&E.push("'"+this.terminals_[z]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(l+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:b,expected:E})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+k);switch(_[0]){case 1:a.push(k),i.push(p.yytext),r.push(p.yylloc),a.push(_[1]),k=null,w?(k=w,w=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,b=p.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[_[1]][1],A.$=i[i.length-S],A._$={first_line:r[r.length-(S||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(S||1)].first_column,last_column:r[r.length-1].last_column},y&&(A._$.range=[r[r.length-(S||1)].range[0],r[r.length-1].range[1]]),void 0!==(j=this.performAction.apply(A,[o,c,l,f.yy,_[1],i,r].concat(m))))
/*!*********************************************!*\
!*** ./src/diagrams/user-journey/styles.js ***!
\*********************************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t),t.default=function(e){return".label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ".concat(e.textColor,";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(e.textColor,"\n }\n\n .legend {\n fill: ").concat(e.textColor,";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(e.textColor,"\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(e.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(e.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(e.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ").concat(e.titleColor,";\n }\n\n div.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: ").concat(e.tertiaryColor,";\n border: 1px solid ").concat(e.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType0):"",";\n }\n .task-type-1, .section-type-1 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType1):"",";\n }\n .task-type-2, .section-type-2 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType2):"",";\n }\n .task-type-3, .section-type-3 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType3):"",";\n }\n .task-type-4, .section-type-4 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType4):"",";\n }\n .task-type-5, .section-type-5 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType5):"",";\n }\n .task-type-6, .section-type-6 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType6):"",";\n }\n .task-type-7, .section-type-7 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType7):"",";\n }\n")}},"./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,a){"use strict";a.r(t),a.d(t,"drawRect",(function(){return i})),a.d(t,"drawFace",(function(){return r})),a.d(t,"drawCircle",(function(){return s})),a.d(t,"drawText",(function(){return o})),a.d(t,"drawLabel",(function(){return l})),a.d(t,"drawSection",(function(){return c})),a.d(t,"drawTask",(function(){return u})),a.d(t,"drawBackgroundRect",(function(){return h})),a.d(t,"getTextObj",(function(){return m})),a.d(t,"getNoteRect",(function(){return p}));var n=a(/*! d3 */"d3"),i=function(e,t){var a=e.append("rect");return a.attr("x",t.x),a.attr("y",t.y),a.attr("fill",t.fill),a.attr("stroke",t.stroke),a.attr("width",t.width),a.attr("height",t.height),a.attr("rx",t.rx),a.attr("ry",t.ry),void 0!==t.class&&a.attr("class",t.class),a},r=function(e,t){var a=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=e.append("g");return i.append("circle").attr("cx",t.cx-5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.score>3?function(e){var a=Object(n.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);e.append("path").attr("class","mouth").attr("d",a).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}(i):t.score<3?function(e){var a=Object(n.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);e.append("path").attr("class","mouth").attr("d",a).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}(i):function(e){e.append("line").attr("class","mouth").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","mouth").attr("stroke-width","1px").attr("stroke","#666")}(i),a},s=function(e,t){var a=e.append("circle");return a.attr("cx",t.cx),a.attr("cy",t.cy),a.attr("fill",t.fill),a.attr("stroke",t.stroke),a.attr("r",t.r),void 0!==a.class&&a.attr("class",a.class),void 0!==t.title&&a.append("title").text(t.title),a},o=function(e,t){var a=t.text.replace(/<br\s*\/?>/gi," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),void 0!==t.class&&n.attr("class",t.class);var i=n.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.text(a),n},l=function(e,t){var a,n,i,r,s,l=e.append("polygon");l.attr("points",(a=t.x,n=t.y,a+","+n+" "+(a+(i=50))+","+n+" "+(a+i)+","+(n+(r=20)-(s=7))+" "+(a+i-1.2*s)+","+(n+r)+" "+a+","+(n+r))),l.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,o(e,t)},c=function(e,t,a){var n=e.append("g"),r=p();r.x=t.x,r.y=t.y,r.fill=t.fill,r.width=a.width,r.height=a.height,r.class="journey-section section-type-"+t.num,r.rx=3,r.ry=3,i(n,r),f(a)(t.text,n,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+t.num},a,t.colour)},d=-1,u=function(e,t,a){var n=t.x+a.width/2,o=e.append("g");d++,o.append("line").attr("id","task"+d).attr("x1",n).attr("y1",t.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),r(o,{cx:n,cy:300+30*(5-t.score),score:t.score});var l=p();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=a.width,l.height=a.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,i(o,l);var c=t.x+14;t.people.forEach((function(e){var a=t.actors[e],n={cx:c,cy:t.y,r:7,fill:a,stroke:"#000",title:e};s(o,n),c+=10})),f(a)(t.task,o,l.x,l.y,l.width,l.height,{class:"task"},a,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()},m=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}},f=function(){function e(e,t,a,i,r,s,o,l){n(t.append("tex
/*!******************************!*\
!*** ./src/errorRenderer.js ***!
\******************************/
/*! exports provided: setConf, draw, default */function(e,t,a){"use strict";a.r(t),a.d(t,"setConf",(function(){return s})),a.d(t,"draw",(function(){return o}));var n=a(/*! d3 */"d3"),i=a(/*! ./logger */"./src/logger.js"),r={},s=function(e){Object.keys(e).forEach((function(t){r[t]=e[t]}))},o=function(e,t){try{i.logger.debug("Renering svg for syntax error\n");var a=Object(n.select)("#"+e),r=a.append("g");r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),r.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+t),a.attr("height",100),a.attr("width",400),a.attr("viewBox","768 0 512 512")}catch(e){i.logger.error("Error while rendering info diagram"),i.logger.error(e.message)}};t.default={setConf:s,draw:o}},"./src/logger.js":
/*!***********************!*\
!*** ./src/logger.js ***!
\***********************/
/*! exports provided: LEVELS, logger, setLogLevel */function(e,t,a){"use strict";a.r(t),a.d(t,"LEVELS",(function(){return r})),a.d(t,"logger",(function(){return s})),a.d(t,"setLogLevel",(function(){return o}));var n=a(/*! moment-mini */"moment-mini"),i=a.n(n),r={debug:1,info:2,warn:3,error:4,fatal:5},s={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(e)&&(e=e.toLowerCase(),void 0!==r[e]&&(e=r[e])),s.trace=function(){},s.debug=function(){},s.info=function(){},s.warn=function(){},s.error=function(){},s.fatal=function(){},e<=r.fatal&&(s.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"",l("FATAL"))),e<=r.error&&(s.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"",l("ERROR"))),e<=r.warn&&(s.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"",l("WARN"))),e<=r.info&&(s.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"",l("INFO"))),e<=r.debug&&(s.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"",l("DEBUG")))},l=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,a){"use strict";a.r(t);var n=a(/*! entity-decode/browser */"entity-decode/browser"),i=a.n(n),r=a(/*! ./mermaidAPI */"./src/mermaidAPI.js"),s=a(/*! ./logger */"./src/logger.js"),o=a(/*! ./utils */"./src/utils.js"),l=function(){c.startOnLoad?r.default.getConfig().startOnLoad&&c.init():void 0===c.startOnLoad&&(s.logger.debug("In start, no config"),r.default.getConfig().startOnLoad&&c.init())};"undefined"!=typeof document&&
/*!
* Wait for document loaded before starting the execution
*/
window.addEventListener("load",(function(){l()}),!1);var c={startOnLoad:!0,htmlLabels:!0,mermaidAPI:r.default,parse:r.default.parse,render:r.default.render,init:function(){var e,t,a,n=this,l=r.default.getConfig();arguments.length>=2?(
/*! sequence config was passed as #1 */
void 0!==arguments[0]&&(c.sequenceConfig=arguments[0]),e=arguments[1]):e=arguments[0],"function"==typeof arguments[arguments.length-1]?(t=arguments[arguments.length-1],s.logger.debug("Callback function found")):void 0!==l.mermaid&&("function"==typeof l.mermaid.callback?(t=l.mermaid.callback,s.logger.debug("Callback function found")):s.logger.debug("No Callback function found")),e=void 0===e?document.querySelectorAll(".mermaid"):"string"==typeof e?document.querySelectorAll(e):e instanceof window.Node?[e]:e,s.logger.debug("Start On Load before: "+c.startOnLoad),void 0!==c.startOnLoad&&(s.logger.debug("Start On Load inner: "+c.startOnLoad),r.default.updateSiteConfig({startOnLoad:c.startOnLoad})),void 0!==c.ganttConfig&&r.default.updateSiteConfig({gantt:c.ganttConfig});for(var d=function(l){var c=e[l];
/*! Check if previously processed */if(c.getAttribute("data-processed"))return"continue";c.setAttribute("data-processed",!0);var d="mermaid-".concat(Date.now());a=c.innerHTML,a=i()(a).trim().replace(/<br\s*\/?>/gi,"<br/>");var u=o.default.detectInit(a);u&&s.logger.debug("Detected early reinit: ",u);try{r.default.render(d,a,(function(e,a){c.innerHTML=e,void 0!==t&&t(d),a&&a(c)}),c)}catch(e){s.logger.warn("Syntax Error rendering"),s.logger.warn(e),n.parseError&&n.parseError(e)}},u=0;u<e.length;u++)d(u)},initialize:function(e){void 0!==e.mermaid&&(void 0!==e.mermaid.startOnLoad&&(c.startOnLoad=e.mermaid.startOnLoad),void 0!==e.mermaid.htmlLabels&&(c.htmlLabels=e.mermaid.htmlLabels)),r.default.initialize(e)},contentLoaded:l};t.default=c},"./src/mermaidAPI.js":
/*!***************************!*\
!*** ./src/mermaidAPI.js ***!
\***************************/
/*! exports provided: encodeEntities, decodeEntities, default */function(e,t,a){"use strict";a.r(t),a.d(t,"encodeEntities",(function(){return ne})),a.d(t,"decodeEntities",(function(){return ie}));var n=a(/*! stylis */"stylis"),i=a.n(n),r=a(/*! d3 */"d3"),s=a(/*! ../package.json */"./package.json"),o=a(/*! ./logger */"./src/logger.js"),l=a(/*! ./utils */"./src/utils.js"),c=a(/*! ./diagrams/flowchart/flowRenderer */"./src/diagrams/flowchart/flowRenderer.js"),d=a(/*! ./diagrams/flowchart/flowRenderer-v2 */"./src/diagrams/flowchart/flowRenderer-v2.js"),u=a(/*! ./diagrams/flowchart/parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),h=a.n(u),m=a(/*! ./diagrams/flowchart/flowDb */"./src/diagrams/flowchart/flowDb.js"),p=a(/*! ./diagrams/sequence/sequenceRenderer */"./src/diagrams/sequence/sequenceRenderer.js"),f=a(/*! ./diagrams/sequence/parser/sequenceDiagram */"./src/diagrams/sequence/parser/sequenceDiagram.jison"),g=a.n(f),b=a(/*! ./diagrams/sequence/sequenceDb */"./src/diagrams/sequence/sequenceDb.js"),y=a(/*! ./diagrams/gantt/ganttRenderer */"./src/diagrams/gantt/ganttRenderer.js"),v=a(/*! ./diagrams/gantt/parser/gantt */"./src/diagrams/gantt/parser/gantt.jison"),k=a.n(v),w=a(/*! ./diagrams/gantt/ganttDb */"./src/diagrams/gantt/ganttDb.js"),x=a(/*! ./diagrams/class/classRenderer */"./src/diagrams/class/classRenderer.js"),_=a(/*! ./diagrams/class/classRenderer-v2 */"./src/diagrams/class/classRenderer-v2.js"),j=a(/*! ./diagrams/class/parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),z=a.n(j),S=a(/*! ./diagrams/class/classDb */"./src/diagrams/class/classDb.js"),C=a(/*! ./diagrams/state/stateRenderer */"./src/diagrams/state/stateRenderer.js"),E=a(/*! ./diagrams/state/stateRenderer-v2 */"./src/diagrams/state/stateRenderer-v2.js"),A=a(/*! ./diagrams/state/parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),T=a.n(A),q=a(/*! ./diagrams/state/stateDb */"./src/diagrams/state/stateDb.js"),M=a(/*! ./diagrams/git/gitGraphRenderer */"./src/diagrams/git/gitGraphRenderer.js"),O=a(/*! ./diagrams/git/parser/gitGraph */"./src/diagrams/git/parser/gitGraph.jison"),D=a.n(O),N=a(/*! ./diagrams/git/gitGraphAst */"./src/diagrams/git/gitGraphAst.js"),I=a(/*! ./diagrams/info/infoRenderer */"./src/diagrams/info/infoRenderer.js"),B=a(/*! ./errorRenderer */"./src/errorRenderer.js"),L=a(/*! ./diagrams/info/parser/info */"./src/diagrams/info/parser/info.jison"),P=a.n(L),F=a(/*! ./diagrams/info/infoDb */"./src/diagrams/info/infoDb.js"),R=a(/*! ./diagrams/pie/pieRenderer */"./src/diagrams/pie/pieRenderer.js"),$=a(/*! ./diagrams/pie/parser/pie */"./src/diagrams/pie/parser/pie.jison"),V=a.n($),Y=a(/*! ./diagrams/pie/pieDb */"./src/diagrams/pie/pieDb.js"),H=a(/*! ./diagrams/er/erDb */"./src/diagrams/er/erDb.js"),U=a(/*! ./diagrams/er/parser/erDiagram */"./src/diagrams/er/parser/erDiagram.jison"),W=a.n(U),G=a(/*! ./diagrams/er/erRenderer */"./src/diagrams/er/erRenderer.js"),X=a(/*! ./diagrams/user-journey/parser/journey */"./src/diagrams/user-journey/parser/journey.jison"),Z=a.n(X),K=a(/*! ./diagrams/user-journey/journeyDb */"./src/diagrams/user-journey/journeyDb.js"),J=a(/*! ./diagrams/user-journey/journeyRenderer */"./src/diagrams/user-journey/journeyRenderer.js"),Q=a(/*! ./config */"./src/config.js"),ee=a(/*! ./styles */"./src/styles.js"),te=a(/*! ./themes */"./src/themes/index.js");function ae(e){return(ae="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 ne=function(e){var t=e;return t=(t=(t=t.replace(/style.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)}))).replace(/classDef.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)}))).replace(/#\w+;/g,(function(e){var t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl°°"+t+"¶ß":"fl°"+t+"¶ß"}))},ie=function(e){var t=e;return t=(t=(t=t.replace(/fl°°/g,(function(){return"&#"}))).replace(/fl°/g,(function(){return"&"}))).replace(/¶ß/g,(function(){return";"}))},re={},se
/*!***********************!*\
!*** ./src/styles.js ***!
\***********************/
/*! exports provided: calcThemeVariables, default */function(e,t,a){"use strict";a.r(t),a.d(t,"calcThemeVariables",(function(){return p}));var n=a(/*! ./diagrams/class/styles */"./src/diagrams/class/styles.js"),i=a(/*! ./diagrams/er/styles */"./src/diagrams/er/styles.js"),r=a(/*! ./diagrams/flowchart/styles */"./src/diagrams/flowchart/styles.js"),s=a(/*! ./diagrams/gantt/styles */"./src/diagrams/gantt/styles.js"),o=a(/*! ./diagrams/git/styles */"./src/diagrams/git/styles.js"),l=a(/*! ./diagrams/info/styles */"./src/diagrams/info/styles.js"),c=a(/*! ./diagrams/pie/styles */"./src/diagrams/pie/styles.js"),d=a(/*! ./diagrams/sequence/styles */"./src/diagrams/sequence/styles.js"),u=a(/*! ./diagrams/state/styles */"./src/diagrams/state/styles.js"),h=a(/*! ./diagrams/user-journey/styles */"./src/diagrams/user-journey/styles.js"),m={flowchart:r.default,"flowchart-v2":r.default,sequence:d.default,gantt:s.default,classDiagram:n.default,"classDiagram-v2":n.default,class:n.default,stateDiagram:u.default,state:u.default,git:o.default,info:l.default,pie:c.default,er:i.default,journey:h.default},p=function(e,t){return e.calcColors(t)};t.default=function(e,t,a){return" {\n font-family: ".concat(a.fontFamily,";\n font-size: ").concat(a.fontSize,";\n fill: ").concat(a.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(a.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(a.errorTextColor,";\n stroke: ").concat(a.errorTextColor,";\n }\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\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(a.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(a.lineColor,";\n }\n\n svg {\n font-family: ").concat(a.fontFamily,";\n font-size: ").concat(a.fontSize,";\n }\n\n ").concat(m[e](a),"\n\n ").concat(t,"\n\n ").concat(e," { fill: apa;}\n")}},"./src/themes/index.js":
/*!*****************************!*\
!*** ./src/themes/index.js ***!
\*****************************/
/*! exports provided: default */function(e,t,a){"use strict";a.r(t);var n=a(/*! ./theme-base */"./src/themes/theme-base.js"),i=a(/*! ./theme-dark */"./src/themes/theme-dark.js"),r=a(/*! ./theme-default */"./src/themes/theme-default.js"),s=a(/*! ./theme-forest */"./src/themes/theme-forest.js"),o=a(/*! ./theme-neutral */"./src/themes/theme-neutral.js");t.default={base:{getThemeVariables:n.getThemeVariables},dark:{getThemeVariables:i.getThemeVariables},default:{getThemeVariables:r.getThemeVariables},forest:{getThemeVariables:s.getThemeVariables},neutral:{getThemeVariables:o.getThemeVariables}}},"./src/themes/theme-base.js":
/*!**********************************!*\
!*** ./src/themes/theme-base.js ***!
\**********************************/
/*! exports provided: getThemeVariables */function(e,t,a){"use strict";a.r(t),a.d(t,"getThemeVariables",(function(){return l}));var n=a(/*! khroma */"khroma"),i=a(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function r(e){return(r="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)}function s(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial',this.fontSize="16px"}var t,a,o;return t=e,(a=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||Object(n.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Object(n.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Object(i.mkBorder)(this.noteBkgColor,this.darkMode),this.secondaryTextColor=this.secondaryTextColor||Object(n.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Object(n.invert)(this.tertiaryColor),this.lineColor=this.lineColor||Object(n.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||this.darkMode?Object(n.darken)(this.secondaryColor,30):this.secondaryColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Object(n.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Object(n.invert)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Object(n.lighten)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.crit
/*!**********************************!*\
!*** ./src/themes/theme-dark.js ***!
\**********************************/
/*! exports provided: getThemeVariables */function(e,t,a){"use strict";a.r(t),a.d(t,"getThemeVariables",(function(){return l}));var n=a(/*! khroma */"khroma"),i=a(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function r(e){return(r="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)}function s(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Object(n.lighten)(this.primaryColor,16),this.tertiaryColor=Object(n.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(n.invert)(this.primaryColor),this.secondaryTextColor=Object(n.invert)(this.secondaryColor),this.tertiaryTextColor=Object(n.invert)(this.tertiaryColor),this.lineColor=Object(n.invert)(this.background),this.textColor=Object(n.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Object(n.lighten)(Object(n.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Object(n.rgba)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Object(n.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=Object(n.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Object(n.rgba)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var t,a,o;return t=e,(a=[{key:"updateColors",value:function(){this.secondBkg=Object(n.lighten)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Object(n.lighten)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,t
/*!*************************************!*\
!*** ./src/themes/theme-default.js ***!
\*************************************/
/*! exports provided: getThemeVariables */function(e,t,a){"use strict";a.r(t),a.d(t,"getThemeVariables",(function(){return l}));var n=a(/*! khroma */"khroma"),i=a(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function r(e){return(r="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)}function s(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Object(n.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Object(n.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(n.invert)(this.primaryColor),this.secondaryTextColor=Object(n.invert)(this.secondaryColor),this.tertiaryTextColor=Object(n.invert)(this.tertiaryColor),this.lineColor=Object(n.invert)(this.background),this.textColor=Object(n.invert)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Object(n.rgba)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var t,a,o;return t=e,(a=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.e
/*!************************************!*\
!*** ./src/themes/theme-forest.js ***!
\************************************/
/*! exports provided: getThemeVariables */function(e,t,a){"use strict";a.r(t),a.d(t,"getThemeVariables",(function(){return l}));var n=a(/*! khroma */"khroma"),i=a(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function r(e){return(r="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)}function s(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial',this.fontSize="16px",this.tertiaryColor=Object(n.lighten)("#cde498",10),this.primaryBorderColor=Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(n.invert)(this.primaryColor),this.secondaryTextColor=Object(n.invert)(this.secondaryColor),this.tertiaryTextColor=Object(n.invert)(this.primaryColor),this.lineColor=Object(n.invert)(this.background),this.textColor=Object(n.invert)(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var t,a,o;return t=e,(a=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=Object(n.darken)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Object(n.adjust)(this.primaryColor,{h:64}),this.fillType3=Object(n.adjust)(this.secondaryColor,{h:64}),this.fillType4=Object(n.adjust)(this.primaryColor,{h:-64}),this.fillType5=Object(n.adjust)(this.secondaryColor,{h:-64}),this.fillType6=Object(n.adjust)(this.primaryColor,{h:128}),thi
/*!*************************************!*\
!*** ./src/themes/theme-helpers.js ***!
\*************************************/
/*! exports provided: mkBorder */function(e,t,a){"use strict";a.r(t),a.d(t,"mkBorder",(function(){return i}));var n=a(/*! khroma */"khroma"),i=function(e,t){return t?Object(n.adjust)(e,{s:-40,l:10}):Object(n.adjust)(e,{s:-40,l:-10})}},"./src/themes/theme-neutral.js":
/*!*************************************!*\
!*** ./src/themes/theme-neutral.js ***!
\*************************************/
/*! exports provided: getThemeVariables */function(e,t,a){"use strict";a.r(t),a.d(t,"getThemeVariables",(function(){return l}));var n=a(/*! khroma */"khroma"),i=a(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function r(e){return(r="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)}function s(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.primaryColor="#eee",this.contrast="#26a",this.secondaryColor=Object(n.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Object(n.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(n.invert)(this.primaryColor),this.secondaryTextColor=Object(n.invert)(this.secondaryColor),this.tertiaryTextColor=Object(n.invert)(this.tertiaryColor),this.lineColor=Object(n.invert)(this.background),this.textColor=Object(n.invert)(this.background),this.altBackground=Object(n.lighten)(this.contrast,55),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var t,a,o;return t=e,(a=[{key:"updateColors",value:function(){this.secondBkg=Object(n.lighten)(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=Object(n.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor=Object(n.darken)(this.note,60),this.noteBkgColor=this.note,this.noteTextColor=this.actorTextColor,this.sectionBkgColor=Object(n.lighten)(this.contrast,30),this.sectionBkgColor2=Object(
/*!**********************!*\
!*** ./src/utils.js ***!
\**********************/
/*! exports provided: detectInit, detectDirective, detectType, isSubstringInArray, interpolateToCurve, formatUrl, runFunc, getStylesFromArray, generateId, random, assignWithDepth, getTextObj, drawSimpleText, wrapLabel, calculateTextHeight, calculateTextWidth, calculateTextDimensions, calculateSvgSizeAttrs, configureSvgSize, default */function(e,t,a){"use strict";a.r(t),a.d(t,"detectInit",(function(){return m})),a.d(t,"detectDirective",(function(){return p})),a.d(t,"detectType",(function(){return f})),a.d(t,"isSubstringInArray",(function(){return b})),a.d(t,"interpolateToCurve",(function(){return y})),a.d(t,"formatUrl",(function(){return v})),a.d(t,"runFunc",(function(){return k})),a.d(t,"getStylesFromArray",(function(){return x})),a.d(t,"generateId",(function(){return j})),a.d(t,"random",(function(){return z})),a.d(t,"assignWithDepth",(function(){return S})),a.d(t,"getTextObj",(function(){return C})),a.d(t,"drawSimpleText",(function(){return E})),a.d(t,"wrapLabel",(function(){return A})),a.d(t,"calculateTextHeight",(function(){return q})),a.d(t,"calculateTextWidth",(function(){return M})),a.d(t,"calculateTextDimensions",(function(){return O})),a.d(t,"calculateSvgSizeAttrs",(function(){return D})),a.d(t,"configureSvgSize",(function(){return N}));var n=a(/*! d3 */"d3"),i=a(/*! ./logger */"./src/logger.js"),r=a(/*! @braintree/sanitize-url */"@braintree/sanitize-url"),s=a(/*! ./diagrams/common/common */"./src/diagrams/common/common.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)}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t<e.length;t++)a[t]=e[t];return a}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var c={curveBasis:n.curveBasis,curveBasisClosed:n.curveBasisClosed,curveBasisOpen:n.curveBasisOpen,curveLinear:n.curveLinear,curveLinearClosed:n.curveLinearClosed,curveMonotoneX:n.curveMonotoneX,curveMonotoneY:n.curveMonotoneY,curveNatural:n.curveNatural,curveStep:n.curveStep,curveStepAfter:n.curveStepAfter,curveStepBefore:n.curveStepBefore},d=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,u=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,h=/\s*%%.*\n/gm,m=function(e){var t=p(e,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(t)){var n=t.map((function(e){return e.args}));a=S(a,l(n))}else a=t.args;if(a){var i=f(e);["config"].forEach((function(e){void 0!==a[e]&&("flowchart-v2"===i&&(i="flowchart"),a[i]=a[e],delete a[e])}))}return a},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var a=new RegExp("[%]{2}(?![{]".concat(u.source,")(?=[}][%]{2}).*\n"),"ig");e=e.trim().replace(a,"").replace(/'/gm,'"'),i.logger.debug("Detecting diagram directive".concat(null!==t?" type:"+t:""," based on the text:").concat(e));for(var n,r=[];null!==(n=d.exec(e));)if(n.index===d.lastIndex&&d.lastIndex++,n&&!t||t&&n[1]&&n[1].match(t)||t&&n[2]&&n[2].match(t)){var s=n[1]?n[1]:n[2],o=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;r.push({type:s,args:o})}return 0===r.length&&r.push({type:e,args:null}),1===r.length?r[0]:r}catch(a){return i.logger.error("ERROR: ".concat(a.message," - Unable to parse directive").concat(null!==t?" type:"+t:""," based on the text:").concat(e)),{type:null,args:null}}},f=function(e){return e=e.replace(d,"").replace(h,"\n"),i.logger.debug("Detecting diagram type based on the text "+e),e.match(/^\s*sequenceDiagram/)?"sequence":e.match(/^\s*gantt/)?"gantt":e.match(/^\s*classDiagram-v2/)?"classDiagram":e.match(/^\s*classDiagram/)?"class":e.match(/^\s*stateDiagram-v2/)?"stateDiagram":e.match(/^\s*stateDiagram/)?"state":e.match(/^\s*gitGraph/)?"git":e.match(/^\s*flowchart/)?"flowchart-v2":e.match(/^
/*!******************************************!*\
!*** external "@braintree/sanitize-url" ***!
\******************************************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/@braintree/sanitize-url/index.js")},d3:
/*!*********************!*\
!*** external "d3" ***!
\*********************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/mermaid/node_modules/d3/dist/d3.node.js")},dagre:
/*!************************!*\
!*** external "dagre" ***!
\************************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/dagre/index.js")},"dagre-d3":
/*!***************************!*\
!*** external "dagre-d3" ***!
\***************************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/dagre-d3/index.js")},"dagre-d3/lib/label/add-html-label.js":
/*!*******************************************************!*\
!*** external "dagre-d3/lib/label/add-html-label.js" ***!
\*******************************************************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/dagre-d3/lib/label/add-html-label.js")},"entity-decode/browser":
/*!****************************************!*\
!*** external "entity-decode/browser" ***!
\****************************************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/entity-decode/browser.js")},graphlib:
/*!***************************!*\
!*** external "graphlib" ***!
\***************************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/graphlib/index.js")},khroma:
/*!*************************!*\
!*** external "khroma" ***!
\*************************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/khroma/dist/index.js")},"moment-mini":
/*!******************************!*\
!*** external "moment-mini" ***!
\******************************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/moment-mini/moment.min.js")},stylis:
/*!*************************!*\
!*** external "stylis" ***!
\*************************/
/*! no static exports found */function(e,t){e.exports=a("./node_modules/stylis/stylis.js")}}).default},e.exports=n()},"./node_modules/mermaid/node_modules/d3-axis/dist/d3-axis.js":function(e,t,a){!function(e){"use strict";var t=Array.prototype.slice;function a(e){return e}function n(e){return"translate("+(e+.5)+",0)"}function i(e){return"translate(0,"+(e+.5)+")"}function r(e){return function(t){return+e(t)}}function s(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(a){return+e(a)+t}}function o(){return!this.__axis}function l(e,l){var c=[],d=null,u=null,h=6,m=6,p=3,f=1===e||4===e?-1:1,g=4===e||2===e?"x":"y",b=1===e||3===e?n:i;function y(t){var n=null==d?l.ticks?l.ticks.apply(l,c):l.domain():d,i=null==u?l.tickFormat?l.tickFormat.apply(l,c):a:u,y=Math.max(h,0)+p,v=l.range(),k=+v[0]+.5,w=+v[v.length-1]+.5,x=(l.bandwidth?s:r)(l.copy()),_=t.selection?t.selection():t,j=_.selectAll(".domain").data([null]),z=_.selectAll(".tick").data(n,l).order(),S=z.exit(),C=z.enter().append("g").attr("class","tick"),E=z.select("line"),A=z.select("text");j=j.merge(j.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),z=z.merge(C),E=E.merge(C.append("line").attr("stroke","currentColor").attr(g+"2",f*h)),A=A.merge(C.append("text").attr("fill","currentColor").attr(g,f*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),t!==_&&(j=j.transition(t),z=z.transition(t),E=E.transition(t),A=A.transition(t),S=S.transition(t).attr("opacity",1e-6).attr("transform",(function(e){return isFinite(e=x(e))?b(e):this.getAttribute("transform")})),C.attr("opacity",1e-6).attr("transform",(function(e){var t=this.parentNode.__axis;return b(t&&isFinite(t=t(e))?t:x(e))}))),S.remove(),j.attr("d",4===e||2==e?m?"M"+f*m+","+k+"H0.5V"+w+"H"+f*m:"M0.5,"+k+"V"+w:m?"M"+k+","+f*m+"V0.5H"+w+"V"+f*m:"M"+k+",0.5H"+w),z.attr("opacity",1).attr("transform",(function(e){return b(x(e))})),E.attr(g+"2",f*h),A.attr(g,f*y).text(i),_.filter(o).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each((function(){this.__axis=x}))}return y.scale=function(e){return arguments.length?(l=e,y):l},y.ticks=function(){return c=t.call(arguments),y},y.tickArguments=function(e){return arguments.length?(c=null==e?[]:t.call(e),y):c.slice()},y.tickValues=function(e){return arguments.length?(d=null==e?null:t.call(e),y):d&&d.slice()},y.tickFormat=function(e){return arguments.length?(u=e,y):u},y.tickSize=function(e){return arguments.length?(h=m=+e,y):h},y.tickSizeInner=function(e){return arguments.length?(h=+e,y):h},y.tickSizeOuter=function(e){return arguments.length?(m=+e,y):m},y.tickPadding=function(e){return arguments.length?(p=+e,y):p},y}e.axisTop=function(e){return l(1,e)},e.axisRight=function(e){return l(2,e)},e.axisBottom=function(e){return l(3,e)},e.axisLeft=function(e){return l(4,e)},Object.defineProperty(e,"__esModule",{value:!0})}(t)},"./node_modules/mermaid/node_modules/d3-brush/dist/d3-brush.js":function(e,t,a){!function(e,t,a,n,i,r){"use strict";function s(e){return function(){return e}}function o(e,t,a){this.target=e,this.type=t,this.selection=a}function l(){i.event.stopImmediatePropagation()}function c(){i.event.preventDefault(),i.event.stopImmediatePropagation()}var d={name:"drag"},u={name:"space"},h={name:"handle"},m={name:"center"};function p(e){return[+e[0],+e[1]]}function f(e){return[p(e[0]),p(e[1])]}function g(e){return function(t){return i.touch(t,i.event.touches,e)}}var b={name:"x",handles:["w","e"].map(z),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},y={name:"y",handles:["n","s"].map(z),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},v={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(z),input:function(e){return null==e?null:f(e)},output:function(e){return e}},k={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-re
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/e.exports&&(e.exports=a),void 0!==t&&(t.Prism=a)}).call(this,a("./node_modules/webpack/buildin/global.js"))},"./node_modules/prismjs/components/prism-markup.js":function(e,t){Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var a={};a["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",i)}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},"./node_modules/prismjs/plugins/autoloader/prism-autoloader.js":function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document&&document.createElement){var e={javascript:"clike",actionscript:"javascript",arduino:"cpp",aspnet:["markup","csharp"],birb:"clike",bison:"c",c:"clike",csharp:"clike",cpp:"c",coffeescript:"javascript",crystal:"ruby","css-extras":"css",d:"clike",dart:"clike",django:"markup-templating",ejs:["javascript","markup-templating"],etlua:["lua","markup-templating"],erb:["ruby","markup-templating"],fsharp:"clike","firestore-security-rules":"clike",flow:"javascript",ftl:"markup-templating",gml:"clike",glsl:"c",go:"clike",groovy:"clike",haml:"ruby",handlebars:"markup-templating",haxe:"clike",hlsl:"c",java:"clike",javadoc:["markup","java","javadoclike"],jolie:"clike",jsdoc:["javascript","javadoclike","typescript"],"js-extras":"javascript",json5:"json",jsonp:"json","js-templates":"javascript",kotlin:"clike",latte:["clike","markup-templating","php"],less:"css",lilypond:"scheme",markdown:"markup","markup-templating":"markup",mongodb:"javascript",n4js:"javascript",nginx:"clike",objectivec:"c",opencl:"c",parser:"markup",php:["clike","markup-templating"],phpdoc:["php","javadoclike"],"php-extras":"php",plsql:"sql",processing:"clike",protobuf:"clike",pug:["markup","javascript"],purebasic:"clike",purescript:"haskell",qml:"javascript",qore:"clike",racket:"scheme",jsx:["markup","javascript"],tsx:["jsx","typescript"],reason:"clike",ruby:"clike",sass:"css",scss:"css",scala:"java","shell-session":"bash",smarty:"markup-templating",solidity:"clike",soy:"markup-templating",sparql:"turtle",sqf:"clike",swift:"clike","t4-cs":["t4-templating","csharp"],"t4-vb":["t4-templa
/*!
* validate.js 0.13.1
*
* (c) 2013-2019 Nicklas Ansman, 2013 Wrapp
* Validate.js may be freely distributed under the MIT license.
* For all details and documentation:
* http://validatejs.org/
*/
(function(e,t,n){"use strict";var i=function(e,t,a){a=r.extend({},r.options,a);var n=r.runValidations(e,t,a);if(n.some((function(e){return r.isPromise(e.error)})))throw new Error("Use validate.async if you want support for promises");return i.processValidationResults(n,a)},r=i;r.extend=function(e){return[].slice.call(arguments,1).forEach((function(t){for(var a in t)e[a]=t[a]})),e},r.extend(i,{version:{major:0,minor:13,patch:1,metadata:null,toString:function(){var e=r.format("%{major}.%{minor}.%{patch}",r.version);return r.isEmpty(r.version.metadata)||(e+="+"+r.version.metadata),e}},Promise:"undefined"!=typeof Promise?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,a){var n,i,s,o,l,c,d,u=[];for(n in(r.isDomElement(e)||r.isJqueryElement(e))&&(e=r.collectFormValues(e)),t)for(i in s=r.getDeepObjectValue(e,n),o=r.result(t[n],s,e,n,a,t)){if(!(l=r.validators[i]))throw d=r.format("Unknown validator %{name}",{name:i}),new Error(d);c=o[i],(c=r.result(c,s,e,n,a,t))&&u.push({attribute:n,value:s,validator:i,globalOptions:a,attributes:e,options:c,error:l.call(l,s,c,n,e,a)})}return u},processValidationResults:function(e,t){e=r.pruneEmptyErrors(e,t),e=r.expandMultipleErrors(e,t),e=r.convertErrorMessages(e,t);var a=t.format||"grouped";if("function"!=typeof r.formatters[a])throw new Error(r.format("Unknown format %{format}",t));return e=r.formatters[a](e),r.isEmpty(e)?void 0:e},async:function(e,t,a){var n=(a=r.extend({},r.async.options,a)).wrapErrors||function(e){return e};!1!==a.cleanAttributes&&(e=r.cleanAttributes(e,t));var i=r.runValidations(e,t,a);return new r.Promise((function(s,o){r.waitForResults(i).then((function(){var l=r.processValidationResults(i,a);l?o(new n(l,a,e,t)):s(e)}),(function(e){o(e)}))}))},single:function(e,t,a){return a=r.extend({},r.single.options,a,{format:"flat",fullMessages:!1}),r({single:e},{single:t},a)},waitForResults:function(e){return e.reduce((function(e,t){return r.isPromise(t.error)?e.then((function(){return t.error.then((function(e){t.error=e||null}))})):e}),new r.Promise((function(e){e()})))},result:function(e){var t=[].slice.call(arguments,1);return"function"==typeof e&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeof e&&!isNaN(e)},isFunction:function(e){return"function"==typeof e},isInteger:function(e){return r.isNumber(e)&&e%1==0},isBoolean:function(e){return"boolean"==typeof e},isObject:function(e){return e===Object(e)},isDate:function(e){return e instanceof Date},isDefined:function(e){return null!=e},isPromise:function(e){return!!e&&r.isFunction(e.then)},isJqueryElement:function(e){return e&&r.isString(e.jquery)},isDomElement:function(e){return!!e&&(!(!e.querySelectorAll||!e.querySelector)&&(!(!r.isObject(document)||e!==document)||("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)))},isEmpty:function(e){var t;if(!r.isDefined(e))return!0;if(r.isFunction(e))return!1;if(r.isString(e))return r.EMPTY_STRING_REGEXP.test(e);if(r.isArray(e))return 0===e.length;if(r.isDate(e))return!1;if(r.isObject(e)){for(t in e)return!1;return!0}return!1},format:r.extend((function(e,t){return r.isString(e)?e.replace(r.format.FORMAT_REGEXP,(function(e,a,n){return"%"===a?"%{"+n+"}":String(t[n])})):e}),{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(e){return r.isNumber(e)?100*e%1==0?""+e:parseFloat(Math.round(100*e)/100).toFixed(2):r.isArray(e)?e.map((function(e){return r.prettify(e)})).join(", "):r.isObject(e)?r.isDefined(e.toString)?e.toString():JSON.stringify(e):(e=""+e).replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,(function(e,t,a){return t+" "+a.toLowerCase()})).toLowerCase()},stringifyValue:function(e,t){return(t&&t.prettify||r.prettify)(e)},isString:function(e){return"string"==typeof e},isArray:function(e){return"[object Array]"==={}.toString.call(e)},isHash:function(e){return r.isObject(e)&&!r.isArray(e)&&!r.isFunction(e)},contains:function(e,t){return!!r.isDefined(e)&&(r.isArray(e)?-1!==e.indexOf(t):t in e)},unique:function(e){re