Files
StudyDiary/.obsidian/plugins/slides-extended/plugin/mermaid/mermaid.js

48 lines
2.4 MiB
JavaScript
Raw Normal View History

2025-10-25 20:35:10 +08:00
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RevealMermaid=e()}(this,(function(){"use strict";var t="11.4.1",e=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,o=(t,e)=>n(t,"name",{value:e,configurable:!0}),l=(t,e)=>function(){return e||(0,t[i(t)[0]])((e={exports:{}}).exports,e),e.exports},h=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},u=(t,e,a,o)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let l of i(e))s.call(t,l)||l===a||n(t,l,{get:()=>e[l],enumerable:!(o=r(e,l))||o.enumerable});return t},d=(t,e,n)=>(u(t,e,"default"),n&&u(n,e,"default")),p=(t,r,i)=>(i=null!=t?e(a(t)):{},u(!r&&t&&t.__esModule?i:n(i,"default",{value:t,enumerable:!0}),t)),g=l({"../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js"(t,e){!function(n,r){"object"==typeof t&&void 0!==e?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs=r()}(t,(function(){var t=6e4,e=36e5,n="millisecond",r="second",i="minute",a="hour",s="day",l="week",c="month",h="quarter",u="year",d="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:o((function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}),"ordinal")},y=o((function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t}),"m"),v={s:y,z:o((function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")}),"z"),m:o((function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),a=n-i<0,s=e.clone().add(r+(a?-1:1),c);return+(-(r+(n-i)/(a?i-s:s-i))||0)}),"t"),a:o((function(t){return t<0?Math.ceil(t)||0:Math.floor(t)}),"a"),p:o((function(t){return{M:c,y:u,w:l,d:s,D:d,h:a,m:i,s:r,ms:n,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")}),"p"),u:o((function(t){return void 0===t}),"u")},x="en",b={};b[x]=m;var w="$isDayjsObject",k=o((function(t){return t instanceof C||!(!t||!t[w])}),"S"),T=o((function t(e,n,r){var i;if(!e)return x;if("string"==typeof e){var a=e.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var o=e.name;b[o]=e,i=o}return!r&&i&&(x=i),i||!r&&x}),"t"),_=o((function(t,e){if(k(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new C(n)}),"O"),E=v;E.l=T,E.i=k,E.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function m(t){this.$L=T(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}o(m,"M");var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(g);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return _(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endO
/*! Bundled license information:
dompurify/dist/purify.es.mjs:
(*! @license DOMPurify 3.2.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.1/LICENSE *)
*/
var ng=o((t=>{const{securityLevel:e}=Kn();let n=Fa("body");if("sandbox"===e){const e=Fa(`#i${t}`);n=Fa((e.node()?.contentDocument??document).body)}return n.select(`#${t}`)}),"selectSvgElement");function rg(t){return null==t}function ig(t){return"object"==typeof t&&null!==t}function ag(t){return Array.isArray(t)?t:rg(t)?[]:[t]}function sg(t,e){var n,r,i,a;if(e)for(n=0,r=(a=Object.keys(e)).length;n<r;n+=1)t[i=a[n]]=e[i];return t}function og(t,e){var n,r="";for(n=0;n<e;n+=1)r+=t;return r}function lg(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}o(rg,"isNothing"),o(ig,"isObject"),o(ag,"toArray"),o(sg,"extend"),o(og,"repeat"),o(lg,"isNegativeZero");var cg={isNothing:rg,isObject:ig,toArray:ag,repeat:og,isNegativeZero:lg,extend:sg};function hg(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),r+" "+n):r}function ug(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=hg(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}o(hg,"formatError"),o(ug,"YAMLException$1"),ug.prototype=Object.create(Error.prototype),ug.prototype.constructor=ug,ug.prototype.toString=o((function(t){return this.name+": "+hg(this,t)}),"toString");var dg=ug;function pg(t,e,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-e>o&&(e=r-o+(a=" ... ").length),n-r>o&&(n=r+o-(s=" ...").length),{str:a+t.slice(e,n).replace(/\t/g,"→")+s,pos:r-e+a.length}}function gg(t,e){return cg.repeat(" ",e-t.length)+t}function fg(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],a=[],s=-1;n=r.exec(t.buffer);)a.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o,l,c="",h=Math.min(t.line+e.linesAfter,a.length).toString().length,u=e.maxLength-(e.indent+h+3);for(o=1;o<=e.linesBefore&&!(s-o<0);o++)l=pg(t.buffer,i[s-o],a[s-o],t.position-(i[s]-i[s-o]),u),c=cg.repeat(" ",e.indent)+gg((t.line-o+1).toString(),h)+" | "+l.str+"\n"+c;for(l=pg(t.buffer,i[s],a[s],t.position,u),c+=cg.repeat(" ",e.indent)+gg((t.line+1).toString(),h)+" | "+l.str+"\n",c+=cg.repeat("-",e.indent+h+3+l.pos)+"^\n",o=1;o<=e.linesAfter&&!(s+o>=a.length);o++)l=pg(t.buffer,i[s+o],a[s+o],t.position-(i[s]-i[s+o]),u),c+=cg.repeat(" ",e.indent)+gg((t.line+o+1).toString(),h)+" | "+l.str+"\n";return c.replace(/\n$/,"")}o(pg,"getLine"),o(gg,"padStart"),o(fg,"makeSnippet");var mg=fg,yg=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vg=["scalar","sequence","mapping"];function xg(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}function bg(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===yg.indexOf(e))throw new dg('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=xg(e.styleAliases||null),-1===vg.indexOf(this.kind))throw new dg('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}o(xg,"compileStyleAliases"),o(bg,"Type$1");var wg=bg;function kg(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,r){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=r)})),n[e]=t})),n}function Tg(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)
/*! Check if previously processed */
/*!
* Wait for document loaded before starting the execution
*/
/*!
* reveal.js Mermaid plugin
*/
return async function(t){let{el:e,beforeRender:n,afterRender:r}=t;if(!1===await(null==n?void 0:n(e)))return;const i=e.textContent.trim();try{const{svg:t}=await AI.render(`mermaid-${Math.random().toString(36).substring(2)}`,i);e.innerHTML=t,await(null==r?void 0:r(e))}catch(t){let n="";null!=t&&t.str&&(n=t.str),null!=t&&t.message&&(n=t.message),console.error(n,{error:t,graphDefinition:i,el:e}),e.innerHTML=n}}({el:t,beforeRender:e,afterRender:n})}}const NI={id:"mermaid",init:function(t){const{...e}=t.getConfig().mermaid||{},{...n}=t.getConfig().mermaidPlugin||{},r=LI({beforeRender:n.beforeRender,afterRender:n.afterRender});AI.initialize({startOnLoad:!1,...e});const i=t.getRevealElement().querySelectorAll(".mermaid");Array.from(i).forEach((function(t){r(t)}))}};var II=class t{static{o(this,"SourceLocation")}constructor(t,e,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=e,this.end=n}static range(e,n){return n?e&&e.loc&&n.loc&&e.loc.lexer===n.loc.lexer?new t(e.loc.lexer,e.loc.start,n.loc.end):null:e&&e.loc}},MI=class t{static{o(this,"Token")}constructor(t,e){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=e}range(e,n){return new t(n,II.range(this,e))}},RI=class t{static{o(this,"ParseError")}constructor(e,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,i,a="KaTeX parse error: "+e,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;r=s.start,i=s.end,r===o.length?a+=" at end of input: ":a+=" at position "+(r+1)+": ";var l=o.slice(r,i).replace(/[^]/g,"$&̲");a+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+l+(i+15<o.length?o.slice(i,i+15)+"…":o.slice(i))}var c=new Error(a);return c.name="ParseError",c.__proto__=t.prototype,c.position=r,null!=r&&null!=i&&(c.length=i-r),c.rawMessage=e,c}};RI.prototype.__proto__=Error.prototype;var DI=o((function(t,e){return-1!==t.indexOf(e)}),"contains"),OI=o((function(t,e){return void 0===t?e:t}),"deflt"),PI=/([A-Z])/g,BI=o((function(t){return t.replace(PI,"-$1").toLowerCase()}),"hyphenate"),$I={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},FI=/[&><"']/g;function zI(t){return String(t).replace(FI,(t=>$I[t]))}o(zI,"escape");var UI=o((function t(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?t(e.body[0]):e:"font"===e.type?t(e.body):e}),"getBaseElem"),GI=o((function(t){var e=UI(t);return"mathord"===e.type||"textord"===e.type||"atom"===e.type}),"isCharacterBox"),qI=o((function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t}),"assert"),jI={contains:DI,deflt:OI,escape:zI,hyphenate:BI,getBaseElem:UI,isCharacterBox:GI,protocolFromUrl:o((function(t){var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return e?":"!==e[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}),"protocolFromUrl")},YI={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:o((t=>"#"+t),"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:o(((t,
/*! Bundled license information:
lodash-es/lodash.js:
(**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*)
*/function hj(t,e){t[e]?t[e]++:t[e]=1}function uj(t,e){--t[e]||delete t[e]}function dj(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var s=i;i=a,a=s}return i+""+a+""+(Iz(r)?"\0":r)}function pj(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var s=i;i=a,a=s}var o={v:i,w:a};return r&&(o.name=r),o}function gj(t,e){return dj(t,e.v,e.w,e.name)}function fj(t,e,n,r){var i;do{i=rj(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function mj(t){var e=(new cj).setGraph(t.graph());return U$(t.nodes(),(function(n){e.setNode(n,t.node(n))})),U$(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e}function yj(t){var e=new cj({multigraph:t.isMultigraph()}).setGraph(t.graph());return U$(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),U$(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function vj(t,e){var n,r,i=t.x,a=t.y,s=e.x-i,o=e.y-a,l=t.width/2,c=t.height/2;if(!s&&!o)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(o)*l>Math.abs(s)*c?(o<0&&(c=-c),n=c*s/o,r=c):(s<0&&(l=-l),n=l,r=l*o/s),{x:i+n,y:a+r}}function xj(t){var e=Ez(zq(Tj(t)+1),(function(){return[]}));return U$(t.nodes(),(function(n){var r=t.node(n),i=r.rank;Iz(i)||(e[i][r.order]=n)})),e}function bj(t){var e=iq(Ez(t.nodes(),(function(e){return t.node(e).rank})));U$(t.nodes(),(function(n){var r=t.node(n);GG(r,"rank")&&(r.rank-=e)}))}function wj(t){var e=iq(Ez(t.nodes(),(function(e){return t.node(e).rank}))),n=[];U$(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var r=0,i=t.graph().nodeRankFactor;U$(n,(function(e,n){Iz(e)&&n%i!=0?--r:r&&U$(e,(function(e){t.node(e).rank+=r}))}))}function kj(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),fj(t,"border",i,e)}function Tj(t){return Fz(Ez(t.nodes(),(function(e){var n=t.node(e).rank;if(!Iz(n))return n})))}function _j(t,e){var n={lhs:[],rhs:[]};return U$(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function Ej(t,e){var n=oG();try{return e()}finally{console.log(t+" time: "+(oG()-n)+"ms")}}function Cj(t,e){return e()}function Sj(t){function e(n){var r=t.children(n),i=t.node(n);if(r.length&&U$(r,e),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;a<s;++a)Aj(t,"borderLeft","_bl",n,i,a),Aj(t,"borderRight","_br",n,i,a)}}o(e,"dfs"),U$(t.children(),e)}function Aj(t,e,n,r,i,a){var s={width:0,height:0,rank:a,borderType:e},o=i[e][a-1],l=fj(t,"border",s,n);i[e][a]=l,t.setParent(l,r),o&&t.setEdge(o,l,{weight:1})}function Lj(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||Ij(t)}function Nj(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||Rj(t),"lr"!==e&&"rl"!==e||(Oj(t),Ij(t))}function Ij(t){U$(t.nodes(),(function(e){Mj(t.node(e))})),U$(t.edges(),(function(e){Mj(t.edge(e))}))}function Mj(t){var e=t.width;t.width=t.height,t.height=e}function Rj(t){U$(t.nodes(),(function(e){Dj(t.node(e))})),U$(t.edges(),(function(e){var n=t.edge(e);U$(n.points,Dj),Object.prototype.hasOwnProperty.call(n,"y")&&Dj(n)}))}function Dj(t){t.y=-t.y}function Oj(t){U$(t.nodes(),(function(e){Pj(t.node(e))})),U$(t.edges(),(function(e){var n=t.edge(e);U$(n.points,Pj),Object.prototype.hasOwnProperty.call(n,"x")&&Pj(n)}))}function Pj(t){var e=t.x;t.x=t.y,t.y=e}cj.prototype._nodeCount=0,cj.prototype._edgeCount=0,o(hj,"incrementOrInitEntry"),o(uj,"decrementOrRemoveEntry"),o(dj,"edgeArgsToId"),o(pj,"edgeArgsToObj"),o(gj,"edgeObjToId"),o(fj,"addDummyNode"),o(mj,"simplify"),o(yj,"asNonCompoundGraph"),o(vj,"intersectRect"),o(xj,"buildLayerMatrix"),o(bj,"normalizeRanks"),o(wj,"removeEmptyRanks"),o(kj,"addBorderNode"),o(Tj,"maxRank"),o(_j,"partition"),o(Ej,"time"),o(Cj,"notime"),o(Sj,"addBorderSegments"),o(Aj,"addBorderNode"),o(Lj,"adjust"),o(Nj,"undo"),o(Ij,"swapWidthHeight"),o(Mj,"swapWidthHeightOne"),o(Rj,"reverseY"),o(Dj,"reverseYOne"),o(Oj,"swapXY"),o(Pj,"swapXYOne");var Bj=class{static{o(this,"List")}constructor(){var t={};t._next=t._prev=t,this._s
/*! Bundled license information:
cytoscape/dist/cytoscape.esm.mjs:
(*!
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
Licensed under The MIT License (http://opensource.org/licenses/MIT)
*)
(*!
Event object based on jQuery events, MIT license
https://jquery.org/license/
https://tldrlegal.com/license/mit-license
https://github.com/jquery/jquery/blob/master/src/event.js
*)
(*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License *)
(*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License *)
*/
var yAt=l({"../../node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js"(t,e){o((function(n,r){"object"==typeof t&&"object"==typeof e?e.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof t?t.layoutBase=r():n.layoutBase=r()}),"webpackUniversalModuleDefinition")(t,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return o(n,"__webpack_require__"),n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?o((function(){return t.default}),"getDefault"):o((function(){return t}),"getModuleExports");return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e,n){function r(){}o(r,"LayoutConstants"),r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,t.exports=r},function(t,e,n){var r=n(2),i=n(8),a=n(9);function s(t,e,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=t,this.target=e}for(var l in o(s,"LEdge"),s.prototype=Object.create(r.prototype),r)s[l]=r[l];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(t,e){for(var n=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(n.getOwner()==e)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},s.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,n){function r(t){this.vGraphObject=t}o(r,"LGraphObject"),t.exports=r},function(t,e,n){var r=n(2),i=n(10),a=n(13),s=n(0),l=n(16),c=n(4);function h(t,e,n,s){null==n&&null==s&&(s=e),r.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,this.rect=null!=n&&null!=e?new a(e.x,e.y,n.width,n.height):new a}for(var u in o(h,"LNode"),h.prototype=Object.create(r.prototype),r)h[u]=r[u];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.