This repository has been archived on 2022-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
Ecosysteme/presentation/plugin/mermaid/mermaid.esm.js

3 lines
1.1 MiB
JavaScript
Raw Normal View History

2022-05-02 12:56:32 +02:00
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),r={exports:{}},i=n,a=Object.defineProperty,o=function(t,e){try{a(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e},s=o,c=n["__core-js_shared__"]||s("__core-js_shared__",{}),u=c;(r.exports=function(t,e){return u[t]||(u[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var l,h,f=Function.prototype,d=f.bind,p=f.call,y=d&&d.bind(p),g=d?function(t){return t&&y(p,t)}:function(t){return t&&function(){return p.apply(t,arguments)}},v=n.TypeError,m=function(t){if(null==t)throw v("Can't call method on "+t);return t},b=m,_=n.Object,x=function(t){return _(b(t))},w=x,k=g({}.hasOwnProperty),T=Object.hasOwn||function(t,e){return k(w(t),e)},E=g,C=0,S=Math.random(),A=E(1..toString),M=function(t){return"Symbol("+(void 0===t?"":t)+")_"+A(++C+S,36)},N=function(t){return"function"==typeof t},D=n,O=N,B=function(t){return O(t)?t:void 0},L=function(t,e){return arguments.length<2?B(D[t]):D[t]&&D[t][e]},I=n,R=L("navigator","userAgent")||"",F=I.process,P=I.Deno,j=F&&F.versions||P&&P.version,Y=j&&j.v8;Y&&(h=(l=Y.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1])),!h&&R&&(!(l=R.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=R.match(/Chrome\/(\d+)/))&&(h=+l[1]);var z=function(t){try{return!!t()}catch(t){return!0}},U=h,q=z,H=!!Object.getOwnPropertySymbols&&!q((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),$=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=n,V=r.exports,G=T,X=M,Z=H,K=$,Q=V("wks"),J=W.Symbol,tt=J&&J.for,et=K?J:J&&J.withoutSetter||X,nt=function(t){if(!G(Q,t)||!Z&&"string"!=typeof Q[t]){var e="Symbol."+t;Z&&G(J,t)?Q[t]=J[t]:Q[t]=K&&tt?tt(e):et(e)}return Q[t]},rt={};rt[nt("toStringTag")]="z";var it="[object z]"===String(rt),at={exports:{}},ot=!z((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),st={},ct=N,ut=function(t){return"object"==typeof t?null!==t:ct(t)},lt=ut,ht=n.document,ft=lt(ht)&&lt(ht.createElement),dt=function(t){return ft?ht.createElement(t):{}},pt=dt,yt=!ot&&!z((function(){return 7!=Object.defineProperty(pt("div"),"a",{get:function(){return 7}}).a})),gt=n,vt=ut,mt=gt.String,bt=gt.TypeError,_t=function(t){if(vt(t))return t;throw bt(mt(t)+" is not an object")},xt=Function.prototype.call,wt=xt.bind?xt.bind(xt):function(){return xt.apply(xt,arguments)},kt=g({}.isPrototypeOf),Tt=L,Et=N,Ct=kt,St=$,At=n.Object,Mt=St?function(t){return"symbol"==typeof t}:function(t){var e=Tt("Symbol");return Et(e)&&Ct(e.prototype,At(t))},Nt=n.String,Dt=function(t){try{return Nt(t)}catch(t){return"Object"}},Ot=N,Bt=Dt,Lt=n.TypeError,It=function(t){if(Ot(t))return t;throw Lt(Bt(t)+" is not a function")},Rt=It,Ft=function(t,e){var n=t[e];return null==n?void 0:Rt(n)},Pt=wt,jt=N,Yt=ut,zt=n.TypeError,Ut=wt,qt=ut,Ht=Mt,$t=Ft,Wt=function(t,e){var n,r;if("string"===e&&jt(n=t.toString)&&!Yt(r=Pt(n,t)))return r;if(jt(n=t.valueOf)&&!Yt(r=Pt(n,t)))return r;if("string"!==e&&jt(n=t.toString)&&!Yt(r=Pt(n,t)))return r;throw zt("Can't convert object to primitive value")},Vt=nt,Gt=n.TypeError,Xt=Vt("toPrimitive"),Zt=function(t,e){if(!qt(t)||Ht(t))return t;var n,r=$t(t,Xt);if(r){if(void 0===e&&(e="default"),n=Ut(r,t,e),!qt(n)||Ht(n))return n;throw Gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),Wt(t,e)},Kt=Mt,Qt=function(t){var e=Zt(t,"string");return Kt(e)?e:e+""},Jt=ot,te=yt,ee=_t,ne=Qt,re=n.TypeError,ie=Object.defineProperty;st.f=Jt?ie:function(t,e,n){if(ee(t),e=ne(e),ee(n),te)try{return ie(t,e,n)}catch(t){}if("get"in n||"set"in n)throw re("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var ae=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},oe=st,s
/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */;var Rs={5051:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,6],n=[1,7],r=[1,8],i=[1,9],a=[1,12],o=[1,11],s=[1,15,24],c=[1,19],u=[1,31],l=[1,34],h=[1,32],f=[1,33],d=[1,35],p=[1,36],y=[1,37],g=[1,38],v=[1,41],m=[1,42],b=[1,43],_=[1,44],x=[15,24],w=[1,56],k=[1,57],T=[1,58],E=[1,59],C=[1,60],S=[1,61],A=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],M=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],N=[7,8,9,10,15,18,22,24],D=[47,77,78,79,80],O=[47,54,55,77,78,79,80],B=[47,50,51,52,53,77,78,79,80],L=[15,24,31],I=[1,93],R={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setDirection("TB");break;case 5:r.setDirection("BT");break;case 6:r.setDirection("RL");break;case 7:r.setDirection("LR");break;case 11:r.parseDirective("%%{","open_directive");break;case 12:r.parseDirective(a[s],"type_directive");break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 14:r.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=a[s];break;case 21:this.$=a[s-1]+a[s];break;case 22:case 23:this.$=a[s-1]+"~"+a[s];break;case 24:r.addRelation(a[s]);break;case 25:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 33:r.addClass(a[s]);break;case 34:r.addClass(a[s-2]),r.setCssClass(a[s-2],a[s]);break;case 35:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 36:r.addClass(a[s-5]),r.setCssClass(a[s-5