mermaid/dist/mermaid.min.js

25 lines
519 KiB
JavaScript
Raw Normal View History

2016-01-27 15:02:41 +01:00
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.mermaid=t()}}(function(){var define,module,exports;return function t(e,n,r){function i(u,o){if(!n[u]){if(!e[u]){var s="function"==typeof require&&require;if(!o&&s)return s(u,!0);if(a)return a(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[u]={exports:{}};e[u][0].call(l.exports,function(t){var n=e[u][1][t];return i(n?n:t)},l,l.exports,t,e,n,r)}return n[u].exports}for(var a="function"==typeof require&&require,u=0;u<r.length;u++)i(r[u]);return i}({1:[function(){},{}],2:[function(t,e,n){(function(t){function e(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(t){return i.exec(t).slice(1)};n.resolve=function(){for(var n="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var u=a>=0?arguments[a]:t.cwd();if("string"!=typeof u)throw new TypeError("Arguments to path.resolve must be strings");u&&(n=u+"/"+n,i="/"===u.charAt(0))}return n=e(r(n.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(t){var i=n.isAbsolute(t),a="/"===u(t,-1);return t=e(r(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},n.isAbsolute=function(t){return"/"===t.charAt(0)},n.join=function(){var t=Array.prototype.slice.call(arguments,0);return n.normalize(r(t,function(t){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},n.relative=function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=n.resolve(t).substr(1),e=n.resolve(e).substr(1);for(var i=r(t.split("/")),a=r(e.split("/")),u=Math.min(i.length,a.length),o=u,s=0;u>s;s++)if(i[s]!==a[s]){o=s;break}for(var c=[],s=o;s<i.length;s++)c.push("..");return c=c.concat(a.slice(o)),c.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(t){var e=a(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(t,e){var n=a(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},n.extname=function(t){return a(t)[3]};var u="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return 0>e&&(e=t.length+e),t.substr(e,n)}}).call(this,t("_process"))},{_process:3}],3:[function(t,e){function n(){}var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.MutationObserver,n="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};var r=[];if(e){var i=document.createElement("div"),a=new MutationObserver(function(){var t=r.slice();r.length=0,t.forEach(function(t){t()})});return a.observe(i,{attributes:!0}),function(t){r.length||i.setAttribute("yes","no"),r.push(t)}}return n?(window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var n=r.shift();n()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}):function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.on=n,r.addListener=n,r.once=n,r.off=n,r.removeListener=n,r.removeAllListeners=n,r.emit=n,r.binding=function(){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw new Error("process.chdir is not supported")}},{}],4:[function(t,e){!function(){function t(t){return t&&(t.ownerDocument||t.document||t).documentElement}function n(t){return t&&(t.ownerDocument&&t.owne
2015-10-19 22:08:17 +02:00
2016-01-27 15:02:41 +01:00
}return function(o){function s(t){for(var e=0,n=m.length,r=t[1],i=0;n>i;++i)for(var a,u=1,o=m[i],s=o.length,c=o[0];s>u;++u)a=o[u],c[1]<=r?a[1]>r&&tt(c,a,t)>0&&++e:a[1]<=r&&tt(c,a,t)<0&&--e,c=a;return 0!==e}function c(a,o,s,c){var l=0,h=0;if(null==a||(l=i(a,s))!==(h=i(o,s))||u(a,o)<0^s>0){do c.point(0===l||3===l?t:n,l>1?r:e);while((l=(l+s+4)%4)!==h)}else c.point(o[0],o[1])}function l(i,a){return i>=t&&n>=i&&a>=e&&r>=a}function h(t,e){l(t,e)&&o.point(t,e)}function f(){M.point=p,m&&m.push(y=[]),k=!0,A=!1,x=w=0/0}function d(){g&&(p(v,b),_&&A&&C.rejoin(),g.push(C.buffer())),M.point=h,A&&o.lineEnd()}function p(t,e){t=Math.max(-Oo,Math.min(Oo,t)),e=Math.max(-Oo,Math.min(Oo,e));var n=l(t,e);if(m&&y.push([t,e]),k)v=t,b=e,_=n,k=!1,n&&(o.lineStart(),o.point(t,e));else if(n&&A)o.point(t,e);else{var r={a:{x:x,y:w},b:{x:t,y:e}};S(r)?(A||(o.lineStart(),o.point(r.a.x,r.a.y)),o.point(r.b.x,r.b.y),n||o.lineEnd(),E=!1):n&&(o.lineStart(),o.point(t,e),E=!1)}x=t,w=e,A=n}var g,m,y,v,b,_,x,w,A,k,E,D=o,C=Oe(),S=Ye(t,e,n,r),M={point:h,lineStart:f,lineEnd:d,polygonStart:function(){o=C,g=[],m=[],E=!0},polygonEnd:function(){o=D,g=nu.merge(g);var e=s([t,r]),n=E&&e,i=g.length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),c(null,null,1,o),o.lineEnd()),i&&Te(g,a,e,c,o),o.polygonEnd()),g=m=y=null}};return M}}function He(t){var e=0,n=Bu/3,r=on(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Bu/180,n=t[1]*Bu/180):[e/Bu*180,n/Bu*180]},i}function Ge(t,e){function n(t,e){var n=Math.sqrt(a-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),u-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,a=1+r*(2*i-r),u=Math.sqrt(a)/i;return n.invert=function(t,e){var n=u-e;return[Math.atan2(t,n)/i,nt((a-(t*t+n*n)*i*i)/(2*i))]},n}function ze(){function t(t,e){Ro+=i*t-r*e,r=t,i=e}var e,n,r,i;Yo.point=function(a,u){Yo.point=t,e=r=a,n=i=u},Yo.lineEnd=function(){t(e,n)}}function $e(t,e){Po>t&&(Po=t),t>jo&&(jo=t),qo>e&&(qo=e),e>Uo&&(Uo=e)}function We(){function t(t,e){u.push("M",t,",",e,a)}function e(t,e){u.push("M",t,",",e),o.point=n}function n(t,e){u.push("L",t,",",e)}function r(){o.point=t}function i(){u.push("Z")}var a=Ze(4.5),u=[],o={point:t,lineStart:function(){o.point=e},lineEnd:r,polygonStart:function(){o.lineEnd=i},polygonEnd:function(){o.lineEnd=r,o.point=t},pointRadius:function(t){return a=Ze(t),o},result:function(){if(u.length){var t=u.join("");return u=[],t}}};return o}function Ze(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Xe(t,e){ko+=t,Eo+=e,++Do}function Je(){function t(t,r){var i=t-e,a=r-n,u=Math.sqrt(i*i+a*a);Co+=u*(e+t)/2,So+=u*(n+r)/2,Mo+=u,Xe(e=t,n=r)}var e,n;Ho.point=function(r,i){Ho.point=t,Xe(e=r,n=i)}}function Ke(){Ho.point=Xe}function Qe(){function t(t,e){var n=t-r,a=e-i,u=Math.sqrt(n*n+a*a);Co+=u*(r+t)/2,So+=u*(i+e)/2,Mo+=u,u=i*t-r*e,To+=u*(r+t),Fo+=u*(i+e),Bo+=3*u,Xe(r=t,i=e)}var e,n,r,i;Ho.point=function(a,u){Ho.point=t,Xe(e=r=a,n=i=u)},Ho.lineEnd=function(){t(e,n)}}function tn(t){function e(e,n){t.moveTo(e+u,n),t.arc(e,n,u,0,Lu)}function n(e,n){t.moveTo(e,n),o.point=r}function r(e,n){t.lineTo(e,n)}function i(){o.point=e}function a(){t.closePath()}var u=4.5,o={point:e,lineStart:function(){o.point=n},lineEnd:i,polygonStart:function(){o.lineEnd=a},polygonEnd:function(){o.lineEnd=i,o.point=e},pointRadius:function(t){return u=t,o},result:w};return o}function en(t){function e(t){return(o?r:n)(t)}function n(e){return an(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){b=0/0,k.point=a,e.lineStart()}function a(n,r){var a=ge([n,r]),u=t(n,r);i(b,_,v,x,w,A,b=u[0],_=u[1],v=n,x=a[0],w=a[1],A=a[2],o,e),e.point(b,_)}function u(){k.point=n,e.lineEnd()}function s(){r(),k.point=c,k.lineEnd=l}function c(t,e){a(h=t,f=e),d=b,p=_,g=x,m=w,y=A,k.point=a}function l(){i(b,_,v,x,w,A,d,p,h,g,m,y,o,e),k.lineEnd=u,u()}var h,f,d,p,g,m,y,v,b,_,x,w,A,k={point:n,lineStart:r,lineEnd:u,polygonStart:function(){e.polygonStart(),k.lineStart=s},polygonEnd:function(){e.polygonEnd(),k.lineStart=r}};return k}function i(e,n,r,o,s,c,l,h,f,d,p,g,m,y){var v=l-e,b=h-
e):r},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(u="function"==typeof t?a=t:(a=Ss.get(t)||ga).key,e):u},e.tension=function(t){return arguments.length?(o=t,e):o},e}function ga(t){return t.join("L")}function ma(t){return ga(t)+"Z"}function ya(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function va(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function ba(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function _a(t,e){return t.length<4?ga(t):t[1]+Aa(t.slice(1,-1),ka(t,e))}function xa(t,e){return t.length<3?ga(t):t[0]+Aa((t.push(t[0]),t),ka([t[t.length-2]].concat(t,[t[1]]),e))}function wa(t,e){return t.length<3?ga(t):t[0]+Aa(t,ka(t,e))}function Aa(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return ga(t);var n=t.length!=e.length,r="",i=t[0],a=t[1],u=e[0],o=u,s=1;if(n&&(r+="Q"+(a[0]-2*u[0]/3)+","+(a[1]-2*u[1]/3)+","+a[0]+","+a[1],i=t[1],s=2),e.length>1){o=e[1],a=t[s],s++,r+="C"+(i[0]+u[0])+","+(i[1]+u[1])+","+(a[0]-o[0])+","+(a[1]-o[1])+","+a[0]+","+a[1];for(var c=2;c<e.length;c++,s++)a=t[s],o=e[c],r+="S"+(a[0]-o[0])+","+(a[1]-o[1])+","+a[0]+","+a[1]}if(n){var l=t[s];r+="Q"+(a[0]+2*o[0]/3)+","+(a[1]+2*o[1]/3)+","+l[0]+","+l[1]}return r}function ka(t,e){for(var n,r=[],i=(1-e)/2,a=t[0],u=t[1],o=1,s=t.length;++o<s;)n=a,a=u,u=t[o],r.push([i*(u[0]-n[0]),i*(u[1]-n[1])]);return r}function Ea(t){if(t.length<3)return ga(t);var e=1,n=t.length,r=t[0],i=r[0],a=r[1],u=[i,i,i,(r=t[1])[0]],o=[a,a,a,r[1]],s=[i,",",a,"L",Ma(Fs,u),",",Ma(Fs,o)];for(t.push(t[n-1]);++e<=n;)r=t[e],u.shift(),u.push(r[0]),o.shift(),o.push(r[1]),Ta(s,u,o);return t.pop(),s.push("L",r),s.join("")}function Da(t){if(t.length<4)return ga(t);for(var e,n=[],r=-1,i=t.length,a=[0],u=[0];++r<3;)e=t[r],a.push(e[0]),u.push(e[1]);for(n.push(Ma(Fs,a)+","+Ma(Fs,u)),--r;++r<i;)e=t[r],a.shift(),a.push(e[0]),u.shift(),u.push(e[1]),Ta(n,a,u);return n.join("")}function Ca(t){for(var e,n,r=-1,i=t.length,a=i+4,u=[],o=[];++r<4;)n=t[r%i],u.push(n[0]),o.push(n[1]);for(e=[Ma(Fs,u),",",Ma(Fs,o)],--r;++r<a;)n=t[r%i],u.shift(),u.push(n[0]),o.shift(),o.push(n[1]),Ta(e,u,o);return e.join("")}function Sa(t,e){var n=t.length-1;if(n)for(var r,i,a=t[0][0],u=t[0][1],o=t[n][0]-a,s=t[n][1]-u,c=-1;++c<=n;)r=t[c],i=c/n,r[0]=e*r[0]+(1-e)*(a+i*o),r[1]=e*r[1]+(1-e)*(u+i*s);return Ea(t)}function Ma(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Ta(t,e,n){t.push("C",Ma(Ms,e),",",Ma(Ms,n),",",Ma(Ts,e),",",Ma(Ts,n),",",Ma(Fs,e),",",Ma(Fs,n))}function Fa(t,e){return(e[1]-t[1])/(e[0]-t[0])}function Ba(t){for(var e=0,n=t.length-1,r=[],i=t[0],a=t[1],u=r[0]=Fa(i,a);++e<n;)r[e]=(u+(u=Fa(i=a,a=t[e+1])))/2;return r[e]=u,r}function La(t){for(var e,n,r,i,a=[],u=Ba(t),o=-1,s=t.length-1;++o<s;)e=Fa(t[o],t[o+1]),pu(e)<Tu?u[o]=u[o+1]=0:(n=u[o]/e,r=u[o+1]/e,i=n*n+r*r,i>9&&(i=3*e/Math.sqrt(i),u[o]=i*n,u[o+1]=i*r));for(o=-1;++o<=s;)i=(t[Math.min(s,o+1)][0]-t[Math.max(0,o-1)][0])/(6*(1+u[o]*u[o])),a.push([i||0,u[o]*i||0]);return a}function Na(t){return t.length<3?ga(t):t[0]+Aa(t,La(t))}function Oa(t){for(var e,n,r,i=-1,a=t.length;++i<a;)e=t[i],n=e[0],r=e[1]-Ou,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function Ia(t){function e(e){function s(){g.push("M",o(t(y),h),l,c(t(m.reverse()),h),"Z")}for(var f,d,p,g=[],m=[],y=[],v=-1,b=e.length,_=Ct(n),x=Ct(i),w=n===r?function(){return d}:Ct(r),A=i===a?function(){return p}:Ct(a);++v<b;)u.call(this,f=e[v],v)?(m.push([d=+_.call(this,f,v),p=+x.call(this,f,v)]),y.push([+w.call(this,f,v),+A.call(this,f,v)])):m.length&&(s(),m=[],y=[]);return m.length&&s(),g.length?g.join(""):null}var n=Mn,r=Mn,i=0,a=Tn,u=Me,o=ga,s=o.key,c=o,l="L",h=.7;return e.x=function(t){return arguments.length?(n=r=t,e):r},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(i=a=t,e):a},e.y0=function(t){return arguments
to=a,eo||(no=clearTimeout(no),eo=1,io(Bt))},nu.timer.flush=function(){Lt(),Nt()},nu.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var ao=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(It);nu.formatPrefix=function(t,e){var n=0;return t&&(0>t&&(t*=-1),e&&(t=nu.round(t,Ot(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),ao[8+n/3]};var uo=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,oo=nu.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=nu.round(t,Ot(t,e))).toFixed(Math.max(0,Math.min(20,Ot(t*(1+1e-15),e))))}}),so=nu.time={},co=Date;qt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){lo.setUTCDate.apply(this._,arguments)},setDay:function(){lo.setUTCDay.apply(this._,arguments)},setFullYear:function(){lo.setUTCFullYear.apply(this._,arguments)},setHours:function(){lo.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){lo.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){lo.setUTCMinutes.apply(this._,arguments)},setMonth:function(){lo.setUTCMonth.apply(this._,arguments)},setSeconds:function(){lo.setUTCSeconds.apply(this._,arguments)},setTime:function(){lo.setTime.apply(this._,arguments)}};var lo=Date.prototype;so.year=jt(function(t){return t=so.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),so.years=so.year.range,so.years.utc=so.year.utc.range,so.day=jt(function(t){var e=new co(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),so.days=so.day.range,so.days.utc=so.day.utc.range,so.dayOfYear=function(t){var e=so.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=so[t]=jt(function(t){return(t=so.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=so.year(t).getDay();return Math.floor((so.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});so[t+"s"]=n.range,so[t+"s"].utc=n.utc.range,so[t+"OfYear"]=function(t){var n=so.year(t).getDay();return Math.floor((so.dayOfYear(t)+(n+e)%7)/7)}}),so.week=so.sunday,so.weeks=so.sunday.range,so.weeks.utc=so.sunday.utc.range,so.weekOfYear=so.sundayOfYear;var ho={"-":"",_:" ",0:"0"},fo=/^\s*\d+/,po=/^%/;nu.locale=function(t){return{numberFormat:Rt(t),timeFormat:Yt(t)}};var go=nu.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});nu.format=go.numberFormat,nu.geo={},ce.prototype={s:0,t:0,add:function(t){le(t,this.t,mo),le(mo.s,this.s,this),this.s?this.t+=mo.t:this.s=mo.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var mo=
2015-10-19 22:08:17 +02:00
2016-01-27 15:02:41 +01:00
}),ei(o,xi),ei(o,function(t){t.r-=h})}return ki(o,s/2,c/2,e?1:1/Math.max(2*o.r/s,2*o.r/c)),u}var e,n=nu.layout.hierarchy().sort(yi),r=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},Qr(t,n)},nu.layout.tree=function(){function t(t,i){var l=u.call(this,t,i),h=l[0],f=e(h);if(ei(f,n),f.parent.m=-f.z,ti(f,r),c)ti(h,a);else{var d=h,p=h,g=h;ti(h,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>g.depth&&(g=t)});var m=o(d,p)/2-d.x,y=s[0]/(p.x+o(p,d)/2+m),v=s[1]/(g.depth||1);ti(h,function(t){t.x=(t.x+m)*y,t.y=t.depth*v})}return l}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,a=e.children,u=0,o=a.length;o>u;++u)r.push((a[u]=i={_:a[u],parent:e,children:(i=a[u].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:u}).a=i);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){Ti(t);var a=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+o(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+o(t._,r._));t.parent.A=i(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,n){if(e){for(var r,i=t,a=t,u=e,s=i.parent.children[0],c=i.m,l=a.m,h=u.m,f=s.m;u=Si(u),i=Ci(i),u&&i;)s=Ci(s),a=Si(a),a.a=t,r=u.z+h-i.z-c+o(u._,i._),r>0&&(Mi(Fi(u,t,n),t,r),c+=r,l+=r),h+=u.m,c+=i.m,f+=s.m,l+=a.m;u&&!Si(a)&&(a.t=u,a.m+=h-l),i&&!Ci(s)&&(s.t=i,s.m+=c-f,n=t)}return n}function a(t){t.x*=s[0],t.y=t.depth*s[1]}var u=nu.layout.hierarchy().sort(null).value(null),o=Di,s=[1,1],c=null;return t.separation=function(e){return arguments.length?(o=e,t):o},t.size=function(e){return arguments.length?(c=null==(s=e)?a:null,t):c?null:s},t.nodeSize=function(e){return arguments.length?(c=null==(s=e)?null:a,t):c?s:null},Qr(t,u)},nu.layout.cluster=function(){function t(t,a){var u,o=e.call(this,t,a),s=o[0],c=0;ei(s,function(t){var e=t.children;e&&e.length?(t.x=Li(e),t.y=Bi(e)):(t.x=u?c+=n(t,u):0,t.y=0,u=t)});var l=Ni(s),h=Oi(s),f=l.x-n(l,h)/2,d=h.x+n(h,l)/2;return ei(s,i?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-f)/(d-f)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),o}var e=nu.layout.hierarchy().sort(null).value(null),n=Di,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},Qr(t,e)},nu.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,a=t.length;++i<a;)r=(n=t[i]).value*(0>e?0:e),n.area=isNaN(r)||0>=r?0:r}function e(n){var a=n.children;if(a&&a.length){var u,o,s,c=h(n),l=[],f=a.slice(),p=1/0,g="slice"===d?c.dx:"dice"===d?c.dy:"slice-dice"===d?1&n.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(t(f,c.dx*c.dy/n.value),l.area=0;(s=f.length)>0;)l.push(u=f[s-1]),l.area+=u.area,"squarify"!==d||(o=r(l,g))<=p?(f.pop(),p=o):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),a.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var a,u=h(e),o=r.slice(),s=[];for(t(o,u.dx*u.dy/e.value),s.area=0;a=o.pop();)s.push(a),s.area+=a.area,null!=a.z&&(i(s,a.z?u.dx:u.dy,u,!o.length),s.length=s.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,a=1/0,u=-1,o=t.length;++u<o;)(n=t[u].area)&&(a>n&&(a=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*p/r,r/(e*a*p)):1/0}function i(t,e,n,r){var i,a=-1,u=t.length,o=n.x,c=n.y,l=e?s(t.area/e):0;if(e==n.dx){for((r||l>n.dy)&&(l=n.dy);++a<u;)i=t[a],i.x=o,i.y=c,i.dy=l,o+=i.dx=Math.min(n.x+n.dx-o,l?s(i.area/l):0);i.z=!0,i.dx+=n.x+n.dx-o,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++a<u;)i=t[a],i.x=o,i.y=c,i.dx=l,c+=i.dy=Math.min(n.y+n.dy-c,l?s(i.area/l):0);i.z=!1,i.dy+=n.y+n.dy-c,n.x+=l,n.dx-=l}}function a(r){var i=u||o(r),a=i[0];return a.x=0,a.y=0,a.dx=c[0],a.dy=c[1],u&&o.revalue(a),t([a],a.dx*a.dy/a.value),(u?n:e)(a),f&&(u=i),i}var u,o=nu.layout.hierarchy(),s=Math.round,c=[1,1],l=null,h=Ii,f=!1,d="squarify",p=.5*(1+
2015-10-19 22:08:17 +02:00
2016-01-27 15:02:41 +01:00
function n(t,e,n){var o=e.nodes().filter(function(t){return!a.isSubgraph(e,t)}),s=t.selectAll("g.node").data(o,function(t){return t}).classed("update",!0);return s.selectAll("*").remove(),s.enter().append("g").attr("class","node").style("opacity",0),s.each(function(t){var o=e.node(t),s=u.select(this),c=s.append("g").attr("class","label"),l=i(c,o),h=n[o.shape],f=r.pick(l.node().getBBox(),"width","height");o.elem=this,o.id&&s.attr("id",o.id),o.labelId&&c.attr("id",o.labelId),a.applyClass(s,o["class"],(s.classed("update")?"update ":"")+"node"),r.has(o,"width")&&(f.width=o.width),r.has(o,"height")&&(f.height=o.height),f.width+=o.paddingLeft+o.paddingRight,f.height+=o.paddingTop+o.paddingBottom,c.attr("transform","translate("+(o.paddingLeft-o.paddingRight)/2+","+(o.paddingTop-o.paddingBottom)/2+")");var d=h(u.select(this),f,o);a.applyStyle(d,o.style);var p=d.node().getBBox();o.width=p.width,o.height=p.height}),a.applyTransition(s.exit(),e).style("opacity",0).remove(),s}var r=t("./lodash"),i=t("./label/add-label"),a=t("./util"),u=t("./d3");e.exports=n},{"./d3":11,"./label/add-label":22,"./lodash":25,"./util":31}],11:[function(t,e){e.exports=window.d3},{}],12:[function(t,e){var n;if(t)try{n=t("dagre")}catch(r){}n||(n=window.dagre),e.exports=n},{dagre:54}],13:[function(t,e){var n;if(t)try{n=t("graphlib")}catch(r){}n||(n=window.graphlib),e.exports=n},{graphlib:33}],14:[function(t,e){e.exports={node:t("./intersect-node"),circle:t("./intersect-circle"),ellipse:t("./intersect-ellipse"),polygon:t("./intersect-polygon"),rect:t("./intersect-rect")}},{"./intersect-circle":15,"./intersect-ellipse":16,"./intersect-node":18,"./intersect-polygon":19,"./intersect-rect":20}],15:[function(t,e){function n(t,e,n){return r(t,e,e,n)}var r=t("./intersect-ellipse");e.exports=n},{"./intersect-ellipse":16}],16:[function(t,e){function n(t,e,n,r){var i=t.x,a=t.y,u=i-r.x,o=a-r.y,s=Math.sqrt(e*e*o*o+n*n*u*u),c=Math.abs(e*n*u/s);r.x<i&&(c=-c);var l=Math.abs(e*n*o/s);return r.y<a&&(l=-l),{x:i+c,y:a+l}}e.exports=n},{}],17:[function(t,e){function n(t,e,n,i){var a,u,o,s,c,l,h,f,d,p,g,m,y,v,b;return a=e.y-t.y,o=t.x-e.x,c=e.x*t.y-t.x*e.y,d=a*n.x+o*n.y+c,p=a*i.x+o*i.y+c,0!==d&&0!==p&&r(d,p)||(u=i.y-n.y,s=n.x-i.x,l=i.x*n.y-n.x*i.y,h=u*t.x+s*t.yy+l,f=u*e.x+s*e.y+l,0!==h&&0!==f&&r(h,f)||(g=a*s-u*o,0===g))?void 0:(m=Math.abs(g/2),y=o*l-s*c,v=0>y?(y-m)/g:(y+m)/g,y=u*c-a*l,b=0>y?(y-m)/g:(y+m)/g,{x:v,y:b})}function r(t,e){return t*e>0}e.exports=n},{}],18:[function(t,e){function n(t,e){return t.intersect(e)}e.exports=n},{}],19:[function(t,e){function n(t,e,n){var i=t.x,a=t.y,u=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;e.forEach(function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)});for(var c=i-t.width/2-o,l=a-t.height/2-s,h=0;h<e.length;h++){var f=e[h],d=e[h<e.length-1?h+1:0],p=r(t,n,{x:c+f.x,y:l+f.y},{x:c+d.x,y:l+d.y});p&&u.push(p)}return u.length?(u.length>1&&u.sort(function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),u=e.x-n.x,o=e.y-n.y,s=Math.sqrt(u*u+o*o);return s>a?-1:a===s?0:1}),u[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}var r=t("./intersect-line");e.exports=n},{"./intersect-line":17}],20:[function(t,e){function n(t,e){var n,r,i=t.x,a=t.y,u=e.x-i,o=e.y-a,s=t.width/2,c=t.height/2;return Math.abs(o)*s>Math.abs(u)*c?(0>o&&(c=-c),n=0===o?0:c*u/o,r=c):(0>u&&(s=-s),n=s,r=0===u?0:s*o/u),{x:i+n,y:a+r}}e.exports=n},{}],21:[function(t,e){function n(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div"),a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert(function(){return a});break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var u,o;return i.each(function(){u=this.clientWidth,o=this.clientHeight}),n.attr("width",u).attr("height",o),n}var r=t("../util");e.exports=n},{"../util":31}],22:[function(t,e){function n(t,e,n){var u=e.label,o=t.append("g");"svg"===e.labelType?a(o,e):"string"!=typeof u||"html"===e.labelType?i(o,e):r(o,e);var s,c=o.node().getBBox();switch(n){case"top":s=-e.height/2;break;case"bottom":s=
2015-10-19 22:08:17 +02:00
2016-01-27 15:02:41 +01:00
var y=(o?Pn:jn)(t,e,n,r,i,a,u);return a.pop(),u.pop(),y}function Re(t,e,n){var r=e.length,i=r,a=!n;if(null==t)return!i;for(t=hr(t);r--;){var u=e[r];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++r<i;){u=e[r];var o=u[0],s=t[o],c=u[1];if(a&&u[2]){if(s===E&&!(o in t))return!1}else{var l=n?n(s,c,o):E;if(!(l===E?Oe(c,s,n,!0):l))return!1}}return!0}function Pe(t,e){var n=-1,r=Jn(t)?ja(t.length):[];return Ou(t,function(t,i,a){r[++n]=e(t,i,a)}),r}function qe(t){var e=Hn(t);if(1==e.length&&e[0][2]){var n=e[0][0],r=e[0][1];return function(t){return null==t?!1:t[n]===r&&(r!==E||n in hr(t))}}return function(t){return Re(t,e)}}function je(t,e){var n=Mo(t),r=tr(t)&&rr(e),i=t+"";return t=fr(t),function(a){if(null==a)return!1;var u=i;if(a=hr(a),!(!n&&r||u in a)){if(a=1==t.length?a:Ne(a,We(t,0,-1)),null==a)return!1;u=Dr(t),a=hr(a)}return a[u]===e?e!==E||u in a:Oe(e,a[u],E,!0)}}function Ue(t,e,n,r,i){if(!Ni(t))return t;var a=Jn(e)&&(Mo(e)||Vi(e)),u=a?E:jo(e);return ee(u||e,function(o,s){if(u&&(s=o,o=e[s]),y(o))r||(r=[]),i||(i=[]),Ye(t,e,s,Ue,n,r,i);else{var c=t[s],l=n?n(c,o,s,t,e):E,h=l===E;h&&(l=o),l===E&&(!a||s in t)||!h&&(l===l?l===c:c!==c)||(t[s]=l)}}),t}function Ye(t,e,n,r,i,a,u){for(var o=a.length,s=e[n];o--;)if(a[o]==s)return void(t[n]=u[o]);var c=t[n],l=i?i(c,s,n,t,e):E,h=l===E;h&&(l=s,Jn(s)&&(Mo(s)||Vi(s))?l=Mo(c)?c:Jn(c)?te(c):[]:ji(s)||Ei(s)?l=Ei(c)?Wi(c):ji(c)?c:{}:h=!1),a.push(s),u.push(l),h?t[n]=r(l,s,i,a,u):(l===l?l!==c:c===c)&&(t[n]=l)}function Ve(t){return function(e){return null==e?E:e[t]}}function He(t){var e=t+"";return t=fr(t),function(n){return Ne(n,t,e)}}function Ge(t,e){for(var n=t?e.length:0;n--;){var r=e[n];if(r!=i&&Kn(r)){var i=r;fu.call(t,r,1)}}return t}function ze(t,e){return t+yu(Eu()*(e-t+1))}function $e(t,e,n,r,i){return i(t,function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)}),n}function We(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,0>e&&(e=-e>i?0:i+e),n=n===E||n>i?i:+n||0,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=ja(i);++r<i;)a[r]=t[r+e];return a}function Ze(t,e){var n;return Ou(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function Xe(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function Je(t,e,n){var r=Un(),i=-1;e=se(e,function(t){return r(t)});var a=Pe(t,function(t){var n=se(e,function(e){return e(t)});return{criteria:n,index:++i,value:t}});return Xe(a,function(t,e){return h(t,e,n)})}function Ke(t,e){var n=0;return Ou(t,function(t,r,i){n+=+e(t,r,i)||0}),n}function Qe(t,e){var n=-1,r=Vn(),i=t.length,u=r==a,o=u&&i>=j,s=o?gn():null,c=[];s?(r=Jt,u=!1):(o=!1,s=e?[]:c);t:for(;++n<i;){var l=t[n],h=e?e(l,n,t):l;if(u&&l===l){for(var f=s.length;f--;)if(s[f]===h)continue t;e&&s.push(h),c.push(l)}else r(s,h,0)<0&&((e||o)&&s.push(h),c.push(l))}return c}function tn(t,e){for(var n=-1,r=e.length,i=ja(r);++n<r;)i[n]=t[e[n]];return i}function en(t,e,n,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&e(t[a],a,t););return n?We(t,r?0:a,r?a+1:i):We(t,r?a+1:0,r?i:a)}function nn(t,e){var n=t;n instanceof J&&(n=n.value());for(var r=-1,i=e.length;++r<i;){var a=e[r];n=a.func.apply(a.thisArg,ce([n],a.args))}return n}function rn(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&Tu>=i){for(;i>r;){var a=r+i>>>1,u=t[a];(n?e>=u:e>u)&&null!==u?r=a+1:i=a}return i}return an(t,e,Ca,n)}function an(t,e,n,r){e=n(e);for(var i=0,a=t?t.length:0,u=e!==e,o=null===e,s=e===E;a>i;){var c=yu((i+a)/2),l=n(t[c]),h=l!==E,f=l===l;if(u)var d=f||r;else d=o?f&&h&&(r||null!=l):s?f&&(r||h):null==l?!1:r?e>=l:e>l;d?i=c+1:a=c}return wu(a,Mu)}function un(t,e,n){if("function"!=typeof t)return Ca;if(e===E)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,a){return t.call(e,n,r,i,a)};case 5:return function(n,r,i,a,u){return t.call(e,n,r,i,a,u)}}return function(){return t.apply(e,arguments)}}function on(t){var e=new au(t.byteLength),n=new du(e);return n.set(new du(t)),e}function sn(t,e,n){for(var r=n.length,i=-1,a=xu(t.length-r,0),u=-1,o=e.length,s=ja(o+a);++u<o;)s[u]=e[u];for(;++i<r;)s[n[i]]=t[i];for(;a--;)s[u++]=t[i++];return s}function cn(t,e,
2015-11-11 20:15:02 +01:00
2016-01-27 15:02:41 +01:00
return t.apply(this,r)})}),Do=Tn(B),Co=Tn(L),So=yi(function(t,e){return Rn(t,O,E,E,E,Me(e))}),Mo=vu||function(t){return y(t)&&nr(t.length)&&nu.call(t)==z},To=hn(Ue),Fo=hn(function(t,e,n){return n?me(t,e,n):ye(t,e)}),Bo=bn(Fo,pe),Lo=bn(To,ar),No=An(Fe),Oo=An(Be),Io=Dn(Ru),Ro=Dn(Pu),Po=Cn(Fe),qo=Cn(Be),jo=_u?function(t){var e=null==t?E:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&Jn(t)?cr(t):Ni(t)?_u(t):[]}:cr,Uo=Sn(!0),Yo=Sn(),Vo=yi(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=se(Me(e),Wa);return ur(t,Ae(ta(t),e))}var n=un(e[0],e[1],3);return or(t,function(t,e,r){return!n(t,e,r)})}),Ho=yi(function(t,e){return null==t?{}:"function"==typeof e[0]?or(t,un(e[0],e[1],3)):ur(t,Me(e))}),Go=mn(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)}),zo=mn(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),$o=Mn(),Wo=Mn(!0),Zo=mn(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Xo=mn(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))}),Jo=yi(function(t,e){try{return t.apply(E,e)}catch(n){return Fi(n)?n:new Ya(n)}}),Ko=yi(function(t,e){return function(n){return Xn(n,t,e)}}),Qo=yi(function(t,e){return function(n){return Xn(t,n,e)}}),ts=On("ceil"),es=On("floor"),ns=_n(Ai,Du),rs=_n(Gi,Cu),is=On("round");return e.prototype=n.prototype,v.prototype=Nu(n.prototype),v.prototype.constructor=v,J.prototype=Nu(n.prototype),J.prototype.constructor=J,Gt.prototype["delete"]=zt,Gt.prototype.get=$t,Gt.prototype.has=Wt,Gt.prototype.set=Zt,Xt.prototype.push=Kt,pi.Cache=Gt,e.after=li,e.ary=hi,e.assign=Fo,e.at=eo,e.before=fi,e.bind=mo,e.bindAll=yo,e.bindKey=vo,e.callback=Ea,e.chain=Ur,e.chunk=pr,e.compact=gr,e.constant=Da,e.countBy=no,e.create=Zi,e.curry=bo,e.curryRight=_o,e.debounce=di,e.defaults=Bo,e.defaultsDeep=Lo,e.defer=xo,e.delay=wo,e.difference=Vu,e.drop=mr,e.dropRight=yr,e.dropRightWhile=vr,e.dropWhile=br,e.fill=_r,e.filter=Jr,e.flatten=wr,e.flattenDeep=Ar,e.flow=Ao,e.flowRight=ko,e.forEach=ao,e.forEachRight=uo,e.forIn=Io,e.forInRight=Ro,e.forOwn=Po,e.forOwnRight=qo,e.functions=Xi,e.groupBy=oo,e.indexBy=so,e.initial=Er,e.intersection=zu,e.invert=Qi,e.invoke=co,e.keys=jo,e.keysIn=ta,e.map=ti,e.mapKeys=Uo,e.mapValues=Yo,e.matches=Sa,e.matchesProperty=Ma,e.memoize=pi,e.merge=To,e.method=Ko,e.methodOf=Qo,e.mixin=Ta,e.modArgs=Eo,e.negate=gi,e.omit=Vo,e.once=mi,e.pairs=ea,e.partial=Do,e.partialRight=Co,e.partition=lo,e.pick=Ho,e.pluck=ei,e.property=La,e.propertyOf=Na,e.pull=Sr,e.pullAt=$u,e.range=Oa,e.rearg=So,e.reject=ni,e.remove=Mr,e.rest=Tr,e.restParam=yi,e.set=ra,e.shuffle=ii,e.slice=Fr,e.sortBy=oi,e.sortByAll=po,e.sortByOrder=si,e.spread=vi,e.take=Br,e.takeRight=Lr,e.takeRightWhile=Nr,e.takeWhile=Or,e.tap=Yr,e.throttle=bi,e.thru=Vr,e.times=Ia,e.toArray=$i,e.toPlainObject=Wi,e.transform=ia,e.union=Xu,e.uniq=Ir,e.unzip=Rr,e.unzipWith=Pr,e.values=aa,e.valuesIn=ua,e.where=ci,e.without=Ju,e.wrap=_i,e.xor=qr,e.zip=Ku,e.zipObject=jr,e.zipWith=Qu,e.backflow=ko,e.collect=ti,e.compose=ko,e.each=ao,e.eachRight=uo,e.extend=Fo,e.iteratee=Ea,e.methods=Xi,e.object=jr,e.select=Jr,e.tail=Tr,e.unique=Ir,Ta(e,e),e.add=Pa,e.attempt=Jo,e.camelCase=Go,e.capitalize=ca,e.ceil=ts,e.clone=xi,e.cloneDeep=wi,e.deburr=la,e.endsWith=ha,e.escape=fa,e.escapeRegExp=da,e.every=Xr,e.find=ro,e.findIndex=Hu,e.findKey=No,e.findLast=io,e.findLastIndex=Gu,e.findLastKey=Oo,e.findWhere=Kr,e.first=xr,e.floor=es,e.get=Ji,e.gt=Ai,e.gte=ki,e.has=Ki,e.identity=Ca,e.includes=Qr,e.indexOf=kr,e.inRange=oa,e.isArguments=Ei,e.isArray=Mo,e.isBoolean=Di,e.isDate=Ci,e.isElement=Si,e.isEmpty=Mi,e.isEqual=Ti,e.isError=Fi,e.isFinite=Bi,e.isFunction=Li,e.isMatch=Oi,e.isNaN=Ii,e.isNative=Ri,e.isNull=Pi,e.isNumber=qi,e.isObject=Ni,e.isPlainObject=ji,e.isRegExp=Ui,e.isString=Yi,e.isTypedArray=Vi,e.isUndefined=Hi,e.kebabCase=zo,e.last=Dr,e.lastIndexOf=Cr,e.lt=Gi,e.lte=zi,e.max=ns,e.min=rs,e.noConflict=Fa,e.noop=Ba,e.now=go,e.pad=pa,e.padLeft=$o,e.padRight=Wo,e.parseInt=ga,e.random=sa,e.reduce=ho,e.reduceRight=fo,e.repeat=ma,e.result=na,e.round=is,e.runInContext=k,e.size=ai,e.snakeCase=Z
var u=0,o=0,s=e.length,c=m.last(n);return m.each(n,function(e,l){var h=i(t,e),f=h?t.node(h).order:s;(h||e===c)&&(m.each(n.slice(o,l+1),function(e){m.each(t.predecessors(e),function(n){var i=t.node(n),o=i.order;!(u>o||o>f)||i.dummy&&t.node(e).dummy||a(r,n,e)})}),o=l+1,u=f)}),n}var r={};return m.reduce(e,n),r}function r(t,e){function n(e,n,r,u,o){var s;m.each(m.range(n,r),function(n){s=e[n],t.node(s).dummy&&m.each(t.predecessors(s),function(e){var n=t.node(e);n.dummy&&(n.order<u||n.order>o)&&a(i,e,s)})})}function r(e,r){var i,a=-1,u=0;return m.each(r,function(o,s){if("border"===t.node(o).dummy){var c=t.predecessors(o);c.length&&(i=t.node(c[0]).order,n(r,u,s,a,i),u=s,a=i)}n(r,u,r.length,i,e.length)}),r}var i={};return m.reduce(e,r),i}function i(t,e){return t.node(e).dummy?m.find(t.predecessors(e),function(e){return t.node(e).dummy}):void 0}function a(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function u(t,e,n){if(e>n){var r=e;e=n,n=r}return m.has(t[e],n)}function o(t,e,n,r){var i={},a={},o={};return m.each(e,function(t){m.each(t,function(t,e){i[t]=t,a[t]=t,o[t]=e})}),m.each(e,function(t){var e=-1;m.each(t,function(t){var s=r(t);if(s.length){s=m.sortBy(s,function(t){return o[t]});for(var c=(s.length-1)/2,l=Math.floor(c),h=Math.ceil(c);h>=l;++l){var f=s[l];a[t]===t&&e<o[f]&&!u(n,t,f)&&(a[f]=t,a[t]=i[t]=i[f],e=o[f])}}})}),{root:i,align:a}}function s(t,e,n,r,i){function a(t){m.has(l,t)||(l[t]=!0,o[t]=m.reduce(s.inEdges(t),function(t,e){return a(e.v),Math.max(t,o[e.v]+s.edge(e))},0))}function u(e){if(2!==l[e]){l[e]++;var n=t.node(e),r=m.reduce(s.outEdges(e),function(t,e){return u(e.w),Math.min(t,o[e.w]-s.edge(e))},Number.POSITIVE_INFINITY);r!==Number.POSITIVE_INFINITY&&n.borderType!==h&&(o[e]=Math.max(o[e],r))}}var o={},s=c(t,e,n,i),l={};m.each(s.nodes(),a);var h=i?"borderLeft":"borderRight";return m.each(s.nodes(),u),m.each(r,function(t){o[t]=o[n[t]]}),o}function c(t,e,n,r){var i=new y,a=t.graph(),u=p(a.nodesep,a.edgesep,r);return m.each(e,function(e){var r;m.each(e,function(e){var a=n[e];if(i.setNode(a),r){var o=n[r],s=i.edge(o,a);i.setEdge(o,a,Math.max(u(t,e,r),s||0))}r=e})}),i}function l(t,e){return m.min(e,function(e){var n=m.min(e,function(e,n){return e-g(t,n)/2}),r=m.max(e,function(e,n){return e+g(t,n)/2});return r-n})}function h(t,e){var n=m.min(e),r=m.max(e);m.each(["u","d"],function(i){m.each(["l","r"],function(a){var u,o=i+a,s=t[o];s!==e&&(u="l"===a?n-m.min(s):r-m.max(s),u&&(t[o]=m.mapValues(s,function(t){return t+u})))})})}function f(t,e){return m.mapValues(t.ul,function(n,r){if(e)return t[e.toLowerCase()][r];var i=m.sortBy(m.pluck(t,r));return(i[1]+i[2])/2})}function d(t){var e,i=v.buildLayerMatrix(t),a=m.merge(n(t,i),r(t,i)),u={};m.each(["u","d"],function(n){e="u"===n?i:m.values(i).reverse(),m.each(["l","r"],function(r){"r"===r&&(e=m.map(e,function(t){return m.values(t).reverse()}));var i=m.bind("u"===n?t.predecessors:t.successors,t),c=o(t,e,a,i),l=s(t,e,c.root,c.align,"r"===r);"r"===r&&(l=m.mapValues(l,function(t){return-t})),u[n+r]=l})});var c=l(t,u);return h(u,c),f(u,t.graph().align)}function p(t,e,n){return function(r,i,a){var u,o=r.node(i),s=r.node(a),c=0;if(c+=o.width/2,m.has(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":u=-o.width/2;break;case"r":u=o.width/2}if(u&&(c+=n?u:-u),u=0,c+=(o.dummy?e:t)/2,c+=(s.dummy?e:t)/2,c+=s.width/2,m.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=s.width/2;break;case"r":u=-s.width/2}return u&&(c+=n?u:-u),u=0,c}}function g(t,e){return t.node(e).width}var m=t("../lodash"),y=t("../graphlib").Graph,v=t("../util");e.exports={positionX:d,findType1Conflicts:n,findType2Conflicts:r,addConflict:a,hasConflict:u,verticalAlignment:o,horizontalCompaction:s,alignCoordinates:h,findSmallestWidthAlignment:l,balance:f}},{"../graphlib":60,"../lodash":63,"../util":82}],77:[function(t,e){"use strict";function n(t){t=a.asNonCompoundGraph(t),r(t),i.each(u(t),function(e,n){t.node(n).x=e})}function r(t){var e=a.buildLayerMatrix(t),n=t.graph().ranksep,r=0;i.each(e,function(e){var a=i.max(i.map(e,function(e){return t.node(e).height}));i.each(e,function(e){t.n
"⥓":"RightVectorBar","˚":"ring","":"rlm","⎱":"rmoust","⫮":"rnmid","⟭":"roang","⇾":"roarr","⦆":"ropar","𝕣":"ropf","⨮":"roplus","⨵":"rotimes","⥰":"RoundImplies",")":"rpar","⦔":"rpargt","⨒":"rppolint","":"rsaquo","𝓇":"rscr","↱":"rsh","⋊":"rtimes","▹":"rtri","⧎":"rtriltri","⧴":"RuleDelayed","⥨":"ruluhar","℞":"rx","Ś":"Sacute","ś":"sacute","⪸":"scap","Š":"Scaron","š":"scaron","⪼":"Sc","≻":"sc","≽":"sccue","⪰":"sce","⪴":"scE","Ş":"Scedil","ş":"scedil","Ŝ":"Scirc","ŝ":"scirc","⪺":"scnap","⪶":"scnE","⋩":"scnsim","⨓":"scpolint","≿":"scsim","С":"Scy","с":"scy","⋅":"sdot","⩦":"sdote","⇘":"seArr","§":"sect",";":"semi","⤩":"tosa","✶":"sext","𝔖":"Sfr","𝔰":"sfr","♯":"sharp","Щ":"SHCHcy","щ":"shchcy","Ш":"SHcy","ш":"shcy","↑":"uarr","­":"shy","Σ":"Sigma","σ":"sigma","ς":"sigmaf","":"sim","⩪":"simdot","≃":"sime","⪞":"simg","⪠":"simgE","⪝":"siml","⪟":"simlE","≆":"simne","⨤":"simplus","⥲":"simrarr","⨳":"smashp","⧤":"smeparsl","⌣":"smile","⪪":"smt","⪬":"smte","⪬︀":"smtes","Ь":"SOFTcy","ь":"softcy","⌿":"solbar","⧄":"solb","/":"sol","𝕊":"Sopf","𝕤":"sopf","♠":"spades","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊏":"sqsub","⊑":"sqsube","⊐":"sqsup","⊒":"sqsupe","□":"squ","𝒮":"Sscr","𝓈":"sscr","⋆":"Star","☆":"star","⊂":"sub","⋐":"Sub","⪽":"subdot","⫅":"subE","⊆":"sube","⫃":"subedot","⫁":"submult","⫋":"subnE","⊊":"subne","⪿":"subplus","⥹":"subrarr","⫇":"subsim","⫕":"subsub","⫓":"subsup","∑":"sum","♪":"sung","¹":"sup1","²":"sup2","³":"sup3","⊃":"sup","⋑":"Sup","⪾":"supdot","⫘":"supdsub","⫆":"supE","⊇":"supe","⫄":"supedot","⟉":"suphsol","⫗":"suphsub","⥻":"suplarr","⫂":"supmult","⫌":"supnE","⊋":"supne","⫀":"supplus","⫈":"supsim","⫔":"supsub","⫖":"supsup","⇙":"swArr","⤪":"swnwar","ß":"szlig"," ":"Tab","⌖":"target","Τ":"Tau","τ":"tau","Ť":"Tcaron","ť":"tcaron","Ţ":"Tcedil","ţ":"tcedil","Т":"Tcy","т":"tcy","⃛":"tdot","⌕":"telrec","𝔗":"Tfr","𝔱":"tfr","∴":"there4","Θ":"Theta","θ":"theta","ϑ":"thetav","":"ThickSpace","":"thinsp","Þ":"THORN","þ":"thorn","⨱":"timesbar","×":"times","⨰":"timesd","⌶":"topbot","⫱":"topcir","𝕋":"Topf","𝕥":"topf","⫚":"topfork","‴":"tprime","™":"trade","▵":"utri","≜":"trie","◬":"tridot","⨺":"triminus","⨹":"triplus","⧍":"trisb","⨻":"tritime","⏢":"trpezium","𝒯":"Tscr","𝓉":"tscr","Ц":"TScy","ц":"tscy","Ћ":"TSHcy","ћ":"tshcy","Ŧ":"Tstrok","ŧ":"tstrok","Ú":"Uacute","ú":"uacute","↟":"Uarr","⥉":"Uarrocir","Ў":"Ubrcy","ў":"ubrcy","Ŭ":"Ubreve","ŭ":"ubreve","Û":"Ucirc","û":"ucirc","У":"Ucy","у":"ucy","⇅":"udarr","Ű":"Udblac","ű":"udblac","⥮":"udhar","⥾":"ufisht","𝔘":"Ufr","𝔲":"ufr","Ù":"Ugrave","ù":"ugrave","⥣":"uHar","▀":"uhblk","⌜":"ulcorn","⌏":"ulcrop","◸":"ultri","Ū":"Umacr","ū":"umacr","⏟":"UnderBrace","⏝":"UnderParenthesis","⊎":"uplus","Ų":"Uogon","ų":"uogon","𝕌":"Uopf","𝕦":"uopf","⤒":"UpArrowBar","↕":"varr","υ":"upsi","ϒ":"Upsi","Υ":"Upsilon","⇈":"uuarr","⌝":"urcorn","⌎":"urcrop","Ů":"Uring","ů":"uring","◹":"urtri","𝒰":"Uscr","𝓊":"uscr","⋰":"utdot","Ũ":"Utilde","ũ":"utilde","Ü":"Uuml","ü":"uuml","⦧":"uwangle","⦜":"vangrt","⊊︀":"vsubne","⫋︀":"vsubnE","⊋︀":"vsupne","⫌︀":"vsupnE","⫨":"vBar","⫫":"Vbar","⫩":"vBarv","В":"Vcy","в":"vcy","⊩":"Vdash","⊫":"VDash","⫦":"Vdashl","⊻":"veebar","≚":"veeeq","⋮":"vellip","|":"vert","‖":"Vert","❘":"VerticalSeparator","≀":"wr","𝔙":"Vfr","𝔳":"vfr","𝕍":"Vopf","𝕧":"vopf","𝒱":"Vscr","𝓋":"vscr","⊪":"Vvdash","⦚":"vzigzag","Ŵ":"Wcirc","ŵ":"wcirc","⩟":"wedbar","≙":"wedgeq","℘":"wp","𝔚":"Wfr","𝔴":"wfr","𝕎":"Wopf","𝕨":"wopf","𝒲":"Wscr","𝓌":"wscr","𝔛":"Xfr","𝔵":"xfr","Ξ":"Xi","ξ":"xi","⋻":"xnis","𝕏":"Xopf","𝕩":"xopf","𝒳":"Xscr","𝓍":"xscr","Ý":"Yacute","ý":"yacute
2016-01-27 15:02:41 +01:00
return!1},D=function(t,e){if(!t)return e;var n,r={};for(n in e)r[n]=k(t,n)?t[n]:e[n];return r},C=function(t,e){var n="";return t>=55296&&57343>=t||t>1114111?(e&&M("character reference outside the permissible Unicode range"),"<22>"):k(b,t)?(e&&M("disallowed character reference"),b[t]):(e&&E(_,t)&&M("disallowed character reference"),t>65535&&(t-=65536,n+=x(t>>>10&1023|55296),t=56320|1023&t),n+=x(t))},S=function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"},M=function(t){throw Error("Parse error: "+t)},T=function(t,e){e=D(e,T.options);var n=e.strict;n&&g.test(t)&&M("forbidden code point");var r=e.encodeEverything,i=e.useNamedReferences,a=e.allowUnsafeSymbols;return r?(t=t.replace(s,function(t){return i&&k(h,t)?"&"+h[t]+";":S(t)}),i&&(t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),i&&(t=t.replace(l,function(t){return"&"+h[t]+";"}))):i?(a||(t=t.replace(f,function(t){return"&"+h[t]+";"})),t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),t=t.replace(l,function(t){return"&"+h[t]+";"})):a||(t=t.replace(f,S)),t.replace(o,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=1024*(e-55296)+n-56320+65536;return"&#x"+r.toString(16).toUpperCase()+";"}).replace(c,S)};T.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1};var F=function(t,e){e=D(e,F.options);var n=e.strict;return n&&p.test(t)&&M("malformed character reference"),t.replace(m,function(t,r,i,a,u,o,s,c){var l,h,f,d,p;return r?(l=r,h=i,n&&!h&&M("character reference was not terminated by a semicolon"),C(l,n)):a?(f=a,h=u,n&&!h&&M("character reference was not terminated by a semicolon"),l=parseInt(f,16),C(l,n)):o?(d=o,k(y,d)?y[d]:(n&&M("named character reference was not terminated by a semicolon"),t)):(d=s,p=c,p&&e.isAttributeValue?(n&&"="==p&&M("`&` did not start a character reference"),t):(n&&M("named character reference was not terminated by a semicolon"),v[d]+(p||"")))})};F.options={isAttributeValue:!1,strict:!1};var B=function(t){return t.replace(f,function(t){return d[t]})},L={version:"0.5.0",encode:T,decode:F,escape:B,unescape:F};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return L});else if(i&&!i.nodeType)if(a)a.exports=L;else for(var N in L)k(L,N)&&(i[N]=L[N]);else r.he=L}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],106:[function(t,e,n){!function(t,r){"object"==typeof n&&"undefined"!=typeof e?e.exports=r():"function"==typeof define&&define.amd?define(r):t.moment=r()}(this,function(){"use strict";function n(){return Zn.apply(null,arguments)}function r(t){Zn=t}function i(t){return"[object Array]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,n,r){return Ft(t,e,n,r,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function h(t){return null==t._pf&&(t._pf=l()),t._pf}function f(t){if(null==t._isValid){var e=h(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function d(t){var e=c(0/0);return null!=t?s(h(e),t):h(e).userInvalidated=!0,e}function p(t){return void 0===t}function g(t,e){var n,r,i;if(p(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),p(e._i)||(t._i=e._i),p(e._f)||(t._f=e._f),p(e._l)||(t._l=e._l),p(e._strict)||(t._strict=e._strict),p(e._tzm)||(t._tzm=e._tzm),p(e._isUTC)||(t._isUTC=e._isUTC),p(e._offset)
2016-01-27 15:02:41 +01:00
n.createFromInputFallback=ot("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),R("Y",0,0,function(){var t=this.year();return 9999>=t?""+t:"+"+t}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),S("year","y"),Y("Y",yr),Y("YY",lr,ur),Y("YYYY",pr,sr),Y("YYYYY",gr,cr),Y("YYYYYY",gr,cr),z(["YYYYY","YYYYYY"],kr),z("YYYY",function(t,e){e[kr]=2===t.length?n.parseTwoDigitYear(t):b(t)}),z("YY",function(t,e){e[kr]=n.parseTwoDigitYear(t)}),z("Y",function(t,e){e[kr]=parseInt(t,10)}),n.parseTwoDigitYear=function(t){return b(t)+(b(t)>68?1900:2e3)};var Gr=B("FullYear",!1);n.ISO_8601=function(){};var zr=ot("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Bt.apply(null,arguments);return this.isValid()&&t.isValid()?this>t?this:t:d()}),$r=ot("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Bt.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:d()}),Wr=function(){return Date.now?Date.now():+new Date};Pt("Z",":"),Pt("ZZ",""),Y("Z",br),Y("ZZ",br),z(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=qt(br,t)});var Zr=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Xr=/(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Jr=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Qt.fn=It.prototype;var Kr=re(1,"add"),Qr=re(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var ti=ot("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ie("gggg","weekYear"),Ie("ggggg","weekYear"),Ie("GGGG","isoWeekYear"),Ie("GGGGG","isoWeekYear"),S("weekYear","gg"),S("isoWeekYear","GG"),Y("G",yr),Y("g",yr),Y("GG",lr,ur),Y("gg",lr,ur),Y("GGGG",pr,sr),Y("gggg",pr,sr),Y("GGGGG",gr,cr),Y("ggggg",gr,cr),$(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=b(t)}),$(["gg","GG"],function(t,e,r,i){e[i]=n.parseTwoDigitYear(t)}),R("Q",0,"Qo","quarter"),S("quarter","Q"),Y("Q",ar),z("Q",function(t,e){e[Er]=3*(b(t)-1)}),R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),S("week","w"),S("isoWeek","W"),Y("w",lr),Y("ww",lr,ur),Y("W",lr),Y("WW",lr,ur),$(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=b(t)});var ei={dow:0,doy:6};R("D",["DD",2],"Do","date"),S("date","D"),Y("D",lr),Y("DD",lr,ur),Y("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),z(["D","DD"],Dr),z("Do",function(t,e){e[Dr]=b(t.match(lr)[0],10)});var ni=B("Date",!0);R("d",0,"do","day"),R("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),R("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),R("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),S("day","d"),S("weekday","e"),S("isoWeekday","E"),Y("d",lr),Y("e",lr),Y("E",lr),Y("dd",xr),Y("ddd",xr),Y("dddd",xr),$(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:h(n).invalidWeekday=t}),$(["d","e","E"],function(t,e,n,r){e[r]=b(t)});var ri="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ii="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ai="Su_Mo_Tu_We_Th_Fr_Sa".split("_");R("DDD",["DDDD",3],"DDDo","dayOfYear"),S("dayOfYear","DDD"),Y("DDD",dr),Y("DDDD",or),z(["DDD","DDDD"],function(t,e,n){n._dayOfYear=b(t)}),R("H",["HH",2],0,"hour"),R("h",["hh",2],0,an),R("hmm",0,0,function(){return""+an.apply(this)+I(this.minutes(),2)}),R("hmmss",0,0,function(){return""+an.apply(this)+I(this.minutes(),2)+I(this.seconds(),
text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(t=this.test_match(n,i[a]),t!==!1)return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?(t=this.test_match(e,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:break;case 1:return 6;case 2:break;case 3:return 5;case 4:return this.begin("struct"),17;case 5:return this.popState(),19;case 6:break;case 7:return"MEMBER";case 8:return 16;case 9:this.begin("string");break;case 10:this.popState();break;case 11:return"STR";case 12:return 27;case 13:return 27;case 14:return 29;case 15:return 29;case 16:return 28;case 17:return 26;case 18:return 30;case 19:return 31;case 20:return 13;case 21:return 43;case 22:return"DOT";case 23:return"PLUS";case 24:return 40;case 25:return"EQUALS";case 26:return"EQUALS";case 27:return 47;case 28:return"PUNCTUATION";case 29:return 46;case 30:return 45;case 31:return 42;case 32:return 8}},rules:[/^(?:%%[^\n]*)/,/^(?:\n+)/,/^(?:\s+)/,/^(?:classDiagram\b)/,/^(?:[\{])/,/^(?:\})/,/^(?:[\n])/,/^(?:[^\{\}\n]*)/,/^(?:class\b)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^#\n;]+)/,/^(?:-)/,
performAction:function(t,e,n,r,i,a){var u=a.length-1;switch(i){case 1:this.$=a[u-1];break;case 2:this.$=a[u-4];break;case 3:this.$=a[u-5];break;case 4:this.$=a[u-3];break;case 8:case 10:case 11:this.$=a[u];break;case 9:this.$=a[u-1]+""+a[u];break;case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:this.$=a[u];break;case 17:this.$="<br>";break;case 39:this.$="oy";break;case 40:r.addLink(a[u-1],a[u].id,a[u].op),this.$="oy";break;case 42:r.addLink(a[u-1],a[u].id,a[u].op),this.$={op:a[u-2],id:a[u-1]};break;case 44:this.$={op:a[u-1],id:a[u]};break;case 48:r.addVertex(a[u-1]),this.$=a[u-1];break;case 49:r.addVertex(a[u]),this.$=a[u];break;case 66:this.$="arrow";break;case 67:this.$="arrow_open"}},table:[{3:1,4:2,6:3,11:[1,4],12:n,13:r},{1:[3]},{5:[1,7]},{7:8,8:[1,9],14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{6:23,12:n,13:r},e(g,[2,5]),e(g,[2,6]),{1:[2,1]},{8:[1,24]},{7:30,8:m,9:25,12:y,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},e([8,10,28,32,37,39,40,45,57,58],[2,7],{15:38,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p}),e(x,[2,8]),e(x,[2,10]),e(x,[2,11]),e(x,[2,12]),e(x,[2,13]),e(x,[2,14]),e(x,[2,15]),e(x,[2,16]),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),{7:39,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:m,9:40,12:y,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,41]},{10:[2,21],28:[1,42]},e(w,[2,23]),e(w,[2,24]),e(w,[2,25]),e(A,k,{44:44,32:[1,43],45:E}),e(w,[2,27],{41:46,43:47,57:D,58:C}),e(w,[2,47],{43:47,34:50,41:51,37:S,57:D,58:C}),{34:53,37:S},{34:54,37:S},{34:55,37:S},{7:56,8:[1,57],14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:m,9:58,12:y,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},e(x,[2,9]),{8:[1,59]},{10:[1,60]},{5:[2,4]},{7:30,8:m,9:61,12:y,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{7:62,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},e(A,[2,48]),e(A,M,{14:10,15:11,7:63,46:64,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,48:T,49:F,50:B,51:L,52:N,53:O,54:I,55:R,56:P}),e(w,[2,41],{34:74,37:S}),{7:77,8:m,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,33:76,42:75,47:_},e(q,[2,66]),e(q,[2,67]),e(w,[2,46]),e(w,[2,40],{34:78,37:S}),{7:81,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:79,39:[1,80]},e(w,[2,28]),e(w,[2,29]),e(w,[2,30]),{8:[1,82]},{7:30,8:m,9:83,12:y,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,84]},{7:30,8:m,9:85,12:y,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{5:[2,2]},{10:[2,22]},e(w,[2,26]),e(A,[2,51],{45:[1,86]}),e(A,[2,52]),e(A,[2,56]),e(A,[2,57]),e(A,[2,58]),e(A,[2,59]),e(A,[2,60]),e(A,[2,61]),e(A,[2,62]),e(A,[2,63]),e(A,[2,64]),e(w,[2,38]),e(j,[2,44],{43:47,41:87,57:D,58:C}),e(j,[2,45],{43:47,41:88,57:D,58:C}),e(A,k,{44:44,45:E}),e(w,[2,39]),{39:[1,89]},e(w,[2,34],{34:90,37:S}),{32:[1,91]},{7:30,8:m,9:92,12:y,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,93]},e(A,[2,55]),{10:[1,94]},e(A,M,{46:95,48:T,49:F,50:B,51:L,52:N,53:O,54:I,55:R,56:P}),e(j,[2,42]),e(j,[2,43]),e(w,[2,33],{34:96,37:S}),e(w,[2,32]),{7:97,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{10:[1,98]},e(A,[2,54]),{5:[2,3]},e(A,[2,50]),e(w,[2,31]),{28:[1,99],39:[2,37],40:[1,100]},e(A,[2,53]),{7:81,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:101},{7:81,14:10,15:11,16:i,17:a,18:u,19:o,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:102},{39:[2,35]},{39:[2,36]}],defaultActions:{7:[2,1],41:[2,4],60:[2,2],61:[2,22],94:[2,3],101:[2,35],102:[2,36]},parseError:function(t,e){if(!e.recoverable){va
46:H,50:G,56:[1,159],57:[1,160],58:[1,161],59:[1,162],60:z,66:125,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:O,12:I,13:R,15:P,16:q,17:j,18:U,30:Y,32:V,45:71,46:H,50:G,60:z,61:[1,163],62:[1,164],63:[1,165],64:[1,166],66:125,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:[1,167],13:h,18:f,44:114,45:32,46:p,81:_,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:[1,168]},{10:[1,169]},{10:[1,170]},{10:[1,171]},{10:[1,172],13:h,18:f,44:114,45:32,46:p,81:_,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:[1,173],13:h,18:f,44:114,45:32,46:p,81:_,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:[1,174],13:h,18:f,44:114,45:32,46:p,81:_,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:O,12:I,13:R,15:P,16:q,17:j,18:U,30:Y,32:V,37:[1,175],45:71,46:H,50:G,60:z,66:125,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:O,12:I,13:R,15:P,16:q,17:j,18:U,30:Y,31:176,32:V,45:71,46:H,50:G,60:z,66:62,67:$,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:O,12:I,13:R,15:P,16:q,17:j,18:U,30:Y,32:V,39:[1,177],45:71,46:H,50:G,60:z,66:125,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:O,12:I,13:R,15:P,16:q,17:j,18:U,30:Y,32:V,41:[1,178],45:71,46:H,50:G,60:z,66:125,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:O,12:I,13:R,15:P,16:q,17:j,18:U,30:Y,32:V,43:[1,179],45:71,46:H,50:G,60:z,66:125,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{10:O,12:I,13:R,15:P,16:q,17:j,18:U,30:Y,32:V,37:[1,180],45:71,46:H,50:G,60:z,66:125,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},e(nt,[2,28]),e(a,[2,23]),{6:10,7:11,8:o,9:s,10:c,11:l,13:h,18:f,23:16,25:17,26:18,27:19,28:20,29:21,30:d,32:[1,181],33:23,35:29,44:30,45:32,46:p,71:g,72:m,73:y,74:v,75:b,81:_,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},e(F,[2,37]),e(lt,[2,65]),e(lt,[2,64]),{10:O,12:I,13:R,15:P,16:q,17:j,18:U,30:Y,32:V,45:71,46:H,50:G,60:z,65:[1,182],66:125,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},e(lt,[2,67]),e(lt,[2,68]),e(lt,[2,69]),e(lt,[2,70]),e(lt,[2,71]),e(lt,[2,72]),e(lt,[2,73]),e(lt,[2,74]),e(lt,[2,75]),e(lt,[2,76]),e(lt,[2,77]),e(lt,[2,78]),{10:ft,46:dt,71:pt,79:183,80:gt,81:mt,83:yt,84:184,86:185,87:vt,88:bt,89:_t,90:xt,91:wt},{10:ft,46:dt,71:pt,79:197,80:gt,81:mt,83:yt,84:184,86:185,87:vt,88:bt,89:_t,90:xt,91:wt},{10:ft,46:dt,71:pt,79:198,80:gt,81:mt,83:yt,84:184,86:185,87:vt,88:bt,89:_t,90:xt,91:wt},{10:ft,46:dt,71:pt,79:199,80:gt,81:mt,83:yt,84:184,86:185,87:vt,88:bt,89:_t,90:xt,91:wt},{10:ft,46:dt,71:pt,79:200,80:gt,81:mt,83:yt,84:184,86:185,87:vt,88:bt,89:_t,90:xt,91:wt},{10:ft,46:dt,71:pt,79:201,80:gt,81:mt,83:yt,84:184,86:185,87:vt,88:bt,89:_t,90:xt,91:wt},{13:h,18:f,35:202,44:30,45:32,46:p,81:_,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},{13:h,18:f,35:203,44:30,45:32,46:p,67:[1,204],81:_,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},e(nt,[2,43],{21:205,10:rt}),{10:O,12:I,13:R,15:P,16:q,17:j,18:U,30:Y,32:V,39:[1,206],45:71,46:H,50:G,60:z,66:125,70:74,71:W,72:Z,73:X,74:J,75:K,77:64,78:Q,81:_,83:tt,85:x,87:w,88:A,90:k,91:E,93:D,94:C,95:S,96:M,97:T},e(nt,[2,49],{21:207,10:rt}),e(nt,[2,47],{21:208,10:rt}),e(nt,[2,51],{21:209,10:rt}),e(nt,[2,53],{21:210,10:rt}),e(F,[2,36]),e([10,13,18,46,81,85,87,88,90,91,93,94,95,96,97],[2,91]),e(et,[2,117],{85:At}),e(kt,[2,122],{86:212,10:ft,46:dt,71:pt,80:gt,81:mt,83:yt,87:vt,88:bt,89:_t,90:xt,91:wt}),e(Et,[2,124]),e(Et,[2,126]),e(Et,[2,127]),e(Et,[2,128]),e(Et,[2,129]),e(Et,[2,130]),e(Et,[2,131]),e(Et,[2,132]),e(Et,[2,133]),e(Et,[2,134]),e(Et,[2,135]),e(Et,[2,136]),e(et,[2,118],{85:At}),e(et,[2,119],{85:At}),e(et,[2,120],{85:At}),e(et,[2,110],{85:At}),e(et,[2,111],{85:At}),e(et,[2,11
this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(t=this.test_match(n,i[a]),t!==!1)return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?(t=this.test_match(e,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){t
2016-01-27 15:02:41 +01:00
}}var a={debug:1,info:2,warn:3,error:4,fatal:5,"default":5},u=a.error;n.setLogLevel=function(t){u=t},n.Log=i},{}],128:[function(t,e,n){(function(r){"use strict";var i=t("./logger"),a=new i.Log,u=t("./mermaidAPI"),o=0,s=t("he");e.exports.mermaidAPI=u;var c=function(){var t=u.getConfig();a.debug("Starting rendering diagrams");var e;arguments.length>=2?("undefined"!=typeof arguments[0]&&(r.mermaid.sequenceConfig=arguments[0]),e=arguments[1]):e=arguments[0];var n;"function"==typeof arguments[arguments.length-1]?(n=arguments[arguments.length-1],a.debug("Callback function found")):"undefined"!=typeof t.mermaid&&("function"==typeof t.mermaid.callback?(n=t.mermaid.callback,a.debug("Callback function found")):a.debug("No Callback function found")),e=void 0===e?document.querySelectorAll(".mermaid"):"string"==typeof e?document.querySelectorAll(e):e instanceof Node?[e]:e;var i;"undefined"!=typeof mermaid_config&&u.initialize(r.mermaid_config),a.debug("Start On Load before: "+r.mermaid.startOnLoad),"undefined"!=typeof r.mermaid.startOnLoad&&(a.debug("Start On Load inner: "+r.mermaid.startOnLoad),u.initialize({startOnLoad:r.mermaid.startOnLoad})),"undefined"!=typeof r.mermaid.ganttConfig&&u.initialize({gantt:r.mermaid.ganttConfig});var c,l=function(t,e){h.innerHTML=t,"undefined"!=typeof n&&n(f),e(h)};for(i=0;i<e.length;i++){var h=e[i];if(!h.getAttribute("data-processed")){h.setAttribute("data-processed",!0);var f="mermaidChart"+o++;c=h.innerHTML,c=s.decode(c).trim(),u.render(f,c,l,h)}}};n.init=c,n.parse=u.parse,n.version=function(){return"v"+t("../package.json").version},n.initialize=function(t){a.debug("Initializing mermaid"),"undefined"!=typeof t.mermaid&&("undefined"!=typeof t.mermaid.startOnLoad&&(r.mermaid.startOnLoad=t.mermaid.startOnLoad),"undefined"!=typeof t.mermaid.htmlLabels&&(r.mermaid.htmlLabels=t.mermaid.htmlLabels)),u.initialize(t)};var l=function(t,e){return"undefined"==typeof e?!1:t===e};r.mermaid={startOnLoad:!0,htmlLabels:!0,init:function(){c.apply(null,arguments)},initialize:function(t){n.initialize(t)},version:function(){return u.version()},parse:function(t){return u.parse(t)},parseError:function(t){a.debug("Mermaid Syntax error:"),a.debug(t)},render:function(t,e,n,r){return u.render(t,e,n,r)}},n.parseError=r.mermaid.parseError,n.contentLoaded=function(){var t;"undefined"!=typeof mermaid_config&&l(!1,r.mermaid_config.htmlLabels)&&(r.mermaid.htmlLabels=!1),r.mermaid.startOnLoad?"undefined"!=typeof r.mermaid_config?l(!0,r.mermaid_config.startOnLoad)&&r.mermaid.init():(t=u.getConfig(),t.startOnLoad&&r.mermaid.init()):"undefined"==typeof r.mermaid.startOnLoad&&(a.debug("In start, no config"),t=u.getConfig(),t.startOnLoad&&r.mermaid.init())},"undefined"!=typeof document&&window.addEventListener("load",function(){n.contentLoaded()},!1)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../package.json":107,"./logger":127,"./mermaidAPI":129,he:105}],129:[function(t,e,n){(function(e){"use strict";var r=t("./logger"),i=new r.Log,a=t("./diagrams/flowchart/graphDb"),u=t("./utils"),o=t("./diagrams/flowchart/flowRenderer"),s=t("./diagrams/sequenceDiagram/sequenceRenderer"),c=t("./diagrams/example/exampleRenderer"),l=t("./diagrams/example/parser/example"),h=t("./diagrams/flowchart/parser/flow"),f=t("./diagrams/flowchart/parser/dot"),d=t("./diagrams/sequenceDiagram/parser/sequenceDiagram"),p=t("./diagrams/sequenceDiagram/sequenceDb"),g=t("./diagrams/example/exampleDb"),m=t("./diagrams/gantt/ganttRenderer"),y=t("./diagrams/gantt/parser/gantt"),v=t("./diagrams/gantt/ganttDb"),b=t("./diagrams/classDiagram/parser/classDiagram"),_=t("./diagrams/classDiagram/classRenderer"),x=t("./diagrams/classDiagram/classDb"),w=t("./d3");SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())};var A={logLevel:5,cloneCssStyles:!0,startOnLoad:!0,arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequenceDiagram:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,widt