9 lines
327 KiB
JavaScript
9 lines
327 KiB
JavaScript
![]() |
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mermaid=e():t.mermaid=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(i,n,function(e){return t[e]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=35)}([function(t,e){t.exports=require("d3")},function(t,e,r){(function(t,i){var n=function(){var t=function(t,e,r,i){for(r=r||{},i=t.length;i--;r[t[i]]=e);return r},e=[1,2],r=[1,3],i=[1,4],n=[2,4],a=[1,9],s=[1,11],o=[1,12],l=[1,14],c=[1,15],u=[1,16],h=[1,18],d=[1,19],f=[1,20],p=[1,21],y=[1,22],g=[1,23],m=[1,25],b=[1,26],x=[1,4,5,10,15,16,17,19,21,22,23,24,25,27,29,30,31,42],k=[1,34],v=[4,5,10,15,16,17,19,21,22,23,24,25,27,31,42],E=[4,5,10,15,16,17,19,21,22,23,24,25,27,30,31,42],_=[4,5,10,15,16,17,19,21,22,23,24,25,27,29,31,42],w=[40,41,42],A={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,participant:10,actor:11,AS:12,restOfLine:13,signal:14,autonumber:15,activate:16,deactivate:17,note_statement:18,title:19,text2:20,loop:21,end:22,rect:23,opt:24,alt:25,else_sections:26,par:27,par_sections:28,and:29,else:30,note:31,placement:32,over:33,actor_pair:34,spaceList:35,",":36,left_of:37,right_of:38,signaltype:39,"+":40,"-":41,ACTOR:42,SOLID_OPEN_ARROW:43,DOTTED_OPEN_ARROW:44,SOLID_ARROW:45,DOTTED_ARROW:46,SOLID_CROSS:47,DOTTED_CROSS:48,TXT:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",10:"participant",12:"AS",13:"restOfLine",15:"autonumber",16:"activate",17:"deactivate",19:"title",21:"loop",22:"end",23:"rect",24:"opt",25:"alt",27:"par",29:"and",30:"else",31:"note",33:"over",36:",",37:"left_of",38:"right_of",40:"+",41:"-",42:"ACTOR",43:"SOLID_OPEN_ARROW",44:"DOTTED_OPEN_ARROW",45:"SOLID_ARROW",46:"DOTTED_ARROW",47:"SOLID_CROSS",48:"DOTTED_CROSS",49:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,5],[9,3],[9,2],[9,1],[9,3],[9,3],[9,2],[9,3],[9,4],[9,4],[9,4],[9,4],[9,4],[28,1],[28,4],[26,1],[26,4],[18,4],[18,4],[35,2],[35,1],[34,3],[34,1],[32,1],[32,1],[14,5],[14,5],[14,4],[11,1],[39,1],[39,1],[39,1],[39,1],[39,1],[39,1],[20,1]],performAction:function(t,e,r,i,n,a,s){var o=a.length-1;switch(n){case 3:return i.apply(a[o]),a[o];case 4:this.$=[];break;case 5:a[o-1].push(a[o]),this.$=a[o-1];break;case 6:case 7:this.$=a[o];break;case 8:this.$=[];break;case 9:a[o-3].description=a[o-1],this.$=a[o-3];break;case 10:this.$=a[o-1];break;case 12:i.enableSequenceNumbers();break;case 13:this.$={type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:a[o-1]};break;case 14:this.$={type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:a[o-1]};break;case 16:this.$=[{type:"setTitle",text:a[o-1]}];break;case 17:a[o-1].unshift({type:"loopStart",loopText:a[o-2],signalType:i.LINETYPE.LOOP_START}),a[o-1].push({type:"loopEnd",loopText:a[o-2],signalType:i.LINETYPE.LOOP_END}),this.$=a[o-1];break;case 18:a[o-1].unshift({type:"rectStart",color:a[o-2],signalType:i.LINETYPE.RECT_START}),a[o-1].push({type:"rectEnd",color:a[o-2],signalType:i.LINETYPE.RECT_END}),this.$=a[o-1];break;case 19:a[o-1].unshift({type:"optStart",optText:a[o-2],signalType:i.LINETYPE.OPT_START}),a[o-1].push({type:"optEnd",optText:a[o-2],signalType:
|
||
|
/*!
|
||
|
* Wait for document loaded before starting the execution
|
||
|
*/
|
||
|
window.addEventListener("load",(function(){Ra()}),!1);var ja={startOnLoad:!0,htmlLabels:!0,mermaidAPI:Pa,parse:Pa.parse,render:Pa.render,init:function(){var t,e,r,i=Pa.getConfig();k.debug("Starting rendering diagrams"),arguments.length>=2?(
|
||
|
/*! sequence config was passed as #1 */
|
||
|
void 0!==arguments[0]&&(ja.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],"function"==typeof arguments[arguments.length-1]?(e=arguments[arguments.length-1],k.debug("Callback function found")):void 0!==i.mermaid&&("function"==typeof i.mermaid.callback?(e=i.mermaid.callback,k.debug("Callback function found")):k.debug("No Callback function found")),t=void 0===t?document.querySelectorAll(".mermaid"):"string"==typeof t?document.querySelectorAll(t):t instanceof window.Node?[t]:t,k.debug("Start On Load before: "+ja.startOnLoad),void 0!==ja.startOnLoad&&(k.debug("Start On Load inner: "+ja.startOnLoad),Pa.initialize({startOnLoad:ja.startOnLoad})),void 0!==ja.ganttConfig&&Pa.initialize({gantt:ja.ganttConfig});for(var a=function(i){var a=t[i];
|
||
|
/*! Check if previously processed */if(a.getAttribute("data-processed"))return"continue";a.setAttribute("data-processed",!0);var s="mermaid-".concat(Date.now());r=a.innerHTML,r=n()(r).trim().replace(/<br\s*\/?>/gi,"<br/>"),Pa.render(s,r,(function(t,r){a.innerHTML=t,void 0!==e&&e(s),r&&r(a)}),a)},s=0;s<t.length;s++)a(s)},initialize:function(t){void 0!==t.mermaid&&(void 0!==t.mermaid.startOnLoad&&(ja.startOnLoad=t.mermaid.startOnLoad),void 0!==t.mermaid.htmlLabels&&(ja.htmlLabels=t.mermaid.htmlLabels)),Pa.initialize(t),k.debug("Initializing mermaid ")},contentLoaded:Ra};e.default=ja}]).default}));
|
||
|
//# sourceMappingURL=mermaid.core.js.map
|