49 lines
1.2 MiB
49 lines
1.2 MiB
window.dash_cytoscape=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 n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=131)}([function(t,e,n){var r;try{r={cloneDeep:n(271),constant:n(60),defaults:n(272),each:n(96),filter:n(99),find:n(273),flatten:n(126),forEach:n(97),forIn:n(278),has:n(110),isUndefined:n(111),last:n(279),map:n(112),mapValues:n(280),max:n(281),merge:n(283),min:n(289),minBy:n(290),now:n(291),pick:n(292),range:n(297),reduce:n(114),sortBy:n(300),uniqueId:n(305),values:n(119),zipObject:n(306)}}catch(t){}r||(r=window._),t.exports=r},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";var r=n(0),i=n(5).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(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},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a);return{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},function(t,e,n){var r;try{r={clone:n(159),constant:n(60),each:n(96),filter:n(99),has:n(110),isArray:n(1),isEmpty:n(235),isFunction:n(23),isUndefined:n(111),keys:n(10),map:n(112),reduce:n(114),size:n(238),transform:n(244),union:n(245),values:n(119)}}catch(t){}r||(r=window._),t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r;try{r=n(157)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,e,n){var r=n(79),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(23),i=n(54);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(215),i=n(225),o=n(13),a=n(1),s=n(232);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(82),i=n(56),o=n(8);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){var r=n(170),i=n(175);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(15),i=n(171),o=n(172),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(6).Symbol;t.exports=r},function(t,e,n){(function(t){var r=n(6),i=n(191),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,n(28)(t))},function(t,e,n){var r=n(82),i=n(195),o=n(8);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e,n){var r=n(200),i=n(51),o=n(201),a=n(91),s=n(202),u=n(12),c=n(80),l=c(r),f=c(i),h=c(o),d=c(a),p=c(s),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=g},function(t,e,n){var r=n(12),i=n(7);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(72),o=n(47),a=n(48),s=n(22),u=n(29),c=n(75),l=n(76);function f(t){return void 0!==t.leaves||void 0!==t.groups}!function(t){t[t.start=0]="start",t[t.tick=1]="tick",t[t.end=2]="end"}(r=e.EventType||(e.EventType={}));var h=function(){function t(){var e=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:t.getSourceIndex,getTargetIndex:t.getTargetIndex,setLength:t.setLinkLength,getType:function(t){return"function"==typeof e._linkType?e._linkType(t):0}}}return t.prototype.on=function(t,e){return this.event||(this.event={}),"string"==typeof t?this.event[r[t]]=e:this.event[t]=e,this},t.prototype.trigger=function(t){this.event&&void 0!==this.event[t.type]&&this.event[t.type](t)},t.prototype.kick=function(){for(;!this.tick(););},t.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:r.end,alpha:this._alpha=0,stress:this._lastStress}),!0;var t,e,n=this._nodes.length;this._links.length;for(this._descent.locks.clear(),e=0;e<n;++e)if((t=this._nodes[e]).fixed){void 0!==t.px&&void 0!==t.py||(t.px=t.x,t.py=t.y);var i=[t.px,t.py];this._descent.locks.add(e,i)}var o=this._descent.rungeKutta();return 0===o?this._alpha=0:void 0!==this._lastStress&&(this._alpha=o),this._lastStress=o,this.updateNodePositions(),this.trigger({type:r.tick,alpha:this._alpha,stress:this._lastStress}),!1},t.prototype.updateNodePositions=function(){for(var t,e=this._descent.x[0],n=this._descent.x[1],r=this._nodes.length;r--;)(t=this._nodes[r]).x=e[r],t.y=n[r]},t.prototype.nodes=function(t){if(!t){if(0===this._nodes.length&&this._links.length>0){var e=0;this._links.forEach((function(t){e=Math.max(e,t.source,t.target)})),this._nodes=new Array(++e);for(var n=0;n<e;++n)this._nodes[n]={}}return this._nodes}return this._nodes=t,this},t.prototype.groups=function(t){var e=this;return t?(this._groups=t,this._rootGroup={},this._groups.forEach((function(t){void 0===t.padding&&(t.padding=1),void 0!==t.leaves&&t.leaves.forEach((function(n,r){"number"==typeof n&&((t.leaves[r]=e._nodes[n]).parent=t)})),void 0!==t.groups&&t.groups.forEach((function(n,r){"number"==typeof n&&((t.groups[r]=e._groups[n]).parent=t)}))})),this._rootGroup.leaves=this._nodes.filter((function(t){return void 0===t.parent})),this._rootGroup.groups=this._groups.filter((function(t){return void 0===t.parent})),this):this._groups},t.prototype.powerGraphGroups=function(t){var e=i.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(e.groups),t(e),this},t.prototype.avoidOverlaps=function(t){return arguments.length?(this._avoidOverlaps=t,this):this._avoidOverlaps},t.prototype.handleDisconnected=function(t){return arguments.length?(this._handleDisconnected=t,this):this._handleDisconnected},t.prototype.flowLayout=function(t,e){return arguments.length||(t="y"),this._directedLinkConstraints={axis:t,getMinSeparation:"number"==typeof e?function(){return e}:e},this},t.prototype.links=function(t){return arguments.length?(this._links=t,this):this._links},t.prototype.constraints=function(t){return arguments.length?(this._constraints=t,this):this._constraints},t.prototype.distanceMatrix=function(t){return arguments.length?(this._distanceMatrix=t,this):this._distanceMatrix},t.prototype.size=function(t){return t?(this._canvasSize=t,this):this._canvasSize},t.prototype.defaultNodeSize=function(t){return t?(this._defaultNodeSize=t,this):this._defaultNodeSize},t.prototype.groupCompactness=function(t){return t?(this._groupCompactness=t,this):this._groupCompactness},t.prototype.linkDistance=function(t){return t?(this._linkDistance="function"==typeof t?t:+t,this._linkLengthCalculator=null,this):this._linkDistance},t.prototype.linkType=function(t){return this._linkType=t,this},t.prototype.convergenceThreshold=function(t){return t?(this._threshold="function"==typeof t?t:+t,this):this._threshold},t.prototype.alpha=function(t){return arguments.length?(t=+t,this._alpha?this._alpha=t>0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:r.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return o.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return o.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,i,c,l){var f=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var h,d=this.nodes().length,p=d+2*this._groups.length,g=(this._links.length,this._canvasSize[0]),v=this._canvasSize[1],b=new Array(p),y=new Array(p),w=null,m=this._avoidOverlaps;this._nodes.forEach((function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=v/2),b[e]=t.x,y[e]=t.y})),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?h=this._distanceMatrix:(h=new u.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,(function(t){return f.getLinkLength(t)})).DistanceMatrix(),w=a.Descent.createSquareMatrix(p,(function(){return 2})),this._links.forEach((function(t){"number"==typeof t.source&&(t.source=f._nodes[t.source]),"number"==typeof t.target&&(t.target=f._nodes[t.target])})),this._links.forEach((function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);w[n][r]=w[r][n]=e.weight||1})));var x=a.Descent.createSquareMatrix(p,(function(t,e){return h[t][e]}));if(this._rootGroup&&void 0!==this._rootGroup.groups){var _=d;this._groups.forEach((function(t){!function(t,e,n,r){w[t][e]=w[e][t]=n,x[t][e]=x[e][t]=r}(_,_+1,f._groupCompactness,.1),b[_]=0,y[_++]=0,b[_]=0,y[_++]=0}))}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(o.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new a.Descent([b,y],x),this._descent.locks.clear();for(_=0;_<d;++_){var k=this._nodes[_];if(k.fixed){k.px=k.x,k.py=k.y;var S=[k.x,k.y];this._descent.locks.add(_,S)}}if(this._descent.threshold=this._threshold,this.initialLayout(e,b,y),E.length>0&&(this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,v,l),this.avoidOverlaps(m),m&&(this._nodes.forEach((function(t,e){t.x=b[e],t.y=y[e]})),this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach((function(t,e){b[e]=t.x,y[e]=t.y}))),this._descent.G=w,this._descent.run(r),i){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var C=a.Descent.createSquareMatrix(p,(function(t,e){return t>=d||e>=d?w[t][e]:0}));this._descent.G=C,this._descent.run(i)}return this.updateNodePositions(),this.separateOverlappingComponents(g,v,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map((function(t){return{source:t.source.index,target:t.target.index}})),a=this._nodes.map((function(t){return{index:t.index}}));this._groups.forEach((function(t,e){a.push({index:t.index=i+e})})),this._groups.forEach((function(t,e){void 0!==t.leaves&&t.leaves.forEach((function(e){return o.push({source:t.index,target:e.index})})),void 0!==t.groups&&t.groups.forEach((function(e){return o.push({source:t.index,target:e.index})}))})),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach((function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y}))}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach((function(t,e){t.x=i[e],t.y=o[e]}));var a=l.separateGraphs(this._nodes,this._links);l.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach((function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))}))}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new c.TangentVisibilityGraph(this._nodes.map((function(e){return e.bounds.inflate(-t).vertices()})))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new c.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},a={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),f=i.addPoint(a,t.target.index);i.addEdgeIfVisible(o,a,t.source.index,t.target.index),void 0!==n&&n(i);var h=new u.Calculator(i.V.length,i.E,(function(t){return t.source.id}),(function(t){return t.target.id}),(function(t){return t.length()})).PathFromNodeToNode(l.id,f.id);if(1===h.length||h.length===i.V.length){var d=s.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=h.length-2,g=i.V[h[p]].p,v=i.V[h[0]].p,b=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);b>=0;--b)r.push(i.V[h[b]].p);r.push(s.makeEdgeTo(v,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){f(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach((function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.storeOffset(e,n)}))},t.dragOrigin=function(t){return f(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){f(e)?(void 0!==e.leaves&&e.leaves.forEach((function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.drag(e,n)}))):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){f(e)?(void 0!==e.leaves&&e.leaves.forEach((function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY})),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}();e.Layout=h},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(49),a=n(73);function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce((function(t,e){return e.bounds.union(t)}),u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce((function(t,e){return s(e).union(t)}),t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x<this.X?this.X-t.x:n<=e&&this.x<t.X?t.X-this.x:0},t.prototype.overlapY=function(t){var e=this.cy(),n=t.cy();return e<=n&&t.y<this.Y?this.Y-t.y:n<=e&&this.y<t.Y?t.Y-this.y:0},t.prototype.setXCentre=function(t){var e=t-this.cx();this.x+=e,this.X+=e},t.prototype.setYCentre=function(t){var e=t-this.cy();this.y+=e,this.Y+=e},t.prototype.width=function(){return this.X-this.x},t.prototype.height=function(){return this.Y-this.y},t.prototype.union=function(e){return new t(Math.min(this.x,e.x),Math.max(this.X,e.X),Math.min(this.y,e.y),Math.max(this.Y,e.Y))},t.prototype.lineIntersections=function(e,n,r,i){for(var o=[[this.x,this.y,this.X,this.y],[this.X,this.y,this.X,this.Y],[this.X,this.Y,this.x,this.Y],[this.x,this.Y,this.x,this.y]],a=[],s=0;s<4;++s){var u=t.lineIntersection(e,n,r,i,o[s][0],o[s][1],o[s][2],o[s][3]);null!==u&&a.push({x:u.x,y:u.y})}return a},t.prototype.rayIntersection=function(t,e){var n=this.lineIntersections(this.cx(),this.cy(),t,e);return n.length>0?n[0]:null},t.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,f=s-o,h=f*u-c*l;if(0==h)return null;var d=t-i,p=e-o,g=(c*p-f*d)/h,v=(u*p-l*d)/h;return g>=0&&g<=1&&v>=0&&v<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=h(),this.next=h()},l=function(t,e,n){this.isOpen=t,this.v=e,this.pos=n};function f(t,e){return t.pos>e.pos?1:t.pos<e.pos||t.isOpen?-1:e.isOpen?1:0}function h(){return new a.RBTree((function(t,e){return t.pos-e.pos}))}var d={getCentre:function(t){return t.cx()},getOpen:function(t){return t.y},getClose:function(t){return t.Y},getSize:function(t){return t.width()},makeRect:function(t,e,n,r){return new u(n-r/2,n+r/2,t,e)},findNeighbours:function(t,e){var n=function(n,r){for(var i,o=e.findIter(t);null!==(i=o[n]());){var a=i.r.overlapX(t.r);if((a<=0||a<=i.r.overlapY(t.r))&&(t[n].insert(i),i[r].insert(t)),a<=0)break}};n("next","prev"),n("prev","next")}},p={getCentre:function(t){return t.cy()},getOpen:function(t){return t.x},getClose:function(t){return t.X},getSize:function(t){return t.height()},makeRect:function(t,e,n,r){return new u(t,e,n-r/2,n+r/2)},findNeighbours:function(t,e){var n=function(n,r){var i=e.findIter(t)[n]();null!==i&&i.r.overlapX(t.r)>0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce((function(t,r){return t.concat(g(r,e,n,!0))}),[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),f=0,h=function(t,e){l[f]=t,c[f++]=e};if(r){var d=t.bounds,p=e.getCentre(d),b=e.getSize(d)/2,y=e.getOpen(d),w=e.getClose(d),m=p-b+i/2,x=p+b-i/2;t.minVar.desiredPosition=m,h(e.makeRect(y,w,m,i),t.minVar),t.maxVar.desiredPosition=x,h(e.makeRect(y,w,x,i),t.maxVar)}a&&t.leaves.forEach((function(t){return h(t.bounds,t.variable)})),o&&t.groups.forEach((function(t){var n=t.bounds;h(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)}));var _=v(l,c,e,n);return o&&(c.forEach((function(t){t.cOut=[],t.cIn=[]})),_.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),t.groups.forEach((function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach((function(t){return t.gap+=n})),t.minVar.cOut.forEach((function(e){e.left=t.maxVar,e.gap+=n}))}))),s.concat(_)}function v(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;i<a;++i){var d=t[i],p=new c(e[i],d,n.getCentre(d));u[i]=new l(!0,p,n.getOpen(d)),u[i+a]=new l(!1,p,n.getClose(d))}u.sort(f);var g=new Array,v=h();for(i=0;i<s;++i){var b=u[i];p=b.v;if(b.isOpen)v.insert(p),n.findNeighbours(p,v);else{v.remove(p);var y=function(t,e){var i=(n.getSize(t.r)+n.getSize(e.r))/2+r;g.push(new o.Constraint(t.v,e.v,i))},w=function(t,e,n){for(var r,i=p[t].iterator();null!==(r=i[t]());)n(r,p),r[e].remove(p)};w("prev","next",(function(t,e){return y(t,e)})),w("next","prev",(function(t,e){return y(e,t)}))}}return console.assert(0===v.size),g}function b(t,e){return v(t,e,d,1e-6)}function y(t,e){return v(t,e,p,1e-6)}function w(t){return g(t,d,1e-6)}function m(t){return g(t,p,1e-6)}e.generateXConstraints=b,e.generateYConstraints=y,e.generateXGroupConstraints=w,e.generateYGroupConstraints=m,e.removeOverlaps=function(t){var e=t.map((function(t){return new o.Variable(t.cx())})),n=b(t,e),r=new o.Solver(e,n);r.solve(),e.forEach((function(e,n){return t[n].setXCentre(e.position())})),e=t.map((function(t){return new o.Variable(t.cy())})),n=y(t,e),(r=new o.Solver(e,n)).solve(),e.forEach((function(e,n){return t[n].setYCentre(e.position())}))};var x=function(t){function e(e,n){var r=t.call(this,0,n)||this;return r.index=e,r}return i(e,t),e}(o.Variable);e.IndexedVariable=x;var _=function(){function t(t,e,n,r,i){var o=this;if(void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=!1),this.nodes=t,this.groups=e,this.rootGroup=n,this.avoidOverlaps=i,this.variables=t.map((function(t,e){return t.variable=new x(e,1)})),r&&this.createConstraints(r),i&&n&&void 0!==n.groups){t.forEach((function(t){if(t.width&&t.height){var e=t.width/2,n=t.height/2;t.bounds=new u(t.x-e,t.x+e,t.y-n,t.y+n)}else t.bounds=new u(t.x,t.x,t.y,t.y)})),s(n);var a=t.length;e.forEach((function(t){o.variables[a]=t.minVar=new x(a++,void 0!==t.stiffness?t.stiffness:.01),o.variables[a]=t.maxVar=new x(a++,void 0!==t.stiffness?t.stiffness:.01)}))}}return t.prototype.createSeparation=function(t){return new o.Constraint(this.nodes[t.left].variable,this.nodes[t.right].variable,t.gap,void 0!==t.equality&&t.equality)},t.prototype.makeFeasible=function(t){var e=this;if(this.avoidOverlaps){var n="x",r="width";"x"===t.axis&&(n="y",r="height");var i=t.offsets.map((function(t){return e.nodes[t.node]})).sort((function(t,e){return t[n]-e[n]})),o=null;i.forEach((function(t){if(o){var e=o[n]+o[r];e>t[n]&&(t[n]=e)}o=t}))}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach((function(t){var i=e.nodes[t.node].variable;r.push(new o.Constraint(n,i,t.offset,!0))}))},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter((function(t){return"x"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),this.yConstraints=t.filter((function(t){return"y"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),t.filter((function(t){return"alignment"===t.type})).forEach((function(t){return e.createAlignment(t)}))},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach((function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)}))},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,(function(t){return t.px}),this.xConstraints,w,(function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i}))},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,(function(t){return t.py}),this.yConstraints,m,(function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i}))},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}();e.Projection=_},function(t,e,n){var r=n(12),i=n(4);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(35),i=n(36);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?i(n,c,l):r(n,c,l)}return n}},function(t,e,n){var r=n(190),i=n(7),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){var r=n(192),i=n(38),o=n(55),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e,n){var r=n(19);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(74),i=function(t,e){this.id=t,this.distance=e},o=function(t){this.id=t,this.neighbours=[]},a=function(t,e,n){this.node=t,this.prev=e,this.d=n},s=function(){function t(t,e,n,r,a){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var s=this.n;s--;)this.neighbours[s]=new o(s);for(s=this.es.length;s--;){var u=this.es[s],c=n(u),l=r(u),f=a(u);this.neighbours[c].neighbours.push(new i(l,f)),this.neighbours[l].neighbours.push(new i(c,f))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;e<this.n;++e)t[e]=this.dijkstraNeighbours(e);return t},t.prototype.DistancesFromNode=function(t){return this.dijkstraNeighbours(t)},t.prototype.PathFromNodeToNode=function(t,e){return this.dijkstraNeighbours(t,e)},t.prototype.PathFromNodeToNodeWithPrevCost=function(t,e,n){var i=new r.PriorityQueue((function(t,e){return t.d<=e.d})),o=this.neighbours[t],s=new a(o,null,0),u={};for(i.push(s);!i.empty()&&(o=(s=i.pop()).node).id!==e;)for(var c=o.neighbours.length;c--;){var l=o.neighbours[c],f=this.neighbours[l.id];if(!s.prev||f.id!==s.prev.node.id){var h=f.id+","+o.id;if(!(h in u&&u[h]<=s.d)){var d=s.prev?n(s.prev.node.id,o.id,f.id):0,p=s.d+l.distance+d;u[h]=p,i.push(new a(f,s,p))}}}for(var g=[];s.prev;)s=s.prev,g.push(s.node.id);return g},t.prototype.dijkstraNeighbours=function(t,e){void 0===e&&(e=-1);for(var n=new r.PriorityQueue((function(t,e){return t.d<=e.d})),i=this.neighbours.length,o=new Array(i);i--;){var a=this.neighbours[i];a.d=i===t?0:Number.POSITIVE_INFINITY,a.q=n.push(a)}for(;!n.empty();){var s=n.pop();if(o[s.id]=s.d,s.id===e){for(var u=[],c=s;void 0!==c.prev;)u.push(c.prev.id),c=c.prev;return u}for(i=s.neighbours.length;i--;){var l=s.neighbours[i],f=(c=this.neighbours[l.id],s.d+l.distance);s.d!==Number.MAX_VALUE&&c.d>f&&(c.d=f,c.prev=s,n.reduceKey(c.q,c,(function(t,e){return t.q=e})))}}return o},t}();e.Calculator=s},function(t,e,n){var r=n(31),i=n(165),o=n(166),a=n(167),s=n(168),u=n(169);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(160),i=n(161),o=n(162),a=n(163),s=n(164);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(14);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(11)(Object,"create");t.exports=r},function(t,e,n){var r=n(184);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(36),i=n(14),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(81);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(83)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(61),i=n(213)(r);t.exports=i},function(t,e,n){var r=n(1),i=n(65),o=n(227),a=n(106);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(13),i=n(115),o=n(116);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){var r=n(14),i=n(8),o=n(37),a=n(4);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){"use strict";var r=n(0);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)n[r]={};for(var r in e)n[r]={};return Object.keys(n).length}function i(t,e){var n=0;for(var r in t)void 0!==e[r]&&++n;return n}function o(t,e,n,r){var i=function(t,e){var n={},r=function(t,e){void 0===n[t]&&(n[t]={}),n[t][e]={}};return t.forEach((function(t){var n=e.getSourceIndex(t),i=e.getTargetIndex(t);r(n,i),r(i,n)})),n}(t,r);t.forEach((function(t){var o=i[r.getSourceIndex(t)],a=i[r.getTargetIndex(t)];r.setLength(t,1+e*n(o,a))}))}function a(t,e,n){var r=[],i=0,o=[],a=[];function s(t){t.index=t.lowlink=i++,o.push(t),t.onStack=!0;for(var e=0,n=t.out;e<n.length;e++){var r=n[e];void 0===r.index?(s(r),t.lowlink=Math.min(t.lowlink,r.lowlink)):r.onStack&&(t.lowlink=Math.min(t.lowlink,r.index))}if(t.lowlink===t.index){for(var u=[];o.length&&((r=o.pop()).onStack=!1,u.push(r),r!==t););a.push(u.map((function(t){return t.id})))}}for(var u=0;u<t;u++)r.push({id:u,out:[]});for(var c=0,l=e;c<l.length;c++){var f=l[c],h=r[n.getSourceIndex(f)],d=r[n.getTargetIndex(f)];h.out.push(d)}for(var p=0,g=r;p<g.length;p++){var v=g[p];void 0===v.index&&s(v)}return a}Object.defineProperty(e,"__esModule",{value:!0}),e.symmetricDiffLinkLengths=function(t,e,n){void 0===n&&(n=1),o(t,n,(function(t,e){return Math.sqrt(r(t,e)-i(t,e))}),e)},e.jaccardLinkLengths=function(t,e,n){void 0===n&&(n=1),o(t,n,(function(t,e){return Math.min(Object.keys(t).length,Object.keys(e).length)<1.1?0:i(t,e)/r(t,e)}),e)},e.generateDirectedEdgeConstraints=function(t,e,n,r){var i=a(t,e,r),o={};i.forEach((function(t,e){return t.forEach((function(t){return o[t]=e}))}));var s=[];return e.forEach((function(t){var e=r.getSourceIndex(t),i=r.getTargetIndex(t);o[e]!==o[i]&&s.push({axis:n,left:e,right:i,gap:r.getMinSeparation(t)})})),s},e.stronglyConnectedComponents=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=r;var i=function(){function t(t,e,n){void 0===n&&(n=null),this.D=e,this.G=n,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new o,this.project=null,this.x=t,this.k=t.length;var i=this.n=t[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new r,this.minD=Number.MAX_VALUE;for(var a,s=i;s--;)for(a=i;--a>s;){var u=e[s][a];u>0&&u<this.minD&&(this.minD=u)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),s=this.k;s--;){for(this.g[s]=new Array(i),this.H[s]=new Array(i),a=i;a--;)this.H[s][a]=new Array(i);this.Hd[s]=new Array(i),this.a[s]=new Array(i),this.b[s]=new Array(i),this.c[s]=new Array(i),this.d[s]=new Array(i),this.e[s]=new Array(i),this.ia[s]=new Array(i),this.ib[s]=new Array(i),this.xtmp[s]=new Array(i)}}return t.createSquareMatrix=function(t,e){for(var n=new Array(t),r=0;r<t;++r){n[r]=new Array(t);for(var i=0;i<t;++i)n[r][i]=e(r,i)}return n},t.prototype.offsetDir=function(){for(var t=this,e=new Array(this.k),n=0,r=0;r<this.k;++r){var i=e[r]=this.random.getNextBetween(.01,1)-.5;n+=i*i}return n=Math.sqrt(n),e.map((function(e){return e*(t.minD/n)}))},t.prototype.computeDerivatives=function(t){var e=this,n=this.n;if(!(n<1)){for(var r,i=new Array(this.k),o=new Array(this.k),a=new Array(this.k),s=0,u=0;u<n;++u){for(r=0;r<this.k;++r)a[r]=this.g[r][u]=0;for(var c=0;c<n;++c)if(u!==c){for(var l=n;l--;){var f=0;for(r=0;r<this.k;++r){var h=i[r]=t[r][u]-t[r][c];f+=o[r]=h*h}if(f>1e-9)break;var d=this.offsetDir();for(r=0;r<this.k;++r)t[r][c]+=d[r]}var p=Math.sqrt(f),g=this.D[u][c],v=null!=this.G?this.G[u][c]:1;if(v>1&&p>g||!isFinite(g))for(r=0;r<this.k;++r)this.H[r][u][c]=0;else{v>1&&(v=1);var b=g*g,y=2*v*(p-g)/(b*p),w=p*p*p,m=2*-v/(b*w);for(isFinite(y)||console.log(y),r=0;r<this.k;++r)this.g[r][u]+=i[r]*y,a[r]-=this.H[r][u][c]=m*(w+g*(o[r]-f)+p*f)}}for(r=0;r<this.k;++r)s=Math.max(s,this.H[r][u][u]=a[r])}var x=this.snapGridSize/2,_=this.snapGridSize,E=this.snapStrength/(x*x),k=this.numGridSnapNodes;for(u=0;u<k;++u)for(r=0;r<this.k;++r){var S=this.x[r][u],C=S/_,T=C%1,A=C-T;-x<(h=Math.abs(T)<=.5?S-A*_:S>0?S-(A+1)*_:S-(A-1)*_)&&h<=x&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*h,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*h,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply((function(n,i){for(r=0;r<e.k;++r)e.H[r][n][n]+=s,e.g[r][n]-=s*(i[r]-t[r][n])}))}},t.dotProd=function(t,e){for(var n=0,r=t.length;r--;)n+=t[r]*e[r];return n},t.rightMultiply=function(e,n,r){for(var i=e.length;i--;)r[i]=t.dotProd(e[i],n)},t.prototype.computeStepSize=function(e){for(var n=0,r=0,i=0;i<this.k;++i)n+=t.dotProd(this.g[i],e[i]),t.rightMultiply(this.H[i],e[i],this.Hd[i]),r+=t.dotProd(e[i],this.Hd[i]);return 0!==r&&isFinite(r)?1*n/r:0},t.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var t=this.computeStepSize(this.g),e=0;e<this.k;++e)this.takeDescentStep(this.x[e],this.g[e],t);return this.computeStress()},t.copy=function(t,e){for(var n=t.length,r=e[0].length,i=0;i<n;++i)for(var o=0;o<r;++o)e[i][o]=t[i][o]},t.prototype.stepAndProject=function(e,n,r,i){t.copy(e,n),this.takeDescentStep(n[0],r[0],i),this.project&&this.project[0](e[0],e[1],n[0]),this.takeDescentStep(n[1],r[1],i),this.project&&this.project[1](n[0],e[1],n[1]);for(var o=2;o<this.k;o++)this.takeDescentStep(n[o],r[o],i)},t.mApply=function(t,e,n){for(var r=t;r-- >0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply((function(r,i){return n.e[r][i]=t[r][i]-e[r][i]}));var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)<this.threshold,e=r}return e},t.prototype.rungeKutta=function(){var e=this;this.computeNextPosition(this.x,this.a),t.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),t.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var n=0;return this.matrixApply((function(t,r){var i=(e.a[t][r]+2*e.b[t][r]+2*e.c[t][r]+e.d[t][r])/6,o=e.x[t][r]-i;n+=o*o,e.x[t][r]=i})),n},t.mid=function(e,n,r){t.mApply(e.length,e[0].length,(function(t,i){return r[t][i]=e[t][i]+(n[t][i]-e[t][i])/2}))},t.prototype.takeDescentStep=function(t,e,n){for(var r=0;r<this.n;++r)t[r]=t[r]-n*e[r]},t.prototype.computeStress=function(){for(var t=0,e=0,n=this.n-1;e<n;++e)for(var r=e+1,i=this.n;r<i;++r){for(var o=0,a=0;a<this.k;++a){var s=this.x[a][e]-this.x[a][r];o+=s*s}o=Math.sqrt(o);var u=this.D[e][r];if(isFinite(u)){var c=u-o;t+=c*c/(u*u)}}return t},t.zeroDistance=1e-10,t}();e.Descent=i;var o=function(){function t(t){void 0===t&&(t=1),this.seed=t,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return t.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.offset/t.scale,r=t.weight;this.AB+=r*e*n,this.AD+=r*e*t.desiredPosition,this.A2+=r*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=r;var i=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=i;var o=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach((function(t){return n(t,t.right)})),this.cIn.forEach((function(t){return n(t,t.left)}))},t}();e.Variable=o;var a=function(){function t(t){this.vars=[],t.offset=0,this.ps=new r(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t<e;++t)this.ps.addVariable(this.vars[t]);this.posn=this.ps.getPosn()},t.prototype.compute_lm=function(t,e,n){var r=this,i=t.dfdv();return t.visitNeighbours(e,(function(e,o){var a=r.compute_lm(o,t,n);o===e.right?(i+=a*e.left.scale,e.lm=a):(i+=a*e.right.scale,e.lm=-a),n(e)})),i/t.scale},t.prototype.populateSplitBlock=function(t,e){var n=this;t.visitNeighbours(e,(function(e,r){r.offset=t.offset+(r===e.right?e.gap:-e.gap),n.addVariable(r),n.populateSplitBlock(r,t)}))},t.prototype.traverse=function(t,e,n,r){var i=this;void 0===n&&(n=this.vars[0]),void 0===r&&(r=null),n.visitNeighbours(r,(function(r,o){e.push(t(r)),i.traverse(t,e,o,n)}))},t.prototype.findMinLM=function(){var t=null;return this.compute_lm(this.vars[0],null,(function(e){!e.equality&&(null===t||e.lm<t.lm)&&(t=e)})),t},t.prototype.findMinLMBetween=function(t,e){this.compute_lm(t,null,(function(){}));var n=null;return this.findPath(t,null,e,(function(t,e){!t.equality&&t.right===e&&(null===n||t.lm<n.lm)&&(n=t)})),n},t.prototype.findPath=function(t,e,n,r){var i=this,o=!1;return t.visitNeighbours(e,(function(e,a){o||a!==n&&!i.findPath(a,t,n,r)||(o=!0,r(e,a))})),o},t.prototype.isActiveDirectedPathBetween=function(t,e){if(t===e)return!0;for(var n=t.cOut.length;n--;){var r=t.cOut[n];if(r.active&&this.isActiveDirectedPathBetween(r.right,e))return!0}return!1},t.split=function(e){return e.active=!1,[t.createSplitBlock(e.left),t.createSplitBlock(e.right)]},t.createSplitBlock=function(e){var n=new t(e);return n.populateSplitBlock(e,null),n},t.prototype.splitBetween=function(e,n){var r=this.findMinLMBetween(e,n);if(null!==r){var i=t.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},t.prototype.mergeAcross=function(t,e,n){e.active=!0;for(var r=0,i=t.vars.length;r<i;++r){var o=t.vars[r];o.offset+=n,this.addVariable(o)}this.posn=this.ps.getPosn()},t.prototype.cost=function(){for(var t=0,e=this.vars.length;e--;){var n=this.vars[e],r=n.position()-n.desiredPosition;t+=r*r*n.weight}return t},t}();e.Block=a;var s=function(){function t(t){this.vs=t;var e=t.length;for(this.list=new Array(e);e--;){var n=new a(t[e]);this.list[e]=n,n.blockInd=e}}return t.prototype.cost=function(){for(var t=0,e=this.list.length;e--;)t+=this.list[e].cost();return t},t.prototype.insert=function(t){t.blockInd=this.list.length,this.list.push(t)},t.prototype.remove=function(t){var e=this.list.length-1,n=this.list[e];this.list.length=e,t!==n&&(this.list[t.blockInd]=n,n.blockInd=t.blockInd)},t.prototype.merge=function(t){var e=t.left.block,n=t.right.block,r=t.right.offset-t.left.offset-t.gap;e.vars.length<n.vars.length?(n.mergeAcross(e,t,r),this.remove(e)):(e.mergeAcross(n,t,-r),this.remove(n))},t.prototype.forEach=function(t){this.list.forEach(t)},t.prototype.updateBlockPositions=function(){this.list.forEach((function(t){return t.updateWeightedPosition()}))},t.prototype.split=function(t){var e=this;this.updateBlockPositions(),this.list.forEach((function(n){var r=n.findMinLM();null!==r&&r.lm<u.LAGRANGIAN_TOLERANCE&&(n=r.left.block,a.split(r).forEach((function(t){return e.insert(t)})),e.remove(n),t.push(r))}))},t}();e.Blocks=s;var u=function(){function t(t,e){this.vs=t,this.cs=e,this.vs=t,t.forEach((function(t){t.cIn=[],t.cOut=[]})),this.cs=e,e.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),this.inactive=e.map((function(t){return t.active=!1,t})),this.bs=null}return t.prototype.cost=function(){return this.bs.cost()},t.prototype.setStartingPositions=function(t){this.inactive=this.cs.map((function(t){return t.active=!1,t})),this.bs=new s(this.vs),this.bs.forEach((function(e,n){return e.posn=t[n]}))},t.prototype.setDesiredPositions=function(t){this.vs.forEach((function(e,n){return e.desiredPosition=t[n]}))},t.prototype.mostViolated=function(){for(var e=Number.MAX_VALUE,n=null,r=this.inactive,i=r.length,o=i,a=0;a<i;++a){var s=r[a];if(!s.unsatisfiable){var u=s.slack();if((s.equality||u<e)&&(e=u,n=s,o=a,s.equality))break}}return o!==i&&(e<t.ZERO_UPPERBOUND&&!n.active||n.equality)&&(r[o]=r[i-1],r.length=i-1),n},t.prototype.satisfy=function(){null==this.bs&&(this.bs=new s(this.vs)),this.bs.split(this.inactive);for(var e=null;(e=this.mostViolated())&&(e.equality||e.slack()<t.ZERO_UPPERBOUND&&!e.active);){var n=e.left.block;if(n!==e.right.block)this.bs.merge(e);else{if(n.isActiveDirectedPathBetween(e.right,e.left)){e.unsatisfiable=!0;continue}var r=n.splitBetween(e.left,e.right);if(null===r){e.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),e.slack()>=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=u,e.removeOverlapInOneDimension=function(t,e,n){for(var r=t.map((function(t){return new o(t.desiredCenter)})),a=[],s=t.length,c=0;c<s-1;c++){var l=t[c],f=t[c+1];a.push(new i(r[c],r[c+1],(l.size+f.size)/2))}var h=r[0],d=r[s-1],p=t[0].size/2,g=t[s-1].size/2,v=null,b=null;return e&&(v=new o(e,1e3*h.weight),r.push(v),a.push(new i(v,h,p))),n&&(b=new o(n,1e3*d.weight),r.push(b),a.push(new i(d,b,g))),new u(r,a).solve(),{newCenters:r.slice(0,t.length).map((function(t){return t.position()})),lowerBound:v?v.position():h.position()-p,upperBound:b?b.position():d.position()+g}}},function(t,e,n){"use strict";var r=n(3);t.exports=i;function i(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(t,e){t[e]?t[e]++:t[e]=1}function a(t,e){--t[e]||delete t[e]}function s(t,e,n,i){var o=""+e,a=""+n;if(!t&&o>a){var s=o;o=a,a=s}return o+""+a+""+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var o=n.parent(r);return void 0===o||e.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var f=u(this._isDirected,t,e,n);return t=f.v,e=f.w,Object.freeze(f),this._edgeObjs[l]=f,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=f,this._out[t][l]=f,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},function(t,e,n){var r=n(11)(n(6),"Map");t.exports=r},function(t,e,n){var r=n(176),i=n(183),o=n(185),a=n(186),s=n(187);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){(function(t){var r=n(79),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(28)(t))},function(t,e,n){var r=n(39),i=n(193),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(86),i=n(87),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(92);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var r=n(62),i=n(10);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(212)();t.exports=r},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(42),i=n(27);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(1),i=n(19),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(58),i=n(246);t.exports=function t(e,n,o,a,s){var u=-1,c=e.length;for(o||(o=i),s||(s=[]);++u<c;){var l=e[u];n>0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,c=a}return c}},function(t,e){t.exports=window.React},function(t,e,n){t.exports=n(133)()},function(t,e,n){"use strict";(function(e){function r(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var i=r(n(139)),o=r(n(140));function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var h="undefined"==typeof window?null:window,d=h?h.navigator:null,p=(h&&h.document,a("")),g=a({}),v=a((function(){})),b="undefined"==typeof HTMLElement?"undefined":a(HTMLElement),y=function(t){return t&&t.instanceString&&m(t.instanceString)?t.instanceString():null},w=function(t){return null!=t&&a(t)==p},m=function(t){return null!=t&&a(t)===v},x=function(t){return Array.isArray?Array.isArray(t):null!=t&&t instanceof Array},_=function(t){return null!=t&&a(t)===g&&!x(t)&&t.constructor===Object},E=function(t){return null!=t&&a(t)===a(1)&&!isNaN(t)},k=function(t){return"undefined"===b?void 0:null!=t&&t instanceof HTMLElement},S=function(t){return C(t)||T(t)},C=function(t){return"collection"===y(t)&&t._private.single},T=function(t){return"collection"===y(t)&&!t._private.single},A=function(t){return"core"===y(t)},N=function(t){return"stylesheet"===y(t)},O=function(t){return null==t||!(""!==t&&!t.match(/^\s+$/))},L=function(t){return function(t){return null!=t&&a(t)===g}(t)&&m(t.then)},P=function(t,e){e||(e=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);return t.join("$")});var n=function n(){var r,i=this,o=arguments,a=e.apply(i,o),s=n.cache;return(r=s[a])||(r=s[a]=t.apply(i,o)),r};return n.cache={},n},I=P((function(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))})),j=P((function(t){return t.replace(/(-\w)/g,(function(t){return t[1].toUpperCase()}))})),M=P((function(t,e){return t+e[0].toUpperCase()+e.substring(1)}),(function(t,e){return t+"$"+e})),D=function(t){return O(t)?t:t.charAt(0).toUpperCase()+t.substring(1)},R="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",B=function(t,e){return t<e?-1:t>e?1:0},G=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments,n=1;n<e.length;n++){var r=e[n];if(null!=r)for(var i=Object.keys(r),o=0;o<i.length;o++){var a=i[o];t[a]=r[a]}}return t},H=function(t){return(x(t)?t:null)||function(t){return F[t.toLowerCase()]}(t)||function(t){if((4===t.length||7===t.length)&&"#"===t[0]){var e,n,r;return 4===t.length?(e=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),r=parseInt(t[3]+t[3],16)):(e=parseInt(t[1]+t[2],16),n=parseInt(t[3]+t[4],16),r=parseInt(t[5]+t[6],16)),[e,n,r]}}(t)||function(t){var e,n=new RegExp("^rgb[a]?\\(((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)(?:\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)$").exec(t);if(n){e=[];for(var r=[],i=1;i<=3;i++){var o=n[i];if("%"===o[o.length-1]&&(r[i]=!0),o=parseFloat(o),r[i]&&(o=o/100*255),o<0||o>255)return;e.push(Math.floor(o))}var a=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(a&&!s)return;var u=n[4];if(void 0!==u){if((u=parseFloat(u))<0||u>1)return;e.push(u)}}return e}(t)||function(t){var e,n,r,i,o,a,s,u;function c(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var l=new RegExp("^hsl[a]?\\(((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?)))\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])(?:\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)$").exec(t);if(l){if((n=parseInt(l[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(r=parseFloat(l[2]))<0||r>100)return;if(r/=100,(i=parseFloat(l[3]))<0||i>100)return;if(i/=100,void 0!==(o=l[4])&&((o=parseFloat(o))<0||o>1))return;if(0===r)a=s=u=Math.round(255*i);else{var f=i<.5?i*(1+r):i+r-i*r,h=2*i-f;a=Math.round(255*c(h,f,n+1/3)),s=Math.round(255*c(h,f,n)),u=Math.round(255*c(h,f,n-1/3))}e=[a,s,u,o]}return e}(t)},F={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},z=function(t){for(var e=t.map,n=t.keys,r=n.length,i=0;i<r;i++){var o=n[i];if(_(o))throw Error("Tried to set map with object key");i<n.length-1?(null==e[o]&&(e[o]={}),e=e[o]):e[o]=t.value}},Y=function(t){for(var e=t.map,n=t.keys,r=n.length,i=0;i<r;i++){var o=n[i];if(_(o))throw Error("Tried to get map with object key");if(null==(e=e[o]))return e}return e},V=h?h.performance:null,q=V&&V.now?function(){return V.now()}:function(){return Date.now()},U=function(){if(h){if(h.requestAnimationFrame)return function(t){h.requestAnimationFrame(t)};if(h.mozRequestAnimationFrame)return function(t){h.mozRequestAnimationFrame(t)};if(h.webkitRequestAnimationFrame)return function(t){h.webkitRequestAnimationFrame(t)};if(h.msRequestAnimationFrame)return function(t){h.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout((function(){t(q())}),1e3/60)}}(),X=function(t){return U(t)},W=q,$=65599,K=function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9261,r=n;!(e=t.next()).done;)r=r*$+e.value|0;return r},Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9261;return e*$+t|0},Q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5381;return(e<<5)+e+t|0},J=function(t){return 2097152*t[0]+t[1]},tt=function(t,e){return[Z(t[0],e[0]),Q(t[1],e[1])]},et=function(t,e){var n={value:0,done:!1},r=0,i=t.length;return K({next:function(){return r<i?n.value=t.charCodeAt(r++):n.done=!0,n}},e)},nt=function(){return rt(arguments)},rt=function(t){for(var e,n=0;n<t.length;n++){var r=t[n];e=0===n?et(r):et(r,e)}return e},it=!0,ot=null!=console.warn,at=null!=console.trace,st=Number.MAX_SAFE_INTEGER||9007199254740991,ut=function(){return!0},ct=function(){return!1},lt=function(){return 0},ft=function(){},ht=function(t){throw new Error(t)},dt=function(t){if(void 0===t)return it;it=!!t},pt=function(t){dt()&&(ot?console.warn(t):(console.log(t),at&&console.trace()))},gt=function(t){return null==t?t:x(t)?t.slice():_(t)?function(t){return G({},t)}(t):t},vt=function(t,e){for(e=t="";t++<36;e+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-");return e},bt={},yt=function(){return bt},wt=function(t){var e=Object.keys(t);return function(n){for(var r={},i=0;i<e.length;i++){var o=e[i],a=null==n?void 0:n[o];r[o]=void 0===a?t[o]:a}return r}},mt=function(t,e,n){for(var r=t.length;r>=0&&(t[r]!==e||(t.splice(r,1),n));r--);},xt=function(t){t.splice(0,t.length)},_t=function(t,e,n){return n&&(e=M(n,e)),t[e]},Et=function(t,e,n,r){n&&(e=M(n,e)),t[e]=r},kt="undefined"!=typeof Map?Map:function(){function t(){s(this,t),this._obj={}}return c(t,[{key:"set",value:function(t,e){return this._obj[t]=e,this}},{key:"delete",value:function(t){return this._obj[t]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(t){return void 0!==this._obj[t]}},{key:"get",value:function(t){return this._obj[t]}}]),t}(),St=function(){function t(e){if(s(this,t),this._obj=Object.create(null),this.size=0,null!=e){var n;n=null!=e.instanceString&&e.instanceString()===this.instanceString()?e.toArray():e;for(var r=0;r<n.length;r++)this.add(n[r])}}return c(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(t){var e=this._obj;1!==e[t]&&(e[t]=1,this.size++)}},{key:"delete",value:function(t){var e=this._obj;1===e[t]&&(e[t]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(t){return 1===this._obj[t]}},{key:"toArray",value:function(){var t=this;return Object.keys(this._obj).filter((function(e){return t.has(e)}))}},{key:"forEach",value:function(t,e){return this.toArray().forEach(t,e)}}]),t}(),Ct="undefined"!==("undefined"==typeof Set?"undefined":a(Set))?Set:St,Tt=function(t,e,n){if(n=!(void 0!==n&&!n),void 0!==t&&void 0!==e&&A(t)){var r=e.group;if(null==r&&(r=e.data&&null!=e.data.source&&null!=e.data.target?"edges":"nodes"),"nodes"===r||"edges"===r){this.length=1,this[0]=this;var i=this._private={cy:t,single:!0,data:e.data||{},position:e.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!e.selected,selectable:void 0===e.selectable||!!e.selectable,locked:!!e.locked,grabbed:!1,grabbable:void 0===e.grabbable||!!e.grabbable,pannable:void 0===e.pannable?"edges"===r:!!e.pannable,active:!1,classes:new Ct,animation:{current:[],queue:[]},rscratch:{},scratch:e.scratch||{},edges:[],children:[],parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(null==i.position.x&&(i.position.x=0),null==i.position.y&&(i.position.y=0),e.renderedPosition){var o=e.renderedPosition,a=t.pan(),s=t.zoom();i.position={x:(o.x-a.x)/s,y:(o.y-a.y)/s}}var u=[];x(e.classes)?u=e.classes:w(e.classes)&&(u=e.classes.split(/\s+/));for(var c=0,l=u.length;c<l;c++){var f=u[c];f&&""!==f&&i.classes.add(f)}this.createEmitter();var h=e.style||e.css;h&&(pt("Setting a `style` bypass at element creation is deprecated"),this.style(h)),(void 0===n||n)&&this.restore()}else ht("An element must be of type `nodes` or `edges`; you specified `"+r+"`")}else ht("An element must have a core reference and parameters set")},At=function(t){return t={bfs:t.bfs||!t.dfs,dfs:t.dfs||!t.bfs},function(e,n,r){var i;_(e)&&!S(e)&&(e=(i=e).roots||i.root,n=i.visit,r=i.directed),r=2!==arguments.length||m(n)?r:n,n=m(n)?n:function(){};for(var o,a=this._private.cy,s=e=w(e)?this.filter(e):e,u=[],c=[],l={},f={},h={},d=0,p=this.byGroup(),g=p.nodes,v=p.edges,b=0;b<s.length;b++){var y=s[b],x=y.id();y.isNode()&&(u.unshift(y),t.bfs&&(h[x]=!0,c.push(y)),f[x]=0)}var E=function(){var e=t.bfs?u.shift():u.pop(),i=e.id();if(t.dfs){if(h[i])return"continue";h[i]=!0,c.push(e)}var a,s=f[i],p=l[i],b=null!=p?p.source():null,y=null!=p?p.target():null,w=null==p?void 0:e.same(b)?y[0]:b[0];if(!0===(a=n(e,p,w,d++,s)))return o=e,"break";if(!1===a)return"break";for(var m=e.connectedEdges().filter((function(t){return(!r||t.source().same(e))&&v.has(t)})),x=0;x<m.length;x++){var _=m[x],E=_.connectedNodes().filter((function(t){return!t.same(e)&&g.has(t)})),k=E.id();0===E.length||h[k]||(E=E[0],u.push(E),t.bfs&&(h[k]=!0,c.push(E)),l[k]=_,f[k]=f[i]+1)}};t:for(;0!==u.length;){var k=E();switch(k){case"continue":continue;case"break":break t}}for(var C=a.collection(),T=0;T<c.length;T++){var A=c[T],N=l[A.id()];null!=N&&C.merge(N),C.merge(A)}return{path:a.collection(C),found:a.collection(o)}}},Nt={breadthFirstSearch:At({bfs:!0}),depthFirstSearch:At({dfs:!0})};Nt.bfs=Nt.breadthFirstSearch,Nt.dfs=Nt.depthFirstSearch;var Ot=wt({root:null,weight:function(t){return 1},directed:!1}),Lt={dijkstra:function(t){if(!_(t)){var e=arguments;t={root:e[0],weight:e[1],directed:e[2]}}var n=Ot(t),r=n.root,i=n.weight,a=n.directed,s=this,u=i,c=w(r)?this.filter(r)[0]:r[0],l={},f={},h={},d=this.byGroup(),p=d.nodes,g=d.edges;g.unmergeBy((function(t){return t.isLoop()}));for(var v=function(t){return l[t.id()]},b=function(t,e){l[t.id()]=e,y.updateItem(t)},y=new o((function(t,e){return v(t)-v(e)})),m=0;m<p.length;m++){var x=p[m];l[x.id()]=x.same(c)?0:1/0,y.push(x)}for(var E=function(t,e){for(var n,r=(a?t.edgesTo(e):t.edgesWith(e)).intersect(g),i=1/0,o=0;o<r.length;o++){var s=r[o],c=u(s);(c<i||!n)&&(i=c,n=s)}return{edge:n,dist:i}};y.size()>0;){var k=y.pop(),S=v(k),C=k.id();if(h[C]=S,S!==1/0)for(var T=k.neighborhood().intersect(p),A=0;A<T.length;A++){var N=T[A],O=N.id(),L=E(k,N),P=S+L.dist;P<v(N)&&(b(N,P),f[O]={node:k,edge:L.edge})}}return{distanceTo:function(t){var e=w(t)?p.filter(t)[0]:t[0];return h[e.id()]},pathTo:function(t){var e=w(t)?p.filter(t)[0]:t[0],n=[],r=e,i=r.id();if(e.length>0)for(n.unshift(e);f[i];){var o=f[i];n.unshift(o.edge),n.unshift(o.node),i=(r=o.node).id()}return s.spawn(n)}}}},Pt={kruskal:function(t){t=t||function(t){return 1};for(var e=this.byGroup(),n=e.nodes,r=e.edges,i=n.length,o=new Array(i),a=n,s=function(t){for(var e=0;e<o.length;e++){if(o[e].has(t))return e}},u=0;u<i;u++)o[u]=this.spawn(n[u]);for(var c=r.sort((function(e,n){return t(e)-t(n)})),l=0;l<c.length;l++){var f=c[l],h=f.source()[0],d=f.target()[0],p=s(h),g=s(d),v=o[p],b=o[g];p!==g&&(a.merge(f),v.merge(b),o.splice(g,1))}return a}},It=wt({root:null,goal:null,weight:function(t){return 1},heuristic:function(t){return 0},directed:!1}),jt={aStar:function(t){var e=this.cy(),n=It(t),r=n.root,i=n.goal,a=n.heuristic,s=n.directed,u=n.weight;r=e.collection(r)[0],i=e.collection(i)[0];var c,l,f=r.id(),h=i.id(),d={},p={},g={},v=new o((function(t,e){return p[t.id()]-p[e.id()]})),b=new Ct,y={},w={},m=function(t,e){v.push(t),b.add(e)};m(r,f),d[f]=0,p[f]=a(r);for(var x,_=0;v.size()>0;){if(c=v.pop(),l=c.id(),b.delete(l),_++,l===h){for(var E=[],k=i,S=h,C=w[S];E.unshift(k),null!=C&&E.unshift(C),null!=(k=y[S]);)C=w[S=k.id()];return{found:!0,distance:d[l],path:this.spawn(E),steps:_}}g[l]=!0;for(var T=c._private.edges,A=0;A<T.length;A++){var N=T[A];if(this.hasElementWithId(N.id())&&(!s||N.data("source")===l)){var O=N.source(),L=N.target(),P=O.id()!==l?O:L,I=P.id();if(this.hasElementWithId(I)&&!g[I]){var j=d[l]+u(N);x=I,b.has(x)?j<d[I]&&(d[I]=j,p[I]=j+a(P),y[I]=c):(d[I]=j,p[I]=j+a(P),m(P,I),y[I]=c,w[I]=N)}}}}return{found:!1,distance:void 0,path:void 0,steps:_}}},Mt=wt({weight:function(t){return 1},directed:!1}),Dt={floydWarshall:function(t){for(var e=this.cy(),n=Mt(t),r=n.weight,i=n.directed,o=r,a=this.byGroup(),s=a.nodes,u=a.edges,c=s.length,l=c*c,f=function(t){return s.indexOf(t)},h=function(t){return s[t]},d=new Array(l),p=0;p<l;p++){var g=p%c,v=(p-g)/c;d[p]=v===g?0:1/0}for(var b=new Array(l),y=new Array(l),m=0;m<u.length;m++){var x=u[m],_=x.source()[0],E=x.target()[0];if(_!==E){var k=f(_),S=f(E),C=k*c+S,T=o(x);if(d[C]>T&&(d[C]=T,b[C]=S,y[C]=x),!i){var A=S*c+k;!i&&d[A]>T&&(d[A]=T,b[A]=k,y[A]=x)}}}for(var N=0;N<c;N++)for(var O=0;O<c;O++)for(var L=O*c+N,P=0;P<c;P++){var I=O*c+P,j=N*c+P;d[L]+d[j]<d[I]&&(d[I]=d[L]+d[j],b[I]=b[L])}var M=function(t){return f(function(t){return(w(t)?e.filter(t):t)[0]}(t))};return{distance:function(t,e){var n=M(t),r=M(e);return d[n*c+r]},path:function(t,n){var r=M(t),i=M(n),o=h(r);if(r===i)return o.collection();if(null==b[r*c+i])return e.collection();var a,s=e.collection(),u=r;for(s.merge(o);r!==i;)u=r,r=b[r*c+i],a=y[u*c+r],s.merge(a),s.merge(h(r));return s}}}},Rt=wt({weight:function(t){return 1},directed:!1,root:null}),Bt={bellmanFord:function(t){var e=this,n=Rt(t),r=n.weight,i=n.directed,o=n.root,a=r,s=this,u=this.cy(),c=this.byGroup(),l=c.edges,f=c.nodes,h=f.length,d=new kt,p=!1;o=u.collection(o)[0],l.unmergeBy((function(t){return t.isLoop()}));for(var g=l.length,v=function(t){var e=d.get(t.id());return e||(e={},d.set(t.id(),e)),e},b=function(t){return(w(t)?u.$(t):t)[0]},y=0;y<h;y++){var m=f[y],x=v(m);m.same(o)?x.dist=0:x.dist=1/0,x.pred=null,x.edge=null}for(var _=!1,E=function(t,e,n,r,i,o){var a=r.dist+o;a<i.dist&&!n.same(r.edge)&&(i.dist=a,i.pred=t,i.edge=n,_=!0)},k=1;k<h;k++){_=!1;for(var S=0;S<g;S++){var C=l[S],T=C.source(),A=C.target(),N=a(C),O=v(T),L=v(A);E(T,0,C,O,L,N),i||E(A,0,C,L,O,N)}if(!_)break}if(_)for(var P=0;P<g;P++){var I=l[P],j=I.source(),M=I.target(),D=a(I),R=v(j).dist,B=v(M).dist;if(R+D<B||!i&&B+D<R){pt("Graph contains a negative weight cycle for Bellman-Ford"),p=!0;break}}return{distanceTo:function(t){return v(b(t)).dist},pathTo:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r=b(t),i=[],a=r;;){if(null==a)return e.spawn();var u=v(a),c=u.edge,l=u.pred;if(i.unshift(a[0]),a.same(n)&&i.length>0)break;null!=c&&i.unshift(c),a=l}return s.spawn(i)},hasNegativeWeightCycle:p,negativeWeightCycles:[]}}},Gt=Math.sqrt(2),Ht=function(t,e,n){0===n.length&&ht("Karger-Stein must be run on a connected (sub)graph");for(var r=n[t],i=r[1],o=r[2],a=e[i],s=e[o],u=n,c=u.length-1;c>=0;c--){var l=u[c],f=l[1],h=l[2];(e[f]===a&&e[h]===s||e[f]===s&&e[h]===a)&&u.splice(c,1)}for(var d=0;d<u.length;d++){var p=u[d];p[1]===s?(u[d]=p.slice(),u[d][1]=a):p[2]===s&&(u[d]=p.slice(),u[d][2]=a)}for(var g=0;g<e.length;g++)e[g]===s&&(e[g]=a);return u},Ft=function(t,e,n,r){for(;n>r;){var i=Math.floor(Math.random()*e.length);e=Ht(i,t,e),n--}return e},zt={kargerStein:function(){var t=this,e=this.byGroup(),n=e.nodes,r=e.edges;r.unmergeBy((function(t){return t.isLoop()}));var i=n.length,o=r.length,a=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),s=Math.floor(i/Gt);if(!(i<2)){for(var u=[],c=0;c<o;c++){var l=r[c];u.push([c,n.indexOf(l.source()),n.indexOf(l.target())])}for(var f=1/0,h=[],d=new Array(i),p=new Array(i),g=new Array(i),v=function(t,e){for(var n=0;n<i;n++)e[n]=t[n]},b=0;b<=a;b++){for(var y=0;y<i;y++)p[y]=y;var w=Ft(p,u.slice(),i,s),m=w.slice();v(p,g);var x=Ft(p,w,s,2),_=Ft(g,m,s,2);x.length<=_.length&&x.length<f?(f=x.length,h=x,v(p,d)):_.length<=x.length&&_.length<f&&(f=_.length,h=_,v(g,d))}for(var E=this.spawn(h.map((function(t){return r[t[0]]}))),k=this.spawn(),S=this.spawn(),C=d[0],T=0;T<d.length;T++){var A=d[T],N=n[T];A===C?k.merge(N):S.merge(N)}var O=function(e){var n=t.spawn();return e.forEach((function(e){n.merge(e),e.connectedEdges().forEach((function(e){t.contains(e)&&!E.contains(e)&&n.merge(e)}))})),n},L=[O(k),O(S)];return{cut:E,components:L,partition1:k,partition2:S}}ht("At least 2 nodes are required for Karger-Stein algorithm")}},Yt=function(t,e,n){return{x:t.x*e+n.x,y:t.y*e+n.y}},Vt=function(t,e,n){return{x:(t.x-n.x)/e,y:(t.y-n.y)/e}},qt=function(t){return{x:t[0],y:t[1]}},Ut=function(t,e){return Math.atan2(e,t)-Math.PI/2},Xt=Math.log2||function(t){return Math.log(t)/Math.log(2)},Wt=function(t){return t>0?1:t<0?-1:0},$t=function(t,e){return Math.sqrt(Kt(t,e))},Kt=function(t,e){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r},Zt=function(t){for(var e=t.length,n=0,r=0;r<e;r++)n+=t[r];for(var i=0;i<e;i++)t[i]=t[i]/n;return t},Qt=function(t,e,n,r){return(1-r)*(1-r)*t+2*(1-r)*r*e+r*r*n},Jt=function(t,e,n,r){return{x:Qt(t.x,e.x,n.x,r),y:Qt(t.y,e.y,n.y,r)}},te=function(t,e,n){return Math.max(t,Math.min(n,e))},ee=function(t){if(null==t)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(null!=t.x1&&null!=t.y1){if(null!=t.x2&&null!=t.y2&&t.x2>=t.x1&&t.y2>=t.y1)return{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,w:t.x2-t.x1,h:t.y2-t.y1};if(null!=t.w&&null!=t.h&&t.w>=0&&t.h>=0)return{x1:t.x1,y1:t.y1,x2:t.x1+t.w,y2:t.y1+t.h,w:t.w,h:t.h}}},ne=function(t,e,n){t.x1=Math.min(t.x1,e),t.x2=Math.max(t.x2,e),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,n),t.y2=Math.max(t.y2,n),t.h=t.y2-t.y1},re=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.x1-=e,t.x2+=e,t.y1-=e,t.y2+=e,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},ie=function(t){var e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===o.length)e=n=r=i=o[0];else if(2===o.length)e=r=o[0],i=n=o[1];else if(4===o.length){var a=f(o,4);e=a[0],n=a[1],r=a[2],i=a[3]}return t.x1-=i,t.x2+=n,t.y1-=e,t.y2+=r,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},oe=function(t,e){t.x1=e.x1,t.y1=e.y1,t.x2=e.x2,t.y2=e.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1},ae=function(t,e){t.x1+=e.x,t.x2+=e.x,t.y1+=e.y,t.y2+=e.y},se=function(t,e){return!(t.x1>e.x2)&&(!(e.x1>t.x2)&&(!(t.x2<e.x1)&&(!(e.x2<t.x1)&&(!(t.y2<e.y1)&&(!(e.y2<t.y1)&&(!(t.y1>e.y2)&&!(e.y1>t.y2)))))))},ue=function(t,e,n){return t.x1<=e&&e<=t.x2&&t.y1<=n&&n<=t.y2},ce=function(t,e){return ue(t,e.x1,e.y1)&&ue(t,e.x2,e.y2)},le=function(t,e,n,r,i,o,a){var s,u=Ae(i,o),c=i/2,l=o/2,f=r-l-a;if((s=_e(t,e,n,r,n-c+u-a,f,n+c-u+a,f,!1)).length>0)return s;var h=n+c+a;if((s=_e(t,e,n,r,h,r-l+u-a,h,r+l-u+a,!1)).length>0)return s;var d=r+l+a;if((s=_e(t,e,n,r,n-c+u-a,d,n+c-u+a,d,!1)).length>0)return s;var p,g=n-c-a;if((s=_e(t,e,n,r,g,r-l+u-a,g,r+l-u+a,!1)).length>0)return s;var v=n-c+u,b=r-l+u;if((p=me(t,e,n,r,v,b,u+a)).length>0&&p[0]<=v&&p[1]<=b)return[p[0],p[1]];var y=n+c-u,w=r-l+u;if((p=me(t,e,n,r,y,w,u+a)).length>0&&p[0]>=y&&p[1]<=w)return[p[0],p[1]];var m=n+c-u,x=r+l-u;if((p=me(t,e,n,r,m,x,u+a)).length>0&&p[0]>=m&&p[1]>=x)return[p[0],p[1]];var _=n-c+u,E=r+l-u;return(p=me(t,e,n,r,_,E,u+a)).length>0&&p[0]<=_&&p[1]>=E?[p[0],p[1]]:[]},fe=function(t,e,n,r,i,o,a){var s=a,u=Math.min(n,i),c=Math.max(n,i),l=Math.min(r,o),f=Math.max(r,o);return u-s<=t&&t<=c+s&&l-s<=e&&e<=f+s},he=function(t,e,n,r,i,o,a,s,u){var c=Math.min(n,a,i)-u,l=Math.max(n,a,i)+u,f=Math.min(r,s,o)-u,h=Math.max(r,s,o)+u;return!(t<c||t>l||e<f||e>h)},de=function(t,e,n,r,i,o,a,s){var u=[];!function(t,e,n,r,i){var o,a,s,u,c,l,f,h;0===t&&(t=1e-5),s=-27*(r/=t)+(e/=t)*(9*(n/=t)-e*e*2),o=(a=(3*n-e*e)/9)*a*a+(s/=54)*s,i[1]=0,f=e/3,o>0?(c=(c=s+Math.sqrt(o))<0?-Math.pow(-c,1/3):Math.pow(c,1/3),l=(l=s-Math.sqrt(o))<0?-Math.pow(-l,1/3):Math.pow(l,1/3),i[0]=-f+c+l,f+=(c+l)/2,i[4]=i[2]=-f,f=Math.sqrt(3)*(-l+c)/2,i[3]=f,i[5]=-f):(i[5]=i[3]=0,0===o?(h=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3),i[0]=2*h-f,i[4]=i[2]=-(h+f)):(u=(a=-a)*a*a,u=Math.acos(s/Math.sqrt(u)),h=2*Math.sqrt(a),i[0]=-f+h*Math.cos(u/3),i[2]=-f+h*Math.cos((u+2*Math.PI)/3),i[4]=-f+h*Math.cos((u+4*Math.PI)/3)))}(1*n*n-4*n*i+2*n*a+4*i*i-4*i*a+a*a+r*r-4*r*o+2*r*s+4*o*o-4*o*s+s*s,9*n*i-3*n*n-3*n*a-6*i*i+3*i*a+9*r*o-3*r*r-3*r*s-6*o*o+3*o*s,3*n*n-6*n*i+n*a-n*t+2*i*i+2*i*t-a*t+3*r*r-6*r*o+r*s-r*e+2*o*o+2*o*e-s*e,1*n*i-n*n+n*t-i*t+r*o-r*r+r*e-o*e,u);for(var c=[],l=0;l<6;l+=2)Math.abs(u[l+1])<1e-7&&u[l]>=0&&u[l]<=1&&c.push(u[l]);c.push(1),c.push(0);for(var f,h,d,p=-1,g=0;g<c.length;g++)f=Math.pow(1-c[g],2)*n+2*(1-c[g])*c[g]*i+c[g]*c[g]*a,h=Math.pow(1-c[g],2)*r+2*(1-c[g])*c[g]*o+c[g]*c[g]*s,d=Math.pow(f-t,2)+Math.pow(h-e,2),p>=0?d<p&&(p=d):p=d;return p},pe=function(t,e,n,r,i,o){var a=[t-n,e-r],s=[i-n,o-r],u=s[0]*s[0]+s[1]*s[1],c=a[0]*a[0]+a[1]*a[1],l=a[0]*s[0]+a[1]*s[1],f=l*l/u;return l<0?c:f>u?(t-i)*(t-i)+(e-o)*(e-o):c-f},ge=function(t,e,n){for(var r,i,o,a,s=0,u=0;u<n.length/2;u++)if(r=n[2*u],i=n[2*u+1],u+1<n.length/2?(o=n[2*(u+1)],a=n[2*(u+1)+1]):(o=n[2*(u+1-n.length/2)],a=n[2*(u+1-n.length/2)+1]),r==t&&o==t);else{if(!(r>=t&&t>=o||r<=t&&t<=o))continue;(t-r)/(o-r)*(a-i)+i>e&&s++}return s%2!=0},ve=function(t,e,n,r,i,o,a,s,u){var c,l=new Array(n.length);null!=s[0]?(c=Math.atan(s[1]/s[0]),s[0]<0?c+=Math.PI/2:c=-c-Math.PI/2):c=s;for(var f,h=Math.cos(-c),d=Math.sin(-c),p=0;p<l.length/2;p++)l[2*p]=o/2*(n[2*p]*h-n[2*p+1]*d),l[2*p+1]=a/2*(n[2*p+1]*h+n[2*p]*d),l[2*p]+=r,l[2*p+1]+=i;if(u>0){var g=ye(l,-u);f=be(g)}else f=l;return ge(t,e,f)},be=function(t){for(var e,n,r,i,o,a,s,u,c=new Array(t.length/2),l=0;l<t.length/4;l++){e=t[4*l],n=t[4*l+1],r=t[4*l+2],i=t[4*l+3],l<t.length/4-1?(o=t[4*(l+1)],a=t[4*(l+1)+1],s=t[4*(l+1)+2],u=t[4*(l+1)+3]):(o=t[0],a=t[1],s=t[2],u=t[3]);var f=_e(e,n,r,i,o,a,s,u,!0);c[2*l]=f[0],c[2*l+1]=f[1]}return c},ye=function(t,e){for(var n,r,i,o,a=new Array(2*t.length),s=0;s<t.length/2;s++){n=t[2*s],r=t[2*s+1],s<t.length/2-1?(i=t[2*(s+1)],o=t[2*(s+1)+1]):(i=t[0],o=t[1]);var u=o-r,c=-(i-n),l=Math.sqrt(u*u+c*c),f=u/l,h=c/l;a[4*s]=n+f*e,a[4*s+1]=r+h*e,a[4*s+2]=i+f*e,a[4*s+3]=o+h*e}return a},we=function(t,e,n,r,i,o,a){return t-=i,e-=o,(t/=n/2+a)*t+(e/=r/2+a)*e<=1},me=function(t,e,n,r,i,o,a){var s=[n-t,r-e],u=[t-i,e-o],c=s[0]*s[0]+s[1]*s[1],l=2*(u[0]*s[0]+u[1]*s[1]),f=l*l-4*c*(u[0]*u[0]+u[1]*u[1]-a*a);if(f<0)return[];var h=(-l+Math.sqrt(f))/(2*c),d=(-l-Math.sqrt(f))/(2*c),p=Math.min(h,d),g=Math.max(h,d),v=[];if(p>=0&&p<=1&&v.push(p),g>=0&&g<=1&&v.push(g),0===v.length)return[];var b=v[0]*s[0]+t,y=v[0]*s[1]+e;return v.length>1?v[0]==v[1]?[b,y]:[b,y,v[1]*s[0]+t,v[1]*s[1]+e]:[b,y]},xe=function(t,e,n){return e<=t&&t<=n||n<=t&&t<=e?t:t<=e&&e<=n||n<=e&&e<=t?e:n},_e=function(t,e,n,r,i,o,a,s,u){var c=t-i,l=n-t,f=a-i,h=e-o,d=r-e,p=s-o,g=f*h-p*c,v=l*h-d*c,b=p*l-f*d;if(0!==b){var y=g/b,w=v/b;return-.001<=y&&y<=1.001&&-.001<=w&&w<=1.001||u?[t+y*l,e+y*d]:[]}return 0===g||0===v?xe(t,n,a)===a?[a,s]:xe(t,n,i)===i?[i,o]:xe(i,a,n)===n?[n,r]:[]:[]},Ee=function(t,e,n,r,i,o,a,s){var u,c,l,f,h,d,p=[],g=new Array(n.length),v=!0;if(null==o&&(v=!1),v){for(var b=0;b<g.length/2;b++)g[2*b]=n[2*b]*o+r,g[2*b+1]=n[2*b+1]*a+i;if(s>0){var y=ye(g,-s);c=be(y)}else c=g}else c=n;for(var w=0;w<c.length/2;w++)l=c[2*w],f=c[2*w+1],w<c.length/2-1?(h=c[2*(w+1)],d=c[2*(w+1)+1]):(h=c[0],d=c[1]),0!==(u=_e(t,e,r,i,l,f,h,d)).length&&p.push(u[0],u[1]);return p},ke=function(t,e,n){var r=[t[0]-e[0],t[1]-e[1]],i=Math.sqrt(r[0]*r[0]+r[1]*r[1]),o=(i-n)/i;return o<0&&(o=1e-5),[e[0]+o*r[0],e[1]+o*r[1]]},Se=function(t,e){var n=Te(t,e);return n=Ce(n)},Ce=function(t){for(var e,n,r=t.length/2,i=1/0,o=1/0,a=-1/0,s=-1/0,u=0;u<r;u++)e=t[2*u],n=t[2*u+1],i=Math.min(i,e),a=Math.max(a,e),o=Math.min(o,n),s=Math.max(s,n);for(var c=2/(a-i),l=2/(s-o),f=0;f<r;f++)e=t[2*f]=t[2*f]*c,n=t[2*f+1]=t[2*f+1]*l,i=Math.min(i,e),a=Math.max(a,e),o=Math.min(o,n),s=Math.max(s,n);if(o<-1)for(var h=0;h<r;h++)n=t[2*h+1]=t[2*h+1]+(-1-o);return t},Te=function(t,e){var n=1/t*2*Math.PI,r=t%2==0?Math.PI/2+n/2:Math.PI/2;r+=e;for(var i,o=new Array(2*t),a=0;a<t;a++)i=a*n+r,o[2*a]=Math.cos(i),o[2*a+1]=Math.sin(-i);return o},Ae=function(t,e){return Math.min(t/4,e/4,8)},Ne=function(t,e){return Math.min(t/10,e/10,8)},Oe=function(t,e){return{heightOffset:Math.min(15,.05*e),widthOffset:Math.min(100,.25*t),ctrlPtOffsetPct:.05}},Le=wt({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(t){return 1}}),Pe={pageRank:function(t){for(var e=Le(t),n=e.dampingFactor,r=e.precision,i=e.iterations,o=e.weight,a=this._private.cy,s=this.byGroup(),u=s.nodes,c=s.edges,l=u.length,f=l*l,h=c.length,d=new Array(f),p=new Array(l),g=(1-n)/l,v=0;v<l;v++){for(var b=0;b<l;b++){d[v*l+b]=0}p[v]=0}for(var y=0;y<h;y++){var w=c[y],m=w.data("source"),x=w.data("target");if(m!==x){var _=u.indexOfId(m),E=u.indexOfId(x),k=o(w);d[E*l+_]+=k,p[_]+=k}}for(var S=1/l+g,C=0;C<l;C++)if(0===p[C])for(var T=0;T<l;T++){d[T*l+C]=S}else for(var A=0;A<l;A++){var N=A*l+C;d[N]=d[N]/p[C]+g}for(var O,L=new Array(l),P=new Array(l),I=0;I<l;I++)L[I]=1;for(var j=0;j<i;j++){for(var M=0;M<l;M++)P[M]=0;for(var D=0;D<l;D++)for(var R=0;R<l;R++){var B=D*l+R;P[D]+=d[B]*L[R]}Zt(P),O=L,L=P,P=O;for(var G=0,H=0;H<l;H++){var F=O[H]-L[H];G+=F*F}if(G<r)break}return{rank:function(t){return t=a.collection(t)[0],L[u.indexOf(t)]}}}},Ie=wt({root:null,weight:function(t){return 1},directed:!1,alpha:0}),je={degreeCentralityNormalized:function(t){t=Ie(t);var e=this.cy(),n=this.nodes(),r=n.length;if(t.directed){for(var i={},o={},a=0,s=0,u=0;u<r;u++){var c=n[u],l=c.id();t.root=c;var f=this.degreeCentrality(t);a<f.indegree&&(a=f.indegree),s<f.outdegree&&(s=f.outdegree),i[l]=f.indegree,o[l]=f.outdegree}return{indegree:function(t){return 0==a?0:(w(t)&&(t=e.filter(t)),i[t.id()]/a)},outdegree:function(t){return 0===s?0:(w(t)&&(t=e.filter(t)),o[t.id()]/s)}}}for(var h={},d=0,p=0;p<r;p++){var g=n[p];t.root=g;var v=this.degreeCentrality(t);d<v.degree&&(d=v.degree),h[g.id()]=v.degree}return{degree:function(t){return 0===d?0:(w(t)&&(t=e.filter(t)),h[t.id()]/d)}}},degreeCentrality:function(t){t=Ie(t);var e=this.cy(),n=this,r=t,i=r.root,o=r.weight,a=r.directed,s=r.alpha;if(i=e.collection(i)[0],a){for(var u=i.connectedEdges(),c=u.filter((function(t){return t.target().same(i)&&n.has(t)})),l=u.filter((function(t){return t.source().same(i)&&n.has(t)})),f=c.length,h=l.length,d=0,p=0,g=0;g<c.length;g++)d+=o(c[g]);for(var v=0;v<l.length;v++)p+=o(l[v]);return{indegree:Math.pow(f,1-s)*Math.pow(d,s),outdegree:Math.pow(h,1-s)*Math.pow(p,s)}}for(var b=i.connectedEdges().intersection(n),y=b.length,w=0,m=0;m<b.length;m++)w+=o(b[m]);return{degree:Math.pow(y,1-s)*Math.pow(w,s)}}};je.dc=je.degreeCentrality,je.dcn=je.degreeCentralityNormalised=je.degreeCentralityNormalized;var Me=wt({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),De={closenessCentralityNormalized:function(t){for(var e=Me(t),n=e.harmonic,r=e.weight,i=e.directed,o=this.cy(),a={},s=0,u=this.nodes(),c=this.floydWarshall({weight:r,directed:i}),l=0;l<u.length;l++){for(var f=0,h=u[l],d=0;d<u.length;d++)if(l!==d){var p=c.distance(h,u[d]);f+=n?1/p:p}n||(f=1/f),s<f&&(s=f),a[h.id()]=f}return{closeness:function(t){return 0==s?0:(t=w(t)?o.filter(t)[0].id():t.id(),a[t]/s)}}},closenessCentrality:function(t){var e=Me(t),n=e.root,r=e.weight,i=e.directed,o=e.harmonic;n=this.filter(n)[0];for(var a=this.dijkstra({root:n,weight:r,directed:i}),s=0,u=this.nodes(),c=0;c<u.length;c++){var l=u[c];if(!l.same(n)){var f=a.distanceTo(l);s+=o?1/f:f}}return o?s:1/s}};De.cc=De.closenessCentrality,De.ccn=De.closenessCentralityNormalised=De.closenessCentralityNormalized;var Re=wt({weight:null,directed:!1}),Be={betweennessCentrality:function(t){for(var e=Re(t),n=e.directed,r=e.weight,i=null!=r,a=this.cy(),s=this.nodes(),u={},c={},l=0,f=function(t,e){c[t]=e,e>l&&(l=e)},h=function(t){return c[t]},d=0;d<s.length;d++){var p=s[d],g=p.id();u[g]=n?p.outgoers().nodes():p.openNeighborhood().nodes(),f(g,0)}for(var v=function(t){for(var e=s[t].id(),n=[],c={},l={},d={},p=new o((function(t,e){return d[t]-d[e]})),g=0;g<s.length;g++){var v=s[g].id();c[v]=[],l[v]=0,d[v]=1/0}for(l[e]=1,d[e]=0,p.push(e);!p.empty();){var b=p.pop();if(n.push(b),i)for(var y=0;y<u[b].length;y++){var w=u[b][y],m=a.getElementById(b),x=void 0;x=m.edgesTo(w).length>0?m.edgesTo(w)[0]:w.edgesTo(m)[0];var _=r(x);w=w.id(),d[w]>d[b]+_&&(d[w]=d[b]+_,p.nodes.indexOf(w)<0?p.push(w):p.updateItem(w),l[w]=0,c[w]=[]),d[w]==d[b]+_&&(l[w]=l[w]+l[b],c[w].push(b))}else for(var E=0;E<u[b].length;E++){var k=u[b][E].id();d[k]==1/0&&(p.push(k),d[k]=d[b]+1),d[k]==d[b]+1&&(l[k]=l[k]+l[b],c[k].push(b))}}for(var S={},C=0;C<s.length;C++)S[s[C].id()]=0;for(;n.length>0;)for(var T=n.pop(),A=0;A<c[T].length;A++){var N=c[T][A];S[N]=S[N]+l[N]/l[T]*(1+S[T]),T!=s[t].id()&&f(T,h(T)+S[T])}},b=0;b<s.length;b++)v(b);var y={betweenness:function(t){var e=a.collection(t).id();return h(e)},betweennessNormalized:function(t){if(0==l)return 0;var e=a.collection(t).id();return h(e)/l}};return y.betweennessNormalised=y.betweennessNormalized,y}};Be.bc=Be.betweennessCentrality;var Ge=wt({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),He=function(t,e){for(var n=0,r=0;r<e.length;r++)n+=e[r](t);return n},Fe=function(t,e){for(var n,r=0;r<e;r++){n=0;for(var i=0;i<e;i++)n+=t[i*e+r];for(var o=0;o<e;o++)t[o*e+r]=t[o*e+r]/n}},ze=function(t,e,n){for(var r=new Array(n*n),i=0;i<n;i++){for(var o=0;o<n;o++)r[i*n+o]=0;for(var a=0;a<n;a++)for(var s=0;s<n;s++)r[i*n+s]+=t[i*n+a]*e[a*n+s]}return r},Ye=function(t,e,n){for(var r=t.slice(0),i=1;i<n;i++)t=ze(t,r,e);return t},Ve=function(t,e,n){for(var r=new Array(e*e),i=0;i<e*e;i++)r[i]=Math.pow(t[i],n);return Fe(r,e),r},qe=function(t,e,n,r){for(var i=0;i<n;i++){if(Math.round(t[i]*Math.pow(10,r))/Math.pow(10,r)!==Math.round(e[i]*Math.pow(10,r))/Math.pow(10,r))return!1}return!0},Ue=function(t,e){for(var n=0;n<t.length;n++)if(!e[n]||t[n].id()!==e[n].id())return!1;return!0},Xe=function(t){for(var e=this.nodes(),n=this.edges(),r=this.cy(),i=function(t){return Ge(t)}(t),o={},a=0;a<e.length;a++)o[e[a].id()]=a;for(var s,u=e.length,c=u*u,l=new Array(c),f=0;f<c;f++)l[f]=0;for(var h=0;h<n.length;h++){var d=n[h],p=o[d.source().id()],g=o[d.target().id()],v=He(d,i.attributes);l[p*u+g]+=v,l[g*u+p]+=v}!function(t,e,n){for(var r=0;r<e;r++)t[r*e+r]=n}(l,u,i.multFactor),Fe(l,u);for(var b=!0,y=0;b&&y<i.maxIterations;)b=!1,s=Ye(l,u,i.expandFactor),l=Ve(s,u,i.inflateFactor),qe(l,s,c,4)||(b=!0),y++;var w=function(t,e,n,r){for(var i=[],o=0;o<e;o++){for(var a=[],s=0;s<e;s++)Math.round(1e3*t[o*e+s])/1e3>0&&a.push(n[s]);0!==a.length&&i.push(r.collection(a))}return i}(l,u,e,r);return w=function(t){for(var e=0;e<t.length;e++)for(var n=0;n<t.length;n++)e!=n&&Ue(t[e],t[n])&&t.splice(n,1);return t}(w)},We={markovClustering:Xe,mcl:Xe},$e=function(t){return t},Ke=function(t,e){return Math.abs(e-t)},Ze=function(t,e,n){return t+Ke(e,n)},Qe=function(t,e,n){return t+Math.pow(n-e,2)},Je=function(t){return Math.sqrt(t)},tn=function(t,e,n){return Math.max(t,Ke(e,n))},en=function(t,e,n,r,i){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:$e,a=r,s=0;s<t;s++)a=i(a,e(s),n(s));return o(a)},nn={euclidean:function(t,e,n){return t>=2?en(t,e,n,0,Qe,Je):en(t,e,n,0,Ze)},squaredEuclidean:function(t,e,n){return en(t,e,n,0,Qe)},manhattan:function(t,e,n){return en(t,e,n,0,Ze)},max:function(t,e,n){return en(t,e,n,-1/0,tn)}};function rn(t,e,n,r,i,o){var a;return a=m(t)?t:nn[t]||nn.euclidean,0===e&&m(t)?a(i,o):a(e,n,r,i,o)}nn["squared-euclidean"]=nn.squaredEuclidean,nn.squaredeuclidean=nn.squaredEuclidean;var on=wt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),an=function(t){return on(t)},sn=function(t,e,n,r,i){var o="kMedoids"!==i?function(t){return n[t]}:function(t){return r[t](n)},a=n,s=e;return rn(t,r.length,o,(function(t){return r[t](e)}),a,s)},un=function(t,e,n){for(var r=n.length,i=new Array(r),o=new Array(r),a=new Array(e),s=null,u=0;u<r;u++)i[u]=t.min(n[u]).value,o[u]=t.max(n[u]).value;for(var c=0;c<e;c++){s=[];for(var l=0;l<r;l++)s[l]=Math.random()*(o[l]-i[l])+i[l];a[c]=s}return a},cn=function(t,e,n,r,i){for(var o=1/0,a=0,s=0;s<e.length;s++){var u=sn(n,t,e[s],r,i);u<o&&(o=u,a=s)}return a},ln=function(t,e,n){for(var r=[],i=null,o=0;o<e.length;o++)n[(i=e[o]).id()]===t&&r.push(i);return r},fn=function(t,e,n){for(var r=0;r<t.length;r++)for(var i=0;i<t[r].length;i++){if(Math.abs(t[r][i]-e[r][i])>n)return!1}return!0},hn=function(t,e,n){for(var r=0;r<n;r++)if(t===e[r])return!0;return!1},dn=function(t,e){var n=new Array(e);if(t.length<50)for(var r=0;r<e;r++){for(var i=t[Math.floor(Math.random()*t.length)];hn(i,n,r);)i=t[Math.floor(Math.random()*t.length)];n[r]=i}else for(var o=0;o<e;o++)n[o]=t[Math.floor(Math.random()*t.length)];return n},pn=function(t,e,n){for(var r=0,i=0;i<e.length;i++)r+=sn("manhattan",e[i],t,n,"kMedoids");return r},gn=function(t,e,n,r,i){for(var o,a,s=0;s<e.length;s++)for(var u=0;u<t.length;u++)r[s][u]=Math.pow(n[s][u],i.m);for(var c=0;c<t.length;c++)for(var l=0;l<i.attributes.length;l++){o=0,a=0;for(var f=0;f<e.length;f++)o+=r[f][c]*i.attributes[l](e[f]),a+=r[f][c];t[c][l]=o/a}},vn=function(t,e,n,r,i){for(var o=0;o<t.length;o++)e[o]=t[o].slice();for(var a,s,u,c=2/(i.m-1),l=0;l<n.length;l++)for(var f=0;f<r.length;f++){a=0;for(var h=0;h<n.length;h++)s=sn(i.distance,r[f],n[l],i.attributes,"cmeans"),u=sn(i.distance,r[f],n[h],i.attributes,"cmeans"),a+=Math.pow(s/u,c);t[f][l]=1/a}},bn=function(t){var e,n,r,i,o=this.cy(),a=this.nodes(),s=an(t);r=new Array(a.length);for(var u=0;u<a.length;u++)r[u]=new Array(s.k);n=new Array(a.length);for(var c=0;c<a.length;c++)n[c]=new Array(s.k);for(var l=0;l<a.length;l++){for(var f=0,h=0;h<s.k;h++)n[l][h]=Math.random(),f+=n[l][h];for(var d=0;d<s.k;d++)n[l][d]=n[l][d]/f}e=new Array(s.k);for(var p=0;p<s.k;p++)e[p]=new Array(s.attributes.length);i=new Array(a.length);for(var g=0;g<a.length;g++)i[g]=new Array(s.k);for(var v=!0,b=0;v&&b<s.maxIterations;)v=!1,gn(e,a,n,i,s),vn(n,r,e,a,s),fn(n,r,s.sensitivityThreshold)||(v=!0),b++;return{clusters:function(t,e,n,r){for(var i,o,a=new Array(n.k),s=0;s<a.length;s++)a[s]=[];for(var u=0;u<e.length;u++){i=-1/0,o=-1;for(var c=0;c<e[0].length;c++)e[u][c]>i&&(i=e[u][c],o=c);a[o].push(t[u])}for(var l=0;l<a.length;l++)a[l]=r.collection(a[l]);return a}(a,n,s,o),degreeOfMembership:n}},yn={kMeans:function(t){var e,n=this.cy(),r=this.nodes(),i=null,o=an(t),s=new Array(o.k),u={};e=o.testMode?"number"==typeof o.testCentroids?un(r,o.k,o.attributes):"object"===a(o.testCentroids)?o.testCentroids:un(r,o.k,o.attributes):un(r,o.k,o.attributes);for(var c,l,f,h=!0,d=0;h&&d<o.maxIterations;){for(var p=0;p<r.length;p++)u[(i=r[p]).id()]=cn(i,e,o.distance,o.attributes,"kMeans");h=!1;for(var g=0;g<o.k;g++){var v=ln(g,r,u);if(0!==v.length){for(var b=o.attributes.length,y=e[g],w=new Array(b),m=new Array(b),x=0;x<b;x++){m[x]=0;for(var _=0;_<v.length;_++)i=v[_],m[x]+=o.attributes[x](i);w[x]=m[x]/v.length,c=w[x],l=y[x],f=o.sensitivityThreshold,Math.abs(l-c)<=f||(h=!0)}e[g]=w,s[g]=n.collection(v)}}d++}return s},kMedoids:function(t){var e,n,r=this.cy(),i=this.nodes(),o=null,s=an(t),u=new Array(s.k),c={},l=new Array(s.k);s.testMode?"number"==typeof s.testCentroids||(e="object"===a(s.testCentroids)?s.testCentroids:dn(i,s.k)):e=dn(i,s.k);for(var f=!0,h=0;f&&h<s.maxIterations;){for(var d=0;d<i.length;d++)c[(o=i[d]).id()]=cn(o,e,s.distance,s.attributes,"kMedoids");f=!1;for(var p=0;p<e.length;p++){var g=ln(p,i,c);if(0!==g.length){l[p]=pn(e[p],g,s.attributes);for(var v=0;v<g.length;v++)(n=pn(g[v],g,s.attributes))<l[p]&&(l[p]=n,e[p]=g[v],f=!0);u[p]=r.collection(g)}}h++}return u},fuzzyCMeans:bn,fcm:bn},wn=wt({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),mn={single:"min",complete:"max"},xn=function(t,e,n,r,i){for(var o,a=0,s=1/0,u=i.attributes,c=function(t,e){return rn(i.distance,u.length,(function(e){return u[e](t)}),(function(t){return u[t](e)}),t,e)},l=0;l<t.length;l++){var f=t[l].key,h=n[f][r[f]];h<s&&(a=f,s=h)}if("threshold"===i.mode&&s>=i.threshold||"dendrogram"===i.mode&&1===t.length)return!1;var d,p=e[a],g=e[r[a]];d="dendrogram"===i.mode?{left:p,right:g,key:p.key}:{value:p.value.concat(g.value),key:p.key},t[p.index]=d,t.splice(g.index,1),e[p.key]=d;for(var v=0;v<t.length;v++){var b=t[v];p.key===b.key?o=1/0:"min"===i.linkage?(o=n[p.key][b.key],n[p.key][b.key]>n[g.key][b.key]&&(o=n[g.key][b.key])):"max"===i.linkage?(o=n[p.key][b.key],n[p.key][b.key]<n[g.key][b.key]&&(o=n[g.key][b.key])):o="mean"===i.linkage?(n[p.key][b.key]*p.size+n[g.key][b.key]*g.size)/(p.size+g.size):"dendrogram"===i.mode?c(b.value,p.value):c(b.value[0],p.value[0]),n[p.key][b.key]=n[b.key][p.key]=o}for(var y=0;y<t.length;y++){var w=t[y].key;if(r[w]===p.key||r[w]===g.key){for(var m=w,x=0;x<t.length;x++){var _=t[x].key;n[w][_]<n[w][m]&&(m=_)}r[w]=m}t[y].index=y}return p.key=g.key=p.index=g.index=null,!0},_n=function t(e,n,r){e&&(e.value?n.push(e.value):(e.left&&t(e.left,n),e.right&&t(e.right,n)))},En=function(t){for(var e=this.cy(),n=this.nodes(),r=function(t){var e=wn(t),n=mn[e.linkage];return null!=n&&(e.linkage=n),e}(t),i=r.attributes,o=function(t,e){return rn(r.distance,i.length,(function(e){return i[e](t)}),(function(t){return i[t](e)}),t,e)},a=[],s=[],u=[],c=[],l=0;l<n.length;l++){var f={value:"dendrogram"===r.mode?n[l]:[n[l]],key:l,index:l};a[l]=f,c[l]=f,s[l]=[],u[l]=0}for(var h=0;h<a.length;h++)for(var d=0;d<=h;d++){var p=void 0;p="dendrogram"===r.mode?h===d?1/0:o(a[h].value,a[d].value):h===d?1/0:o(a[h].value[0],a[d].value[0]),s[h][d]=p,s[d][h]=p,p<s[h][u[h]]&&(u[h]=d)}for(var g,v=xn(a,c,s,u,r);v;)v=xn(a,c,s,u,r);return"dendrogram"===r.mode?(g=function t(e,n,r){if(!e)return[];var i=[],o=[],a=[];return 0===n?(e.left&&_n(e.left,i),e.right&&_n(e.right,o),a=i.concat(o),[r.collection(a)]):1===n?e.value?[r.collection(e.value)]:(e.left&&_n(e.left,i),e.right&&_n(e.right,o),[r.collection(i),r.collection(o)]):e.value?[r.collection(e.value)]:(e.left&&(i=t(e.left,n-1,r)),e.right&&(o=t(e.right,n-1,r)),i.concat(o))}(a[0],r.dendrogramDepth,e),r.addDendrogram&&function t(e,n){if(!e)return"";if(e.left&&e.right){var r=t(e.left,n),i=t(e.right,n),o=n.add({group:"nodes",data:{id:r+","+i}});return n.add({group:"edges",data:{source:r,target:o.id()}}),n.add({group:"edges",data:{source:i,target:o.id()}}),o.id()}return e.value?e.value.id():void 0}(a[0],e)):(g=new Array(a.length),a.forEach((function(t,n){t.key=t.index=null,g[n]=e.collection(t.value)}))),g},kn={hierarchicalClustering:En,hca:En},Sn=wt({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),Cn=function(t,e,n,r){var i=function(t,e){return r[e](t)};return-rn(t,r.length,(function(t){return i(e,t)}),(function(t){return i(n,t)}),e,n)},Tn=function(t,e){return"median"===e?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];r?t=t.slice(e,n):(n<t.length&&t.splice(n,t.length-n),e>0&&t.splice(0,e));for(var a=0,s=t.length-1;s>=0;s--){var u=t[s];o?isFinite(u)||(t[s]=-1/0,a++):t.splice(s,1)}i&&t.sort((function(t,e){return t-e}));var c=t.length,l=Math.floor(c/2);return c%2!=0?t[l+1+a]:(t[l-1+a]+t[l+a])/2}(t):"mean"===e?function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=0,i=0,o=e;o<n;o++){var a=t[o];isFinite(a)&&(r+=a,i++)}return r/i}(t):"min"===e?function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=1/0,i=e;i<n;i++){var o=t[i];isFinite(o)&&(r=Math.min(o,r))}return r}(t):"max"===e?function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=-1/0,i=e;i<n;i++){var o=t[i];isFinite(o)&&(r=Math.max(o,r))}return r}(t):e},An=function(t,e,n){for(var r=[],i=0;i<t;i++){for(var o=-1,a=-1/0,s=0;s<n.length;s++){var u=n[s];e[i*t+u]>a&&(o=u,a=e[i*t+u])}o>0&&r.push(o)}for(var c=0;c<n.length;c++)r[n[c]]=n[c];return r},Nn=function(t){for(var e,n,r,i,o,a,s=this.cy(),u=this.nodes(),c=function(t){var e=t.damping,n=t.preference;.5<=e&&e<1||ht("Damping must range on [0.5, 1). Got: ".concat(e));var r=["median","mean","min","max"];return r.some((function(t){return t===n}))||E(n)||ht("Preference must be one of [".concat(r.map((function(t){return"'".concat(t,"'")})).join(", "),"] or a number. Got: ").concat(n)),Sn(t)}(t),l={},f=0;f<u.length;f++)l[u[f].id()]=f;n=(e=u.length)*e,r=new Array(n);for(var h=0;h<n;h++)r[h]=-1/0;for(var d=0;d<e;d++)for(var p=0;p<e;p++)d!==p&&(r[d*e+p]=Cn(c.distance,u[d],u[p],c.attributes));i=Tn(r,c.preference);for(var g=0;g<e;g++)r[g*e+g]=i;o=new Array(n);for(var v=0;v<n;v++)o[v]=0;a=new Array(n);for(var b=0;b<n;b++)a[b]=0;for(var y=new Array(e),w=new Array(e),m=new Array(e),x=0;x<e;x++)y[x]=0,w[x]=0,m[x]=0;for(var _,k=new Array(e*c.minIterations),S=0;S<k.length;S++)k[S]=0;for(_=0;_<c.maxIterations;_++){for(var C=0;C<e;C++){for(var T=-1/0,A=-1/0,N=-1,O=0,L=0;L<e;L++)y[L]=o[C*e+L],(O=a[C*e+L]+r[C*e+L])>=T?(A=T,T=O,N=L):O>A&&(A=O);for(var P=0;P<e;P++)o[C*e+P]=(1-c.damping)*(r[C*e+P]-T)+c.damping*y[P];o[C*e+N]=(1-c.damping)*(r[C*e+N]-A)+c.damping*y[N]}for(var I=0;I<e;I++){for(var j=0,M=0;M<e;M++)y[M]=a[M*e+I],w[M]=Math.max(0,o[M*e+I]),j+=w[M];j-=w[I],w[I]=o[I*e+I],j+=w[I];for(var D=0;D<e;D++)a[D*e+I]=(1-c.damping)*Math.min(0,j-w[D])+c.damping*y[D];a[I*e+I]=(1-c.damping)*(j-w[I])+c.damping*y[I]}for(var R=0,B=0;B<e;B++){var G=a[B*e+B]+o[B*e+B]>0?1:0;k[_%c.minIterations*e+B]=G,R+=G}if(R>0&&(_>=c.minIterations-1||_==c.maxIterations-1)){for(var H=0,F=0;F<e;F++){m[F]=0;for(var z=0;z<c.minIterations;z++)m[F]+=k[z*e+F];0!==m[F]&&m[F]!==c.minIterations||H++}if(H===e)break}}for(var Y=function(t,e,n){for(var r=[],i=0;i<t;i++)e[i*t+i]+n[i*t+i]>0&&r.push(i);return r}(e,o,a),V=function(t,e,n){for(var r=An(t,e,n),i=0;i<n.length;i++){for(var o=[],a=0;a<r.length;a++)r[a]===n[i]&&o.push(a);for(var s=-1,u=-1/0,c=0;c<o.length;c++){for(var l=0,f=0;f<o.length;f++)l+=e[o[f]*t+o[c]];l>u&&(s=c,u=l)}n[i]=o[s]}return r=An(t,e,n)}(e,r,Y),q={},U=0;U<Y.length;U++)q[Y[U]]=[];for(var X=0;X<u.length;X++){var W=V[l[u[X].id()]];null!=W&&q[W].push(u[X])}for(var $=new Array(Y.length),K=0;K<Y.length;K++)$[K]=s.collection(q[Y[K]]);return $},On={affinityPropagation:Nn,ap:Nn},Ln=wt({root:void 0,directed:!1}),Pn=function(){var t=this,e={},n=0,r=0,i=[],o=[],a={},s=function s(u,c,l){u===l&&(r+=1),e[c]={id:n,low:n++,cutVertex:!1};var f,h,d,p,g=t.getElementById(c).connectedEdges().intersection(t);0===g.size()?i.push(t.spawn(t.getElementById(c))):g.forEach((function(n){f=n.source().id(),h=n.target().id(),(d=f===c?h:f)!==l&&(p=n.id(),a[p]||(a[p]=!0,o.push({x:c,y:d,edge:n})),d in e?e[c].low=Math.min(e[c].low,e[d].id):(s(u,d,c),e[c].low=Math.min(e[c].low,e[d].low),e[c].id<=e[d].low&&(e[c].cutVertex=!0,function(n,r){for(var a=o.length-1,s=[],u=t.spawn();o[a].x!=n||o[a].y!=r;)s.push(o.pop().edge),a--;s.push(o.pop().edge),s.forEach((function(n){var r=n.connectedNodes().intersection(t);u.merge(n),r.forEach((function(n){var r=n.id(),i=n.connectedEdges().intersection(t);u.merge(n),e[r].cutVertex?u.merge(i.filter((function(t){return t.isLoop()}))):u.merge(i)}))})),i.push(u)}(c,d))))}))};t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||(r=0,s(n,n),e[n].cutVertex=r>1)}}));var u=Object.keys(e).filter((function(t){return e[t].cutVertex})).map((function(e){return t.getElementById(e)}));return{cut:t.spawn(u),components:i}},In=function(){var t=this,e={},n=0,r=[],i=[],o=t.spawn(t);return t.forEach((function(a){if(a.isNode()){var s=a.id();s in e||function a(s){if(i.push(s),e[s]={index:n,low:n++,explored:!1},t.getElementById(s).connectedEdges().intersection(t).forEach((function(t){var n=t.target().id();n!==s&&(n in e||a(n),e[n].explored||(e[s].low=Math.min(e[s].low,e[n].low)))})),e[s].index===e[s].low){for(var u=t.spawn();;){var c=i.pop();if(u.merge(t.getElementById(c)),e[c].low=e[s].index,e[c].explored=!0,c===s)break}var l=u.edgesWith(u),f=u.merge(l);r.push(f),o=o.difference(f)}}(s)}})),{cut:o,components:r}},jn={};[Nt,Lt,Pt,jt,Dt,Bt,zt,Pe,je,De,Be,We,yn,kn,On,{hierholzer:function(t){if(!_(t)){var e=arguments;t={root:e[0],directed:e[1]}}var n,r,i,o=Ln(t),a=o.root,s=o.directed,u=this,c=!1;a&&(i=w(a)?this.filter(a)[0].id():a[0].id());var l={},f={};s?u.forEach((function(t){var e=t.id();if(t.isNode()){var i=t.indegree(!0),o=t.outdegree(!0),a=i-o,s=o-i;1==a?n?c=!0:n=e:1==s?r?c=!0:r=e:(s>1||a>1)&&(c=!0),l[e]=[],t.outgoers().forEach((function(t){t.isEdge()&&l[e].push(t.id())}))}else f[e]=[void 0,t.target().id()]})):u.forEach((function(t){var e=t.id();t.isNode()?(t.degree(!0)%2&&(n?r?c=!0:r=e:n=e),l[e]=[],t.connectedEdges().forEach((function(t){return l[e].push(t.id())}))):f[e]=[t.source().id(),t.target().id()]}));var h={found:!1,trail:void 0};if(c)return h;if(r&&n)if(s){if(i&&r!=i)return h;i=r}else{if(i&&r!=i&&n!=i)return h;i||(i=r)}else i||(i=u[0].id());var d=function(t){for(var e,n,r,i=t,o=[t];l[i].length;)e=l[i].shift(),n=f[e][0],i!=(r=f[e][1])?(l[r]=l[r].filter((function(t){return t!=e})),i=r):s||i==n||(l[n]=l[n].filter((function(t){return t!=e})),i=n),o.unshift(e),o.unshift(i);return o},p=[],g=[];for(g=d(i);1!=g.length;)0==l[g[0]].length?(p.unshift(u.getElementById(g.shift())),p.unshift(u.getElementById(g.shift()))):g=d(g.shift()).concat(g);for(var v in p.unshift(u.getElementById(g.shift())),l)if(l[v].length)return h;return h.found=!0,h.trail=this.spawn(p),h}},{hopcroftTarjanBiconnected:Pn,htbc:Pn,htb:Pn,hopcroftTarjanBiconnectedComponents:Pn},{tarjanStronglyConnected:In,tsc:In,tscc:In,tarjanStronglyConnectedComponents:In}].forEach((function(t){G(jn,t)}));
|
||
/*!
|
||
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)
|
||
*/
|
||
var Mn=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Mn.prototype={fulfill:function(t){return Dn(this,1,"fulfillValue",t)},reject:function(t){return Dn(this,2,"rejectReason",t)},then:function(t,e){var n=new Mn;return this.onFulfilled.push(Gn(t,n,"fulfill")),this.onRejected.push(Gn(e,n,"reject")),Rn(this),n.proxy}};var Dn=function(t,e,n,r){return 0===t.state&&(t.state=e,t[n]=r,Rn(t)),t},Rn=function(t){1===t.state?Bn(t,"onFulfilled",t.fulfillValue):2===t.state&&Bn(t,"onRejected",t.rejectReason)},Bn=function(t,n,r){if(0!==t[n].length){var i=t[n];t[n]=[];var o=function(){for(var t=0;t<i.length;t++)i[t](r)};"function"==typeof e?e(o):setTimeout(o,0)}},Gn=function(t,e,n){return function(r){if("function"!=typeof t)e[n].call(e,r);else{var i;try{i=t(r)}catch(t){return void e.reject(t)}Hn(e,i)}}},Hn=function t(e,n){if(e!==n&&e.proxy!==n){var r;if("object"===a(n)&&null!==n||"function"==typeof n)try{r=n.then}catch(t){return void e.reject(t)}if("function"!=typeof r)e.fulfill(n);else{var i=!1;try{r.call(n,(function(r){i||(i=!0,r===n?e.reject(new TypeError("circular thenable chain")):t(e,r))}),(function(t){i||(i=!0,e.reject(t))}))}catch(t){i||e.reject(t)}}}else e.reject(new TypeError("cannot resolve promise with itself"))};Mn.all=function(t){return new Mn((function(e,n){for(var r=new Array(t.length),i=0,o=function(n,o){r[n]=o,++i===t.length&&e(r)},a=0;a<t.length;a++)!function(e){var r=t[e];null!=r&&null!=r.then?r.then((function(t){o(e,t)}),(function(t){n(t)})):o(e,r)}(a)}))},Mn.resolve=function(t){return new Mn((function(e,n){e(t)}))},Mn.reject=function(t){return new Mn((function(e,n){n(t)}))};var Fn="undefined"!=typeof Promise?Promise:Mn,zn=function(t,e,n){var r=A(t),i=!r,o=this._private=G({duration:1e3},e,n);if(o.target=t,o.style=o.style||o.css,o.started=!1,o.playing=!1,o.hooked=!1,o.applying=!1,o.progress=0,o.completes=[],o.frames=[],o.complete&&m(o.complete)&&o.completes.push(o.complete),i){var a=t.position();o.startPosition=o.startPosition||{x:a.x,y:a.y},o.startStyle=o.startStyle||t.cy().style().getAnimationStartStyle(t,o.style)}if(r){var s=t.pan();o.startPan={x:s.x,y:s.y},o.startZoom=t.zoom()}this.length=1,this[0]=this},Yn=zn.prototype;G(Yn,{instanceString:function(){return"animation"},hook:function(){var t=this._private;if(!t.hooked){var e=t.target._private.animation;(t.queue?e.queue:e.current).push(this),S(t.target)&&t.target.cy().addToAnimationPool(t.target),t.hooked=!0}return this},play:function(){var t=this._private;return 1===t.progress&&(t.progress=0),t.playing=!0,t.started=!1,t.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var t=this._private;return t.applying=!0,t.started=!1,t.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var t=this._private;return t.playing=!1,t.started=!1,this},stop:function(){var t=this._private;return t.playing=!1,t.started=!1,t.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(t){var e=this._private;return void 0===t?e.progress*e.duration:this.progress(t/e.duration)},progress:function(t){var e=this._private,n=e.playing;return void 0===t?e.progress:(n&&this.pause(),e.progress=t,e.started=!1,n&&this.play(),this)},completed:function(){return 1===this._private.progress},reverse:function(){var t=this._private,e=t.playing;e&&this.pause(),t.progress=1-t.progress,t.started=!1;var n=function(e,n){var r=t[e];null!=r&&(t[e]=t[n],t[n]=r)};if(n("zoom","startZoom"),n("pan","startPan"),n("position","startPosition"),t.style)for(var r=0;r<t.style.length;r++){var i=t.style[r],o=i.name,a=t.startStyle[o];t.startStyle[o]=i,t.style[r]=a}return e&&this.play(),this},promise:function(t){var e,n=this._private;switch(t){case"frame":e=n.frames;break;default:case"complete":case"completed":e=n.completes}return new Fn((function(t,n){e.push((function(){t()}))}))}}),Yn.complete=Yn.completed,Yn.run=Yn.play,Yn.running=Yn.playing;var Vn={};[{animated:function(){return function(){var t=void 0!==this.length?this:[this];if(!(this._private.cy||this).styleEnabled())return!1;var e=t[0];return e?e._private.animation.current.length>0:void 0}},clearQueue:function(){return function(){var t=void 0!==this.length?this:[this];if(!(this._private.cy||this).styleEnabled())return this;for(var e=0;e<t.length;e++){t[e]._private.animation.queue=[]}return this}},delay:function(){return function(t,e){return(this._private.cy||this).styleEnabled()?this.animate({delay:t,duration:t,complete:e}):this}},delayAnimation:function(){return function(t,e){return(this._private.cy||this).styleEnabled()?this.animation({delay:t,duration:t,complete:e}):this}},animation:function(){return function(t,e){var n=void 0!==this.length,r=n?this:[this],i=this._private.cy||this,o=!n,a=!o;if(!i.styleEnabled())return this;var s=i.style();if(t=G({},t,e),0===Object.keys(t).length)return new zn(r[0],t);switch(void 0===t.duration&&(t.duration=400),t.duration){case"slow":t.duration=600;break;case"fast":t.duration=200}if(a&&(t.style=s.getPropsList(t.style||t.css),t.css=void 0),a&&null!=t.renderedPosition){var u=t.renderedPosition,c=i.pan(),l=i.zoom();t.position=Vt(u,l,c)}if(o&&null!=t.panBy){var f=t.panBy,h=i.pan();t.pan={x:h.x+f.x,y:h.y+f.y}}var d=t.center||t.centre;if(o&&null!=d){var p=i.getCenterPan(d.eles,t.zoom);null!=p&&(t.pan=p)}if(o&&null!=t.fit){var g=t.fit,v=i.getFitViewport(g.eles||g.boundingBox,g.padding);null!=v&&(t.pan=v.pan,t.zoom=v.zoom)}if(o&&_(t.zoom)){var b=i.getZoomedViewport(t.zoom);null!=b?(b.zoomed&&(t.zoom=b.zoom),b.panned&&(t.pan=b.pan)):t.zoom=null}return new zn(r[0],t)}},animate:function(){return function(t,e){var n=void 0!==this.length?this:[this];if(!(this._private.cy||this).styleEnabled())return this;e&&(t=G({},t,e));for(var r=0;r<n.length;r++){var i=n[r],o=i.animated()&&(void 0===t.queue||t.queue);i.animation(t,o?{queue:!0}:void 0).play()}return this}},stop:function(){return function(t,e){var n=void 0!==this.length?this:[this],r=this._private.cy||this;if(!r.styleEnabled())return this;for(var i=0;i<n.length;i++){for(var o=n[i]._private,a=o.animation.current,s=0;s<a.length;s++){var u=a[s]._private;e&&(u.duration=0)}t&&(o.animation.queue=[]),e||(o.animation.current=[])}return r.notify("draw"),this}}},{data:function(t){return t=G({},{field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(t){},beforeSet:function(t,e){},onSet:function(t){},canSet:function(t){return!0}},t),function(e,n){var r=t,i=void 0!==this.length,o=i?this:[this],a=i?this[0]:this;if(w(e)){var s;if(r.allowGetting&&void 0===n)return a&&(r.beforeGet(a),s=a._private[r.field][e]),s;if(r.allowSetting&&void 0!==n&&!r.immutableKeys[e]){var u=l({},e,n);r.beforeSet(this,u);for(var c=0,f=o.length;c<f;c++){var h=o[c];r.canSet(h)&&(h._private[r.field][e]=n)}r.updateStyle&&this.updateStyle(),r.onSet(this),r.settingTriggersEvent&&this[r.triggerFnName](r.settingEvent)}}else if(r.allowSetting&&_(e)){var d,p,g=e,v=Object.keys(g);r.beforeSet(this,g);for(var b=0;b<v.length;b++){if(p=g[d=v[b]],!r.immutableKeys[d])for(var y=0;y<o.length;y++){var x=o[y];r.canSet(x)&&(x._private[r.field][d]=p)}}r.updateStyle&&this.updateStyle(),r.onSet(this),r.settingTriggersEvent&&this[r.triggerFnName](r.settingEvent)}else if(r.allowBinding&&m(e)){var E=e;this.on(r.bindingEvent,E)}else if(r.allowGetting&&void 0===e){var k;return a&&(r.beforeGet(a),k=a._private[r.field]),k}return this}},removeData:function(t){return t=G({},{field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}},t),function(e){var n=t,r=void 0!==this.length?this:[this];if(w(e)){for(var i=e.split(/\s+/),o=i.length,a=0;a<o;a++){var s=i[a];if(!O(s))if(!n.immutableKeys[s])for(var u=0,c=r.length;u<c;u++)r[u]._private[n.field][s]=void 0}n.triggerEvent&&this[n.triggerFnName](n.event)}else if(void 0===e){for(var l=0,f=r.length;l<f;l++)for(var h=r[l]._private[n.field],d=Object.keys(h),p=0;p<d.length;p++){var g=d[p];!n.immutableKeys[g]&&(h[g]=void 0)}n.triggerEvent&&this[n.triggerFnName](n.event)}return this}}},{eventAliasesOn:function(t){var e=t;e.addListener=e.listen=e.bind=e.on,e.unlisten=e.unbind=e.off=e.removeListener,e.trigger=e.emit,e.pon=e.promiseOn=function(t,e){var n=this,r=Array.prototype.slice.call(arguments,0);return new Fn((function(t,e){var i=r.concat([function(e){n.off.apply(n,o),t(e)}]),o=i.concat([]);n.on.apply(n,i)}))}}}].forEach((function(t){G(Vn,t)}));var qn={animate:Vn.animate(),animation:Vn.animation(),animated:Vn.animated(),clearQueue:Vn.clearQueue(),delay:Vn.delay(),delayAnimation:Vn.delayAnimation(),stop:Vn.stop()},Un={classes:function(t){if(void 0===t){var e=[];return this[0]._private.classes.forEach((function(t){return e.push(t)})),e}x(t)||(t=(t||"").match(/\S+/g)||[]);for(var n=[],r=new Ct(t),i=0;i<this.length;i++){for(var o=this[i],a=o._private,s=a.classes,u=!1,c=0;c<t.length;c++){var l=t[c];if(!s.has(l)){u=!0;break}}u||(u=s.size!==t.length),u&&(a.classes=r,n.push(o))}return n.length>0&&this.spawn(n).updateStyle().emit("class"),this},addClass:function(t){return this.toggleClass(t,!0)},hasClass:function(t){var e=this[0];return null!=e&&e._private.classes.has(t)},toggleClass:function(t,e){x(t)||(t=t.match(/\S+/g)||[]);for(var n=void 0===e,r=[],i=0,o=this.length;i<o;i++)for(var a=this[i],s=a._private.classes,u=!1,c=0;c<t.length;c++){var l=t[c],f=s.has(l),h=!1;e||n&&!f?(s.add(l),h=!0):(!e||n&&f)&&(s.delete(l),h=!0),!u&&h&&(r.push(a),u=!0)}return r.length>0&&this.spawn(r).updateStyle().emit("class"),this},removeClass:function(t){return this.toggleClass(t,!1)},flashClass:function(t,e){var n=this;if(null==e)e=250;else if(0===e)return n;return n.addClass(t),setTimeout((function(){n.removeClass(t)}),e),n}};Un.className=Un.classNames=Un.classes;var Xn={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:R,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Xn.variable="(?:[\\w-]|(?:\\\\"+Xn.metaChar+"))+",Xn.value=Xn.string+"|"+Xn.number,Xn.className=Xn.variable,Xn.id=Xn.variable,function(){var t,e,n;for(t=Xn.comparatorOp.split("|"),n=0;n<t.length;n++)e=t[n],Xn.comparatorOp+="|@"+e;for(t=Xn.comparatorOp.split("|"),n=0;n<t.length;n++)(e=t[n]).indexOf("!")>=0||"="!==e&&(Xn.comparatorOp+="|\\!"+e)}();var Wn=0,$n=1,Kn=2,Zn=3,Qn=4,Jn=5,tr=6,er=7,nr=8,rr=9,ir=10,or=11,ar=12,sr=13,ur=14,cr=15,lr=16,fr=17,hr=18,dr=19,pr=20,gr=[{selector:":selected",matches:function(t){return t.selected()}},{selector:":unselected",matches:function(t){return!t.selected()}},{selector:":selectable",matches:function(t){return t.selectable()}},{selector:":unselectable",matches:function(t){return!t.selectable()}},{selector:":locked",matches:function(t){return t.locked()}},{selector:":unlocked",matches:function(t){return!t.locked()}},{selector:":visible",matches:function(t){return t.visible()}},{selector:":hidden",matches:function(t){return!t.visible()}},{selector:":transparent",matches:function(t){return t.transparent()}},{selector:":grabbed",matches:function(t){return t.grabbed()}},{selector:":free",matches:function(t){return!t.grabbed()}},{selector:":removed",matches:function(t){return t.removed()}},{selector:":inside",matches:function(t){return!t.removed()}},{selector:":grabbable",matches:function(t){return t.grabbable()}},{selector:":ungrabbable",matches:function(t){return!t.grabbable()}},{selector:":animated",matches:function(t){return t.animated()}},{selector:":unanimated",matches:function(t){return!t.animated()}},{selector:":parent",matches:function(t){return t.isParent()}},{selector:":childless",matches:function(t){return t.isChildless()}},{selector:":child",matches:function(t){return t.isChild()}},{selector:":orphan",matches:function(t){return t.isOrphan()}},{selector:":nonorphan",matches:function(t){return t.isChild()}},{selector:":compound",matches:function(t){return t.isNode()?t.isParent():t.source().isParent()||t.target().isParent()}},{selector:":loop",matches:function(t){return t.isLoop()}},{selector:":simple",matches:function(t){return t.isSimple()}},{selector:":active",matches:function(t){return t.active()}},{selector:":inactive",matches:function(t){return!t.active()}},{selector:":backgrounding",matches:function(t){return t.backgrounding()}},{selector:":nonbackgrounding",matches:function(t){return!t.backgrounding()}}].sort((function(t,e){return function(t,e){return-1*B(t,e)}(t.selector,e.selector)})),vr=function(){for(var t,e={},n=0;n<gr.length;n++)e[(t=gr[n]).selector]=t.matches;return e}(),br="("+gr.map((function(t){return t.selector})).join("|")+")",yr=function(t){return t.replace(new RegExp("\\\\("+Xn.metaChar+")","g"),(function(t,e){return e}))},wr=function(t,e,n){t[t.length-1]=n},mr=[{name:"group",query:!0,regex:"("+Xn.group+")",populate:function(t,e,n){var r=f(n,1)[0];e.checks.push({type:Wn,value:"*"===r?r:r+"s"})}},{name:"state",query:!0,regex:br,populate:function(t,e,n){var r=f(n,1)[0];e.checks.push({type:er,value:r})}},{name:"id",query:!0,regex:"\\#("+Xn.id+")",populate:function(t,e,n){var r=f(n,1)[0];e.checks.push({type:nr,value:yr(r)})}},{name:"className",query:!0,regex:"\\.("+Xn.className+")",populate:function(t,e,n){var r=f(n,1)[0];e.checks.push({type:rr,value:yr(r)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+Xn.variable+")\\s*\\]",populate:function(t,e,n){var r=f(n,1)[0];e.checks.push({type:Qn,field:yr(r)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+Xn.variable+")\\s*("+Xn.comparatorOp+")\\s*("+Xn.value+")\\s*\\]",populate:function(t,e,n){var r=f(n,3),i=r[0],o=r[1],a=r[2];a=null!=new RegExp("^"+Xn.string+"$").exec(a)?a.substring(1,a.length-1):parseFloat(a),e.checks.push({type:Zn,field:yr(i),operator:o,value:a})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+Xn.boolOp+")\\s*("+Xn.variable+")\\s*\\]",populate:function(t,e,n){var r=f(n,2),i=r[0],o=r[1];e.checks.push({type:Jn,field:yr(o),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+Xn.meta+")\\s*("+Xn.comparatorOp+")\\s*("+Xn.number+")\\s*\\]\\]",populate:function(t,e,n){var r=f(n,3),i=r[0],o=r[1],a=r[2];e.checks.push({type:tr,field:yr(i),operator:o,value:parseFloat(a)})}},{name:"nextQuery",separator:!0,regex:Xn.separator,populate:function(t,e){var n=t.currentSubject,r=t.edgeCount,i=t.compoundCount,o=t[t.length-1];return null!=n&&(o.subject=n,t.currentSubject=null),o.edgeCount=r,o.compoundCount=i,t.edgeCount=0,t.compoundCount=0,t[t.length++]={checks:[]}}},{name:"directedEdge",separator:!0,regex:Xn.directedEdge,populate:function(t,e){if(null==t.currentSubject){var n={checks:[]},r=e,i={checks:[]};return n.checks.push({type:or,source:r,target:i}),wr(t,0,n),t.edgeCount++,i}var o={checks:[]},a=e,s={checks:[]};return o.checks.push({type:ar,source:a,target:s}),wr(t,0,o),t.edgeCount++,s}},{name:"undirectedEdge",separator:!0,regex:Xn.undirectedEdge,populate:function(t,e){if(null==t.currentSubject){var n={checks:[]},r=e,i={checks:[]};return n.checks.push({type:ir,nodes:[r,i]}),wr(t,0,n),t.edgeCount++,i}var o={checks:[]},a=e,s={checks:[]};return o.checks.push({type:ur,node:a,neighbor:s}),wr(t,0,o),s}},{name:"child",separator:!0,regex:Xn.child,populate:function(t,e){if(null==t.currentSubject){var n={checks:[]},r={checks:[]},i=t[t.length-1];return n.checks.push({type:cr,parent:i,child:r}),wr(t,0,n),t.compoundCount++,r}if(t.currentSubject===e){var o={checks:[]},a=t[t.length-1],s={checks:[]},u={checks:[]},c={checks:[]},l={checks:[]};return o.checks.push({type:dr,left:a,right:s,subject:u}),u.checks=e.checks,e.checks=[{type:pr}],l.checks.push({type:pr}),s.checks.push({type:fr,parent:l,child:c}),wr(t,0,o),t.currentSubject=u,t.compoundCount++,c}var f={checks:[]},h={checks:[]},d=[{type:fr,parent:f,child:h}];return f.checks=e.checks,e.checks=d,t.compoundCount++,h}},{name:"descendant",separator:!0,regex:Xn.descendant,populate:function(t,e){if(null==t.currentSubject){var n={checks:[]},r={checks:[]},i=t[t.length-1];return n.checks.push({type:lr,ancestor:i,descendant:r}),wr(t,0,n),t.compoundCount++,r}if(t.currentSubject===e){var o={checks:[]},a=t[t.length-1],s={checks:[]},u={checks:[]},c={checks:[]},l={checks:[]};return o.checks.push({type:dr,left:a,right:s,subject:u}),u.checks=e.checks,e.checks=[{type:pr}],l.checks.push({type:pr}),s.checks.push({type:hr,ancestor:l,descendant:c}),wr(t,0,o),t.currentSubject=u,t.compoundCount++,c}var f={checks:[]},h={checks:[]},d=[{type:hr,ancestor:f,descendant:h}];return f.checks=e.checks,e.checks=d,t.compoundCount++,h}},{name:"subject",modifier:!0,regex:Xn.subject,populate:function(t,e){if(null!=t.currentSubject&&t.currentSubject!==e)return pt("Redefinition of subject in selector `"+t.toString()+"`"),!1;t.currentSubject=e;var n=t[t.length-1].checks[0],r=null==n?null:n.type;r===or?n.type=sr:r===ir&&(n.type=ur,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];mr.forEach((function(t){return t.regexObj=new RegExp("^"+t.regex)}));var xr=function(t){for(var e,n,r,i=0;i<mr.length;i++){var o=mr[i],a=o.name,s=t.match(o.regexObj);if(null!=s){n=s,e=o,r=a;var u=s[0];t=t.substring(u.length);break}}return{expr:e,match:n,name:r,remaining:t}},_r={parse:function(t){var e=this.inputText=t,n=this[0]={checks:[]};for(this.length=1,e=function(t){var e=t.match(/^\s+/);if(e){var n=e[0];t=t.substring(n.length)}return t}(e);;){var r=xr(e);if(null==r.expr)return pt("The selector `"+t+"`is invalid"),!1;var i=r.match.slice(1),o=r.expr.populate(this,n,i);if(!1===o)return!1;if(null!=o&&(n=o),(e=r.remaining).match(/^\s*$/))break}var a=this[this.length-1];null!=this.currentSubject&&(a.subject=this.currentSubject),a.edgeCount=this.edgeCount,a.compoundCount=this.compoundCount;for(var s=0;s<this.length;s++){var u=this[s];if(u.compoundCount>0&&u.edgeCount>0)return pt("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return pt("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;1===u.edgeCount&&pt("The selector `"+t+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var t=function(t){return null==t?"":t},e=function(e){return w(e)?'"'+e+'"':t(e)},n=function(t){return" "+t+" "},r=function(r,o){var a=r.type,s=r.value;switch(a){case Wn:var u=t(s);return u.substring(0,u.length-1);case Zn:var c=r.field,l=r.operator;return"["+c+n(t(l))+e(s)+"]";case Jn:var f=r.operator,h=r.field;return"["+t(f)+h+"]";case Qn:return"["+r.field+"]";case tr:var d=r.operator;return"[["+r.field+n(t(d))+e(s)+"]]";case er:return s;case nr:return"#"+s;case rr:return"."+s;case fr:case cr:return i(r.parent,o)+n(">")+i(r.child,o);case hr:case lr:return i(r.ancestor,o)+" "+i(r.descendant,o);case dr:var p=i(r.left,o),g=i(r.subject,o),v=i(r.right,o);return p+(p.length>0?" ":"")+g+v;case pr:return""}},i=function(t,e){return t.checks.reduce((function(n,i,o){return n+(e===t&&0===o?"$":"")+r(i,e)}),"")},o="",a=0;a<this.length;a++){var s=this[a];o+=i(s,s.subject),this.length>1&&a<this.length-1&&(o+=", ")}return this.toStringCache=o,o}},Er=function(t,e,n){var r,i,o,a=w(t),s=E(t),u=w(n),c=!1,l=!1,f=!1;switch(e.indexOf("!")>=0&&(e=e.replace("!",""),l=!0),e.indexOf("@")>=0&&(e=e.replace("@",""),c=!0),(a||u||c)&&(i=a||s?""+t:"",o=""+n),c&&(t=i=i.toLowerCase(),n=o=o.toLowerCase()),e){case"*=":r=i.indexOf(o)>=0;break;case"$=":r=i.indexOf(o,i.length-o.length)>=0;break;case"^=":r=0===i.indexOf(o);break;case"=":r=t===n;break;case">":f=!0,r=t>n;break;case">=":f=!0,r=t>=n;break;case"<":f=!0,r=t<n;break;case"<=":f=!0,r=t<=n;break;default:r=!1}return!l||null==t&&f||(r=!r),r},kr=function(t,e){return t.data(e)},Sr=[],Cr=function(t,e){return t.checks.every((function(t){return Sr[t.type](t,e)}))};Sr[Wn]=function(t,e){var n=t.value;return"*"===n||n===e.group()},Sr[er]=function(t,e){return function(t,e){return vr[t](e)}(t.value,e)},Sr[nr]=function(t,e){var n=t.value;return e.id()===n},Sr[rr]=function(t,e){var n=t.value;return e.hasClass(n)},Sr[tr]=function(t,e){var n=t.field,r=t.operator,i=t.value;return Er(function(t,e){return t[e]()}(e,n),r,i)},Sr[Zn]=function(t,e){var n=t.field,r=t.operator,i=t.value;return Er(kr(e,n),r,i)},Sr[Jn]=function(t,e){var n=t.field,r=t.operator;return function(t,e){switch(e){case"?":return!!t;case"!":return!t;case"^":return void 0===t}}(kr(e,n),r)},Sr[Qn]=function(t,e){var n=t.field;t.operator;return void 0!==kr(e,n)},Sr[ir]=function(t,e){var n=t.nodes[0],r=t.nodes[1],i=e.source(),o=e.target();return Cr(n,i)&&Cr(r,o)||Cr(r,i)&&Cr(n,o)},Sr[ur]=function(t,e){return Cr(t.node,e)&&e.neighborhood().some((function(e){return e.isNode()&&Cr(t.neighbor,e)}))},Sr[or]=function(t,e){return Cr(t.source,e.source())&&Cr(t.target,e.target())},Sr[ar]=function(t,e){return Cr(t.source,e)&&e.outgoers().some((function(e){return e.isNode()&&Cr(t.target,e)}))},Sr[sr]=function(t,e){return Cr(t.target,e)&&e.incomers().some((function(e){return e.isNode()&&Cr(t.source,e)}))},Sr[cr]=function(t,e){return Cr(t.child,e)&&Cr(t.parent,e.parent())},Sr[fr]=function(t,e){return Cr(t.parent,e)&&e.children().some((function(e){return Cr(t.child,e)}))},Sr[lr]=function(t,e){return Cr(t.descendant,e)&&e.ancestors().some((function(e){return Cr(t.ancestor,e)}))},Sr[hr]=function(t,e){return Cr(t.ancestor,e)&&e.descendants().some((function(e){return Cr(t.descendant,e)}))},Sr[dr]=function(t,e){return Cr(t.subject,e)&&Cr(t.left,e)&&Cr(t.right,e)},Sr[pr]=function(){return!0},Sr[$n]=function(t,e){return t.value.has(e)},Sr[Kn]=function(t,e){return(0,t.value)(e)};var Tr=function(t){this.inputText=t,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,null==t||w(t)&&t.match(/^\s*$/)||(S(t)?this.addQuery({checks:[{type:$n,value:t.collection()}]}):m(t)?this.addQuery({checks:[{type:Kn,value:t}]}):w(t)?this.parse(t)||(this.invalid=!0):ht("A selector must be created from a string; found "))},Ar=Tr.prototype;[_r,{matches:function(t){for(var e=0;e<this.length;e++){var n=this[e];if(Cr(n,t))return!0}return!1},filter:function(t){var e=this;if(1===e.length&&1===e[0].checks.length&&e[0].checks[0].type===nr)return t.getElementById(e[0].checks[0].value).collection();var n=function(t){for(var n=0;n<e.length;n++){var r=e[n];if(Cr(r,t))return!0}return!1};return null==e.text()&&(n=function(){return!0}),t.filter(n)}}].forEach((function(t){return G(Ar,t)})),Ar.text=function(){return this.inputText},Ar.size=function(){return this.length},Ar.eq=function(t){return this[t]},Ar.sameText=function(t){return!this.invalid&&!t.invalid&&this.text()===t.text()},Ar.addQuery=function(t){this[this.length++]=t},Ar.selector=Ar.toString;var Nr={allAre:function(t){var e=new Tr(t);return this.every((function(t){return e.matches(t)}))},is:function(t){var e=new Tr(t);return this.some((function(t){return e.matches(t)}))},some:function(t,e){for(var n=0;n<this.length;n++){if(e?t.apply(e,[this[n],n,this]):t(this[n],n,this))return!0}return!1},every:function(t,e){for(var n=0;n<this.length;n++){if(!(e?t.apply(e,[this[n],n,this]):t(this[n],n,this)))return!1}return!0},same:function(t){if(this===t)return!0;t=this.cy().collection(t);var e=this.length;return e===t.length&&(1===e?this[0]===t[0]:this.every((function(e){return t.hasElementWithId(e.id())})))},anySame:function(t){return t=this.cy().collection(t),this.some((function(e){return t.hasElementWithId(e.id())}))},allAreNeighbors:function(t){t=this.cy().collection(t);var e=this.neighborhood();return t.every((function(t){return e.hasElementWithId(t.id())}))},contains:function(t){t=this.cy().collection(t);var e=this;return t.every((function(t){return e.hasElementWithId(t.id())}))}};Nr.allAreNeighbours=Nr.allAreNeighbors,Nr.has=Nr.contains,Nr.equal=Nr.equals=Nr.same;var Or,Lr,Pr=function(t,e){return function(n,r,i,o){var a,s=n;if(null==s?a="":S(s)&&1===s.length&&(a=s.id()),1===this.length&&a){var u=this[0]._private,c=u.traversalCache=u.traversalCache||{},l=c[e]=c[e]||[],f=et(a),h=l[f];return h||(l[f]=t.call(this,n,r,i,o))}return t.call(this,n,r,i,o)}},Ir={parent:function(t){var e=[];if(1===this.length){var n=this[0]._private.parent;if(n)return n}for(var r=0;r<this.length;r++){var i=this[r]._private.parent;i&&e.push(i)}return this.spawn(e,{unique:!0}).filter(t)},parents:function(t){for(var e=[],n=this.parent();n.nonempty();){for(var r=0;r<n.length;r++){var i=n[r];e.push(i)}n=n.parent()}return this.spawn(e,{unique:!0}).filter(t)},commonAncestors:function(t){for(var e,n=0;n<this.length;n++){var r=this[n].parents();e=(e=e||r).intersect(r)}return e.filter(t)},orphans:function(t){return this.stdFilter((function(t){return t.isOrphan()})).filter(t)},nonorphans:function(t){return this.stdFilter((function(t){return t.isChild()})).filter(t)},children:Pr((function(t){for(var e=[],n=0;n<this.length;n++)for(var r=this[n]._private.children,i=0;i<r.length;i++)e.push(r[i]);return this.spawn(e,{unique:!0}).filter(t)}),"children"),siblings:function(t){return this.parent().children().not(this).filter(t)},isParent:function(){var t=this[0];if(t)return t.isNode()&&0!==t._private.children.length},isChildless:function(){var t=this[0];if(t)return t.isNode()&&0===t._private.children.length},isChild:function(){var t=this[0];if(t)return t.isNode()&&null!=t._private.parent},isOrphan:function(){var t=this[0];if(t)return t.isNode()&&null==t._private.parent},descendants:function(t){var e=[];return function t(n){for(var r=0;r<n.length;r++){var i=n[r];e.push(i),i.children().nonempty()&&t(i.children())}}(this.children()),this.spawn(e,{unique:!0}).filter(t)}};function jr(t,e,n,r){for(var i=[],o=new Ct,a=t.cy().hasCompoundNodes(),s=0;s<t.length;s++){var u=t[s];n?i.push(u):a&&r(i,o,u)}for(;i.length>0;){var c=i.shift();e(c),o.add(c.id()),a&&r(i,o,c)}return t}function Mr(t,e,n){if(n.isParent())for(var r=n._private.children,i=0;i<r.length;i++){var o=r[i];e.has(o.id())||t.push(o)}}function Dr(t,e,n){if(n.isChild()){var r=n._private.parent;e.has(r.id())||t.push(r)}}function Rr(t,e,n){Dr(t,e,n),Mr(t,e,n)}Ir.forEachDown=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return jr(this,t,e,Mr)},Ir.forEachUp=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return jr(this,t,e,Dr)},Ir.forEachUpAndDown=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return jr(this,t,e,Rr)},Ir.ancestors=Ir.parents,(Or=Lr={data:Vn.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Vn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Vn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Vn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Vn.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Vn.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var t=this[0];if(t)return t._private.data.id}}).attr=Or.data,Or.removeAttr=Or.removeData;var Br,Gr,Hr=Lr,Fr={};function zr(t){return function(e){if(void 0===e&&(e=!0),0!==this.length&&this.isNode()&&!this.removed()){for(var n=0,r=this[0],i=r._private.edges,o=0;o<i.length;o++){var a=i[o];!e&&a.isLoop()||(n+=t(r,a))}return n}}}function Yr(t,e){return function(n){for(var r,i=this.nodes(),o=0;o<i.length;o++){var a=i[o][t](n);void 0===a||void 0!==r&&!e(a,r)||(r=a)}return r}}G(Fr,{degree:zr((function(t,e){return e.source().same(e.target())?2:1})),indegree:zr((function(t,e){return e.target().same(t)?1:0})),outdegree:zr((function(t,e){return e.source().same(t)?1:0}))}),G(Fr,{minDegree:Yr("degree",(function(t,e){return t<e})),maxDegree:Yr("degree",(function(t,e){return t>e})),minIndegree:Yr("indegree",(function(t,e){return t<e})),maxIndegree:Yr("indegree",(function(t,e){return t>e})),minOutdegree:Yr("outdegree",(function(t,e){return t<e})),maxOutdegree:Yr("outdegree",(function(t,e){return t>e}))}),G(Fr,{totalDegree:function(t){for(var e=0,n=this.nodes(),r=0;r<n.length;r++)e+=n[r].degree(t);return e}});var Vr=function(t,e,n){for(var r=0;r<t.length;r++){var i=t[r];if(!i.locked()){var o=i._private.position,a={x:null!=e.x?e.x-o.x:0,y:null!=e.y?e.y-o.y:0};!i.isParent()||0===a.x&&0===a.y||i.children().shift(a,n),i.shiftCachedBoundingBox(a)}}},qr={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(t){t.updateCompoundBounds()},beforeSet:function(t,e){Vr(t,e,!1)},onSet:function(t){t.dirtyCompoundBoundsCache()},canSet:function(t){return!t.locked()}};(Br=Gr={position:Vn.data(qr),silentPosition:Vn.data(G({},qr,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(t,e){Vr(t,e,!0)}})),positions:function(t,e){if(_(t))e?this.silentPosition(t):this.position(t);else if(m(t)){var n=t,r=this.cy();r.startBatch();for(var i=0;i<this.length;i++){var o,a=this[i];(o=n(a,i))&&(e?a.silentPosition(o):a.position(o))}r.endBatch()}return this},silentPositions:function(t){return this.positions(t,!0)},shift:function(t,e,n){var r;if(_(t)?(r={x:E(t.x)?t.x:0,y:E(t.y)?t.y:0},n=e):w(t)&&E(e)&&((r={x:0,y:0})[t]=e),null!=r){var i=this.cy();i.startBatch();for(var o=0;o<this.length;o++){var a=this[o],s=a.position(),u={x:s.x+r.x,y:s.y+r.y};n?a.silentPosition(u):a.position(u)}i.endBatch()}return this},silentShift:function(t,e){return _(t)?this.shift(t,!0):w(t)&&E(e)&&this.shift(t,e,!0),this},renderedPosition:function(t,e){var n=this[0],r=this.cy(),i=r.zoom(),o=r.pan(),a=_(t)?t:void 0,s=void 0!==a||void 0!==e&&w(t);if(n&&n.isNode()){if(!s){var u=n.position();return a=Yt(u,i,o),void 0===t?a:a[t]}for(var c=0;c<this.length;c++){var l=this[c];void 0!==e?l.position(t,(e-o[t])/i):void 0!==a&&l.position(Vt(a,i,o))}}else if(!s)return;return this},relativePosition:function(t,e){var n=this[0],r=this.cy(),i=_(t)?t:void 0,o=void 0!==i||void 0!==e&&w(t),a=r.hasCompoundNodes();if(n&&n.isNode()){if(!o){var s=n.position(),u=a?n.parent():null,c=u&&u.length>0,l=c;c&&(u=u[0]);var f=l?u.position():{x:0,y:0};return i={x:s.x-f.x,y:s.y-f.y},void 0===t?i:i[t]}for(var h=0;h<this.length;h++){var d=this[h],p=a?d.parent():null,g=p&&p.length>0,v=g;g&&(p=p[0]);var b=v?p.position():{x:0,y:0};void 0!==e?d.position(t,e+b[t]):void 0!==i&&d.position({x:i.x+b.x,y:i.y+b.y})}}else if(!o)return;return this}}).modelPosition=Br.point=Br.position,Br.modelPositions=Br.points=Br.positions,Br.renderedPoint=Br.renderedPosition,Br.relativePoint=Br.relativePosition;var Ur,Xr,Wr=Gr;Ur=Xr={},Xr.renderedBoundingBox=function(t){var e=this.boundingBox(t),n=this.cy(),r=n.zoom(),i=n.pan(),o=e.x1*r+i.x,a=e.x2*r+i.x,s=e.y1*r+i.y,u=e.y2*r+i.y;return{x1:o,x2:a,y1:s,y2:u,w:a-o,h:u-s}},Xr.dirtyCompoundBoundsCache=function(){var t=this.cy();return t.styleEnabled()&&t.hasCompoundNodes()?(this.forEachUp((function(t){if(t.isParent()){var e=t._private;e.compoundBoundsClean=!1,e.bbCache=null,t.emitAndNotify("bounds")}})),this):this},Xr.updateCompoundBounds=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function n(t){if(t.isParent()){var e=t._private,n=t.children(),r="include"===t.pstyle("compound-sizing-wrt-labels").value,i={width:{val:t.pstyle("min-width").pfValue,left:t.pstyle("min-width-bias-left"),right:t.pstyle("min-width-bias-right")},height:{val:t.pstyle("min-height").pfValue,top:t.pstyle("min-height-bias-top"),bottom:t.pstyle("min-height-bias-bottom")}},o=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),a=e.position;0!==o.w&&0!==o.h||((o={w:t.pstyle("width").pfValue,h:t.pstyle("height").pfValue}).x1=a.x-o.w/2,o.x2=a.x+o.w/2,o.y1=a.y-o.h/2,o.y2=a.y+o.h/2);var s=i.width.left.value;"px"===i.width.left.units&&i.width.val>0&&(s=100*s/i.width.val);var u=i.width.right.value;"px"===i.width.right.units&&i.width.val>0&&(u=100*u/i.width.val);var c=i.height.top.value;"px"===i.height.top.units&&i.height.val>0&&(c=100*c/i.height.val);var l=i.height.bottom.value;"px"===i.height.bottom.units&&i.height.val>0&&(l=100*l/i.height.val);var f=b(i.width.val-o.w,s,u),h=f.biasDiff,d=f.biasComplementDiff,p=b(i.height.val-o.h,c,l),g=p.biasDiff,v=p.biasComplementDiff;e.autoPadding=function(t,e,n,r){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(r){case"width":return t>0?n.pfValue*t:0;case"height":return e>0?n.pfValue*e:0;case"average":return t>0&&e>0?n.pfValue*(t+e)/2:0;case"min":return t>0&&e>0?t>e?n.pfValue*e:n.pfValue*t:0;case"max":return t>0&&e>0?t>e?n.pfValue*t:n.pfValue*e:0;default:return 0}}(o.w,o.h,t.pstyle("padding"),t.pstyle("padding-relative-to").value),e.autoWidth=Math.max(o.w,i.width.val),a.x=(-h+o.x1+o.x2+d)/2,e.autoHeight=Math.max(o.h,i.height.val),a.y=(-g+o.y1+o.y2+v)/2}function b(t,e,n){var r=0,i=0,o=e+n;return t>0&&o>0&&(r=e/o*t,i=n/o*t),{biasDiff:r,biasComplementDiff:i}}}for(var r=0;r<this.length;r++){var i=this[r],o=i._private;o.compoundBoundsClean||(n(i),e.batching()||(o.compoundBoundsClean=!0))}return this};var $r=function(t){return t===1/0||t===-1/0?0:t},Kr=function(t,e,n,r,i){r-e!=0&&i-n!=0&&null!=e&&null!=n&&null!=r&&null!=i&&(t.x1=e<t.x1?e:t.x1,t.x2=r>t.x2?r:t.x2,t.y1=n<t.y1?n:t.y1,t.y2=i>t.y2?i:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},Zr=function(t,e){return null==e?t:Kr(t,e.x1,e.y1,e.x2,e.y2)},Qr=function(t,e,n){return _t(t,e,n)},Jr=function(t,e,n){if(!e.cy().headless()){var r,i,o=e._private,a=o.rstyle,s=a.arrowWidth/2;if("none"!==e.pstyle(n+"-arrow-shape").value){"source"===n?(r=a.srcX,i=a.srcY):"target"===n?(r=a.tgtX,i=a.tgtY):(r=a.midX,i=a.midY);var u=o.arrowBounds=o.arrowBounds||{},c=u[n]=u[n]||{};c.x1=r-s,c.y1=i-s,c.x2=r+s,c.y2=i+s,c.w=c.x2-c.x1,c.h=c.y2-c.y1,re(c,1),Kr(t,c.x1,c.y1,c.x2,c.y2)}}},ti=function(t,e,n){if(!e.cy().headless()){var r;r=n?n+"-":"";var i=e._private,o=i.rstyle;if(e.pstyle(r+"label").strValue){var a,s,u,c,l=e.pstyle("text-halign"),f=e.pstyle("text-valign"),h=Qr(o,"labelWidth",n),d=Qr(o,"labelHeight",n),p=Qr(o,"labelX",n),g=Qr(o,"labelY",n),v=e.pstyle(r+"text-margin-x").pfValue,b=e.pstyle(r+"text-margin-y").pfValue,y=e.isEdge(),w=e.pstyle(r+"text-rotation"),m=e.pstyle("text-outline-width").pfValue,x=e.pstyle("text-border-width").pfValue/2,_=e.pstyle("text-background-padding").pfValue,E=d,k=h,S=k/2,C=E/2;if(y)a=p-S,s=p+S,u=g-C,c=g+C;else{switch(l.value){case"left":a=p-k,s=p;break;case"center":a=p-S,s=p+S;break;case"right":a=p,s=p+k}switch(f.value){case"top":u=g-E,c=g;break;case"center":u=g-C,c=g+C;break;case"bottom":u=g,c=g+E}}a+=v-Math.max(m,x)-_,s+=v+Math.max(m,x)+_,u+=b-Math.max(m,x)-_,c+=b+Math.max(m,x)+_;var T=n||"main",A=i.labelBounds,N=A[T]=A[T]||{};N.x1=a,N.y1=u,N.x2=s,N.y2=c,N.w=s-a,N.h=c-u,re(N,1);var O=y&&"autorotate"===w.strValue,L=null!=w.pfValue&&0!==w.pfValue;if(O||L){var P=O?Qr(i.rstyle,"labelAngle",n):w.pfValue,I=Math.cos(P),j=Math.sin(P),M=(a+s)/2,D=(u+c)/2;if(!y){switch(l.value){case"left":M=s;break;case"right":M=a}switch(f.value){case"top":D=c;break;case"bottom":D=u}}var R=function(t,e){return{x:(t-=M)*I-(e-=D)*j+M,y:t*j+e*I+D}},B=R(a,u),G=R(a,c),H=R(s,u),F=R(s,c);a=Math.min(B.x,G.x,H.x,F.x),s=Math.max(B.x,G.x,H.x,F.x),u=Math.min(B.y,G.y,H.y,F.y),c=Math.max(B.y,G.y,H.y,F.y)}var z=T+"Rot",Y=A[z]=A[z]||{};Y.x1=a,Y.y1=u,Y.x2=s,Y.y2=c,Y.w=s-a,Y.h=c-u,Kr(t,a,u,s,c),Kr(i.labelBounds.all,a,u,s,c)}return t}},ei=function(t){var e=0,n=function(t){return(t?1:0)<<e++},r=0;return r+=n(t.incudeNodes),r+=n(t.includeEdges),r+=n(t.includeLabels),r+=n(t.includeMainLabels),r+=n(t.includeSourceLabels),r+=n(t.includeTargetLabels),r+=n(t.includeOverlays)},ni=function(t){if(t.isEdge()){var e=t.source().position(),n=t.target().position(),r=function(t){return Math.round(t)};return function(t,e){var n={value:0,done:!1},r=0,i=t.length;return K({next:function(){return r<i?n.value=t[r++]:n.done=!0,n}},e)}([r(e.x),r(e.y),r(n.x),r(n.y)])}return 0},ri=function(t,e){var n,r=t._private,i=t.isEdge(),o=(null==e?oi:ei(e))===oi,a=ni(t),s=r.bbCachePosKey===a,u=function(t){return null==t._private.bbCache},c=!(e.useCache&&s)||u(t)||i&&u(t.source())||u(t.target());if(c?(s||t.recalculateRenderedStyle(),n=function(t,e){var n,r,i,o,a,s,u,c=t._private.cy,l=c.styleEnabled(),f=c.headless(),h=ee(),d=t._private,p=t.isNode(),g=t.isEdge(),v=d.rstyle,b=p&&l?t.pstyle("bounds-expansion").pfValue:[0],y=function(t){return"none"!==t.pstyle("display").value},w=!l||y(t)&&(!g||y(t.source())&&y(t.target()));if(w){var m=0;l&&e.includeOverlays&&0!==t.pstyle("overlay-opacity").value&&(m=t.pstyle("overlay-padding").value);var x=0;if(l&&(x=t.pstyle("width").pfValue/2),p&&e.includeNodes){var _=t.position();a=_.x,s=_.y;var E=t.outerWidth()/2,k=t.outerHeight()/2;Kr(h,n=a-E,i=s-k,r=a+E,o=s+k)}else if(g&&e.includeEdges)if(l&&!f){var S=t.pstyle("curve-style").strValue;if(n=Math.min(v.srcX,v.midX,v.tgtX),r=Math.max(v.srcX,v.midX,v.tgtX),i=Math.min(v.srcY,v.midY,v.tgtY),o=Math.max(v.srcY,v.midY,v.tgtY),Kr(h,n-=x,i-=x,r+=x,o+=x),"haystack"===S){var C=v.haystackPts;if(C&&2===C.length){if(n=C[0].x,i=C[0].y,n>(r=C[1].x)){var T=n;n=r,r=T}if(i>(o=C[1].y)){var A=i;i=o,o=A}Kr(h,n-x,i-x,r+x,o+x)}}else if("bezier"===S||"unbundled-bezier"===S||"segments"===S||"taxi"===S){var N;switch(S){case"bezier":case"unbundled-bezier":N=v.bezierPts;break;case"segments":case"taxi":N=v.linePts}if(null!=N)for(var O=0;O<N.length;O++){var L=N[O];n=L.x-x,r=L.x+x,i=L.y-x,o=L.y+x,Kr(h,n,i,r,o)}}}else{var P=t.source().position(),I=t.target().position();if((n=P.x)>(r=I.x)){var j=n;n=r,r=j}if((i=P.y)>(o=I.y)){var M=i;i=o,o=M}Kr(h,n-=x,i-=x,r+=x,o+=x)}if(l&&e.includeEdges&&g&&(Jr(h,t,"mid-source"),Jr(h,t,"mid-target"),Jr(h,t,"source"),Jr(h,t,"target")),l)if("yes"===t.pstyle("ghost").value){var D=t.pstyle("ghost-offset-x").pfValue,R=t.pstyle("ghost-offset-y").pfValue;Kr(h,h.x1+D,h.y1+R,h.x2+D,h.y2+R)}var B=d.bodyBounds=d.bodyBounds||{};oe(B,h),ie(B,b),re(B,1),l&&(n=h.x1,r=h.x2,i=h.y1,o=h.y2,Kr(h,n-m,i-m,r+m,o+m));var G=d.overlayBounds=d.overlayBounds||{};oe(G,h),ie(G,b),re(G,1);var H=d.labelBounds=d.labelBounds||{};null!=H.all?((u=H.all).x1=1/0,u.y1=1/0,u.x2=-1/0,u.y2=-1/0,u.w=0,u.h=0):H.all=ee(),l&&e.includeLabels&&(e.includeMainLabels&&ti(h,t,null),g&&(e.includeSourceLabels&&ti(h,t,"source"),e.includeTargetLabels&&ti(h,t,"target")))}return h.x1=$r(h.x1),h.y1=$r(h.y1),h.x2=$r(h.x2),h.y2=$r(h.y2),h.w=$r(h.x2-h.x1),h.h=$r(h.y2-h.y1),h.w>0&&h.h>0&&w&&(ie(h,b),re(h,1)),h}(t,ii),r.bbCache=n,r.bbCacheShift.x=r.bbCacheShift.y=0,r.bbCachePosKey=a):n=r.bbCache,!c&&(0!==r.bbCacheShift.x||0!==r.bbCacheShift.y)){var l=ae,f=r.bbCacheShift,h=function(t,e){null!=t&&l(t,e)};l(n,f);var d=r.bodyBounds,p=r.overlayBounds,g=r.labelBounds,v=r.arrowBounds;h(d,f),h(p,f),null!=v&&(h(v.source,f),h(v.target,f),h(v["mid-source"],f),h(v["mid-target"],f)),null!=g&&(h(g.main,f),h(g.all,f),h(g.source,f),h(g.target,f))}if(r.bbCacheShift.x=r.bbCacheShift.y=0,!o){var b=t.isNode();n=ee(),(e.includeNodes&&b||e.includeEdges&&!b)&&(e.includeOverlays?Zr(n,r.overlayBounds):Zr(n,r.bodyBounds)),e.includeLabels&&(e.includeMainLabels&&(!i||e.includeSourceLabels&&e.includeTargetLabels)?Zr(n,r.labelBounds.all):(e.includeMainLabels&&Zr(n,r.labelBounds.mainRot),e.includeSourceLabels&&Zr(n,r.labelBounds.sourceRot),e.includeTargetLabels&&Zr(n,r.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},ii={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,useCache:!0},oi=ei(ii),ai=wt(ii);Xr.boundingBox=function(t){var e;if(1!==this.length||null==this[0]._private.bbCache||void 0!==t&&void 0!==t.useCache&&!0!==t.useCache){e=ee();var n=ai(t=t||ii);if(this.cy().styleEnabled())for(var r=0;r<this.length;r++){var i=this[r],o=i._private,a=ni(i),s=o.bbCachePosKey===a,u=n.useCache&&s;i.recalculateRenderedStyle(u)}this.updateCompoundBounds();for(var c=0;c<this.length;c++){var l=this[c];Zr(e,ri(l,n))}}else t=void 0===t?ii:ai(t),e=ri(this[0],t);return e.x1=$r(e.x1),e.y1=$r(e.y1),e.x2=$r(e.x2),e.y2=$r(e.y2),e.w=$r(e.x2-e.x1),e.h=$r(e.y2-e.y1),e},Xr.dirtyBoundingBoxCache=function(){for(var t=0;t<this.length;t++){var e=this[t]._private;e.bbCache=null,e.bbCacheShift.x=e.bbCacheShift.y=0,e.bbCachePosKey=null,e.bodyBounds=null,e.overlayBounds=null,e.labelBounds.all=null,e.labelBounds.source=null,e.labelBounds.target=null,e.labelBounds.main=null,e.labelBounds.sourceRot=null,e.labelBounds.targetRot=null,e.labelBounds.mainRot=null,e.arrowBounds.source=null,e.arrowBounds.target=null,e.arrowBounds["mid-source"]=null,e.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},Xr.shiftCachedBoundingBox=function(t){for(var e=0;e<this.length;e++){var n=this[e]._private;null!=n.bbCache&&(n.bbCacheShift.x+=t.x,n.bbCacheShift.y+=t.y)}return this.emitAndNotify("bounds"),this},Xr.boundingBoxAt=function(t){var e=this.nodes(),n=this.cy(),r=n.hasCompoundNodes();if(r&&(e=e.filter((function(t){return!t.isParent()}))),_(t)){var i=t;t=function(){return i}}n.startBatch(),e.forEach((function(e,n){return e._private.bbAtOldPos=t(e,n)})).silentPositions(t),r&&this.updateCompoundBounds(!0);var o=function(t){return{x1:t.x1,x2:t.x2,w:t.w,y1:t.y1,y2:t.y2,h:t.h}}(this.boundingBox({useCache:!1}));return e.silentPositions((function(t){return t._private.bbAtOldPos})),n.endBatch(),o},Ur.boundingbox=Ur.bb=Ur.boundingBox,Ur.renderedBoundingbox=Ur.renderedBoundingBox;var si,ui,ci=Xr;si=ui={};var li=function(t){t.uppercaseName=D(t.name),t.autoName="auto"+t.uppercaseName,t.labelName="label"+t.uppercaseName,t.outerName="outer"+t.uppercaseName,t.uppercaseOuterName=D(t.outerName),si[t.name]=function(){var e=this[0],n=e._private,r=n.cy._private.styleEnabled;if(e){if(!r)return 1;if(e.isParent())return e.updateCompoundBounds(),n[t.autoName]||0;var i=e.pstyle(t.name);switch(i.strValue){case"label":return e.recalculateRenderedStyle(),n.rstyle[t.labelName]||0;default:return i.pfValue}}},si["outer"+t.uppercaseName]=function(){var e=this[0],n=e._private.cy._private.styleEnabled;if(e)return n?e[t.name]()+e.pstyle("border-width").pfValue+2*e.padding():1},si["rendered"+t.uppercaseName]=function(){var e=this[0];if(e)return e[t.name]()*this.cy().zoom()},si["rendered"+t.uppercaseOuterName]=function(){var e=this[0];if(e)return e[t.outerName]()*this.cy().zoom()}};li({name:"width"}),li({name:"height"}),ui.padding=function(){var t=this[0],e=t._private;return t.isParent()?(t.updateCompoundBounds(),void 0!==e.autoPadding?e.autoPadding:t.pstyle("padding").pfValue):t.pstyle("padding").pfValue},ui.paddedHeight=function(){var t=this[0];return t.height()+2*t.padding()},ui.paddedWidth=function(){var t=this[0];return t.width()+2*t.padding()};var fi=ui,hi={controlPoints:{get:function(t){return t.renderer().getControlPoints(t)},mult:!0},segmentPoints:{get:function(t){return t.renderer().getSegmentPoints(t)},mult:!0},sourceEndpoint:{get:function(t){return t.renderer().getSourceEndpoint(t)}},targetEndpoint:{get:function(t){return t.renderer().getTargetEndpoint(t)}},midpoint:{get:function(t){return t.renderer().getEdgeMidpoint(t)}}},di=Object.keys(hi).reduce((function(t,e){var n=hi[e],r=function(t){return"rendered"+t[0].toUpperCase()+t.substr(1)}(e);return t[e]=function(){return function(t,e){if(t.isEdge())return e(t)}(this,n.get)},n.mult?t[r]=function(){return function(t,e){if(t.isEdge()){var n=t.cy(),r=n.pan(),i=n.zoom();return e(t).map((function(t){return Yt(t,i,r)}))}}(this,n.get)}:t[r]=function(){return function(t,e){if(t.isEdge()){var n=t.cy();return Yt(e(t),n.zoom(),n.pan())}}(this,n.get)},t}),{}),pi=G({},Wr,ci,fi,di),gi=function(t,e){this.recycle(t,e)};function vi(){return!1}function bi(){return!0}gi.prototype={instanceString:function(){return"event"},recycle:function(t,e){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=vi,null!=t&&t.preventDefault?(this.type=t.type,this.isDefaultPrevented=t.defaultPrevented?bi:vi):null!=t&&t.type?e=t:this.type=t,null!=e&&(this.originalEvent=e.originalEvent,this.type=null!=e.type?e.type:this.type,this.cy=e.cy,this.target=e.target,this.position=e.position,this.renderedPosition=e.renderedPosition,this.namespace=e.namespace,this.layout=e.layout),null!=this.cy&&null!=this.position&&null==this.renderedPosition){var n=this.position,r=this.cy.zoom(),i=this.cy.pan();this.renderedPosition={x:n.x*r+i.x,y:n.y*r+i.y}}this.timeStamp=t&&t.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=bi;var t=this.originalEvent;t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){this.isPropagationStopped=bi;var t=this.originalEvent;t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bi,this.stopPropagation()},isDefaultPrevented:vi,isPropagationStopped:vi,isImmediatePropagationStopped:vi};var yi=/^([^.]+)(\.(?:[^.]+))?$/,wi={qualifierCompare:function(t,e){return t===e},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(t){return t},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},mi=Object.keys(wi),xi={};function _i(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xi,e=arguments.length>1?arguments[1]:void 0,n=0;n<mi.length;n++){var r=mi[n];this[r]=t[r]||wi[r]}this.context=e||this.context,this.listeners=[],this.emitting=0}var Ei=_i.prototype,ki=function(t,e,n,r,i,o,a){m(r)&&(i=r,r=null),a&&(o=null==o?a:G({},o,a));for(var s=x(n)?n:n.split(/\s+/),u=0;u<s.length;u++){var c=s[u];if(!O(c)){var l=c.match(yi);if(l)if(!1===e(t,c,l[1],l[2]?l[2]:null,r,i,o))break}}},Si=function(t,e){return t.addEventFields(t.context,e),new gi(e.type,e)},Ci=function(t,e,n){if("event"!==y(n))if(_(n))e(t,Si(t,n));else for(var r=x(n)?n:n.split(/\s+/),i=0;i<r.length;i++){var o=r[i];if(!O(o)){var a=o.match(yi);if(a){var s=a[1],u=a[2]?a[2]:null;e(t,Si(t,{type:s,namespace:u,target:t.context}))}}}else e(t,n)};Ei.on=Ei.addListener=function(t,e,n,r,i){return ki(this,(function(t,e,n,r,i,o,a){m(o)&&t.listeners.push({event:e,callback:o,type:n,namespace:r,qualifier:i,conf:a})}),t,e,n,r,i),this},Ei.one=function(t,e,n,r){return this.on(t,e,n,r,{one:!0})},Ei.removeListener=Ei.off=function(t,e,n,r){var i=this;0!==this.emitting&&(this.listeners=this.listeners.slice());for(var o=this.listeners,a=function(a){var s=o[a];ki(i,(function(e,n,r,i,u,c){if((s.type===r||"*"===t)&&(!i&&".*"!==s.namespace||s.namespace===i)&&(!u||e.qualifierCompare(s.qualifier,u))&&(!c||s.callback===c))return o.splice(a,1),!1}),t,e,n,r)},s=o.length-1;s>=0;s--)a(s);return this},Ei.removeAllListeners=function(){return this.removeListener("*")},Ei.emit=Ei.trigger=function(t,e,n){var r=this.listeners,i=r.length;return this.emitting++,x(e)||(e=[e]),Ci(this,(function(t,o){null!=n&&(r=[{event:o.event,type:o.type,namespace:o.namespace,callback:n}],i=r.length);for(var a=function(n){var i=r[n];if(i.type===o.type&&(!i.namespace||i.namespace===o.namespace||".*"===i.namespace)&&t.eventMatches(t.context,i,o)){var a=[o];null!=e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];t.push(r)}}(a,e),t.beforeEmit(t.context,i,o),i.conf&&i.conf.one&&(t.listeners=t.listeners.filter((function(t){return t!==i})));var s=t.callbackContext(t.context,i,o),u=i.callback.apply(s,a);t.afterEmit(t.context,i,o),!1===u&&(o.stopPropagation(),o.preventDefault())}},s=0;s<i;s++)a(s);t.bubble(t.context)&&!o.isPropagationStopped()&&t.parent(t.context).emit(o,e)}),t),this.emitting--,this};var Ti={qualifierCompare:function(t,e){return null==t||null==e?null==t&&null==e:t.sameText(e)},eventMatches:function(t,e,n){var r=e.qualifier;return null==r||t!==n.target&&C(n.target)&&r.matches(n.target)},addEventFields:function(t,e){e.cy=t.cy(),e.target=t},callbackContext:function(t,e,n){return null!=e.qualifier?n.target:t},beforeEmit:function(t,e){e.conf&&e.conf.once&&e.conf.onceCollection.removeListener(e.event,e.qualifier,e.callback)},bubble:function(){return!0},parent:function(t){return t.isChild()?t.parent():t.cy()}},Ai=function(t){return w(t)?new Tr(t):t},Ni={createEmitter:function(){for(var t=0;t<this.length;t++){var e=this[t],n=e._private;n.emitter||(n.emitter=new _i(Ti,e))}return this},emitter:function(){return this._private.emitter},on:function(t,e,n){for(var r=Ai(e),i=0;i<this.length;i++){this[i].emitter().on(t,r,n)}return this},removeListener:function(t,e,n){for(var r=Ai(e),i=0;i<this.length;i++){this[i].emitter().removeListener(t,r,n)}return this},removeAllListeners:function(){for(var t=0;t<this.length;t++){this[t].emitter().removeAllListeners()}return this},one:function(t,e,n){for(var r=Ai(e),i=0;i<this.length;i++){this[i].emitter().one(t,r,n)}return this},once:function(t,e,n){for(var r=Ai(e),i=0;i<this.length;i++){this[i].emitter().on(t,r,n,{once:!0,onceCollection:this})}},emit:function(t,e){for(var n=0;n<this.length;n++){this[n].emitter().emit(t,e)}return this},emitAndNotify:function(t,e){if(0!==this.length)return this.cy().notify(t,this),this.emit(t,e),this}};Vn.eventAliasesOn(Ni);var Oi={nodes:function(t){return this.filter((function(t){return t.isNode()})).filter(t)},edges:function(t){return this.filter((function(t){return t.isEdge()})).filter(t)},byGroup:function(){for(var t=this.spawn(),e=this.spawn(),n=0;n<this.length;n++){var r=this[n];r.isNode()?t.merge(r):e.merge(r)}return{nodes:t,edges:e}},filter:function(t,e){if(void 0===t)return this;if(w(t)||S(t))return new Tr(t).filter(this);if(m(t)){for(var n=this.spawn(),r=0;r<this.length;r++){var i=this[r];(e?t.apply(e,[i,r,this]):t(i,r,this))&&n.merge(i)}return n}return this.spawn()},not:function(t){if(t){w(t)&&(t=this.filter(t));for(var e=[],n=t._private.map,r=0;r<this.length;r++){var i=this[r];n.has(i.id())||e.push(i)}return this.spawn(e)}return this},absoluteComplement:function(){return this.cy().mutableElements().not(this)},intersect:function(t){if(w(t)){var e=t;return this.filter(e)}for(var n=[],r=t,i=this.length<t.length,o=i?r._private.map:this._private.map,a=i?this:r,s=0;s<a.length;s++){var u=a[s]._private.data.id,c=o.get(u);c&&n.push(c.ele)}return this.spawn(n)},xor:function(t){var e=this._private.cy;w(t)&&(t=e.$(t));var n=[],r=t,i=function(t,e){for(var r=0;r<t.length;r++){var i=t[r],o=i._private.data.id;e.hasElementWithId(o)||n.push(i)}};return i(this,r),i(r,this),this.spawn(n)},diff:function(t){var e=this._private.cy;w(t)&&(t=e.$(t));var n=[],r=[],i=[],o=t,a=function(t,e,n){for(var r=0;r<t.length;r++){var o=t[r],a=o._private.data.id;e.hasElementWithId(a)?i.push(o):n.push(o)}};return a(this,o,n),a(o,this,r),{left:this.spawn(n,{unique:!0}),right:this.spawn(r,{unique:!0}),both:this.spawn(i,{unique:!0})}},add:function(t){var e=this._private.cy;if(!t)return this;if(w(t)){var n=t;t=e.mutableElements().filter(n)}for(var r=[],i=0;i<this.length;i++)r.push(this[i]);for(var o=this._private.map,a=0;a<t.length;a++){var s=!o.has(t[a].id());s&&r.push(t[a])}return this.spawn(r)},merge:function(t){var e=this._private,n=e.cy;if(!t)return this;if(t&&w(t)){var r=t;t=n.mutableElements().filter(r)}for(var i=e.map,o=0;o<t.length;o++){var a=t[o],s=a._private.data.id;if(!i.has(s)){var u=this.length++;this[u]=a,i.set(s,{ele:a,index:u})}else{var c=i.get(s).index;this[c]=a,i.set(s,{ele:a,index:c})}}return this},unmergeAt:function(t){var e=this[t].id(),n=this._private.map;this[t]=void 0,n.delete(e);var r=t===this.length-1;if(this.length>1&&!r){var i=this.length-1,o=this[i],a=o._private.data.id;this[i]=void 0,this[t]=o,n.set(a,{ele:o,index:t})}return this.length--,this},unmergeOne:function(t){t=t[0];var e=this._private,n=t._private.data.id,r=e.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(t){var e=this._private.cy;if(!t)return this;if(t&&w(t)){var n=t;t=e.mutableElements().filter(n)}for(var r=0;r<t.length;r++)this.unmergeOne(t[r]);return this},unmergeBy:function(t){for(var e=this.length-1;e>=0;e--){t(this[e])&&this.unmergeAt(e)}return this},map:function(t,e){for(var n=[],r=0;r<this.length;r++){var i=this[r],o=e?t.apply(e,[i,r,this]):t(i,r,this);n.push(o)}return n},reduce:function(t,e){for(var n=e,r=0;r<this.length;r++)n=t(n,this[r],r,this);return n},max:function(t,e){for(var n,r=-1/0,i=0;i<this.length;i++){var o=this[i],a=e?t.apply(e,[o,i,this]):t(o,i,this);a>r&&(r=a,n=o)}return{value:r,ele:n}},min:function(t,e){for(var n,r=1/0,i=0;i<this.length;i++){var o=this[i],a=e?t.apply(e,[o,i,this]):t(o,i,this);a<r&&(r=a,n=o)}return{value:r,ele:n}}},Li=Oi;Li.u=Li["|"]=Li["+"]=Li.union=Li.or=Li.add,Li["\\"]=Li["!"]=Li["-"]=Li.difference=Li.relativeComplement=Li.subtract=Li.not,Li.n=Li["&"]=Li["."]=Li.and=Li.intersection=Li.intersect,Li["^"]=Li["(+)"]=Li["(-)"]=Li.symmetricDifference=Li.symdiff=Li.xor,Li.fnFilter=Li.filterFn=Li.stdFilter=Li.filter,Li.complement=Li.abscomp=Li.absoluteComplement;var Pi=function(t,e){var n=t.cy().hasCompoundNodes();function r(t){var e=t.pstyle("z-compound-depth");return"auto"===e.value?n?t.zDepth():0:"bottom"===e.value?-1:"top"===e.value?st:0}var i=r(t)-r(e);if(0!==i)return i;function o(t){return"auto"===t.pstyle("z-index-compare").value&&t.isNode()?1:0}var a=o(t)-o(e);if(0!==a)return a;var s=t.pstyle("z-index").value-e.pstyle("z-index").value;return 0!==s?s:t.poolIndex()-e.poolIndex()},Ii={forEach:function(t,e){if(m(t))for(var n=this.length,r=0;r<n;r++){var i=this[r];if(!1===(e?t.apply(e,[i,r,this]):t(i,r,this)))break}return this},toArray:function(){for(var t=[],e=0;e<this.length;e++)t.push(this[e]);return t},slice:function(t,e){var n=[],r=this.length;null==e&&(e=r),null==t&&(t=0),t<0&&(t=r+t),e<0&&(e=r+e);for(var i=t;i>=0&&i<e&&i<r;i++)n.push(this[i]);return this.spawn(n)},size:function(){return this.length},eq:function(t){return this[t]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return 0===this.length},nonempty:function(){return!this.empty()},sort:function(t){if(!m(t))return this;var e=this.toArray().sort(t);return this.spawn(e)},sortByZIndex:function(){return this.sort(Pi)},zDepth:function(){var t=this[0];if(t){var e=t._private;if("nodes"===e.group){var n=e.data.parent?t.parents().size():0;return t.isParent()?n:st-1}var r=e.source,i=e.target,o=r.zDepth(),a=i.zDepth();return Math.max(o,a,0)}}};Ii.each=Ii.forEach;"undefined"!=("undefined"==typeof Symbol?"undefined":a(Symbol))&&"undefined"!=a(Symbol.iterator)&&(Ii[Symbol.iterator]=function(){var t=this,e={value:void 0,done:!1},n=0,r=this.length;return l({next:function(){return n<r?e.value=t[n++]:(e.value=void 0,e.done=!0),e}},Symbol.iterator,(function(){return this}))});var ji=wt({nodeDimensionsIncludeLabels:!1}),Mi={layoutDimensions:function(t){var e;if(t=ji(t),this.takesUpSpace())if(t.nodeDimensionsIncludeLabels){var n=this.boundingBox();e={w:n.w,h:n.h}}else e={w:this.outerWidth(),h:this.outerHeight()};else e={w:0,h:0};return 0!==e.w&&0!==e.h||(e.w=e.h=1),e},layoutPositions:function(t,e,n){var r=this.nodes(),i=this.cy(),o=e.eles,a=function(t){return t.id()},s=P(n,a);t.emit({type:"layoutstart",layout:t}),t.animations=[];var u=e.spacingFactor&&1!==e.spacingFactor,c=function(){if(!u)return null;for(var t=ee(),e=0;e<r.length;e++){var n=r[e],i=s(n,e);ne(t,i.x,i.y)}return t}(),l=P((function(t,n){var r=s(t,n);u&&(r=function(t,e,n){var r=e.x1+e.w/2,i=e.y1+e.h/2;return{x:r+(n.x-r)*t,y:i+(n.y-i)*t}}(Math.abs(e.spacingFactor),c,r));return null!=e.transform&&(r=e.transform(t,r)),r}),a);if(e.animate){for(var f=0;f<r.length;f++){var h=r[f],d=l(h,f);if(null==e.animateFilter||e.animateFilter(h,f)){var p=h.animation({position:d,duration:e.animationDuration,easing:e.animationEasing});t.animations.push(p)}else h.position(d)}if(e.fit){var g=i.animation({fit:{boundingBox:o.boundingBoxAt(l),padding:e.padding},duration:e.animationDuration,easing:e.animationEasing});t.animations.push(g)}else if(void 0!==e.zoom&&void 0!==e.pan){var v=i.animation({zoom:e.zoom,pan:e.pan,duration:e.animationDuration,easing:e.animationEasing});t.animations.push(v)}t.animations.forEach((function(t){return t.play()})),t.one("layoutready",e.ready),t.emit({type:"layoutready",layout:t}),Fn.all(t.animations.map((function(t){return t.promise()}))).then((function(){t.one("layoutstop",e.stop),t.emit({type:"layoutstop",layout:t})}))}else r.positions(l),e.fit&&i.fit(e.eles,e.padding),null!=e.zoom&&i.zoom(e.zoom),e.pan&&i.pan(e.pan),t.one("layoutready",e.ready),t.emit({type:"layoutready",layout:t}),t.one("layoutstop",e.stop),t.emit({type:"layoutstop",layout:t});return this},layout:function(t){return this.cy().makeLayout(G({},t,{eles:this}))}};function Di(t,e,n){var r,i=n._private,o=i.styleCache=i.styleCache||[];return null!=(r=o[t])?r:r=o[t]=e(n)}function Ri(t,e){return t=et(t),function(n){return Di(t,e,n)}}function Bi(t,e){t=et(t);var n=function(t){return e.call(t)};return function(){var e=this[0];if(e)return Di(t,n,e)}}Mi.createLayout=Mi.makeLayout=Mi.layout;var Gi={recalculateRenderedStyle:function(t){var e=this.cy(),n=e.renderer(),r=e.styleEnabled();return n&&r&&n.recalculateRenderedStyle(this,t),this},dirtyStyleCache:function(){var t,e=this.cy(),n=function(t){return t._private.styleCache=null};e.hasCompoundNodes()?((t=this.spawnSelf().merge(this.descendants()).merge(this.parents())).merge(t.connectedEdges()),t.forEach(n)):this.forEach((function(t){n(t),t.connectedEdges().forEach(n)}));return this},updateStyle:function(t){var e=this._private.cy;if(!e.styleEnabled())return this;if(e.batching())return e._private.batchStyleEles.merge(this),this;var n=e.hasCompoundNodes(),r=e.style(),i=this;t=!(!t&&void 0!==t),n&&(i=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var o=r.apply(i);return t?o.emitAndNotify("style"):o.emit("style"),this},parsedStyle:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this[0],r=n.cy();if(r.styleEnabled()&&n){var i=n._private.style[t];return null!=i?i:e?r.style().getDefaultProperty(t):null}},numericStyle:function(t){var e=this[0];if(e.cy().styleEnabled()&&e){var n=e.pstyle(t);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(t){var e=this[0];if(e.cy().styleEnabled())return e?e.pstyle(t).units:void 0},renderedStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=this[0];return n?e.style().getRenderedStyle(n,t):void 0},style:function(t,e){var n=this.cy();if(!n.styleEnabled())return this;var r=n.style();if(_(t)){var i=t;r.applyBypass(this,i,!1),this.emitAndNotify("style")}else if(w(t)){if(void 0===e){var o=this[0];return o?r.getStylePropertyValue(o,t):void 0}r.applyBypass(this,t,e,!1),this.emitAndNotify("style")}else if(void 0===t){var a=this[0];return a?r.getRawStyle(a):void 0}return this},removeStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=e.style();if(void 0===t)for(var r=0;r<this.length;r++){var i=this[r];n.removeAllBypasses(i,!1)}else{t=t.split(/\s+/);for(var o=0;o<this.length;o++){var a=this[o];n.removeBypasses(a,t,!1)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var t=this.cy();if(!t.styleEnabled())return 1;var e=t.hasCompoundNodes(),n=this[0];if(n){var r=n._private,i=n.pstyle("opacity").value;if(!e)return i;var o=r.data.parent?n.parents():null;if(o)for(var a=0;a<o.length;a++){i*=o[a].pstyle("opacity").value}return i}},transparent:function(){if(!this.cy().styleEnabled())return!1;var t=this[0],e=t.cy().hasCompoundNodes();return t?e?0===t.effectiveOpacity():0===t.pstyle("opacity").value:void 0},backgrounding:function(){return!!this.cy().styleEnabled()&&!!this[0]._private.backgrounding}};function Hi(t,e){var n=t._private.data.parent?t.parents():null;if(n)for(var r=0;r<n.length;r++){if(!e(n[r]))return!1}return!0}function Fi(t){var e=t.ok,n=t.edgeOkViaNode||t.ok,r=t.parentOk||t.ok;return function(){var t=this.cy();if(!t.styleEnabled())return!0;var i=this[0],o=t.hasCompoundNodes();if(i){var a=i._private;if(!e(i))return!1;if(i.isNode())return!o||Hi(i,r);var s=a.source,u=a.target;return n(s)&&(!o||Hi(s,n))&&(s===u||n(u)&&(!o||Hi(u,n)))}}}var zi=Ri("eleTakesUpSpace",(function(t){return"element"===t.pstyle("display").value&&0!==t.width()&&(!t.isNode()||0!==t.height())}));Gi.takesUpSpace=Bi("takesUpSpace",Fi({ok:zi}));var Yi=Ri("eleInteractive",(function(t){return"yes"===t.pstyle("events").value&&"visible"===t.pstyle("visibility").value&&zi(t)})),Vi=Ri("parentInteractive",(function(t){return"visible"===t.pstyle("visibility").value&&zi(t)}));Gi.interactive=Bi("interactive",Fi({ok:Yi,parentOk:Vi,edgeOkViaNode:zi})),Gi.noninteractive=function(){var t=this[0];if(t)return!t.interactive()};var qi=Ri("eleVisible",(function(t){return"visible"===t.pstyle("visibility").value&&0!==t.pstyle("opacity").pfValue&&zi(t)})),Ui=zi;Gi.visible=Bi("visible",Fi({ok:qi,edgeOkViaNode:Ui})),Gi.hidden=function(){var t=this[0];if(t)return!t.visible()},Gi.isBundledBezier=Bi("isBundledBezier",(function(){return!!this.cy().styleEnabled()&&(!this.removed()&&"bezier"===this.pstyle("curve-style").value&&this.takesUpSpace())})),Gi.bypass=Gi.css=Gi.style,Gi.renderedCss=Gi.renderedStyle,Gi.removeBypass=Gi.removeCss=Gi.removeStyle,Gi.pstyle=Gi.parsedStyle;var Xi={};function Wi(t){return function(){var e=arguments,n=[];if(2===e.length){var r=e[0],i=e[1];this.on(t.event,r,i)}else if(1===e.length&&m(e[0])){var o=e[0];this.on(t.event,o)}else if(0===e.length||1===e.length&&x(e[0])){for(var a=1===e.length?e[0]:null,s=0;s<this.length;s++){var u=this[s],c=!t.ableField||u._private[t.ableField],l=u._private[t.field]!=t.value;if(t.overrideAble){var f=t.overrideAble(u);if(void 0!==f&&(c=f,!f))return this}c&&(u._private[t.field]=t.value,l&&n.push(u))}var h=this.spawn(n);h.updateStyle(),h.emit(t.event),a&&h.emit(a)}return this}}function $i(t){Xi[t.field]=function(){var e=this[0];if(e){if(t.overrideField){var n=t.overrideField(e);if(void 0!==n)return n}return e._private[t.field]}},Xi[t.on]=Wi({event:t.on,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!0}),Xi[t.off]=Wi({event:t.off,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!1})}$i({field:"locked",overrideField:function(t){return!!t.cy().autolock()||void 0},on:"lock",off:"unlock"}),$i({field:"grabbable",overrideField:function(t){return!t.cy().autoungrabify()&&!t.pannable()&&void 0},on:"grabify",off:"ungrabify"}),$i({field:"selected",ableField:"selectable",overrideAble:function(t){return!t.cy().autounselectify()&&void 0},on:"select",off:"unselect"}),$i({field:"selectable",overrideField:function(t){return!t.cy().autounselectify()&&void 0},on:"selectify",off:"unselectify"}),Xi.deselect=Xi.unselect,Xi.grabbed=function(){var t=this[0];if(t)return t._private.grabbed},$i({field:"active",on:"activate",off:"unactivate"}),$i({field:"pannable",on:"panify",off:"unpanify"}),Xi.inactive=function(){var t=this[0];if(t)return!t._private.active};var Ki={},Zi=function(t){return function(e){for(var n=[],r=0;r<this.length;r++){var i=this[r];if(i.isNode()){for(var o=!1,a=i.connectedEdges(),s=0;s<a.length;s++){var u=a[s],c=u.source(),l=u.target();if(t.noIncomingEdges&&l===i&&c!==i||t.noOutgoingEdges&&c===i&&l!==i){o=!0;break}}o||n.push(i)}}return this.spawn(n,{unique:!0}).filter(e)}},Qi=function(t){return function(e){for(var n=[],r=0;r<this.length;r++){var i=this[r];if(i.isNode())for(var o=i.connectedEdges(),a=0;a<o.length;a++){var s=o[a],u=s.source(),c=s.target();t.outgoing&&u===i?(n.push(s),n.push(c)):t.incoming&&c===i&&(n.push(s),n.push(u))}}return this.spawn(n,{unique:!0}).filter(e)}},Ji=function(t){return function(e){for(var n=this,r=[],i={};;){var o=t.outgoing?n.outgoers():n.incomers();if(0===o.length)break;for(var a=!1,s=0;s<o.length;s++){var u=o[s],c=u.id();i[c]||(i[c]=!0,r.push(u),a=!0)}if(!a)break;n=o}return this.spawn(r,{unique:!0}).filter(e)}};function to(t){return function(e){for(var n=[],r=0;r<this.length;r++){var i=this[r]._private[t.attr];i&&n.push(i)}return this.spawn(n,{unique:!0}).filter(e)}}function eo(t){return function(e){var n=[],r=this._private.cy,i=t||{};w(e)&&(e=r.$(e));for(var o=0;o<e.length;o++)for(var a=e[o]._private.edges,s=0;s<a.length;s++){var u=a[s],c=u._private.data,l=this.hasElementWithId(c.source)&&e.hasElementWithId(c.target),f=e.hasElementWithId(c.source)&&this.hasElementWithId(c.target);if(l||f){if(i.thisIsSrc||i.thisIsTgt){if(i.thisIsSrc&&!l)continue;if(i.thisIsTgt&&!f)continue}n.push(u)}}return this.spawn(n,{unique:!0})}}function no(t){return t=G({},{codirected:!1},t),function(e){for(var n=[],r=this.edges(),i=t,o=0;o<r.length;o++)for(var a=r[o]._private,s=a.source,u=s._private.data.id,c=a.data.target,l=s._private.edges,f=0;f<l.length;f++){var h=l[f],d=h._private.data,p=d.target,g=d.source,v=p===c&&g===u,b=u===p&&c===g;(i.codirected&&v||!i.codirected&&(v||b))&&n.push(h)}return this.spawn(n,{unique:!0}).filter(e)}}Ki.clearTraversalCache=function(){for(var t=0;t<this.length;t++)this[t]._private.traversalCache=null},G(Ki,{roots:Zi({noIncomingEdges:!0}),leaves:Zi({noOutgoingEdges:!0}),outgoers:Pr(Qi({outgoing:!0}),"outgoers"),successors:Ji({outgoing:!0}),incomers:Pr(Qi({incoming:!0}),"incomers"),predecessors:Ji({incoming:!0})}),G(Ki,{neighborhood:Pr((function(t){for(var e=[],n=this.nodes(),r=0;r<n.length;r++)for(var i=n[r],o=i.connectedEdges(),a=0;a<o.length;a++){var s=o[a],u=s.source(),c=s.target(),l=i===u?c:u;l.length>0&&e.push(l[0]),e.push(s[0])}return this.spawn(e,{unique:!0}).filter(t)}),"neighborhood"),closedNeighborhood:function(t){return this.neighborhood().add(this).filter(t)},openNeighborhood:function(t){return this.neighborhood(t)}}),Ki.neighbourhood=Ki.neighborhood,Ki.closedNeighbourhood=Ki.closedNeighborhood,Ki.openNeighbourhood=Ki.openNeighborhood,G(Ki,{source:Pr((function(t){var e,n=this[0];return n&&(e=n._private.source||n.cy().collection()),e&&t?e.filter(t):e}),"source"),target:Pr((function(t){var e,n=this[0];return n&&(e=n._private.target||n.cy().collection()),e&&t?e.filter(t):e}),"target"),sources:to({attr:"source"}),targets:to({attr:"target"})}),G(Ki,{edgesWith:Pr(eo(),"edgesWith"),edgesTo:Pr(eo({thisIsSrc:!0}),"edgesTo")}),G(Ki,{connectedEdges:Pr((function(t){for(var e=[],n=0;n<this.length;n++){var r=this[n];if(r.isNode())for(var i=r._private.edges,o=0;o<i.length;o++){var a=i[o];e.push(a)}}return this.spawn(e,{unique:!0}).filter(t)}),"connectedEdges"),connectedNodes:Pr((function(t){for(var e=[],n=0;n<this.length;n++){var r=this[n];r.isEdge()&&(e.push(r.source()[0]),e.push(r.target()[0]))}return this.spawn(e,{unique:!0}).filter(t)}),"connectedNodes"),parallelEdges:Pr(no(),"parallelEdges"),codirectedEdges:Pr(no({codirected:!0}),"codirectedEdges")}),G(Ki,{components:function(t){var e=this,n=e.cy(),r=n.collection(),i=null==t?e.nodes():t.nodes(),o=[];null!=t&&i.empty()&&(i=t.sources());var a=function(t,e){r.merge(t),i.unmerge(t),e.merge(t)};if(i.empty())return e.spawn();var s=function(){var t=n.collection();o.push(t);var r=i[0];a(r,t),e.bfs({directed:!1,roots:r,visit:function(e){return a(e,t)}}),t.forEach((function(n){n.connectedEdges().forEach((function(n){e.has(n)&&t.has(n.source())&&t.has(n.target())&&t.merge(n)}))}))};do{s()}while(i.length>0);return o},component:function(){var t=this[0];return t.cy().mutableElements().components(t)[0]}}),Ki.componentsOf=Ki.components;var ro=function(t,e,n){for(var r=null!=n?n:vt();t.hasElementWithId(r);)r=vt();return r},io=function(t,e,n){if(void 0!==t&&A(t)){var r=new kt,i=!1;if(e){if(e.length>0&&_(e[0])&&!C(e[0])){i=!0;for(var o=[],a=new Ct,s=0,u=e.length;s<u;s++){var c=e[s];null==c.data&&(c.data={});var l=c.data;if(null==l.id)l.id=ro(t,c);else if(t.hasElementWithId(l.id)||a.has(l.id))continue;var f=new Tt(t,c,!1);o.push(f),a.add(l.id)}e=o}}else e=[];this.length=0;for(var h=0,d=e.length;h<d;h++){var p=e[h][0];if(null!=p){var g=p._private.data.id;(null==n||n.unique&&!r.has(g))&&(r.set(g,{index:this.length,ele:p}),this[this.length]=p,this.length++)}}this._private={cy:t,map:r},i&&this.restore()}else ht("A collection must have a reference to the core")},oo=Tt.prototype=io.prototype;oo.instanceString=function(){return"collection"},oo.spawn=function(t,e,n){return A(t)||(n=e,e=t,t=this.cy()),new io(t,e,n)},oo.spawnSelf=function(){return this.spawn(this)},oo.cy=function(){return this._private.cy},oo.renderer=function(){return this._private.cy.renderer()},oo.element=function(){return this[0]},oo.collection=function(){return T(this)?this:new io(this._private.cy,[this])},oo.unique=function(){return new io(this._private.cy,this,{unique:!0})},oo.hasElementWithId=function(t){return t=""+t,this._private.map.has(t)},oo.getElementById=function(t){t=""+t;var e=this._private.cy,n=this._private.map.get(t);return n?n.ele:new io(e)},oo.$id=oo.getElementById,oo.poolIndex=function(){var t=this._private.cy._private.elements,e=this[0]._private.data.id;return t._private.map.get(e).index},oo.indexOf=function(t){var e=t[0]._private.data.id;return this._private.map.get(e).index},oo.indexOfId=function(t){return t=""+t,this._private.map.get(t).index},oo.json=function(t){var e=this.element(),n=this.cy();if(null==e&&t)return this;if(null!=e){var r=e._private;if(_(t)){if(n.startBatch(),t.data){e.data(t.data);var i=r.data;if(e.isEdge()){var o=!1,a={},s=t.data.source,u=t.data.target;null!=s&&s!=i.source&&(a.source=""+s,o=!0),null!=u&&u!=i.target&&(a.target=""+u,o=!0),o&&(e=e.move(a))}else{var c="parent"in t.data,l=t.data.parent;!c||null==l&&null==i.parent||l==i.parent||(void 0===l&&(l=null),null!=l&&(l=""+l),e=e.move({parent:l}))}}t.position&&e.position(t.position);var f=function(n,i,o){var a=t[n];null!=a&&a!==r[n]&&(a?e[i]():e[o]())};return f("removed","remove","restore"),f("selected","select","unselect"),f("selectable","selectify","unselectify"),f("locked","lock","unlock"),f("grabbable","grabify","ungrabify"),f("pannable","panify","unpanify"),null!=t.classes&&e.classes(t.classes),n.endBatch(),this}if(void 0===t){var h={data:gt(r.data),position:gt(r.position),group:r.group,removed:r.removed,selected:r.selected,selectable:r.selectable,locked:r.locked,grabbable:r.grabbable,pannable:r.pannable,classes:null};h.classes="";var d=0;return r.classes.forEach((function(t){return h.classes+=0==d++?t:" "+t})),h}}},oo.jsons=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e].json();t.push(n)}return t},oo.clone=function(){for(var t=this.cy(),e=[],n=0;n<this.length;n++){var r=this[n].json(),i=new Tt(t,r,!1);e.push(i)}return new io(t,e)},oo.copy=oo.clone,oo.restore=function(){for(var t,e,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,o=i.cy(),a=o._private,s=[],u=[],c=0,l=i.length;c<l;c++){var f=i[c];r&&!f.removed()||(f.isNode()?s.push(f):u.push(f))}t=s.concat(u);var h=function(){t.splice(e,1),e--};for(e=0;e<t.length;e++){var d=t[e],p=d._private,g=p.data;if(d.clearTraversalCache(),r||p.removed)if(void 0===g.id)g.id=ro(o,d);else if(E(g.id))g.id=""+g.id;else{if(O(g.id)||!w(g.id)){ht("Can not create element with invalid string ID `"+g.id+"`"),h();continue}if(o.hasElementWithId(g.id)){ht("Can not create second element with ID `"+g.id+"`"),h();continue}}else;var v=g.id;if(d.isNode()){var b=p.position;null==b.x&&(b.x=0),null==b.y&&(b.y=0)}if(d.isEdge()){for(var y=d,m=["source","target"],x=m.length,_=!1,k=0;k<x;k++){var S=m[k],C=g[S];E(C)&&(C=g[S]=""+g[S]),null==C||""===C?(ht("Can not create edge `"+v+"` with unspecified "+S),_=!0):o.hasElementWithId(C)||(ht("Can not create edge `"+v+"` with nonexistant "+S+" `"+C+"`"),_=!0)}if(_){h();continue}var T=o.getElementById(g.source),A=o.getElementById(g.target);T.same(A)?T._private.edges.push(y):(T._private.edges.push(y),A._private.edges.push(y)),y._private.source=T,y._private.target=A}p.map=new kt,p.map.set(v,{ele:d,index:0}),p.removed=!1,r&&o.addToPool(d)}for(var N=0;N<s.length;N++){var L=s[N],P=L._private.data;E(P.parent)&&(P.parent=""+P.parent);var I=P.parent,j=null!=I;if(j){var M=o.getElementById(I);if(M.empty())P.parent=void 0;else{for(var D=!1,R=M;!R.empty();){if(L.same(R)){D=!0,P.parent=void 0;break}R=R.parent()}D||(M[0]._private.children.push(L),L._private.parent=M[0],a.hasCompoundNodes=!0)}}}if(t.length>0){for(var B=new io(o,t),G=0;G<B.length;G++){var H=B[G];H.isNode()||(H.parallelEdges().clearTraversalCache(),H.source().clearTraversalCache(),H.target().clearTraversalCache())}(a.hasCompoundNodes?o.collection().merge(B).merge(B.connectedNodes()).merge(B.parent()):B).dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(n),n?B.emitAndNotify("add"):r&&B.emit("add")}return i},oo.removed=function(){var t=this[0];return t&&t._private.removed},oo.inside=function(){var t=this[0];return t&&!t._private.removed},oo.remove=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=[],i={},o=n._private.cy;function a(t){for(var e=t._private.edges,n=0;n<e.length;n++)u(e[n])}function s(t){for(var e=t._private.children,n=0;n<e.length;n++)u(e[n])}function u(t){var n=i[t.id()];e&&t.removed()||n||(i[t.id()]=!0,t.isNode()?(r.push(t),a(t),s(t)):r.unshift(t))}for(var c=0,l=n.length;c<l;c++){var f=n[c];u(f)}function h(t,e){var n=t._private.edges;mt(n,e),t.clearTraversalCache()}function d(t){t.clearTraversalCache()}var p=[];function g(t,e){e=e[0];var n=(t=t[0])._private.children,r=t.id();mt(n,e),e._private.parent=null,p.ids[r]||(p.ids[r]=!0,p.push(t))}p.ids={},n.dirtyCompoundBoundsCache(),e&&o.removeFromPool(r);for(var v=0;v<r.length;v++){var b=r[v];if(b.isEdge()){var y=b.source()[0],w=b.target()[0];h(y,b),h(w,b);for(var m=b.parallelEdges(),x=0;x<m.length;x++){var _=m[x];d(_),_.isBundledBezier()&&_.dirtyBoundingBoxCache()}}else{var E=b.parent();0!==E.length&&g(E,b)}e&&(b._private.removed=!0)}var k=o._private.elements;o._private.hasCompoundNodes=!1;for(var S=0;S<k.length;S++){var C=k[S];if(C.isParent()){o._private.hasCompoundNodes=!0;break}}var T=new io(this.cy(),r);T.size()>0&&(t?T.emitAndNotify("remove"):e&&T.emit("remove"));for(var A=0;A<p.length;A++){var N=p[A];e&&N.removed()||N.updateStyle()}return T},oo.move=function(t){var e=this._private.cy,n=this,r=function(t){return null==t?t:""+t};if(void 0!==t.source||void 0!==t.target){var i=r(t.source),o=r(t.target),a=null!=i&&e.hasElementWithId(i),s=null!=o&&e.hasElementWithId(o);(a||s)&&(e.batch((function(){n.remove(!1,!1),n.emitAndNotify("moveout");for(var t=0;t<n.length;t++){var e=n[t],r=e._private.data;e.isEdge()&&(a&&(r.source=i),s&&(r.target=o))}n.restore(!1,!1)})),n.emitAndNotify("move"))}else if(void 0!==t.parent){var u=r(t.parent);if(null===u||e.hasElementWithId(u)){var c=null===u?void 0:u;e.batch((function(){var t=n.remove(!1,!1);t.emitAndNotify("moveout");for(var e=0;e<n.length;e++){var r=n[e],i=r._private.data;r.isNode()&&(i.parent=c)}t.restore(!1,!1)})),n.emitAndNotify("move")}}return this},[jn,qn,Un,Nr,Ir,Hr,Fr,pi,Ni,Oi,{isNode:function(){return"nodes"===this.group()},isEdge:function(){return"edges"===this.group()},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var t=this[0];if(t)return t._private.group}},Ii,Mi,Gi,Xi,Ki].forEach((function(t){G(oo,t)}));var ao={add:function(t){var e,n=this;if(S(t)){var r=t;if(r._private.cy===n)e=r.restore();else{for(var i=[],o=0;o<r.length;o++){var a=r[o];i.push(a.json())}e=new io(n,i)}}else if(x(t)){e=new io(n,t)}else if(_(t)&&(x(t.nodes)||x(t.edges))){for(var s=t,u=[],c=["nodes","edges"],l=0,f=c.length;l<f;l++){var h=c[l],d=s[h];if(x(d))for(var p=0,g=d.length;p<g;p++){var v=G({group:h},d[p]);u.push(v)}}e=new io(n,u)}else{e=new Tt(n,t).collection()}return e},remove:function(t){if(S(t));else if(w(t)){var e=t;t=this.$(e)}return t.remove()}};
|
||
/*! 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 so=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,n,r){var i={x:e.x+r.dx*n,v:e.v+r.dv*n,tension:e.tension,friction:e.friction};return{dx:i.v,dv:t(i)}}function n(n,r){var i={dx:n.v,dv:t(n)},o=e(n,.5*r,i),a=e(n,.5*r,o),s=e(n,r,a),u=1/6*(i.dx+2*(o.dx+a.dx)+s.dx),c=1/6*(i.dv+2*(o.dv+a.dv)+s.dv);return n.x=n.x+u*r,n.v=n.v+c*r,n}return function t(e,r,i){var o,a,s,u={x:-1,v:0,tension:null,friction:null},c=[0],l=0;for(e=parseFloat(e)||500,r=parseFloat(r)||20,i=i||null,u.tension=e,u.friction=r,a=(o=null!==i)?(l=t(e,r))/i*.016:.016;s=n(s||u,a),c.push(1+s.x),l+=16,Math.abs(s.x)>1e-4&&Math.abs(s.v)>1e-4;);return o?function(t){return c[t*(c.length-1)|0]}:l}}(),uo=function(t,e,n,r){var i=function(t,e,n,r){var i=4,o=.001,a=1e-7,s=10,u=11,c=1/(u-1),l="undefined"!=typeof Float32Array;if(4!==arguments.length)return!1;for(var f=0;f<4;++f)if("number"!=typeof arguments[f]||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var h=l?new Float32Array(u):new Array(u);function d(t,e){return 1-3*e+3*t}function p(t,e){return 3*e-6*t}function g(t){return 3*t}function v(t,e,n){return((d(e,n)*t+p(e,n))*t+g(e))*t}function b(t,e,n){return 3*d(e,n)*t*t+2*p(e,n)*t+g(e)}function y(e,r){for(var o=0;o<i;++o){var a=b(r,t,n);if(0===a)return r;r-=(v(r,t,n)-e)/a}return r}function w(){for(var e=0;e<u;++e)h[e]=v(e*c,t,n)}function m(e,r,i){var o,u,c=0;do{(o=v(u=r+(i-r)/2,t,n)-e)>0?i=u:r=u}while(Math.abs(o)>a&&++c<s);return u}function x(e){for(var r=0,i=1,a=u-1;i!==a&&h[i]<=e;++i)r+=c;--i;var s=r+(e-h[i])/(h[i+1]-h[i])*c,l=b(s,t,n);return l>=o?y(e,s):0===l?s:m(e,r,r+c)}var _=!1;function E(){_=!0,t===e&&n===r||w()}var k=function(i){return _||E(),t===e&&n===r?i:0===i?0:1===i?1:v(x(i),e,r)};k.getControlPoints=function(){return[{x:t,y:e},{x:n,y:r}]};var S="generateBezier("+[t,e,n,r]+")";return k.toString=function(){return S},k}(t,e,n,r);return function(t,e,n){return t+(e-t)*i(n)}},co={linear:function(t,e,n){return t+(e-t)*n},ease:uo(.25,.1,.25,1),"ease-in":uo(.42,0,1,1),"ease-out":uo(0,0,.58,1),"ease-in-out":uo(.42,0,.58,1),"ease-in-sine":uo(.47,0,.745,.715),"ease-out-sine":uo(.39,.575,.565,1),"ease-in-out-sine":uo(.445,.05,.55,.95),"ease-in-quad":uo(.55,.085,.68,.53),"ease-out-quad":uo(.25,.46,.45,.94),"ease-in-out-quad":uo(.455,.03,.515,.955),"ease-in-cubic":uo(.55,.055,.675,.19),"ease-out-cubic":uo(.215,.61,.355,1),"ease-in-out-cubic":uo(.645,.045,.355,1),"ease-in-quart":uo(.895,.03,.685,.22),"ease-out-quart":uo(.165,.84,.44,1),"ease-in-out-quart":uo(.77,0,.175,1),"ease-in-quint":uo(.755,.05,.855,.06),"ease-out-quint":uo(.23,1,.32,1),"ease-in-out-quint":uo(.86,0,.07,1),"ease-in-expo":uo(.95,.05,.795,.035),"ease-out-expo":uo(.19,1,.22,1),"ease-in-out-expo":uo(1,0,0,1),"ease-in-circ":uo(.6,.04,.98,.335),"ease-out-circ":uo(.075,.82,.165,1),"ease-in-out-circ":uo(.785,.135,.15,.86),spring:function(t,e,n){if(0===n)return co.linear;var r=so(t,e,n);return function(t,e,n){return t+(e-t)*r(n)}},"cubic-bezier":uo};function lo(t,e,n,r,i){if(1===r)return n;if(e===n)return n;var o=i(e,n,r);return null==t||((t.roundValue||t.color)&&(o=Math.round(o)),void 0!==t.min&&(o=Math.max(o,t.min)),void 0!==t.max&&(o=Math.min(o,t.max))),o}function fo(t,e){return null!=t.pfValue||null!=t.value?null==t.pfValue||null!=e&&"%"===e.type.units?t.value:t.pfValue:t}function ho(t,e,n,r,i){var o=null!=i?i.type:null;n<0?n=0:n>1&&(n=1);var a=fo(t,i),s=fo(e,i);if(E(a)&&E(s))return lo(o,a,s,n,r);if(x(a)&&x(s)){for(var u=[],c=0;c<s.length;c++){var l=a[c],f=s[c];if(null!=l&&null!=f){var h=lo(o,l,f,n,r);u.push(h)}else u.push(f)}return u}}function po(t,e,n,r){var i=!r,o=t._private,a=e._private,s=a.easing,u=a.startTime,c=(r?t:t.cy()).style();if(!a.easingImpl)if(null==s)a.easingImpl=co.linear;else{var l,f,h;if(w(s))l=c.parse("transition-timing-function",s).value;else l=s;w(l)?(f=l,h=[]):(f=l[1],h=l.slice(2).map((function(t){return+t}))),h.length>0?("spring"===f&&h.push(a.duration),a.easingImpl=co[f].apply(null,h)):a.easingImpl=co[f]}var d,p=a.easingImpl;if(d=0===a.duration?1:(n-u)/a.duration,a.applying&&(d=a.progress),d<0?d=0:d>1&&(d=1),null==a.delay){var g=a.startPosition,v=a.position;if(v&&i&&!t.locked()){var b={};go(g.x,v.x)&&(b.x=ho(g.x,v.x,d,p)),go(g.y,v.y)&&(b.y=ho(g.y,v.y,d,p)),t.position(b)}var y=a.startPan,m=a.pan,x=o.pan,_=null!=m&&r;_&&(go(y.x,m.x)&&(x.x=ho(y.x,m.x,d,p)),go(y.y,m.y)&&(x.y=ho(y.y,m.y,d,p)),t.emit("pan"));var E=a.startZoom,k=a.zoom,S=null!=k&&r;S&&(go(E,k)&&(o.zoom=te(o.minZoom,ho(E,k,d,p),o.maxZoom)),t.emit("zoom")),(_||S)&&t.emit("viewport");var C=a.style;if(C&&C.length>0&&i){for(var T=0;T<C.length;T++){var A=C[T],N=A.name,O=A,L=a.startStyle[N],P=ho(L,O,d,p,c.properties[L.name]);c.overrideBypass(t,N,P)}t.emit("style")}}return a.progress=d,d}function go(t,e){return null!=t&&null!=e&&(!(!E(t)||!E(e))||!(!t||!e))}function vo(t,e,n,r){var i=e._private;i.started=!0,i.startTime=n-i.progress*i.duration}function bo(t,e){var n=e._private.aniEles,r=[];function i(e,n){var i=e._private,o=i.animation.current,a=i.animation.queue,s=!1;if(0===o.length){var u=a.shift();u&&o.push(u)}for(var c=function(t){for(var e=t.length-1;e>=0;e--){(0,t[e])()}t.splice(0,t.length)},l=o.length-1;l>=0;l--){var f=o[l],h=f._private;h.stopped?(o.splice(l,1),h.hooked=!1,h.playing=!1,h.started=!1,c(h.frames)):(h.playing||h.applying)&&(h.playing&&h.applying&&(h.applying=!1),h.started||vo(0,f,t),po(e,f,t,n),h.applying&&(h.applying=!1),c(h.frames),null!=h.step&&h.step(t),f.completed()&&(o.splice(l,1),h.hooked=!1,h.playing=!1,h.started=!1,c(h.completes)),s=!0)}return n||0!==o.length||0!==a.length||r.push(e),s}for(var o=!1,a=0;a<n.length;a++){var s=i(n[a]);o=o||s}var u=i(e,!0);(o||u)&&(n.length>0?e.notify("draw",n):e.notify("draw")),n.unmerge(r),e.emit("step")}var yo={animate:Vn.animate(),animation:Vn.animation(),animated:Vn.animated(),clearQueue:Vn.clearQueue(),delay:Vn.delay(),delayAnimation:Vn.delayAnimation(),stop:Vn.stop(),addToAnimationPool:function(t){this.styleEnabled()&&this._private.aniEles.merge(t)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var t=this;if(t._private.animationsRunning=!0,t.styleEnabled()){var e=t.renderer();e&&e.beforeRender?e.beforeRender((function(e,n){bo(n,t)}),e.beforeRenderPriorities.animations):function e(){t._private.animationsRunning&&X((function(n){bo(n,t),e()}))}()}}},wo={qualifierCompare:function(t,e){return null==t||null==e?null==t&&null==e:t.sameText(e)},eventMatches:function(t,e,n){var r=e.qualifier;return null==r||t!==n.target&&C(n.target)&&r.matches(n.target)},addEventFields:function(t,e){e.cy=t,e.target=t},callbackContext:function(t,e,n){return null!=e.qualifier?n.target:t}},mo=function(t){return w(t)?new Tr(t):t},xo={createEmitter:function(){var t=this._private;return t.emitter||(t.emitter=new _i(wo,this)),this},emitter:function(){return this._private.emitter},on:function(t,e,n){return this.emitter().on(t,mo(e),n),this},removeListener:function(t,e,n){return this.emitter().removeListener(t,mo(e),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(t,e,n){return this.emitter().one(t,mo(e),n),this},once:function(t,e,n){return this.emitter().one(t,mo(e),n),this},emit:function(t,e){return this.emitter().emit(t,e),this},emitAndNotify:function(t,e){return this.emit(t),this.notify(t,e),this}};Vn.eventAliasesOn(xo);var _o={png:function(t){return t=t||{},this._private.renderer.png(t)},jpg:function(t){var e=this._private.renderer;return(t=t||{}).bg=t.bg||"#fff",e.jpg(t)}};_o.jpeg=_o.jpg;var Eo={layout:function(t){if(null!=t)if(null!=t.name){var e=t.name,n=this.extension("layout",e);if(null!=n){var r;r=w(t.eles)?this.$(t.eles):null!=t.eles?t.eles:this.$();var i=new n(G({},t,{cy:this,eles:r}));return i}ht("No such layout `"+e+"` found. Did you forget to import it and `cytoscape.use()` it?")}else ht("A `name` must be specified to make a layout");else ht("Layout options must be specified to make a layout")}};Eo.createLayout=Eo.makeLayout=Eo.layout;var ko={notify:function(t,e){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[t]=n.batchNotifications[t]||this.collection();null!=e&&r.merge(e)}else if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(t,e)}},notifications:function(t){var e=this._private;return void 0===t?e.notificationsEnabled:(e.notificationsEnabled=!!t,this)},noNotifications:function(t){this.notifications(!1),t(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var t=this._private;return null==t.batchCount&&(t.batchCount=0),0===t.batchCount&&(t.batchStyleEles=this.collection(),t.batchNotifications={}),t.batchCount++,this},endBatch:function(){var t=this._private;if(0===t.batchCount)return this;if(t.batchCount--,0===t.batchCount){t.batchStyleEles.updateStyle();var e=this.renderer();Object.keys(t.batchNotifications).forEach((function(n){var r=t.batchNotifications[n];r.empty()?e.notify(n):e.notify(n,r)}))}return this},batch:function(t){return this.startBatch(),t(),this.endBatch(),this},batchData:function(t){var e=this;return this.batch((function(){for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r],o=t[i];e.getElementById(i).data(o)}}))}},So=wt({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),Co={renderTo:function(t,e,n,r){return this._private.renderer.renderTo(t,e,n,r),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(t){var e=this.extension("renderer",t.name);if(null!=e){void 0!==t.wheelSensitivity&&pt("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var n=So(t);n.cy=this,this._private.renderer=new e(n),this.notify("init")}else ht("Can not initialise: No such renderer `".concat(t.name,"` found. Did you forget to import it and `cytoscape.use()` it?"))},destroyRenderer:function(){this.notify("destroy");var t=this.container();if(t)for(t._cyreg=null;t.childNodes.length>0;)t.removeChild(t.childNodes[0]);this._private.renderer=null,this.mutableElements().forEach((function(t){var e=t._private;e.rscratch={},e.rstyle={},e.animation.current=[],e.animation.queue=[]}))},onRender:function(t){return this.on("render",t)},offRender:function(t){return this.off("render",t)}};Co.invalidateDimensions=Co.resize;var To={collection:function(t,e){return w(t)?this.$(t):S(t)?t.collection():x(t)?new io(this,t,e):new io(this)},nodes:function(t){var e=this.$((function(t){return t.isNode()}));return t?e.filter(t):e},edges:function(t){var e=this.$((function(t){return t.isEdge()}));return t?e.filter(t):e},$:function(t){var e=this._private.elements;return t?e.filter(t):e.spawnSelf()},mutableElements:function(){return this._private.elements}};To.elements=To.filter=To.$;var Ao={};Ao.apply=function(t){var e=this._private,n=e.cy.collection();e.newStyle&&(e.contextStyles={},e.propDiffs={},this.cleanElements(t,!0));for(var r=0;r<t.length;r++){var i=t[r],o=this.getContextMeta(i);if(!o.empty){var a=this.getContextStyle(o),s=this.applyContextStyle(o,a,i);e.newStyle||this.updateTransitions(i,s.diffProps),this.updateStyleHints(i)&&n.merge(i)}}return e.newStyle=!1,n},Ao.getPropertiesDiff=function(t,e){var n=this._private.propDiffs=this._private.propDiffs||{},r=t+"-"+e,i=n[r];if(i)return i;for(var o=[],a={},s=0;s<this.length;s++){var u=this[s],c="t"===t[s],l="t"===e[s],f=c!==l,h=u.mappedProperties.length>0;if(f||l&&h){var d=void 0;f&&h||f?d=u.properties:h&&(d=u.mappedProperties);for(var p=0;p<d.length;p++){for(var g=d[p],v=g.name,b=!1,y=s+1;y<this.length;y++){var w=this[y];if("t"===e[y]&&(b=null!=w.properties[g.name]))break}a[v]||b||(a[v]=!0,o.push(v))}}}return n[r]=o,o},Ao.getContextMeta=function(t){var e,n="",r=t._private.styleCxtKey||"";this._private.newStyle&&(r="");for(var i=0;i<this.length;i++){var o=this[i];n+=o.selector&&o.selector.matches(t)?"t":"f"}return e=this.getPropertiesDiff(r,n),t._private.styleCxtKey=n,{key:n,diffPropNames:e,empty:0===e.length}},Ao.getContextStyle=function(t){var e=t.key,n=this._private.contextStyles=this._private.contextStyles||{};if(n[e])return n[e];for(var r={_private:{key:e}},i=0;i<this.length;i++){var o=this[i];if("t"===e[i])for(var a=0;a<o.properties.length;a++){var s=o.properties[a];r[s.name]=s}}return n[e]=r,r},Ao.applyContextStyle=function(t,e,n){for(var r=t.diffPropNames,i={},o=this.types,a=0;a<r.length;a++){var s=r[a],u=e[s],c=n.pstyle(s);if(!u){if(!c)continue;u=c.bypass?{name:s,deleteBypassed:!0}:{name:s,delete:!0}}if(c!==u){if(u.mapped===o.fn&&null!=c&&null!=c.mapping&&c.mapping.value===u.value){var l=c.mapping;if((l.fnValue=u.value(n))===l.prevFnValue)continue}var f=i[s]={prev:c};this.applyParsedProperty(n,u),f.next=n.pstyle(s),f.next&&f.next.bypass&&(f.next=f.next.bypassed)}}return{diffProps:i}},Ao.updateStyleHints=function(t){var e=t._private,n=this,r=n.propertyGroupNames,i=n.propertyGroupKeys,o=function(t,e,r){return n.getPropertiesHash(t,e,r)},a=e.styleKey;if(t.removed())return!1;var s="nodes"===e.group,u=t._private.style;r=Object.keys(u);for(var c=0;c<i.length;c++){var l=i[c];e.styleKeys[l]=[9261,5381]}for(var f=function(t,n){return e.styleKeys[n][0]=Z(t,e.styleKeys[n][0])},h=function(t,n){return e.styleKeys[n][1]=Q(t,e.styleKeys[n][1])},d=function(t,e){f(t,e),h(t,e)},p=function(t,e){for(var n=0;n<t.length;n++){var r=t.charCodeAt(n);f(r,e),h(r,e)}},g=function(t){return-128<t&&t<128&&Math.floor(t)!==t?2e9-(1024*t|0):t},v=0;v<r.length;v++){var b=r[v],y=u[b];if(null!=y){var w=this.properties[b],m=w.type,x=w.groupKey,_=void 0;null!=w.hashOverride?_=w.hashOverride(t,y):null!=y.pfValue&&(_=y.pfValue);var E=null==w.enums?y.value:null,k=null!=_,S=k||null!=E,C=y.units;if(m.number&&S){var T=k?_:E;if(m.multiple)for(var A=0;A<T.length;A++)d(g(T[A]),x);else d(g(T),x);k||null==C||p(C,x)}else p(y.strValue,x)}}for(var N,O,L=[9261,5381],P=0;P<i.length;P++){var I=i[P],j=e.styleKeys[I];L[0]=Z(j[0],L[0]),L[1]=Q(j[1],L[1])}e.styleKey=(N=L[0],O=L[1],2097152*N+O);var M=e.styleKeys;e.labelDimsKey=J(M.labelDimensions);var D=o(t,["label"],M.labelDimensions);if(e.labelKey=J(D),e.labelStyleKey=J(tt(M.commonLabel,D)),!s){var R=o(t,["source-label"],M.labelDimensions);e.sourceLabelKey=J(R),e.sourceLabelStyleKey=J(tt(M.commonLabel,R));var B=o(t,["target-label"],M.labelDimensions);e.targetLabelKey=J(B),e.targetLabelStyleKey=J(tt(M.commonLabel,B))}if(s){var G=e.styleKeys,H=G.nodeBody,F=G.nodeBorder,z=G.backgroundImage,Y=G.compound,V=G.pie,q=[F,z,Y,V].reduce(tt,H);e.nodeKey=J(q),e.hasPie=9261!==V[0]&&5381!==V[1]}return a!==e.styleKey},Ao.clearStyleHints=function(t){var e=t._private;e.styleKeys={},e.styleKey=null,e.labelKey=null,e.labelStyleKey=null,e.sourceLabelKey=null,e.sourceLabelStyleKey=null,e.targetLabelKey=null,e.targetLabelStyleKey=null,e.nodeKey=null,e.hasPie=null},Ao.applyParsedProperty=function(t,e){var n,r=this,i=e,o=t._private.style,a=r.types,s=r.properties[i.name].type,u=i.bypass,c=o[i.name],l=c&&c.bypass,f=t._private,h=function(t){return null==t?null:null!=t.pfValue?t.pfValue:t.value},d=function(){var e=h(c),n=h(i);r.checkTriggers(t,i.name,e,n)};if("curve-style"===e.name&&t.isEdge()&&("bezier"!==e.value&&t.isLoop()||"haystack"===e.value&&(t.source().isParent()||t.target().isParent()))&&(i=e=this.parse(e.name,"bezier",u)),i.delete)return o[i.name]=void 0,d(),!0;if(i.deleteBypassed)return c?!!c.bypass&&(c.bypassed=void 0,d(),!0):(d(),!0);if(i.deleteBypass)return c?!!c.bypass&&(o[i.name]=c.bypassed,d(),!0):(d(),!0);var p=function(){pt("Do not assign mappings to elements without corresponding data (i.e. ele `"+t.id()+"` has no mapping for property `"+i.name+"` with data field `"+i.field+"`); try a `["+i.field+"]` selector to limit scope to elements with `"+i.field+"` defined")};switch(i.mapped){case a.mapData:for(var g,v=i.field.split("."),b=f.data,y=0;y<v.length&&b;y++){b=b[v[y]]}if(null==b)return p(),!1;if(!E(b))return pt("Do not use continuous mappers without specifying numeric data (i.e. `"+i.field+": "+b+"` for `"+t.id()+"` is non-numeric)"),!1;var w=i.fieldMax-i.fieldMin;if((g=0===w?0:(b-i.fieldMin)/w)<0?g=0:g>1&&(g=1),s.color){var m=i.valueMin[0],x=i.valueMax[0],_=i.valueMin[1],k=i.valueMax[1],S=i.valueMin[2],C=i.valueMax[2],T=null==i.valueMin[3]?1:i.valueMin[3],A=null==i.valueMax[3]?1:i.valueMax[3],N=[Math.round(m+(x-m)*g),Math.round(_+(k-_)*g),Math.round(S+(C-S)*g),Math.round(T+(A-T)*g)];n={bypass:i.bypass,name:i.name,value:N,strValue:"rgb("+N[0]+", "+N[1]+", "+N[2]+")"}}else{if(!s.number)return!1;var O=i.valueMin+(i.valueMax-i.valueMin)*g;n=this.parse(i.name,O,i.bypass,"mapping")}if(!n)return p(),!1;n.mapping=i,i=n;break;case a.data:for(var L=i.field.split("."),P=f.data,I=0;I<L.length&&P;I++){P=P[L[I]]}if(null!=P&&(n=this.parse(i.name,P,i.bypass,"mapping")),!n)return p(),!1;n.mapping=i,i=n;break;case a.fn:var j=i.value,M=null!=i.fnValue?i.fnValue:j(t);if(i.prevFnValue=M,null==M)return pt("Custom function mappers may not return null (i.e. `"+i.name+"` for ele `"+t.id()+"` is null)"),!1;if(!(n=this.parse(i.name,M,i.bypass,"mapping")))return pt("Custom function mappers may not return invalid values for the property type (i.e. `"+i.name+"` for ele `"+t.id()+"` is invalid)"),!1;n.mapping=gt(i),i=n;break;case void 0:break;default:return!1}return u?(i.bypassed=l?c.bypassed:c,o[i.name]=i):l?c.bypassed=i:o[i.name]=i,d(),!0},Ao.cleanElements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(this.clearStyleHints(r),r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache(),e)for(var i=r._private.style,o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],u=i[s];null!=u&&(u.bypass?u.bypassed=null:i[s]=null)}else r._private.style={}}},Ao.update=function(){this._private.cy.mutableElements().updateStyle()},Ao.updateTransitions=function(t,e){var n=this,r=t._private,i=t.pstyle("transition-property").value,o=t.pstyle("transition-duration").pfValue,a=t.pstyle("transition-delay").pfValue;if(i.length>0&&o>0){for(var s={},u=!1,c=0;c<i.length;c++){var l=i[c],f=t.pstyle(l),h=e[l];if(h){var d=h.prev,p=null!=h.next?h.next:f,g=!1,v=void 0;d&&(E(d.pfValue)&&E(p.pfValue)?(g=p.pfValue-d.pfValue,v=d.pfValue+1e-6*g):E(d.value)&&E(p.value)?(g=p.value-d.value,v=d.value+1e-6*g):x(d.value)&&x(p.value)&&(g=d.value[0]!==p.value[0]||d.value[1]!==p.value[1]||d.value[2]!==p.value[2],v=d.strValue),g&&(s[l]=p.strValue,this.applyBypass(t,l,v),u=!0))}}if(!u)return;r.transitioning=!0,new Fn((function(e){a>0?t.delayAnimation(a).play().promise().then(e):e()})).then((function(){return t.animation({style:s,duration:o,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()})).then((function(){n.removeBypasses(t,i),t.emitAndNotify("style"),r.transitioning=!1}))}else r.transitioning&&(this.removeBypasses(t,i),t.emitAndNotify("style"),r.transitioning=!1)},Ao.checkTrigger=function(t,e,n,r,i,o){var a=this.properties[e],s=i(a);null!=s&&s(n,r)&&o(a)},Ao.checkZOrderTrigger=function(t,e,n,r){var i=this;this.checkTrigger(t,e,n,r,(function(t){return t.triggersZOrder}),(function(){i._private.cy.notify("zorder",t)}))},Ao.checkBoundsTrigger=function(t,e,n,r){this.checkTrigger(t,e,n,r,(function(t){return t.triggersBounds}),(function(i){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),"bezier"!==t.pstyle("curve-style").value&&("curve-style"!==e||"bezier"!==n&&"bezier"!==r)||!i.triggersBoundsOfParallelBeziers||t.parallelEdges().forEach((function(t){t.isBundledBezier()&&t.dirtyBoundingBoxCache()}))}))},Ao.checkTriggers=function(t,e,n,r){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,n,r),this.checkBoundsTrigger(t,e,n,r)};var No={applyBypass:function(t,e,n,r){var i=[];if("*"===e||"**"===e){if(void 0!==n)for(var o=0;o<this.properties.length;o++){var a=this.properties[o].name,s=this.parse(a,n,!0);s&&i.push(s)}}else if(w(e)){var u=this.parse(e,n,!0);u&&i.push(u)}else{if(!_(e))return!1;var c=e;r=n;for(var l=Object.keys(c),f=0;f<l.length;f++){var h=l[f],d=c[h];if(void 0===d&&(d=c[j(h)]),void 0!==d){var p=this.parse(h,d,!0);p&&i.push(p)}}}if(0===i.length)return!1;for(var g=!1,v=0;v<t.length;v++){for(var b=t[v],y={},m=void 0,x=0;x<i.length;x++){var E=i[x];if(r){var k=b.pstyle(E.name);m=y[E.name]={prev:k}}g=this.applyParsedProperty(b,E)||g,r&&(m.next=b.pstyle(E.name))}g&&this.updateStyleHints(b),r&&this.updateTransitions(b,y,!0)}return g},overrideBypass:function(t,e,n){e=I(e);for(var r=0;r<t.length;r++){var i=t[r],o=i._private.style[e],a=this.properties[e].type,s=a.color,u=a.mutiple,c=o?null!=o.pfValue?o.pfValue:o.value:null;o&&o.bypass?(o.value=n,null!=o.pfValue&&(o.pfValue=n),o.strValue=s?"rgb("+n.join(",")+")":u?n.join(" "):""+n,this.updateStyleHints(i)):this.applyBypass(i,e,n),this.checkTriggers(i,e,c,n)}},removeAllBypasses:function(t,e){return this.removeBypasses(t,this.propertyNames,e)},removeBypasses:function(t,e,n){for(var r=0;r<t.length;r++){for(var i=t[r],o={},a=0;a<e.length;a++){var s=e[a],u=this.properties[s],c=i.pstyle(u.name);if(c&&c.bypass){var l=this.parse(s,"",!0),f=o[u.name]={prev:c};this.applyParsedProperty(i,l),f.next=i.pstyle(u.name)}}this.updateStyleHints(i),n&&this.updateTransitions(i,o,!0)}}},Oo={getEmSizeInPixels:function(){var t=this.containerCss("font-size");return null!=t?parseFloat(t):1},containerCss:function(t){var e=this._private.cy.container();if(h&&e&&h.getComputedStyle)return h.getComputedStyle(e).getPropertyValue(t)}},Lo={getRenderedStyle:function(t,e){return e?this.getStylePropertyValue(t,e,!0):this.getRawStyle(t,!0)},getRawStyle:function(t,e){if(t=t[0]){for(var n={},r=0;r<this.properties.length;r++){var i=this.properties[r],o=this.getStylePropertyValue(t,i.name,e);null!=o&&(n[i.name]=o,n[j(i.name)]=o)}return n}},getIndexedStyle:function(t,e,n,r){var i=t.pstyle(e)[n][r];return null!=i?i:t.cy().style().getDefaultProperty(e)[n][0]},getStylePropertyValue:function(t,e,n){if(t=t[0]){var r=this.properties[e];r.alias&&(r=r.pointsTo);var i=r.type,o=t.pstyle(r.name);if(o){var a=o.value,s=o.units,u=o.strValue;if(n&&i.number&&null!=a&&E(a)){var c=t.cy().zoom(),l=function(t){return t*c},f=function(t,e){return l(t)+e},h=x(a);return(h?s.every((function(t){return null!=t})):null!=s)?h?a.map((function(t,e){return f(t,s[e])})).join(" "):f(a,s):h?a.map((function(t){return w(t)?t:""+l(t)})).join(" "):""+l(a)}if(null!=u)return u}return null}},getAnimationStartStyle:function(t,e){for(var n={},r=0;r<e.length;r++){var i=e[r].name,o=t.pstyle(i);void 0!==o&&(o=_(o)?this.parse(i,o.strValue):this.parse(i,o)),o&&(n[i]=o)}return n},getPropsList:function(t){var e=[],n=t,r=this.properties;if(n)for(var i=Object.keys(n),o=0;o<i.length;o++){var a=i[o],s=n[a],u=r[a]||r[I(a)],c=this.parse(u.name,s);c&&e.push(c)}return e},getNonDefaultPropertiesHash:function(t,e,n){var r,i,o,a,s,u,c=n.slice();for(s=0;s<e.length;s++)if(r=e[s],null!=(i=t.pstyle(r,!1)))if(null!=i.pfValue)c[0]=Z(a,c[0]),c[1]=Q(a,c[1]);else for(o=i.strValue,u=0;u<o.length;u++)a=o.charCodeAt(u),c[0]=Z(a,c[0]),c[1]=Q(a,c[1]);return c}};Lo.getPropertiesHash=Lo.getNonDefaultPropertiesHash;var Po={appendFromJson:function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.selector,i=n.style||n.css,o=Object.keys(i);this.selector(r);for(var a=0;a<o.length;a++){var s=o[a],u=i[s];this.css(s,u)}}return this},fromJson:function(t){return this.resetToDefault(),this.appendFromJson(t),this},json:function(){for(var t=[],e=this.defaultLength;e<this.length;e++){for(var n=this[e],r=n.selector,i=n.properties,o={},a=0;a<i.length;a++){var s=i[a];o[s.name]=s.strValue}t.push({selector:r?r.toString():"core",style:o})}return t}},Io={appendFromString:function(t){var e,n,r,i=""+t;function o(){i=i.length>e.length?i.substr(e.length):""}function a(){n=n.length>r.length?n.substr(r.length):""}for(i=i.replace(/[/][*](\s|.)+?[*][/]/g,"");;){if(i.match(/^\s*$/))break;var s=i.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!s){pt("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+i);break}e=s[0];var u=s[1];if("core"!==u)if(new Tr(u).invalid){pt("Skipping parsing of block: Invalid selector found in string stylesheet: "+u),o();continue}var c=s[2],l=!1;n=c;for(var f=[];;){if(n.match(/^\s*$/))break;var h=n.match(/^\s*(.+?)\s*:\s*(.+?)\s*;/);if(!h){pt("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+c),l=!0;break}r=h[0];var d=h[1],p=h[2];if(this.properties[d])this.parse(d,p)?(f.push({name:d,val:p}),a()):(pt("Skipping property: Invalid property definition in: "+r),a());else pt("Skipping property: Invalid property name in: "+r),a()}if(l){o();break}this.selector(u);for(var g=0;g<f.length;g++){var v=f[g];this.css(v.name,v.val)}o()}return this},fromString:function(t){return this.resetToDefault(),this.appendFromString(t),this}},jo={};!function(){var t=R,e=function(t){return"^"+t+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},n=function(e){var n=t+"|\\w+|rgb[a]?\\((?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)(?:\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)|hsl[a]?\\((?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?)))\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%])(?:\\s*,\\s*(?:(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)|\\#[0-9a-fA-F]{3}|\\#[0-9a-fA-F]{6}";return"^"+e+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+t+")\\s*\\,\\s*("+t+")\\s*,\\s*("+n+")\\s*\\,\\s*("+n+")\\)$"},r=["^url\\s*\\(\\s*['\"]?(.+?)['\"]?\\s*\\)$","^(none)$","^(.+)$"];jo.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","taxi"]},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","polygon"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:e("data")},layoutData:{mapping:!0,regex:e("layoutData")},scratch:{mapping:!0,regex:e("scratch")},mapData:{mapping:!0,regex:n("mapData")},mapLayoutData:{mapping:!0,regex:n("mapLayoutData")},mapScratch:{mapping:!0,regex:n("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:r,singleRegexMatchValue:!0},urls:{regexes:r,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(t,e){switch(t.length){case 2:return"deg"!==e[0]&&"rad"!==e[0]&&"deg"!==e[1]&&"rad"!==e[1];case 1:return w(t[0])||"deg"===e[0]||"rad"===e[0];default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(t){var e=t.length;return 1===e||2===e||4===e}}};var i={zeroNonZero:function(t,e){return(null==t||null==e)&&t!==e||(0==t&&0!=e||0!=t&&0==e)},any:function(t,e){return t!=e},emptyNonEmpty:function(t,e){var n=O(t),r=O(e);return n&&!r||!n&&r}},o=jo.types,a=[{name:"label",type:o.text,triggersBounds:i.any,triggersZOrder:i.emptyNonEmpty},{name:"text-rotation",type:o.textRotation,triggersBounds:i.any},{name:"text-margin-x",type:o.bidirectionalSize,triggersBounds:i.any},{name:"text-margin-y",type:o.bidirectionalSize,triggersBounds:i.any}],s=[{name:"source-label",type:o.text,triggersBounds:i.any},{name:"source-text-rotation",type:o.textRotation,triggersBounds:i.any},{name:"source-text-margin-x",type:o.bidirectionalSize,triggersBounds:i.any},{name:"source-text-margin-y",type:o.bidirectionalSize,triggersBounds:i.any},{name:"source-text-offset",type:o.size,triggersBounds:i.any}],u=[{name:"target-label",type:o.text,triggersBounds:i.any},{name:"target-text-rotation",type:o.textRotation,triggersBounds:i.any},{name:"target-text-margin-x",type:o.bidirectionalSize,triggersBounds:i.any},{name:"target-text-margin-y",type:o.bidirectionalSize,triggersBounds:i.any},{name:"target-text-offset",type:o.size,triggersBounds:i.any}],c=[{name:"font-family",type:o.fontFamily,triggersBounds:i.any},{name:"font-style",type:o.fontStyle,triggersBounds:i.any},{name:"font-weight",type:o.fontWeight,triggersBounds:i.any},{name:"font-size",type:o.size,triggersBounds:i.any},{name:"text-transform",type:o.textTransform,triggersBounds:i.any},{name:"text-wrap",type:o.textWrap,triggersBounds:i.any},{name:"text-overflow-wrap",type:o.textOverflowWrap,triggersBounds:i.any},{name:"text-max-width",type:o.size,triggersBounds:i.any},{name:"text-outline-width",type:o.size,triggersBounds:i.any},{name:"line-height",type:o.positiveNumber,triggersBounds:i.any}],l=[{name:"text-valign",type:o.valign,triggersBounds:i.any},{name:"text-halign",type:o.halign,triggersBounds:i.any},{name:"color",type:o.color},{name:"text-outline-color",type:o.color},{name:"text-outline-opacity",type:o.zeroOneNumber},{name:"text-background-color",type:o.color},{name:"text-background-opacity",type:o.zeroOneNumber},{name:"text-background-padding",type:o.size,triggersBounds:i.any},{name:"text-border-opacity",type:o.zeroOneNumber},{name:"text-border-color",type:o.color},{name:"text-border-width",type:o.size,triggersBounds:i.any},{name:"text-border-style",type:o.borderStyle,triggersBounds:i.any},{name:"text-background-shape",type:o.textBackgroundShape,triggersBounds:i.any},{name:"text-justification",type:o.justification}],f=[{name:"events",type:o.bool},{name:"text-events",type:o.bool}],h=[{name:"display",type:o.display,triggersZOrder:i.any,triggersBounds:i.any,triggersBoundsOfParallelBeziers:!0},{name:"visibility",type:o.visibility,triggersZOrder:i.any},{name:"opacity",type:o.zeroOneNumber,triggersZOrder:i.zeroNonZero},{name:"text-opacity",type:o.zeroOneNumber},{name:"min-zoomed-font-size",type:o.size},{name:"z-compound-depth",type:o.zCompoundDepth,triggersZOrder:i.any},{name:"z-index-compare",type:o.zIndexCompare,triggersZOrder:i.any},{name:"z-index",type:o.nonNegativeInt,triggersZOrder:i.any}],d=[{name:"overlay-padding",type:o.size,triggersBounds:i.any},{name:"overlay-color",type:o.color},{name:"overlay-opacity",type:o.zeroOneNumber,triggersBounds:i.zeroNonZero}],p=[{name:"transition-property",type:o.propList},{name:"transition-duration",type:o.time},{name:"transition-delay",type:o.time},{name:"transition-timing-function",type:o.easing}],g=function(t,e){return"label"===e.value?-t.poolIndex():e.pfValue},v=[{name:"height",type:o.nodeSize,triggersBounds:i.any,hashOverride:g},{name:"width",type:o.nodeSize,triggersBounds:i.any,hashOverride:g},{name:"shape",type:o.nodeShape,triggersBounds:i.any},{name:"shape-polygon-points",type:o.polygonPointList,triggersBounds:i.any},{name:"background-color",type:o.color},{name:"background-fill",type:o.fill},{name:"background-opacity",type:o.zeroOneNumber},{name:"background-blacken",type:o.nOneOneNumber},{name:"background-gradient-stop-colors",type:o.colors},{name:"background-gradient-stop-positions",type:o.percentages},{name:"background-gradient-direction",type:o.gradientDirection},{name:"padding",type:o.sizeMaybePercent,triggersBounds:i.any},{name:"padding-relative-to",type:o.paddingRelativeTo,triggersBounds:i.any},{name:"bounds-expansion",type:o.boundsExpansion,triggersBounds:i.any}],b=[{name:"border-color",type:o.color},{name:"border-opacity",type:o.zeroOneNumber},{name:"border-width",type:o.size,triggersBounds:i.any},{name:"border-style",type:o.borderStyle}],y=[{name:"background-image",type:o.urls},{name:"background-image-crossorigin",type:o.bgCrossOrigin},{name:"background-image-opacity",type:o.zeroOneNumbers},{name:"background-position-x",type:o.bgPos},{name:"background-position-y",type:o.bgPos},{name:"background-width-relative-to",type:o.bgRelativeTo},{name:"background-height-relative-to",type:o.bgRelativeTo},{name:"background-repeat",type:o.bgRepeat},{name:"background-fit",type:o.bgFit},{name:"background-clip",type:o.bgClip},{name:"background-width",type:o.bgWH},{name:"background-height",type:o.bgWH},{name:"background-offset-x",type:o.bgPos},{name:"background-offset-y",type:o.bgPos}],m=[{name:"position",type:o.position,triggersBounds:i.any},{name:"compound-sizing-wrt-labels",type:o.compoundIncludeLabels,triggersBounds:i.any},{name:"min-width",type:o.size,triggersBounds:i.any},{name:"min-width-bias-left",type:o.sizeMaybePercent,triggersBounds:i.any},{name:"min-width-bias-right",type:o.sizeMaybePercent,triggersBounds:i.any},{name:"min-height",type:o.size,triggersBounds:i.any},{name:"min-height-bias-top",type:o.sizeMaybePercent,triggersBounds:i.any},{name:"min-height-bias-bottom",type:o.sizeMaybePercent,triggersBounds:i.any}],x=[{name:"line-style",type:o.lineStyle},{name:"line-color",type:o.color},{name:"line-fill",type:o.fill},{name:"line-cap",type:o.lineCap},{name:"line-dash-pattern",type:o.numbers},{name:"line-dash-offset",type:o.number},{name:"line-gradient-stop-colors",type:o.colors},{name:"line-gradient-stop-positions",type:o.percentages},{name:"curve-style",type:o.curveStyle,triggersBounds:i.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:o.zeroOneNumber,triggersBounds:i.any},{name:"source-endpoint",type:o.edgeEndpoint,triggersBounds:i.any},{name:"target-endpoint",type:o.edgeEndpoint,triggersBounds:i.any},{name:"control-point-step-size",type:o.size,triggersBounds:i.any},{name:"control-point-distances",type:o.bidirectionalSizes,triggersBounds:i.any},{name:"control-point-weights",type:o.numbers,triggersBounds:i.any},{name:"segment-distances",type:o.bidirectionalSizes,triggersBounds:i.any},{name:"segment-weights",type:o.numbers,triggersBounds:i.any},{name:"taxi-turn",type:o.bidirectionalSizeMaybePercent,triggersBounds:i.any},{name:"taxi-turn-min-distance",type:o.size,triggersBounds:i.any},{name:"taxi-direction",type:o.axisDirection,triggersBounds:i.any},{name:"edge-distances",type:o.edgeDistances,triggersBounds:i.any},{name:"arrow-scale",type:o.positiveNumber,triggersBounds:i.any},{name:"loop-direction",type:o.angle,triggersBounds:i.any},{name:"loop-sweep",type:o.angle,triggersBounds:i.any},{name:"source-distance-from-node",type:o.size,triggersBounds:i.any},{name:"target-distance-from-node",type:o.size,triggersBounds:i.any}],_=[{name:"ghost",type:o.bool,triggersBounds:i.any},{name:"ghost-offset-x",type:o.bidirectionalSize,triggersBounds:i.any},{name:"ghost-offset-y",type:o.bidirectionalSize,triggersBounds:i.any},{name:"ghost-opacity",type:o.zeroOneNumber}],E=[{name:"selection-box-color",type:o.color},{name:"selection-box-opacity",type:o.zeroOneNumber},{name:"selection-box-border-color",type:o.color},{name:"selection-box-border-width",type:o.size},{name:"active-bg-color",type:o.color},{name:"active-bg-opacity",type:o.zeroOneNumber},{name:"active-bg-size",type:o.size},{name:"outside-texture-bg-color",type:o.color},{name:"outside-texture-bg-opacity",type:o.zeroOneNumber}],k=[];jo.pieBackgroundN=16,k.push({name:"pie-size",type:o.sizeMaybePercent});for(var S=1;S<=jo.pieBackgroundN;S++)k.push({name:"pie-"+S+"-background-color",type:o.color}),k.push({name:"pie-"+S+"-background-size",type:o.percent}),k.push({name:"pie-"+S+"-background-opacity",type:o.zeroOneNumber});var C=[],T=jo.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:o.arrowShape,triggersBounds:i.any},{name:"arrow-color",type:o.color},{name:"arrow-fill",type:o.arrowFill}].forEach((function(t){T.forEach((function(e){var n=e+"-"+t.name,r=t.type,i=t.triggersBounds;C.push({name:n,type:r,triggersBounds:i})}))}),{});var A=jo.properties=[].concat(f,p,h,d,_,l,c,a,s,u,v,b,y,k,m,x,C,E),N=jo.propertyGroups={behavior:f,transition:p,visibility:h,overlay:d,ghost:_,commonLabel:l,labelDimensions:c,mainLabel:a,sourceLabel:s,targetLabel:u,nodeBody:v,nodeBorder:b,backgroundImage:y,pie:k,compound:m,edgeLine:x,edgeArrow:C,core:E},L=jo.propertyGroupNames={};(jo.propertyGroupKeys=Object.keys(N)).forEach((function(t){L[t]=N[t].map((function(t){return t.name})),N[t].forEach((function(e){return e.groupKey=t}))}));var P=jo.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];jo.propertyNames=A.map((function(t){return t.name}));for(var I=0;I<A.length;I++){var j=A[I];A[j.name]=j}for(var M=0;M<P.length;M++){var D=P[M],B=A[D.pointsTo],G={name:D.name,alias:!0,pointsTo:B};A.push(G),A[D.name]=G}}(),jo.getDefaultProperty=function(t){return this.getDefaultProperties()[t]},jo.getDefaultProperties=function(){var t=this._private;if(null!=t.defaultProperties)return t.defaultProperties;for(var e=G({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce((function(t,e){for(var n=1;n<=jo.pieBackgroundN;n++){var r=e.name.replace("{{i}}",n),i=e.value;t[r]=i}return t}),{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"taxi-turn":"50%","taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"}].reduce((function(t,e){return jo.arrowPrefixes.forEach((function(n){var r=n+"-"+e.name,i=e.value;t[r]=i})),t}),{})),n={},r=0;r<this.properties.length;r++){var i=this.properties[r];if(!i.pointsTo){var o=i.name,a=e[o],s=this.parse(o,a);n[o]=s}}return t.defaultProperties=n,t.defaultProperties},jo.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var Mo={parse:function(t,e,n,r){if(m(e))return this.parseImplWarn(t,e,n,r);var i,o=nt(t,""+e,n?"t":"f","mapping"===r||!0===r||!1===r||null==r?"dontcare":r),a=this.propCache=this.propCache||[];return(i=a[o])||(i=a[o]=this.parseImplWarn(t,e,n,r)),(n||"mapping"===r)&&(i=gt(i))&&(i.value=gt(i.value)),i},parseImplWarn:function(t,e,n,r){var i=this.parseImpl(t,e,n,r);return i||null==e||pt("The style property `".concat(t,": ").concat(e,"` is invalid")),i}};Mo.parseImpl=function(t,e,n,r){t=I(t);var i=this.properties[t],o=e,a=this.types;if(!i)return null;if(void 0===e)return null;i.alias&&(i=i.pointsTo,t=i.name);var s=w(e);s&&(e=e.trim());var u,c,l=i.type;if(!l)return null;if(n&&(""===e||null===e))return{name:t,value:e,bypass:!0,deleteBypass:!0};if(m(e))return{name:t,value:e,strValue:"fn",mapped:a.fn,bypass:n};if(!s||r||e.length<7||"a"!==e[1]);else{if(e.length>=7&&"d"===e[0]&&(u=new RegExp(a.data.regex).exec(e))){if(n)return!1;var f=a.data;return{name:t,value:u,strValue:""+e,mapped:f,field:u[1],bypass:n}}if(e.length>=10&&"m"===e[0]&&(c=new RegExp(a.mapData.regex).exec(e))){if(n)return!1;if(l.multiple)return!1;var h=a.mapData;if(!l.color&&!l.number)return!1;var d=this.parse(t,c[4]);if(!d||d.mapped)return!1;var p=this.parse(t,c[5]);if(!p||p.mapped)return!1;if(d.pfValue===p.pfValue||d.strValue===p.strValue)return pt("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+d.strValue+"`"),this.parse(t,d.strValue);if(l.color){var g=d.value,v=p.value;if(!(g[0]!==v[0]||g[1]!==v[1]||g[2]!==v[2]||g[3]!==v[3]&&(null!=g[3]&&1!==g[3]||null!=v[3]&&1!==v[3])))return!1}return{name:t,value:c,strValue:""+e,mapped:h,field:c[1],fieldMin:parseFloat(c[2]),fieldMax:parseFloat(c[3]),valueMin:d.value,valueMax:p.value,bypass:n}}}if(l.multiple&&"multiple"!==r){var b;if(b=s?e.split(/\s+/):x(e)?e:[e],l.evenMultiple&&b.length%2!=0)return null;for(var y=[],_=[],k=[],S="",C=!1,T=0;T<b.length;T++){var A=this.parse(t,b[T],n,"multiple");C=C||w(A.value),y.push(A.value),k.push(null!=A.pfValue?A.pfValue:A.value),_.push(A.units),S+=(T>0?" ":"")+A.strValue}return l.validate&&!l.validate(y,_)?null:l.singleEnum&&C?1===y.length&&w(y[0])?{name:t,value:y[0],strValue:y[0],bypass:n}:null:{name:t,value:y,pfValue:k,strValue:S,bypass:n,units:_}}var N,O,L=function(){for(var r=0;r<l.enums.length;r++){if(l.enums[r]===e)return{name:t,value:e,strValue:""+e,bypass:n}}return null};if(l.number){var P,j="px";if(l.units&&(P=l.units),l.implicitUnits&&(j=l.implicitUnits),!l.unitless)if(s){var M="px|em"+(l.allowPercent?"|\\%":"");P&&(M=P);var D=e.match("^("+R+")("+M+")?$");D&&(e=D[1],P=D[2]||j)}else P&&!l.implicitUnits||(P=j);if(e=parseFloat(e),isNaN(e)&&void 0===l.enums)return null;if(isNaN(e)&&void 0!==l.enums)return e=o,L();if(l.integer&&(!E(O=e)||Math.floor(O)!==O))return null;if(void 0!==l.min&&(e<l.min||l.strictMin&&e===l.min)||void 0!==l.max&&(e>l.max||l.strictMax&&e===l.max))return null;var B={name:t,value:e,strValue:""+e+(P||""),units:P,bypass:n};return l.unitless||"px"!==P&&"em"!==P?B.pfValue=e:B.pfValue="px"!==P&&P?this.getEmSizeInPixels()*e:e,"ms"!==P&&"s"!==P||(B.pfValue="ms"===P?e:1e3*e),"deg"!==P&&"rad"!==P||(B.pfValue="rad"===P?e:(N=e,Math.PI*N/180)),"%"===P&&(B.pfValue=e/100),B}if(l.propList){var G=[],F=""+e;if("none"===F);else{for(var z=F.split(/\s*,\s*|\s+/),Y=0;Y<z.length;Y++){var V=z[Y].trim();this.properties[V]?G.push(V):pt("`"+V+"` is not a valid property name")}if(0===G.length)return null}return{name:t,value:G,strValue:0===G.length?"none":G.join(" "),bypass:n}}if(l.color){var q=H(e);return q?{name:t,value:q,pfValue:q,strValue:"rgb("+q[0]+","+q[1]+","+q[2]+")",bypass:n}:null}if(l.regex||l.regexes){if(l.enums){var U=L();if(U)return U}for(var X=l.regexes?l.regexes:[l.regex],W=0;W<X.length;W++){var $=new RegExp(X[W]).exec(e);if($)return{name:t,value:l.singleRegexMatchValue?$[1]:$,strValue:""+e,bypass:n}}return null}return l.string?{name:t,value:""+e,strValue:""+e,bypass:n}:l.enums?L():null};var Do=function t(e){if(!(this instanceof t))return new t(e);A(e)?(this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()):ht("A style must have a core reference")},Ro=Do.prototype;Ro.instanceString=function(){return"style"},Ro.clear=function(){for(var t=0;t<this.length;t++)this[t]=void 0;return this.length=0,this._private.newStyle=!0,this},Ro.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},Ro.core=function(t){return this._private.coreStyle[t]||this.getDefaultProperty(t)},Ro.selector=function(t){var e="core"===t?null:new Tr(t),n=this.length++;return this[n]={selector:e,properties:[],mappedProperties:[],index:n},this},Ro.css=function(){var t=this,e=arguments;if(1===e.length)for(var n=e[0],r=0;r<t.properties.length;r++){var i=t.properties[r],o=n[i.name];void 0===o&&(o=n[j(i.name)]),void 0!==o&&this.cssRule(i.name,o)}else 2===e.length&&this.cssRule(e[0],e[1]);return this},Ro.style=Ro.css,Ro.cssRule=function(t,e){var n=this.parse(t,e);if(n){var r=this.length-1;this[r].properties.push(n),this[r].properties[n.name]=n,n.name.match(/pie-(\d+)-background-size/)&&n.value&&(this._private.hasPie=!0),n.mapped&&this[r].mappedProperties.push(n),!this[r].selector&&(this._private.coreStyle[n.name]=n)}return this},Ro.append=function(t){return N(t)?t.appendToStyle(this):x(t)?this.appendFromJson(t):w(t)&&this.appendFromString(t),this},Do.fromJson=function(t,e){var n=new Do(t);return n.fromJson(e),n},Do.fromString=function(t,e){return new Do(t).fromString(e)},[Ao,No,Oo,Lo,Po,Io,jo,Mo].forEach((function(t){G(Ro,t)})),Do.types=Ro.types,Do.properties=Ro.properties,Do.propertyGroups=Ro.propertyGroups,Do.propertyGroupNames=Ro.propertyGroupNames,Do.propertyGroupKeys=Ro.propertyGroupKeys;var Bo={style:function(t){t&&this.setStyle(t).update();return this._private.style},setStyle:function(t){var e=this._private;return N(t)?e.style=t.generateStyle(this):x(t)?e.style=Do.fromJson(this,t):w(t)?e.style=Do.fromString(this,t):e.style=Do(this),e.style}},Go={autolock:function(t){return void 0===t?this._private.autolock:(this._private.autolock=!!t,this)},autoungrabify:function(t){return void 0===t?this._private.autoungrabify:(this._private.autoungrabify=!!t,this)},autounselectify:function(t){return void 0===t?this._private.autounselectify:(this._private.autounselectify=!!t,this)},selectionType:function(t){var e=this._private;return null==e.selectionType&&(e.selectionType="single"),void 0===t?e.selectionType:("additive"!==t&&"single"!==t||(e.selectionType=t),this)},panningEnabled:function(t){return void 0===t?this._private.panningEnabled:(this._private.panningEnabled=!!t,this)},userPanningEnabled:function(t){return void 0===t?this._private.userPanningEnabled:(this._private.userPanningEnabled=!!t,this)},zoomingEnabled:function(t){return void 0===t?this._private.zoomingEnabled:(this._private.zoomingEnabled=!!t,this)},userZoomingEnabled:function(t){return void 0===t?this._private.userZoomingEnabled:(this._private.userZoomingEnabled=!!t,this)},boxSelectionEnabled:function(t){return void 0===t?this._private.boxSelectionEnabled:(this._private.boxSelectionEnabled=!!t,this)},pan:function(){var t,e,n,r,i,o=arguments,a=this._private.pan;switch(o.length){case 0:return a;case 1:if(w(o[0]))return a[t=o[0]];if(_(o[0])){if(!this._private.panningEnabled)return this;r=(n=o[0]).x,i=n.y,E(r)&&(a.x=r),E(i)&&(a.y=i),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;t=o[0],e=o[1],"x"!==t&&"y"!==t||!E(e)||(a[t]=e),this.emit("pan viewport")}return this.notify("viewport"),this},panBy:function(t,e){var n,r,i,o,a,s=arguments,u=this._private.pan;if(!this._private.panningEnabled)return this;switch(s.length){case 1:_(t)&&(o=(i=s[0]).x,a=i.y,E(o)&&(u.x+=o),E(a)&&(u.y+=a),this.emit("pan viewport"));break;case 2:r=e,"x"!==(n=t)&&"y"!==n||!E(r)||(u[n]+=r),this.emit("pan viewport")}return this.notify("viewport"),this},fit:function(t,e){var n=this.getFitViewport(t,e);if(n){var r=this._private;r.zoom=n.zoom,r.pan=n.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(t,e){if(E(t)&&void 0===e&&(e=t,t=void 0),this._private.panningEnabled&&this._private.zoomingEnabled){var n,r;if(w(t)){var i=t;t=this.$(i)}else if(_(r=t)&&E(r.x1)&&E(r.x2)&&E(r.y1)&&E(r.y2)){var o=t;(n={x1:o.x1,y1:o.y1,x2:o.x2,y2:o.y2}).w=n.x2-n.x1,n.h=n.y2-n.y1}else S(t)||(t=this.mutableElements());if(!S(t)||!t.empty()){n=n||t.boundingBox();var a,s=this.width(),u=this.height();if(e=E(e)?e:0,!isNaN(s)&&!isNaN(u)&&s>0&&u>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:a=(a=(a=Math.min((s-2*e)/n.w,(u-2*e)/n.h))>this._private.maxZoom?this._private.maxZoom:a)<this._private.minZoom?this._private.minZoom:a,pan:{x:(s-a*(n.x1+n.x2))/2,y:(u-a*(n.y1+n.y2))/2}}}}},zoomRange:function(t,e){var n=this._private;if(null==e){var r=t;t=r.min,e=r.max}return E(t)&&E(e)&&t<=e?(n.minZoom=t,n.maxZoom=e):E(t)&&void 0===e&&t<=n.maxZoom?n.minZoom=t:E(e)&&void 0===t&&e>=n.minZoom&&(n.maxZoom=e),this},minZoom:function(t){return void 0===t?this._private.minZoom:this.zoomRange({min:t})},maxZoom:function(t){return void 0===t?this._private.maxZoom:this.zoomRange({max:t})},getZoomedViewport:function(t){var e,n,r=this._private,i=r.pan,o=r.zoom,a=!1;if(r.zoomingEnabled||(a=!0),E(t)?n=t:_(t)&&(n=t.level,null!=t.position?e=Yt(t.position,o,i):null!=t.renderedPosition&&(e=t.renderedPosition),null==e||r.panningEnabled||(a=!0)),n=(n=n>r.maxZoom?r.maxZoom:n)<r.minZoom?r.minZoom:n,a||!E(n)||n===o||null!=e&&(!E(e.x)||!E(e.y)))return null;if(null!=e){var s=i,u=o,c=n;return{zoomed:!0,panned:!0,zoom:c,pan:{x:-c/u*(e.x-s.x)+e.x,y:-c/u*(e.y-s.y)+e.y}}}return{zoomed:!0,panned:!1,zoom:n,pan:i}},zoom:function(t){if(void 0===t)return this._private.zoom;var e=this.getZoomedViewport(t),n=this._private;return null!=e&&e.zoomed?(n.zoom=e.zoom,e.panned&&(n.pan.x=e.pan.x,n.pan.y=e.pan.y),this.emit("zoom"+(e.panned?" pan":"")+" viewport"),this.notify("viewport"),this):this},viewport:function(t){var e=this._private,n=!0,r=!0,i=[],o=!1,a=!1;if(!t)return this;if(E(t.zoom)||(n=!1),_(t.pan)||(r=!1),!n&&!r)return this;if(n){var s=t.zoom;s<e.minZoom||s>e.maxZoom||!e.zoomingEnabled?o=!0:(e.zoom=s,i.push("zoom"))}if(r&&(!o||!t.cancelOnFailedZoom)&&e.panningEnabled){var u=t.pan;E(u.x)&&(e.pan.x=u.x,a=!1),E(u.y)&&(e.pan.y=u.y,a=!1),a||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(t){var e=this.getCenterPan(t);return e&&(this._private.pan=e,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(t,e){if(this._private.panningEnabled){if(w(t)){var n=t;t=this.mutableElements().filter(n)}else S(t)||(t=this.mutableElements());if(0!==t.length){var r=t.boundingBox(),i=this.width(),o=this.height();return{x:(i-(e=void 0===e?this._private.zoom:e)*(r.x1+r.x2))/2,y:(o-e*(r.y1+r.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var t,e,n=this._private,r=n.container;return n.sizeCache=n.sizeCache||(r?(t=h.getComputedStyle(r),e=function(e){return parseFloat(t.getPropertyValue(e))},{width:r.clientWidth-e("padding-left")-e("padding-right"),height:r.clientHeight-e("padding-top")-e("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var t=this._private.pan,e=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-t.x)/e,x2:(n.x2-t.x)/e,y1:(n.y1-t.y)/e,y2:(n.y2-t.y)/e};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var t=this.width(),e=this.height();return{x1:0,y1:0,x2:t,y2:e,w:t,h:e}}};Go.centre=Go.center,Go.autolockNodes=Go.autolock,Go.autoungrabifyNodes=Go.autoungrabify;var Ho={data:Vn.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0}),removeData:Vn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0}),scratch:Vn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0}),removeScratch:Vn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0})};Ho.attr=Ho.data,Ho.removeAttr=Ho.removeData;var Fo=function(t){var e=this,n=(t=G({},t)).container;n&&!k(n)&&k(n[0])&&(n=n[0]);var r=n?n._cyreg:null;(r=r||{})&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=e;var o=void 0!==h&&void 0!==n&&!t.headless,a=t;a.layout=G({name:o?"grid":"null"},a.layout),a.renderer=G({name:o?"canvas":"null"},a.renderer);var s=function(t,e,n){return void 0!==e?e:void 0!==n?n:t},u=this._private={container:n,ready:!1,options:a,elements:new io(this),listeners:[],aniEles:new io(this),data:{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,a.zoomingEnabled),userZoomingEnabled:s(!0,a.userZoomingEnabled),panningEnabled:s(!0,a.panningEnabled),userPanningEnabled:s(!0,a.userPanningEnabled),boxSelectionEnabled:s(!0,a.boxSelectionEnabled),autolock:s(!1,a.autolock,a.autolockNodes),autoungrabify:s(!1,a.autoungrabify,a.autoungrabifyNodes),autounselectify:s(!1,a.autounselectify),styleEnabled:void 0===a.styleEnabled?o:a.styleEnabled,zoom:E(a.zoom)?a.zoom:1,pan:{x:_(a.pan)&&E(a.pan.x)?a.pan.x:0,y:_(a.pan)&&E(a.pan.y)?a.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1};this.createEmitter(),this.selectionType(a.selectionType),this.zoomRange({min:a.minZoom,max:a.maxZoom});u.styleEnabled&&e.setStyle([]);var c=G({},a,a.renderer);e.initRenderer(c);!function(t,e){if(t.some(L))return Fn.all(t).then(e);e(t)}([a.style,a.elements],(function(t){var n=t[0],o=t[1];u.styleEnabled&&e.style().append(n),function(t,n,r){e.notifications(!1);var i=e.mutableElements();i.length>0&&i.remove(),null!=t&&(_(t)||x(t))&&e.add(t),e.one("layoutready",(function(t){e.notifications(!0),e.emit(t),e.one("load",n),e.emitAndNotify("load")})).one("layoutstop",(function(){e.one("done",r),e.emit("done")}));var o=G({},e._private.options.layout);o.eles=e.elements(),e.layout(o).run()}(o,(function(){e.startAnimationLoop(),u.ready=!0,m(a.ready)&&e.on("ready",a.ready);for(var t=0;t<i.length;t++){var n=i[t];e.on("ready",n)}r&&(r.readies=[]),e.emit("ready")}),a.done)}))},zo=Fo.prototype;G(zo,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(t){return this.isReady()?this.emitter().emit("ready",[],t):this.on("ready",t),this},destroy:function(){var t=this;if(!t.destroyed())return t.stopAnimationLoop(),t.destroyRenderer(),this.emit("destroy"),t._private.destroyed=!0,t},hasElementWithId:function(t){return this._private.elements.hasElementWithId(t)},getElementById:function(t){return this._private.elements.getElementById(t)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(t){return this._private.elements.merge(t),this},removeFromPool:function(t){return this._private.elements.unmerge(t),this},container:function(){return this._private.container||null},mount:function(t){if(null!=t){var e=this,n=e._private,r=n.options;return!k(t)&&k(t[0])&&(t=t[0]),e.stopAnimationLoop(),e.destroyRenderer(),n.container=t,n.styleEnabled=!0,e.invalidateSize(),e.initRenderer(G({},r,r.renderer,{name:"null"===r.renderer.name?"canvas":r.renderer.name})),e.startAnimationLoop(),e.style(r.style),e.emit("mount"),e}},unmount:function(){var t=this;return t.stopAnimationLoop(),t.destroyRenderer(),t.initRenderer({name:"null"}),t.emit("unmount"),t},options:function(){return gt(this._private.options)},json:function(t){var e=this,n=e._private,r=e.mutableElements();if(_(t)){if(e.startBatch(),t.elements){var i={},o=function(t,n){for(var r=[],o=[],a=0;a<t.length;a++){var s=t[a],u=""+s.data.id,c=e.getElementById(u);i[u]=!0,0!==c.length?o.push({ele:c,json:s}):n?(s.group=n,r.push(s)):r.push(s)}e.add(r);for(var l=0;l<o.length;l++){var f=o[l],h=f.ele,d=f.json;h.json(d)}};if(x(t.elements))o(t.elements);else for(var a=["nodes","edges"],s=0;s<a.length;s++){var u=a[s],c=t.elements[u];x(c)&&o(c,u)}var l=e.collection();r.filter((function(t){return!i[t.id()]})).forEach((function(t){t.isParent()?l.merge(t):t.remove()})),l.forEach((function(t){return t.children().move({parent:null})})),l.forEach((function(t){return function(t){return e.getElementById(t.id())}(t).remove()}))}t.style&&e.style(t.style),null!=t.zoom&&t.zoom!==n.zoom&&e.zoom(t.zoom),t.pan&&(t.pan.x===n.pan.x&&t.pan.y===n.pan.y||e.pan(t.pan)),t.data&&e.data(t.data);for(var f=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify"],h=0;h<f.length;h++){var d=f[h];null!=t[d]&&e[d](t[d])}return e.endBatch(),this}var p={};!!t?p.elements=this.elements().map((function(t){return t.json()})):(p.elements={},r.forEach((function(t){var e=t.group();p.elements[e]||(p.elements[e]=[]),p.elements[e].push(t.json())}))),this._private.styleEnabled&&(p.style=e.style().json()),p.data=gt(e.data());var g=n.options;return p.zoomingEnabled=n.zoomingEnabled,p.userZoomingEnabled=n.userZoomingEnabled,p.zoom=n.zoom,p.minZoom=n.minZoom,p.maxZoom=n.maxZoom,p.panningEnabled=n.panningEnabled,p.userPanningEnabled=n.userPanningEnabled,p.pan=gt(n.pan),p.boxSelectionEnabled=n.boxSelectionEnabled,p.renderer=gt(g.renderer),p.hideEdgesOnViewport=g.hideEdgesOnViewport,p.textureOnViewport=g.textureOnViewport,p.wheelSensitivity=g.wheelSensitivity,p.motionBlur=g.motionBlur,p}}),zo.$id=zo.getElementById,[ao,yo,xo,_o,Eo,ko,Co,To,Bo,Go,Ho].forEach((function(t){G(zo,t)}));var Yo={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,maximal:!1,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}},Vo=function(t){return t.scratch("breadthfirst")},qo=function(t,e){return t.scratch("breadthfirst",e)};function Uo(t){this.options=G({},Yo,t)}Uo.prototype.run=function(){var t,e=this.options,n=e,r=e.cy,i=n.eles,o=i.nodes().filter((function(t){return!t.isParent()})),a=i,s=n.directed,u=n.maximal||n.maximalAdjustments>0,c=ee(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(S(n.roots))t=n.roots;else if(x(n.roots)){for(var l=[],f=0;f<n.roots.length;f++){var h=n.roots[f],d=r.getElementById(h);l.push(d)}t=r.collection(l)}else if(w(n.roots))t=r.$(n.roots);else if(s)t=o.roots();else{var p=i.components();t=r.collection();for(var g=function(e){var n=p[e],r=n.maxDegree(!1),i=n.filter((function(t){return t.degree(!1)===r}));t=t.add(i)},v=0;v<p.length;v++)g(v)}var b=[],y={},m=function(t,e){null==b[e]&&(b[e]=[]);var n=b[e].length;b[e].push(t),qo(t,{index:n,depth:e})};a.bfs({roots:t,directed:n.directed,visit:function(t,e,n,r,i){var o=t[0],a=o.id();m(o,i),y[a]=!0}});for(var _=[],E=0;E<o.length;E++){var k=o[E];y[k.id()]||_.push(k)}var C=function(t){for(var e=b[t],n=0;n<e.length;n++){var r=e[n];null!=r?qo(r,{depth:t,index:n}):(e.splice(n,1),n--)}},T=function(){for(var t=0;t<b.length;t++)C(t)},A=function(t,e){for(var n=Vo(t),r=t.incomers().filter((function(t){return t.isNode()&&i.has(t)})),o=-1,a=t.id(),s=0;s<r.length;s++){var u=r[s],c=Vo(u);o=Math.max(o,c.depth)}return n.depth<=o&&(e[a]?null:(function(t,e){var n=Vo(t),r=n.depth,i=n.index;b[r][i]=null,m(t,e)}(t,o+1),e[a]=!0,!0))};if(s&&u){var N=[],O={},L=function(t){return N.push(t)};for(o.forEach((function(t){return N.push(t)}));N.length>0;){var P=N.shift(),I=A(P,O);if(I)P.outgoers().filter((function(t){return t.isNode()&&i.has(t)})).forEach(L);else if(null===I){pt("Detected double maximal shift for node `"+P.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}T();var j=0;if(n.avoidOverlap)for(var M=0;M<o.length;M++){var D=o[M].layoutDimensions(n),R=D.w,G=D.h;j=Math.max(j,R,G)}for(var H={},F=function(t){if(H[t.id()])return H[t.id()];for(var e=Vo(t).depth,n=t.neighborhood(),r=0,i=0,a=0;a<n.length;a++){var s=n[a];if(!s.isEdge()&&!s.isParent()&&o.has(s)){var u=Vo(s),c=u.index,l=u.depth;if(null!=c&&null!=l){var f=b[l].length;l<e&&(r+=c/f,i++)}}}return r/=i=Math.max(1,i),0===i&&(r=0),H[t.id()]=r,r},z=function(t,e){var n=F(t)-F(e);return 0===n?B(t.id(),e.id()):n},Y=0;Y<b.length;Y++)b[Y].sort(z),C(Y);for(var V=[],q=0;q<_.length;q++)V.push(_[q]);b.unshift(V),T();for(var U=0,X=0;X<b.length;X++)U=Math.max(b[X].length,U);var W=c.x1+c.w/2,$=c.x1+c.h/2,K=b.reduce((function(t,e){return Math.max(t,e.length)}),0);return o.layoutPositions(this,n,(function(t){var e=Vo(t),r=e.depth,i=e.index,o=b[r].length,a=Math.max(c.w/((n.grid?K:o)+1),j),s=Math.max(c.h/(b.length+1),j),u=Math.min(c.w/2/b.length,c.h/2/b.length);if(u=Math.max(u,j),n.circle){var l=u*r+u-(b.length>0&&b[0].length<=3?u/2:0),f=2*Math.PI/b[r].length*i;return 0===r&&1===b[0].length&&(l=1),{x:W+l*Math.cos(f),y:$+l*Math.sin(f)}}return{x:W+(i+1-(o+1)/2)*a,y:(r+1)*s}})),this};var Xo={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function Wo(t){this.options=G({},Xo,t)}Wo.prototype.run=function(){var t=this.options,e=t,n=t.cy,r=e.eles,i=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,o=r.nodes().not(":parent");e.sort&&(o=o.sort(e.sort));for(var a,s=ee(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),u=s.x1+s.w/2,c=s.y1+s.h/2,l=(void 0===e.sweep?2*Math.PI-2*Math.PI/o.length:e.sweep)/Math.max(1,o.length-1),f=0,h=0;h<o.length;h++){var d=o[h].layoutDimensions(e),p=d.w,g=d.h;f=Math.max(f,p,g)}if(a=E(e.radius)?e.radius:o.length<=1?0:Math.min(s.h,s.w)/2-f,o.length>1&&e.avoidOverlap){f*=1.75;var v=Math.cos(l)-Math.cos(0),b=Math.sin(l)-Math.sin(0),y=Math.sqrt(f*f/(v*v+b*b));a=Math.max(y,a)}return o.layoutPositions(this,e,(function(t,n){var r=e.startAngle+n*l*(i?1:-1),o=a*Math.cos(r),s=a*Math.sin(r);return{x:u+o,y:c+s}})),this};var $o,Ko={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(t){return t.degree()},levelWidth:function(t){return t.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function Zo(t){this.options=G({},Ko,t)}Zo.prototype.run=function(){for(var t=this.options,e=t,n=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,r=t.cy,i=e.eles.nodes().not(":parent"),o=ee(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),a=o.x1+o.w/2,s=o.y1+o.h/2,u=[],c=0,l=0;l<i.length;l++){var f,h=i[l];f=e.concentric(h),u.push({value:f,node:h}),h._private.scratch.concentric=f}i.updateStyle();for(var d=0;d<i.length;d++){var p=i[d].layoutDimensions(e);c=Math.max(c,p.w,p.h)}u.sort((function(t,e){return e.value-t.value}));for(var g=e.levelWidth(i),v=[[]],b=v[0],y=0;y<u.length;y++){var w=u[y];if(b.length>0)Math.abs(b[0].value-w.value)>=g&&(b=[],v.push(b));b.push(w)}var m=c+e.minNodeSpacing;if(!e.avoidOverlap){var x=v.length>0&&v[0].length>1,_=(Math.min(o.w,o.h)/2-m)/(v.length+x?1:0);m=Math.min(m,_)}for(var E=0,k=0;k<v.length;k++){var S=v[k],C=void 0===e.sweep?2*Math.PI-2*Math.PI/S.length:e.sweep,T=S.dTheta=C/Math.max(1,S.length-1);if(S.length>1&&e.avoidOverlap){var A=Math.cos(T)-Math.cos(0),N=Math.sin(T)-Math.sin(0),O=Math.sqrt(m*m/(A*A+N*N));E=Math.max(O,E)}S.r=E,E+=m}if(e.equidistant){for(var L=0,P=0,I=0;I<v.length;I++){var j=v[I].r-P;L=Math.max(L,j)}P=0;for(var M=0;M<v.length;M++){var D=v[M];0===M&&(P=D.r),D.r=P,P+=L}}for(var R={},B=0;B<v.length;B++)for(var G=v[B],H=G.dTheta,F=G.r,z=0;z<G.length;z++){var Y=G[z],V=e.startAngle+(n?1:-1)*H*z,q={x:a+F*Math.cos(V),y:s+F*Math.sin(V)};R[Y.node.id()]=q}return i.layoutPositions(this,e,(function(t){var e=t.id();return R[e]})),this};var Qo={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(t,e){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(t){return 2048},nodeOverlap:4,idealEdgeLength:function(t){return 32},edgeElasticity:function(t){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function Jo(t){this.options=G({},Qo,t),this.options.layout=this}Jo.prototype.run=function(){var t=this.options,e=t.cy,n=this;n.stopped=!1,!0!==t.animate&&!1!==t.animate||n.emit({type:"layoutstart",layout:n}),$o=!0===t.debug;var r=ta(e,n,t);$o&&(void 0)(r),t.randomize&&ra(r);var i=W(),o=function(){oa(r,e,t),!0===t.fit&&e.fit(t.padding)},a=function(e){return!(n.stopped||e>=t.numIter)&&(aa(r,t),r.temperature=r.temperature*t.coolingFactor,!(r.temperature<t.minTemp))},s=function(){if(!0===t.animate||!1===t.animate)o(),n.one("layoutstop",t.stop),n.emit({type:"layoutstop",layout:n});else{var e=t.eles.nodes(),i=ia(r,t,e);e.layoutPositions(n,t,i)}},u=0,c=!0;if(!0===t.animate){!function e(){for(var n=0;c&&n<t.refresh;)c=a(u),u++,n++;c?(W()-i>=t.animationThreshold&&o(),X(e)):(ya(r,t),s())}()}else{for(;c;)c=a(u),u++;ya(r,t),s()}return this},Jo.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Jo.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var ta=function(t,e,n){for(var r=n.eles.edges(),i=n.eles.nodes(),o={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:t.width(),clientHeight:t.width(),boundingBox:ee(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()})},a=n.eles.components(),s={},u=0;u<a.length;u++)for(var c=a[u],l=0;l<c.length;l++){s[c[l].id()]=u}for(u=0;u<o.nodeSize;u++){var f=(v=i[u]).layoutDimensions(n);(I={}).isLocked=v.locked(),I.id=v.data("id"),I.parentId=v.data("parent"),I.cmptId=s[v.id()],I.children=[],I.positionX=v.position("x"),I.positionY=v.position("y"),I.offsetX=0,I.offsetY=0,I.height=f.w,I.width=f.h,I.maxX=I.positionX+I.width/2,I.minX=I.positionX-I.width/2,I.maxY=I.positionY+I.height/2,I.minY=I.positionY-I.height/2,I.padLeft=parseFloat(v.style("padding")),I.padRight=parseFloat(v.style("padding")),I.padTop=parseFloat(v.style("padding")),I.padBottom=parseFloat(v.style("padding")),I.nodeRepulsion=m(n.nodeRepulsion)?n.nodeRepulsion(v):n.nodeRepulsion,o.layoutNodes.push(I),o.idToIndex[I.id]=u}var h=[],d=0,p=-1,g=[];for(u=0;u<o.nodeSize;u++){var v,b=(v=o.layoutNodes[u]).parentId;null!=b?o.layoutNodes[o.idToIndex[b]].children.push(v.id):(h[++p]=v.id,g.push(v.id))}for(o.graphSet.push(g);d<=p;){var y=h[d++],w=o.idToIndex[y],x=o.layoutNodes[w].children;if(x.length>0){o.graphSet.push(x);for(u=0;u<x.length;u++)h[++p]=x[u]}}for(u=0;u<o.graphSet.length;u++){var _=o.graphSet[u];for(l=0;l<_.length;l++){var E=o.idToIndex[_[l]];o.indexToGraph[E]=u}}for(u=0;u<o.edgeSize;u++){var k=r[u],S={};S.id=k.data("id"),S.sourceId=k.data("source"),S.targetId=k.data("target");var C=m(n.idealEdgeLength)?n.idealEdgeLength(k):n.idealEdgeLength,T=m(n.edgeElasticity)?n.edgeElasticity(k):n.edgeElasticity,A=o.idToIndex[S.sourceId],N=o.idToIndex[S.targetId];if(o.indexToGraph[A]!=o.indexToGraph[N]){for(var O=ea(S.sourceId,S.targetId,o),L=o.graphSet[O],P=0,I=o.layoutNodes[A];-1===L.indexOf(I.id);)I=o.layoutNodes[o.idToIndex[I.parentId]],P++;for(I=o.layoutNodes[N];-1===L.indexOf(I.id);)I=o.layoutNodes[o.idToIndex[I.parentId]],P++;C*=P*n.nestingFactor}S.idealLength=C,S.elasticity=T,o.layoutEdges.push(S)}return o},ea=function(t,e,n){var r=na(t,e,0,n);return 2>r.count?0:r.graph},na=function t(e,n,r,i){var o=i.graphSet[r];if(-1<o.indexOf(e)&&-1<o.indexOf(n))return{count:2,graph:r};for(var a=0,s=0;s<o.length;s++){var u=o[s],c=i.idToIndex[u],l=i.layoutNodes[c].children;if(0!==l.length){var f=t(e,n,i.indexToGraph[i.idToIndex[l[0]]],i);if(0!==f.count){if(1!==f.count)return f;if(2===++a)break}}}return{count:a,graph:r}},ra=function(t,e){for(var n=t.clientWidth,r=t.clientHeight,i=0;i<t.nodeSize;i++){var o=t.layoutNodes[i];0!==o.children.length||o.isLocked||(o.positionX=Math.random()*n,o.positionY=Math.random()*r)}},ia=function(t,e,n){var r=t.boundingBox,i={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return e.boundingBox&&(n.forEach((function(e){var n=t.layoutNodes[t.idToIndex[e.data("id")]];i.x1=Math.min(i.x1,n.positionX),i.x2=Math.max(i.x2,n.positionX),i.y1=Math.min(i.y1,n.positionY),i.y2=Math.max(i.y2,n.positionY)})),i.w=i.x2-i.x1,i.h=i.y2-i.y1),function(n,o){var a=t.layoutNodes[t.idToIndex[n.data("id")]];if(e.boundingBox){var s=(a.positionX-i.x1)/i.w,u=(a.positionY-i.y1)/i.h;return{x:r.x1+s*r.w,y:r.y1+u*r.h}}return{x:a.positionX,y:a.positionY}}},oa=function(t,e,n){var r=n.layout,i=n.eles.nodes(),o=ia(t,n,i);i.positions(o),!0!==t.ready&&(t.ready=!0,r.one("layoutready",n.ready),r.emit({type:"layoutready",layout:this}))},aa=function(t,e,n){sa(t,e),ha(t),da(t,e),pa(t),ga(t)},sa=function(t,e){for(var n=0;n<t.graphSet.length;n++)for(var r=t.graphSet[n],i=r.length,o=0;o<i;o++)for(var a=t.layoutNodes[t.idToIndex[r[o]]],s=o+1;s<i;s++){var u=t.layoutNodes[t.idToIndex[r[s]]];ca(a,u,t,e)}},ua=function(t){return-t+2*t*Math.random()},ca=function(t,e,n,r){if(t.cmptId===e.cmptId||n.isCompound){var i=e.positionX-t.positionX,o=e.positionY-t.positionY;0===i&&0===o&&(i=ua(1),o=ua(1));var a=la(t,e,i,o);if(a>0)var s=(c=r.nodeOverlap*a)*i/(g=Math.sqrt(i*i+o*o)),u=c*o/g;else{var c,l=fa(t,i,o),f=fa(e,-1*i,-1*o),h=f.x-l.x,d=f.y-l.y,p=h*h+d*d,g=Math.sqrt(p);s=(c=(t.nodeRepulsion+e.nodeRepulsion)/p)*h/g,u=c*d/g}t.isLocked||(t.offsetX-=s,t.offsetY-=u),e.isLocked||(e.offsetX+=s,e.offsetY+=u)}},la=function(t,e,n,r){if(n>0)var i=t.maxX-e.minX;else i=e.maxX-t.minX;if(r>0)var o=t.maxY-e.minY;else o=e.maxY-t.minY;return i>=0&&o>=0?Math.sqrt(i*i+o*o):0},fa=function(t,e,n){var r=t.positionX,i=t.positionY,o=t.height||1,a=t.width||1,s=n/e,u=o/a,c={};return 0===e&&0<n||0===e&&0>n?(c.x=r,c.y=i+o/2,c):0<e&&-1*u<=s&&s<=u?(c.x=r+a/2,c.y=i+a*n/2/e,c):0>e&&-1*u<=s&&s<=u?(c.x=r-a/2,c.y=i-a*n/2/e,c):0<n&&(s<=-1*u||s>=u)?(c.x=r+o*e/2/n,c.y=i+o/2,c):0>n&&(s<=-1*u||s>=u)?(c.x=r-o*e/2/n,c.y=i-o/2,c):c},ha=function(t,e){for(var n=0;n<t.edgeSize;n++){var r=t.layoutEdges[n],i=t.idToIndex[r.sourceId],o=t.layoutNodes[i],a=t.idToIndex[r.targetId],s=t.layoutNodes[a],u=s.positionX-o.positionX,c=s.positionY-o.positionY;if(0!==u||0!==c){var l=fa(o,u,c),f=fa(s,-1*u,-1*c),h=f.x-l.x,d=f.y-l.y,p=Math.sqrt(h*h+d*d),g=Math.pow(r.idealLength-p,2)/r.elasticity;if(0!==p)var v=g*h/p,b=g*d/p;else v=0,b=0;o.isLocked||(o.offsetX+=v,o.offsetY+=b),s.isLocked||(s.offsetX-=v,s.offsetY-=b)}}},da=function(t,e){for(var n=0;n<t.graphSet.length;n++){var r=t.graphSet[n],i=r.length;if(0===n)var o=t.clientHeight/2,a=t.clientWidth/2;else{var s=t.layoutNodes[t.idToIndex[r[0]]],u=t.layoutNodes[t.idToIndex[s.parentId]];o=u.positionX,a=u.positionY}for(var c=0;c<i;c++){var l=t.layoutNodes[t.idToIndex[r[c]]];if(!l.isLocked){var f=o-l.positionX,h=a-l.positionY,d=Math.sqrt(f*f+h*h);if(d>1){var p=e.gravity*f/d,g=e.gravity*h/d;l.offsetX+=p,l.offsetY+=g}}}}},pa=function(t,e){var n=[],r=0,i=-1;for(n.push.apply(n,t.graphSet[0]),i+=t.graphSet[0].length;r<=i;){var o=n[r++],a=t.idToIndex[o],s=t.layoutNodes[a],u=s.children;if(0<u.length&&!s.isLocked){for(var c=s.offsetX,l=s.offsetY,f=0;f<u.length;f++){var h=t.layoutNodes[t.idToIndex[u[f]]];h.offsetX+=c,h.offsetY+=l,n[++i]=u[f]}s.offsetX=0,s.offsetY=0}}},ga=function(t,e){for(var n=0;n<t.nodeSize;n++){0<(i=t.layoutNodes[n]).children.length&&(i.maxX=void 0,i.minX=void 0,i.maxY=void 0,i.minY=void 0)}for(n=0;n<t.nodeSize;n++){if(!(0<(i=t.layoutNodes[n]).children.length||i.isLocked)){var r=va(i.offsetX,i.offsetY,t.temperature);i.positionX+=r.x,i.positionY+=r.y,i.offsetX=0,i.offsetY=0,i.minX=i.positionX-i.width,i.maxX=i.positionX+i.width,i.minY=i.positionY-i.height,i.maxY=i.positionY+i.height,ba(i,t)}}for(n=0;n<t.nodeSize;n++){var i;0<(i=t.layoutNodes[n]).children.length&&!i.isLocked&&(i.positionX=(i.maxX+i.minX)/2,i.positionY=(i.maxY+i.minY)/2,i.width=i.maxX-i.minX,i.height=i.maxY-i.minY)}},va=function(t,e,n){var r=Math.sqrt(t*t+e*e);if(r>n)var i={x:n*t/r,y:n*e/r};else i={x:t,y:e};return i},ba=function t(e,n){var r=e.parentId;if(null!=r){var i=n.layoutNodes[n.idToIndex[r]],o=!1;return(null==i.maxX||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,o=!0),(null==i.minX||e.minX-i.padLeft<i.minX)&&(i.minX=e.minX-i.padLeft,o=!0),(null==i.maxY||e.maxY+i.padBottom>i.maxY)&&(i.maxY=e.maxY+i.padBottom,o=!0),(null==i.minY||e.minY-i.padTop<i.minY)&&(i.minY=e.minY-i.padTop,o=!0),o?t(i,n):void 0}},ya=function(t,e){for(var n=t.layoutNodes,r=[],i=0;i<n.length;i++){var o=n[i],a=o.cmptId;(r[a]=r[a]||[]).push(o)}var s=0;for(i=0;i<r.length;i++){if(g=r[i]){g.x1=1/0,g.x2=-1/0,g.y1=1/0,g.y2=-1/0;for(var u=0;u<g.length;u++){var c=g[u];g.x1=Math.min(g.x1,c.positionX-c.width/2),g.x2=Math.max(g.x2,c.positionX+c.width/2),g.y1=Math.min(g.y1,c.positionY-c.height/2),g.y2=Math.max(g.y2,c.positionY+c.height/2)}g.w=g.x2-g.x1,g.h=g.y2-g.y1,s+=g.w*g.h}}r.sort((function(t,e){return e.w*e.h-t.w*t.h}));var l=0,f=0,h=0,d=0,p=Math.sqrt(s)*t.clientWidth/t.clientHeight;for(i=0;i<r.length;i++){var g;if(g=r[i]){for(u=0;u<g.length;u++){(c=g[u]).isLocked||(c.positionX+=l-g.x1,c.positionY+=f-g.y1)}l+=g.w+e.componentSpacing,h+=g.w+e.componentSpacing,d=Math.max(d,g.h),h>p&&(f+=d+e.componentSpacing,l=0,h=0,d=0)}}},wa={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(t){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function ma(t){this.options=G({},wa,t)}ma.prototype.run=function(){var t=this.options,e=t,n=t.cy,r=e.eles.nodes().not(":parent");e.sort&&(r=r.sort(e.sort));var i=ee(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===i.h||0===i.w)r.layoutPositions(this,e,(function(t){return{x:i.x1,y:i.y1}}));else{var o=r.size(),a=Math.sqrt(o*i.h/i.w),s=Math.round(a),u=Math.round(i.w/i.h*a),c=function(t){if(null==t)return Math.min(s,u);Math.min(s,u)==s?s=t:u=t},l=function(t){if(null==t)return Math.max(s,u);Math.max(s,u)==s?s=t:u=t},f=e.rows,h=null!=e.cols?e.cols:e.columns;if(null!=f&&null!=h)s=f,u=h;else if(null!=f&&null==h)s=f,u=Math.ceil(o/s);else if(null==f&&null!=h)u=h,s=Math.ceil(o/u);else if(u*s>o){var d=c(),p=l();(d-1)*p>=o?c(d-1):(p-1)*d>=o&&l(p-1)}else for(;u*s<o;){var g=c(),v=l();(v+1)*g>=o?l(v+1):c(g+1)}var b=i.w/u,y=i.h/s;if(e.condense&&(b=0,y=0),e.avoidOverlap)for(var w=0;w<r.length;w++){var m=r[w],x=m._private.position;null!=x.x&&null!=x.y||(x.x=0,x.y=0);var _=m.layoutDimensions(e),E=e.avoidOverlapPadding,k=_.w+E,S=_.h+E;b=Math.max(b,k),y=Math.max(y,S)}for(var C={},T=function(t,e){return!!C["c-"+t+"-"+e]},A=function(t,e){C["c-"+t+"-"+e]=!0},N=0,O=0,L=function(){++O>=u&&(O=0,N++)},P={},I=0;I<r.length;I++){var j=r[I],M=e.position(j);if(M&&(void 0!==M.row||void 0!==M.col)){var D={row:M.row,col:M.col};if(void 0===D.col)for(D.col=0;T(D.row,D.col);)D.col++;else if(void 0===D.row)for(D.row=0;T(D.row,D.col);)D.row++;P[j.id()]=D,A(D.row,D.col)}}r.layoutPositions(this,e,(function(t,e){var n,r;if(t.locked()||t.isParent())return!1;var o=P[t.id()];if(o)n=o.col*b+b/2+i.x1,r=o.row*y+y/2+i.y1;else{for(;T(N,O);)L();n=O*b+b/2+i.x1,r=N*y+y/2+i.y1,A(N,O),L()}return{x:n,y:r}}))}return this};var xa={ready:function(){},stop:function(){}};function _a(t){this.options=G({},xa,t)}_a.prototype.run=function(){var t=this.options,e=t.eles;t.cy;return this.emit("layoutstart"),e.nodes().positions((function(){return{x:0,y:0}})),this.one("layoutready",t.ready),this.emit("layoutready"),this.one("layoutstop",t.stop),this.emit("layoutstop"),this},_a.prototype.stop=function(){return this};var Ea={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function ka(t){this.options=G({},Ea,t)}ka.prototype.run=function(){var t=this.options,e=t.eles.nodes(),n=m(t.positions);return e.layoutPositions(this,t,(function(e,r){var i=function(e){if(null==t.positions)return function(t){return{x:t.x,y:t.y}}(e.position());if(n)return t.positions(e);var r=t.positions[e._private.data.id];return null==r?null:r}(e);return!e.locked()&&null!=i&&i})),this};var Sa={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function Ca(t){this.options=G({},Sa,t)}Ca.prototype.run=function(){var t=this.options,e=t.cy,n=t.eles.nodes().not(":parent"),r=ee(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()});return n.layoutPositions(this,t,(function(t,e){return{x:r.x1+Math.round(Math.random()*r.w),y:r.y1+Math.round(Math.random()*r.h)}})),this};var Ta=[{name:"breadthfirst",impl:Uo},{name:"circle",impl:Wo},{name:"concentric",impl:Zo},{name:"cose",impl:Jo},{name:"grid",impl:ma},{name:"null",impl:_a},{name:"preset",impl:ka},{name:"random",impl:Ca}];function Aa(t){this.options=t,this.notifications=0}var Na=function(){},Oa=function(){throw new Error("A headless instance can not render images")};Aa.prototype={recalculateRenderedStyle:Na,notify:function(){this.notifications++},init:Na,isHeadless:function(){return!0},png:Oa,jpg:Oa};var La={arrowShapeWidth:.3,registerArrowShapes:function(){var t=this.arrowShapes={},e=this,n=function(t,e,n,r,i,o,a){var s=i.x-n/2-a,u=i.x+n/2+a,c=i.y-n/2-a,l=i.y+n/2+a;return s<=t&&t<=u&&c<=e&&e<=l},r=function(t,e,n,r,i){var o=t*Math.cos(r)-e*Math.sin(r),a=(t*Math.sin(r)+e*Math.cos(r))*n;return{x:o*n+i.x,y:a+i.y}},i=function(t,e,n,i){for(var o=[],a=0;a<t.length;a+=2){var s=t[a],u=t[a+1];o.push(r(s,u,e,n,i))}return o},o=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r.x,r.y)}return e},a=function(t){return t.pstyle("width").pfValue*t.pstyle("arrow-scale").pfValue*2},s=function(r,s){w(s)&&(s=t[s]),t[r]=G({name:r,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(t,e,n,r,a,s){var u=o(i(this.points,n+2*s,r,a));return ge(t,e,u)},roughCollide:n,draw:function(t,n,r,o){var a=i(this.points,n,r,o);e.arrowShapeImpl("polygon")(t,a)},spacing:function(t){return 0},gap:a},s)};s("none",{collide:ct,roughCollide:ct,draw:ft,spacing:lt,gap:lt}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:t.triangle.points,controlPoint:[0,-.15],roughCollide:n,draw:function(t,n,o,a,s){var u=i(this.points,n,o,a),c=this.controlPoint,l=r(c[0],c[1],n,o,a);e.arrowShapeImpl(this.name)(t,u,l)},gap:function(t){return.8*a(t)}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(t,e,n,r,a,s,u){var c=o(i(this.points,n+2*u,r,a)),l=o(i(this.pointsTee,n+2*u,r,a));return ge(t,e,c)||ge(t,e,l)},draw:function(t,n,r,o,a){var s=i(this.points,n,r,o),u=i(this.pointsTee,n,r,o);e.arrowShapeImpl(this.name)(t,s,u)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(t,e,n,r,a,s,u){var c=a,l=Math.pow(c.x-t,2)+Math.pow(c.y-e,2)<=Math.pow((n+2*u)*this.radius,2),f=o(i(this.points,n+2*u,r,a));return ge(t,e,f)||l},draw:function(t,n,r,o,a){var s=i(this.pointsTr,n,r,o);e.arrowShapeImpl(this.name)(t,s,o.x,o.y,this.radius*n)},spacing:function(t){return e.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(t,e){var n=this.baseCrossLinePts.slice(),r=e/t;return n[3]=n[3]-r,n[5]=n[5]-r,n},collide:function(t,e,n,r,a,s,u){var c=o(i(this.points,n+2*u,r,a)),l=o(i(this.crossLinePts(n,s),n+2*u,r,a));return ge(t,e,c)||ge(t,e,l)},draw:function(t,n,r,o,a){var s=i(this.points,n,r,o),u=i(this.crossLinePts(n,a),n,r,o);e.arrowShapeImpl(this.name)(t,s,u)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(t){return.525*a(t)}}),s("circle",{radius:.15,collide:function(t,e,n,r,i,o,a){var s=i;return Math.pow(s.x-t,2)+Math.pow(s.y-e,2)<=Math.pow((n+2*a)*this.radius,2)},draw:function(t,n,r,i,o){e.arrowShapeImpl(this.name)(t,i.x,i.y,this.radius*n)},spacing:function(t){return e.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(t){return 1},gap:function(t){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(t){return t.pstyle("width").pfValue*t.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(t){return.95*t.pstyle("width").pfValue*t.pstyle("arrow-scale").value}})}},Pa={projectIntoViewport:function(t,e){var n=this.cy,r=this.findContainerClientCoords(),i=r[0],o=r[1],a=r[4],s=n.pan(),u=n.zoom();return[((t-i)/a-s.x)/u,((e-o)/a-s.y)/u]},findContainerClientCoords:function(){if(this.containerBB)return this.containerBB;var t=this.container,e=t.getBoundingClientRect(),n=h.getComputedStyle(t),r=function(t){return parseFloat(n.getPropertyValue(t))},i=r("padding-left"),o=r("padding-right"),a=r("padding-top"),s=r("padding-bottom"),u=r("border-left-width"),c=r("border-right-width"),l=r("border-top-width"),f=(r("border-bottom-width"),t.clientWidth),d=t.clientHeight,p=i+o,g=a+s,v=u+c,b=e.width/(f+v),y=f-p,w=d-g,m=e.left+i+u,x=e.top+a+l;return this.containerBB=[m,x,y,w,b]},invalidateContainerClientCoordsCache:function(){this.containerBB=null},findNearestElement:function(t,e,n,r){return this.findNearestElements(t,e,n,r)[0]},findNearestElements:function(t,e,n,r){var i,o,a=this,s=this,u=s.getCachedZSortedEles(),c=[],l=s.cy.zoom(),f=s.cy.hasCompoundNodes(),h=(r?24:8)/l,d=(r?8:2)/l,p=(r?8:2)/l,g=1/0;function v(t,e){if(t.isNode()){if(o)return;o=t,c.push(t)}if(t.isEdge()&&(null==e||e<g))if(i){if(i.pstyle("z-compound-depth").value===t.pstyle("z-compound-depth").value&&i.pstyle("z-compound-depth").value===t.pstyle("z-compound-depth").value)for(var n=0;n<c.length;n++)if(c[n].isEdge()){c[n]=t,i=t,g=null!=e?e:g;break}}else c.push(t),i=t,g=null!=e?e:g}function b(n){var r=n.outerWidth()+2*d,i=n.outerHeight()+2*d,o=r/2,u=i/2,c=n.position();if(c.x-o<=t&&t<=c.x+o&&c.y-u<=e&&e<=c.y+u&&s.nodeShapes[a.getNodeShape(n)].checkPoint(t,e,0,r,i,c.x,c.y))return v(n,0),!0}function y(n){var r,i=n._private,o=i.rscratch,u=n.pstyle("width").pfValue,l=n.pstyle("arrow-scale").value,d=u/2+h,p=d*d,g=2*d,y=i.source,w=i.target;if("segments"===o.edgeType||"straight"===o.edgeType||"haystack"===o.edgeType){for(var m=o.allpts,x=0;x+3<m.length;x+=2)if(fe(t,e,m[x],m[x+1],m[x+2],m[x+3],g)&&p>(r=pe(t,e,m[x],m[x+1],m[x+2],m[x+3])))return v(n,r),!0}else if("bezier"===o.edgeType||"multibezier"===o.edgeType||"self"===o.edgeType||"compound"===o.edgeType)for(m=o.allpts,x=0;x+5<o.allpts.length;x+=4)if(he(t,e,m[x],m[x+1],m[x+2],m[x+3],m[x+4],m[x+5],g)&&p>(r=de(t,e,m[x],m[x+1],m[x+2],m[x+3],m[x+4],m[x+5])))return v(n,r),!0;y=y||i.source,w=w||i.target;var _=a.getArrowWidth(u,l),E=[{name:"source",x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:"target",x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:"mid-source",x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:"mid-target",x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}];for(x=0;x<E.length;x++){var k=E[x],S=s.arrowShapes[n.pstyle(k.name+"-arrow-shape").value],C=n.pstyle("width").pfValue;if(S.roughCollide(t,e,_,k.angle,{x:k.x,y:k.y},C,h)&&S.collide(t,e,_,k.angle,{x:k.x,y:k.y},C,h))return v(n),!0}f&&c.length>0&&(b(y),b(w))}function w(t,e,n){return _t(t,e,n)}function m(n,r){var i,o=n._private,a=p;i=r?r+"-":"",n.boundingBox();var s=o.labelBounds[r||"main"],u=n.pstyle(i+"label").value;if("yes"===n.pstyle("text-events").strValue&&u){var c=o.rstyle,l=w(c,"labelX",r),f=w(c,"labelY",r),h=w(o.rscratch,"labelAngle",r),d=s.x1-a,g=s.x2+a,b=s.y1-a,y=s.y2+a;if(h){var m=Math.cos(h),x=Math.sin(h),_=function(t,e){return{x:(t-=l)*m-(e-=f)*x+l,y:t*x+e*m+f}},E=_(d,b),k=_(d,y),S=_(g,b),C=_(g,y),T=[E.x,E.y,S.x,S.y,C.x,C.y,k.x,k.y];if(ge(t,e,T))return v(n),!0}else if(ue(s,t,e))return v(n),!0}}n&&(u=u.interactive);for(var x=u.length-1;x>=0;x--){var _=u[x];_.isNode()?b(_)||m(_):y(_)||m(_)||m(_,"source")||m(_,"target")}return c},getAllInBox:function(t,e,n,r){for(var i,o,a=this.getCachedZSortedEles().interactive,s=[],u=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,r),f=Math.max(e,r),h=ee({x1:t=u,y1:e=l,x2:n=c,y2:r=f}),d=0;d<a.length;d++){var p=a[d];if(p.isNode()){var g=p,v=g.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});se(h,v)&&!ce(v,h)&&s.push(g)}else{var b=p,y=b._private,w=y.rscratch;if(null!=w.startX&&null!=w.startY&&!ue(h,w.startX,w.startY))continue;if(null!=w.endX&&null!=w.endY&&!ue(h,w.endX,w.endY))continue;if("bezier"===w.edgeType||"multibezier"===w.edgeType||"self"===w.edgeType||"compound"===w.edgeType||"segments"===w.edgeType||"haystack"===w.edgeType){for(var m=y.rstyle.bezierPts||y.rstyle.linePts||y.rstyle.haystackPts,x=!0,_=0;_<m.length;_++)if(i=h,o=m[_],!ue(i,o.x,o.y)){x=!1;break}x&&s.push(b)}else"haystack"!==w.edgeType&&"straight"!==w.edgeType||s.push(b)}}return s}},Ia={calculateArrowAngles:function(t){var e,n,r,i,o,a,s=t._private.rscratch,u="haystack"===s.edgeType,c="bezier"===s.edgeType,l="multibezier"===s.edgeType,f="segments"===s.edgeType,h="compound"===s.edgeType,d="self"===s.edgeType;if(u?(r=s.haystackPts[0],i=s.haystackPts[1],o=s.haystackPts[2],a=s.haystackPts[3]):(r=s.arrowStartX,i=s.arrowStartY,o=s.arrowEndX,a=s.arrowEndY),g=s.midX,v=s.midY,f)e=r-s.segpts[0],n=i-s.segpts[1];else if(l||h||d||c){var p=s.allpts;e=r-Qt(p[0],p[2],p[4],.1),n=i-Qt(p[1],p[3],p[5],.1)}else e=r-g,n=i-v;s.srcArrowAngle=Ut(e,n);var g=s.midX,v=s.midY;if(u&&(g=(r+o)/2,v=(i+a)/2),e=o-r,n=a-i,f)if((p=s.allpts).length/2%2==0){var b=(y=p.length/2)-2;e=p[y]-p[b],n=p[y+1]-p[b+1]}else{b=(y=p.length/2-1)-2;var y,w=y+2;e=p[y]-p[b],n=p[y+1]-p[b+1]}else if(l||h||d){var m,x,_,E,p=s.allpts;if(s.ctrlpts.length/2%2==0){var k=(S=(C=p.length/2-1)+2)+2;m=Qt(p[C],p[S],p[k],0),x=Qt(p[C+1],p[S+1],p[k+1],0),_=Qt(p[C],p[S],p[k],1e-4),E=Qt(p[C+1],p[S+1],p[k+1],1e-4)}else{var S,C;k=(S=p.length/2-1)+2;m=Qt(p[C=S-2],p[S],p[k],.4999),x=Qt(p[C+1],p[S+1],p[k+1],.4999),_=Qt(p[C],p[S],p[k],.5),E=Qt(p[C+1],p[S+1],p[k+1],.5)}e=_-m,n=E-x}(s.midtgtArrowAngle=Ut(e,n),s.midDispX=e,s.midDispY=n,e*=-1,n*=-1,f)&&((p=s.allpts).length/2%2==0||(e=-(p[w=(y=p.length/2-1)+2]-p[y]),n=-(p[w+1]-p[y+1])));if(s.midsrcArrowAngle=Ut(e,n),f)e=o-s.segpts[s.segpts.length-2],n=a-s.segpts[s.segpts.length-1];else if(l||h||d||c){var T=(p=s.allpts).length;e=o-Qt(p[T-6],p[T-4],p[T-2],.9),n=a-Qt(p[T-5],p[T-3],p[T-1],.9)}else e=o-g,n=a-v;s.tgtArrowAngle=Ut(e,n)}};Ia.getArrowWidth=Ia.getArrowHeight=function(t,e){var n=this.arrowWidthCache=this.arrowWidthCache||{},r=n[t+", "+e];return r||(r=Math.max(Math.pow(13.37*t,.9),29)*e,n[t+", "+e]=r,r)};var ja={};function Ma(t){var e=[];if(null!=t){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e.push({x:r,y:i})}return e}}ja.findHaystackPoints=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n._private,i=r.rscratch;if(!i.haystack){var o=2*Math.random()*Math.PI;i.source={x:Math.cos(o),y:Math.sin(o)},o=2*Math.random()*Math.PI,i.target={x:Math.cos(o),y:Math.sin(o)}}var a=r.source,s=r.target,u=a.position(),c=s.position(),l=a.width(),f=s.width(),h=a.height(),d=s.height(),p=n.pstyle("haystack-radius").value/2;i.haystackPts=i.allpts=[i.source.x*l*p+u.x,i.source.y*h*p+u.y,i.target.x*f*p+c.x,i.target.y*d*p+c.y],i.midX=(i.allpts[0]+i.allpts[2])/2,i.midY=(i.allpts[1]+i.allpts[3])/2,i.edgeType="haystack",i.haystack=!0,this.storeEdgeProjections(n),this.calculateArrowAngles(n),this.recalculateEdgeLabelProjections(n),this.calculateLabelAngles(n)}},ja.findSegmentsPoints=function(t,e){var n=t._private.rscratch,r=e.posPts,i=e.intersectionPts,o=e.vectorNormInverse,a=t.pstyle("edge-distances").value,s=t.pstyle("segment-weights"),u=t.pstyle("segment-distances"),c=Math.min(s.pfValue.length,u.pfValue.length);n.edgeType="segments",n.segpts=[];for(var l=0;l<c;l++){var f=s.pfValue[l],h=u.pfValue[l],d=1-f,p=f,g="node-position"===a?r:i,v={x:g.x1*d+g.x2*p,y:g.y1*d+g.y2*p};n.segpts.push(v.x+o.x*h,v.y+o.y*h)}},ja.findLoopPoints=function(t,e,n,r){var i=t._private.rscratch,o=e.dirCounts,a=e.srcPos,s=t.pstyle("control-point-distances"),u=s?s.pfValue[0]:void 0,c=t.pstyle("loop-direction").pfValue,l=t.pstyle("loop-sweep").pfValue,f=t.pstyle("control-point-step-size").pfValue;i.edgeType="self";var h=n,d=f;r&&(h=0,d=u);var p=c-Math.PI/2,g=p-l/2,v=p+l/2,b=String(c+"_"+l);h=void 0===o[b]?o[b]=0:++o[b],i.ctrlpts=[a.x+1.4*Math.cos(g)*d*(h/3+1),a.y+1.4*Math.sin(g)*d*(h/3+1),a.x+1.4*Math.cos(v)*d*(h/3+1),a.y+1.4*Math.sin(v)*d*(h/3+1)]},ja.findCompoundLoopPoints=function(t,e,n,r){var i=t._private.rscratch;i.edgeType="compound";var o=e.srcPos,a=e.tgtPos,s=e.srcW,u=e.srcH,c=e.tgtW,l=e.tgtH,f=t.pstyle("control-point-step-size").pfValue,h=t.pstyle("control-point-distances"),d=h?h.pfValue[0]:void 0,p=n,g=f;r&&(p=0,g=d);var v={x:o.x-s/2,y:o.y-u/2},b={x:a.x-c/2,y:a.y-l/2},y={x:Math.min(v.x,b.x),y:Math.min(v.y,b.y)},w=Math.max(.5,Math.log(.01*s)),m=Math.max(.5,Math.log(.01*c));i.ctrlpts=[y.x,y.y-(1+Math.pow(50,1.12)/100)*g*(p/3+1)*w,y.x-(1+Math.pow(50,1.12)/100)*g*(p/3+1)*m,y.y]},ja.findStraightEdgePoints=function(t){t._private.rscratch.edgeType="straight"},ja.findBezierPoints=function(t,e,n,r,i){var o=t._private.rscratch,a=e.vectorNormInverse,s=e.posPts,u=e.intersectionPts,c=t.pstyle("edge-distances").value,l=t.pstyle("control-point-step-size").pfValue,f=t.pstyle("control-point-distances"),h=t.pstyle("control-point-weights"),d=f&&h?Math.min(f.value.length,h.value.length):1,p=f?f.pfValue[0]:void 0,g=h.value[0],v=r;o.edgeType=v?"multibezier":"bezier",o.ctrlpts=[];for(var b=0;b<d;b++){var y=(.5-e.eles.length/2+n)*l*(i?-1:1),w=void 0,m=Wt(y);v&&(p=f?f.pfValue[b]:l,g=h.value[b]);var x=void 0!==(w=r?p:void 0!==p?m*p:void 0)?w:y,_=1-g,E=g,k="node-position"===c?s:u,S={x:k.x1*_+k.x2*E,y:k.y1*_+k.y2*E};o.ctrlpts.push(S.x+a.x*x,S.y+a.y*x)}},ja.findTaxiPoints=function(t,e){var n=t._private.rscratch;n.edgeType="segments";var r=e.posPts,i=e.srcW,o=e.srcH,a=e.tgtW,s=e.tgtH,u="node-position"!==t.pstyle("edge-distances").value,c=t.pstyle("taxi-direction").value,l=c,f=t.pstyle("taxi-turn"),h="%"===f.units,d=f.pfValue,p=d<0,g=t.pstyle("taxi-turn-min-distance").pfValue,v=u?(i+a)/2:0,b=u?(o+s)/2:0,y=r.x2-r.x1,w=r.y2-r.y1,m=function(t,e){return t>0?Math.max(t-e,0):Math.min(t+e,0)},x=m(y,v),_=m(w,b),E=!1;"auto"===l?c=Math.abs(x)>Math.abs(_)?"horizontal":"vertical":"upward"===l||"downward"===l?(c="vertical",E=!0):"leftward"!==l&&"rightward"!==l||(c="horizontal",E=!0);var k,S="vertical"===c,C=S?_:x,T=S?w:y,A=Wt(T),N=!1;(E&&(h||p)||!("downward"===l&&T<0||"upward"===l&&T>0||"leftward"===l&&T>0||"rightward"===l&&T<0)||(C=(A*=-1)*Math.abs(C),N=!0),h)?k=(d<0?1+d:d)*C:k=(d<0?C:0)+d*A;var O=function(t){return Math.abs(t)<g||Math.abs(t)>=Math.abs(C)},L=O(k),P=O(Math.abs(C)-Math.abs(k));if((L||P)&&!N)if(S){var I=Math.abs(T)<=o/2,j=Math.abs(y)<=a/2;if(I){var M=(r.x1+r.x2)/2,D=r.y1,R=r.y2;n.segpts=[M,D,M,R]}else if(j){var B=(r.y1+r.y2)/2,G=r.x1,H=r.x2;n.segpts=[G,B,H,B]}else n.segpts=[r.x1,r.y2]}else{var F=Math.abs(T)<=i/2,z=Math.abs(w)<=s/2;if(F){var Y=(r.y1+r.y2)/2,V=r.x1,q=r.x2;n.segpts=[V,Y,q,Y]}else if(z){var U=(r.x1+r.x2)/2,X=r.y1,W=r.y2;n.segpts=[U,X,U,W]}else n.segpts=[r.x2,r.y1]}else if(S){var $=r.y1+k+(u?o/2*A:0),K=r.x1,Z=r.x2;n.segpts=[K,$,Z,$]}else{var Q=r.x1+k+(u?i/2*A:0),J=r.y1,tt=r.y2;n.segpts=[Q,J,Q,tt]}},ja.tryToCorrectInvalidPoints=function(t,e){var n=t._private.rscratch;if("bezier"===n.edgeType){var r=e.srcPos,i=e.tgtPos,o=e.srcW,a=e.srcH,s=e.tgtW,u=e.tgtH,c=e.srcShape,l=e.tgtShape,f=!E(n.startX)||!E(n.startY),h=!E(n.arrowStartX)||!E(n.arrowStartY),d=!E(n.endX)||!E(n.endY),p=!E(n.arrowEndX)||!E(n.arrowEndY),g=3*(this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth),v=$t({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),b=v<g,y=$t({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.endX,y:n.endY}),w=y<g,m=!1;if(f||h||b){m=!0;var x={x:n.ctrlpts[0]-r.x,y:n.ctrlpts[1]-r.y},_=Math.sqrt(x.x*x.x+x.y*x.y),k={x:x.x/_,y:x.y/_},S=Math.max(o,a),C={x:n.ctrlpts[0]+2*k.x*S,y:n.ctrlpts[1]+2*k.y*S},T=c.intersectLine(r.x,r.y,o,a,C.x,C.y,0);b?(n.ctrlpts[0]=n.ctrlpts[0]+k.x*(g-v),n.ctrlpts[1]=n.ctrlpts[1]+k.y*(g-v)):(n.ctrlpts[0]=T[0]+k.x*g,n.ctrlpts[1]=T[1]+k.y*g)}if(d||p||w){m=!0;var A={x:n.ctrlpts[0]-i.x,y:n.ctrlpts[1]-i.y},N=Math.sqrt(A.x*A.x+A.y*A.y),O={x:A.x/N,y:A.y/N},L=Math.max(o,a),P={x:n.ctrlpts[0]+2*O.x*L,y:n.ctrlpts[1]+2*O.y*L},I=l.intersectLine(i.x,i.y,s,u,P.x,P.y,0);w?(n.ctrlpts[0]=n.ctrlpts[0]+O.x*(g-y),n.ctrlpts[1]=n.ctrlpts[1]+O.y*(g-y)):(n.ctrlpts[0]=I[0]+O.x*g,n.ctrlpts[1]=I[1]+O.y*g)}m&&this.findEndpoints(t)}},ja.storeAllpts=function(t){var e=t._private.rscratch;if("multibezier"===e.edgeType||"bezier"===e.edgeType||"self"===e.edgeType||"compound"===e.edgeType){e.allpts=[],e.allpts.push(e.startX,e.startY);for(var n=0;n+1<e.ctrlpts.length;n+=2)e.allpts.push(e.ctrlpts[n],e.ctrlpts[n+1]),n+3<e.ctrlpts.length&&e.allpts.push((e.ctrlpts[n]+e.ctrlpts[n+2])/2,(e.ctrlpts[n+1]+e.ctrlpts[n+3])/2);var r;e.allpts.push(e.endX,e.endY),e.ctrlpts.length/2%2==0?(r=e.allpts.length/2-1,e.midX=e.allpts[r],e.midY=e.allpts[r+1]):(r=e.allpts.length/2-3,.5,e.midX=Qt(e.allpts[r],e.allpts[r+2],e.allpts[r+4],.5),e.midY=Qt(e.allpts[r+1],e.allpts[r+3],e.allpts[r+5],.5))}else if("straight"===e.edgeType)e.allpts=[e.startX,e.startY,e.endX,e.endY],e.midX=(e.startX+e.endX+e.arrowStartX+e.arrowEndX)/4,e.midY=(e.startY+e.endY+e.arrowStartY+e.arrowEndY)/4;else if("segments"===e.edgeType)if(e.allpts=[],e.allpts.push(e.startX,e.startY),e.allpts.push.apply(e.allpts,e.segpts),e.allpts.push(e.endX,e.endY),e.segpts.length%4==0){var i=e.segpts.length/2,o=i-2;e.midX=(e.segpts[o]+e.segpts[i])/2,e.midY=(e.segpts[o+1]+e.segpts[i+1])/2}else{var a=e.segpts.length/2-1;e.midX=e.segpts[a],e.midY=e.segpts[a+1]}},ja.checkForInvalidEdgeWarning=function(t){var e=t[0]._private.rscratch;e.nodesOverlap||E(e.startX)&&E(e.startY)&&E(e.endX)&&E(e.endY)?e.loggedErr=!1:e.loggedErr||(e.loggedErr=!0,pt("Edge `"+t.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},ja.findEdgeControlPoints=function(t){var e=this;if(t&&0!==t.length){for(var n=this,r=n.cy.hasCompoundNodes(),i={map:new kt,get:function(t){var e=this.map.get(t[0]);return null!=e?e.get(t[1]):null},set:function(t,e){var n=this.map.get(t[0]);null==n&&(n=new kt,this.map.set(t[0],n)),n.set(t[1],e)}},o=[],a=[],s=0;s<t.length;s++){var u=t[s],c=u._private,l=u.pstyle("curve-style").value;if(!u.removed()&&u.takesUpSpace())if("haystack"!==l){var f="unbundled-bezier"===l||"segments"===l||"straight"===l||"taxi"===l,h="unbundled-bezier"===l||"bezier"===l,d=c.source,p=c.target,g=[d.poolIndex(),p.poolIndex()].sort(),v=i.get(g);null==v&&(v={eles:[]},i.set(g,v),o.push(g)),v.eles.push(u),f&&(v.hasUnbundled=!0),h&&(v.hasBezier=!0)}else a.push(u)}for(var b=function(t){var a=o[t],s=i.get(a),u=void 0;if(!s.hasUnbundled){var c=s.eles[0].parallelEdges().filter((function(t){return t.isBundledBezier()}));xt(s.eles),c.forEach((function(t){return s.eles.push(t)})),s.eles.sort((function(t,e){return t.poolIndex()-e.poolIndex()}))}var l=s.eles[0],f=l.source(),h=l.target();if(f.poolIndex()>h.poolIndex()){var d=f;f=h,h=d}var p=s.srcPos=f.position(),g=s.tgtPos=h.position(),v=s.srcW=f.outerWidth(),b=s.srcH=f.outerHeight(),y=s.tgtW=h.outerWidth(),w=s.tgtH=h.outerHeight(),m=s.srcShape=n.nodeShapes[e.getNodeShape(f)],x=s.tgtShape=n.nodeShapes[e.getNodeShape(h)];s.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var _=0;_<s.eles.length;_++){var k=s.eles[_],S=k[0]._private.rscratch,C=k.pstyle("curve-style").value,T="unbundled-bezier"===C||"segments"===C||"taxi"===C,A=!f.same(k.source());if(!s.calculatedIntersection&&f!==h&&(s.hasBezier||s.hasUnbundled)){s.calculatedIntersection=!0;var N=m.intersectLine(p.x,p.y,v,b,g.x,g.y,0),O=s.srcIntn=N,L=x.intersectLine(g.x,g.y,y,w,p.x,p.y,0),P=s.tgtIntn=L,I=s.intersectionPts={x1:N[0],x2:L[0],y1:N[1],y2:L[1]},j=s.posPts={x1:p.x,x2:g.x,y1:p.y,y2:g.y},M=L[1]-N[1],D=L[0]-N[0],R=Math.sqrt(D*D+M*M),B=s.vector={x:D,y:M},G=s.vectorNorm={x:B.x/R,y:B.y/R},H={x:-G.y,y:G.x};s.nodesOverlap=!E(R)||x.checkPoint(N[0],N[1],0,y,w,g.x,g.y)||m.checkPoint(L[0],L[1],0,v,b,p.x,p.y),s.vectorNormInverse=H,u={nodesOverlap:s.nodesOverlap,dirCounts:s.dirCounts,calculatedIntersection:!0,hasBezier:s.hasBezier,hasUnbundled:s.hasUnbundled,eles:s.eles,srcPos:g,tgtPos:p,srcW:y,srcH:w,tgtW:v,tgtH:b,srcIntn:P,tgtIntn:O,srcShape:x,tgtShape:m,posPts:{x1:j.x2,y1:j.y2,x2:j.x1,y2:j.y1},intersectionPts:{x1:I.x2,y1:I.y2,x2:I.x1,y2:I.y1},vector:{x:-B.x,y:-B.y},vectorNorm:{x:-G.x,y:-G.y},vectorNormInverse:{x:-H.x,y:-H.y}}}var F=A?u:s;S.nodesOverlap=F.nodesOverlap,S.srcIntn=F.srcIntn,S.tgtIntn=F.tgtIntn,r&&(f.isParent()||f.isChild()||h.isParent()||h.isChild())&&(f.parents().anySame(h)||h.parents().anySame(f)||f.same(h)&&f.isParent())?e.findCompoundLoopPoints(k,F,_,T):f===h?e.findLoopPoints(k,F,_,T):"segments"===C?e.findSegmentsPoints(k,F):"taxi"===C?e.findTaxiPoints(k,F):"straight"===C||!T&&s.eles.length%2==1&&_===Math.floor(s.eles.length/2)?e.findStraightEdgePoints(k):e.findBezierPoints(k,F,_,T,A),e.findEndpoints(k),e.tryToCorrectInvalidPoints(k,F),e.checkForInvalidEdgeWarning(k),e.storeAllpts(k),e.storeEdgeProjections(k),e.calculateArrowAngles(k),e.recalculateEdgeLabelProjections(k),e.calculateLabelAngles(k)}},y=0;y<o.length;y++)b(y);this.findHaystackPoints(a)}},ja.getSegmentPoints=function(t){var e=t[0]._private.rscratch;if("segments"===e.edgeType)return this.recalculateRenderedStyle(t),Ma(e.segpts)},ja.getControlPoints=function(t){var e=t[0]._private.rscratch,n=e.edgeType;if("bezier"===n||"multibezier"===n||"self"===n||"compound"===n)return this.recalculateRenderedStyle(t),Ma(e.ctrlpts)},ja.getEdgeMidpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),{x:e.midX,y:e.midY}};var Da={manualEndptToPx:function(t,e){var n=t.position(),r=t.outerWidth(),i=t.outerHeight();if(2===e.value.length){var o=[e.pfValue[0],e.pfValue[1]];return"%"===e.units[0]&&(o[0]=o[0]*r),"%"===e.units[1]&&(o[1]=o[1]*i),o[0]+=n.x,o[1]+=n.y,o}var a=e.pfValue[0];a=-Math.PI/2+a;var s=2*Math.max(r,i),u=[n.x+Math.cos(a)*s,n.y+Math.sin(a)*s];return this.nodeShapes[this.getNodeShape(t)].intersectLine(n.x,n.y,r,i,u[0],u[1],0)},findEndpoints:function(t){var e,n,r,i,o,a=this,s=t.source()[0],u=t.target()[0],c=s.position(),l=u.position(),f=t.pstyle("target-arrow-shape").value,h=t.pstyle("source-arrow-shape").value,d=t.pstyle("target-distance-from-node").pfValue,p=t.pstyle("source-distance-from-node").pfValue,g=t.pstyle("curve-style").value,v=t._private.rscratch,b=v.edgeType,y="self"===b||"compound"===b,w="bezier"===b||"multibezier"===b||y,m="bezier"!==b,x="straight"===b||"segments"===b,_="segments"===b,k=w||m||x,S=y||"taxi"===g,C=t.pstyle("source-endpoint"),T=S?"outside-to-node":C.value,A=t.pstyle("target-endpoint"),N=S?"outside-to-node":A.value;if(v.srcManEndpt=C,v.tgtManEndpt=A,w){var O=[v.ctrlpts[0],v.ctrlpts[1]];n=m?[v.ctrlpts[v.ctrlpts.length-2],v.ctrlpts[v.ctrlpts.length-1]]:O,r=O}else if(x){var L=_?v.segpts.slice(0,2):[l.x,l.y];n=_?v.segpts.slice(v.segpts.length-2):[c.x,c.y],r=L}if("inside-to-node"===N)e=[l.x,l.y];else if(A.units)e=this.manualEndptToPx(u,A);else if("outside-to-line"===N)e=v.tgtIntn;else if("outside-to-node"===N||"outside-to-node-or-label"===N?i=n:"outside-to-line"!==N&&"outside-to-line-or-label"!==N||(i=[c.x,c.y]),e=a.nodeShapes[this.getNodeShape(u)].intersectLine(l.x,l.y,u.outerWidth(),u.outerHeight(),i[0],i[1],0),"outside-to-node-or-label"===N||"outside-to-line-or-label"===N){var P=u._private.rscratch,I=P.labelWidth,j=P.labelHeight,M=P.labelX,D=P.labelY,R=I/2,B=j/2,G=u.pstyle("text-valign").value;"top"===G?D-=B:"bottom"===G&&(D+=B);var H=u.pstyle("text-halign").value;"left"===H?M-=R:"right"===H&&(M+=R);var F=Ee(i[0],i[1],[M-R,D-B,M+R,D-B,M+R,D+B,M-R,D+B],l.x,l.y);if(F.length>0){var z=c,Y=Kt(z,qt(e)),V=Kt(z,qt(F)),q=Y;if(V<Y&&(e=F,q=V),F.length>2)Kt(z,{x:F[2],y:F[3]})<q&&(e=[F[2],F[3]])}}var U=ke(e,n,a.arrowShapes[f].spacing(t)+d),X=ke(e,n,a.arrowShapes[f].gap(t)+d);if(v.endX=X[0],v.endY=X[1],v.arrowEndX=U[0],v.arrowEndY=U[1],"inside-to-node"===T)e=[c.x,c.y];else if(C.units)e=this.manualEndptToPx(s,C);else if("outside-to-line"===T)e=v.srcIntn;else if("outside-to-node"===T||"outside-to-node-or-label"===T?o=r:"outside-to-line"!==T&&"outside-to-line-or-label"!==T||(o=[l.x,l.y]),e=a.nodeShapes[this.getNodeShape(s)].intersectLine(c.x,c.y,s.outerWidth(),s.outerHeight(),o[0],o[1],0),"outside-to-node-or-label"===T||"outside-to-line-or-label"===T){var W=s._private.rscratch,$=W.labelWidth,K=W.labelHeight,Z=W.labelX,Q=W.labelY,J=$/2,tt=K/2,et=s.pstyle("text-valign").value;"top"===et?Q-=tt:"bottom"===et&&(Q+=tt);var nt=s.pstyle("text-halign").value;"left"===nt?Z-=J:"right"===nt&&(Z+=J);var rt=Ee(o[0],o[1],[Z-J,Q-tt,Z+J,Q-tt,Z+J,Q+tt,Z-J,Q+tt],c.x,c.y);if(rt.length>0){var it=l,ot=Kt(it,qt(e)),at=Kt(it,qt(rt)),st=ot;if(at<ot&&(e=[rt[0],rt[1]],st=at),rt.length>2)Kt(it,{x:rt[2],y:rt[3]})<st&&(e=[rt[2],rt[3]])}}var ut=ke(e,r,a.arrowShapes[h].spacing(t)+p),ct=ke(e,r,a.arrowShapes[h].gap(t)+p);v.startX=ct[0],v.startY=ct[1],v.arrowStartX=ut[0],v.arrowStartY=ut[1],k&&(E(v.startX)&&E(v.startY)&&E(v.endX)&&E(v.endY)?v.badLine=!1:v.badLine=!0)},getSourceEndpoint:function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[0],y:e.haystackPts[1]};default:return{x:e.arrowStartX,y:e.arrowStartY}}},getTargetEndpoint:function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[2],y:e.haystackPts[3]};default:return{x:e.arrowEndX,y:e.arrowEndY}}}},Ra={};function Ba(t,e,n){for(var r=function(t,e,n,r){return Qt(t,e,n,r)},i=e._private.rstyle.bezierPts,o=0;o<t.bezierProjPcts.length;o++){var a=t.bezierProjPcts[o];i.push({x:r(n[0],n[2],n[4],a),y:r(n[1],n[3],n[5],a)})}}Ra.storeEdgeProjections=function(t){var e=t._private,n=e.rscratch,r=n.edgeType;if(e.rstyle.bezierPts=null,e.rstyle.linePts=null,e.rstyle.haystackPts=null,"multibezier"===r||"bezier"===r||"self"===r||"compound"===r){e.rstyle.bezierPts=[];for(var i=0;i+5<n.allpts.length;i+=4)Ba(this,t,n.allpts.slice(i,i+6))}else if("segments"===r){var o=e.rstyle.linePts=[];for(i=0;i+1<n.allpts.length;i+=2)o.push({x:n.allpts[i],y:n.allpts[i+1]})}else if("haystack"===r){var a=n.haystackPts;e.rstyle.haystackPts=[{x:a[0],y:a[1]},{x:a[2],y:a[3]}]}e.rstyle.arrowWidth=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth},Ra.recalculateEdgeProjections=function(t){this.findEdgeControlPoints(t)};var Ga={recalculateNodeLabelProjection:function(t){var e=t.pstyle("label").strValue;if(!O(e)){var n,r,i=t._private,o=t.width(),a=t.height(),s=t.padding(),u=t.position(),c=t.pstyle("text-halign").strValue,l=t.pstyle("text-valign").strValue,f=i.rscratch,h=i.rstyle;switch(c){case"left":n=u.x-o/2-s;break;case"right":n=u.x+o/2+s;break;default:n=u.x}switch(l){case"top":r=u.y-a/2-s;break;case"bottom":r=u.y+a/2+s;break;default:r=u.y}f.labelX=n,f.labelY=r,h.labelX=n,h.labelY=r,this.applyLabelDimensions(t)}}},Ha=function(t,e){var n=Math.atan(e/t);return 0===t&&n<0&&(n*=-1),n},Fa=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Ha(n,r)};Ga.recalculateEdgeLabelProjections=function(t){var e,n=t._private,r=n.rscratch,i=this,o={mid:t.pstyle("label").strValue,source:t.pstyle("source-label").strValue,target:t.pstyle("target-label").strValue};if(o.mid||o.source||o.target){e={x:r.midX,y:r.midY};var a=function(t,e,r){Et(n.rscratch,t,e,r),Et(n.rstyle,t,e,r)};a("labelX",null,e.x),a("labelY",null,e.y);var s=Ha(r.midDispX,r.midDispY);a("labelAutoAngle",null,s);var u=function(s){var u,c="source"===s;if(o[s]){var l=t.pstyle(s+"-text-offset").pfValue;switch(r.edgeType){case"self":case"compound":case"bezier":case"multibezier":for(var f,h=function t(){if(t.cache)return t.cache;for(var e=[],o=0;o+5<r.allpts.length;o+=4){var a={x:r.allpts[o],y:r.allpts[o+1]},s={x:r.allpts[o+2],y:r.allpts[o+3]},u={x:r.allpts[o+4],y:r.allpts[o+5]};e.push({p0:a,p1:s,p2:u,startDist:0,length:0,segments:[]})}var c=n.rstyle.bezierPts,l=i.bezierProjPcts.length;function f(t,e,n,r,i){var o=$t(e,n),a=t.segments[t.segments.length-1],s={p0:e,p1:n,t0:r,t1:i,startDist:a?a.startDist+a.length:0,length:o};t.segments.push(s),t.length+=o}for(var h=0;h<e.length;h++){var d=e[h],p=e[h-1];p&&(d.startDist=p.startDist+p.length),f(d,d.p0,c[h*l],0,i.bezierProjPcts[0]);for(var g=0;g<l-1;g++)f(d,c[h*l+g],c[h*l+g+1],i.bezierProjPcts[g],i.bezierProjPcts[g+1]);f(d,c[h*l+l-1],d.p2,i.bezierProjPcts[l-1],1)}return t.cache=e}(),d=0,p=0,g=0;g<h.length;g++){for(var v=h[c?g:h.length-1-g],b=0;b<v.segments.length;b++){var y=v.segments[c?b:v.segments.length-1-b],w=g===h.length-1&&b===v.segments.length-1;if(d=p,(p+=y.length)>=l||w){f={cp:v,segment:y};break}}if(f)break}var m=f.cp,x=f.segment,_=(l-d)/x.length,E=x.t1-x.t0,k=c?x.t0+E*_:x.t1-E*_;k=te(0,k,1),e=Jt(m.p0,m.p1,m.p2,k),u=function(t,e,n,r){var i=te(0,r-.001,1),o=te(0,r+.001,1),a=Jt(t,e,n,i),s=Jt(t,e,n,o);return Fa(a,s)}(m.p0,m.p1,m.p2,k);break;case"straight":case"segments":case"haystack":for(var S,C,T,A,N=0,O=r.allpts.length,L=0;L+3<O&&(c?(T={x:r.allpts[L],y:r.allpts[L+1]},A={x:r.allpts[L+2],y:r.allpts[L+3]}):(T={x:r.allpts[O-2-L],y:r.allpts[O-1-L]},A={x:r.allpts[O-4-L],y:r.allpts[O-3-L]}),C=N,!((N+=S=$t(T,A))>=l));L+=2);var P=(l-C)/S;P=te(0,P,1),e=function(t,e,n,r){var i=e.x-t.x,o=e.y-t.y,a=$t(t,e),s=i/a,u=o/a;return n=null==n?0:n,r=null!=r?r:n*a,{x:t.x+s*r,y:t.y+u*r}}(T,A,P),u=Fa(T,A)}a("labelX",s,e.x),a("labelY",s,e.y),a("labelAutoAngle",s,u)}};u("source"),u("target"),this.applyLabelDimensions(t)}},Ga.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},Ga.applyPrefixedLabelDimensions=function(t,e){var n=t._private,r=this.getLabelText(t,e),i=this.calculateLabelDimensions(t,r),o=t.pstyle("line-height").pfValue,a=t.pstyle("text-wrap").strValue,s=_t(n.rscratch,"labelWrapCachedLines",e)||[],u="wrap"!==a?1:Math.max(s.length,1),c=i.height/u,l=c*o,f=i.width,h=i.height+(u-1)*(o-1)*c;Et(n.rstyle,"labelWidth",e,f),Et(n.rscratch,"labelWidth",e,f),Et(n.rstyle,"labelHeight",e,h),Et(n.rscratch,"labelHeight",e,h),Et(n.rscratch,"labelLineHeight",e,l)},Ga.getLabelText=function(t,e){var n=t._private,r=e?e+"-":"",i=t.pstyle(r+"label").strValue,o=t.pstyle("text-transform").value,a=function(t,r){return r?(Et(n.rscratch,t,e,r),r):_t(n.rscratch,t,e)};if(!i)return"";"none"==o||("uppercase"==o?i=i.toUpperCase():"lowercase"==o&&(i=i.toLowerCase()));var s=t.pstyle("text-wrap").value;if("wrap"===s){var u=a("labelKey");if(null!=u&&a("labelWrapKey")===u)return a("labelWrapCachedText");for(var c=i.split("\n"),l=t.pstyle("text-max-width").pfValue,f="anywhere"===t.pstyle("text-overflow-wrap").value,h=[],d=/[\s\u200b]+/,p=f?"":" ",g=0;g<c.length;g++){var v=c[g],b=this.calculateLabelDimensions(t,v).width;if(f){var y=v.split("").join("");v=y}if(b>l){for(var w=v.split(d),m="",x=0;x<w.length;x++){var _=w[x],E=0===m.length?_:m+p+_;this.calculateLabelDimensions(t,E).width<=l?m+=_+p:(m&&h.push(m),m=_+p)}m.match(/^[\s\u200b]+$/)||h.push(m)}else h.push(v)}a("labelWrapCachedLines",h),i=a("labelWrapCachedText",h.join("\n")),a("labelWrapKey",u)}else if("ellipsis"===s){for(var k=t.pstyle("text-max-width").pfValue,S="",C=!1,T=0;T<i.length;T++){if(this.calculateLabelDimensions(t,S+i[T]+"…").width>k)break;S+=i[T],T===i.length-1&&(C=!0)}return C||(S+="…"),S}return i},Ga.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,n=t.pstyle("text-halign").strValue;if("auto"!==e)return e;if(!t.isNode())return"center";switch(n){case"left":return"right";case"right":return"left";default:return"center"}},Ga.calculateLabelDimensions=function(t,e){var n=et(e,t._private.labelDimsKey),r=this.labelDimCache||(this.labelDimCache=[]),i=r[n];if(null!=i)return i;var o=t.pstyle("font-style").strValue,a=1*t.pstyle("font-size").pfValue+"px",s=t.pstyle("font-family").strValue,u=t.pstyle("font-weight").strValue,c=this.labelCalcDiv;c||(c=this.labelCalcDiv=document.createElement("div"),document.body.appendChild(c));var l=c.style;return l.fontFamily=s,l.fontStyle=o,l.fontSize=a,l.fontWeight=u,l.position="absolute",l.left="-9999px",l.top="-9999px",l.zIndex="-1",l.visibility="hidden",l.pointerEvents="none",l.padding="0",l.lineHeight="1",l.whiteSpace="pre",c.textContent=e,r[n]={width:Math.ceil(c.clientWidth/1),height:Math.ceil(c.clientHeight/1)}},Ga.calculateLabelAngle=function(t,e){var n=t._private.rscratch,r=t.isEdge(),i=e?e+"-":"",o=t.pstyle(i+"text-rotation"),a=o.strValue;return"none"===a?0:r&&"autorotate"===a?n.labelAutoAngle:"autorotate"===a?0:o.pfValue},Ga.calculateLabelAngles=function(t){var e=this,n=t.isEdge(),r=t._private.rscratch;r.labelAngle=e.calculateLabelAngle(t),n&&(r.sourceLabelAngle=e.calculateLabelAngle(t,"source"),r.targetLabelAngle=e.calculateLabelAngle(t,"target"))};var za={},Ya=!1;za.getNodeShape=function(t){var e=t.pstyle("shape").value;if("cutrectangle"===e&&(t.width()<28||t.height()<28))return Ya||(pt("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),Ya=!0),"rectangle";if(t.isParent())return"rectangle"===e||"roundrectangle"===e||"round-rectangle"===e||"cutrectangle"===e||"cut-rectangle"===e||"barrel"===e?e:"rectangle";if("polygon"===e){var n=t.pstyle("shape-polygon-points").value;return this.nodeShapes.makePolygon(n).name}return e};var Va={registerCalculationListeners:function(){var t=this.cy,e=t.collection(),n=this,r=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.merge(t),n)for(var r=0;r<t.length;r++){var i=t[r],o=i._private,a=o.rstyle;a.clean=!1,a.cleanConnected=!1}};n.binder(t).on("bounds.* dirty.*",(function(t){var e=t.target;r(e)})).on("style.* background.*",(function(t){var e=t.target;r(e,!1)}));var i=function(i){if(i){for(var o=n.onUpdateEleCalcsFns,a=0;a<e.length;a++){var s=e[a],u=s._private.rstyle;s.isNode()&&!u.cleanConnected&&(r(s.connectedEdges()),u.cleanConnected=!0)}if(o)for(var c=0;c<o.length;c++){(0,o[c])(i,e)}n.recalculateRenderedStyle(e),e=t.collection()}};n.flushRenderedStyleQueue=function(){i(!0)},n.beforeRender(i,n.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(t){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(t)},recalculateRenderedStyle:function(t,e){var n=function(t){return t._private.rstyle.cleanConnected},r=[],i=[];if(!this.destroyed){void 0===e&&(e=!0);for(var o=0;o<t.length;o++){var a=t[o],s=a._private,u=s.rstyle;!a.isEdge()||n(a.source())&&n(a.target())||(u.clean=!1),e&&u.clean||a.removed()||"none"!==a.pstyle("display").value&&("nodes"===s.group?i.push(a):r.push(a),u.clean=!0)}for(var c=0;c<i.length;c++){var l=i[c],f=l._private.rstyle,h=l.position();this.recalculateNodeLabelProjection(l),f.nodeX=h.x,f.nodeY=h.y,f.nodeW=l.pstyle("width").pfValue,f.nodeH=l.pstyle("height").pfValue}this.recalculateEdgeProjections(r);for(var d=0;d<r.length;d++){var p=r[d]._private,g=p.rstyle,v=p.rscratch;g.srcX=v.arrowStartX,g.srcY=v.arrowStartY,g.tgtX=v.arrowEndX,g.tgtY=v.arrowEndY,g.midX=v.midX,g.midY=v.midY,g.labelAngle=v.labelAngle,g.sourceLabelAngle=v.sourceLabelAngle,g.targetLabelAngle=v.targetLabelAngle}}}},qa={updateCachedGrabbedEles:function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],n=0;n<t.length;n++){var r=(i=t[n])._private.rscratch;i.grabbed()&&!i.isParent()?e.push(i):r.inDragLayer?t.drag.push(i):t.nondrag.push(i)}for(n=0;n<e.length;n++){var i=e[n];t.drag.push(i)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(Pi),e.interactive=e.filter((function(t){return t.interactive()})),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e}},Ua={};[Pa,Ia,ja,Da,Ra,Ga,za,Va,qa].forEach((function(t){G(Ua,t)}));var Xa={getCachedImage:function(t,e,n){var r=this.imageCache=this.imageCache||{},i=r[t];if(i)return i.image.complete||i.image.addEventListener("load",n),i.image;var o=(i=r[t]=r[t]||{}).image=new Image;o.addEventListener("load",n),o.addEventListener("error",(function(){o.error=!0}));return"data:"===t.substring(0,"data:".length).toLowerCase()||(o.crossOrigin=e),o.src=t,o}},Wa={registerBinding:function(t,e,n,r){var i=Array.prototype.slice.apply(arguments,[1]),o=this.binder(t);return o.on.apply(o,i)}};Wa.binder=function(t){var e,n=this,r=t===window||t===document||t===document.body||(e=t,"undefined"!=typeof HTMLElement&&e instanceof HTMLElement);if(null==n.supportsPassiveEvents){var i=!1;try{var o=Object.defineProperty({},"passive",{get:function(){return i=!0,!0}});window.addEventListener("test",null,o)}catch(t){}n.supportsPassiveEvents=i}var a=function(e,i,o){var a=Array.prototype.slice.call(arguments);return r&&n.supportsPassiveEvents&&(a[2]={capture:null!=o&&o,passive:!1,once:!1}),n.bindings.push({target:t,args:a}),(t.addEventListener||t.on).apply(t,a),this};return{on:a,addEventListener:a,addListener:a,bind:a}},Wa.nodeIsDraggable=function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},Wa.nodeIsGrabbable=function(t){return this.nodeIsDraggable(t)&&t.interactive()},Wa.load=function(){var t=this,e=function(t){return t.selected()},n=function(e,n,r,i){null==e&&(e=t.cy);for(var o=0;o<n.length;o++){var a=n[o];e.emit({originalEvent:r,type:a,position:i})}},r=function(t){return t.shiftKey||t.metaKey||t.ctrlKey},o=function(e,n){var r=!0;if(t.cy.hasCompoundNodes()&&e&&e.pannable())for(var i=0;n&&i<n.length;i++){if((e=n[i]).isNode()&&e.isParent()){r=!1;break}}else r=!0;return r},a=function(t){t[0]._private.rscratch.inDragLayer=!0},s=function(t){t[0]._private.rscratch.isGrabTarget=!0},u=function(t,e){var n=e.addToList;n.has(t)||(n.merge(t),function(t){t[0]._private.grabbed=!0}(t))},c=function(e,n){n=n||{};var r=e.cy().hasCompoundNodes();n.inDragLayer&&(e.forEach(a),e.neighborhood().stdFilter((function(t){return!r||t.isEdge()})).forEach(a)),n.addToList&&e.forEach((function(t){u(t,n)})),function(t,e){if(t.cy().hasCompoundNodes()&&(null!=e.inDragLayer||null!=e.addToList)){var n=t.descendants();e.inDragLayer&&(n.forEach(a),n.connectedEdges().forEach(a)),e.addToList&&e.addToList.unmerge(n)}}(e,n),h(e,{inDragLayer:n.inDragLayer}),t.updateCachedGrabbedEles()},l=c,f=function(e){e&&(t.getCachedZSortedEles().forEach((function(t){!function(t){t[0]._private.grabbed=!1}(t),function(t){t[0]._private.rscratch.inDragLayer=!1}(t),function(t){t[0]._private.rscratch.isGrabTarget=!1}(t)})),t.updateCachedGrabbedEles())},h=function(t,e){if((null!=e.inDragLayer||null!=e.addToList)&&t.cy().hasCompoundNodes()){var n=t.ancestors().orphans();if(!n.same(t)){var r=n.descendants().spawnSelf().merge(n).unmerge(t).unmerge(t.descendants()),i=r.connectedEdges();e.inDragLayer&&(i.forEach(a),r.forEach(a)),e.addToList&&r.forEach((function(t){u(t,e)}))}}},d=function(){null!=document.activeElement&&null!=document.activeElement.blur&&document.activeElement.blur()},p="undefined"!=typeof MutationObserver,g="undefined"!=typeof ResizeObserver;p?(t.removeObserver=new MutationObserver((function(e){for(var n=0;n<e.length;n++){var r=e[n].removedNodes;if(r)for(var i=0;i<r.length;i++){if(r[i]===t.container){t.destroy();break}}}})),t.container.parentNode&&t.removeObserver.observe(t.container.parentNode,{childList:!0})):t.registerBinding(t.container,"DOMNodeRemoved",(function(e){t.destroy()}));var v=i((function(){t.cy.resize()}),100);p&&(t.styleObserver=new MutationObserver(v),t.styleObserver.observe(t.container,{attributes:!0})),t.registerBinding(window,"resize",v),g&&(t.resizeObserver=new ResizeObserver(v),t.resizeObserver.observe(t.container));var b=function(){t.invalidateContainerClientCoordsCache()};!function(t,e){for(;null!=t;)e(t),t=t.parentNode}(t.container,(function(e){t.registerBinding(e,"transitionend",b),t.registerBinding(e,"animationend",b),t.registerBinding(e,"scroll",b)})),t.registerBinding(t.container,"contextmenu",(function(t){t.preventDefault()}));var y=function(e){for(var n=t.findContainerClientCoords(),r=n[0],i=n[1],o=n[2],a=n[3],s=e.touches?e.touches:[e],u=!1,c=0;c<s.length;c++){var l=s[c];if(r<=l.clientX&&l.clientX<=r+o&&i<=l.clientY&&l.clientY<=i+a){u=!0;break}}if(!u)return!1;for(var f=t.container,h=e.target.parentNode,d=!1;h;){if(h===f){d=!0;break}h=h.parentNode}return!!d};t.registerBinding(t.container,"mousedown",(function(e){if(y(e)){e.preventDefault(),d(),t.hoverData.capture=!0,t.hoverData.which=e.which;var r=t.cy,i=[e.clientX,e.clientY],o=t.projectIntoViewport(i[0],i[1]),a=t.selection,u=t.findNearestElements(o[0],o[1],!0,!1),f=u[0],h=t.dragData.possibleDragElements;t.hoverData.mdownPos=o,t.hoverData.mdownGPos=i;if(3==e.which){t.hoverData.cxtStarted=!0;var p={originalEvent:e,type:"cxttapstart",position:{x:o[0],y:o[1]}};f?(f.activate(),f.emit(p),t.hoverData.down=f):r.emit(p),t.hoverData.downTime=(new Date).getTime(),t.hoverData.cxtDragged=!1}else if(1==e.which){if(f&&f.activate(),null!=f&&t.nodeIsGrabbable(f)){var g=function(t){return{originalEvent:e,type:t,position:{x:o[0],y:o[1]}}};if(s(f),f.selected()){h=t.dragData.possibleDragElements=r.collection();var v=r.$((function(e){return e.isNode()&&e.selected()&&t.nodeIsGrabbable(e)}));c(v,{addToList:h}),f.emit(g("grabon")),v.forEach((function(t){t.emit(g("grab"))}))}else h=t.dragData.possibleDragElements=r.collection(),l(f,{addToList:h}),f.emit(g("grabon")).emit(g("grab"));t.redrawHint("eles",!0),t.redrawHint("drag",!0)}t.hoverData.down=f,t.hoverData.downs=u,t.hoverData.downTime=(new Date).getTime(),n(f,["mousedown","tapstart","vmousedown"],e,{x:o[0],y:o[1]}),null==f?(a[4]=1,t.data.bgActivePosistion={x:o[0],y:o[1]},t.redrawHint("select",!0),t.redraw()):f.pannable()&&(a[4]=1),t.hoverData.tapholdCancelled=!1,clearTimeout(t.hoverData.tapholdTimeout),t.hoverData.tapholdTimeout=setTimeout((function(){if(!t.hoverData.tapholdCancelled){var n=t.hoverData.down;n?n.emit({originalEvent:e,type:"taphold",position:{x:o[0],y:o[1]}}):r.emit({originalEvent:e,type:"taphold",position:{x:o[0],y:o[1]}})}}),t.tapholdDuration)}a[0]=a[2]=o[0],a[1]=a[3]=o[1]}}),!1),t.registerBinding(window,"mousemove",(function(e){if(t.hoverData.capture||y(e)){var i=!1,a=t.cy,s=a.zoom(),u=[e.clientX,e.clientY],l=t.projectIntoViewport(u[0],u[1]),h=t.hoverData.mdownPos,d=t.hoverData.mdownGPos,p=t.selection,g=null;t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.selecting||(g=t.findNearestElement(l[0],l[1],!0,!1));var v,b=t.hoverData.last,w=t.hoverData.down,m=[l[0]-p[2],l[1]-p[3]],x=t.dragData.possibleDragElements;if(d){var _=u[0]-d[0],k=_*_,S=u[1]-d[1],C=k+S*S;t.hoverData.isOverThresholdDrag=v=C>=t.desktopTapThreshold2}var T=r(e);v&&(t.hoverData.tapholdCancelled=!0);i=!0,n(g,["mousemove","vmousemove","tapdrag"],e,{x:l[0],y:l[1]});var A=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||a.emit({originalEvent:e,type:"boxstart",position:{x:l[0],y:l[1]}}),p[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(3===t.hoverData.which){if(v){var N={originalEvent:e,type:"cxtdrag",position:{x:l[0],y:l[1]}};w?w.emit(N):a.emit(N),t.hoverData.cxtDragged=!0,t.hoverData.cxtOver&&g===t.hoverData.cxtOver||(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:l[0],y:l[1]}}),t.hoverData.cxtOver=g,g&&g.emit({originalEvent:e,type:"cxtdragover",position:{x:l[0],y:l[1]}}))}}else if(t.hoverData.dragging){if(i=!0,a.panningEnabled()&&a.userPanningEnabled()){var O;if(t.hoverData.justStartedPan){var L=t.hoverData.mdownPos;O={x:(l[0]-L[0])*s,y:(l[1]-L[1])*s},t.hoverData.justStartedPan=!1}else O={x:m[0]*s,y:m[1]*s};a.panBy(O),t.hoverData.dragged=!0}l=t.projectIntoViewport(e.clientX,e.clientY)}else if(1!=p[4]||null!=w&&!w.pannable()){if(w&&w.pannable()&&w.active()&&w.unactivate(),w&&w.grabbed()||g==b||(b&&n(b,["mouseout","tapdragout"],e,{x:l[0],y:l[1]}),g&&n(g,["mouseover","tapdragover"],e,{x:l[0],y:l[1]}),t.hoverData.last=g),w)if(v){if(a.boxSelectionEnabled()&&T)w&&w.grabbed()&&(f(x),w.emit("freeon"),x.emit("free"),t.dragData.didDrag&&(w.emit("dragfreeon"),x.emit("dragfree"))),A();else if(w&&w.grabbed()&&t.nodeIsDraggable(w)){var P=!t.dragData.didDrag;P&&t.redrawHint("eles",!0),t.dragData.didDrag=!0;var I=a.collection();t.hoverData.draggingEles||c(x,{inDragLayer:!0});var j={x:0,y:0};if(E(m[0])&&E(m[1])&&(j.x+=m[0],j.y+=m[1],P)){var M=t.hoverData.dragDelta;M&&E(M[0])&&E(M[1])&&(j.x+=M[0],j.y+=M[1])}for(var D=0;D<x.length;D++){var R=x[D];t.nodeIsDraggable(R)&&R.grabbed()&&I.merge(R)}t.hoverData.draggingEles=!0,I.silentShift(j).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else!function(){var e=t.hoverData.dragDelta=t.hoverData.dragDelta||[];0===e.length?(e.push(m[0]),e.push(m[1])):(e[0]+=m[0],e[1]+=m[1])}();i=!0}else if(v){if(t.hoverData.dragging||!a.boxSelectionEnabled()||!T&&a.panningEnabled()&&a.userPanningEnabled()){if(!t.hoverData.selecting&&a.panningEnabled()&&a.userPanningEnabled()){o(w,t.hoverData.downs)&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,p[4]=0,t.data.bgActivePosistion=qt(h),t.redrawHint("select",!0),t.redraw())}}else A();w&&w.pannable()&&w.active()&&w.unactivate()}return p[2]=l[0],p[3]=l[1],i?(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1):void 0}}),!1),t.registerBinding(window,"mouseup",(function(i){if(t.hoverData.capture){t.hoverData.capture=!1;var o=t.cy,a=t.projectIntoViewport(i.clientX,i.clientY),s=t.selection,u=t.findNearestElement(a[0],a[1],!0,!1),c=t.dragData.possibleDragElements,l=t.hoverData.down,h=r(i);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,l&&l.unactivate(),3===t.hoverData.which){var d={originalEvent:i,type:"cxttapend",position:{x:a[0],y:a[1]}};if(l?l.emit(d):o.emit(d),!t.hoverData.cxtDragged){var p={originalEvent:i,type:"cxttap",position:{x:a[0],y:a[1]}};l?l.emit(p):o.emit(p)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(1===t.hoverData.which){if(n(u,["mouseup","tapend","vmouseup"],i,{x:a[0],y:a[1]}),t.dragData.didDrag||t.hoverData.dragged||t.hoverData.selecting||t.hoverData.isOverThresholdDrag||n(l,["click","tap","vclick"],i,{x:a[0],y:a[1]}),null!=l||t.dragData.didDrag||t.hoverData.selecting||t.hoverData.dragged||r(i)||(o.$(e).unselect(["tapunselect"]),c.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=c=o.collection()),u!=l||t.dragData.didDrag||t.hoverData.selecting||null!=u&&u._private.selectable&&(t.hoverData.dragging||("additive"===o.selectionType()||h?u.selected()?u.unselect(["tapunselect"]):u.select(["tapselect"]):h||(o.$(e).unmerge(u).unselect(["tapunselect"]),u.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var g=o.collection(t.getAllInBox(s[0],s[1],s[2],s[3]));t.redrawHint("select",!0),g.length>0&&t.redrawHint("eles",!0),o.emit({type:"boxend",originalEvent:i,position:{x:a[0],y:a[1]}});var v=function(t){return t.selectable()&&!t.selected()};"additive"===o.selectionType()||h||o.$(e).unmerge(g).unselect(),g.emit("box").stdFilter(v).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!s[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var b=l&&l.grabbed();f(c),b&&(l.emit("freeon"),c.emit("free"),t.dragData.didDrag&&(l.emit("dragfreeon"),c.emit("dragfree")))}}s[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}}),!1);var w,m,x,_,k,S,C,T,A,N,O,L,P,I=function(e){if(!t.scrollingPage){var n=t.cy,r=n.zoom(),i=n.pan(),o=t.projectIntoViewport(e.clientX,e.clientY),a=[o[0]*r+i.x,o[1]*r+i.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||0!==t.selection[4])e.preventDefault();else if(n.panningEnabled()&&n.userPanningEnabled()&&n.zoomingEnabled()&&n.userZoomingEnabled()){var s;e.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout((function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()}),150),s=null!=e.deltaY?e.deltaY/-250:null!=e.wheelDeltaY?e.wheelDeltaY/1e3:e.wheelDelta/1e3,s*=t.wheelSensitivity,1===e.deltaMode&&(s*=33);var u=n.zoom()*Math.pow(10,s);"gesturechange"===e.type&&(u=t.gestureStartZoom*e.scale),n.zoom({level:u,renderedPosition:{x:a[0],y:a[1]}})}}};t.registerBinding(t.container,"wheel",I,!0),t.registerBinding(window,"scroll",(function(e){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout((function(){t.scrollingPage=!1}),250)}),!0),t.registerBinding(t.container,"gesturestart",(function(e){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||e.preventDefault()}),!0),t.registerBinding(t.container,"gesturechange",(function(e){t.hasTouchStarted||I(e)}),!0),t.registerBinding(t.container,"mouseout",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseout",position:{x:n[0],y:n[1]}})}),!1),t.registerBinding(t.container,"mouseover",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseover",position:{x:n[0],y:n[1]}})}),!1);var j,M,D,R,B=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},G=function(t,e,n,r){return(n-t)*(n-t)+(r-e)*(r-e)};if(t.registerBinding(t.container,"touchstart",j=function(e){if(t.hasTouchStarted=!0,y(e)){d(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var r=t.cy,i=t.touchData.now,o=t.touchData.earlier;if(e.touches[0]){var a=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);i[0]=a[0],i[1]=a[1]}if(e.touches[1]){a=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY);i[2]=a[0],i[3]=a[1]}if(e.touches[2]){a=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY);i[4]=a[0],i[5]=a[1]}if(e.touches[1]){t.touchData.singleTouchMoved=!0,f(t.dragData.touchDragEles);var u=t.findContainerClientCoords();A=u[0],N=u[1],O=u[2],L=u[3],w=e.touches[0].clientX-A,m=e.touches[0].clientY-N,x=e.touches[1].clientX-A,_=e.touches[1].clientY-N,P=0<=w&&w<=O&&0<=x&&x<=O&&0<=m&&m<=L&&0<=_&&_<=L;var h=r.pan(),p=r.zoom();k=B(w,m,x,_),S=G(w,m,x,_),T=[((C=[(w+x)/2,(m+_)/2])[0]-h.x)/p,(C[1]-h.y)/p];if(S<4e4&&!e.touches[2]){var g=t.findNearestElement(i[0],i[1],!0,!0),v=t.findNearestElement(i[2],i[3],!0,!0);return g&&g.isNode()?(g.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:i[0],y:i[1]}}),t.touchData.start=g):v&&v.isNode()?(v.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:i[0],y:i[1]}}),t.touchData.start=v):r.emit({originalEvent:e,type:"cxttapstart",position:{x:i[0],y:i[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,void t.redraw()}}if(e.touches[2])r.boxSelectionEnabled()&&e.preventDefault();else if(e.touches[1]);else if(e.touches[0]){var b=t.findNearestElements(i[0],i[1],!0,!0),E=b[0];if(null!=E&&(E.activate(),t.touchData.start=E,t.touchData.starts=b,t.nodeIsGrabbable(E))){var I=t.dragData.touchDragEles=r.collection(),j=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),E.selected()?(j=r.$((function(e){return e.selected()&&t.nodeIsGrabbable(e)})),c(j,{addToList:I})):l(E,{addToList:I}),s(E);var M=function(t){return{originalEvent:e,type:t,position:{x:i[0],y:i[1]}}};E.emit(M("grabon")),j?j.forEach((function(t){t.emit(M("grab"))})):E.emit(M("grab"))}n(E,["touchstart","tapstart","vmousedown"],e,{x:i[0],y:i[1]}),null==E&&(t.data.bgActivePosistion={x:a[0],y:a[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout((function(){!1!==t.touchData.singleTouchMoved||t.pinching||t.touchData.selecting||n(t.touchData.start,["taphold"],e,{x:i[0],y:i[1]})}),t.tapholdDuration)}if(e.touches.length>=1){for(var D=t.touchData.startPosition=[],R=0;R<i.length;R++)D[R]=o[R]=i[R];var H=e.touches[0];t.touchData.startGPosition=[H.clientX,H.clientY]}}},!1),t.registerBinding(window,"touchmove",M=function(e){var r=t.touchData.capture;if(r||y(e)){var i=t.selection,a=t.cy,s=t.touchData.now,u=t.touchData.earlier,l=a.zoom();if(e.touches[0]){var h=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);s[0]=h[0],s[1]=h[1]}if(e.touches[1]){h=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY);s[2]=h[0],s[3]=h[1]}if(e.touches[2]){h=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY);s[4]=h[0],s[5]=h[1]}var d,p=t.touchData.startGPosition;if(r&&e.touches[0]&&p){for(var g=[],v=0;v<s.length;v++)g[v]=s[v]-u[v];var b=e.touches[0].clientX-p[0],C=b*b,O=e.touches[0].clientY-p[1];d=C+O*O>=t.touchTapThreshold2}if(r&&t.touchData.cxt){e.preventDefault();var L=e.touches[0].clientX-A,I=e.touches[0].clientY-N,j=e.touches[1].clientX-A,M=e.touches[1].clientY-N,D=G(L,I,j,M);if(D/S>=2.25||D>=22500){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var R={originalEvent:e,type:"cxttapend",position:{x:s[0],y:s[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(R),t.touchData.start=null):a.emit(R)}}if(r&&t.touchData.cxt){R={originalEvent:e,type:"cxtdrag",position:{x:s[0],y:s[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(R):a.emit(R),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var H=t.findNearestElement(s[0],s[1],!0,!0);t.touchData.cxtOver&&H===t.touchData.cxtOver||(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:s[0],y:s[1]}}),t.touchData.cxtOver=H,H&&H.emit({originalEvent:e,type:"cxtdragover",position:{x:s[0],y:s[1]}}))}else if(r&&e.touches[2]&&a.boxSelectionEnabled())e.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||a.emit({originalEvent:e,type:"boxstart",position:{x:s[0],y:s[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,i[4]=1,i&&0!==i.length&&void 0!==i[0]?(i[2]=(s[0]+s[2]+s[4])/3,i[3]=(s[1]+s[3]+s[5])/3):(i[0]=(s[0]+s[2]+s[4])/3,i[1]=(s[1]+s[3]+s[5])/3,i[2]=(s[0]+s[2]+s[4])/3+1,i[3]=(s[1]+s[3]+s[5])/3+1),t.redrawHint("select",!0),t.redraw();else if(r&&e.touches[1]&&!t.touchData.didSelect&&a.zoomingEnabled()&&a.panningEnabled()&&a.userZoomingEnabled()&&a.userPanningEnabled()){if(e.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),tt=t.dragData.touchDragEles){t.redrawHint("drag",!0);for(var F=0;F<tt.length;F++){var z=tt[F]._private;z.grabbed=!1,z.rscratch.inDragLayer=!1}}var Y=t.touchData.start,V=(L=e.touches[0].clientX-A,I=e.touches[0].clientY-N,j=e.touches[1].clientX-A,M=e.touches[1].clientY-N,B(L,I,j,M)),q=V/k;if(P){var U=(L-w+(j-x))/2,X=(I-m+(M-_))/2,W=a.zoom(),$=W*q,K=a.pan(),Z=T[0]*W+K.x,Q=T[1]*W+K.y,J={x:-$/W*(Z-K.x-U)+Z,y:-$/W*(Q-K.y-X)+Q};if(Y&&Y.active()){var tt=t.dragData.touchDragEles;f(tt),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Y.unactivate().emit("freeon"),tt.emit("free"),t.dragData.didDrag&&(Y.emit("dragfreeon"),tt.emit("dragfree"))}a.viewport({zoom:$,pan:J,cancelOnFailedZoom:!0}),k=V,w=L,m=I,x=j,_=M,t.pinching=!0}if(e.touches[0]){h=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);s[0]=h[0],s[1]=h[1]}if(e.touches[1]){h=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY);s[2]=h[0],s[3]=h[1]}if(e.touches[2]){h=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY);s[4]=h[0],s[5]=h[1]}}else if(e.touches[0]&&!t.touchData.didSelect){var et=t.touchData.start,nt=t.touchData.last;if(t.hoverData.draggingEles||t.swipePanning||(H=t.findNearestElement(s[0],s[1],!0,!0)),r&&null!=et&&e.preventDefault(),r&&null!=et&&t.nodeIsDraggable(et))if(d){tt=t.dragData.touchDragEles;var rt=!t.dragData.didDrag;rt&&c(tt,{inDragLayer:!0}),t.dragData.didDrag=!0;var it={x:0,y:0};if(E(g[0])&&E(g[1]))if(it.x+=g[0],it.y+=g[1],rt)t.redrawHint("eles",!0),(ot=t.touchData.dragDelta)&&E(ot[0])&&E(ot[1])&&(it.x+=ot[0],it.y+=ot[1]);t.hoverData.draggingEles=!0,tt.silentShift(it).emit("position drag"),t.redrawHint("drag",!0),t.touchData.startPosition[0]==u[0]&&t.touchData.startPosition[1]==u[1]&&t.redrawHint("eles",!0),t.redraw()}else{var ot;0===(ot=t.touchData.dragDelta=t.touchData.dragDelta||[]).length?(ot.push(g[0]),ot.push(g[1])):(ot[0]+=g[0],ot[1]+=g[1])}if(n(et||H,["touchmove","tapdrag","vmousemove"],e,{x:s[0],y:s[1]}),et&&et.grabbed()||H==nt||(nt&&nt.emit({originalEvent:e,type:"tapdragout",position:{x:s[0],y:s[1]}}),H&&H.emit({originalEvent:e,type:"tapdragover",position:{x:s[0],y:s[1]}})),t.touchData.last=H,r)for(F=0;F<s.length;F++)s[F]&&t.touchData.startPosition[F]&&d&&(t.touchData.singleTouchMoved=!0);if(r&&(null==et||et.pannable())&&a.panningEnabled()&&a.userPanningEnabled()){o(et,t.touchData.starts)&&(e.preventDefault(),t.data.bgActivePosistion||(t.data.bgActivePosistion=qt(t.touchData.startPosition)),t.swipePanning?a.panBy({x:g[0]*l,y:g[1]*l}):d&&(t.swipePanning=!0,a.panBy({x:b*l,y:O*l}),et&&(et.unactivate(),t.redrawHint("select",!0),t.touchData.start=null)));h=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);s[0]=h[0],s[1]=h[1]}}for(v=0;v<s.length;v++)u[v]=s[v];r&&e.touches.length>0&&!t.hoverData.draggingEles&&!t.swipePanning&&null!=t.data.bgActivePosistion&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1),t.registerBinding(window,"touchcancel",D=function(e){var n=t.touchData.start;t.touchData.capture=!1,n&&n.unactivate()}),t.registerBinding(window,"touchend",R=function(r){var i=t.touchData.start;if(t.touchData.capture){0===r.touches.length&&(t.touchData.capture=!1),r.preventDefault();var o=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var a,s=t.cy,u=s.zoom(),c=t.touchData.now,l=t.touchData.earlier;if(r.touches[0]){var h=t.projectIntoViewport(r.touches[0].clientX,r.touches[0].clientY);c[0]=h[0],c[1]=h[1]}if(r.touches[1]){h=t.projectIntoViewport(r.touches[1].clientX,r.touches[1].clientY);c[2]=h[0],c[3]=h[1]}if(r.touches[2]){h=t.projectIntoViewport(r.touches[2].clientX,r.touches[2].clientY);c[4]=h[0],c[5]=h[1]}if(i&&i.unactivate(),t.touchData.cxt){if(a={originalEvent:r,type:"cxttapend",position:{x:c[0],y:c[1]}},i?i.emit(a):s.emit(a),!t.touchData.cxtDragged){var d={originalEvent:r,type:"cxttap",position:{x:c[0],y:c[1]}};i?i.emit(d):s.emit(d)}return t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,void t.redraw()}if(!r.touches[2]&&s.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var p=s.collection(t.getAllInBox(o[0],o[1],o[2],o[3]));o[0]=void 0,o[1]=void 0,o[2]=void 0,o[3]=void 0,o[4]=0,t.redrawHint("select",!0),s.emit({type:"boxend",originalEvent:r,position:{x:c[0],y:c[1]}});p.emit("box").stdFilter((function(t){return t.selectable()&&!t.selected()})).select().emit("boxselect"),p.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(null!=i&&i.unactivate(),r.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(r.touches[1]);else if(r.touches[0]);else if(!r.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var g=t.dragData.touchDragEles;if(null!=i){var v=i._private.grabbed;f(g),t.redrawHint("drag",!0),t.redrawHint("eles",!0),v&&(i.emit("freeon"),g.emit("free"),t.dragData.didDrag&&(i.emit("dragfreeon"),g.emit("dragfree"))),n(i,["touchend","tapend","vmouseup","tapdragout"],r,{x:c[0],y:c[1]}),i.unactivate(),t.touchData.start=null}else{var b=t.findNearestElement(c[0],c[1],!0,!0);n(b,["touchend","tapend","vmouseup","tapdragout"],r,{x:c[0],y:c[1]})}var y=t.touchData.startPosition[0]-c[0],w=y*y,m=t.touchData.startPosition[1]-c[1],x=(w+m*m)*u*u;t.touchData.singleTouchMoved||(i||s.$(":selected").unselect(["tapunselect"]),n(i,["tap","vclick"],r,{x:c[0],y:c[1]})),null!=i&&!t.dragData.didDrag&&i._private.selectable&&x<t.touchTapThreshold2&&!t.pinching&&("single"===s.selectionType()?(s.$(e).unmerge(i).unselect(["tapunselect"]),i.select(["tapselect"])):i.selected()?i.unselect(["tapunselect"]):i.select(["tapselect"]),t.redrawHint("eles",!0)),t.touchData.singleTouchMoved=!0}for(var _=0;_<c.length;_++)l[_]=c[_];t.dragData.didDrag=!1,0===r.touches.length&&(t.touchData.dragDelta=[],t.touchData.startPosition=null,t.touchData.startGPosition=null,t.touchData.didSelect=!1),r.touches.length<2&&(1===r.touches.length&&(t.touchData.startGPosition=[r.touches[0].clientX,r.touches[0].clientY]),t.pinching=!1,t.redrawHint("eles",!0),t.redraw())}},!1),"undefined"==typeof TouchEvent){var H=[],F=function(t){return{clientX:t.clientX,clientY:t.clientY,force:1,identifier:t.pointerId,pageX:t.pageX,pageY:t.pageY,radiusX:t.width/2,radiusY:t.height/2,screenX:t.screenX,screenY:t.screenY,target:t.target}},z=function(t){H.push(function(t){return{event:t,touch:F(t)}}(t))},Y=function(t){for(var e=0;e<H.length;e++){if(H[e].event.pointerId===t.pointerId)return void H.splice(e,1)}},V=function(t){t.touches=H.map((function(t){return t.touch}))},q=function(t){return"mouse"===t.pointerType||4===t.pointerType};t.registerBinding(t.container,"pointerdown",(function(t){q(t)||(t.preventDefault(),z(t),V(t),j(t))})),t.registerBinding(t.container,"pointerup",(function(t){q(t)||(Y(t),V(t),R(t))})),t.registerBinding(t.container,"pointercancel",(function(t){q(t)||(Y(t),V(t),D())})),t.registerBinding(t.container,"pointermove",(function(t){q(t)||(t.preventDefault(),function(t){var e=H.filter((function(e){return e.event.pointerId===t.pointerId}))[0];e.event=t,e.touch=F(t)}(t),V(t),M(t))}))}};var $a={generatePolygon:function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,draw:function(t,e,n,r,i){this.renderer.nodeShapeImpl("polygon",t,e,n,r,i,this.points)},intersectLine:function(t,e,n,r,i,o,a){return Ee(i,o,this.points,t,e,n/2,r/2,a)},checkPoint:function(t,e,n,r,i,o,a){return ve(t,e,this.points,o,a,r,i,[0,-1],n)}}}};$a.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(t,e,n,r,i){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i)},intersectLine:function(t,e,n,r,i,o,a){return function(t,e,n,r,i,o){var a=n-t,s=r-e;a/=i,s/=o;var u=Math.sqrt(a*a+s*s),c=u-1;if(c<0)return[];var l=c/u;return[(n-t)*l+t,(r-e)*l+e]}(i,o,t,e,n/2+a,r/2+a)},checkPoint:function(t,e,n,r,i,o,a){return we(t,e,r,i,o,a,n)}}},$a.generateRoundPolygon=function(t,e){for(var n=new Array(2*e.length),r=0;r<e.length/2;r++){var i=2*r,o=void 0;o=r<e.length/2-1?2*(r+1):0,n[4*r]=e[i],n[4*r+1]=e[i+1];var a=e[o]-e[i],s=e[o+1]-e[i+1],u=Math.sqrt(a*a+s*s);n[4*r+2]=a/u,n[4*r+3]=s/u}return this.nodeShapes[t]={renderer:this,name:t,points:n,draw:function(t,e,n,r,i){this.renderer.nodeShapeImpl("round-polygon",t,e,n,r,i,this.points)},intersectLine:function(t,e,n,r,i,o,a){return function(t,e,n,r,i,o,a,s){for(var u,c=[],l=new Array(n.length),f=o/2,h=a/2,d=Ne(o,a),p=0;p<n.length/4;p++){var g,v=void 0;v=0===p?n.length-2:4*p-2,g=4*p+2;var b=r+f*n[4*p],y=i+h*n[4*p+1],w=-n[v]*n[g]-n[v+1]*n[g+1],m=d/Math.tan(Math.acos(w)/2),x=b-m*n[v],_=y-m*n[v+1],E=b+m*n[g],k=y+m*n[g+1];0===p?(l[n.length-2]=x,l[n.length-1]=_):(l[4*p-2]=x,l[4*p-1]=_),l[4*p]=E,l[4*p+1]=k;var S=n[v+1],C=-n[v];S*n[g]+C*n[g+1]<0&&(S*=-1,C*=-1),0!==(u=me(t,e,r,i,x+S*d,_+C*d,d)).length&&c.push(u[0],u[1])}for(var T=0;T<l.length/4;T++)0!==(u=_e(t,e,r,i,l[4*T],l[4*T+1],l[4*T+2],l[4*T+3],!1)).length&&c.push(u[0],u[1]);if(c.length>2){for(var A=[c[0],c[1]],N=Math.pow(A[0]-t,2)+Math.pow(A[1]-e,2),O=1;O<c.length/2;O++){var L=Math.pow(c[2*O]-t,2)+Math.pow(c[2*O+1]-e,2);L<=N&&(A[0]=c[2*O],A[1]=c[2*O+1],N=L)}return A}return c}(i,o,this.points,t,e,n,r)},checkPoint:function(t,e,n,r,i,o,a){return function(t,e,n,r,i,o,a){for(var s=new Array(n.length),u=o/2,c=a/2,l=Ne(o,a),f=l*l,h=0;h<n.length/4;h++){var d,p=void 0;p=0===h?n.length-2:4*h-2,d=4*h+2;var g=r+u*n[4*h],v=i+c*n[4*h+1],b=-n[p]*n[d]-n[p+1]*n[d+1],y=l/Math.tan(Math.acos(b)/2),w=g-y*n[p],m=v-y*n[p+1],x=g+y*n[d],_=v+y*n[d+1];s[4*h]=w,s[4*h+1]=m,s[4*h+2]=x,s[4*h+3]=_;var E=n[p+1],k=-n[p];E*n[d]+k*n[d+1]<0&&(E*=-1,k*=-1);var S=w+E*l,C=m+k*l;if(Math.pow(S-t,2)+Math.pow(C-e,2)<=f)return!0}return ge(t,e,s)}(t,e,this.points,o,a,r,i)}}},$a.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Se(4,0),draw:function(t,e,n,r,i){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i)},intersectLine:function(t,e,n,r,i,o,a){return le(i,o,t,e,n,r,a)},checkPoint:function(t,e,n,r,i,o,a){var s=Ae(r,i),u=2*s;return!!ve(t,e,this.points,o,a,r,i-u,[0,-1],n)||(!!ve(t,e,this.points,o,a,r-u,i,[0,-1],n)||(!!we(t,e,u,u,o-r/2+s,a-i/2+s,n)||(!!we(t,e,u,u,o+r/2-s,a-i/2+s,n)||(!!we(t,e,u,u,o+r/2-s,a+i/2-s,n)||!!we(t,e,u,u,o-r/2+s,a+i/2-s,n)))))}}},$a.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:8,points:Se(4,0),draw:function(t,e,n,r,i){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i)},generateCutTrianglePts:function(t,e,n,r){var i=this.cornerLength,o=e/2,a=t/2,s=n-a,u=n+a,c=r-o,l=r+o;return{topLeft:[s,c+i,s+i,c,s+i,c+i],topRight:[u-i,c,u,c+i,u-i,c+i],bottomRight:[u,l-i,u-i,l,u-i,l-i],bottomLeft:[s+i,l,s,l-i,s+i,l-i]}},intersectLine:function(t,e,n,r,i,o,a){var s=this.generateCutTrianglePts(n+2*a,r+2*a,t,e),u=[].concat.apply([],[s.topLeft.splice(0,4),s.topRight.splice(0,4),s.bottomRight.splice(0,4),s.bottomLeft.splice(0,4)]);return Ee(i,o,u,t,e)},checkPoint:function(t,e,n,r,i,o,a){if(ve(t,e,this.points,o,a,r,i-2*this.cornerLength,[0,-1],n))return!0;if(ve(t,e,this.points,o,a,r-2*this.cornerLength,i,[0,-1],n))return!0;var s=this.generateCutTrianglePts(r,i,o,a);return ge(t,e,s.topLeft)||ge(t,e,s.topRight)||ge(t,e,s.bottomRight)||ge(t,e,s.bottomLeft)}}},$a.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Se(4,0),draw:function(t,e,n,r,i){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i)},intersectLine:function(t,e,n,r,i,o,a){var s=this.generateBarrelBezierPts(n+2*a,r+2*a,t,e),u=function(t){var e=Jt({x:t[0],y:t[1]},{x:t[2],y:t[3]},{x:t[4],y:t[5]},.15),n=Jt({x:t[0],y:t[1]},{x:t[2],y:t[3]},{x:t[4],y:t[5]},.5),r=Jt({x:t[0],y:t[1]},{x:t[2],y:t[3]},{x:t[4],y:t[5]},.85);return[t[0],t[1],e.x,e.y,n.x,n.y,r.x,r.y,t[4],t[5]]},c=[].concat(u(s.topLeft),u(s.topRight),u(s.bottomRight),u(s.bottomLeft));return Ee(i,o,c,t,e)},generateBarrelBezierPts:function(t,e,n,r){var i=e/2,o=t/2,a=n-o,s=n+o,u=r-i,c=r+i,l=Oe(t,e),f=l.heightOffset,h=l.widthOffset,d=l.ctrlPtOffsetPct*t,p={topLeft:[a,u+f,a+d,u,a+h,u],topRight:[s-h,u,s-d,u,s,u+f],bottomRight:[s,c-f,s-d,c,s-h,c],bottomLeft:[a+h,c,a+d,c,a,c-f]};return p.topLeft.isTop=!0,p.topRight.isTop=!0,p.bottomLeft.isBottom=!0,p.bottomRight.isBottom=!0,p},checkPoint:function(t,e,n,r,i,o,a){var s=Oe(r,i),u=s.heightOffset,c=s.widthOffset;if(ve(t,e,this.points,o,a,r,i-2*u,[0,-1],n))return!0;if(ve(t,e,this.points,o,a,r-2*c,i,[0,-1],n))return!0;for(var l=this.generateBarrelBezierPts(r,i,o,a),f=function(t,e,n){var r,i,o=n[4],a=n[2],s=n[0],u=n[5],c=n[1],l=Math.min(o,s),f=Math.max(o,s),h=Math.min(u,c),d=Math.max(u,c);if(l<=t&&t<=f&&h<=e&&e<=d){var p=[(r=o)-2*(i=a)+s,2*(i-r),r],g=function(t,e,n,r){var i=e*e-4*t*(n-=r);if(i<0)return[];var o=Math.sqrt(i),a=2*t;return[(-e+o)/a,(-e-o)/a]}(p[0],p[1],p[2],t).filter((function(t){return 0<=t&&t<=1}));if(g.length>0)return g[0]}return null},h=Object.keys(l),d=0;d<h.length;d++){var p=l[h[d]],g=f(t,e,p);if(null!=g){var v=p[5],b=p[3],y=p[1],w=Qt(v,b,y,g);if(p.isTop&&w<=e)return!0;if(p.isBottom&&e<=w)return!0}}return!1}}},$a.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Se(4,0),draw:function(t,e,n,r,i){this.renderer.nodeShapeImpl(this.name,t,e,n,r,i)},intersectLine:function(t,e,n,r,i,o,a){var s=e-(r/2+a),u=_e(i,o,t,e,t-(n/2+a),s,t+(n/2+a),s,!1);return u.length>0?u:le(i,o,t,e,n,r,a)},checkPoint:function(t,e,n,r,i,o,a){var s=Ae(r,i),u=2*s;if(ve(t,e,this.points,o,a,r,i-u,[0,-1],n))return!0;if(ve(t,e,this.points,o,a,r-u,i,[0,-1],n))return!0;var c=r/2+2*n,l=i/2+2*n;return!!ge(t,e,[o-c,a-l,o-c,a,o+c,a,o+c,a-l])||(!!we(t,e,u,u,o+r/2-s,a+i/2-s,n)||!!we(t,e,u,u,o-r/2+s,a+i/2-s,n))}}},$a.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",Se(3,0)),this.generateRoundPolygon("round-triangle",Se(3,0)),this.generatePolygon("rectangle",Se(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",Se(5,0)),this.generateRoundPolygon("round-pentagon",Se(5,0)),this.generatePolygon("hexagon",Se(6,0)),this.generateRoundPolygon("round-hexagon",Se(6,0)),this.generatePolygon("heptagon",Se(7,0)),this.generateRoundPolygon("round-heptagon",Se(7,0)),this.generatePolygon("octagon",Se(8,0)),this.generateRoundPolygon("round-octagon",Se(8,0));var r=new Array(20),i=Te(5,0),o=Te(5,Math.PI/5),a=.5*(3-Math.sqrt(5));a*=1.57;for(var s=0;s<o.length/2;s++)o[2*s]*=a,o[2*s+1]*=a;for(s=0;s<5;s++)r[4*s]=i[2*s],r[4*s+1]=i[2*s+1],r[4*s+2]=o[2*s],r[4*s+3]=o[2*s+1];r=Ce(r),this.generatePolygon("star",r),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);var u=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",u),this.generateRoundPolygon("round-tag",u),t.makePolygon=function(t){var n,r="polygon-"+t.join("$");return(n=this[r])?n:e.generatePolygon(r,t)}};var Ka={timeToRender:function(){return this.redrawTotalTime/this.redrawCount},redraw:function(t){t=t||yt();var e=this;void 0===e.averageRedrawTime&&(e.averageRedrawTime=0),void 0===e.lastRedrawTime&&(e.lastRedrawTime=0),void 0===e.lastDrawTime&&(e.lastDrawTime=0),e.requestedFrame=!0,e.renderOptions=t},beforeRender:function(t,e){if(!this.destroyed){null==e&&ht("Priority is not optional for beforeRender");var n=this.beforeRenderCallbacks;n.push({fn:t,priority:e}),n.sort((function(t,e){return e.priority-t.priority}))}}},Za=function(t,e,n){for(var r=t.beforeRenderCallbacks,i=0;i<r.length;i++)r[i].fn(e,n)};Ka.startRenderLoop=function(){var t=this,e=t.cy;if(!t.renderLoopStarted){t.renderLoopStarted=!0;X((function n(r){if(!t.destroyed){if(e.batching());else if(t.requestedFrame&&!t.skipFrame){Za(t,!0,r);var i=W();t.render(t.renderOptions);var o=t.lastDrawTime=W();void 0===t.averageRedrawTime&&(t.averageRedrawTime=o-i),void 0===t.redrawCount&&(t.redrawCount=0),t.redrawCount++,void 0===t.redrawTotalTime&&(t.redrawTotalTime=0);var a=o-i;t.redrawTotalTime+=a,t.lastRedrawTime=a,t.averageRedrawTime=t.averageRedrawTime/2+a/2,t.requestedFrame=!1}else Za(t,!1,r);t.skipFrame=!1,X(n)}}))}};var Qa=function(t){this.init(t)},Ja=Qa.prototype;Ja.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],Ja.init=function(t){var e=this;e.options=t,e.cy=t.cy;var n=e.container=t.cy.container();if(h){var r=h.document,i=r.head,o="__________cytoscape_container",a=null!=r.getElementById("__________cytoscape_stylesheet");if(n.className.indexOf(o)<0&&(n.className=(n.className||"")+" "+o),!a){var s=r.createElement("style");s.id="__________cytoscape_stylesheet",s.innerHTML="."+o+" { position: relative; }",i.insertBefore(s,i.children[0])}"static"===h.getComputedStyle(n).getPropertyValue("position")&&pt("A Cytoscape container has style position:static and so can not use UI extensions properly")}e.selection=[void 0,void 0,void 0,void 0,0],e.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],e.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},e.dragData={possibleDragElements:[]},e.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},e.redraws=0,e.showFps=t.showFps,e.debug=t.debug,e.hideEdgesOnViewport=t.hideEdgesOnViewport,e.textureOnViewport=t.textureOnViewport,e.wheelSensitivity=t.wheelSensitivity,e.motionBlurEnabled=t.motionBlur,e.forcedPixelRatio=E(t.pixelRatio)?t.pixelRatio:null,e.motionBlur=t.motionBlur,e.motionBlurOpacity=t.motionBlurOpacity,e.motionBlurTransparency=1-e.motionBlurOpacity,e.motionBlurPxRatio=1,e.mbPxRBlurry=1,e.minMbLowQualFrames=4,e.fullQualityMb=!1,e.clearedForMotionBlur=[],e.desktopTapThreshold=t.desktopTapThreshold,e.desktopTapThreshold2=t.desktopTapThreshold*t.desktopTapThreshold,e.touchTapThreshold=t.touchTapThreshold,e.touchTapThreshold2=t.touchTapThreshold*t.touchTapThreshold,e.tapholdDuration=500,e.bindings=[],e.beforeRenderCallbacks=[],e.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},e.registerNodeShapes(),e.registerArrowShapes(),e.registerCalculationListeners()},Ja.notify=function(t,e){var n=this,r=n.cy;this.destroyed||("init"!==t?"destroy"!==t?(("add"===t||"remove"===t||"move"===t&&r.hasCompoundNodes()||"load"===t||"zorder"===t||"mount"===t)&&n.invalidateCachedZSortedEles(),"viewport"===t&&n.redrawHint("select",!0),"load"!==t&&"resize"!==t&&"mount"!==t||(n.invalidateContainerClientCoordsCache(),n.matchCanvasSize(n.container)),n.redrawHint("eles",!0),n.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()):n.destroy():n.load())},Ja.destroy=function(){var t=this;t.destroyed=!0,t.cy.stopAnimationLoop();for(var e=0;e<t.bindings.length;e++){var n=t.bindings[e],r=n.target;(r.off||r.removeEventListener).apply(r,n.args)}if(t.bindings=[],t.beforeRenderCallbacks=[],t.onUpdateEleCalcsFns=[],t.removeObserver&&t.removeObserver.disconnect(),t.styleObserver&&t.styleObserver.disconnect(),t.resizeObserver&&t.resizeObserver.disconnect(),t.labelCalcDiv)try{document.body.removeChild(t.labelCalcDiv)}catch(t){}},Ja.isHeadless=function(){return!1},[La,Ua,Xa,Wa,$a,Ka].forEach((function(t){G(Ja,t)}));var ts=function(t){return function(){var e=this,n=this.renderer;if(!e.dequeueingSetup){e.dequeueingSetup=!0;var r=i((function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()}),t.deqRedrawThreshold),o=t.priority||ft;n.beforeRender((function(i,o){var a=W(),s=n.averageRedrawTime,u=n.lastRedrawTime,c=[],l=n.cy.extent(),f=n.getPixelRatio();for(i||n.flushRenderedStyleQueue();;){var h=W(),d=h-a,p=h-o;if(u<1e3/60){var g=1e3/60-(i?s:0);if(p>=t.deqFastCost*g)break}else if(i){if(d>=t.deqCost*u||d>=t.deqAvgCost*s)break}else if(p>=t.deqNoDrawCost*(1e3/60))break;var v=t.deq(e,f,l);if(!(v.length>0))break;for(var b=0;b<v.length;b++)c.push(v[b])}c.length>0&&(t.onDeqd(e,c),!i&&t.shouldRedraw(e,c,f,l)&&r())}),o(e))}}},es=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct;s(this,t),this.idsByKey=new kt,this.keyForId=new kt,this.cachesByLvl=new kt,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=n}return c(t,[{key:"getIdsFor",value:function(t){null==t&&ht("Can not get id list for null key");var e=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new Ct,e.set(t,n)),n}},{key:"addIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).add(e)}},{key:"deleteIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).delete(e)}},{key:"getNumberOfIdsForKey",value:function(t){return null==t?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e),r=this.getKey(t);this.deleteIdForKey(n,e),this.addIdForKey(r,e),this.keyForId.set(e,r)}},{key:"deleteKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteIdForKey(n,e),this.keyForId.delete(e)}},{key:"keyHasChangedFor",value:function(t){var e=t.id();return this.keyForId.get(e)!==this.getKey(t)}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var e=this.cachesByLvl,n=this.lvls,r=e.get(t);return r||(r=new kt,e.set(t,r),n.push(t)),r}},{key:"getCache",value:function(t,e){return this.getCachesAt(e).get(t)}},{key:"get",value:function(t,e){var n=this.getKey(t),r=this.getCache(n,e);return null!=r&&this.updateKeyMappingFor(t),r}},{key:"getForCachedKey",value:function(t,e){var n=this.keyForId.get(t.id());return this.getCache(n,e)}},{key:"hasCache",value:function(t,e){return this.getCachesAt(e).has(t)}},{key:"has",value:function(t,e){var n=this.getKey(t);return this.hasCache(n,e)}},{key:"setCache",value:function(t,e,n){n.key=t,this.getCachesAt(e).set(t,n)}},{key:"set",value:function(t,e,n){var r=this.getKey(t);this.setCache(r,e,n),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,e){this.getCachesAt(e).delete(t)}},{key:"delete",value:function(t,e){var n=this.getKey(t);this.deleteCache(n,e)}},{key:"invalidateKey",value:function(t){var e=this;this.lvls.forEach((function(n){return e.deleteCache(t,n)}))}},{key:"invalidate",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteKeyMappingFor(t);var r=this.doesEleInvalidateKey(t);return r&&this.invalidateKey(n),r||0===this.getNumberOfIdsForKey(n)}}]),t}(),ns={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},rs=wt({getKey:null,doesEleInvalidateKey:ct,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:ut,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),is=function(t,e){this.renderer=t,this.onDequeues=[];var n=rs(e);G(this,n),this.lookup=new es(n.getKey,n.doesEleInvalidateKey),this.setupDequeueing()},os=is.prototype;os.reasons=ns,os.getTextureQueue=function(t){return this.eleImgCaches=this.eleImgCaches||{},this.eleImgCaches[t]=this.eleImgCaches[t]||[]},os.getRetiredTextureQueue=function(t){var e=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return e[t]=e[t]||[]},os.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new o((function(t,e){return e.reqs-t.reqs}))},os.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},os.getElement=function(t,e,n,r,i){var o=this,a=this.renderer,s=a.cy.zoom(),u=this.lookup;if(0===e.w||0===e.h||isNaN(e.w)||isNaN(e.h)||!t.visible())return null;if(!o.allowEdgeTxrCaching&&t.isEdge()||!o.allowParentTxrCaching&&t.isParent())return null;if(null==r&&(r=Math.ceil(Xt(s*n))),r<-4)r=-4;else if(s>=7.99||r>3)return null;var c=Math.pow(2,r),l=e.h*c,f=e.w*c,h=a.eleTextBiggerThanMin(t,c);if(!this.isVisible(t,h))return null;var d,p=u.get(t,r);if(p&&p.invalidated&&(p.invalidated=!1,p.texture.invalidatedWidth-=p.width),p)return p;if(d=l<=25?25:l<=50?50:50*Math.ceil(l/50),l>1024||f>1024)return null;var g=o.getTextureQueue(d),v=g[g.length-2],b=function(){return o.recycleTexture(d,f)||o.addTexture(d,f)};v||(v=g[g.length-1]),v||(v=b()),v.width-v.usedWidth<f&&(v=b());for(var y,w=function(t){return t&&t.scaledLabelShown===h},m=i&&i===ns.dequeue,x=i&&i===ns.highQuality,_=i&&i===ns.downscale,E=r+1;E<=3;E++){var k=u.get(t,E);if(k){y=k;break}}var S=y&&y.level===r+1?y:null,C=function(){v.context.drawImage(S.texture.canvas,S.x,0,S.width,S.height,v.usedWidth,0,f,l)};if(v.context.setTransform(1,0,0,1,0,0),v.context.clearRect(v.usedWidth,0,f,d),w(S))C();else if(w(y)){if(!x)return o.queueElement(t,y.level-1),y;for(var T=y.level;T>r;T--)S=o.getElement(t,e,n,T,ns.downscale);C()}else{var A;if(!m&&!x&&!_)for(var N=r-1;N>=-4;N--){var O=u.get(t,N);if(O){A=O;break}}if(w(A))return o.queueElement(t,r),A;v.context.translate(v.usedWidth,0),v.context.scale(c,c),this.drawElement(v.context,t,e,h,!1),v.context.scale(1/c,1/c),v.context.translate(-v.usedWidth,0)}return p={x:v.usedWidth,texture:v,level:r,scale:c,width:f,height:l,scaledLabelShown:h},v.usedWidth+=Math.ceil(f+8),v.eleCaches.push(p),u.set(t,r,p),o.checkTextureFullness(v),p},os.invalidateElements=function(t){for(var e=0;e<t.length;e++)this.invalidateElement(t[e])},os.invalidateElement=function(t){var e=this.lookup,n=[];if(e.isInvalid(t)){for(var r=-4;r<=3;r++){var i=e.getForCachedKey(t,r);i&&n.push(i)}if(e.invalidate(t))for(var o=0;o<n.length;o++){var a=n[o],s=a.texture;s.invalidatedWidth+=a.width,a.invalidated=!0,this.checkTextureUtility(s)}this.removeFromQueue(t)}},os.checkTextureUtility=function(t){t.invalidatedWidth>=.2*t.width&&this.retireTexture(t)},os.checkTextureFullness=function(t){var e=this.getTextureQueue(t.height);t.usedWidth/t.width>.8&&t.fullnessChecks>=10?mt(e,t):t.fullnessChecks++},os.retireTexture=function(t){var e=t.height,n=this.getTextureQueue(e),r=this.lookup;mt(n,t),t.retired=!0;for(var i=t.eleCaches,o=0;o<i.length;o++){var a=i[o];r.deleteCache(a.key,a.level)}xt(i),this.getRetiredTextureQueue(e).push(t)},os.addTexture=function(t,e){var n={};return this.getTextureQueue(t).push(n),n.eleCaches=[],n.height=t,n.width=Math.max(1024,e),n.usedWidth=0,n.invalidatedWidth=0,n.fullnessChecks=0,n.canvas=this.renderer.makeOffscreenCanvas(n.width,n.height),n.context=n.canvas.getContext("2d"),n},os.recycleTexture=function(t,e){for(var n=this.getTextureQueue(t),r=this.getRetiredTextureQueue(t),i=0;i<r.length;i++){var o=r[i];if(o.width>=e)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,xt(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),mt(r,o),n.push(o),o}},os.queueElement=function(t,e){var n=this.getElementQueue(),r=this.getElementKeyToQueue(),i=this.getKey(t),o=r[i];if(o)o.level=Math.max(o.level,e),o.eles.merge(t),o.reqs++,n.updateItem(o);else{var a={eles:t.spawn().merge(t),level:e,reqs:1,key:i};n.push(a),r[i]=a}},os.dequeue=function(t){for(var e=this.getElementQueue(),n=this.getElementKeyToQueue(),r=[],i=this.lookup,o=0;o<1&&e.size()>0;o++){var a=e.pop(),s=a.key,u=a.eles[0],c=i.hasCache(u,a.level);if(n[s]=null,!c){r.push(a);var l=this.getBoundingBox(u);this.getElement(u,l,t,a.level,ns.dequeue)}}return r},os.removeFromQueue=function(t){var e=this.getElementQueue(),n=this.getElementKeyToQueue(),r=this.getKey(t),i=n[r];null!=i&&(1===i.eles.length?(i.reqs=st,e.updateItem(i),e.pop(),n[r]=null):i.eles.unmerge(t))},os.onDequeue=function(t){this.onDequeues.push(t)},os.offDequeue=function(t){mt(this.onDequeues,t)},os.setupDequeueing=ts({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(t,e,n){return t.dequeue(e,n)},onDeqd:function(t,e){for(var n=0;n<t.onDequeues.length;n++){(0,t.onDequeues[n])(e)}},shouldRedraw:function(t,e,n,r){for(var i=0;i<e.length;i++)for(var o=e[i].eles,a=0;a<o.length;a++){var s=o[a].boundingBox();if(se(s,r))return!0}return!1},priority:function(t){return t.renderer.beforeRenderPriorities.eleTxrDeq}});var as=function(t){var e=this,n=e.renderer=t,r=n.cy;e.layersByLevel={},e.firstGet=!0,e.lastInvalidationTime=W()-500,e.skipping=!1,e.eleTxrDeqs=r.collection(),e.scheduleElementRefinement=i((function(){e.refineElementTextures(e.eleTxrDeqs),e.eleTxrDeqs.unmerge(e.eleTxrDeqs)}),50),n.beforeRender((function(t,n){n-e.lastInvalidationTime<=250?e.skipping=!0:e.skipping=!1}),n.beforeRenderPriorities.lyrTxrSkip);e.layersQueue=new o((function(t,e){return e.reqs-t.reqs})),e.setupDequeueing()},ss=as.prototype,us=0,cs=Math.pow(2,53)-1;ss.makeLayer=function(t,e){var n=Math.pow(2,e),r=Math.ceil(t.w*n),i=Math.ceil(t.h*n),o=this.renderer.makeOffscreenCanvas(r,i),a={id:us=++us%cs,bb:t,level:e,width:r,height:i,canvas:o,context:o.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=a.context,u=-a.bb.x1,c=-a.bb.y1;return s.scale(n,n),s.translate(u,c),a},ss.getLayers=function(t,e,n){var r=this,i=r.renderer.cy.zoom(),o=r.firstGet;if(r.firstGet=!1,null==n)if((n=Math.ceil(Xt(i*e)))<-4)n=-4;else if(i>=3.99||n>2)return null;r.validateLayersElesOrdering(n,t);var a,s,u=r.layersByLevel,c=Math.pow(2,n),l=u[n]=u[n]||[];if(r.levelIsComplete(n,t))return l;!function(){var e=function(e){if(r.validateLayersElesOrdering(e,t),r.levelIsComplete(e,t))return s=u[e],!0},i=function(t){if(!s)for(var r=n+t;-4<=r&&r<=2&&!e(r);r+=t);};i(1),i(-1);for(var o=l.length-1;o>=0;o--){var a=l[o];a.invalid&&mt(l,a)}}();var f=function(e){var i=(e=e||{}).after;if(function(){if(!a){a=ee();for(var e=0;e<t.length;e++)n=a,r=t[e].boundingBox(),n.x1=Math.min(n.x1,r.x1),n.x2=Math.max(n.x2,r.x2),n.w=n.x2-n.x1,n.y1=Math.min(n.y1,r.y1),n.y2=Math.max(n.y2,r.y2),n.h=n.y2-n.y1}var n,r}(),a.w*c*(a.h*c)>16e6)return null;var o=r.makeLayer(a,n);if(null!=i){var s=l.indexOf(i)+1;l.splice(s,0,o)}else(void 0===e.insert||e.insert)&&l.unshift(o);return o};if(r.skipping&&!o)return null;for(var h=null,d=t.length/1,p=!o,g=0;g<t.length;g++){var v=t[g],b=v._private.rscratch,y=b.imgLayerCaches=b.imgLayerCaches||{},w=y[n];if(w)h=w;else{if((!h||h.eles.length>=d||!ce(h.bb,v.boundingBox()))&&!(h=f({insert:!0,after:h})))return null;s||p?r.queueLayer(h,v):r.drawEleInLayer(h,v,n,e),h.eles.push(v),y[n]=h}}return s||(p?null:l)},ss.getEleLevelForLayerLevel=function(t,e){return t},ss.drawEleInLayer=function(t,e,n,r){var i=this.renderer,o=t.context,a=e.boundingBox();0!==a.w&&0!==a.h&&e.visible()&&(n=this.getEleLevelForLayerLevel(n,r),i.setImgSmoothing(o,!1),i.drawCachedElement(o,e,null,null,n,!0),i.setImgSmoothing(o,!0))},ss.levelIsComplete=function(t,e){var n=this.layersByLevel[t];if(!n||0===n.length)return!1;for(var r=0,i=0;i<n.length;i++){var o=n[i];if(o.reqs>0)return!1;if(o.invalid)return!1;r+=o.eles.length}return r===e.length},ss.validateLayersElesOrdering=function(t,e){var n=this.layersByLevel[t];if(n)for(var r=0;r<n.length;r++){for(var i=n[r],o=-1,a=0;a<e.length;a++)if(i.eles[0]===e[a]){o=a;break}if(o<0)this.invalidateLayer(i);else{var s=o;for(a=0;a<i.eles.length;a++)if(i.eles[a]!==e[s+a]){this.invalidateLayer(i);break}}}},ss.updateElementsInLayers=function(t,e){for(var n=C(t[0]),r=0;r<t.length;r++)for(var i=n?null:t[r],o=n?t[r]:t[r].ele,a=o._private.rscratch,s=a.imgLayerCaches=a.imgLayerCaches||{},u=-4;u<=2;u++){var c=s[u];c&&(i&&this.getEleLevelForLayerLevel(c.level)!==i.level||e(c,o,i))}},ss.haveLayers=function(){for(var t=!1,e=-4;e<=2;e++){var n=this.layersByLevel[e];if(n&&n.length>0){t=!0;break}}return t},ss.invalidateElements=function(t){var e=this;0!==t.length&&(e.lastInvalidationTime=W(),0!==t.length&&e.haveLayers()&&e.updateElementsInLayers(t,(function(t,n,r){e.invalidateLayer(t)})))},ss.invalidateLayer=function(t){if(this.lastInvalidationTime=W(),!t.invalid){var e=t.level,n=t.eles,r=this.layersByLevel[e];mt(r,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var i=0;i<n.length;i++){var o=n[i]._private.rscratch.imgLayerCaches;o&&(o[e]=null)}}},ss.refineElementTextures=function(t){var e=this;e.updateElementsInLayers(t,(function(t,n,r){var i=t.replacement;if(i||((i=t.replacement=e.makeLayer(t.bb,t.level)).replaces=t,i.eles=t.eles),!i.reqs)for(var o=0;o<i.eles.length;o++)e.queueLayer(i,i.eles[o])}))},ss.enqueueElementRefinement=function(t){this.eleTxrDeqs.merge(t),this.scheduleElementRefinement()},ss.queueLayer=function(t,e){var n=this.layersQueue,r=t.elesQueue,i=r.hasId=r.hasId||{};if(!t.replacement){if(e){if(i[e.id()])return;r.push(e),i[e.id()]=!0}t.reqs?(t.reqs++,n.updateItem(t)):(t.reqs=1,n.push(t))}},ss.dequeue=function(t){for(var e=this.layersQueue,n=[],r=0;r<1&&0!==e.size();){var i=e.peek();if(i.replacement)e.pop();else if(i.replaces&&i!==i.replaces.replacement)e.pop();else if(i.invalid)e.pop();else{var o=i.elesQueue.shift();o&&(this.drawEleInLayer(i,o,i.level,t),r++),0===n.length&&n.push(!0),0===i.elesQueue.length&&(e.pop(),i.reqs=0,i.replaces&&this.applyLayerReplacement(i),this.requestRedraw())}}return n},ss.applyLayerReplacement=function(t){var e=this.layersByLevel[t.level],n=t.replaces,r=e.indexOf(n);if(!(r<0||n.invalid)){e[r]=t;for(var i=0;i<t.eles.length;i++){var o=t.eles[i]._private,a=o.imgLayerCaches=o.imgLayerCaches||{};a&&(a[t.level]=t)}this.requestRedraw()}},ss.requestRedraw=i((function(){var t=this.renderer;t.redrawHint("eles",!0),t.redrawHint("drag",!0),t.redraw()}),100),ss.setupDequeueing=ts({deqRedrawThreshold:50,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(t,e){return t.dequeue(e)},onDeqd:ft,shouldRedraw:ut,priority:function(t){return t.renderer.beforeRenderPriorities.lyrTxrDeq}});var ls,fs={};function hs(t,e){for(var n=0;n<e.length;n++){var r=e[n];t.lineTo(r.x,r.y)}}function ds(t,e,n){for(var r,i=0;i<e.length;i++){var o=e[i];0===i&&(r=o),t.lineTo(o.x,o.y)}t.quadraticCurveTo(n.x,n.y,r.x,r.y)}function ps(t,e,n){t.beginPath&&t.beginPath();for(var r=e,i=0;i<r.length;i++){var o=r[i];t.lineTo(o.x,o.y)}var a=n,s=n[0];t.moveTo(s.x,s.y);for(i=1;i<a.length;i++){o=a[i];t.lineTo(o.x,o.y)}t.closePath&&t.closePath()}function gs(t,e,n,r,i){t.beginPath&&t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1);var o=e,a=o[0];t.moveTo(a.x,a.y);for(var s=0;s<o.length;s++){var u=o[s];t.lineTo(u.x,u.y)}t.closePath&&t.closePath()}function vs(t,e,n,r){t.arc(e,n,r,0,2*Math.PI,!1)}fs.arrowShapeImpl=function(t){return(ls||(ls={polygon:hs,"triangle-backcurve":ds,"triangle-tee":ps,"circle-triangle":gs,"triangle-cross":ps,circle:vs}))[t]};var bs={drawElement:function(t,e,n,r,i,o){e.isNode()?this.drawNode(t,e,n,r,i,o):this.drawEdge(t,e,n,r,i,o)},drawElementOverlay:function(t,e){e.isNode()?this.drawNodeOverlay(t,e):this.drawEdgeOverlay(t,e)},drawCachedElementPortion:function(t,e,n,r,i,o,a,s){var u=this,c=n.getBoundingBox(e);if(0!==c.w&&0!==c.h){var l=n.getElement(e,c,r,i,o);if(null!=l){var f=s(u,e);if(0===f)return;var h,d,p,g,v,b,y=a(u,e),w=c.x1,m=c.y1,x=c.w,_=c.h;if(0!==y){var E=n.getRotationPoint(e);p=E.x,g=E.y,t.translate(p,g),t.rotate(y),(v=u.getImgSmoothing(t))||u.setImgSmoothing(t,!0);var k=n.getRotationOffset(e);h=k.x,d=k.y}else h=w,d=m;1!==f&&(b=t.globalAlpha,t.globalAlpha=b*f),t.drawImage(l.texture.canvas,l.x,0,l.width,l.height,h,d,x,_),1!==f&&(t.globalAlpha=b),0!==y&&(t.rotate(-y),t.translate(-p,-g),v||u.setImgSmoothing(t,!1))}else n.drawElement(t,e)}}},ys=function(){return 0},ws=function(t,e){return t.getTextAngle(e,null)},ms=function(t,e){return t.getTextAngle(e,"source")},xs=function(t,e){return t.getTextAngle(e,"target")},_s=function(t,e){return e.effectiveOpacity()},Es=function(t,e){return e.pstyle("text-opacity").pfValue*e.effectiveOpacity()};bs.drawCachedElement=function(t,e,n,r,i,o){var a=this,s=a.data,u=s.eleTxrCache,c=s.lblTxrCache,l=s.slbTxrCache,f=s.tlbTxrCache,h=e.boundingBox(),d=!0===o?u.reasons.highQuality:null;if(0!==h.w&&0!==h.h&&e.visible()&&(!r||se(h,r))){var p=e.isEdge(),g=e.element()._private.rscratch.badLine;a.drawCachedElementPortion(t,e,u,n,i,d,ys,_s),p&&g||a.drawCachedElementPortion(t,e,c,n,i,d,ws,Es),p&&!g&&(a.drawCachedElementPortion(t,e,l,n,i,d,ms,Es),a.drawCachedElementPortion(t,e,f,n,i,d,xs,Es)),a.drawElementOverlay(t,e)}},bs.drawElements=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];this.drawElement(t,r)}},bs.drawCachedElements=function(t,e,n,r){for(var i=0;i<e.length;i++){var o=e[i];this.drawCachedElement(t,o,n,r)}},bs.drawCachedNodes=function(t,e,n,r){for(var i=0;i<e.length;i++){var o=e[i];o.isNode()&&this.drawCachedElement(t,o,n,r)}},bs.drawLayeredElements=function(t,e,n,r){var i=this.data.lyrTxrCache.getLayers(e,n);if(i)for(var o=0;o<i.length;o++){var a=i[o],s=a.bb;0!==s.w&&0!==s.h&&t.drawImage(a.canvas,s.x1,s.y1,s.w,s.h)}else this.drawCachedElements(t,e,n,r)};var ks={drawEdge:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=this,s=e._private.rscratch;if((!o||e.visible())&&!s.badLine&&null!=s.allpts&&!isNaN(s.allpts[0])){var u;n&&(u=n,t.translate(-u.x1,-u.y1));var c=o?e.pstyle("opacity").value:1,l=e.pstyle("line-style").value,f=e.pstyle("width").pfValue,h=e.pstyle("line-cap").value,d=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;t.lineWidth=f,t.lineCap=h,a.eleStrokeStyle(t,e,n),a.drawEdgePath(e,t,s.allpts,l),t.lineCap="butt"},p=function(){i&&a.drawEdgeOverlay(t,e)},g=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;a.drawArrowheads(t,e,n)},v=function(){a.drawElementText(t,e,null,r)};t.lineJoin="round";var b="yes"===e.pstyle("ghost").value;if(b){var y=e.pstyle("ghost-offset-x").pfValue,w=e.pstyle("ghost-offset-y").pfValue,m=e.pstyle("ghost-opacity").value,x=c*m;t.translate(y,w),d(x),g(x),t.translate(-y,-w)}d(),g(),p(),v(),n&&t.translate(u.x1,u.y1)}},drawEdgeOverlay:function(t,e){if(e.visible()){var n=e.pstyle("overlay-opacity").value;if(0!==n){var r=this,i=r.usePaths(),o=e._private.rscratch,a=2*e.pstyle("overlay-padding").pfValue,s=e.pstyle("overlay-color").value;t.lineWidth=a,"self"!==o.edgeType||i?t.lineCap="round":t.lineCap="butt",r.colorStrokeStyle(t,s[0],s[1],s[2],n),r.drawEdgePath(e,t,o.allpts,"solid")}}},drawEdgePath:function(t,e,n,r){var i,o=t._private.rscratch,a=e,s=!1,u=this.usePaths(),c=t.pstyle("line-dash-pattern").pfValue,l=t.pstyle("line-dash-offset").pfValue;if(u){var f=n.join("$");o.pathCacheKey&&o.pathCacheKey===f?(i=e=o.pathCache,s=!0):(i=e=new Path2D,o.pathCacheKey=f,o.pathCache=i)}if(a.setLineDash)switch(r){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(c),a.lineDashOffset=l;break;case"solid":a.setLineDash([])}if(!s&&!o.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(n[0],n[1]),o.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+3<n.length;h+=4)e.quadraticCurveTo(n[h],n[h+1],n[h+2],n[h+3]);break;case"straight":case"segments":case"haystack":for(var d=2;d+1<n.length;d+=2)e.lineTo(n[d],n[d+1])}e=a,u?e.stroke(i):e.stroke(),e.setLineDash&&e.setLineDash([])},drawArrowheads:function(t,e,n){var r=e._private.rscratch,i="haystack"===r.edgeType;i||this.drawArrowhead(t,e,"source",r.arrowStartX,r.arrowStartY,r.srcArrowAngle,n),this.drawArrowhead(t,e,"mid-target",r.midX,r.midY,r.midtgtArrowAngle,n),this.drawArrowhead(t,e,"mid-source",r.midX,r.midY,r.midsrcArrowAngle,n),i||this.drawArrowhead(t,e,"target",r.arrowEndX,r.arrowEndY,r.tgtArrowAngle,n)},drawArrowhead:function(t,e,n,r,i,o,a){if(!(isNaN(r)||null==r||isNaN(i)||null==i||isNaN(o)||null==o)){var s=e.pstyle(n+"-arrow-shape").value;if("none"!==s){var u="hollow"===e.pstyle(n+"-arrow-fill").value?"both":"filled",c=e.pstyle(n+"-arrow-fill").value,l=e.pstyle("width").pfValue,f=e.pstyle("opacity").value;void 0===a&&(a=f);var h=t.globalCompositeOperation;1===a&&"hollow"!==c||(t.globalCompositeOperation="destination-out",this.colorFillStyle(t,255,255,255,1),this.colorStrokeStyle(t,255,255,255,1),this.drawArrowShape(e,t,u,l,s,r,i,o),t.globalCompositeOperation=h);var d=e.pstyle(n+"-arrow-color").value;this.colorFillStyle(t,d[0],d[1],d[2],a),this.colorStrokeStyle(t,d[0],d[1],d[2],a),this.drawArrowShape(e,t,c,l,s,r,i,o)}}},drawArrowShape:function(t,e,n,r,i,o,a,s){var u,c=this,l=this.usePaths()&&"triangle-cross"!==i,f=!1,h=e,d={x:o,y:a},p=t.pstyle("arrow-scale").value,g=this.getArrowWidth(r,p),v=c.arrowShapes[i];if(l){var b=c.arrowPathCache=c.arrowPathCache||[],y=et(i),w=b[y];null!=w?(u=e=w,f=!0):(u=e=new Path2D,b[y]=u)}f||(e.beginPath&&e.beginPath(),l?v.draw(e,1,0,{x:0,y:0},1):v.draw(e,g,s,d,r),e.closePath&&e.closePath()),e=h,l&&(e.translate(o,a),e.rotate(s),e.scale(g,g)),"filled"!==n&&"both"!==n||(l?e.fill(u):e.fill()),"hollow"!==n&&"both"!==n||(e.lineWidth=(v.matchEdgeWidth?r:1)/(l?g:1),e.lineJoin="miter",l?e.stroke(u):e.stroke()),l&&(e.scale(1/g,1/g),e.rotate(-s),e.translate(-o,-a))}},Ss={safeDrawImage:function(t,e,n,r,i,o,a,s,u,c){i<=0||o<=0||u<=0||c<=0||t.drawImage(e,n,r,i,o,a,s,u,c)},drawInscribedImage:function(t,e,n,r,i){var o=this,a=n.position(),s=a.x,u=a.y,c=n.cy().style(),l=c.getIndexedStyle.bind(c),f=l(n,"background-fit","value",r),h=l(n,"background-repeat","value",r),d=n.width(),p=n.height(),g=2*n.padding(),v=d+("inner"===l(n,"background-width-relative-to","value",r)?0:g),b=p+("inner"===l(n,"background-height-relative-to","value",r)?0:g),y=n._private.rscratch,w="node"===l(n,"background-clip","value",r),m=l(n,"background-image-opacity","value",r)*i,x=e.width||e.cachedW,_=e.height||e.cachedH;null!=x&&null!=_||(document.body.appendChild(e),x=e.cachedW=e.width||e.offsetWidth,_=e.cachedH=e.height||e.offsetHeight,document.body.removeChild(e));var E=x,k=_;if("auto"!==l(n,"background-width","value",r)&&(E="%"===l(n,"background-width","units",r)?l(n,"background-width","pfValue",r)*v:l(n,"background-width","pfValue",r)),"auto"!==l(n,"background-height","value",r)&&(k="%"===l(n,"background-height","units",r)?l(n,"background-height","pfValue",r)*b:l(n,"background-height","pfValue",r)),0!==E&&0!==k){if("contain"===f)E*=S=Math.min(v/E,b/k),k*=S;else if("cover"===f){var S;E*=S=Math.max(v/E,b/k),k*=S}var C=s-v/2,T=l(n,"background-position-x","units",r),A=l(n,"background-position-x","pfValue",r);C+="%"===T?(v-E)*A:A;var N=l(n,"background-offset-x","units",r),O=l(n,"background-offset-x","pfValue",r);C+="%"===N?(v-E)*O:O;var L=u-b/2,P=l(n,"background-position-y","units",r),I=l(n,"background-position-y","pfValue",r);L+="%"===P?(b-k)*I:I;var j=l(n,"background-offset-y","units",r),M=l(n,"background-offset-y","pfValue",r);L+="%"===j?(b-k)*M:M,y.pathCache&&(C-=s,L-=u,s=0,u=0);var D=t.globalAlpha;if(t.globalAlpha=m,"no-repeat"===h)w&&(t.save(),y.pathCache?t.clip(y.pathCache):(o.nodeShapes[o.getNodeShape(n)].draw(t,s,u,v,b),t.clip())),o.safeDrawImage(t,e,0,0,x,_,C,L,E,k),w&&t.restore();else{var R=t.createPattern(e,h);t.fillStyle=R,o.nodeShapes[o.getNodeShape(n)].draw(t,s,u,v,b),t.translate(C,L),t.fill(),t.translate(-C,-L)}t.globalAlpha=D}}},Cs={};function Ts(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:5;t.beginPath(),t.moveTo(e+o,n),t.lineTo(e+r-o,n),t.quadraticCurveTo(e+r,n,e+r,n+o),t.lineTo(e+r,n+i-o),t.quadraticCurveTo(e+r,n+i,e+r-o,n+i),t.lineTo(e+o,n+i),t.quadraticCurveTo(e,n+i,e,n+i-o),t.lineTo(e,n+o),t.quadraticCurveTo(e,n,e+o,n),t.closePath(),t.fill()}Cs.eleTextBiggerThanMin=function(t,e){if(!e){var n=t.cy().zoom(),r=this.getPixelRatio(),i=Math.ceil(Xt(n*r));e=Math.pow(2,i)}return!(t.pstyle("font-size").pfValue*e<t.pstyle("min-zoomed-font-size").pfValue)},Cs.drawElementText=function(t,e,n,r,i){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=this;if(null==r){if(o&&!a.eleTextBiggerThanMin(e))return}else if(!1===r)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var u=a.getLabelJustification(e);t.textAlign=u,t.textBaseline="bottom"}else{var c=e.element()._private.rscratch.badLine,l=e.pstyle("label"),f=e.pstyle("source-label"),h=e.pstyle("target-label");if(c||(!l||!l.value)&&(!f||!f.value)&&(!h||!h.value))return;t.textAlign="center",t.textBaseline="bottom"}var d,p=!n;n&&(d=n,t.translate(-d.x1,-d.y1)),null==i?(a.drawText(t,e,null,p,o),e.isEdge()&&(a.drawText(t,e,"source",p,o),a.drawText(t,e,"target",p,o))):a.drawText(t,e,i,p,o),n&&t.translate(d.x1,d.y1)},Cs.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var n=0;n<this.fontCaches.length;n++)if((e=this.fontCaches[n]).context===t)return e;return e={context:t},this.fontCaches.push(e),e},Cs.setupTextStyle=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue+"px",o=e.pstyle("font-family").strValue,a=e.pstyle("font-weight").strValue,s=n?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*s,c=e.pstyle("color").value,l=e.pstyle("text-outline-color").value;t.font=r+" "+a+" "+i+" "+o,t.lineJoin="round",this.colorFillStyle(t,c[0],c[1],c[2],s),this.colorStrokeStyle(t,l[0],l[1],l[2],u)},Cs.getTextAngle=function(t,e){var n=t._private.rscratch,r=e?e+"-":"",i=t.pstyle(r+"text-rotation"),o=_t(n,"labelAngle",e);return"autorotate"===i.strValue?t.isEdge()?o:0:"none"===i.strValue?0:i.pfValue},Cs.drawText=function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=e._private,a=o.rscratch,s=i?e.effectiveOpacity():1;if(!i||0!==s&&0!==e.pstyle("text-opacity").value){"main"===n&&(n=null);var u,c,l=_t(a,"labelX",n),f=_t(a,"labelY",n),h=this.getLabelText(e,n);if(null!=h&&""!==h&&!isNaN(l)&&!isNaN(f)){this.setupTextStyle(t,e,i);var d,p=n?n+"-":"",g=_t(a,"labelWidth",n),v=_t(a,"labelHeight",n),b=e.pstyle(p+"text-margin-x").pfValue,y=e.pstyle(p+"text-margin-y").pfValue,w=e.isEdge(),m=e.pstyle("text-halign").value,x=e.pstyle("text-valign").value;switch(w&&(m="center",x="center"),l+=b,f+=y,0!==(d=r?this.getTextAngle(e,n):0)&&(u=l,c=f,t.translate(u,c),t.rotate(d),l=0,f=0),x){case"top":break;case"center":f+=v/2;break;case"bottom":f+=v}var _=e.pstyle("text-background-opacity").value,E=e.pstyle("text-border-opacity").value,k=e.pstyle("text-border-width").pfValue,S=e.pstyle("text-background-padding").pfValue;if(_>0||k>0&&E>0){var C=l-S;switch(m){case"left":C-=g;break;case"center":C-=g/2}var T=f-v-S,A=g+2*S,N=v+2*S;if(_>0){var O=t.fillStyle,L=e.pstyle("text-background-color").value;t.fillStyle="rgba("+L[0]+","+L[1]+","+L[2]+","+_*s+")";var P=e.pstyle("text-background-shape").strValue;0===P.indexOf("round")?Ts(t,C,T,A,N,2):t.fillRect(C,T,A,N),t.fillStyle=O}if(k>0&&E>0){var I=t.strokeStyle,j=t.lineWidth,M=e.pstyle("text-border-color").value,D=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+M[0]+","+M[1]+","+M[2]+","+E*s+")",t.lineWidth=k,t.setLineDash)switch(D){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=k/4,t.setLineDash([]);break;case"solid":t.setLineDash([])}if(t.strokeRect(C,T,A,N),"double"===D){var R=k/2;t.strokeRect(C+R,T+R,A-2*R,N-2*R)}t.setLineDash&&t.setLineDash([]),t.lineWidth=j,t.strokeStyle=I}}var B=2*e.pstyle("text-outline-width").pfValue;if(B>0&&(t.lineWidth=B),"wrap"===e.pstyle("text-wrap").value){var G=_t(a,"labelWrapCachedLines",n),H=_t(a,"labelLineHeight",n),F=g/2,z=this.getLabelJustification(e);switch("auto"===z||("left"===m?"left"===z?l+=-g:"center"===z&&(l+=-F):"center"===m?"left"===z?l+=-F:"right"===z&&(l+=F):"right"===m&&("center"===z?l+=F:"right"===z&&(l+=g))),x){case"top":f-=(G.length-1)*H;break;case"center":case"bottom":f-=(G.length-1)*H}for(var Y=0;Y<G.length;Y++)B>0&&t.strokeText(G[Y],l,f),t.fillText(G[Y],l,f),f+=H}else B>0&&t.strokeText(h,l,f),t.fillText(h,l,f);0!==d&&(t.rotate(-d),t.translate(-u,-c))}}};var As={drawNode:function(t,e,n){var r,i,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=this,c=e._private,l=c.rscratch,f=e.position();if(E(f.x)&&E(f.y)&&(!s||e.visible())){var h,d,p=s?e.effectiveOpacity():1,g=u.usePaths(),v=!1,b=e.padding();r=e.width()+2*b,i=e.height()+2*b,n&&(d=n,t.translate(-d.x1,-d.y1));for(var y=e.pstyle("background-image"),w=y.value,m=new Array(w.length),x=new Array(w.length),_=0,k=0;k<w.length;k++){var S=w[k],C=m[k]=null!=S&&"none"!==S;if(C){var T=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",k);_++,x[k]=u.getCachedImage(S,T,(function(){c.backgroundTimestamp=Date.now(),e.emitAndNotify("background")}))}}var A=e.pstyle("background-blacken").value,N=e.pstyle("border-width").pfValue,O=e.pstyle("background-opacity").value*p,L=e.pstyle("border-color").value,P=e.pstyle("border-style").value,I=e.pstyle("border-opacity").value*p;t.lineJoin="miter";var j=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;u.eleFillStyle(t,e,n)},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;u.colorStrokeStyle(t,L[0],L[1],L[2],e)},D=e.pstyle("shape").strValue,R=e.pstyle("shape-polygon-points").pfValue;if(g){t.translate(f.x,f.y);var B=u.nodePathCache=u.nodePathCache||[],G=nt("polygon"===D?D+","+R.join(","):D,""+i,""+r),H=B[G];null!=H?(h=H,v=!0,l.pathCache=h):(h=new Path2D,B[G]=l.pathCache=h)}var F=function(){if(!v){var n=f;g&&(n={x:0,y:0}),u.nodeShapes[u.getNodeShape(e)].draw(h||t,n.x,n.y,r,i)}g?t.fill(h):t.fill()},z=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,r=c.backgrounding,i=0,o=0;o<x.length;o++)m[o]&&x[o].complete&&!x[o].error&&(i++,u.drawInscribedImage(t,x[o],e,o,n));c.backgrounding=!(i===_),r!==c.backgrounding&&e.updateStyle(!1)},Y=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;u.hasPie(e)&&(u.drawPie(t,e,o),n&&(g||u.nodeShapes[u.getNodeShape(e)].draw(t,f.x,f.y,r,i)))},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,n=(A>0?A:-A)*e,r=A>0?0:255;0!==A&&(u.colorFillStyle(t,r,r,r,n),g?t.fill(h):t.fill())},q=function(){if(N>0){if(t.lineWidth=N,t.lineCap="butt",t.setLineDash)switch(P){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([])}if(g?t.stroke(h):t.stroke(),"double"===P){t.lineWidth=N/3;var e=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",g?t.stroke(h):t.stroke(),t.globalCompositeOperation=e}t.setLineDash&&t.setLineDash([])}},U=function(){a&&u.drawNodeOverlay(t,e,f,r,i)},X=function(){u.drawElementText(t,e,null,o)},W="yes"===e.pstyle("ghost").value;if(W){var $=e.pstyle("ghost-offset-x").pfValue,K=e.pstyle("ghost-offset-y").pfValue,Z=e.pstyle("ghost-opacity").value,Q=Z*p;t.translate($,K),j(Z*O),F(),z(Q),Y(0!==A||0!==N),V(Q),M(Z*I),q(),t.translate(-$,-K)}j(),F(),z(),Y(0!==A||0!==N),V(),M(),q(),g&&t.translate(-f.x,-f.y),X(),U(),n&&t.translate(d.x1,d.y1)}},drawNodeOverlay:function(t,e,n,r,i){if(e.visible()){var o=e.pstyle("overlay-padding").pfValue,a=e.pstyle("overlay-opacity").value,s=e.pstyle("overlay-color").value;if(a>0){if(n=n||e.position(),null==r||null==i){var u=e.padding();r=e.width()+2*u,i=e.height()+2*u}this.colorFillStyle(t,s[0],s[1],s[2],a),this.nodeShapes.roundrectangle.draw(t,n.x,n.y,r+2*o,i+2*o),t.fill()}}},hasPie:function(t){return(t=t[0])._private.hasPie},drawPie:function(t,e,n,r){e=e[0],r=r||e.position();var i=e.cy().style(),o=e.pstyle("pie-size"),a=r.x,s=r.y,u=e.width(),c=e.height(),l=Math.min(u,c)/2,f=0;this.usePaths()&&(a=0,s=0),"%"===o.units?l*=o.pfValue:void 0!==o.pfValue&&(l=o.pfValue/2);for(var h=1;h<=i.pieBackgroundN;h++){var d=e.pstyle("pie-"+h+"-background-size").value,p=e.pstyle("pie-"+h+"-background-color").value,g=e.pstyle("pie-"+h+"-background-opacity").value*n,v=d/100;v+f>1&&(v=1-f);var b=1.5*Math.PI+2*Math.PI*f,y=b+2*Math.PI*v;0===d||f>=1||f+v>1||(t.beginPath(),t.moveTo(a,s),t.arc(a,s,l,b,y),t.closePath(),this.colorFillStyle(t,p[0],p[1],p[2],g),t.fill(),f+=v)}}},Ns={};Ns.getPixelRatio=function(){var t=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e},Ns.paintCache=function(t){for(var e,n=this.paintCaches=this.paintCaches||[],r=!0,i=0;i<n.length;i++)if((e=n[i]).context===t){r=!1;break}return r&&(e={context:t},n.push(e)),e},Ns.createGradientStyleFor=function(t,e,n,r,i){var o,a=this.usePaths(),s=n.pstyle(e+"-gradient-stop-colors").value,u=n.pstyle(e+"-gradient-stop-positions").pfValue;if("radial-gradient"===r)if(n.isEdge()){var c=n.sourceEndpoint(),l=n.targetEndpoint(),f=n.midpoint(),h=$t(c,f),d=$t(l,f);o=t.createRadialGradient(f.x,f.y,0,f.x,f.y,Math.max(h,d))}else{var p=a?{x:0,y:0}:n.position(),g=n.paddedWidth(),v=n.paddedHeight();o=t.createRadialGradient(p.x,p.y,0,p.x,p.y,Math.max(g,v))}else if(n.isEdge()){var b=n.sourceEndpoint(),y=n.targetEndpoint();o=t.createLinearGradient(b.x,b.y,y.x,y.y)}else{var w=a?{x:0,y:0}:n.position(),m=n.paddedWidth()/2,x=n.paddedHeight()/2;switch(n.pstyle("background-gradient-direction").value){case"to-bottom":o=t.createLinearGradient(w.x,w.y-x,w.x,w.y+x);break;case"to-top":o=t.createLinearGradient(w.x,w.y+x,w.x,w.y-x);break;case"to-left":o=t.createLinearGradient(w.x+m,w.y,w.x-m,w.y);break;case"to-right":o=t.createLinearGradient(w.x-m,w.y,w.x+m,w.y);break;case"to-bottom-right":case"to-right-bottom":o=t.createLinearGradient(w.x-m,w.y-x,w.x+m,w.y+x);break;case"to-top-right":case"to-right-top":o=t.createLinearGradient(w.x-m,w.y+x,w.x+m,w.y-x);break;case"to-bottom-left":case"to-left-bottom":o=t.createLinearGradient(w.x+m,w.y-x,w.x-m,w.y+x);break;case"to-top-left":case"to-left-top":o=t.createLinearGradient(w.x+m,w.y+x,w.x-m,w.y-x)}}if(!o)return null;for(var _=u.length===s.length,E=s.length,k=0;k<E;k++)o.addColorStop(_?u[k]:k/(E-1),"rgba("+s[k][0]+","+s[k][1]+","+s[k][2]+","+i+")");return o},Ns.gradientFillStyle=function(t,e,n,r){var i=this.createGradientStyleFor(t,"background",e,n,r);if(!i)return null;t.fillStyle=i},Ns.colorFillStyle=function(t,e,n,r,i){t.fillStyle="rgba("+e+","+n+","+r+","+i+")"},Ns.eleFillStyle=function(t,e,n){var r=e.pstyle("background-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientFillStyle(t,e,r,n);else{var i=e.pstyle("background-color").value;this.colorFillStyle(t,i[0],i[1],i[2],n)}},Ns.gradientStrokeStyle=function(t,e,n,r){var i=this.createGradientStyleFor(t,"line",e,n,r);if(!i)return null;t.strokeStyle=i},Ns.colorStrokeStyle=function(t,e,n,r,i){t.strokeStyle="rgba("+e+","+n+","+r+","+i+")"},Ns.eleStrokeStyle=function(t,e,n){var r=e.pstyle("line-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientStrokeStyle(t,e,r,n);else{var i=e.pstyle("line-color").value;this.colorStrokeStyle(t,i[0],i[1],i[2],n)}},Ns.matchCanvasSize=function(t){var e=this,n=e.data,r=e.findContainerClientCoords(),i=r[2],o=r[3],a=e.getPixelRatio(),s=e.motionBlurPxRatio;t!==e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE]&&t!==e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG]||(a=s);var u,c=i*a,l=o*a;if(c!==e.canvasWidth||l!==e.canvasHeight){e.fontCaches=null;var f=n.canvasContainer;f.style.width=i+"px",f.style.height=o+"px";for(var h=0;h<e.CANVAS_LAYERS;h++)(u=n.canvases[h]).width=c,u.height=l,u.style.width=i+"px",u.style.height=o+"px";for(h=0;h<e.BUFFER_COUNT;h++)(u=n.bufferCanvases[h]).width=c,u.height=l,u.style.width=i+"px",u.style.height=o+"px";e.textureMult=1,a<=1&&(u=n.bufferCanvases[e.TEXTURE_BUFFER],e.textureMult=2,u.width=c*e.textureMult,u.height=l*e.textureMult),e.canvasWidth=c,e.canvasHeight=l}},Ns.renderTo=function(t,e,n,r){this.render({forcedContext:t,forcedZoom:e,forcedPan:n,drawAllLayers:!0,forcedPxRatio:r})},Ns.render=function(t){var e=(t=t||yt()).forcedContext,n=t.drawAllLayers,r=t.drawOnlyNodeLayer,i=t.forcedZoom,o=t.forcedPan,a=this,s=void 0===t.forcedPxRatio?this.getPixelRatio():t.forcedPxRatio,u=a.cy,c=a.data,l=c.canvasNeedsRedraw,f=a.textureOnViewport&&!e&&(a.pinching||a.hoverData.dragging||a.swipePanning||a.data.wheelZooming),h=void 0!==t.motionBlur?t.motionBlur:a.motionBlur,d=a.motionBlurPxRatio,p=u.hasCompoundNodes(),g=a.hoverData.draggingEles,v=!(!a.hoverData.selecting&&!a.touchData.selecting),b=h=h&&!e&&a.motionBlurEnabled&&!v;e||(a.prevPxRatio!==s&&(a.invalidateContainerClientCoordsCache(),a.matchCanvasSize(a.container),a.redrawHint("eles",!0),a.redrawHint("drag",!0)),a.prevPxRatio=s),!e&&a.motionBlurTimeout&&clearTimeout(a.motionBlurTimeout),h&&(null==a.mbFrames&&(a.mbFrames=0),a.mbFrames++,a.mbFrames<3&&(b=!1),a.mbFrames>a.minMbLowQualFrames&&(a.motionBlurPxRatio=a.mbPxRBlurry)),a.clearingMotionBlur&&(a.motionBlurPxRatio=1),a.textureDrawLastFrame&&!f&&(l[a.NODE]=!0,l[a.SELECT_BOX]=!0);var y=u.style(),w=u.zoom(),m=void 0!==i?i:w,x=u.pan(),_={x:x.x,y:x.y},E={zoom:w,pan:{x:x.x,y:x.y}},k=a.prevViewport;void 0===k||E.zoom!==k.zoom||E.pan.x!==k.pan.x||E.pan.y!==k.pan.y||g&&!p||(a.motionBlurPxRatio=1),o&&(_=o),m*=s,_.x*=s,_.y*=s;var S=a.getCachedZSortedEles();function C(t,e,n,r,i){var o=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",a.colorFillStyle(t,255,255,255,a.motionBlurTransparency),t.fillRect(e,n,r,i),t.globalCompositeOperation=o}function T(t,r){var s,u,l,f;a.clearingMotionBlur||t!==c.bufferContexts[a.MOTIONBLUR_BUFFER_NODE]&&t!==c.bufferContexts[a.MOTIONBLUR_BUFFER_DRAG]?(s=_,u=m,l=a.canvasWidth,f=a.canvasHeight):(s={x:x.x*d,y:x.y*d},u=w*d,l=a.canvasWidth*d,f=a.canvasHeight*d),t.setTransform(1,0,0,1,0,0),"motionBlur"===r?C(t,0,0,l,f):e||void 0!==r&&!r||t.clearRect(0,0,l,f),n||(t.translate(s.x,s.y),t.scale(u,u)),o&&t.translate(o.x,o.y),i&&t.scale(i,i)}if(f||(a.textureDrawLastFrame=!1),f){if(a.textureDrawLastFrame=!0,!a.textureCache){a.textureCache={},a.textureCache.bb=u.mutableElements().boundingBox(),a.textureCache.texture=a.data.bufferCanvases[a.TEXTURE_BUFFER];var A=a.data.bufferContexts[a.TEXTURE_BUFFER];A.setTransform(1,0,0,1,0,0),A.clearRect(0,0,a.canvasWidth*a.textureMult,a.canvasHeight*a.textureMult),a.render({forcedContext:A,drawOnlyNodeLayer:!0,forcedPxRatio:s*a.textureMult}),(E=a.textureCache.viewport={zoom:u.zoom(),pan:u.pan(),width:a.canvasWidth,height:a.canvasHeight}).mpan={x:(0-E.pan.x)/E.zoom,y:(0-E.pan.y)/E.zoom}}l[a.DRAG]=!1,l[a.NODE]=!1;var N=c.contexts[a.NODE],O=a.textureCache.texture;E=a.textureCache.viewport;N.setTransform(1,0,0,1,0,0),h?C(N,0,0,E.width,E.height):N.clearRect(0,0,E.width,E.height);var L=y.core("outside-texture-bg-color").value,P=y.core("outside-texture-bg-opacity").value;a.colorFillStyle(N,L[0],L[1],L[2],P),N.fillRect(0,0,E.width,E.height);w=u.zoom();T(N,!1),N.clearRect(E.mpan.x,E.mpan.y,E.width/E.zoom/s,E.height/E.zoom/s),N.drawImage(O,E.mpan.x,E.mpan.y,E.width/E.zoom/s,E.height/E.zoom/s)}else a.textureOnViewport&&!e&&(a.textureCache=null);var I=u.extent(),j=a.pinching||a.hoverData.dragging||a.swipePanning||a.data.wheelZooming||a.hoverData.draggingEles||a.cy.animated(),M=a.hideEdgesOnViewport&&j,D=[];if(D[a.NODE]=!l[a.NODE]&&h&&!a.clearedForMotionBlur[a.NODE]||a.clearingMotionBlur,D[a.NODE]&&(a.clearedForMotionBlur[a.NODE]=!0),D[a.DRAG]=!l[a.DRAG]&&h&&!a.clearedForMotionBlur[a.DRAG]||a.clearingMotionBlur,D[a.DRAG]&&(a.clearedForMotionBlur[a.DRAG]=!0),l[a.NODE]||n||r||D[a.NODE]){var R=h&&!D[a.NODE]&&1!==d;T(N=e||(R?a.data.bufferContexts[a.MOTIONBLUR_BUFFER_NODE]:c.contexts[a.NODE]),h&&!R?"motionBlur":void 0),M?a.drawCachedNodes(N,S.nondrag,s,I):a.drawLayeredElements(N,S.nondrag,s,I),a.debug&&a.drawDebugPoints(N,S.nondrag),n||h||(l[a.NODE]=!1)}if(!r&&(l[a.DRAG]||n||D[a.DRAG])){R=h&&!D[a.DRAG]&&1!==d;T(N=e||(R?a.data.bufferContexts[a.MOTIONBLUR_BUFFER_DRAG]:c.contexts[a.DRAG]),h&&!R?"motionBlur":void 0),M?a.drawCachedNodes(N,S.drag,s,I):a.drawCachedElements(N,S.drag,s,I),a.debug&&a.drawDebugPoints(N,S.drag),n||h||(l[a.DRAG]=!1)}if(a.showFps||!r&&l[a.SELECT_BOX]&&!n){if(T(N=e||c.contexts[a.SELECT_BOX]),1==a.selection[4]&&(a.hoverData.selecting||a.touchData.selecting)){w=a.cy.zoom();var B=y.core("selection-box-border-width").value/w;N.lineWidth=B,N.fillStyle="rgba("+y.core("selection-box-color").value[0]+","+y.core("selection-box-color").value[1]+","+y.core("selection-box-color").value[2]+","+y.core("selection-box-opacity").value+")",N.fillRect(a.selection[0],a.selection[1],a.selection[2]-a.selection[0],a.selection[3]-a.selection[1]),B>0&&(N.strokeStyle="rgba("+y.core("selection-box-border-color").value[0]+","+y.core("selection-box-border-color").value[1]+","+y.core("selection-box-border-color").value[2]+","+y.core("selection-box-opacity").value+")",N.strokeRect(a.selection[0],a.selection[1],a.selection[2]-a.selection[0],a.selection[3]-a.selection[1]))}if(c.bgActivePosistion&&!a.hoverData.selecting){w=a.cy.zoom();var G=c.bgActivePosistion;N.fillStyle="rgba("+y.core("active-bg-color").value[0]+","+y.core("active-bg-color").value[1]+","+y.core("active-bg-color").value[2]+","+y.core("active-bg-opacity").value+")",N.beginPath(),N.arc(G.x,G.y,y.core("active-bg-size").pfValue/w,0,2*Math.PI),N.fill()}var H=a.lastRedrawTime;if(a.showFps&&H){H=Math.round(H);var F=Math.round(1e3/H);N.setTransform(1,0,0,1,0,0),N.fillStyle="rgba(255, 0, 0, 0.75)",N.strokeStyle="rgba(255, 0, 0, 0.75)",N.lineWidth=1,N.fillText("1 frame = "+H+" ms = "+F+" fps",0,20);N.strokeRect(0,30,250,20),N.fillRect(0,30,250*Math.min(F/60,1),20)}n||(l[a.SELECT_BOX]=!1)}if(h&&1!==d){var z=c.contexts[a.NODE],Y=a.data.bufferCanvases[a.MOTIONBLUR_BUFFER_NODE],V=c.contexts[a.DRAG],q=a.data.bufferCanvases[a.MOTIONBLUR_BUFFER_DRAG],U=function(t,e,n){t.setTransform(1,0,0,1,0,0),n||!b?t.clearRect(0,0,a.canvasWidth,a.canvasHeight):C(t,0,0,a.canvasWidth,a.canvasHeight);var r=d;t.drawImage(e,0,0,a.canvasWidth*r,a.canvasHeight*r,0,0,a.canvasWidth,a.canvasHeight)};(l[a.NODE]||D[a.NODE])&&(U(z,Y,D[a.NODE]),l[a.NODE]=!1),(l[a.DRAG]||D[a.DRAG])&&(U(V,q,D[a.DRAG]),l[a.DRAG]=!1)}a.prevViewport=E,a.clearingMotionBlur&&(a.clearingMotionBlur=!1,a.motionBlurCleared=!0,a.motionBlur=!0),h&&(a.motionBlurTimeout=setTimeout((function(){a.motionBlurTimeout=null,a.clearedForMotionBlur[a.NODE]=!1,a.clearedForMotionBlur[a.DRAG]=!1,a.motionBlur=!1,a.clearingMotionBlur=!f,a.mbFrames=0,l[a.NODE]=!0,l[a.DRAG]=!0,a.redraw()}),100)),e||u.emit("render")};for(var Os={drawPolygonPath:function(t,e,n,r,i,o){var a=r/2,s=i/2;t.beginPath&&t.beginPath(),t.moveTo(e+a*o[0],n+s*o[1]);for(var u=1;u<o.length/2;u++)t.lineTo(e+a*o[2*u],n+s*o[2*u+1]);t.closePath()},drawRoundPolygonPath:function(t,e,n,r,i,o){var a=r/2,s=i/2,u=Ne(r,i);t.beginPath&&t.beginPath();for(var c=0;c<o.length/4;c++){var l,f=void 0;f=0===c?o.length-2:4*c-2,l=4*c+2;var h=e+a*o[4*c],d=n+s*o[4*c+1],p=-o[f]*o[l]-o[f+1]*o[l+1],g=u/Math.tan(Math.acos(p)/2),v=h-g*o[f],b=d-g*o[f+1],y=h+g*o[l],w=d+g*o[l+1];0===c?t.moveTo(v,b):t.lineTo(v,b),t.arcTo(h,d,y,w,u)}t.closePath()},drawRoundRectanglePath:function(t,e,n,r,i){var o=r/2,a=i/2,s=Ae(r,i);t.beginPath&&t.beginPath(),t.moveTo(e,n-a),t.arcTo(e+o,n-a,e+o,n,s),t.arcTo(e+o,n+a,e,n+a,s),t.arcTo(e-o,n+a,e-o,n,s),t.arcTo(e-o,n-a,e,n-a,s),t.lineTo(e,n-a),t.closePath()},drawBottomRoundRectanglePath:function(t,e,n,r,i){var o=r/2,a=i/2,s=Ae(r,i);t.beginPath&&t.beginPath(),t.moveTo(e,n-a),t.lineTo(e+o,n-a),t.lineTo(e+o,n),t.arcTo(e+o,n+a,e,n+a,s),t.arcTo(e-o,n+a,e-o,n,s),t.lineTo(e-o,n-a),t.lineTo(e,n-a),t.closePath()},drawCutRectanglePath:function(t,e,n,r,i){var o=r/2,a=i/2;t.beginPath&&t.beginPath(),t.moveTo(e-o+8,n-a),t.lineTo(e+o-8,n-a),t.lineTo(e+o,n-a+8),t.lineTo(e+o,n+a-8),t.lineTo(e+o-8,n+a),t.lineTo(e-o+8,n+a),t.lineTo(e-o,n+a-8),t.lineTo(e-o,n-a+8),t.closePath()},drawBarrelPath:function(t,e,n,r,i){var o=r/2,a=i/2,s=e-o,u=e+o,c=n-a,l=n+a,f=Oe(r,i),h=f.widthOffset,d=f.heightOffset,p=f.ctrlPtOffsetPct*h;t.beginPath&&t.beginPath(),t.moveTo(s,c+d),t.lineTo(s,l-d),t.quadraticCurveTo(s+p,l,s+h,l),t.lineTo(u-h,l),t.quadraticCurveTo(u-p,l,u,l-d),t.lineTo(u,c+d),t.quadraticCurveTo(u-p,c,u-h,c),t.lineTo(s+h,c),t.quadraticCurveTo(s+p,c,s,c+d),t.closePath()}},Ls=Math.sin(0),Ps=Math.cos(0),Is={},js={},Ms=Math.PI/40,Ds=0*Math.PI;Ds<2*Math.PI;Ds+=Ms)Is[Ds]=Math.sin(Ds),js[Ds]=Math.cos(Ds);Os.drawEllipsePath=function(t,e,n,r,i){if(t.beginPath&&t.beginPath(),t.ellipse)t.ellipse(e,n,r/2,i/2,0,0,2*Math.PI);else for(var o,a,s=r/2,u=i/2,c=0*Math.PI;c<2*Math.PI;c+=Ms)o=e-s*Is[c]*Ls+s*js[c]*Ps,a=n+u*js[c]*Ls+u*Is[c]*Ps,0===c?t.moveTo(o,a):t.lineTo(o,a);t.closePath()};var Rs={};function Bs(t){var e=t.indexOf(",");return t.substr(e+1)}function Gs(t,e,n){var r=function(){return e.toDataURL(n,t.quality)};switch(t.output){case"blob-promise":return new Fn((function(r,i){try{e.toBlob((function(t){null!=t?r(t):i(new Error("`canvas.toBlob()` sent a null value in its callback"))}),n,t.quality)}catch(t){i(t)}}));case"blob":return function(t,e){for(var n=atob(t),r=new ArrayBuffer(n.length),i=new Uint8Array(r),o=0;o<n.length;o++)i[o]=n.charCodeAt(o);return new Blob([r],{type:e})}(Bs(r()),n);case"base64":return Bs(r());case"base64uri":default:return r()}}Rs.createBuffer=function(t,e){var n=document.createElement("canvas");return n.width=t,n.height=e,[n,n.getContext("2d")]},Rs.bufferCanvasImage=function(t){var e=this.cy,n=e.mutableElements().boundingBox(),r=this.findContainerClientCoords(),i=t.full?Math.ceil(n.w):r[2],o=t.full?Math.ceil(n.h):r[3],a=E(t.maxWidth)||E(t.maxHeight),s=this.getPixelRatio(),u=1;if(void 0!==t.scale)i*=t.scale,o*=t.scale,u=t.scale;else if(a){var c=1/0,l=1/0;E(t.maxWidth)&&(c=u*t.maxWidth/i),E(t.maxHeight)&&(l=u*t.maxHeight/o),i*=u=Math.min(c,l),o*=u}a||(i*=s,o*=s,u*=s);var f=document.createElement("canvas");f.width=i,f.height=o,f.style.width=i+"px",f.style.height=o+"px";var h=f.getContext("2d");if(i>0&&o>0){h.clearRect(0,0,i,o),h.globalCompositeOperation="source-over";var d=this.getCachedZSortedEles();if(t.full)h.translate(-n.x1*u,-n.y1*u),h.scale(u,u),this.drawElements(h,d),h.scale(1/u,1/u),h.translate(n.x1*u,n.y1*u);else{var p=e.pan(),g={x:p.x*u,y:p.y*u};u*=e.zoom(),h.translate(g.x,g.y),h.scale(u,u),this.drawElements(h,d),h.scale(1/u,1/u),h.translate(-g.x,-g.y)}t.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=t.bg,h.rect(0,0,i,o),h.fill())}return f},Rs.png=function(t){return Gs(t,this.bufferCanvasImage(t),"image/png")},Rs.jpg=function(t){return Gs(t,this.bufferCanvasImage(t),"image/jpeg")};var Hs={nodeShapeImpl:function(t,e,n,r,i,o,a){switch(t){case"ellipse":return this.drawEllipsePath(e,n,r,i,o);case"polygon":return this.drawPolygonPath(e,n,r,i,o,a);case"round-polygon":return this.drawRoundPolygonPath(e,n,r,i,o,a);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,n,r,i,o);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,n,r,i,o);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,n,r,i,o);case"barrel":return this.drawBarrelPath(e,n,r,i,o)}}},Fs=Ys,zs=Ys.prototype;function Ys(t){var e=this;e.data={canvases:new Array(zs.CANVAS_LAYERS),contexts:new Array(zs.CANVAS_LAYERS),canvasNeedsRedraw:new Array(zs.CANVAS_LAYERS),bufferCanvases:new Array(zs.BUFFER_COUNT),bufferContexts:new Array(zs.CANVAS_LAYERS)};e.data.canvasContainer=document.createElement("div");var n=e.data.canvasContainer.style;e.data.canvasContainer.style["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",n.position="relative",n.zIndex="0",n.overflow="hidden";var r=t.cy.container();r.appendChild(e.data.canvasContainer),r.style["-webkit-tap-highlight-color"]="rgba(0,0,0,0)";var i={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};d&&d.userAgent.match(/msie|trident|edge/i)&&(i["-ms-touch-action"]="none",i["touch-action"]="none");for(var o=0;o<zs.CANVAS_LAYERS;o++){var a=e.data.canvases[o]=document.createElement("canvas");e.data.contexts[o]=a.getContext("2d"),Object.keys(i).forEach((function(t){a.style[t]=i[t]})),a.style.position="absolute",a.setAttribute("data-id","layer"+o),a.style.zIndex=String(zs.CANVAS_LAYERS-o),e.data.canvasContainer.appendChild(a),e.data.canvasNeedsRedraw[o]=!1}e.data.topCanvas=e.data.canvases[0],e.data.canvases[zs.NODE].setAttribute("data-id","layer"+zs.NODE+"-node"),e.data.canvases[zs.SELECT_BOX].setAttribute("data-id","layer"+zs.SELECT_BOX+"-selectbox"),e.data.canvases[zs.DRAG].setAttribute("data-id","layer"+zs.DRAG+"-drag");for(o=0;o<zs.BUFFER_COUNT;o++)e.data.bufferCanvases[o]=document.createElement("canvas"),e.data.bufferContexts[o]=e.data.bufferCanvases[o].getContext("2d"),e.data.bufferCanvases[o].style.position="absolute",e.data.bufferCanvases[o].setAttribute("data-id","buffer"+o),e.data.bufferCanvases[o].style.zIndex=String(-o-1),e.data.bufferCanvases[o].style.visibility="hidden";e.pathsEnabled=!0;var s=ee(),u=function(t){return{x:-t.w/2,y:-t.h/2}},c=function(t){return t.boundingBox(),t[0]._private.bodyBounds},l=function(t){return t.boundingBox(),t[0]._private.labelBounds.main||s},f=function(t){return t.boundingBox(),t[0]._private.labelBounds.source||s},h=function(t){return t.boundingBox(),t[0]._private.labelBounds.target||s},p=function(t,e){return e},g=function(t,e,n){var r=t?t+"-":"";return{x:e.x+n.pstyle(r+"text-margin-x").pfValue,y:e.y+n.pstyle(r+"text-margin-y").pfValue}},v=function(t,e,n){var r=t[0]._private.rscratch;return{x:r[e],y:r[n]}},b=e.data.eleTxrCache=new is(e,{getKey:function(t){return t[0]._private.nodeKey},doesEleInvalidateKey:function(t){var e=t[0]._private;return!(e.oldBackgroundTimestamp===e.backgroundTimestamp)},drawElement:function(t,n,r,i,o){return e.drawElement(t,n,r,!1,!1,o)},getBoundingBox:c,getRotationPoint:function(t){return{x:((e=c(t)).x1+e.x2)/2,y:(e.y1+e.y2)/2};var e},getRotationOffset:function(t){return u(c(t))},allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),y=e.data.lblTxrCache=new is(e,{getKey:function(t){return t[0]._private.labelStyleKey},drawElement:function(t,n,r,i,o){return e.drawElementText(t,n,r,i,"main",o)},getBoundingBox:l,getRotationPoint:function(t){return g("",v(t,"labelX","labelY"),t)},getRotationOffset:function(t){var e=l(t),n=u(l(t));if(t.isNode()){switch(t.pstyle("text-halign").value){case"left":n.x=-e.w;break;case"right":n.x=0}switch(t.pstyle("text-valign").value){case"top":n.y=-e.h;break;case"bottom":n.y=0}}return n},isVisible:p}),w=e.data.slbTxrCache=new is(e,{getKey:function(t){return t[0]._private.sourceLabelStyleKey},drawElement:function(t,n,r,i,o){return e.drawElementText(t,n,r,i,"source",o)},getBoundingBox:f,getRotationPoint:function(t){return g("source",v(t,"sourceLabelX","sourceLabelY"),t)},getRotationOffset:function(t){return u(f(t))},isVisible:p}),m=e.data.tlbTxrCache=new is(e,{getKey:function(t){return t[0]._private.targetLabelStyleKey},drawElement:function(t,n,r,i,o){return e.drawElementText(t,n,r,i,"target",o)},getBoundingBox:h,getRotationPoint:function(t){return g("target",v(t,"targetLabelX","targetLabelY"),t)},getRotationOffset:function(t){return u(h(t))},isVisible:p}),x=e.data.lyrTxrCache=new as(e);e.onUpdateEleCalcs((function(t,e){b.invalidateElements(e),y.invalidateElements(e),w.invalidateElements(e),m.invalidateElements(e),x.invalidateElements(e);for(var n=0;n<e.length;n++){var r=e[n]._private;r.oldBackgroundTimestamp=r.backgroundTimestamp}}));var _=function(t){for(var e=0;e<t.length;e++)x.enqueueElementRefinement(t[e].ele)};b.onDequeue(_),y.onDequeue(_),w.onDequeue(_),m.onDequeue(_)}zs.CANVAS_LAYERS=3,zs.SELECT_BOX=0,zs.DRAG=1,zs.NODE=2,zs.BUFFER_COUNT=3,zs.TEXTURE_BUFFER=0,zs.MOTIONBLUR_BUFFER_NODE=1,zs.MOTIONBLUR_BUFFER_DRAG=2,zs.redrawHint=function(t,e){var n=this;switch(t){case"eles":n.data.canvasNeedsRedraw[zs.NODE]=e;break;case"drag":n.data.canvasNeedsRedraw[zs.DRAG]=e;break;case"select":n.data.canvasNeedsRedraw[zs.SELECT_BOX]=e}};var Vs="undefined"!=typeof Path2D;zs.path2dEnabled=function(t){if(void 0===t)return this.pathsEnabled;this.pathsEnabled=!!t},zs.usePaths=function(){return Vs&&this.pathsEnabled},zs.setImgSmoothing=function(t,e){null!=t.imageSmoothingEnabled?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)},zs.getImgSmoothing=function(t){return null!=t.imageSmoothingEnabled?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled},zs.makeOffscreenCanvas=function(t,e){var n;return"undefined"!==("undefined"==typeof OffscreenCanvas?"undefined":a(OffscreenCanvas))?n=new OffscreenCanvas(t,e):((n=document.createElement("canvas")).width=t,n.height=e),n},[fs,bs,ks,Ss,Cs,As,Ns,Os,Rs,Hs].forEach((function(t){G(zs,t)}));var qs=[{type:"layout",extensions:Ta},{type:"renderer",extensions:[{name:"null",impl:Aa},{name:"base",impl:Qa},{name:"canvas",impl:Fs}]}],Us={},Xs={};function Ws(t,e,n){var r=n,i=function(n){ht("Can not register `"+e+"` for `"+t+"` since `"+n+"` already exists in the prototype and can not be overridden")};if("core"===t){if(Fo.prototype[e])return i(e);Fo.prototype[e]=n}else if("collection"===t){if(io.prototype[e])return i(e);io.prototype[e]=n}else if("layout"===t){for(var o=function(t){this.options=t,n.call(this,t),_(this._private)||(this._private={}),this._private.cy=t.cy,this._private.listeners=[],this.createEmitter()},a=o.prototype=Object.create(n.prototype),s=[],u=0;u<s.length;u++){var c=s[u];a[c]=a[c]||function(){return this}}a.start&&!a.run?a.run=function(){return this.start(),this}:!a.start&&a.run&&(a.start=function(){return this.run(),this});var l=n.prototype.stop;a.stop=function(){var t=this.options;if(t&&t.animate){var e=this.animations;if(e)for(var n=0;n<e.length;n++)e[n].stop()}return l?l.call(this):this.emit("layoutstop"),this},a.destroy||(a.destroy=function(){return this}),a.cy=function(){return this._private.cy};var f=function(t){return t._private.cy},h={addEventFields:function(t,e){e.layout=t,e.cy=f(t),e.target=t},bubble:function(){return!0},parent:function(t){return f(t)}};G(a,{createEmitter:function(){return this._private.emitter=new _i(h,this),this},emitter:function(){return this._private.emitter},on:function(t,e){return this.emitter().on(t,e),this},one:function(t,e){return this.emitter().one(t,e),this},once:function(t,e){return this.emitter().one(t,e),this},removeListener:function(t,e){return this.emitter().removeListener(t,e),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(t,e){return this.emitter().emit(t,e),this}}),Vn.eventAliasesOn(a),r=o}else if("renderer"===t&&"null"!==e&&"base"!==e){var d=$s("renderer","base"),p=d.prototype,g=n,v=n.prototype,b=function(){d.apply(this,arguments),g.apply(this,arguments)},y=b.prototype;for(var w in p){var m=p[w];if(null!=v[w])return i(w);y[w]=m}for(var x in v)y[x]=v[x];p.clientFunctions.forEach((function(t){y[t]=y[t]||function(){ht("Renderer does not implement `renderer."+t+"()` on its prototype")}})),r=b}return z({map:Us,keys:[t,e],value:r})}function $s(t,e){return Y({map:Us,keys:[t,e]})}function Ks(t,e,n,r,i){return z({map:Xs,keys:[t,e,n,r],value:i})}function Zs(t,e,n,r){return Y({map:Xs,keys:[t,e,n,r]})}var Qs=function(){return 2===arguments.length?$s.apply(null,arguments):3===arguments.length?Ws.apply(null,arguments):4===arguments.length?Zs.apply(null,arguments):5===arguments.length?Ks.apply(null,arguments):void ht("Invalid extension access syntax")};Fo.prototype.extension=Qs,qs.forEach((function(t){t.extensions.forEach((function(e){Ws(t.type,e.name,e.impl)}))}));var Js=function t(){if(!(this instanceof t))return new t;this.length=0},tu=Js.prototype;tu.instanceString=function(){return"stylesheet"},tu.selector=function(t){return this[this.length++]={selector:t,properties:[]},this},tu.css=function(t,e){var n=this.length-1;if(w(t))this[n].properties.push({name:t,value:e});else if(_(t))for(var r=t,i=Object.keys(r),o=0;o<i.length;o++){var a=i[o],s=r[a];if(null!=s){var u=Do.properties[a]||Do.properties[j(a)];if(null!=u){var c=u.name,l=s;this[n].properties.push({name:c,value:l})}}}return this},tu.style=tu.css,tu.generateStyle=function(t){var e=new Do(t);return this.appendToStyle(e)},tu.appendToStyle=function(t){for(var e=0;e<this.length;e++){var n=this[e],r=n.selector,i=n.properties;t.selector(r);for(var o=0;o<i.length;o++){var a=i[o];t.css(a.name,a.value)}}return t};var eu=function(t){return void 0===t&&(t={}),_(t)?new Fo(t):w(t)?Qs.apply(Qs,arguments):void 0};eu.use=function(t){var e=Array.prototype.slice.call(arguments,1);return e.unshift(eu),t.apply(null,e),this},eu.warnings=function(t){return dt(t)},eu.version="3.15.1",eu.stylesheet=eu.Stylesheet=Js,t.exports=eu}).call(this,n(71).setImmediate)},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(137),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(20))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e,n){this.source=t,this.target=e,this.type=n};e.PowerEdge=r;var i=function(){function t(t,e,n,r){var i=this;if(this.linkAccessor=n,this.modules=new Array(t),this.roots=[],r)this.initModulesFromGroup(r);else{this.roots.push(new s);for(var a=0;a<t;++a)this.roots[0].add(this.modules[a]=new o(a))}this.R=e.length,e.forEach((function(t){var e=i.modules[n.getSourceIndex(t)],r=i.modules[n.getTargetIndex(t)],o=n.getType(t);e.outgoing.add(o,r),r.incoming.add(o,e)}))}return t.prototype.initModulesFromGroup=function(t){var e=new s;this.roots.push(e);for(var n=0;n<t.leaves.length;++n){var r=t.leaves[n],i=new o(r.id);this.modules[r.id]=i,e.add(i)}if(t.groups)for(var a=0;a<t.groups.length;++a){var c=t.groups[a],l={};for(var f in c)"leaves"!==f&&"groups"!==f&&c.hasOwnProperty(f)&&(l[f]=c[f]);e.add(new o(-1-a,new u,new u,this.initModulesFromGroup(c),l))}return e},t.prototype.merge=function(t,e,n){void 0===n&&(n=0);var r=t.incoming.intersection(e.incoming),i=t.outgoing.intersection(e.outgoing),a=new s;a.add(t),a.add(e);var u=new o(this.modules.length,i,r,a);this.modules.push(u);var c=function(n,r,i){n.forAll((function(n,o){n.forAll((function(n){var a=n[r];a.add(o,u),a.remove(o,t),a.remove(o,e),t[i].remove(o,n),e[i].remove(o,n)}))}))};return c(i,"incoming","outgoing"),c(r,"outgoing","incoming"),this.R-=r.count()+i.count(),this.roots[n].remove(t),this.roots[n].remove(e),this.roots[n].add(u),u},t.prototype.rootMerges=function(t){void 0===t&&(t=0);for(var e=this.roots[t].modules(),n=e.length,r=new Array(n*(n-1)),i=0,o=0,a=n-1;o<a;++o)for(var s=o+1;s<n;++s){var u=e[o],c=e[s];r[i]={id:i,nEdges:this.nEdges(u,c),a:u,b:c},i++}return r},t.prototype.greedyMerge=function(){for(var t=0;t<this.roots.length;++t)if(!(this.roots[t].modules().length<2)){var e=this.rootMerges(t).sort((function(t,e){return t.nEdges==e.nEdges?t.id-e.id:t.nEdges-e.nEdges}))[0];if(!(e.nEdges>=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,n=[];return function t(e,n,r){e.forAll((function(e){if(e.isLeaf())n.leaves||(n.leaves=[]),n.leaves.push(e.id);else{var i=n;if(e.gid=r.length,!e.isIsland()||e.isPredefined()){if(i={id:e.gid},e.isPredefined())for(var o in e.definition)i[o]=e.definition[o];n.groups||(n.groups=[]),n.groups.push(e.gid),r.push(i)}t(e.children,i,r)}}))}(this.roots[0],{},n),this.allEdges().forEach((function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new r(void 0===o.gid?i.source:n[o.gid],void 0===a.gid?i.target:n[a.gid],i.type))})),n},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll((function(e){e.getEdges(n),t.getEdges(e.children,n)}))},t}();e.Configuration=i;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new u),void 0===n&&(n=new u),void 0===r&&(r=new s),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll((function(n,i){n.forAll((function(n){t.push(new r(e.id,n.id,i))}))}))},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();function a(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}e.Module=o;var s=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=a(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll((function(e){e.isPredefined()||t.push(e)})),t},t}();e.ModuleSet=s;var u=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules((function(n){e||n.id!=t||(e=!0)})),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new s).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll((function(e,n){return e.forAll(t)}))},t.prototype.intersection=function(e){var n=new t;return this.forAll((function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}})),n},t}();e.LinkSets=u,e.getGroups=function(t,e,n,r){for(var o=t.length,a=new i(o,e,n,r);a.greedyMerge(););var s=[],u=a.getGroupHierarchy(s);return s.forEach((function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")})),{groups:u,powerEdges:s}}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){this.findIter=function(t){for(var e=this._root,n=this.iterator();null!==e;){var r=this._comparator(t,e.data);if(0===r)return n._cursor=e,n;n._ancestors.push(e),e=e.get_child(r>0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,(function(t,n){return e(n,t)}))},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new a(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=o;var a=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=a;var s=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}(),u=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return i(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new s(t),n=!0,this.size++;else{var r=new s(void 0),i=!1,o=!1,a=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new s(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var f=u.right===a;l===c.get_child(o)?u.set_child(f,e.single_rotate(a,!o)):u.set_child(f,e.double_rotate(a,!o))}var h=this._comparator(l.data,t);if(0===h)break;o=i,i=h<0,null!==a&&(u=a),a=c,c=l,l=l.get_child(i)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new s(void 0),r=n;r.right=this._root;for(var i=null,o=null,a=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(a=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var f=e.single_rotate(r,u);i.set_child(c,f),i=f}else if(!e.is_red(r.get_child(!u))){var h=i.get_child(!c);if(null!==h)if(e.is_red(h.get_child(!c))||e.is_red(h.get_child(c))){var d=o.right===i;e.is_red(h.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(h.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,h.red=!0,r.red=!0}}return null!==a&&(a.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==a},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(o);e.RBTree=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r<this.subheaps.length;++r){var i=this.subheaps[r];i.elem?(n&&(e+=","),e+=i.toString(t),n=!0):n=!1}return""!==e&&(e="("+e+")"),(this.elem?t(this.elem):"")+e},t.prototype.forEach=function(t){this.empty()||(t(this.elem,this),this.subheaps.forEach((function(e){return e.forEach(t)})))},t.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce((function(t,e){return t+e.count()}),0)},t.prototype.min=function(){return this.elem},t.prototype.empty=function(){return null==this.elem},t.prototype.contains=function(t){if(this===t)return!0;for(var e=0;e<this.subheaps.length;e++)if(this.subheaps[e].contains(t))return!0;return!1},t.prototype.isHeap=function(t){var e=this;return this.subheaps.every((function(n){return t(e.elem,n.elem)&&n.isHeap(t)}))},t.prototype.insert=function(e,n){return this.merge(new t(e),n)},t.prototype.merge=function(t,e){return this.empty()?t:t.empty()?this:e(this.elem,t.elem)?(this.subheaps.push(t),this):(t.subheaps.push(this),t)},t.prototype.removeMin=function(t){return this.empty()?null:this.mergePairs(t)},t.prototype.mergePairs=function(e){if(0==this.subheaps.length)return new t(null);if(1==this.subheaps.length)return this.subheaps[0];var n=this.subheaps.pop().merge(this.subheaps.pop(),e),r=this.mergePairs(e);return n.merge(r,e)},t.prototype.decreaseKey=function(e,n,r,i){var o=e.removeMin(i);e.elem=o.elem,e.subheaps=o.subheaps,null!==r&&null!==o.elem&&r(e.elem,e);var a=new t(n);return null!==r&&r(n,a),this.merge(a,i)},t}();e.PairingHeap=r;var i=function(){function t(t){this.lessThan=t}return t.prototype.top=function(){return this.empty()?null:this.root.elem},t.prototype.push=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var i,o=0;i=e[o];++o)t=new r(i),this.root=this.empty()?t:this.root.merge(t,this.lessThan);return t},t.prototype.empty=function(){return!this.root||!this.root.elem},t.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},t.prototype.forEach=function(t){this.root.forEach(t)},t.prototype.pop=function(){if(this.empty())return null;var t=this.root.min();return this.root=this.root.removeMin(this.lessThan),t},t.prototype.reduceKey=function(t,e,n){void 0===n&&(n=null),this.root=this.root.decreaseKey(t,e,n,this.lessThan)},t.prototype.toString=function(t){return this.root.toString(t)},t.prototype.count=function(){return this.root.count()},t}();e.PriorityQueue=i},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(22),a=function(){};e.Point=a;var s=function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r};e.LineSegment=s;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);function c(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function l(t,e,n){return c(t,e,n)>0}function f(t,e,n){return c(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(f(t,e[1],e[0])&&!l(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if((o=f(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!l(t,e[i-1],e[i]))return i;l(t,e[n+1],e[n])?o||l(t,e[n],e[i])?r=i:n=i:o&&f(t,e[n],e[i])?r=i:n=i}}function d(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[a-1],e[0])&&!f(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return f(t,e[n],e[r])?n:r;if(o=f(t,e[(i=Math.floor((n+r)/2))+1],e[i]),l(t,e[i-1],e[i])&&!o)return i;f(t,e[n+1],e[n])?o?f(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:l(t,e[n],e[i])?r=i:n=i}}function p(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function g(t,e){return p(t,e,h,d,l,f)}e.PolyPoint=u,e.isLeft=c,e.ConvexHull=function(t){var e,n=t.slice(0).sort((function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y})),r=t.length,i=n[0].x;for(e=1;e<r&&n[e].x===i;++e);var o=e-1,a=[];if(a.push(n[0]),o===r-1)n[o].y!==n[0].y&&a.push(n[o]);else{var s,u=r-1,l=n[r-1].x;for(e=r-2;e>=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(c(n[0],n[s],n[e])>=0&&e<s)){for(;a.length>1&&!(c(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}u!=s&&a.push(n[u]);var f=a.length;for(e=s;--e>=o;)if(!(c(n[u],n[o],n[e])>=0&&e>o)){for(;a.length>f&&!(c(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort((function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)})).forEach(n)},e.tangent_PolyPolyC=p,e.LRtangent_PolyPolyC=function(t,e){var n=g(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=g,e.LLtangent_PolyPolyC=function(t,e){return p(t,e,d,d,f,f)},e.RRtangent_PolyPolyC=function(t,e){return p(t,e,h,h,l,l)};var v=function(t,e){this.t1=t,this.t2=e};e.BiTangent=v;var b=function(){};e.BiTangents=b;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);e.TVGPoint=y;var w=function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this};e.VisibilityVertex=w;var m=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();e.VisibilityEdge=m;var x=function(){function t(t,e){if(this.P=t,this.V=[],this.E=[],e)this.V=e.V.slice(0),this.E=e.E.slice(0);else{for(var n=t.length,r=0;r<n;r++){for(var i=t[r],o=0;o<i.length;++o){var a=i[o],s=new w(this.V.length,r,o,a);this.V.push(s),o>0&&this.E.push(new m(i[o-1].vv,s))}i.length>1&&this.E.push(new m(i[0].vv,i[i.length-1].vv))}for(r=0;r<n-1;r++){var u=t[r];for(o=r+1;o<n;o++){var c=t[o],l=E(u,c);for(var f in l){var h=l[f],d=u[h.t1],p=c[h.t2];this.addEdgeIfVisible(d,p,r,o)}}}}}return t.prototype.addEdgeIfVisible=function(t,e,n,r){this.intersectsPolys(new s(t.x,t.y,e.x,e.y),n,r)||this.E.push(new m(t.vv,e.vv))},t.prototype.addPoint=function(t,e){var n,r,i,o=this.P.length;this.V.push(new w(this.V.length,o,0,t));for(var a=0;a<o;++a)if(a!==e){var s=this.P[a],u=(n=t,i=void 0,(i=(r=s).slice(0)).push(r[0]),{rtan:h(n,i),ltan:d(n,i)});this.addEdgeIfVisible(t,s[u.ltan],e,a),this.addEdgeIfVisible(t,s[u.rtan],e,a)}return t.vv},t.prototype.intersectsPolys=function(t,e,n){for(var r=0,i=this.P.length;r<i;++r)if(r!=e&&r!=n&&_(t,this.P[r]).length>0)return!0;return!1},t}();function _(t,e){for(var n=[],r=1,i=e.length;r<i;++r){var a=o.Rectangle.lineIntersection(t.x1,t.y1,t.x2,t.y2,e[r-1].x,e[r-1].y,e[r].x,e[r].y);a&&n.push(a)}return n}function E(t,e){for(var n=t.length-1,r=e.length-1,i=new b,o=0;o<n;++o)for(var a=0;a<r;++a){var s=t[0==o?n-1:o-1],u=t[o],l=t[o+1],f=e[0==a?r-1:a-1],h=e[a],d=e[a+1],p=c(s,u,h),g=c(u,f,h),y=c(u,h,d),w=c(f,h,u),m=c(h,s,u),x=c(h,u,l);p>=0&&g>=0&&y<0&&w>=0&&m>=0&&x<0?i.ll=new v(o,a):p<=0&&g<=0&&y>0&&w<=0&&m<=0&&x>0?i.rr=new v(o,a):p<=0&&g>0&&y<=0&&w>=0&&m<0&&x>=0?i.rl=new v(o,a):p>=0&&g<0&&y>=0&&w<=0&&m>0&&x<=0&&(i.lr=new v(o,a))}return i}function k(t,e){return!t.every((function(t){return!function(t,e){for(var n=1,r=e.length;n<r;++n)if(f(e[n-1],e[n],t))return!1;return!0}(t,e)}))}e.TangentVisibilityGraph=x,e.tangents=E,e.polysOverlap=function(t,e){if(k(t,e))return!0;if(k(e,t))return!0;for(var n=1,r=t.length;n<r;++n){var i=t[n],o=t[n-1];if(_(new s(o.x,o.y,i.x,i.y),e).length>0)return!0}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=10,i=(1+Math.sqrt(5))/2,o=1e-4;e.applyPacking=function(t,e,n,a,s,u){void 0===s&&(s=1),void 0===u&&(u=!0);var c=e,l=n,f=(s=void 0!==s?s:1,a=void 0!==a?a:0,0),h=0,d=0,p=0,g=[];function v(t,e){g=[],f=0,h=0,p=0;for(var n=0;n<t.length;n++){b(t[n],e)}return Math.abs(f/h-s)}function b(t,e){for(var n=void 0,i=0;i<g.length;i++)if(g[i].space_left>=t.height&&g[i].x+g[i].width+t.width+r-e<=o){n=g[i];break}g.push(t),void 0!==n?(t.x=n.x+n.width+r,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+r,n.bottom+=t.height+r):(t.y=p,p+=t.height+r,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-h>-o&&(h=t.y+t.height-0),t.x+t.width-f>-o&&(f=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach((function(t){var e,n,r,i,o;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,i=0,o=0,e.array.forEach((function(t){var e=void 0!==t.width?t.width:a,s=void 0!==t.height?t.height:a;e/=2,s/=2,i=Math.max(t.x+e,i),n=Math.min(t.x-e,n),o=Math.max(t.y+s,o),r=Math.min(t.y-s,r)})),e.width=i-n,e.height=o-r}))}(t),function(t,e){var n=Number.POSITIVE_INFINITY,a=0;t.sort((function(t,e){return e.height-t.height})),d=t.reduce((function(t,e){return t.width<e.width?t.width:e.width}));var s=b=d,u=y=function(t){var e=0;return t.forEach((function(t){return e+=t.width+r})),e}(t),c=0,l=Number.MAX_VALUE,f=Number.MAX_VALUE,h=-1,p=Number.MAX_VALUE,g=Number.MAX_VALUE;for(;p>d||g>o;){if(1!=h){var b=u-(u-s)/i;l=v(t,b)}if(0!=h){var y=s+(u-s)/i;f=v(t,y)}if(p=Math.abs(b-y),g=Math.abs(l-f),l<n&&(n=l,a=b),f<n&&(n=f,a=y),l>f?(s=b,b=y,l=f,h=1):(u=y,y=b,f=l,h=0),c++>100)break}v(t,a)}(t),u&&function(t){t.forEach((function(t){var e={x:0,y:0};t.array.forEach((function(t){e.x+=t.x,e.y+=t.y})),e.x/=t.array.length,e.y/=t.array.length;var n=e.x-t.width/2,r=e.y-t.height/2,i=t.x-n+c/2-f/2,o=t.y-r+l/2-h/2;t.array.forEach((function(t){t.x+=i,t.y+=o}))}))}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a<e.length;a++){var s=e[a],u=s.source,c=s.target;r[u.index]?r[u.index].push(c):r[u.index]=[c],r[c.index]?r[c.index].push(u):r[c.index]=[u]}for(a=0;a<t.length;a++){var l=t[a];n[l.index]||f(l,!0)}function f(t,e){if(void 0===n[t.index]){e&&(o++,i.push({array:[]})),n[t.index]=o,i[o-1].array.push(t);var a=r[t.index];if(a)for(var s=0;s<a.length;s++)f(a[s],!1)}}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(22),i=n(49),o=n(29),a=function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length};e.NodeWrapper=a;var s=function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i};e.Vert=s;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;a<n;a++){o[a]=new Array(r);for(var s=0;s<r;s++)if(t[a]===e[s]){var u=o[a][s]=0===a||0===s?1:o[a-1][s-1]+1;u>i.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u;var c=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map((function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))})),this.leaves=this.nodes.filter((function(t){return t.leaf})),this.groups=this.nodes.filter((function(t){return!t.leaf})),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach((function(t){return t.children.forEach((function(e){return i.nodes[e].parent=t}))})),this.root={children:[]},this.nodes.forEach((function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]})),this.backToFront=this.nodes.slice(0),this.backToFront.sort((function(t,e){return i.getDepth(t)-i.getDepth(e)})),this.backToFront.slice(0).reverse().filter((function(t){return!t.leaf})).forEach((function(t){var e=r.Rectangle.empty();t.children.forEach((function(t){return e=e.union(i.nodes[t].rect)})),t.rect=e.inflate(i.groupPadding)}));var o=this.midPoints(this.cols.map((function(t){return t.pos}))),u=this.midPoints(this.rows.map((function(t){return t.pos}))),c=o[0],l=o[o.length-1],f=u[0],h=u[u.length-1],d=this.rows.map((function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}})).concat(u.map((function(t){return{x1:c,x2:l,y1:t,y2:t}}))),p=this.cols.map((function(t){return{x1:t.pos,x2:t.pos,y1:f,y2:h}})).concat(o.map((function(t){return{x1:t,x2:t,y1:f,y2:h}}))),g=d.concat(p);g.forEach((function(t){return t.verts=[]})),this.verts=[],this.edges=[],d.forEach((function(t){return p.forEach((function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u<a.width()/2&&c<a.height()/2){n.node=o;break}}}))})),g.forEach((function(t,e){i.nodes.forEach((function(e,n){e.rect.lineIntersections(t.x1,t.y1,t.x2,t.y2).forEach((function(n,r){var o=new s(i.verts.length,n.x,n.y,e,t);i.verts.push(o),t.verts.push(o),e.ports.push(o)}))}));var n=Math.abs(t.y1-t.y2)<.1,r=function(t,e){return n?e.x-t.x:e.y-t.y};t.verts.sort(r);for(var o=1;o<t.verts.length;o++){var a=t.verts[o-1],u=t.verts[o];a.node&&a.node===u.node&&a.node.leaf||i.edges.push({source:a.id,target:u.id,length:Math.abs(r(a,u))})}}))}return t.prototype.avg=function(t){return t.reduce((function(t,e){return t+e}))/t.length},t.prototype.getGridLines=function(t){for(var e=[],n=this.leaves.slice(0,this.leaves.length);n.length>0;){var r=n.filter((function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)})),i={nodes:r,pos:this.avg(r.map((function(e){return e.rect["c"+t]()})))};e.push(i),i.nodes.forEach((function(t){return n.splice(n.indexOf(t),1)}))}return e.sort((function(t,e){return t.pos-e.pos})),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r<t.length;r++)n.push((t[r]+t[r-1])/2);return n.push(t[t.length-1]+e/2),n},t.prototype.findLineage=function(t){var e=[t];do{t=t.parent,e.push(t)}while(t!==this.root);return e.reverse()},t.prototype.findAncestorPathBetween=function(t,e){for(var n=this.findLineage(t),r=this.findLineage(e),i=0;n[i]===r[i];)i++;return{commonAncestor:n[i-1],lineages:n.slice(i).concat(r.slice(i))}},t.prototype.siblingObstacles=function(t,e){var n=this,r=this.findAncestorPathBetween(t,e),i={};r.lineages.forEach((function(t){return i[t.id]={}}));var o=r.commonAncestor.children.filter((function(t){return!(t in i)}));return r.lineages.filter((function(t){return t.parent!==r.commonAncestor})).forEach((function(t){return o=o.concat(t.parent.children.filter((function(e){return e!==t.id})))})),o.map((function(t){return n.nodes[t]}))},t.getSegmentSets=function(t,e,n){for(var r=[],i=0;i<t.length;i++)for(var o=t[i],a=0;a<o.length;a++){(f=o[a]).edgeid=i,f.i=a;var s=f[1][e]-f[0][e];Math.abs(s)<.1&&r.push(f)}r.sort((function(t,n){return t[0][e]-n[0][e]}));for(var u=[],c=null,l=0;l<r.length;l++){var f=r[l];(!c||Math.abs(f[0][e]-c.pos)>.1)&&(c={pos:f[0][e],segments:[]},u.push(c)),c.segments.push(f)}return u},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map((function(e){return new i.Variable(e[0][t])})),c=[],l=0;l<s;l++)for(var f=0;f<s;f++)if(l!==f){var h=r[l],d=r[f],p=h.edgeid,g=d.edgeid,v=-1,b=-1;"x"==t?o(p,g)&&(h[0][e]<h[1][e]?(v=f,b=l):(v=l,b=f)):o(p,g)&&(h[0][e]<h[1][e]?(v=l,b=f):(v=f,b=l)),v>=0&&c.push(new i.Constraint(u[v],u[b],a))}new i.Solver(u,c).solve(),u.forEach((function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.i<s.length-1&&(s[o.i+1][0][t]=a)}))}},t.nudgeSegments=function(e,n,r,i,o){for(var a=t.getSegmentSets(e,n,r),s=0;s<a.length;s++){for(var u=a[s],c=[],l=0;l<u.segments.length;l++){var f=u.segments[l];c.push({type:0,s:f,pos:Math.min(f[0][r],f[1][r])}),c.push({type:1,s:f,pos:Math.max(f[0][r],f[1][r])})}c.sort((function(t,e){return t.pos-e.pos+t.type-e.type}));var h=[],d=0;c.forEach((function(a){0===a.type?(h.push(a.s),d++):d--,0==d&&(t.nudgeSegs(n,r,e,h,i,o),h=[])}))}},t.prototype.routeEdges=function(e,n,r,i){var o=this,a=e.map((function(t){return o.route(r(t),i(t))})),s=t.orderEdges(a),u=a.map((function(e){return t.makeSegments(e)}));return t.nudgeSegments(u,"x","y",s,n),t.nudgeSegments(u,"y","x",s,n),t.unreverseEdges(u,a),u},t.unreverseEdges=function(t,e){t.forEach((function(t,n){e[n].reversed&&(t.reverse(),t.forEach((function(t){t.reverse()})))}))},t.angleBetween2Lines=function(t,e){var n=Math.atan2(t[0].y-t[1].y,t[0].x-t[1].x),r=Math.atan2(e[0].y-e[1].y,e[0].x-e[1].x),i=n-r;return(i>Math.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n<t.length;n++){var r=t[n];void 0===e[r.l]&&(e[r.l]={}),e[r.l][r.r]=!0}return function(t,n){return void 0!==e[t]&&e[t][n]}},t.orderEdges=function(e){for(var n=[],r=0;r<e.length-1;r++)for(var i=r+1;i<e.length;i++){var o,a,s,c=e[r],l=e[i],f=new u(c,l);0!==f.length&&(f.reversed&&(l.reverse(),l.reversed=!0,f=new u(c,l)),(f.si<=0||f.ti<=0)&&(f.si+f.length>=c.length||f.ti+f.length>=l.length)?n.push({l:r,r:i}):(f.si+f.length>=c.length||f.ti+f.length>=l.length?(o=c[f.si+1],s=c[f.si-1],a=l[f.ti-1]):(o=c[f.si+f.length-2],a=c[f.si+f.length],s=l[f.ti+f.length]),t.isLeft(o,a,s)?n.push({l:i,r:r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o<t.length;o++){var a=e(t[o]),s=o<t.length-1?t[o+1]:null;s&&n(i,a,s)||(r.push([i,a]),i=a)}return r},t.prototype.route=function(t,e){var n=this,r=this.nodes[t],i=this.nodes[e];this.obstacles=this.siblingObstacles(r,i);var a={};this.obstacles.forEach((function(t){return a[t.id]=t})),this.passableEdges=this.edges.filter((function(t){var e=n.verts[t.source],r=n.verts[t.target];return!(e.node&&e.node.id in a||r.node&&r.node.id in a)}));for(var s=1;s<r.ports.length;s++){var u=r.ports[0].id,c=r.ports[s].id;this.passableEdges.push({source:u,target:c,length:0})}for(s=1;s<i.ports.length;s++){u=i.ports[0].id,c=i.ports[s].id;this.passableEdges.push({source:u,target:c,length:0})}var l=new o.Calculator(this.verts.length,this.passableEdges,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).PathFromNodeToNodeWithPrevCost(r.ports[0].id,i.ports[0].id,(function(t,e,o){var a=n.verts[t],s=n.verts[e],u=n.verts[o],c=Math.abs(u.x-a.x),l=Math.abs(u.y-a.y);return a.node===r&&a.node===s.node||s.node===i&&s.node===u.node?0:c>1&&l>1?1e3:0})).reverse().map((function(t){return n.verts[t]}));return l.push(this.nodes[i.id].ports[0]),l.filter((function(t,e){return!(e<l.length-1&&l[e+1].node===r&&t.node===r||e>0&&t.node===i&&l[e-1].node===i)}))},t.getRoutePath=function(e,n,r,i){var o={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var a=0;a<e.length;a++){var s=(m=e[a])[1].x,u=m[1].y,c=s-m[0].x,l=u-m[0].y;if(a<e.length-1){Math.abs(c)>0?s-=c/Math.abs(c)*n:u-=l/Math.abs(l)*n,o.routepath+="L "+s+" "+u+" ";var f=e[a+1],h=f[0].x,d=f[0].y;c=f[1].x-h,l=f[1].y-d;var p,g,v=t.angleBetween2Lines(m,f)<0?1:0;Math.abs(c)>0?(p=h+c/Math.abs(c)*n,g=d):(p=h,g=d+l/Math.abs(l)*n);var b=Math.abs(p-s),y=Math.abs(g-u);o.routepath+="A "+b+" "+y+" 0 0 "+v+" "+p+" "+g+" "}else{var w=[s,u];Math.abs(c)>0?(x=[s-=c/Math.abs(c)*i,u+r],_=[s,u-r]):(x=[s+r,u-=l/Math.abs(l)*i],_=[s-r,u]),o.routepath+="L "+s+" "+u+" ",i>0&&(o.arrowpath="M "+w[0]+" "+w[1]+" L "+x[0]+" "+x[1]+" L "+_[0]+" "+_[1])}}else{var m,x,_;s=(m=e[0])[1].x,u=m[1].y,c=s-m[0].x,l=u-m[0].y,w=[s,u];Math.abs(c)>0?(x=[s-=c/Math.abs(c)*i,u+r],_=[s,u-r]):(x=[s+r,u-=l/Math.abs(l)*i],_=[s-r,u]),o.routepath+="L "+s+" "+u+" ",i>0&&(o.arrowpath="M "+w[0]+" "+w[1]+" L "+x[0]+" "+x[1]+" L "+_[0]+" "+_[1])}return o},t}();e.GridRouter=c},function(t,e,n){var r=n(30),i=n(53),o=n(35),a=n(188),s=n(194),u=n(84),c=n(85),l=n(197),f=n(198),h=n(89),d=n(199),p=n(18),g=n(203),v=n(204),b=n(94),y=n(1),w=n(16),m=n(208),x=n(4),_=n(210),E=n(10),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,t.exports=function t(e,n,S,C,T,A){var N,O=1&n,L=2&n,P=4&n;if(S&&(N=T?S(e,C,T,A):S(e)),void 0!==N)return N;if(!x(e))return e;var I=y(e);if(I){if(N=g(e),!O)return c(e,N)}else{var j=p(e),M="[object Function]"==j||"[object GeneratorFunction]"==j;if(w(e))return u(e,O);if("[object Object]"==j||"[object Arguments]"==j||M&&!T){if(N=L||M?{}:b(e),!O)return L?f(e,s(N,e)):l(e,a(N,e))}else{if(!k[j])return T?e:{};N=v(e,j,O)}}A||(A=new r);var D=A.get(e);if(D)return D;A.set(e,N),_(e)?e.forEach((function(r){N.add(t(r,n,S,r,e,A))})):m(e)&&e.forEach((function(r,i){N.set(i,t(r,n,S,i,e,A))}));var R=P?L?d:h:L?keysIn:E,B=I?void 0:R(e);return i(B||e,(function(r,i){B&&(r=e[i=r]),o(N,i,t(r,n,S,i,e,A))})),N}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(20))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(11),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(189),i=n(25),o=n(1),a=n(16),s=n(37),u=n(26),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),f=!n&&!l&&a(t),h=!n&&!l&&!f&&u(t),d=n||l||f||h,p=d?r(t.length,String):[],g=p.length;for(var v in t)!e&&!c.call(t,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||p.push(v);return p}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){(function(t){var r=n(6),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(28)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(58),i=n(40),o=n(57),a=n(87),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=s},function(t,e,n){var r=n(90),i=n(57),o=n(10);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(58),i=n(1);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e,n){var r=n(11)(n(6),"Set");t.exports=r},function(t,e,n){var r=n(6).Uint8Array;t.exports=r},function(t,e,n){var r=n(59);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(95),i=n(40),o=n(39);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(4),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){t.exports=n(97)},function(t,e,n){var r=n(53),i=n(41),o=n(98),a=n(1);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},function(t,e,n){var r=n(13);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(86),i=n(214),o=n(9),a=n(1);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},function(t,e,n){var r=n(217),i=n(7);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},function(t,e,n){var r=n(102),i=n(220),o=n(103);t.exports=function(t,e,n,a,s,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(t);if(h&&u.get(e))return h==e;var d=-1,p=!0,g=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++d<l;){var v=t[d],b=e[d];if(a)var y=c?a(b,v,d,e,t,u):a(v,b,d,t,e,u);if(void 0!==y){if(y)continue;p=!1;break}if(g){if(!i(e,(function(t,e){if(!o(g,e)&&(v===t||s(v,t,n,a,u)))return g.push(e)}))){p=!1;break}}else if(v!==b&&!s(v,b,n,a,u)){p=!1;break}}return u.delete(t),u.delete(e),p}},function(t,e,n){var r=n(52),i=n(218),o=n(219);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(4);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){var r=n(230);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(231),i=n(108);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e,n){var r=n(42),i=n(25),o=n(1),a=n(37),s=n(54),u=n(27);t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,f=!1;++c<l;){var h=u(e[c]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&s(l)&&a(h,l)&&(o(t)||i(t))}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(234),i=n(108);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var r=n(43),i=n(9),o=n(113),a=n(1);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e,n){var r=n(41),i=n(8);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},function(t,e,n){var r=n(236),i=n(41),o=n(9),a=n(237),s=n(1);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},function(t,e,n){var r=n(247),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(u),r(t,this,c)}}},function(t,e,n){var r=n(248),i=n(249)(r);t.exports=i},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(8),i=n(7);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(258),i=n(10);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(3),i=n(121);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c<r.distance&&(r.distance=c,r.predecessor=o,u.decrease(e,c))};t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},u.add(t,n)}));for(;u.size()>0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},function(t,e,n){var r=n(3);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e}},function(t,e,n){var r=n(3);t.exports=function(t){var e=0,n=[],i={},o=[];return t.nodes().forEach((function(a){r.has(i,a)||function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}(a)})),o}},function(t,e,n){var r=n(3);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))})),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},function(t,e,n){var r=n(3);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],a={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,i,o,a,s){r.has(o,n)||(o[n]=!0,i||s.push(n),r.each(a(n),(function(n){t(e,n,i,o,a,s)})),i&&s.push(n))}(t,e,"post"===n,a,i,o)})),o}},function(t,e,n){var r=n(277);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(66);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,e,n){var r=n(36),i=n(14);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,n){"use strict";var r=n(0),i=n(5).Graph,o=n(46).slack;function a(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;t.hasNode(s)||o(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function u(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),c=t.nodes()[0],l=t.nodeCount();r.setNode(c,{});for(;a(r,t)<l;)e=s(r,t),n=r.hasNode(e.v)?o(t,e):-o(t,e),u(r,t,n);return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cytoscape=void 0;var r=h(n(132)),i=h(n(70)),o=h(n(144)),a=h(n(147)),s=h(n(155)),u=h(n(331)),c=h(n(332)),l=h(n(334)),f=h(n(336));function h(t){return t&&t.__esModule?t:{default:t}}i.default.use(o.default),i.default.use(a.default),i.default.use(s.default),i.default.use(u.default),i.default.use(c.default),i.default.use(l.default),i.default.use(f.default),e.Cytoscape=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(68),o=l(i),a=l(n(69)),s=l(n(135)),u=l(n(142)),c=l(n(143));function l(t){return t&&t.__esModule?t:{default:t}}var f=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.handleCy=n.handleCy.bind(n),n._handleCyCalled=!1,n.handleImageGeneration=n.handleImageGeneration.bind(n),n.cyResponsiveClass=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"generateNode",value:function(t){var e=t.target,n=e.isParent(),r=e.isChildless(),i=e.isChild(),o=e.isOrphan(),a=e.renderedPosition(),s=e.relativePosition(),u=e.parent(),c=e.style(),l=e.connectedEdges().map((function(t){return t.data()})),f=e.children().map((function(t){return t.data()})),h=e.ancestors().map((function(t){return t.data()})),d=e.descendants().map((function(t){return t.data()})),p=e.siblings().map((function(t){return t.data()})),g=t.timeStamp,v=e.json(),b=v.classes,y=v.data,w=v.grabbable,m=v.group,x=v.locked,_=v.position,E=v.selected;return{edgesData:l,renderedPosition:a,timeStamp:g,classes:b,data:y,grabbable:w,group:m,locked:x,position:_,selectable:v.selectable,selected:E,ancestorsData:h,childrenData:f,descendantsData:d,parentData:u?u.data():null,siblingsData:p,isParent:n,isChildless:r,isChild:i,isOrphan:o,relativePosition:s,style:c}}},{key:"generateEdge",value:function(t){var e=t.target,n=e.midpoint(),r=e.isLoop(),i=e.isSimple(),o=e.source().data(),a=e.sourceEndpoint(),s=e.style(),u=e.target().data(),c=e.targetEndpoint(),l=t.timeStamp,f=e.json();return{isLoop:r,isSimple:i,midpoint:n,sourceData:o,sourceEndpoint:a,targetData:u,targetEndpoint:c,timeStamp:l,classes:f.classes,data:f.data,grabbable:f.grabbable,group:f.group,locked:f.locked,selectable:f.selectable,selected:f.selected,style:s}}},{key:"handleCy",value:function(t){var e=this;if(t!==this._cy||!this._handleCyCalled){this._cy=t,window.cy=t,this._handleCyCalled=!0;var n=t.collection(),r=t.collection(),i=u.default.debounce((function(){var n=e.props,r=n.autoRefreshLayout,i=n.layout;r&&t.layout(i).run()}),100),o=u.default.debounce((function(){var t=n.map((function(t){return t.data()}));"function"==typeof e.props.setProps&&e.props.setProps({selectedNodeData:t})}),100),a=u.default.debounce((function(){var t=r.map((function(t){return t.data()}));"function"==typeof e.props.setProps&&e.props.setProps({selectedEdgeData:t})}),100);t.on("tap","node",(function(t){var n=e.generateNode(t);"function"==typeof e.props.setProps&&e.props.setProps({tapNode:n,tapNodeData:n.data})})),t.on("tap","edge",(function(t){var n=e.generateEdge(t);"function"==typeof e.props.setProps&&e.props.setProps({tapEdge:n,tapEdgeData:n.data})})),t.on("mouseover","node",(function(t){"function"==typeof e.props.setProps&&e.props.setProps({mouseoverNodeData:t.target.data()})})),t.on("mouseover","edge",(function(t){"function"==typeof e.props.setProps&&e.props.setProps({mouseoverEdgeData:t.target.data()})})),t.on("select","node",(function(t){var e=t.target;n.merge(e),o()})),t.on("unselect remove","node",(function(t){var e=t.target;n.unmerge(e),o()})),t.on("select","edge",(function(t){var e=t.target;r.merge(e),a()})),t.on("unselect remove","edge",(function(t){var e=t.target;r.unmerge(e),a()})),t.on("add remove",(function(){i()})),this.cyResponsiveClass=new c.default(t),this.cyResponsiveClass.toggle(this.props.responsive)}}},{key:"handleImageGeneration",value:function(t,e,n,r){var i=this,o={};e&&(o=e);var a=o.output;o.output="blob";var s=void 0,u=void 0;switch(n){case"store":s=!1,u=!0;break;case"download":s=!0,u=!1;break;case"both":s=!0,u=!0;break;default:s=!1,u=!0}var c=void 0;if("png"===t&&(c=this._cy.png(o)),"jpg"!==t&&"jpeg"!==t||(c=this._cy.jpg(o)),"svg"===t&&(c=this._cy.svg(o)),c&&s){var l=r;if(r||(l="cyto"),"svg"!==t)this.downloadBlob(c,l+"."+t);else{var f=new Blob([c],{type:"image/svg+xml;charset=utf-8"});this.downloadBlob(f,l+"."+t)}}if(c&&u){if(a||(a="base64uri"),"base64uri"!==a&&"base64"!==a)return;var h=new FileReader;h.onload=function(){var t=h.result;"base64"===a&&(t=t.replace(/^data:.+;base64,/,"")),i.props.setProps({imageData:t})},h.readAsDataURL(c)}}},{key:"downloadBlob",value:function(t,e){var n=document.createElement("a");n.style="display: none",document.body.appendChild(n);var r=window.URL.createObjectURL(t);n.href=r,n.download=e,n.click(),window.URL.revokeObjectURL(r),document.body.removeChild(n)}},{key:"render",value:function(){var t=this.props,e=t.id,n=t.style,r=t.className,i=t.elements,a=t.stylesheet,u=t.layout,c=t.pan,l=t.zoom,f=t.panningEnabled,h=t.userPanningEnabled,d=t.minZoom,p=t.maxZoom,g=t.zoomingEnabled,v=t.userZoomingEnabled,b=t.boxSelectionEnabled,y=t.autoungrabify,w=t.autolock,m=t.autounselectify,x=t.generateImage,_=t.responsive;return Object.keys(x).length>0&&(this.props.setProps({generateImage:{}}),this._cy&&this.handleImageGeneration(x.type,x.options,x.action,x.filename)),this.cyResponsiveClass&&this.cyResponsiveClass.toggle(_),o.default.createElement(s.default,{id:e,cy:this.handleCy,className:r,style:n,elements:s.default.normalizeElements(i),stylesheet:a,layout:u,pan:c,zoom:l,panningEnabled:f,userPanningEnabled:h,minZoom:d,maxZoom:p,zoomingEnabled:g,userZoomingEnabled:v,boxSelectionEnabled:b,autoungrabify:y,autolock:w,autounselectify:m})}}]),e}(i.Component);f.propTypes={id:a.default.string,className:a.default.string,style:a.default.object,setProps:a.default.func,elements:a.default.oneOfType([a.default.arrayOf(a.default.shape({group:a.default.string,data:a.default.shape({id:a.default.string,label:a.default.string,parent:a.default.string,source:a.default.string,target:a.default.string}),position:a.default.shape({x:a.default.number,y:a.default.number}),selected:a.default.bool,selectable:a.default.bool,locked:a.default.bool,grabbable:a.default.bool,classes:a.default.string})),a.default.exact({nodes:a.default.array,edges:a.default.array})]),stylesheet:a.default.arrayOf(a.default.exact({selector:a.default.string.isRequired,style:a.default.object.isRequired})),layout:a.default.shape({name:a.default.oneOf(["random","preset","circle","concentric","grid","breadthfirst","cose","close-bilkent","cola","euler","spread","dagre","klay"]).isRequired,fit:a.default.bool,padding:a.default.number,animate:a.default.bool,animationDuration:a.default.number,boundingBox:a.default.object}),pan:a.default.exact({x:a.default.number,y:a.default.number}),zoom:a.default.number,panningEnabled:a.default.bool,userPanningEnabled:a.default.bool,minZoom:a.default.number,maxZoom:a.default.number,zoomingEnabled:a.default.bool,userZoomingEnabled:a.default.bool,boxSelectionEnabled:a.default.bool,autoungrabify:a.default.bool,autolock:a.default.bool,autounselectify:a.default.bool,autoRefreshLayout:a.default.bool,tapNode:a.default.exact({edgesData:a.default.array,renderedPosition:a.default.object,timeStamp:a.default.number,classes:a.default.string,data:a.default.object,grabbable:a.default.bool,group:a.default.string,locked:a.default.bool,position:a.default.object,selectable:a.default.bool,selected:a.default.bool,style:a.default.object,ancestorsData:a.default.oneOfType([a.default.object,a.default.array]),childrenData:a.default.oneOfType([a.default.object,a.default.array]),descendantsData:a.default.oneOfType([a.default.object,a.default.array]),parentData:a.default.oneOfType([a.default.object,a.default.array]),siblingsData:a.default.oneOfType([a.default.object,a.default.array]),isParent:a.default.bool,isChildless:a.default.bool,isChild:a.default.bool,isOrphan:a.default.bool,relativePosition:a.default.object}),tapNodeData:a.default.object,tapEdge:a.default.exact({isLoop:a.default.bool,isSimple:a.default.bool,midpoint:a.default.object,sourceData:a.default.object,sourceEndpoint:a.default.object,targetData:a.default.object,targetEndpoint:a.default.object,timeStamp:a.default.number,classes:a.default.string,data:a.default.object,grabbable:a.default.bool,group:a.default.string,locked:a.default.bool,selectable:a.default.bool,selected:a.default.bool,style:a.default.object}),tapEdgeData:a.default.object,mouseoverNodeData:a.default.object,mouseoverEdgeData:a.default.object,selectedNodeData:a.default.array,selectedEdgeData:a.default.array,generateImage:a.default.shape({type:a.default.oneOf(["svg","png","jpg","jpeg"]),options:a.default.object,action:a.default.oneOf(["store","download","both"]),filename:a.default.string}),imageData:a.default.string,responsive:a.default.bool},f.defaultProps={style:{width:"600px",height:"600px"},layout:{name:"grid"},pan:{x:0,y:0},zoom:1,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:!0,userZoomingEnabled:!0,panningEnabled:!0,userPanningEnabled:!0,boxSelectionEnabled:!1,autolock:!1,autoungrabify:!1,autounselectify:!1,autoRefreshLayout:!0,generateImage:{},imageData:null,responsive:!1,elements:[]},e.default=f},function(t,e,n){"use strict";var r=n(134);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){window,t.exports=function(t,e,n,r){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 n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r({}),o=function(t,e){return null==t||null==e};e.hashDiff=function(t,e){return o(t,e)||t.hash()!==e.hash()},e.shallowObjDiff=function(t,e){if(o(t,e)&&(null!=t||null!=e))return!0;if(t===e)return!1;if((void 0===t?"undefined":r(t))!==i||(void 0===e?"undefined":r(e))!==i)return t!==e;var n=Object.keys(t),a=Object.keys(e),s=function(n){return t[n]!==e[n]};return n.length!==a.length||!(!n.some(s)&&!a.some(s))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.get=function(t,e){return null!=t?t[e]:null},e.toJson=function(t){return t},e.forEach=function(t,e){return t.forEach(e)}},function(t,e,n){"use strict";t.exports=n(3).default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=l(n(4)),o=l(n(5)),a=n(6),s=n(8),u=l(n(9)),c=n(10);function l(t){return t&&t.__esModule?t:{default:t}}var f=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.displayName="CytoscapeComponent",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default.Component),r(e,null,[{key:"normalizeElements",value:function(t){if(null!=t.length)return t;var e=t.nodes,n=t.edges;return null==e&&(e=[]),null==n&&(n=[]),e.concat(n)}},{key:"propTypes",get:function(){return a.types}},{key:"defaultProps",get:function(){return s.defaults}}]),r(e,[{key:"componentDidMount",value:function(){var t=o.default.findDOMNode(this),e=this.props,n=e.global,r=e.headless,i=e.styleEnabled,a=e.hideEdgesOnViewport,s=e.textureOnViewport,c=e.motionBlur,l=e.motionBlurOpacity,f=e.wheelSensitivity,h=e.pixelRatio,d=this._cy=new u.default({container:t,headless:r,styleEnabled:i,hideEdgesOnViewport:a,textureOnViewport:s,motionBlur:c,motionBlurOpacity:l,wheelSensitivity:f,pixelRatio:h});n&&(window[n]=d),this.updateCytoscape(null,this.props)}},{key:"updateCytoscape",value:function(t,e){var n=this._cy,r=e.diff,i=e.toJson,o=e.get,a=e.forEach;(0,c.patch)(n,t,e,r,i,o,a),null!=e.cy&&e.cy(n)}},{key:"componentDidUpdate",value:function(t){this.updateCytoscape(t,this.props)}},{key:"componentWillUnmount",value:function(){this._cy.destroy()}},{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,r=t.style;return i.default.createElement("div",{id:e,className:n,style:r})}}]),e}();e.default=f},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.types=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(7)),i=r.default.string,o=r.default.array,a=r.default.object,s=r.default.number,u=r.default.bool,c=r.default.oneOfType,l=r.default.any,f=r.default.func;e.types={id:i,className:i,style:c([i,a]),elements:c([o,l]),stylesheet:c([o,l]),layout:c([a,l]),pan:c([a,l]),zoom:s,panningEnabled:u,userPanningEnabled:u,minZoom:s,maxZoom:s,zoomingEnabled:u,userZoomingEnabled:u,boxSelectionEnabled:u,autoungrabify:u,autolock:u,autounselectify:u,get:f,toJson:f,diff:f,forEach:f,cy:f,headless:u,styleEnabled:u,hideEdgesOnViewport:u,textureOnViewport:u,motionBlur:u,motionBlurOpacity:s,wheelSensitivity:s,pixelRatio:c([i,a])}},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaults=e.pan=e.zoom=e.stylesheet=e.elements=e.identity=void 0;var r=n(0),i=n(1),o=(e.identity=function(t){return t},e.elements=[{data:{id:"a",label:"Example node A"}},{data:{id:"b",label:"Example node B"}},{data:{id:"e",source:"a",target:"b"}}]),a=e.stylesheet=[{selector:"node",style:{label:"data(label)"}}],s=e.zoom=1,u=e.pan={x:0,y:0};e.defaults={diff:r.shallowObjDiff,get:i.get,toJson:i.toJson,forEach:i.forEach,elements:o,stylesheet:a,zoom:s,pan:u}},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.patch=void 0;var r=n(1),i=n(0),o=function(t,e,n,i){return n((0,r.get)(t,i),(0,r.get)(e,i))},a=(e.patch=function(t,e,n,l,f,h,d){t.batch((function(){(l===i.shallowObjDiff||o(e,n,l,"elements"))&&c(t,(0,r.get)(e,"elements"),(0,r.get)(n,"elements"),f,h,d,l),o(e,n,l,"stylesheet")&&u(t,(0,r.get)(e,"stylesheet"),(0,r.get)(n,"stylesheet"),f),["zoom","minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","pan","panningEnabled","userPanningEnabled","boxSelectionEnabled","autoungrabify","autolock","autounselectify"].forEach((function(i){o(e,n,l,i)&&a(t,i,(0,r.get)(e,i),(0,r.get)(n,i),f)}))})),o(e,n,l,"layout")&&s(t,(0,r.get)(e,"layout"),(0,r.get)(n,"layout"),f)},function(t,e,n,r,i){t[e](i(r))}),s=function(t,e,n,r){var i=r(n);null!=i&&t.layout(i).run()},u=function(t,e,n,r){var i=t.style();null!=i&&i.fromJson(r(n)).update()},c=function(t,e,n,r,i,o,a){var s=[],u=t.collection(),c=[],f={},h={},d=function(t){return i(i(t,"data"),"id")};o(n,(function(t){var e=d(t);h[e]=t})),null!=e&&o(e,(function(e){var n=d(e);f[n]=e,function(t){return null!=h[t]}(n)||u.merge(t.getElementById(n))})),o(n,(function(t){var e=d(t),n=function(t){return f[t]}(e);!function(t){return null!=f[t]}(e)?s.push(r(t)):c.push({ele1:n,ele2:t})})),u.length>0&&t.remove(u),s.length>0&&t.add(s),c.forEach((function(e){var n=e.ele1,o=e.ele2;return l(t,n,o,r,i,a)}))},l=function(t,e,n,r,i,o){var a=i(i(n,"data"),"id"),s=t.getElementById(a),u={};["data","position","selected","selectable","locked","grabbable","classes"].forEach((function(t){var a=i(n,t);o(a,i(e,t))&&(u[t]=r(a))}));var c=i(n,"scratch");o(c,i(e,"scratch"))&&s.scratch(r(c)),Object.keys(u).length>0&&s.json(u)}}])}(n(68),n(136),n(69),n(70))},function(t,e){t.exports=window.ReactDOM},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,u=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return c[u]=i,r(u),u++},h.clearImmediate=d}function d(t){delete c[t]}function p(t){if(l)setTimeout(p,0,t);else{var e=c[t];if(e){l=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{d(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(20),n(138))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var t=s(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")(),l=Object.prototype.toString,f=Math.max,h=Math.min,d=function(){return c.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(p(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=p(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var s=i.test(t);return s||o.test(t)?a(t.slice(2),s?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,a,s,u,c=0,l=!1,v=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n)}function w(t){return c=t,s=setTimeout(x,e),l?y(t):a}function m(t){var n=t-u;return void 0===u||n>=e||n<0||v&&t-c>=o}function x(){var t=d();if(m(t))return _(t);s=setTimeout(x,function(t){var n=e-(t-u);return v?h(n,o-(t-c)):n}(t))}function _(t){return s=void 0,b&&r?y(t):(r=i=void 0,a)}function E(){var t=d(),n=m(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return w(u);if(v)return s=setTimeout(x,e),y(u)}return void 0===s&&(s=setTimeout(x,e)),a}return e=g(e)||0,p(n)&&(l=!!n.leading,o=(v="maxWait"in n)?f(g(n.maxWait)||0,e):o,b="trailing"in n?!!n.trailing:b),E.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0},E.flush=function(){return void 0===s?a:_(d())},E}}).call(this,n(20))},function(t,e,n){t.exports=n(141)},function(t,e,n){var r,i,o;(function(){var n,a,s,u,c,l,f,h,d,p,g,v,b,y,w;s=Math.floor,p=Math.min,a=function(t,e){return t<e?-1:t>e?1:0},d=function(t,e,n,r,i){var o;if(null==n&&(n=0),null==i&&(i=a),n<0)throw new Error("lo must be non-negative");for(null==r&&(r=t.length);n<r;)i(e,t[o=s((n+r)/2)])<0?r=o:n=o+1;return[].splice.apply(t,[n,n-n].concat(e)),e},l=function(t,e,n){return null==n&&(n=a),t.push(e),y(t,0,t.length-1,n)},c=function(t,e){var n,r;return null==e&&(e=a),n=t.pop(),t.length?(r=t[0],t[0]=n,w(t,0,e)):r=n,r},h=function(t,e,n){var r;return null==n&&(n=a),r=t[0],t[0]=e,w(t,0,n),r},f=function(t,e,n){var r;return null==n&&(n=a),t.length&&n(t[0],e)<0&&(e=(r=[t[0],e])[0],t[0]=r[1],w(t,0,n)),e},u=function(t,e){var n,r,i,o,u,c;for(null==e&&(e=a),u=[],r=0,i=(o=function(){c=[];for(var e=0,n=s(t.length/2);0<=n?e<n:e>n;0<=n?e++:e--)c.push(e);return c}.apply(this).reverse()).length;r<i;r++)n=o[r],u.push(w(t,n,e));return u},b=function(t,e,n){var r;if(null==n&&(n=a),-1!==(r=t.indexOf(e)))return y(t,0,r,n),w(t,r,n)},g=function(t,e,n){var r,i,o,s,c;if(null==n&&(n=a),!(i=t.slice(0,e)).length)return i;for(u(i,n),o=0,s=(c=t.slice(e)).length;o<s;o++)r=c[o],f(i,r,n);return i.sort(n).reverse()},v=function(t,e,n){var r,i,o,s,l,f,h,g,v;if(null==n&&(n=a),10*e<=t.length){if(!(o=t.slice(0,e).sort(n)).length)return o;for(i=o[o.length-1],s=0,f=(h=t.slice(e)).length;s<f;s++)n(r=h[s],i)<0&&(d(o,r,0,null,n),o.pop(),i=o[o.length-1]);return o}for(u(t,n),v=[],l=0,g=p(e,t.length);0<=g?l<g:l>g;0<=g?++l:--l)v.push(c(t,n));return v},y=function(t,e,n,r){var i,o,s;for(null==r&&(r=a),i=t[n];n>e&&r(i,o=t[s=n-1>>1])<0;)t[n]=o,n=s;return t[n]=i},w=function(t,e,n){var r,i,o,s,u;for(null==n&&(n=a),i=t.length,u=e,o=t[e],r=2*e+1;r<i;)(s=r+1)<i&&!(n(t[r],t[s])<0)&&(r=s),t[e]=t[r],r=2*(e=r)+1;return t[e]=o,y(t,u,e,n)},n=function(){function t(t){this.cmp=null!=t?t:a,this.nodes=[]}return t.push=l,t.pop=c,t.replace=h,t.pushpop=f,t.heapify=u,t.updateItem=b,t.nlargest=g,t.nsmallest=v,t.prototype.push=function(t){return l(this.nodes,t,this.cmp)},t.prototype.pop=function(){return c(this.nodes,this.cmp)},t.prototype.peek=function(){return this.nodes[0]},t.prototype.contains=function(t){return-1!==this.nodes.indexOf(t)},t.prototype.replace=function(t){return h(this.nodes,t,this.cmp)},t.prototype.pushpop=function(t){return f(this.nodes,t,this.cmp)},t.prototype.heapify=function(){return u(this.nodes,this.cmp)},t.prototype.updateItem=function(t){return b(this.nodes,t,this.cmp)},t.prototype.clear=function(){return this.nodes=[]},t.prototype.empty=function(){return 0===this.nodes.length},t.prototype.size=function(){return this.nodes.length},t.prototype.clone=function(){var e;return(e=new t).nodes=this.nodes.slice(0),e},t.prototype.toArray=function(){return this.nodes.slice(0)},t.prototype.insert=t.prototype.push,t.prototype.top=t.prototype.peek,t.prototype.front=t.prototype.peek,t.prototype.has=t.prototype.contains,t.prototype.copy=t.prototype.clone,t}(),i=[],void 0===(o="function"==typeof(r=function(){return n})?r.apply(e,i):r)||(t.exports=o)}).call(this)},function(t,e,n){(function(t,r){var i;
|
||
/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* 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(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",c="[object Array]",l="[object Boolean]",f="[object Date]",h="[object Error]",d="[object Function]",p="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Object]",y="[object RegExp]",w="[object Set]",m="[object String]",x="[object Symbol]",_="[object WeakMap]",E="[object ArrayBuffer]",k="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",N="[object Int32Array]",O="[object Uint8Array]",L="[object Uint16Array]",P="[object Uint32Array]",I=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,B=RegExp(D.source),G=RegExp(R.source),H=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,U=/[\\^$.*+?()[\]{}|]/g,X=RegExp(U.source),W=/^\s+|\s+$/g,$=/^\s+/,K=/\s+$/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lt=/($^)/,ft=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",gt="["+dt+"]",vt="["+ht+"]",bt="\\d+",yt="[\\u2700-\\u27bf]",wt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+dt+bt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xt="\\ud83c[\\udffb-\\udfff]",_t="[^\\ud800-\\udfff]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",kt="[\\ud800-\\udbff][\\udc00-\\udfff]",St="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ct="(?:"+wt+"|"+mt+")",Tt="(?:"+St+"|"+mt+")",At="(?:"+vt+"|"+xt+")"+"?",Nt="[\\ufe0e\\ufe0f]?"+At+("(?:\\u200d(?:"+[_t,Et,kt].join("|")+")[\\ufe0e\\ufe0f]?"+At+")*"),Ot="(?:"+[yt,Et,kt].join("|")+")"+Nt,Lt="(?:"+[_t+vt+"?",vt,Et,kt,pt].join("|")+")",Pt=RegExp("['’]","g"),It=RegExp(vt,"g"),jt=RegExp(xt+"(?="+xt+")|"+Lt+Nt,"g"),Mt=RegExp([St+"?"+wt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[gt,St,"$"].join("|")+")",Tt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[gt,St+Ct,"$"].join("|")+")",St+"?"+Ct+"+(?:['’](?:d|ll|m|re|s|t|ve))?",St+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bt,Ot].join("|"),"g"),Dt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gt=-1,Ht={};Ht[S]=Ht[C]=Ht[T]=Ht[A]=Ht[N]=Ht[O]=Ht["[object Uint8ClampedArray]"]=Ht[L]=Ht[P]=!0,Ht[u]=Ht[c]=Ht[E]=Ht[l]=Ht[k]=Ht[f]=Ht[h]=Ht[d]=Ht[g]=Ht[v]=Ht[b]=Ht[y]=Ht[w]=Ht[m]=Ht[_]=!1;var Ft={};Ft[u]=Ft[c]=Ft[E]=Ft[k]=Ft[l]=Ft[f]=Ft[S]=Ft[C]=Ft[T]=Ft[A]=Ft[N]=Ft[g]=Ft[v]=Ft[b]=Ft[y]=Ft[w]=Ft[m]=Ft[x]=Ft[O]=Ft["[object Uint8ClampedArray]"]=Ft[L]=Ft[P]=!0,Ft[h]=Ft[d]=Ft[_]=!1;var zt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Vt=parseInt,qt="object"==typeof t&&t&&t.Object===Object&&t,Ut="object"==typeof self&&self&&self.Object===Object&&self,Xt=qt||Ut||Function("return this")(),Wt=e&&!e.nodeType&&e,$t=Wt&&"object"==typeof r&&r&&!r.nodeType&&r,Kt=$t&&$t.exports===Wt,Zt=Kt&&qt.process,Qt=function(){try{var t=$t&&$t.require&&$t.require("util").types;return t||Zt&&Zt.binding&&Zt.binding("util")}catch(t){}}(),Jt=Qt&&Qt.isArrayBuffer,te=Qt&&Qt.isDate,ee=Qt&&Qt.isMap,ne=Qt&&Qt.isRegExp,re=Qt&&Qt.isSet,ie=Qt&&Qt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ue(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function le(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function fe(t,e){return!!(null==t?0:t.length)&&xe(t,e,0)>-1}function he(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function de(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function pe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function ge(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ve(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function be(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ye=Se("length");function we(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function me(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function xe(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):me(t,Ee,n)}function _e(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ee(t){return t!=t}function ke(t,e){var n=null==t?0:t.length;return n?Ae(t,e)/n:NaN}function Se(t){return function(e){return null==e?void 0:e[t]}}function Ce(t){return function(e){return null==t?void 0:t[e]}}function Te(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Ae(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Ne(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Oe(t){return function(e){return t(e)}}function Le(t,e){return de(e,(function(e){return t[e]}))}function Pe(t,e){return t.has(e)}function Ie(t,e){for(var n=-1,r=t.length;++n<r&&xe(e,t[n],0)>-1;);return n}function je(t,e){for(var n=t.length;n--&&xe(e,t[n],0)>-1;);return n}function Me(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var De=Ce({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Re=Ce({"&":"&","<":"<",">":">",'"':""","'":"'"});function Be(t){return"\\"+zt[t]}function Ge(t){return Dt.test(t)}function He(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Fe(t,e){return function(n){return t(e(n))}}function ze(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function Ye(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function Ve(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function qe(t){return Ge(t)?function(t){var e=jt.lastIndex=0;for(;jt.test(t);)++e;return e}(t):ye(t)}function Ue(t){return Ge(t)?function(t){return t.match(jt)||[]}(t):function(t){return t.split("")}(t)}var Xe=Ce({"&":"&","<":"<",">":">",""":'"',"'":"'"});var We=function t(e){var n,r=(e=null==e?Xt:We.defaults(Xt.Object(),e,We.pick(Xt,Bt))).Array,i=e.Date,ht=e.Error,dt=e.Function,pt=e.Math,gt=e.Object,vt=e.RegExp,bt=e.String,yt=e.TypeError,wt=r.prototype,mt=dt.prototype,xt=gt.prototype,_t=e["__core-js_shared__"],Et=mt.toString,kt=xt.hasOwnProperty,St=0,Ct=(n=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Tt=xt.toString,At=Et.call(gt),Nt=Xt._,Ot=vt("^"+Et.call(kt).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lt=Kt?e.Buffer:void 0,jt=e.Symbol,Dt=e.Uint8Array,zt=Lt?Lt.allocUnsafe:void 0,qt=Fe(gt.getPrototypeOf,gt),Ut=gt.create,Wt=xt.propertyIsEnumerable,$t=wt.splice,Zt=jt?jt.isConcatSpreadable:void 0,Qt=jt?jt.iterator:void 0,ye=jt?jt.toStringTag:void 0,Ce=function(){try{var t=Ji(gt,"defineProperty");return t({},"",{}),t}catch(t){}}(),$e=e.clearTimeout!==Xt.clearTimeout&&e.clearTimeout,Ke=i&&i.now!==Xt.Date.now&&i.now,Ze=e.setTimeout!==Xt.setTimeout&&e.setTimeout,Qe=pt.ceil,Je=pt.floor,tn=gt.getOwnPropertySymbols,en=Lt?Lt.isBuffer:void 0,nn=e.isFinite,rn=wt.join,on=Fe(gt.keys,gt),an=pt.max,sn=pt.min,un=i.now,cn=e.parseInt,ln=pt.random,fn=wt.reverse,hn=Ji(e,"DataView"),dn=Ji(e,"Map"),pn=Ji(e,"Promise"),gn=Ji(e,"Set"),vn=Ji(e,"WeakMap"),bn=Ji(gt,"create"),yn=vn&&new vn,wn={},mn=To(hn),xn=To(dn),_n=To(pn),En=To(gn),kn=To(vn),Sn=jt?jt.prototype:void 0,Cn=Sn?Sn.valueOf:void 0,Tn=Sn?Sn.toString:void 0;function An(t){if(Va(t)&&!Ia(t)&&!(t instanceof Pn)){if(t instanceof Ln)return t;if(kt.call(t,"__wrapped__"))return Ao(t)}return new Ln(t)}var Nn=function(){function t(){}return function(e){if(!Ya(e))return{};if(Ut)return Ut(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function On(){}function Ln(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Pn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Dn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Mn;++e<n;)this.add(t[e])}function Rn(t){var e=this.__data__=new jn(t);this.size=e.size}function Bn(t,e){var n=Ia(t),r=!n&&Pa(t),i=!n&&!r&&Ra(t),o=!n&&!r&&!i&&Qa(t),a=n||r||i||o,s=a?Ne(t.length,bt):[],u=s.length;for(var c in t)!e&&!kt.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ao(c,u))||s.push(c);return s}function Gn(t){var e=t.length;return e?t[Dr(0,e-1)]:void 0}function Hn(t,e){return ko(bi(t),$n(e,0,t.length))}function Fn(t){return ko(bi(t))}function zn(t,e,n){(void 0!==n&&!Na(t[e],n)||void 0===n&&!(e in t))&&Xn(t,e,n)}function Yn(t,e,n){var r=t[e];kt.call(t,e)&&Na(r,n)&&(void 0!==n||e in t)||Xn(t,e,n)}function Vn(t,e){for(var n=t.length;n--;)if(Na(t[n][0],e))return n;return-1}function qn(t,e,n,r){return tr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Un(t,e){return t&&yi(e,ms(e),t)}function Xn(t,e,n){"__proto__"==e&&Ce?Ce(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Wn(t,e){for(var n=-1,i=e.length,o=r(i),a=null==t;++n<i;)o[n]=a?void 0:gs(t,e[n]);return o}function $n(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Kn(t,e,n,r,i,o){var a,s=1&e,c=2&e,h=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Ya(t))return t;var _=Ia(t);if(_){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&kt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return bi(t,a)}else{var I=no(t),j=I==d||I==p;if(Ra(t))return fi(t,s);if(I==b||I==u||j&&!i){if(a=c||j?{}:io(t),!s)return c?function(t,e){return yi(t,eo(t),e)}(t,function(t,e){return t&&yi(e,xs(e),t)}(a,t)):function(t,e){return yi(t,to(t),e)}(t,Un(a,t))}else{if(!Ft[I])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case E:return hi(t);case l:case f:return new r(+t);case k:return function(t,e){var n=e?hi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case S:case C:case T:case A:case N:case O:case"[object Uint8ClampedArray]":case L:case P:return di(t,n);case g:return new r;case v:case m:return new r(t);case y:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case w:return new r;case x:return i=t,Cn?gt(Cn.call(i)):{}}var i}(t,I,s)}}o||(o=new Rn);var M=o.get(t);if(M)return M;o.set(t,a),$a(t)?t.forEach((function(r){a.add(Kn(r,e,n,r,t,o))})):qa(t)&&t.forEach((function(r,i){a.set(i,Kn(r,e,n,i,t,o))}));var D=_?void 0:(h?c?Ui:qi:c?xs:ms)(t);return se(D||t,(function(r,i){D&&(r=t[i=r]),Yn(a,i,Kn(r,e,n,i,t,o))})),a}function Zn(t,e,n){var r=n.length;if(null==t)return!r;for(t=gt(t);r--;){var i=n[r],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Qn(t,e,n){if("function"!=typeof t)throw new yt(o);return mo((function(){t.apply(void 0,n)}),e)}function Jn(t,e,n,r){var i=-1,o=fe,a=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=de(e,Oe(n))),r?(o=he,a=!1):e.length>=200&&(o=Pe,a=!1,e=new Dn(e));t:for(;++i<s;){var l=t[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var h=c;h--;)if(e[h]===f)continue t;u.push(l)}else o(e,f,r)||u.push(l)}return u}An.templateSettings={escape:H,evaluate:F,interpolate:z,variable:"",imports:{_:An}},An.prototype=On.prototype,An.prototype.constructor=An,Ln.prototype=Nn(On.prototype),Ln.prototype.constructor=Ln,Pn.prototype=Nn(On.prototype),Pn.prototype.constructor=Pn,In.prototype.clear=function(){this.__data__=bn?bn(null):{},this.size=0},In.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},In.prototype.get=function(t){var e=this.__data__;if(bn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return kt.call(e,t)?e[t]:void 0},In.prototype.has=function(t){var e=this.__data__;return bn?void 0!==e[t]:kt.call(e,t)},In.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=bn&&void 0===e?"__lodash_hash_undefined__":e,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(t){var e=this.__data__,n=Vn(e,t);return!(n<0)&&(n==e.length-1?e.pop():$t.call(e,n,1),--this.size,!0)},jn.prototype.get=function(t){var e=this.__data__,n=Vn(e,t);return n<0?void 0:e[n][1]},jn.prototype.has=function(t){return Vn(this.__data__,t)>-1},jn.prototype.set=function(t,e){var n=this.__data__,r=Vn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Mn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(dn||jn),string:new In}},Mn.prototype.delete=function(t){var e=Zi(this,t).delete(t);return this.size-=e?1:0,e},Mn.prototype.get=function(t){return Zi(this,t).get(t)},Mn.prototype.has=function(t){return Zi(this,t).has(t)},Mn.prototype.set=function(t,e){var n=Zi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Dn.prototype.add=Dn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Dn.prototype.has=function(t){return this.__data__.has(t)},Rn.prototype.clear=function(){this.__data__=new jn,this.size=0},Rn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Rn.prototype.get=function(t){return this.__data__.get(t)},Rn.prototype.has=function(t){return this.__data__.has(t)},Rn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!dn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Mn(r)}return n.set(t,e),this.size=n.size,this};var tr=xi(ur),er=xi(cr,!0);function nr(t,e){var n=!0;return tr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function rr(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!Za(a):n(a,s)))var s=a,u=o}return u}function ir(t,e){var n=[];return tr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function or(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?or(s,e-1,n,r,i):pe(i,s):r||(i[i.length]=s)}return i}var ar=_i(),sr=_i(!0);function ur(t,e){return t&&ar(t,e,ms)}function cr(t,e){return t&&sr(t,e,ms)}function lr(t,e){return le(e,(function(e){return Ha(t[e])}))}function fr(t,e){for(var n=0,r=(e=si(e,t)).length;null!=t&&n<r;)t=t[Co(e[n++])];return n&&n==r?t:void 0}function hr(t,e,n){var r=e(t);return Ia(t)?r:pe(r,n(t))}function dr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ye&&ye in gt(t)?function(t){var e=kt.call(t,ye),n=t[ye];try{t[ye]=void 0;var r=!0}catch(t){}var i=Tt.call(t);r&&(e?t[ye]=n:delete t[ye]);return i}(t):function(t){return Tt.call(t)}(t)}function pr(t,e){return t>e}function gr(t,e){return null!=t&&kt.call(t,e)}function vr(t,e){return null!=t&&e in gt(t)}function br(t,e,n){for(var i=n?he:fe,o=t[0].length,a=t.length,s=a,u=r(a),c=1/0,l=[];s--;){var f=t[s];s&&e&&(f=de(f,Oe(e))),c=sn(f.length,c),u[s]=!n&&(e||o>=120&&f.length>=120)?new Dn(s&&f):void 0}f=t[0];var h=-1,d=u[0];t:for(;++h<o&&l.length<c;){var p=f[h],g=e?e(p):p;if(p=n||0!==p?p:0,!(d?Pe(d,g):i(l,g,n))){for(s=a;--s;){var v=u[s];if(!(v?Pe(v,g):i(t[s],g,n)))continue t}d&&d.push(g),l.push(p)}}return l}function yr(t,e,n){var r=null==(t=vo(t,e=si(e,t)))?t:t[Co(Go(e))];return null==r?void 0:oe(r,t,n)}function wr(t){return Va(t)&&dr(t)==u}function mr(t,e,n,r,i){return t===e||(null==t||null==e||!Va(t)&&!Va(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var a=Ia(t),s=Ia(e),d=a?c:no(t),p=s?c:no(e),_=(d=d==u?b:d)==b,S=(p=p==u?b:p)==b,C=d==p;if(C&&Ra(t)){if(!Ra(e))return!1;a=!0,_=!1}if(C&&!_)return o||(o=new Rn),a||Qa(t)?Yi(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case k:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!o(new Dt(t),new Dt(e)));case l:case f:case v:return Na(+t,+e);case h:return t.name==e.name&&t.message==e.message;case y:case m:return t==e+"";case g:var s=He;case w:var u=1&r;if(s||(s=Ye),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=2,a.set(t,e);var d=Yi(s(t),s(e),r,i,o,a);return a.delete(t),d;case x:if(Cn)return Cn.call(t)==Cn.call(e)}return!1}(t,e,d,n,r,i,o);if(!(1&n)){var T=_&&kt.call(t,"__wrapped__"),A=S&&kt.call(e,"__wrapped__");if(T||A){var N=T?t.value():t,O=A?e.value():e;return o||(o=new Rn),i(N,O,n,r,o)}}if(!C)return!1;return o||(o=new Rn),function(t,e,n,r,i,o){var a=1&n,s=qi(t),u=s.length,c=qi(e).length;if(u!=c&&!a)return!1;var l=u;for(;l--;){var f=s[l];if(!(a?f in e:kt.call(e,f)))return!1}var h=o.get(t),d=o.get(e);if(h&&d)return h==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);var g=a;for(;++l<u;){f=s[l];var v=t[f],b=e[f];if(r)var y=a?r(b,v,f,e,t,o):r(v,b,f,t,e,o);if(!(void 0===y?v===b||i(v,b,n,r,o):y)){p=!1;break}g||(g="constructor"==f)}if(p&&!g){var w=t.constructor,m=e.constructor;w==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof m&&m instanceof m||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o)}(t,e,n,r,mr,i))}function xr(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=gt(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var u=(s=n[i])[0],c=t[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in t))return!1}else{var f=new Rn;if(r)var h=r(c,l,u,t,e,f);if(!(void 0===h?mr(l,c,3,r,f):h))return!1}}return!0}function _r(t){return!(!Ya(t)||(e=t,Ct&&Ct in e))&&(Ha(t)?Ot:at).test(To(t));var e}function Er(t){return"function"==typeof t?t:null==t?Us:"object"==typeof t?Ia(t)?Nr(t[0],t[1]):Ar(t):eu(t)}function kr(t){if(!fo(t))return on(t);var e=[];for(var n in gt(t))kt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Sr(t){if(!Ya(t))return function(t){var e=[];if(null!=t)for(var n in gt(t))e.push(n);return e}(t);var e=fo(t),n=[];for(var r in t)("constructor"!=r||!e&&kt.call(t,r))&&n.push(r);return n}function Cr(t,e){return t<e}function Tr(t,e){var n=-1,i=Ma(t)?r(t.length):[];return tr(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Ar(t){var e=Qi(t);return 1==e.length&&e[0][2]?po(e[0][0],e[0][1]):function(n){return n===t||xr(n,t,e)}}function Nr(t,e){return uo(t)&&ho(e)?po(Co(t),e):function(n){var r=gs(n,t);return void 0===r&&r===e?vs(n,t):mr(e,r,3)}}function Or(t,e,n,r,i){t!==e&&ar(e,(function(o,a){if(i||(i=new Rn),Ya(o))!function(t,e,n,r,i,o,a){var s=yo(t,n),u=yo(e,n),c=a.get(u);if(c)return void zn(t,n,c);var l=o?o(s,u,n+"",t,e,a):void 0,f=void 0===l;if(f){var h=Ia(u),d=!h&&Ra(u),p=!h&&!d&&Qa(u);l=u,h||d||p?Ia(s)?l=s:Da(s)?l=bi(s):d?(f=!1,l=fi(u,!0)):p?(f=!1,l=di(u,!0)):l=[]:Xa(u)||Pa(u)?(l=s,Pa(s)?l=as(s):Ya(s)&&!Ha(s)||(l=io(u))):f=!1}f&&(a.set(u,l),i(l,u,r,o,a),a.delete(u));zn(t,n,l)}(t,e,a,n,Or,r,i);else{var s=r?r(yo(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),zn(t,a,s)}}),xs)}function Lr(t,e){var n=t.length;if(n)return ao(e+=e<0?n:0,n)?t[e]:void 0}function Pr(t,e,n){e=e.length?de(e,(function(t){return Ia(t)?function(e){return fr(e,1===t.length?t[0]:t)}:t})):[Us];var r=-1;return e=de(e,Oe(Ki())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Tr(t,(function(t,n,i){return{criteria:de(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=pi(i[r],o[r]);if(u){if(r>=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return t.index-e.index}(t,e,n)}))}function Ir(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=fr(t,a);n(s,a)&&Fr(o,si(a,t),s)}return o}function jr(t,e,n,r){var i=r?_e:xe,o=-1,a=e.length,s=t;for(t===e&&(e=bi(e)),n&&(s=de(t,Oe(n)));++o<a;)for(var u=0,c=e[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==t&&$t.call(s,u,1),$t.call(t,u,1);return t}function Mr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;ao(i)?$t.call(t,i,1):Jr(t,i)}}return t}function Dr(t,e){return t+Je(ln()*(e-t+1))}function Rr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Je(e/2))&&(t+=t)}while(e);return n}function Br(t,e){return xo(go(t,e,Us),t+"")}function Gr(t){return Gn(Ns(t))}function Hr(t,e){var n=Ns(t);return ko(n,$n(e,0,n.length))}function Fr(t,e,n,r){if(!Ya(t))return t;for(var i=-1,o=(e=si(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=Co(e[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=a){var l=s[u];void 0===(c=r?r(l,u,s):void 0)&&(c=Ya(l)?l:ao(e[i+1])?[]:{})}Yn(s,u,c),s=s[u]}return t}var zr=yn?function(t,e){return yn.set(t,e),t}:Us,Yr=Ce?function(t,e){return Ce(t,"toString",{configurable:!0,enumerable:!1,value:Ys(e),writable:!0})}:Us;function Vr(t){return ko(Ns(t))}function qr(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i<o;)a[i]=t[i+e];return a}function Ur(t,e){var n;return tr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function Xr(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Za(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Wr(t,e,Us,n)}function Wr(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,s=null===e,u=Za(e),c=void 0===e;i<o;){var l=Je((i+o)/2),f=n(t[l]),h=void 0!==f,d=null===f,p=f==f,g=Za(f);if(a)var v=r||p;else v=c?p&&(r||h):s?p&&h&&(r||!d):u?p&&h&&!d&&(r||!g):!d&&!g&&(r?f<=e:f<e);v?i=l+1:o=l}return sn(o,4294967294)}function $r(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Na(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Kr(t){return"number"==typeof t?t:Za(t)?NaN:+t}function Zr(t){if("string"==typeof t)return t;if(Ia(t))return de(t,Zr)+"";if(Za(t))return Tn?Tn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Qr(t,e,n){var r=-1,i=fe,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=he;else if(o>=200){var c=e?null:Ri(t);if(c)return Ye(c);a=!1,i=Pe,u=new Dn}else u=e?[]:s;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function Jr(t,e){return null==(t=vo(t,e=si(e,t)))||delete t[Co(Go(e))]}function ti(t,e,n,r){return Fr(t,e,n(fr(t,e)),r)}function ei(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?qr(t,r?0:o,r?o+1:i):qr(t,r?o+1:0,r?i:o)}function ni(t,e){var n=t;return n instanceof Pn&&(n=n.value()),ge(e,(function(t,e){return e.func.apply(e.thisArg,pe([t],e.args))}),n)}function ri(t,e,n){var i=t.length;if(i<2)return i?Qr(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],u=-1;++u<i;)u!=o&&(a[o]=Jn(a[o]||s,t[u],e,n));return Qr(or(a,1),e,n)}function ii(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}function oi(t){return Da(t)?t:[]}function ai(t){return"function"==typeof t?t:Us}function si(t,e){return Ia(t)?t:uo(t,e)?[t]:So(ss(t))}var ui=Br;function ci(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:qr(t,e,n)}var li=$e||function(t){return Xt.clearTimeout(t)};function fi(t,e){if(e)return t.slice();var n=t.length,r=zt?zt(n):new t.constructor(n);return t.copy(r),r}function hi(t){var e=new t.constructor(t.byteLength);return new Dt(e).set(new Dt(t)),e}function di(t,e){var n=e?hi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function pi(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Za(t),a=void 0!==e,s=null===e,u=e==e,c=Za(e);if(!s&&!c&&!o&&t>e||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&t<e||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function gi(t,e,n,i){for(var o=-1,a=t.length,s=n.length,u=-1,c=e.length,l=an(a-s,0),f=r(c+l),h=!i;++u<c;)f[u]=e[u];for(;++o<s;)(h||o<a)&&(f[n[o]]=t[o]);for(;l--;)f[u++]=t[o++];return f}function vi(t,e,n,i){for(var o=-1,a=t.length,s=-1,u=n.length,c=-1,l=e.length,f=an(a-u,0),h=r(f+l),d=!i;++o<f;)h[o]=t[o];for(var p=o;++c<l;)h[p+c]=e[c];for(;++s<u;)(d||o<a)&&(h[p+n[s]]=t[o++]);return h}function bi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function yi(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?Xn(n,s,u):Yn(n,s,u)}return n}function wi(t,e){return function(n,r){var i=Ia(n)?ae:qn,o=e?e():{};return i(n,t,Ki(r,2),o)}}function mi(t){return Br((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=gt(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))}function xi(t,e){return function(n,r){if(null==n)return n;if(!Ma(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=gt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function _i(t){return function(e,n,r){for(var i=-1,o=gt(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function Ei(t){return function(e){var n=Ge(e=ss(e))?Ue(e):void 0,r=n?n[0]:e.charAt(0),i=n?ci(n,1).join(""):e.slice(1);return r[t]()+i}}function ki(t){return function(e){return ge(Hs(Ps(e).replace(Pt,"")),t,"")}}function Si(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Nn(t.prototype),r=t.apply(n,e);return Ya(r)?r:n}}function Ci(t){return function(e,n,r){var i=gt(e);if(!Ma(e)){var o=Ki(n,3);e=ms(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}function Ti(t){return Vi((function(e){var n=e.length,r=n,i=Ln.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new yt(o);if(i&&!s&&"wrapper"==Wi(a))var s=new Ln([],!0)}for(r=s?r:n;++r<n;){var u=Wi(a=e[r]),c="wrapper"==u?Xi(a):void 0;s=c&&co(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Wi(c[0])].apply(s,c[3]):1==a.length&&co(a)?s[u]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ia(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Ai(t,e,n,i,o,a,s,u,c,l){var f=128&e,h=1&e,d=2&e,p=24&e,g=512&e,v=d?void 0:Si(t);return function b(){for(var y=arguments.length,w=r(y),m=y;m--;)w[m]=arguments[m];if(p)var x=$i(b),_=Me(w,x);if(i&&(w=gi(w,i,o,p)),a&&(w=vi(w,a,s,p)),y-=_,p&&y<l){var E=ze(w,x);return Mi(t,e,Ai,b.placeholder,n,w,E,u,c,l-y)}var k=h?n:this,S=d?k[t]:t;return y=w.length,u?w=bo(w,u):g&&y>1&&w.reverse(),f&&c<y&&(w.length=c),this&&this!==Xt&&this instanceof b&&(S=v||Si(S)),S.apply(k,w)}}function Ni(t,e){return function(n,r){return function(t,e,n,r){return ur(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Oi(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Zr(n),r=Zr(r)):(n=Kr(n),r=Kr(r)),i=t(n,r)}return i}}function Li(t){return Vi((function(e){return e=de(e,Oe(Ki())),Br((function(n){var r=this;return t(e,(function(t){return oe(t,r,n)}))}))}))}function Pi(t,e){var n=(e=void 0===e?" ":Zr(e)).length;if(n<2)return n?Rr(e,t):e;var r=Rr(e,Qe(t/qe(e)));return Ge(e)?ci(Ue(r),0,t).join(""):r.slice(0,t)}function Ii(t){return function(e,n,i){return i&&"number"!=typeof i&&so(e,n,i)&&(n=i=void 0),e=ns(e),void 0===n?(n=e,e=0):n=ns(n),function(t,e,n,i){for(var o=-1,a=an(Qe((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(e,n,i=void 0===i?e<n?1:-1:ns(i),t)}}function ji(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=os(e),n=os(n)),t(e,n)}}function Mi(t,e,n,r,i,o,a,s,u,c){var l=8&e;e|=l?32:64,4&(e&=~(l?64:32))||(e&=-4);var f=[t,e,i,l?o:void 0,l?a:void 0,l?void 0:o,l?void 0:a,s,u,c],h=n.apply(void 0,f);return co(t)&&wo(h,f),h.placeholder=r,_o(h,t,e)}function Di(t){var e=pt[t];return function(t,n){if(t=os(t),(n=null==n?0:sn(rs(n),292))&&nn(t)){var r=(ss(t)+"e").split("e");return+((r=(ss(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Ri=gn&&1/Ye(new gn([,-0]))[1]==1/0?function(t){return new gn(t)}:Zs;function Bi(t){return function(e){var n=no(e);return n==g?He(e):n==w?Ve(e):function(t,e){return de(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Gi(t,e,n,i,s,u,c,l){var f=2&e;if(!f&&"function"!=typeof t)throw new yt(o);var h=i?i.length:0;if(h||(e&=-97,i=s=void 0),c=void 0===c?c:an(rs(c),0),l=void 0===l?l:rs(l),h-=s?s.length:0,64&e){var d=i,p=s;i=s=void 0}var g=f?void 0:Xi(t),v=[t,e,n,i,s,d,p,u,c,l];if(g&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var c=t[3];t[3]=c?gi(c,u,e[4]):u,t[4]=c?ze(t[3],a):e[4]}(u=e[5])&&(c=t[5],t[5]=c?vi(c,u,e[6]):u,t[6]=c?ze(t[5],a):e[6]);(u=e[7])&&(t[7]=u);128&r&&(t[8]=null==t[8]?e[8]:sn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(v,g),t=v[0],e=v[1],n=v[2],i=v[3],s=v[4],!(l=v[9]=void 0===v[9]?f?0:t.length:an(v[9]-h,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var i=Si(t);return function o(){for(var a=arguments.length,s=r(a),u=a,c=$i(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:ze(s,c);if((a-=l.length)<n)return Mi(t,e,Ai,o.placeholder,void 0,s,l,void 0,void 0,n-a);var f=this&&this!==Xt&&this instanceof o?i:t;return oe(f,this,s)}}(t,e,l):32!=e&&33!=e||s.length?Ai.apply(void 0,v):function(t,e,n,i){var o=1&e,a=Si(t);return function e(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=r(l+u),h=this&&this!==Xt&&this instanceof e?a:t;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return oe(h,o?n:this,f)}}(t,e,n,i);else var b=function(t,e,n){var r=1&e,i=Si(t);return function e(){var o=this&&this!==Xt&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return _o((g?zr:wo)(b,v),t,e)}function Hi(t,e,n,r){return void 0===t||Na(t,xt[n])&&!kt.call(r,n)?e:t}function Fi(t,e,n,r,i,o){return Ya(t)&&Ya(e)&&(o.set(e,t),Or(t,e,void 0,Fi,o),o.delete(e)),t}function zi(t){return Xa(t)?void 0:t}function Yi(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var f=-1,h=!0,d=2&n?new Dn:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var p=t[f],g=e[f];if(r)var v=a?r(g,p,f,e,t,o):r(p,g,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(d){if(!be(e,(function(t,e){if(!Pe(d,e)&&(p===t||i(p,t,n,r,o)))return d.push(e)}))){h=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function Vi(t){return xo(go(t,void 0,jo),t+"")}function qi(t){return hr(t,ms,to)}function Ui(t){return hr(t,xs,eo)}var Xi=yn?function(t){return yn.get(t)}:Zs;function Wi(t){for(var e=t.name+"",n=wn[e],r=kt.call(wn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function $i(t){return(kt.call(An,"placeholder")?An:t).placeholder}function Ki(){var t=An.iteratee||Xs;return t=t===Xs?Er:t,arguments.length?t(arguments[0],arguments[1]):t}function Zi(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Qi(t){for(var e=ms(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,ho(i)]}return e}function Ji(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return _r(n)?n:void 0}var to=tn?function(t){return null==t?[]:(t=gt(t),le(tn(t),(function(e){return Wt.call(t,e)})))}:iu,eo=tn?function(t){for(var e=[];t;)pe(e,to(t)),t=qt(t);return e}:iu,no=dr;function ro(t,e,n){for(var r=-1,i=(e=si(e,t)).length,o=!1;++r<i;){var a=Co(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&za(i)&&ao(a,i)&&(Ia(t)||Pa(t))}function io(t){return"function"!=typeof t.constructor||fo(t)?{}:Nn(qt(t))}function oo(t){return Ia(t)||Pa(t)||!!(Zt&&t&&t[Zt])}function ao(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ut.test(t))&&t>-1&&t%1==0&&t<e}function so(t,e,n){if(!Ya(n))return!1;var r=typeof e;return!!("number"==r?Ma(n)&&ao(e,n.length):"string"==r&&e in n)&&Na(n[e],t)}function uo(t,e){if(Ia(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Za(t))||(V.test(t)||!Y.test(t)||null!=e&&t in gt(e))}function co(t){var e=Wi(t),n=An[e];if("function"!=typeof n||!(e in Pn.prototype))return!1;if(t===n)return!0;var r=Xi(n);return!!r&&t===r[0]}(hn&&no(new hn(new ArrayBuffer(1)))!=k||dn&&no(new dn)!=g||pn&&"[object Promise]"!=no(pn.resolve())||gn&&no(new gn)!=w||vn&&no(new vn)!=_)&&(no=function(t){var e=dr(t),n=e==b?t.constructor:void 0,r=n?To(n):"";if(r)switch(r){case mn:return k;case xn:return g;case _n:return"[object Promise]";case En:return w;case kn:return _}return e});var lo=_t?Ha:ou;function fo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||xt)}function ho(t){return t==t&&!Ya(t)}function po(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in gt(n)))}}function go(t,e,n){return e=an(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=an(i.length-e,0),s=r(a);++o<a;)s[o]=i[e+o];o=-1;for(var u=r(e+1);++o<e;)u[o]=i[o];return u[e]=n(s),oe(t,this,u)}}function vo(t,e){return e.length<2?t:fr(t,qr(e,0,-1))}function bo(t,e){for(var n=t.length,r=sn(e.length,n),i=bi(t);r--;){var o=e[r];t[r]=ao(o,n)?i[o]:void 0}return t}function yo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var wo=Eo(zr),mo=Ze||function(t,e){return Xt.setTimeout(t,e)},xo=Eo(Yr);function _o(t,e,n){var r=e+"";return xo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Z,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return se(s,(function(n){var r="_."+n[0];e&n[1]&&!fe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Q);return e?e[1].split(J):[]}(r),n)))}function Eo(t){var e=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function ko(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=Dr(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var So=function(t){var e=Ea(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(q,(function(t,n,r,i){e.push(r?i.replace(et,"$1"):n||t)})),e}));function Co(t){if("string"==typeof t||Za(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function To(t){if(null!=t){try{return Et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ao(t){if(t instanceof Pn)return t.clone();var e=new Ln(t.__wrapped__,t.__chain__);return e.__actions__=bi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var No=Br((function(t,e){return Da(t)?Jn(t,or(e,1,Da,!0)):[]})),Oo=Br((function(t,e){var n=Go(e);return Da(n)&&(n=void 0),Da(t)?Jn(t,or(e,1,Da,!0),Ki(n,2)):[]})),Lo=Br((function(t,e){var n=Go(e);return Da(n)&&(n=void 0),Da(t)?Jn(t,or(e,1,Da,!0),void 0,n):[]}));function Po(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),me(t,Ki(e,3),i)}function Io(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),me(t,Ki(e,3),i,!0)}function jo(t){return(null==t?0:t.length)?or(t,1):[]}function Mo(t){return t&&t.length?t[0]:void 0}var Do=Br((function(t){var e=de(t,oi);return e.length&&e[0]===t[0]?br(e):[]})),Ro=Br((function(t){var e=Go(t),n=de(t,oi);return e===Go(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?br(n,Ki(e,2)):[]})),Bo=Br((function(t){var e=Go(t),n=de(t,oi);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?br(n,void 0,e):[]}));function Go(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Ho=Br(Fo);function Fo(t,e){return t&&t.length&&e&&e.length?jr(t,e):t}var zo=Vi((function(t,e){var n=null==t?0:t.length,r=Wn(t,e);return Mr(t,de(e,(function(t){return ao(t,n)?+t:t})).sort(pi)),r}));function Yo(t){return null==t?t:fn.call(t)}var Vo=Br((function(t){return Qr(or(t,1,Da,!0))})),qo=Br((function(t){var e=Go(t);return Da(e)&&(e=void 0),Qr(or(t,1,Da,!0),Ki(e,2))})),Uo=Br((function(t){var e=Go(t);return e="function"==typeof e?e:void 0,Qr(or(t,1,Da,!0),void 0,e)}));function Xo(t){if(!t||!t.length)return[];var e=0;return t=le(t,(function(t){if(Da(t))return e=an(t.length,e),!0})),Ne(e,(function(e){return de(t,Se(e))}))}function Wo(t,e){if(!t||!t.length)return[];var n=Xo(t);return null==e?n:de(n,(function(t){return oe(e,void 0,t)}))}var $o=Br((function(t,e){return Da(t)?Jn(t,e):[]})),Ko=Br((function(t){return ri(le(t,Da))})),Zo=Br((function(t){var e=Go(t);return Da(e)&&(e=void 0),ri(le(t,Da),Ki(e,2))})),Qo=Br((function(t){var e=Go(t);return e="function"==typeof e?e:void 0,ri(le(t,Da),void 0,e)})),Jo=Br(Xo);var ta=Br((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Wo(t,n)}));function ea(t){var e=An(t);return e.__chain__=!0,e}function na(t,e){return e(t)}var ra=Vi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Wn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Pn&&ao(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Ln(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var ia=wi((function(t,e,n){kt.call(t,n)?++t[n]:Xn(t,n,1)}));var oa=Ci(Po),aa=Ci(Io);function sa(t,e){return(Ia(t)?se:tr)(t,Ki(e,3))}function ua(t,e){return(Ia(t)?ue:er)(t,Ki(e,3))}var ca=wi((function(t,e,n){kt.call(t,n)?t[n].push(e):Xn(t,n,[e])}));var la=Br((function(t,e,n){var i=-1,o="function"==typeof e,a=Ma(t)?r(t.length):[];return tr(t,(function(t){a[++i]=o?oe(e,t,n):yr(t,e,n)})),a})),fa=wi((function(t,e,n){Xn(t,n,e)}));function ha(t,e){return(Ia(t)?de:Tr)(t,Ki(e,3))}var da=wi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var pa=Br((function(t,e){if(null==t)return[];var n=e.length;return n>1&&so(t,e[0],e[1])?e=[]:n>2&&so(e[0],e[1],e[2])&&(e=[e[0]]),Pr(t,or(e,1),[])})),ga=Ke||function(){return Xt.Date.now()};function va(t,e,n){return e=n?void 0:e,Gi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ba(t,e){var n;if("function"!=typeof e)throw new yt(o);return t=rs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ya=Br((function(t,e,n){var r=1;if(n.length){var i=ze(n,$i(ya));r|=32}return Gi(t,r,e,n,i)})),wa=Br((function(t,e,n){var r=3;if(n.length){var i=ze(n,$i(wa));r|=32}return Gi(e,r,t,n,i)}));function ma(t,e,n){var r,i,a,s,u,c,l=0,f=!1,h=!1,d=!0;if("function"!=typeof t)throw new yt(o);function p(e){var n=r,o=i;return r=i=void 0,l=e,s=t.apply(o,n)}function g(t){return l=t,u=mo(b,e),f?p(t):s}function v(t){var n=t-c;return void 0===c||n>=e||n<0||h&&t-l>=a}function b(){var t=ga();if(v(t))return y(t);u=mo(b,function(t){var n=e-(t-c);return h?sn(n,a-(t-l)):n}(t))}function y(t){return u=void 0,d&&r?p(t):(r=i=void 0,s)}function w(){var t=ga(),n=v(t);if(r=arguments,i=this,c=t,n){if(void 0===u)return g(c);if(h)return li(u),u=mo(b,e),p(c)}return void 0===u&&(u=mo(b,e)),s}return e=os(e)||0,Ya(n)&&(f=!!n.leading,a=(h="maxWait"in n)?an(os(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),w.cancel=function(){void 0!==u&&li(u),l=0,r=c=i=u=void 0},w.flush=function(){return void 0===u?s:y(ga())},w}var xa=Br((function(t,e){return Qn(t,1,e)})),_a=Br((function(t,e,n){return Qn(t,os(e)||0,n)}));function Ea(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ea.Cache||Mn),n}function ka(t){if("function"!=typeof t)throw new yt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ea.Cache=Mn;var Sa=ui((function(t,e){var n=(e=1==e.length&&Ia(e[0])?de(e[0],Oe(Ki())):de(or(e,1),Oe(Ki()))).length;return Br((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return oe(t,this,r)}))})),Ca=Br((function(t,e){return Gi(t,32,void 0,e,ze(e,$i(Ca)))})),Ta=Br((function(t,e){return Gi(t,64,void 0,e,ze(e,$i(Ta)))})),Aa=Vi((function(t,e){return Gi(t,256,void 0,void 0,void 0,e)}));function Na(t,e){return t===e||t!=t&&e!=e}var Oa=ji(pr),La=ji((function(t,e){return t>=e})),Pa=wr(function(){return arguments}())?wr:function(t){return Va(t)&&kt.call(t,"callee")&&!Wt.call(t,"callee")},Ia=r.isArray,ja=Jt?Oe(Jt):function(t){return Va(t)&&dr(t)==E};function Ma(t){return null!=t&&za(t.length)&&!Ha(t)}function Da(t){return Va(t)&&Ma(t)}var Ra=en||ou,Ba=te?Oe(te):function(t){return Va(t)&&dr(t)==f};function Ga(t){if(!Va(t))return!1;var e=dr(t);return e==h||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Xa(t)}function Ha(t){if(!Ya(t))return!1;var e=dr(t);return e==d||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Fa(t){return"number"==typeof t&&t==rs(t)}function za(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Ya(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Va(t){return null!=t&&"object"==typeof t}var qa=ee?Oe(ee):function(t){return Va(t)&&no(t)==g};function Ua(t){return"number"==typeof t||Va(t)&&dr(t)==v}function Xa(t){if(!Va(t)||dr(t)!=b)return!1;var e=qt(t);if(null===e)return!0;var n=kt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Et.call(n)==At}var Wa=ne?Oe(ne):function(t){return Va(t)&&dr(t)==y};var $a=re?Oe(re):function(t){return Va(t)&&no(t)==w};function Ka(t){return"string"==typeof t||!Ia(t)&&Va(t)&&dr(t)==m}function Za(t){return"symbol"==typeof t||Va(t)&&dr(t)==x}var Qa=ie?Oe(ie):function(t){return Va(t)&&za(t.length)&&!!Ht[dr(t)]};var Ja=ji(Cr),ts=ji((function(t,e){return t<=e}));function es(t){if(!t)return[];if(Ma(t))return Ka(t)?Ue(t):bi(t);if(Qt&&t[Qt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Qt]());var e=no(t);return(e==g?He:e==w?Ye:Ns)(t)}function ns(t){return t?(t=os(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function rs(t){var e=ns(t),n=e%1;return e==e?n?e-n:e:0}function is(t){return t?$n(rs(t),0,4294967295):0}function os(t){if("number"==typeof t)return t;if(Za(t))return NaN;if(Ya(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ya(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(W,"");var n=ot.test(t);return n||st.test(t)?Vt(t.slice(2),n?2:8):it.test(t)?NaN:+t}function as(t){return yi(t,xs(t))}function ss(t){return null==t?"":Zr(t)}var us=mi((function(t,e){if(fo(e)||Ma(e))yi(e,ms(e),t);else for(var n in e)kt.call(e,n)&&Yn(t,n,e[n])})),cs=mi((function(t,e){yi(e,xs(e),t)})),ls=mi((function(t,e,n,r){yi(e,xs(e),t,r)})),fs=mi((function(t,e,n,r){yi(e,ms(e),t,r)})),hs=Vi(Wn);var ds=Br((function(t,e){t=gt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&so(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=xs(o),s=-1,u=a.length;++s<u;){var c=a[s],l=t[c];(void 0===l||Na(l,xt[c])&&!kt.call(t,c))&&(t[c]=o[c])}return t})),ps=Br((function(t){return t.push(void 0,Fi),oe(Es,void 0,t)}));function gs(t,e,n){var r=null==t?void 0:fr(t,e);return void 0===r?n:r}function vs(t,e){return null!=t&&ro(t,e,vr)}var bs=Ni((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Tt.call(e)),t[e]=n}),Ys(Us)),ys=Ni((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Tt.call(e)),kt.call(t,e)?t[e].push(n):t[e]=[n]}),Ki),ws=Br(yr);function ms(t){return Ma(t)?Bn(t):kr(t)}function xs(t){return Ma(t)?Bn(t,!0):Sr(t)}var _s=mi((function(t,e,n){Or(t,e,n)})),Es=mi((function(t,e,n,r){Or(t,e,n,r)})),ks=Vi((function(t,e){var n={};if(null==t)return n;var r=!1;e=de(e,(function(e){return e=si(e,t),r||(r=e.length>1),e})),yi(t,Ui(t),n),r&&(n=Kn(n,7,zi));for(var i=e.length;i--;)Jr(n,e[i]);return n}));var Ss=Vi((function(t,e){return null==t?{}:function(t,e){return Ir(t,e,(function(e,n){return vs(t,n)}))}(t,e)}));function Cs(t,e){if(null==t)return{};var n=de(Ui(t),(function(t){return[t]}));return e=Ki(e),Ir(t,n,(function(t,n){return e(t,n[0])}))}var Ts=Bi(ms),As=Bi(xs);function Ns(t){return null==t?[]:Le(t,ms(t))}var Os=ki((function(t,e,n){return e=e.toLowerCase(),t+(n?Ls(e):e)}));function Ls(t){return Gs(ss(t).toLowerCase())}function Ps(t){return(t=ss(t))&&t.replace(ct,De).replace(It,"")}var Is=ki((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),js=ki((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ms=Ei("toLowerCase");var Ds=ki((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Rs=ki((function(t,e,n){return t+(n?" ":"")+Gs(e)}));var Bs=ki((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Gs=Ei("toUpperCase");function Hs(t,e,n){return t=ss(t),void 0===(e=n?void 0:e)?function(t){return Rt.test(t)}(t)?function(t){return t.match(Mt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(e)||[]}var Fs=Br((function(t,e){try{return oe(t,void 0,e)}catch(t){return Ga(t)?t:new ht(t)}})),zs=Vi((function(t,e){return se(e,(function(e){e=Co(e),Xn(t,e,ya(t[e],t))})),t}));function Ys(t){return function(){return t}}var Vs=Ti(),qs=Ti(!0);function Us(t){return t}function Xs(t){return Er("function"==typeof t?t:Kn(t,1))}var Ws=Br((function(t,e){return function(n){return yr(n,t,e)}})),$s=Br((function(t,e){return function(n){return yr(t,n,e)}}));function Ks(t,e,n){var r=ms(e),i=lr(e,r);null!=n||Ya(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=lr(e,ms(e)));var o=!(Ya(n)&&"chain"in n&&!n.chain),a=Ha(t);return se(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=bi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,pe([this.value()],arguments))})})),t}function Zs(){}var Qs=Li(de),Js=Li(ce),tu=Li(be);function eu(t){return uo(t)?Se(Co(t)):function(t){return function(e){return fr(e,t)}}(t)}var nu=Ii(),ru=Ii(!0);function iu(){return[]}function ou(){return!1}var au=Oi((function(t,e){return t+e}),0),su=Di("ceil"),uu=Oi((function(t,e){return t/e}),1),cu=Di("floor");var lu,fu=Oi((function(t,e){return t*e}),1),hu=Di("round"),du=Oi((function(t,e){return t-e}),0);return An.after=function(t,e){if("function"!=typeof e)throw new yt(o);return t=rs(t),function(){if(--t<1)return e.apply(this,arguments)}},An.ary=va,An.assign=us,An.assignIn=cs,An.assignInWith=ls,An.assignWith=fs,An.at=hs,An.before=ba,An.bind=ya,An.bindAll=zs,An.bindKey=wa,An.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ia(t)?t:[t]},An.chain=ea,An.chunk=function(t,e,n){e=(n?so(t,e,n):void 0===e)?1:an(rs(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=r(Qe(i/e));o<i;)s[a++]=qr(t,o,o+=e);return s},An.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},An.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return pe(Ia(n)?bi(n):[n],or(e,1))},An.cond=function(t){var e=null==t?0:t.length,n=Ki();return t=e?de(t,(function(t){if("function"!=typeof t[1])throw new yt(o);return[n(t[0]),t[1]]})):[],Br((function(n){for(var r=-1;++r<e;){var i=t[r];if(oe(i[0],this,n))return oe(i[1],this,n)}}))},An.conforms=function(t){return function(t){var e=ms(t);return function(n){return Zn(n,t,e)}}(Kn(t,1))},An.constant=Ys,An.countBy=ia,An.create=function(t,e){var n=Nn(t);return null==e?n:Un(n,e)},An.curry=function t(e,n,r){var i=Gi(e,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},An.curryRight=function t(e,n,r){var i=Gi(e,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},An.debounce=ma,An.defaults=ds,An.defaultsDeep=ps,An.defer=xa,An.delay=_a,An.difference=No,An.differenceBy=Oo,An.differenceWith=Lo,An.drop=function(t,e,n){var r=null==t?0:t.length;return r?qr(t,(e=n||void 0===e?1:rs(e))<0?0:e,r):[]},An.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?qr(t,0,(e=r-(e=n||void 0===e?1:rs(e)))<0?0:e):[]},An.dropRightWhile=function(t,e){return t&&t.length?ei(t,Ki(e,3),!0,!0):[]},An.dropWhile=function(t,e){return t&&t.length?ei(t,Ki(e,3),!0):[]},An.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&so(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},An.filter=function(t,e){return(Ia(t)?le:ir)(t,Ki(e,3))},An.flatMap=function(t,e){return or(ha(t,e),1)},An.flatMapDeep=function(t,e){return or(ha(t,e),1/0)},An.flatMapDepth=function(t,e,n){return n=void 0===n?1:rs(n),or(ha(t,e),n)},An.flatten=jo,An.flattenDeep=function(t){return(null==t?0:t.length)?or(t,1/0):[]},An.flattenDepth=function(t,e){return(null==t?0:t.length)?or(t,e=void 0===e?1:rs(e)):[]},An.flip=function(t){return Gi(t,512)},An.flow=Vs,An.flowRight=qs,An.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},An.functions=function(t){return null==t?[]:lr(t,ms(t))},An.functionsIn=function(t){return null==t?[]:lr(t,xs(t))},An.groupBy=ca,An.initial=function(t){return(null==t?0:t.length)?qr(t,0,-1):[]},An.intersection=Do,An.intersectionBy=Ro,An.intersectionWith=Bo,An.invert=bs,An.invertBy=ys,An.invokeMap=la,An.iteratee=Xs,An.keyBy=fa,An.keys=ms,An.keysIn=xs,An.map=ha,An.mapKeys=function(t,e){var n={};return e=Ki(e,3),ur(t,(function(t,r,i){Xn(n,e(t,r,i),t)})),n},An.mapValues=function(t,e){var n={};return e=Ki(e,3),ur(t,(function(t,r,i){Xn(n,r,e(t,r,i))})),n},An.matches=function(t){return Ar(Kn(t,1))},An.matchesProperty=function(t,e){return Nr(t,Kn(e,1))},An.memoize=Ea,An.merge=_s,An.mergeWith=Es,An.method=Ws,An.methodOf=$s,An.mixin=Ks,An.negate=ka,An.nthArg=function(t){return t=rs(t),Br((function(e){return Lr(e,t)}))},An.omit=ks,An.omitBy=function(t,e){return Cs(t,ka(Ki(e)))},An.once=function(t){return ba(2,t)},An.orderBy=function(t,e,n,r){return null==t?[]:(Ia(e)||(e=null==e?[]:[e]),Ia(n=r?void 0:n)||(n=null==n?[]:[n]),Pr(t,e,n))},An.over=Qs,An.overArgs=Sa,An.overEvery=Js,An.overSome=tu,An.partial=Ca,An.partialRight=Ta,An.partition=da,An.pick=Ss,An.pickBy=Cs,An.property=eu,An.propertyOf=function(t){return function(e){return null==t?void 0:fr(t,e)}},An.pull=Ho,An.pullAll=Fo,An.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?jr(t,e,Ki(n,2)):t},An.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?jr(t,e,void 0,n):t},An.pullAt=zo,An.range=nu,An.rangeRight=ru,An.rearg=Aa,An.reject=function(t,e){return(Ia(t)?le:ir)(t,ka(Ki(e,3)))},An.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Ki(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Mr(t,i),n},An.rest=function(t,e){if("function"!=typeof t)throw new yt(o);return Br(t,e=void 0===e?e:rs(e))},An.reverse=Yo,An.sampleSize=function(t,e,n){return e=(n?so(t,e,n):void 0===e)?1:rs(e),(Ia(t)?Hn:Hr)(t,e)},An.set=function(t,e,n){return null==t?t:Fr(t,e,n)},An.setWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Fr(t,e,n,r)},An.shuffle=function(t){return(Ia(t)?Fn:Vr)(t)},An.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&so(t,e,n)?(e=0,n=r):(e=null==e?0:rs(e),n=void 0===n?r:rs(n)),qr(t,e,n)):[]},An.sortBy=pa,An.sortedUniq=function(t){return t&&t.length?$r(t):[]},An.sortedUniqBy=function(t,e){return t&&t.length?$r(t,Ki(e,2)):[]},An.split=function(t,e,n){return n&&"number"!=typeof n&&so(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=ss(t))&&("string"==typeof e||null!=e&&!Wa(e))&&!(e=Zr(e))&&Ge(t)?ci(Ue(t),0,n):t.split(e,n):[]},An.spread=function(t,e){if("function"!=typeof t)throw new yt(o);return e=null==e?0:an(rs(e),0),Br((function(n){var r=n[e],i=ci(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},An.tail=function(t){var e=null==t?0:t.length;return e?qr(t,1,e):[]},An.take=function(t,e,n){return t&&t.length?qr(t,0,(e=n||void 0===e?1:rs(e))<0?0:e):[]},An.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?qr(t,(e=r-(e=n||void 0===e?1:rs(e)))<0?0:e,r):[]},An.takeRightWhile=function(t,e){return t&&t.length?ei(t,Ki(e,3),!1,!0):[]},An.takeWhile=function(t,e){return t&&t.length?ei(t,Ki(e,3)):[]},An.tap=function(t,e){return e(t),t},An.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new yt(o);return Ya(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ma(t,e,{leading:r,maxWait:e,trailing:i})},An.thru=na,An.toArray=es,An.toPairs=Ts,An.toPairsIn=As,An.toPath=function(t){return Ia(t)?de(t,Co):Za(t)?[t]:bi(So(ss(t)))},An.toPlainObject=as,An.transform=function(t,e,n){var r=Ia(t),i=r||Ra(t)||Qa(t);if(e=Ki(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Ya(t)&&Ha(o)?Nn(qt(t)):{}}return(i?se:ur)(t,(function(t,r,i){return e(n,t,r,i)})),n},An.unary=function(t){return va(t,1)},An.union=Vo,An.unionBy=qo,An.unionWith=Uo,An.uniq=function(t){return t&&t.length?Qr(t):[]},An.uniqBy=function(t,e){return t&&t.length?Qr(t,Ki(e,2)):[]},An.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qr(t,void 0,e):[]},An.unset=function(t,e){return null==t||Jr(t,e)},An.unzip=Xo,An.unzipWith=Wo,An.update=function(t,e,n){return null==t?t:ti(t,e,ai(n))},An.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ti(t,e,ai(n),r)},An.values=Ns,An.valuesIn=function(t){return null==t?[]:Le(t,xs(t))},An.without=$o,An.words=Hs,An.wrap=function(t,e){return Ca(ai(e),t)},An.xor=Ko,An.xorBy=Zo,An.xorWith=Qo,An.zip=Jo,An.zipObject=function(t,e){return ii(t||[],e||[],Yn)},An.zipObjectDeep=function(t,e){return ii(t||[],e||[],Fr)},An.zipWith=ta,An.entries=Ts,An.entriesIn=As,An.extend=cs,An.extendWith=ls,Ks(An,An),An.add=au,An.attempt=Fs,An.camelCase=Os,An.capitalize=Ls,An.ceil=su,An.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==e&&(e=(e=os(e))==e?e:0),$n(os(t),e,n)},An.clone=function(t){return Kn(t,4)},An.cloneDeep=function(t){return Kn(t,5)},An.cloneDeepWith=function(t,e){return Kn(t,5,e="function"==typeof e?e:void 0)},An.cloneWith=function(t,e){return Kn(t,4,e="function"==typeof e?e:void 0)},An.conformsTo=function(t,e){return null==e||Zn(t,e,ms(e))},An.deburr=Ps,An.defaultTo=function(t,e){return null==t||t!=t?e:t},An.divide=uu,An.endsWith=function(t,e,n){t=ss(t),e=Zr(e);var r=t.length,i=n=void 0===n?r:$n(rs(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},An.eq=Na,An.escape=function(t){return(t=ss(t))&&G.test(t)?t.replace(R,Re):t},An.escapeRegExp=function(t){return(t=ss(t))&&X.test(t)?t.replace(U,"\\$&"):t},An.every=function(t,e,n){var r=Ia(t)?ce:nr;return n&&so(t,e,n)&&(e=void 0),r(t,Ki(e,3))},An.find=oa,An.findIndex=Po,An.findKey=function(t,e){return we(t,Ki(e,3),ur)},An.findLast=aa,An.findLastIndex=Io,An.findLastKey=function(t,e){return we(t,Ki(e,3),cr)},An.floor=cu,An.forEach=sa,An.forEachRight=ua,An.forIn=function(t,e){return null==t?t:ar(t,Ki(e,3),xs)},An.forInRight=function(t,e){return null==t?t:sr(t,Ki(e,3),xs)},An.forOwn=function(t,e){return t&&ur(t,Ki(e,3))},An.forOwnRight=function(t,e){return t&&cr(t,Ki(e,3))},An.get=gs,An.gt=Oa,An.gte=La,An.has=function(t,e){return null!=t&&ro(t,e,gr)},An.hasIn=vs,An.head=Mo,An.identity=Us,An.includes=function(t,e,n,r){t=Ma(t)?t:Ns(t),n=n&&!r?rs(n):0;var i=t.length;return n<0&&(n=an(i+n,0)),Ka(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&xe(t,e,n)>-1},An.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),xe(t,e,i)},An.inRange=function(t,e,n){return e=ns(e),void 0===n?(n=e,e=0):n=ns(n),function(t,e,n){return t>=sn(e,n)&&t<an(e,n)}(t=os(t),e,n)},An.invoke=ws,An.isArguments=Pa,An.isArray=Ia,An.isArrayBuffer=ja,An.isArrayLike=Ma,An.isArrayLikeObject=Da,An.isBoolean=function(t){return!0===t||!1===t||Va(t)&&dr(t)==l},An.isBuffer=Ra,An.isDate=Ba,An.isElement=function(t){return Va(t)&&1===t.nodeType&&!Xa(t)},An.isEmpty=function(t){if(null==t)return!0;if(Ma(t)&&(Ia(t)||"string"==typeof t||"function"==typeof t.splice||Ra(t)||Qa(t)||Pa(t)))return!t.length;var e=no(t);if(e==g||e==w)return!t.size;if(fo(t))return!kr(t).length;for(var n in t)if(kt.call(t,n))return!1;return!0},An.isEqual=function(t,e){return mr(t,e)},An.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?mr(t,e,void 0,n):!!r},An.isError=Ga,An.isFinite=function(t){return"number"==typeof t&&nn(t)},An.isFunction=Ha,An.isInteger=Fa,An.isLength=za,An.isMap=qa,An.isMatch=function(t,e){return t===e||xr(t,e,Qi(e))},An.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,xr(t,e,Qi(e),n)},An.isNaN=function(t){return Ua(t)&&t!=+t},An.isNative=function(t){if(lo(t))throw new ht("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _r(t)},An.isNil=function(t){return null==t},An.isNull=function(t){return null===t},An.isNumber=Ua,An.isObject=Ya,An.isObjectLike=Va,An.isPlainObject=Xa,An.isRegExp=Wa,An.isSafeInteger=function(t){return Fa(t)&&t>=-9007199254740991&&t<=9007199254740991},An.isSet=$a,An.isString=Ka,An.isSymbol=Za,An.isTypedArray=Qa,An.isUndefined=function(t){return void 0===t},An.isWeakMap=function(t){return Va(t)&&no(t)==_},An.isWeakSet=function(t){return Va(t)&&"[object WeakSet]"==dr(t)},An.join=function(t,e){return null==t?"":rn.call(t,e)},An.kebabCase=Is,An.last=Go,An.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):me(t,Ee,i,!0)},An.lowerCase=js,An.lowerFirst=Ms,An.lt=Ja,An.lte=ts,An.max=function(t){return t&&t.length?rr(t,Us,pr):void 0},An.maxBy=function(t,e){return t&&t.length?rr(t,Ki(e,2),pr):void 0},An.mean=function(t){return ke(t,Us)},An.meanBy=function(t,e){return ke(t,Ki(e,2))},An.min=function(t){return t&&t.length?rr(t,Us,Cr):void 0},An.minBy=function(t,e){return t&&t.length?rr(t,Ki(e,2),Cr):void 0},An.stubArray=iu,An.stubFalse=ou,An.stubObject=function(){return{}},An.stubString=function(){return""},An.stubTrue=function(){return!0},An.multiply=fu,An.nth=function(t,e){return t&&t.length?Lr(t,rs(e)):void 0},An.noConflict=function(){return Xt._===this&&(Xt._=Nt),this},An.noop=Zs,An.now=ga,An.pad=function(t,e,n){t=ss(t);var r=(e=rs(e))?qe(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Pi(Je(i),n)+t+Pi(Qe(i),n)},An.padEnd=function(t,e,n){t=ss(t);var r=(e=rs(e))?qe(t):0;return e&&r<e?t+Pi(e-r,n):t},An.padStart=function(t,e,n){t=ss(t);var r=(e=rs(e))?qe(t):0;return e&&r<e?Pi(e-r,n)+t:t},An.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),cn(ss(t).replace($,""),e||0)},An.random=function(t,e,n){if(n&&"boolean"!=typeof n&&so(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=ns(t),void 0===e?(e=t,t=0):e=ns(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=ln();return sn(t+i*(e-t+Yt("1e-"+((i+"").length-1))),e)}return Dr(t,e)},An.reduce=function(t,e,n){var r=Ia(t)?ge:Te,i=arguments.length<3;return r(t,Ki(e,4),n,i,tr)},An.reduceRight=function(t,e,n){var r=Ia(t)?ve:Te,i=arguments.length<3;return r(t,Ki(e,4),n,i,er)},An.repeat=function(t,e,n){return e=(n?so(t,e,n):void 0===e)?1:rs(e),Rr(ss(t),e)},An.replace=function(){var t=arguments,e=ss(t[0]);return t.length<3?e:e.replace(t[1],t[2])},An.result=function(t,e,n){var r=-1,i=(e=si(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[Co(e[r])];void 0===o&&(r=i,o=n),t=Ha(o)?o.call(t):o}return t},An.round=hu,An.runInContext=t,An.sample=function(t){return(Ia(t)?Gn:Gr)(t)},An.size=function(t){if(null==t)return 0;if(Ma(t))return Ka(t)?qe(t):t.length;var e=no(t);return e==g||e==w?t.size:kr(t).length},An.snakeCase=Ds,An.some=function(t,e,n){var r=Ia(t)?be:Ur;return n&&so(t,e,n)&&(e=void 0),r(t,Ki(e,3))},An.sortedIndex=function(t,e){return Xr(t,e)},An.sortedIndexBy=function(t,e,n){return Wr(t,e,Ki(n,2))},An.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Xr(t,e);if(r<n&&Na(t[r],e))return r}return-1},An.sortedLastIndex=function(t,e){return Xr(t,e,!0)},An.sortedLastIndexBy=function(t,e,n){return Wr(t,e,Ki(n,2),!0)},An.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=Xr(t,e,!0)-1;if(Na(t[n],e))return n}return-1},An.startCase=Rs,An.startsWith=function(t,e,n){return t=ss(t),n=null==n?0:$n(rs(n),0,t.length),e=Zr(e),t.slice(n,n+e.length)==e},An.subtract=du,An.sum=function(t){return t&&t.length?Ae(t,Us):0},An.sumBy=function(t,e){return t&&t.length?Ae(t,Ki(e,2)):0},An.template=function(t,e,n){var r=An.templateSettings;n&&so(t,e,n)&&(e=void 0),t=ss(t),e=ls({},e,r,Hi);var i,o,a=ls({},e.imports,r.imports,Hi),s=ms(a),u=Le(a,s),c=0,l=e.interpolate||lt,f="__p += '",h=vt((e.escape||lt).source+"|"+l.source+"|"+(l===z?nt:lt).source+"|"+(e.evaluate||lt).source+"|$","g"),d="//# sourceURL="+(kt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gt+"]")+"\n";t.replace(h,(function(e,n,r,a,s,u){return r||(r=a),f+=t.slice(c,u).replace(ft,Be),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e})),f+="';\n";var p=kt.call(e,"variable")&&e.variable;p||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(I,""):f).replace(j,"$1").replace(M,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Fs((function(){return dt(s,d+"return "+f).apply(void 0,u)}));if(g.source=f,Ga(g))throw g;return g},An.times=function(t,e){if((t=rs(t))<1||t>9007199254740991)return[];var n=4294967295,r=sn(t,4294967295);t-=4294967295;for(var i=Ne(r,e=Ki(e));++n<t;)e(n);return i},An.toFinite=ns,An.toInteger=rs,An.toLength=is,An.toLower=function(t){return ss(t).toLowerCase()},An.toNumber=os,An.toSafeInteger=function(t){return t?$n(rs(t),-9007199254740991,9007199254740991):0===t?t:0},An.toString=ss,An.toUpper=function(t){return ss(t).toUpperCase()},An.trim=function(t,e,n){if((t=ss(t))&&(n||void 0===e))return t.replace(W,"");if(!t||!(e=Zr(e)))return t;var r=Ue(t),i=Ue(e);return ci(r,Ie(r,i),je(r,i)+1).join("")},An.trimEnd=function(t,e,n){if((t=ss(t))&&(n||void 0===e))return t.replace(K,"");if(!t||!(e=Zr(e)))return t;var r=Ue(t);return ci(r,0,je(r,Ue(e))+1).join("")},An.trimStart=function(t,e,n){if((t=ss(t))&&(n||void 0===e))return t.replace($,"");if(!t||!(e=Zr(e)))return t;var r=Ue(t);return ci(r,Ie(r,Ue(e))).join("")},An.truncate=function(t,e){var n=30,r="...";if(Ya(e)){var i="separator"in e?e.separator:i;n="length"in e?rs(e.length):n,r="omission"in e?Zr(e.omission):r}var o=(t=ss(t)).length;if(Ge(t)){var a=Ue(t);o=a.length}if(n>=o)return t;var s=n-qe(r);if(s<1)return r;var u=a?ci(a,0,s).join(""):t.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Wa(i)){if(t.slice(s).search(i)){var c,l=u;for(i.global||(i=vt(i.source,ss(rt.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;u=u.slice(0,void 0===f?s:f)}}else if(t.indexOf(Zr(i),s)!=s){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},An.unescape=function(t){return(t=ss(t))&&B.test(t)?t.replace(D,Xe):t},An.uniqueId=function(t){var e=++St;return ss(t)+e},An.upperCase=Bs,An.upperFirst=Gs,An.each=sa,An.eachRight=ua,An.first=Mo,Ks(An,(lu={},ur(An,(function(t,e){kt.call(An.prototype,e)||(lu[e]=t)})),lu),{chain:!1}),An.VERSION="4.17.19",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){An[t].placeholder=An})),se(["drop","take"],(function(t,e){Pn.prototype[t]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!e?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Pn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Pn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ki(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Pn.prototype[t]=function(){return this[n](1).value()[0]}})),se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Pn.prototype[t]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter(Us)},Pn.prototype.find=function(t){return this.filter(t).head()},Pn.prototype.findLast=function(t){return this.reverse().find(t)},Pn.prototype.invokeMap=Br((function(t,e){return"function"==typeof t?new Pn(this):this.map((function(n){return yr(n,t,e)}))})),Pn.prototype.reject=function(t){return this.filter(ka(Ki(t)))},Pn.prototype.slice=function(t,e){t=rs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Pn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=rs(e))<0?n.dropRight(-e):n.take(e-t)),n)},Pn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},ur(Pn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=An[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(An.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Pn,u=a[0],c=s||Ia(e),l=function(t){var e=i.apply(An,pe([t],a));return r&&f?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,h=!!this.__actions__.length,d=o&&!f,p=s&&!h;if(!o&&c){e=p?e:new Pn(this);var g=t.apply(e,a);return g.__actions__.push({func:na,args:[l],thisArg:void 0}),new Ln(g,f)}return d&&p?t.apply(this,a):(g=this.thru(l),d?r?g.value()[0]:g.value():g)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=wt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);An.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ia(i)?i:[],t)}return this[n]((function(n){return e.apply(Ia(n)?n:[],t)}))}})),ur(Pn.prototype,(function(t,e){var n=An[e];if(n){var r=n.name+"";kt.call(wn,r)||(wn[r]=[]),wn[r].push({name:e,func:n})}})),wn[Ai(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var t=new Pn(this.__wrapped__);return t.__actions__=bi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=bi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=bi(this.__views__),t},Pn.prototype.reverse=function(){if(this.__filtered__){var t=new Pn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Pn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ia(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=sn(e,t+a);break;case"takeRight":t=an(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,h=0,d=sn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ni(t,this.__actions__);var p=[];t:for(;u--&&h<d;){for(var g=-1,v=t[c+=e];++g<f;){var b=l[g],y=b.iteratee,w=b.type,m=y(v);if(2==w)v=m;else if(!m){if(1==w)continue t;break t}}p[h++]=v}return p},An.prototype.at=ra,An.prototype.chain=function(){return ea(this)},An.prototype.commit=function(){return new Ln(this.value(),this.__chain__)},An.prototype.next=function(){void 0===this.__values__&&(this.__values__=es(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},An.prototype.plant=function(t){for(var e,n=this;n instanceof On;){var r=Ao(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},An.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Pn){var e=t;return this.__actions__.length&&(e=new Pn(this)),(e=e.reverse()).__actions__.push({func:na,args:[Yo],thisArg:void 0}),new Ln(e,this.__chain__)}return this.thru(Yo)},An.prototype.toJSON=An.prototype.valueOf=An.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},An.prototype.first=An.prototype.head,Qt&&(An.prototype[Qt]=function(){return this}),An}();Xt._=We,void 0===(i=function(){return We}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(20),n(28)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldResize=!1,this.cy=e,this.curr={},this.prev={},this.marginPercentage={},this.containedZoomMargin=.05,this.toggle=this.toggle.bind(this),this.getViewport=this.getViewport.bind(this),this.updateViewport=this.updateViewport.bind(this),this._xConstrainedZoom=this._xConstrainedZoom.bind(this),this._xChangeMargin=this._xChangeMargin.bind(this),this._yConstrainedZoom=this._yConstrainedZoom.bind(this),this._yChangeMargin=this._yChangeMargin.bind(this),this.resize=this.resize.bind(this)}return r(t,[{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.shouldResize,e=this.cy;t!==this.shouldResize&&(t?(e.on("render",this.updateViewport),e.on("resize",this.resize),this.updateViewport(e)):(e.removeListener("render",this.updateViewport),e.removeListener("resize",this.resize)),this.shouldResize=t)}},{key:"getViewport",value:function(){var t=this.cy;return{position:t.pan(),zoom:t.zoom(),renderedBB:Object.assign({},t.elements().renderedBoundingBox()),height:t.height(),width:t.width()}}},{key:"updateViewport",value:function(){var t=this.cy;this.prev=this.getViewport(t)}},{key:"_xConstrainedZoom",value:function(t){var e=this.curr,n=this.prev,r=this.marginPercentage.left*e.width;e.position.x=r+(n.position.x-n.renderedBB.x1);var i=e.renderedBB.y1+e.renderedBB.h/2-e.renderedBB.h/n.zoom*t/2;i+=(e.height-n.height)/2,e.position.y=i+(n.position.y-n.renderedBB.y1)}},{key:"_xChangeMargin",value:function(t){var e=this.curr,n=this.prev,r=n.renderedBB.x1+n.renderedBB.w/2,i=r/n.width*t;e.position.x=e.position.x+(i-r)}},{key:"_yConstrainedZoom",value:function(t){var e=this.curr,n=this.prev,r=this.marginPercentage.top*e.height;e.position.y=r+(n.position.y-n.renderedBB.y1);var i=e.renderedBB.x1+e.renderedBB.w/2-e.renderedBB.w/n.zoom*t/2;i+=(e.width-n.width)/2,e.position.x=i+(n.position.x-n.renderedBB.x1)}},{key:"_yChangeMargin",value:function(){var t=this.curr,e=this.prev,n=e.renderedBB.y1+e.renderedBB.h/2,r=n/e.height*t.height;t.position.y=t.position.y+(r-n)}},{key:"resize",value:function(){var t=this.cy;this.curr=this.getViewport(t);var e=this.curr,n=this.prev,r=n.renderedBB.x1>=0&&n.renderedBB.y1>=0&&n.renderedBB.x2<=n.width&&n.renderedBB.y2<=n.height;if(this.marginPercentage={left:n.renderedBB.x1/n.width,top:n.renderedBB.y1/n.height},Math.abs(1-e.width/n.width)>Math.abs(1-e.height/n.height)){var i=n.zoom/n.width*e.width;if(r)for(var o=Math.min((e.renderedBB.y1+e.renderedBB.h/2)*n.zoom*2/e.renderedBB.h,-(e.renderedBB.y1+e.renderedBB.h/2-n.height)*n.zoom*2/e.renderedBB.h)-this.containedZoomMargin,a=n.width/n.zoom*o,s=e.zoom<o?-1:1,u=i<o?-1:1;Math.abs(s)<=1;){if(-1===s){var c=1===u?o:i;this._xConstrainedZoom(c),e.zoom=c,1===u&&(this.prev.position=this.curr.position,this.prev.width=a)}else{var l=-1===u?a:e.width;this._xChangeMargin(l),-1===u&&(this.prev.position=this.curr.position,this.prev.width=a)}s+=2*u}else e.zoom=i,this._xConstrainedZoom(e.zoom)}else{var f=n.zoom/n.height*e.height;if(r)for(var h=Math.min((e.renderedBB.x1+e.renderedBB.w/2)*n.zoom*2/e.renderedBB.w,-(e.renderedBB.x1+e.renderedBB.w/2-n.width)*n.zoom*2/e.renderedBB.w)-this.containedZoomMargin,d=n.height/n.zoom*h,p=e.zoom<h?-1:1,g=f<h?-1:1;Math.abs(p)<=1;){if(-1===p){var v=1===g?h:f;this._yConstrainedZoom(v),e.zoom=v,1===g&&(this.prev.position=this.curr.position,this.prev.height=d)}else{var b=-1===g?d:e.height;this._yChangeMargin(b),-1===g&&(this.prev.position=this.curr.position,this.prev.height=d)}p+=2*g}else e.zoom=f,this._yConstrainedZoom(e.zoom)}return t.zoom({level:e.zoom}),t.pan(e.position),this.prev=this.curr,e}}]),t}();e.default=i},function(t,e,n){var r;r=function(t){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 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?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){"use strict";var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,o=n(0).CoSEConstants,a=n(0).CoSELayout,s=n(0).CoSENode,u=n(0).layoutBase.PointD,c=n(0).layoutBase.DimensionD,l={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function f(t){this.options=function(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n}(l,t),h(this.options)}var h=function(t){null!=t.nodeRepulsion&&(o.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion),null!=t.idealEdgeLength&&(o.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=t.idealEdgeLength),null!=t.edgeElasticity&&(o.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=t.edgeElasticity),null!=t.nestingFactor&&(o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(o.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(o.MAX_ITERATIONS=i.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(o.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(o.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),"draft"==t.quality?r.QUALITY=0:"proof"==t.quality?r.QUALITY=2:r.QUALITY=1,o.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,o.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!t.randomize,o.ANIMATE=i.ANIMATE=r.ANIMATE=t.animate,o.TILE=t.tile,o.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,o.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};f.prototype.run=function(){var t,e,n=this.options,r=(this.idToLNode={},this.layout=new a),i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var o=r.newGraphManager();this.gm=o;var s=this.options.eles.nodes(),u=this.options.eles.edges();this.root=o.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var c=0;c<u.length;c++){var l=u[c],f=this.idToLNode[l.data("source")],h=this.idToLNode[l.data("target")];f!==h&&0==f.getEdgesBetween(h).length&&(o.add(r.newEdge(),f,h).id=l.id())}var d=function(t,e){"number"==typeof t&&(t=e);var n=t.data("id"),r=i.idToLNode[n];return{x:r.getRect().getCenterX(),y:r.getRect().getCenterY()}},p=function o(){for(var a,s=function(){n.fit&&n.cy.fit(n.eles,n.padding),t||(t=!0,i.cy.one("layoutready",n.ready),i.cy.trigger({type:"layoutready",layout:i}))},u=i.options.refresh,c=0;c<u&&!a;c++)a=i.stopped||i.layout.tick();if(a)return r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,i.options.eles.nodes().positions(d),s(),i.cy.one("layoutstop",i.options.stop),i.cy.trigger({type:"layoutstop",layout:i}),e&&cancelAnimationFrame(e),void(t=!1);var l=i.layout.getPositionsData();n.eles.nodes().positions((function(t,e){if("number"==typeof t&&(t=e),!t.isParent()){for(var n=t.id(),r=l[n],i=t;null==r&&(r=l[i.data("parent")]||l["DummyCompound_"+i.data("parent")],l[n]=r,null!=(i=i.parent()[0])););return null!=r?{x:r.x,y:r.y}:{x:t.position("x"),y:t.position("y")}}})),s(),e=requestAnimationFrame(o)};return r.addListener("layoutstarted",(function(){"during"===i.options.animate&&(e=requestAnimationFrame(p))})),r.runLayout(),"during"!==this.options.animate&&(i.options.eles.nodes().not(":parent").layoutPositions(i,i.options,d),t=!1),this},f.prototype.getTopMostNodes=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].id()]=!0;return t.filter((function(t,n){"number"==typeof t&&(t=n);for(var r=t.parent()[0];null!=r;){if(e[r.id()])return!1;r=r.parent()[0]}return!0}))},f.prototype.processChildrenList=function(t,e,n){for(var r=e.length,i=0;i<r;i++){var o,a,l=e[i],f=l.children(),h=l.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((o=null!=l.outerWidth()&&null!=l.outerHeight()?t.add(new s(n.graphManager,new u(l.position("x")-h.w/2,l.position("y")-h.h/2),new c(parseFloat(h.w),parseFloat(h.h)))):t.add(new s(this.graphManager))).id=l.data("id"),o.paddingLeft=parseInt(l.css("padding")),o.paddingTop=parseInt(l.css("padding")),o.paddingRight=parseInt(l.css("padding")),o.paddingBottom=parseInt(l.css("padding")),this.options.nodeDimensionsIncludeLabels&&l.isParent()){var d=l.boundingBox({includeLabels:!0,includeNodes:!1}).w,p=l.boundingBox({includeLabels:!0,includeNodes:!1}).h,g=l.css("text-halign");o.labelWidth=d,o.labelHeight=p,o.labelPos=g}this.idToLNode[l.data("id")]=o,isNaN(o.rect.x)&&(o.rect.x=0),isNaN(o.rect.y)&&(o.rect.y=0),null!=f&&f.length>0&&(a=n.getGraphManager().add(n.newGraph(),o),this.processChildrenList(a,f,n))}},f.prototype.stop=function(){return this.stopped=!0,this};var d=function(t){t("layout","cose-bilkent",f)};"undefined"!=typeof cytoscape&&d(cytoscape),t.exports=d}])},t.exports=r(n(145))},function(t,e,n){var r;r=function(t){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 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?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(e,n){e.exports=t},function(t,e,n){"use strict";var r=n(0).FDLayoutConstants;function i(){}for(var o in r)i[o]=r[o];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=i},function(t,e,n){"use strict";var r=n(0).FDLayoutEdge;function i(t,e,n){r.call(this,t,e,n)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];t.exports=i},function(t,e,n){"use strict";var r=n(0).LGraph;function i(t,e,n){r.call(this,t,e,n)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];t.exports=i},function(t,e,n){"use strict";var r=n(0).LGraphManager;function i(t){r.call(this,t)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];t.exports=i},function(t,e,n){"use strict";var r=n(0).FDLayoutNode,i=n(0).IMath;function o(t,e,n,i){r.call(this,t,e,n,i)}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];o.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*i.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(t,e){for(var n,r=this.getChild().getNodes(),i=0;i<r.length;i++)null==(n=r[i]).getChild()?(n.moveBy(t,e),n.displacementX+=t,n.displacementY+=e):n.propogateDisplacementToChildren(t,e)},o.prototype.setPred1=function(t){this.pred1=t},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(t){this.next=t},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(t){this.processed=t},o.prototype.isProcessed=function(){return processed},t.exports=o},function(t,e,n){"use strict";var r=n(0).FDLayout,i=n(4),o=n(3),a=n(5),s=n(2),u=n(1),c=n(0).FDLayoutConstants,l=n(0).LayoutConstants,f=n(0).Point,h=n(0).PointD,d=n(0).Layout,p=n(0).Integer,g=n(0).IGeometry,v=n(0).LGraph,b=n(0).Transform;function y(){r.call(this),this.toBeTiled={}}for(var w in y.prototype=Object.create(r.prototype),r)y[w]=r[w];y.prototype.newGraphManager=function(){var t=new i(this);return this.graphManager=t,t},y.prototype.newGraph=function(t){return new o(null,this.graphManager,t)},y.prototype.newNode=function(t){return new a(this.graphManager,t)},y.prototype.newEdge=function(t){return new s(null,null,t)},y.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(u.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=u.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=u.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=c.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=c.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=c.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=c.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/c.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=c.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},y.prototype.layout=function(){return l.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},y.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)u.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),e=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter((function(t){return e.has(t)})),this.graphManager.setAllNodesToApplyGravitation(n));else{var t=this.getFlatForest();if(t.length>0)this.positionNodesRadially(t);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter((function(t){return e.has(t)}));this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%c.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter((function(e){return t.has(e)}));this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},n=0;n<t.length;n++){var r=t[n].rect,i=t[n].id;e[i]={id:i,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return e},y.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===c.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},y.prototype.calculateNodesToApplyGravitationTo=function(){var t,e,n=[],r=this.graphManager.getGraphs(),i=r.length;for(e=0;e<i;e++)(t=r[e]).updateConnected(),t.isConnected||(n=n.concat(t.getNodes()));return n},y.prototype.createBendpoints=function(){var t=[];t=t.concat(this.graphManager.getAllEdges());var e,n=new Set;for(e=0;e<t.length;e++){var r=t[e];if(!n.has(r)){var i=r.getSource(),o=r.getTarget();if(i==o)r.getBendpoints().push(new h),r.getBendpoints().push(new h),this.createDummyNodesForBendpoints(r),n.add(r);else{var a=[];if(a=(a=a.concat(i.getEdgeListToNode(o))).concat(o.getEdgeListToNode(i)),!n.has(a[0])){var s;if(a.length>1)for(s=0;s<a.length;s++){var u=a[s];u.getBendpoints().push(new h),this.createDummyNodesForBendpoints(u)}a.forEach((function(t){n.add(t)}))}}}if(n.size==t.length)break}},y.prototype.positionNodesRadially=function(t){for(var e=new f(0,0),n=Math.ceil(Math.sqrt(t.length)),r=0,i=0,o=0,a=new h(0,0),s=0;s<t.length;s++){s%n==0&&(o=0,i=r,0!=s&&(i+=u.DEFAULT_COMPONENT_SEPERATION),r=0);var c=t[s],p=d.findCenterOfTree(c);e.x=o,e.y=i,(a=y.radialLayout(c,p,e)).y>r&&(r=Math.floor(a.y)),o=Math.floor(a.x+u.DEFAULT_COMPONENT_SEPERATION)}this.transform(new h(l.WORLD_CENTER_X-a.x/2,l.WORLD_CENTER_Y-a.y/2))},y.radialLayout=function(t,e,n){var r=Math.max(this.maxDiagonalInTree(t),u.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(e,null,0,359,0,r);var i=v.calculateBounds(t),o=new b;o.setDeviceOrgX(i.getMinX()),o.setDeviceOrgY(i.getMinY()),o.setWorldOrgX(n.x),o.setWorldOrgY(n.y);for(var a=0;a<t.length;a++)t[a].transform(o);var s=new h(i.getMaxX(),i.getMaxY());return o.inverseTransformPoint(s)},y.branchRadialLayout=function(t,e,n,r,i,o){var a=(r-n+1)/2;a<0&&(a+=180);var s=(a+n)%360*g.TWO_PI/360,u=(Math.cos(s),i*Math.cos(s)),c=i*Math.sin(s);t.setCenter(u,c);var l=[],f=(l=l.concat(t.getEdges())).length;null!=e&&f--;for(var h,d=0,p=l.length,v=t.getEdgesBetween(e);v.length>1;){var b=v[0];v.splice(0,1);var w=l.indexOf(b);w>=0&&l.splice(w,1),p--,f--}h=null!=e?(l.indexOf(v[0])+1)%p:0;for(var m=Math.abs(r-n)/f,x=h;d!=f;x=++x%p){var _=l[x].getOtherEnd(t);if(_!=e){var E=(n+d*m)%360,k=(E+m)%360;y.branchRadialLayout(_,t,E,k,i+o,o),d++}}},y.maxDiagonalInTree=function(t){for(var e=p.MIN_VALUE,n=0;n<t.length;n++){var r=t[n].getDiagonal();r>e&&(e=r)}return e},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i<r.length;i++){var o=(s=r[i]).getParent();0!==this.getNodeDegreeWithChildren(s)||null!=o.id&&this.getToBeTiled(o)||n.push(s)}for(i=0;i<n.length;i++){var s,u=(s=n[i]).getParent().id;void 0===e[u]&&(e[u]=[]),e[u]=e[u].concat(s)}Object.keys(e).forEach((function(n){if(e[n].length>1){var r="DummyCompound_"+n;t.memberGroups[r]=e[n];var i=e[n][0].getParent(),o=new a(t.graphManager);o.id=r,o.paddingLeft=i.paddingLeft||0,o.paddingRight=i.paddingRight||0,o.paddingBottom=i.paddingBottom||0,o.paddingTop=i.paddingTop||0,t.idToDummyNode[r]=o;var s=t.getGraphManager().add(t.newGraph(),o),u=i.getChild();u.add(o);for(var c=0;c<e[n].length;c++){var l=e[n][c];u.remove(l),s.add(l)}}}))},y.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var n=0;n<this.compoundOrder.length;n++)e[this.compoundOrder[n].id]=this.compoundOrder[n],t[this.compoundOrder[n].id]=[].concat(this.compoundOrder[n].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[n].getChild()),this.compoundOrder[n].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},y.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach((function(n){var r=t.idToDummyNode[n];e[n]=t.tileNodes(t.memberGroups[n],r.paddingLeft+r.paddingRight),r.rect.width=e[n].width,r.rect.height=e[n].height}))},y.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],n=e.id,r=e.paddingLeft,i=e.paddingTop;this.adjustLocations(this.tiledMemberPack[n],e.rect.x,e.rect.y,r,i)}},y.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach((function(n){var r=t.idToDummyNode[n],i=r.paddingLeft,o=r.paddingTop;t.adjustLocations(e[n],r.rect.x,r.rect.y,i,o)}))},y.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var n=t.getChild();if(null==n)return this.toBeTiled[e]=!1,!1;for(var r=n.getNodes(),i=0;i<r.length;i++){var o=r[i];if(this.getNodeDegree(o)>0)return this.toBeTiled[e]=!1,!1;if(null!=o.getChild()){if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}else this.toBeTiled[o.id]=!1}return this.toBeTiled[e]=!0,!0},y.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),n=0,r=0;r<e.length;r++){var i=e[r];i.getSource().id!==i.getTarget().id&&(n+=1)}return n},y.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null==t.getChild())return e;for(var n=t.getChild().getNodes(),r=0;r<n.length;r++){var i=n[r];e+=this.getNodeDegreeWithChildren(i)}return e},y.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},y.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var n=t[e];null!=n.getChild()&&this.fillCompexOrderByDFS(n.getChild().getNodes()),this.getToBeTiled(n)&&this.compoundOrder.push(n)}},y.prototype.adjustLocations=function(t,e,n,r,i){n+=i;for(var o=e+=r,a=0;a<t.rows.length;a++){var s=t.rows[a];e=o;for(var u=0,c=0;c<s.length;c++){var l=s[c];l.rect.x=e,l.rect.y=n,e+=l.rect.width+t.horizontalPadding,l.rect.height>u&&(u=l.rect.height)}n+=u+t.verticalPadding}},y.prototype.tileCompoundMembers=function(t,e){var n=this;this.tiledMemberPack=[],Object.keys(t).forEach((function(r){var i=e[r];n.tiledMemberPack[r]=n.tileNodes(t[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height}))},y.prototype.tileNodes=function(t,e){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:u.TILING_PADDING_VERTICAL,horizontalPadding:u.TILING_PADDING_HORIZONTAL};t.sort((function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height<e.rect.width*e.rect.height?1:0}));for(var r=0;r<t.length;r++){var i=t[r];0==n.rows.length?this.insertNodeToRow(n,i,0,e):this.canAddHorizontal(n,i.rect.width,i.rect.height)?this.insertNodeToRow(n,i,this.getShortestRowIndex(n),e):this.insertNodeToRow(n,i,n.rows.length,e),this.shiftToLastRow(n)}return n},y.prototype.insertNodeToRow=function(t,e,n,r){var i=r;n==t.rows.length&&(t.rows.push([]),t.rowWidth.push(i),t.rowHeight.push(0));var o=t.rowWidth[n]+e.rect.width;t.rows[n].length>0&&(o+=t.horizontalPadding),t.rowWidth[n]=o,t.width<o&&(t.width=o);var a=e.rect.height;n>0&&(a+=t.verticalPadding);var s=0;a>t.rowHeight[n]&&(s=t.rowHeight[n],t.rowHeight[n]=a,s=t.rowHeight[n]-s),t.height+=s,t.rows[n].push(e)},y.prototype.getShortestRowIndex=function(t){for(var e=-1,n=Number.MAX_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]<n&&(e=r,n=t.rowWidth[r]);return e},y.prototype.getLongestRowIndex=function(t){for(var e=-1,n=Number.MIN_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]>n&&(e=r,n=t.rowWidth[r]);return e},y.prototype.canAddHorizontal=function(t,e,n){var r=this.getShortestRowIndex(t);if(r<0)return!0;var i=t.rowWidth[r];if(i+t.horizontalPadding+e<=t.width)return!0;var o,a,s=0;return t.rowHeight[r]<n&&r>0&&(s=n+t.verticalPadding-t.rowHeight[r]),o=t.width-i>=e+t.horizontalPadding?(t.height+s)/(i+e+t.horizontalPadding):(t.height+s)/t.width,s=n+t.verticalPadding,(a=t.width<e?(t.height+s)/e:(t.height+s)/t.width)<1&&(a=1/a),o<1&&(o=1/o),o<a},y.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),n=t.rowWidth.length-1,r=t.rows[e],i=r[r.length-1],o=i.width+t.horizontalPadding;if(t.width-t.rowWidth[n]>o&&e!=n){r.splice(-1,1),t.rows[n].push(i),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[n]=t.rowWidth[n]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var a=Number.MIN_VALUE,s=0;s<r.length;s++)r[s].height>a&&(a=r[s].height);e>0&&(a+=t.verticalPadding);var u=t.rowHeight[e]+t.rowHeight[n];t.rowHeight[e]=a,t.rowHeight[n]<i.height+t.verticalPadding&&(t.rowHeight[n]=i.height+t.verticalPadding);var c=t.rowHeight[e]+t.rowHeight[n];t.height+=c-u,this.shiftToLastRow(t)}},y.prototype.tilingPreLayout=function(){u.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},y.prototype.tilingPostLayout=function(){u.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},y.prototype.reduceTrees=function(){for(var t,e=[],n=!0;n;){var r=this.graphManager.getAllNodes(),i=[];n=!1;for(var o=0;o<r.length;o++)1!=(t=r[o]).getEdges().length||t.getEdges()[0].isInterGraph||null!=t.getChild()||(i.push([t,t.getEdges()[0],t.getOwner()]),n=!0);if(1==n){for(var a=[],s=0;s<i.length;s++)1==i[s][0].getEdges().length&&(a.push(i[s]),i[s][0].getOwner().remove(i[s][0]));e.push(a),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},y.prototype.growTree=function(t){for(var e,n=t[t.length-1],r=0;r<n.length;r++)e=n[r],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},y.prototype.findPlaceforPrunedNode=function(t){var e,n,r=t[0],i=(n=r==t[1].source?t[1].target:t[1].source).startX,o=n.finishX,a=n.startY,s=n.finishY,u=[0,0,0,0];if(a>0)for(var l=i;l<=o;l++)u[0]+=this.grid[l][a-1].length+this.grid[l][a].length-1;if(o<this.grid.length-1)for(l=a;l<=s;l++)u[1]+=this.grid[o+1][l].length+this.grid[o][l].length-1;if(s<this.grid[0].length-1)for(l=i;l<=o;l++)u[2]+=this.grid[l][s+1].length+this.grid[l][s].length-1;if(i>0)for(l=a;l<=s;l++)u[3]+=this.grid[i-1][l].length+this.grid[i][l].length-1;for(var f,h,d=p.MAX_VALUE,g=0;g<u.length;g++)u[g]<d?(d=u[g],f=1,h=g):u[g]==d&&f++;if(3==f&&0==d)0==u[0]&&0==u[1]&&0==u[2]?e=1:0==u[0]&&0==u[1]&&0==u[3]?e=0:0==u[0]&&0==u[2]&&0==u[3]?e=3:0==u[1]&&0==u[2]&&0==u[3]&&(e=2);else if(2==f&&0==d){var v=Math.floor(2*Math.random());e=0==u[0]&&0==u[1]?0==v?0:1:0==u[0]&&0==u[2]?0==v?0:2:0==u[0]&&0==u[3]?0==v?0:3:0==u[1]&&0==u[2]?0==v?1:2:0==u[1]&&0==u[3]?0==v?1:3:0==v?2:3}else e=4==f&&0==d?v=Math.floor(4*Math.random()):h;0==e?r.setCenter(n.getCenterX(),n.getCenterY()-n.getHeight()/2-c.DEFAULT_EDGE_LENGTH-r.getHeight()/2):1==e?r.setCenter(n.getCenterX()+n.getWidth()/2+c.DEFAULT_EDGE_LENGTH+r.getWidth()/2,n.getCenterY()):2==e?r.setCenter(n.getCenterX(),n.getCenterY()+n.getHeight()/2+c.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(n.getCenterX()-n.getWidth()/2-c.DEFAULT_EDGE_LENGTH-r.getWidth()/2,n.getCenterY())},t.exports=y},function(t,e,n){"use strict";var r={};r.layoutBase=n(0),r.CoSEConstants=n(1),r.CoSEEdge=n(2),r.CoSEGraph=n(3),r.CoSEGraphManager=n(4),r.CoSELayout=n(6),r.CoSENode=n(5),t.exports=r}])},t.exports=r(n(146))},function(t,e,n){var r;r=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 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?function(){return t.default}:function(){return t};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){"use strict";function r(){}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){"use strict";var r=n(2),i=n(8),o=n(9);function a(t,e,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=t,this.target=e}for(var s in a.prototype=Object.create(r.prototype),r)a[s]=r[s];a.prototype.getSource=function(){return this.source},a.prototype.getTarget=function(){return this.target},a.prototype.isInterGraph=function(){return this.isInterGraph},a.prototype.getLength=function(){return this.length},a.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},a.prototype.getBendpoints=function(){return this.bendpoints},a.prototype.getLca=function(){return this.lca},a.prototype.getSourceInLca=function(){return this.sourceInLca},a.prototype.getTargetInLca=function(){return this.targetInLca},a.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"},a.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},a.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=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},a.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=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=a},function(t,e,n){"use strict";t.exports=function(t){this.vGraphObject=t}},function(t,e,n){"use strict";var r=n(2),i=n(10),o=n(13),a=n(0),s=n(16),u=n(4);function c(t,e,n,a){null==n&&null==a&&(a=e),r.call(this,a),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=a,this.edges=[],this.graphManager=t,this.rect=null!=n&&null!=e?new o(e.x,e.y,n.width,n.height):new o}for(var l in c.prototype=Object.create(r.prototype),r)c[l]=r[l];c.prototype.getEdges=function(){return this.edges},c.prototype.getChild=function(){return this.child},c.prototype.getOwner=function(){return this.owner},c.prototype.getWidth=function(){return this.rect.width},c.prototype.setWidth=function(t){this.rect.width=t},c.prototype.getHeight=function(){return this.rect.height},c.prototype.setHeight=function(t){this.rect.height=t},c.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},c.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},c.prototype.getCenter=function(){return new u(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},c.prototype.getLocation=function(){return new u(this.rect.x,this.rect.y)},c.prototype.getRect=function(){return this.rect},c.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},c.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},c.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},c.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},c.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},c.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},c.prototype.getEdgeListToNode=function(t){var e=[],n=this;return n.edges.forEach((function(r){if(r.target==t){if(r.source!=n)throw"Incorrect edge source!";e.push(r)}})),e},c.prototype.getEdgesBetween=function(t){var e=[],n=this;return n.edges.forEach((function(r){if(r.source!=n&&r.target!=n)throw"Incorrect edge source and/or target";r.target!=t&&r.source!=t||e.push(r)})),e},c.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach((function(n){if(n.source==e)t.add(n.target);else{if(n.target!=e)throw"Incorrect incidency!";t.add(n.source)}})),t},c.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),n=0;n<e.length;n++)e[n].withChildren().forEach((function(e){t.add(e)}));return t},c.prototype.getNoOfChildren=function(){var t=0;if(null==this.child)t=1;else for(var e=this.child.getNodes(),n=0;n<e.length;n++)t+=e[n].getNoOfChildren();return 0==t&&(t=1),t},c.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},c.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},c.prototype.scatter=function(){var t,e,n=-a.INITIAL_WORLD_BOUNDARY,r=a.INITIAL_WORLD_BOUNDARY;t=a.WORLD_CENTER_X+s.nextDouble()*(r-n)+n;var i=-a.INITIAL_WORLD_BOUNDARY,o=a.INITIAL_WORLD_BOUNDARY;e=a.WORLD_CENTER_Y+s.nextDouble()*(o-i)+i,this.rect.x=t,this.rect.y=e},c.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),a.NODE_DIMENSIONS_INCLUDE_LABELS){var e=t.getRight()-t.getLeft(),n=t.getBottom()-t.getTop();this.labelWidth>e&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-n)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},c.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},c.prototype.transform=function(t){var e=this.rect.x;e>a.WORLD_BOUNDARY?e=a.WORLD_BOUNDARY:e<-a.WORLD_BOUNDARY&&(e=-a.WORLD_BOUNDARY);var n=this.rect.y;n>a.WORLD_BOUNDARY?n=a.WORLD_BOUNDARY:n<-a.WORLD_BOUNDARY&&(n=-a.WORLD_BOUNDARY);var r=new u(e,n),i=t.inverseTransformPoint(r);this.setLocation(i.x,i.y)},c.prototype.getLeft=function(){return this.rect.x},c.prototype.getRight=function(){return this.rect.x+this.rect.width},c.prototype.getTop=function(){return this.rect.y},c.prototype.getBottom=function(){return this.rect.y+this.rect.height},c.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=c},function(t,e,n){"use strict";function r(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=r},function(t,e,n){"use strict";var r=n(2),i=n(10),o=n(0),a=n(6),s=n(3),u=n(1),c=n(13),l=n(12),f=n(11);function h(t,e,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof a?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var d in h.prototype=Object.create(r.prototype),r)h[d]=r[d];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(t,e,n){if(null==e&&null==n){var r=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(r)>-1)throw"Node already in graph!";return r.owner=this,this.getNodes().push(r),r}var i=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(e.owner!=n.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=n.owner?null:(i.source=e,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),e.edges.push(i),n!=e&&n.edges.push(i),i)},h.prototype.remove=function(t){var e=t;if(t instanceof s){if(null==e)throw"Node is null!";if(null==e.owner||e.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var n=e.edges.slice(),r=n.length,i=0;i<r;i++)(o=n[i]).isInterGraph?this.graphManager.remove(o):o.source.owner.remove(o);if(-1==(a=this.nodes.indexOf(e)))throw"Node not in owner node list!";this.nodes.splice(a,1)}else if(t instanceof u){var o;if(null==(o=t))throw"Edge is null!";if(null==o.source||null==o.target)throw"Source and/or target is null!";if(null==o.source.owner||null==o.target.owner||o.source.owner!=this||o.target.owner!=this)throw"Source and/or target owner is invalid!";var a,c=o.source.edges.indexOf(o),l=o.target.edges.indexOf(o);if(!(c>-1&&l>-1))throw"Source and/or target doesn't know this edge!";if(o.source.edges.splice(c,1),o.target!=o.source&&o.target.edges.splice(l,1),-1==(a=o.source.owner.getEdges().indexOf(o)))throw"Not in owner's edge list!";o.source.owner.getEdges().splice(a,1)}},h.prototype.updateLeftTop=function(){for(var t,e,n,r=i.MAX_VALUE,o=i.MAX_VALUE,a=this.getNodes(),s=a.length,u=0;u<s;u++){var c=a[u];r>(t=c.getTop())&&(r=t),o>(e=c.getLeft())&&(o=e)}return r==i.MAX_VALUE?null:(n=null!=a[0].getParent().paddingLeft?a[0].getParent().paddingLeft:this.margin,this.left=o-n,this.top=r-n,new l(this.left,this.top))},h.prototype.updateBounds=function(t){for(var e,n,r,o,a,s=i.MAX_VALUE,u=-i.MAX_VALUE,l=i.MAX_VALUE,f=-i.MAX_VALUE,h=this.nodes,d=h.length,p=0;p<d;p++){var g=h[p];t&&null!=g.child&&g.updateBounds(),s>(e=g.getLeft())&&(s=e),u<(n=g.getRight())&&(u=n),l>(r=g.getTop())&&(l=r),f<(o=g.getBottom())&&(f=o)}var v=new c(s,l,u-s,f-l);s==i.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),a=null!=h[0].getParent().paddingLeft?h[0].getParent().paddingLeft:this.margin,this.left=v.x-a,this.right=v.x+v.width+a,this.top=v.y-a,this.bottom=v.y+v.height+a},h.calculateBounds=function(t){for(var e,n,r,o,a=i.MAX_VALUE,s=-i.MAX_VALUE,u=i.MAX_VALUE,l=-i.MAX_VALUE,f=t.length,h=0;h<f;h++){var d=t[h];a>(e=d.getLeft())&&(a=e),s<(n=d.getRight())&&(s=n),u>(r=d.getTop())&&(u=r),l<(o=d.getBottom())&&(l=o)}return new c(a,u,s-a,l-u)},h.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,n=e.length,r=0;r<n;r++)t+=e[r].calcEstimatedSize();return this.estimatedSize=0==t?o.EMPTY_COMPOUND_NODE_SIZE:t/Math.sqrt(this.nodes.length),this.estimatedSize},h.prototype.updateConnected=function(){var t=this;if(0!=this.nodes.length){var e,n,r=new f,i=new Set,o=this.nodes[0];for(o.withChildren().forEach((function(t){r.push(t),i.add(t)}));0!==r.length;)for(var a=(e=(o=r.shift()).getEdges()).length,s=0;s<a;s++)null==(n=e[s].getOtherEndInGraph(o,this))||i.has(n)||n.withChildren().forEach((function(t){r.push(t),i.add(t)}));if(this.isConnected=!1,i.size>=this.nodes.length){var u=0;i.forEach((function(e){e.owner==t&&u++})),u==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},t.exports=h},function(t,e,n){"use strict";var r,i=n(1);function o(t){r=n(5),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),n=this.add(t,e);return this.setRootGraph(n),this.rootGraph},o.prototype.add=function(t,e,n,r,i){if(null==n&&null==r&&null==i){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}i=n,n=t;var o=(r=e).getOwner(),a=i.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==a||a.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==a)return n.isInterGraph=!1,o.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),null==n.source||null==n.target)throw"Edge source and/or target is null!";if(-1!=n.source.edges.indexOf(n)||-1!=n.target.edges.indexOf(n))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},o.prototype.remove=function(t){if(t instanceof r){var e=t;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(e!=this.rootGraph&&(null==e.parent||e.parent.graphManager!=this))throw"Invalid parent node!";for(var n,o=[],a=(o=o.concat(e.getEdges())).length,s=0;s<a;s++)n=o[s],e.remove(n);var u,c=[];for(a=(c=c.concat(e.getNodes())).length,s=0;s<a;s++)u=c[s],e.remove(u);e==this.rootGraph&&this.setRootGraph(null);var l=this.graphs.indexOf(e);this.graphs.splice(l,1),e.parent=null}else if(t instanceof i){if(null==(n=t))throw"Edge is null!";if(!n.isInterGraph)throw"Not an inter-graph edge!";if(null==n.source||null==n.target)throw"Source and/or target is null!";if(-1==n.source.edges.indexOf(n)||-1==n.target.edges.indexOf(n))throw"Source and/or target doesn't know this edge!";if(l=n.source.edges.indexOf(n),n.source.edges.splice(l,1),l=n.target.edges.indexOf(n),n.target.edges.splice(l,1),null==n.source.owner||null==n.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==n.source.owner.getGraphManager().edges.indexOf(n))throw"Not in owner graph manager's edge list!";l=n.source.owner.getGraphManager().edges.indexOf(n),n.source.owner.getGraphManager().edges.splice(l,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var t=[],e=this.getGraphs(),n=e.length,r=0;r<n;r++)t=t.concat(e[r].getNodes());this.allNodes=t}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){for(var t=[],e=this.getGraphs(),n=(e.length,0);n<e.length;n++)t=t.concat(e[n].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(t){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=t},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,null==t.parent&&(t.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(t,e){if(null==t||null==e)throw"assert failed";if(t==e)return!0;for(var n,r=t.getOwner();null!=(n=r.getParent());){if(n==e)return!0;if(null==(r=n.getOwner()))break}for(r=e.getOwner();null!=(n=r.getParent());){if(n==t)return!0;if(null==(r=n.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var t,e,n,r,i,o=this.getAllEdges(),a=o.length,s=0;s<a;s++)if(e=(t=o[s]).source,n=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=n,e!=n){for(r=e.getOwner();null==t.lca;){for(t.targetInLca=n,i=n.getOwner();null==t.lca;){if(i==r){t.lca=i;break}if(i==this.rootGraph)break;if(null!=t.lca)throw"assert failed";t.targetInLca=i.getParent(),i=t.targetInLca.getOwner()}if(r==this.rootGraph)break;null==t.lca&&(t.sourceInLca=r.getParent(),r=t.sourceInLca.getOwner())}if(null==t.lca)throw"assert failed"}else t.lca=e.getOwner()},o.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();for(var n=t.getOwner();null!=n;){for(var r=e.getOwner();null!=r;){if(r==n)return r;r=r.getParent().getOwner()}n=n.getParent().getOwner()}return n},o.prototype.calcInclusionTreeDepths=function(t,e){var n;null==t&&null==e&&(t=this.rootGraph,e=1);for(var r=t.getNodes(),i=r.length,o=0;o<i;o++)(n=r[o]).inclusionTreeDepth=e,null!=n.child&&this.calcInclusionTreeDepths(n.child,e+1)},o.prototype.includesInvalidEdge=function(){for(var t,e=this.edges.length,n=0;n<e;n++)if(t=this.edges[n],this.isOneAncestorOfOther(t.source,t.target))return!0;return!1},t.exports=o},function(t,e,n){"use strict";var r=n(0);function i(){}for(var o in r)i[o]=r[o];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=3*i.MAX_NODE_DISPLACEMENT_INCREMENTAL,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=i},function(t,e,n){"use strict";var r=n(12);function i(){}i.calcSeparationAmount=function(t,e,n,r){if(!t.intersects(e))throw"assert failed";var i=new Array(2);this.decideDirectionsForOverlappingNodes(t,e,i),n[0]=Math.min(t.getRight(),e.getRight())-Math.max(t.x,e.x),n[1]=Math.min(t.getBottom(),e.getBottom())-Math.max(t.y,e.y),t.getX()<=e.getX()&&t.getRight()>=e.getRight()?n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var a=o*n[0],s=n[1]/o;n[0]<s?s=n[0]:a=n[1],n[0]=-1*i[0]*(s/2+r),n[1]=-1*i[1]*(a/2+r)},i.decideDirectionsForOverlappingNodes=function(t,e,n){t.getCenterX()<e.getCenterX()?n[0]=-1:n[0]=1,t.getCenterY()<e.getCenterY()?n[1]=-1:n[1]=1},i.getIntersection2=function(t,e,n){var r=t.getCenterX(),i=t.getCenterY(),o=e.getCenterX(),a=e.getCenterY();if(t.intersects(e))return n[0]=r,n[1]=i,n[2]=o,n[3]=a,!0;var s=t.getX(),u=t.getY(),c=t.getRight(),l=t.getX(),f=t.getBottom(),h=t.getRight(),d=t.getWidthHalf(),p=t.getHeightHalf(),g=e.getX(),v=e.getY(),b=e.getRight(),y=e.getX(),w=e.getBottom(),m=e.getRight(),x=e.getWidthHalf(),_=e.getHeightHalf(),E=!1,k=!1;if(r===o){if(i>a)return n[0]=r,n[1]=u,n[2]=o,n[3]=w,!1;if(i<a)return n[0]=r,n[1]=f,n[2]=o,n[3]=v,!1}else if(i===a){if(r>o)return n[0]=s,n[1]=i,n[2]=b,n[3]=a,!1;if(r<o)return n[0]=c,n[1]=i,n[2]=g,n[3]=a,!1}else{var S=t.height/t.width,C=e.height/e.width,T=(a-i)/(o-r),A=void 0,N=void 0,O=void 0,L=void 0,P=void 0,I=void 0;if(-S===T?r>o?(n[0]=l,n[1]=f,E=!0):(n[0]=c,n[1]=u,E=!0):S===T&&(r>o?(n[0]=s,n[1]=u,E=!0):(n[0]=h,n[1]=f,E=!0)),-C===T?o>r?(n[2]=y,n[3]=w,k=!0):(n[2]=b,n[3]=v,k=!0):C===T&&(o>r?(n[2]=g,n[3]=v,k=!0):(n[2]=m,n[3]=w,k=!0)),E&&k)return!1;if(r>o?i>a?(A=this.getCardinalDirection(S,T,4),N=this.getCardinalDirection(C,T,2)):(A=this.getCardinalDirection(-S,T,3),N=this.getCardinalDirection(-C,T,1)):i>a?(A=this.getCardinalDirection(-S,T,1),N=this.getCardinalDirection(-C,T,3)):(A=this.getCardinalDirection(S,T,2),N=this.getCardinalDirection(C,T,4)),!E)switch(A){case 1:L=u,O=r+-p/T,n[0]=O,n[1]=L;break;case 2:O=h,L=i+d*T,n[0]=O,n[1]=L;break;case 3:L=f,O=r+p/T,n[0]=O,n[1]=L;break;case 4:O=l,L=i+-d*T,n[0]=O,n[1]=L}if(!k)switch(N){case 1:I=v,P=o+-_/T,n[2]=P,n[3]=I;break;case 2:P=m,I=a+x*T,n[2]=P,n[3]=I;break;case 3:I=w,P=o+_/T,n[2]=P,n[3]=I;break;case 4:P=y,I=a+-x*T,n[2]=P,n[3]=I}}return!1},i.getCardinalDirection=function(t,e,n){return t>e?n:1+n%4},i.getIntersection=function(t,e,n,i){if(null==i)return this.getIntersection2(t,e,n);var o,a,s,u,c,l,f,h=t.x,d=t.y,p=e.x,g=e.y,v=n.x,b=n.y,y=i.x,w=i.y;return 0==(f=(o=g-d)*(u=v-y)-(a=w-b)*(s=h-p))?null:new r((s*(l=y*b-v*w)-u*(c=p*d-h*g))/f,(a*c-o*l)/f)},i.angleOfVector=function(t,e,n,r){var i=void 0;return t!==n?(i=Math.atan((r-e)/(n-t)),n<t?i+=Math.PI:r<e&&(i+=this.TWO_PI)):i=r<e?this.ONE_AND_HALF_PI:this.HALF_PI,i},i.doIntersect=function(t,e,n,r){var i=t.x,o=t.y,a=e.x,s=e.y,u=n.x,c=n.y,l=r.x,f=r.y,h=(a-i)*(f-c)-(l-u)*(s-o);if(0===h)return!1;var d=((f-c)*(l-i)+(u-l)*(f-o))/h,p=((o-s)*(l-i)+(a-i)*(f-o))/h;return 0<d&&d<1&&0<p&&p<1},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,t.exports=i},function(t,e,n){"use strict";function r(){}r.sign=function(t){return t>0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=r},function(t,e,n){"use strict";function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,t.exports=r},function(t,e,n){"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){return{value:t,next:null,prev:null}},o=function(t,e,n,r){return null!==t?t.next=e:r.head=e,null!==n?n.prev=e:r.tail=e,e.prev=t,e.next=n,r.length++,e},a=function(t,e){var n=t.prev,r=t.next;return null!==n?n.next=r:e.head=r,null!==r?r.prev=n:e.tail=n,t.prev=t.next=null,e.length--,t},s=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.length=0,this.head=null,this.tail=null,null!=e&&e.forEach((function(t){return n.push(t)}))}return r(t,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,e){return o(e.prev,i(t),e,this)}},{key:"insertAfter",value:function(t,e){return o(e,i(t),e.next,this)}},{key:"insertNodeBefore",value:function(t,e){return o(e.prev,t,e,this)}},{key:"insertNodeAfter",value:function(t,e){return o(e,t,e.next,this)}},{key:"push",value:function(t){return o(this.tail,i(t),null,this)}},{key:"unshift",value:function(t){return o(null,i(t),this.head,this)}},{key:"remove",value:function(t){return a(t,this)}},{key:"pop",value:function(){return a(this.tail,this).value}},{key:"popNode",value:function(){return a(this.tail,this)}},{key:"shift",value:function(){return a(this.head,this).value}},{key:"shiftNode",value:function(){return a(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var e=1,n=this.head;e<t;)n=n.next,e++;return n.value}}},{key:"set_object_at",value:function(t,e){if(t<=this.length()){for(var n=1,r=this.head;n<t;)r=r.next,n++;r.value=e}}}]),t}();t.exports=s},function(t,e,n){"use strict";function r(t,e,n){this.x=null,this.y=null,null==t&&null==e&&null==n?(this.x=0,this.y=0):"number"==typeof t&&"number"==typeof e&&null==n?(this.x=t,this.y=e):"Point"==t.constructor.name&&null==e&&null==n&&(n=t,this.x=n.x,this.y=n.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(t,e,n){"Point"==t.constructor.name&&null==e&&null==n?(n=t,this.setLocation(n.x,n.y)):"number"==typeof t&&"number"==typeof e&&null==n&&(parseInt(t)==t&&parseInt(e)==e?this.move(t,e):(this.x=Math.floor(t+.5),this.y=Math.floor(e+.5)))},r.prototype.move=function(t,e){this.x=t,this.y=e},r.prototype.translate=function(t,e){this.x+=t,this.y+=e},r.prototype.equals=function(t){if("Point"==t.constructor.name){var e=t;return this.x==e.x&&this.y==e.y}return this==t},r.prototype.toString=function(){return(new r).constructor.name+"[x="+this.x+",y="+this.y+"]"},t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=t&&null!=e&&null!=n&&null!=r&&(this.x=t,this.y=e,this.width=n,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(t){this.x=t},r.prototype.getY=function(){return this.y},r.prototype.setY=function(t){this.y=t},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},t.exports=r},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function i(){}i.lastID=0,i.createID=function(t){return i.isPrimitive(t)?t:(null!=t.uniqueID||(t.uniqueID=i.getString(),i.lastID++),t.uniqueID)},i.getString=function(t){return null==t&&(t=i.lastID),"Object#"+t},i.isPrimitive=function(t){var e=void 0===t?"undefined":r(t);return null==t||"object"!=e&&"function"!=e},t.exports=i},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var i=n(0),o=n(6),a=n(3),s=n(1),u=n(5),c=n(4),l=n(17),f=n(27);function h(t){f.call(this),this.layoutQuality=i.QUALITY,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=i.DEFAULT_INCREMENTAL,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=t&&(this.isRemoteUse=t)}h.RANDOM_SEED=1,h.prototype=Object.create(f.prototype),h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},h.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},h.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},h.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t,t},h.prototype.newGraph=function(t){return new u(null,this.graphManager,t)},h.prototype.newNode=function(t){return new a(this.graphManager,t)},h.prototype.newEdge=function(t){return new s(null,null,t)},h.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},h.prototype.runLayout=function(){var t;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),t=!this.checkLayoutSuccess()&&this.layout(),"during"!==i.ANIMATE&&(t&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,t)},h.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},h.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var t=this.graphManager.getAllEdges(),e=0;e<t.length;e++)t[e];var n=this.graphManager.getRoot().getNodes();for(e=0;e<n.length;e++)n[e];this.update(this.graphManager.getRoot())}},h.prototype.update=function(t){if(null==t)this.update2();else if(t instanceof a){var e=t;if(null!=e.getChild())for(var n=e.getChild().getNodes(),r=0;r<n.length;r++)update(n[r]);null!=e.vGraphObject&&e.vGraphObject.update(e)}else if(t instanceof s){var i=t;null!=i.vGraphObject&&i.vGraphObject.update(i)}else if(t instanceof u){var o=t;null!=o.vGraphObject&&o.vGraphObject.update(o)}},h.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=i.QUALITY,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=i.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},h.prototype.transform=function(t){if(null==t)this.transform(new c(0,0));else{var e=new l,n=this.graphManager.getRoot().updateLeftTop();if(null!=n){e.setWorldOrgX(t.x),e.setWorldOrgY(t.y),e.setDeviceOrgX(n.x),e.setDeviceOrgY(n.y);for(var r=this.getAllNodes(),i=0;i<r.length;i++)r[i].transform(e)}}},h.prototype.positionNodesRandomly=function(t){if(null==t)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var e,n,r=t.getNodes(),i=0;i<r.length;i++)null==(n=(e=r[i]).getChild())||0==n.getNodes().length?e.scatter():(this.positionNodesRandomly(n),e.updateBounds())},h.prototype.getFlatForest=function(){for(var t=[],e=!0,n=this.graphManager.getRoot().getNodes(),i=!0,o=0;o<n.length;o++)null!=n[o].getChild()&&(i=!1);if(!i)return t;var a=new Set,s=[],u=new Map,c=[];for(c=c.concat(n);c.length>0&&e;){for(s.push(c[0]);s.length>0&&e;){var l=s[0];s.splice(0,1),a.add(l);var f=l.getEdges();for(o=0;o<f.length;o++){var h=f[o].getOtherEnd(l);if(u.get(l)!=h){if(a.has(h)){e=!1;break}s.push(h),u.set(h,l)}}}if(e){var d=[].concat(r(a));for(t.push(d),o=0;o<d.length;o++){var p=d[o],g=c.indexOf(p);g>-1&&c.splice(g,1)}a=new Set,u=new Map}else t=[]}return t},h.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],n=t.source,r=this.graphManager.calcLowestCommonAncestor(t.source,t.target),i=0;i<t.bendpoints.length;i++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),r.add(o);var a=this.newEdge(null);this.graphManager.add(a,n,o),e.add(o),n=o}return a=this.newEdge(null),this.graphManager.add(a,n,t.target),this.edgeToDummyNodes.set(t,e),t.isInterGraph()?this.graphManager.remove(t):r.remove(t),e},h.prototype.createBendpointsFromDummyNodes=function(){var t=[];t=t.concat(this.graphManager.getAllEdges()),t=[].concat(r(this.edgeToDummyNodes.keys())).concat(t);for(var e=0;e<t.length;e++){var n=t[e];if(n.bendpoints.length>0){for(var i=this.edgeToDummyNodes.get(n),o=0;o<i.length;o++){var a=i[o],s=new c(a.getCenterX(),a.getCenterY()),u=n.bendpoints.get(o);u.x=s.x,u.y=s.y,a.getOwner().remove(a)}this.graphManager.add(n,n.source,n.target)}}},h.transform=function(t,e,n,r){if(null!=n&&null!=r){var i=e;return t<=50?i-=(e-e/n)/50*(50-t):i+=(e*r-e)/50*(t-50),i}var o,a;return t<=50?(o=9*e/500,a=e/10):(o=9*e/50,a=-8*e),o*t+a},h.findCenterOfTree=function(t){var e=[];e=e.concat(t);var n=[],r=new Map,i=!1,o=null;1!=e.length&&2!=e.length||(i=!0,o=e[0]);for(var a=0;a<e.length;a++){var s=(l=e[a]).getNeighborsList().size;r.set(l,l.getNeighborsList().size),1==s&&n.push(l)}var u=[];for(u=u.concat(n);!i;){var c=[];for(c=c.concat(u),u=[],a=0;a<e.length;a++){var l=e[a],f=e.indexOf(l);f>=0&&e.splice(f,1),l.getNeighborsList().forEach((function(t){if(n.indexOf(t)<0){var e=r.get(t)-1;1==e&&u.push(t),r.set(t,e)}}))}n=n.concat(u),1!=e.length&&2!=e.length||(i=!0,o=e[0])}return o},h.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=h},function(t,e,n){"use strict";function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},t.exports=r},function(t,e,n){"use strict";var r=n(4);function i(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(t){this.lworldExtX=t},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(t){this.lworldExtY=t},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},i.prototype.transformX=function(t){var e=0,n=this.lworldExtX;return 0!=n&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/n),e},i.prototype.transformY=function(t){var e=0,n=this.lworldExtY;return 0!=n&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/n),e},i.prototype.inverseTransformX=function(t){var e=0,n=this.ldeviceExtX;return 0!=n&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/n),e},i.prototype.inverseTransformY=function(t){var e=0,n=this.ldeviceExtY;return 0!=n&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/n),e},i.prototype.inverseTransformPoint=function(t){return new r(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=i},function(t,e,n){"use strict";var r=n(15),i=n(7),o=n(0),a=n(8),s=n(9);function u(){r.call(this),this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=i.DEFAULT_EDGE_LENGTH,this.springConstant=i.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=i.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=i.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=i.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=i.MAX_ITERATIONS}for(var c in u.prototype=Object.create(r.prototype),r)u[c]=r[c];u.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},u.prototype.calcIdealEdgeLengths=function(){for(var t,e,n,r,a,s,u=this.getGraphManager().getAllEdges(),c=0;c<u.length;c++)(t=u[c]).idealLength=this.idealEdgeLength,t.isInterGraph&&(n=t.getSource(),r=t.getTarget(),a=t.getSourceInLca().getEstimatedSize(),s=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=a+s-2*o.SIMPLE_NODE_SIZE),e=t.getLca().getInclusionTreeDepth(),t.idealLength+=i.DEFAULT_EDGE_LENGTH*i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(n.getInclusionTreeDepth()+r.getInclusionTreeDepth()-2*e))},u.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>i.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),n=0;n<e.length;n++)t=e[n],this.calcSpringForce(t,t.idealLength)},u.prototype.calcRepulsionForces=function(){var t,e,n,r,o,a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&a&&this.updateGrid(),o=new Set,t=0;t<u.length;t++)n=u[t],this.calculateRepulsionForceOfANode(n,o,a,s),o.add(n);else for(t=0;t<u.length;t++)for(n=u[t],e=t+1;e<u.length;e++)r=u[e],n.getOwner()==r.getOwner()&&this.calcRepulsionForce(n,r)},u.prototype.calcGravitationalForces=function(){for(var t,e=this.getAllNodesToApplyGravitation(),n=0;n<e.length;n++)t=e[n],this.calcGravitationalForce(t)},u.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].move()},u.prototype.calcSpringForce=function(t,e){var n,r,i,o,a=t.getSource(),s=t.getTarget();if(this.uniformLeafNodeSizes&&null==a.getChild()&&null==s.getChild())t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;0!=(n=t.getLength())&&(i=(r=this.springConstant*(n-e))*(t.lengthX/n),o=r*(t.lengthY/n),a.springForceX+=i,a.springForceY+=o,s.springForceX-=i,s.springForceY-=o)},u.prototype.calcRepulsionForce=function(t,e){var n,r,o,u,c,l,f,h=t.getRect(),d=e.getRect(),p=new Array(2),g=new Array(4);if(h.intersects(d)){a.calcSeparationAmount(h,d,p,i.DEFAULT_EDGE_LENGTH/2),l=2*p[0],f=2*p[1];var v=t.noOfChildren*e.noOfChildren/(t.noOfChildren+e.noOfChildren);t.repulsionForceX-=v*l,t.repulsionForceY-=v*f,e.repulsionForceX+=v*l,e.repulsionForceY+=v*f}else this.uniformLeafNodeSizes&&null==t.getChild()&&null==e.getChild()?(n=d.getCenterX()-h.getCenterX(),r=d.getCenterY()-h.getCenterY()):(a.getIntersection(h,d,g),n=g[2]-g[0],r=g[3]-g[1]),Math.abs(n)<i.MIN_REPULSION_DIST&&(n=s.sign(n)*i.MIN_REPULSION_DIST),Math.abs(r)<i.MIN_REPULSION_DIST&&(r=s.sign(r)*i.MIN_REPULSION_DIST),o=n*n+r*r,u=Math.sqrt(o),l=(c=this.repulsionConstant*t.noOfChildren*e.noOfChildren/o)*n/u,f=c*r/u,t.repulsionForceX-=l,t.repulsionForceY-=f,e.repulsionForceX+=l,e.repulsionForceY+=f},u.prototype.calcGravitationalForce=function(t){var e,n,r,i,o,a,s,u;n=((e=t.getOwner()).getRight()+e.getLeft())/2,r=(e.getTop()+e.getBottom())/2,i=t.getCenterX()-n,o=t.getCenterY()-r,a=Math.abs(i)+t.getWidth()/2,s=Math.abs(o)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(a>(u=e.getEstimatedSize()*this.gravityRangeFactor)||s>u)&&(t.gravitationForceX=-this.gravityConstant*i,t.gravitationForceY=-this.gravityConstant*o):(a>(u=e.getEstimatedSize()*this.compoundGravityRangeFactor)||s>u)&&(t.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},u.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||e},u.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},u.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,e=this.graphManager.getAllNodes(),n=0;n<e.length;n++)(t=e[n]).noOfChildren=t.getNoOfChildren()},u.prototype.calcGrid=function(t){var e,n;e=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),n=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var r=new Array(e),i=0;i<e;i++)r[i]=new Array(n);for(i=0;i<e;i++)for(var o=0;o<n;o++)r[i][o]=new Array;return r},u.prototype.addNodeToGrid=function(t,e,n){var r,i,o,a;r=parseInt(Math.floor((t.getRect().x-e)/this.repulsionRange)),i=parseInt(Math.floor((t.getRect().width+t.getRect().x-e)/this.repulsionRange)),o=parseInt(Math.floor((t.getRect().y-n)/this.repulsionRange)),a=parseInt(Math.floor((t.getRect().height+t.getRect().y-n)/this.repulsionRange));for(var s=r;s<=i;s++)for(var u=o;u<=a;u++)this.grid[s][u].push(t),t.setGridCoordinates(r,i,o,a)},u.prototype.updateGrid=function(){var t,e,n=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<n.length;t++)e=n[t],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},u.prototype.calculateRepulsionForceOfANode=function(t,e,n,r){if(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&n||r){var o,a=new Set;t.surrounding=new Array;for(var s=this.grid,u=t.startX-1;u<t.finishX+2;u++)for(var c=t.startY-1;c<t.finishY+2;c++)if(!(u<0||c<0||u>=s.length||c>=s[0].length))for(var l=0;l<s[u][c].length;l++)if(o=s[u][c][l],t.getOwner()==o.getOwner()&&t!=o&&!e.has(o)&&!a.has(o)){var f=Math.abs(t.getCenterX()-o.getCenterX())-(t.getWidth()/2+o.getWidth()/2),h=Math.abs(t.getCenterY()-o.getCenterY())-(t.getHeight()/2+o.getHeight()/2);f<=this.repulsionRange&&h<=this.repulsionRange&&a.add(o)}t.surrounding=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a))}for(u=0;u<t.surrounding.length;u++)this.calcRepulsionForce(t,t.surrounding[u])},u.prototype.calcRepulsionRange=function(){return 0},t.exports=u},function(t,e,n){"use strict";var r=n(1),i=n(7);function o(t,e,n){r.call(this,t,e,n),this.idealLength=i.DEFAULT_EDGE_LENGTH}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];t.exports=o},function(t,e,n){"use strict";var r=n(3);function i(t,e,n,i){r.call(this,t,e,n,i),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];i.prototype.setGridCoordinates=function(t,e,n,r){this.startX=t,this.finishX=e,this.startY=n,this.finishY=r},t.exports=i},function(t,e,n){"use strict";function r(t,e){this.width=0,this.height=0,null!==t&&null!==e&&(this.height=e,this.width=t)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},t.exports=r},function(t,e,n){"use strict";var r=n(14);function i(){this.map={},this.keys=[]}i.prototype.put=function(t,e){var n=r.createID(t);this.contains(n)||(this.map[n]=e,this.keys.push(t))},i.prototype.contains=function(t){return r.createID(t),null!=this.map[t]},i.prototype.get=function(t){var e=r.createID(t);return this.map[e]},i.prototype.keySet=function(){return this.keys},t.exports=i},function(t,e,n){"use strict";var r=n(14);function i(){this.set={}}i.prototype.add=function(t){var e=r.createID(t);this.contains(e)||(this.set[e]=t)},i.prototype.remove=function(t){delete this.set[r.createID(t)]},i.prototype.clear=function(){this.set={}},i.prototype.contains=function(t){return this.set[r.createID(t)]==t},i.prototype.isEmpty=function(){return 0===this.size()},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAllTo=function(t){for(var e=Object.keys(this.set),n=e.length,r=0;r<n;r++)t.push(this.set[e[r]])},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAll=function(t){for(var e=t.length,n=0;n<e;n++){var r=t[n];this.add(r)}},t.exports=i},function(t,e,n){"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(11),o=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null===n&&void 0===n||(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=e instanceof i?e.size():e.length,this._quicksort(e,0,r-1)}return r(t,[{key:"_quicksort",value:function(t,e,n){if(e<n){var r=this._partition(t,e,n);this._quicksort(t,e,r),this._quicksort(t,r+1,n)}}},{key:"_partition",value:function(t,e,n){for(var r=this._get(t,e),i=e,o=n;;){for(;this.compareFunction(r,this._get(t,o));)o--;for(;this.compareFunction(this._get(t,i),r);)i++;if(!(i<o))return o;this._swap(t,i,o),i++,o--}}},{key:"_get",value:function(t,e){return t instanceof i?t.get_object_at(e):t[e]}},{key:"_set",value:function(t,e,n){t instanceof i?t.set_object_at(e,n):t[e]=n}},{key:"_swap",value:function(t,e,n){var r=this._get(t,e);this._set(t,e,this._get(t,n)),this._set(t,n,r)}},{key:"_defaultCompareFunction",value:function(t,e){return e>t}}]),t}();t.exports=o},function(t,e,n){"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i(this,t),this.sequence1=e,this.sequence2=n,this.match_score=r,this.mismatch_penalty=o,this.gap_penalty=a,this.iMax=e.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var u=0;u<this.jMax;u++)this.grid[s][u]=0}this.tracebackGrid=new Array(this.iMax);for(var c=0;c<this.iMax;c++){this.tracebackGrid[c]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[c][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(t,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var n=1;n<this.iMax;n++)for(var r=1;r<this.jMax;r++){var i=[this.sequence1[n-1]===this.sequence2[r-1]?this.grid[n-1][r-1]+this.match_score:this.grid[n-1][r-1]+this.mismatch_penalty,this.grid[n-1][r]+this.gap_penalty,this.grid[n][r-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(i);this.grid[n][r]=i[o[0]],this.tracebackGrid[n][r]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],n=this.tracebackGrid[e.pos[0]][e.pos[1]];n[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),n[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),n[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),0===e.pos[0]&&0===e.pos[1]&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var n=[],r=-1;-1!==(r=t.indexOf(e,r+1));)n.push(r);return n}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),t}();t.exports=o},function(t,e,n){"use strict";var r=function(){};r.FDLayout=n(18),r.FDLayoutConstants=n(7),r.FDLayoutEdge=n(19),r.FDLayoutNode=n(20),r.DimensionD=n(21),r.HashMap=n(22),r.HashSet=n(23),r.IGeometry=n(8),r.IMath=n(9),r.Integer=n(10),r.Point=n(12),r.PointD=n(4),r.RandomSeed=n(16),r.RectangleD=n(13),r.Transform=n(17),r.UniqueIDGeneretor=n(14),r.Quicksort=n(24),r.LinkedList=n(11),r.LGraphObject=n(2),r.LGraph=n(5),r.LEdge=n(1),r.LGraphManager=n(6),r.LNode=n(3),r.Layout=n(15),r.LayoutConstants=n(0),r.NeedlemanWunsch=n(25),t.exports=r},function(t,e,n){"use strict";function r(){this.listeners=[]}var i=r.prototype;i.addListener=function(t,e){this.listeners.push({event:t,callback:e})},i.removeListener=function(t,e){for(var n=this.listeners.length;n>=0;n--){var r=this.listeners[n];r.event===t&&r.callback===e&&this.listeners.splice(n,1)}},i.emit=function(t,e){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];t===r.event&&r.callback(e)}},t.exports=r}])},t.exports=r()},function(t,e,n){var r;r=function(t){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 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?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(1),o=n(2),a=n(5)||("undefined"!=typeof window?window.cola:null),s=n(4),u=function(t){return(void 0===t?"undefined":r(t))===r(0)},c=function(){},l=function(t,e){return function(t){return null!=t&&(void 0===t?"undefined":r(t))===r((function(){}))}(t)?t.apply(e,[e]):t};function f(t){this.options=i({},o,t)}f.prototype.run=function(){var t=this,e=this.options;t.manuallyStopped=!1;var n=e.cy,i=e.eles,o=i.nodes(),f=i.edges(),h=!1,d=o.filter((function(t){return t.isParent()})),p=o.subtract(d),g=e.boundingBox||{x1:0,y1:0,w:n.width(),h:n.height()};void 0===g.x2&&(g.x2=g.x1+g.w),void 0===g.w&&(g.w=g.x2-g.x1),void 0===g.y2&&(g.y2=g.y1+g.h),void 0===g.h&&(g.h=g.y2-g.y1);var v=function(){for(var t=0;t<o.length;t++){var r=o[t],i=r.layoutDimensions(e),a=r.scratch("cola");if(!a.updatedDims){var s=l(e.nodeSpacing,r);a.width=i.w+2*s,a.height=i.h+2*s}}o.positions((function(t){var e=t.scratch().cola,n=void 0;return!t.grabbed()&&p.contains(t)&&(n={x:g.x1+e.x,y:g.y1+e.y},u(n.x)&&u(n.y)||(n=void 0)),n})),o.updateCompoundBounds(),h||(y(),h=!0),e.fit&&n.fit(e.padding)},b=function(){e.ungrabifyWhileSimulating&&x.grabify(),n.off("destroy",_),o.off("grab free position",E),o.off("lock unlock",k),t.one("layoutstop",e.stop),t.trigger({type:"layoutstop",layout:t})},y=function(){t.one("layoutready",e.ready),t.trigger({type:"layoutready",layout:t})},w=e.refresh;w=e.refresh<0?1:Math.max(1,w);var m=t.adaptor=a.adaptor({trigger:function(t){var n=a.EventType?a.EventType.tick:null,r=a.EventType?a.EventType.end:null;switch(t.type){case"tick":case n:e.animate&&v();break;case"end":case r:v(),e.infinite||b()}},kick:function(){var n=!0,r=function(){if(t.manuallyStopped)return b(),!0;var r=m.tick();return e.infinite||n||m.convergenceThreshold(e.convergenceThreshold),n=!1,r&&e.infinite&&m.resume(),r};if(e.animate)s((function t(){(function(){for(var t=void 0,e=0;e<w&&!t;e++)t=t||r();return t})()||s(t)}));else for(;!r(););},on:c,drag:c});t.adaptor=m;var x=o.filter(":grabbable");e.ungrabifyWhileSimulating&&x.ungrabify();var _=void 0;n.one("destroy",_=function(){t.stop()});var E=void 0;o.on("grab free position",E=function(t){var e=this.scratch().cola,n=this.position();if(t.cyTarget===this||t.target===this)switch(t.type){case"grab":m.dragstart(e);break;case"free":m.dragend(e);break;case"position":e.px===n.x-g.x1&&e.py===n.y-g.y1||(e.px=n.x-g.x1,e.py=n.y-g.y1)}});var k=void 0;o.on("lock unlock",k=function(){var t=this.scratch().cola;t.fixed=this.locked(),this.locked()?m.dragstart(t):m.dragend(t)}),m.nodes(p.map((function(t,n){var r=l(e.nodeSpacing,t),i=t.position(),o=t.layoutDimensions(e);return t.scratch().cola={x:e.randomize||void 0===i.x?Math.round(Math.random()*g.w):i.x,y:e.randomize||void 0===i.y?Math.round(Math.random()*g.h):i.y,width:o.w+2*r,height:o.h+2*r,index:n,fixed:t.locked()}})));var S=[];if(e.alignment){var C=[],T=[];p.forEach((function(t){var n=l(e.alignment,t),r=t.scratch().cola.index;n&&(null!=n.x&&C.push({node:r,offset:n.x}),null!=n.y&&T.push({node:r,offset:n.y}))})),C.length>0&&S.push({type:"alignment",axis:"x",offsets:C}),T.length>0&&S.push({type:"alignment",axis:"y",offsets:T})}e.gapInequalities&&e.gapInequalities.forEach((function(t){var e=t.left.scratch().cola.index,n=t.right.scratch().cola.index;S.push({axis:t.axis,left:e,right:n,gap:t.gap,equality:t.equality})})),S.length>0&&m.constraints(S),m.groups(d.map((function(t,n){var r=l(e.nodeSpacing,t),i=function(e){return parseFloat(t.style("padding-"+e))},o=i("left")+r,a=i("right")+r,s=i("top")+r,u=i("bottom")+r;return t.scratch().cola={index:n,padding:Math.max(o,a,s,u),leaves:t.children().intersection(p).map((function(t){return t[0].scratch().cola.index})),fixed:t.locked()},t})).map((function(t){return t.scratch().cola.groups=t.children().intersection(d).map((function(t){return t.scratch().cola.index})),t.scratch().cola})));var A=void 0,N=void 0;if(null!=e.edgeLength?(A=e.edgeLength,N="linkDistance"):null!=e.edgeSymDiffLength?(A=e.edgeSymDiffLength,N="symmetricDiffLinkLengths"):null!=e.edgeJaccardLength?(A=e.edgeJaccardLength,N="jaccardLinkLengths"):(A=100,N="linkDistance"),m.links(f.stdFilter((function(t){return p.contains(t.source())&&p.contains(t.target())})).map((function(t){var e=t.scratch().cola={source:t.source()[0].scratch().cola.index,target:t.target()[0].scratch().cola.index};return null!=A&&(e.calcLength=l(A,t)),e}))),m.size([g.w,g.h]),null!=A&&m[N]((function(t){return t.calcLength})),e.flow){var O=void 0;!function(t){return(void 0===t?"undefined":r(t))===r("")}(e.flow)?u(e.flow)?O={axis:"y",minSeparation:e.flow}:function(t){return null!=t&&(void 0===t?"undefined":r(t))===r({})}(e.flow)?((O=e.flow).axis=O.axis||"y",O.minSeparation=null!=O.minSeparation?O.minSeparation:50):O={axis:"y",minSeparation:50}:O={axis:e.flow,minSeparation:50},m.flowLayout(O.axis,O.minSeparation)}return t.trigger({type:"layoutstart",layout:t}),m.avoidOverlaps(e.avoidOverlap).handleDisconnected(e.handleDisconnected).start(e.unconstrIter,e.userConstIter,e.allConstIter),e.infinite||setTimeout((function(){t.manuallyStopped||m.stop()}),e.maxSimulationTime),this},f.prototype.stop=function(){return this.adaptor&&(this.manuallyStopped=!0,this.adaptor.stop()),this},t.exports=f},function(t,e,n){"use strict";t.exports=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.filter((function(t){return null!=t})).forEach((function(e){Object.keys(e).forEach((function(n){return t[n]=e[n]}))})),t}},function(t,e,n){"use strict";var r={animate:!0,refresh:1,maxSimulationTime:4e3,ungrabifyWhileSimulating:!1,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,ready:function(){},stop:function(){},randomize:!1,avoidOverlap:!0,handleDisconnected:!0,convergenceThreshold:.01,nodeSpacing:function(t){return 10},flow:void 0,alignment:void 0,gapInequalities:void 0,edgeLength:void 0,edgeSymDiffLength:void 0,edgeJaccardLength:void 0,unconstrIter:void 0,userConstIter:void 0,allConstIter:void 0,infinite:!1};t.exports=r},function(t,e,n){"use strict";var r=n(0),i=function(t){t&&t("layout","cola",r)};"undefined"!=typeof cytoscape&&i(cytoscape),t.exports=i},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=void 0;i="undefined"!==("undefined"==typeof window?"undefined":r(window))?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)}:function(t){t()},t.exports=i},function(e,n){e.exports=t}])},t.exports=r(n(148))},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(149)),r(n(150)),r(n(48)),r(n(75)),r(n(77)),r(n(76)),r(n(21)),r(n(153)),r(n(47)),r(n(72)),r(n(74)),r(n(73)),r(n(22)),r(n(29)),r(n(49)),r(n(154))},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(21),a=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=a,e.adaptor=function(t){return new a(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(151),i=n(152);e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(21),a=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",(function(t){o.Layout.drag(t,d3.event),n.resume()})).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer((function(){return t.prototype.tick.call(e)}))},e.prototype.on=function(t,e){return"string"==typeof t?this.event.on(t,e):this.event.on(o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a,e.d3adaptor=function(){return new a}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(21),a=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",(function(t){o.Layout.drag(t,e.event),r.resume()})).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer((function(){return t.prototype.tick.call(e)&&n.stop()}))},e.prototype.on=function(t,e){return"string"==typeof t?this.event.on(t,e):this.event.on(o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),i=n(48),o=n(22),a=n(47),s=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce((function(t,n){var r=n[e.target]-n[e.source];return t+r*r}),0))},t}();e.Link3D=s;var u=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n};e.Node3D=u;var c=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o<t.k;++o)this.result[o]=new Array(e.length);e.forEach((function(e,n){for(var r=0,o=t.dims;r<o.length;r++){var a=o[r];void 0===e[a]&&(e[a]=Math.random())}i.result[0][n]=e.x,i.result[1][n]=e.y,i.result[2][n]=e.z}))}return t.prototype.linkLength=function(t){return t.actualLength(this.result)},t.prototype.start=function(t){var e=this;void 0===t&&(t=100);var n=this.nodes.length,s=new l;this.useJaccardLinkLengths&&a.jaccardLinkLengths(this.links,s,1.5),this.links.forEach((function(t){return t.length*=e.idealLinkLength}));var u=new r.Calculator(n,this.links,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).DistanceMatrix(),c=i.Descent.createSquareMatrix(n,(function(t,e){return u[t][e]})),f=i.Descent.createSquareMatrix(n,(function(){return 2}));this.links.forEach((function(t){var e=t.source,n=t.target;return f[e][n]=f[n][e]=1})),this.descent=new i.Descent(this.result,c),this.descent.threshold=.001,this.descent.G=f,this.constraints&&(this.descent.project=new o.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var h=0;h<this.nodes.length;h++){var d=this.nodes[h];d.fixed&&this.descent.locks.add(h,[d.x,d.y,d.z])}return this.descent.run(t),this},t.prototype.tick=function(){this.descent.locks.clear();for(var t=0;t<this.nodes.length;t++){var e=this.nodes[t];e.fixed&&this.descent.locks.add(t,[e.x,e.y,e.z])}return this.descent.rungeKutta()},t.dims=["x","y","z"],t.k=t.dims.length,t}();e.Layout3D=c;var l=function(){function t(){}return t.prototype.getSourceIndex=function(t){return t.source},t.prototype.getTargetIndex=function(t){return t.target},t.prototype.getLength=function(t){return t.length},t.prototype.setLength=function(t,e){t.length=e},t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21),i=n(77);e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach((function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}})),e.forEach((function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map((function(e){return t.length+e.id})):[]).concat(void 0!==e.leaves?e.leaves.map((function(t){return t.index})):[])}}));var o=t.concat(e).map((function(t,e){return t.routerNode.id=e,t.routerNode}));return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,(function(t){return t.source.routerNode.id}),(function(t){return t.target.routerNode.id}))},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach((function(t,e){return t.index=e})),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){return t.padding=n}))}));var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach((function(t,e){return t.index=e})),i.groups.forEach((function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach((function(t){return a.push({source:e,target:t.index})})),void 0!==t.groups&&t.groups.forEach((function(t){return a.push({source:e,target:t.id+o})}))})),i.powerEdges.forEach((function(t){a.push({source:t.source.index,target:t.target.index})})),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){t.padding=n}))})).start(50,0,100,0,!1),powerGraph:i}}},function(t,e,n){var r;r=function(t){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 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?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(2),o=n(1),a=n(4);function s(t){this.options=o({},i,t)}s.prototype.run=function(){var t=this.options,e=t.cy,n=t.eles,i=function(t,e){return function(t){return"function"==typeof t}(e)?e.apply(t,[t]):e},o=t.boundingBox||{x1:0,y1:0,w:e.width(),h:e.height()};void 0===o.x2&&(o.x2=o.x1+o.w),void 0===o.w&&(o.w=o.x2-o.x1),void 0===o.y2&&(o.y2=o.y1+o.h),void 0===o.h&&(o.h=o.y2-o.y1);var s=new a.graphlib.Graph({multigraph:!0,compound:!0}),u={},c=function(t,e){null!=e&&(u[t]=e)};c("nodesep",t.nodeSep),c("edgesep",t.edgeSep),c("ranksep",t.rankSep),c("rankdir",t.rankDir),c("ranker",t.ranker),s.setGraph(u),s.setDefaultEdgeLabel((function(){return{}})),s.setDefaultNodeLabel((function(){return{}}));for(var l=n.nodes(),f=0;f<l.length;f++){var h=l[f],d=h.layoutDimensions(t);s.setNode(h.id(),{width:d.w,height:d.h,name:h.id()})}for(var p=0;p<l.length;p++){var g=l[p];g.isChild()&&s.setParent(g.id(),g.parent().id())}for(var v=n.edges().stdFilter((function(t){return!t.source().isParent()&&!t.target().isParent()})),b=0;b<v.length;b++){var y=v[b];s.setEdge(y.source().id(),y.target().id(),{minlen:i(y,t.minLen),weight:i(y,t.edgeWeight),name:y.id()},y.id())}a.layout(s);for(var w=s.nodes(),m=0;m<w.length;m++){var x=w[m],_=s.node(x);e.getElementById(x).scratch().dagre=_}var E=void 0;return t.boundingBox?(E={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0},l.forEach((function(t){var e=t.scratch().dagre;E.x1=Math.min(E.x1,e.x),E.x2=Math.max(E.x2,e.x),E.y1=Math.min(E.y1,e.y),E.y2=Math.max(E.y2,e.y)})),E.w=E.x2-E.x1,E.h=E.y2-E.y1):E=o,l.layoutPositions(this,t,(function(e){var n=(e="object"===(void 0===e?"undefined":r(e))?e:this).scratch().dagre;return function(e){if(t.boundingBox){var n=0===E.w?0:(e.x-E.x1)/E.w,r=0===E.h?0:(e.y-E.y1)/E.h;return{x:o.x1+n*o.w,y:o.y1+r*o.h}}return e}({x:n.x,y:n.y})})),this},t.exports=s},function(t,e,n){"use strict";t.exports=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach((function(e){Object.keys(e).forEach((function(n){return t[n]=e[n]}))})),t}},function(t,e,n){"use strict";var r={nodeSep:void 0,edgeSep:void 0,rankSep:void 0,rankDir:void 0,ranker:void 0,minLen:function(t){return 1},edgeWeight:function(t){return 1},fit:!0,padding:30,spacingFactor:void 0,nodeDimensionsIncludeLabels:!1,animate:!1,animateFilter:function(t,e){return!0},animationDuration:500,animationEasing:void 0,boundingBox:void 0,transform:function(t,e){return e},ready:function(){},stop:function(){}};t.exports=r},function(t,e,n){"use strict";var r=n(0),i=function(t){t&&t("layout","dagre",r)};"undefined"!=typeof cytoscape&&i(cytoscape),t.exports=i},function(e,n){e.exports=t}])},t.exports=r(n(156))},function(t,e,n){t.exports={graphlib:n(5),layout:n(270),debug:n(329),util:{time:n(2).time,notime:n(2).notime},version:n(330)}},function(t,e,n){var r=n(158);t.exports={Graph:r.Graph,json:n(260),alg:n(261),version:r.version}},function(t,e,n){t.exports={Graph:n(50),version:n(259)}},function(t,e,n){var r=n(78);t.exports=function(t){return r(t,4)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(32),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(32);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(32);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(32);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(31);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(31),i=n(51),o=n(52);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(23),i=n(173),o=n(4),a=n(80),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:s).test(a(t))}},function(t,e,n){var r=n(15),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,i=n(174),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(6)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(177),i=n(31),o=n(51);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(178),i=n(179),o=n(180),a=n(181),s=n(182);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(33);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(33),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(33),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(33);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(34);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(34);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(34);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(34);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(24),i=n(10);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(12),i=n(7);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(12),i=n(54),o=n(7),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(83)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(24),i=n(17);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(4),i=n(39),o=n(196),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(24),i=n(57);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(24),i=n(88);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(90),i=n(88),o=n(17);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(11)(n(6),"DataView");t.exports=r},function(t,e,n){var r=n(11)(n(6),"Promise");t.exports=r},function(t,e,n){var r=n(11)(n(6),"WeakMap");t.exports=r},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(59),i=n(205),o=n(206),a=n(207),s=n(93);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},function(t,e,n){var r=n(59);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(15),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var r=n(209),i=n(38),o=n(55),a=o&&o.isMap,s=a?i(a):r;t.exports=s},function(t,e,n){var r=n(18),i=n(7);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(211),i=n(38),o=n(55),a=o&&o.isSet,s=a?i(a):r;t.exports=s},function(t,e,n){var r=n(18),i=n(7);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},function(t,e,n){var r=n(8);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(t,e,n){var r=n(41);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},function(t,e,n){var r=n(216),i=n(224),o=n(105);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(30),i=n(100);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var l=(c=n[a])[0],f=t[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new r;if(o)var p=o(f,h,l,t,e,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},function(t,e,n){var r=n(30),i=n(101),o=n(221),a=n(223),s=n(18),u=n(1),c=n(16),l=n(26),f="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var v=u(t),b=u(e),y=v?"[object Array]":s(t),w=b?"[object Array]":s(e),m=(y="[object Arguments]"==y?f:y)==f,x=(w="[object Arguments]"==w?f:w)==f,_=y==w;if(_&&c(t)){if(!c(e))return!1;v=!0,m=!1}if(_&&!m)return g||(g=new r),v||l(t)?i(t,e,n,d,p,g):o(t,e,y,n,d,p,g);if(!(1&n)){var E=m&&h.call(t,"__wrapped__"),k=x&&h.call(e,"__wrapped__");if(E||k){var S=E?t.value():t,C=k?e.value():e;return g||(g=new r),p(S,C,n,d,g)}}return!!_&&(g||(g=new r),a(t,e,n,d,p,g))}},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(15),i=n(92),o=n(14),a=n(101),s=n(222),u=n(63),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=s;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=e.size&&!p)return!1;var g=h.get(t);if(g)return g==e;r|=2,h.set(t,e);var v=a(d(t),d(e),r,c,f,h);return h.delete(t),v;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e,n){var r=n(89),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var u=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!u)return!1;for(var f=l;f--;){var h=c[f];if(!(u?h in e:i.call(e,h)))return!1}var d=s.get(t);if(d&&s.get(e))return d==e;var p=!0;s.set(t,e),s.set(e,t);for(var g=u;++f<l;){var v=t[h=c[f]],b=e[h];if(o)var y=u?o(b,v,h,e,t,s):o(v,b,h,t,e,s);if(!(void 0===y?v===b||a(v,b,n,o,s):y)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var w=t.constructor,m=e.constructor;w==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof m&&m instanceof m||(p=!1)}return s.delete(t),s.delete(e),p}},function(t,e,n){var r=n(104),i=n(10);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},function(t,e,n){var r=n(100),i=n(226),o=n(107),a=n(65),s=n(104),u=n(105),c=n(27);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},function(t,e,n){var r=n(64);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(228),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var r=n(229);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(52);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(15),i=n(43),o=n(1),a=n(19),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(109),i=n(233),o=n(65),a=n(27);t.exports=function(t){return o(t)?r(a(t)):i(t)}},function(t,e,n){var r=n(64);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},function(t,e,n){var r=n(56),i=n(18),o=n(25),a=n(1),s=n(8),u=n(16),c=n(39),l=n(26),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}},function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},function(t,e){t.exports=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},function(t,e,n){var r=n(56),i=n(18),o=n(8),a=n(239),s=n(240);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},function(t,e,n){var r=n(12),i=n(1),o=n(7);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},function(t,e,n){var r=n(241),i=n(242),o=n(243);t.exports=function(t){return i(t)?o(t):r(t)}},function(t,e,n){var r=n(109)("length");t.exports=r},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),l="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+l+c,"g");t.exports=function(t){for(var e=f.lastIndex=0;f.test(t);)++e;return e}},function(t,e,n){var r=n(53),i=n(95),o=n(61),a=n(9),s=n(40),u=n(1),c=n(16),l=n(23),f=n(4),h=n(26);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||h(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:f(t)&&l(g)?i(s(t)):{}}return(p?r:o)(t,(function(t,r,i){return e(n,t,r,i)})),n}},function(t,e,n){var r=n(66),i=n(44),o=n(250),a=n(118),s=i((function(t){return o(r(t,1,a,!0))}));t.exports=s},function(t,e,n){var r=n(15),i=n(25),o=n(1),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(60),i=n(81),o=n(13),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(102),i=n(251),o=n(255),a=n(103),s=n(256),u=n(63);t.exports=function(t,e,n){var c=-1,l=i,f=t.length,h=!0,d=[],p=d;if(n)h=!1,l=o;else if(f>=200){var g=e?null:s(t);if(g)return u(g);h=!1,l=a,p=new r}else p=e?[]:d;t:for(;++c<f;){var v=t[c],b=e?e(v):v;if(v=n||0!==v?v:0,h&&b==b){for(var y=p.length;y--;)if(p[y]===b)continue t;e&&p.push(b),d.push(v)}else l(p,b,n)||(p!==d&&p.push(b),d.push(v))}return d}},function(t,e,n){var r=n(252);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e,n){var r=n(117),i=n(253),o=n(254);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e,n){var r=n(91),i=n(257),o=n(63),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(43);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},function(t,e){t.exports="2.1.8"},function(t,e,n){var r=n(3),i=n(50);function o(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function a(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};r.isUndefined(t.graph())||(e.value=r.clone(t.graph()));return e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},function(t,e,n){t.exports={components:n(262),dijkstra:n(120),dijkstraAll:n(263),findCycles:n(264),floydWarshall:n(265),isAcyclic:n(266),postorder:n(267),preorder:n(268),prim:n(269),tarjan:n(122),topsort:n(123)}},function(t,e,n){var r=n(3);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}},function(t,e,n){var r=n(120),i=n(3);t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,e,n)}),{})}},function(t,e,n){var r=n(3),i=n(122);t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,n){var r=n(3);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[t],i=e[n],a=o[n],s=r.distance+i.distance;s<a.distance&&(a.distance=s,a.predecessor=i.predecessor)}))}))})),r}(t,e||i,n||function(e){return t.outEdges(e)})};var i=r.constant(1)},function(t,e,n){var r=n(123);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},function(t,e,n){var r=n(124);t.exports=function(t,e){return r(t,e,"post")}},function(t,e,n){var r=n(124);t.exports=function(t,e){return r(t,e,"pre")}},function(t,e,n){var r=n(3),i=n(50),o=n(121);t.exports=function(t,e){var n,a=new i,s={},u=new o;function c(t){var r=t.v===n?t.w:t.v,i=u.priority(r);if(void 0!==i){var o=e(t);o<i&&(s[r]=n,u.decrease(r,o))}}if(0===t.nodeCount())return a;r.each(t.nodes(),(function(t){u.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),u.decrease(t.nodes()[0],0);var l=!1;for(;u.size()>0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},function(t,e,n){"use strict";var r=n(0),i=n(308),o=n(311),a=n(312),s=n(2).normalizeRanks,u=n(314),c=n(2).removeEmptyRanks,l=n(315),f=n(316),h=n(317),d=n(318),p=n(327),g=n(2),v=n(5).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=C(t.graph());return e.setGraph(r.merge({},y,S(n,b),r.pick(n,w))),r.forEach(t.nodes(),(function(n){var i=C(t.node(n));e.setNode(n,r.defaults(S(i,m),x)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=C(t.edge(n));e.setEdge(n,r.merge({},E,S(i,_),r.pick(i,k)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){a(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){c(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),(function(e){c(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&c(n)})),e-=s,i-=u,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),a.width=n-e+s,a.height=o-i+u}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var b=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},w=["acyclicer","ranker","rankdir","align"],m=["width","height"],x={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function S(t,e){return r.mapValues(r.pick(t,e),Number)}function C(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},function(t,e,n){var r=n(78);t.exports=function(t){return r(t,5)}},function(t,e,n){var r=n(44),i=n(14),o=n(45),a=n(17),s=Object.prototype,u=s.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var l=e[n],f=a(l),h=-1,d=f.length;++h<d;){var p=f[h],g=t[p];(void 0===g||i(g,s[p])&&!u.call(t,p))&&(t[p]=l[p])}return t}));t.exports=c},function(t,e,n){var r=n(274)(n(275));t.exports=r},function(t,e,n){var r=n(9),i=n(8),o=n(10);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[u?e[c]:c]:void 0}}},function(t,e,n){var r=n(117),i=n(9),o=n(276),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(t,i(e,3),u)}},function(t,e,n){var r=n(125);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(4),i=n(19),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){var r=n(62),i=n(98),o=n(17);t.exports=function(t,e){return null==t?t:r(t,i(e),o)}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(36),i=n(61),o=n(9);t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},function(t,e,n){var r=n(67),i=n(282),o=n(13);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,n){var r=n(284),i=n(288)((function(t,e,n){r(t,e,n)}));t.exports=i},function(t,e,n){var r=n(30),i=n(127),o=n(62),a=n(285),s=n(4),u=n(17),c=n(128);t.exports=function t(e,n,l,f,h){e!==n&&o(n,(function(o,u){if(h||(h=new r),s(o))a(e,n,u,l,t,f,h);else{var d=f?f(c(e,u),o,u+"",e,n,h):void 0;void 0===d&&(d=o),i(e,u,d)}}),u)}},function(t,e,n){var r=n(127),i=n(84),o=n(93),a=n(85),s=n(94),u=n(25),c=n(1),l=n(118),f=n(16),h=n(23),d=n(4),p=n(286),g=n(26),v=n(128),b=n(287);t.exports=function(t,e,n,y,w,m,x){var _=v(t,n),E=v(e,n),k=x.get(E);if(k)r(t,n,k);else{var S=m?m(_,E,n+"",t,e,x):void 0,C=void 0===S;if(C){var T=c(E),A=!T&&f(E),N=!T&&!A&&g(E);S=E,T||A||N?c(_)?S=_:l(_)?S=a(_):A?(C=!1,S=i(E,!0)):N?(C=!1,S=o(E,!0)):S=[]:p(E)||u(E)?(S=_,u(_)?S=b(_):d(_)&&!h(_)||(S=s(E))):C=!1}C&&(x.set(E,S),w(S,E,y,m,x),x.delete(E)),r(t,n,S)}}},function(t,e,n){var r=n(12),i=n(40),o=n(7),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},function(t,e,n){var r=n(24),i=n(17);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(44),i=n(45);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var u=n[r];u&&t(e,u,r,a)}return e}))}},function(t,e,n){var r=n(67),i=n(129),o=n(13);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e,n){var r=n(67),i=n(9),o=n(129);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},function(t,e,n){var r=n(6);t.exports=function(){return r.Date.now()}},function(t,e,n){var r=n(293),i=n(296)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},function(t,e,n){var r=n(294),i=n(107);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},function(t,e,n){var r=n(64),i=n(295),o=n(42);t.exports=function(t,e,n){for(var a=-1,s=e.length,u={};++a<s;){var c=e[a],l=r(t,c);n(l,c)&&i(u,o(c,t),l)}return u}},function(t,e,n){var r=n(35),i=n(42),o=n(37),a=n(4),s=n(27);t.exports=function(t,e,n,u){if(!a(t))return t;for(var c=-1,l=(e=i(e,t)).length,f=l-1,h=t;null!=h&&++c<l;){var d=s(e[c]),p=n;if(c!=f){var g=h[d];void 0===(p=u?u(g,d,h):void 0)&&(p=a(g)?g:o(e[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}},function(t,e,n){var r=n(126),i=n(115),o=n(116);t.exports=function(t){return o(i(t,void 0,r),t+"")}},function(t,e,n){var r=n(298)();t.exports=r},function(t,e,n){var r=n(299),i=n(45),o=n(125);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}},function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,i,o){for(var a=-1,s=r(n((e-t)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=t,t+=i;return u}},function(t,e,n){var r=n(66),i=n(301),o=n(44),a=n(45),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},function(t,e,n){var r=n(43),i=n(9),o=n(113),a=n(302),s=n(38),u=n(303),c=n(13);t.exports=function(t,e,n){var l=-1;e=r(e.length?e:[c],s(i));var f=o(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++l,value:t}}));return a(f,(function(t,e){return u(t,e,n)}))}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(304);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,u=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(19);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t<e||l&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}},function(t,e,n){var r=n(106),i=0;t.exports=function(t){var e=++i;return r(t)+e}},function(t,e,n){var r=n(35),i=n(307);t.exports=function(t,e){return i(t||[],e||[],r)}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}},function(t,e,n){"use strict";var r=n(0),i=n(309);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])}return r.forEach(t.nodes(),o),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},function(t,e,n){var r=n(0),i=n(5).Graph,o=n(310);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,a=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),o=r+i;n.setEdge(t.v,t.w,o),s=Math.max(s,n.node(t.v).out+=i),a=Math.max(a,n.node(t.w).in+=i)}));var c=r.range(s+a+3).map((function(){return new o})),l=a+1;return r.forEach(n.nodes(),(function(t){u(c,l,n.node(t))})),{graph:n,buckets:c,zeroIdx:l}}(t,e||a),c=function(t,e,n){var r,i=[],o=e[e.length-1],a=e[0];for(;t.nodeCount();){for(;r=a.dequeue();)s(t,e,n,r);for(;r=o.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var u=e.length-2;u>0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,u(e,n,a)})),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},function(t,e,n){"use strict";var r=n(0),i=n(2);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,f=t.edge(e),h=f.labelRank;if(c===s+1)return;for(t.removeEdge(e),o=0,++s;s<c;++o,++s)f.points=[],r={width:0,height:0,edgeLabel:f,edgeObj:e,rank:s},n=i.addDummyNode(t,"edge",r,"_d"),s===h&&(r.width=f.width,r.height=f.height,r.dummy="edge-label",r.labelpos=f.labelpos),t.setEdge(a,n,{weight:f.weight},l),0===o&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,u,{weight:f.weight},l)}(t,e)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}}},function(t,e,n){"use strict";var r=n(46).longestPath,i=n(130),o=n(313);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":s(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":a(t);break;default:s(t)}};var a=r;function s(t){o(t)}},function(t,e,n){"use strict";var r=n(0),i=n(130),o=n(46).slack,a=n(46).longestPath,s=n(5).alg.preorder,u=n(5).alg.postorder,c=n(2).simplify;function l(t){t=c(t),a(t);var e,n=i(t);for(d(n),f(n,t);e=g(n);)b(n,t,e,v(n,t,e))}function f(t,e){var n=u(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=h(t,e,n)}(t,e,n)}))}function h(t,e,n){var i=t.node(n).parent,o=!0,a=e.edge(n,i),s=0;return a||(o=!1,a=e.edge(i,n)),s=a.weight,r.forEach(e.nodeEdges(n),(function(r){var a,u,c=r.v===n,l=c?r.w:r.v;if(l!==i){var f=c===o,h=e.edge(r).weight;if(s+=f?h:-h,a=n,u=l,t.hasEdge(a,u)){var d=t.edge(n,l).cutvalue;s+=f?-d:d}}})),s}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,o){var a=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=p(t,e,n,o,i))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function g(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function v(t,e,n){var i=n.v,a=n.w;e.hasEdge(i,a)||(i=n.w,a=n.v);var s=t.node(i),u=t.node(a),c=s,l=!1;s.lim>u.lim&&(c=u,l=!0);var f=r.filter(e.edges(),(function(e){return l===y(t,t.node(e.v),c)&&l!==y(t,t.node(e.w),c)}));return r.minBy(f,(function(t){return o(e,t)}))}function b(t,e,n,i){var o=n.v,a=n.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),d(t),f(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=f,l.calcCutValue=h,l.leaveEdge=g,l.enterEdge=v,l.exchangeEdges=b},function(t,e,n){var r=n(0);t.exports=function(t){var e=function(t){var e={},n=0;function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}return r.forEach(t.children(),i),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));o=i,i=r;for(;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRank<r.rank;)u++;c===s&&(l=!1)}if(!l){for(;u<a.length-1&&t.node(c=a[u+1]).minRank<=r.rank;)u++;c=a[u]}t.setParent(n,c),n=t.successors(n)[0]}}))}},function(t,e,n){var r=n(0),i=n(2);t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return r.forEach(t.children(),(function(n){!function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){n(t,o+1)}));e[i]=o}(n,1)})),e}(t),o=r.max(r.values(n))-1,a=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var s=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(u){!function t(e,n,o,a,s,u,c){var l=e.children(c);if(!l.length)return void(c!==n&&e.setEdge(n,c,{weight:0,minlen:o}));var f=i.addBorderNode(e,"_bt"),h=i.addBorderNode(e,"_bb"),d=e.node(c);e.setParent(f,c),d.borderTop=f,e.setParent(h,c),d.borderBottom=h,r.forEach(l,(function(r){t(e,n,o,a,s,u,r);var i=e.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:s-u[c]+1;e.setEdge(f,l,{weight:p,minlen:g,nestingEdge:!0}),e.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})})),e.parent(c)||e.setEdge(n,f,{weight:0,minlen:s+u[c]})}(t,e,a,s,o,n,u)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},function(t,e,n){var r=n(0),i=n(2);function o(t,e,n,r,o,a){var s={width:0,height:0,rank:a,borderType:e},u=o[e][a-1],c=i.addDummyNode(t,"border",s,n);o[e][a]=c,t.setParent(c,r),u&&t.setEdge(u,c,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),a=t.node(n);if(i.length&&r.forEach(i,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,u=a.maxRank+1;s<u;++s)o(t,"borderLeft","_bl",n,a,s),o(t,"borderRight","_br",n,a,s)}}))}},function(t,e,n){"use strict";var r=n(0);function i(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){o(t.edge(e))}))}function o(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(t);"lr"!==e&&"rl"!==e||(!function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),i(t))}}},function(t,e,n){"use strict";var r=n(0),i=n(319),o=n(320),a=n(321),s=n(325),u=n(326),c=n(5).Graph,l=n(2);function f(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function h(t,e){var n=new c;r.forEach(t,(function(t){var i=t.graph().root,o=a(t,i,n,e);r.forEach(o.vs,(function(e,n){t.node(e).order=n})),u(t,n,o.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=l.maxRank(t),n=f(t,r.range(1,e+1),"inEdges"),a=f(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);d(t,s);for(var u,c=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?n:a,p%4>=2),s=l.buildLayerMatrix(t);var v=o(t,s);v<c&&(g=0,u=r.cloneDeep(s),c=v)}d(t,u)}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]}));var a=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(a,(function n(i){if(r.has(e,i))return;e[i]=!0;var a=t.node(i);o[a.rank].push(i),r.forEach(t.successors(i),n)})),o}},function(t,e,n){"use strict";var r=n(0);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var u=r.map(new Array(s),(function(){return 0})),c=0;return r.forEach(o.forEach((function(t){var e=t.pos+a;u[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}t.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=i(t,e[r-1],e[r]);return n}},function(t,e,n){var r=n(0),i=n(322),o=n(323),a=n(324);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),f=l?l.borderLeft:void 0,h=l?l.borderRight:void 0,d={};f&&(c=r.filter(c,(function(t){return t!==f&&t!==h})));var p=i(e,c);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(o=n,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var g=o(p,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,d);var v=a(g,u);if(f&&(v.vs=r.flatten([f,v.vs,h],!0),e.predecessors(f).length)){var b=e.node(e.predecessors(f)[0]),y=e.node(e.predecessors(h)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+b.order+y.order)/(v.weight+2),v.weight+=2}return v}},function(t,e,n){var r=n(0);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},function(t,e,n){var r=n(0),i=n(2);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=n.lhs,s=r.sortBy(n.rhs,(function(t){return-t.i})),u=[],c=0,l=0,f=0;a.sort((h=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:h?e.i-t.i:t.i-e.i})),f=o(u,s,f),r.forEach(a,(function(t){f+=t.vs.length,u.push(t.vs),c+=t.barycenter*t.weight,l+=t.weight,f=o(u,s,f)}));var h;var d={vs:r.flatten(u,!0)};l&&(d.barycenter=c/l,d.weight=l);return d}},function(t,e,n){var r=n(0),i=n(5).Graph;t.exports=function(t,e,n){var o=function(t){var e;for(;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),u=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),a}},function(t,e,n){var r=n(0);t.exports=function(t,e,n){var i,o={};r.forEach(n,(function(n){for(var r,a,s=t.parent(n);s;){if((r=t.parent(s))?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s)return void e.setEdge(a,s);s=r}}))}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(328).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,o=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+i/2})),o+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(e,n){t.node(n).x=e}))}},function(t,e,n){"use strict";var r=n(0),i=n(5).Graph,o=n(2);function a(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,a=0,s=e.length,c=r.last(i);return r.forEach(i,(function(e,l){var f=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=f?t.node(f).order:s;(f||e===c)&&(r.forEach(i.slice(a,l+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),a=i.order;!(a<o||h<a)||i.dummy&&t.node(e).dummy||u(n,r,e)}))})),a=l+1,o=h)})),i})),n}function s(t,e){var n={};function i(e,i,o,a,s){var c;r.forEach(r.range(i,o),(function(i){c=e[i],t.node(c).dummy&&r.forEach(t.predecessors(c),(function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>s)&&u(n,e,c)}))}))}return r.reduce(e,(function(e,n){var o,a=-1,s=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)})),n})),n}function u(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 c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,(function(t){return s[t]}))).length-1)/2,f=Math.floor(l),h=Math.ceil(l);f<=h;++f){var d=u[f];a[t]===t&&e<s[d]&&!c(n,t,d)&&(a[d]=t,a[t]=o[t]=o[d],e=s[d])}}))})),{root:o,align:a}}function f(t,e,n,o,a){var s={},u=function(t,e,n,o){var a=new i,s=t.graph(),u=function(t,e,n){return function(i,o,a){var s,u=i.node(o),c=i.node(a),l=0;if(l+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=-u.width/2;break;case"r":s=u.width/2}if(s&&(l+=n?s:-s),s=0,l+=(u.dummy?e:t)/2,l+=(c.dummy?e:t)/2,l+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2}return s&&(l+=n?s:-s),s=0,l}}(s.nodesep,s.edgesep,o);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(a.setNode(r),i){var o=n[i],s=a.edge(o,r);a.setEdge(o,r,Math.max(u(t,e,i),s||0))}i=e}))})),a}(t,e,n,a),c=a?"borderLeft":"borderRight";function l(t,e){for(var n=u.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return l((function(t){s[t]=u.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+u.edge(e))}),0)}),u.predecessors.bind(u)),l((function(e){var n=u.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-u.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(s[e]=Math.max(s[e],n))}),u.successors.bind(u)),r.forEach(o,(function(t){s[t]=s[n[t]]})),s}function h(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var o=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+o,n),i=Math.min(e-o,i)})),n-i}))}function d(t,e){var n=r.values(e),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,u=n+a,c=t[u];if(c!==e){var l=r.values(c);(s="l"===a?i-r.min(l):o-r.max(l))&&(t[u]=r.mapValues(c,(function(t){return t+s})))}}))}))}function p(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var o=r.sortBy(r.map(t,i));return(o[1]+o[2])/2}))}t.exports={positionX:function(t){var e,n=o.buildLayerMatrix(t),i=r.merge(a(t,n),s(t,n)),u={};r.forEach(["u","d"],(function(o){e="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var a=("u"===o?t.predecessors:t.successors).bind(t),s=l(t,e,i,a),c=f(t,e,s.root,s.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(t){return-t}))),u[o+n]=c}))}));var c=h(t,u);return d(u,c),p(u,t.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:u,hasConflict:c,verticalAlignment:l,horizontalCompaction:f,alignCoordinates:d,findSmallestWidthAlignment:h,balance:p}},function(t,e,n){var r=n(0),i=n(2),o=n(5).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},function(t,e){t.exports="0.8.5"},function(t,e,n){var r;r=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 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?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(t,e,n){"use strict";t.exports=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach((function(e){Object.keys(e).forEach((function(n){return t[n]=e[n]}))})),t}},function(t,e,n){"use strict";var r=n(0),i=Object.freeze({source:null,target:null,length:80,coeff:2e-4,weight:1});t.exports={makeSpring:function(t){return r({},i,t)},applySpring:function(t){var e=t.source,n=t.target,r=t.length<0?i.length:t.length,o=n.pos.x-e.pos.x,a=n.pos.y-e.pos.y,s=Math.sqrt(o*o+a*a);0===s&&(o=(Math.random()-.5)/50,a=(Math.random()-.5)/50,s=Math.sqrt(o*o+a*a));var u=s-r,c=(!t.coeff||t.coeff<0?i.springCoeff:t.coeff)*u/s*t.weight;e.force.x+=c*o,e.force.y+=c*a,n.force.x-=c*o,n.force.y-=c*a}}},function(t,e,n){"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(13),o=n(0),a=n(4),s=n(10).tick,u=n(7).makeQuadtree,c=n(3).makeBody,l=n(1).makeSpring,f=function(t){return t.isParent()},h=function(t){return!f(t)},d=function(t){return f(t.source())||f(t.target())},p=function(t){return!d(t)},g=function(t){return t.scratch("euler").body},v=function(t){return f(t)?t.descendants().filter(h):t},b=function(t){var e=t.scratch("euler");return e||(e={},t.scratch("euler",e)),e},y=function(t,e){return"function"==typeof t?t(e):t},w=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,o({},a,t)))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"prerun",value:function(t){var e=t;e.quadtree=u();var n=e.bodies=[];e.nodes.filter((function(t){return h(t)})).forEach((function(t){var r=b(t),i=c({pos:{x:r.x,y:r.y},mass:y(e.mass,t),locked:r.locked});i._cyNode=t,r.body=i,i._scratch=r,n.push(i)}));var r=e.springs=[];e.edges.filter(p).forEach((function(t){var n=l({source:g(t.source()),target:g(t.target()),length:y(e.springLength,t),coeff:y(e.springCoeff,t)});n._cyEdge=t;var i=b(t);n._scratch=i,i.spring=n,r.push(n)})),e.edges.filter(d).forEach((function(t){var n=v(t.source()),i=v(t.target());n=[n[0]],i=[i[0]],n.forEach((function(n){i.forEach((function(i){r.push(l({source:g(n),target:g(i),length:y(e.springLength,t),coeff:y(e.springCoeff,t)}))}))}))}))}},{key:"tick",value:function(t){return s(t)<=t.movementThreshold}}]),e}(i);t.exports=w},function(t,e,n){"use strict";var r=Object.freeze({pos:{x:0,y:0},prevPos:{x:0,y:0},force:{x:0,y:0},velocity:{x:0,y:0},mass:1}),i=function(t,e){return{x:(n=function(t,e){return null!=t?t:e}(t,e)).x,y:n.y};var n};t.exports={makeBody:function(t){var e={};return e.pos=i(t.pos,r.pos),e.prevPos=i(t.prevPos,e.pos),e.force=i(t.force,r.force),e.velocity=i(t.velocity,r.velocity),e.mass=null!=t.mass?t.mass:r.mass,e.locked=t.locked,e}}},function(t,e,n){"use strict";var r=Object.freeze({springLength:function(t){return 80},springCoeff:function(t){return 8e-4},mass:function(t){return 4},gravity:-1.2,pull:.001,theta:.666,dragCoeff:.02,movementThreshold:1,timeStep:20});t.exports=r},function(t,e,n){"use strict";t.exports={applyDrag:function(t,e){var n=void 0;n=null!=e?e:null!=t.dragCoeff?t.dragCoeff:.02,t.force.x-=n*t.velocity.x,t.force.y-=n*t.velocity.y}}},function(t,e,n){"use strict";t.exports={integrate:function(t,e){var n,r=0,i=0,o=0,a=0,s=t.length;if(0===s)return 0;for(n=0;n<s;++n){var u=t[n],c=e/u.mass;if(!u.grabbed){u.locked?(u.velocity.x=0,u.velocity.y=0):(u.velocity.x+=c*u.force.x,u.velocity.y+=c*u.force.y);var l=u.velocity.x,f=u.velocity.y,h=Math.sqrt(l*l+f*f);h>1&&(u.velocity.x=l/h,u.velocity.y=f/h),r=e*u.velocity.x,o=e*u.velocity.y,u.pos.x+=r,u.pos.y+=o,i+=Math.abs(r),a+=Math.abs(o)}}return(i*i+a*a)/s}}},function(t,e,n){"use strict";var r=n(9),i=n(8),o=function(t,e){var n=Math.abs(t.x-e.x),r=Math.abs(t.y-e.y);return n<1e-8&&r<1e-8};function a(t,e){return 0===e?t.quad0:1===e?t.quad1:2===e?t.quad2:3===e?t.quad3:null}function s(t,e,n){0===e?t.quad0=n:1===e?t.quad1=n:2===e?t.quad2=n:3===e&&(t.quad3=n)}t.exports={makeQuadtree:function(){var t=[],e=new i,n=[],u=0,c=l();function l(){var t=n[u];return t?(t.quad0=null,t.quad1=null,t.quad2=null,t.quad3=null,t.body=null,t.mass=t.massX=t.massY=0,t.left=t.right=t.top=t.bottom=0):(t=new r,n[u]=t),++u,t}function f(t){for(e.reset(),e.push(c,t);!e.isEmpty();){var n=e.pop(),r=n.node,i=n.body;if(r.body){var u=r.body;if(r.body=null,o(u.pos,i.pos)){var f=3;do{var h=Math.random(),d=(r.right-r.left)*h,p=(r.bottom-r.top)*h;u.pos.x=r.left+d,u.pos.y=r.top+p,f-=1}while(f>0&&o(u.pos,i.pos));if(0===f&&o(u.pos,i.pos))return}e.push(r,u),e.push(r,i)}else{var g=i.pos.x,v=i.pos.y;r.mass=r.mass+i.mass,r.massX=r.massX+i.mass*g,r.massY=r.massY+i.mass*v;var b=0,y=r.left,w=(r.right+y)/2,m=r.top,x=(r.bottom+m)/2;g>w&&(b+=1,y=w,w=r.right),v>x&&(b+=2,m=x,x=r.bottom);var _=a(r,b);_?e.push(_,i):((_=l()).left=y,_.top=m,_.right=w,_.bottom=x,_.body=i,s(r,b,_))}}}return{insertBodies:function(t){if(0!==t.length){var e=Number.MAX_VALUE,n=Number.MAX_VALUE,r=Number.MIN_VALUE,i=Number.MIN_VALUE,o=void 0,a=t.length;for(o=a;o--;){var s=t[o].pos.x,h=t[o].pos.y;s<e&&(e=s),s>r&&(r=s),h<n&&(n=h),h>i&&(i=h)}var d=r-e,p=i-n;for(d>p?i=n+d:r=e+p,u=0,(c=l()).left=e,c.right=r,c.top=n,c.bottom=i,(o=a-1)>=0&&(c.body=t[o]);o--;)f(t[o])}},updateBodyForce:function(e,n,r,i){var o=t,a=void 0,s=void 0,u=void 0,l=void 0,f=0,h=0,d=1,p=0,g=1;o[0]=c,function(t){t.x=0,t.y=0}(e.force);var v=-e.pos.x,b=-e.pos.y,y=Math.sqrt(v*v+b*b),w=e.mass*i/y;for(f+=w*v,h+=w*b;d;){var m=o[p],x=m.body;d-=1,p+=1;var _=x!==e;x&&_?(s=x.pos.x-e.pos.x,u=x.pos.y-e.pos.y,0===(l=Math.sqrt(s*s+u*u))&&(s=(Math.random()-.5)/50,u=(Math.random()-.5)/50,l=Math.sqrt(s*s+u*u)),f+=(a=n*x.mass*e.mass/(l*l*l))*s,h+=a*u):_&&(s=m.massX/m.mass-e.pos.x,u=m.massY/m.mass-e.pos.y,0===(l=Math.sqrt(s*s+u*u))&&(s=(Math.random()-.5)/50,u=(Math.random()-.5)/50,l=Math.sqrt(s*s+u*u)),(m.right-m.left)/l<r?(f+=(a=n*m.mass*e.mass/(l*l*l))*s,h+=a*u):(m.quad0&&(o[g]=m.quad0,d+=1,g+=1),m.quad1&&(o[g]=m.quad1,d+=1,g+=1),m.quad2&&(o[g]=m.quad2,d+=1,g+=1),m.quad3&&(o[g]=m.quad3,d+=1,g+=1)))}e.force.x+=f,e.force.y+=h}}}}},function(t,e,n){"use strict";function r(){this.stack=[],this.popIdx=0}function i(t,e){this.node=t,this.body=e}t.exports=r,r.prototype={isEmpty:function(){return 0===this.popIdx},push:function(t,e){var n=this.stack[this.popIdx];n?(n.node=t,n.body=e):this.stack[this.popIdx]=new i(t,e),++this.popIdx},pop:function(){if(this.popIdx>0)return this.stack[--this.popIdx]},reset:function(){this.popIdx=0}}},function(t,e,n){"use strict";t.exports=function(){this.body=null,this.quad0=null,this.quad1=null,this.quad2=null,this.quad3=null,this.mass=0,this.massX=0,this.massY=0,this.left=0,this.top=0,this.bottom=0,this.right=0}},function(t,e,n){"use strict";var r=n(6).integrate,i=n(5).applyDrag,o=n(1).applySpring;t.exports={tick:function(t){var e=t.bodies,n=t.springs,a=t.quadtree,s=t.timeStep,u=t.gravity,c=t.theta,l=t.dragCoeff,f=t.pull;e.forEach((function(t){var e=t._scratch;e&&(t.locked=e.locked,t.grabbed=e.grabbed,t.pos.x=e.x,t.pos.y=e.y)})),a.insertBodies(e);for(var h=0;h<e.length;h++){var d=e[h];a.updateBodyForce(d,u,c,f),i(d,l)}for(var p=0;p<n.length;p++){var g=n[p];o(g)}var v=r(e,s);return e.forEach((function(t){var e=t._scratch;e&&(e.x=t.pos.x,e.y=t.pos.y)})),v}}},function(t,e,n){"use strict";var r=n(2),i=function(t){t&&t("layout","euler",r)};"undefined"!=typeof cytoscape&&i(cytoscape),t.exports=i},function(t,e,n){"use strict";t.exports=Object.freeze({animate:!0,refresh:10,maxIterations:1e3,maxSimulationTime:4e3,ungrabifyWhileSimulating:!1,fit:!0,padding:30,boundingBox:void 0,ready:function(){},stop:function(){},randomize:!1,infinite:!1})},function(t,e,n){"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(0),o=n(12),a=n(14),s=n(15),u=s.setInitialPositionState,c=s.refreshPositions,l=s.getNodePositionData,f=n(16).multitick,h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this.options=i({},o,e),r=this.state=i({},n,{layout:this,nodes:n.eles.nodes(),edges:n.eles.edges(),tickIndex:0,firstUpdate:!0});r.animateEnd=n.animate&&"end"===n.animate,r.animateContinuously=n.animate&&!r.animateEnd}return r(t,[{key:"run",value:function(){var t=this,e=this.state;if(e.tickIndex=0,e.firstUpdate=!0,e.startTime=Date.now(),e.running=!0,e.currentBoundingBox=a(e.boundingBox,e.cy),e.ready&&t.one("ready",e.ready),e.stop&&t.one("stop",e.stop),e.nodes.forEach((function(t){return u(t,e)})),t.prerun(e),e.animateContinuously){var n=function(t){var n,r=t.target;l(n=r,e).grabbed=n.grabbed()},r=n,i=function(t){var n=t.target,r=l(n,e),i=n.position();r.x=i.x,r.y=i.y},o=function(){e.fit&&e.animateContinuously&&e.cy.fit(e.padding)},s=function(){c(e.nodes,e),o(),requestAnimationFrame(h)},h=function(){f(e,s,d)},d=function(){c(e.nodes,e),o(),e.nodes.forEach((function(t){var o;o=t,e.ungrabifyWhileSimulating&&l(o,e).grabbable&&o.grabify(),function(t){t.removeListener("grab",n),t.removeListener("free",r),t.removeListener("drag",i)}(t)})),e.running=!1,t.emit("layoutstop")};t.emit("layoutstart"),e.nodes.forEach((function(t){var o;o=t,e.ungrabifyWhileSimulating&&(l(o,e).grabbable=o.grabbable())&&o.ungrabify(),function(t){t.on("grab",n),t.on("free",r),t.on("drag",i)}(t)})),h()}else{for(var p=!1,g=function(){},v=function(){return p=!0};!p;)f(e,g,v);e.eles.layoutPositions(this,e,(function(t){var n=l(t,e);return{x:n.x,y:n.y}}))}return t.postrun(e),this}},{key:"prerun",value:function(){}},{key:"postrun",value:function(){}},{key:"tick",value:function(){}},{key:"stop",value:function(){return this.state.running=!1,this}},{key:"destroy",value:function(){return this}}]),t}();t.exports=h},function(t,e,n){"use strict";t.exports=function(t,e){return null==(t=null==t?{x1:0,y1:0,w:e.width(),h:e.height()}:{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,w:t.w,h:t.h}).x2&&(t.x2=t.x1+t.w),null==t.w&&(t.w=t.x2-t.x1),null==t.y2&&(t.y2=t.y1+t.h),null==t.h&&(t.h=t.y2-t.y1),t}},function(t,e,n){"use strict";var r=n(0);t.exports={setInitialPositionState:function(t,e){var n=t.position(),i=e.currentBoundingBox,o=t.scratch(e.name);null==o&&(o={},t.scratch(e.name,o)),r(o,e.randomize?{x:i.x1+Math.random()*i.w,y:i.y1+Math.random()*i.h}:{x:n.x,y:n.y}),o.locked=t.locked()},getNodePositionData:function(t,e){return t.scratch(e.name)},refreshPositions:function(t,e){t.positions((function(t){var n=t.scratch(e.name);return{x:n.x,y:n.y}}))}}},function(t,e,n){"use strict";var r=function(){},i=function(t){var e=t,n=t.layout.tick(e);e.firstUpdate&&(e.animateContinuously&&e.layout.emit("layoutready"),e.firstUpdate=!1),e.tickIndex++;var r=Date.now()-e.startTime;return!e.infinite&&(n||e.tickIndex>=e.maxIterations||r>=e.maxSimulationTime)};t.exports={tick:i,multitick:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,o=!1,a=t,s=0;s<a.refresh&&!(o=!a.running||i(a));s++);o?n():e()}}}])},t.exports=r()},function(t,e,n){var r;r=function(t){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 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?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e,n){"use strict";var r=n(4),i=n(1),o=n(2),a={addUnnecessaryBendpoints:"de.cau.cs.kieler.klay.layered.unnecessaryBendpoints",alignment:"de.cau.cs.kieler.alignment",aspectRatio:"de.cau.cs.kieler.aspectRatio",borderSpacing:"borderSpacing",compactComponents:"de.cau.cs.kieler.klay.layered.components.compact",compactionStrategy:"de.cau.cs.kieler.klay.layered.nodeplace.compactionStrategy",contentAlignment:"de.cau.cs.kieler.klay.layered.contentAlignment",crossingMinimization:"de.cau.cs.kieler.klay.layered.crossMin",cycleBreaking:"de.cau.cs.kieler.klay.layered.cycleBreaking",debugMode:"de.cau.cs.kieler.debugMode",direction:"de.cau.cs.kieler.direction",edgeLabelSideSelection:"de.cau.cs.kieler.klay.layered.edgeLabelSideSelection",edgeRouting:"de.cau.cs.kieler.edgeRouting",edgeSpacingFactor:"de.cau.cs.kieler.klay.layered.edgeSpacingFactor",feedbackEdges:"de.cau.cs.kieler.klay.layered.feedBackEdges",fixedAlignment:"de.cau.cs.kieler.klay.layered.fixedAlignment",greedySwitchCrossingMinimization:"de.cau.cs.kieler.klay.layered.greedySwitch",hierarchyHandling:"de.cau.cs.kieler.hierarchyHandling",inLayerSpacingFactor:"de.cau.cs.kieler.klay.layered.inLayerSpacingFactor",interactiveReferencePoint:"de.cau.cs.kieler.klay.layered.interactiveReferencePoint",layerConstraint:"de.cau.cs.kieler.klay.layered.layerConstraint",layoutHierarchy:"de.cau.cs.kieler.layoutHierarchy",linearSegmentsDeflectionDampening:"de.cau.cs.kieler.klay.layered.linearSegmentsDeflectionDampening",mergeEdges:"de.cau.cs.kieler.klay.layered.mergeEdges",mergeHierarchyCrossingEdges:"de.cau.cs.kieler.klay.layered.mergeHierarchyEdges",noLayout:"de.cau.cs.kieler.noLayout",nodeLabelPlacement:"de.cau.cs.kieler.nodeLabelPlacement",nodeLayering:"de.cau.cs.kieler.klay.layered.nodeLayering",nodePlacement:"de.cau.cs.kieler.klay.layered.nodePlace",portAlignment:"de.cau.cs.kieler.portAlignment",portAlignmentEastern:"de.cau.cs.kieler.portAlignment.east",portAlignmentNorth:"de.cau.cs.kieler.portAlignment.north",portAlignmentSouth:"de.cau.cs.kieler.portAlignment.south",portAlignmentWest:"de.cau.cs.kieler.portAlignment.west",portConstraints:"de.cau.cs.kieler.portConstraints",portLabelPlacement:"de.cau.cs.kieler.portLabelPlacement",portOffset:"de.cau.cs.kieler.offset",portSide:"de.cau.cs.kieler.portSide",portSpacing:"de.cau.cs.kieler.portSpacing",postCompaction:"de.cau.cs.kieler.klay.layered.postCompaction",priority:"de.cau.cs.kieler.priority",randomizationSeed:"de.cau.cs.kieler.randomSeed",routeSelfLoopInside:"de.cau.cs.kieler.selfLoopInside",separateConnectedComponents:"de.cau.cs.kieler.separateConnComp",sizeConstraint:"de.cau.cs.kieler.sizeConstraint",sizeOptions:"de.cau.cs.kieler.sizeOptions",spacing:"de.cau.cs.kieler.spacing",splineSelfLoopPlacement:"de.cau.cs.kieler.klay.layered.splines.selfLoopPlacement",thoroughness:"de.cau.cs.kieler.klay.layered.thoroughness",wideNodesOnMultipleLayers:"de.cau.cs.kieler.klay.layered.wideNodesOnMultipleLayers"},s=function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var i=e[r],o=a[i],s=t[i];n[o]=s}return n},u={interactiveReferencePoint:"CENTER"},c=function(t){var e=t.parent(),n=t.scratch("klay"),r={x:n.x,y:n.y};if(e.nonempty()){var i=e.scratch("klay");r.x+=i.x,r.y+=i.y}return r},l=function(t,e){var n=t.layoutDimensions(e),r=t.numericStyle("padding"),i={_cyEle:t,id:t.id(),padding:{top:r,left:r,bottom:r,right:r}};return t.isParent()||(i.width=n.w,i.height=n.h),t.scratch("klay",i),i},f=function(t,e){var n={_cyEle:t,id:t.id(),source:t.data("source"),target:t.data("target"),properties:{}},r=e.priority(t);return null!=r&&(n.properties.priority=r),t.scratch("klay",n),n};function h(t){var e=t.klay;this.options=i({},o,t),this.options.klay=i({},o.klay,e,u)}h.prototype.run=function(){var t=this.options,e=t.eles,n=e.nodes(),i=function(t,e,n){for(var r=[],i=[],o={},a={id:"root",children:[],edges:[]},s=0;s<t.length;s++){var u=t[s],c=l(u,n);r.push(c),o[u.id()]=c}for(var h=0;h<e.length;h++){var d=e[h],p=f(d,n);i.push(p),o[d.id()]=p}for(var g=0;g<r.length;g++){var v=r[g],b=v._cyEle;if(b.isChild()){var y=o[b.parent().id()];(y.children=y.children||[]).push(v)}else a.children.push(v)}for(var w=0;w<i.length;w++){var m=i[w],x=m._cyEle;x.source().parent(),x.target().parent(),a.edges.push(m)}return a}(n,e.edges(),t);return r.layout({graph:i,options:s(t.klay),success:function(){},error:function(t){throw t}}),n.filter((function(t){return!t.isParent()})).layoutPositions(this,t,c),this},h.prototype.stop=function(){return this},h.prototype.destroy=function(){return this},t.exports=h},function(t,e,n){"use strict";t.exports=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.filter((function(t){return null!=t})).forEach((function(e){Object.keys(e).forEach((function(n){return t[n]=e[n]}))})),t}},function(t,e,n){"use strict";var r={nodeDimensionsIncludeLabels:!1,fit:!0,padding:20,animate:!1,animateFilter:function(t,e){return!0},animationDuration:500,animationEasing:void 0,transform:function(t,e){return e},ready:void 0,stop:void 0,klay:{addUnnecessaryBendpoints:!1,aspectRatio:1.6,borderSpacing:20,compactComponents:!1,crossingMinimization:"LAYER_SWEEP",cycleBreaking:"GREEDY",direction:"UNDEFINED",edgeRouting:"ORTHOGONAL",edgeSpacingFactor:.5,feedbackEdges:!1,fixedAlignment:"NONE",inLayerSpacingFactor:1,layoutHierarchy:!1,linearSegmentsDeflectionDampening:.3,mergeEdges:!1,mergeHierarchyCrossingEdges:!0,nodeLayering:"NETWORK_SIMPLEX",nodePlacement:"BRANDES_KOEPF",randomizationSeed:1,routeSelfLoopInside:!1,separateConnectedComponents:!0,spacing:20,thoroughness:7},priority:function(t){return null}};t.exports=r},function(t,e,n){"use strict";var r=n(0),i=function(t){t&&t("layout","klay",r)};"undefined"!=typeof cytoscape&&i(cytoscape),t.exports=i},function(e,n){e.exports=t}])},t.exports=r(n(333))},function(t,e){!function(){var e;function n(){}function r(){}function i(){}function a(){}function s(){}function u(){}function c(){}function l(){}function f(){}function h(){}function d(){}function p(){}function g(){}function v(){}function b(){}function y(){}function w(){}function m(){}function x(){}function _(){}function E(){}function k(){}function S(){}function C(){}function T(){}function A(){}function N(){}function O(){}function L(){}function P(){}function I(){}function j(){}function M(){}function D(){}function R(){}function B(){}function G(){}function H(){}function F(){}function z(){}function Y(){}function V(){}function q(){}function U(){}function X(){}function W(){}function $(){}function K(){}function Z(){}function Q(){}function J(){}function tt(){}function et(){}function nt(){}function rt(){}function it(){}function ot(){}function at(){}function st(){}function ut(){}function ct(){}function lt(){}function ft(){}function ht(){}function dt(){}function pt(){}function gt(){}function vt(){}function bt(){}function yt(){}function wt(){}function mt(){}function xt(){}function _t(){}function Et(){}function kt(){}function St(){}function Ct(){}function Tt(){}function At(){}function Nt(){}function Ot(){}function Lt(){}function Pt(){}function It(){}function jt(){}function Mt(){}function Dt(){}function Rt(){}function Bt(){}function Gt(){}function Ht(){}function Ft(){}function zt(){}function Yt(){}function Vt(){}function qt(){}function Ut(){}function Xt(){}function Wt(){}function $t(){}function Kt(){}function Zt(){}function Qt(){}function Jt(){}function te(){}function ee(){}function ne(){}function re(){}function ie(){}function oe(){}function ae(){}function se(){}function ue(){}function ce(){}function le(){}function fe(){}function he(){}function de(){}function pe(){}function ge(){}function ve(){}function be(){}function ye(){Error.stackTraceLimit=64}function we(){Cz=pd(hd(new Z_,(ML(),KH)),gF),Tz=fd(pd(dd(new Z_,VH),zH),YH),Az=fd(gd(new Z_,qH),YH)}function me(){xz=fd(hd(new Z_,(ML(),aF)),OF)}function xe(){Gg()}function _e(){yH=new H}function Ee(){GF=new bt}function ke(){SE(),HF=NG}function Se(){Rz=fd(gd(pd(new Z_,(ML(),mF)),uF),wF)}function Ce(){qz=vd(new Z_,(ML(),nF))}function Te(){Xz=vd(new Z_,(ML(),nF)),Wz=new Lh("linearSegments.inputPrio",F_(0)),$z=new Lh("linearSegments.outputPrio",F_(0))}function Ae(){Kz=vd(new Z_,(ML(),nF))}function Ne(){iY=vd(new Z_,(ML(),nF))}function Oe(){mY=gd(new Z_,(ML(),iF)),_Y=pd(new Z_,sF),EY=fd(pd(new Z_,kF),EF),wY=fd(gd(pd(new Z_,JH),tF),eF),kY=pd(new Z_,PF),xY=fd(new Z_,oF),bY=fd(gd(pd(dd(new Z_,lF),hF),pF),fF),yY=fd(gd(new Z_,pF),ZH)}function Le(){ES()}function Pe(){af(this)}function Ie(){}function je(){wc(this)}function Me(){}function De(t){this.a=t}function Re(t){this.a=t}function Be(t){this.a=t}function Ge(t){this.a=t}function He(t){this.a=t}function Fe(t){this.a=t}function ze(t){this.a=t}function Ye(t){this.a=t}function Ve(t){this.a=t}function qe(t){this.b=t}function Ue(t){this.a=t}function Xe(t){this.a=t}function We(t){this.a=t}function $e(t){this.a=t}function Ke(t){this.a=t}function Ze(t){this.a=t}function Qe(t){this.a=t}function Je(t){this.a=t}function tn(t){this.a=t}function en(t){this.a=t}function nn(t){this.a=t}function rn(t){this.a=t}function on(t){this.a=t}function an(t){this.a=t}function sn(t){this.a=t}function un(t){this.e=t}function cn(t){this.a=t}function ln(t){this.a=t}function fn(t){this.a=t}function hn(t){this.a=t}function dn(t){this.a=t}function pn(t){this.a=t}function gn(t){this.a=t}function vn(t){this.a=t}function bn(t){this.a=t}function yn(t){this.a=t}function wn(t){this.a=t}function mn(t){this.a=t}function xn(t){this.a=t}function _n(t){this.a=t}function En(t){this.a=t}function kn(t){this.a=t}function Sn(t){this.a=t}function Cn(t){this.a=t}function Tn(t){this.a=t}function An(t){this.a=t}function Nn(t){this.a=t}function On(t){this.c=t}function Ln(t){this.a=t}function Pn(t){this.a=t}function In(t){this.a=t}function jn(t){this.a=t}function Mn(t){this.a=t}function Dn(t){this.a=t}function Rn(t){this.a=t}function Bn(t){this.a=t}function Gn(t){this.a=t}function Hn(t){this.a=t}function Fn(t){this.d=t}function zn(t){this.a=t}function Yn(t){this.a=t}function Vn(t){this.a=t}function qn(t){this.a=t}function Un(t){this.b=t}function Xn(t){this.a=t}function Wn(t){this.a=t}function $n(t){this.c=t}function Kn(t){this.a=t}function Zn(t){this.a=t}function Qn(t){this.a=t}function Jn(t){this.b=t}function tr(t){this.b=t}function er(t){this.c=t}function nr(t){this.a=t}function rr(t){this.a=t}function ir(t){this.a=t}function or(){this.a=[]}function ar(t){this.a=t}function sr(t){this.a=t}function ur(t){t.b=t.a}function cr(t){t.c=t.d.d}function lr(t,e){t.g=e}function fr(t,e){t.k=e}function hr(t,e){t.e.k=e}function dr(t){return t.a}function pr(t){return t.a}function gr(t){return t.a}function vr(t){return t.a}function br(t){return t.a}function yr(){return null}function wr(){return null}function mr(){this.c=this}function xr(){af(this)}function _r(){by(this)}function Er(t){!function(t,e){var n,r,i,o,a,s,u,c;for(c=0,r=0,i=e.length;r<i;++r)for(n=e[r],a=0,s=n.length;a<s;++a)for(o=n[a],u=new $n(o.f);u.a<u.c.c.length;)Gh(Wv(u),7).k=c++;t.a=Ey(UX,nI,26,c,12,1)}(this,t)}function kr(t){CG=new Lh(OI,0),function(t){var e,n,r,i,o,a,s,u,c,l;for(i=Gh(ia(t,(HL(),hR)),15).a,s=new $n(dC(t));s.a<s.c.c.length;){for(a=Gh(Wv(s),626),(n=new iO(a)).d=i,n.k=Gh(hE(a,PR),15).a,r=Gh(hE(a,OR),149),e=eo(no(Af(yx(Gh(a.e,9),(DL(),kq))))),l=new $n(iS(a));l.a<l.c.c.length;)c=Gh(Wv(l),161),r==(jw(),pB)?TO(c,e,i):r==gB&&tL(c,i),bN(c);cL(n,Gh(hE(a,RR),86).kb((kE(),VB))),LN(n),wO(n.e,n.d,n.c,n.p),VO(n),ZS(n),Kg(n),(u=new Uf(new mf((o=Gh(a.e,9).b).d,o.b,o.a,o.c))).b=n.p.b+n.q.b,u.c=n.p.c+n.q.c,u.d=n.p.d+n.q.d,u.a=n.p.a+n.q.a,Gh(a.e,9).b.b=u.b,Gh(a.e,9).b.d=u.d,Gh(a.e,9).b.c=u.c,Gh(a.e,9).b.a=u.a}}(t)}function Sr(t){t.a=new so}function Cr(t,e){t.a=e-t.a}function Tr(t,e){t.b=e-t.b}function Ar(){Ar=r,new c}function Nr(){Nr=r,new F}function Or(){this.a=new je}function Lr(){this.a=new je}function Pr(){this.a=new je}function Ir(){this.a=new je}function jr(){this.a=new je}function Mr(){this.a=new ee}function Dr(){this.a=new Ib}function Rr(){this.b=new je}function Br(){so.call(this)}function Gr(){ru.call(this)}function Hr(){Ie.call(this)}function Fr(){Ie.call(this)}function zr(){je.call(this)}function Yr(){Pe.call(this)}function Vr(){Pe.call(this)}function qr(){Pe.call(this)}function Ur(){Pe.call(this)}function Xr(){Pe.call(this)}function Wr(){Pe.call(this)}function $r(){Pe.call(this)}function Kr(){this.f=new je}function Zr(){this.d=new je}function Qr(){this.a=new Qi}function Jr(){throw new $r}function ti(){throw new $r}function ei(){throw new $r}function ni(){throw new $r}function ri(){this.a=new je}function ii(){ii=r,qL=new i}function oi(){oi=r,new ie}function ai(){ai=r,gM=new a}function si(){si=r,RM=new l}function ui(){ui=r,BM=new og}function ci(){ci=r,qM=new u}function li(){li=r,ZM=new g}function fi(){fi=r,$G=new C}function hi(){hi=r,KG=new O}function di(t){return hx(t),t}function pi(t){Qp(),this.a=t}function gi(t){ch(),this.a=t}function vi(t){ch(),this.a=t}function bi(t){ch(),this.a=t}function yi(t,e){t.i=e,e.f=t}function wi(){Pe.call(this)}function mi(){Pe.call(this)}function xi(){Pe.call(this)}function _i(){Mg.call(this)}function Ei(){Mg.call(this)}function ki(){qr.call(this)}function Si(){Vr.call(this)}function Ci(t){So.call(this,t)}function Ti(t){of.call(this,t)}function Ai(t){of.call(this,t)}function Ni(t){xl.call(this,t)}function Oi(t){uh.call(this,t)}function Li(t){bv.call(this,t)}function Pi(t){Ka.call(this,t)}function Ii(t){Wa.call(this,t)}function ji(t){xl.call(this,t)}function Mi(t,e){return t===e}function Di(t){return t?t.a:0}function Ri(t){return t?t.d:0}function Bi(t){return t?t.j:0}function Gi(t){Ci.call(this,t)}function Hi(t){Ci.call(this,t)}function Fi(t){Ci.call(this,t)}function zi(t){Fi.call(this,t)}function Yi(){nn.call(this,{})}function Vi(t){Er.call(this,t)}function qi(t){Er.call(this,t)}function Ui(t,e,n){!function(t,e,n){var r;(r=_g(t,BI))||(r=new Yi,Wy(t,BI,r));Wy(r.kc(),e,n)}(t,e.b,n)}function Xi(t,e,n){!function(t,e,n){HT(t,e,n,(uL(),yB),t.f),HT(t,e,n,BB,t.n)}(t.c,e,n)}function Wi(t){Cn.call(this,t)}function $i(t){Cn.call(this,t)}function Ki(){this.a=(b_(),bD)}function Zi(){this.a=(b_(),bD)}function Qi(){this.a=new _r}function Ji(){this.a=new qs}function to(){to=r,vH=new L}function eo(t){return Hd(),t}function no(t){return Md(t),t}function ro(t){Ci.call(this,t)}function io(t){Ci.call(this,t)}function oo(t){this.c=Of(Od(t))}function ao(){this.a=0,this.b=0}function so(){Kc(this),Cg(this)}function uo(){null==VL&&(VL=[])}function co(t){t.b=null,t.c=0}function lo(t,e){return t.c=e,t}function fo(t,e){return t.f=e,t}function ho(t,e){return t.g=e,t}function po(t,e){return t.a=e,t}function go(t,e){return t.f=e,t}function vo(t,e){return t.k=e,t}function bo(t){return isNaN(t)}function yo(t){return new en(t)}function wo(t){return new Ld(t)}function mo(t){Ci.call(this,t)}function xo(t){Ci.call(this,t)}function _o(t){Ci.call(this,t)}function Eo(t){Ci.call(this,t)}function ko(t){Ci.call(this,t)}function So(t){this.f=t,af(this)}function Co(){this.b=0,this.a=0}function To(){To=r,Math.log(2)}function Ao(){Ao=r,OX=typeof Map===rP&&Map.prototype.entries&&function(){try{return(new Map).entries().next().done}catch(t){return!1}}()?Map:function(){function t(){this.obj=this.createObject()}return t.prototype.createObject=function(t){return Object.create(null)},t.prototype.get=function(t){return this.obj[t]},t.prototype.set=function(t,e){this.obj[t]=e},t.prototype[iM]=function(t){delete this.obj[t]},t.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},t.prototype.entries=function(){var t=this.keys(),e=this,n=0;return{next:function(){if(n>=t.length)return{done:!0};var r=t[n++];return{value:[r,e.get(r)],done:!1}}}},function(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var t="__proto__",e=Object.create(null);return void 0===e[t]&&(0==Object.getOwnPropertyNames(e).length&&(e[t]=42,42===e[t]&&0!=Object.getOwnPropertyNames(e).length))}()||(t.prototype.createObject=function(){return{}},t.prototype.get=function(t){return this.obj[":"+t]},t.prototype.set=function(t,e){this.obj[":"+t]=e},t.prototype[iM]=function(t){delete this.obj[":"+t]},t.prototype.keys=function(){var t=[];for(var e in this.obj)58==e.charCodeAt(0)&&t.push(e.substring(1));return t}),t}()}function No(t,e){Tx(),UL.dc(t,e)}function Oo(t,e){return Av(t,e)}function Lo(t,e){return t.a.B(e)}function Po(t,e){return t.g[e.e]}function Io(t,e){return t.i[e.e]}function jo(t,e){return t.j[e.e]}function Mo(t,e){return t.n[e.e]}function Do(t,e){return t.o[e.e]}function Ro(t,e){return t>e?t:e}function Bo(t,e){return t>e?t:e}function Go(t,e){return t>e?t:e}function Ho(t,e){return t<e?t:e}function Fo(t,e){return t<e?t:e}function zo(t,e){return t<e?t:e}function Yo(t){return!!t&&t.b}function Vo(t){!function(t,e){var n;for(n=0;n<e;++n)t[n]=0}(t,t.length)}function qo(t){!function(t,e){var n;for(n=0;n<e;++n)t[n]=!1}(t,t.length)}function Uo(t){Rn.call(this,t)}function Xo(t){Pn.call(this,t)}function Wo(t){io.call(this,t)}function $o(t){Jn.call(this,t)}function Ko(t){$o.call(this,t)}function Zo(t){Wl.call(this,t)}function Qo(){Rn.call(this,"")}function Jo(){Rn.call(this,"")}function ta(t){return Gf(t),t.n}function ea(t){return Gf(t),t.j}function na(t){return t.e&&t.e()}function ra(t,e){return t.a.sb(e)}function ia(t,e){return yx(t.a,e)}function oa(t,e){return function(t,e){return ns(t.b.d)?e.xc():e.wc()}(t.a,e)}function aa(t){return oi(),""+t}function sa(t){return t?t.d:null}function ua(t){ch(),this.a=Od(t)}function ca(){Gz=fd(gd(gd(gd(pd(new Z_,(ML(),mF)),TF),QH),uF),wF),this.g=new Zs}function la(){0!=UM&&(UM=0),WM=-1}function fa(t){return function(t,e){var n,r,i;for(n=new $n(t.a.a);n.a<n.c.c.length;)Gh(Wv(n),78).i=!0;for(i=new $n(t.a.b);i.a<i.c.c.length;)(r=Gh(Wv(i),25)).p=eo(no(Af(t.f.B(new Qa(r,e))))),r.f.i=r.f.i&eo(no(Af(t.f.B(new Qa(r,e)))))}(t,t.d),t}function ha(t,e){return t.a.d=e,t}function da(t,e){return t.a.a=e,t}function pa(t,e){return t.a.c=e,t}function ga(t,e){return t.a.f=e,t}function va(t,e){return t.a.f=e,t}function ba(t,e){return t.a.b=e,t}function ya(t,e,n){t.splice(e,n)}function wa(t,e){return t.b.t(e)}function ma(t,e){return t.c.t(e)}function xa(t,e){return t.a.R(e)}function _a(t,e){return t.get(e)}function Ea(t,e){return t.get(e)}function ka(t){return t<=0?0-t:t}function Sa(t){return oi(),""+t}function Ca(t){this.a=new Vs(t)}function Ta(t){this.a=new Sv(t)}function Aa(t){this.a=Gh(Od(t),19)}function Na(t){this.b=Gh(Od(t),57)}function Oa(t){this.d=Gh(Od(t),56)}function La(t,e){this.d=t,this.e=e}function Pa(t,e){this.b=t,this.a=e}function Ia(t,e){this.b=t,this.a=e}function ja(t,e){this.b=t,this.c=e}function Ma(t,e){this.a=t,this.b=e}function Da(t,e){this.a=t,this.b=e}function Ra(t,e){this.a=t,this.f=e}function Ba(t,e){La.call(this,t,e)}function Ga(t,e){La.call(this,t,e)}function Ha(t,e){La.call(this,t,e)}function Fa(t,e){this.b=t,this.c=e}function za(t,e){this.e=t,this.c=e}function Ya(t,e){this.a=t,this.b=e}function Va(t,e){this.a=t,this.b=e}function qa(t,e){La.call(this,t,e)}function Ua(t,e){this.a=t,this.b=e}function Xa(t){this.a=Gh(Od(t),20)}function Wa(t){this.a=Gh(Od(t),20)}function $a(t){this.a=Gh(Od(t),57)}function Ka(t){this.b=Gh(Od(t),35)}function Za(t,e){this.a=t,this.b=e}function Qa(t,e){this.a=t,this.b=e}function Ja(t,e){La.call(this,t,e)}function ts(t,e){return Vy(t.b,e)}function es(t){return $M=new tn(!1),KM=new tn(!0),t?KM:$M}function ns(t){return t==gD||t==vD}function rs(t){return t==yD||t==pD}function is(t,e){Ob(t,e,t.a,t.a.a)}function os(t,e){Ob(t,e,t.c.b,t.c)}function as(t,e){La.call(this,t,e)}function ss(t,e){La.call(this,t,e)}function us(t,e){La.call(this,t,e)}function cs(t,e){La.call(this,t,e)}function ls(t,e){La.call(this,t,e)}function fs(t,e){La.call(this,t,e)}function hs(t,e){La.call(this,t,e)}function ds(t,e){La.call(this,t,e)}function ps(t,e){La.call(this,t,e)}function gs(t,e){La.call(this,t,e)}function vs(t,e){La.call(this,t,e)}function bs(t,e){La.call(this,t,e)}function ys(t,e){La.call(this,t,e)}function ws(t,e){La.call(this,t,e)}function ms(t,e){this.b=t,this.a=e}function xs(t,e){this.c=t,this.d=e}function _s(t,e){this.a=t,this.c=e}function Es(t,e){this.e=t,this.c=e}function ks(t,e){this.e=t,this.d=e}function Ss(t,e){La.call(this,t,e)}function Cs(t,e){La.call(this,t,e)}function Ts(t,e){this.a=t,this.b=e}function As(t,e){this.a=t,this.b=e}function Ns(t,e){La.call(this,t,e)}function Os(t,e){La.call(this,t,e)}function Ls(t,e){La.call(this,t,e)}function Ps(t,e){La.call(this,t,e)}function Is(t,e){La.call(this,t,e)}function js(t,e){La.call(this,t,e)}function Ms(t,e){La.call(this,t,e)}function Ds(t,e){La.call(this,t,e)}function Rs(t){return t.b<t.d.Y()}function Bs(t){return t.d.c+t.e.c}function Gs(t,e){return t.c.ab(e)}function Hs(t,e){return t.b.kb(e)}function Fs(t,e){return t.b.lb(e)}function zs(t){return t!=cB&&t!=lB}function Ys(t){this.c=t,Ew(this)}function Vs(t){Fx.call(this,t,0)}function qs(){Sv.call(this,null)}function Us(){Ai.call(this,new _r)}function Xs(){Ha.call(this,"KEY",0)}function Ws(t){Jp(),uh.call(this,t)}function $s(t){return t.Vb(t.b.H())}function Ks(t){this.a=Gh(Od(t),144)}function Zs(){this.b=(ml(),new _r)}function Qs(){Qs=r,NX=new ge}function Js(){Js=r,TX=new fe}function tu(){tu=r,AX=new pe}function eu(){eu=r,bM=new oo(",")}function nu(){nu=r,Math.pow(2,-65)}function ru(){gg.call(this,0,0,0,0)}function iu(t,e){La.call(this,t,e)}function ou(t,e){La.call(this,t,e)}function au(t,e){La.call(this,t,e)}function su(t,e){La.call(this,t,e)}function uu(t){Wc(),sd.call(this,t)}function cu(t,e){La.call(this,t,e)}function lu(t,e){this.c=t,this.b=e}function fu(t,e){this.a=t,this.b=e}function hu(t,e){this.b=t,this.d=e}function du(t,e){La.call(this,t,e)}function pu(t,e){La.call(this,t,e)}function gu(t,e){La.call(this,t,e)}function vu(t,e){La.call(this,t,e)}function bu(t,e){La.call(this,t,e)}function yu(t,e){La.call(this,t,e)}function wu(t,e){La.call(this,t,e)}function mu(t,e){La.call(this,t,e)}function xu(t,e){La.call(this,t,e)}function _u(t,e){La.call(this,t,e)}function Eu(t,e){La.call(this,t,e)}function ku(t,e){La.call(this,t,e)}function Su(t,e,n){t.splice(e,0,n)}function Cu(t,e,n){t.g[e.e][e.e]=n}function Tu(t,e){t.a=e,t.g=0,t.f=0}function Au(t){return t.a=0,t.b=0,t}function Nu(t){return Ky(t.b.c,t,0)}function Ou(t){return Math.ceil(t)}function Lu(t){return Math.sqrt(t)}function Pu(t,e){return Ea(t.a,e)}function Iu(t,e){return!!$x(t,e)}function ju(t,e){!function(t,e,n){var r;for(r=0;r<e;++r)t[r]=n}(t,t.length,e)}function Mu(t,e){La.call(this,t,e)}function Du(t,e){this.b=t,this.a=e}function Ru(t,e){this.d=t,this.e=e}function Bu(){jh(),this.c=new Qi}function Gu(){Fk(),this.a=new Qi}function Hu(){return Ao(),new OX}function Fu(t){if(!t)throw new Vr}function zu(t){if(!t)throw new Xr}function Yu(t){if(!t)throw new xi}function Vu(){this.b=(ml(),new _r)}function qu(){this.b=(ml(),new _r)}function Uu(t){this.a=t.a,this.b=t.b}function Xu(t){return null==t?null:t}function Wu(t){return t?t.zb():null}function $u(t,e){return t.Nb().sb(e)}function Ku(t,e){return t.a.a.a.U(e)}function Zu(t,e){return function(t,e){qc(),Od(e);for(;t.G();)if(!Sm(Gh(t.H(),9)))return!1;return!0}(t.mb(),e)}function Qu(t){return Math.floor(t)}function Ju(t,e){return t.a+=""+e,t}function tc(t,e){return t.a+=""+e,t}function ec(t,e){return t.a+=""+e,t}function nc(t){return Ac(null==t),t}function rc(t){return t.d&&PC(t),t.a}function ic(t){return t.d&&PC(t),t.b}function oc(t){return t.d&&PC(t),t.c}function ac(t,e){return Oh(t.a,e),e}function sc(t){by(this),mm(this,t)}function uc(t){this.c=t,this.e=!1}function cc(){Ga.call(this,"OPEN",0)}function lc(){qa.call(this,"SIZE",0)}function fc(){Pn.call(this,"UTF-8")}function hc(){hc=r,HX={},FX={}}function dc(t){return Od(t),new Ec(t)}function pc(t){return oi(),t.length}function gc(t,e){return function(t,e){return yg((oi(),t.toLowerCase()),e.toLowerCase())}(t.a,e.a)}function vc(t,e){return t==e?0:t?1:-1}function bc(t){return Ri(t.e)-Ri(t.g)}function yc(t){return new Za(t.a,t.b)}function wc(t){t.c=Ey(fM,kP,1,0,4,1)}function mc(){Ha.call(this,"VALUE",1)}function xc(t){rf.call(this),this.a=t}function _c(t){this.a=new BA,this.b=t}function Ec(t){this.a=t,mr.call(this)}function kc(t){this.a=t,mr.call(this)}function Sc(){Oz=pd(hd(new Z_,(ML(),KH)),gF),Lz=fd(pd(dd(new Z_,VH),zH),YH),Pz=fd(gd(new Z_,qH),YH),this.d=(jm(),hX)}function Cc(t){if(!t)throw new Xr}function Tc(t){if(!t)throw new Vr}function Ac(t){if(!t)throw new Yr}function Nc(t){if(!t)throw new xi}function Oc(){ar.call(this,new ey)}function Lc(){Ga.call(this,"CLOSED",1)}function Pc(t){bv.call(this,new Li(t))}function Ic(t,e){return++t.d,Dy(t,e)}function jc(t){return fp(t.b.mb(),t.a)}function Mc(t){return xh(t.a.mb(),t.b)}function Dc(t,e){return e==t.c?t.d:t.c}function Rc(t,e){return t<e?-1:t>e?1:0}function Bc(t){return null!=t?V_(t):0}function Gc(t){this.a=Hu(),this.b=t}function Hc(t){this.a=Hu(),this.b=t}function Fc(t){this.a=t,$h.call(this,t)}function zc(){Zc(),this.b=new En(this)}function Yc(){var t;Yc=r,t=new oo(", "),Od(tP),NM=new Xh(t,t)}function Vc(){Vc=r,TM=new cc,CM=new Lc}function qc(){qc=r,LM=new d,PM=new p}function Uc(){Uc=r,jM=new Xs,MM=new mc}function Xc(){Xc=r,FM=new lc,HM=new yl}function Wc(){Wc=r,iD=new b,oD=new y}function $c(t){t.g=new je,t.b=new je}function Kc(t){t.a=new ve,t.c=new ve}function Zc(){Zc=r,lz=new Wt,cz=new Kh}function Qc(){Ba.call(this,"IS_NULL",2)}function Jc(){Mu.call(this,"Head",1)}function tl(){Mu.call(this,"Tail",3)}function el(t,e){rm.call(this,t,e,null)}function nl(t,e){Mk(t,0,t.length,e)}function rl(t,e){return Oh(e.a,t.a),t.a}function il(t,e){return t.a*=e,t.b*=e,t}function ol(t,e){Qp(),this.a=t,this.b=e}function al(t,e){return t.a[e.d.k][e.k]}function sl(t,e){return t.a[e.d.k][e.k]}function ul(t,e){return sa(function(t,e){var n,r;n=null,r=t.b;for(;r;)t.a.$b(e,r.d)>=0?r=r.a[1]:(n=r,r=r.a[0]);return n}(t.a,e))}function cl(t,e){return sa(function(t,e){var n,r;n=null,r=t.b;for(;r;)t.a.$b(e,r.d)<=0?r=r.a[0]:(n=r,r=r.a[1]);return n}(t.a,e))}function ll(t,e){return Gh(GS(t.a,e),20)}function fl(t,e){return null!=t&&Ak(t,e)}function hl(t){return t.a<t.c.c.length}function dl(t){return t.a<t.c.a.length}function pl(t,e){return null!=t.a.eb(e)}function gl(t,e,n){return t.g[e.e][n.e]}function vl(t){return Hd(),oi(),""+t}function bl(){Mu.call(this,"Range",2)}function yl(){qa.call(this,"DISTINCT",1)}function wl(){Ba.call(this,"NOT_NULL",3)}function ml(){ml=r,IM=new tf((Yc(),NM))}function xl(t){this.d=(Dg(),new er(t))}function _l(t,e){return C_(t,new Qo,e).a}function El(t,e){return null==e?t.b:Ap(e)}function kl(t){return"number"==typeof t}function Sl(t){return"string"==typeof t}function Cl(t,e){return new jp(t,t.Y(),e)}function Tl(t,e){return new HC(t.a,t.b,e)}function Al(t){return kw(t,JP),new sw(t)}function Nl(t,e){this.a=e,Ka.call(this,t)}function Ol(t,e){this.a=e,Ka.call(this,t)}function Ll(t,e){this.a=t,Na.call(this,e)}function Pl(t){this.c=t,this.a=function(t){var e,n;if(!t.c.a)return null;if(t.b.b){if(e=t.b.e,!(n=function t(e,n,r){var i;return(i=n.$b(r,e.b))<0?e.e?Gh(function(t,e){return t||Od(e)}(t(e.e,n,r),e),206):e:0==i?e:e.g?t(e.g,n,r):null}(t.c.a,t.d,e)))return null;t.b.d==(Vc(),TM)&&0==t.d.$b(e,n.b)&&(n=n.i)}else n=t.a.i;return n!=t.a&&lf(t.b,n.b)?n:null}(this.c)}function Il(t){var e;e=t.a,t.a=t.b,t.b=e}function jl(t,e,n){return t.a+=e,t.b+=n,t}function Ml(t,e,n){return t.a-=e,t.b-=n,t}function Dl(t){return t.a=-t.a,t.b=-t.b,t}function Rl(t){return Nc(0!=t.b),t.a.a.c}function Bl(t){return Nc(0!=t.b),t.c.b.c}function Gl(t,e){t.a&&(md(e),kv(e))}function Hl(t,e,n){t.ub(e).J(n)}function Fl(t){return Gh(ld(t.a,t.b),128)}function zl(t){return xp(t.c,t.c.length)}function Yl(t){return t==oB||t==sB||t==aB}function Vl(t){return"number"==typeof t}function ql(t,e){return!!e&&t.b[e.e]==e}function Ul(t,e){var n;n=t[tM],e[tM]=n}function Xl(t,e){Fi.call(this,t),this.b=e}function Wl(t){Jn.call(this,t),this.a=t}function $l(t){tr.call(this,t),this.a=t}function Kl(t){$o.call(this,t),this.a=t}function Zl(t){ar.call(this,new zy(t))}function Ql(t){this.a=t,Un.call(this,t)}function Jl(t){this.c=t,this.a=1,this.b=1}function tf(t){this.a=t,this.b=Of(Od("="))}function ef(){this.a=new so,this.e=new so}function nf(){this.a=new Lr,this.c=new B}function rf(){this.i=new ao,this.j=new ao}function of(t){Fu(t.d.c+t.e.c==0),this.b=t}function af(t){return t.g=null,No(t,t.f),t}function sf(t){return qc(),Od(t),new sh(t)}function uf(t){return Tx(),parseInt(t)||-1}function cf(t,e){return null!=cg(t.a,e)}function lf(t,e){return!function(t,e){var n,r;if(!t.b)return!1;return r=t.e,(n=t.a.$b(e,r))<0|0==n&t.d==(Vc(),TM)}(t,e)&&!Rm(t,e)}function ff(t){return t.$H||(t.$H=++VX)}function hf(t){return null!=t.d?t.d:""+t.e}function df(t){return null!=t.d?t.d:""+t.e}function pf(t){return t.b=Gh(function(t){return Nc(t.b<t.d.Y()),t.d.sb(t.c=t.b++)}(t.a),21)}function gf(t){return"boolean"==typeof t}function vf(t){t.b=new yf(t),t.c=new _r}function bf(){this.a=new je,this.d=new je}function yf(t){nd.call(this,t,null,null)}function wf(t,e,n,r){dp.call(this,t,e,n,r)}function mf(t,e,n,r){Vv.call(this,t,e,n,r)}function xf(t,e,n,r){Vv.call(this,t,e,n,r)}function _f(t,e,n){Sy.call(this,t,e,n,null)}function Ef(t,e,n){Sy.call(this,t,e,n,null)}function kf(t,e,n){t.i=e,e.f=t,e.i=n,n.f=e}function Sf(t,e){Sr(this),this.e=t,this.f=e}function Cf(t,e){this.d=t,cr(this),this.b=e}function Tf(t){Kc(this),Cg(this),lm(this,t)}function Af(t){return Ac(null==t||gf(t)),t}function Nf(t){return Ac(null==t||kl(t)),t}function Of(t){return Ac(null==t||Sl(t)),t}function Lf(t,e){return t.a+=e.a,t.b+=e.b,t}function Pf(t,e){return t.a-=e.a,t.b-=e.b,t}function If(t,e){return Gh(Up(t.k,e),24).a}function jf(t,e){return function(t,e){if(null==t)throw new Eo("null key in entry: null="+e);if(null==e)throw new Eo("null value in entry: "+t+"=null")}(t,e),new qv(t,e)}function Mf(t,e){return Gh(t.b.sb(e),92).a}function Df(t){return 0!=Gh(t,7).b.c.length}function Rf(t){return 0!=Gh(t,7).e.c.length}function Bf(t){return t.d?Ky(t.d.a,t,0):-1}function Gf(t){null==t.n&&function(t){if(t.Sc()){var e=t.c;return e.Tc()?t.n="["+e.k:e.Sc()?t.n="["+e.Qc():t.n="[L"+e.Qc()+";",t.b=e.Pc()+"[]",void(t.j=e.Rc()+"[]")}var n=t.i,r=t.d;r=r.split("/"),t.n=WE(".",[n,WE("$",r)]),t.b=WE(".",[n,WE(".",r)]),t.j=r[r.length-1]}(t)}function Hf(t,e){if(!e)throw new Wr;t.g=e}function Ff(t){if(t.e.c!=t.b)throw new wi}function zf(t){if(t.f.c!=t.b)throw new wi}function Yf(t,e){this.a=t,this.c=e,this.b=2}function Vf(){Sr(this),this.e=-1,this.f=!0}function qf(){Ti.call(this,new _r),this.a=3}function Uf(t){Vv.call(this,t.d,t.b,t.a,t.c)}function Xf(t){Vv.call(this,t.d,t.b,t.a,t.c)}function Wf(t){bE.call(this,t),this.c=new je}function $f(){Ba.call(this,"ALWAYS_TRUE",0)}function Kf(){Ba.call(this,"ALWAYS_FALSE",1)}function Zf(t){rT(bH=new Us,(uL(),kB),AB),rT(bH,MB,LB),rT(bH,MB,AB),rT(bH,mB,TB),rT(bH,mB,AB),rT(bH,SB,NB),rT(bH,SB,AB),rT(bH,IB,_B),rT(bH,IB,AB),rT(bH,OB,EB),rT(bH,OB,NB),rT(bH,OB,_B),rT(bH,OB,AB),rT(bH,EB,OB),rT(bH,EB,LB),rT(bH,EB,TB),rT(bH,EB,AB),rT(bH,PB,PB),rT(bH,PB,NB),rT(bH,PB,LB),rT(bH,CB,CB),rT(bH,CB,NB),rT(bH,CB,TB),rT(bH,jB,jB),rT(bH,jB,_B),rT(bH,jB,LB),rT(bH,xB,xB),rT(bH,xB,_B),rT(bH,xB,TB),rT(bH,NB,SB),rT(bH,NB,OB),rT(bH,NB,PB),rT(bH,NB,CB),rT(bH,NB,NB),rT(bH,NB,LB),rT(bH,NB,TB),rT(bH,NB,AB),rT(bH,_B,IB),rT(bH,_B,OB),rT(bH,_B,jB),rT(bH,_B,xB),rT(bH,_B,_B),rT(bH,_B,LB),rT(bH,_B,TB),rT(bH,_B,AB),rT(bH,LB,MB),rT(bH,LB,EB),rT(bH,LB,PB),rT(bH,LB,jB),rT(bH,LB,NB),rT(bH,LB,_B),rT(bH,LB,LB),rT(bH,LB,AB),rT(bH,TB,mB),rT(bH,TB,EB),rT(bH,TB,CB),rT(bH,TB,xB),rT(bH,TB,NB),rT(bH,TB,_B),rT(bH,TB,TB),rT(bH,TB,AB),rT(bH,AB,kB),rT(bH,AB,MB),rT(bH,AB,mB),rT(bH,AB,SB),rT(bH,AB,IB),rT(bH,AB,OB),rT(bH,AB,EB),rT(bH,AB,NB),rT(bH,AB,_B),rT(bH,AB,LB),rT(bH,AB,TB),rT(bH,AB,AB),this.a=new qf,Cm(this,t)}function Qf(t){return!t.e&&(t.e=new je),t.e}function Jf(t){var e;return(e=new ne).e=t,e}function th(t){var e;e=0|t[tM],t[tM]=e+1}function eh(t,e){t.a.rb(t.b,e),++t.b,t.c=-1}function nh(t,e){Cc(-1!=t.c),t.a.wb(t.c,e)}function rh(t,e,n){return t.g[e.e][n.e]*t.d}function ih(t,e,n){return function(t,e,n){return pm(t.a,e),Ep(t,e.e,n)}(t,Gh(e,17),n)}function oh(t,e){return null!=e&&t.Nb().kb(e)}function ah(t,e){this.e=e,this.f=t,af(this)}function sh(t){this.b=t,this.a=(qc(),qc(),PM)}function uh(t){ch(),this.a=(Dg(),new $o(t))}function ch(){ch=r,new gi((Dg(),Dg(),kX))}function lh(){lh=r,wz=fd(new Z_,(ML(),OF))}function fh(t){ax.call(this,t,(cw(),MX))}function hh(t){wc(this),ed(this.c,0,t.ob())}function dh(t,e,n){this.b=t,this.a=e,this.c=n}function ph(t,e,n){xs.call(this,t,e),this.b=n}function gh(t,e,n){this.b=t,this.a=e,this.c=n}function vh(t,e){var n;return n=t.e,t.e=e,n}function bh(t){by(t.c),t.b.b=t.b,t.b.a=t.b}function yh(t){t.b?yh(t.b):dg(t.f.b,t.e,t.d)}function wh(t){return Nc(0!=t.b),Hw(t,t.a.a)}function mh(t){return Nc(0!=t.b),Hw(t,t.c.b)}function xh(t,e){return qc(),Od(e),new Nl(t,e)}function _h(t,e){return oi(),t.charCodeAt(e)}function Eh(t,e,n){return oi(),t.substr(e,n)}function kh(t,e,n){return gl(t,e.g,n.g)*t.d}function Sh(t,e,n){return{l:t,m:e,h:n}}function Ch(t,e){return RE(t,new xs(e.a,e.b))}function Th(t,e,n,r,i){t.d=e,t.e=n,t.c=r,t.b=i}function Ah(t,e,n,r,i){t.b=e,t.c=n,t.d=r,t.a=i}function Nh(t,e){return Ob(t,e,t.c.b,t.c),!0}function Oh(t,e){return t.c[t.c.length]=e,!0}function Lh(t,e){Wc(),sd.call(this,t),this.a=e}function Ph(){lh(),this.e=new so,this.d=new so}function Ih(){Ih=r,EX=new ce,new ce}function jh(){jh=r,hY=vd(new Z_,(ML(),nF))}function Mh(){Ah(this,!1,!1,!1,!1)}function Dh(t){var e;return Fw(e=new je,t),e}function Rh(t){var e;return rx(e=new so,t),e}function Bh(t){var e;return Tm(e=new Z_,t),e}function Gh(t,e){return Ac(null==t||Ak(t,e)),t}function Hh(t,e){if(t<0||t>=e)throw new ki}function Fh(t,e){return Od(t),Od(e),new rd(t,e)}function zh(t,e){return Od(t),Od(e),new id(t,e)}function Yh(t,e,n){return t<e?n<=t:t<=n||t==e}function Vh(t,e,n){this.d=t,this.b=n,this.a=e}function qh(t,e,n){this.a=t,this.b=e,this.c=n}function Uh(t,e,n){this.a=t,this.b=e,this.c=n}function Xh(t,e){this.a=t,this.b=tP,this.c=e.c}function Wh(t){this.c=t.c,this.a=t.e,this.b=t.b}function $h(t){this.d=t,cr(this),this.b=function(t){return fl(t,20)?Gh(t,20).tb():t.mb()}(t.d)}function Kh(){Zh.call(this),this.a=new kn(this)}function Zh(){this.c=new w,this.d=new Ng(this)}function Qh(t){ng(t.a),My(t.c,t.b),t.b=null}function Jh(t){return t.c-Gh(ld(t.a,t.b),128).b}function td(t,e,n){return oi(),t.substr(e,n-e)}function ed(t,e,n){uS(n,0,t,e,n.length,!1)}function nd(t,e,n){this.c=t,Ru.call(this,e,n)}function rd(t,e){this.b=t,this.a=e,mr.call(this)}function id(t,e){this.a=t,this.b=e,mr.call(this)}function od(t,e){this.b=t,this.a=e,kw(e,"count")}function ad(t){this.b=t,this.a=ep(this.b.a).Kb()}function sd(t){Wc(),this.c=iD,this.d=oD,this.b=t}function ud(t,e,n){lu.call(this,t,e),this.a=n}function cd(t,e,n){lu.call(this,t,e),this.a=n}function ld(t,e){return my(e,t.c.length),t.c[e]}function fd(t,e){return Gh(ld(t.a,5),18).ib(e),t}function hd(t,e){return Gh(ld(t.a,0),18).ib(e),t}function dd(t,e){return Gh(ld(t.a,1),18).ib(e),t}function pd(t,e){return Gh(ld(t.a,2),18).ib(e),t}function gd(t,e){return Gh(ld(t.a,3),18).ib(e),t}function vd(t,e){return Gh(ld(t.a,4),18).ib(e),t}function bd(t){return Tx(),function(t){var e,n;for("Ot",n=zo(t.length,5),e=0;e<n;e++)if(Mi(t[e].d,"Ot")){t.length>=e+1&&t.splice(0,e+1);break}return t}(UL.ec(t))}function yd(t,e){var n;return(n=Ip(t,e)).g=2,n}function wd(t,e){t.b=e.b,t.c=e.c,t.d=e.d,t.a=e.a}function md(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function xd(t){return t.b.c.length+t.e.c.length}function _d(t){return Array.isArray(t)&&t.ad===n}function Ed(t,e){return qc(),-1!=jx(new $n(t),e)}function kd(t,e,n,r,i,o){return function t(e,n,r,i,o,a,s){var u,c,l,f,h;if(f=o[a],h=rS(u=(l=a==s-1)?i:0,f),9!=i&&_x(Oo(e,s-a),n[a],r[a],u,h),!l)for(++a,c=0;c<f;++c)h[c]=t(e,n,r,i,o,a,s);return h}(t,e,n,r,i,0,o)}function Sd(t,e,n){Wc(),Xv.call(this,t.b,e,n,t.d)}function Cd(t,e){Wc(),Xv.call(this,t.b,e,t.c,t.d)}function Td(t,e,n){wy(e,t.c.length),Su(t.c,e,n)}function Ad(t,e){return my(e,t.a.length),t.a[e]}function Nd(t){t.sort((function(t,e){return t-e}))}function Od(t){if(null==t)throw new Wr;return t}function Ld(t){if(null==t)throw new Wr;this.a=t}function Pd(t,e,n){if(t.a!=e)throw new wi;t.a=n}function Id(t,e){if(!t)throw new io((oi(),e))}function jd(t,e){if(!t)throw new mo((oi(),e))}function Md(t){if(null==t)throw new Wr;return t}function Dd(t){ar.call(this,new ey),lm(this,t)}function Rd(t){this.a=new Vs(t.Y()),lm(this,t)}function Bd(t){this.c=t,this.a=new Ys(this.c.a)}function Gd(t){Qp(),this.a=(Dg(),new Qn(Od(t)))}function Hd(){(Hd=r)(),gX=!1,vX=!0}function Fd(){Fd=r,mX=Ey(dM,ZL,24,256,0,1)}function zd(){zd=r,tH=new x,nH=new Zh,eH=new _}function Yd(t){return null!=t&&Cp(t)&&!(t.ad===n)}function Vd(t){return!Array.isArray(t)&&t.ad===n}function qd(t,e){return Sl(e)?Tg(t,e):bT(t.d,e)}function Ud(t,e){return fl(e,17)&&ql(t,Gh(e,17))}function Xd(t,e){return fl(e,17)&&function(t,e){if(e&&t.b[e.e]==e)return Mp(t.b,e.e,null),--t.c,!0;return!1}(t,Gh(e,17))}function Wd(t,e){var n;return ex(n=uE(t),e),n}function $d(t,e){return!t&&(t=[]),t[t.length]=e,t}function Kd(t,e,n){if(!t)throw new io(function(t,e){var n,r,i,o;oi(),t=null==t?tP:t,t.length,e.length,n=new Jo,o=0,r=0;for(;r<e.length&&-1!=(i=t.indexOf("%s",o));)ec(n,t.substr(o,i-o)),tc(n,e[r++]),o=i+2;if(ec(n,Eh(t,o,t.length-o)),r<e.length){for(n.a+=" [",tc(n,e[r++]);r<e.length;)n.a+=", ",tc(n,e[r++]);n.a+="]"}return n.a}(e,n))}function Zd(t,e){var n;return Tb(e,n=t.a.Y()),n-e}function Qd(t){return t.i||(t.i=t.T())}function Jd(t){return t.c||(t.c=t.gb())}function tp(t){return t.c||(t.c=t.Jb())}function ep(t){return t.e?t.e:t.e=t.Ob()}function np(t){return t.f?t.f:t.f=t.Pb()}function rp(t,e){return Sx((Md(t),t),(Md(e),e))}function ip(t){for(qc(),Od(t);t.G();)t.H(),t.I()}function op(t){var e;for(e=t;e.g;)e=e.g;return e}function ap(t){Cc(-1!=t.b),t.c.vb(t.a=t.b),t.b=-1}function sp(t){return Nc(t.b>0),t.a.sb(t.c=--t.b)}function up(t){t.b?up(t.b):t.d.V()&&qd(t.f.b,t.e)}function cp(t){if($_(t.d),t.d.d!=t.c)throw new wi}function lp(t,e){if(e[tM]!=t[tM])throw new wi}function fp(t,e){return qc(),Od(t),Od(e),new Ia(t,e)}function hp(t,e){Qp(),Ya.call(this,t,Cx(new Kn(e)))}function dp(t,e,n,r){this.a=t,Sy.call(this,t,e,n,r)}function pp(t){this.a=Math.cos(t),this.b=Math.sin(t)}function gp(t,e,n){Fi.call(this,t),this.b=e,this.a=n}function vp(t){this.b=new je,this.a=new je,this.c=t}function bp(t){this.c=new ao,this.a=new je,this.b=t}function yp(t,e){return++t.d,t.c[t.c.length]=e,!0}function wp(t,e){Ob(t.d,e,t.b.b,t.b),++t.a,t.c=null}function mp(t,e){return null==t.a.db(e,t)}function xp(t,e){return Ry(t.slice(0,e),t)}function _p(t,e){return Ry(new Array(e),t)}function Ep(t,e,n){var r;return r=t.b[e],t.b[e]=n,r}function kp(t){return ml(),xh(function(t){var e;return Gh((e=t.g)?e:t.g=new Ue(t),20)}(t.a).mb(),(Uc(),jM))}function Sp(t){return qc(),new Pc(Mc(zh(t.a,new h)))}function Cp(t){return typeof t===KL||typeof t===rP}function Tp(t){e.setTimeout((function(){throw t}),0)}function Ap(t){return Od(t),fl(t,345)?Gh(t,345):Bk(t)}function Np(t,e){return null==Dx(t.a,e,(Hd(),gX))}function Op(t,e){var n;return function(t,e){if(t<0||t>=e)throw new ro(function(t,e){if(t<0)return TA(EP,_x(Oo(fM,1),kP,1,4,["index",F_(t)]));if(e<0)throw new io(SP+e);return TA("%s (%s) must be less than size (%s)",_x(Oo(fM,1),kP,1,4,["index",F_(t),F_(e)]))}(t,e))}(e,n=t.a.Y()),n-1-e}function Lp(t,e,n){var r;return r=Tw(t,e),function(t,e,n){if(n){var r=n.gc();n=r(n)}else n=void 0;t.a[e]=n}(t,e,n),r}function Pp(t,e,n){var r;return Uw(n,r=Ip(t,e)),r}function Ip(t,e){var n;return(n=new Yx).i=t,n.d=e,n}function jp(t,e,n){this.a=t,Tb(n,e),this.c=e,this.b=n}function Mp(t,e,r){return function(t){if(!t)throw new Ur}(null==r||function(t,e){switch(yw(t)){case 5:return Sl(e);case 6:return kl(e);case 7:return gf(e);case 0:return Ak(e,t.__elementTypeId$);case 2:return Cp(e)&&!(e.ad===n);case 1:return Cp(e)&&!(e.ad===n)||Ak(e,t.__elementTypeId$);default:return!0}}(t,r)),t[e]=r}function Dp(t){t.a=null,t.e=null,by(t.b),t.d=0,++t.c}function Rp(t){return t.f||(t.f=new Ks(t))}function Bp(t){return t.k||(t.k=new He(t))}function Gp(t){return t.e||(t.e=new $a(t))}function Hp(t){var e;return!(e=t.e)&&(t.e=e=t.gb()),e}function Fp(t){return t.c.f.d==t.d.f.d}function zp(t,e){var n;return Gw(n=new Pb(t),e),n}function Yp(t,e){return t.a+=String.fromCharCode(e),t}function Vp(t){return!t.a&&t.d?t.d.b:t.a}function qp(t){return Vl(t)?0|t:t.l|t.m<<22}function Up(t,e){return Sl(e)?hv(t,e):Wu(uv(t.d,e))}function Xp(t){return fl(t,19)?Gh(t,19).Y():Zb(t.mb())}function Wp(t){return t?new Rd((Yc(),t)):function(t){var e;return Fw(e=new Qi,t),e}(null.mb())}function $p(t,e){return Xu(t)===Xu(e)||null!=t&&e_(t,e)}function Kp(t,e){return to(),Sx(no(Nf(t)),no(Nf(e)))}function Zp(t){return ml(),xh(t.a.bb().mb(),(Uc(),MM))}function Qp(){Qp=r,ch(),OM=new ib((Dg(),Dg(),kX))}function Jp(){Jp=r,ch(),GM=new Ws((Dg(),Dg(),CX))}function tg(t,e){if(null==t)throw new Eo((oi(),e))}function eg(t,e,n,r){t.g[e.e][n.e]=r,t.g[n.e][e.e]=r}function ng(t){Cc(-1!=t.c),t.d.vb(t.c),t.b=t.c,t.c=-1}function rg(t){this.c=t,this.b=t.a.b.a,Ul(t.a.c,this)}function ig(t){FN.call(this,new Kn(t)),this.a=new ao}function og(){Ni.call(this,new ji(new _r)),this.a=this}function ag(){UG=vd(gd(gd(new Z_,(ML(),xF)),cF),vF),XG=pd(new Z_,dF),this.b=(ml(),new _r),this.a=new _r}function sg(t){fg(t.a),t.b=Ey(fM,kP,1,t.b.length,4,1)}function ug(t){return!t.b&&(t.b=new $o(t.c.W())),t.b}function cg(t,e){var n;return qO(t,e,n=new be),n.d}function lg(t,e){var n;return(n=Ip("",t)).k=e,n.g=1,n}function fg(t){var e;for(e=t.mb();e.G();)e.H(),e.I()}function hg(t,e){return fl(e,79)&&Mi(t.b,Gh(e,79).mc())}function dg(t,e,n){return Sl(e)?Rv(t,e,n):jC(t.d,e,n)}function pg(t,e,n,r){this.d=t,this.b=e,this.a=n,this.c=r}function gg(t,e,n,r){this.d=t,this.e=e,this.c=n,this.b=r}function vg(t,e,n,r){this.a=t,this.c=e,this.b=n,this.d=r}function bg(t,e,n,r){La.call(this,t,e),this.a=n,this.b=r}function yg(t,e){return oi(),t==e?0:t<e?-1:1}function wg(t,e){return Lf(Dl(function(t,e){return Pf(yc(Gh(Up(t.g,e),10)),function(t){return new Za(t.d,t.e)}(Gh(Up(t.f,e),198).b))}(t.f,e)),t.f.d)}function mg(t,e){return Ud(t.a,e)?t.b[Gh(e,17).e]:null}function xg(t,e){return Xu(t)===Xu(e)||null!=t&&e_(t,e)}function _g(t,e){if(null==e)throw new Wr;return function(t,e){var n,r=t.a;e=String(e),r.hasOwnProperty(e)&&(n=r[e]);var i=(cx(),QM)[typeof n];return i?i(n):c_(typeof n)}(t,e)}function Eg(t){return Ac(null==t||Cp(t)&&!(t.ad===n)),t}function kg(t){return!t.a&&(t.a=new Ko(t.c.bb())),t.a}function Sg(t){return!t.d&&(t.d=new Jn(t.c.fb())),t.d}function Cg(t){t.a.a=t.c,t.c.b=t.a,t.a.b=t.c.a=null,t.b=0}function Tg(t,e){return null==e?bT(t.d,null):dx(t.e,e)}function Ag(t,e){this.g=t,this.d=_x(Oo(TH,1),qI,9,0,[e])}function Ng(t){this.c=t,this.b=new Ta(Gh(Od(new E),56))}function Og(){this.a=new Br,this.b=(kw(3,JP),new sw(3))}function Lg(t,e){this.a=t,Cf.call(this,t,Gh(t.d,20).ub(e))}function Pg(t,e,n,r){this.a=t,this.c=e,this.b=n,this.d=r}function Ig(t,e,n){this.a=nP,this.d=t,this.b=e,this.c=n}function jg(){this.d=0,this.b=0,this.a=0,this.c=0}function Mg(){this.b=new Qi,this.d=new so,this.e=new ri}function Dg(){Dg=r,kX=new le,SX=new he,CX=new de}function Rg(){Rg=r,mM=new $f,wM=new Kf,xM=new Qc,_M=new wl}function Bg(){Bg=r,vz=new js("GREEDY",0),bz=new js(Lj,1)}function Gg(){Gg=r,qG=new Cd((HL(),dR),(Hd(),Hd(),vX))}function Hg(t,e){var n;return n=Ty(e),Gh(Up(t.c,n),24).a}function Fg(t,e){var n;return(n=pl(t.a,e))&&(e.f=null),n}function zg(t){var e;return Xb(e=t.b.ob(),e.length),e}function Yg(t){return t<0?-1:t>0?1:0}function Vg(t,e){return Bm(function(t,e){return Sh(t.l&e.l,t.m&e.m,t.h&e.h)}(Vl(t)?Xm(t):t,Vl(e)?Xm(e):e))}function qg(t){return 0==t.b?null:(Nc(0!=t.b),Hw(t,t.a.a))}function Ug(t){t.d=t.d-15,t.b=t.b-15,t.c=t.c+15,t.a=t.a+15}function Xg(t){this.b=t,this.c=t,t.e=null,t.c=null,this.a=1}function Wg(t,e,n){this.d=t,this.b=new je,this.c=e,this.a=n}function $g(t,e){!function(t,e){t.a=e}(this,new Za(t.a,t.b)),function(t,e){t.b=e}(this,Rh(e))}function Kg(t){hl(new $n(Uk(t.e)))&&(function(t){var e,n,r;for(r=new Bd(new ir(t.c).a);dl(r.a);)switch(r.b=Kb(r.a),n=new Du(r.c,r.b),e=Gh(n.b.b[n.a.e],62),Gh(n.a,67).e){case 0:e.d=0,e.e=-(e.b+t.d);break;case 1:e.d=(t.e.e.j.a-e.c)/2,e.e=-(e.b+t.d);break;case 2:e.d=t.e.e.j.a-e.c,e.e=-(e.b+t.d);break;case 3:e.d=0,e.e=t.e.e.j.b+t.d;break;case 4:e.d=(t.e.e.j.a-e.c)/2,e.e=t.e.e.j.b+t.d;break;case 5:e.d=t.e.e.j.a-e.c,e.e=t.e.e.j.b+t.d;break;case 6:e.d=-(e.c+t.d),e.e=0;break;case 7:e.d=-(e.c+t.d),e.e=(t.e.e.j.b-e.b)/2;break;case 8:e.d=-(e.c+t.d),e.e=t.e.e.j.b-e.b;break;case 9:e.d=t.e.e.j.a+t.d,e.e=0;break;case 10:e.d=t.e.e.j.a+t.d,e.e=(t.e.e.j.b-e.b)/2;break;case 11:e.d=t.e.e.j.a+t.d,e.e=t.e.e.j.b-e.b;break;case 12:e.d=t.q.b+t.d,e.e=t.q.d+t.d;break;case 13:e.d=(t.e.e.j.a-e.c)/2,e.e=t.q.d+t.d;break;case 14:e.d=t.e.e.j.a-t.q.c-e.c-t.d,e.e=t.q.d+t.d;break;case 15:e.d=t.q.b+t.d,e.e=(t.e.e.j.b-e.b)/2;break;case 16:e.d=(t.e.e.j.a-e.c)/2,e.e=(t.e.e.j.b-e.b)/2;break;case 17:e.d=t.e.e.j.a-t.q.c-e.c-t.d,e.e=(t.e.e.j.b-e.b)/2;break;case 18:e.d=t.q.b+t.d,e.e=t.e.e.j.b-t.q.a-e.b-t.d;break;case 19:e.d=(t.e.e.j.a-e.c)/2,e.e=t.e.e.j.b-t.q.a-e.b-t.d;break;case 20:e.d=t.e.e.j.a-t.q.c-e.c-t.d,e.e=t.e.e.j.b-t.q.a-e.b-t.d}}(t),function(t){var e,n,r,i,o;for(r=new $n(Uk(t.e));r.a<r.c.c.length;)n=Gh(Wv(r),129),o=new Uu(n.e.i),i=_E()[n.e.k],e=Gh(mg(t.c,i),283),o.b=e.e+e.a,i.b==(Bb(),EG)?o.a=e.d:i.b==_G?o.a=e.d+(e.c-n.e.j.a)/2:i.b==kG&&(o.a=e.d+e.c-n.e.j.a),n.e.i.a=o.a,n.e.i.b=o.b,e.a+=n.e.j.b+t.d}(t))}function Zg(t,e){Gh(rw(t.e,e),116)&&(t.d=!0)}function Qg(t,e){var n;return Xb(n=t.b.pb(e),t.b.Y()),n}function Jg(t){var e;return e=YT(t,(uL(),BB)),e+=YT(t,yB)}function tv(t,e){t.f&&Dy(t.f.f,t),t.f=e,t.f&&Oh(t.f.f,t)}function ev(t,e){t.d&&Dy(t.d.a,t),t.d=e,t.d&&Oh(t.d.a,t)}function nv(t,e){t.d&&Dy(t.d.b,t),t.d=e,t.d&&Oh(t.d.b,t)}function rv(t,e){t.c&&Dy(t.c.e,t),t.c=e,t.c&&Oh(t.c.e,t)}function iv(t){var e;return lm(e=Rh(t.b),t.c),lm(e,t.i),e}function ov(){ov=r,sY=new au(xI,0),aY=new au(mI,1)}function av(){av=r,fV=new du(mI,0),hV=new du(xI,1)}function sv(t){return Dg(),fl(t,63)?new Zo(t):new Wl(t)}function uv(t,e){return Xx(t,e,function(t,e){var n;return null==(n=_a(t.a,e))?[]:n}(t,null==e?0:t.b.Vc(e)))}function cv(t){var e;return"n_"+(null==(e=ry(t))?aa(t.k):e)}function lv(t){return ta(bw(t))+"@"+(V_(t)>>>0).toString(16)}function fv(t,e){return function(t,e){return Hd(),t==e?0:t?1:-1}(eo((Md(t),t)),eo((Md(e),e)))}function hv(t,e){return null==e?Wu(uv(t.d,null)):Pu(t.e,e)}function dv(t,e,n){return new Ov(t.c,RN(t.b,function(t,e,n){return new JC(t,!1,null,(Vc(),TM),!0,e,n)}(t.d,e,n)),t.a)}function pv(t){return 0|Math.max(Math.min(t,iP),-2147483648)}function gv(t){this.e=t,this.b=this.e.a.entries(),this.a=[]}function vv(t){this.c=t,this.b=new zx(new Hn(this.c.a).a)}function bv(t){this.b=(qc(),qc(),qc(),LM),this.a=Gh(Od(t),35)}function yv(t,e,n){Wc(),Lh.call(this,t,e),null!=n&&(this.c=n)}function wv(t,e,n){if(t<0||e<t||e>n)throw new ro(function(t,e,n){if(t<0||t>n)return MC(t,n,"start index");if(e<0||e>n)return MC(e,n,"end index");return TA("end index (%s) must not be less than start index (%s)",_x(Oo(fM,1),kP,1,4,[F_(e),F_(t)]))}(t,e,n))}function mv(t,e){if(null==t)throw new Eo((oi(),e));return t}function xv(t){if(!X_(t))throw new xi;return t.c=t.b,t.b.H()}function _v(t){function e(){}return e.prototype=t||{},new e}function Ev(t){var e;return ex(e=new Ca(nx(t.length)),t),e}function kv(t){var e;e=t.c.b.b,t.b=e,t.a=t.c.b,e.a=t.c.b.b=t}function Sv(t){this.b=null,!t&&(Qs(),Qs(),t=NX),this.a=t}function Cv(t){this.b=t,this.a=new Uv(this.b,this.b.c.length)}function Tv(t){return Qp(),Od(t),dk(t||Dh(new $n(null)))}function Av(t,e){var n=t.a=t.a||[];return n[e]||(n[e]=t.Oc(e))}function Nv(t,e,n){var r;tS(e,n,t.c.length),r=n-e,ya(t.c,e,r)}function Ov(t,e,n){Oa.call(this,e.a),this.c=t,this.b=e,this.a=n}function Lv(t){return Yu(t.c),t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function Pv(t){return Yu(t.e),t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function Iv(t){return Gm(_x(Oo(nD,1),RI,10,0,[t.f.i,t.i,t.a]))}function jv(){jv=r,yz=qx((Bg(),_x(Oo(mz,1),CP,193,0,[vz,bz])))}function Mv(){Mv=r,tz=qx((kb(),_x(Oo(sz,1),CP,175,0,[QF,JF])))}function Dv(){Dv=r,Dz=qx((sb(),_x(Oo(Bz,1),CP,192,0,[Mz,jz])))}function Rv(t,e,n){return null==e?jC(t.d,null,n):tE(t.e,e,n)}function Bv(t,e){return Xd(t.a,e)?Ep(t,Gh(e,17).e,null):null}function Gv(t){return Od(t),Kk((qc(),new Pc(Mc(zh(t.a,new h)))))}function Hv(t,e){var n,r;return r=Zd(t,e),n=t.a.ub(r),new Fa(t,n)}function Fv(t,e,n){var r;(r=new oe).b=e,r.a=n,++e.b,Oh(t.d,r)}function zv(t,e,n){t.d&&Dy(t.d.b,t),t.d=e,t.d&&Td(t.d.b,n,t)}function Yv(t,e,n){tS(e,n,t.Y()),this.c=t,this.a=e,this.b=n-e}function Vv(t,e,n,r){this.d=t,this.b=e,this.a=n,this.c=r}function qv(t,e){Ni.call(this,cm(Od(t),Od(e))),this.b=t,this.c=e}function Uv(t,e){this.a=t,Fn.call(this,t),wy(e,t.Y()),this.b=e}function Xv(t,e,n,r){Wc(),yv.call(this,t,e,n),null!=r&&(this.d=r)}function Wv(t){return Nc(t.a<t.c.c.length),t.b=t.a++,t.c.c[t.b]}function $v(t){return Nc(t.b.b!=t.d.a),t.c=t.b=t.b.b,--t.a,t.c.c}function Kv(t,e){var n;return n=1-e,t.a[n]=gm(t.a[n],n),gm(t,e)}function Zv(t){var e;return pL(),pL(),e=PY,t.d&&PC(t),function(){throw new $r}(),e}function Qv(t){var e;return Vl(t)?-0==(e=t)?0:e:function(t){var e,n,r;if(hS(t,(fw(),eD))<0)return-function(t){return t.l+t.m*uI+t.h*cI}((e=1+~t.l&aI,n=~t.m+(0==e?1:0)&aI,r=~t.h+(0==e&&0==n?1:0)&sI,Sh(e,n,r)));return t.l+t.m*uI+t.h*cI}(t)}function Jv(t){var e;return Od(t),NC(e=new hh((Yc(),t))),Cx(e)}function tb(t){return zf(t),Yu(t.c),t.e=t.a=t.c,t.c=t.c.b,++t.d,t.a}function eb(t){return zf(t),Yu(t.e),t.c=t.a=t.e,t.e=t.e.d,--t.d,t.a}function nb(t,n,r){var i;i=function(){var t;0!=UM&&(t=function(){if(Date.now)return Date.now();return(new Date).getTime()}())-XM>2e3&&(XM=t,WM=e.setTimeout(la,10));if(0==UM++)return function(t){var e,n;if(t.a){n=null;do{e=t.a,t.a=null,n=xC(e,n)}while(t.a);t.a=n}}((ci(),qM)),!0;return!1}();try{return function(t,e,n){return t.apply(e,n)}(t,n,r)}finally{!function(t){t&&function(t){var e,n;if(t.b){n=null;do{e=t.b,t.b=null,n=xC(e,n)}while(t.b);t.b=n}}((ci(),qM)),--UM,t&&-1!=WM&&(!function(t){e.clearTimeout(t)}(WM),WM=-1)}(i)}}function rb(t){return fl(t,19)?Gh(t,19).V():!t.mb().G()}function ib(t){Qp(),this.a=(Dg(),fl(t,63)?new Zo(t):new Wl(t))}function ob(){ob=r,fq=new mu(_I,0),hq=new mu("TOP_LEFT",1)}function ab(){ab=r,uY=new su("DOWN",0),cY=new su("UP",1)}function sb(){sb=r,Mz=new Ds("LAYER_SWEEP",0),jz=new Ds(Lj,1)}function ub(){ub=r,Yz=new iu("UPPER",0),zz=new iu("LOWER",1)}function cb(t,e){return!!fl(e,21)&&eS(t.a,Gh(e,21))}function lb(t,e){return!!fl(e,21)&&eS(t.a,Gh(e,21))}function fb(t,e){return!!fl(e,21)&&eS(t.a,Gh(e,21))}function hb(t){var e;return S_(e=new Og,t),$y(e,(HL(),fR),null),e}function db(t,e){return e===t?"(this Map)":(oi(),null==e?tP:Bk(e))}function pb(t,e,n,r){return fl(n,63)?new wf(t,e,n,r):new dp(t,e,n,r)}function gb(){gb=r,bB=qx((jw(),_x(Oo(GB,1),CP,149,0,[gB,pB,dB])))}function vb(){vb=r,qD=qx((w_(),_x(Oo(KR,1),CP,166,0,[zD,FD,YD])))}function bb(){bb=r,Sz=qx((lw(),_x(Oo(Nz,1),CP,173,0,[kz,Ez,_z])))}function yb(t,e){var n;Dg(),Mk(n=t.ob(),0,n.length,e),function(t,e){var n,r;for(r=t.Y(),n=0;n<r;n++)t.wb(n,e[n])}(t,n)}function wb(t,e,n,r,i){this.c=t,this.e=e,this.d=n,this.b=r,this.a=i}function mb(t,e,n,r,i){La.call(this,t,e),this.a=n,this.b=r,this.c=i}function xb(t,e,n,r,i){La.call(this,t,e),this.a=n,this.b=r,this.c=i}function _b(t,e,n){this.a=e,this.c=t,this.b=(Od(n),new hh((Yc(),n)))}function Eb(){wc(this),this.b=new Za(QI,QI),this.a=new Za(JI,JI)}function kb(){kb=r,QF=new Ps("QUADRATIC",0),JF=new Ps("SCANLINE",1)}function Sb(t){var e,n;return n=function(t){return oi(),null==t?tP:Bk(t)}(t.Zb()),1==(e=t.Yb())?n:n+" x "+e}function Cb(t){return Nc(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function Tb(t,e){if(t<0||t>e)throw new ro(MC(t,e,"index"));return t}function Ab(t,e,n){Od(t),function(t){var e,n,r;for(yb(t.c,t.a),r=new $n(t.c);r.a<r.c.c.length;)for(n=Wv(r),e=new $n(t.b);e.a<e.c.c.length;)Gh(Wv(e),160).Ec(n)}(new _b(new hh((Yc(),t)),e,n))}function Nb(t,e,n,r){Array.prototype.splice.apply(t,[e,n].concat(r))}function Ob(t,e,n,r){var i;(i=new ve).c=e,i.b=n,i.a=r,r.b=n.a=i,++t.b}function Lb(t,e){var n;return n=sv(Dh(new Jy(t,e))),ip(new Jy(t,e)),n}function Pb(t){this.d=t.d,this.c=t.c,this.a=t.a,this.b=t.b}function Ib(){this.g=new zr,this.c=new zr,this.a=new je,this.k=new je}function jb(){this.d=new ag,this.a=new nf,this.c=new Vu,this.b=new _e}function Mb(){this.i=new je,this.g=new ao,this.n=new Mh,this.q=new Mh}function Db(t,e,n,r){this.e=t,this.b=new je,this.d=e,this.a=n,this.c=r}function Rb(){Rb=r,hH=new P,dH=new I,lH=new j,fH=new M,pH=new D}function Bb(){Bb=r,EG=new ys(mI,0),_G=new ys(_I,1),kG=new ys(xI,2)}function Gb(){Gb=r,CD=qx((Im(),_x(Oo(LD,1),CP,107,0,[kD,xD,_D,ED])))}function Hb(){Hb=r,PD=qx((y_(),_x(Oo(GD,1),CP,122,0,[OD,AD,TD,ND])))}function Fb(){Fb=r,QB=qx((jS(),_x(Oo(JB,1),CP,139,0,[$B,KB,WB,XB])))}function zb(){zb=r,UB=qx((kE(),_x(Oo(ZB,1),CP,150,0,[YB,VB,zB,FB])))}function Yb(){Yb=r,gY=qx((Dw(),_x(Oo(vY,1),CP,194,0,[dY,pY])))}function Vb(){Vb=r,pq=qx((ob(),_x(Oo(mU,1),CP,174,0,[fq,hq])))}function qb(t){return Od(t),fl(t,19)?new hh((Yc(),Gh(t,19))):Dh(t.mb())}function Ub(t,e,n,r){null==e&&(e=tP),t.a+=""+(oi(),e.substr(n,r-n))}function Xb(t,e){var n;for(n=0;n<e;++n)Mp(t,n,new rr(Gh(t[n],21)))}function Wb(t,e){var n,r;(n=Gh(function(t,e){ml(),Od(t);try{return Sl(e)?Tg(t,e):bT(t.d,e)}catch(t){if(fl(t=Qx(t),119))return null;if(fl(t,76))return null;throw A_(t)}}(t.b,e),19))&&(r=n.Y(),n.Q(),t.c-=r)}function $b(t,e,n){var r;return my(e,t.c.length),r=t.c[e],t.c[e]=n,r}function Kb(t){return Nc(t.a<t.c.a.length),t.b=t.a,Ew(t),t.c.b[t.b]}function Zb(t){var e;for(qc(),e=0;t.G();)t.H(),e=p_(e,1);return iw(e)}function Qb(t){this.d=t,this.b=this.d.a.entries(),this.a=this.b.next()}function Jb(t){this.g=t,this.f=new je,this.a=Ho(this.g.c.c,this.g.d.c)}function ty(t){ii(),this.e=null,this.f=null,this.a="",this.b=t,this.a=""}function ey(){_r.call(this),vf(this),this.b.b=this.b,this.b.a=this.b}function ny(t){return!(!t.c||!t.d)&&(!!t.c.f&&t.c.f==t.d.f)}function ry(t){return 0!=t.c.c.length?Gh(ld(t.c,0),33).a:null}function iy(t){return 0!=t.c.c.length?Gh(ld(t.c,0),33).a:null}function oy(t,e,n){this.a=t,this.b=e,this.c=n,Oh(t.j,this),Oh(e.d,this)}function ay(t,e,n,r){Wy(e,n,t.c?new en(pv(r)):new en(r))}function sy(t){var e;return Od(t),ex(e=new sw(function(t){return kw(t,QP),iw(p_(p_(5,t),t/10|0))}(t.length)),t),e}function uy(t){return Sh(t&aI,t>>22&aI,t<0?sI:0)}function cy(){cy=r,mD=qx((b_(),_x(Oo(SD,1),CP,59,0,[bD,vD,gD,pD,yD])))}function ly(){ly=r,HB=qx((uL(),_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB])))}function fy(){fy=r,iB=qx((EE(),_x(Oo(fB,1),CP,100,0,[nB,eB,QR,JR,tB])))}function hy(t,e){var n;for(n=e.mb();n.G();)uN(t,Gh(n.H(),55),0,0)}function dy(t,e,n){var r;for(r=t.mb();r.G();)KA(Gh(r.H(),55),e,n)}function py(t,e,n){var r,i;for(r=0,i=0;i<e.length;i++)r+=t.Hc(e[i],r,n)}function gy(t,e){var n;return my(e,t.c.length),n=t.c[e],ya(t.c,e,1),n}function vy(t){var e;for(Od(t),function(t){if(!t)throw new io((oi(),"numberToAdvance must be nonnegative"))}(!0),e=0;e<0&&X_(t);e++)xv(t);return e}function by(t){var e;t.d=new Gc(t),t.e=new Hc(t),e=0|t[tM],t[tM]=e+1}function yy(t){t.g=new Qi,t.o=new Qi,t.c=new Qi,t.j=new je,t.d=new je}function wy(t,e){if(t<0||t>e)throw new ro("Index: "+t+", Size: "+e)}function my(t,e){if(t<0||t>=e)throw new ro("Index: "+t+", Size: "+e)}function xy(t,e){var n;return!!(n=$x(t,e.yb()))&&xg(n.e,e.zb())}function _y(t,e){var n;return n=t.d,e>0?Gh(ld(n.a,e-1),9):null}function Ey(t,e,n,r,i,o){var a;return a=rS(i,r),9!=i&&_x(Oo(t,o),e,n,i,a),a}function ky(t){var e;if(!am(t))throw new xi;return t.d=1,e=t.c,t.c=null,e}function Sy(t,e,n,r){this.f=t,this.e=e,this.d=n,this.b=r,this.c=r?r.d:null}function Cy(t){var e;return e=Gh(ld(t.f,0),7),Gh(yx(e,(DL(),Uq)),7)}function Ty(t){var e;return e=Gh(ld(t.f,0),7),Gh(yx(e,(DL(),Uq)),7)}function Ay(){Ay=r,uX=qx((CE(),_x(Oo(cX,1),CP,153,0,[iX,aX,oX])))}function Ny(){Ny=r,dX=qx((jm(),_x(Oo(pX,1),CP,172,0,[lX,fX,hX])))}function Oy(){Oy=r,dD=qx((ok(),_x(Oo(wD,1),CP,103,0,[sD,lD,fD,hD,uD,cD])))}function Ly(){Ly=r,HD=qx((TS(),_x(Oo(VD,1),CP,133,0,[RD,MD,BD,ID,DD,jD])))}function Py(){Py=r,hB=qx((cS(),_x(Oo(vB,1),CP,28,0,[lB,cB,uB,oB,sB,aB])))}function Iy(){Iy=r,uz=qx((aC(),_x(Oo(fz,1),CP,125,0,[oz,nz,az,iz,rz,ez])))}function jy(){jy=r,aD=new Lh("de.cau.cs.kieler.labels.labelManager",null)}function My(t,e){var n;return(n=new be).c=!0,n.d=e.zb(),qO(t,e.yb(),n)}function Dy(t,e){var n;return-1!=(n=Ky(t,e,0))&&(t.vb(n),!0)}function Ry(t,e){return 9!=yw(e)&&_x(bw(e),e._c,e.__elementTypeId$,yw(e),t),t}function By(t){return lp(t.c.a.c,t),Nc(t.b!=t.c.a.b),t.a=t.b,t.b=t.b.a,t.a}function Gy(t){Cc(!!t.c),lp(t.e,t),t.c.I(),t.c=null,t.b=Qm(t),Ul(t.e,t)}function Hy(t,e,n){Ni.call(this,cm(Od(t),Od(e))),this.b=t,this.c=e,this.a=n}function Fy(t,e,n,r){this.b=new An(this),this.a=t,this.c=e,this.e=n,this.d=r}function zy(t){Fx.call(this,t,0),vf(this),this.b.b=this.b,this.b.a=this.b}function Yy(t,e){Ru.call(this,t,e),this.a=Ey(jX,kP,183,2,0,1),this.b=!0}function Vy(t,e){return Sl(e)?null==e?!!uv(t.d,null):function(t,e){return!(void 0===Ea(t.a,e))}(t.e,e):!!uv(t.d,e)}function qy(t,e){return To(),(t-e>0?t-e:-(t-e))<=iI||t==e||isNaN(t)&&isNaN(e)}function Uy(t,e){return To(),(t-e>0?t-e:-(t-e))<=iI||t==e||isNaN(t)&&isNaN(e)}function Xy(t){var e,n;e=!0;do{n=e?Q_(t):vE(t),e=!e}while(n);tx(t,t.d)}function Wy(t,e,n){var r;if(null==e)throw new Wr;return r=_g(t,e),function(t,e,n){if(n){var r=n.gc();t.a[e]=r(n)}else delete t.a[e]}(t,e,n),r}function $y(t,e,n){return!t.n&&(t.n=new _r),null==n?qd(t.n,e):dg(t.n,e,n),t}function Ky(t,e,n){for(;n<t.c.length;++n)if(xg(e,t.c[n]))return n;return-1}function Zy(t,e){for(;e>=t.a.c.length;)Oh(t.a,new so);return Gh(ld(t.a,e),20)}function Qy(t,e,n,r,i){var o;return Uw(n,o=Ip(t,e)),o.g=i?8:0,o.f=r,o.e=i,o}function Jy(t,e){var n;this.f=t,this.b=e,n=Gh(Up(t.b,e),126),this.c=n?n.b:null}function tw(t,e){var n,r;for(n=0,r=e.length;n<r;++n)Ob(t,e[n],t.c.b,t.c)}function ew(t,e,n,r,i,o){var a;rv(a=hb(r),i),nv(a,o),rT(t.a,r,new gh(a,e,n.f))}function nw(t,e,n){var r;return r=0,t.c[n]>0&&(r+=function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E;for(i=0,y=0,ml(),b=new _r,r=new _r,o=new _r,E=new _r,function(t,e,n){var r,i,o,a,s,u,c,l,f,h,d;for(r=0,i=0,l=0;l<t.length;l++)if(Yl(Gh(yx(u=t[l],(HL(),AR)),28)))for(a=fC(u,(uL(),yB)).mb();a.G();)(o=Gh(a.H(),7)).b.c.length+o.e.c.length>0&&(r+=o.b.c.length+o.e.c.length,dg(e,o,F_(r)));else{for(s=fC(u,(uL(),yB)).mb();s.G();)o=Gh(s.H(),7),r+=o.b.c.length+o.e.c.length;for(a=fC(u,yB).mb();a.G();)(o=Gh(a.H(),7)).b.c.length+o.e.c.length>0&&dg(e,o,F_(r))}for(c=t.length-1;c>=0;c--)if(Yl(Gh(yx(u=t[c],(HL(),AR)),28)))for(h=fC(u,(uL(),BB)).mb();h.G();)(f=Gh(h.H(),7)).b.c.length+f.e.c.length>0&&(i+=f.b.c.length+f.e.c.length,dg(n,f,F_(i)));else{for(d=fC(u,(uL(),BB)).mb();d.G();)f=Gh(d.H(),7),i+=f.b.c.length+f.e.c.length;for(h=fC(u,BB).mb();h.G();)(f=Gh(h.H(),7)).b.c.length+f.e.c.length>0&&dg(n,f,F_(i))}}(t,o,E),e=null,v=0,_=0,w=!0,u=!0,h=0,p=t.length;h<p;++h){for(l=t[h],x=new $n(l.f);x.a<x.c.c.length;)switch((m=Gh(Wv(x),7)).g.e){case 2:i+=XT(m,o);break;case 4:i+=XT(m,E)}if(g=l.g,u&&(g==(AS(),SH)||g==CH)){if(!(c=Gh(yx(l,(DL(),Gq)),9))){u=!1;continue}e!=c&&(e&&dg(b,e,new Qa(F_(v),F_(_))),e=c,v=0,_=0,w=!0),l==e&&(w=!1),w?(v+=Gh(yx(l,Cq),24).a,dg(r,l,F_(v))):(_+=Gh(yx(l,Cq),24).a,dg(r,l,F_(_)))}}if(!!e&&dg(b,e,new Qa(F_(v),F_(_))),u)for(s=null,a=0,n=0,w=!0,f=0,d=t.length;f<d;++f)switch(l=t[f],(g=l.g).e){case 0:a=Gh(Wu(uv(r.d,l)),24).a,n=Gh(Gh(Wu(uv(b.d,l)),27).b,24).a,s=l,w=!1;break;case 3:a=Gh(Wu(uv(r.d,l)),24).a,(c=Gh(yx(l,(DL(),Gq)),9))!=s&&(n=Gh(Gh(Wu(uv(b.d,c)),27).a,24).a,s=c,w=!0);break;default:y+=w?a:n-a}return i+y}(e)),t.b[n]&&(r+=function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_;for(e=0,b=!0,_=null,r=0;r<t.length;r++)if(o=t[r],(v=o.g)==(AS(),SH))_=o,b=!1;else if(v==CH){if(fl(yx(o,(DL(),Uq)),12))continue;if(n=Gh(yx(o,Uq),9),_!=n&&(_=n,b=!0),!Yl(Gh(yx(n,(HL(),AR)),28)))continue;for(h=null,p=null,w=new $n(o.f);w.a<w.c.c.length;)0==(y=Gh(Wv(w),7)).b.c.length?0==y.e.c.length||(p=Gh(yx(y,Uq),7)):h=Gh(yx(y,Uq),7);for(i=r+1;i<t.length&&(a=t[i],(f=a.g)!=SH);i++)if(f==CH){if(Xu(yx(a,Uq))!==Xu(n))break;for(s=null,c=null,x=new $n(a.f);x.a<x.c.c.length;)0==(m=Gh(Wv(x),7)).b.c.length?0==m.e.c.length||(c=Gh(yx(m,Uq),7)):s=Gh(yx(m,Uq),7);b?(d=!1,g=!1,p&&s&&p.k<s.k&&(++e,g=!0),h&&c&&h.k>c.k&&(++e,d=!0),p&&c&&p.k>c.k&&(++e,g=!0),h&&s&&h.k<s.k&&(++e,d=!0),d&&g&&h==p&&--e):(u=!1,l=!1,h&&c&&h.k<c.k&&(++e,l=!0),p&&s&&p.k>s.k&&(++e,u=!0),h&&s&&h.k<s.k&&(++e,u=!0),p&&c&&p.k>c.k&&(++e,l=!0),u&&l&&s==c&&--e)}}return e}(e)),r}function rw(t,e){var n;return(n=Gh(qd(t.c,e),176))?(md(n),n.e):null}function iw(t){return Zx(t,iP)>0?iP:Zx(t,lP)<0?lP:qp(t)}function ow(t){return Yc(),kw(t,"size"),qp(function(t,e){return Zx(t,e)<0}(g_(t,8),qP)?g_(t,8):qP),new Jo}function aw(t){ah.call(this,(oi(),null==t?tP:Bk(t)),fl(t,46)?Gh(t,46):null)}function sw(t){wc(this),Id(t>=0,"Initial capacity must not be negative")}function uw(){uw=r,LH=new z,NH=new Y,OH=new V,AH=new q,PH=new U,IH=new X}function cw(){cw=r,MX=new Mu("All",0),DX=new Jc,RX=new bl,BX=new tl}function lw(){lw=r,kz=new Ms(Mj,0),Ez=new Ms("LONGEST_PATH",1),_z=new Ms(Lj,2)}function fw(){fw=r,JM=Sh(aI,aI,524287),tD=Sh(0,0,524288),uy(1),uy(2),eD=uy(0)}function hw(){hw=r,$F=qx((UT(),_x(Oo(KF,1),CP,109,0,[XF,zF,qF,YF,VF,FF,UF,WF])))}function dw(){dw=r,rY=qx((Gk(),_x(Oo(oY,1),CP,141,0,[nY,Jz,tY,Qz,eY])))}function pw(){pw=r,LV=qx((fS(),_x(Oo(BV,1),CP,115,0,[CV,SV,AV,TV,NV])))}function gw(){gw=r,xU=qx((Hk(),_x(Oo(SU,1),CP,85,0,[wU,gU,vU,bU,yU])))}function vw(t){qS(),function(t,e,n){t.a=1502^e,t.b=n^oM}(this,qp(Vg(Bm(function(t,e){var n,r,i,o,a;e&=63,n=t.h,(r=0!=(524288&n))&&(n|=-1048576),e<22?(a=n>>e,o=t.m>>e|n<<22-e,i=t.l>>e|t.m<<22-e):e<44?(a=r?sI:0,o=n>>e-22,i=t.m>>e-22|n<<44-e):(a=r?sI:0,o=r?aI:0,i=n>>e-44);return Sh(i&aI,o&aI,a&sI)}(Vl(t)?Xm(t):t,24)),sM)),qp(Vg(t,sM)))}function bw(t){return Sl(t)?pM:kl(t)?yX:gf(t)?bX:Vd(t)||_d(t)?t.$c:t.$c||VM}function yw(t){return null==t.__elementTypeCategory$?9:t.__elementTypeCategory$}function ww(t){var e,n;for(nu(),n=gI,e=0;e<t.length;e++)t[e]>n&&(n=t[e]);return n}function mw(t,e){var n;return(n=Gh(Up(t.b,e),106))||(n=e.rc(),dg(t.b,e,n)),n}function xw(t,e){var n;return(n=Gh(Up(t.c,e),176))?(Gl(t,n),n.e):null}function _w(t,e,n,r){var i;(i=Gh(xw(t.e,e),116)).b+=n,i.a+=r,Sk(t.e,e,i),t.d=!0}function Ew(t){var e;for(++t.a,e=t.c.a.length;t.a<e;++t.a)if(t.c.b[t.a])return}function kw(t,e){if(t<0)throw new io(e+" cannot be negative but was: "+t);return t}function Sw(t){if(!t.a.G()&&(t.a=t.b.mb(),!t.a.G()))throw new xi;return t.a.H()}function Cw(t){return qc(),Od(t),fl(t,108)?Gh(t,108):new Ve(t)}function Tw(t,e){var n=t.a[e],r=(cx(),QM)[typeof n];return r?r(n):c_(typeof n)}function Aw(t,e){var n;for(n=new $n(t);n.a<n.c.c.length;)wT(Gh(Wv(n),7),e)}function Nw(t,e){var n,r,i,o;for(i=0,o=(r=t.d).length;i<o;++i)n=r[i],sl(t.g,n).a=e}function Ow(t){var e;return!am(fp((e=new zn(t.b.a).a.bb().mb(),new Yn(e)),t.a))}function Lw(t){var e;Cc(!!t.c),e=t.c.a,Hw(t.d,t.c),t.b==t.c?t.b=e:--t.a,t.c=null}function Pw(t){return t.c&&t.d?t.c.f+"("+t.c+")->"+t.d.f+"("+t.d+")":"e_"+ff(t)}function Iw(){Iw=r,ZR=qx((uT(),_x(Oo(rB,1),CP,41,0,[zR,FR,VR,$R,WR,XR,qR,UR,YR])))}function jw(){jw=r,gB=new ps("OUTSIDE",0),pB=new ps("INSIDE",1),dB=new ps("FIXED",2)}function Mw(){Mw=r,uq=new wu(SI,0),cq=new wu("TOP",1),sq=new wu("BOTTOM",2)}function Dw(){Dw=r,dY=new cu("CLASSIC",0),pY=new cu("IMPROVE_STRAIGHTNESS",1)}function Rw(){this.e=new ao,this.a=new jg,this.d=new ao,this.b=new je,this.c=new je}function Bw(t,e,n){this.b=e,this.a=t,this.c=n,Oh(this.a.e,this),Oh(this.b.b,this)}function Gw(t,e){t.d=Ho(t.d,e.d),t.c=Ro(t.c,e.c),t.a=Ro(t.a,e.a),t.b=Ho(t.b,e.b)}function Hw(t,e){var n;return n=e.c,e.a.b=e.b,e.b.a=e.a,e.a=e.b=null,e.c=null,--t.b,n}function Fw(t,e){var n;for(qc(),Od(t),Od(e),n=!1;e.G();)n|=t.ib(e.H());return n}function zw(t){var e;return lp(t.e,t),Nc(t.b),t.c=t.a,e=Gh(t.a.H(),21),t.b=Qm(t),e}function Yw(t){return lI<t&&t<cI?t<0?Math.ceil(t):Math.floor(t):Bm(function(t){var e,n,r,i,o,a,s,u;if(isNaN(t))return fw(),eD;if(t<-0x8000000000000000)return fw(),tD;if(t>=0x8000000000000000)return fw(),JM;i=!1,t<0&&(i=!0,t=-t);r=0,t>=cI&&(r=pv(t/cI),t-=r*cI);n=0,t>=uI&&(n=pv(t/uI),t-=n*uI);return e=pv(t),o=Sh(e,n,r),i&&(a=1+~o.l&aI,s=~o.m+(0==a?1:0)&aI,u=~o.h+(0==a&&0==s?1:0)&sI,o.l=a,o.m=s,o.h=u),o}(t))}function Vw(t){if(t){if(t.V())throw new xi;return t.sb(t.Y()-1)}return function(t){var e;for(qc();;)if(e=t.H(),!t.G())return e}(null.mb())}function qw(t,e){var n;return e<(n=t.d).a.c.length-1?Gh(ld(n.a,e+1),9):null}function Uw(t,e){if(t){e.k=t;var n=function(t){if(t.Tc())return null;var e=t.k;return YL[e]}(e);n?n.$c=e:YL[t]=[e]}}function Xw(t,e){var n,r;r=!1;do{r|=n=t.i?gx(t,e):px(t,e)}while(n);return r}function Ww(t,e,n){var r,i;r=e;do{i=no(t.n[r.k])+n,t.n[r.k]=i,r=t.a[r.k]}while(r!=e)}function $w(t,e){return mv(t,"set1"),mv(e,"set2"),eu(),new dh(t,new Aa(e),e)}function Kw(t){var e=/function(?:\s+([\w$]+))?\s*\(/.exec(t);return e&&e[1]||eP}function Zw(){Zw=r,mV=qx((CS(),_x(Oo(kV,1),CP,123,0,[wV,yV,bV,gV,pV,vV])))}function Qw(){Qw=r,GV=qx((SS(),_x(Oo(KV,1),CP,124,0,[MV,jV,RV,IV,DV,PV])))}function Jw(){Jw=r,xX=_x(Oo(UX,1),nI,26,12,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function tm(){tm=r,kU=new _u(kI,0),_U=new _u("INPUT",1),EU=new _u("OUTPUT",2)}function em(t){this.c=t,this.b=new zx(new Hn(t.b).a),this.a=null,this.d=(qc(),qc(),PM)}function nm(t){this.e=t,this.d=new Ca(nx(Qd(this.e).Y())),this.c=this.e.a,this.b=this.e.c}function rm(t,e,n){this.c=t,Mb.call(this),this.b=e,this.j=new gg(e.d,e.e,e.c,e.b),this.a=n}function im(t){return t.b.d.f.g==(AS(),_H)?Gh(yx(t.b.d.f,(DL(),Uq)),7):t.b.d}function om(t){return t.b.c.f.g==(AS(),_H)?Gh(yx(t.b.c.f,(DL(),Uq)),7):t.b.c}function am(t){switch(zu(3!=t.d),t.d){case 2:return!1;case 0:return!0}return function(t){return t.d=3,t.c=function(t){var e;for(;t.b.G();)if(e=t.b.H(),t.a.D(e))return e;return t.d=2,null}(t),2!=t.d&&(t.d=0,!0)}(t)}function sm(t){switch(t.e){case 2:return uL(),BB;case 4:return uL(),yB;default:return t}}function um(t){switch(t.e){case 1:return uL(),DB;case 3:return uL(),wB;default:return t}}function cm(t,e){var n;return Dg(),n=new Vs(1),Sl(t)?Rv(n,t,e):jC(n.d,t,e),new er(n)}function lm(t,e){var n,r,i;for(Md(e),n=!1,i=e.mb();i.G();)r=i.H(),n|=t.ib(r);return n}function fm(t){var e,n;for(n=new Br,e=t.b.mb();e.G();)Nh(n,Gh(e.H(),92).a);return n}function hm(t){var e,n,r;for(e=0,r=t.mb();r.G();)e+=(Md(n=Nf(r.H())),n);return e/t.Y()}function dm(t,e){var n;return(n=Gh(Up(t.c,e),200))||((n=new Zr).c=e,dg(t.c,n.c,n)),n}function pm(t,e){var n;return Md(e),n=e.e,!t.b[n]&&(Mp(t.b,n,e),++t.c,!0)}function gm(t,e){var n,r;return n=1-e,r=t.a[n],t.a[n]=r.a[e],r.a[e]=t,t.b=!0,r.b=!1,r}function vm(t,e){var n;return!!fl(e,10)&&(n=Gh(e,10),t.a==n.a&&t.b==n.b)}function bm(t,e,n){return t.g=new _m(e,n),kf(t,t.g,t.i),t.d=Go(2,t.d),++t.a,t.j=p_(t.j,n),t}function ym(t,e,n){return t.e=new _m(e,n),kf(t.f,t.e,t),t.d=Go(2,t.d),++t.a,t.j=p_(t.j,n),t}function wm(t,e){var n=t.a,r=0;for(var i in n)n.hasOwnProperty(i)&&(e[r++]=i);return e}function mm(t,e){var n,r;for(Md(e),r=e.bb().mb();r.G();)n=Gh(r.H(),21),t.db(n.yb(),n.zb())}function xm(t,e,n){this.g=t,this.d=e,this.e=n,this.a=new je,function(t){var e,n,r,i,o,a;for(a=new Yf(t.d,t.e),o=sA(a);o.G();)for(i=Gh(o.H(),7),r=t.e==(uL(),BB)?i.b:i.e,n=new $n(r);n.a<n.c.c.length;)ny(e=Gh(Wv(n),12))||e.c.f.d==e.d.f.d||(pC(t,e),++t.f,++t.c)}(this),Dg(),yb(this.a,null)}function _m(t,e){Fu(e>0),this.b=t,this.c=e,this.j=e,this.a=1,this.d=1,this.e=null,this.g=null}function Em(t){return 1.4901161193847656e-8*mT(t,26)+11102230246251565e-32*mT(t,27)}function km(t){return fl(t,87)?Jv(Gh(t,87)):fl(t,88)?Gh(t,88).a:fl(t,63)?new Ii(t):new Wa(t)}function Sm(t){var e;return e=Gh(yx(t,(DL(),Iq)),32),t.g==(AS(),_H)&&(e==(uL(),BB)||e==yB)}function Cm(t,e){return!!function(t,e){var n,r,i,o;for(n=Gh(yx(e,(DL(),Lq)),18),o=Gh(GS(bH,n),18),i=o.mb();i.G();)if(r=Gh(i.H(),18),!Gh(GS(t.a,r),20).V())return!1;return!0}(t,e)&&(rT(t.a,Gh(yx(e,(DL(),Lq)),18),e),!0)}function Tm(t,e){var n;if(e)for(n=0;n<6;n++)Gh(ld(t.a,n),18).jb(Gh(ld(e.a,n),19));return t}function Am(t,e){var n;return t.b?null:(n=function(t,e){return new Sf(t>0?t-1:t,e)}(t.e,t.f),Nh(t.a,n),n.g=t,t.d=e,n)}function Nm(t,e){var n,r;for(r=_k(t,0);r.b!=r.d.c;)(n=Gh(Cb(r),10)).a+=e.a,n.b+=e.b;return t}function Om(t,e){var n,r;for(n=0;n<e.length;n++)for(r=0;r<e[n].length;r++)e[n][r]=t[n][r]}function Lm(t){var e,n;for(n=new $n(t.b.f);n.a<n.c.c.length;)e=Gh(Wv(n),7),Zg(t.a,mE(e.g))}function Pm(){Pm=r,oH=new Ss("Q1",0),uH=new Ss("Q4",1),aH=new Ss("Q2",2),sH=new Ss("Q3",3)}function Im(){Im=r,kD=new ss(kI,0),xD=new ss(_I,1),_D=new ss("HEAD",2),ED=new ss("TAIL",3)}function jm(){jm=r,lX=new ku("AGGRESSIVE",0),fX=new ku("CAREFUL",1),hX=new ku("OFF",2)}function Mm(){Mm=r,aq=qx((hO(),_x(Oo(lq,1),CP,110,0,[QV,nq,JV,rq,tq,iq,eq,ZV])))}function Dm(t,e){return Hd(),Sl(t)?yg(t,Of(e)):kl(t)?rp(t,Nf(e)):gf(t)?fv(t,Af(e)):t.F(e)}function Rm(t,e){var n,r;return!!t.c&&(r=t.g,(n=t.a.$b(e,r))>0|0==n&t.f==(Vc(),TM))}function Bm(t){var e;return 0==(e=t.h)?t.l+t.m*uI:e==sI?t.l+t.m*uI-cI:t}function Gm(t){var e,n,r,i;for(e=new ao,r=0,i=t.length;r<i;++r)n=t[r],e.a+=n.a,e.b+=n.b;return e}function Hm(t){this.e=Xu(yx(Vp(t[0]),(HL(),rR)))===Xu((y_(),TD)),this.a=t,this.c=new _r,function(t){var e,n,r,i;for(r=0,i=(n=t.a).length;r<i;++r)mx(t,e=n[r],(uL(),DB)),mx(t,e,wB)}(this)}function Fm(t){fi(),this.g=(ml(),new _r),this.f=new _r,this.b=new _r,this.c=new Us,this.i=t}function zm(t){this.o=t,this.g=new je,this.j=new so,this.n=new so,this.e=new je,this.b=new je}function Ym(t,e){if(mp(t.a,e),e.f)throw new Ci("CNode belongs to another CGroup.");e.f=t}function Vm(t,e,n,r){var i,o;for((i=function(t,e,n,r){var i,o,a;o=e,i=n-1;for(;o<=i;){if(t[a=(o+i)/2|0]==r)return a;t[a]<r?o=a+1:i=a-1}return-o-1}(t,e,n,r))<0&&(i=-i-1),o=n-1;o>=i;o--)t[o+1]=t[o];t[i]=r}function qm(t,e,n,r){var i,o;for((i=function(t,e,n,r){var i,o,a,s;o=e,i=n-1;for(;o<=i;)if((s=t[a=o+i>>>1])<r)o=a+1;else{if(!(s>r))return a;i=a-1}return-(o+1)}(t,e,n,r))<0&&(i=-i-1),o=n-1;o>=i;o--)t[o+1]=t[o];t[i]=r}function Um(t,e){var n,r;for(Md(e),r=e.mb();r.G();)if(n=r.H(),!t.kb(n))return!1;return!0}function Xm(t){var e,n,r;return n=0,(r=t)<0&&(r+=cI,n=sI),e=pv(r/uI),Sh(pv(r-e*uI),e,n)}function Wm(t,e){return t.c.c=Ey(fM,kP,1,0,4,1),uC(t,t.e,e),uC(t,t.a,e),Dg(),yb(t.c,null),function(t){var e,n,r;for(e=0,r=new $n(t.c);r.a<r.c.c.length;)n=Gh(Wv(r),226),e+=rA(t,n.a,n.b);return e}(t)}function $m(t,e,n){t.g=AC(t,e,(uL(),yB),t.b),t.d=AC(t,n,yB,t.b),0!=t.g.c&&0!=t.d.c&&US(t)}function Km(t,e,n){t.g=AC(t,e,(uL(),BB),t.j),t.d=AC(t,n,BB,t.j),0!=t.g.c&&0!=t.d.c&&US(t)}function Zm(t,e,n){return new gg(Ho(t.a,e.a)-n/2,Ho(t.b,e.b)-n/2,ka(t.a-e.a)+n,ka(t.b-e.b)+n)}function Qm(t){return!!t.a.G()||t.a==t.d&&(t.a=new gv(t.e.d),t.a.G())}function Jm(t,e){var n;return 0!=(n=e.ob()).length&&(ed(t.c,t.c.length,n),!0)}function tx(t,e){var n,r;for(n=0;n<t.a.length;n++)for(r=0;r<t.a[n].length;r++)t.a[n][r]=e[n][r]}function ex(t,e){var n,r,i,o;for(Dg(),o=!1,r=0,i=e.length;r<i;++r)n=e[r],o|=t.ib(n);return o}function nx(t){return ml(),t<3?(kw(t,"expectedSize"),t+1):t<qP?pv(t/.75+1):iP}function rx(t,e){var n;return fl(e,19)?(Yc(),n=Gh(e,19),t.jb(n)):Fw(t,Gh(Od(e),22).mb())}function ix(t,e){var n,r;(r=t.d.f).g!=(AS(),SH)&&X_(n=Sp(H_(r)))&&dg(e,t,Gh(xv(n),12))}function ox(t,e){var n,r;return function(t){if(t<0)throw new _o("Negative array size: "+t)}(e),n=pE(t,0,e),uS(t,0,r=Ey(UX,nI,26,e,12,1),0,n,!0),r}function ax(t,e){var n;this.c=t,function t(e,n,r,i,o,a,s,u){var c,l;if(!i)return;!!(c=i.a[0])&&t(e,n,r,c,o,a,s,u),function(t,e,n,r,i,o,a){var s,u;if(e.Xc()&&((u=t.a.$b(n,r))<0||!i&&0==u))return!1;if(e.Yc()&&((s=t.a.$b(n,o))>0||!a&&0==s))return!1;return!0}(e,r,i.d,o,a,s,u)&&n.ib(i),(l=i.a[1])&&t(e,n,r,l,o,a,s,u)}(t,n=new je,e,t.b,null,!1,null,!1),this.a=new Uv(n,0)}function sx(t){return!!t.a&&(!Rm(t.c.b,t.a.b)||(t.a=null,!1))}function ux(t){if(!t)throw new xo((oi(),"no calls to next() since the last call to remove()"))}function cx(){cx=r,QM={boolean:es,number:yo,string:wo,object:UC,function:UC,undefined:yr}}function lx(){lx=r,QG=Ev(_x(Oo(SD,1),CP,59,0,[(b_(),gD),vD])),JG=Ev(_x(Oo(SD,1),CP,59,0,[yD,pD]))}function fx(t){var e,n,r;for(Dg(),r=0,n=t.mb();n.G();)r+=null!=(e=n.H())?V_(e):0,r|=0;return r}function hx(t){var e;for(e=new $n(t.a.b);e.a<e.c.c.length;)Gh(Wv(e),25).i.Q();t.c.Dc(t),XA(t)}function dx(t,e){var n;return void 0===(n=Ea(t.a,e))?++t.d:(t.a[iM](e),--t.c,th(t.b)),n}function px(t,e){var n,r;for(n=!1,r=t.d[e].length-1;r>0;r--)n|=BE(t,e,r-1,r);return n}function gx(t,e){var n,r,i;for(n=!1,r=t.d[e].length,i=0;i<r-1;i++)n|=BE(t,e,i,i+1);return n}function vx(t,e){var n;for(n=0;n<(oi(),e.length);n++)if(t==e.charCodeAt(n))return!0;return!1}function bx(t,e){var n;for(n=0;n<(oi(),e.length);n++)if(t==e.charCodeAt(n))return!0;return!1}function yx(t,e){var n,r;return t.n&&null!=(r=Up(t.n,e))?r:(n=function(t){var e,n,r;if(fl(t.a,10))return yc(Gh(t.a,10));if(fl(t.a,66))return function(t){var e;return e=Gh(xp(t.b,t.b.length),11),new qh(t.a,e,t.c)}(Gh(t.a,86));if(fl(t.a,50))return Gh(t.a,50).Wc();if(fl(t.a,191)){for(e=new Ji,n=new fh(new Ql(new Xn(Gh(t.a,191).a).a).b),r=new Wn(n);Rs(r.a.a);)Np(e,pf(r.a).yb());return e}if(fl(t.a,13))return new hh(Gh(t.a,13));if(fl(t.a,44)){for(e=new Br,r=_k(Gh(t.a,44),0);r.b!=r.d.c;)Nh(e,Gh(Cb(r),10));return e}if(fl(t.a,58)){for(e=new so,r=_k(Gh(t.a,58),0);r.b!=r.d.c;)Nh(e,Cb(r));return e}return t.a}(e),fl(n,5)&&$y(t,e,n),n)}function wx(t){var e,n;for(e=new Br,n=_k(t,0);n.b!=n.d.c;)Hl(e,0,new Uu(Gh(Cb(n),10)));return e}function mx(t,e,n){var r,i,o;for(o=0,i=sA(new Yf(e,n));i.G();)r=Gh(i.H(),7),dg(t.c,r,F_(o++))}function xx(t,e,n,r,i){r?function(t,e){var n,r;for(r=new $n(e);r.a<r.c.c.length;)n=Gh(Wv(r),9),t.a[n.d.k][n.k].a=Em(t.e),t.a[n.d.k][n.k].d=no(t.a[n.d.k][n.k].a),t.a[n.d.k][n.k].b=1}(t,e):(function(t,e,n){var r,i,o;for(o=new $n(e);o.a<o.c.c.length;)r=Gh(Wv(o),9),t.a[r.d.k][r.k].e=!1;for(i=new $n(e);i.a<i.c.c.length;)r=Gh(Wv(i),9),ZO(t,r,n)}(t,e,i),function(t,e,n){var r,i,o,a,s,u,c,l,f,h;if(n)for(r=-1,l=new Uv(e,0);l.b<l.d.Y();){if(Nc(l.b<l.d.Y()),s=Gh(l.d.sb(l.c=l.b++),9),null==(f=t.a[s.d.k][s.k].a)){for(a=r+1,o=new Uv(e,l.b);o.b<o.d.Y();)if(null!=(h=al(t,(Nc(o.b<o.d.Y()),Gh(o.d.sb(o.c=o.b++),9))).a)){Md(h),a=h;break}f=(r+a)/2,t.a[s.d.k][s.k].a=f,t.a[s.d.k][s.k].d=(Md(f),f),t.a[s.d.k][s.k].b=1}Md(f),r=f}else{for(i=0,c=new $n(e);c.a<c.c.c.length;)s=Gh(Wv(c),9),null!=t.a[s.d.k][s.k].a&&(i=Ro(i,no(t.a[s.d.k][s.k].a)));for(i+=2,u=new $n(e);u.a<u.c.c.length;)s=Gh(Wv(u),9),null==t.a[s.d.k][s.k].a&&(f=mT(t.e,24)*Rj*i-1,t.a[s.d.k][s.k].a=f,t.a[s.d.k][s.k].d=f,t.a[s.d.k][s.k].b=1)}}(t,e,n)),e.c.length>1&&(yb(e,t.b),function(t,e){var n,r,i,o,a,s,u,c,l;for(i=new je,u=new $n(e);u.a<u.c.c.length;)o=Gh(Wv(u),9),Oh(i,t.b[o.d.k][o.k]);!function(t,e){var n,r,i,o,a,s,u,c,l,f,h;for(a=new $n(e);a.a<a.c.c.length;)(i=Gh(Wv(a),102)).e=null,i.c=0;for(s=null,o=new $n(e);o.a<o.c.c.length;){for(i=Gh(Wv(o),102),l=i.d[0],h=Gh(yx(l,(DL(),Hq)),20).mb();h.G();)f=Gh(h.H(),9),(!i.e&&(i.e=new je),i.e).ib(t.b[f.d.k][f.k]),++t.b[f.d.k][f.k].c;if(l.g==(AS(),SH)){if(s)for(c=Tl(new Da(t.c,s),0);c.c;)for(u=Gh(Lv(c),9),r=Tl(new Da(t.c,l),0);r.c;)n=Gh(Lv(r),9),Qf(t.b[u.d.k][u.k]).ib(t.b[n.d.k][n.k]),++t.b[n.d.k][n.k].c;s=l}}}(t,i);for(;l=zO(i);)VN(t,Gh(l.a,102),Gh(l.b,102),i);for(e.c=Ey(fM,kP,1,0,4,1),r=new $n(i);r.a<r.c.c.length;)for(n=Gh(Wv(r),102),a=n.d,s=0,c=a.length;s<c;++s)o=a[s],e.c[e.c.length]=o,t.a[o.d.k][o.k].a=sl(n.g,n.d[0]).a}(t.c,e))}function _x(t,e,r,i,o){return o.$c=t,o._c=e,o.ad=n,o.__elementTypeId$=r,o.__elementTypeCategory$=i,o}function Ex(t,e,n){switch(n.e){case 2:t.b=e;break;case 1:t.c=e;break;case 4:t.d=e;break;case 3:t.a=e}}function kx(t,e,n){return Jx(t,e,Cy(n).g).a-function(t){return t<0?-t:t}(Gh(Up(t.c,e),24).a-Gh(Up(t.c,n),24).a)}function Sx(t,e){return t<e?-1:t>e?1:t==e?0:isNaN(t)?isNaN(e)?0:1:-1}function Cx(t){switch(t.Y()){case 0:return OM;case 1:return new Gd(t.mb().H());default:return new ib(t)}}function Tx(){var t,e;Tx=r,e=!(Error.stackTraceLimit||"stack"in new Error),t=new ye,UL=e?new s:t}function Ax(){Ax=r,IG=new Lh("intCoordinates",(Hd(),Hd(),gX)),jG=new sd("jsonObject"),MG=new Za(0,0)}function Nx(){Nx=r,BH=new Ns("MIRROR_X",0),GH=new Ns("TRANSPOSE",1),RH=new Ns("MIRROR_AND_TRANSPOSE",2)}function Ox(){Ox=r,_V=new gu(SI,0),xV=new gu("INCOMING_ONLY",1),EV=new gu("OUTGOING_ONLY",2)}function Lx(){return pL(),_x(Oo(oV,1),CP,60,0,[RY,jY,IY,HY,GY,iV,rV,BY,MY,DY,FY,eV,nV])}function Px(){var t,e,n,i;for(Px=r,ZF=new yE(oV),n=0,i=(e=Lx()).length;n<i;++n)t=e[n],ih(ZF,t,null)}function Ix(t){var e,n,r;for(Dg(),r=1,n=t.mb();n.G();)r=31*r+(null!=(e=n.H())?V_(e):0),r|=0;return r}function jx(t,e){var n,r;for(qc(),mv(e,"predicate"),r=0;t.G();r++)if(n=t.H(),e.D(n))return r;return-1}function Mx(t,e){var n,r;return n=t.c.a,r=e.ac(n),t.b.b&&(r=v_(r,function t(e,n,r){var i;if(!r)return 0;if((i=e.d.$b(e.b.e,r.b))<0)return t(e,n,r.e);if(0!=i)return p_(p_(n.ac(r.e),n._b(r)),t(e,n,r.g));switch(e.b.d.e){case 0:return p_(n._b(r),n.ac(r.e));case 1:return n.ac(r.e);default:throw new xr}}(t,e,n))),t.b.c&&(r=v_(r,function t(e,n,r){var i;if(!r)return 0;if((i=e.d.$b(e.b.g,r.b))>0)return t(e,n,r.g);if(0!=i)return p_(p_(n.ac(r.g),n._b(r)),t(e,n,r.e));switch(e.b.f.e){case 0:return p_(n._b(r),n.ac(r.g));case 1:return n.ac(r.g);default:throw new xr}}(t,e,n))),r}function Dx(t,e,n){var r,i;return r=new Yy(e,n),i=new be,t.b=function t(e,n,r,i){var o,a;if(!n)return r;if(0==(o=e.a.$b(r.d,n.d)))return i.d=vh(n,r.e),i.b=!0,n;a=o<0?0:1,n.a[a]=t(e,n.a[a],r,i),Yo(n.a[a])&&(Yo(n.a[1-a])?(n.b=!0,n.a[0].b=!1,n.a[1].b=!1):Yo(n.a[a].a[a])?n=gm(n,1-a):Yo(n.a[a].a[1-a])&&(n=Kv(n,1-a)));return n}(t,t.b,r,i),i.b||++t.c,t.b.b=!1,i.d}function Rx(t,e,n){var r,i;for(r=new so,i=_k(n,0);i.b!=i.d.c;)Nh(r,new Uu(Gh(Cb(i),10)));!function(t,e,n){var r,i,o,a;for(Md(n),a=!1,o=_k(t,e),i=_k(n,0);i.b!=i.d.c;)r=Cb(i),wp(o,r),a=!0}(t,e,r)}function Bx(t,e){var n;return e===t||!!fl(e,144)&&(n=Gh(e,144),t.P().t(n.P()))}function Gx(t){var e;if((e=t.a.c.length)>0)return Hh(e-1,t.a.c.length),gy(t.a,e-1);throw new mi}function Hx(t){t.b.c.length-t.e.c.length<0?(Hf(t,(uL(),yB)),t.a.a=t.j.a):(Hf(t,(uL(),BB)),t.a.a=0)}function Fx(t,e){Id(t>=0,"Negative initial capacity"),Id(e>=0,"Non-positive load factor"),by(this)}function zx(t){var e;this.e=t,this.d=new Qb(this.e.e),this.a=this.d,this.b=Qm(this),e=t[tM],this[tM]=e}function Yx(){this.n=null,this.j=null,this.i=null,this.d=null,this.b=null,this.k=null,this.a=null}function Vx(t){var e,n,r,i;for(i=1,n=0,r=t.length;n<r;++n)i=31*i+(null!=(e=t[n])?V_(e):0),i|=0;return i}function qx(t){var e,n,r,i;for(e={},r=0,i=t.length;r<i;++r)e[":"+(null!=(n=t[r]).d?n.d:""+n.e)]=n;return e}function Ux(t){var e,n,r,i;for(BL(),r=0,i=(n=_E()).length;r<i;++r)if(oh((e=n[r]).a,t))return e;return xG}function Xx(t,e,n){var r,i,o;for(i=0,o=n.length;i<o;++i)if(r=n[i],t.b.Uc(e,r.yb()))return r;return null}function Wx(t,e,n){var r,i;for(i=n.mb();i.G();)if(r=Gh(i.H(),21),t.Uc(e,r.zb()))return!0;return!1}function $x(t,e){var n,r,i;for(i=t.b;i;){if(0==(n=t.a.$b(e,i.d)))return i;r=n<0?0:1,i=i.a[r]}return null}function Kx(t,e,n){var r;for(r=Gh(e.B(t),9);r.g==(AS(),kH);)!r.n&&(r.n=new _r),qd(r.n,n),r=Gh(e.B(r),9)}function Zx(t,e){var n;return Vl(t)&&Vl(e)&&(n=t-e,!isNaN(n))?n:hS(Vl(t)?Xm(t):t,Vl(e)?Xm(e):e)}function Qx(t){var e;return fl(t,46)?t:((e=t&&t.__gwt$exception)||(No(e=new ty(t),t),function(t,e){if(t&&typeof t==KL)try{t.__gwt$exception=e}catch(t){}}(t,e)),e)}function Jx(t,e,n){switch(n.e){case 1:return Gh(Up(t.d,e),24);case 3:return Gh(Up(t.j,e),24)}return F_(0)}function t_(t,e,n){return t.d[e.k][n.k]||(!function(t,e,n){if(t.e)switch(t.b){case 1:!function(t,e,n){t.i=0,t.e=0,e!=n&&$m(t,e,n)}(t.c,e,n);break;case 0:!function(t,e,n){t.i=0,t.e=0,e!=n&&Km(t,e,n)}(t.c,e,n)}else!function(t,e,n){t.i=0,t.e=0,e!=n&&(Km(t,e,n),$m(t,e,n))}(t.c,e,n);t.a[e.k][n.k]=t.c.i,t.a[n.k][e.k]=t.c.e}(t,e,n),t.d[e.k][n.k]=!0,t.d[n.k][e.k]=!0),t.a[e.k][n.k]}function e_(t,e){return Sl(t)?Mi(t,e):kl(t)||gf(t)?(Md(t),t===e):Vd(t)?t.t(e):(_d(t),t===e)}function n_(t,e){return Mi(t.b,e)||function(t,e){var n;return oi(),n=e.length,Mi(Eh(t,t.length-n,n),e)}(t.b,e)&&(oi(),e.length==pc(t.b)||46==_h(t.b,pc(t.b)-e.length-1))}function r_(t,e){var n,r;for(n=0,r=fC(t,e).mb();r.G();)n+=null!=yx(Gh(r.H(),7),(DL(),Jq))?1:0;return n}function i_(t,e,n,r){var i,o;for(o=t.mb();o.G();)(i=Gh(o.H(),33)).i.a=e.a+(r.a-i.j.a)/2,i.i.b=e.b,e.b+=i.j.b+n}function o_(t,e){var n;0!=t.c.length&&(nl(n=Gh(Dk(t,Ey(TH,qI,9,t.c.length,0,1)),51),new at),VS(n,e))}function a_(t,e){var n;0!=t.c.length&&(nl(n=Gh(Dk(t,Ey(TH,qI,9,t.c.length,0,1)),51),new st),VS(n,e))}function s_(t){var e;return t.g==(AS(),_H)&&((e=Gh(yx(t,(DL(),Iq)),32))==(uL(),wB)||e==DB)}function u_(t,e){var n;return Md(e),Kd(!!(n=t[":"+e]),"Enum constant undefined: %s",_x(Oo(fM,1),kP,1,4,[e])),n}function c_(t){throw cx(),new Gi("Unexpected typeof result '"+t+"'; please report this bug to the GWT team")}function l_(t){switch(t.e){case 1:return DB;case 2:return BB;case 3:return wB;case 4:return yB;default:return RB}}function f_(t){switch(t.e){case 2:return vD;case 1:return gD;case 4:return pD;case 3:return yD;default:return bD}}function h_(t){return t>=48&&t<58?t-48:t>=97&&t<97?t-97+10:t>=65&&t<65?t-65+10:-1}function d_(t){switch(ch(),t.Y()){case 0:return Jp(),GM;case 1:return new ua(t.mb().H());default:return new Ws(t)}}function p_(t,e){var n;return Vl(t)&&Vl(e)&&lI<(n=t+e)&&n<cI?n:Bm(function(t,e){var n,r,i;return n=t.l+e.l,r=t.m+e.m+(n>>22),i=t.h+e.h+(r>>22),Sh(n&aI,r&aI,i&sI)}(Vl(t)?Xm(t):t,Vl(e)?Xm(e):e))}function g_(t,e){var n;return Vl(t)&&Vl(e)&&lI<(n=t*e)&&n<cI?n:Bm(function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w;n=8191&t.l,r=t.l>>13|(15&t.m)<<9,i=t.m>>4&8191,o=t.m>>17|(255&t.h)<<5,a=(1048320&t.h)>>8,s=8191&e.l,u=e.l>>13|(15&e.m)<<9,c=e.m>>4&8191,l=e.m>>17|(255&e.h)<<5,f=(1048320&e.h)>>8,v=r*s,b=i*s,y=o*s,w=a*s,0!=u&&(v+=n*u,b+=r*u,y+=i*u,w+=o*u);0!=c&&(b+=n*c,y+=r*c,w+=i*c);0!=l&&(y+=n*l,w+=r*l);return 0!=f&&(w+=n*f),d=((g=n*s)>>22)+(v>>9)+((262143&b)<<4)+((31&y)<<17),p=(b>>18)+(y>>5)+((4095&w)<<8),p+=(d+=(h=(g&aI)+((511&v)<<13))>>22)>>22,Sh(h&=aI,d&=aI,p&=sI)}(Vl(t)?Xm(t):t,Vl(e)?Xm(e):e))}function v_(t,e){var n;return Vl(t)&&Vl(e)&&lI<(n=t-e)&&n<cI?n:Bm(function(t,e){var n,r,i;return n=t.l-e.l,r=t.m-e.m+(n>>22),i=t.h-e.h+(r>>22),Sh(n&aI,r&aI,i&sI)}(Vl(t)?Xm(t):t,Vl(e)?Xm(e):e))}function b_(){b_=r,bD=new as(kI,0),vD=new as(xI,1),gD=new as(mI,2),pD=new as("DOWN",3),yD=new as("UP",4)}function y_(){y_=r,OD=new us(kI,0),AD=new us("POLYLINE",1),TD=new us("ORTHOGONAL",2),ND=new us("SPLINES",3)}function w_(){w_=r,zD=new ls("INHERIT",0),FD=new ls("INCLUDE_CHILDREN",1),YD=new ls("SEPARATE_CHILDREN",2)}function m_(t){this.a=new Oc,this.d=new Oc,this.b=new Oc,this.c=new Oc,this.g=new Oc,this.i=new Oc,this.f=t}function x_(t,e,n,r,i,o){this.e=new je,this.f=(tm(),kU),Oh(this.e,t),this.d=e,this.a=n,this.b=r,this.f=i,this.c=o}function __(t,e,n,r,i){var o,a;for(a=t.mb();a.G();)(o=Gh(a.H(),33)).i.a=e.a,o.i.b=i?e.b:e.b+r.b-o.j.b,e.a+=o.j.a+n}function E_(t,e){var n,r;for(jh(),r=Sp(NS(t));X_(r);)if((n=Gh(xv(r),12)).d.f==e||n.c.f==e)return n;return null}function k_(t,e,n){var r,i,o;for(r=0,o=_k(t,0);o.b!=o.d.c&&!((i=no(Nf(Cb(o))))>n);)i>=e&&++r;return r}function S_(t,e){var n;return e?((n=e.n?e.n:(Dg(),Dg(),SX)).V()||(t.n?mm(t.n,n):t.n=new sc(n)),t):t}function C_(t,e,n){try{!function(t,e,n){if(Od(e),n.G())for(Ju(e,t.C(n.H()));n.G();)Ju(e,t.c),Ju(e,t.C(n.H()))}(t,e,n)}catch(t){throw fl(t=Qx(t),181)?new aw(t):A_(t)}return e}function T_(t,e,n){try{!function(t,e,n){var r,i;if(Od(e),n.G())for(i=Gh(n.H(),21),Ju(e,El(t.a,i.yb())),Ju(e,t.b),Ju(e,El(t.a,i.zb()));n.G();)Ju(e,t.a.c),r=Gh(n.H(),21),Ju(e,El(t.a,r.yb())),Ju(e,t.b),Ju(e,El(t.a,r.zb()))}(t,e,n)}catch(t){throw fl(t=Qx(t),181)?new aw(t):A_(t)}return e}function A_(t){var e;return fl(t,164)&&Xu((e=Gh(t,164)).b)!==Xu((ii(),qL))?Xu(e.b)===Xu(qL)?null:e.b:t}function N_(t,e){var n;for(n=Gh(yx(Vp(t),(DL(),Zq)),9);n;){if(n==e)return!0;n=Gh(yx(Vp(n),Zq),9)}return!1}function O_(t){switch(Gh(yx(t,(DL(),Bq)),140).e){case 1:$y(t,Bq,(Mw(),sq));break;case 2:$y(t,Bq,(Mw(),cq))}}function L_(t){switch(ch(),t.c){case 0:return Jp(),GM;case 1:return new ua(CC(new Ys(t)));default:return new Oi(t)}}function P_(t){var e,n;for(Qp(),e=0,n=t.length;e<n;e++)if(null==t[e])throw new Eo("at index "+e);return new Kn(t)}function I_(t,e,n){return 0==e.length||0==n.length?0:(t.e?t.b=new Vi(t.c):t.b=new qi(t.c),t.b.Gc(e,n))}function j_(t){if(null==t.i)throw new xo("The task has not begun yet.");t.b||(t.c<t.j&&function t(e,n){e.j>0&&e.c<e.j&&(e.c+=n,e.g&&e.g.d>0&&0!=e.e&&t(e.g,n/e.j*e.g.d))}(t,t.j-t.c),t.b=!0)}function M_(t,e){var n,r;for(r=new $n(e);r.a<r.c.c.length;)n=Gh(Wv(r),27),Dy(t.b.b,n.b),Fg(Gh(n.a,78),Gh(n.b,25))}function D_(t,e){var n;for(n=new $n(t.a);n.a<n.c.c.length;)if(Cm(Gh(Wv(n),222),e))return;Oh(t.a,new Zf(e))}function R_(t){var e,n,r;for(e=new je,r=new $n(t.b);r.a<r.c.c.length;)n=Gh(Wv(r),251),Jm(e,Gh(n.Ac(),19));return e}function B_(t,e){var n,r,i;for(i=new je,r=fC(t,e).mb();r.G();)n=Gh(r.H(),7),i.c[i.c.length]=n;return yb(i,new Et),i}function G_(t){var e,n;for(e=new je,n=new $n(t.f);n.a<n.c.c.length;)Oh(e,Gh(Wv(n),7).b);return Od(e),new Ec(e)}function H_(t){var e,n;for(e=new je,n=new $n(t.f);n.a<n.c.c.length;)Oh(e,Gh(Wv(n),7).e);return Od(e),new Ec(e)}function F_(t){var e,n;return t>-129&&t<128?(e=t+128,!(n=(Fd(),mX)[e])&&(n=mX[e]=new Ln(t)),n):new Ln(t)}function z_(t){var e,n;for(e=wS(t.b,t.d),n=iP;n>e;){if(tx(t,t.d),0==e){n=0;break}Q_(t),vE(t),n=e,e=wS(t.b,t.d)}t.c=n}function Y_(){var t,e,n;qS(),n=IX+++(Date.now?Date.now():(new Date).getTime()),t=pv(Math.floor(n*Rj))&sM,e=pv(n-t*aM),this.a=1502^t,this.b=e^oM}function V_(t){return Sl(t)?ak(t):kl(t)?pv((Md(t),t)):gf(t)?eo((Md(t),t))?1231:1237:Vd(t)?t.v():(_d(t),ff(t))}function q_(t,e,n,r){var i,o,a;for(a=0,o=sA(new Yf(e,r));o.G();)i=Gh(o.H(),7),dg(t.i,i,F_(a++));dg(n,e,F_(a))}function U_(t){var e;return(e=Gh(yx(t,(HL(),eR)),59))==(b_(),bD)?Gh(yx(t,(DL(),gq)),15).a>=1?vD:pD:e}function X_(t){if(Od(t.b),t.b.G())return!0;for(;t.a.G();)if(Od(t.b=t.Wb(t.a.H())),t.b.G())return!0;return!1}function W_(t){return t.d==t.c.d&&t.i==t.g.d||(t.a.c=Ey(fM,kP,1,0,4,1),Jm(t.a,t.c),Jm(t.a,t.g),t.d=t.c.d,t.i=t.g.d),t.a}function $_(t){var e;if(t.b){if($_(t.b),t.b.d!=t.c)throw new wi}else t.d.V()&&(e=Gh(Up(t.f.b,t.e),19))&&(t.d=e)}function K_(t,e,n,r,i){var o,a,s,u;for(xx(e,u=sy(t),r,i,n),o=0,s=new $n(u);s.a<s.c.c.length;)a=Gh(Wv(s),9),t[o++]=a}function Z_(){var t,e;for(this.a=new sw(6),e=0;e<6;e++)Oh(this.a,new qh(t=Gh(na(BF),11),Gh(_p(t,t.length),11),0))}function Q_(t){var e,n,r;for(r=!1,n=0;n<t.d.length;n++)t.j=(e=new sC(t.e,t.d,n,0),new OS(n,t.d,e)),r|=Xw(t,n);return r}function J_(t,e){var n,r;for(n=_k(t,0);n.b!=n.d.c;){if((r=no(Nf(Cb(n))))==e)return;if(r>e){$v(n);break}}wp(n,e)}function tE(t,e,n){var r;return r=Ea(t.a,e),function(t,e,n){t.set(e,n)}(t.a,e,void 0===n?null:n),void 0===r?(++t.c,th(t.b)):++t.d,r}function eE(t,e,n){return(e-t<=0?0-(e-t):e-t)<Cj||(n-t<=0?0-(n-t):n-t)<Cj||(e-t>Cj?t-n>Cj:n-t>Cj)}function nE(t){switch(t.e){case 0:return SV;case 1:return CV;case 2:return TV;case 3:return AV;default:return NV}}function rE(t,e){switch(e.e){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function iE(t){switch(uL(),t.e){case 4:return wB;case 1:return yB;case 3:return DB;case 2:return BB;default:return RB}}function oE(t,e){if(e==t.c)return t.d;if(e==t.d)return t.c;throw new io("Node "+e+" not part of edge "+t)}function aE(t,e){var n;return ql(t.a,e)?Gh(ql(t.a,e)?t.b[e.e]:null,62):(n=new Gr,pm(t.a,e),Ep(t,e.e,n),n)}function sE(t,e){var n,r,i;for(i=t.g.tb(),n=0;i.G();){if((r=no(Nf(i.H()))-e)>$j)return n;r>Kj&&++n}return n}function uE(t){var e,n,r,i;return pm(n=new qh(e=Gh(na((i=(r=t.$c).f)==EM?r:i),11),Gh(_p(e,e.length),11),0),t),n}function cE(t,e){var n,r;for(r=new $n(e);r.a<r.c.c.length;)n=Gh(Wv(r),27),Oh(t.b.b,Gh(n.b,25)),Ym(Gh(n.a,78),Gh(n.b,25))}function lE(t){var e;if(!zs(Gh(yx(t,(HL(),AR)),28)))for(e=new $n(t.f);e.a<e.c.c.length;)Hf(Gh(Wv(e),7),(uL(),RB))}function fE(t,e){switch(e.e){case 1:return Fh(t.f,(uw(),NH));case 2:return Fh(t.f,(uw(),LH));default:return Dg(),Dg(),kX}}function hE(t,e){return hg(e,(HL(),GR))?yx(t.e,(DL(),sU)):hg(e,mR)?yx(t.e,(DL(),qq)):yx(t.e,e)}function dE(t,e,n){var r,i;for(i=t.mb();i.G();)if(r=i.H(),Xu(e)===Xu(r)||null!=e&&e_(e,r))return n&&i.I(),!0;return!1}function pE(t,e,n){var r;return Kd(e<=n,"%s > %s",_x(Oo(fM,1),kP,1,4,[F_(e),F_(n)])),tS(e,n=n<(r=t.length)?n:r,r),n-e}function gE(t,e){var n,r,i;for(n=t,i=0;;){if(n==e)return i;if(!(r=Gh(yx(n,(DL(),Zq)),9)))throw new Vr;n=Vp(r),++i}}function vE(t){var e,n,r;for(r=!1,n=t.d.length-1;n>=0;n--)t.j=(e=new sC(t.e,t.d,n,1),new OS(n,t.d,e)),r|=Xw(t,n);return r}function bE(t){this.f=(ml(),new _r),this.n=new _r,this.k=new _r,this.g=new Qi,this.i=new rk((si(),RM)),this.j=t,function(t,e){var n,r,i,o,a;for(n=0,a=0,i=0,o=e.length;i<o;++i)n=tA(t,n,r=e[i],(uL(),yB),t.f),a=tA(t,a,r,BB,t.n)}(this,t)}function yE(t){var e;this.a=new qh(e=Gh(t.e&&t.e(),11),Gh(_p(e,e.length),11),0),this.b=Ey(fM,kP,1,this.a.a.length,4,1)}function wE(t,e){var n;return e===t||!!fl(e,18)&&((n=Gh(e,18)).Y()==t.Y()&&t.lb(n))}function mE(t){switch(pL(),t.e){case 1:return RY;case 2:return IY;case 3:return GY;case 4:return rV;default:return nV}}function xE(t,e){switch(e.e){case 1:return t.e.d;case 2:return t.e.c;case 3:return t.e.a;case 4:return t.e.b;default:return 0}}function _E(){return BL(),_x(Oo(SG,1),CP,67,0,[wG,yG,mG,lG,cG,fG,pG,dG,hG,bG,vG,gG,sG,aG,uG,iG,rG,oG,eG,tG,nG,xG])}function EE(){EE=r,nB=new hs(kI,0),eB=new hs("JUSTIFIED",1),QR=new hs("BEGIN",2),JR=new hs(_I,3),tB=new hs("END",4)}function kE(){kE=r,YB=new vs("PORTS",0),VB=new vs("PORT_LABELS",1),zB=new vs("NODE_LABELS",2),FB=new vs("MINIMUM_SIZE",3)}function SE(){SE=r,LG=new ws("UNKNOWN",0),AG=new ws("ABOVE",1),NG=new ws("BELOW",2),OG=new Lh("de.cau.cs.kieler.labelSide",LG)}function CE(){CE=r,iX=new Eu("EQUALLY_DISTRIBUTED",0),aX=new Eu("NORTH_STACKED",1),oX=new Eu("NORTH_SEQUENCE",2)}function TE(t,e){return To(),To(),((t-e>0?t-e:-(t-e))<=iI||t==e||isNaN(t)&&isNaN(e)?0:t<e?-1:t>e?1:vc(isNaN(t),isNaN(e)))>0}function AE(t,e){return To(),To(),((t-e>0?t-e:-(t-e))<=iI||t==e||isNaN(t)&&isNaN(e)?0:t<e?-1:t>e?1:vc(isNaN(t),isNaN(e)))<0}function NE(t){var e,n;for(t.d||function(t){var e,n,r,i,o,a;if(i=t.g.tb(),r=t.b.tb(),t.e)for(n=0;n<t.c;n++)i.H();else for(n=0;n<t.c-1;n++)i.H(),i.I();e=no(Nf(i.H()));for(;t.i-e>$j;){for(o=e,a=0;(e-o<=0?0-(e-o):e-o)<$j;)++a,e=no(Nf(i.H())),r.H();a<t.c&&(i.M(),LA(t,t.c-a,o,r,i),i.H()),r.M()}if(!t.e)for(n=0;n<t.c-1;n++)i.H(),i.I();t.e=!0,t.d=!0}(t),n=new Br,(e=t.b.mb()).H();e.G();)Nh(n,Gh(e.H(),92).a);return Nc(0!=n.b),Hw(n,n.c.b),n}function OE(t){var e,n,r,i;for(i=new Oc,NC(e=new hh(t.c)),r=new $n(e);r.a<r.c.c.length;)n=Gh(Wv(r),7),i.a.db(n,i);return i}function LE(t,e){var n,r,i;return!!fl(e,21)&&(r=(n=Gh(e,21)).yb(),$p(i=ek(t.qb(),r),n.zb())&&(null!=i||t.qb().R(r)))}function PE(t,e){var n,r;for(r=t.g.tb();r.G();)if(((n=no(Nf(r.H())))-e<=0?0-(n-e):n-e)<$j)return r.L()-1;return t.g.Y()}function IE(t){var e,n;for(n=new $n(t.a);n.a<n.c.c.length;)if((e=Gh(Wv(n),9)).g==(AS(),SH)||e.g==xH)return!1;return!0}function jE(t,e,n){if(t.b)throw new xo("The task is already done.");return null==t.i&&(t.i=e,t.j=n,!0)}function ME(t,e){if(e.c==t)return e.d;if(e.d==t)return e.c;throw new io("Input edge is not connected to the input port.")}function DE(t){var e;0!=t.c&&(1==(e=Gh(ld(t.a,t.b),128)).b?(++t.b,t.b<t.a.c.length&&ur(Gh(ld(t.a,t.b),128))):--e.b,--t.c)}function RE(t,e){return t.b.a=Ho(t.b.a,e.c),t.b.b=Ho(t.b.b,e.d),t.a.a=Ro(t.a.a,e.c),t.a.b=Ro(t.a.b,e.d),t.c[t.c.length]=e,!0}function BE(t,e,n,r){var i,o,a;return i=!1,function(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v,b;if(s=t.b[e],u=t.b[n],(c=Gh(yx(s,(DL(),Hq)),20))&&0!=c.Y()&&c.kb(u)||(l=s.g!=(AS(),kH)&&u.g!=kH,f=Gh(yx(s,Gq),9),h=Gh(yx(u,Gq),9),d=!!f&&f!=s||!!h&&h!=u,p=f!=h,g=cC(s,(uL(),wB)),v=cC(u,DB),b=d&&p||g||v,l&&b)||s.g==(AS(),CH)&&u.g==SH||u.g==(AS(),CH)&&s.g==SH)return!1;return a=t.b[e],r=t.b[n],function(t,e,n){t.e=e,t.a=n,t.d=Wm(t,(uL(),yB)),t.d+=Wm(t,BB),HT(t,e,n,yB,t.f),HT(t,e,n,BB,t.n),t.b=Wm(t,yB),t.b+=Wm(t,BB),HT(t,n,e,yB,t.f),HT(t,n,e,BB,t.n)}(t.c,a,r),function(t,e,n){t.d=0,t.b=0,function(t,e,n){var r,i;if(e.g==(AS(),CH)&&n.g==CH){if(!Yl(Gh(yx(Gh(yx(e,(DL(),Uq)),9),(HL(),AR)),28))||Gh(yx(e,Uq),9)!=Gh(yx(n,Uq),9))return;if(bk(e)||bk(n))return t.d=1,void(t.b=1);i=Gh(ld(e.f,0),7).g,r=Gh(ld(n.f,0),7).g,Ty(e).g==(uL(),wB)?fA(t,e,n,i,r):fA(t,n,e,r,i)}}(t,e,n),e.g==(AS(),CH)&&n.g==kH?Ty(e).g==(uL(),wB)?t.d=1:t.b=1:n.g==CH&&e.g==kH&&(Ty(n).g==(uL(),wB)?t.b=1:t.d=1),function(t,e,n){e.g==(AS(),SH)&&n.g==kH&&(t.d=r_(e,(uL(),DB)),t.b=r_(e,wB));n.g==SH&&e.g==kH&&(t.d=r_(n,(uL(),wB)),t.b=r_(n,DB))}(t,e,n)}(t.d,a,r),o=t_(t.a,a,r)+t.c.d+t.d.d,i=t_(t.a,r,a)+t.c.b+t.d.b,o>i}(t.j,n,r)&&(Xi(t.j,t.d[e][n],t.d[e][r]),a=(o=t.d[e])[r],o[r]=o[n],o[n]=a,i=!0),i}function GE(t,e,n){var r,i,o,a,s;i=(s=Vp(t)).a,r=Gh(yx(s,(DL(),xq)),15).a,o=s.d,a=t.i,e&&(a.a=a.a-i.b-r-o.a),n&&(a.b=a.b-i.d-r-o.b)}function HE(t,e){var n,r,i;for(r=Sp(NS(t));X_(r);)return n=Gh(xv(r),12),new Be(Od((i=Gh(e.B(n),9)).i.b+i.j.b/2));return ai(),ai(),gM}function FE(t){var e,n,r,i;for(n=rO(t),e=Ej,i=0,r=0;e>.5&&i<50;)e=ka(BS(n,r=nA(n),!0).b),++i;return BS(t,r,!1)}function zE(t){var e,n,r,i;for(n=rO(t),e=Ej,i=0,r=0;e>.5&&i<50;)e=ka(BS(n,r=eA(n),!0).a),++i;return BS(t,r,!1)}function YE(t){var e,n,r;for(this.a=new Oc,this.e=new Qi,this.f=0,n=0,r=t.length;n<r;++n)e=t[n],!this.g&&(this.g=e),Ym(this,e)}function VE(t){$c(this),this.c=t.c,this.f=t.f,this.e=t.e,this.k=t.k,this.d=t.d,this.g=Rh(t.g),this.j=t.j,this.i=t.i,this.b=Rh(t.b)}function qE(t){switch(t.e){case 1:return b_(),yD;case 4:return b_(),gD;case 2:return b_(),vD;case 3:return b_(),pD}return b_(),bD}function UE(t,e){return function(t,e){var n,r;for(r=new $n(e.e);r.a<r.c.c.length;)if(Gh(Wv(r),12).d.f!=t.f)return!0;for(n=new $n(e.b);n.a<n.c.c.length;)if(Gh(Wv(n),12).c.f!=t.f)return!0;return!1}(t,e)?(mp(t.g,e),!0):(e.g!=(uL(),RB)&&mp(t.i,e),0==e.e.c.length?mp(t.c,e):mp(t.b,e),!1)}function XE(t,e){var n;return wy(0,t.c.length),0!=(n=Qk(e,Ey(fM,kP,1,e.a.Y(),4,1))).length&&(ed(t.c,0,n),!0)}function WE(t,e){for(var n=0;!e[n]||""==e[n];)n++;for(var r=e[n++];n<e.length;n++)e[n]&&""!=e[n]&&(r+=t+e[n]);return r}function $E(t){var e,n;for(n=new $n(t.a.b);n.a<n.c.c.length;)(e=Gh(Wv(n),25)).j.d=-e.j.d-e.j.c,e.o&&(e.g.a=-e.g.a+e.o.j.c);mN(t)}function KE(t,e){var n;for(n=t;e.b<e.d.Y()&&n==t;)n=(Nc(e.b<e.d.Y()),Gh(e.d.sb(e.c=e.b++),7)).g;n==t||(Nc(e.b>0),e.a.sb(e.c=--e.b))}function ZE(t,e,n){jE(n,"Compound graph preprocessor",1),t.a=new Us,function t(e,n,r){var i,o,a,s,u,c,l,f,h;for(o=new je,l=new $n(n.b);l.a<l.c.c.length;)if(c=Gh(Wv(l),9),(u=Gh(yx(c,(DL(),Vq)),55))&&(i=t(e,u,c),Jm(o,i),GO(e,u,c),Gh(yx(u,Mq),18).kb((YA(),YV))))for(h=new $n(c.f);h.a<h.c.c.length;)f=Gh(Wv(h),7),null==Up(e.b,f)&&($y(a=aL(f,(cS(),cB),f.g,-(f.b.c.length-f.e.c.length),f.j,Gh(yx(u,(HL(),eR)),59),u),Uq,f),dg(e.b,f,a),Oh(u.b,a));return s=new je,function(t,e,n,r,i){var o,a,s,u,c,l,f,h,d,p,g,v;for(o=new je,c=new $n(r);c.a<c.c.c.length;)if(s=Gh(Wv(c),187),a=null,s.f==(tm(),EU))for(p=new $n(s.e);p.a<p.c.c.length;)d=Gh(Wv(p),12),Vp(v=d.d.f)==e?ew(t,e,s,d,s.b,d.d):!n||N_(v,n)?nC(t,e,s,r,d):((h=dO(t,e,n,d,s.b,EU,a))!=a&&(o.c[o.c.length]=h),h.c&&(a=h));else for(f=new $n(s.e);f.a<f.c.c.length;)if(l=Gh(Wv(f),12),Vp(g=l.c.f)==e)ew(t,e,s,l,l.c,s.b);else{if(!n||N_(g,n))continue;(h=dO(t,e,n,l,s.b,_U,a))!=a&&(o.c[o.c.length]=h),h.c&&(a=h)}for(u=new $n(o);u.a<u.c.c.length;)s=Gh(Wv(u),187),-1!=Ky(e.b,s.a,0)||Oh(e.b,s.a),s.c&&(i.c[i.c.length]=s)}(e,n,r,o,s),!!r&&function(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x;for(u=new je,o=new $n(e.b);o.a<o.c.c.length;)for(i=Gh(Wv(o),9),s=new $n(i.f);s.a<s.c.c.length;){for(a=Gh(Wv(s),7),l=null,w=Gh(Dk(a.e,Ey(wH,hj,12,0,0,1)),47),m=0,x=w.length;m<x;++m)N_((y=w[m]).d.f,n)||((b=dO(t,e,n,y,y.c,(tm(),EU),l))!=l&&(u.c[u.c.length]=b),b.c&&(l=b));for(c=null,p=Gh(Dk(a.b,Ey(wH,hj,12,0,0,1)),47),g=0,v=p.length;g<v;++g)N_((d=p[g]).c.f,n)||((b=dO(t,e,n,d,d.d,(tm(),_U),c))!=c&&(u.c[u.c.length]=b),b.c&&(c=b))}for(h=new $n(u);h.a<h.c.c.length;)f=Gh(Wv(h),187),-1!=Ky(e.b,f.a,0)||Oh(e.b,f.a),f.c&&(r.c[r.c.length]=f)}(e,n,r,s),s}(t,e,null),function(t,e){var n,r,i,o,a,s,u;for(a=Qd(t.a).mb();a.G();){if((o=Gh(a.H(),12)).b.c.length>0)for(yb(r=new hh(Gh(GS(t.a,o),18)),new an(e)),i=new Uv(o.b,0);i.b<i.d.Y();){switch(Nc(i.b<i.d.Y()),n=Gh(i.d.sb(i.c=i.b++),33),s=-1,Gh(yx(n,(HL(),nR)),107).e){case 2:s=r.c.length-1;break;case 1:s=r.c.length/2|0;break;case 3:s=0}-1!=s&&(my(s,r.c.length),Oh((u=Gh(r.c[s],114)).b.b,n),Gh(yx(Vp(u.b.c.f),(DL(),Mq)),18).ib((YA(),zV)),Gh(yx(Vp(u.b.c.f),Mq),18).ib(HV),ng(i),$y(n,$q,o))}rv(o,null),nv(o,null)}}(t,e),$y(e,(DL(),Tq),t.a),t.a=null,by(t.b),j_(n)}function QE(t){var e,n;return e=Gh(xv(Sp(G_(t))),12),n=Gh(xv(Sp(H_(t))),12),!eo(no(Af(yx(e,(DL(),aU)))))||!eo(no(Af(yx(n,aU))))}function JE(t,e,n){return fl(n,137)?new Ef(t,e,Gh(n,137)):fl(n,18)?new _f(t,e,Gh(n,18)):fl(n,20)?pb(t,e,Gh(n,20),null):new Sy(t,e,n,null)}function tk(t,e){var n;n=t.ub(e);try{return n.H()}catch(t){throw fl(t=Qx(t),74)?new ro("Can't get element "+e):A_(t)}}function ek(t,e){ml(),Od(t);try{return t.cb(e)}catch(t){if(fl(t=Qx(t),119))return null;if(fl(t,76))return null;throw A_(t)}}function nk(t,e,n,r){e<n?(t.b=.5*(e+n),t.p=Qj*t.b+.9*e,t.a=Qj*t.b+.9*n):(t.b=.5*(e+r),t.p=Qj*t.b+.9*r,t.a=Qj*t.b+.9*e)}function rk(t){Oa.call(this,t),this.b=new JC(t,!1,null,(Vc(),TM),!1,null,TM),this.a=new _m(null,1),yi(this.a,this.a),this.c=new f}function ik(t){switch(to(),this.c=new je,this.d=t,t.e){case 0:case 2:this.a=function(t){return Dg(),t?new Zn(t):(tu(),AX)}(vH),this.b=QI;break;case 3:case 1:this.a=vH,this.b=JI}}function ok(){ok=r,sD=new Ja("AUTOMATIC",0),lD=new Ja(mI,1),fD=new Ja(xI,2),hD=new Ja("TOP",3),uD=new Ja("BOTTOM",4),cD=new Ja(_I,5)}function ak(t){var e,n,r;return hc(),void 0!==(r=FX[n=":"+t])?r:(e=void 0===(r=HX[n])?function(t){var e,n,r,i;e=0,oi(),r=t.length,i=r-4,n=0;for(;n<i;)e=t.charCodeAt(n+3)+31*(t.charCodeAt(n+2)+31*(t.charCodeAt(n+1)+31*(t.charCodeAt(n)+31*e))),e|=0,n+=4;for(;n<r;)e=31*e+_h(t,n++);return e|=0}(t):r,256==qX&&(HX=FX,FX={},qX=0),++qX,FX[n]=e,e)}function sk(t){var e;(e=Gh(yx(t,(HL(),yR)),18)).V()||(e.kb((uT(),zR))?(e.nb(zR),e.ib(VR)):e.kb(VR)&&(e.nb(VR),e.ib(zR)))}function uk(t){var e;(e=Gh(yx(t,(HL(),yR)),18)).V()||(e.kb((uT(),$R))?(e.nb($R),e.ib(XR)):e.kb(XR)&&(e.nb(XR),e.ib($R)))}function ck(t,e,n){var r,i;return r=zo(If(t,e.d),If(t,e.c)),i=Go(If(t,e.d),If(t,e.c)),iw(Mx(function(t,e,n,r,i){return Od(n),Od(i),dv(new Ov(t.c,RN(t.b,new JC(t.d,!0,e,n,!1,null,(Vc(),TM))),t.a),r,i)}(n,F_(r),(Vc(),TM),F_(i),TM),(Xc(),FM)))}function lk(t,e){ml(),Od(t);try{return t.R(e)}catch(t){if(fl(t=Qx(t),119))return!1;if(fl(t,76))return!1;throw A_(t)}}function fk(t,e){Yc(),Od(t);try{return cb(t,e)}catch(t){if(fl(t=Qx(t),119))return!1;if(fl(t,76))return!1;throw A_(t)}}function hk(t){switch(t.e){case 1:return uL(),BB;case 4:return uL(),wB;case 3:return uL(),yB;case 2:return uL(),DB;default:return uL(),RB}}function dk(t){var e;switch((e=xp(t.c,t.c.length)).length){case 0:return OM;case 1:return new Gd(e[0]);default:return new ib(P_(e))}}function pk(t){var e,n,r,i;for(r=Ey(vM,kP,64,t.c.length,0,1),i=0,n=new $n(t);n.a<n.c.c.length;)e=Gh(Wv(n),64),r[i++]=e;return new dn(r)}function gk(t){var e,n;if(!t.b)for(t.b=Al(t.a.b.c.length),n=new $n(t.a.b);n.a<n.c.c.length;)e=Gh(Wv(n),33),Oh(t.b,new un(e));return t.b}function vk(t,e){var n,r,i;if(t.e)return 1;for(n=0,i=new $n(e.f);i.a<i.c.c.length;)n+=(r=Gh(Wv(i),7)).b.c.length+r.e.c.length;return n}function bk(t){var e,n,r,i;for(e=!1,i=!1,r=new $n(t.f);r.a<r.c.c.length;)e|=(n=Gh(Wv(r),7)).g==(uL(),yB),i|=n.g==BB;return e&&i}function yk(t){var e,n;for(this.b=new je,this.c=t,this.a=!1,n=new $n(t.b);n.a<n.c.c.length;)e=Gh(Wv(n),9),this.a=this.a|e.g==(AS(),SH)}function wk(t){rf.call(this),this.g=(AS(),SH),this.f=(kw(6,JP),new sw(6)),this.c=(kw(2,JP),new sw(2)),this.e=new Me,this.b=new Me,this.a=t}function mk(t,e,n,r,i,o){$c(this),this.e=t,this.f=e,this.d=n,this.c=r,this.g=i,this.b=o,this.j=no(Nf(i.mb().H())),this.i=no(Nf(Vw(i)))}function xk(t){var e,n;for(e=new qn(new Vn(t.b).a.bb().mb());e.a.G();)n=Gh(e.a.H(),21),Gh(n.zb(),19).Q();by(t.b),t.c=0}function _k(t,e){var n,r;if(wy(e,t.b),e>=t.b>>1)for(r=t.c,n=t.b;n>e;--n)r=r.b;else for(r=t.a.a,n=0;n<e;++n)r=r.a;return new Vh(t,e,r)}function Ek(t,e){var n,r,i;for(i=new ao,r=t.mb();r.G();)KA(n=Gh(r.H(),55),i.a,0),i.a+=n.e.a+e,i.b=Ro(i.b,n.e.b);return i.b>0&&(i.b+=e),i}function kk(t,e){var n,r,i;for(i=new ao,r=t.mb();r.G();)KA(n=Gh(r.H(),55),0,i.b),i.b+=n.e.b+e,i.a=Ro(i.a,n.e.a);return i.a>0&&(i.a+=e),i}function Sk(t,e,n){var r,i,o;return(i=Gh(Up(t.c,e),176))?(o=vh(i,n),Gl(t,i),o):(r=new nd(t,e,n),dg(t.c,e,r),kv(r),null)}function Ck(t,e){return!!function(t){switch(t.e){case 0:return UY;case 1:return YY;case 2:return zY;case 3:return $Y;case 4:return WY;case 5:return tV;case 6:return JY;case 7:return XY;case 8:return VY;case 9:return qY;case 11:return ZY;case 10:return KY;default:return QY}}(t.b).kb(e.c)&&(function(t){return t==BY||t==MY}(t.b)?!(Yh(e.d,t.c,t.a)&&Yh(e.a,t.c,t.a)):Yh(e.d,t.c,t.a)&&Yh(e.a,t.c,t.a))}function Tk(t){switch(t.e){case 8:return uL(),wB;case 9:return uL(),DB;case 10:return uL(),yB;case 11:return uL(),BB;default:return uL(),RB}}function Ak(t,e){return Sl(t)?!!$L[e]:t._c?!!t._c[e]:kl(t)?!!WL[e]:!!gf(t)&&!!XL[e]}function Nk(){Ax(),this.i=(ml(),new _r),this.a=new _r,this.k=new _r,this.j=new _r,this.b=new _r,this.n=new _r,this.f=new _r,this.e=new _r}function Ok(t,e){var n,r;e.a.R(t)||(r=Gh(yx(t,(DL(),Iq)),32),n=Gh(ld(t.f,0),7),r==(uL(),wB)?Hf(n,DB):r==DB&&Hf(n,wB),e.a.db(t,e))}function Lk(t){return Go(1,Gh(yx(t,(DL(),nU)),24).a)*(t.c.f.g==(AS(),SH)&&t.d.f.g==SH?1:t.c.f.g==SH||t.d.f.g==SH?2:8)}function Pk(t){var e,n,r,i;for(i=Gh(yx(t,(DL(),Uq)),7),n=0,r=(e=Gh(Dk(t.b,Ey(wH,hj,12,t.b.c.length,0,1)),47)).length;n<r;++n)nv(e[n],i)}function Ik(t){var e,n,r,i;for(n=Gh(yx(t,(DL(),Uq)),7),r=0,i=(e=Gh(Dk(t.e,Ey(wH,hj,12,t.e.c.length,0,1)),47)).length;r<i;++r)rv(e[r],n)}function jk(t){var e,n;e=Lf(new Za((n=t.i).a,n.b),t.j),this.d=Ho(n.b,e.b),this.a=Ro(n.b,e.b),this.b=Ho(n.a,e.a),this.c=Ro(n.a,e.a)}function Mk(t,e,n,r){var i,o;!r&&(Qs(),Qs(),r=NX),i=pE(t,e,n),uS(t,e,o=Ry(new Array(n-e),t),0,i,!0),function t(e,n,r,i,o,a){var s,u,c;if(i-r<7)return void function(t,e,n,r){var i,o,a;for(i=e+1;i<n;++i)for(o=i;o>e&&r.$b(t[o-1],t[o])>0;--o)a=t[o],Mp(t,o,t[o-1]),Mp(t,o-1,a)}(n,r,i,a);if(t(n,e,u=r+o,c=u+((s=i+o)-u>>1),-o,a),t(n,e,c,s,-o,a),a.$b(e[c-1],e[c])<=0){for(;r<i;)Mp(n,r++,e[u++]);return}!function(t,e,n,r,i,o,a,s){var u;for(u=n;o<a;)u>=r||e<n&&s.$b(t[e],t[u])<=0?Mp(i,o++,t[e++]):Mp(i,o++,t[u++])}(e,u,c,s,n,r,i,a)}(o,t,e,n,-e,r)}function Dk(t,e){var n,r;for(r=t.c.length,e.length<r&&(e=Ry(new Array(r),e)),n=0;n<r;++n)Mp(e,n,t.c[n]);return e.length>r&&Mp(e,r,null),e}function Rk(t,e){var n,r;for(r=t.a.length,e.length<r&&(e=Ry(new Array(r),e)),n=0;n<r;++n)Mp(e,n,t.a[n]);return e.length>r&&Mp(e,r,null),e}function Bk(t){return Sl(t)?t:kl(t)?Sa((Md(t),t)):gf(t)?vl(eo((Md(t),t))):Vd(t)?t.w():_d(t)?lv(t):t.toString?t.toString():"[JavaScriptObject]"}function Gk(){Gk=r,nY=new ou("SIMPLE",0),Jz=new ou(Lj,1),tY=new ou("LINEAR_SEGMENTS",2),Qz=new ou("BRANDES_KOEPF",3),eY=new ou(Mj,4)}function Hk(){Hk=r,wU=new xu(SI,0),gU=new xu("FIRST",1),vU=new xu("FIRST_SEPARATE",2),bU=new xu("LAST",3),yU=new xu("LAST_SEPARATE",4)}function Fk(){Fk=r,NY=new ue,TY=pd(new Z_,(ML(),sF)),AY=fd(pd(new Z_,kF),EF),SY=fd(gd(pd(dd(new Z_,lF),hF),pF),fF),CY=fd(gd(new Z_,pF),ZH)}function zk(t){var e,n,r;for(n=new Yn(new zn(t.d.a).a.bb().mb());n.a.G();)r=Gh(n.a.H(),21),Oh((e=Gh(r.yb(),12)).c.e,e),Oh(e.d.b,e)}function Yk(t,e){var n,r;if(Tc(e>0),(e&-e)==e)return pv(e*mT(t,31)*4.656612873077393e-10);do{r=(n=mT(t,31))%e}while(n-r+(e-1)<0);return pv(r)}function Vk(t,e){if(t.c.f==e)return t.d.f;if(t.d.f==e)return t.c.f;throw new io("Node "+e+" is neither source nor target of edge "+t)}function qk(t,e,n){return Tc(t>=0&&t<=1114111),t>=aP?(e[n++]=55296+(t-aP>>10&1023)&sP,e[n]=56320+(t-aP&1023)&sP,2):(e[n]=t&sP,1)}function Uk(t){var e,n;if(!t.a)for(t.a=Al(Gh(t.e,9).c.c.length),n=new $n(Gh(t.e,9).c);n.a<n.c.c.length;)e=Gh(Wv(n),33),Oh(t.a,new un(e));return t.a}function Xk(t){var e,n;if(!t.b)for(t.b=Al(Gh(t.e,7).c.c.length),n=new $n(Gh(t.e,7).c);n.a<n.c.c.length;)e=Gh(Wv(n),33),Oh(t.b,new un(e));return t.b}function Wk(t){this.b=t,this.c=(ml(),new _r),this.i=new _r,this.d=new _r,this.j=new _r,this.k=Xu(yx(Vp(t[0]),(HL(),rR)))===Xu((y_(),TD)),function(t){var e,n,r,i,o;for(o=0,r=0,i=(n=t.b).length;r<i;++r)(e=n[r]).g==(AS(),kH)||dg(t.c,e,F_(o++)),q_(t,e,t.d,(uL(),wB)),q_(t,e,t.j,DB)}(this)}function $k(t){switch(t.e){case 1:return 4.71238898038469;default:case 2:return 0;case 3:return 1.5707963267948966;case 4:return 3.141592653589793}}function Kk(t){var e;if(qc(),e=vy(t),!X_(t))throw new ro("position (0) must be less than the number of elements that remained ("+e+")");return xv(t)}function Zk(t,e){var n,r;n=t.ub(e);try{return r=n.H(),n.I(),r}catch(t){throw fl(t=Qx(t),74)?new ro("Can't remove element "+e):A_(t)}}function Qk(t,e){var n,r,i;for(i=t.Y(),e.length<i&&(e=Ry(new Array(i),e)),r=t.mb(),n=0;n<i;++n)Mp(e,n,r.H());return e.length>i&&Mp(e,i,null),e}function Jk(t,e,n){if(n&&(e<0||e>n.a.c.length))throw new io("index must be >= 0 and <= layer node count");t.d&&Dy(t.d.a,t),t.d=n,n&&Td(n.a,e,t)}function tS(t,e,n){if(t<0)throw new ro(gP+t+" < 0");if(e>n)throw new ro("toIndex: "+e+" > size "+n);if(t>e)throw new io(gP+t+" > toIndex: "+e)}function eS(t,e){var n,r,i;return n=e.yb(),i=e.zb(),r=t.cb(n),!!(Xu(i)===Xu(r)||null!=i&&e_(i,r))&&!(null==r&&!t.R(n))}function nS(t,e,n){var r;(r=e.c.f).g==(AS(),kH)?($y(t,(DL(),zq),Gh(yx(r,zq),7)),$y(t,Yq,Gh(yx(r,Yq),7))):($y(t,(DL(),zq),e.c),$y(t,Yq,n.d))}function rS(t,e){var n,r=new Array(e);switch(t){case 11:case 12:n=0;break;case 13:n=!1;break;default:return r}for(var i=0;i<e;++i)r[i]=n;return r}function iS(t){var e,n;if(!t.b)for(t.b=Al(Gh(t.e,9).f.c.length),n=new $n(Gh(t.e,9).f);n.a<n.c.c.length;)e=Gh(Wv(n),7),Oh(t.b,new ks(e,t.c));return t.b}function oS(t){var e,n,r,i,o;for(i=iP,o=null,r=new $n(t.d);r.a<r.c.c.length;)(n=Gh(Wv(r),89)).c.j^n.d.j&&(e=n.d.e-n.c.e-n.a)<i&&(i=e,o=n);return o}function aS(t){var e,n;if(ch(),!t.G())return Jp(),GM;if(n=t.H(),!t.G())return new ua(n);mp(e=new Oc,Od(n));do{mp(e,Od(t.H()))}while(t.G());return d_(e)}function sS(t){var e,n,r;for(oi(),n=t.length,r=0;r<n&&t.charCodeAt(r)<=32;)++r;for(e=n;e>r&&t.charCodeAt(e-1)<=32;)--e;return r>0||e<n?t.substr(r,e-r):t}function uS(t,e,n,r,i,o){var a,s,u;for(Xu(t)===Xu(n)&&(t=t.slice(e,e+i),e=0),s=e,u=e+i;s<u;)i=(a=s+1e4<u?s+1e4:u)-s,Nb(n,r,o?i:0,t.slice(s,a)),s=a,r+=i}function cS(){cS=r,lB=new ds(kI,0),cB=new ds("FREE",1),uB=new ds("FIXED_SIDE",2),oB=new ds("FIXED_ORDER",3),sB=new ds("FIXED_RATIO",4),aB=new ds("FIXED_POS",5)}function lS(t,e,n){this.b=new qf,this.i=new je,this.d=new pn(this),this.g=t,this.a=e.c.length,this.c=e,this.e=Gh(ld(this.c,this.c.c.length-1),9),this.f=n,function(t){var e,n,r,i,o;for($y(t.g,(DL(),bq),Rh(t.g.c)),e=1;e<t.c.c.length-1;++e)$y(Gh(ld(t.c,e),9),(HL(),yR),(uT(),Wd(qR,_x(Oo(rB,1),CP,41,0,[WR,FR]))));for(r=_k(Rh(t.g.c),0);r.b!=r.d.c;)n=Gh(Cb(r),33),Um(i=Gh(yx(t.g,(HL(),yR)),86),Wd((uT(),UR),_x(Oo(rB,1),CP,41,0,[zR,WR])))||(Um(i,Wd(UR,_x(Oo(rB,1),CP,41,0,[VR,WR])))?(Oh(t.e.c,n),Dy(t.g.c,n),o=new Ts(t,n),$y(t.g,yq,o)):(AA(t,n),Oh(t.i,t.d),$y(t.g,yq,pk(t.i))))}(this)}function fS(){fS=r,CV=new vu("ALWAYS_UP",0),SV=new vu("ALWAYS_DOWN",1),AV=new vu("DIRECTION_UP",2),TV=new vu("DIRECTION_DOWN",3),NV=new vu("SMART",4)}function hS(t,e){var n,r,i,o,a,s;return(a=t.h>>19)!=(s=e.h>>19)?s-a:(r=t.h)!=(o=e.h)?r-o:(n=t.m)!=(i=e.m)?n-i:t.l-e.l}function dS(t){var e,n,r;for(n=new Yn(new zn(t.p.a).a.bb().mb());n.a.G();)if(r=Gh(n.a.H(),21),(e=Gh(r.yb(),89)).e&&t.b[e.b]<0)return e;return null}function pS(t,e){var n,r,i,o,a;r=Ho(t.d,e.d),o=Ho(t.e,e.e),(i=Ro(t.d+t.c,e.d+e.c))<r&&(n=r,r=i,i=n),(a=Ro(t.e+t.b,e.e+e.b))<o&&(n=o,o=a,a=n),Th(t,r,o,i-r,a-o)}function gS(t,e){var n;if(BI in t.a){if(!(n=_g(t,BI)).kc())throw new gp("The 'properties' property of a graph element must be an object.",n,t);iC(n.kc(),e,!0)}}function vS(t){var e,n;switch(Gh(yx(Vp(t),(RL(),HU)),174).e){case 0:return e=t.i,n=t.j,new Za(e.a+n.a/2,e.b+n.b/2);case 1:return new Uu(t.i);default:return null}}function bS(){uw(),rf.call(this),this.g=(uL(),RB),this.a=new ao,this.d=new Me,this.c=(kw(2,JP),new sw(2)),this.b=(kw(4,JP),new sw(4)),this.e=(kw(4,JP),new sw(4))}function yS(t,e){this.c=(ml(),new _r),this.a=t,this.b=e,this.d=Gh(yx(t,(DL(),uU)),134),Xu(yx(t,(RL(),TU)))===Xu((Dw(),pY))?this.e=new Ei:this.e=new _i}function wS(t,e){var n,r,i;for(i=0,r=0;r<e.length;r++)n=e[r],r<e.length-1&&(i+=I_(t,n,e[r+1])),i+=(t.d=new Wk(n),TC(t.d)),i+=(t.a=new bE(n),Jg(t.a));return i}function mS(t){switch(t.c.e){case 1:return uw(),OH;case 2:return uw(),AH;case 3:return uw(),PH;case 4:return uw(),IH}throw new ko("Can't filter on undefined side")}function xS(t,e){var n;try{return n=t.c.a,lf(t.b,e)&&n?function t(e,n,r){var i;return(i=n.$b(r,e.b))<0?e.e?t(e.e,n,r):0:i>0?e.g?t(e.g,n,r):0:e.c}(n,t.d,e):0}catch(t){if(fl(t=Qx(t),119))return 0;if(fl(t,76))return 0;throw A_(t)}}function _S(t,e){var n,r,i,o;for(i=0;i<e.length;i++)for(i+1<e.length&&py(t,e[i+1],(tm(),_U)),o=e[i],n=0,r=0;r<o.length;r++)PL(t,o[r]),n+=t.Hc(o[r],n,(tm(),EU))}function ES(){ES=r,lV=gd(gd(hd(new Z_,(ML(),jF)),IF),MF),aV=fd(gd(pd(dd(new Z_,lF),hF),pF),fF),uV=pd(new Z_,sF),cV=fd(pd(new Z_,kF),EF),sV=fd(gd(new Z_,pF),ZH)}function kS(t){if(null==lM&&(lM=/^\s*[+-]?(NaN|Infinity|((\d+\.?\d*)|(\.\d+))([eE][+-]?\d+)?[dDfF]?)\s*$/),!function(t,e){return t.test(e)}(lM,t))throw new Wo(cP+t+'"');return parseFloat(t)}function SS(){SS=r,MV=new bu(SI,0),jV=new bu("LEFTUP",1),RV=new bu("RIGHTUP",2),IV=new bu("LEFTDOWN",3),DV=new bu("RIGHTDOWN",4),PV=new bu("BALANCED",5)}function CS(){CS=r,wV=new pu("V_TOP",0),yV=new pu("V_CENTER",1),bV=new pu("V_BOTTOM",2),gV=new pu("H_LEFT",3),pV=new pu("H_CENTER",4),vV=new pu("H_RIGHT",5)}function TS(){TS=r,RD=new cs(SI,0),MD=new cs("DIRECTED",1),BD=new cs("UNDIRECTED",2),ID=new cs("ASSOCIATION",3),DD=new cs("GENERALIZATION",4),jD=new cs("DEPENDENCY",5)}function AS(){AS=r,SH=new Cs("NORMAL",0),kH=new Cs("LONG_EDGE",1),_H=new Cs("EXTERNAL_PORT",2),CH=new Cs("NORTH_SOUTH_PORT",3),EH=new Cs("LABEL",4),xH=new Cs("BIG_NODE",5)}function NS(t){var e,n,r;for(e=new je,r=new $n(t.f);r.a<r.c.c.length;)n=Gh(Wv(r),7),Oh(e,dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[n.b,n.e]))))));return Od(e),new Ec(e)}function OS(t,e,n){if(this.a=n,t>=e.length)throw new ro("Greedy SwitchDecider: Free layer layer not in graph.");this.b=e[t],this.c=new Wf(this.b),this.d=new Hm(this.b)}function LS(t,e){var n;if(this.f=t,this.b=this.f.c,Tb(e,n=t.d),e>=(n/2|0))for(this.e=t.e,this.d=n;e++<n;)eb(this);else for(this.c=t.a;e-- >0;)tb(this);this.a=null}function PS(t){var e,n,r;for(n=new $n(t.a.b);n.a<n.c.c.length;)r=(e=Gh(Wv(n),25)).j.d,e.j.d=e.j.e,e.j.e=r,r=e.j.c,e.j.c=e.j.b,e.j.b=r,r=e.g.a,e.g.a=e.g.b,e.g.b=r;mN(t)}function IS(t,e,n){var r,i,o,a;for(a=Ky(t.f,e,0),(o=new Kr).b=n,r=new Uv(t.f,a);r.b<r.d.Y();)Nc(r.b<r.d.Y()),(i=Gh(r.d.sb(r.c=r.b++),9)).k=n,Oh(o.f,i),ng(r);return o}function jS(){jS=r,$B=new bs("DEFAULT_MINIMUM_SIZE",0),KB=new bs("MINIMUM_SIZE_ACCOUNTS_FOR_INSETS",1),WB=new bs("COMPUTE_INSETS",2),XB=new bs("APPLY_ADDITIONAL_INSETS",3)}function MS(t){var e,n,r,i;for(n=t.a.b+2,(i=Ey(nD,RI,10,n,0,1))[0]=yc(Iv(t.c)),r=_k(t.a,0);r.b!=r.d.c;)e=Gh(Cb(r),10),i[r.a]=new Za(e.a,e.b);return i[n-1]=yc(Iv(t.d)),i}function DS(t,e,n){var r,i,o;for(i=t.bb().mb();i.G();)if(o=(r=Gh(i.H(),21)).yb(),Xu(e)===Xu(o)||null!=e&&e_(e,o))return n&&(r=new Ru(r.yb(),r.zb()),i.I()),r;return null}function RS(t,e,n){var r,i,o;return i=e.c,o=e.d,r=n,!!mp(t.a,e)&&(UE(t,i)&&(r=!0),UE(t,o)&&(r=!0),r&&(Dy(e.c.e,e),Dy(e.d.b,e),mp(t.d,e)),function(t,e){var n,r,i,o;for(n=0,r=0,o=new $n(e.b);o.a<o.c.c.length;)n=Ro(n,(i=Gh(Wv(o),33)).j.a),r+=i.j.b;$y(e,(DL(),cU),new Za(n,r)),t.k<n&&(t.k=n),t.j+=r}(t,e),!0)}function BS(t,e,n){var r,i;return(i=sE(t,e))==t.c?Mf(t,PE(t,e)):n?(mC(t,e,t.c-i),Mf(t,PE(t,e))):(mC(r=new VE(t),e,t.c-i),Mf(r,PE(r,e)))}function GS(t,e){var n;return!(n=Gh(Up(t.b,e),19))&&(n=t.Z()),fl(n,137)?new Ef(t,e,Gh(n,137)):fl(n,18)?new _f(t,e,Gh(n,18)):fl(n,20)?pb(t,e,Gh(n,20),null):new Sy(t,e,n,null)}function HS(t){switch(Ri(t.e)-Ri(t.g)){case-2:return bc(t.g)>0&&(t.g=KS(t.g)),$S(t);case 2:return bc(t.e)<0&&(t.e=$S(t.e)),KS(t);default:return t.d=1+Go(Ri(t.e),Ri(t.g)),t}}function FS(t,e){this.f=(ml(),new _r),this.b=new _r,this.j=new _r,this.a=t,this.c=e,this.c>0&&WC(this,this.c-1,(uL(),yB)),this.c<this.a.length-1&&WC(this,this.c+1,(uL(),BB))}function zS(t,e){var n,r,i;for(i=new je,n=Gh(mg(ZF,t),20).mb();n.G();)Jm(i,Gh(n.H(),75).b);for(NC(i),Aw(i,t.a),r=new $n(i);r.a<r.c.c.length;)eh(e,Gh(Wv(r),7))}function YS(t,e,n){var r,i,o;return kw(n,"count"),lf(t.b,e)?(o=t.c.a)?(i=Ey(UX,nI,26,1,12,1),r=function t(e,n,r,i,o){var a,s,u;if((a=n.$b(r,e.b))<0)return(s=e.e)?(e.e=t(s,n,r,i,o),0==i&&0!=o[0]?--e.a:i>0&&0==o[0]&&++e.a,e.j=p_(e.j,i-o[0]),HS(e)):(o[0]=0,i>0?ym(e,r,i):e);if(a>0)return(u=e.g)?(e.g=t(u,n,r,i,o),0==i&&0!=o[0]?--e.a:i>0&&0==o[0]&&++e.a,e.j=p_(e.j,i-o[0]),HS(e)):(o[0]=0,i>0?bm(e,r,i):e);if(o[0]=e.c,0==i)return MT(e);return e.j=p_(e.j,i-e.c),e.c=i,e}(o,t.d,e,n,i),Pd(t.c,o,r),i[0]):(n>0&&eT(t,e,n),0):(Fu(0==n),0)}function VS(t,e){var n,r,i,o,a;for(i=Gh(yx(e,(DL(),sU)),15).a*Gh(yx(e,(RL(),DU)),15).a,a=t[0].i.a+t[0].j.a,o=1;o<t.length;o++)n=t[o].i,r=t[o].j,n.a<=a+i&&(n.a=a+i),a=n.a+r.a}function qS(){var t,e,n,i;for(qS=r,LX=Ey($X,dP,26,25,12,1),PX=Ey($X,dP,26,33,12,1),i=152587890625e-16,e=32;e>=0;e--)PX[e]=i,i*=.5;for(n=1,t=24;t>=0;t--)LX[t]=n,n*=.5}function US(t){for(;0!=t.g.c&&0!=t.d.c;)Fl(t.g).c>Fl(t.d).c?(t.i+=t.g.c,DE(t.d)):Fl(t.d).c>Fl(t.g).c?(t.e+=t.d.c,DE(t.g)):(t.i+=Jh(t.g),t.e+=Jh(t.d),DE(t.g),DE(t.d))}function XS(t){var e,n,r,i;for(i=new Uo("["),e=!1,r=t.mb();r.G();)n=r.H(),e?i.a+=", ":e=!0,ec(i,n===t?"(this Collection)":(oi(),null==n?tP:Bk(n)));return i.a+="]",i.a}function WS(t){var e,n,r,i;for(i=new Uo("{"),e=!1,r=t.bb().mb();r.G();)n=Gh(r.H(),21),e?i.a+=", ":e=!0,ec(i,db(t,n.yb())),i.a+="=",ec(i,db(t,n.zb()));return i.a+="}",i.a}function $S(t){var e;return zu(!!t.g),e=t.g,t.g=e.e,e.e=t,e.j=t.j,e.a=t.a,t.a=1+Di(t.e)+Di(t.g),t.j=p_(p_(t.c,Bi(t.e)),Bi(t.g)),t.d=1+Go(Ri(t.e),Ri(t.g)),e.d=1+Go(Ri(e.e),Ri(e.g)),e}function KS(t){var e;return zu(!!t.e),e=t.e,t.e=e.g,e.g=t,e.j=t.j,e.a=t.a,t.a=1+Di(t.e)+Di(t.g),t.j=p_(p_(t.c,Bi(t.e)),Bi(t.g)),t.d=1+Go(Ri(t.e),Ri(t.g)),e.d=1+Go(Ri(e.e),Ri(e.g)),e}function ZS(t){var e;hl(new $n(iS(t.e)))&&((e=Gh(hE(t.e,(HL(),AR)),28))==(cS(),aB)?function(t){var e,n,r,i,o;for(e=t.e.j,r=new $n(iS(t));r.a<r.c.c.length;){switch(n=Gh(Wv(r),161),!(i=Gh(hE(n,(HL(),mR)),15))&&(i=new Gn(0)),o=new Uu(n.e.i),Gh(n.e,7).g.e){case 4:o.a=-n.e.j.a-i.a;break;case 2:o.a=e.a+i.a;break;case 1:o.b=-n.e.j.b-i.a;break;case 3:o.b=e.b+i.a}n.e.i.a=o.a,n.e.i.b=o.b}}(t.e):e==sB?function(t){var e,n,r,i;for(e=t.e.j,r=new $n(iS(t));r.a<r.c.c.length;){switch(n=Gh(Wv(r),161),!(i=Gh(hE(n,(HL(),mR)),15))&&(i=new Gn(0)),Gh(n.e,7).g.e){case 4:n.e.i.b=e.b*no(Nf(hE(n,CG))),n.e.i.a=-n.e.j.a-i.a;break;case 2:n.e.i.b=e.b*no(Nf(hE(n,CG))),n.e.i.a=e.a+i.a;break;case 1:n.e.i.a=e.a*no(Nf(hE(n,CG))),n.e.i.b=-n.e.j.b-i.a;break;case 3:n.e.i.a=e.a*no(Nf(hE(n,CG))),n.e.i.b=e.b+i.a}switch(Gh(n.e,7).g.e){case 4:n.e.i.b=e.b*no(Nf(hE(n,CG))),n.e.i.a=-n.e.j.a-i.a;break;case 2:n.e.i.b=e.b*no(Nf(hE(n,CG))),n.e.i.a=e.a+i.a;break;case 1:n.e.i.a=e.a*no(Nf(hE(n,CG))),n.e.i.b=-n.e.j.b-i.a;break;case 3:n.e.i.a=e.a*no(Nf(hE(n,CG))),n.e.i.b=e.b+i.a}}}(t.e):eo(no(Af(hE(t.e,cR))))||0==t.e.e.j.a&&0==t.e.e.j.b?function(t){var e,n,r;for(n=new $n(iS(t));n.a<n.c.c.length;){switch(e=Gh(Wv(n),161),r=new Uu(e.e.i),Gh(e.e,7).g.e){case 4:r.a=0,r.b=t.e.j.b/2;break;case 2:r.a=t.e.j.a,r.b=t.e.j.b/2;break;case 1:r.a=t.e.j.a/2,r.b=0;break;case 3:r.a=t.e.j.a/2,r.b=t.e.j.b}e.e.i.a=r.a,e.e.i.b=r.b}}(t.e):function(t){var e,n,r,i,o,a,s,u,c;for(r=t.e.e.j,e=Gh(hE(t.e,(HL(),RR)),86).kb((kE(),VB)),function(t){var e,n,r,i,o,a,s;if(n=t.e.e.j,e=t.b?Gh(hE(t.e,(HL(),UD)),65):new xf(t.k,t.k,t.k,t.k),i=n.a,(t.b||t.g[1]!=(EE(),eB))&&(i-=e.b+e.c),o=n.a,(t.b||t.g[3]!=(EE(),eB))&&(o-=e.b+e.c),a=n.b,(t.b||t.g[4]!=(EE(),eB))&&(a-=e.d+e.a),r=n.b,(t.b||t.g[2]!=(EE(),eB))&&(r-=e.d+e.a),Po(t,(uL(),wB))==(EE(),eB))t.j[1]=(i-Mo(t,wB))/Io(t,wB),t.f=t.b?e.b+(1==Do(t,wB)?t.j[1]:0):t.j[1];else switch(t.j[1]=t.k,s=Mo(t,wB)+t.j[1]*(Do(t,wB)-1),Po(t,wB).e){case 2:t.f=e.b;break;case 3:t.f=e.b+(i-s)/2;break;case 4:t.f=n.a-s-e.c}if(Po(t,DB)==eB)t.j[3]=(o-Mo(t,DB))/Io(t,DB),t.r=n.a-(t.b?e.c+(1==Do(t,DB)?t.j[3]:0):t.j[3]);else switch(t.j[3]=t.k,s=Mo(t,DB)+t.j[3]*(Do(t,DB)-1),Po(t,DB).e){case 2:t.r=s+e.b;break;case 3:t.r=n.a-(o-s)/2-e.c;break;case 4:t.r=n.a-e.c}if(Po(t,BB)==eB)t.j[4]=(a-Mo(t,BB))/Io(t,BB),t.s=n.b-(t.b?e.a+(1==Do(t,BB)?t.j[4]:0):t.j[4]);else switch(t.j[4]=t.k,s=Mo(t,BB)+t.j[4]*(Do(t,BB)-1),Po(t,BB).e){case 2:t.s=s+e.d;break;case 3:t.s=n.b-(a-s)/2-e.a;break;case 4:t.s=n.b-e.a}if(Po(t,yB)==eB)t.j[2]=(r-Mo(t,yB))/Io(t,yB),t.a=t.b?e.d+(1==Do(t,yB)?t.j[2]:0):t.j[2];else switch(t.j[2]=t.k,s=Mo(t,yB)+t.j[2]*(Do(t,yB)-1),Po(t,yB).e){case 2:t.a=e.d;break;case 3:t.a=e.d+(r-s)/2;break;case 4:t.a=n.b-s-e.a}}(t),o=new $n(iS(t.e));o.a<o.c.c.length;){switch(i=Gh(Wv(o),161),!(s=Gh(hE(i,mR),15))&&(s=new Gn(0)),u=i.e.j,n=Gh(i.e,7).d,a=new xf(n.d,n.b,n.a,n.c),c=new Uu(i.e.i),Gh(i.e,7).g.e){case 4:c.a=-u.a-s.a,c.b=t.s-u.b-(e?a.a:0),t.s-=jo(t,(uL(),BB))+u.b+(e?a.d+a.a:0);break;case 2:c.a=r.a+s.a,c.b=t.a+(e?a.d:0),t.a+=jo(t,(uL(),yB))+u.b+(e?a.d+a.a:0);break;case 1:c.a=t.f+(e?a.b:0),c.b=-i.e.j.b-s.a,t.f+=jo(t,(uL(),wB))+u.a+(e?a.b+a.c:0);break;case 3:c.a=t.r-u.a-(e?a.c:0),c.b=r.b+s.a,t.r-=jo(t,(uL(),DB))+u.a+(e?a.b+a.c:0)}i.e.i.a=c.a,i.e.i.b=c.b}}(t))}function QS(t,e,n){var r,i;if((i=new $n(t)).a<i.c.c.length){for(r=eO(Gh(Wv(i),33),e,n);i.a<i.c.c.length;)Gw(r,eO(Gh(Wv(i),33),e,n));return new Pb(r)}return null}function JS(t,e){var n;if(Rb(),t.c==e.c){if(t.b==e.b||function(t,e){return Pm(),t==oH&&e==uH||t==uH&&e==oH||t==sH&&e==aH||t==aH&&e==sH}(t.b,e.b)){if(n=function(t){return t==oH||t==uH}(t.b)?1:-1,t.a&&!e.a)return n;if(!t.a&&e.a)return-n}return Rc(t.b.e,e.b.e)}return Sx(t.c,e.c)}function tC(t){var e,n;switch(n=yc(Gm(_x(Oo(nD,1),RI,10,0,[t.f.i,t.i,t.a]))),e=t.f.e,t.g.e){case 1:n.b-=e.d;break;case 2:n.a+=e.c;break;case 3:n.b+=e.a;break;case 4:n.a-=e.b}return n}function eC(t,e){var n;return n=0,e.g==(AS(),CH)?(Cy(e).f!=t.a&&(Tu(t,Cy(e).f),t.e=!0),t.e?++t.g:n+=t.f):e.g==kH?t.e?n+=t.g:++t.f:e.g==SH&&(Tu(t,e),t.e=!1),n}function nC(t,e,n,r,i){var o,a,s,u;for(u=null,s=new $n(r);s.a<s.c.c.length;)if((a=Gh(Wv(s),187))!=n&&-1!=Ky(a.e,i,0)){u=a;break}rv(o=hb(i),n.b),nv(o,u.b),rT(t.a,i,new gh(o,e,n.f))}function rC(t){switch(Gh(yx(t,(RL(),FU)),85).e){case 1:$y(t,FU,(Hk(),bU));break;case 2:$y(t,FU,(Hk(),yU));break;case 3:$y(t,FU,(Hk(),gU));break;case 4:$y(t,FU,(Hk(),vU))}}function iC(t,e,n){var r,i;if(t)for(i=new Fn(new Kn(new Ua(t,wm(t,Ey(pM,ZL,2,0,5,1))).b));i.b<i.d.Y();)Nc(i.b<i.d.Y()),FL(e,r=Of(i.d.sb(i.c=i.b++)),_g(t,r),n)}function oC(t,e,n){var r,i,o;if(t.e=e,n)for(i=new Yn(new zn(t.a.a).a.bb().mb());i.a.G();)o=Gh(i.a.H(),21),$y(r=Gh(o.yb(),12),(DL(),lU),t.e),Hf(r.c,e.a),Hf(r.d,e.b)}function aC(){aC=r,oz=new Is(SI,0),nz=new Is(mI,1),az=new Is(xI,2),iz=new Is("LEFT_RIGHT_CONSTRAINT_LOCKING",3),rz=new Is("LEFT_RIGHT_CONNECTION_LOCKING",4),ez=new Is("EDGE_LENGTH",5)}function sC(t,e,n,r){var i;this.b=r,this.e=t.a,i=e[n],this.d=kd(XX,[ZL,Nj],[227,26],13,[i.length,i.length],2),this.a=kd(UX,[ZL,nI],[52,26],12,[i.length,i.length],2),this.c=new FS(e,n)}function uC(t,e,n){var r,i,o,a;for(a=sA(new Yf(e,n));a.G();)for(o=Gh(a.H(),7),i=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[o.b,o.e]))))));X_(i);)ny(r=Gh(xv(i),12))||vC(t,e,o,r)}function cC(t,e){var n,r;for(r=fC(t,e).mb();r.G();)if(null!=yx(n=Gh(r.H(),7),(DL(),Jq))||X_(Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[n.b,n.e]))))))))return!0;return!1}function lC(t){var e,n;if(rb(t))throw new io(Zj);for(n=_k(t,0);n.b!=n.d.c;)e=Gh(Cb(n),10),this.d=Ho(this.d,e.b),this.c=Ro(this.c,e.a),this.a=Ro(this.a,e.b),this.b=Ho(this.b,e.a)}function fC(t,e){switch(e.e){case 1:return Fh(t.f,(uw(),OH));case 2:return Fh(t.f,(uw(),AH));case 3:return Fh(t.f,(uw(),PH));case 4:return Fh(t.f,(uw(),IH));default:return Dg(),Dg(),kX}}function hC(t,e){switch(this.b=new Qi,t){case 0:this.d=new Dn(this);break;case 1:this.d=new jn(this);break;case 2:this.d=new Mn(this);break;default:throw new Vr}this.c=e,this.a=.2*e}function dC(t){var e,n,r;if(!t.b)for(t.b=new je,e=new $n(t.a.c);e.a<e.c.c.length;)for(r=new $n(Gh(Wv(e),16).a);r.a<r.c.c.length;)n=Gh(Wv(r),9),Oh(t.b,new Es(n,t.c));return t.b}function pC(t,e){var n,r,i;n=function(t,e){return e==(uL(),BB)?t.c:t.d}(e,t.e),r=Gh(Up(t.g.f,n),24).a,i=t.a.c.length-1,0!=t.a.c.length&&Gh(ld(t.a,i),128).c==r?(++Gh(ld(t.a,i),128).a,++Gh(ld(t.a,i),128).b):Oh(t.a,new Jl(r))}function gC(t){var e,n;return oi(),t>=aP?(e=55296+(t-aP>>10&1023)&sP,n=56320+(t-aP&1023)&sP,String.fromCharCode(e)+""+String.fromCharCode(n)):String.fromCharCode(t&sP)}function vC(t,e,n,r){var i;Oh(t.c,new pg(t,n,r,Gh(Up(t.k,n),24).a)),Fp(r)&&(e==t.e?r.d.f!=t.a&&r.c.f!=t.a:r.d.f!=t.e&&r.c.f!=t.e)&&(i=n==r.c?r.d:r.c,Oh(t.c,new pg(t,i,r,Gh(Up(t.k,i),24).a)))}function bC(t,e){var n,r,i;if(e===t)return!0;if(!fl(e,57))return!1;if(i=Gh(e,57),t.Y()!=i.Y())return!1;for(r=i.bb().mb();r.G();)if(n=Gh(r.H(),21),!t._(n))return!1;return!0}function yC(t,e){var n,r,i;return S_(r=new wk(t),e),$y(r,(DL(),Pq),e),$y(r,(HL(),AR),(cS(),aB)),$y(r,WD,(ok(),cD)),lr(r,(AS(),_H)),tv(n=new bS,r),Hf(n,(uL(),BB)),tv(i=new bS,r),Hf(i,yB),r}function wC(t,e){var n,r,i;for(i=iP,r=new $n(W_(e));r.a<r.c.c.length;)(n=Gh(Wv(r),89)).e&&!t.c[n.b]&&(t.c[n.b]=!0,i=zo(i,wC(t,oE(n,e))));return t.i[e.b]=t.j,t.g[e.b]=zo(i,t.j++),t.g[e.b]}function mC(t,e,n){var r,i,o,a;if(a=t.g.tb(),t.e)for(i=0;i<t.c;i++)a.H();else for(i=0;i<t.c-1;i++)a.H();for(o=t.b.tb(),r=no(Nf(a.H()));r-e<$j;)r=no(Nf(a.H())),o.H();a.M(),LA(t,n,e,o,a)}function xC(t,e){var n,r,i,o;for(r=0,i=t.length;r<i;r++){o=t[r];try{o[1]?o[0].bd()&&(e=$d(e,o)):o[0].bd()}catch(t){if(!fl(t=Qx(t),46))throw A_(t);Tp(fl(n=t,164)?Gh(n,164).cc():n)}}return e}function _C(t){var e,n,r,i,o;for(o=iP,i=iP,r=new $n(W_(t));r.a<r.c.c.length;)e=(n=Gh(Wv(r),89)).d.e-n.c.e,n.d==t&&e<i?i=e:e<o&&(o=e);return i==iP&&(i=-1),o==iP&&(o=-1),new Qa(F_(i),F_(o))}function EC(t,e,n){var r,i,o,a;for(e.k=-1,a=fE(e,(tm(),EU)).mb();a.G();)for(i=new $n(Gh(a.H(),7).e);i.a<i.c.c.length;)e!=(o=(r=Gh(Wv(i),12)).d.f)&&(o.k<0?n.ib(r):o.k>0&&EC(t,o,n));e.k=0}function kC(t,e){if(0>e)throw new io("Top must be smaller or equal to bottom.");if(0>t)throw new io("Left must be smaller or equal to right.");this.d=0,this.c=t,this.a=e,this.b=0}function SC(t){var e,n,r;if(0==t.length)throw new io(Zj);for(n=0,r=t.length;n<r;++n)e=t[n],this.d=Ho(this.d,e.b),this.c=Ro(this.c,e.a),this.a=Ro(this.a,e.b),this.b=Ho(this.b,e.a)}function CC(t){var e,n,r;if(qc(),e=t.H(),!t.G())return e;for((r=new Qo).a+="expected one element but was: <"+e,n=0;n<4&&t.G();n++)ec(r,", "+t.H());throw t.G()&&(r.a+=", ..."),r.a+=">",new io(r.a)}function TC(t){var e,n,r,i,o;for(e=0,i=0,o=(r=t.b).length;i<o;++i)e+=eC(t,n=r[i]),Yl(Gh(yx(n,(HL(),AR)),28))&&(fC(n,(uL(),wB)).mb().G()&&(e+=JA(t,n,wB)),fC(n,DB).mb().G()&&(e+=JA(t,n,DB)));return e}function AC(t,e,n,r){var i,o,a,s,u;if(r.d.c+r.e.c==0)for(s=0,u=(a=t.a[t.c]).length;s<u;++s)dg(r,o=a[s],new xm(t,o,n));return(i=Gh(Wu(uv(r.d,e)),284)).b=0,i.c=i.f,0==i.c||ur(Gh(ld(i.a,i.b),128)),i}function NC(t){var e,n,r,i,o,a,s;if(Dg(),fl(t,63))for(o=0,i=t.Y()-1;o<i;++o,--i)e=t.sb(o),t.wb(o,t.sb(i)),t.wb(i,e);else for(n=t.tb(),a=t.ub(t.Y());n.L()<a.N();)r=n.H(),s=a.M(),n.O(s),a.O(r)}function OC(t){if(!("id"in t.a))throw new Xl("Every graph element must specify an 'id' property.",t);if(!_g(t,"id").lc())throw new Xl("Invalid format for 'id'. Must be a string, was "+_g(t,"id").$c,t)}function LC(t,e){var n,r,i,o,a;for(a=t.b,n=Gh(mg(ZF,t),20).mb();n.G();)for(o=new Yn(new zn(Gh(n.H(),75).c.a).a.bb().mb());o.a.G();)r=Gh(o.a.H(),21),eh(e,i=Gh(r.yb(),7)),wT(i,a)}function PC(t){var e,n,r;for(fg(t.c),fg(t.b),fg(t.a),r=new Yn(new zn(t.e).a.bb().mb());r.a.G();)e=Gh(r.a.H(),21),2!=(n=Gh(e.yb(),60)).c&&(pm(t.a,n),0==n.c&&pm(t.c,n)),pm(t.b,n);t.d=!1}function IC(t,e){var n;if(t===e)return!0;if(fl(e,18)){n=Gh(e,18);try{return t.Y()==n.Y()&&t.lb(n)}catch(t){if(fl(t=Qx(t),76))return!1;if(fl(t,119))return!1;throw A_(t)}}return!1}function jC(t,e,n){var r,i,o,a;if(a=null==e?0:t.b.Vc(e),0==(i=null==(r=_a(t.a,a))?[]:r).length)!function(t,e,n){t.set(e,n)}(t.a,a,i);else if(o=Xx(t,e,i))return o.Ab(n);return Mp(i,i.length,new Ru(e,n)),++t.c,th(t.b),null}function MC(t,e,n){if(t<0)return TA(EP,_x(Oo(fM,1),kP,1,4,[n,F_(t)]));if(e<0)throw new io(SP+e);return TA("%s (%s) must not be greater than size (%s)",_x(Oo(fM,1),kP,1,4,[n,F_(t),F_(e)]))}function DC(t){var e,n,r;for(r=Ey(TH,ZL,51,t.c.c.length,0,2),n=new Uv(t.c,0);n.b<n.d.Y();)Nc(n.b<n.d.Y()),e=Gh(n.d.sb(n.c=n.b++),16),r[n.b-1]=Gh(Dk(e.a,Ey(TH,qI,9,e.a.c.length,0,1)),51);return r}function RC(t,e,n,r,i){switch(this.c=i,this.d=e,this.a=n,i.e){case 4:this.b=ka(t.b);break;case 1:this.b=ka(t.d);break;case 2:this.b=ka(t.c-r.j.a);break;case 3:this.b=ka(t.a-r.j.b);break;default:this.b=0}}function BC(t,e,n,r,i){var o,a,s,u;if(e)for(a=e.mb();a.G();)for(u=VA(Gh(a.H(),9),(tm(),EU),n).mb();u.G();)s=Gh(u.H(),7),(o=Gh(Wu(uv(i.d,s)),80))||(o=new zm(t),r.c[r.c.length]=o,xA(o,s,i))}function GC(t,e){var n,r,i;if((n=t.c).a.Y()>1)throw new io("In straight hyperEdges there may be only one edge.");Nh((i=new zn(n.a).a.bb().mb(),r=Gh(new Yn(i).a.H(),21),Gh(r.yb(),12)).a,new Za(e,t.b))}function HC(t,e,n){var r,i;if(this.f=t,Tb(n,i=(r=Gh(Up(t.b,e),126))?r.a:0),n>=(i/2|0))for(this.e=r?r.c:null,this.d=i;n++<i;)Pv(this);else for(this.c=r?r.b:null;n-- >0;)Lv(this);this.b=e,this.a=null}function FC(e,n){"undefined"===rP?(void 0)(n):((typeof document!==jI||typeof t===KL&&t.exports)&&ZX(e(n)),typeof document===jI&&typeof self!==jI&&self.postMessage(n))}function zC(t,e){var n,r,i,o;"x"in t.a&&(i=Gh(_g(t,"x"),104),e.i.a=i.a),"y"in t.a&&(o=Gh(_g(t,"y"),104),e.i.b=o.a),FI in t.a&&(r=Gh(_g(t,FI),104),e.j.a=r.a),zI in t.a&&(n=Gh(_g(t,zI),104),e.j.b=n.a)}function YC(t,e,n){var r;yy(this),e==(av(),fV)?mp(this.g,t.c):mp(this.o,t.c),mp(n==fV?this.g:this.o,t.d),mp(this.c,t),nk(this,Iv(t.c).b,r=Iv(t.d).b,r),this.f=function(t,e){return ES(),(t-e<=0?0-(t-e):t-e)<.2}(Iv(t.c).b,Iv(t.d).b)}function VC(t,e,n){var r,i,o,a,s;for(Dg(),s=new sw((a=new $o(Gh(ld(e.a,n),18))).b.Y()),i=new tr(a.b.mb());i.b.G();)r=Gh(i.b.H(),37),(o=Gh(Up(t.a,r),31))||(o=AL(r),dg(t.a,r,o)),s.c[s.c.length]=o;return s}function qC(t){var e,n;if(zs(Gh(yx(t,(HL(),AR)),28)))for(n=new $n(t.f);n.a<n.c.c.length;)(e=Gh(Wv(n),7)).g==(uL(),RB)&&Hx(e);else{for(n=new $n(t.f);n.a<n.c.c.length;)Hx(e=Gh(Wv(n),7));$y(t,AR,(cS(),uB))}}function UC(t){if(!t)return li(),ZM;var n=t.valueOf?t.valueOf():t;if(n!==t){var r=QM[typeof n];return r?r(n):c_(typeof n)}return t instanceof Array||t instanceof e.Array?new Je(t):new nn(t)}function XC(t,e,n){var r,i;return r=n.c,i=n.d,t.g[r.b]<=t.i[e.b]&&t.i[e.b]<=t.i[r.b]&&t.g[i.b]<=t.i[e.b]&&t.i[e.b]<=t.i[i.b]?!(t.i[r.b]<t.i[i.b]):t.i[r.b]<t.i[i.b]}function WC(t,e,n){var r,i,o,a,s,u,c;for(c=0,o=0,a=(i=t.a[e]).length;o<a;++o){for(u=sA(new Yf(r=i[o],n));u.G();)s=Gh(u.H(),7),dg(t.f,s,F_(c)),Yl(Gh(yx(r,(HL(),AR)),28))&&++c;Yl(Gh(yx(r,(HL(),AR)),28))||++c}}function $C(t,e){var n,r;return(n=Gh(qd(t.b,e),19))?((r=t.Z()).jb(n),t.c-=n.Y(),n.Q(),fl(r,137)?(Dg(),new Kl(Gh(r,137))):fl(r,18)?(Dg(),new $o(Gh(r,18))):fl(r,20)?sv(Gh(r,20)):(Dg(),new Jn(r))):t.$()}function KC(t,e){var n;e.d?e.d.b=e.b:t.a=e.b,e.b?e.b.d=e.d:t.e=e.d,e.e||e.c?(--(n=Gh(Up(t.b,e.a),126)).a,e.e?e.e.c=e.c:n.b=e.c,e.c?e.c.e=e.e:n.c=e.e):((n=Gh(qd(t.b,e.a),126)).a=0,++t.c),--t.d}function ZC(t,e,n){switch(n.e){case 1:return new Za(e.a,Ho(t.d.b,e.b));case 2:return new Za(Ro(t.c.a,e.a),e.b);case 3:return new Za(e.a,Ro(t.c.b,e.b));case 4:return new Za(Ho(e.a,t.d.a),e.b)}return new Za(e.a,e.b)}function QC(t,e){var n,r,i;for(this.a=t,this.c=e,this.b=Ey(Hz,ZL,673,t.length,0,2),n=0;n<t.length;++n)for(i=t[n].length,this.b[n]=Ey(Hz,{673:1,3:1,5:1,6:1},102,i,0,1),r=0;r<i;++r)this.b[n][r]=new Ag(this,t[n][r].c)}function JC(t,e,n,r,i,o,a){var s;this.a=Gh(Od(t),56),this.b=e,this.c=i,this.e=n,this.d=Gh(Od(r),159),this.g=o,this.f=Gh(Od(a),159),e&&t.$b(n,n),i&&t.$b(o,o),e&&i&&(function(t,e,n){if(!t)throw new io(TA("lowerEndpoint (%s) > upperEndpoint (%s)",_x(Oo(fM,1),kP,1,4,[e,n])))}((s=t.$b(n,o))<=0,n,o),0==s&&Fu(r!=(Vc(),TM)|a!=TM))}function tT(t){if(this.a=t,t.c.f.g==(AS(),_H))this.c=t.c,this.d=Gh(yx(t.c.f,(DL(),Iq)),32);else{if(t.d.f.g!=_H)throw new io("Edge "+t+" is not an external edge.");this.c=t.d,this.d=Gh(yx(t.d.f,(DL(),Iq)),32)}}function eT(t,e,n){var r,i,o,a;return kw(n,eI),0==n?xS(t,e):(Fu(lf(t.b,e)),(a=t.c.a)?(o=Ey(UX,nI,26,1,12,1),r=function t(e,n,r,i,o){var a,s,u,c;if((a=n.$b(r,e.b))<0)return(u=e.e)?(s=u.d,e.e=t(u,n,r,i,o),0==o[0]&&++e.a,e.j=p_(e.j,i),e.e.d==s?e:HS(e)):(o[0]=0,ym(e,r,i));if(a>0)return(c=e.g)?(s=c.d,e.g=t(c,n,r,i,o),0==o[0]&&++e.a,e.j=p_(e.j,i),e.g.d==s?e:HS(e)):(o[0]=0,bm(e,r,i));return o[0]=e.c,Fu(Zx(p_(e.c,i),iP)<=0),e.c+=i,e.j=p_(e.j,i),e}(a,t.d,e,n,o),Pd(t.c,a,r),o[0]):(t.d.$b(e,e),i=new _m(e,n),kf(t.a,i,t.a),Pd(t.c,null,i),0))}function nT(t,e,n){var r,i,o,a,s;for(r=0,s=n,e||(r=n*(t.c.length-1),s*=-1),o=new $n(t);o.a<o.c.c.length;){for($y(i=Gh(Wv(o),9),(HL(),WD),(ok(),cD)),i.j.a=r,a=fC(i,(uL(),yB)).mb();a.G();)Gh(a.H(),7).i.a=r;r+=s}}function rT(t,e,n){var r;if(r=Gh(Up(t.b,e),19))return!!r.ib(n)&&(++t.c,!0);if((r=t.Z()).ib(n))return++t.c,dg(t.b,e,r),!0;throw new aw("New Collection violated the Collection spec")}function iT(t,e,n){var r,i,o;for(function(t,e,n){var r,i,o;for(i=new $n(t.b.a.b);i.a<i.c.c.length;)r=Gh(Wv(i),25),e.D(r)&&(o=no(Nf(n.B(r))))>0&&((!ns(t.b.d)||!r.q.d)&&(!rs(t.b.d)||!r.q.b)&&(r.j.e-=0>o/2-.5?0:o/2-.5),(!ns(t.b.d)||!r.q.a)&&(!rs(t.b.d)||!r.q.c)&&(r.j.b+=0>o-1?0:o-1))}(t,e,n),o=new je,i=new $n(t.b.a.b);i.a<i.c.c.length;)r=Gh(Wv(i),25),e.D(r)&&(Oh(o,new ms(r,!0)),Oh(o,new ms(r,!1)));!function(t){var e,n;for(co(t.b.a),t.a=Ey(ZG,kP,25,t.c.b.a.b.c.length,0,1),e=0,n=new $n(t.c.b.a.b);n.a<n.c.c.length;)Gh(Wv(n),25).k=e++}(t.d),Ab(o,t.c,new Kn(_x(Oo(iH,1),kP,160,0,[t.d]))),function(t,e,n){var r,i,o;for(i=new $n(t.b.a.b);i.a<i.c.c.length;)r=Gh(Wv(i),25),e.D(r)&&(o=no(Nf(n.B(r))))>0&&((!ns(t.b.d)||!r.q.d)&&(!rs(t.b.d)||!r.q.b)&&(r.j.e+=0>o/2-.5?0:o/2-.5),(!ns(t.b.d)||!r.q.a)&&(!rs(t.b.d)||!r.q.c)&&(r.j.b-=o-1))}(t,e,n)}function oT(t,e){var n,r,i,o;for(t.c[e.k]=!0,Oh(t.a,e),o=new $n(e.f);o.a<o.c.c.length;)for(i=Gh(Wv(o),7),n=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[i.b,i.e]))))));X_(n);)r=ME(i,Gh(xv(n),12)).f,t.c[r.k]||oT(t,r)}function aT(t,e,n,r){var i,o,a;if("labels"in e.a){if(!(a=_g(e,"labels")).hc())throw new gp("The 'labels' property of a node must be an array.",a,e);for(o=a.hc(),i=0;i<o.a.length;++i)fl(Tw(o,i),69)&&xO(t,Gh(Tw(o,i),69),n,r)}}function sT(t,e,n){var r,i,o,a,s,u;i=(r=(o=Gh(ld(e.b,0),12).c).f).g,s=(a=(u=Gh(ld(n.e,0),12).d).f).g,i==(AS(),kH)?$y(t,(DL(),zq),Gh(yx(r,zq),7)):$y(t,(DL(),zq),o),$y(t,(DL(),Yq),s==kH?Gh(yx(a,Yq),7):u)}function uT(){uT=r,zR=new fs("H_LEFT",0),FR=new fs("H_CENTER",1),VR=new fs("H_RIGHT",2),$R=new fs("V_TOP",3),WR=new fs("V_CENTER",4),XR=new fs("V_BOTTOM",5),qR=new fs("INSIDE",6),UR=new fs("OUTSIDE",7),YR=new fs("H_PRIORITY",8)}function cT(t){var e,n,r;for(zd(),this.b=tH,this.c=nH,this.d=(b_(),bD),this.g=(hi(),KG),this.a=t,fo(this,new m),mN(this),r=new $n(t.b);r.a<r.c.c.length;)(n=Gh(Wv(r),25)).f||(e=new YE(_x(Oo(ZG,1),kP,25,0,[n])),Oh(t.a,e))}function lT(t,e){var n,r,i,o;for(i=1,e.j=!0,r=new $n(W_(e));r.a<r.c.c.length;)n=Gh(Wv(r),89),t.c[n.b]||(t.c[n.b]=!0,o=oE(n,e),n.e?i+=lT(t,o):o.j||n.a!=n.d.e-n.c.e||(n.e=!0,mp(t.p,n),i+=lT(t,o)));return i}function fT(t){var e,n,r,i,o,a,s;for(r=QI,n=JI,e=new $n(t.e.c);e.a<e.c.c.length;)for(o=new $n(Gh(Wv(e),16).a);o.a<o.c.c.length;)i=Gh(Wv(o),9),r=r<(s=no(t.n[i.k]))?r:s,n=n>(a=s+no(t.b[t.f[i.k].k]))?n:a;return n-r}function hT(t){var e;return Wy(e=new Yi,"type",new Ld((Gf(WG),WG.n))),Wy(e,MI,new Ld(t.f)),t.b&&Wy(e,"value",t.b),t.a&&Wy(e,"context",t.a),Wy(e,DI,new Ld(_l(new oo("\n"),new Fn(new Kn((null==t.g&&(t.g=bd(t)),t.g)))))),e}function dT(t,e){var n,r,i,o,a;if(e===t)return!0;if(!fl(e,20))return!1;if(a=Gh(e,20),t.Y()!=a.Y())return!1;for(o=a.mb(),r=t.mb();r.G();)if(n=r.H(),i=o.H(),!(Xu(n)===Xu(i)||null!=n&&e_(n,i)))return!1;return!0}function pT(t){var e;!YM&&((e=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"])[34]='\\"',e[92]="\\\\",e[173]="\\u00ad",e[1536]="\\u0600",e[1537]="\\u0601",e[1538]="\\u0602",e[1539]="\\u0603",e[1757]="\\u06dd",e[1807]="\\u070f",e[6068]="\\u17b4",e[6069]="\\u17b5",e[8203]="\\u200b",e[8204]="\\u200c",e[8205]="\\u200d",e[8206]="\\u200e",e[8207]="\\u200f",e[8232]="\\u2028",e[8233]="\\u2029",e[8234]="\\u202a",e[8235]="\\u202b",e[8236]="\\u202c",e[8237]="\\u202d",e[8238]="\\u202e",e[8288]="\\u2060",e[8289]="\\u2061",e[8290]="\\u2062",e[8291]="\\u2063",e[8292]="\\u2064",e[8298]="\\u206a",e[8299]="\\u206b",e[8300]="\\u206c",e[8301]="\\u206d",e[8302]="\\u206e",e[8303]="\\u206f",e[65279]="\\ufeff",e[65529]="\\ufff9",e[65530]="\\ufffa",e[65531]="\\ufffb",YM=e);return'"'+t.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,(function(t){return function(t,e){var n=YM[t.charCodeAt(0)];return null==n?t:n}(t)}))+'"'}function gT(t,e){var n,r,i,o,a;for(r=new Yn(new zn((1==e?JG:QG).a).a.bb().mb());r.a.G();)for(i=Gh(r.a.H(),21),n=Gh(i.yb(),59),a=Gh(GS(t.f.c,n),18).mb();a.G();)o=Gh(a.H(),27),Dy(t.b.b,o.b),Dy(t.b.a,Gh(o.b,25).f)}function vT(t,e){Mb.call(this),this.d=new Qi,this.b=Gh(yx(e,(DL(),sU)),15).a*Gh(yx(e,(RL(),DU)),15).a,this.e=this.b*Gh(yx(e,KU),15).a,this.a=new Br,this.c=new Br,this.j=new gg(t.j,t.k,0,t.n-t.k),this.o=t.g,this.g.a=t.i,cO(this,t)}function bT(t,e){var n,r,i,o,a;for(o=null==e?0:t.b.Vc(e),r=null==(n=_a(t.a,o))?[]:n,a=0;a<r.length;a++)if(i=r[a],t.b.Uc(e,i.yb()))return 1==r.length?(r.length=0,t.a[iM](o)):r.splice(a,1),--t.c,th(t.b),i.zb();return null}function yT(t,e,n){var r;r=null,e&&(r=e.e),RE(t,new xs(e.i.a-r.b+n.a,e.i.b-r.d+n.b)),RE(t,new xs(e.i.a-r.b+n.a,e.i.b+e.j.b+r.a+n.b)),RE(t,new xs(e.i.a+e.j.a+r.c+n.a,e.i.b-r.d+n.b)),RE(t,new xs(e.i.a+e.j.a+r.c+n.a,e.i.b+e.j.b+r.a+n.b))}function wT(t,e){switch(e.e){case 2:Hf(t,(uL(),yB)),t.a.a=t.j.a,t.a.b=t.j.b/2;break;case 4:Hf(t,(uL(),BB)),t.a.a=0,t.a.b=t.j.b/2;break;case 1:Hf(t,(uL(),wB)),t.a.a=t.j.a/2,t.a.b=0;break;case 3:Hf(t,(uL(),DB)),t.a.a=t.j.a/2,t.a.b=t.j.b}}function mT(t,e){var n,r,i,o;return i=t.a*oM+1502*t.b,o=t.b*oM+11,i+=n=Math.floor(o*Rj),o-=n*aM,i%=aM,t.a=i,t.b=o,e<=24?Qu(t.a*LX[e]):((r=t.a*(1<<e-24)+Qu(t.b*PX[e]))>=2147483648&&(r-=4294967296),r)}function xT(t,e,n){var r,i,o;if(e!=n){r=e;do{Lf(t,r.d),(o=Gh(yx(r,(DL(),Zq)),9))&&(jl(t,(i=r.a).b,i.d),Lf(t,o.i),r=Vp(o))}while(o);r=n;do{Pf(t,r.d),(o=Gh(yx(r,(DL(),Zq)),9))&&(Ml(t,(i=r.a).b,i.d),Pf(t,o.i),r=Vp(o))}while(o)}}function _T(t,e){var n,r,i,o,a;for(n=new je,a=new Zs,i=new Yn(new zn(t.a).a.bb().mb());i.a.G();)o=Gh(i.a.H(),21),hN(a,(r=Gh(o.yb(),12)).c,r,null),hN(a,r.d,r,null);for(;a.a;)Oh(n,NN(a,e,Yl(Gh(yx(e,(HL(),AR)),28))));return n}function ET(t,e){var n,r,i,o,a;for(r=new Yn(new zn((1==e?JG:QG).a).a.bb().mb());r.a.G();)for(i=Gh(r.a.H(),21),n=Gh(i.yb(),59),a=Gh(GS(t.f.c,n),18).mb();a.G();)o=Gh(a.H(),27),Oh(t.b.b,Gh(o.b,25)),Oh(t.b.a,Gh(o.b,25).f)}function kT(t){var e,n,r,i,o,a;for(jh(),ml(),n=new ey,r=new $n(t.e.c);r.a<r.c.c.length;)for(o=new $n(Gh(Wv(r),16).a);o.a<o.c.c.length;)i=Gh(Wv(o),9),(e=Gh(xw(n,a=t.f[i.k]),20))||Sk(n,a,e=new je),e.ib(i);return n}function ST(t,e){var n,r,i;for(r=_k(Rh(H_(e)),0);r.b!=r.d.c;)return(i=(n=Gh(Cb(r),12)).d.f).g!=(AS(),xH)||eo(no(Af(yx(i,(DL(),wq)))))&&null!=yx(i,Uq)?e:(Dy(i.d.a,i),tv(n.c,null),tv(n.d,null),ST(t,i));return e}function CT(t,e){var n,r,i,o,a,s,u;if(!e.e)throw new io("The input edge is not a tree edge.");for(o=null,i=iP,r=new $n(t.d);r.a<r.c.c.length;)s=(n=Gh(Wv(r),89)).c,u=n.d,XC(t,s,e)&&!XC(t,u,e)&&(a=u.e-s.e-n.a)<i&&(i=a,o=n);return o}function TT(t,e){var n,r,i,o,a;return a=(o=e.a).c.f==e.b?o.d:o.c,r=o.c.f==e.b?o.c:o.d,(i=function(t,e,n){var r;return r=no(t.n[e.f.k])+no(t.d[e.f.k])+e.i.b+e.a.b,no(t.n[n.f.k])+no(t.d[n.f.k])+n.i.b+n.a.b-r}(t.a,a,r))>0&&i<Ej?(n=function(t,e,n){var r,i,o,a,s,u,c;r=n,i=e;do{i=t.a[i.k],c=t.f[i.k],a=no(t.n[c.k])+no(t.d[i.k])-i.e.d,(s=_y(i,i.d?Ky(i.d.a,i,0):-1))&&(u=t.f[s.k],o=no(t.n[u.k])+no(t.d[s.k])+s.j.b+s.e.a,r=Ho(r,a-(o+kh(t.j,i,s))))}while(e!=i);return r}(t.a,r.f,i),Ww(t.a,r.f,-n),n>0):i<0&&-i<Ej&&(n=function(t,e,n){var r,i,o,a,s,u,c;r=n,i=e;do{i=t.a[i.k],c=t.f[i.k],o=no(t.n[c.k])+no(t.d[i.k])+i.j.b+i.e.a,(s=qw(i,i.d?Ky(i.d.a,i,0):-1))&&(u=t.f[s.k],a=no(t.n[u.k])+no(t.d[s.k])-s.e.d,r=Ho(r,a-(o+kh(t.j,i,s))))}while(e!=i);return r}(t.a,r.f,-i),Ww(t.a,r.f,n),n>0)}function AT(t,e,n,r,i){var o,a;vm(Gm(_x(Oo(nD,1),RI,10,0,[i.f.i,i.i,i.a])),n)||(e.c==i?Hl(e.a,0,new Uu(n)):Nh(e.a,new Uu(n)),r&&!xa(t.a,n)&&((a=Gh(yx(e,(HL(),fR)),44))||(a=new Br,$y(e,fR,a)),Ob(a,o=new Uu(n),a.c.b,a.c),mp(t.a,o)))}function NT(t){var e,n,r,i,o,a;for(e=0,n=new $n(t.a);n.a<n.c.c.length;)for(i=Sp(H_(Gh(Wv(n),9)));X_(i);)t==(r=Gh(xv(i),12)).d.f.d&&r.c.g==(uL(),BB)&&(o=Iv(r.c).b,e=e>((a=Iv(r.d).b)-o<=0?0-(a-o):a-o)?e:a-o<=0?0-(a-o):a-o);return e}function OT(t,e){var n,r,i;if(Xu(e)===Xu(Od(t)))return!0;if(!fl(e,20))return!1;if(r=Gh(e,20),(i=t.Y())!=r.Y())return!1;if(fl(r,63)){for(n=0;n<i;n++)if(!$p(t.sb(n),r.sb(n)))return!1;return!0}return function(t,e){var n,r;for(qc();t.G();){if(!e.G())return!1;if(n=t.H(),r=e.H(),!(Xu(n)===Xu(r)||null!=n&&e_(n,r)))return!1}return!e.G()}(t.mb(),r.mb())}function LT(t,e){var n,r,i,o,a,s;if((r=t.b[e.k])>=0)return r;for(i=1,o=new $n(e.f);o.a<o.c.c.length;)for(n=new $n(Gh(Wv(o),7).e);n.a<n.c.c.length;)e!=(s=Gh(Wv(n),12).d.f)&&(i=i>(a=LT(t,s))+1?i:a+1);return function(t,e,n){var r,i;for(r=(i=t.a.c).c.length;r<n;r++)Td(i,0,new bp(t.a));ev(e,Gh(ld(i,i.c.length-n),16)),t.b[e.k]=n}(t,e,i),i}function PT(t,e,n){var r,i,o,a,s,u;if(r=0,0!=t.b&&0!=e.b){o=_k(t,0),a=_k(e,0),s=no(Nf(Cb(o))),u=no(Nf(Cb(a))),i=!0;do{s>u-n&&s<u+n&&++r,s<=u&&o.b!=o.d.c?s=no(Nf(Cb(o))):u<=s&&a.b!=a.d.c?u=no(Nf(Cb(a))):i=!1}while(i)}return r}function IT(t,e){switch(t.e){case 1:switch(e.e){case 1:return 1;case 4:return 2;case 3:return 3;case 2:return 4}break;case 2:switch(e.e){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4}break;default:throw new io(Bj)}return 0}function jT(t){var e,n,r,i,o,a;for(i=Gh(ld(t.f,0),7),a=0,r=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[new cn(i),new fn(i)]))))));X_(r);)a+=(n=Gh(xv(r),7)).f.i.a+n.i.a+n.a.a;o=(e=Gh(yx(t,(HL(),TR)),10))?e.a:0,t.i.a=a/(i.b.c.length+i.e.c.length)-o}function MT(t){var e,n;return n=t.c,t.c=0,yi(t.f,t.i),t.e?t.g?t.e.d>=t.g.d?((e=t.f).e=function t(e,n){return e.g?(e.g=t(e.g,n),--e.a,e.j=v_(e.j,n.c),HS(e)):e.e}(t.e,e),e.g=t.g,e.a=t.a-1,e.j=v_(t.j,n),HS(e)):((e=t.i).g=function t(e,n){return e.e?(e.e=t(e.e,n),--e.a,e.j=v_(e.j,n.c),HS(e)):e.g}(t.g,e),e.e=t.e,e.a=t.a-1,e.j=v_(t.j,n),HS(e)):t.e:t.g}function DT(t){var e,n,r,i,o,a;for(i=new $n(t.a);i.a<i.c.c.length;)(r=Gh(Wv(i),9)).g==(AS(),CH)&&(o=Gh(yx(r,(DL(),Gq)),9),my(0,(n=r.f).c.length),e=Gh(n.c[0],7),(a=Gh(yx(e,Uq),7)).g==(uL(),wB)&&r.k>o.k?Hf(a,DB):a.g==DB&&o.k>r.k&&Hf(a,wB))}function RT(t,e,n){var r,i,o,a,s,u;for(u=t.b,o=0,i=new $n(t.a.b);i.a<i.c.c.length;)o=Ro(o,Gh(Wv(i),33).j.a);return s=function(t,e,n,r,i){var o,a,s,u,c,l,f,h,d,p,g,v;switch(f=$k(t.g),d=$k(e.g),h=Lf(yc(t.i),t.a),p=Lf(yc(e.i),e.a),s=Lf(new Za(h.a,h.b),il(new pp(f),1.3*n)),g=Lf(new Za(p.a,p.b),il(new pp(d),1.3*r)),ka(s.a-g.a)<i&&(t.g==(uL(),BB)||t.g==yB?s.a<g.a?s.a=g.a-i:s.a=g.a+i:s.a<g.a?g.a=s.a+i:g.a=s.a-i),o=0,a=0,t.g.e){case 4:o=2*(h.a-n)-.5*(s.a+g.a);break;case 2:o=2*(h.a+n)-.5*(s.a+g.a);break;case 1:a=2*(h.b-n)-.5*(s.b+g.b);break;case 3:a=2*(h.b+n)-.5*(s.b+g.b)}switch(e.g.e){case 4:o=2*(p.a-r)-.5*(g.a+s.a);break;case 2:o=2*(p.a+r)-.5*(g.a+s.a);break;case 1:a=2*(p.b-r)-.5*(g.b+s.b);break;case 3:a=2*(p.b+r)-.5*(g.b+s.b)}return l=new Za(o,a),c=new ig(_x(Oo(nD,1),RI,10,0,[h,s,l,g,p])),u=FE(c),v=zE(c),c.a=u,fr(c,new SC(_x(Oo(nD,1),RI,10,0,[u,v,h,p]))),c}(t.a.c,t.a.d,e,n,o),lm(t.a.a,NE(s)),a=QS(t.a.b,s.a,u),Ug(r=new Pb((!s.k&&(s.k=new lC(fm(s))),s.k))),a?zp(r,a):r}function BT(t,e,n){var r,i,o;if(kw(n,eI),0==n)return xS(t,e);o=t.c.a,i=Ey(UX,nI,26,1,12,1);try{if(!lf(t.b,e)||!o)return 0;r=function t(e,n,r,i,o){var a,s,u;if((a=n.$b(r,e.b))<0)return(s=e.e)?(e.e=t(s,n,r,i,o),o[0]>0&&(i>=o[0]?(--e.a,e.j=v_(e.j,o[0])):e.j=v_(e.j,i)),0==o[0]?e:HS(e)):(o[0]=0,e);if(a>0)return(u=e.g)?(e.g=t(u,n,r,i,o),o[0]>0&&(i>=o[0]?(--e.a,e.j=v_(e.j,o[0])):e.j=v_(e.j,i)),HS(e)):(o[0]=0,e);return o[0]=e.c,i>=e.c?MT(e):(e.c-=i,e.j=v_(e.j,i),e)}(o,t.d,e,n,i)}catch(t){if(fl(t=Qx(t),119))return 0;if(fl(t,76))return 0;throw A_(t)}return Pd(t.c,o,r),i[0]}function GT(t){var e,n,r,i,o,a;for(nl(a=Gh(Dk(t.a,Ey(TH,qI,9,t.a.c.length,0,1)),51),new rt),n=null,i=0,o=a.length;i<o&&(r=a[i]).g==(AS(),_H);++i)(e=Gh(yx(r,(DL(),Iq)),32))!=(uL(),BB)&&e!=yB||(n&&Gh(yx(n,Hq),20).ib(r),n=r)}function HT(t,e,n,r,i){var o,a,s;for(s=sA(new Yf(e,r));s.G();)o=Gh(s.H(),7),dg(t.k,o,F_(Gh(Up(t.k,o),24).a+Gh(Wu(uv(i.d,n)),24).a));for(a=sA(new Yf(n,r));a.G();)o=Gh(a.H(),7),dg(t.k,o,F_(Gh(Up(t.k,o),24).a-Gh(Wu(uv(i.d,e)),24).a))}function FT(t,e,r){var i,o=YL,a=o[t],s=a instanceof Array?a[0]:null;a&&!s?zL=a:(!(i=e&&e.prototype)&&(i=YL[e]),(zL=_v(i))._c=r,zL.constructor=zL,!e&&(zL.ad=n),o[t]=zL);for(var u=3;u<arguments.length;++u)arguments[u].prototype=zL;s&&(zL.$c=s)}function zT(t,e,n,r){var i,o,a,s;return lr(a=new wk(t),(AS(),kH)),$y(a,(DL(),Uq),e),$y(a,(HL(),AR),(cS(),aB)),$y(a,zq,n),$y(a,Yq,r),Hf(o=new bS,(uL(),BB)),tv(o,a),Hf(s=new bS,yB),tv(s,a),nv(e,o),S_(i=new Og,e),$y(i,fR,null),rv(i,s),nv(i,r),a}function YT(t,e){var n,r,i,o,a,s,u,c;for(n=0,a=0,s=(o=t.j).length;a<s;++a)for(c=sA(new Yf(o[a],e));c.G();)for(u=Gh(c.H(),7),i=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[u.b,u.e]))))));X_(i);)ny(r=Gh(xv(i),12))||(n+=rA(t,r,u));return n}function VT(t,e,n,r){var i,o,a,s,u;for(u=0,o=new $n(t.a.b);o.a<o.c.c.length;)u=Ro(u,Gh(Wv(o),33).j.a);return s=function(t,e,n,r,i,o){var a,s,u,c,l,f,h,d,p,g,v,b,y,w;switch(d=$k(t.g),g=$k(n.g),p=Lf(yc(t.i),t.a),v=Lf(yc(n.i),n.a),a=Lf(new Uu(p),il(new pp(d),e)),s=Lf(new Uu(v),il(new pp(g),r)),c=function(t,e){var n,r;switch(r=Lf(yc(t.i),t.a),n=t.f.j,e.e){case 1:return-r.b;case 2:return-r.a+n.a;case 3:return-r.b+n.b;case 4:return-r.a;default:return 0}}(t,i),i==(uL(),DB)||i==yB?c+=o:c-=o,h=new ao,b=new ao,i.e){case 1:case 3:h.a=a.a,h.b=p.b+c,b.a=s.a,b.b=h.b;break;case 2:case 4:h.a=p.a+c,h.b=a.b,b.a=h.a,b.b=s.b;break;default:return null}switch(l=il(Lf(new Za(h.a,h.b),b),.5),f=new ig(_x(Oo(nD,1),RI,10,0,[p,a,h,l,b,s,v])),u=FE(f),w=zE(f),i.e){case 1:case 3:f.a=u,y=function(t){var e,n,r,i,o;for(n=gN(rO(t)),e=Ej,i=0,r=0;e>.5&&i<50;)e=ka(BS(n,r=eA(n),!0).a),++i;return BS(t,(Md(o=Nf(tk(Rh(t.g),Rh(t.g).b-1))),o-r),!1)}(f);break;case 2:case 4:f.a=w,y=function(t){var e,n,r,i,o;for(n=gN(rO(t)),e=Ej,i=0,r=0;e>.5&&i<50;)e=ka(BS(n,r=nA(n),!0).b),++i;return BS(t,(Md(o=Nf(tk(Rh(t.g),Rh(t.g).b-1))),o-r),!1)}(f);break;default:return null}return fr(f,new SC(_x(Oo(nD,1),RI,10,0,[u,w,y,p,v]))),f}(t.a.c,e,t.a.d,r,Tk(t.b),n),lm(t.a.a,NE(s)),a=QS(t.a.b,s.a,t.b),Ug(i=new Pb((!s.k&&(s.k=new lC(fm(s))),s.k))),a?zp(i,a):i}function qT(t,e){var n,r,i;for(n=new $n(t.b);n.a<n.c.c.length;)$y(Gh(Wv(n),33),(DL(),Fq),e);for(i=new $n(t.c.c);i.a<i.c.c.length;)$y(Gh(Wv(i),33),(DL(),Fq),e);for(r=new $n(t.d.c);r.a<r.c.c.length;)$y(Gh(Wv(r),33),(DL(),Fq),e)}function UT(){UT=r,XF=new Ls(SI,0),zF=new Ls("NIKOLOV",1),qF=new Ls("NIKOLOV_PIXEL",2),YF=new Ls("NIKOLOV_IMPROVED",3),VF=new Ls("NIKOLOV_IMPROVED_PIXEL",4),FF=new Ls("DUMMYNODE_PERCENTAGE",5),UF=new Ls("NODECOUNT_PERCENTAGE",6),WF=new Ls("NO_BOUNDARY",7)}function XT(t,e){var n,r,i,o,a;if(o=0,!(a=Gh(Wu(uv(e.d,t)),24)))return 0;for(i=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[t.b,t.e]))))));X_(i);)(n=(r=Gh(xv(i),12)).c==t?Gh(Up(e,r.d),24):Gh(Up(e,r.c),24))&&a.a>n.a&&(o=Go(o,a.a-n.a-1));return o}function WT(t){var e,n;switch(e=Gh(yx(t,(HL(),vR)),15).a,n=Gh(yx(t,bR),15).a,$y(t,bR,new Gn(e)),$y(t,vR,new Gn(n)),Gh(yx(t,WD),103).e){case 1:$y(t,WD,(ok(),hD));break;case 2:$y(t,WD,(ok(),uD));break;case 3:$y(t,WD,(ok(),lD));break;case 4:$y(t,WD,(ok(),fD))}}function $T(t,e,n){var r,i,o;for(o=new $n(t.e);o.a<o.c.c.length;)(r=Gh(Wv(o),118)).b.d<0&&r.c>0&&(r.b.c-=r.c,r.b.c<=0&&r.b.f>0&&Nh(e,r.b));for(i=new $n(t.b);i.a<i.c.c.length;)(r=Gh(Wv(i),118)).a.d<0&&r.c>0&&(r.a.f-=r.c,r.a.f<=0&&r.a.c>0&&Nh(n,r.a))}function KT(t,e,n){var r,i,o;for(o=new $n(t.j);o.a<o.c.c.length;)(r=Gh(Wv(o),117)).b.i<0&&r.c>0&&(r.b.e-=r.c,r.b.e<=0&&r.b.k>0&&Nh(e,r.b));for(i=new $n(t.d);i.a<i.c.c.length;)(r=Gh(Wv(i),117)).a.i<0&&r.c>0&&(r.a.k-=r.c,r.a.k<=0&&r.a.e>0&&Nh(n,r.a))}function ZT(t,e){switch(t.e){case 1:switch(e.e){case 1:return Gj;case 4:return.5;case 3:return Hj;case 2:return Fj}break;case 2:switch(e.e){case 1:return Gj;case 2:return.5;case 3:return Hj;case 4:return Fj}break;default:throw new io(Bj)}return 0}function QT(t,e){var n,r,i,o;for(Nc((o=new Uv(t,0)).b<o.d.Y()),n=Gh(o.d.sb(o.c=o.b++),48);o.b<o.d.Y();)Nc(o.b<o.d.Y()),i=new ph((r=Gh(o.d.sb(o.c=o.b++),48)).c,n.d,e),Nc(o.b>0),o.a.sb(o.c=--o.b),eh(o,i),Nc(o.b<o.d.Y()),o.d.sb(o.c=o.b++),i.a=!1,n=r}function JT(t){var e,n,r,i,o;for(r=Gh(yx(t,(DL(),Eq)),7),o=new $n(t.f);o.a<o.c.c.length;){for(n=new $n((i=Gh(Wv(o),7)).e);n.a<n.c.c.length;)return nv(Gh(Wv(n),12),r),i;for(e=new $n(i.b);e.a<e.c.c.length;)return rv(Gh(Wv(e),12),r),i}return null}function tA(t,e,n,r,i){var o,a,s,u,c;for(a=e,o=0,s=!1,c=sA(new Yf(n,r));c.G();)u=Gh(c.H(),7),s=!0,dg(t.k,u,F_(a)),(Yl(Gh(yx(n,(HL(),AR)),28))||u.b.c.length+u.e.c.length>1)&&(++o,++a);return!Yl(Gh(yx(n,(HL(),AR)),28))&&s&&(++o,++a),dg(i,n,F_(o)),a}function eA(t){var e,n,r,i,o,a,s,u,c,l;for(c=(l=(s=Gh((a=t.b.mb()).H(),92)).a.a)>$j,u=l<Kj;a.G();){if(n=s,o=l,i=c,r=u,u=(l=(s=Gh(a.H(),92)).a.a)<Kj,!(c=l>$j)&&!u)return hm(s.b);if(i&&u||r&&c)return(e=o/(o-l))*hm(n.b)+(1-e)*hm(s.b)}return 0}function nA(t){var e,n,r,i,o,a,s,u,c,l;for(c=(l=(s=Gh((a=t.b.mb()).H(),92)).a.b)>$j,u=l<Kj;a.G();){if(n=s,o=l,i=c,r=u,u=(l=(s=Gh(a.H(),92)).a.b)<Kj,!(c=l>$j)&&!u)return hm(s.b);if(i&&u||r&&c)return(e=o/(o-l))*hm(n.b)+(1-e)*hm(s.b)}return 0}function rA(t,e,n){var r,i;return r=0,Fp(e)?xa(t.g,e)?(BT(t.i,F_(If(t,e.c)),1),BT(t.i,F_(If(t,e.d)),1),pl(t.g,e),r+=ck(t,e,t.i)):(mp(t.g,e),eT(t.i,F_(If(t,e.c)),1),eT(t.i,F_(If(t,e.d)),1)):(i=xS(t.i,F_(Gh(Up(t.k,n),24).a)),r+=t.g.a.Y()-i),r}function iA(t){switch(t.e){case 0:return BY;case 1:return RY;case 2:return jY;case 3:return IY;case 4:return HY;case 5:return GY;case 6:return iV;case 7:return rV;case 8:return DY;case 9:return MY;case 10:return eV;case 11:return FY;default:return nV}}function oA(t){switch(t.e){case 0:return GY;case 1:return iV;case 2:return rV;case 3:return BY;case 4:return RY;case 5:return jY;case 6:return IY;case 7:return HY;case 8:return DY;case 9:return MY;case 10:return eV;case 11:return FY;default:return nV}}function aA(t){switch(t.e){case 0:return jY;case 1:return IY;case 2:return HY;case 3:return GY;case 4:return iV;case 5:return rV;case 6:return BY;case 7:return RY;case 8:return DY;case 9:return MY;case 10:return eV;case 11:return FY;default:return nV}}function sA(t){var e;switch(e=t.a.f,t.b){case 0:return new $n(t.a.f);case 1:return fp(new Cv(e),mS(t));case 2:switch(t.c.e){case 2:case 1:return fp(new $n(e),mS(t));case 3:case 4:return fp(new Cv(e),mS(t))}}throw new ko("PortOrder not implemented.")}function uA(t,e){var n;t.d&&(e.c!=t.e.c||function(t,e){return Pm(),t==oH&&e==aH||t==oH&&e==sH||t==uH&&e==sH||t==uH&&e==aH}(t.e.b,e.b))&&(Oh(t.f,t.d),t.a=t.d.d+t.d.c,t.d=null,t.e=null),!function(t){return t==oH||t==aH}(e.b)?t.b=e:t.c=e,(e.b==(Pm(),oH)&&!e.a||e.b==aH&&e.a||e.b==sH&&e.a||e.b==uH&&!e.a)&&t.c&&t.b&&(n=new gg(t.a,t.c.d,e.c-t.a,t.b.d-t.c.d),t.d=n,t.e=e)}function cA(t,e,n,r){this.e=t,this.j=Gh(yx(t,(DL(),uU)),134),this.f=Ey(TH,qI,9,e,0,1),this.b=Ey(yX,ZL,184,e,6,1),this.a=Ey(TH,qI,9,e,0,1),this.d=Ey(yX,ZL,184,e,6,1),this.i=Ey(TH,qI,9,e,0,1),this.g=Ey(yX,ZL,184,e,6,1),this.n=Ey(yX,ZL,184,e,6,1),this.k=n,this.c=r}function lA(t){if(!t.a.c||!t.a.d)throw new xo((Gf(pz),pz.j+" must have a source and target "+(Gf(gz),gz.j+" specified.")));if(t.a.c==t.a.d)throw new xo("Network simplex does not support self-loops: "+t.a+" "+t.a.c+" "+t.a.d);return yp(t.a.c.g,t.a),yp(t.a.d.c,t.a),t.a}function fA(t,e,n,r,i){r==(uL(),yB)&&i==yB?Hg(t,e)>Hg(t,n)?t.d=vk(t,n):t.b=vk(t,e):r==BB&&i==BB?Hg(t,e)<Hg(t,n)?t.d=vk(t,n):t.b=vk(t,e):r==BB&&i==yB?Hg(t,e)>Hg(t,n)&&(t.d=vk(t,n),t.b=vk(t,e)):Hg(t,e)<Hg(t,n)&&(t.d=vk(t,n),t.b=vk(t,e))}function hA(t){var e,n,r,i,o,a,s,u;for(n=0,e=u=t.f.c.length,i=2*u,s=new $n(t.f);s.a<s.c.c.length;)switch((a=Gh(Wv(s),7)).g.e){case 2:case 4:a.k=-1;break;case 1:case 3:r=a.b.c.length,o=a.e.c.length,a.k=r>0&&o>0?e++:r>0?n++:o>0?i++:n++}yb(t.f,new jt)}function dA(t,e,n,r){var i,o,a,s,u;n.d.f!=e.f&&(lr(i=new wk(t),(AS(),kH)),$y(i,(DL(),Uq),n),$y(i,(HL(),AR),(cS(),aB)),r.c[r.c.length]=i,tv(a=new bS,i),Hf(a,(uL(),BB)),tv(s=new bS,i),Hf(s,yB),u=n.d,nv(n,a),S_(o=new Og,n),$y(o,fR,null),rv(o,s),nv(o,u),sT(i,a,s))}function pA(t){var e,n,r,i,o,a,s;for(i=Ej,a=Ej,o=null,n=new rg(new sr(t.e));n.b!=n.c.a.b;)if(1==Gh((e=By(n)).d,60).c&&(r=Gh(e.e,116).a,s=Gh(e.e,116).b,(i-r>Cj||r-i<Cj&&a-s>Cj)&&(a=Gh(e.e,116).b,i=Gh(e.e,116).a,o=Gh(e.d,60),0==a&&0==i)))return o;return o}function gA(t,e){var n,r,i,o,a,s;return o=t.d,(s=Gh(yx(t,(HL(),HR)),15).a)<0&&$y(t,HR,new Gn(s=0)),e.j.b=s,a=Math.floor(s/2),Hf(r=new bS,(uL(),BB)),tv(r,e),r.i.b=a,Hf(i=new bS,yB),tv(i,e),i.i.b=a,nv(t,r),S_(n=new Og,t),$y(n,fR,null),rv(n,i),nv(n,o),function(t,e,n){var r;(r=e.c.f).g==(AS(),kH)?($y(t,(DL(),zq),Gh(yx(r,zq),7)),$y(t,Yq,Gh(yx(r,Yq),7))):($y(t,(DL(),zq),e.c),$y(t,Yq,n.d))}(e,t,n),function(t,e){var n,r;for(r=new Uv(t.b,0);r.b<r.d.Y();)Nc(r.b<r.d.Y()),n=Gh(r.d.sb(r.c=r.b++),33),Gh(yx(n,(HL(),nR)),107)==(Im(),_D)&&(ng(r),Oh(e.b,n))}(t,n),n}function vA(t){var e,n;n=Gh(yx(t,(RL(),FU)),85),e=Gh(yx(t,(DL(),Bq)),140),n==(Hk(),vU)?($y(t,FU,wU),$y(t,Bq,(Mw(),cq))):n==yU?($y(t,FU,wU),$y(t,Bq,(Mw(),sq))):e==(Mw(),cq)?($y(t,FU,vU),$y(t,Bq,uq)):e==sq&&($y(t,FU,yU),$y(t,Bq,uq))}function bA(){this.c=Ey($X,dP,26,(uL(),_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB])).length,12,1),this.b=Ey($X,dP,26,_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB]).length,12,1),this.a=Ey($X,dP,26,_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB]).length,12,1),ju(this.c,QI),ju(this.b,JI),ju(this.a,JI)}function yA(t,e,n){var r,i,o,a,s,u,c,l;for(o=no(Nf(t.b.mb().H())),c=no(Nf(Vw(e.b))),r=il(yc(t.a),c-n),i=il(yc(e.a),n-o),il(l=Lf(r,i),1/(c-o)),this.a=l,this.b=new je,s=!0,(a=t.b.mb()).H();a.G();)u=no(Nf(a.H())),s&&u-n>$j&&(this.b.ib(n),s=!1),this.b.ib(u);s&&this.b.ib(n)}function wA(t){var e,n,r,i;if(function(t,e){var n,r,i,o,a,s,u;for(i=Ey(UX,nI,26,t.e.a.c.length,12,1),a=new $n(t.e.a);a.a<a.c.c.length;)o=Gh(Wv(a),61),i[o.b]+=o.c.c.length;s=Rh(e);for(;0!=s.b;)for(o=Gh(0==s.b?null:(Nc(0!=s.b),Hw(s,s.a.a)),61),r=new $n(o.g);r.a<r.c.c.length;)n=Gh(Wv(r),89),(u=n.d).e=Go(u.e,o.e+n.a),--i[u.b],0==i[u.b]&&Ob(s,u,s.c.b,s.c)}(t,t.n),t.d.c.length>0){for(qo(t.c);lT(t,Gh(Wv(new $n(t.e.a)),61))<t.e.a.c.length;){for(i=(e=oS(t)).d.e-e.c.e-e.a,e.d.j&&(i=-i),r=new $n(t.e.a);r.a<r.c.c.length;)(n=Gh(Wv(r),61)).j&&(n.e+=i);qo(t.c)}qo(t.c),wC(t,Gh(Wv(new $n(t.e.a)),61)),DO(t)}}function mA(t,e){var n,r,i,o,a,s,u;for(n=JI,AS(),s=SH,i=new $n(e.a);i.a<i.c.c.length;)(o=(r=Gh(Wv(i),9)).g)!=SH&&(null==(a=Nf(yx(r,(DL(),Wq))))?(n=n>0?n:0,r.i.b=n+rh(t.a,o,s)):r.i.b=(Md(a),a)),u=rh(t.a,o,s),r.i.b<n+u+r.e.d&&(r.i.b=n+u+r.e.d),n=r.i.b+r.j.b+r.e.a,s=o}function xA(t,e,n){var r,i,o;for(n.db(e,t),Oh(t.g,e),o=t.o.d.Lc(e),bo(t.k)?t.k=o:t.k=Ho(t.k,o),bo(t.a)?t.a=o:t.a=Ro(t.a,o),e.g==t.o.d.Mc()?J_(t.j,o):J_(t.n,o),i=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[new cn(e),new fn(e)]))))));X_(i);)r=Gh(xv(i),7),n.R(r)||xA(t,r,n)}function _A(t,e,n,r){var i,o,a,s;for(i=Gh(fC(e,(uL(),BB)).mb().H(),7),o=Gh(fC(e,yB).mb().H(),7),s=new $n(t.f);s.a<s.c.c.length;){for(a=Gh(Wv(s),7);0!=a.b.c.length;)nv(Gh(ld(a.b,0),12),i);for(;0!=a.e.c.length;)rv(Gh(ld(a.e,0),12),o)}n||$y(e,(DL(),zq),null),r||$y(e,(DL(),Yq),null)}function EA(t,e,n,r){var i,o,a;if(this.e=new Br,this.a=t,this.b=e,t.b<e.b?(this.j=t.a,this.k=t.b,this.n=e.b):(this.j=e.a,this.k=e.b,this.n=t.b),i=Gh(yx(r,(HL(),fR)),44))for(a=_k(i,0);a.b!=a.d.c;)qy((o=Gh(Cb(a),10)).a,t.a)&&Nh(this.e,o);this.g=n,this.g&&(this.i=this.j-n.j.d),this.f=r}function kA(t){var e,n;for(ch(),ex(n=new Oc,t),e=new Yn(new zn(n.a).a.bb().mb());e.a.G();)Od(Gh(e.a.H(),21).yb());switch(n.a.Y()){case 0:return Jp(),GM;case 1:return new ua(Gh(new Yn(new zn(n.a).a.bb().mb()).a.H(),21).yb());default:return new Ws(n)}}function SA(t,e,n,r){var i,o,a;ay(t,n,"x",e.i.a+r.a),ay(t,n,"y",e.i.b+r.b),ay(t,n,FI,e.j.a),ay(t,n,zI,e.j.b),fl(e,9)&&Gh(yx(e,(HL(),BR)),86).kb((jS(),WB))&&(i=Gh(e,9).b,(a=_g(n,YI))||(a=new Yi,Wy(n,YI,a)),ay(t,o=a.kc(),"left",i.b),ay(t,o,"top",i.d),ay(t,o,"right",i.c),ay(t,o,PI,i.a))}function CA(t,e){var n,r,i,o,a,s,u;for(o=new Yn(new zn((1==e?JG:QG).a).a.bb().mb());o.a.G();)for(a=Gh(o.a.H(),21),i=Gh(a.yb(),59),u=Gh(GS(t.f.c,i),18).mb();u.G();)switch(s=Gh(u.H(),27),r=Gh(s.b,25),n=Gh(s.a,78).c,i.e){case 2:case 1:r.j.e+=n;break;case 4:case 3:r.j.d+=n}}function TA(t,e){var n,r,i,o;for(oi(),(t=null==t?tP:t).length,e.length,n=new Jo,o=0,r=0;r<e.length&&-1!=(i=t.indexOf("%s",o));)Ub(n,t,o,i),tc(n,e[r++]),o=i+2;if(function(t,e,n,r){Ub(t,e,n,r)}(n,t,o,t.length),r<e.length){for(n.a+=" [",tc(n,e[r++]);r<e.length;)n.a+=", ",tc(n,e[r++]);n.a+="]"}return n.a}function AA(t,e){var n,r,i,o,a,s,u,c,l;for(a=pv(Ou((s=pc(e.a))/t.a)),l=e.a,o=0,u=a,i=0;i<t.a;++i)oi(),c=l.substr((0>o?0:o)<s?0>o?0:o:s,(0>(u<s?u:s)?0:u<s?u:s)-((0>o?0:o)<s?0>o?0:o:s)),o=u,u+=a,r=Gh(ld(t.c,i),9),(n=new xc(c)).j.b=e.j.b,rT(t.b,e,n),Oh(r.c,n);Dy(t.g.c,e),Oh(t.i,new As(t,e))}function NA(t,e,n){var r,i,o,a,s,u;for(e.k=1,i=e.d,u=fE(e,(tm(),EU)).mb();u.G();)for(r=new $n(Gh(u.H(),7).e);r.a<r.c.c.length;)e!=(s=Gh(Wv(r),12).d.f)&&s.d.k<=i.k&&((o=i.k+1)==n.c.c.length?((a=new bp(n)).k=o,Oh(n.c,a),ev(s,a)):ev(s,a=Gh(ld(n.c,o),16)),NA(t,s,n))}function OA(t){var e,n,r;(r=Gh(yx(t,(HL(),yR)),18)).V()||(n=new qh(e=Gh(na(rB),11),Gh(_p(e,e.length),11),0),r.kb((uT(),qR))?pm(n,qR):pm(n,UR),r.kb(YR)||pm(n,YR),r.kb(zR)?pm(n,$R):r.kb(FR)?pm(n,WR):r.kb(VR)&&pm(n,XR),r.kb($R)?pm(n,zR):r.kb(WR)?pm(n,FR):r.kb(XR)&&pm(n,VR),$y(t,yR,n))}function LA(t,e,n,r,i){var o,a,s,u,c,l,f,h,d;for(f=sE(t,n),s=0;s<e;s++){for(i.J(n),h=new je,d=Gh(r.H(),92),c=f+s;c<t.c;c++)Oh(h,new yA(d,d=Gh(r.H(),92),n));for(l=f+s;l<t.c;l++)r.M(),l>f+s&&r.I();for(a=new $n(h);a.a<a.c.c.length;)o=Gh(Wv(a),92),r.J(o);if(s<e-1)for(u=f+s;u<t.c;u++)r.M()}}function PA(t){var e,n,r,i;if(t.d&&Gh(t.e,7).f.g==(AS(),CH))return Dg(),Dg(),kX;if(!t.a){for(t.a=new je,r=new $n(Gh(t.e,7).b);r.a<r.c.c.length;)e=Gh(Wv(r),12),Oh(t.a,new sn(e));if(t.d&&(i=Gh(yx(Gh(t.e,7),(DL(),Jq)),9)))for(n=Sp(G_(i));X_(n);)e=Gh(xv(n),12),Oh(t.a,new sn(e))}return t.a}function IA(t){var e,n,r,i;if(t.d&&Gh(t.e,7).f.g==(AS(),CH))return Dg(),Dg(),kX;if(!t.c){for(t.c=new je,r=new $n(Gh(t.e,7).e);r.a<r.c.c.length;)e=Gh(Wv(r),12),Oh(t.c,new sn(e));if(t.d&&(i=Gh(yx(Gh(t.e,7),(DL(),Jq)),9)))for(n=Sp(H_(i));X_(n);)e=Gh(xv(n),12),Oh(t.c,new sn(e))}return t.c}function jA(t,e){var n,r,i,o,a,s,u,c;for(s=Gh(yx(t,(DL(),Uq)),7),u=Gm(_x(Oo(nD,1),RI,10,0,[s.f.i,s.i,s.a])).a,c=t.f.i.b,i=0,o=(n=Gh(Dk(t.b,Ey(wH,hj,12,t.b.c.length,0,1)),47)).length;i<o;++i)nv(r=n[i],s),os(r.a,new Za(u,c)),e&&((a=Gh(yx(r,(HL(),fR)),44))||(a=new Br,$y(r,fR,a)),Nh(a,new Za(u,c)))}function MA(t,e){var n,r,i,o,a,s,u,c;for(i=Gh(yx(t,(DL(),Uq)),7),u=Gm(_x(Oo(nD,1),RI,10,0,[i.f.i,i.i,i.a])).a,c=t.f.i.b,a=0,s=(n=Gh(Dk(t.e,Ey(wH,hj,12,t.e.c.length,0,1)),47)).length;a<s;++a)rv(o=n[a],i),is(o.a,new Za(u,c)),e&&((r=Gh(yx(o,(HL(),fR)),44))||(r=new Br,$y(o,fR,r)),Nh(r,new Za(u,c)))}function DA(t){var e,n,r,i,o,a,s;for(i=Ej,a=Ej,o=null,n=new rg(new sr(t.e));n.b!=n.c.a.b;)if((Xu((e=By(n)).d)===Xu((pL(),MY))||Xu(e.d)===Xu(DY))&&(r=Gh(e.e,116).a,s=Gh(e.e,116).b,(i-r>Cj||r-i<Cj&&a-s>Cj)&&(a=Gh(e.e,116).b,i=Gh(e.e,116).a,o=Gh(e.d,60),0==a&&0==i)))return o;return o}function RA(t,e){var n,r,i;t.d=e,by(t.b),t.c=!1;t:for(n=new $n(t.d.c);n.a<n.c.c.length;)for(r=new $n(Gh(Wv(n),16).a);r.a<r.c.c.length;)if(!rb(NS(Gh(Wv(r),9)))){t.c=!0;break t}return i=Wd((b_(),bD),_x(Oo(SD,1),CP,59,0,[gD,vD])),t.c||(pm(i,yD),pm(i,pD)),t.a=new vp(i),function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S;for(k=new je,t.a.b.c=Ey(fM,kP,1,0,4,1),ml(),m=new _r,b=new $n(t.d.c);b.a<b.c.c.length;)for(g=Gh(Wv(b),16),w=new $n(g.a);w.a<w.c.c.length;)!eo(no(Af(yx(y=Gh(Wv(w),9),(HL(),JD)))))||rb(NS(y))?(o=new $A(y,t.d),Oh(t.a.b,o),jC(m.d,y,o)):(s=Gh(Gv(NS(y)),12),(x=s.c.f)==y&&(x=s.d.f),_=new Qa(x,Pf(yc(y.i),x.i)),dg(t.b,y,_));for(v=new $n(t.d.c);v.a<v.c.c.length;)for(g=Gh(Wv(v),16),w=new $n(g.a);w.a<w.c.c.length;){for(y=Gh(Wv(w),9),o=Gh(Wu(uv(m.d,y)),25),l=Sp(H_(y));X_(l);)if(u=Gh(xv(l),12),r=_k(u.a,0),f=!0,p=null,r.b!=r.d.c){for(e=Gh(Cb(r),10),u.c.g==(uL(),wB)&&((S=new EA(e,new Za(e.a,o.j.e),o,u)).c=!0,k.c[k.c.length]=S),u.c.g==DB&&((S=new EA(e,new Za(e.a,o.j.e+o.j.b),o,u)).d=!0,k.c[k.c.length]=S);r.b!=r.d.c;)n=Gh(Cb(r),10),qy(e.b,n.b)||(p=new EA(e,n,null,u),k.c[k.c.length]=p,f&&(f=!1,n.b<o.j.e?p.c=!0:n.b>o.j.e+o.j.b?p.d=!0:(p.d=!0,p.c=!0))),r.b!=r.d.c&&(e=n);p&&(a=Gh(Up(m,u.d.f),25),e.b<a.j.e?p.c=!0:e.b>a.j.e+a.j.b?p.d=!0:(p.d=!0,p.c=!0))}for(c=Sp(G_(y));X_(c);)0!=(u=Gh(xv(c),12)).a.b&&(e=Gh(Bl(u.a),10),u.d.g==(uL(),wB)&&((S=new EA(e,new Za(e.a,o.j.e),o,u)).c=!0,k.c[k.c.length]=S),u.d.g==DB&&((S=new EA(e,new Za(e.a,o.j.e+o.j.b),o,u)).d=!0,k.c[k.c.length]=S))}if(0!=k.c.length){for(Dg(),yb(k,null),my(0,k.c.length),d=Gh(k.c[0],142),i=new vT(d,t.d),h=1;h<k.c.length;h++)my(h,k.c.length),E=Gh(k.c[h],142),!qy(i.j.d,E.j)||AE(i.j.e+i.j.b,E.k)||AE(E.n,i.j.e)?(Oh(t.a.b,i),i=new vT(E,t.d)):cO(i,E);Oh(t.a.b,i)}k.c=Ey(fM,kP,1,0,4,1),function(t){var e,n,r,i;for(t.a.a.c=Ey(fM,kP,1,0,4,1),r=new $n(t.a.b);r.a<r.c.c.length;)(e=Gh(Wv(r),25)).f=null;for(i=new $n(t.a.b);i.a<i.c.c.length;)!(e=Gh(Wv(i),25)).o&&Oh(t.a.a,new YE(_x(Oo(ZG,1),kP,25,0,[e])));for(n=new $n(t.a.b);n.a<n.c.c.length;)(e=Gh(Wv(n),25)).o&&Ym(e.o.f,e)}(t)}(t),t.a}function BA(){var t,e,n,r,i;for(this.e=(ml(),new ey),this.b=new qh(n=Gh(na(oV),11),Gh(_p(n,n.length),11),0),this.c=new qh(r=Gh(na(oV),11),Gh(_p(r,r.length),11),0),this.a=new qh(i=Gh(na(oV),11),Gh(_p(i,i.length),11),0),e=(pL(),pL(),OY).mb();e.G();)t=Gh(e.H(),60),Sk(this.e,t,new Co)}function GA(t,e,n){var r,i,o,a;ka(t.k-t.a)<cj||ka(e.k-e.a)<cj||(r=PT(t.n,e.j,n),i=PT(e.n,t.j,n),(o=16*r+(k_(t.n,e.k,e.a)+k_(e.j,t.k,t.a)))<(a=16*i+(k_(e.n,t.k,t.a)+k_(t.j,e.k,e.a)))?new Bw(t,e,a-o):o>a?new Bw(e,t,o-a):o>0&&a>0&&(new Bw(t,e,0),new Bw(e,t,0)))}function HA(t,e){var n,r,i,o,a,s,u,c;for(u=new je,c=null,r=Gh(mg(ZF,t),20).mb();r.G();){for(s=new Yn(new zn((n=Gh(r.H(),75)).c.a).a.bb().mb());s.a.G();)i=Gh(s.a.H(),21),eh(e,o=Gh(i.yb(),7)),wT(o,t.b);Jm(u,n.b),c=t.a}for(NC(u),Aw(u,c),a=new $n(u);a.a<a.c.c.length;)eh(e,o=Gh(Wv(a),7))}function FA(t,e,n,r,i){var o,a,s;((s=i?r.b:r.a)>n.k&&s<n.a||0!=n.j.b&&0!=n.n.b&&(ka(s-no(Nf(Rl(n.j))))<cj&&ka(s-no(Nf(Rl(n.n))))<cj||ka(s-no(Nf(Bl(n.j))))<cj&&ka(s-no(Nf(Bl(n.n))))<cj))&&(xa(t.b,r)||((a=Gh(yx(e,(HL(),fR)),44))||(a=new Br,$y(e,fR,a)),Ob(a,o=new Uu(r),a.c.b,a.c),mp(t.b,o)))}function zA(t,e){var n,r,i,o,a,s;for(i=new je,s=new je,n=Gh(mg(ZF,t),20).mb();n.G();)XE(i,(r=Gh(n.H(),75)).b),XE(i,OE(r)),n.G()&&(Jm(s,OE(r=Gh(n.H(),75))),Jm(s,r.b));for(Aw(i,t.b),Aw(s,t.a),a=new $n(i);a.a<a.c.c.length;)eh(e,Gh(Wv(a),7));for(o=new $n(s);o.a<o.c.c.length;)eh(e,Gh(Wv(o),7))}function YA(){YA=r,FV=new yu("COMMENTS",0),YV=new yu("EXTERNAL_PORTS",1),VV=new yu("HYPEREDGES",2),qV=new yu("HYPERNODES",3),UV=new yu("NON_FREE_PORTS",4),XV=new yu("NORTH_SOUTH_PORTS",5),$V=new yu("SELF_LOOPS",6),HV=new yu("CENTER_LABELS",7),zV=new yu("END_LABELS",8),WV=new yu("PARTITIONS",9)}function VA(t,e,n){var r,i;switch(i=null,e.e){case 1:uw(),i=NH;break;case 2:uw(),i=LH}switch(r=null,n.e){case 1:uw(),r=OH;break;case 2:uw(),r=AH;break;case 3:uw(),r=PH;break;case 4:uw(),r=IH}return i&&r?Fh(t.f,(eu(),new De(new Kn(_x(Oo(yM,1),kP,68,0,[Gh(Od(i),68),Gh(Od(r),68)]))))):(Dg(),Dg(),kX)}function qA(t,e,n){var r,i,o,a;for(i=_k(Rh(H_(e)),0);i.b!=i.d.c;)eo(no(Af(yx(a=(r=Gh(Cb(i),12)).d.f,(DL(),wq)))))&&null!=yx(a,Uq)||a.g!=(AS(),xH)||eo(no(Af(yx(r,aU))))||r.d.g!=(uL(),BB)||(Nu(a.d)-Nu(e.d)>1&&(o=n?Nu(e.d)+1:Nu(a.d)-1,ev(a,Gh(ld(t.a.c,o),16))),qA(t,a,n));return e}function UA(t,e){var n,r,i,o;for(i=e.d?t.a.c==(ov(),sY)?G_(e.b):H_(e.b):t.a.c==(ov(),aY)?G_(e.b):H_(e.b),o=!1,qc(),r=new Pc(Mc(zh(i.a,new h)));X_(r);)if(n=Gh(xv(r),12),t.c.a[n.c.f.d.k]!==t.c.a[n.d.f.d.k]&&(o=!0,xa(t.b,t.a.f[Vk(n,e.b).k])))return e.c=!0,e.a=n,e;return e.c=o,e.a=null,e}function XA(t){var e,n,r,i,o,a,s;for(o=new $n(t.a.a);o.a<o.c.c.length;)(r=Gh(Wv(o),78)).f=0,r.e.a.Q();for(i=new $n(t.a.a);i.a<i.c.c.length;)for(e=new Yn(new zn((r=Gh(Wv(i),78)).a.a).a.bb().mb());e.a.G();)for(n=Gh(e.a.H(),21),s=Gh(n.yb(),25).i.mb();s.G();)(a=Gh(s.H(),25)).f!=r&&(mp(r.e,a),++a.f.f)}function WA(t,e,n,r){var i,o,a;if(e.g==(AS(),xH))for(o=Sp(G_(e));X_(o);)if(((a=(i=Gh(xv(o),12)).c.f).g==xH||eo(no(Af(yx(a,(DL(),wq))))))&&t.d.a[i.c.f.d.k]==r&&t.d.a[e.d.k]==n)return!0;if(e.g==kH)for(o=Sp(G_(e));X_(o);)if((i=Gh(xv(o),12)).c.f.g==kH&&t.d.a[i.c.f.d.k]==r&&t.d.a[e.d.k]==n)return!0;return!1}function $A(t,e){var n;Mb.call(this),this.a=Gh(yx(e,(DL(),sU)),15).a,this.c=this.a*Gh(yx(e,(RL(),KU)),15).a,this.b=t,this.j=new gg(t.i.a-t.e.b,t.i.b-t.e.d,t.j.a+t.e.b+t.e.c,t.j.b+t.e.d+t.e.a),Au(this.g),(n=Xp(G_(t))-Xp(H_(t)))<0?Ex(this.n,!0,(b_(),gD)):n>0&&Ex(this.n,!0,(b_(),vD)),t.g==(AS(),_H)&&Ah(this.n,!1,!1,!1,!1)}function KA(t,e,n){var r,i,o,a,s,u,c,l;for(o=new Za(e,n),c=new $n(t.b);c.a<c.c.c.length;)for(Lf((u=Gh(Wv(c),9)).i,o),l=new $n(u.f);l.a<l.c.c.length;)for(i=new $n(Gh(Wv(l),7).e);i.a<i.c.c.length;)for(Nm((r=Gh(Wv(i),12)).a,o),(a=Gh(yx(r,(HL(),fR)),44))&&Nm(a,o),s=new $n(r.b);s.a<s.c.c.length;)Lf(Gh(Wv(s),33).i,o)}function ZA(t,e,n){var r,i,o,a,s,u,c,l;for(o=new Za(e,n),c=new $n(t.b);c.a<c.c.c.length;)for(Lf((u=Gh(Wv(c),9)).i,o),l=new $n(u.f);l.a<l.c.c.length;)for(i=new $n(Gh(Wv(l),7).e);i.a<i.c.c.length;)for(Nm((r=Gh(Wv(i),12)).a,o),(a=Gh(yx(r,(HL(),fR)),44))&&Nm(a,o),s=new $n(r.b);s.a<s.c.c.length;)Lf(Gh(Wv(s),33).i,o)}function QA(t,e){var n,r,i,o;for(o=new $n(t.f);o.a<o.c.c.length;)if(i=Gh(Wv(o),7),e){if(0!=i.b.c.length)throw new Hi((r=ry(t),wj+(null==r?aa(t.k):r)+mj+xj+_j))}else for(n=new $n(i.b);n.a<n.c.c.length;)if(Xu(yx(Gh(Wv(n),12).c.f,(RL(),FU)))!==Xu((Hk(),vU)))throw new Hi((r=ry(t),wj+(null==r?aa(t.k):r)+mj+xj+_j))}function JA(t,e,n){var r,i,o,a;for(r=0,a=fC(e,n).mb();a.G();)o=Gh(a.H(),7),Gh(yx(o,(DL(),Jq)),9)&&(fC(i=Gh(yx(o,Jq),9),(uL(),yB)).mb().G()&&(r+=(t.k?1:xd(Gh(ld(i.f,0),7)))*zo(Jx(t,e,n).a-1-Gh(Up(t.i,o),24).a,kx(t,e,i))),fC(i,BB).mb().G()&&(r+=(t.k?1:xd(Gh(ld(i.f,0),7)))*zo(Gh(Up(t.i,o),24).a,kx(t,e,i))));return r}function tN(t,e,n,r,i,o,a){if(t.d=r.e.i.a,t.e=r.e.i.b,i&&(t.d+=i.e.i.a,t.e+=i.e.i.b),t.c=e.e.j.a,t.b=e.e.j.b,i)switch(Gh(i.e,7).g.e){case 0:case 2:t.d+=i.e.j.a+a+o.a+a;break;case 4:t.d-=a+o.a+a+e.e.j.a;break;case 1:t.d+=i.e.j.a+a,t.e-=a+o.b+a+e.e.j.b;break;case 3:t.d+=i.e.j.a+a,t.e+=i.e.j.b+a+o.b+a}else n?t.d-=a+e.e.j.a:t.d+=r.e.j.a+a}function eN(t){var e,n,r,i,o,a,s;for(ml(),s=new _r,r=new $n(t.a.b);r.a<r.c.c.length;)dg(s,e=Gh(Wv(r),25),new je);for(i=new $n(t.a.b);i.a<i.c.c.length;)for((e=Gh(Wv(i),25)).r=JI,a=e.i.mb();a.G();)o=Gh(a.H(),25),Gh(Wu(uv(s.d,o)),20).ib(e);for(n=new $n(t.a.b);n.a<n.c.c.length;)(e=Gh(Wv(n),25)).i.Q(),e.i=Gh(Wu(uv(s.d,e)),20);XA(t)}function nN(t){var e,n,r,i,o,a,s,u,c;for(ml(),c=new _r,e=0,n=new jr,s=t.mb();s.G();)o=Gh(s.H(),9),u=rl(va(ba(new Dr,e++),o),n),jC(c.d,o,u);for(a=t.mb();a.G();)for(i=Sp(H_(o=Gh(a.H(),9)));X_(i);)ny(r=Gh(xv(i),12))||lA(ha(pa(da(ga(new Mr,Go(1,Gh(yx(r,(DL(),nU)),24).a)),1),Gh(Up(c,r.c.f),61)),Gh(Up(c,r.d.f),61)));return n}function rN(t){var e,n;if(!t.V()){for(n=Gh(t.sb(0),75).f,new CN(t),e=new Uv(n.f,0),zS((pL(),BY),e),LC(eV,e),KE((uL(),wB),e),zA(RY,e),LC(FY,e),HA(jY,e),zS(MY,e),KE(yB,e),zA(IY,e),zS(DY,e),HA(HY,e),zS(FY,e),KE(DB,e),zA(GY,e),zS(eV,e),HA(iV,e),LC(DY,e);e.b<e.d.Y();)Nc(e.b<e.d.Y()),e.d.sb(e.c=e.b++);zA(rV,e),LC(MY,e),LC(BY,e)}}function iN(t){var e,n;if(!t.V()){for(n=Gh(t.sb(0),75).f,new CN(t),e=new Uv(n.f,0),zS((pL(),BY),e),LC(eV,e),KE((uL(),wB),e),HA(RY,e),LC(FY,e),HA(jY,e),zS(MY,e),KE(yB,e),HA(IY,e),zS(DY,e),HA(HY,e),zS(FY,e),KE(DB,e),HA(GY,e),zS(eV,e),HA(iV,e),LC(DY,e);e.b<e.d.Y();)Nc(e.b<e.d.Y()),e.d.sb(e.c=e.b++);HA(rV,e),LC(MY,e),LC(BY,e)}}function oN(t){var e,n,r,i,o,a,s,u,c;for(i=lP,a=iP,c=new $n(t.e.a);c.a<c.c.c.length;)a=zo(a,(s=Gh(Wv(c),61)).e),i=Go(i,s.e);for(o=0,r=Ey(UX,nI,26,i-a+1,12,1),u=new $n(t.e.a);u.a<u.c.c.length;)(s=Gh(Wv(u),61)).e-=a,++r[s.e];if(t.k)for(n=new $n(t.k.c);n.a<n.c.c.length&&(e=Gh(Wv(n),16),r[o++]+=e.a.c.length,r.length!=o););return r}function aN(t){var e,n,r,i;for(function(t){var e;for(e=new $n(t.a.b);e.a<e.c.c.length;)Gh(Wv(e),25).vc()}(t),function(t){var e,n,r,i,o;for(r=new zx(new Hn(t.b).a);r.b;)e=Gh((n=zw(r)).yb(),9),o=Gh(Gh(n.zb(),27).a,9),i=Gh(Gh(n.zb(),27).b,10),Lf(Au(e.i),Lf(yc(o.i),i))}(t),i=new Za(QI,QI),e=new Za(JI,JI),r=new $n(t.a.b);r.a<r.c.c.length;)n=Gh(Wv(r),25),i.a=Ho(i.a,n.j.d),i.b=Ho(i.b,n.j.e),e.a=Ro(e.a,n.j.d+n.j.c),e.b=Ro(e.b,n.j.e+n.j.b);Lf(Au(t.d.d),Dl(new Za(i.a,i.b))),Lf(Au(t.d.e),Pf(new Za(e.a,e.b),i)),function(t,e,n){var r,i,o,a;for(r=Gh(yx(t.d,(HL(),QD)),15).a,o=new $n(t.a.b);o.a<o.c.c.length;)if(fl(i=Gh(Wv(o),25),93)&&(a=Gh(i,93).b).g==(AS(),_H))switch(Gh(yx(a,(DL(),Iq)),32).e){case 4:a.i.a=e.a-r;break;case 2:a.i.a=n.a+r-(a.j.a+a.e.c);break;case 1:a.i.b=e.b-r;break;case 3:a.i.b=n.b+r-(a.j.b+a.e.a)}}(t,i,e),t.a.a.c=Ey(fM,kP,1,0,4,1),t.a.b.c=Ey(fM,kP,1,0,4,1)}function sN(t,e){var n,r,i,o,a,s,u,c,l,f;if(a=t.e,f=0,l=Gh(yx(t,(DL(),pU)),20)){for(u=0,o=l.mb();o.G();)u=Ro(u,(i=Gh(o.H(),9)).j.b),f+=i.j.a;f+=e/2*(l.Y()-1),a.d+=u+e}if(r=0,n=Gh(yx(t,_q),20)){for(u=0,o=n.mb();o.G();)u=Ro(u,(i=Gh(o.H(),9)).j.b),r+=i.j.a;r+=e/2*(n.Y()-1),a.a+=u+e}(s=f>r?f:r)>t.j.a&&(c=(s-t.j.a)/2,a.b=Ro(a.b,c),a.c=Ro(a.c,c))}function uN(t,e,n,r){var i,o,a,s,u,c,l,f;for(a=jl(e.d,n,r),l=new $n(e.b);l.a<l.c.c.length;){for(Lf((c=Gh(Wv(l),9)).i,a),f=new $n(c.f);f.a<f.c.c.length;)for(o=new $n(Gh(Wv(f),7).e);o.a<o.c.c.length;)for(Nm((i=Gh(Wv(o),12)).a,a),(s=Gh(yx(i,(HL(),fR)),44))&&Nm(s,a),u=new $n(i.b);u.a<u.c.c.length;)Lf(Gh(Wv(u),33).i,a);Oh(t.b,c),c.a=t}}function cN(t,e){var n,r,i,o;if(jE(e,"Network simplex",1),t.e.a.c.length<1)j_(e);else{for(i=new $n(t.e.a);i.a<i.c.c.length;)Gh(Wv(i),61).e=0;for((o=t.e.a.c.length>=40)&&function(t){var e,n,r,i,o,a,s;for(t.o=new ri,r=new so,a=new $n(t.e.a);a.a<a.c.c.length;)1==W_(o=Gh(Wv(a),61)).c.length&&Ob(r,o,r.c.b,r.c);for(;0!=r.b;)0!=W_(o=Gh(0==r.b?null:(Nc(0!=r.b),Hw(r,r.a.a)),61)).c.length&&(e=Gh(ld(W_(o),0),89),n=o.g.c.length>0,s=oE(e,o),Ic(n?s.c:s.g,e),1==W_(s).c.length&&Ob(r,s,r.c.b,r.c),i=new Qa(o,e),ac(t.o,i),Dy(t.e.a,o))}(t),function(t){var e,n,r,i,o,a,s,u,c,l;for(c=t.e.a.c.length,o=new $n(t.e.a);o.a<o.c.c.length;)Gh(Wv(o),61).j=!1;for(t.i=Ey(UX,nI,26,c,12,1),t.g=Ey(UX,nI,26,c,12,1),t.n=new je,i=0,l=new je,s=new $n(t.e.a);s.a<s.c.c.length;)(a=Gh(Wv(s),61)).b=i++,0==a.c.c.length&&Oh(t.n,a),Jm(l,a.g);for(e=0,r=new $n(l);r.a<r.c.c.length;)(n=Gh(Wv(r),89)).b=e++,n.e=!1;u=l.c.length,null==t.b||t.b.length<u?(t.b=Ey($X,dP,26,u,12,1),t.c=Ey(XX,Nj,26,u,13,1)):qo(t.c);t.d=l,t.p=new Zl(nx(t.d.c.length)),t.j=1}(t),wA(t),n=dS(t),r=0;n&&r<t.f;)fN(t,n,CT(t,n)),n=dS(t),++r;o&&function(t){for(var e,n,r,i;0!=t.o.a.c.length;)n=Gh(Gx(t.o),27),r=Gh(n.a,61),i=oE(e=Gh(n.b,89),r),e.d==r?(yp(i.g,e),r.e=i.e+e.a):(yp(i.c,e),r.e=i.e-e.a),Oh(t.e.a,r)}(t),t.a?function(t,e){var n,r,i,o,a;for(o=new $n(t.e.a);o.a<o.c.c.length;)if((i=Gh(Wv(o),61)).c.c.length==i.g.c.length){for(r=i.e,a=_C(i),n=i.e-Gh(a.a,24).a+1;n<i.e+Gh(a.b,24).a;n++)e[n]<e[r]&&(r=n);e[r]<e[i.e]&&(--e[i.e],++e[r],i.e=r)}}(t,oN(t)):oN(t),t.b=null,t.d=null,t.p=null,t.c=null,t.g=null,t.i=null,t.n=null,t.o=null,j_(e)}}function lN(t){var e,n,r,i,o,a,s,u,c;for(u=new Qi,ml(),i=new _r,a=0,s=t.length;a<s;++a)e=(o=t[a]).mc(),u.a.db(e,u),null==e?jC(i.d,null,o):tE(i.e,e,o),c=td(e,(oi(),e.lastIndexOf(".")+1),e.length),xa(VG,c)||(u.a.db(c,u),null==c?jC(i.d,null,o):tE(i.e,c,o),mp(VG,c));return ch(),r=aS(new Yn(new zn(u.a).a.bb().mb())),n=function(t){var e,n,r,i;switch(t.d.c+t.e.c){case 0:return ui(),BM;case 1:return jf((r=Gh(CC(new zx(new Hn(t).a)),21)).yb(),r.zb());default:for(ml(),i=new ey,n=new zx(new Hn(t).a);n.b;)Sk(i,Od((e=zw(n)).yb()),Od(e.zb()));return new ji(i)}}(i),new Qa(r,n)}function fN(t,e,n){var r,i,o;if(!e.e)throw new io("Given leave edge is no tree edge.");if(n.e)throw new io("Given enter edge is a tree edge already.");for(e.e=!1,pl(t.p,e),n.e=!0,mp(t.p,n),r=n.d.e-n.c.e-n.a,XC(t,n.d,e)||(r=-r),o=new $n(t.e.a);o.a<o.c.c.length;)XC(t,i=Gh(Wv(o),61),e)||(i.e+=r);t.j=1,qo(t.c),wC(t,Gh(Wv(new $n(t.e.a)),61)),DO(t)}function hN(t,e,n,r){var i,o,a;return a=new Ra(e,n),t.a?r?(++(i=Gh(Up(t.b,e),126)).a,a.d=r.d,a.e=r.e,a.b=r,a.c=r,r.e?r.e.c=a:Gh(Up(t.b,e),126).b=a,r.d?r.d.b=a:t.a=a,r.d=a,r.e=a):(t.e.b=a,a.d=t.e,t.e=a,(i=Gh(Up(t.b,e),126))?(++i.a,(o=i.c).c=a,a.e=o,i.c=a):(dg(t.b,e,new Xg(a)),++t.c)):(t.a=t.e=a,dg(t.b,e,new Xg(a)),++t.c),++t.d,a}function dN(t){var e,n,r,i,o;if(t.e)throw new xo((Gf(rH),"The "+rH.j+nj));for(t.d==(b_(),bD)&&KO(t,gD),e=new $n(t.a.a);e.a<e.c.c.length;)Gh(Wv(e),78).f=0;for(i=new $n(t.a.b);i.a<i.c.c.length;)for((r=Gh(Wv(i),25)).r=JI,n=r.i.mb();n.G();)++Gh(n.H(),25).f.f;for(t.b.Cc(t),o=new $n(t.a.b);o.a<o.c.c.length;)Gh(Wv(o),25).p=!0;return t}function pN(t,e,n,r,i){var o,a,s,u;lr(o=new wk(t),(AS(),CH)),$y(o,(HL(),AR),(cS(),aB)),$y(o,(DL(),Uq),e.c.f),$y(a=new bS,Uq,e.c),Hf(a,i),tv(a,o),$y(e.c,Jq,o),lr(s=new wk(t),CH),$y(s,AR,aB),$y(s,Uq,e.d.f),$y(u=new bS,Uq,e.d),Hf(u,i),tv(u,s),$y(e.d,Jq,s),rv(e,a),nv(e,u),wy(0,n.c.length),Su(n.c,0,o),r.c[r.c.length]=s,$y(o,Cq,F_(1)),$y(s,Cq,F_(1))}function gN(t){var e,n,r,i,o,a,s,u,c,l,f;for(s=new je,o=no(Nf(t.g.sb(t.g.Y()-1))),f=t.g.mb();f.G();)Td(s,0,o-(Md(l=Nf(f.H())),l));for(a=wx(fm(t)),c=new je,i=new $n(s),u=new je,e=0;e<t.c-1;e++)Oh(c,Nf(Wv(i)));for(r=_k(a,0);r.b!=r.d.c;)n=Gh(Cb(r),10),Oh(c,Nf(Wv(i))),Oh(u,new $g(n,c)),my(0,c.c.length),c.c.splice(0,1);return new mk(t.e,t.f,t.d,t.c,s,u)}function vN(t,e,n){var r,i,o,a,s,u,c,l;for(i=!0,a=new $n(e.c);a.a<a.c.c.length;){for(o=Gh(Wv(a),16),c=JI,u=new $n(o.a);u.a<u.c.c.length;){if(s=Gh(Wv(u),9),l=no(n.n[s.k])+no(n.d[s.k])-s.e.d,r=no(n.n[s.k])+no(n.d[s.k])+s.j.b+s.e.a,!(l>c&&r>c)){i=!1,t.a&&Ih();break}c=no(n.n[s.k])+no(n.d[s.k])+s.j.b+s.e.a}if(!i)break}return t.a&&Ih(),i}function bN(t){var e,n,r,i,o,a;if(hl(new $n(r=Xk(t)))){for(a=new gg(0,0,t.e.j.a,t.e.j.b),n=new $n(r);n.a<n.c.c.length;)pS(a,new gg((e=Gh(Wv(n),129)).e.i.a,e.e.i.b,e.e.j.a,e.e.j.b));(o=new Xf(new xf((i=Gh(t.e,7).d).d,i.b,i.a,i.c))).d=-a.e,o.a=a.e+a.b-t.e.j.b,o.b=-a.d,o.c=a.d+a.c-t.e.j.a,Gh(t.e,7).d.b=o.b,Gh(t.e,7).d.d=o.d,Gh(t.e,7).d.c=o.c,Gh(t.e,7).d.a=o.a}}function yN(t){var e,n,r;for(r=new $n(t.f);r.a<r.c.c.length;)for(n=new $n(Gh(Wv(r),7).e);n.a<n.c.c.length;)if(Xu(yx(Gh(Wv(n),12).d.f,(RL(),FU)))!==Xu((Hk(),yU)))throw new Hi((e=ry(t),wj+(null==e?aa(t.k):e)+"' has its layer constraint set to LAST or LAST_SEPARATE, but has at least one outgoing edge. Connections between nodes with these "+_j))}function wN(t,e,n,r){var i,o,a,s,u,c;for(o=new $n(t);o.a<o.c.c.length;){if(a=(i=Gh(Wv(o),12)).c,e.a.R(a))av(),s=fV;else{if(!n.a.R(a))throw new io("Source port must be in one of the port sets.");av(),s=hV}if(u=i.d,e.a.R(u))av(),c=fV;else{if(!n.a.R(u))throw new io("Target port must be in one of the port sets.");av(),c=hV}Oh(r,new YC(i,s,c))}}function mN(t){var e,n,r,i,o,a;for(r=new $n(t.a.a);r.a<r.c.c.length;){for((n=Gh(Wv(r),78)).g=null,a=new Yn(new zn(n.a.a).a.bb().mb());a.a.G();)e=Gh(a.a.H(),21),Au((i=Gh(e.yb(),25)).g),(!n.g||i.j.d<n.g.j.d)&&(n.g=i);for(o=new Yn(new zn(n.a.a).a.bb().mb());o.a.G();)e=Gh(o.a.H(),21),(i=Gh(e.yb(),25)).g.a=i.j.d-n.g.j.d,i.g.b=i.j.e-n.g.j.e}return t}function xN(t,e){var n,r,i,o,a,s,u,c,l,f,h;for(n=!1,f=iI*t.b.f*t.b.d,i=new $n(e.c);i.a<i.c.c.length;)for(r=Gh(Wv(i),16),o=Gh(Wv(s=new $n(r.a)),9),u=op(t.a[o.k]);s.a<s.c.c.length;)a=Gh(Wv(s),9),u!=(c=op(t.a[a.k]))&&(l=kh(t.b,o,a),o.i.b+o.j.b+o.e.a+u.a+l>a.i.b-a.e.d+c.a+f&&(h=u.i+c.i,c.a=(c.i*c.a+u.i*u.a)/h,c.i=h,u.g=c,n=!0)),o=a,u=c;return n}function _N(t){var e,n,r,i,o;if(Xu(yx(t,(HL(),AR)))===Xu((cS(),sB))||Xu(yx(t,AR))===Xu(aB))for(o=new $n(t.f);o.a<o.c.c.length;)if((i=Gh(Wv(o),7)).g==(uL(),wB)||i.g==DB)return!1;if(zs(Gh(yx(t,AR),28)))for(r=fC(t,(uL(),yB)).mb();r.G();)if(0!=Gh(r.H(),7).b.c.length)return!1;for(n=Sp(H_(t));X_(n);)if((e=Gh(xv(n),12)).c.f==e.d.f)return!1;return!0}function EN(t,e){var n,r,i,o,a,s,u,c,l;if(a=(i=t.f).j.a,o=i.j.b,a<=0&&o<=0)return uL(),RB;switch(c=t.i.a,l=t.i.b,s=t.j.a,n=t.j.b,e.e){case 2:case 1:if(c<0)return uL(),BB;if(c+s>a)return uL(),yB;break;case 4:case 3:if(l<0)return uL(),wB;if(l+n>o)return uL(),DB}return(u=(c+s/2)/a)+(r=(l+n/2)/o)<=1&&u-r<=0?(uL(),BB):u+r>=1&&u-r>=0?(uL(),yB):r<.5?(uL(),wB):(uL(),DB)}function kN(t,e,n,r,i,o,a){var s,u,c,l,f;for(f=new ru,u=e.mb();u.G();)for(l=new $n(gk(Gh(u.H(),627)));l.a<l.c.c.length;)Xu(hE(c=Gh(Wv(l),129),(HL(),nR)))===Xu((Im(),ED))&&(tN(f,c,!1,r,i,o,a),pS(t,f));for(s=n.mb();s.G();)for(l=new $n(gk(Gh(s.H(),627)));l.a<l.c.c.length;)Xu(hE(c=Gh(Wv(l),129),(HL(),nR)))===Xu((Im(),_D))&&(tN(f,c,!0,r,i,o,a),pS(t,f))}function SN(t,e){var n,r,i,o,a,s,u,c;for(u=new $n(e.f);u.a<u.c.c.length;)for(s=Gh(Wv(u),7),i=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[s.b,s.e]))))));X_(i);)e!=(o=(n=(r=Gh(xv(i),12)).c==s?r.d:r.c).f)&&((c=Gh(yx(r,(DL(),nU)),24).a)<0&&(c=0),a=o.k,0==t.b[a]&&(r.d==n?(t.a[a]-=c+1,t.a[a]<=0&&t.c[a]>0&&Nh(t.e,o)):(t.c[a]-=c+1,t.c[a]<=0&&t.a[a]>0&&Nh(t.d,o))))}function CN(t){var e,n,r,i,o,a,s,u;for(Px(),this.b=new $t,this.c=new je,this.a=new je,s=0,u=(a=Lx()).length;s<u;++s)o=a[s],ih(ZF,o,new je);for(n=t.mb();n.G();)e=Gh(n.H(),75),Jm(this.a,iv(e)),0==e.g.a.Y()?Gh(mg(ZF,e.e),20).ib(e):Oh(this.c,e);for(i=new qn(new Vn(ZF).a.bb().mb());i.a.G();)r=Gh(i.a.H(),21),yb(Gh(r.zb(),20),this.b);NC(Gh(mg(ZF,(pL(),BY)),20))}function TN(t,e){var n,r,i,o,a,s,u;if((u=Gh(yx(e,(HL(),AR)),28))==(cS(),sB)||u==aB)for(o=(n=Gh(yx(e,(DL(),xq)),15).a,new Za(e.e.a+e.a.b+e.a.c+2*n,e.e.b+e.a.d+e.a.a+2*n)).b,s=new $n(t.a);s.a<s.c.c.length;)(a=Gh(Wv(s),9)).g==(AS(),_H)&&((r=Gh(yx(a,Iq),32))!=(uL(),yB)&&r!=BB||(i=no(Nf(yx(a,tU))),u==sB&&(i*=o),a.i.b=i-Gh(yx(a,TR),10).b,GE(a,!1,!0)))}function AN(t,e){var n,r,i,o,a,s;for(lr(n=new wk(t.d.c),(AS(),xH)),$y(n,(HL(),AR),Gh(yx(e,AR),28)),$y(n,yR,Gh(yx(e,yR),86)),n.k=t.d.b++,Oh(t.b,n),n.j.b=e.j.b,n.j.a=0,uL(),a=new $n(qb(fC(e,s=yB)));a.a<a.c.c.length;)tv(Gh(Wv(a),7),n);return Hf(o=new bS,s),tv(o,e),o.i.a=n.j.a,o.i.b=n.j.b/2,Hf(i=new bS,l_(s)),tv(i,n),i.i.b=n.j.b/2,i.i.a=-i.j.a,rv(r=new Og,o),nv(r,i),n}function NN(t,e,n){var r,i,o,a,s,u,c,l,f;for(function(t,e){var n,r,i;for(Od(e),r=(i=t.g,Gh(i||(t.g=new Ue(t)),20)).mb();r.G();)rT(e,(n=Gh(r.H(),21)).zb(),n.yb())}(t,s=new qf),r=new m_(e),Oh(f=new je,Gh($s(kp(t.j||(t.j=new Ke(t)))),7)),l=new je;0!=f.c.length;){for(a=Gh(Wv(new $n(f)),7),l.c[l.c.length]=a,o=new tr(Lb(t,a).b.mb());o.b.G();)if(RS(r,i=Gh(o.b.H(),12),n))for(c=Gh($C(s,i),20).mb();c.G();)-1!=Ky(l,u=Gh(c.H(),7),0)||(f.c[f.c.length]=u);Dy(f,a)}return r}function ON(t,e){var n,r,i,o,a,s,u;for(n=RegExp(e,"g"),s=Ey(pM,ZL,2,0,5,1),r=0,u=t,o=null;;){if(null==(a=n.exec(u))||""==u){s[r]=u;break}s[r]=td(u,0,a.index),u=td(u,a.index+a[0].length,(oi(),u.length)),n.lastIndex=0,o==u&&(s[r]=u.substr(0,1),u=Eh(u,1,u.length-1)),o=u,++r}if(oi(),t.length>0){for(i=s.length;i>0&&""==s[i-1];)--i;i<s.length&&(s.length=i)}return s}function LN(t){var e,n,r,i,o,a;for(a=new $n(iS(t.e));a.a<a.c.c.length;)switch(o=Gh(Wv(a),161),Gh(o.e,7).g.e){case 4:t.q.b=Ro(t.q.b,(n=Gh(o.e,7).d,new xf(n.d,n.b,n.a,n.c)).c);break;case 2:t.q.c=Ro(t.q.c,(r=Gh(o.e,7).d,new xf(r.d,r.b,r.a,r.c)).b);break;case 1:t.q.d=Ro(t.q.d,(i=Gh(o.e,7).d,new xf(i.d,i.b,i.a,i.c)).a);break;case 3:t.q.a=Ro(t.q.a,(e=Gh(o.e,7).d,new xf(e.d,e.b,e.a,e.c)).d)}}function PN(t){var e,n,r,i,o,a,s,u;s=Gh(yx(t,(HL(),RR)),18),u=Gh(yx(t,BR),18),r=Gh(yx(t,(DL(),xq)),15).a,t.d.a+=r,t.d.b+=r,t.e.a+=2*r,t.e.b+=2*r,$y(t,xq,new Gn(0)),n=Gh(yx(t,xq),15).a,e=new Uu(i=new Za(t.e.a+t.a.b+t.a.c+2*n,t.e.b+t.a.d+t.a.a+2*n)),s.kb((kE(),FB))&&(a=Gh(yx(t,bR),15).a,o=Gh(yx(t,vR),15).a,u.kb((jS(),$B))&&(a<=0&&(a=20),o<=0&&(o=20)),e.a=Ro(i.a,a),e.b=Ro(i.b,o)),function(t,e,n){var r,i,o,a,s;if(r=Gh(yx(t,(RL(),NU)),18),n.a>e.a&&(r.kb((CS(),pV))?t.d.a+=(n.a-e.a)/2:r.kb(vV)&&(t.d.a+=n.a-e.a)),n.b>e.b&&(r.kb((CS(),yV))?t.d.b+=(n.b-e.b)/2:r.kb(bV)&&(t.d.b+=n.b-e.b)),Gh(yx(t,(DL(),Mq)),18).kb((YA(),YV))&&(n.a>e.a||n.b>e.b))for(s=new $n(t.b);s.a<s.c.c.length;)(a=Gh(Wv(s),9)).g==(AS(),_H)&&((i=Gh(yx(a,Iq),32))==(uL(),yB)?a.i.a+=n.a-e.a:i==DB&&(a.i.b+=n.b-e.b));o=t.a,t.e.a=n.a-o.b-o.c,t.e.b=n.b-o.d-o.a}(t,i,e)}function IN(t,e,n){var r,i,o,a,s;if(0==e.k){for(e.k=1,i=n,n||(i=new Qa(new je,new qh(r=Gh(na(qB),11),Gh(_p(r,r.length),11),0))),Gh(i.a,20).ib(e),e.g==(AS(),_H)&&Gh(i.b,18).ib(Gh(yx(e,(DL(),Iq)),32)),a=new $n(e.f);a.a<a.c.c.length;)for(o=Gh(Wv(a),7),s=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[new cn(o),new fn(o)]))))));X_(s);)IN(t,Gh(xv(s),7).f,i);return i}return null}function jN(t,e,n,r){var i,o,a,s,u;switch((u=new Uu(e.i)).a+=e.j.a/2,u.b+=e.j.b/2,s=Gh(yx(e,(DL(),qq)),15).a,o=t.e,a=t.a,i=t.d,Gh(yx(e,Iq),32).e){case 1:u.a+=a.b+i.a-n/2,u.b=-r-s,e.i.b=-(a.d+s+i.b);break;case 2:u.a=o.a+a.b+a.c+s,u.b+=a.d+i.b-r/2,e.i.a=o.a+a.c+s-i.a;break;case 3:u.a+=a.b+i.a-n/2,u.b=o.b+a.d+a.a+s,e.i.b=o.b+a.a+s-i.b;break;case 4:u.a=-n-s,u.b+=a.d+i.b-r/2,e.i.a=-(a.b+s+i.a)}return u}function MN(t,e){var n,r,i,o,a,s,u;for(o=new $n(e.b);o.a<o.c.c.length;)fl(a=yx(i=Gh(Wv(o),9),(DL(),Uq)),7)&&(u=jN(e,i,(s=Gh(a,7)).j.a,s.j.b),s.i.a=u.a,s.i.b=u.b,Hf(s,Gh(yx(i,Iq),32)));r=Gh(yx(e,(DL(),xq)),15).a,n=new Za(e.e.a+e.a.b+e.a.c+2*r,e.e.b+e.a.d+e.a.a+2*r),Gh(yx(e,Mq),18).kb((YA(),YV))?($y(t,(HL(),AR),(cS(),aB)),Gh(yx(Vp(t),Mq),18).ib(UV),MO(t,n,!1)):MO(t,n,!0)}function DN(t,e,n){var r,i,o,a,s;switch(s=null,e.e){case 1:for(i=new $n(t.f);i.a<i.c.c.length;)if(eo(no(Af(yx(r=Gh(Wv(i),7),(DL(),Dq))))))return r;$y(s=new bS,(DL(),Dq),(Hd(),Hd(),vX));break;case 2:for(a=new $n(t.f);a.a<a.c.c.length;)if(eo(no(Af(yx(o=Gh(Wv(a),7),(DL(),Kq))))))return o;$y(s=new bS,(DL(),Kq),(Hd(),Hd(),vX))}return s&&(tv(s,t),Hf(s,n),function(t,e,n){switch(n.e){case 1:t.a=e.a/2,t.b=0;break;case 2:t.a=e.a,t.b=e.b/2;break;case 3:t.a=e.a/2,t.b=e.b;break;case 4:t.a=0,t.b=e.b/2}}(s.i,t.j,n)),s}function RN(t,e){var n,r,i,o,a,s,u;return Od(e),Fu(t.a.t(e.a)),r=t.b,o=t.e,a=t.d,t.b?e.b&&((n=t.a.$b(t.e,e.e))<0||0==n&&e.d==(Vc(),TM))&&(o=e.e,a=e.d):(r=e.b,o=e.e,a=e.d),i=t.c,s=t.g,u=t.f,t.c?e.c&&((n=t.a.$b(t.g,e.g))>0||0==n&&e.f==(Vc(),TM))&&(s=e.g,u=e.f):(i=e.c,s=e.g,u=e.f),r&&i&&((n=t.a.$b(o,s))>0||0==n&&a==(Vc(),TM)&&u==(Vc(),TM))&&(o=s,Vc(),a=TM,u=CM),new JC(t.a,r,o,a,i,s,u)}function BN(t,e,n,r){var i,o,a,s,u,c;if(n.c.f!=e.f)for(lr(i=new wk(t),(AS(),kH)),$y(i,(DL(),Uq),n),$y(i,(HL(),AR),(cS(),aB)),r.c[r.c.length]=i,tv(a=new bS,i),Hf(a,(uL(),BB)),tv(s=new bS,i),Hf(s,yB),nv(n,a),S_(o=new Og,n),$y(o,fR,null),rv(o,s),nv(o,e),sT(i,a,s),c=new Uv(n.b,0);c.b<c.d.Y();)Nc(c.b<c.d.Y()),u=Gh(c.d.sb(c.c=c.b++),33),Gh(yx(u,nR),107)==(Im(),_D)&&(ng(c),Oh(o.b,u))}function GN(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p;for(i=new Za(o=n+(e.n+1)*t.a,e.b),s=new Yn(new zn(e.c.a).a.bb().mb());s.a.G();)u=Gh(s.a.H(),21),h=Iv((a=Gh(u.yb(),12)).d),f=new Za(o,(c=Iv(a.c)).b),p=new Za(o,h.b),l=new Za(n-10,c.b),d=new Za(r,h.b),h.a>=r&&c.a>=r&&(l.a=r),h.a<=n&&c.a<=n&&(d.a=n-10),1==e.c.a.Y()?tw(a.a,_x(Oo(nD,1),RI,10,0,[l,f,p,d])):tw(a.a,_x(Oo(nD,1),RI,10,0,[l,f,i,p,d]))}function HN(t,e){var n,r,i,o,a,s;for(o=t.c,a=t.d,rv(t,null),nv(t,null),e&&eo(no(Af(yx(a,(DL(),Dq)))))?rv(t,DN(a.f,(tm(),EU),(uL(),yB))):rv(t,a),e&&eo(no(Af(yx(o,(DL(),Kq)))))?nv(t,DN(o.f,(tm(),_U),(uL(),BB))):nv(t,o),r=new $n(t.b);r.a<r.c.c.length;)n=Gh(Wv(r),33),(i=Gh(yx(n,(HL(),nR)),107))==(Im(),ED)?$y(n,nR,_D):i==_D&&$y(n,nR,ED);s=eo(no(Af(yx(t,(DL(),aU))))),$y(t,aU,(Hd(),s?gX:vX)),t.a=wx(t.a)}function FN(t){var e,n,r,i,o,a;for($c(this),n=t.Y()-1;n<3;n++)t.rb(0,Gh(t.sb(0),10));if(t.Y()<4)throw new io("At (least dimension + 1) control points are necessary!");for(this.c=3,this.e=!0,this.f=!0,this.d=!1,function(t,e){var n,r,i,o;if(e<2*t.c)throw new io("The knot vector must have at least two time the dimension elements.");for(t.j=0,t.i=1,r=0;r<t.c;r++)t.g.ib(0);for(o=e+1-2*t.c,i=1;i<o;i++)t.g.ib(i/o);if(t.e)for(n=0;n<t.c;n++)t.g.ib(1)}(this,t.Y()+this.c-1),a=new je,o=this.g.mb(),e=0;e<this.c-1;e++)Oh(a,Nf(o.H()));for(i=t.mb();i.G();)r=Gh(i.H(),10),Oh(a,Nf(o.H())),this.b.ib(new $g(r,a)),my(0,a.c.length),a.c.splice(0,1)}function zN(t){var e,n,r,i,o,a,s,u,c,l,f;for((f=new ae).d=0,a=new $n(t.c);a.a<a.c.c.length;)o=Gh(Wv(a),16),f.d+=o.a.c.length;for(r=0,i=0,f.a=Ey(UX,nI,26,t.c.c.length,12,1),c=0,f.e=Ey(UX,nI,26,f.d,12,1),n=new $n(t.c);n.a<n.c.c.length;)for((e=Gh(Wv(n),16)).k=r++,f.a[e.k]=i++,l=0,u=new $n(e.a);u.a<u.c.c.length;)(s=Gh(Wv(u),9)).k=c++,f.e[s.k]=l++;return f.c=new In(f),f.b=Al(f.d),function(t,e){var n,r,i,o,a,s,u,c;for(o=new $n(e.c);o.a<o.c.c.length;)for(u=new $n(Gh(Wv(o),16).a);u.a<u.c.c.length;){for(s=Gh(Wv(u),9),c=new je,a=0,i=Sp(G_(s));X_(i);)n=Gh(xv(i),12),Gh(yx(n,(DL(),nU)),24).a>a&&(a=Gh(yx(n,nU),24).a);for(r=Sp(G_(s));X_(r);)n=Gh(xv(r),12),s.d!=n.c.f.d&&Gh(yx(n,(DL(),nU)),24).a==a&&Oh(c,new Qa(n.c.f,n));yb(c,t.c),Td(t.b,s.k,c)}}(f,t),f.f=Al(f.d),function(t,e){var n,r,i,o,a,s,u,c;for(o=new $n(e.c);o.a<o.c.c.length;)for(u=new $n(Gh(Wv(o),16).a);u.a<u.c.c.length;){for(s=Gh(Wv(u),9),c=new je,a=0,i=Sp(H_(s));X_(i);)n=Gh(xv(i),12),Gh(yx(n,(DL(),nU)),24).a>a&&(a=Gh(yx(n,nU),24).a);for(r=Sp(H_(s));X_(r);)n=Gh(xv(r),12),s.d!=n.d.f.d&&Gh(yx(n,(DL(),nU)),24).a==a&&Oh(c,new Qa(n.d.f,n));yb(c,t.c),Td(t.f,s.k,c)}}(f,t),f}function YN(t){var e,n,r,i,o,a,s,u;for(a=new $n(t.a);a.a<a.c.c.length;)if((o=Gh(Wv(a),9)).g==(AS(),_H)&&((i=Gh(yx(o,(DL(),Iq)),32))==(uL(),yB)||i==BB))for(r=Sp(NS(o));X_(r);)0!=(e=(n=Gh(xv(r),12)).a).b&&((s=n.c).f==o&&(Nc(0!=e.b),Gh(e.a.a.c,10).b=Gm(_x(Oo(nD,1),RI,10,0,[s.f.i,s.i,s.a])).b),(u=n.d).f==o&&(Nc(0!=e.b),Gh(e.c.b.c,10).b=Gm(_x(Oo(nD,1),RI,10,0,[u.f.i,u.i,u.a])).b))}function VN(t,e,n,r){var i,o,a,s,u,c;for(a=new NO(t,e,n),u=new Uv(r,0),i=!1;u.b<u.d.Y();)Nc(u.b<u.d.Y()),(s=Gh(u.d.sb(u.c=u.b++),102))==e||s==n?ng(u):!i&&no(sl(s.g,s.d[0]).a)>no(sl(a.g,a.d[0]).a)?(Nc(u.b>0),u.a.sb(u.c=--u.b),eh(u,a),i=!0):s.e&&s.e.Y()>0&&(o=(!s.e&&(s.e=new je),s.e).nb(e),c=(!s.e&&(s.e=new je),s.e).nb(n),(o||c)&&((!s.e&&(s.e=new je),s.e).ib(a),++a.c));i||(r.c[r.c.length]=a)}function qN(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p;n.d.f!=e.f&&(lr(i=new wk(t),(AS(),kH)),$y(i,(DL(),Uq),n),$y(i,(HL(),AR),(cS(),aB)),r.c[r.c.length]=i,tv(a=new bS,i),Hf(a,(uL(),BB)),tv(s=new bS,i),Hf(s,yB),u=n.d,nv(n,a),S_(o=new Og,n),$y(o,fR,null),rv(o,s),nv(o,u),f=(l=(c=Gh(ld(a.b,0),12).c).f).g,p=(d=(h=Gh(ld(s.e,0),12).d).f).g,$y(i,zq,f==kH?Gh(yx(l,zq),7):c),$y(i,Yq,p==kH?Gh(yx(d,Yq),7):h))}function UN(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p;for(a=e,f=e.d,c=e.c.f,h=e.d.f,l=Nu(c.d),d=Nu(h.d),s=l;s<d;s++)lr(i=new wk(t),(AS(),kH)),$y(i,(DL(),Uq),a),$y(i,(HL(),AR),(cS(),aB)),ev(i,Gh(ld(t.c,s+1),16)),(p=Gh(yx(a,HR),15).a)<0&&$y(a,HR,new Gn(p=0)),i.j.b=p,u=Math.floor(p/2),Hf(r=new bS,(uL(),BB)),tv(r,i),r.i.b=u,Hf(o=new bS,yB),tv(o,i),o.i.b=u,nv(a,r),S_(n=new Og,a),$y(n,fR,null),rv(n,o),nv(n,f),nS(i,a,n),a=n}function XN(t,e){if(pL(),t==e)return mE(t);switch(t.e){case 1:switch(e.e){case 4:return BY;case 1:return RY;case 2:return jY;case 3:return FY}case 2:switch(e.e){case 1:return jY;case 2:return IY;case 3:return HY;case 4:return MY}case 3:switch(e.e){case 2:return HY;case 3:return GY;case 4:return iV;case 1:return FY}case 4:switch(e.e){case 3:return iV;case 4:return rV;case 1:return BY;case 2:return MY}}return nV}function WN(t){var e,n,r,i,o,a,s,u,c,l;for(u=new Yn(new zn(kT(t)).a.bb().mb());u.a.G();){for(r=Gh(u.a.H(),21),c=(s=Gh(r.yb(),9)).e.d,l=s.j.b+s.e.a,t.d[s.k]=0,e=s;(i=t.a[e.k])!=s;)n=E_(e,i),a=t.c==(ov(),aY)?n.d.i.b+n.d.a.b-n.c.i.b-n.c.a.b:n.c.i.b+n.c.a.b-n.d.i.b-n.d.a.b,o=no(t.d[e.k])+a,t.d[i.k]=o,c=Ro(c,i.e.d-o),l=Ro(l,o+i.j.b+i.e.a),e=i;e=s;do{t.d[e.k]=no(t.d[e.k])+c,e=t.a[e.k]}while(e!=s);t.b[s.k]=c+l}}function $N(t,e,n){var r,i,o,a,s,u,c,l;return r=t.a.k==(ab(),cY)?QI:JI,!(s=UA(t,new hu(e,n))).a&&s.c?(Nh(t.d,s),r):s.a?(i=s.a.c,u=s.a.d,n?(c=t.a.c==(ov(),sY)?u:i,o=t.a.c==sY?i:u,a=t.a.f[o.f.k],l=no(t.a.n[a.k])+no(t.a.d[o.f.k])+o.i.b+o.a.b-no(t.a.d[c.f.k])-c.i.b-c.a.b):(c=t.a.c==(ov(),aY)?u:i,o=t.a.c==aY?i:u,l=no(t.a.n[t.a.f[o.f.k].k])+no(t.a.d[o.f.k])+o.i.b+o.a.b-no(t.a.d[c.f.k])-c.i.b-c.a.b),l):r}function KN(t,e,n,r){var i,o,a,s,u,c;if(o=U_(r),!eo(no(Af(yx(r,(RL(),YU)))))&&!eo(no(Af(yx(t,(HL(),cR)))))||zs(Gh(yx(t,(HL(),AR)),28)))switch(tv(s=new bS,t),(c=s.i).a=e.a-t.i.a,c.b=e.b-t.i.b,function(t,e,n){if(e<0||n<0)throw new io("The highx must be bigger then lowx and the highy must be bigger then lowy");t.a<0?t.a=0:t.a>e&&(t.a=e),t.b<0?t.b=0:t.b>n&&(t.b=n)}(c,t.j.a,t.j.b),Hf(s,EN(s,o)),a=Gh(yx(r,(DL(),Mq)),18),u=s.g,o.e){case 2:case 1:(u==(uL(),wB)||u==DB)&&a.ib((YA(),XV));break;case 4:case 3:(u==(uL(),yB)||u==BB)&&a.ib((YA(),XV))}else i=iE(o),s=DN(t,n,n==(tm(),EU)?i:l_(i));return s}function ZN(t){var e,n,r,i,o,a,s,u;for(r=sf(qb(t.a)),i=new qh(e=Gh(na(oV),11),Gh(_p(e,e.length),11),0);r.a.G()||r.b.mb().G();)s=(n=Gh(Sw(r),12)).c.g,u=n.d.g,s==(uL(),RB)?u!=RB&&(a=mE(u),$y(n,(DL(),lU),a),Hf(n.c,u),pm(i,a),r.a.I()):u==RB?(a=mE(s),$y(n,(DL(),lU),a),Hf(n.d,s),pm(i,a),r.a.I()):(a=XN(s,u),$y(n,(DL(),lU),a),pm(i,a),r.a.I());return 1==i.c?o=Gh(Kb(new Ys(i)),60):(pL(),o=nV),oC(t,o,!1),o}function QN(t,e,n){var r,i,o,a,s,u,c,l,f;for(u=n+e.d.c.a,f=new $n(e.f);f.a<f.c.c.length;){if(l=Gh(Wv(f),7),o=new Za(0,(r=Gm(_x(Oo(nD,1),RI,10,0,[l.f.i,l.i,l.a]))).b),l.g==(uL(),yB))o.a=u;else{if(l.g!=BB)continue;o.a=n}if(r.a!=o.a)for(i=l.e.c.length+l.b.c.length>1,s=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[l.b,l.e]))))));X_(s);)c=(a=Gh(xv(s),12)).c==l?a.d:a.c,ka(Gm(_x(Oo(nD,1),RI,10,0,[c.f.i,c.i,c.a])).b-o.b)>1&&AT(t,a,o,i,l)}}function JN(t,e){var n,r,i,o,a;for(a=new zx(new Hn(t.f.b).a);a.b;){if(i=Gh((o=zw(a)).yb(),251),1==e){if(i.yc()!=(b_(),yD)&&i.yc()!=pD)continue}else if(i.yc()!=(b_(),gD)&&i.yc()!=vD)continue;switch(r=Gh(Gh(o.zb(),27).b,25),n=Gh(Gh(o.zb(),27).a,78).c,i.yc().e){case 2:r.j.d=t.e.a,r.j.c=Ro(1,r.j.c+n);break;case 1:r.j.d=r.j.d+n,r.j.c=Ro(1,r.j.c-n);break;case 4:r.j.e=t.e.b,r.j.b=Ro(1,r.j.b+n);break;case 3:r.j.e=r.j.e+n,r.j.b=Ro(1,r.j.b-n)}}}function tO(t,e,n,r,i){var o,a,s,u,c,l,f,h;for(ml(),f=new _r,a=new je,BC(t,n,t.d.Mc(),a,f),BC(t,r,t.d.Nc(),a,f),s=new Uv(a,0);s.b<s.d.Y();)for(Nc(s.b<s.d.Y()),o=Gh(s.d.sb(s.c=s.b++),80),u=new Uv(a,s.b);u.b<u.d.Y();)Nc(u.b<u.d.Y()),GA(o,Gh(u.d.sb(u.c=u.b++),80),t.a);for(function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N,O;for(T=new so,k=new so,p=-1,y=new $n(t);y.a<y.c.c.length;){for((v=Gh(Wv(y),80)).d=p--,u=0,x=0,o=new $n(v.e);o.a<o.c.c.length;)r=Gh(Wv(o),118),x+=r.c;for(i=new $n(v.b);i.a<i.c.c.length;)r=Gh(Wv(i),118),u+=r.c;v.c=u,v.f=x,0==x?Ob(k,v,k.c.b,k.c):0==u&&Ob(T,v,T.c.b,T.c)}rx(O=new Ji,t),N=O,c=t.c.length,g=c-1,d=c+1,f=new je;for(;0!=N.a.c;){for(;0!=k.b;)Nc(0!=k.b),E=Gh(Hw(k,k.a.a),80),cg(N.a,E),E.d=g--,$T(E,T,k);for(;0!=T.b;)Nc(0!=T.b),S=Gh(Hw(T,T.a.a),80),cg(N.a,S),S.d=d++,$T(S,T,k);for(h=lP,s=new fh(new Ql(new Xn(N.a).a).b),w=new Wn(s);Rs(w.a.a);)a=pf(w.a),v=Gh(a.yb(),80),(m=v.f-v.c)>=h&&(m>h&&(f.c=Ey(fM,kP,1,0,4,1),h=m),f.c[f.c.length]=v);0!=f.c.length&&(l=Gh(ld(f,Yk(e,f.c.length)),80),cg(N.a,l),l.d=d++,$T(l,T,k),f.c=Ey(fM,kP,1,0,4,1))}for(_=t.c.length+1,b=new $n(t);b.a<b.c.c.length;)(v=Gh(Wv(b),80)).d<c&&(v.d+=_);for(C=new $n(t);C.a<C.c.c.length;)for(S=Gh(Wv(C),80),n=new Uv(S.e,0);n.b<n.d.Y();)Nc(n.b<n.d.Y()),r=Gh(n.d.sb(n.c=n.b++),118),A=r.b,S.d>A.d&&(ng(n),Dy(A.b,r),r.c>0&&(r.a=A,Oh(A.e,r),r.b=S,Oh(S.b,r)))}(a,Gh(yx(e,(DL(),iU)),154)),function(t){var e,n,r,i,o,a,s,u,c,l;for(c=new je,s=new je,a=new $n(t);a.a<a.c.c.length;)(i=Gh(Wv(a),80)).c=i.b.c.length,i.f=i.e.c.length,0==i.c&&(c.c[c.c.length]=i),0==i.f&&0==i.j.b&&(s.c[s.c.length]=i);r=-1;for(;0!=c.c.length;)for(i=Gh(gy(c,0),80),n=new $n(i.e);n.a<n.c.c.length;)e=Gh(Wv(n),118),(l=e.b).i=Go(l.i,i.i+1),r=Go(r,l.i),--l.c,0==l.c&&(c.c[c.c.length]=l);if(r>-1){for(o=new $n(s);o.a<o.c.c.length;)(i=Gh(Wv(o),80)).i=r;for(;0!=s.c.length;)for(i=Gh(gy(s,0),80),n=new $n(i.b);n.a<n.c.c.length;)e=Gh(Wv(n),118),(u=e.a).j.b>0||(u.i=zo(u.i,i.i-1),--u.f,0==u.f&&(s.c[s.c.length]=u))}}(a),h=-1,l=new $n(a);l.a<l.c.c.length;)ka((c=Gh(Wv(l),80)).k-c.a)<cj||(h=Go(h,c.i),t.d.Kc(c,i));return t.b.a.Q(),h+1}function eO(t,e,n){var r,i;switch(i=new Uu(e),r=new Uu(t.j),n.e){case 1:case 8:case 7:jl(i,-r.a/2,-r.b),jl(e,0,-(.5+r.b));break;case 3:case 4:case 5:jl(i,-r.a/2,0),jl(e,0,.5+r.b);break;case 0:jl(i,-r.a/2,-r.b),jl(e,0,-(.5-r.b));break;case 10:case 2:jl(i,0,-r.b/2),jl(e,0,-(.5+r.b));break;case 6:jl(i,-r.a,r.b/2),jl(e,0,-(.5+r.b));break;case 9:jl(i,-r.a/2,0),jl(e,0,-(.5+r.b));break;case 11:jl(i,-r.a,-r.b/2),jl(e,0,-(.5+r.b))}return Lf(Au(t.i),i),new jk(t)}function nO(t,e,n,r,i){var o,a,s,u,c,l,f;if(Ih(),tg(t,"src"),tg(n,"dest"),l=bw(t),s=bw(n),jd(0!=(4&l.g),"srcType is not an array"),jd(0!=(4&s.g),"destType is not an array"),c=l.c,o=s.c,jd(0!=(1&c.g)?c==o:0==(1&o.g),"Array types don't match"),f=t.length,u=n.length,e<0||r<0||i<0||e+i>f||r+i>u)throw new qr;if(0!=(1&c.g)&&0==(4&c.g)||l==s)i>0&&uS(t,e,n,r,i,!0);else if(t===n&&e<r)for(e+=i,a=r+i;a-- >r;)n[a]=t[--e];else for(a=r+i;r<a;)n[r++]=t[e++]}function rO(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v;for(u=t.e,d=t.f,a=t.d,l=(p=t.c)-1,g=t.g,f=Rh(t.g.xb(1,t.g.Y()-1)),c=new je,n=0;n<t.b.Y()-1;n++)s=il(Pf(yc(Gh(t.b.sb(n+1),92).a),Gh(t.b.sb(n),92).a),p/(no(Nf(g.sb(n+p)))-no(Nf(g.sb(n))))),c.c[c.c.length]=s;for(v=new je,o=_k(f,0),h=new je,e=0;e<l-1;e++)Oh(v,Nf(Cb(o)));for(i=new $n(c);i.a<i.c.c.length;)r=Gh(Wv(i),10),Oh(v,Nf(Cb(o))),Oh(h,new $g(r,v)),my(0,v.c.length),v.c.splice(0,1);return new mk(u,d,a,l,f,h)}function iO(t){this.q=new Hr,this.p=new Hr,this.o=Ey(UX,nI,26,(uL(),_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB])).length,12,1),this.i=Ey(UX,nI,26,_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB]).length,12,1),this.j=Ey($X,dP,26,_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB]).length,12,1),this.n=Ey($X,dP,26,_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB]).length,12,1),this.g=Ey(fB,CP,100,_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB]).length,0,1),this.c=new yE(SG),this.e=t,Vo(this.o),Vo(this.i),ju(this.n,0)}function oO(t,e){var n,r,i,o,a,s,u,c;if((a=null!=e.i&&!e.b)||jE(e,"Component Layout",1),o=1/(n=Gh(yx(t,(DL(),rU)),20)).Y(),eo(no(Af(yx(t,(HL(),tR))))))for(0,c=n.mb();c.G();)ea(bw(u=Gh(c.H(),31))),u.sc(t,Am(e,o));else for(c=n.mb();c.G();)(u=Gh(c.H(),31)).sc(t,Am(e,o));for(i=new $n(t.c);i.a<i.c.c.length;)r=Gh(Wv(i),16),Jm(t.b,r.a),r.a.c=Ey(fM,kP,1,0,4,1);for(s=new $n(t.b);s.a<s.c.c.length;)ev(Gh(Wv(s),9),null);t.c.c=Ey(fM,kP,1,0,4,1),a||j_(e)}function aO(t,e,n,r){var i,o,a,s,u,c;if(OC(e),o=Gh(yx(r,(DL(),Mq)),18),!((s=(HL(),wR).b)in e.a)||!_g(e,s).ic().a)switch($y(u=new bS,Uq,e),tv(u,n),a=Gh(_g(e,"id"),97),Rv(t.k,a.a,u),dg(t.n,u,e),zC(e,u),gS(e,u),aT(t,e,u,r),Hf(u,Gh(yx(u,LR),32)),(c=Gh(yx(n,AR),28))==(cS(),lB)&&(c=cB),(i=Gh(yx(r,eR),59))==(b_(),bD)&&(i=vD),function(t,e,n,r){var i,o,a,s,u;(a=t.g)==(uL(),RB)&&e!=(cS(),cB)&&e!=(cS(),lB)&&(a=EN(t,n),Hf(t,a),null==yx(t,(HL(),mR))&&a!=RB&&(0!=t.i.a||0!=t.i.b)&&$y(t,mR,new Gn(function(t,e){var n;switch(n=t.f,e.e){case 1:return-(t.i.b+t.j.b);case 2:return t.i.a-n.j.a;case 3:return t.i.b-n.j.b;case 4:return-(t.i.a+t.j.a)}return 0}(t,a))));if(e==(cS(),sB)){switch(u=0,a.e){case 1:case 3:(o=t.f.j.a)>0&&(u=t.i.a/o);break;case 2:case 4:(i=t.f.j.b)>0&&(u=t.i.b/i)}$y(t,(DL(),tU),u)}if(s=t.j,r)t.a.a=r.a,t.a.b=r.b;else if(e!=cB&&e!=lB&&a!=RB)switch(a.e){case 1:t.a.a=s.a/2;break;case 2:t.a.a=s.a,t.a.b=s.b/2;break;case 3:t.a.a=s.a/2,t.a.b=s.b;break;case 4:t.a.b=s.b/2}else t.a.a=s.a/2,t.a.b=s.b/2}(u,c,i,Gh(yx(u,TR),10)),i.e){case 2:case 1:(u.g==(uL(),wB)||u.g==DB)&&o.ib((YA(),XV));break;case 4:case 3:(u.g==(uL(),yB)||u.g==BB)&&o.ib((YA(),XV))}}function sO(t){var e,n,r,i,o;for(r=new je,o=new $n(t.c.f);o.a<o.c.c.length;)(i=Gh(Wv(o),7)).g==(uL(),yB)&&(r.c[r.c.length]=i);if(t.d.a==(b_(),vD)&&!zs(Gh(yx(t.c,(HL(),AR)),28)))for(n=Sp(H_(t.c));X_(n);)Oh(r,Gh(xv(n),12).c);$y(t.c,(DL(),mq),new Gn(t.c.j.a)),$y(t.c,wq,(Hd(),Hd(),vX)),Oh(t.b,t.c),e=null,1==t.e?e=function(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m;if(g=t.d.c.c.c.length,n>=g-1)return null;for((i=new je).c[i.c.length]=e,y=e,a=n,d=-1,s=Gh(ld(t.d.c.c,n),16),h=0;h<s.a.c.length;++h)if(Gh(ld(s.a,h),9)==e){d=h;break}if(!(p=IL(t,1,d,n,g,t.a)))return null;w=t.a,f=0,o=0;for(;y&&w>1&&a<g-1;)c=AN(t,y),l=Gh(ld(t.d.c.c,a+1),16),m=Gh(p.sb(f++),24).a,v=zo(m,l.a.c.length),Jk(c,v,l),y&&(i.c[i.c.length]=y),y=c,--w,++o,++a;for(b=(r-(i.c.length-1)*t.d.d)/i.c.length,u=new $n(i);u.a<u.c.c.length;)Gh(Wv(u),9).j.a=b;return new Qa(F_(o),b)}(t,t.c,Nu(t.c.d),t.c.j.a):0==t.e?e=function(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m;if(n<=0)return null;for((i=new je).c[i.c.length]=e,y=e,a=n,d=-1,s=Gh(ld(t.d.c.c,n),16),h=0;h<s.a.c.length;++h)if(Gh(ld(s.a,h),9)==e){d=h;break}if(!(p=IL(t,0,d,n,t.d.c.c.c.length,t.a)))return null;w=t.a,f=0,o=0,b=d;for(;y&&w>1&&a>1;)c=AN(t,y),s=Gh(ld(t.d.c.c,a),16),l=Gh(ld(t.d.c.c,a-1),16),m=Gh(p.sb(f++),24).a,g=zo(m,l.a.c.length),Jk(y,g,l),Jk(c,b,s),b=g,y&&(i.c[i.c.length]=y),y=c,--w,++o,--a;for(v=(r-(i.c.length-1)*t.d.d)/i.c.length,u=new $n(i);u.a<u.c.c.length;)Gh(Wv(u),9).j.a=v;return new Qa(F_(o),v)}(t,t.c,Nu(t.c.d),t.c.j.a):3==t.e?e=function(t,e,n){var r,i,o,a,s;(r=new je).c[r.c.length]=e,s=e,a=0;do{(s=YO(t,s))&&(r.c[r.c.length]=s),++a}while(s);for(o=(n-(r.c.length-1)*t.d.d)/r.c.length,i=new $n(r);i.a<i.c.c.length;)Gh(Wv(i),9).j.a=o;return new Qa(F_(a),o)}(t,t.c,t.c.j.a):2==t.e&&(e=function(t,e,n){var r,i,o,a,s;(r=new je).c[r.c.length]=e,s=e,a=0;do{(s=oL(t,s))&&(r.c[r.c.length]=s),++a}while(s);for(o=(n-(r.c.length-1)*t.d.d)/r.c.length,i=new $n(r);i.a<i.c.c.length;)Gh(Wv(i),9).j.a=o;return new Qa(F_(a),o)}(t,t.c,t.c.j.a)),e&&new lS(t.c,t.b,no(Nf(e.b)))}function uO(t,e,n){var r,i,o,a,s;if(r=e.g,eo(no(Af(yx(e,(DL(),wq)))))&&(AS(),r=xH),e.k>=0)return!1;if(n.e&&r==(AS(),xH)&&r!=n.e)return!1;if(e.k=n.b,Oh(n.f,e),n.e=r,r==(AS(),kH)||r==CH||r==xH)for(i=new $n(e.f);i.a<i.c.c.length;)for(s=new hn(new $n(new fn(Gh(Wv(i),7)).a.e));hl(s.a);)if(a=(o=Gh(Wv(s.a),12).d.f).g,e.d!=o.d)if(r==xH){if(a==xH&&uO(t,o,n))return!0}else if((a==kH||a==CH)&&uO(t,o,n))return!0;return!0}function cO(t,e){var n,r,i,o,a,s,u,c;for(tw(t.a,_x(Oo(nD,1),RI,10,0,[e.a,e.b])),lm(t.c,e.e),t.q.d=t.q.d|e.d,t.q.a=t.q.a|e.c,s=Ho(t.j.e,e.k),u=Ro(t.j.e+t.j.b,e.n),Th(t.j,e.j,s,0,u-s),mp(t.d,e.f),e.f.c.f==e.f.d.f&&Ah(t.n,!0,!0,!0,!0),a=new Qi,c=new Qi,i=new Yn(new zn(t.d.a).a.bb().mb());i.a.G();)o=Gh(i.a.H(),21),mp(a,(r=Gh(o.yb(),12)).c),mp(c,r.d);(n=a.a.Y()-c.a.Y())<0?(Ex(t.n,!0,(b_(),gD)),Ex(t.n,!1,vD)):n>0&&(Ex(t.n,!1,(b_(),gD)),Ex(t.n,!0,vD))}function lO(t,e,n){var r,i,o,a;switch(o=t.i,i=Gm(_x(Oo(nD,1),RI,10,0,[e.i,e.f.i])),r=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])),a=e.d,e.g.e){case 4:o.a=Ho(i.a,r.a)-a.b-t.j.a-n,o.b=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])).b+n;break;case 2:o.a=Ro(i.a+e.j.a,r.a)+a.c+n,o.b=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])).b+n;break;case 1:o.a=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])).a+n,o.b=Ho(i.b,r.b)-a.d-t.j.b-n;break;case 3:o.a=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])).a+n,o.b=Ro(i.b+e.j.b,r.b)+a.a+n}}function fO(t,e,n){var r,i,o,a;switch(o=t.i,i=Gm(_x(Oo(nD,1),RI,10,0,[e.i,e.f.i])),r=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])),a=e.d,e.g.e){case 4:o.a=Ho(i.a,r.a)-a.b-t.j.a-n,o.b=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])).b-t.j.b-n;break;case 2:o.a=Ro(i.a+e.j.a,r.a)+a.c+n,o.b=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])).b-t.j.b-n;break;case 1:o.a=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])).a+n,o.b=Ho(i.b,r.b)-a.d-t.j.b-n;break;case 3:o.a=Gm(_x(Oo(nD,1),RI,10,0,[e.f.i,e.i,e.a])).a+n,o.b=Ro(i.b+e.j.b,r.b)+a.a+n}}function hO(){hO=r,QV=new xb("ONE_SIDED",0,!0,!1,!1),nq=new xb("TWO_SIDED",1,!1,!1,!1),JV=new xb("ONE_SIDED_BEST_OF_UP_OR_DOWN",2,!0,!0,!1),rq=new xb("TWO_SIDED_BEST_OF_UP_OR_DOWN",3,!1,!0,!1),tq=new xb("ONE_SIDED_BEST_OF_UP_OR_DOWN_ORTHOGONAL_HYPEREDGES",4,!0,!0,!0),iq=new xb("TWO_SIDED_BEST_OF_UP_OR_DOWN_ORTHOGONAL_HYPEREDGES",5,!1,!0,!0),eq=new xb("ONE_SIDED_ORTHOGONAL_HYPEREDGES",6,!0,!1,!0),ZV=new xb("OFF",7,!1,!1,!1)}function dO(t,e,n,r,i,o,a){var s,u,c,l,f,h,d;return f=eo(no(Af(yx(e,(RL(),VU))))),h=null,o==(tm(),_U)&&r.c.f==n?h=r.c:o==EU&&r.d.f==n&&(h=r.d),c=a,a&&f&&!h?(Oh(a.e,r),d=Bo(Gh(yx(a.d,(HL(),HR)),15).a,Gh(yx(r,HR),15).a),$y(a.d,HR,new Gn(d))):(uL(),l=RB,h?l=h.g:zs(Gh(yx(n,(HL(),AR)),28))&&(l=o==_U?BB:yB),u=function(t,e,n,r,i,o){var a,s,u,c,l,f,h;c=r==(tm(),_U)?o.c:o.d,u=U_(e),c.f==n?(a=Gh(Up(t.b,c),9))||($y(a=aL(c,Gh(yx(n,(HL(),AR)),28),i,r==_U?-1:1,c.j,u,e),(DL(),Uq),c),dg(t.b,c,a)):(l=Gh(yx(o,(HL(),HR)),15).a,a=aL((f=new v,h=Gh(yx(e,(DL(),sU)),15).a*Gh(yx(e,(RL(),DU)),15).a/2,$y(f,qq,new Gn(h)),f),Gh(yx(n,AR),28),i,r==_U?-1:1,new Za(l,l),u,e),s=function(t,e,n,r){var i,o;switch(i=U_(Vp(n)),tv(o=new bS,n),r.e){case 1:Hf(o,l_(iE(i)));break;case 2:Hf(o,iE(i))}return $y(o,(DL(),qq),Gh(yx(e,qq),15)),$y(e,Uq,o),dg(t.b,o,e),o}(t,a,n,r),$y(a,Uq,s),dg(t.b,s,a));return Gh(yx(e,(DL(),Mq)),18).ib((YA(),YV)),zs(Gh(yx(e,(HL(),AR)),28))?$y(e,AR,(cS(),uB)):$y(e,AR,(cS(),cB)),a}(t,e,n,o,l,r),s=hb((Vp(n),r)),o==_U?(rv(s,Gh(ld(u.f,0),7)),nv(s,i)):(rv(s,i),nv(s,Gh(ld(u.f,0),7))),c=new x_(r,s,u,Gh(yx(u,(DL(),Uq)),7),o,!h)),rT(t.a,r,new gh(c.d,e,o)),c}function pO(t,e,n,r){var i,o,a,s,u,c,l;if(lr(o=new wk(t),(AS(),CH)),$y(o,(HL(),AR),(cS(),aB)),i=0,e){for($y(a=new bS,(DL(),Uq),e),$y(o,Uq,e.f),Hf(a,(uL(),BB)),tv(a,o),u=0,c=(l=Gh(Dk(e.b,Ey(wH,hj,12,e.b.c.length,0,1)),47)).length;u<c;++u)nv(l[u],a);$y(e,Jq,o),++i}if(n){for(s=new bS,$y(o,(DL(),Uq),n.f),$y(s,Uq,n),Hf(s,(uL(),yB)),tv(s,o),u=0,c=(l=Gh(Dk(n.e,Ey(wH,hj,12,n.e.c.length,0,1)),47)).length;u<c;++u)rv(l[u],s);$y(n,Jq,o),++i}return $y(o,(DL(),Cq),F_(i)),r.c[r.c.length]=o,o}function gO(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w;for(p=t.d,g=e.d,h=Gh(fE(t,(tm(),_U)).mb().H(),7),y=Gh(fE(t,EU).mb().H(),7),d=Gh(fE(e,_U).mb().H(),7),w=Gh(fE(e,EU).mb().H(),7),l=Gh(Dk(h.b,Ey(wH,hj,12,1,0,1)),47),v=Gh(Dk(y.e,Ey(wH,hj,12,1,0,1)),47),f=Gh(Dk(d.b,Ey(wH,hj,12,1,0,1)),47),b=Gh(Dk(w.e,Ey(wH,hj,12,1,0,1)),47),ev(t,g),r=0,s=f.length;r<s;++r)nv(f[r],h);for(i=0,u=b.length;i<u;++i)rv(b[i],y);for(ev(e,p),o=0,c=l.length;o<c;++o)nv(l[o],d);for(n=0,a=v.length;n<a;++n)rv(v[n],w)}function vO(t){var e,n,r,i,o,a,s;if(0!=(s=Gh(ld(t.f,0),7)).e.c.length&&0!=s.b.c.length)throw new xo("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges.");if(0!=s.e.c.length){for(o=QI,n=new $n(s.e);n.a<n.c.c.length;)e=Gh(Wv(n),12),r=Gh(yx(a=e.d.f,(HL(),gR)),65),o=Ho(o,a.i.a-r.b);return new Be(Od(o))}if(0!=s.b.c.length){for(i=JI,n=new $n(s.b);n.a<n.c.c.length;)e=Gh(Wv(n),12),r=Gh(yx(a=e.c.f,(HL(),gR)),65),i=Ro(i,a.i.a+a.j.a+r.c);return new Be(Od(i))}return ai(),ai(),gM}function bO(t,e,n){var r,i,o,a,s,u,c,l,f,h,d;for(c=0,l=(f=Gh(Dk(t.f,Ey(MH,yj,7,t.f.c.length,0,1)),346)).length;c<l;++c){if(u=f[c],n!=(tm(),_U))for(i=0,o=(s=Gh(Dk(u.e,Ey(wH,hj,12,u.e.c.length,0,1)),47)).length;i<o;++i)d=Gh(yx((r=s[i]).d.f,(RL(),FU)),85),!eo(no(Af(yx(r,(DL(),aU)))))&&(e!=(Hk(),bU)||d!=yU)&&HN(r,!0);if(n!=EU)for(i=0,o=(a=Gh(Dk(u.b,Ey(wH,hj,12,u.b.c.length,0,1)),47)).length;i<o;++i)h=Gh(yx((r=a[i]).c.f,(RL(),FU)),85),!eo(no(Af(yx(r,(DL(),aU)))))&&(e!=(Hk(),gU)||h!=vU)&&HN(r,!0)}}function yO(t,e){var n,r,i,o,a,s,u,c,l,f,h,d;s=0,d=0,u=ox(t.f,t.f.length),o=t.d,a=t.i,r=t.a,i=t.b;do{for(h=0,c=new $n(t.p);c.a<c.c.c.length;)f=jO(t,Gh(Wv(c),9)),n=!0,(t.q==(UT(),zF)||t.q==qF)&&(n=eo(no(Af(f.b)))),Gh(f.a,24).a<0&&n?(++h,u=ox(t.f,t.f.length),t.d=t.d+Gh(f.a,24).a,d+=o-t.d,o=t.d+Gh(f.a,24).a,a=t.i,r=qb(t.a),i=qb(t.b)):(t.f=ox(u,u.length),t.d=o,t.a=(Od(r),r?new hh((Yc(),r)):Dh(new $n(null))),t.b=(Od(i),i?new hh((Yc(),i)):Dh(new $n(null))),t.i=a);++s,l=0!=h&&eo(no(Af(e.B(new Qa(F_(d),F_(s))))))}while(l)}function wO(t,e,n,r){var i,o,a,s,u,c,l;if(!hl(new $n(Uk(t))))return r;for(l=Ux(Gh(hE(t,(HL(),yR)),86)),u=new $n(Uk(t));u.a<u.c.c.length;)s=Gh(Wv(u),129),(c=Ux(Gh(hE(s,yR),86)))==(BL(),xG)&&(c=l),hr(s,c.e),(i=aE(n,c)).c=Ro(i.c,s.e.j.a),i.b+=s.e.j.b+e;for(a=new Bd(new ir(n).a);dl(a.a);)switch(a.b=Kb(a.a),(i=Gh((o=new Du(a.c,a.b)).b.b[o.a.e],62)).b-=e,Gh(o.a,67).e){case 12:case 13:case 14:r.d=Ro(r.d,i.b+e);break;case 15:r.b=Ro(r.b,i.c+e);break;case 17:r.c=Ro(r.c,i.c+e);break;case 18:case 19:case 20:r.a=Ro(r.a,i.b+e)}return r}function mO(t,e,n){var r,i,o,a,s,u,c,l,f,h;for(yy(this),n==(av(),fV)?mp(this.g,t):mp(this.o,t),f=Ej,l=5e-324,s=new Yn(new zn(e.a).a.bb().mb());s.a.G();)i=Gh(s.a.H(),21),o=Gh(i.yb(),27),u=Gh(o.a,223),(c=(r=Gh(o.b,12)).c)==t&&(c=r.d),mp(u==fV?this.g:this.o,c),f=f<(h=Gm(_x(Oo(nD,1),RI,10,0,[c.f.i,c.i,c.a])).b)?f:h,l=l>h?l:h;for(nk(this,Gm(_x(Oo(nD,1),RI,10,0,[t.f.i,t.i,t.a])).b,f,l),a=new Yn(new zn(e.a).a.bb().mb());a.a.G();)i=Gh(a.a.H(),21),o=Gh(i.yb(),27),mp(this.c,Gh(o.b,12));this.f=!1}function xO(t,e,n,r){var i,o,a,s,u;if(!((s=(HL(),wR).b)in e.a)||!_g(e,s).ic().a){if(!(u=_g(e,MI)))throw new gp("Labels must have a property 'text'.",null,e);if(!u.lc())throw new gp("A label's 'text' property must be a string.",u,e);if($y(o=new xc(u.lc().a),(DL(),Uq),e),dg(t.f,o,e),zC(e,o),gS(e,o),fl(n,9)?Oh(Gh(n,9).c,o):fl(n,12)?Oh(Gh(n,12).b,o):fl(n,7)&&Oh(Gh(n,7).c,o),fl(n,12))switch(a=Gh(yx(o,nR),107),zC(e,o),$y(o,nR,a),i=Gh(yx(r,Mq),18),a.e){case 2:case 3:i.ib((YA(),zV));case 1:case 0:i.ib((YA(),HV)),$y(o,nR,(Im(),xD))}}}function _O(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v;for(i=0,o=0,u=new $n(t.a);u.a<u.c.c.length;)i=Ro(i,(a=Gh(Wv(u),9)).e.b),o=Ro(o,a.e.c);for(s=new $n(t.a);s.a<s.c.c.length;){switch(a=Gh(Wv(s),9),Gh(yx(a,(HL(),WD)),103).e){case 1:d=0;break;case 2:d=1;break;case 5:d=.5;break;default:for(n=0,l=0,h=new $n(a.f);h.a<h.c.c.length;)0==(f=Gh(Wv(h),7)).b.c.length||++n,0==f.e.c.length||++l;d=n+l==0?.5:l/(n+l)}g=t.c,c=a.j.a,v=(g.a-c)*d,d>.5?v-=2*o*(d-.5):d<.5&&(v+=2*i*(.5-d)),v<(r=a.e.b)&&(v=r),p=a.e.c,v>g.a-p-c&&(v=g.a-p-c),a.i.a=e+v}}function EO(){EO=r,VG=new Qi,YG=lN(_x(Oo(rD,1),kP,79,0,[(HL(),XD),aR])),HG=lN(_x(Oo(rD,1),kP,79,0,[xR,NR,(RL(),JU),sR,(DL(),nU),nX,WU])),DG=lN(_x(Oo(rD,1),kP,79,0,[$D,JD,wR,oR,lR,dR,pR,MR,DR,cR,CU,PU,IU,YU,RU,VU,tX,$U,AU])),GG=lN(_x(Oo(rD,1),kP,79,0,[bR,vR,hR,HR,mR,eU,xq,gq,sU,KU,DU,zU])),BG=lN(_x(Oo(rD,1),kP,79,0,[LR,WD,eR,rR,nR,iR,uR,_R,ER,kR,SR,CR,AR,OR,TU,LU,qU,jU,OU,UU,XU,BU,GU,FU,ZU,QU,eX,rX,HU])),RG=lN(_x(Oo(rD,1),kP,79,0,[yR,RR,BR,NU])),zG=lN(_x(Oo(rD,1),kP,79,0,[UD,ZD,fR,gR,TR,IR])),FG=lN(_x(Oo(rD,1),kP,79,0,[(Ax(),IG)]))}function kO(t){var e,n,r,i,o,a,s;for(e=0,o=new $n(t.b.a);o.a<o.c.c.length;)(r=Gh(Wv(o),78)).b=0,r.c=0;for(ET(t,0),cE(t,t.g),mN(t.c),di(t.c),b_(),n=gD,dN(fa(KO(dN(fa(KO(dN(KO(t.c,n)),f_(n)))),n))),KO(t.c,gD),M_(t,t.g),gT(t,0),JN(t,0),CA(t,1),ET(t,1),cE(t,t.d),mN(t.c),a=new $n(t.b.a);a.a<a.c.c.length;)e+=ka((r=Gh(Wv(a),78)).c);for(s=new $n(t.b.a);s.a<s.c.c.length;)(r=Gh(Wv(s),78)).b=0,r.c=0;for(n=yD,dN(fa(KO(dN(fa(KO(dN(di(KO(t.c,n))),f_(n)))),n))),KO(t.c,gD),M_(t,t.d),gT(t,1),JN(t,1),CA(t,0),di(t.c),i=new $n(t.b.a);i.a<i.c.c.length;)e+=ka((r=Gh(Wv(i),78)).c);return e}function SO(t){var e,n,r,i,o,a,s;for(e=new je,t.g=new je,t.d=new je,a=new zx(new Hn(t.f.b).a);a.b;)Oh(e,Gh(Gh((o=zw(a)).zb(),27).b,25)),ns(Gh(o.yb(),251).yc())?Oh(t.d,Gh(o.zb(),27)):Oh(t.g,Gh(o.zb(),27));for(cE(t,t.d),cE(t,t.g),t.c=new cT(t.b),ho(t.c,(fi(),$G)),M_(t,t.d),M_(t,t.g),Jm(e,t.c.a.b),t.e=new Za(QI,QI),t.a=new Za(JI,JI),r=new $n(e);r.a<r.c.c.length;)n=Gh(Wv(r),25),t.e.a=Ho(t.e.a,n.j.d),t.e.b=Ho(t.e.b,n.j.e),t.a.a=Ro(t.a.a,n.j.d+n.j.c),t.a.b=Ro(t.a.b,n.j.e+n.j.b);fo(t.c,new A),s=0;do{i=kO(t),++s}while((s<2||i>iI)&&s<10);fo(t.c,new N),kO(t),function(t){KO(t,(b_(),gD)),t.e=!0}(t.c),function(t){var e,n,r,i,o,a,s;for(i=new $n(t.a.b);i.a<i.c.c.length;)Gh(Wv(i),25).vc();for(s=new Za(QI,QI),e=new Za(JI,JI),r=new $n(t.a.b);r.a<r.c.c.length;)n=Gh(Wv(r),25),s.a=Ho(s.a,n.j.d),s.b=Ho(s.b,n.j.e),e.a=Ro(e.a,n.j.d+n.j.c),e.b=Ro(e.b,n.j.e+n.j.b);for(a=Bp(t.c).mb();a.G();)o=Gh(a.H(),27),n=Gh(o.b,25),s.a=Ho(s.a,n.j.d),s.b=Ho(s.b,n.j.e),e.a=Ro(e.a,n.j.d+n.j.c),e.b=Ro(e.b,n.j.e+n.j.b);t.d=Dl(new Za(s.a,s.b)),t.e=Pf(new Za(e.a,e.b),s),t.a.a.c=Ey(fM,kP,1,0,4,1),t.a.b.c=Ey(fM,kP,1,0,4,1)}(t.f)}function CO(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v;for(s=Gh(fC(t,(uL(),BB)).mb().H(),7).b,f=Gh(fC(t,yB).mb().H(),7).e,a=s.c.length,v=Iv(Gh(ld(t.f,0),7));a-- >0;){for(my(0,s.c.length),d=Gh(s.c[0],12),my(0,f.c.length),i=Ky((r=Gh(f.c[0],12)).d.b,r,0),zv(d,r.d,i),rv(r,null),nv(r,null),h=d.a,e&&Nh(h,new Uu(v)),n=_k(r.a,0);n.b!=n.d.c;)Nh(h,new Uu(Gh(Cb(n),10)));for(g=d.b,l=new $n(r.b);l.a<l.c.c.length;)c=Gh(Wv(l),33),g.c[g.c.length]=c;if(p=Gh(yx(d,(HL(),fR)),44),o=Gh(yx(r,fR),44))for(p||(p=new Br,$y(d,fR,p)),u=_k(o,0);u.b!=u.d.c;)Nh(p,new Uu(Gh(Cb(u),10)))}}function TO(t,e,n){var r,i,o,a,s;if(!(o=Tv(Xk(t))).Nb().V()){switch(s=0,Gh(t.e,7).g.e){case 4:case 2:s=e&&eo(no(Af(yx(Gh(t.e,7),(DL(),Rq)))))?t.e.j.b:(t.e.j.b-Gh(o.Nb().sb(0),129).pc().b)/2-n;break;case 1:s=t.e.j.b;break;case 3:s=0}for(Gh(t.e,7).g==(uL(),DB)&&Jv(o),i=new $n(Xk(t));i.a<i.c.c.length;){switch(r=Gh(Wv(i),129),a=new Uu(t.e.i),Gh(t.e,7).g.e){case 4:a.a=t.e.j.a+n,a.b=s+n,s+=n+r.e.j.b;break;case 2:a.a=-r.e.j.a-n,a.b=s+n,s+=n+r.e.j.b;break;case 1:a.a=(t.e.j.a-r.e.j.a)/2,a.b=s+n,s+=n+r.e.j.b;break;case 3:a.a=(t.e.j.a-r.e.j.a)/2,a.b=s-n-r.e.j.b,s-=n+r.e.j.b}r.e.i.a=a.a,r.e.i.b=a.b}}}function AO(t,e){var n,r,i,o,a,s,u,c,l;for(t.a=new vp(function(t){var e;return new qh(e=Gh(t.e&&t.e(),11),Gh(xp(e,e.length),11),e.length)}(SD)),r=new $n(e.a);r.a<r.c.c.length;){for(n=Gh(Wv(r),347),a=new YE(_x(Oo(ZG,1),kP,25,0,[])),Oh(t.a.a,a),u=new $n(n.d);u.a<u.c.c.length;)IO(c=new el(t,s=Gh(Wv(u),62)),Gh(yx(n.c,(DL(),Lq)),18)),Vy(t.g,n)||(dg(t.g,n,new Za(s.d,s.e)),dg(t.f,n,c)),Oh(t.a.b,c),Ym(a,c);for(o=new $n(n.b);o.a<o.c.c.length;)c=new el(t,(i=Gh(Wv(o),251)).Bc()),dg(t.b,i,new Qa(a,c)),IO(c,Gh(yx(n.c,(DL(),Lq)),18)),i.zc()&&(IO(l=new rm(t,i.zc(),1),Gh(yx(n.c,Lq),18)),Ym(new YE(_x(Oo(ZG,1),kP,25,0,[])),l),rT(t.c,i.yc(),new Qa(a,l)))}return t.a}function NO(t,e,n){var r,i,o,a,s,u;for(this.g=t,s=e.d.length,u=n.d.length,this.d=Ey(TH,qI,9,s+u,0,1),a=0;a<s;a++)this.d[a]=e.d[a];for(o=0;o<u;o++)this.d[s+o]=n.d[o];if(e.e){if(this.e=Rh(e.e),this.e.nb(n),n.e)for(i=n.e.mb();i.G();)(r=Gh(i.H(),102))!=e&&(this.e.kb(r)?--r.c:this.e.ib(r))}else n.e&&(this.e=Rh(n.e),this.e.nb(e));this.f=e.f+n.f,this.a=e.a+n.a,this.a>0?Nw(this,this.f/this.a):null!=sl(e.g,e.d[0]).a&&null!=sl(n.g,n.d[0]).a?Nw(this,(no(sl(e.g,e.d[0]).a)+no(sl(n.g,n.d[0]).a))/2):null!=sl(e.g,e.d[0]).a?Nw(this,sl(e.g,e.d[0]).a):null!=sl(n.g,n.d[0]).a&&Nw(this,sl(n.g,n.d[0]).a)}function OO(t,e){var n,r,i,o,a,s,u,c,l,f,h;switch(t.g.e){case 1:if(r=Gh(yx(t,(DL(),Uq)),12),(n=Gh(yx(r,Xq),44))?eo(no(Af(yx(r,aU))))&&(n=wx(n)):n=new Br,c=Gh(yx(t,zq),7),e<=(l=Gm(_x(Oo(nD,1),RI,10,0,[c.f.i,c.i,c.a]))).a)return l.b;if(Ob(n,l,n.a,n.a.a),f=Gh(yx(t,Yq),7),(h=Gm(_x(Oo(nD,1),RI,10,0,[f.f.i,f.i,f.a]))).a<=e)return h.b;for(Ob(n,h,n.c.b,n.c),a=Gh(Cb(u=_k(n,0)),10),s=Gh(Cb(u),10);s.a<e&&u.b!=u.d.c;)a=s,s=Gh(Cb(u),10);return a.b+(e-a.a)/(s.a-a.a)*(s.b-a.b);case 3:switch(i=(o=Gh(yx(Gh(ld(t.f,0),7),(DL(),Uq)),7)).f,o.g.e){case 1:return i.i.b;case 3:return i.i.b+i.j.b}}return vS(t).b}function LO(t){var e,n,r,i,o,a,s,u,c,l,f,h;if(l=Xu(yx(t.c.f,(DL(),Vq)))===Xu(yx(t.d.f,Vq)),a=new ao,(n=Gh(yx(t,(HL(),ZD)),44))&&n.b>=2)for(Cg(t.a),r=0,h=_k(n,0);h.b!=h.d.c;)f=Gh(Cb(h),10),0==r?(e=Pf(Pf(new Za(f.a,f.b),t.c.i),t.c.f.i),t.c.a.a=e.a,t.c.a.b=e.b):r==n.b-1?(e=Pf(Pf(new Za(f.a,f.b),t.d.i),t.d.f.i),t.d.a.a=e.a,t.d.a.b=e.b):Nh(t.a,f),++r;if(l)for(u=_k(t.a,0);u.b!=u.d.c;)s=Gh(Cb(u),10),a.a=Ro(a.a,s.a),a.b=Ro(a.b,s.b);for(o=new $n(t.b);o.a<o.c.c.length;)i=Gh(Wv(o),33),(c=Gh(yx(i,IR),10))&&(i.i.a=c.a,i.i.b=c.b),l&&(a.a=Ro(a.a,i.i.a+i.j.a),a.b=Ro(a.b,i.i.b+i.j.b));return a}function PO(t,e,n){var r,i,o,a,s,u,c;if(OC(e),r=Gh(yx(n,(DL(),Mq)),18),$y(a=new wk(n),Uq,e),Oh(n.b,a),o=Gh(_g(e,"id"),97),Rv(t.i,o.a,a),dg(t.j,a,e),zC(e,a),gS(e,a),"ports"in e.a){if(!(c=_g(e,"ports")).hc())throw new gp("The 'ports' property of the node must be an array.",c,e);for(u=c.hc(),i=0;i<u.a.length;++i)fl(Tw(u,i),69)&&aO(t,Gh(Tw(u,i),69),a,n)}return aT(t,e,a,n),VI in e.a&&_g(e,VI).hc().a.length>0&&$y(a,kq,(Hd(),Hd(),vX)),(s=Gh(yx(a,(HL(),AR)),28))==(cS(),lB)||s!=cB&&r.ib((YA(),UV)),eo(no(Af(yx(a,JD))))&&r.ib((YA(),FV)),eo(no(Af(yx(a,cR))))&&(r.ib((YA(),qV)),r.ib(VV),$y(a,AR,cB)),a}function IO(t,e){e.V()&&Ah(t.n,!0,!0,!0,!0),e.t((uL(),SB))&&Ah(t.n,!0,!0,!0,!1),e.t(mB)&&Ah(t.n,!1,!0,!0,!0),e.t(IB)&&Ah(t.n,!0,!0,!1,!0),e.t(MB)&&Ah(t.n,!0,!1,!0,!0),e.t(CB)&&Ah(t.n,!1,!0,!0,!1),e.t(xB)&&Ah(t.n,!1,!0,!1,!0),e.t(jB)&&Ah(t.n,!0,!1,!1,!0),e.t(PB)&&Ah(t.n,!0,!1,!0,!1),e.t(OB)&&Ah(t.n,!0,!0,!0,!0),e.t(EB)&&Ah(t.n,!0,!0,!0,!0),e.t(OB)&&Ah(t.n,!0,!0,!0,!0),e.t(_B)&&Ah(t.n,!0,!0,!0,!0),e.t(LB)&&Ah(t.n,!0,!0,!0,!0),e.t(NB)&&Ah(t.n,!0,!0,!0,!0),e.t(AB)&&Ah(t.n,!0,!0,!0,!0)}function jO(t,e){var n,r,i,o,a,s,u,c,l;for(s=!0,i=0,u=t.f[e.k],c=e.j.b+t.n,n=t.c[e.k][2],$b(t.a,u,F_(Gh(ld(t.a,u),24).a-1+n)),$b(t.b,u,no(Nf(ld(t.b,u)))-c+n*t.e),++u>=t.i?(++t.i,Oh(t.a,F_(1)),Oh(t.b,c)):(r=t.c[e.k][1],$b(t.a,u,F_(Gh(ld(t.a,u),24).a+1-r)),$b(t.b,u,no(Nf(ld(t.b,u)))+c-r*t.e)),(t.q==(UT(),zF)&&(Gh(ld(t.a,u),24).a>t.j||Gh(ld(t.a,u-1),24).a>t.j)||t.q==qF&&(no(Nf(ld(t.b,u)))>t.k||no(Nf(ld(t.b,u-1)))>t.k))&&(s=!1),o=Sp(G_(e));X_(o);)a=Gh(xv(o),12).c.f,t.f[a.k]==u&&(i+=Gh((l=jO(t,a)).a,24).a,s=s&&eo(no(Af(l.b))));return t.f[e.k]=u,new Qa(F_(i+=t.c[e.k][0]),(Hd(),s?vX:gX))}function MO(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v,b;if(h=new Uu(t.j),b=e.a/h.a,s=e.b/h.b,g=e.a-h.a,o=e.b-h.b,n)for(i=Xu(yx(t,(HL(),AR)))===Xu((cS(),aB)),p=new $n(t.f);p.a<p.c.c.length;)switch((d=Gh(Wv(p),7)).g.e){case 1:i||(d.i.a*=b);break;case 2:d.i.a+=g,i||(d.i.b*=s);break;case 3:i||(d.i.a*=b),d.i.b+=o;break;case 4:i||(d.i.b*=s)}for(c=new $n(t.c);c.a<c.c.c.length;)l=(u=Gh(Wv(c),33)).i.a+u.j.a/2,f=u.i.b+u.j.b/2,(v=l/h.a)+(a=f/h.b)>=1&&(v-a>0&&f>=0?(u.i.a+=g,u.i.b+=o*a):v-a<0&&l>=0&&(u.i.a+=g*v,u.i.b+=o));t.j.a=e.a,t.j.b=e.b,$y(t,(HL(),RR),(kE(),new qh(r=Gh(na(ZB),11),Gh(_p(r,r.length),11),0)))}function DO(t){var e,n,r,i,o,a,s,u,c,l;for(r=new je,a=new $n(t.e.a);a.a<a.c.c.length;){for(l=0,(i=Gh(Wv(a),61)).k.c=Ey(fM,kP,1,0,4,1),n=new $n(W_(i));n.a<n.c.c.length;)(e=Gh(Wv(n),89)).e&&(Oh(i.k,e),++l);1==l&&(r.c[r.c.length]=i)}for(o=new $n(r);o.a<o.c.c.length;)for(i=Gh(Wv(o),61);1==i.k.c.length;){for(c=Gh(Wv(new $n(i.k)),89),t.b[c.b]=c.f,s=c.c,u=c.d,n=new $n(W_(i));n.a<n.c.c.length;)(e=Gh(Wv(n),89))==c||(e.e?s==e.c||u==e.d?t.b[c.b]-=t.b[e.b]-e.f:t.b[c.b]+=t.b[e.b]-e.f:i==s?e.c==i?t.b[c.b]+=e.f:t.b[c.b]-=e.f:e.c==i?t.b[c.b]-=e.f:t.b[c.b]+=e.f);Dy(s.k,c),Dy(u.k,c),i=s==i?c.d:c.c}}function RO(t){var e,n,r,i,o,a,s,u,c;for(u=new so,a=new so,i=new $n(t);i.a<i.c.c.length;)(n=Gh(Wv(i),77)).e=n.d.c.length,n.k=n.j.c.length,0==n.e&&Ob(u,n,u.c.b,u.c),0==n.k&&0==n.g.a.Y()&&Ob(a,n,a.c.b,a.c);for(o=-1;0!=u.b;)for(e=new $n((n=Gh(Zk(u,0),77)).j);e.a<e.c.c.length;)(c=Gh(Wv(e),117).b).n=Go(c.n,n.n+1),o=Go(o,c.n),--c.e,0==c.e&&Ob(u,c,u.c.b,u.c);if(o>-1){for(r=_k(a,0);r.b!=r.d.c;)(n=Gh(Cb(r),77)).n=o;for(;0!=a.b;)for(e=new $n((n=Gh(Zk(a,0),77)).d);e.a<e.c.c.length;)0==(s=Gh(Wv(e),117).a).g.a.Y()&&(s.n=zo(s.n,n.n-1),--s.k,0==s.k&&Ob(a,s,a.c.b,a.c))}}function BO(t,e){var n,r,i,o,a,s,u,c,l;return 0==(oi(),e.length)?t.fc(nP,eP,-1,-1):(Mi((l=sS(e)).substr(0,3),"at ")&&(l=Eh(l,3,l.length-3)),-1==(a=(l=l.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(a=l.indexOf("@"))?(c=l,l=""):(c=sS(Eh(l,a+1,l.length-(a+1))),l=sS(l.substr(0,a))):(n=l.indexOf(")",a),c=l.substr(a+1,n-(a+1)),l=sS(l.substr(0,a))),-1!=(a=function(t,e){return oi(),t.indexOf(e)}(l,gC(46)))&&(l=Eh(l,a+1,l.length-(a+1))),(0==l.length||Mi(l,"Anonymous function"))&&(l=eP),s=function(t,e){return oi(),t.lastIndexOf(e)}(c,gC(58)),i=function(t,e,n){return oi(),t.lastIndexOf(e,n)}(c,gC(58),s-1),u=-1,r=-1,o=nP,-1!=s&&-1!=i&&(o=c.substr(0,i),u=uf(c.substr(i+1,s-(i+1))),r=uf(Eh(c,s+1,c.length-(s+1)))),t.fc(o,l,u,r))}function GO(t,e,n){var r,i,o,a,s,u,c,l,f,h,d;if(eo(no(Af(yx(n,(HL(),MR))))))for(o=new $n(n.f);o.a<o.c.c.length;)for(i=Gh(Wv(o),7),s=0,u=(c=Gh(Dk(i.e,Ey(wH,hj,12,i.e.c.length,0,1)),47)).length;s<u;++s)(a=c[s]).d.f==n&&eo(no(Af(yx(a,MR))))&&(f=a.c,(l=Gh(Up(t.b,f),9))||($y(l=aL(f,(cS(),cB),f.g,-1,f.j,Gh(yx(e,eR),59),e),(DL(),Uq),f),dg(t.b,f,l),Oh(e.b,l)),d=a.d,(h=Gh(Up(t.b,d),9))||($y(h=aL(d,(cS(),cB),d.g,1,d.j,Gh(yx(e,eR),59),e),(DL(),Uq),d),dg(t.b,d,h),Oh(e.b,h)),rv(r=hb(a),Gh(ld(l.f,0),7)),nv(r,Gh(ld(h.f,0),7)),rT(t.a,a,new gh(r,e,(tm(),EU))),Gh(yx(e,(DL(),Mq)),18).ib((YA(),YV)))}function HO(t,e,n,r){var i,a,s,u,c,l,f,h,d,p;for(h=function(t,e,n){var r,i,o,a,s,u,c,l,f;for(r=n.c,i=n.d,s=Iv(e.c),u=Iv(e.d),r==e.c?(s=ZC(t,s,i),u=tC(e.d)):(s=tC(e.c),u=ZC(t,u,i)),Ob(c=new Tf(e.a),s,c.a,c.a.a),Ob(c,u,c.c.b,c.c),a=e.c==r,f=new Ir,o=0;o<c.b-1;++o)l=new Qa(Gh(tk(c,o),10),Gh(tk(c,o+1),10)),a&&0==o||!a&&o==c.b-2?f.b=l:Oh(f.a,l);return f}(t,e,a=new tT(e)),p=Ro(Gh(yx(e,(HL(),HR)),15).a,1),f=new $n(h.a);f.a<f.c.c.length;)l=Gh(Wv(f),27),c=Zm(Gh(l.a,10),Gh(l.b,10),p),o=!0,o&=Ch(n,new Za(c.d,c.e)),o&=Ch(n,jl(new Za(c.d,c.e),c.c,0)),o&=Ch(n,jl(new Za(c.d,c.e),0,c.b)),o,Ch(n,jl(new Za(c.d,c.e),c.c,c.b));switch(d=a.d,u=Zm(Gh(h.b.a,10),Gh(h.b.b,10),p),d==(uL(),BB)||d==yB?(r.c[d.e]=Ho(r.c[d.e],u.e),r.b[d.e]=Ro(r.b[d.e],u.e+u.b)):(r.c[d.e]=Ho(r.c[d.e],u.d),r.b[d.e]=Ro(r.b[d.e],u.d+u.c)),i=JI,s=a.c.f.e,d.e){case 4:i=s.c;break;case 2:i=s.b;break;case 1:i=s.a;break;case 3:i=s.d}return r.a[d.e]=Ro(r.a[d.e],i),a}function FO(t){var e,n,r,i,o,a,s,u;for(i=t.f,r=Wp(iv(t)),u=_k(Rh(t.g),0);u.b!=u.d.c;)if(0==(s=Gh(Cb(u),7)).e.c.length){for(e=new $n(s.b);e.a<e.c.c.length;)if(n=Gh(Wv(e),12).c,r.a.R(n)){for(Nc((o=new Uv(i.f,0)).b<o.d.Y()),a=Gh(o.d.sb(o.c=o.b++),7);a!=s;)Nc(o.b<o.d.Y()),a=Gh(o.d.sb(o.c=o.b++),7);eh(o,n),wp(u,n),wT(n,s.g),$v(u),$v(u),r.a.eb(n)}}else for(e=new $n(s.e);e.a<e.c.c.length;)if(n=Gh(Wv(e),12).d,r.a.R(n)){for(Nc((o=new Uv(i.f,0)).b<o.d.Y()),a=Gh(o.d.sb(o.c=o.b++),7);a!=s;)Nc(o.b<o.d.Y()),a=Gh(o.d.sb(o.c=o.b++),7);Nc(o.b>0),o.a.sb(o.c=--o.b),eh(o,n),wp(u,n),wT(n,s.g),$v(u),$v(u),r.a.eb(n)}}function zO(t){var e,n,r,i,o,a,s,u;for(e=null,r=new $n(t);r.a<r.c.c.length;)no(sl((n=Gh(Wv(r),102)).g,n.d[0]).a),n.b=null,n.e&&n.e.Y()>0&&0==n.c&&(!e&&(e=new je),e.c[e.c.length]=n);if(e)for(;0!=e.c.length;){if((n=Gh(gy(e,0),102)).b&&n.b.c.length>0)for(!n.b&&(n.b=new je),o=new $n(n.b);o.a<o.c.c.length;)if(no(sl((i=Gh(Wv(o),102)).g,i.d[0]).a)==no(sl(n.g,n.d[0]).a)){if(Ky(t,i,0)>Ky(t,n,0))return new Qa(i,n)}else if(no(sl(i.g,i.d[0]).a)>no(sl(n.g,n.d[0]).a))return new Qa(i,n);for(s=(!n.e&&(n.e=new je),n.e).mb();s.G();)!(a=Gh(s.H(),102)).b&&(a.b=new je),wy(0,(u=a.b).c.length),Su(u.c,0,n),a.c==u.c.length&&(e.c[e.c.length]=a)}return null}function YO(t,e){var n,r,i,o,a,s,u,c,l;if(1!=Xp(H_(e))||Gh(Gv(H_(e)),12).d.f.g!=(AS(),kH))return null;for(lr(n=(o=Gh(Gv(H_(e)),12)).d.f,(AS(),xH)),$y(n,(DL(),zq),null),$y(n,Yq,null),$y(n,(HL(),AR),Gh(yx(e,AR),28)),$y(n,yR,Gh(yx(e,yR),86)),i=yx(o.c,Uq),a=null,c=fC(n,(uL(),yB)).mb();c.G();)if(0!=(s=Gh(c.H(),7)).e.c.length){$y(s,Uq,i),l=o.c,s.j.a=l.j.a,s.j.b=l.j.b,s.a.a=l.a.a,s.a.b=l.a.b,Jm(s.c,l.c),l.c.c=Ey(fM,kP,1,0,4,1),a=s;break}if($y(o.c,Uq,null),!rb(fC(e,yB)))for(u=new $n(qb(fC(e,yB)));u.a<u.c.c.length;)0==(s=Gh(Wv(u),7)).e.c.length?(Hf(r=new bS,yB),r.j.a=s.j.a,r.j.b=s.j.b,tv(r,n),$y(r,Uq,yx(s,Uq)),tv(s,null)):tv(a,n);return n.j.b=e.j.b,Oh(t.b,n),n}function VO(t){var e,n,r,i,o,a,s,u,c;if(a=new Uu(o=t.e.e.j),u=Gh(hE(t.e,(HL(),RR)),86),c=Gh(hE(t.e,BR),86),s=Gh(hE(t.e,AR),28),e=ql(u,(kE(),VB)),0!=u.c){switch(o.a=0,o.b=0,r=null,s.e){case 1:case 2:case 3:r=function(t,e){var n,r,i;return t.b?(i=(r=Gh(hE(t.e,(HL(),UD)),65)).b+r.c,n=r.d+r.a):(i=2*e,n=2*e),new Za(Ro(t.o[1]>0?i+t.i[1]*e+t.n[1]:0,t.o[3]>0?i+t.i[3]*e+t.n[3]:0),Ro(t.o[4]>0?n+t.i[4]*e+t.n[4]:0,t.o[2]>0?n+t.i[2]*e+t.n[2]:0))}(t,t.k);break;case 4:r=new Uu(a);break;case 5:r=function(t,e){var n,r,i,o,a;for(a=new ao,o=new $n(iS(t));o.a<o.c.c.length;)switch(i=Gh(Wv(o),161),Gh(i.e,7).g.e){case 4:case 2:a.b=Ro(a.b,i.e.i.b+i.e.j.b+(e?(r=Gh(i.e,7).d,new xf(r.d,r.b,r.a,r.c)).a:0));break;case 1:case 3:a.a=Ro(a.a,i.e.i.a+i.e.j.a+(e?(n=Gh(i.e,7).d,new xf(n.d,n.b,n.a,n.c)).c:0))}return a}(t.e,e)}ql(u,YB)&&(r&&(o.a=Ro(o.a,r.a),o.b=Ro(o.b,r.b)),e&&(o.a=Ro(o.a,t.q.b+t.q.c+t.k),o.b=Ro(o.b,t.q.d+t.q.a+t.k))),ql(u,zB)&&hl(new $n(Uk(t.e)))&&function(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p;for(u=0,c=0,p=0,d=0,a=0,h=0,f=0,l=0,o=new Bd(new ir(t.c).a);dl(o.a);)switch(o.b=Kb(o.a),r=Gh((i=new Du(o.c,o.b)).b.b[i.a.e],62),Gh(i.a,67).e){case 12:case 13:case 14:h+=r.c+e;break;case 15:case 16:case 17:f+=r.c+e,a=Ro(a,r.b+e);break;case 18:case 19:case 20:l+=r.c+e;break;case 0:case 1:case 2:p+=r.c+e;break;case 3:case 4:case 5:d+=r.c+e;break;case 6:case 7:case 8:u+=r.b+e;break;case 9:case 10:case 11:c+=r.b+e}u-=e,c-=e,p-=e,d-=e,h+=0!=h?e:0,f+=0!=f?e:0,l+=0!=l?e:0,s=t.p.d+a+t.p.a,s+=0!=s?e:0,n.a=Ro(n.a,p),n.a=Ro(n.a,h),n.a=Ro(n.a,f),n.a=Ro(n.a,l),n.a=Ro(n.a,d),n.b=Ro(n.b,u),n.b=Ro(n.b,s),n.b=Ro(n.b,c)}(t,t.d,o),ql(u,FB)&&(i=Gh(hE(t.e,bR),15).a,n=Gh(hE(t.e,vR),15).a,ql(c,(jS(),$B))&&(i<=0&&(i=20),n<=0&&(n=20)),ql(c,KB)?(i>0&&(o.a=Ro(o.a,i+t.q.b+t.q.c)),n>0&&(o.b=Ro(o.b,n+t.q.d+t.q.a))):(i>0&&(o.a=Ro(o.a,i)),n>0&&(o.b=Ro(o.b,n)))),function(t,e){t.e.j.a=e.a,t.e.j.b=e.b}(t.e,o)}}function qO(t,e,n){var r,i,o,a,s,u,c,l,f,h,d;if(!t.b)return!1;for(a=null,h=null,i=1,(u=new Yy(null,null)).a[1]=t.b,f=u;f.a[i];)c=i,s=h,h=f,f=f.a[i],i=(r=t.a.$b(e,f.d))<0?0:1,0==r&&(!n.c||xg(f.e,n.d))&&(a=f),f&&f.b||Yo(f.a[i])||(Yo(f.a[1-i])?h=h.a[c]=gm(f,i):Yo(f.a[1-i])||(d=h.a[1-c])&&(Yo(d.a[1-c])||Yo(d.a[c])?(o=s.a[1]==h?1:0,Yo(d.a[c])?s.a[o]=Kv(h,c):Yo(d.a[1-c])&&(s.a[o]=gm(h,c)),f.b=s.a[o].b=!0,s.a[o].a[0].b=!1,s.a[o].a[1].b=!1):(h.b=!1,d.b=!0,f.b=!0)));return a&&(n.b=!0,n.d=a.e,f!=a&&(function(t,e,n,r){var i,o;for(i=null==(o=e).d||t.a.$b(n.d,o.d)>0?1:0;o.a[i]!=n;)o=o.a[i],i=t.a.$b(n.d,o.d)>0?1:0;o.a[i]=r,r.b=n.b,r.a[0]=n.a[0],r.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}(t,u,a,l=new Yy(f.d,f.e)),h==a&&(h=l)),h.a[h.a[1]==f?1:0]=f.a[f.a[0]?0:1],--t.c),t.b=u.a[1],t.b&&(t.b.b=!1),n.b}function UO(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p;for(h=new $n(t);h.a<h.c.c.length;){for(Il((f=Gh(Wv(h),9)).i),Il(f.j),OA(f),WT(f),p=new $n(f.f);p.a<p.c.c.length;){for(Il((d=Gh(Wv(p),7)).i),Il(d.a),Il(d.j),Hf(d,hk(d.g)),(i=Gh(yx(d,(HL(),NR)),24))&&$y(d,NR,F_(-i.a)),r=new $n(d.e);r.a<r.c.c.length;){for(e=_k((n=Gh(Wv(r),12)).a,0);e.b!=e.d.c;)Il(Gh(Cb(e),10));if(a=Gh(yx(n,fR),44))for(o=_k(a,0);o.b!=o.d.c;)Il(Gh(Cb(o),10));for(c=new $n(n.b);c.a<c.c.c.length;)Il((s=Gh(Wv(c),33)).i),Il(s.j)}for(l=new $n(d.c);l.a<l.c.c.length;)Il((s=Gh(Wv(l),33)).i),Il(s.j)}for(f.g==(AS(),_H)&&($y(f,(DL(),Iq),hk(Gh(yx(f,Iq),32))),vA(f)),u=new $n(f.c);u.a<u.c.c.length;)Il((s=Gh(Wv(u),33)).j),Il(s.i)}}function XO(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v,b,y;for(function(t){if(!t)throw new zi("An element is null. The origin of an edge could not be determined, this might be due to an inconsistency within the internal element mappings.")}(n),N_(e.d.f,e.c.f)?(l=e.c,jl(f=Gm(_x(Oo(nD,1),RI,10,0,[l.i,l.a])),-(c=l.f.b).b,-c.d),f.a-=r.a,f.b-=r.b):f=Iv(e.c),f.a+=r.a,f.b+=r.b,ay(t,h=new Yi,"x",f.a),ay(t,h,"y",f.b),Wy(n,"sourcePoint",h),d=Iv(e.d),null!=yx(e,(DL(),dU))&&Lf(d,Gh(yx(e,dU),10)),Lf(d,r),ay(t,p=new Yi,"x",d.a),ay(t,p,"y",d.b),Wy(n,"targetPoint",p),i=new or,o=0,b=_k(y=Nm(e.a,r),0);b.b!=b.d.c;)g=Gh(Cb(b),10),ay(t,u=new Yi,"x",g.a),ay(t,u,"y",g.b),Lp(i,o++,u);if(0==y.b?Wy(n,GI,null):Wy(n,GI,i),o=0,a=Gh(yx(e,(HL(),fR)),44)){for(Nm(a,r),s=new or,v=_k(a,0);v.b!=v.d.c;)g=Gh(Cb(v),10),ay(t,u=new Yi,"x",g.a),ay(t,u,"y",g.b),Lp(s,o++,u);Wy(n,HI,s)}else Wy(n,HI,null)}function WO(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v,b;if(g=t.i,v=t.j,h=t.e,e){for(f=r/2*(e.Y()-1),d=0,c=e.mb();c.G();)f+=(s=Gh(c.H(),9)).j.a,d=Ro(d,s.j.b);for(b=g.a-(f-v.a)/2,a=g.b-h.d+d,o=i=v.a/(e.Y()+1),u=e.mb();u.G();)(s=Gh(u.H(),9)).i.a=b,s.i.b=a-s.j.b,b+=s.j.a+r/2,(l=JT(s)).i.a=s.j.a/2-l.a.a,l.i.b=s.j.b,(p=Gh(yx(s,(DL(),Eq)),7)).b.c.length+p.e.c.length==1&&(p.i.a=o-p.a.a,p.i.b=0,tv(p,t)),o+=i}if(n){for(f=r/2*(n.Y()-1),d=0,c=n.mb();c.G();)f+=(s=Gh(c.H(),9)).j.a,d=Ro(d,s.j.b);for(b=g.a-(f-v.a)/2,a=g.b+v.b+h.a-d,o=i=v.a/(n.Y()+1),u=n.mb();u.G();)(s=Gh(u.H(),9)).i.a=b,s.i.b=a,b+=s.j.a+r/2,(l=JT(s)).i.a=s.j.a/2-l.a.a,l.i.b=0,(p=Gh(yx(s,(DL(),Eq)),7)).b.c.length+p.e.c.length==1&&(p.i.a=o-p.a.a,p.i.b=v.b,tv(p,t)),o+=i}}function $O(t,e,n,r,i){var o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_;for(_=0,d=0,f=new $n(e.f);f.a<f.c.c.length;){for(l=Gh(Wv(f),9),h=0,s=0,c=(u=n?Gh(yx(l,Wz),24).a:lP)>(b=r?Gh(yx(l,$z),24).a:lP)?u:b,w=new $n(l.f);w.a<w.c.c.length;){if(y=Gh(Wv(w),7),m=l.i.b+y.i.b+y.a.b,r)for(a=new $n(y.e);a.a<a.c.c.length;)p=(g=(o=Gh(Wv(a),12)).d).f,e!=t.a[p.k]&&(v=Go(Gh(yx(p,Wz),24).a,Gh(yx(p,$z),24).a),(x=Gh(yx(o,(DL(),nU)),24).a)>=c&&x>=v&&(h+=p.i.b+g.i.b+g.a.b-m,++s));if(n)for(a=new $n(y.b);a.a<a.c.c.length;)p=(g=(o=Gh(Wv(a),12)).c).f,e!=t.a[p.k]&&(v=Go(Gh(yx(p,Wz),24).a,Gh(yx(p,$z),24).a),(x=Gh(yx(o,(DL(),nU)),24).a)>=c&&x>=v&&(h+=p.i.b+g.i.b+g.a.b-m,++s))}s>0&&(_+=h/s,++d)}d>0?(e.a=i*_/d,e.i=d):(e.a=0,e.i=0)}function KO(t,e){var n;if(t.e)throw new xo((Gf(rH),"The "+rH.j+nj));if(!function(t,e){return ql(t.c,e)}(t.a,e))throw new Ci("The direction "+e+" is not supported by the CGraph instance.");if(e==t.d)return t;switch(n=t.d,t.d=e,n.e){case 0:switch(e.e){case 2:hx(t);break;case 1:$E(t),hx(t);break;case 4:PS(t),hx(t);break;case 3:PS(t),$E(t),hx(t)}break;case 2:switch(e.e){case 1:$E(t),eN(t);break;case 4:PS(t),hx(t);break;case 3:PS(t),$E(t),hx(t)}break;case 1:switch(e.e){case 2:$E(t),eN(t);break;case 4:$E(t),PS(t),hx(t);break;case 3:$E(t),PS(t),$E(t),hx(t)}break;case 4:switch(e.e){case 2:PS(t),hx(t);break;case 1:PS(t),$E(t),hx(t);break;case 3:$E(t),eN(t)}break;case 3:switch(e.e){case 2:$E(t),PS(t),hx(t);break;case 1:$E(t),PS(t),$E(t),hx(t);break;case 4:$E(t),eN(t)}}return t}function ZO(t,e,n){var r,i,o,a,s,u,c,l;if(!t.a[e.d.k][e.k].e){for(t.a[e.d.k][e.k].e=!0,t.a[e.d.k][e.k].b=0,t.a[e.d.k][e.k].d=0,t.a[e.d.k][e.k].a=null,l=new $n(e.f);l.a<l.c.c.length;)for(c=Gh(Wv(l),7),u=(n?new cn(c):new fn(c)).mb();u.G();)(a=(s=Gh(u.H(),7)).f).d==e.d?a!=e&&(ZO(t,a,n),t.a[e.d.k][e.k].b+=t.a[a.d.k][a.k].b,t.a[e.d.k][e.k].d+=t.a[a.d.k][a.k].d):(t.a[e.d.k][e.k].d+=t.d[s.k],++t.a[e.d.k][e.k].b);if(o=Gh(yx(e,(DL(),vq)),20))for(i=o.mb();i.G();)r=Gh(i.H(),9),e.d==r.d&&(ZO(t,r,n),t.a[e.d.k][e.k].b+=t.a[r.d.k][r.k].b,t.a[e.d.k][e.k].d+=t.a[r.d.k][r.k].d);t.a[e.d.k][e.k].b>0&&(t.a[e.d.k][e.k].d+=mT(t.e,24)*Rj*.07000000029802322-.03500000014901161,t.a[e.d.k][e.k].a=t.a[e.d.k][e.k].d/t.a[e.d.k][e.k].b)}}function QO(t,e){var n,r,i,o,a,s,u,c,l,f;for(r=new $n(t.a.c);r.a<r.c.c.length;)for(s=new $n(Gh(Wv(r),16).a);s.a<s.c.c.length;)a=Gh(Wv(s),9),e.i[a.k]=a,e.g[a.k]=e.k==(ab(),cY)?JI:QI;for(o=t.a.c,e.c==(ov(),aY)&&(o=fl(o,87)?Jv(Gh(o,87)):fl(o,88)?Gh(o,88).a:fl(o,63)?new Ii(o):new Wa(o)),function(t,e,n){t.a=e,t.c=n,t.b.a.Q(),Cg(t.d),t.e.a.c=Ey(fM,kP,1,0,4,1)}(t.e,e,t.b),function(t){!function(t,e){var n;for(n=0;n<e;++n)t[n]=null}(t,t.length)}(e.n),i=o.mb();i.G();)for(u=Gh(i.H(),16).a,e.k==(ab(),cY)&&(u=fl(u,87)?Jv(Gh(u,87)):fl(u,88)?Gh(u,88).a:fl(u,63)?new Ii(u):new Wa(u)),f=u.mb();f.G();)l=Gh(f.H(),9),e.f[l.k]==l&&bL(t,l,e);for(function(t,e){var n,r,i,o,a,s,u;for(u=new so,s=new qn(new Vn(t.c).a.bb().mb());s.a.G();)i=Gh(s.a.H(),21),0==(o=Gh(i.zb(),200)).b&&Ob(u,o,u.c.b,u.c);for(;0!=u.b;)for(r=new $n((o=Gh(0==u.b?null:(Nc(0!=u.b),Hw(u,u.a.a)),200)).d);r.a<r.c.c.length;)n=Gh(Wv(r),279),e.k==(ab(),uY)?n.b.a=Ho(n.b.a,o.a+n.a):n.b.a=Ro(n.b.a,o.a+n.a),--n.b.b,0==n.b.b&&Nh(u,n.b);for(a=new qn(new Vn(t.c).a.bb().mb());a.a.G();)i=Gh(a.a.H(),21),o=Gh(i.zb(),200),e.g[o.c.k]=o.a}(t,e),n=o.mb();n.G();)for(f=new $n(Gh(n.H(),16).a);f.a<f.c.c.length;)l=Gh(Wv(f),9),e.n[l.k]=e.n[e.f[l.k].k],l==e.f[l.k]&&(c=no(e.g[e.i[l.k].k]),(e.k==(ab(),cY)&&c>JI||e.k==uY&&c<QI)&&(e.n[l.k]=no(e.n[l.k])+c));t.e.Jc()}function JO(t,e){var n,r,i,o,a,s,u,c,l,f;!function(t,e){var n,r,i;if(t.n)for(r=0,i=e.length;r<i;++r)n=e[r],null!=Up(t.n,n)&&(n.nc(),n.oc())}(e,_x(Oo(rD,1),kP,79,0,[(DL(),sU),xq,(RL(),nX),gq])),c=Gh(yx(e,sU),15).a,Gh(yx(e,DU),15).a*c<2&&$y(e,DU,new Gn(2/c)),Gh(yx(e,(HL(),eR)),59)==(b_(),bD)&&$y(e,eR,U_(e)),0==(l=Gh(yx(e,JU),24)).a?$y(e,iU,new Y_):$y(e,iU,new vw(l.a)),f=new iL(e),$y(e,uU,f),i=mw(t,Gh(yx(e,LU),180)),s=mw(t,Gh(yx(e,qU),180)),r=mw(t,Gh(yx(e,OU),180)),u=mw(t,Gh(yx(e,UU),180)),o=mw(t,function(t){var e;return(e=new se).a=t,e}(Gh(yx(e,Oq),122))),a=new Z_,$y(e,Sq,a),Tm(Tm(Tm(Tm(Tm(Tm(a,i.qc(e)),s.qc(e)),r.qc(e)),u.qc(e)),o.qc(e)),function(t){var e,n;switch(n=Gh(yx(t,(DL(),Mq)),18),e=Bh(UG),eo(no(Af(yx(t,(RL(),RU)))))?hd(e,(ML(),NF)):pd(e,(ML(),NF)),null!=yx(t,(jy(),aD))&&Tm(e,XG),Gh(yx(t,(HL(),eR)),59).e){case 2:fd(hd(e,(ML(),yF)),bF);break;case 3:fd(hd(e,(ML(),$H)),WH);break;case 4:fd(hd(e,(ML(),RF)),DF)}return n.kb((YA(),FV))&&fd(hd(e,(ML(),XH)),UH),Xu(yx(t,XU))!==Xu((UT(),XF))&&pd(e,(ML(),_F)),Xu(yx(t,ZU))!==Xu((aC(),oz))&&Xu(yx(t,Oq))===Xu((y_(),TD))&&fd(e,(ML(),rF)),n.kb(WV)&&(hd(e,(ML(),CF)),pd(e,SF)),e}(e)),kw(30,JP),n=new sw(30),$y(e,rU,n),Jm(n,VC(t,a,0)),n.c[n.c.length]=i,Jm(n,VC(t,a,1)),n.c[n.c.length]=s,Jm(n,VC(t,a,2)),n.c[n.c.length]=r,Jm(n,VC(t,a,3)),n.c[n.c.length]=u,Jm(n,VC(t,a,4)),n.c[n.c.length]=o,Jm(n,VC(t,a,5))}function tL(t,e){var n,r,i,o,a,s;if(!(o=Tv(Xk(t))).Nb().V()){switch(i=(i=Gh(yx(Gh(Gh(Gh(o.Nb().sb(0),129),224).e,33),(SE(),OG)),171))==LG?NG:i,s=0,Gh(t.e,7).g.e){case 4:case 2:i==NG&&(s=t.e.j.b);break;case 3:s=t.e.j.b}for((Gh(t.e,7).g==(uL(),wB)||i==AG)&&(o=Jv(o)),r=Cw(o.Nb().mb());r.G();){if(a=new Uu((n=Gh(r.H(),129)).e.i),i==AG)switch(Gh(t.e,7).g.e){case 1:case 4:a.a=-n.e.j.a-e,a.b=s-e-n.e.j.b,s-=e+n.e.j.b;break;case 2:a.a=t.e.j.a+e,a.b=s-e-n.e.j.b,s-=e+n.e.j.b;break;case 3:a.a=-n.e.j.a-e,a.b=s+e,s+=e+n.e.j.b}else switch(Gh(t.e,7).g.e){case 4:a.a=-n.e.j.a-e,a.b=s+e,s+=e+n.e.j.b;break;case 2:a.a=t.e.j.a+e,a.b=s+e,s+=e+n.e.j.b;break;case 1:a.a=t.e.j.a+e,a.b=s-e-n.e.j.b,s-=e+n.e.j.b;break;case 3:a.a=t.e.j.a+e,a.b=s+e,s+=e+n.e.j.b}n.e.i.a=a.a,n.e.i.b=a.b}}}function eL(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v;for(u=n.a,i=Gh(yx(n,(DL(),xq)),15).a,p=n.d,r=Gh(yx(n,xq),15).a,c=(s=new Za(n.e.a+n.a.b+n.a.c+2*r,n.e.b+n.a.d+n.a.a+2*r)).b,h=new $n(t.a);h.a<h.c.c.length;)if((l=Gh(Wv(h),9)).g==(AS(),_H)){switch(o=Gh(yx(l,Iq),32),a=Gh(yx(l,jq),10),d=l.i,o.e){case 2:d.a=n.e.a+i+u.c-p.a;break;case 4:d.a=-p.a-i-u.b}switch(v=0,o.e){case 2:case 4:e==(cS(),sB)?(g=no(Nf(yx(l,tU))),d.b=s.b*g-Gh(yx(l,(HL(),TR)),10).b,v=d.b+a.b,GE(l,!1,!0)):e==aB&&(d.b=no(Nf(yx(l,tU)))-Gh(yx(l,(HL(),TR)),10).b,v=d.b+a.b,GE(l,!1,!0))}c=c>v?c:v}for(n.e.b+=c-s.b,f=new $n(t.a);f.a<f.c.c.length;)if((l=Gh(Wv(f),9)).g==(AS(),_H))switch(o=Gh(yx(l,Iq),32),d=l.i,o.e){case 1:d.b=-p.b-i-u.d;break;case 3:d.b=n.e.b+i+u.a-p.b}}function nL(t){var e,n,r,i,o,a,s,u,c,l,f,h,d;for(r=new je,s=new $n(t.d.f);s.a<s.c.c.length;)(o=Gh(Wv(s),7)).g==(uL(),yB)&&(r.c[r.c.length]=o);if(t.e.a==(b_(),vD)&&!zs(Gh(yx(t.d,(HL(),AR)),28)))for(n=Sp(H_(t.d));X_(n);)Oh(r,Gh(xv(n),12).c);for(i=t.d.j.a,$y(t.d,(DL(),mq),new Gn(t.d.j.a)),t.d.j.a=t.c,$y(t.d,wq,(Hd(),Hd(),vX)),Oh(t.b,t.d),u=t.d,i-=t.c,c=t.a;c>1;)e=Ho(i,t.c),lr(l=new wk(t.e.c),(AS(),xH)),$y(l,(HL(),AR),Gh(yx(u,AR),28)),$y(l,yR,Gh(yx(u,yR),86)),l.k=t.e.b++,Oh(t.b,l),l.j.b=u.j.b,l.j.a=e,Hf(f=new bS,(uL(),yB)),tv(f,u),f.i.a=l.j.a,f.i.b=l.j.b/2,Hf(h=new bS,BB),tv(h,l),h.i.b=l.j.b/2,h.i.a=-h.j.a,rv(d=new Og,f),nv(d,h),u=l,Oh(t.e.c.b,u),--c,i-=t.c+t.e.d;for(new lS(t.d,t.b,t.c),a=new $n(r);a.a<a.c.c.length;)o=Gh(Wv(a),7),Dy(t.d.f,o),tv(o,u)}function rL(t,e){var n,r,i,o,a,s,u,c;if(!(t.p>e.a||e.p>t.a)){for(n=0,r=0,s=new Yn(new zn(t.o.a).a.bb().mb());s.a.G();)i=Gh(s.a.H(),21),o=Gh(i.yb(),7),eE(Gm(_x(Oo(nD,1),RI,10,0,[o.f.i,o.i,o.a])).b,e.p,e.a)&&++n;for(u=new Yn(new zn(t.g.a).a.bb().mb());u.a.G();)i=Gh(u.a.H(),21),o=Gh(i.yb(),7),eE(Gm(_x(Oo(nD,1),RI,10,0,[o.f.i,o.i,o.a])).b,e.p,e.a)&&--n;for(c=new Yn(new zn(e.o.a).a.bb().mb());c.a.G();)i=Gh(c.a.H(),21),o=Gh(i.yb(),7),eE(Gm(_x(Oo(nD,1),RI,10,0,[o.f.i,o.i,o.a])).b,t.p,t.a)&&++r;for(a=new Yn(new zn(e.g.a).a.bb().mb());a.a.G();)i=Gh(a.a.H(),21),o=Gh(i.yb(),7),eE(Gm(_x(Oo(nD,1),RI,10,0,[o.f.i,o.i,o.a])).b,t.p,t.a)&&--r;n<r?new oy(t,e,r-n):r<n?new oy(e,t,n-r):(new oy(e,t,0),new oy(t,e,0))}}function iL(t){var e;this.f=Gh(yx(t,(DL(),sU)),15).a,this.d=Gh(yx(t,(RL(),KU)),15).a,this.a=this.f*Gh(yx(t,DU),15).a,this.b=this.f*Gh(yx(t,MU),15).a,Gh(yx(t,eU),15),this.c=Gh(yx(t,eU),15).a,this.e=Gh(yx(t,(HL(),hR)),15).a,e=(AS(),_x(Oo(jH,1),CP,132,0,[SH,kH,_H,CH,EH,xH])).length,this.g=kd(KX,[ZL,Sj],[250,26],12,[e,e],2),Cu(this,SH,this.f),eg(this,SH,kH,this.b),eg(this,SH,CH,this.b),eg(this,SH,_H,this.c),eg(this,SH,EH,this.b),eg(this,SH,xH,this.b),Cu(this,kH,this.a),eg(this,kH,CH,this.a),eg(this,kH,_H,this.c),eg(this,kH,EH,this.e),eg(this,kH,xH,this.b),Cu(this,CH,this.a),eg(this,CH,_H,this.c),eg(this,CH,EH,this.e),eg(this,CH,xH,this.b),Cu(this,_H,this.c),eg(this,_H,EH,this.c),eg(this,_H,xH,this.c),Cu(this,EH,this.e),eg(this,EH,xH,this.e),Cu(this,xH,this.f)}function oL(t,e){var n,r,i,o,a,s,u,c,l;if(1!=Xp(G_(e))||Gh(Gv(G_(e)),12).c.f.g!=(AS(),kH))return null;for(lr(r=(n=Gh(Gv(G_(e)),12)).c.f,(AS(),SH)),$y(r,(DL(),zq),null),$y(r,Yq,null),$y(r,mq,Gh(yx(e,mq),15)),$y(r,wq,(Hd(),Hd(),vX)),$y(r,Uq,yx(e,Uq)),r.j.b=e.j.b,o=yx(n.d,Uq),a=null,c=fC(r,(uL(),BB)).mb();c.G();)if(0!=(s=Gh(c.H(),7)).b.c.length){$y(s,Uq,o),l=n.d,s.j.a=l.j.a,s.j.b=l.j.b,s.a.a=l.a.a,s.a.b=l.a.b,Jm(s.c,l.c),l.c.c=Ey(fM,kP,1,0,4,1),a=s;break}if($y(n.d,Uq,null),Xp(fC(e,BB))>1)for(u=_k(Rh(fC(e,BB)),0);u.b!=u.d.c;)0==(s=Gh(Cb(u),7)).b.c.length?(Hf(i=new bS,BB),i.j.a=s.j.a,i.j.b=s.j.b,tv(i,r),$y(i,Uq,yx(s,Uq)),tv(s,null)):tv(a,r);return $y(e,Uq,null),$y(e,wq,gX),lr(e,xH),$y(r,(HL(),AR),Gh(yx(e,AR),28)),$y(r,yR,Gh(yx(e,yR),86)),Td(t.b,0,r),r}function aL(t,e,n,r,i,o,a){var s,u,c,l,f,h;switch(f=n,lr(c=new wk(a),(AS(),_H)),$y(c,(DL(),jq),i),$y(c,(HL(),AR),(cS(),aB)),$y(c,qq,Gh(yx(t,mR),15)),!(u=Gh(yx(t,TR),10))&&(u=new Za(i.a/2,i.b/2)),$y(c,TR,u),tv(l=new bS,c),e!=cB&&e!=lB||(s=o!=(b_(),bD)?o:vD,f=r>0?iE(s):l_(iE(s)),$y(t,LR,f)),f.e){case 4:$y(c,(RL(),FU),(Hk(),vU)),$y(c,Nq,(Ox(),EV)),c.j.b=i.b,Hf(l,(uL(),yB)),l.i.b=u.b;break;case 2:$y(c,(RL(),FU),(Hk(),yU)),$y(c,Nq,(Ox(),xV)),c.j.b=i.b,Hf(l,(uL(),BB)),l.i.b=u.b;break;case 1:$y(c,Bq,(Mw(),cq)),c.j.a=i.a,Hf(l,(uL(),DB)),l.i.a=u.a;break;case 3:$y(c,Bq,(Mw(),sq)),c.j.a=i.a,Hf(l,(uL(),wB)),l.i.a=u.a}if(e==oB||e==sB||e==aB){switch(h=0,f.e){case 4:case 2:h=null.cd,e==sB&&(h/=null.cd);break;case 1:case 3:h=null.cd,e==sB&&(h/=null.cd)}$y(c,tU,h)}return $y(c,Iq,f),c}function sL(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w;for(c=new Br,ml(),dg(b=new _r,t,MS(t)),kw(2,JP),r=new sw(2),t.c&&Oh(r,t.c),t.d&&Oh(r,t.d),d=new $n(r);d.a<d.c.c.length;)if(h=Gh(Wv(d),7),lm(e=new so,qb(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[h.b,h.e]))))))),dE(e,t,!0),0!=e.b)for(w=Gh(Wu(uv(b.d,t)),34),h==t.d?(p=w[w.length-1],y=!0):(p=w[0],y=!1),u=1;u<w.length;u++){for(g=y?w[w.length-1-u]:w[u],n=_k(e,0);n.b!=n.d.c;)l=Gh(Cb(n),12),null==(f=Gh(Wu(uv(b.d,l)),34))&&(f=MS(l),jC(b.d,l,f)),f.length<=u?Lw(n):(v=y?f[f.length-1-u]:f[u],g.a==v.a&&g.b==v.b||(i=g.a-p.a,a=g.b-p.b,(o=v.a-p.a)*a==(s=v.b-p.b)*i&&Yg(i)==Yg(o)&&Yg(a)==Yg(s)?((i<=0?0-i:i)<(o<=0?0-o:o)||(a<=0?0-a:a)<(s<=0?0-s:s))&&Ob(c,g,c.c.b,c.c):u>1&&Ob(c,p,c.c.b,c.c),Lw(n)));p=g}return c}function uL(){var t;uL=r,RB=new gs(kI,0),wB=new gs("NORTH",1),yB=new gs("EAST",2),DB=new gs("SOUTH",3),BB=new gs("WEST",4),Dg(),kB=new $o(new qh(t=Gh(na(qB),11),Gh(_p(t,t.length),11),0)),SB=L_(Wd(wB,_x(Oo(qB,1),CP,32,0,[]))),mB=L_(Wd(yB,_x(Oo(qB,1),CP,32,0,[]))),IB=L_(Wd(DB,_x(Oo(qB,1),CP,32,0,[]))),MB=L_(Wd(BB,_x(Oo(qB,1),CP,32,0,[]))),OB=L_(Wd(wB,_x(Oo(qB,1),CP,32,0,[DB]))),EB=L_(Wd(yB,_x(Oo(qB,1),CP,32,0,[BB]))),PB=L_(Wd(wB,_x(Oo(qB,1),CP,32,0,[BB]))),CB=L_(Wd(wB,_x(Oo(qB,1),CP,32,0,[yB]))),jB=L_(Wd(DB,_x(Oo(qB,1),CP,32,0,[BB]))),xB=L_(Wd(yB,_x(Oo(qB,1),CP,32,0,[DB]))),NB=L_(Wd(wB,_x(Oo(qB,1),CP,32,0,[yB,BB]))),_B=L_(Wd(yB,_x(Oo(qB,1),CP,32,0,[DB,BB]))),LB=L_(Wd(wB,_x(Oo(qB,1),CP,32,0,[DB,BB]))),TB=L_(Wd(wB,_x(Oo(qB,1),CP,32,0,[yB,DB]))),AB=L_(Wd(wB,_x(Oo(qB,1),CP,32,0,[yB,DB,BB])))}function cL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g;if(hl(new $n(iS(t.e)))){for(s=new $n(iS(t.e));s.a<s.c.c.length;)switch(a=Gh(Wv(s),161),c=Gh(a.e,7).g.e,++t.o[c],Gh(a.e,7).g.e){case 4:case 2:t.n[c]+=a.e.j.b+(e?(r=Gh(a.e,7).d,new xf(r.d,r.b,r.a,r.c)).a+(i=Gh(a.e,7).d,new xf(i.d,i.b,i.a,i.c)).d:0);break;case 1:case 3:t.n[c]+=a.e.j.a+(e?(o=Gh(a.e,7).d,new xf(o.d,o.b,o.a,o.c)).b+(n=Gh(a.e,7).d,new xf(n.d,n.b,n.a,n.c)).c:0)}for(u=(u=Gh(hE(t.e,(HL(),_R)),100))==(EE(),nB)?eB:u,t.g[1]=Gh(hE(t.e,kR),100),t.g[3]=Gh(hE(t.e,SR),100),t.g[4]=Gh(hE(t.e,CR),100),t.g[2]=Gh(hE(t.e,ER),100),uL(),d=0,g=(f=_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB])).length;d<g;++d)c=f[d],t.g[c.e]=t.g[c.e]==nB?u:t.g[c.e];for(t.b=null!=hE(t.e,UD),h=0,p=(l=_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB])).length;h<p;++h)c=l[h],1==t.o[c.e]?t.i[c.e]=2:t.b||t.g[c.e]!=eB?t.i[c.e]=t.o[c.e]-1:t.i[c.e]=t.o[c.e]+1}}function lL(t,e,n,r,i,o){var a,s,u,c,l,f,h,d,p,g,v,b,y,w;if(u=Gh(t.a,16),d=Gh(t.b,16),c=Gh(e.a,18),p=Gh(e.b,18),u)for(f=new $n(u.a);f.a<f.c.c.length;)for(b=fC(l=Gh(Wv(f),9),(uL(),yB)).mb();b.G();)for(v=Gh(b.H(),7),c.ib(v),s=new $n(v.e);s.a<s.c.c.length;)ny(a=Gh(Wv(s),12))||(n.c[n.c.length]=a,ix(a,r),((g=a.c.f.g)==(AS(),SH)||g==CH)&&(i.c[i.c.length]=a),(y=(w=a.d).f.d)==d?p.ib(w):y==u?c.ib(w):Dy(n,a));if(d)for(f=new $n(d.a);f.a<f.c.c.length;){for(h=new $n((l=Gh(Wv(f),9)).f);h.a<h.c.c.length;)for(s=new $n(Gh(Wv(h),7).e);s.a<s.c.c.length;)ny(a=Gh(Wv(s),12))&&o.a.db(a,o);for(b=fC(l,(uL(),BB)).mb();b.G();)for(v=Gh(b.H(),7),p.ib(v),s=new $n(v.e);s.a<s.c.c.length;)ny(a=Gh(Wv(s),12))||(n.c[n.c.length]=a,ix(a,r),((g=a.c.f.g)==(AS(),SH)||g==CH)&&(i.c[i.c.length]=a),(y=(w=a.d).f.d)==d?p.ib(w):y==u?c.ib(w):Dy(n,a))}}function fL(t,e,n,r,i,o){var a,s,u,c,l,f,h,d,p,g,v,b,y;for(h=null,n==(av(),fV)?h=t:n==hV&&(h=e),p=new Yn(new zn(h.a).a.bb().mb());p.a.G();){for(l=Gh(p.a.H(),21),d=Gh(l.yb(),7),g=Gm(_x(Oo(nD,1),RI,10,0,[d.f.i,d.i,d.a])).b,y=new Qi,a=new Qi,u=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[d.b,d.e]))))));X_(u);)if(eo(no(Af(yx(s=Gh(xv(u),12),(DL(),aU)))))==r&&-1!=Ky(i,s,0)){if(v=s.d==d?s.c:s.d,((b=Gm(_x(Oo(nD,1),RI,10,0,[v.f.i,v.i,v.a])).b)-g<=0?0-(b-g):b-g)<.2)continue;b<g?t.a.R(v)?mp(y,new Qa(fV,s)):mp(y,new Qa(hV,s)):t.a.R(v)?mp(a,new Qa(fV,s)):mp(a,new Qa(hV,s))}if(y.a.Y()>1)for(Oh(o,new mO(d,y,n)),f=new Yn(new zn(y.a).a.bb().mb());f.a.G();)c=Gh(f.a.H(),21),Dy(i,Gh(c.yb(),27).b);if(a.a.Y()>1)for(Oh(o,new mO(d,a,n)),f=new Yn(new zn(a.a).a.bb().mb());f.a.G();)c=Gh(f.a.H(),21),Dy(i,Gh(c.yb(),27).b)}}function hL(t,e){var n,r,i,o,a,s,u,c,l;switch(yb(o=qb(Fh(e,new Wh(t))),new Qt),(i=t.b).c){case 2:mp(e,new RC(r=VT(t,a=am(n=jc(Fh(o,new _n(i.a))))?Gh(ky(n),91).b:15,am(n=jc(Fh(o,new _n(Tk(i)))))?Gh(ky(n),91).b:15,am(n=jc(Fh(o,new _n(i.b))))?Gh(ky(n),91).b:15),t.c,t.e,t.a.c.f,i.a)),mp(e,new RC(r,t.c,t.e,t.a.c.f,Tk(i))),mp(e,new RC(r,t.c,t.e,t.a.c.f,i.b));break;case 1:mp(e,new RC(r=RT(t,a=am(n=jc(Fh(o,new _n(i.a))))?Gh(ky(n),91).b:15,am(n=jc(Fh(o,new _n(i.b))))?Gh(ky(n),91).b:15),t.c,t.e,t.a.c.f,i.a)),mp(e,new RC(r,t.c,t.e,t.a.c.f,i.b));break;case 0:a=am(n=jc(Fh(o,new _n(i.a))))?Gh(ky(n),91).b:15,s=t.b,u=function(t,e,n){var r,i,o,a,s,u,c,l,f;return r=$k(t.g),c=Lf(yc(t.i),t.a),l=Lf(yc(e.i),e.a),i=Lf(new Uu(c),il(new pp(r),n)),f=Lf(new Uu(l),il(new pp(r),n)),a=il(Pf(new Uu(i),f),.5),u=Lf(Lf(new Uu(f),a),il(new pp(r),Lu(a.a*a.a+a.b*a.b))),o=BS(s=new ig(_x(Oo(nD,1),RI,10,0,[c,i,u,f,l])),.5,!1),s.a=o,fr(s,new SC(_x(Oo(nD,1),RI,10,0,[o,c,l]))),s}(t.a.c,t.a.d,a),lm(t.a.a,NE(u)),c=QS(t.a.b,u.a,s),Ug(l=new Pb((!u.k&&(u.k=new lC(fm(u))),u.k))),mp(e,new RC(r=c?zp(l,c):l,t.c,t.e,t.a.c.f,i.a));break;default:throw new io("The loopside must be defined.")}return r}function dL(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m;for(a=new $n(t.a.c);a.a<a.c.c.length;)for(y=new $n(Gh(Wv(a),16).a);y.a<y.c.c.length;)b=Gh(Wv(y),9),e.f[b.k]=b,e.a[b.k]=b,e.d[b.k]=0;for(s=t.a.c,e.c==(ov(),aY)&&(s=fl(s,87)?Jv(Gh(s,87)):fl(s,88)?Gh(s,88).a:fl(s,63)?new Ii(s):new Wa(s)),o=s.mb();o.G();)for(h=-1,f=Gh(o.H(),16).a,e.k==(ab(),cY)&&(h=iP,f=fl(f,87)?Jv(Gh(f,87)):fl(f,88)?Gh(f,88).a:fl(f,63)?new Ii(f):new Wa(f)),m=f.mb();m.G();)if(w=Gh(m.H(),9),(l=e.c==aY?Gh(ld(t.b.f,w.k),20):Gh(ld(t.b.b,w.k),20)).Y()>0)if(r=l.Y(),u=pv(Math.floor((r+1)/2))-1,i=pv(Math.ceil((r+1)/2))-1,e.k==cY)for(c=i;c>=u;c--)e.a[w.k]==w&&(p=Gh(l.sb(c),27),d=Gh(p.a,9),!xa(n,p.b)&&h>t.b.e[d.k]&&(e.a[d.k]=w,e.f[w.k]=e.f[d.k],e.a[w.k]=e.f[w.k],h=t.b.e[d.k]));else for(c=u;c<=i;c++)e.a[w.k]==w&&(v=Gh(l.sb(c),27),g=Gh(v.a,9),!xa(n,v.b)&&h<t.b.e[g.k]&&(e.a[g.k]=w,e.f[w.k]=e.f[g.k],e.a[w.k]=e.f[w.k],h=t.b.e[g.k]))}function pL(){var t,e,n,i,o,a,s,u;pL=r,RY=new mb("N",0,(uL(),wB),wB,0),jY=new mb("EN",1,yB,wB,1),IY=new mb("E",2,yB,yB,0),HY=new mb("SE",3,DB,yB,1),GY=new mb("S",4,DB,DB,0),iV=new mb("WS",5,BB,DB,1),rV=new mb("W",6,BB,BB,0),BY=new mb("NW",7,wB,BB,1),MY=new mb("ENW",8,yB,BB,2),DY=new mb("ESW",9,yB,BB,2),FY=new mb("SEN",10,DB,wB,2),eV=new mb("SWN",11,DB,wB,2),nV=new mb(kI,12,RB,RB,3),t=RY,e=jY,n=IY,i=HY,o=GY,a=iV,s=_x(Oo(oV,1),CP,60,0,[rV,BY,MY,DY,FY,eV]),ch(),ex(u=new sw(s.length+6),_x(Oo(fM,1),kP,1,4,[t,e,n,i,o,a])),ex(u,s),OY=aS(new $n(u)),ch(),PY=kA(_x(Oo(fM,1),kP,1,4,[RY,IY,GY,rV])),LY=kA(_x(Oo(fM,1),kP,1,4,[jY,HY,iV,BY])),UY=new ua(wB),YY=kA(_x(Oo(fM,1),kP,1,4,[yB,wB])),zY=new ua(yB),$Y=kA(_x(Oo(fM,1),kP,1,4,[DB,yB])),WY=new ua(DB),tV=kA(_x(Oo(fM,1),kP,1,4,[BB,DB])),JY=new ua(BB),XY=kA(_x(Oo(fM,1),kP,1,4,[wB,BB])),VY=kA(_x(Oo(fM,1),kP,1,4,[yB,wB,BB])),qY=kA(_x(Oo(fM,1),kP,1,4,[yB,DB,BB])),ZY=kA(_x(Oo(fM,1),kP,1,4,[DB,BB,wB])),KY=kA(_x(Oo(fM,1),kP,1,4,[DB,yB,wB])),Jp(),QY=GM}function gL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m;if(y=0,0==e.e.a)for(v=new $n(t);v.a<v.c.c.length;)y=Ro(y,(p=Gh(Wv(v),9)).i.a+p.j.a+p.e.c);else y=e.e.a-e.d.a;for(y-=e.d.a,g=new $n(t);g.a<g.c.c.length;){switch(Cr((p=Gh(Wv(g),9)).i,y-p.j.a),sk(p),Gh(yx(p,(HL(),WD)),103).e){case 1:$y(p,WD,(ok(),fD));break;case 2:$y(p,WD,(ok(),lD))}for(b=p.j,m=new $n(p.f);m.a<m.c.c.length;){for(Cr((w=Gh(Wv(m),7)).i,b.a-w.j.a),Cr(w.a,w.j.a),Hf(w,sm(w.g)),(a=Gh(yx(w,NR),24))&&$y(w,NR,F_(-a.a)),o=new $n(w.e);o.a<o.c.c.length;){for(r=_k((i=Gh(Wv(o),12)).a,0);r.b!=r.d.c;)(n=Gh(Cb(r),10)).a=y-n.a;if(c=Gh(yx(i,fR),44))for(u=_k(c,0);u.b!=u.d.c;)(s=Gh(Cb(u),10)).a=y-s.a;for(h=new $n(i.b);h.a<h.c.c.length;)Cr((l=Gh(Wv(h),33)).i,y-l.j.a)}for(d=new $n(w.c);d.a<d.c.c.length;)Cr((l=Gh(Wv(d),33)).i,-l.j.a)}for(p.g==(AS(),_H)&&($y(p,(DL(),Iq),sm(Gh(yx(p,Iq),32))),rC(p)),f=new $n(p.c);f.a<f.c.c.length;)Cr((l=Gh(Wv(f),33)).i,b.a-l.j.a)}}function vL(t,e,n){var r,i,o,a,s,u,c,l,f,h,d;if(r=new gg(e.e.i.a,e.e.i.b,e.e.j.a,e.e.j.b),i=new ru,t.c)for(a=new $n(Uk(e));a.a<a.c.c.length;)o=Gh(Wv(a),129),i.d=o.e.i.a+e.e.i.a,i.e=o.e.i.b+e.e.i.b,i.c=o.e.j.a,i.b=o.e.j.b,pS(r,i);for(l=new $n(iS(e));l.a<l.c.c.length;){if(f=(c=Gh(Wv(l),161)).e.i.a+e.e.i.a,h=c.e.i.b+e.e.i.b,t.e&&(i.d=f,i.e=h,i.c=c.e.j.a,i.b=c.e.j.b,pS(r,i)),t.d)for(a=new $n(Xk(c));a.a<a.c.c.length;)o=Gh(Wv(a),129),i.d=o.e.i.a+f,i.e=o.e.i.b+h,i.c=o.e.j.a,i.b=o.e.j.b,pS(r,i);if(t.b){if(d=new Za(-n,-n),Xu(hE(e,(HL(),OR)))===Xu((jw(),gB)))for(a=new $n(Xk(c));a.a<a.c.c.length;)o=Gh(Wv(a),129),d.a+=o.e.j.a+n,d.b+=o.e.j.b+n;d.a=Ro(d.a,0),d.b=Ro(d.b,0),kN(r,IA(c),PA(c),e,c,d,n)}}t.b&&kN(r,(Dg(),Dg(),kX),kX,e,null,null,n),(u=new Xf(new xf((s=Gh(e.e,9).e).d,s.b,s.a,s.c))).d=e.e.i.b-r.e,u.a=r.e+r.b-(e.e.i.b+e.e.j.b),u.b=e.e.i.a-r.d,u.c=r.d+r.c-(e.e.i.a+e.e.j.a),Gh(e.e,9).e.b=u.b,Gh(e.e,9).e.d=u.d,Gh(e.e,9).e.c=u.c,Gh(e.e,9).e.a=u.a}function bL(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v;if(null==n.n[e.k]){u=!0,n.n[e.k]=0,a=e,v=n.k==(ab(),uY)?JI:QI;do{i=t.b.e[a.k],o=a.d.a.c.length,s=a.g,n.k==uY&&i>0||n.k==cY&&i<o-1?(c=n.k==cY?Gh(ld(a.d.a,i+1),9):Gh(ld(a.d.a,i-1),9),f=n.f[c.k],l=c.g,bL(t,f,n),v=t.e.Ic(v,e,a),n.i[e.k]==e&&(n.i[e.k]=n.i[f.k]),n.i[e.k]==n.i[f.k]?(g=rh(t.d,s,l),n.k==cY?(r=no(n.n[e.k]),d=no(n.n[f.k])+no(n.d[c.k])-c.e.d-g-a.e.a-a.j.b-no(n.d[a.k]),u?(u=!1,n.n[e.k]=d<v?d:v):n.n[e.k]=r<(d<v?d:v)?r:d<v?d:v):(r=no(n.n[e.k]),d=no(n.n[f.k])+no(n.d[c.k])+c.j.b+c.e.a+g+a.e.d-no(n.d[a.k]),u?(u=!1,n.n[e.k]=d>v?d:v):n.n[e.k]=r>(d>v?d:v)?r:d>v?d:v)):(g=t.d.f,p=dm(t,n.i[e.k]),h=dm(t,n.i[f.k]),n.k==cY?Fv(p,h,no(n.n[e.k])+no(n.d[a.k])+a.j.b+a.e.a+g-(no(n.n[f.k])+no(n.d[c.k])-c.e.d)):Fv(p,h,no(n.n[e.k])+no(n.d[a.k])-a.e.d-no(n.n[f.k])-no(n.d[c.k])-c.j.b-c.e.a-g))):v=t.e.Ic(v,e,a),a=n.a[a.k]}while(a!=e);!function(t,e){mp(t.b,e)}(t.e,e)}}function yL(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v,b;if(h=!1,f=!1,zs(Gh(yx(r,(HL(),AR)),28))){a=!1,s=!1;t:for(p=new $n(r.f);p.a<p.c.c.length;)for(d=Gh(Wv(p),7),g=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[new cn(d),new fn(d)]))))));X_(g);)if(!eo(no(Af(yx(Gh(xv(g),7).f,JD))))){if(d.g==(uL(),wB)){a=!0;break t}if(d.g==DB){s=!0;break t}}h=s&&!a,f=a&&!s}if(h||f||0==r.c.c.length)b=!f;else{for(l=0,c=new $n(r.c);c.a<c.c.c.length;)l+=(u=Gh(Wv(c),33)).i.b+u.j.b/2;b=(l/=r.c.c.length)>=r.j.b/2}b?(v=Gh(yx(r,(DL(),pU)),20))?h?o=v:(i=Gh(yx(r,_q),20))?o=v.Y()<=i.Y()?v:i:(o=new je,$y(r,_q,o)):(o=new je,$y(r,pU,o)):(i=Gh(yx(r,(DL(),_q)),20))?f?o=i:(v=Gh(yx(r,pU),20))?o=i.Y()<=v.Y()?i:v:(o=new je,$y(r,pU,o)):(o=new je,$y(r,_q,o)),o.ib(t),$y(t,(DL(),Eq),n),e.d==n?(nv(e,null),n.b.c.length+n.e.c.length==0&&tv(n,null)):(rv(e,null),n.b.c.length+n.e.c.length==0&&tv(n,null)),Cg(e.a)}function wL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y;for((n=new yk(e)).a||function(t){var e,n,r,i,o;switch(i=Gh(ld(t.b,0),9),e=new wk(t),Oh(t.b,e),e.j.a=Ro(1,i.j.a),e.j.b=Ro(1,i.j.b),e.i.a=i.i.a,e.i.b=i.i.b,Gh(yx(i,(DL(),Iq)),32).e){case 4:e.i.a+=2;break;case 1:e.i.b+=2;break;case 2:e.i.a-=2;break;case 3:e.i.b-=2}tv(r=new bS,e),rv(n=new Og,o=Gh(ld(i.f,0),7)),nv(n,r),Lf(Au(r.i),o.i),Lf(Au(r.a),o.a)}(e),c=function(t){var e,n,r,i,o,a,s;for(s=new Eb,a=new $n(t.b);a.a<a.c.c.length;)if((o=Gh(Wv(a),9)).g!=(AS(),_H))for(yT(s,o,new ao),i=Sp(H_(o));X_(i);)if((r=Gh(xv(i),12)).c.f.g!=_H&&r.d.f.g!=_H)for(n=_k(r.a,0);n.b!=n.d.c;)RE(s,new xs((e=Gh(Cb(n),10)).a,e.b));return s}(e),u=new Us,g=new bA,p=new $n(e.b);p.a<p.c.c.length;)for(i=Sp(H_(Gh(Wv(p),9)));X_(i);)(r=Gh(xv(i),12)).c.f.g!=(AS(),_H)&&r.d.f.g!=_H||rT(u,qE((l=HO(t,r,c,g)).d),l.a);for(a=new je,y=Gh(yx(n.c,(DL(),Lq)),18).mb();y.G();){switch(b=Gh(y.H(),32),d=g.c[b.e],h=g.b[b.e],s=g.a[b.e],o=null,v=null,b.e){case 4:o=new gg(t.d.a,d,c.b.a-t.d.a,h-d),v=new gg(t.d.a,d,s,h-d),Ch(c,new Za(o.d+o.c,o.e)),Ch(c,new Za(o.d+o.c,o.e+o.b));break;case 2:o=new gg(c.a.a,d,t.c.a-c.a.a,h-d),v=new gg(t.c.a-s,d,s,h-d),Ch(c,new Za(o.d,o.e)),Ch(c,new Za(o.d,o.e+o.b));break;case 1:o=new gg(d,t.d.b,h-d,c.b.b-t.d.b),v=new gg(d,t.d.b,h-d,s),Ch(c,new Za(o.d,o.e+o.b)),Ch(c,new Za(o.d+o.c,o.e+o.b));break;case 3:o=new gg(d,c.a.b,h-d,t.c.b-c.a.b),v=new gg(d,t.c.b-s,h-d,s),Ch(c,new Za(o.d,o.e)),Ch(c,new Za(o.d+o.c,o.e))}o&&((f=new Qr).d=b,f.b=o,f.c=v,f.a=Wp(Gh(GS(u,qE(b)),18)),a.c[a.c.length]=f)}return Jm(n.b,a),n.d=function(t){var e;return e=new Jb(t),Ab(t.a,pH,new Kn(_x(Oo(iH,1),kP,160,0,[e]))),e.d&&Oh(e.f,e.d),e.f}(function(t){var e,n,r,i,o,a,s;for(Rb(),s=new Or,n=new $n(t);n.a<n.c.c.length;)e=Gh(Wv(n),48),(!s.b||e.c>=s.b.c)&&(s.b=e),(!s.c||e.c<=s.c.c)&&(s.d=s.c,s.c=e),(!s.e||e.d>=s.e.d)&&(s.e=e),(!s.f||e.d<=s.f.d)&&(s.f=e);return r=new ik((Pm(),oH)),Ab(t,dH,new Kn(_x(Oo(iH,1),kP,160,0,[r]))),a=new ik(uH),Ab(t,hH,new Kn(_x(Oo(iH,1),kP,160,0,[a]))),i=new ik(aH),Ab(t,fH,new Kn(_x(Oo(iH,1),kP,160,0,[i]))),o=new ik(sH),Ab(t,lH,new Kn(_x(Oo(iH,1),kP,160,0,[o]))),QT(r.c,oH),QT(i.c,aH),QT(o.c,sH),QT(a.c,uH),s.a.c=Ey(fM,kP,1,0,4,1),Jm(s.a,r.c),Jm(s.a,km(i.c)),Jm(s.a,o.c),Jm(s.a,km(a.c)),s}(c)),n}function mL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C;return f=function(t,e){var n,r,i,o,a,s,u,c,l,f,h;if(t.V())return new ao;for(u=0,l=0,r=t.mb();r.G();)u=Ro(u,(i=Gh(r.H(),55).e).a),l+=i.a*i.b;for(u=Ro(u,Math.sqrt(l)*Gh(yx(Gh(t.mb().H(),55),(DL(),gq)),15).a),f=0,h=0,s=0,n=e,a=t.mb();a.G();)f+(c=(o=Gh(a.H(),55)).e).a>u&&(f=0,h+=s+e,s=0),KA(o,f,h),n=Ro(n,f+c.a),s=Ro(s,c.b),f+=c.a+e;return new Za(n+e,h+s+e)}(ll(t,(uL(),kB)),e),p=Ek(ll(t,SB),e),m=Ek(ll(t,IB),e),k=kk(ll(t,MB),e),h=kk(ll(t,mB),e),y=Ek(ll(t,PB),e),g=Ek(ll(t,CB),e),_=Ek(ll(t,jB),e),x=Ek(ll(t,xB),e),S=kk(ll(t,EB),e),b=Ek(ll(t,OB),e),w=Ek(ll(t,NB),e),E=Ek(ll(t,_B),e),C=kk(ll(t,LB),e),d=kk(ll(t,TB),e),v=Ek(ll(t,AB),e),n=ww(_x(Oo($X,1),dP,26,12,[y.a,k.a,_.a,C.a])),r=ww(_x(Oo($X,1),dP,26,12,[p.a,f.a,m.a,v.a])),i=b.a,o=ww(_x(Oo($X,1),dP,26,12,[g.a,h.a,x.a,d.a])),c=ww(_x(Oo($X,1),dP,26,12,[y.b,p.b,g.b,w.b])),u=ww(_x(Oo($X,1),dP,26,12,[k.b,f.b,h.b,v.b])),l=S.b,s=ww(_x(Oo($X,1),dP,26,12,[_.b,m.b,x.b,E.b])),dy(ll(t,kB),n+i,c+l),dy(ll(t,AB),n+i,c+l),dy(ll(t,SB),n+i,0),dy(ll(t,IB),n+i,c+l+u),dy(ll(t,MB),0,c+l),dy(ll(t,mB),n+i+r,c+l),dy(ll(t,CB),n+i+r,0),dy(ll(t,jB),0,c+l+u),dy(ll(t,xB),n+i+r,c+l+u),dy(ll(t,EB),0,c),dy(ll(t,OB),n,0),dy(ll(t,_B),0,c+l+u),dy(ll(t,TB),n+i+r,0),(a=new ao).a=ww(_x(Oo($X,1),dP,26,12,[n+r+i+o,S.a,w.a,E.a])),a.b=ww(_x(Oo($X,1),dP,26,12,[c+u+l+s,b.b,C.b,d.b])),a}function xL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g;if(r=new Br,c=null,(d=(p=t.c).f.g)!=(AS(),SH)&&d!=CH)throw new io("The target node of the edge must be a normal node or a northSouthPort.");for(d==CH&&(h=Gh(yx(p,(DL(),Uq)),7),c=new Za(Gm(_x(Oo(nD,1),RI,10,0,[h.f.i,h.i,h.a])).a,Gm(_x(Oo(nD,1),RI,10,0,[p.f.i,p.i,p.a])).b),p=h),os(r,Gm(_x(Oo(nD,1),RI,10,0,[p.f.i,p.i,p.a]))),a=Ro(5,xE(p.f,p.g)),(f=new pp($k(p.g))).a*=a,f.b*=a,Nh(r,Lf(f,Gm(_x(Oo(nD,1),RI,10,0,[p.f.i,p.i,p.a])))),c&&Ob(r,c,r.c.b,r.c),o=t,u=t,s=null,n=!1;o;)0!=(i=o.a).b&&(n?(Nh(r,il(Lf(s,(Nc(0!=i.b),Gh(i.a.a.c,10))),.5)),n=!1):n=!0,s=yc((Nc(0!=i.b),Gh(i.c.b.c,10))),lm(r,i),Cg(i)),u=o,o=Gh(Wu(uv(e.d,o)),12);(g=u.d).f.g==CH&&(h=Gh(yx(g,(DL(),Uq)),7),Nh(r,new Za(Gm(_x(Oo(nD,1),RI,10,0,[h.f.i,h.i,h.a])).a,Gm(_x(Oo(nD,1),RI,10,0,[g.f.i,g.i,g.a])).b)),g=h),a=Ro(5,xE(g.f,g.g)),il(f=new pp($k(g.g)),a),Nh(r,Lf(f,Gm(_x(Oo(nD,1),RI,10,0,[g.f.i,g.i,g.a])))),os(r,Gm(_x(Oo(nD,1),RI,10,0,[g.f.i,g.i,g.a]))),l=new FN(r),lm(t.a,NE(l))}function _L(t){var e,n,r,i,o,a,s,u,c,l,f,d,p,g;if(Xu(yx(t.c,(HL(),AR)))===Xu((cS(),sB))||Xu(yx(t.c,AR))===Xu(aB))for(l=new $n(t.c.f);l.a<l.c.c.length;)if((c=Gh(Wv(l),7)).g==(uL(),wB)||c.g==DB)return!1;for(r=Sp(H_(t.c));X_(r);)if((n=Gh(xv(r),12)).c.f==n.d.f)return!1;if(zs(Gh(yx(t.c,AR),28))){for(p=new je,u=fC(t.c,(uL(),BB)).mb();u.G();)a=Gh(u.H(),7),Oh(p,dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[a.b,a.e]))))));for(Od(p),g=new Ec(p),p=new je,s=fC(t.c,yB).mb();s.G();)a=Gh(s.H(),7),Oh(p,dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[a.b,a.e]))))));Od(p),e=new Ec(p)}else g=G_(t.c),e=H_(t.c);return o=!rb(H_(t.c)),i=!rb(G_(t.c)),!(!o&&!i)&&(o?i?1==Zb((qc(),new Pc(Mc(zh(g.a,new h)))))&&(f=(Od(g),Gh(Kk(new Pc(Mc(zh(g.a,new h)))),12)).c.f).g==(AS(),kH)&&Gh(yx(f,(DL(),zq)),7).f!=t.c?(t.e=2,!0):1==Zb(new Pc(Mc(zh(e.a,new h))))&&(d=(Od(e),Gh(Kk(new Pc(Mc(zh(e.a,new h)))),12)).d.f).g==(AS(),kH)&&Gh(yx(d,(DL(),Yq)),7).f!=t.c&&(t.e=3,!0):(t.e=0,!0):(t.e=1,!0))}function EL(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g;if(r=new je,i=iP,o=iP,a=iP,n)for(i=t.e.a,p=new $n(e.f);p.a<p.c.c.length;)for(u=new $n(Gh(Wv(p),7).e);u.a<u.c.c.length;)0!=(s=Gh(Wv(u),12)).a.b&&((l=Gh(Rl(s.a),10)).a<i&&(o=i-l.a,a=iP,r.c=Ey(fM,kP,1,0,4,1),i=l.a),l.a<=i&&(r.c[r.c.length]=s,s.a.b>1&&(a=Ho(a,ka(Gh(tk(s.a,1),10).b-l.b)))));else for(p=new $n(e.f);p.a<p.c.c.length;)for(u=new $n(Gh(Wv(p),7).b);u.a<u.c.c.length;)0!=(s=Gh(Wv(u),12)).a.b&&((h=Gh(Bl(s.a),10)).a>i&&(o=h.a-i,a=iP,r.c=Ey(fM,kP,1,0,4,1),i=h.a),h.a>=i&&(r.c[r.c.length]=s,s.a.b>1&&(a=Ho(a,ka(Gh(tk(s.a,s.a.b-2),10).b-h.b)))));if(0!=r.c.length&&o>e.j.a/2&&a>e.j.b/2){for(tv(d=new bS,e),Hf(d,(uL(),wB)),d.i.a=e.j.a/2,tv(g=new bS,e),Hf(g,DB),g.i.a=e.j.a/2,g.i.b=e.j.b,u=new $n(r);u.a<u.c.c.length;)s=Gh(Wv(u),12),n?(c=Gh(wh(s.a),10),(0==s.a.b?Iv(s.d):Gh(Rl(s.a),10)).b>=c.b?rv(s,g):rv(s,d)):(c=Gh(mh(s.a),10),(0==s.a.b?Iv(s.c):Gh(Bl(s.a),10)).b>=c.b?nv(s,g):nv(s,d)),(f=Gh(yx(s,(HL(),fR)),44))&&dE(f,c,!0);e.i.a=i-e.j.a/2}}function kL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w;for(b=new je,y=new je,w=new je,o=new $n(e);o.a<o.c.c.length;)(i=Gh(Wv(o),75)).k>50?b.c[b.c.length]=i:i.k>0?y.c[y.c.length]=i:w.c[w.c.length]=i;if(1==y.c.length&&0==b.c.length&&(Jm(b,y),y.c=Ey(fM,kP,1,0,4,1)),0!=b.c.length&&ql(ic(t.a),(pL(),RY))&&ql(ic(t.a),(pL(),GY))?function(t,e){var n,r,i;for(r=new $n(e);r.a<r.c.c.length;)n=Gh(Wv(r),75),i=DA(t.a),_w(t.a,i,n.k,n.j),oC(n,i,!0)}(t,b):Jm(y,b),0==y.c.length||function(t,e){var n,r,i;for(r=new $n(e);r.a<r.c.c.length;)n=Gh(Wv(r),75),i=pA(t.a),_w(t.a,i,n.k,n.j),oC(n,i,!0)}(t,y),0!=w.c.length){if(0!=(n=oc(t.a)).c)for(l=new $n(w),Od(n),u=sf(new kc(n).a);l.a<l.c.c.length;){for(i=Gh(Wv(l),75);l.a<l.c.c.length&&i.a.a.Y()<2;)i=Gh(Wv(l),75);i.a.a.Y()>1&&(oC(i,g=Gh(Sw(u),60),!0),ap(l),Zg(t.a,g))}for(h=w.c.length,r=function(t){var e,n,r,i;switch(oc(t.a).c){case 4:return pL(),GY;case 3:return Gh(Zv(t.a).mb().H(),60);case 2:return e=Gh(Kb(n=new Ys(r=oc(t.a))),60),i=Gh(Kb(n),60),oA(e)==i?ql(r,(pL(),GY))?IY:GY:iA(iA(e))==i?iA(e):aA(e);case 1:return oA(Gh(Kb(new Ys(r=oc(t.a))),60));case 0:return pL(),HY;default:return null}}(t),d=new je,a=h/rc(t.a).c|0,s=0;s<a;s++)Jm(d,rc(t.a));switch((p=h%rc(t.a).c)>3&&(Jm(d,(pL(),pL(),LY)),p-=4),p){case 3:Oh(d,oA(r));case 2:v=iA(oA(r));do{v=iA(v)}while(!ql(ic(t.a),v));d.c[d.c.length]=v,v=aA(oA(r));do{v=aA(v)}while(!ql(ic(t.a),v));d.c[d.c.length]=v;break;case 1:Oh(d,oA(r))}for(f=new $n(d),c=new $n(w);f.a<f.c.c.length&&c.a<c.c.c.length;)oC(Gh(Wv(c),75),Gh(Wv(f),60),!0)}}function SL(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E;for(t.d=new Za(QI,QI),t.c=new Za(JI,JI),f=e.mb();f.G();)for(y=new $n(Gh(f.H(),55).b);y.a<y.c.c.length;)b=Gh(Wv(y),9),t.d.a=Ho(t.d.a,b.i.a-b.e.b),t.d.b=Ho(t.d.b,b.i.b-b.e.d),t.c.a=Ro(t.c.a,b.i.a+b.j.a+b.e.c),t.c.b=Ro(t.c.b,b.i.b+b.j.b+b.e.a);for(s=new Pr,l=e.mb();l.G();)r=wL(t,Gh(l.H(),55)),Oh(s.a,r),r.a=r.a|!Gh(yx(r.c,(DL(),Lq)),18).V();for(t.b=(lx(),(E=new T).f=new Fm(n),E.b=AO(E.f,s),E),SO((d=t.b,new Vf,d)),t.e=new ao,t.a=t.b.f.e,a=new $n(s.a);a.a<a.c.c.length;)for(i=Gh(Wv(a),347),w=wg(t.b,i),ZA(i.c,w.a,w.b),g=new $n(i.c.b);g.a<g.c.c.length;)(p=Gh(Wv(g),9)).g==(AS(),_H)&&(v=ZC(t,p.i,Gh(yx(p,(DL(),Iq)),32)),Lf(Au(p.i),v));for(o=new $n(s.a);o.a<o.c.c.length;)for(c=new $n(R_(i=Gh(Wv(o),347)));c.a<c.c.c.length;)for(Hl(_=new Tf((u=Gh(Wv(c),12)).a),0,Iv(u.c)),Nh(_,Iv(u.d)),h=null,x=_k(_,0);x.b!=x.d.c;)m=Gh(Cb(x),10),h?(Uy(h.a,m.a)?(t.e.a=Ho(t.e.a,h.a),t.a.a=Ro(t.a.a,h.a)):Uy(h.b,m.b)&&(t.e.b=Ho(t.e.b,h.b),t.a.b=Ro(t.a.b,h.b)),h=m):h=m;Dl(t.e),Lf(t.a,t.e)}function CL(t,e,n,r,i){var o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S;for(p=new sw(e.b),y=new sw(e.b),h=new sw(e.b),_=new sw(e.b),g=new sw(e.b),x=_k(e,0);x.b!=x.d.c;)for(s=new $n((w=Gh(Cb(x),7)).e);s.a<s.c.c.length;)if((o=Gh(Wv(s),12)).c.f==o.d.f){if(w.g==o.d.g){_.c[_.c.length]=o;continue}if(w.g==(uL(),wB)&&o.d.g==DB){g.c[g.c.length]=o;continue}}for(u=new $n(g);u.a<u.c.c.length;)pN(t,o=Gh(Wv(u),12),n,r,(uL(),yB));for(a=new $n(_);a.a<a.c.c.length;)o=Gh(Wv(a),12),lr(E=new wk(t),(AS(),CH)),$y(E,(HL(),AR),(cS(),aB)),$y(E,(DL(),Uq),o),$y(k=new bS,Uq,o.d),Hf(k,(uL(),BB)),tv(k,E),$y(S=new bS,Uq,o.c),Hf(S,yB),tv(S,E),$y(o.c,Jq,E),$y(o.d,Jq,E),rv(o,null),nv(o,null),n.c[n.c.length]=E,$y(E,Cq,F_(2));for(m=_k(e,0);m.b!=m.d.c;)c=(w=Gh(Cb(m),7)).b.c.length>0,v=w.e.c.length>0,c&&v?h.c[h.c.length]=w:c?p.c[p.c.length]=w:v&&(y.c[y.c.length]=w);for(d=new $n(p);d.a<d.c.c.length;)Oh(i,pO(t,Gh(Wv(d),7),null,n));for(b=new $n(y);b.a<b.c.c.length;)Oh(i,pO(t,null,Gh(Wv(b),7),n));for(f=new $n(h);f.a<f.c.c.length;)Oh(i,pO(t,l=Gh(Wv(f),7),l,n))}function TL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A;for(C=new so,E=new so,b=-1,u=new $n(t);u.a<u.c.c.length;){for((a=Gh(Wv(u),77)).i=b--,f=0,m=0,o=new $n(a.j);o.a<o.c.c.length;)m+=(r=Gh(Wv(o),117)).c;for(i=new $n(a.d);i.a<i.c.c.length;)f+=(r=Gh(Wv(i),117)).c;a.e=f,a.k=m,0==m?Ob(E,a,E.c.b,E.c):0==f&&Ob(C,a,C.c.b,C.c)}for(A=new Dd((Yc(),t)),v=(h=t.c.length)+1,y=h-1,p=new je;0!=A.a.Y();){for(;0!=E.b;)Nc(0!=E.b),_=Gh(Hw(E,E.a.a),77),A.a.eb(_),_.i=y--,KT(_,C,E);for(;0!=C.b;)Nc(0!=C.b),k=Gh(Hw(C,C.a.a),77),A.a.eb(k),k.i=v++,KT(k,C,E);for(g=lP,c=new Yn(new zn(A.a).a.bb().mb());c.a.G();)l=Gh(c.a.H(),21),(w=(a=Gh(l.yb(),77)).k-a.e)>=g&&(w>g&&(p.c=Ey(fM,kP,1,0,4,1),g=w),p.c[p.c.length]=a);0!=p.c.length&&(d=Gh(ld(p,Yk(e,p.c.length)),77),A.a.eb(d),d.i=v++,KT(d,C,E),p.c=Ey(fM,kP,1,0,4,1))}for(x=t.c.length+1,s=new $n(t);s.a<s.c.c.length;)(a=Gh(Wv(s),77)).i<h&&(a.i+=x);for(S=new $n(t);S.a<S.c.c.length;)for(n=new Uv((k=Gh(Wv(S),77)).j,0);n.b<n.d.Y();)Nc(n.b<n.d.Y()),T=(r=Gh(n.d.sb(n.c=n.b++),117)).b,k.i>T.i&&(ng(n),Dy(T.d,r),r.c>0&&(r.a=T,Oh(T.j,r),r.b=k,Oh(k.d,r)))}function AL(t){switch(t.e){case 14:return new W;case 37:return new K;case 8:return new Ki;case 30:return new Zi;case 38:return new Q;case 3:return new J;case 47:case 1:return new gn((Nx(),GH));case 4:return new tt;case 49:return new et;case 23:return new te;case 13:return new nt;case 34:return new it;case 40:return new ot;case 35:return new ut;case 44:return new zc;case 28:return new ct;case 39:return new lt;case 27:return new ft;case 6:return new ht;case 31:return new vt;case 9:return new Ee;case 43:return new yt;case 17:return new wt;case 18:return new _t;case 29:return new ke;case 11:return new Ot;case 12:return new kt;case 36:return new St;case 46:case 0:return new gn((Nx(),BH));case 41:return new Tt;case 15:return new At;case 33:return new Nt;case 42:return new Pt;case 22:return new It;case 19:return new gt;case 10:return new Ct;case 7:return new Mt;case 24:return new Dt;case 21:return new Rt;case 16:return new Gt;case 45:return new Ht;case 26:return new Ft;case 20:return new zt;case 25:return new Yt;case 5:return new Kt;case 32:return new Zt;case 48:case 2:return new gn((Nx(),RH));default:throw new io("No implementation is available for the layout processor "+(null!=t.d?t.d:""+t.e))}}function NL(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N;for(T=0,o=0,l=e[0].d,E=n[0].d,d=0,g=n.length;d<g;++d)if(Yl(Gh(yx(f=n[d],(HL(),AR)),28))){for(b=0,m=new $n(f.f);m.a<m.c.c.length&&(w=Gh(Wv(m),7)).g==(uL(),wB);)for(i=new $n(w.b);i.a<i.c.c.length;)if(Gh(Wv(i),12).c.f.d==l){++b;break}for(y=0,_=new Uv(f.f,f.f.c.length);_.b>0;){for(Nc(_.b>0),x=0,i=new $n((w=Gh(_.a.sb(_.c=--_.b),7)).b);i.a<i.c.c.length;)Gh(Wv(i),12).c.f.d==l&&++x;x>0&&(w.g==(uL(),wB)?(t.a[w.k]=T,++T):(t.a[w.k]=T+b+y,++y),o+=x)}T+=y}else{for(v=0,m=new $n(f.f);m.a<m.c.c.length;){for(i=new $n((w=Gh(Wv(m),7)).b);i.a<i.c.c.length;)Gh(Wv(i),12).c.f.d==l&&++v;t.a[w.k]=T}v>0&&(++T,o+=v)}for(k=Ey(UX,nI,26,o,12,1),s=0,h=0,p=e.length;h<p;++h)if(Yl(Gh(yx(f=e[h],(HL(),AR)),28)))for(m=new $n(f.f);m.a<m.c.c.length;)for(S=s,i=new $n((w=Gh(Wv(m),7)).e);i.a<i.c.c.length;)(C=Gh(Wv(i),12).d).f.d==E&&qm(k,S,s++,t.a[C.k]);else for(S=s,m=new $n(f.f);m.a<m.c.c.length;)for(i=new $n((w=Gh(Wv(m),7)).e);i.a<i.c.c.length;)(C=Gh(Wv(i),12).d).f.d==E&&qm(k,S,s++,t.a[C.k]);for(a=1;a<T;)a*=2;for(N=2*a-1,a-=1,A=Ey(UX,nI,26,N,12,1),r=0,c=0;c<o;c++)for(++A[u=k[c]+a];u>0;)u%2>0&&(r+=A[u+1]),++A[u=(u-1)/2|0];return r}function OL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N,O;for(jE(e,"Compound graph postprocessor",1),n=eo(no(Af(yx(t,(RL(),CU))))),s=Gh(yx(t,(DL(),Tq)),144),f=new Qi,_=s.W().mb();_.G();){for(x=Gh(_.H(),12),yb(a=new hh(s.U(x)),new an(t)),C=om((my(0,a.c.length),Gh(a.c[0],114))),A=im(Gh(ld(a,a.c.length-1),114)),Cg(x.a),k=C.f,E=N_(A.f,k)?Gh(yx(k,Vq),55):Vp(k),p=Gh(yx(x,(HL(),fR)),44),Ed(a,yH)?p?Cg(p):(p=new Br,$y(x,fR,p)):p&&$y(x,fR,null),v=null,o=new $n(a);o.a<o.c.c.length;){for(i=Gh(Wv(o),114),xT(m=new ao,i.a,E),b=i.b,Rx(r=new Br,0,b.a),Nm(r,m),S=new Uu(Iv(b.c)),T=new Uu(Iv(b.d)),S.a+=m.a,S.b+=m.b,T.a+=m.a,T.b+=m.b,v&&(0==r.b?w=T:(Nc(0!=r.b),w=Gh(r.a.a.c,10)),N=ka(v.a-w.a)>cj,O=ka(v.b-w.b)>cj,(!n&&N&&O||n&&(N||O))&&Nh(x.a,S)),lm(x.a,r),0==r.b?v=S:(Nc(0!=r.b),v=Gh(r.c.b.c,10)),(y=Gh(yx(b,fR),44))&&(Rx(d=new Br,0,y),Nm(d,m),lm(p,d)),im(i)==A&&(Vp(A.f)!=i.a&&xT(m=new ao,Vp(A.f),E),$y(x,dU,m)),g=new Uv(b.b,0);g.b<g.d.Y();)Nc(g.b<g.d.Y()),Xu(yx(u=Gh(g.d.sb(g.c=g.b++),33),$q))===Xu(x)&&(xT(u.i,Vp(b.c.f),E),ng(g),Oh(x.b,u));f.a.db(b,f)}rv(x,C),nv(x,A)}for(l=new Yn(new zn(f.a).a.bb().mb());l.a.G();)h=Gh(l.a.H(),21),rv(c=Gh(h.yb(),12),null),nv(c,null);j_(e)}function LL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N,O,L;for(N=new je,d=new $n(e.c);d.a<d.c.c.length;)for(m=new $n(Gh(Wv(d),16).a);m.a<m.c.c.length;){for((w=Gh(Wv(m),9)).k=-1,f=lP,E=lP,S=new $n(w.f);S.a<S.c.c.length;){for(i=new $n((k=Gh(Wv(S),7)).b);i.a<i.c.c.length;)n=Gh(Wv(i),12),f=f>(C=Gh(yx(n,(DL(),nU)),24).a)?f:C;for(r=new $n(k.e);r.a<r.c.c.length;)n=Gh(Wv(r),12),E=E>(C=Gh(yx(n,(DL(),nU)),24).a)?E:C}$y(w,Wz,F_(f)),$y(w,$z,F_(E))}for(v=0,h=new $n(e.c);h.a<h.c.c.length;)for(m=new $n(Gh(Wv(h),16).a);m.a<m.c.c.length;)(w=Gh(Wv(m),9)).k<0&&((A=new Kr).b=v++,uO(t,w,A),N.c[N.c.length]=A);for(_=Al(N.c.length),l=Al(N.c.length),a=0;a<N.c.length;a++)Oh(_,new je),Oh(l,F_(0));for(function(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v,b,y;for(d=e.c.length,h=0,f=new $n(t.c);f.a<f.c.c.length;)if(0!=(b=(l=Gh(Wv(f),16)).a).c.length){for(c=0,y=null,i=Gh(Wv(v=new $n(b)),9);i;){if((o=Gh(ld(e,i.k),111)).c>=0){for(u=null,s=new Uv(l.a,c+1);s.b<s.d.Y()&&(Nc(s.b<s.d.Y()),a=Gh(s.d.sb(s.c=s.b++),9),!((u=Gh(ld(e,a.k),111)).d==o.d&&u.c<o.c));)u=null;u&&(y&&($b(r,i.k,F_(Gh(ld(r,i.k),24).a-1)),Gh(ld(n,y.k),20).nb(o)),o=IS(o,i,d++),e.c[e.c.length]=o,Oh(n,new je),y?(Gh(ld(n,y.k),20).ib(o),Oh(r,F_(1))):Oh(r,F_(0)))}p=null,v.a<v.c.c.length&&(p=Gh(Wv(v),9),g=Gh(ld(e,p.k),111),Gh(ld(n,i.k),20).ib(g),$b(r,p.k,F_(Gh(ld(r,p.k),24).a+1))),o.d=h,o.c=c++,y=i,i=p}++h}eo(no(Af(yx(t,(HL(),tR)))))}(e,N,_,l),O=Gh(Dk(N,Ey(Zz,qj,111,N.c.length,0,1)),625),x=Gh(Dk(_,Ey(SM,{3:1,5:1,6:1,672:1},20,_.c.length,0,1)),672),c=Ey(UX,nI,26,l.c.length,12,1),s=0;s<c.length;s++)c[s]=(my(s,l.c.length),Gh(l.c[s],24)).a;for(b=0,y=new je,u=0;u<O.length;u++)0==c[u]&&Oh(y,O[u]);for(g=Ey(UX,nI,26,O.length,12,1);0!=y.c.length;)for(g[(A=Gh(gy(y,0),111)).b]=b++;!x[A.b].V();)--c[(L=Gh(x[A.b].vb(0),111)).b],0==c[L.b]&&(y.c[y.c.length]=L);for(t.a=Ey(Zz,qj,111,O.length,0,1),o=0;o<O.length;o++)for(p=O[o],T=g[o],t.a[T]=p,p.b=T,m=new $n(p.f);m.a<m.c.c.length;)(w=Gh(Wv(m),9)).k=T;return t.a}function PL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C;if(!Yl(Gh(yx(e,(HL(),AR)),28))){if(e.f.c.length>1){x=Ey(wX,ZL,15,t.a.length,0,1),c=Al(t.a.length),p=0,d=0,n=2*e.d.a.c.length+1;t:for(m=new $n(e.f);m.a<m.c.c.length;){if(C=0,v=(w=Gh(Wv(m),7)).g==(uL(),wB)||w.g==DB){if(!(_=Gh(yx(w,(DL(),Jq)),9)))continue;for(f=!1,y=!1,k=new $n(_.f);k.a<k.c.c.length;)Xu(yx(E=Gh(Wv(k),7),Uq))===Xu(w)&&(0==E.e.c.length?0==E.b.c.length||(f=!0):y=!0);f&&!y?C=w.g==wB?-(_.d?Ky(_.d.a,_,0):-1):n-(_.d?Ky(_.d.a,_,0):-1):y&&!f?C=(_.d?Ky(_.d.a,_,0):-1)+1:f&&y&&(C=w.g==wB?0:n/2)}else{for(b=new $n(w.e);b.a<b.c.c.length;){if((i=Gh(Wv(b),12).d).f.d==e.d){c.c[c.c.length]=w;continue t}C+=t.a[i.k]}for(l=new $n(w.b);l.a<l.c.c.length;){if((i=Gh(Wv(l),12).c).f.d==e.d){c.c[c.c.length]=w;continue t}C-=t.a[i.k]}}w.b.c.length+w.e.c.length>0?(x[w.k]=new Gn(C/(w.b.c.length+w.e.c.length)),p=Fo(p,x[w.k].a),d=Bo(d,x[w.k].a)):v&&(x[w.k]=new Gn(C))}for(g=(e.d?Ky(e.d.a,e,0):-1)+1,h=e.d.a.c.length+1,u=new $n(c);u.a<u.c.c.length;){for(s=Gh(Wv(u),7),C=0,a=0,o=Sp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[new cn(s),new fn(s)]))))));X_(o);)(i=Gh(xv(o),7)).f.d==e.d&&(C+=Bf(i.f)+1,++a);r=C/a,(S=s.g)==(uL(),yB)?x[s.k]=new Gn(r<g?p-r:d+(h-r)):S==BB&&(x[s.k]=new Gn(r<g?d+r:p-(h-r)))}yb(e.f,new Tn(x))}$y(e,AR,(cS(),oB))}}function IL(t,e,n,r,i,o){var a,s,u,c,l,f,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N;for(s=Gh(ld(t.d.c.c,r),16),T=new Qi,g=new Qi,p=0;p<s.a.c.length;++p)w=Gh(ld(s.a,p),9),p<n?T.a.db(w,T):p>n&&g.a.db(w,g);for(A=new Qi,v=new Qi,x=new Yn(new zn(T.a).a.bb().mb());x.a.G();)for(f=Gh(x.a.H(),21),w=Gh(f.yb(),9),a=1==e?H_(w):G_(w),qc(),c=new Pc(Mc(zh(a.a,new h)));X_(c);)u=Gh(xv(c),12),Nu(w.d)!=Nu(u.d.f.d)&&mp(A,u.d.f);for(_=new Yn(new zn(g.a).a.bb().mb());_.a.G();)for(f=Gh(_.a.H(),21),w=Gh(f.yb(),9),a=1==e?H_(w):G_(w),qc(),c=new Pc(Mc(zh(a.a,new h)));X_(c);)u=Gh(xv(c),12),Nu(w.d)!=Nu(u.d.f.d)&&mp(v,u.d.f);for(DH&&Ih(),S=Gh(ld(t.d.c.c,r+(1==e?1:-1)),16),b=lP,y=iP,d=0;d<S.a.c.length;d++)w=Gh(ld(S.a,d),9),A.a.R(w)?b=b>d?b:d:v.a.R(w)&&(y=y<d?y:d);if(b<y){for(E=new Yn(new zn(A.a).a.bb().mb());E.a.G();){for(f=Gh(E.a.H(),21),l=Sp(H_(w=Gh(f.yb(),9)));X_(l);)if(u=Gh(xv(l),12),Nu(w.d)==Nu(u.d.f.d))return null;for(c=Sp(G_(w));X_(c);)if(u=Gh(xv(c),12),Nu(w.d)==Nu(u.c.f.d))return null}for(k=new Yn(new zn(v.a).a.bb().mb());k.a.G();){for(f=Gh(k.a.H(),21),l=Sp(H_(w=Gh(f.yb(),9)));X_(l);)if(u=Gh(xv(l),12),Nu(w.d)==Nu(u.d.f.d))return null;for(c=Sp(G_(w));X_(c);)if(u=Gh(xv(c),12),Nu(w.d)==Nu(u.c.f.d))return null}for(N=0==T.a.Y()?0:0==g.a.Y()?S.a.c.length:b+1,m=new $n(s.a);m.a<m.c.c.length;)if((w=Gh(Wv(m),9)).g==(AS(),CH))return null;return 1==o||1==e&&r==i-2||0==e&&1==r?sy(_x(Oo(dM,1),ZL,24,0,[F_(N)])):((C=IL(t,e,N,r+(1==e?1:-1),i,o-1))&&1==e&&C.rb(0,F_(N)),C)}return null}function jL(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y;if(OC(e),!((d=(HL(),wR).b)in e.a)||!_g(e,d).ic().a){if(u=_g(e,"source"),c=_g(e,"sourcePort"),l=_g(e,"target"),f=_g(e,"targetPort"),!u)throw new gp("Edges must contain a 'source' property.",null,e);if(!u.lc())throw new gp("Invalid format of an edge's 'source' property. It must be a string.",u,e);if(!l)throw new gp("Edges must contain a 'target' property.",null,e);if(!l.lc())throw new gp("Invalid format of an edge's 'target' property. It must be a string.",l,e);v=null,y=null;try{g=Gh(hv(t.i,u.lc().a),9),c&&c.lc()&&(v=Gh(hv(t.k,c.lc().a),7)),b=Gh(hv(t.i,l.lc().a),9),f&&f.lc()&&(y=Gh(hv(t.k,f.lc().a),7))}catch(t){throw fl(t=Qx(t),76)?new Xl("An edge's 'source', 'target', 'sourcePort', and 'targetPort' properties have to be strings.",e):A_(t)}if(!eo(no(t.g))){if(!g||!b)return;if(Vp(g)!=Vp(b))return}if(!g||!b)throw new Xl("An edge's source or target node could not be resolved.",e);if(p=Vp(g),$y(r=new Og,(DL(),Uq),e),a=Gh(_g(e,"id"),97),Rv(t.a,a.a,r),dg(t.b,r,e),gS(e,r),aT(t,e,r,p),i=Gh(yx(p,Mq),18),g==b&&i.ib((YA(),$V)),v){if(v.f!=g)throw new zi("Inconsistent source port reference found.")}else v=KN(g,new ao,(tm(),EU),p);if(y){if(y.f!=b)throw new zi("Inconsistent target port reference found.")}else y=KN(b,new ao,(tm(),_U),p);if(rv(r,v),nv(r,y),(Xp(dc((Qp(),new ib(P_(_x(Oo(fM,1),kP,1,4,[v.b,v.e]))))))>1||Xp(dc(new ib(P_(_x(Oo(fM,1),kP,1,4,[y.b,y.e])))))>1)&&i.ib((YA(),VV)),Xu(yx(p,(RL(),OU)))===Xu((sb(),jz))&&!(GI in e.a)){n=new Br;try{for(s=_g(e,GI).hc(),o=0;o<s.a.length;++o)Ob(n,new Za(_g(h=Tw(s,o).kc(),"x").jc().a,_g(h,"y").jc().a),n.c.b,n.c);$y(r,Xq,n)}catch(t){throw fl(t=Qx(t),54)?new Xl("Invalid format of an edges 'bendPoints' property.",e):A_(t)}}$y(r,fR,null)}}function ML(){ML=r,yF=new Os("LEFT_DIR_PREPROCESSOR",0),$H=new Os("DOWN_DIR_PREPROCESSOR",1),RF=new Os("UP_DIR_PREPROCESSOR",2),XH=new Os("COMMENT_PREPROCESSOR",3),KH=new Os("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",4),jF=new Os("SPLINE_SELF_LOOP_PREPROCESSOR",5),aF=new Os("INTERACTIVE_EXTERNAL_PORT_POSITIONER",6),CF=new Os("PARTITION_PREPROCESSOR",7),VH=new Os("BIG_NODES_PREPROCESSOR",8),lF=new Os("LABEL_DUMMY_INSERTER",9),SF=new Os("PARTITION_POSTPROCESSOR",10),_F=new Os("NODE_PROMOTION",11),gF=new Os("LAYER_CONSTRAINT_PROCESSOR",12),JH=new Os("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),zH=new Os("BIG_NODES_INTERMEDIATEPROCESSOR",14),mF=new Os("LONG_EDGE_SPLITTER",15),NF=new Os("PORT_SIDE_PROCESSOR",16),hF=new Os("LABEL_DUMMY_SWITCHER",17),dF=new Os("LABEL_MANAGEMENT_PROCESSOR",18),sF=new Os("INVERTED_PORT_PROCESSOR",19),PF=new Os("SELF_LOOP_PROCESSOR",20),AF=new Os("PORT_LIST_SORTER",21),kF=new Os("NORTH_SOUTH_PORT_PREPROCESSOR",22),QH=new Os("GREEDY_SWITCH",23),TF=new Os("PORT_DISTRIBUTER",24),IF=new Os("SPLINE_SELF_LOOP_POSITIONER",25),LF=new Os("SAUSAGE_COMPACTION",26),uF=new Os("IN_LAYER_CONSTRAINT_PROCESSOR",27),iF=new Os("HYPEREDGE_DUMMY_MERGER",28),pF=new Os("LABEL_SIDE_SELECTOR",29),qH=new Os("BIG_NODES_SPLITTER",30),cF=new Os("LABEL_AND_NODE_SIZE_PROCESSOR",31),MF=new Os("SPLINE_SELF_LOOP_ROUTER",32),xF=new Os("NODE_MARGIN_CALCULATOR",33),tF=new Os("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",34),nF=new Os("HIERARCHICAL_PORT_POSITION_PROCESSOR",35),vF=new Os("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",36),YH=new Os("BIG_NODES_POSTPROCESSOR",37),UH=new Os("COMMENT_POSTPROCESSOR",38),oF=new Os("HYPERNODE_PROCESSOR",39),eF=new Os("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",40),wF=new Os("LONG_EDGE_JOINER",41),EF=new Os("NORTH_SOUTH_PORT_POSTPROCESSOR",42),fF=new Os("LABEL_DUMMY_REMOVER",43),rF=new Os("HORIZONTAL_COMPACTOR",44),OF=new Os("REVERSED_EDGE_RESTORER",45),bF=new Os("LEFT_DIR_POSTPROCESSOR",46),WH=new Os("DOWN_DIR_POSTPROCESSOR",47),DF=new Os("UP_DIR_POSTPROCESSOR",48),ZH=new Os("END_LABEL_PROCESSOR",49)}function DL(){var t,e;DL=r,Uq=new sd("origin"),Sq=new sd("processingConfiguration"),rU=new sd("processors"),kq=new Lh("compoundNode",(Hd(),Hd(),gX)),Rq=new Lh("insideConnections",gX),Vq=new sd("nestedLGraph"),Zq=new sd("parentLNode"),Xq=new sd("originalBendpoints"),Wq=new sd("originalDummyNodePosition"),$q=new sd("originalLabelEdge"),oU=new sd("representedLabels"),Fq=new Lh("labelSide",(SE(),LG)),aU=new Lh("reversed",gX),iU=new sd("random"),zq=new Lh("longEdgeSource",null),Yq=new Lh("longEdgeTarget",null),Nq=new Lh("edgeConstraint",(Ox(),_V)),Gq=new sd("inLayerLayoutUnit"),Bq=new Lh("inLayerConstraint",(Mw(),uq)),Hq=new Lh("inLayerSuccessorConstraint",new je),Jq=new sd("portDummy"),Cq=new Lh("crossingHint",F_(0)),Mq=new Lh("graphProperties",new qh(e=Gh(na(oq),11),Gh(_p(e,e.length),11),0)),Iq=new Lh("externalPortSide",(uL(),RB)),jq=new Lh("externalPortSize",new ao),Pq=new sd("externalPortReplacedDummy"),Lq=new Lh("externalPortConnections",new qh(t=Gh(na(qB),11),Gh(_p(t,t.length),11),0)),tU=new Lh(OI,0),vq=new sd("barycenterAssociates"),pU=new sd("TopSideComments"),_q=new sd("BottomSideComments"),Eq=new sd("CommentConnectionPort"),Dq=new Lh("inputCollect",gX),Kq=new Lh("outputCollect",gX),Aq=new Lh("cyclic",gX),mq=new Lh("bigNodeOriginalSize",new Gn(0)),wq=new Lh("bigNodeInitial",gX),bq=new Lh("de.cau.cs.kieler.klay.layered.bigNodeLabels",new je),yq=new Lh("de.cau.cs.kieler.klay.layered.postProcess",null),Tq=new sd("crossHierarchyMap"),dU=new sd("targetOffset"),cU=new Lh("splineLabelSize",new ao),lU=new Lh("splineLoopSide",(pL(),nV)),fU=new Lh("splineSelfLoopComponents",new je),hU=new Lh("splineSelfLoopMargins",new Fr),uU=new sd("spacings"),Qq=new Lh("partitionConstraint",gX),qq=new Cd((HL(),mR),new Gn(0)),sU=new Sd(GR,new Gn(20),new Gn(1)),eU=new Sd(PR,new Gn(10),new Gn(1)),xq=new Sd(QD,new Gn(12),new Gn(0)),nU=new Cd(jR,F_(0)),gq=new Sd(KD,new Gn(uj),new Gn(0)),Oq=new Cd(rR,(y_(),TD))}function RL(){RL=r,XU=new Lh("de.cau.cs.kieler.klay.layered.nodePromotion",(UT(),XF)),WU=new Xv("de.cau.cs.kieler.klay.layered.nodePromotionBoundary",F_(0),F_(0),F_(100)),JU=new Lh(TI,F_(1)),KU=new yv("de.cau.cs.kieler.klay.layered.inLayerSpacingFactor",new Gn(1),new Gn(0)),DU=new Lh("de.cau.cs.kieler.klay.layered.edgeSpacingFactor",new Gn(.5)),MU=new Lh("de.cau.cs.kieler.klay.layered.edgeNodeSpacingFactor",new Gn(Hj)),IU=new Lh("de.cau.cs.kieler.klay.layered.distributeNodes",(Hd(),Hd(),gX)),rX=new Lh("de.cau.cs.kieler.klay.layered.wideNodesOnMultipleLayers",(jm(),hX)),LU=new Lh("de.cau.cs.kieler.klay.layered.cycleBreaking",(Bg(),vz)),qU=new Lh("de.cau.cs.kieler.klay.layered.nodeLayering",(lw(),kz)),OU=new Lh("de.cau.cs.kieler.klay.layered.crossMin",(sb(),Mz)),GU=new Lh("de.cau.cs.kieler.klay.layered.greedySwitch",(hO(),nq)),UU=new Lh("de.cau.cs.kieler.klay.layered.nodePlace",(Gk(),Qz)),zU=new Xv("de.cau.cs.kieler.klay.layered.linearSegmentsDeflectionDampening",new Gn(Gj),new Gn(0),new Gn(1)),BU=new Lh("de.cau.cs.kieler.klay.layered.fixedAlignment",(SS(),MV)),jU=new Lh("de.cau.cs.kieler.klay.layered.edgeLabelSideSelection",(fS(),CV)),PU=new Lh(CI,gX),nX=new yv("de.cau.cs.kieler.klay.layered.thoroughness",F_(10),F_(1)),FU=new Lh("de.cau.cs.kieler.klay.layered.layerConstraint",(Hk(),wU)),YU=new Lh("de.cau.cs.kieler.klay.layered.mergeEdges",gX),VU=new Lh("de.cau.cs.kieler.klay.layered.mergeHierarchyEdges",vX),HU=new Lh("de.cau.cs.kieler.klay.layered.interactiveReferencePoint",(ob(),fq)),RU=new Lh("de.cau.cs.kieler.klay.layered.feedBackEdges",gX),CU=new Lh("de.cau.cs.kieler.klay.layered.unnecessaryBendpoints",gX),NU=new Lh("de.cau.cs.kieler.klay.layered.contentAlignment",(CS(),Wd(wV,_x(Oo(kV,1),CP,123,0,[gV])))),tX=new Lh("de.cau.cs.kieler.klay.layered.sausageFolding",gX),eX=new Lh("de.cau.cs.kieler.klay.layered.splines.selfLoopPlacement",(CE(),aX)),TU=new Lh("de.cau.cs.kieler.klay.layered.nodeplace.compactionStrategy",(Dw(),dY)),$U=new Lh("de.cau.cs.kieler.klay.layered.northOrSouthPort",gX),ZU=new Lh("de.cau.cs.kieler.klay.layered.postCompaction",(aC(),oz)),QU=new Lh("de.cau.cs.kieler.klay.layered.postCompaction.constraints",(kb(),JF)),AU=new Lh("de.cau.cs.kieler.klay.layered.components.compact",gX)}function BL(){BL=r,wG=new bg("OUT_T_L",0,(Qp(),new Gd(Wd((uT(),UR),_x(Oo(rB,1),CP,41,0,[$R,zR])))),(Bb(),EG)),yG=new bg("OUT_T_C",1,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(UR,_x(Oo(rB,1),CP,41,0,[$R,FR])),Wd(UR,_x(Oo(rB,1),CP,41,0,[$R,FR,YR]))]))),_G),mG=new bg("OUT_T_R",2,new Gd(Wd(UR,_x(Oo(rB,1),CP,41,0,[$R,VR]))),kG),lG=new bg("OUT_B_L",3,new Gd(Wd(UR,_x(Oo(rB,1),CP,41,0,[XR,zR]))),EG),cG=new bg("OUT_B_C",4,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(UR,_x(Oo(rB,1),CP,41,0,[XR,FR])),Wd(UR,_x(Oo(rB,1),CP,41,0,[XR,FR,YR]))]))),_G),fG=new bg("OUT_B_R",5,new Gd(Wd(UR,_x(Oo(rB,1),CP,41,0,[XR,VR]))),kG),pG=new bg("OUT_L_T",6,new Gd(Wd(UR,_x(Oo(rB,1),CP,41,0,[zR,$R,YR]))),kG),dG=new bg("OUT_L_C",7,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(UR,_x(Oo(rB,1),CP,41,0,[zR,WR])),Wd(UR,_x(Oo(rB,1),CP,41,0,[zR,WR,YR]))]))),kG),hG=new bg("OUT_L_B",8,new Gd(Wd(UR,_x(Oo(rB,1),CP,41,0,[zR,XR,YR]))),kG),bG=new bg("OUT_R_T",9,new Gd(Wd(UR,_x(Oo(rB,1),CP,41,0,[VR,$R,YR]))),EG),vG=new bg("OUT_R_C",10,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(UR,_x(Oo(rB,1),CP,41,0,[VR,WR])),Wd(UR,_x(Oo(rB,1),CP,41,0,[VR,WR,YR]))]))),EG),gG=new bg("OUT_R_B",11,new Gd(Wd(UR,_x(Oo(rB,1),CP,41,0,[VR,XR,YR]))),EG),sG=new bg("IN_T_L",12,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(qR,_x(Oo(rB,1),CP,41,0,[$R,zR])),Wd(qR,_x(Oo(rB,1),CP,41,0,[$R,zR,YR]))]))),EG),aG=new bg("IN_T_C",13,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(qR,_x(Oo(rB,1),CP,41,0,[$R,FR])),Wd(qR,_x(Oo(rB,1),CP,41,0,[$R,FR,YR]))]))),_G),uG=new bg("IN_T_R",14,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(qR,_x(Oo(rB,1),CP,41,0,[$R,VR])),Wd(qR,_x(Oo(rB,1),CP,41,0,[$R,VR,YR]))]))),kG),iG=new bg("IN_C_L",15,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(qR,_x(Oo(rB,1),CP,41,0,[WR,zR])),Wd(qR,_x(Oo(rB,1),CP,41,0,[WR,zR,YR]))]))),EG),rG=new bg("IN_C_C",16,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(qR,_x(Oo(rB,1),CP,41,0,[WR,FR])),Wd(qR,_x(Oo(rB,1),CP,41,0,[WR,FR,YR]))]))),_G),oG=new bg("IN_C_R",17,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(qR,_x(Oo(rB,1),CP,41,0,[WR,VR])),Wd(qR,_x(Oo(rB,1),CP,41,0,[WR,VR,YR]))]))),kG),eG=new bg("IN_B_L",18,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(qR,_x(Oo(rB,1),CP,41,0,[XR,zR])),Wd(qR,_x(Oo(rB,1),CP,41,0,[XR,zR,YR]))]))),EG),tG=new bg("IN_B_C",19,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(qR,_x(Oo(rB,1),CP,41,0,[XR,FR])),Wd(qR,_x(Oo(rB,1),CP,41,0,[XR,FR,YR]))]))),_G),nG=new bg("IN_B_R",20,new ib(P_(_x(Oo(fM,1),kP,1,4,[Wd(qR,_x(Oo(rB,1),CP,41,0,[XR,VR])),Wd(qR,_x(Oo(rB,1),CP,41,0,[XR,VR,YR]))]))),kG),xG=new bg(kI,21,OM,null)}function GL(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N,O,L,P,I,j,M,D,R,B,G,H,F,z,Y,V,q,U,X,W,$,K,Z,Q,J,tt,et,nt,rt;for(W=0,A=0,L=e.length;A<L;++A)if(Yl(Gh(yx(C=e[A],(HL(),AR)),28)))for(H=new $n(C.f);H.a<H.c.c.length;){for(z=0,s=new $n((G=Gh(Wv(H),7)).e);s.a<s.c.c.length;)a=Gh(Wv(s),12),C.d!=a.d.f.d&&++z;z>0&&(t.a[G.k]=W++)}else{for(I=0,H=new $n(C.f);H.a<H.c.c.length;){for(s=new $n((G=Gh(Wv(H),7)).e);s.a<s.c.c.length;)a=Gh(Wv(s),12),C.d!=a.d.f.d&&++I;t.a[G.k]=W}I>0&&++W}for(J=0,N=0,P=n.length;N<P;++N)if(Yl(Gh(yx(C=n[N],(HL(),AR)),28))){for(j=0,H=new $n(C.f);H.a<H.c.c.length&&(G=Gh(Wv(H),7)).g==(uL(),wB);)for(s=new $n(G.b);s.a<s.c.c.length;)if(a=Gh(Wv(s),12),C.d!=a.c.f.d){++j;break}for(D=0,Y=new Uv(C.f,C.f.c.length);Y.b>0;){for(Nc(Y.b>0),z=0,s=new $n((G=Gh(Y.a.sb(Y.c=--Y.b),7)).b);s.a<s.c.c.length;)a=Gh(Wv(s),12),C.d!=a.c.f.d&&++z;z>0&&(G.g==(uL(),wB)?(t.a[G.k]=J,++J):(t.a[G.k]=J+j+D,++D))}J+=D}else{for(I=0,H=new $n(C.f);H.a<H.c.c.length;){for(s=new $n((G=Gh(Wv(H),7)).b);s.a<s.c.c.length;)a=Gh(Wv(s),12),C.d!=a.c.f.d&&++I;t.a[G.k]=J}I>0&&++J}for(ml(),F=new _r,d=new Oc,T=0,O=e.length;T<O;++T)for(Z=new $n((C=e[T]).f);Z.a<Z.c.c.length;)for(s=new $n((K=Gh(Wv(Z),7)).e);s.a<s.c.c.length;)if(et=(a=Gh(Wv(s),12)).d,C.d!=et.f.d)if($=Gh(Wu(uv(F.d,K)),197),tt=Gh(Wu(uv(F.d,et)),197),$||tt)if($)if(tt)if($==tt)Oh($.a,a);else{for(Oh($.a,a),B=new $n(tt.d);B.a<B.c.c.length;)R=Gh(Wv(B),7),jC(F.d,R,$);Jm($.a,tt.a),Jm($.d,tt.d),d.a.eb(tt)}else Oh($.a,a),Oh($.d,et),jC(F.d,et,$);else Oh(tt.a,a),Oh(tt.d,K),jC(F.d,K,tt);else h=new bf,d.a.db(h,d),Oh(h.a,a),Oh(h.d,K),jC(F.d,K,h),Oh(h.d,et),jC(F.d,et,h);for(p=Gh(Qk(d,Ey(Fz,{674:1,3:1,5:1,6:1},197,d.a.Y(),0,1)),674),S=e[0].d,X=n[0].d,l=0,f=p.length;l<f;++l)for((c=p[l]).e=W,c.f=J,H=new $n(c.d);H.a<H.c.c.length;)G=Gh(Wv(H),7),V=t.a[G.k],G.f.d==S?(V<c.e&&(c.e=V),V>c.b&&(c.b=V)):G.f.d==X&&(V<c.f&&(c.f=V),V>c.c&&(c.c=V));for(Mk(p,0,p.length,(Qs(),Qs(),NX)),Q=Ey(UX,nI,26,p.length,12,1),r=Ey(UX,nI,26,J+1,12,1),v=0;v<p.length;v++)Q[v]=p[v].f,r[Q[v]]=1;for(o=0,b=0;b<r.length;b++)1==r[b]?r[b]=o:--o;for(q=0,y=0;y<Q.length;y++)Q[y]+=r[Q[y]],q=Go(q,Q[y]+1);for(u=1;u<q;)u*=2;for(rt=2*u-1,u-=1,nt=Ey(UX,nI,26,rt,12,1),i=0,E=0;E<Q.length;E++)for(++nt[_=Q[E]+u];_>0;)_%2>0&&(i+=nt[_+1]),++nt[_=(_-1)/2|0];for(k=Ey(Vz,kP,156,2*p.length,0,1),w=0;w<p.length;w++)k[2*w]=new Pg(p[w],p[w].e,p[w].b,(ub(),Yz)),k[2*w+1]=new Pg(p[w],p[w].b,p[w].e,zz);for(Mk(k,0,k.length,NX),M=0,m=0;m<k.length;m++)switch(k[m].d.e){case 0:++M;break;case 1:i+=--M}for(U=Ey(Vz,kP,156,2*p.length,0,1),x=0;x<p.length;x++)U[2*x]=new Pg(p[x],p[x].f,p[x].c,(ub(),Yz)),U[2*x+1]=new Pg(p[x],p[x].c,p[x].f,zz);for(Mk(U,0,U.length,NX),M=0,g=0;g<U.length;g++)switch(U[g].d.e){case 0:++M;break;case 1:i+=--M}return i}function HL(){var t,e;HL=r,$D=new Lh("de.cau.cs.kieler.animate",(Hd(),Hd(),vX)),new Lh("de.cau.cs.kieler.minAnimTime",F_(400)),new Lh("de.cau.cs.kieler.maxAnimTime",F_(4e3)),new Lh("de.cau.cs.kieler.animTimeFactor",F_(100)),UD=new Lh("de.cau.cs.kieler.additionalPortSpace",null),JD=new Lh("de.cau.cs.kieler.commentBox",gX),new sd("de.cau.cs.kieler.diagramType"),nR=new Lh("de.cau.cs.kieler.edgeLabelPlacement",(Im(),kD)),iR=new Lh("de.cau.cs.kieler.edgeType",(TS(),RD)),aR=new sd("de.cau.cs.kieler.fontName"),sR=new Lh("de.cau.cs.kieler.fontSize",F_(0)),cR=new Lh("de.cau.cs.kieler.hypernode",gX),fR=new Lh("de.cau.cs.kieler.junctionPoints",new Br),new Lh("de.cau.cs.kieler.layoutAncestors",gX),gR=new Lh("de.cau.cs.kieler.margins",new Fr),vR=new yv("de.cau.cs.kieler.minHeight",new Gn(0),new Gn(0)),bR=new yv("de.cau.cs.kieler.minWidth",new Gn(0),new Gn(0)),wR=new Lh("de.cau.cs.kieler.noLayout",gX),mR=new sd("de.cau.cs.kieler.offset"),TR=new sd("de.cau.cs.kieler.klay.layered.portAnchor"),NR=new sd("de.cau.cs.kieler.portIndex"),LR=new Lh("de.cau.cs.kieler.portSide",(uL(),RB)),new Lh("de.cau.cs.kieler.progressBar",gX),new Lh("de.cau.cs.kieler.resetConfig",vX),new Lh("de.cau.cs.kieler.scaleFactor",new Gn(1)),HR=new Lh("de.cau.cs.kieler.thickness",new Gn(1)),new Lh("de.cau.cs.kieler.zoomToFit",gX),XD=new sd("de.cau.cs.kieler.algorithm"),WD=new Lh("de.cau.cs.kieler.alignment",(ok(),sD)),KD=new Lh("de.cau.cs.kieler.aspectRatio",new Gn(0)),ZD=new sd("de.cau.cs.kieler.bendPoints"),QD=new Lh("de.cau.cs.kieler.borderSpacing",new Gn(-1)),tR=new Lh(CI,gX),eR=new Lh("de.cau.cs.kieler.direction",(b_(),bD)),rR=new Lh("de.cau.cs.kieler.edgeRouting",(y_(),OD)),oR=new Lh("de.cau.cs.kieler.expandNodes",gX),uR=new Lh("de.cau.cs.kieler.hierarchyHandling",(w_(),zD)),lR=new Lh("de.cau.cs.kieler.interactive",gX),hR=new yv("de.cau.cs.kieler.labelSpacing",new Gn(3),new Gn(0)),dR=new Lh("de.cau.cs.kieler.layoutHierarchy",gX),yR=new Lh("de.cau.cs.kieler.nodeLabelPlacement",(uT(),new qh(e=Gh(na(rB),11),Gh(_p(e,e.length),11),0))),AR=new Lh("de.cau.cs.kieler.portConstraints",(cS(),lB)),OR=new Lh("de.cau.cs.kieler.portLabelPlacement",(jw(),gB)),PR=new yv("de.cau.cs.kieler.portSpacing",new Gn(-1),new Gn(0)),_R=new Lh("de.cau.cs.kieler.portAlignment",(EE(),eB)),kR=new Lh("de.cau.cs.kieler.portAlignment.north",nB),SR=new Lh("de.cau.cs.kieler.portAlignment.south",nB),CR=new Lh("de.cau.cs.kieler.portAlignment.west",nB),ER=new Lh("de.cau.cs.kieler.portAlignment.east",nB),IR=new sd("de.cau.cs.kieler.position"),jR=new sd("de.cau.cs.kieler.priority"),new sd(TI),MR=new Lh("de.cau.cs.kieler.selfLoopInside",gX),DR=new sd("de.cau.cs.kieler.separateConnComp"),RR=new Lh("de.cau.cs.kieler.sizeConstraint",(kE(),new qh(t=Gh(na(ZB),11),Gh(_p(t,t.length),11),0))),BR=new Lh("de.cau.cs.kieler.sizeOptions",Wd((jS(),$B),_x(Oo(JB,1),CP,139,0,[XB]))),GR=new yv("de.cau.cs.kieler.spacing",new Gn(-1),new Gn(0)),pR=new Lh("de.cau.cs.kieler.layoutPartitions",gX),xR=new sd("de.cau.cs.kieler.partition")}function FL(t,e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v;if(EO(),r||!(t.n?t.n:(Dg(),Dg(),SX)).R(new uu(e))){if(!Gh(YG.a,18).kb(e)){if(Gh(HG.a,18).kb(e))try{if(!n.jc())throw new Si;return h=Gh(Gh(HG.b,57).cb(e),79),g=F_(function(t){var e,n,r,i;for(oi(),e=(r=t.length)>0&&(45==t.charCodeAt(0)||43==t.charCodeAt(0))?1:0;e<r;e++)if(-1==h_(t.charCodeAt(e)))throw new Wo(cP+t+'"');if(n=(i=parseInt(t,10))<lP,isNaN(i))throw new Wo(cP+t+'"');if(n||i>iP)throw new Wo(cP+t+'"');return i}((oi(),""+n.jc().a))),void $y(t,h,g)}catch(t){throw fl(t=Qx(t),130)?new Fi("Invalid integer format for property '"+e+WI+n+")."):A_(t)}else{if(Gh(DG.a,18).kb(e)){if(!n.ic())throw new Fi(XI+e+WI+n+").");return h=Gh(Gh(DG.b,57).cb(e),79),Hd(),void $y(t,h,g=n.ic().a?vX:gX)}if(Gh(GG.a,18).kb(e)){if(!n.jc())throw new Fi("Invalid float format for property '"+e+WI+n+").");return void $y(t,h=Gh(Gh(GG.b,57).cb(e),79),g=new Bn(n.jc().a))}if(Gh(BG.a,18).kb(e)){if(!n.lc())throw new Fi($I+e+WI+n+").");c=n.lc().a,l=null;try{n_((HL(),LR),e)?(uL(),l=Gh(u_((ly(),HB),c),32)):n_(WD,e)?(ok(),l=Gh(u_((Oy(),dD),c),103)):n_(eR,e)?(b_(),l=Gh(u_((cy(),mD),c),59)):n_(rR,e)?(y_(),l=Gh(u_((Hb(),PD),c),122)):n_(uR,e)?(w_(),l=Gh(u_((vb(),qD),c),166)):n_(_R,e)||n_(ER,e)||n_(kR,e)||n_(SR,e)||n_(CR,e)?(EE(),l=Gh(u_((fy(),iB),c),100)):n_(AR,e)?(cS(),l=Gh(u_((Py(),hB),c),28)):n_(OR,e)?(jw(),l=Gh(u_((gb(),bB),c),149)):n_(iR,e)?(TS(),l=Gh(u_((Ly(),HD),c),133)):n_(nR,e)?(Im(),l=Gh(u_((Gb(),CD),c),107)):n_((RL(),LU),e)?(Bg(),l=Gh(u_((jv(),yz),c),193)):n_(qU,e)?(lw(),l=Gh(u_((bb(),Sz),c),173)):n_(jU,e)?(fS(),l=Gh(u_((pw(),LV),c),115)):n_(TU,e)?(Dw(),l=Gh(u_((Yb(),gY),c),194)):n_(OU,e)?(sb(),l=Gh(u_((Dv(),Dz),c),192)):n_(XU,e)?(UT(),l=Gh(u_((hw(),$F),c),109)):n_(UU,e)?(Gk(),l=Gh(u_((dw(),rY),c),141)):n_(ZU,e)?(aC(),l=Gh(u_((Iy(),uz),c),125)):n_(QU,e)?(kb(),l=Gh(u_((Mv(),tz),c),175)):n_(BU,e)?(SS(),l=Gh(u_((Qw(),GV),c),124)):n_(GU,e)?(hO(),l=Gh(u_((Mm(),aq),c),110)):n_(FU,e)?(Hk(),l=Gh(u_((gw(),xU),c),85)):n_(eX,e)?(CE(),l=Gh(u_((Ay(),uX),c),153)):n_(rX,e)?(jm(),l=Gh(u_((Ny(),dX),c),172)):n_(HU,e)&&(ob(),l=Gh(u_((Vb(),pq),c),174))}catch(t){throw fl(t=Qx(t),54)?new Fi($I+e+WI+n+")."):A_(t)}return void $y(t,h=Gh(Gh(BG.b,57).cb(e),79),l)}if(Gh(RG.a,18).kb(e)){if(!n.lc())throw new Fi($I+e+WI+n+").");for(d=null,a=0,s=(u=ON(n.lc().a,"[\\[\\]\\s,]+")).length;a<s;++a)0!=pc(sS(o=u[a]))&&(n_((HL(),yR),e)?(!d&&(d=new qh(i=Gh(na(rB),11),Gh(_p(i,i.length),11),0)),pm(d,(uT(),Gh(u_((Iw(),ZR),o),41)))):n_(RR,e)?(!d&&(d=new qh(i=Gh(na(ZB),11),Gh(_p(i,i.length),11),0)),pm(d,(kE(),Gh(u_((zb(),UB),o),150)))):n_(BR,e)?(!d&&(d=new qh(i=Gh(na(JB),11),Gh(_p(i,i.length),11),0)),pm(d,(jS(),Gh(u_((Fb(),QB),o),139)))):n_((RL(),NU),e)&&(!d&&(d=new qh(i=Gh(na(kV),11),Gh(_p(i,i.length),11),0)),pm(d,(CS(),Gh(u_((Zw(),mV),o),123)))));return void $y(t,h=Gh(Gh(RG.b,57).cb(e),79),d)}if(Gh(zG.a,18).kb(e)){if(!n.lc())throw new Fi("Invalid _other_ format for property '"+e+WI+n+").");if(n_((HL(),IR),e)||n_(TR,e))try{return function(t,e){var n,r,i;for(r=0;r<(oi(),e.length)&&vx(e.charCodeAt(r),fI);)++r;for(n=e.length;n>0&&vx(e.charCodeAt(n-1),hI);)--n;if(r>=n)throw new io("The given string does not contain any numbers.");if(2!=(i=ON(e.substr(r,n-r),",|;|\r|\n")).length)throw new io("Exactly two numbers are expected, "+i.length+" were found.");try{t.a=kS(sS(i[0])),t.b=kS(sS(i[1]))}catch(t){throw fl(t=Qx(t),130)?new io(dI+t):A_(t)}}(p=new ao,n.lc().a),void $y(t,h=Gh(Gh(zG.b,57).cb(e),79),p)}catch(t){throw fl(t=Qx(t),29)?new Fi("Invalid KVector format for property '"+e+"' "+n+"."):A_(t)}else if(n_(ZD,e)||n_(fR,e))try{return function(t,e){var n,r,i,o,a;r=ON(e,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),Cg(t);try{for(n=0,o=0,i=0,a=0;n<r.length;)null!=r[n]&&pc(sS(r[n]))>0&&(o%2==0?i=kS(r[n]):a=kS(r[n]),o>0&&o%2!=0&&Nh(t,new Za(i,a)),++o),++n}catch(t){throw fl(t=Qx(t),130)?new io("The given string does not match the expected format for vectors."+t):A_(t)}}(v=new Br,n.lc().a),void $y(t,h=Gh(Gh(zG.b,57).cb(e),79),v)}catch(t){throw fl(t=Qx(t),29)?new Fi("Invalid KVectorChain format for property '"+e+"' "+n+"."):A_(t)}else if(n_(gR,e)||n_(UD,e))try{return function(t,e){var n,r,i,o,a,s,u,c;for(o=0;o<(oi(),e.length)&&bx(e.charCodeAt(o),fI);)++o;for(n=e.length;n>0&&bx(e.charCodeAt(n-1),hI);)--n;if(o<n){u=ON(e.substr(o,n-o),",|;");try{for(a=0,s=u.length;a<s;++a){if(2!=(i=ON(u[a],"=")).length)throw new io("Expecting a list of key-value pairs.");r=sS(i[0]),c=kS(sS(i[1])),Mi(r,"top")?t.d=c:Mi(r,"left")?t.b=c:Mi(r,PI)?t.a=c:Mi(r,"right")&&(t.c=c)}}catch(t){throw fl(t=Qx(t),130)?new io(dI+t):A_(t)}}}(f=new Fr,n.lc().a),void $y(t,h=Gh(Gh(zG.b,57).cb(e),79),f)}catch(t){throw fl(t=Qx(t),29)?new Fi("Invalid Margins format for property '"+e+"' "+n+"."):A_(t)}}else if(Gh(FG.a,18).kb(e))return}throw new Fi("Unsupported layout option '"+e+WI+n+").")}if(!n.lc())throw new Fi(XI+e+WI+n+").");$y(t,h=Gh(Gh(YG.b,57).cb(e),79),n.lc().a)}}"undefined"!=typeof window?(e=window).document:e={Array:function(){}};var zL,YL,VL,qL,UL,XL,WL,$L,KL="object",ZL={3:1,8:1,5:1,6:1},QL={3:1,46:1},JL={3:1,54:1,46:1},tP="null",eP="anonymous",nP="Unknown",rP="function",iP=2147483647,oP={181:1,3:1,54:1,46:1},aP=65536,sP=65535,uP={3:1,54:1,29:1,46:1},cP='For input string: "',lP=-2147483648,fP={56:1},hP={23:1,145:1,185:1},dP={3:1,5:1},pP="Invalid UTF8 sequence",gP="fromIndex: ",vP="java.lang",bP="com.google.gwt.core.client",yP="com.google.gwt.core.client.impl",wP="java.io",mP="java.nio.charset",xP="javaemul.internal",_P="com.google.common.base",EP="%s (%s) must not be negative",kP={3:1,5:1,6:1},SP="negative size: ",CP={3:1,8:1,5:1,11:1,6:1},TP={68:1,136:1,3:1,23:1,17:1},AP={108:1,35:1},NP="com.google.common.collect",OP={108:1,35:1,96:1},LP={144:1,3:1},PP={35:1},IP={57:1},jP="java.util",MP={22:1,19:1},DP={22:1,19:1,18:1},RP={22:1,19:1,20:1},BP={22:1,19:1,20:1,63:1},GP={35:1,96:1},HP={22:1,19:1,18:1,137:1},FP={21:1},zP="AbstractMapEntry",YP={207:1,22:1,19:1},VP={159:1,3:1,23:1,17:1},qP=1073741824,UP={22:1},XP={3:1,22:1,19:1},WP={87:1,3:1,22:1,19:1,20:1,63:1},$P={3:1,57:1},KP={3:1,22:1,19:1,18:1},ZP={64:1},QP="arraySize",JP="initialArraySize",tI={64:1,188:1,3:1,23:1,17:1},eI="occurrences",nI={52:1,3:1,5:1},rI={205:1,3:1,23:1,17:1},iI=1e-4,oI="com.google.gwt.json.client",aI=4194303,sI=1048575,uI=4194304,cI=17592186044416,lI=-17592186044416,fI="([{\"' \t\r\n",hI=")]}\"' \t\r\n",dI="The given string contains parts that cannot be parsed as numbers.",pI="de.cau.cs.kieler.core.math",gI=-17976931348623157e292,vI="de.cau.cs.kieler.core.properties",bI={79:1,23:1},yI="de.cau.cs.kieler.core.util",wI="de.cau.cs.kieler.kiml",mI="LEFT",xI="RIGHT",_I="CENTER",EI="de.cau.cs.kieler.kiml.options",kI="UNDEFINED",SI="NONE",CI="de.cau.cs.kieler.debugMode",TI="de.cau.cs.kieler.randomSeed",AI="de.cau.cs.kieler.kiml.util.nodespacing",NI="de.cau.cs.kieler.kiml.util.labelspacing",OI="portRatioOrPosition",LI="NodeMarginCalculator",PI="bottom",II={286:1,121:1,3:1,5:1},jI="undefined",MI="text",DI="stacktrace",RI={34:1,3:1,8:1,5:1,6:1},BI="properties",GI="bendPoints",HI="junctionPoints",FI="width",zI="height",YI="padding",VI="children",qI={38:1,39:1,42:1,51:1,71:1,3:1,8:1,5:1,6:1},UI="de.cau.cs.kieler.klay.gwt.client.layout",XI="Invalid boolean format for property '",WI="' (",$I="Invalid enum format for property '",KI="de.cau.cs.kieler.klay.layered",ZI="Layered layout",QI=1/0,JI=-1/0,tj="de.cau.cs.kieler.klay.layered.compaction.components",ej="de.cau.cs.kieler.klay.layered.compaction.oned",nj=" instance has been finished already.",rj="de.cau.cs.kieler.klay.layered.compaction.oned.algs",ij="de.cau.cs.kieler.klay.layered.compaction.recthull",oj={68:1},aj="de.cau.cs.kieler.klay.layered.components",sj={3:1,5:1,22:1,13:1,19:1,20:1,63:1},uj=1.600000023841858,cj=.001,lj={31:1},fj="de.cau.cs.kieler.klay.layered.compound",hj={38:1,39:1,47:1,42:1,3:1,8:1,5:1,6:1},dj="de.cau.cs.kieler.klay.layered.graph",pj="Port side is undefined",gj="de.cau.cs.kieler.klay.layered.intermediate",vj="Big nodes pre-processing",bj=34028234663852886e22,yj={38:1,39:1,42:1,346:1,71:1,3:1,8:1,5:1,6:1},wj="Node '",mj="' has its layer constraint set to FIRST or FIRST_SEPARATE, but has ",xj="at least one incoming edge. Connections between nodes with these ",_j="layer constraints are not supported.",Ej=17976931348623157e292,kj="Odd port side processing",Sj={250:1,3:1,5:1},Cj=1e-8,Tj="de.cau.cs.kieler.klay.layered.intermediate.compaction",Aj="de.cau.cs.kieler.klay.layered.intermediate.greedyswitch",Nj={227:1,3:1,5:1},Oj="de.cau.cs.kieler.klay.layered.networksimplex",Lj="INTERACTIVE",Pj="de.cau.cs.kieler.klay.layered.p1cycles",Ij={106:1,31:1},jj="de.cau.cs.kieler.klay.layered.p2layers",Mj="NETWORK_SIMPLEX",Dj="de.cau.cs.kieler.klay.layered.p3order",Rj=5.960464477539063e-8,Bj="Port type is undefined",Gj=.30000001192092896,Hj=.699999988079071,Fj=.8999999761581421,zj="de.cau.cs.kieler.klay.layered.p3order.constraints",Yj="de.cau.cs.kieler.klay.layered.p3order.counting",Vj="de.cau.cs.kieler.klay.layered.p4nodes",qj={625:1,3:1,5:1,6:1},Uj="de.cau.cs.kieler.klay.layered.p4nodes.bk",Xj="de.cau.cs.kieler.klay.layered.p5edges",Wj="de.cau.cs.kieler.klay.layered.p5edges.splines",$j=1e-6,Kj=-1e-6,Zj="The list of vectors may not be empty.",Qj=.09999999999999998,Jj="de.cau.cs.kieler.klay.layered.properties",tM="_gwt_modCount",eM={3:1,22:1,19:1,20:1,63:1},nM={3:1,5:1,57:1},rM={3:1,5:1,22:1,19:1,50:1,18:1},iM="delete",oM=15525485,aM=16777216,sM=16777215,uM={3:1,5:1,22:1,19:1,20:1,63:1},cM={3:1,23:1,17:1,138:1};YL={},!Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),FT(1,null,{},i),zL.t=function(t){return this===t},zL.u=function(){return this.$c},zL.v=function(){return ff(this)},zL.w=function(){return lv(this)},zL.toString=function(){return this.w()},FT(46,1,QL),zL.bc=function(){return this.f},zL.w=function(){var t,e;return t=ta(this.$c),null!=(e=this.bc())?t+": "+e:t},FT(54,46,JL),FT(72,54,JL,Ci),FT(164,72,{164:1,3:1,54:1,46:1},ty),zL.bc=function(){var t,e;return null==(t=this).c&&(e=Xu(t.b)===Xu(qL)?null:t.b,t.d=null==e?tP:Yd(e)?function(t){return null==t?null:t.name}(Eg(e)):Sl(e)?"String":ta(bw(e)),t.a=t.a+": "+(Yd(e)?function(t){return null==t?null:t.message}(Eg(e)):e+""),t.c="("+t.d+") "+t.a),this.c},zL.cc=function(){return Xu(this.b)===Xu(qL)?null:this.b},FT(642,1,{}),FT(356,642,{},s),zL.dc=function(t,e){var n={},r=[];t.__gwt$backingJsError={fnStack:r};for(var i=arguments.callee.caller;i;){var o=(Tx(),i.name||(i.name=Kw(i.toString())));r.push(o);var a,s,u=":"+o,c=n[u];if(c)for(a=0,s=c.length;a<s;a++)if(c[a]===i)return;(c||(n[u]=[])).push(i),i=i.caller}},zL.ec=function(t){var e,n,r,i,o;for(Tx(),n=(r=(o=t.__gwt$backingJsError)&&o.fnStack?o.fnStack:[]).length,i=Ey(_X,ZL,146,n,0,1),e=0;e<n;e++)i[e]=new Ig(r[e],null,-1);return i},FT(643,642,{}),zL.dc=function(t,e){function n(t){if(!("stack"in t))try{throw t}catch(t){}return t}var r;r="string"==typeof e?n(new Error(e.replace("\n"," "))):e&&typeof e==KL&&"stack"in e?e:n(new Error),t.__gwt$backingJsError=r},zL.fc=function(t,e,n,r){return new Ig(e,t+"@"+r,n<0?-1:n)},zL.ec=function(t){var e,n,r,i,o,a,s;if(Tx(),i=(s=t.__gwt$backingJsError)&&s.stack?s.stack.split("\n"):[],o=Ey(_X,ZL,146,0,0,1),e=0,0==(r=i.length))return o;for(Mi((a=BO(this,i[0])).d,eP)||(o[e++]=a),n=1;n<r;n++)o[e++]=BO(this,i[n]);return o},FT(357,643,{},ye),zL.fc=function(t,e,n,r){return new Ig(e,t,-1)},FT(181,54,oP),FT(351,181,oP,(function(t){So.call(this,t)})),FT(288,1,{},Yx),zL.Oc=function(t){var e;return(e=new Yx).g=4,e.c=t>1?Av(this,t-1):this,e},zL.Pc=function(){return Gf(this),this.b},zL.Qc=function(){return ta(this)},zL.Rc=function(){return ea(this)},zL.Sc=function(){return 0!=(4&this.g)},zL.Tc=function(){return 0!=(1&this.g)},zL.w=function(){return(0!=(2&this.g)?"interface ":0!=(1&this.g)?"":"class ")+(Gf(this),this.n)},zL.g=0;var lM;FT(119,72,{3:1,119:1,54:1,46:1},Yr),FT(29,72,uP,Vr,io),FT(95,72,JL,qr,ro),FT(231,1,{3:1,231:1}),FT(24,231,{3:1,23:1,24:1,231:1},Ln),zL.F=function(t){return function(t,e){return Rc(t.a,e.a)}(this,Gh(t,24))},zL.t=function(t){return fl(t,24)&&Gh(t,24).a==this.a},zL.v=function(){return this.a},zL.w=function(){return aa(this.a)},zL.a=0,$L={3:1,345:1,23:1,2:1},FT(350,1,fP,ie),zL.$b=function(t,e){return function(t,e){return yg((oi(),t.toLowerCase()),e.toLowerCase())}(Of(t),Of(e))},FT(257,95,JL,(function(t){ro.call(this,t)})),FT(145,1,{23:1,145:1}),zL.F=function(t){return gc(this,Gh(t,145))},zL.t=function(t){var e;return t===this||!!fl(t,145)&&(e=Gh(t,145),Mi(this.a,e.a))},zL.v=function(){return ak(this.a)},zL.w=function(){return this.a},FT(358,29,uP,(function(t){io.call(this,(oi(),null==t?tP:t))})),FT(256,29,{3:1,54:1,29:1,46:1,256:1},(function(t){io.call(this,(oi(),null==t?tP:t))})),FT(185,145,hP),FT(289,185,hP,Xo),zL.Zc=function(t,e,n){var r,i;for(r=Ey(WX,dP,26,n,12,1),i=0;i<n;++i)r[i]=255&t[e+i]&sP;return r},FT(355,185,hP,fc),zL.Zc=function(t,e,n){var r,i,o,a,s,u,c,l;for(o=0,c=0;c<n;){if(++o,128==(192&(i=t[e+c])))throw new io(pP);if(0==(128&i))++c;else if(192==(224&i))c+=2;else if(224==(240&i))c+=3;else{if(240!=(248&i))throw new io(pP);c+=4}if(c>n)throw new ro(pP)}for(a=Ey(WX,dP,26,o,12,1),l=0,s=0,u=0;u<n;){for(0==(128&(i=t[e+u++]))?(s=1,i&=127):192==(224&i)?(s=2,i&=31):224==(240&i)?(s=3,i&=15):240==(248&i)?(s=4,i&=7):248==(252&i)&&(s=5,i&=3);--s>0;){if(128!=(192&(r=t[e+u++])))throw new io("Invalid UTF8 sequence at "+(e+u-1)+", byte="+(r>>>0).toString(16));i=i<<6|63&r}l+=qk(i,a,l)}return a};var fM=Pp(vP,"Object",1),hM=Pp(vP,"Throwable",46),dM=(Pp(vP,"Exception",54),Pp(vP,"RuntimeException",72),Pp(bP,"JavaScriptException",164),Pp(yP,"StackTraceCreator/Collector",642),Pp(yP,"StackTraceCreator/CollectorLegacy",356),Pp(yP,"StackTraceCreator/CollectorModern",643),Pp(yP,"StackTraceCreator/CollectorModernNoSourceMap",357),Pp(wP,"IOException",181),Pp(wP,"UnsupportedEncodingException",351),Pp(vP,"Class",288),Pp(vP,"ClassCastException",119),Pp(vP,"IllegalArgumentException",29),Pp(vP,"IndexOutOfBoundsException",95),Pp(vP,"Number",231),Pp(vP,"Integer",24)),pM=Pp(vP,"String",2);Pp(vP,"String/1",350),Pp(vP,"StringIndexOutOfBoundsException",257),Pp(mP,"Charset",145),Pp(mP,"IllegalCharsetNameException",358),Pp(mP,"UnsupportedCharsetException",256),Pp(xP,"EmulatedCharset",185),Pp(xP,"EmulatedCharset/LatinCharset",289),Pp(xP,"EmulatedCharset/UtfCharset",355);FT(669,1,{3:1});var gM;Pp(_P,"Optional",669);FT(601,669,{3:1},a),zL.t=function(t){return t===this},zL.v=function(){return 2040732332},zL.w=function(){return"Optional.absent()"},zL.A=function(t){return Od(t),ai(),gM};Pp(_P,"Absent",601);var vM=yd(_P,"Function");FT(208,1,{},oo),zL.C=function(t){return Ap(t)};Pp(_P,"Joiner",208);FT(363,208,{},Xh),zL.C=function(t){return El(this,t)};Pp(_P,"Joiner/1",363);FT(362,1,{},tf);Pp(_P,"Joiner/MapJoiner",362);var bM,yM=yd(_P,"Predicate");FT(244,1,{68:1,244:1,3:1},De),zL.D=function(t){var e;for(e=0;e<this.a.a.length;e++)if(!Gh(Ad(this.a,e),68).D(t))return!1;return!0},zL.t=function(t){var e;return!!fl(t,244)&&(e=Gh(t,244),dT(this.a,e.a))},zL.v=function(){return Ix(this.a)+306654252},zL.w=function(){return"Predicates.and("+_l((eu(),bM),new Fn(this.a))+")"};Pp(_P,"Predicates/AndPredicate",244);FT(246,1,{68:1,246:1,3:1},Aa),zL.D=function(t){try{return this.a.kb(t)}catch(t){if(fl(t=Qx(t),76))return!1;if(fl(t,119))return!1;throw A_(t)}},zL.t=function(t){var e;return!!fl(t,246)&&(e=Gh(t,246),this.a.t(e.a))},zL.v=function(){return this.a.v()},zL.w=function(){return"Predicates.in("+this.a+")"};Pp(_P,"Predicates/InPredicate",246);FT(245,1,{68:1,245:1,3:1},Re),zL.D=function(t){return e_(this.a,t)},zL.t=function(t){var e;return!!fl(t,245)&&(e=Gh(t,245),e_(this.a,e.a))},zL.v=function(){return V_(this.a)},zL.w=function(){return"Predicates.equalTo("+this.a+")"};Pp(_P,"Predicates/IsEqualToPredicate",245);FT(17,1,{3:1,23:1,17:1}),zL.F=function(t){return function(t,e){return t.e-e.e}(this,Gh(t,17))},zL.t=function(t){return this===t},zL.v=function(){return ff(this)},zL.w=function(){return df(this)},zL.e=0;var wM,mM,xM,_M,EM=Pp(vP,"Enum",17);FT(136,17,TP);var kM=Qy(_P,"Predicates/ObjectPredicate",136,EM,(function(){return Rg(),_x(Oo(kM,1),CP,136,0,[mM,wM,xM,_M])}));FT(591,136,TP,$f),zL.D=function(t){return!0},zL.w=function(){return"Predicates.alwaysTrue()"};Qy(_P,"Predicates/ObjectPredicate/1",591,kM,null);FT(592,136,TP,Kf),zL.D=function(t){return!1},zL.w=function(){return"Predicates.alwaysFalse()"};Qy(_P,"Predicates/ObjectPredicate/2",592,kM,null);FT(593,136,TP,Qc),zL.D=function(t){return null==t},zL.w=function(){return"Predicates.isNull()"};Qy(_P,"Predicates/ObjectPredicate/3",593,kM,null);FT(594,136,TP,wl),zL.D=function(t){return null!=t},zL.w=function(){return"Predicates.notNull()"};Qy(_P,"Predicates/ObjectPredicate/4",594,kM,null);FT(177,669,{177:1,3:1},Be),zL.t=function(t){var e;return!!fl(t,177)&&(e=Gh(t,177),e_(this.a,e.a))},zL.v=function(){return 1502476572+V_(this.a)},zL.w=function(){return"Optional.of("+this.a+")"},zL.A=function(t){return new Be(mv(t.B(this.a),"the Function passed to Optional.transform() must not return null."))};Pp(_P,"Present",177);FT(108,1,AP),zL.I=function(){!function(){throw new $r}()};Pp(NP,"UnmodifiableIterator",108);FT(651,108,OP),zL.J=function(t){throw new $r},zL.O=function(t){throw new $r};Pp(NP,"UnmodifiableListIterator",651);FT(378,651,OP),zL.G=function(){return this.b<this.c},zL.K=function(){return this.b>0},zL.H=function(){if(this.b>=this.c)throw new xi;return ra(this,this.b++)},zL.L=function(){return this.b},zL.M=function(){if(this.b<=0)throw new xi;return ra(this,--this.b)},zL.N=function(){return this.b-1},zL.b=0,zL.c=0;Pp(NP,"AbstractIndexedListIterator",378);FT(428,108,AP),zL.G=function(){return am(this)},zL.H=function(){return ky(this)},zL.d=1;Pp(NP,"AbstractIterator",428);FT(653,1,{144:1}),zL.P=function(){return this.f||(this.f=this.S())},zL.T=function(){return new Na(this.P())},zL.t=function(t){return Bx(this,t)},zL.v=function(){return this.P().v()},zL.V=function(){return 0==this.Y()},zL.W=function(){return Qd(this)},zL.w=function(){return this.P().w()};Pp(NP,"AbstractMultimap",653);FT(294,653,LP),zL.Q=function(){xk(this)},zL.R=function(t){return Vy(this.b,t)},zL.S=function(){return new Pa(this,this.b)},zL.T=function(){return new Ll(this,this.b)},zL.$=function(){return fl(t=this.Z(),137)?(Dg(),new Kl(Gh(t,137))):fl(t,18)?(Dg(),new $o(Gh(t,18))):fl(t,20)?sv(Gh(t,20)):(Dg(),new Jn(t));var t},zL.U=function(t){return GS(this,t)},zL.X=function(t){return $C(this,t)},zL.Y=function(){return this.c},zL.c=0;Pp(NP,"AbstractMapBasedMultimap",294);FT(600,294,LP),zL.Z=function(){return new sw(this.a)},zL.$=function(){return Qp(),Qp(),OM},zL.U=function(t){return Gh(GS(this,t),20)},zL.X=function(t){return Gh($C(this,t),20)},zL.P=function(){return this.f||(this.f=new Pa(this,this.b))},zL.t=function(t){return Bx(this,t)};Pp(NP,"AbstractListMultimap",600);FT(388,1,PP),zL.G=function(){return this.b.b||this.d.G()},zL.H=function(){var t;return this.d.G()||((t=zw(this.b)).yb(),this.a=Gh(t.zb(),19),this.d=this.a.mb()),this.d.H()},zL.I=function(){this.d.I(),this.a.V()&&Gy(this.b),--this.c.c};Pp(NP,"AbstractMapBasedMultimap/Itr",388);FT(389,388,PP,em);Pp(NP,"AbstractMapBasedMultimap/1",389);FT(638,1,IP),zL.Q=function(){this.bb().Q()},zL._=function(t){return eS(this,t)},zL.R=function(t){return!!DS(this,t,!1)},zL.ab=function(t){var e,n;for(e=this.bb().mb();e.G();)if(n=Gh(e.H(),21).zb(),Xu(t)===Xu(n)||null!=t&&e_(t,n))return!0;return!1},zL.t=function(t){return bC(this,t)},zL.cb=function(t){return Wu(DS(this,t,!1))},zL.v=function(){return fx(this.bb())},zL.V=function(){return 0==this.Y()},zL.W=function(){return new zn(this)},zL.db=function(t,e){throw new ko("Put not supported on this map")},zL.eb=function(t){return Wu(DS(this,t,!0))},zL.Y=function(){return this.bb().Y()},zL.w=function(){return WS(this)},zL.fb=function(){return new Vn(this)};Pp(jP,"AbstractMap",638);FT(654,638,IP),zL.bb=function(){return Jd(this)},zL.W=function(){return this.d||(this.d=new Na(this))},zL.fb=function(){return Gp(this)};Pp(NP,"Maps/ViewCachingAbstractMap",654);FT(262,654,IP,Pa),zL.cb=function(t){return function(t,e){var n;return(n=Gh(ek(t.a,e),19))?JE(t.b,e,n):null}(this,t)},zL.eb=function(t){return function(t,e){var n,r;return(n=Gh(qd(t.a,e),19))?((r=t.b.Z()).jb(n),t.b.c-=n.Y(),n.Q(),r):null}(this,t)},zL.Q=function(){this.a==this.b.b?xk(this.b):ip(new vv(this))},zL.R=function(t){return lk(this.a,t)},zL.hb=function(){return new Ge(this)},zL.gb=function(){return this.hb()},zL.t=function(t){return this===t||bC(this.a,t)},zL.v=function(){return fx(new Hn(this.a))},zL.W=function(){return Qd(this.b)},zL.Y=function(){return Bs(this.a)},zL.w=function(){return WS(this.a)};Pp(NP,"AbstractMapBasedMultimap/AsMap",262);FT(640,1,MP),zL.ib=function(t){return function(){throw new ko("Add not supported on this collection")}()},zL.jb=function(t){return lm(this,t)},zL.Q=function(){fg(this)},zL.kb=function(t){return dE(this,t,!1)},zL.lb=function(t){return Um(this,t)},zL.V=function(){return 0==this.Y()},zL.nb=function(t){return dE(this,t,!0)},zL.ob=function(){return this.pb(Ey(fM,kP,1,this.Y(),4,1))},zL.pb=function(t){return Qk(this,t)},zL.w=function(){return XS(this)};Pp(jP,"AbstractCollection",640);FT(641,640,DP),zL.t=function(t){return wE(this,t)},zL.v=function(){return fx(this)};Pp(jP,"AbstractSet",641);FT(649,641,DP);Pp(NP,"Sets/ImprovedAbstractSet",649);FT(655,649,DP),zL.Q=function(){this.qb().Q()},zL.kb=function(t){return LE(this,t)},zL.V=function(){return this.qb().V()},zL.nb=function(t){var e;return!!this.kb(t)&&(e=Gh(t,21),this.qb().W().nb(e.yb()))},zL.Y=function(){return this.qb().Y()};Pp(NP,"Maps/EntrySet",655);FT(387,655,DP,Ge),zL.kb=function(t){return fk(new Hn(this.a.a),t)},zL.mb=function(){return new vv(this.a)},zL.qb=function(){return this.a},zL.nb=function(t){var e;return!!fk(new Hn(this.a.a),t)&&(e=Gh(t,21),Wb(this.a.b,e.yb()),!0)};Pp(NP,"AbstractMapBasedMultimap/AsMap/AsMapEntries",387);FT(299,1,PP,vv),zL.H=function(){var t;return t=zw(this.b),this.a=Gh(t.zb(),19),function(t,e){var n;return n=e.yb(),ml(),new Ma(n,JE(t.b,n,Gh(e.zb(),19)))}(this.c,t)},zL.G=function(){return this.b.b},zL.I=function(){Gy(this.b),this.c.b.c-=this.a.Y(),this.a.Q()};Pp(NP,"AbstractMapBasedMultimap/AsMap/AsMapIterator",299);FT(260,649,DP,Na),zL.Q=function(){this.b.Q()},zL.kb=function(t){return this.b.R(t)},zL.V=function(){return this.b.V()},zL.mb=function(){return ml(),xh(this.b.bb().mb(),(Uc(),jM))},zL.nb=function(t){return!!this.b.R(t)&&(this.b.eb(t),!0)},zL.Y=function(){return this.b.Y()};Pp(NP,"Maps/KeySet",260);FT(386,260,DP,Ll),zL.Q=function(){ip(new ja(this,this.b.bb().mb()))},zL.lb=function(t){return this.b.W().lb(t)},zL.t=function(t){return this===t||this.b.W().t(t)},zL.v=function(){return this.b.W().v()},zL.mb=function(){return new ja(this,this.b.bb().mb())},zL.nb=function(t){var e,n;return n=0,(e=Gh(this.b.eb(t),19))&&(n=e.Y(),e.Q(),this.a.c-=n),n>0};Pp(NP,"AbstractMapBasedMultimap/KeySet",386);FT(300,1,PP,ja),zL.G=function(){return this.c.G()},zL.H=function(){return this.a=Gh(this.c.H(),21),this.a.yb()},zL.I=function(){var t;ux(!!this.a),t=Gh(this.a.zb(),19),this.c.I(),this.b.a.c-=t.Y(),t.Q()};Pp(NP,"AbstractMapBasedMultimap/KeySet/1",300);FT(216,640,MP,Sy),zL.ib=function(t){return function(t,e){var n,r;return $_(t),r=t.d.V(),(n=t.d.ib(e))&&(++t.f.c,r&&yh(t)),n}(this,t)},zL.jb=function(t){return function(t,e){var n,r,i;return!e.V()&&(i=t.Y(),(n=t.d.jb(e))&&(r=t.d.Y(),t.f.c+=r-i,0==i&&yh(t)),n)}(this,t)},zL.Q=function(){var t,e;0!=(e=(t=this).Y())&&(t.d.Q(),t.f.c-=e,up(t))},zL.kb=function(t){return $_(this),this.d.kb(t)},zL.lb=function(t){return $_(this),this.d.lb(t)},zL.t=function(t){return function(t,e){return e===t||($_(t),t.d.t(e))}(this,t)},zL.v=function(){return $_(this),this.d.v()},zL.mb=function(){return $_(this),new $h(this)},zL.nb=function(t){return function(t,e){var n;return $_(t),(n=t.d.nb(e))&&(--t.f.c,up(t)),n}(this,t)},zL.Y=function(){return $_(this),this.d.Y()},zL.w=function(){return $_(this),Bk(this.d)};Pp(NP,"AbstractMapBasedMultimap/WrappedCollection",216);var SM=yd(jP,"List");FT(297,216,RP,dp),zL.rb=function(t,e){var n;$_(this),n=this.d.V(),Gh(this.d,20).rb(t,e),++this.a.c,n&&yh(this)},zL.sb=function(t){return $_(this),Gh(this.d,20).sb(t)},zL.tb=function(){return $_(this),new Fc(this)},zL.ub=function(t){return $_(this),new Lg(this,t)},zL.vb=function(t){var e;return $_(this),e=Gh(this.d,20).vb(t),--this.a.c,up(this),e},zL.wb=function(t,e){return $_(this),Gh(this.d,20).wb(t,e)},zL.xb=function(t,e){return $_(this),pb(this.a,this.e,Gh(this.d,20).xb(t,e),this.b?this.b:this)};Pp(NP,"AbstractMapBasedMultimap/WrappedList",297);FT(385,297,BP,wf);Pp(NP,"AbstractMapBasedMultimap/RandomAccessWrappedList",385);FT(189,1,PP,$h),zL.G=function(){return cp(this),this.b.G()},zL.H=function(){return cp(this),this.b.H()},zL.I=function(){this.b.I(),--this.d.f.c,up(this.d)};Pp(NP,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",189);FT(298,189,GP,Fc,Lg),zL.J=function(t){var e;e=0==function(t){return $_(t),t.d.Y()}(this.a),(cp(this),Gh(this.b,96)).J(t),++this.a.a.c,e&&yh(this.a)},zL.K=function(){return(cp(this),Gh(this.b,96)).K()},zL.L=function(){return(cp(this),Gh(this.b,96)).L()},zL.M=function(){return(cp(this),Gh(this.b,96)).M()},zL.N=function(){return(cp(this),Gh(this.b,96)).N()},zL.O=function(t){(cp(this),Gh(this.b,96)).O(t)};Pp(NP,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",298);FT(295,216,DP,_f);Pp(NP,"AbstractMapBasedMultimap/WrappedSet",295);FT(296,216,HP,Ef);Pp(NP,"AbstractMapBasedMultimap/WrappedSortedSet",296);FT(668,1,FP),zL.t=function(t){var e;return!!fl(t,21)&&(e=Gh(t,21),$p(this.yb(),e.yb())&&$p(this.zb(),e.zb()))},zL.v=function(){var t,e;return t=this.yb(),e=this.zb(),(null==t?0:V_(t))^(null==e?0:V_(e))},zL.Ab=function(t){throw new $r},zL.w=function(){return this.yb()+"="+this.zb()};Pp(NP,zP,668);FT(390,640,MP,He),zL.Q=function(){xk(this.a)},zL.kb=function(t){return function(t,e){var n;for(n=Zp(Gp(t.P()));n.b.G();)if(Gh(Lo(n,n.b.H()),19).kb(e))return!0;return!1}(this.a,t)},zL.mb=function(){return new em(this.a)},zL.Y=function(){return this.a.c};Pp(NP,"AbstractMultimap/Values",390);FT(656,640,YP),zL.ib=function(t){return this.Bb(t,1),!0},zL.Bb=function(t,e){throw new $r},zL.jb=function(t){return function(t,e){var n,r;if(Ar(),e.V())return!1;if(fl(e,207))for(r=Gh(e,207).bb().mb();r.G();)n=Gh(r.H(),83),t.Bb(n.Zb(),n.Yb());else Fw(t,e.mb());return!0}(this,t)},zL.Q=function(){ip(this.Eb())},zL.kb=function(t){return this.Cb(t)>0},zL.Cb=function(t){var e,n;for(n=Hp(this).mb();n.G();)if($p((e=Gh(n.H(),83)).Zb(),t))return e.Yb();return 0},zL.gb=function(){return new Fe(this)},zL.bb=function(){return Hp(this)},zL.t=function(t){return function(t,e){var n,r,i;if(Ar(),e===t)return!0;if(fl(e,207)){if(i=Gh(e,207),t.Y()!=i.Y()||Hp(t).Y()!=i.bb().Y())return!1;for(r=i.bb().mb();r.G();)if(n=Gh(r.H(),83),t.Cb(n.Zb())!=n.Yb())return!1;return!0}return!1}(this,t)},zL.v=function(){return Hp(this).v()},zL.V=function(){return Hp(this).V()},zL.mb=function(){return Ar(),new za(this,Hp(this).mb())},zL.nb=function(t){return this.Fb(t,1)>0},zL.Fb=function(t,e){throw new $r},zL.Gb=function(t,e){var n,r;return Ar(),kw(e,"count"),(r=e-(n=this.Cb(t)))>0?this.Bb(t,r):r<0&&this.Fb(t,-r),n},zL.Hb=function(t,e,n){return function(t,e,n,r){return Ar(),kw(n,"oldCount"),kw(r,"newCount"),t.Cb(e)==n&&(t.Gb(e,r),!0)}(this,t,e,n)},zL.Y=function(){return function(t){var e,n;for(Ar(),n=0,e=Hp(t).mb();e.G();)n=p_(n,Gh(e.H(),83).Yb());return iw(n)}(this)},zL.w=function(){return Bk(Hp(this))};Pp(NP,"AbstractMultiset",656);FT(657,649,DP),zL.Q=function(){this.Ib().Q()},zL.kb=function(t){var e;return!!fl(t,83)&&(!((e=Gh(t,83)).Yb()<=0)&&this.Ib().Cb(e.Zb())==e.Yb())},zL.nb=function(t){var e,n,r;return!(!fl(t,83)||(e=(n=Gh(t,83)).Zb(),0==(r=n.Yb())))&&this.Ib().Hb(e,r,0)};Pp(NP,"Multisets/EntrySet",657);FT(396,657,DP,Fe),zL.mb=function(){return this.a.Eb()},zL.Ib=function(){return this.a},zL.Y=function(){return this.a.Db()};Pp(NP,"AbstractMultiset/EntrySet",396);FT(384,294,LP),zL.Z=function(){return new Ca(nx(this.a))},zL.$=function(){return ch(),Jp(),GM},zL.U=function(t){return Gh(GS(this,t),18)},zL.X=function(t){return Gh($C(this,t),18)},zL.P=function(){return this.f||(this.f=new Pa(this,this.b))},zL.t=function(t){return Bx(this,t)};Pp(NP,"AbstractSetMultimap",384);FT(342,656,YP);Pp(NP,"AbstractSortedMultiset",342);FT(280,600,LP,qf),zL.a=0;var CM,TM;Pp(NP,"ArrayListMultimap",280);FT(159,17,VP);var AM=Qy(NP,"BoundType",159,EM,(function(){return Vc(),_x(Oo(AM,1),CP,159,0,[TM,CM])}));FT(623,159,VP,cc);Qy(NP,"BoundType/1",623,AM,null);FT(624,159,VP,Lc);var NM;Qy(NP,"BoundType/2",624,AM,null);FT(234,1,UP),zL.w=function(){return t=this.c.mb(),qc(),Yp(C_((Yc(),NM),Yp(new Qo,91),t),93).a;var t};Pp(NP,"FluentIterable",234);FT(170,234,UP,Ec),zL.mb=function(){return Sp(this)};Pp(NP,"FluentIterable/2",170);FT(664,1,{}),zL.w=function(){return Bk(kg(this.a.d).b)};Pp(NP,"ForwardingObject",664);FT(665,664,MP),zL.ib=function(t){return kg(this.a.d),Jr()},zL.jb=function(t){return kg(this.a.d),ti()},zL.Q=function(){kg(this.a.d),ei()},zL.kb=function(t){return Hs(kg(this.a.d),t)},zL.lb=function(t){return Fs(kg(this.a.d),t)},zL.V=function(){return kg(this.a.d).b.V()},zL.mb=function(){return new nr(kg(this.a.d).b.mb())},zL.nb=function(t){return kg(this.a.d),ni()},zL.Y=function(){return kg(this.a.d).b.Y()},zL.ob=function(){return zg(kg(this.a.d))},zL.pb=function(t){return Qg(kg(this.a.d),t)};Pp(NP,"ForwardingCollection",665);FT(660,640,XP),zL.mb=function(){return this.Kb()},zL.ib=function(t){return function(){throw new $r}()},zL.jb=function(t){return function(){throw new $r}()},zL.Q=function(){!function(){throw new $r}()},zL.kb=function(t){return null!=t&&dE(this,t,!1)},zL.Jb=function(){switch(this.Y()){case 0:return Qp(),Qp(),OM;case 1:return Qp(),new Gd(this.Kb().H());default:return new hp(this,this.ob())}},zL.nb=function(t){return function(){throw new $r}()};Pp(NP,"ImmutableCollection",660);FT(316,660,XP,gi),zL.mb=function(){return Cw(this.a.mb())},zL.kb=function(t){return null!=t&&this.a.kb(t)},zL.lb=function(t){return this.a.lb(t)},zL.V=function(){return this.a.V()},zL.Kb=function(){return Cw(this.a.mb())},zL.Y=function(){return this.a.Y()},zL.ob=function(){return this.a.ob()},zL.pb=function(t){return this.a.pb(t)},zL.w=function(){return Bk(this.a)};var OM;Pp(NP,"ForwardingImmutableCollection",316);FT(87,660,WP),zL.mb=function(){return this.Kb()},zL.tb=function(){return this.Lb(0)},zL.ub=function(t){return this.Lb(t)},zL.xb=function(t,e){return this.Mb(t,e)},zL.rb=function(t,e){throw new $r},zL.t=function(t){return OT(this,t)},zL.v=function(){return function(t){var e,n,r;for(e=1,r=t.mb();r.G();)e=~~(e=31*e+(null==(n=r.H())?0:V_(n)));return e}(this)},zL.Kb=function(){return this.Lb(0)},zL.Lb=function(t){return Cl(this,t)},zL.vb=function(t){throw new $r},zL.wb=function(t,e){throw new $r},zL.Mb=function(t,e){return Cx(new Yv(new Xa(this),t,e))};Pp(NP,"ImmutableList",87);FT(667,87,WP),zL.mb=function(){return Cw(this.Nb().mb())},zL.xb=function(t,e){return Cx(this.Nb().xb(t,e))},zL.kb=function(t){return oh(this,t)},zL.lb=function(t){return this.Nb().lb(t)},zL.t=function(t){return this.Nb().t(t)},zL.sb=function(t){return $u(this,t)},zL.v=function(){return this.Nb().v()},zL.V=function(){return this.Nb().V()},zL.Kb=function(){return Cw(this.Nb().mb())},zL.Y=function(){return this.Nb().Y()},zL.Mb=function(t,e){return Cx(this.Nb().xb(t,e))},zL.ob=function(){return this.Nb().pb(Ey(fM,kP,1,this.Nb().Y(),4,1))},zL.pb=function(t){return this.Nb().pb(t)},zL.w=function(){return Bk(this.Nb())};Pp(NP,"ForwardingImmutableList",667);FT(524,1,$P),zL.bb=function(){return ep(this)},zL.W=function(){return np(this)},zL.fb=function(){return this.Rb()},zL.Q=function(){throw new $r},zL.R=function(t){return null!=this.cb(t)},zL.ab=function(t){return this.Rb().kb(t)},zL.Pb=function(){return new vi(this)},zL.Qb=function(){return new bi(this)},zL.t=function(t){return function(t,e){var n;return ml(),t===e||!!fl(e,57)&&(n=Gh(e,57),IC(ep(t),n.bb()))}(this,t)},zL.v=function(){return ep(this).v()},zL.V=function(){return 0==this.Y()},zL.db=function(t,e){return function(){throw new $r}()},zL.eb=function(t){throw new $r},zL.w=function(){var t;return ml(),t=Yp(ow(this.Y()),123),T_(IM,t,ep(this).mb()),t.a+="}",t.a},zL.Rb=function(){return this.g?this.g:this.g=this.Qb()},zL.e=null,zL.f=null,zL.g=null;Pp(NP,"ImmutableMap",524);FT(320,524,$P),zL.R=function(t){return lk(this.d,t)},zL.ab=function(t){return Gs(this.d,t)},zL.Ob=function(){return d_(new ze(this))},zL.Pb=function(){return d_(ug(this.d))},zL.Qb=function(){return ch(),new gi(Sg(this.d))},zL.t=function(t){return ma(this.d,t)},zL.cb=function(t){return null==t?null:ek(this.d,t)},zL.v=function(){return this.d.c.v()},zL.V=function(){return this.d.c.V()},zL.Y=function(){return this.d.c.Y()},zL.w=function(){return Bk(this.d.c)};Pp(NP,"ForwardingImmutableMap",320);FT(666,665,DP),zL.t=function(t){return t===this||wa(kg(this.a.d),t)},zL.v=function(){return kg(this.a.d).b.v()};Pp(NP,"ForwardingSet",666);FT(523,666,DP,ze),zL.kb=function(t){if(fl(t,21)&&null==Gh(t,21).yb())return!1;try{return Hs(kg(this.a.d),t)}catch(t){if(fl(t=Qx(t),119))return!1;throw A_(t)}},zL.pb=function(t){var e;return e=Qg(kg(this.a.d),t),kg(this.a.d).b.Y()<e.length&&Mp(e,kg(this.a.d).b.Y(),null),e};Pp(NP,"ForwardingImmutableMap/1",523);FT(663,660,KP),zL.mb=function(){return this.Kb()},zL.t=function(t){return IC(this,t)},zL.v=function(){return function(t){var e,n,r;for(e=0,r=t.mb();r.G();)e=~~(e+=null!=(n=r.H())?V_(n):0);return e}(this)};Pp(NP,"ImmutableSet",663);FT(315,663,KP),zL.mb=function(){return Cw(new tr(this.a.b.mb()))},zL.kb=function(t){return null!=t&&function(t,e){return t.b.kb(e)}(this.a,t)},zL.lb=function(t){return function(t,e){return t.b.lb(e)}(this.a,t)},zL.v=function(){return this.a.b.v()},zL.V=function(){return this.a.b.V()},zL.Kb=function(){return Cw(new tr(this.a.b.mb()))},zL.Y=function(){return this.a.b.Y()},zL.ob=function(){return this.a.b.ob()},zL.pb=function(t){return function(t,e){return t.b.pb(e)}(this.a,t)},zL.w=function(){return Bk(this.a.b)};Pp(NP,"ForwardingImmutableSet",315);FT(178,1,{178:1,3:1},JC),zL.t=function(t){var e;return!!fl(t,178)&&(e=Gh(t,178),this.a.t(e.a)&&this.b==e.b&&this.c==e.c&&this.d==e.d&&this.f==e.f&&$p(this.e,e.e)&&$p(this.g,e.g))},zL.v=function(){return Vx(_x(Oo(fM,1),kP,1,4,[this.a,this.e,this.d,this.g,this.f]))},zL.w=function(){return Yp(tc(Yp(tc(Yp(ec(tc(new Qo,this.a),":"),this.d==(Vc(),CM)?91:40),this.b?this.e:"-∞"),44),this.c?this.g:"∞"),this.f==CM?93:41).a},zL.b=!1,zL.c=!1;Pp(NP,"GeneralRange",178);FT(215,384,LP,Us),zL.a=2;Pp(NP,"HashMultimap",215);FT(661,87,WP),zL.kb=function(t){return this.Sb().kb(t)},zL.V=function(){return this.Sb().V()},zL.Y=function(){return this.Sb().Y()};Pp(NP,"ImmutableAsList",661);FT(275,320,$P),zL.Rb=function(){return this.Ub()},zL.fb=function(){return this.Ub()},zL.Ub=function(){return np(this.Tb())};Pp(NP,"ImmutableBiMap",275);FT(341,668,{3:1,21:1},Ma),zL.yb=function(){return this.a},zL.zb=function(){return this.b},zL.Ab=function(t){throw new $r};Pp(NP,"ImmutableEntry",341);FT(436,315,KP,Oi);Pp(NP,"ImmutableEnumSet",436);FT(379,378,OP,jp);Pp(NP,"ImmutableList/1",379);FT(266,108,AP,Ye),zL.G=function(){return this.a.G()},zL.H=function(){return Gh(this.a.H(),21).yb()};Pp(NP,"ImmutableMap/1",266);FT(670,663,KP),zL.mb=function(){return new Ye(ep(this.a).Kb())},zL.Jb=function(){return new pi(this)},zL.Kb=function(){var t;return(t=this.c,t||(this.c=new pi(this))).Kb()};Pp(NP,"ImmutableSet/Indexed",670);FT(606,670,KP,vi),zL.mb=function(){return new Ye(ep(this.a).Kb())},zL.kb=function(t){return this.a.R(t)},zL.Kb=function(){return new Ye(ep(this.a).Kb())},zL.Y=function(){return this.a.Y()};Pp(NP,"ImmutableMapKeySet",606);FT(604,660,XP,bi),zL.mb=function(){return new ad(this)},zL.kb=function(t){return null!=t&&(qc(),qc(),-1!=jx(new ad(this),(eu(),null==t?(Rg(),xM):new Re(t))))},zL.Jb=function(){return new ol(this,tp(ep(this.a)))},zL.Kb=function(){return new ad(this)},zL.Y=function(){return this.a.Y()};Pp(NP,"ImmutableMapValues",604);FT(282,108,AP,ad),zL.G=function(){return this.a.G()},zL.H=function(){return Gh(this.a.H(),21).zb()};Pp(NP,"ImmutableMapValues/1",282);FT(605,661,WP,ol),zL.Sb=function(){return this.a},zL.sb=function(t){return Gh(this.b.sb(t),21).zb()};Pp(NP,"ImmutableMapValues/2",605);FT(311,661,WP,pi),zL.Sb=function(){return this.a},zL.sb=function(t){return function(t,e){return Gh(tp(ep(t.a)).sb(e),21).yb()}(this.a,t)};Pp(NP,"ImmutableSet/Indexed/1",311);FT(414,234,UP,kc),zL.mb=function(){return sf(this.a)},zL.w=function(){return XS(this.a)+" (cycled)"};Pp(NP,"Iterables/1",414);FT(105,1,ZP,h),zL.B=function(t){return Gh(t,22).mb()};Pp(NP,"Iterables/12",105);FT(415,234,UP,rd),zL.mb=function(){return jc(this)};Pp(NP,"Iterables/4",415);FT(416,234,UP,id),zL.mb=function(){return Mc(this)};var LM,PM;Pp(NP,"Iterables/5",416);FT(424,651,OP,d),zL.G=function(){return!1},zL.K=function(){return!1},zL.H=function(){throw new xi},zL.L=function(){return 0},zL.M=function(){throw new xi},zL.N=function(){return-1};Pp(NP,"Iterators/1",424);FT(264,108,AP,qe),zL.G=function(){return!this.a},zL.H=function(){if(this.a)throw new xi;return this.a=!0,this.b},zL.a=!1;Pp(NP,"Iterators/11",264);FT(425,1,PP,p),zL.G=function(){return!1},zL.H=function(){throw new xi},zL.I=function(){ux(!1)};Pp(NP,"Iterators/2",425);FT(426,108,AP,Ve),zL.G=function(){return this.a.G()},zL.H=function(){return this.a.H()};Pp(NP,"Iterators/3",426);FT(427,1,PP,sh),zL.G=function(){return this.a.G()||this.b.mb().G()},zL.H=function(){return Sw(this)},zL.I=function(){this.a.I()};Pp(NP,"Iterators/4",427);FT(429,428,AP,Ia);Pp(NP,"Iterators/6",429);FT(261,1,PP),zL.G=function(){return this.b.G()},zL.H=function(){return $s(this)},zL.I=function(){this.b.I()};Pp(NP,"TransformedIterator",261);FT(430,261,PP,Nl),zL.Vb=function(t){return Lo(this,t)};Pp(NP,"Iterators/7",430);FT(313,1,PP),zL.G=function(){return X_(this)},zL.H=function(){return xv(this)},zL.I=function(){ux(!!this.c),this.c.I(),this.c=null};Pp(NP,"MultitransformedIterator",313);FT(90,313,{90:1,35:1},Pc),zL.Wb=function(t){return Gh(t,35)};Pp(NP,"Iterators/ConcatenatedIterator",90);FT(314,313,PP,Li),zL.Wb=function(t){return function(t){return fl(t,90)?new Li(Gh(t,90).a):(qc(),new qe(t))}(Gh(t,35))};Pp(NP,"Iterators/ConcatenatedIterator/1",314);FT(329,653,LP,Zs),zL.U=function(t){return new Da(this,t)},zL.X=function(t){return Lb(this,t)},zL.Q=function(){Dp(this)},zL.R=function(t){return ts(this,t)},zL.S=function(){return new Ks(this)},zL.T=function(){return new Xe(this)},zL.V=function(){return!this.a},zL.Y=function(){return this.d},zL.c=0,zL.d=0;Pp(NP,"LinkedListMultimap",329);FT(647,640,RP),zL.rb=function(t,e){throw new ko("Add not supported on this list")},zL.ib=function(t){return this.rb(this.Y(),t),!0},zL.Q=function(){this.Xb(0,this.Y())},zL.t=function(t){return dT(this,t)},zL.v=function(){return Ix(this)},zL.mb=function(){return new Fn(this)},zL.tb=function(){return this.ub(0)},zL.ub=function(t){return new Uv(this,t)},zL.vb=function(t){throw new ko("Remove not supported on this list")},zL.Xb=function(t,e){var n,r;for(r=this.ub(t),n=t;n<e;++n)r.H(),r.I()},zL.wb=function(t,e){throw new ko("Set not supported on this list")},zL.xb=function(t,e){return new Yv(this,t,e)},zL.d=0;Pp(jP,"AbstractList",647);FT(648,647,RP),zL.rb=function(t,e){Hl(this,t,e)},zL.sb=function(t){return tk(this,t)},zL.mb=function(){return this.ub(0)},zL.vb=function(t){return Zk(this,t)},zL.wb=function(t,e){var n,r;n=this.ub(t);try{return r=n.H(),n.O(e),r}catch(e){throw fl(e=Qx(e),74)?new ro("Can't set element "+t):A_(e)}};Pp(jP,"AbstractSequentialList",648);FT(276,648,RP,Da),zL.ub=function(t){return Tl(this,t)},zL.Y=function(){var t;return(t=Gh(Up(this.a.b,this.b),126))?t.a:0};Pp(NP,"LinkedListMultimap/1",276);FT(330,648,RP,Ue),zL.ub=function(t){return new LS(this.a,t)},zL.Y=function(){return this.a.d};Pp(NP,"LinkedListMultimap/1EntriesImpl",330);FT(563,649,DP,Xe),zL.kb=function(t){return ts(this.a,t)},zL.mb=function(){return new nm(this.a)},zL.nb=function(t){return!Lb(this.a,t).a.V()},zL.Y=function(){return Bs(this.a.b)};Pp(NP,"LinkedListMultimap/1KeySetImpl",563);FT(562,1,PP,nm),zL.G=function(){return Ff(this),!!this.c},zL.H=function(){Ff(this),Yu(this.c),this.a=this.c,mp(this.d,this.a.a);do{this.c=this.c.b}while(this.c&&!mp(this.d,this.c.a));return this.a.a},zL.I=function(){Ff(this),ux(!!this.a),ip(new Jy(this.e,this.a.a)),this.a=null,this.b=this.e.c},zL.b=0;Pp(NP,"LinkedListMultimap/DistinctKeyIterator",562);FT(126,1,{126:1},Xg),zL.a=0;Pp(NP,"LinkedListMultimap/KeyList",126);FT(560,668,FP,Ra),zL.yb=function(){return this.a},zL.zb=function(){return this.f},zL.Ab=function(t){var e;return e=this.f,this.f=t,e};Pp(NP,"LinkedListMultimap/Node",560);FT(561,1,GP,LS),zL.J=function(t){Gh(t,21),function(){throw new $r}()},zL.H=function(){return tb(this)},zL.M=function(){return eb(this)},zL.O=function(t){Gh(t,21),function(){throw new $r}()},zL.G=function(){return zf(this),!!this.c},zL.K=function(){return zf(this),!!this.e},zL.L=function(){return this.d},zL.N=function(){return this.d-1},zL.I=function(){zf(this),ux(!!this.a),this.a!=this.c?(this.e=this.a.d,--this.d):this.c=this.a.b,KC(this.f,this.a),this.a=null,this.b=this.f.c},zL.b=0,zL.d=0;Pp(NP,"LinkedListMultimap/NodeIterator",561);FT(241,1,GP,Jy,HC),zL.J=function(t){this.e=hN(this.f,this.b,t,this.c),++this.d,this.a=null},zL.G=function(){return!!this.c},zL.K=function(){return!!this.e},zL.H=function(){return Lv(this)},zL.L=function(){return this.d},zL.M=function(){return Pv(this)},zL.N=function(){return this.d-1},zL.I=function(){ux(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,KC(this.f,this.a),this.a=null},zL.O=function(t){zu(!!this.a),this.a.f=t},zL.d=0;Pp(NP,"LinkedListMultimap/ValueForKeyIterator",241);FT(419,647,RP),zL.rb=function(t,e){this.a.rb(t,e)},zL.kb=function(t){return this.a.kb(t)},zL.sb=function(t){return this.a.sb(t)},zL.vb=function(t){return this.a.vb(t)},zL.wb=function(t,e){return this.a.wb(t,e)},zL.Y=function(){return this.a.Y()};Pp(NP,"Lists/AbstractListWrapper",419);FT(420,419,BP);Pp(NP,"Lists/RandomAccessListWrapper",420);FT(422,420,BP,Xa),zL.ub=function(t){return this.a.ub(t)};Pp(NP,"Lists/1",422);FT(88,647,{88:1,22:1,19:1,20:1},Wa),zL.rb=function(t,e){this.a.rb(Zd(this,t),e)},zL.Q=function(){this.a.Q()},zL.sb=function(t){return this.a.sb(Op(this,t))},zL.mb=function(){return Hv(this,0)},zL.ub=function(t){return Hv(this,t)},zL.vb=function(t){return this.a.vb(Op(this,t))},zL.Xb=function(t,e){(wv(t,e,this.a.Y()),km(this.a.xb(Zd(this,e),Zd(this,t)))).Q()},zL.wb=function(t,e){return this.a.wb(Op(this,t),e)},zL.Y=function(){return this.a.Y()},zL.xb=function(t,e){return wv(t,e,this.a.Y()),km(this.a.xb(Zd(this,e),Zd(this,t)))};Pp(NP,"Lists/ReverseList",88);FT(220,88,{88:1,22:1,19:1,20:1,63:1},Ii);Pp(NP,"Lists/RandomAccessReverseList",220);FT(421,1,GP,Fa),zL.J=function(t){this.c.J(t),this.c.M(),this.a=!1},zL.G=function(){return this.c.K()},zL.K=function(){return this.c.G()},zL.H=function(){if(!this.c.K())throw new xi;return this.a=!0,this.c.M()},zL.L=function(){return Zd(this.b,this.c.L())},zL.M=function(){if(!this.c.G())throw new xi;return this.a=!0,this.c.H()},zL.N=function(){return Zd(this.b,this.c.L())-1},zL.I=function(){ux(this.a),this.c.I(),this.a=!1},zL.O=function(t){zu(this.a),this.c.O(t)},zL.a=!1;var IM;Pp(NP,"Lists/ReverseList/1",421);FT(376,261,PP,Ol),zL.Vb=function(t){return ml(),new Ma(t,Ku(this.a,t))};var jM,MM;Pp(NP,"Maps/1",376);FT(188,17,tI);var DM=Qy(NP,"Maps/EntryFunction",188,EM,(function(){return Uc(),_x(Oo(DM,1),CP,188,0,[jM,MM])}));FT(374,188,tI,Xs),zL.B=function(t){return Gh(t,21).yb()};Qy(NP,"Maps/EntryFunction/1",374,DM,null);FT(375,188,tI,mc),zL.B=function(t){return Gh(t,21).zb()};Qy(NP,"Maps/EntryFunction/2",375,DM,null);FT(373,640,MP,$a),zL.Q=function(){this.a.Q()},zL.kb=function(t){return this.a.ab(t)},zL.V=function(){return this.a.V()},zL.mb=function(){return Zp(this)},zL.nb=function(t){var e,n;try{return dE(this,t,!0)}catch(r){if(fl(r=Qx(r),45)){for(n=this.a.bb().mb();n.G();)if($p(t,(e=Gh(n.H(),21)).zb()))return this.a.eb(e.yb()),!0;return!1}throw A_(r)}},zL.Y=function(){return this.a.Y()};Pp(NP,"Maps/Values",373);FT(301,654,IP,Ks),zL.cb=function(t){return this.a.R(t)?this.a.U(t):null},zL.eb=function(t){return this.a.R(t)?this.a.X(t):null},zL.Q=function(){this.a.Q()},zL.R=function(t){return this.a.R(t)},zL.hb=function(){return new We(this)},zL.gb=function(){return this.hb()},zL.V=function(){return this.a.V()},zL.W=function(){return this.a.W()},zL.Y=function(){return this.a.W().Y()};Pp(NP,"Multimaps/AsMap",301);FT(393,655,DP,We),zL.mb=function(){return t=this.a.a.W(),e=new $e(this),ml(),new Ol(t.mb(),e);var t,e},zL.qb=function(){return this.a},zL.nb=function(t){var e;return!!LE(this,t)&&(e=Gh(t,21),function(t,e){t.a.W().nb(e)}(this.a,e.yb()),!0)};Pp(NP,"Multimaps/AsMap/EntrySet",393);FT(395,1,ZP,$e),zL.B=function(t){return Ku(this,t)};Pp(NP,"Multimaps/AsMap/EntrySet/1",395);FT(391,656,YP,Ke),zL.Q=function(){Dp(this.a)},zL.kb=function(t){return ts(this.a,t)},zL.Cb=function(t){var e;return(e=Gh(ek(Rp(this.a),t),19))?e.Y():0},zL.gb=function(){return new Qe(this)},zL.Db=function(){return Rp(this.a).Y()},zL.Eb=function(){return new Pi(Jd(Rp(this.a)).mb())},zL.mb=function(){return kp(this)},zL.Fb=function(t,e){var n,r,i,o,a;if(kw(e,eI),0==e)return(a=Gh(ek(Rp(this.a),t),19))?a.Y():0;if(!(o=Gh(ek(Rp(this.a),t),19)))return 0;if(e>=(i=o.Y()))o.Q();else for(r=o.mb(),n=0;n<e;n++)r.H(),r.I();return i};Pp(NP,"Multimaps/Keys",391);FT(302,261,PP,Pi),zL.Vb=function(t){return new Ze(Gh(t,21))};Pp(NP,"Multimaps/Keys/1",302);FT(658,1,{83:1}),zL.t=function(t){var e;return!!fl(t,83)&&(e=Gh(t,83),this.Yb()==e.Yb()&&$p(this.Zb(),e.Zb()))},zL.v=function(){var t;return(null==(t=this.Zb())?0:V_(t))^this.Yb()},zL.w=function(){return Sb(this)};Pp(NP,"Multisets/AbstractEntry",658);FT(394,658,{83:1},Ze),zL.Yb=function(){return Gh(this.a.zb(),19).Y()},zL.Zb=function(){return this.a.yb()};Pp(NP,"Multimaps/Keys/1/1",394);FT(392,657,DP,Qe),zL.kb=function(t){var e,n;return!!fl(t,83)&&(n=Gh(t,83),!!(e=Gh(Rp(this.a.a).cb(n.Zb()),19))&&e.Y()==n.Yb())},zL.V=function(){return!this.a.a.a},zL.mb=function(){return new Pi(Jd(Rp(this.a.a)).mb())},zL.Ib=function(){return this.a},zL.nb=function(t){var e,n;return!(!fl(t,83)||(n=Gh(t,83),!(e=Gh(Rp(this.a.a).cb(n.Zb()),19))||e.Y()!=n.Yb()))&&(e.Q(),!0)},zL.Y=function(){return Rp(this.a.a).Y()};Pp(NP,"Multimaps/Keys/KeysEntrySet",392);FT(659,1,fP);Pp(NP,"Ordering",659);FT(398,659,fP,c),zL.$b=function(t,e){return function(t,e){return function(t,e){return t<e?-1:t>e?1:0}(e.Yb(),t.Yb())}(Gh(t,83),Gh(e,83))};Pp(NP,"Multisets/1",398);FT(397,658,{83:1,3:1},od),zL.Yb=function(){return this.a},zL.Zb=function(){return this.b},zL.a=0;Pp(NP,"Multisets/ImmutableEntry",397);FT(303,1,PP,za),zL.G=function(){return this.d>0||this.c.G()},zL.H=function(){if(!(this.d>0||this.c.G()))throw new xi;return 0==this.d&&(this.b=Gh(this.c.H(),83),this.f=this.d=this.b.Yb()),--this.d,this.a=!0,this.b.Zb()},zL.I=function(){ux(this.a),1==this.f?this.c.I():this.e.Fb(this.b.Zb(),1),--this.f,this.a=!1},zL.a=!1,zL.d=0,zL.f=0;var RM;Pp(NP,"Multisets/MultisetIteratorImpl",303);FT(622,659,{3:1,56:1},l),zL.$b=function(t,e){return function(t,e){return Od(t),Od(e),Dm(t,e)}(Gh(t,23),Gh(e,23))},zL.w=function(){return"Ordering.natural()"};Pp(NP,"NaturalOrdering",622);FT(343,661,WP,hp),zL.ub=function(t){return Cl(this.b,t)},zL.Sb=function(){return this.a},zL.sb=function(t){return $u(this.b,t)},zL.Lb=function(t){return Cl(this.b,t)};var BM;Pp(NP,"RegularImmutableAsList",343);FT(559,275,$P,og),zL.Tb=function(){return this.a};Pp(NP,"RegularImmutableBiMap",559);FT(53,667,WP,ib),zL.Nb=function(){return this.a};Pp(NP,"RegularImmutableList",53);FT(321,320,$P,ji);var GM;Pp(NP,"RegularImmutableMap",321);FT(265,315,KP,Ws);Pp(NP,"RegularImmutableSet",265);FT(650,641,DP);Pp(NP,"Sets/SetView",650);FT(377,650,DP,dh),zL.kb=function(t){return xa(this.b,t)&&xa(this.c,t)},zL.lb=function(t){return Um(this.b,t)&&Um(this.c,t)},zL.V=function(){return Ow(this)},zL.mb=function(){return fp(new Yn(new zn(this.b.a).a.bb().mb()),this.a)},zL.Y=function(){return Zb(fp(new Yn(new zn(this.b.a).a.bb().mb()),this.a))};Pp(NP,"Sets/2",377);FT(328,275,$P,qv,Hy),zL.fb=function(){return ch(),new ua(this.c)},zL.Tb=function(){return this.a||(this.a=new Hy(this.c,this.b,this))},zL.Ub=function(){return ch(),new ua(this.c)};Pp(NP,"SingletonImmutableBiMap",328);FT(127,667,WP,Gd),zL.Nb=function(){return this.a};Pp(NP,"SingletonImmutableList",127);FT(135,663,KP,ua),zL.mb=function(){return qc(),new qe(this.a)},zL.kb=function(t){return e_(this.a,t)},zL.Kb=function(){return qc(),new qe(this.a)},zL.Y=function(){return 1};Pp(NP,"SingletonImmutableSet",135);FT(285,342,{207:1,3:1,22:1,19:1},Ov,rk),zL.Bb=function(t,e){return eT(this,t,e)},zL.Cb=function(t){return xS(this,t)},zL.Db=function(){return iw(Mx(this,(Xc(),HM)))},zL.Eb=function(){return new Pl(this)},zL.Fb=function(t,e){return BT(this,t,e)},zL.Gb=function(t,e){return YS(this,t,e)},zL.Hb=function(t,e,n){var r,i,o;return kw(n,"newCount"),kw(e,"oldCount"),Fu(lf(this.b,t)),(o=this.c.a)?(i=Ey(UX,nI,26,1,12,1),r=function t(e,n,r,i,o,a){var s,u,c;if((s=n.$b(r,e.b))<0)return(u=e.e)?(e.e=t(u,n,r,i,o,a),a[0]==i&&(0==o&&0!=a[0]?--e.a:o>0&&0==a[0]&&++e.a,e.j=p_(e.j,o-a[0])),HS(e)):(a[0]=0,0==i&&o>0?ym(e,r,o):e);if(s>0)return(c=e.g)?(e.g=t(c,n,r,i,o,a),a[0]==i&&(0==o&&0!=a[0]?--e.a:o>0&&0==a[0]&&++e.a,e.j=p_(e.j,o-a[0])),HS(e)):(a[0]=0,0==i&&o>0?bm(e,r,o):e);if(a[0]=e.c,i==e.c){if(0==o)return MT(e);e.j=p_(e.j,o-e.c),e.c=o}return e}(o,this.d,t,e,n,i),Pd(this.c,o,r),i[0]==e):0==e&&(n>0&&eT(this,t,n),!0)},zL.Y=function(){return iw(Mx(this,(Xc(),FM)))};Pp(NP,"TreeMultiset",285);FT(619,658,{83:1},Va),zL.Yb=function(){var t;return 0==(t=this.b.c)?xS(this.a,this.b.b):t},zL.Zb=function(){return this.b.b};Pp(NP,"TreeMultiset/1",619);FT(620,1,PP,Pl),zL.H=function(){return function(t){var e;if(!sx(t))throw new xi;return e=new Va(t.c,t.a),t.b=e,t.a.i==t.c.a?t.a=null:t.a=t.a.i,e}(this)},zL.G=function(){return sx(this)},zL.I=function(){ux(!!this.b),YS(this.c,this.b.b.b,0),this.b=null};var HM,FM;Pp(NP,"TreeMultiset/2",620);FT(205,17,rI);var zM=Qy(NP,"TreeMultiset/Aggregate",205,EM,(function(){return Xc(),_x(Oo(zM,1),CP,205,0,[FM,HM])}));FT(617,205,rI,lc),zL._b=function(t){return t.c},zL.ac=function(t){return t?t.j:0};Qy(NP,"TreeMultiset/Aggregate/1",617,zM,null);FT(618,205,rI,yl),zL._b=function(t){return 1},zL.ac=function(t){return t?t.a:0};Qy(NP,"TreeMultiset/Aggregate/2",618,zM,null);FT(206,658,{83:1,206:1},_m),zL.Yb=function(){return this.c},zL.Zb=function(){return this.b},zL.w=function(){return Ar(),Sb(new od(this.b,this.c))},zL.a=0,zL.c=0,zL.d=0,zL.j=0;Pp(NP,"TreeMultiset/AvlNode",206);FT(616,1,{},f);Pp(NP,"TreeMultiset/Reference",616);var YM,VM=Pp(bP,"JavaScriptObject$",0);FT(628,1,{});Pp(bP,"Scheduler",628);var qM,UM=0,XM=0,WM=-1;FT(360,628,{},u);Pp(yP,"SchedulerImpl",360);FT(646,1,{}),zL.hc=function(){return null},zL.ic=function(){return null},zL.jc=function(){return null},zL.kc=function(){return null},zL.lc=function(){return null};Pp(oI,"JSONValue",646);FT(214,646,{214:1},or,Je),zL.t=function(t){return!!fl(t,214)&&this.a==Gh(t,214).a},zL.gc=function(){return dr},zL.v=function(){return ff(this.a)},zL.hc=function(){return this},zL.w=function(){var t,e,n;for(n=new Uo("["),e=0,t=this.a.length;e<t;e++)e>0&&(n.a+=","),tc(n,Tw(this,e));return n.a+="]",n.a};var $M,KM;Pp(oI,"JSONArray",214);FT(292,646,{},tn),zL.gc=function(){return pr},zL.ic=function(){return this},zL.w=function(){return vl(this.a)},zL.a=!1;Pp(oI,"JSONBoolean",292);FT(371,72,JL,Gi);var ZM;Pp(oI,"JSONException",371);FT(435,646,{},g),zL.gc=function(){return wr},zL.w=function(){return tP};Pp(oI,"JSONNull",435);FT(104,646,{104:1},en),zL.t=function(t){return!!fl(t,104)&&this.a==Gh(t,104).a},zL.gc=function(){return gr},zL.v=function(){return pv(no(this.a))},zL.jc=function(){return this},zL.w=function(){return this.a+""},zL.a=0;Pp(oI,"JSONNumber",104);FT(69,646,{69:1},Yi,nn),zL.t=function(t){return!!fl(t,69)&&this.a==Gh(t,69).a},zL.gc=function(){return vr},zL.v=function(){return ff(this.a)},zL.kc=function(){return this},zL.w=function(){var t,e,n,r,i,o;for(o=new Uo("{"),t=!0,n=0,r=(i=wm(this,Ey(pM,ZL,2,0,5,1))).length;n<r;++n)e=i[n],t?t=!1:o.a+=", ",ec(o,pT(e)),o.a+=":",tc(o,_g(this,e));return o.a+="}",o.a};Pp(oI,"JSONObject",69);FT(361,641,DP,Ua),zL.kb=function(t){return Sl(t)&&function(t,e){return e in t.a}(this.a,Of(t))},zL.mb=function(){return new Fn(new Kn(this.b))},zL.Y=function(){return this.b.length};var QM;Pp(oI,"JSONObject/1",361);FT(97,646,{97:1},Ld),zL.t=function(t){return!!fl(t,97)&&Mi(this.a,Gh(t,97).a)},zL.gc=function(){return br},zL.v=function(){return ak(this.a)},zL.lc=function(){return this},zL.w=function(){return pT(this.a)};var JM,tD,eD;Pp(oI,"JSONString",97);FT(186,1,{},Vf,Sf),zL.b=!1,zL.c=0,zL.d=-1,zL.e=0,zL.f=!1,zL.j=0;Pp("de.cau.cs.kieler.core.alg","BasicProgressMonitor",186);FT(10,1,{10:1,286:1,3:1,5:1},ao,pp,Za,Uu),zL.t=function(t){return vm(this,t)},zL.v=function(){return pv(no(this.a))+(t=pv(no(this.b)),Jw(),(e=xX)[t>>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[15&t]<<28);var t,e},zL.w=function(){return"("+this.a+","+this.b+")"},zL.a=0,zL.b=0;var nD=Pp(pI,"KVector",10);FT(58,648,{3:1,5:1,22:1,19:1,58:1,20:1},so),zL.ib=function(t){return Nh(this,t)},zL.Q=function(){Cg(this)},zL.ub=function(t){return _k(this,t)},zL.Y=function(){return this.b},zL.b=0;Pp(jP,"LinkedList",58);FT(44,58,{44:1,286:1,3:1,5:1,22:1,19:1,58:1,20:1},Br,Tf),zL.w=function(){var t,e,n;for(t=new Uo("("),e=_k(this,0);e.b!=e.d.c;)ec(t,(n=Gh(Cb(e),10)).a+","+n.b),e.b!=e.d.c&&(t.a+="; ");return t.a+=")",t.a};Pp(pI,"KVectorChain",44);var rD=yd(vI,"IProperty");FT(131,1,{179:1,131:1,3:1},v);var iD,oD;Pp(vI,"MapPropertyHolder",131);FT(14,1,bI,Cd,Sd,sd,Lh,yv,Xv),zL.F=function(t){return function(t,e){return yg(t.b,e.mc())}(this,Gh(t,79))},zL.t=function(t){return hg(this,t)},zL.mc=function(){return this.b},zL.nc=function(){return this.c},zL.oc=function(){return this.d},zL.v=function(){return ak(this.b)},zL.w=function(){return this.b};Pp(vI,"Property",14);FT(366,1,{23:1},b),zL.F=function(t){return-1};Pp(vI,"Property/1",366);FT(367,1,{23:1},y),zL.F=function(t){return 1};Pp(vI,"Property/2",367);FT(27,1,{27:1,22:1},Qa),zL.t=function(t){var e,n,r;return!!fl(t,27)&&(n=Gh(t,27),e=null==this.a?null==n.a:e_(this.a,n.a),r=null==this.b?null==n.b:e_(this.b,n.b),e&&r)},zL.v=function(){var t,e,n;return t=-65536&(e=null==this.a?0:V_(this.a)),e&sP^(-65536&(n=null==this.b?0:V_(this.b)))>>16&sP|t^(n&sP)<<16},zL.mb=function(){return new rn(this)},zL.w=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+Bk(this.b)+")":null==this.b?"pair("+Bk(this.a)+",null)":"pair("+Bk(this.a)+","+Bk(this.b)+")"};Pp(yI,"Pair",27);FT(431,1,PP,rn),zL.G=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},zL.H=function(){if(!this.c&&!this.b&&null!=this.a.a)return this.b=!0,this.a.a;if(!this.c&&null!=this.a.b)return this.c=!0,this.a.b;throw new xi},zL.I=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),new Xr},zL.b=!1,zL.c=!1;Pp(yI,"Pair/1",431);FT(228,72,JL,Hi);Pp(wI,"UnsupportedConfigurationException",228);FT(99,72,JL,Fi);var aD,sD,uD,cD,lD,fD,hD;Pp(wI,"UnsupportedGraphException",99);FT(103,17,{103:1,3:1,23:1,17:1},Ja);var dD,pD,gD,vD,bD,yD,wD=Qy(EI,"Alignment",103,EM,(function(){return ok(),_x(Oo(wD,1),CP,103,0,[sD,lD,fD,hD,uD,cD])}));FT(59,17,{59:1,3:1,23:1,17:1},as);var mD,xD,_D,ED,kD,SD=Qy(EI,"Direction",59,EM,(function(){return b_(),_x(Oo(SD,1),CP,59,0,[bD,vD,gD,pD,yD])}));FT(107,17,{107:1,3:1,23:1,17:1},ss);var CD,TD,AD,ND,OD,LD=Qy(EI,"EdgeLabelPlacement",107,EM,(function(){return Im(),_x(Oo(LD,1),CP,107,0,[kD,xD,_D,ED])}));FT(122,17,{122:1,3:1,23:1,17:1},us);var PD,ID,jD,MD,DD,RD,BD,GD=Qy(EI,"EdgeRouting",122,EM,(function(){return y_(),_x(Oo(GD,1),CP,122,0,[OD,AD,TD,ND])}));FT(133,17,{133:1,3:1,23:1,17:1},cs);var HD,FD,zD,YD,VD=Qy(EI,"EdgeType",133,EM,(function(){return TS(),_x(Oo(VD,1),CP,133,0,[RD,MD,BD,ID,DD,jD])}));FT(166,17,{166:1,3:1,23:1,17:1},ls);var qD,UD,XD,WD,$D,KD,ZD,QD,JD,tR,eR,nR,rR,iR,oR,aR,sR,uR,cR,lR,fR,hR,dR,pR,gR,vR,bR,yR,wR,mR,xR,_R,ER,kR,SR,CR,TR,AR,NR,OR,LR,PR,IR,jR,MR,DR,RR,BR,GR,HR,FR,zR,YR,VR,qR,UR,XR,WR,$R,KR=Qy(EI,"HierarchyHandling",166,EM,(function(){return w_(),_x(Oo(KR,1),CP,166,0,[zD,FD,YD])}));FT(41,17,{41:1,3:1,23:1,17:1},fs);var ZR,QR,JR,tB,eB,nB,rB=Qy(EI,"NodeLabelPlacement",41,EM,(function(){return uT(),_x(Oo(rB,1),CP,41,0,[zR,FR,VR,$R,WR,XR,qR,UR,YR])}));FT(100,17,{100:1,3:1,23:1,17:1},hs);var iB,oB,aB,sB,uB,cB,lB,fB=Qy(EI,"PortAlignment",100,EM,(function(){return EE(),_x(Oo(fB,1),CP,100,0,[nB,eB,QR,JR,tB])}));FT(28,17,{28:1,3:1,23:1,17:1},ds);var hB,dB,pB,gB,vB=Qy(EI,"PortConstraints",28,EM,(function(){return cS(),_x(Oo(vB,1),CP,28,0,[lB,cB,uB,oB,sB,aB])}));FT(149,17,{149:1,3:1,23:1,17:1},ps);var bB,yB,wB,mB,xB,_B,EB,kB,SB,CB,TB,AB,NB,OB,LB,PB,IB,jB,MB,DB,RB,BB,GB=Qy(EI,"PortLabelPlacement",149,EM,(function(){return jw(),_x(Oo(GB,1),CP,149,0,[gB,pB,dB])}));FT(32,17,{32:1,3:1,23:1,17:1},gs);var HB,FB,zB,YB,VB,qB=Qy(EI,"PortSide",32,EM,(function(){return uL(),_x(Oo(qB,1),CP,32,0,[RB,wB,yB,DB,BB])}));FT(150,17,{150:1,3:1,23:1,17:1},vs);var UB,XB,WB,$B,KB,ZB=Qy(EI,"SizeConstraint",150,EM,(function(){return kE(),_x(Oo(ZB,1),CP,150,0,[YB,VB,zB,FB])}));FT(139,17,{139:1,3:1,23:1,17:1},bs);var QB,JB=Qy(EI,"SizeOptions",139,EM,(function(){return jS(),_x(Oo(JB,1),CP,139,0,[$B,KB,WB,XB])}));FT(62,1,{62:1},ru,gg),zL.t=function(t){var e;return!(null==t||!fl(t,62))&&(e=Gh(t,62),xg(this.d,e.d)&&xg(this.e,e.e)&&xg(this.c,e.c)&&xg(this.b,e.b))},zL.v=function(){return Vx(_x(Oo(fM,1),kP,1,4,[this.d,this.e,this.c,this.b]))},zL.w=function(){return"Rect[x="+this.d+",y="+this.e+",w="+this.c+",h="+this.b+"]"},zL.b=0,zL.c=0,zL.d=0,zL.e=0;Pp(AI,"Rectangle",62);FT(283,62,{283:1,62:1},Gr),zL.a=0;var tG,eG,nG,rG,iG,oG,aG,sG,uG,cG,lG,fG,hG,dG,pG,gG,vG,bG,yG,wG,mG,xG;Pp(NI,"LabelGroup",283);FT(67,17,{67:1,3:1,23:1,17:1},bg);var _G,EG,kG,SG=Qy(NI,"LabelLocation",67,EM,_E);FT(225,17,{225:1,3:1,23:1,17:1},ys);var CG,TG=Qy(NI,"TextAlignment",225,EM,(function(){return Bb(),_x(Oo(TG,1),CP,225,0,[EG,_G,kG])}));FT(589,1,{},iO),zL.a=0,zL.b=!1,zL.d=0,zL.f=0,zL.k=0,zL.r=0,zL.s=0;var AG,NG,OG,LG;Pp(AI,"LabelAndNodeSizeProcessor/NodeData",589);FT(171,17,{171:1,3:1,23:1,17:1},ws);var PG=Qy(AI,"LabelSide",171,EM,(function(){return SE(),_x(Oo(PG,1),CP,171,0,[LG,AG,NG])}));FT(590,1,{},on),zL.b=!0,zL.c=!0,zL.d=!0,zL.e=!0;Pp(AI,LI,590);FT(121,1,II),zL.t=function(t){var e;return!!fl(t,121)&&(e=Gh(t,121),this.d==e.d&&this.a==e.a&&this.b==e.b&&this.c==e.c)},zL.v=function(){var t,e;return t=pv(no(this.b))<<16,t|=pv(no(this.a))&sP,e=pv(no(this.c))<<16,t^(e|=pv(no(this.d))&sP)},zL.w=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},zL.a=0,zL.b=0,zL.c=0,zL.d=0;Pp(AI,"Spacing",121);FT(232,121,II,Hr,mf,Uf);Pp(AI,"Spacing/Insets",232);FT(65,121,{286:1,121:1,65:1,3:1,5:1},Fr,xf,Xf);var IG,jG,MG;Pp(AI,"Spacing/Margins",65);FT(364,1,{},Nk),zL.c=!1,zL.d=null,zL.g=null;var DG,RG,BG,GG,HG,FG,zG,YG,VG;Pp(UI,"JsonGraphImporter",364);FT(417,14,bI,uu);var qG;Pp(UI,"LayoutOptionResolver/DummyProperty",417);FT(348,1,{},xe);Pp(UI,"RecursiveLGraphLayout",348);FT(73,99,{73:1,3:1,54:1,46:1},zi,Xl,gp);var UG,XG,WG=Pp(UI,"UnsupportedJsonGraphException",73);FT(380,1,{},ag);Pp(KI,"GraphConfigurator",380);FT(49,1,{},Z_);Pp(KI,"IntermediateProcessingConfiguration",49);FT(365,1,{},jb);var $G;Pp(KI,"KlayLayered",365);FT(577,1,{},Fm),zL.i=0;var KG;Pp(tj,"ComponentsToCGraphTransformer",577);FT(578,1,{},C),zL.tc=function(t,e){return Ho(t.wc(),e.wc())},zL.uc=function(t,e){return Ho(t.xc(),e.xc())};Pp(tj,"ComponentsToCGraphTransformer/1",578);FT(25,1,{25:1}),zL.k=0,zL.o=null,zL.p=!0,zL.r=JI;var ZG=Pp(ej,"CNode",25);FT(198,25,{198:1,25:1},el,rm),zL.vc=function(){this.b.d=this.j.d,this.b.e=this.j.e},zL.wc=function(){return null!=this.a?no(this.a):this.c.i},zL.xc=function(){return null!=this.a?no(this.a):this.c.i},zL.w=function(){return""};var QG,JG;Pp(tj,"ComponentsToCGraphTransformer/CRectNode",198);FT(549,1,{},T);Pp(tj,"OneDimensionalComponentsCompaction",549);FT(550,1,ZP,A),zL.B=function(t){return lx(),Hd(),0!=Gh(Gh(t,27).a,25).f.f?vX:gX};Pp(tj,"OneDimensionalComponentsCompaction/lambda$0$Type",550);FT(551,1,ZP,N),zL.B=function(t){return lx(),Hd(),rE(Gh(Gh(t,27).a,25).n,Gh(Gh(t,27).b,59))||0!=Gh(Gh(t,27).a,25).f.f&&rE(Gh(Gh(t,27).a,25).n,Gh(Gh(t,27).b,59))?vX:gX};Pp(tj,"OneDimensionalComponentsCompaction/lambda$1$Type",551);FT(324,1,{},vp);Pp(ej,"CGraph",324);FT(78,1,{78:1},YE),zL.b=0,zL.c=0,zL.d=0,zL.f=0,zL.i=!0,zL.j=JI;Pp(ej,"CGroup",78);FT(470,1,{},O),zL.tc=function(t,e){return Ro(t.wc(),e.wc())},zL.uc=function(t,e){return Ro(t.xc(),e.xc())};var tH,eH,nH;Pp(ej,"ISpacingsHandler/1",470);FT(323,1,{},cT),zL.e=!1;var rH=Pp(ej,"OneDimensionalCompactor",323);FT(554,1,ZP,m),zL.B=function(t){return zd(),Hd(),0!=Gh(Gh(t,27).a,25).f.f?vX:gX};Pp(ej,"OneDimensionalCompactor/lambda$0$Type",554);FT(335,1,{},Mh),zL.a=!1,zL.b=!1,zL.c=!1,zL.d=!1;Pp(ej,"Quadruplet",335);FT(587,1,{},x),zL.Cc=function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v;for(l=QI,r=new $n(t.a.b);r.a<r.c.c.length;)l=Ho(l,(e=Gh(Wv(r),25)).f.g.j.d+e.g.a);for(p=new so,s=new $n(t.a.a);s.a<s.c.c.length;)(a=Gh(Wv(s),78)).j=l,0==a.f&&Ob(p,a,p.c.b,p.c);for(;0!=p.b;){for(i=(a=Gh(0==p.b?null:(Nc(0!=p.b),Hw(p,p.a.a)),78)).g.j.d,d=new Yn(new zn(a.a.a).a.bb().mb());d.a.G();)o=Gh(d.a.H(),21),f=Gh(o.yb(),25),v=a.j+f.g.a,f.f.i||f.j.d<v?f.r=v:f.r=f.j.d;for(i-=a.g.r,a.b+=i,t.d==(b_(),vD)||t.d==pD?a.c+=i:a.c-=i,h=new Yn(new zn(a.a.a).a.bb().mb());h.a.G();)for(o=Gh(h.a.H(),21),c=(f=Gh(o.yb(),25)).i.mb();c.G();)u=Gh(c.H(),25),g=ns(t.d)?t.g.tc(f,u):t.g.uc(f,u),u.f.j=Ro(u.f.j,f.r+f.j.c+g-u.g.a),u.p||(u.f.j=Ro(u.f.j,u.j.d-u.g.a)),--u.f.f,0==u.f.f&&Nh(p,u.f)}for(n=new $n(t.a.b);n.a<n.c.c.length;)(e=Gh(Wv(n),25)).j.d=e.r};Pp(rj,"LongestPathCompaction",587);FT(588,1,{},_),zL.Dc=function(t){var e,n,r,i,o,a;for(e=new $n(t.a.b);e.a<e.c.c.length;)Gh(Wv(e),25).i.Q();for(r=new $n(t.a.b);r.a<r.c.c.length;)for(n=Gh(Wv(r),25),o=new $n(t.a.b);o.a<o.c.c.length;)n!=(i=Gh(Wv(o),25))&&(n.f&&n.f==i.f||(a=ns(t.d)?t.g.uc(n,i):t.g.tc(n,i),n!=i.o&&(i.j.d>n.j.d||n.j.d==i.j.d&&n.j.c<i.j.c)&&TE(i.j.e+i.j.b+a,n.j.e)&&AE(i.j.e,n.j.e+n.j.b+a)&&n.i.ib(i)))};Pp(rj,"QuadraticConstraintCalculation",588);FT(317,1,{},Zh),zL.Dc=function(t){this.b=t,iT(this,new k,new S)};Pp(rj,"ScanlineConstraintCalculator",317);var iH=yd(ij,"Scanline/EventHandler");FT(464,1,{160:1},Ng),zL.Ec=function(t){!function(t,e){var n,r,i;e.a?(Np(t.b,e.b),t.a[e.b.k]=Gh(cl(t.b,e.b),25),!!(n=Gh(ul(t.b,e.b),25))&&(t.a[n.k]=e.b)):(!!(r=Gh(cl(t.b,e.b),25))&&r==t.a[e.b.k]&&!!r.f&&r.f!=e.b.f&&r.i.ib(e.b),!!(i=Gh(ul(t.b,e.b),25))&&t.a[i.k]==e.b&&!!i.f&&i.f!=e.b.f&&e.b.i.ib(i),cf(t.b,e.b))}(this,Gh(t,235))};Pp(rj,"ScanlineConstraintCalculator/ConstraintsScanlineHandler",464);FT(465,1,fP,E),zL.$b=function(t,e){return Sx((Gh(t,25).j.d+Gh(t,25).j.c)/2,(Gh(e,25).j.d+Gh(e,25).j.c)/2)};Pp(rj,"ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",465);FT(235,1,{235:1},ms),zL.a=!1;Pp(rj,"ScanlineConstraintCalculator/Timestamp",235);FT(466,1,fP,w),zL.$b=function(t,e){return function(t,e){var n,r,i;if(r=t.b.j.e,t.a||(r+=t.b.j.b),i=e.b.j.e,e.a||(i+=e.b.j.b),0==(n=Sx(r,i))){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}(t,e)};Pp(rj,"ScanlineConstraintCalculator/lambda$0$Type",466);FT(467,1,oj,k),zL.D=function(t){return!0};Pp(rj,"ScanlineConstraintCalculator/lambda$1$Type",467);FT(468,1,ZP,S),zL.B=function(t){return 0};Pp(rj,"ScanlineConstraintCalculator/lambda$2$Type",468);FT(48,1,{48:1},xs,ph),zL.t=function(t){var e;return null!=t&&(cH==bw(t)&&(e=Gh(t,48),xg(this.c,e.c)&&xg(this.d,e.d)))},zL.v=function(){return Vx(_x(Oo(fM,1),kP,1,4,[this.c,this.d]))},zL.w=function(){return"("+this.c+", "+this.d+(this.a?"cx":"")+this.b+")"},zL.a=!0,zL.c=0,zL.d=0;var oH,aH,sH,uH,cH=Pp(ij,"Point",48);FT(201,17,{201:1,3:1,23:1,17:1},Ss);var lH,fH,hH,dH,pH,gH=Qy(ij,"Point/Quadrant",201,EM,(function(){return Pm(),_x(Oo(gH,1),CP,201,0,[oH,uH,aH,sH])}));FT(569,1,{},Or),zL.b=null,zL.c=null,zL.d=null,zL.e=null,zL.f=null;var vH;Pp(ij,"RectilinearConvexHull",569);FT(243,1,{160:1},ik),zL.Ec=function(t){!function(t,e){t.a.$b(e.d,t.b)>0&&(Oh(t.c,new ph(e.c,e.d,t.d)),t.b=e.d)}(this,Gh(t,48))},zL.b=0;Pp(ij,"RectilinearConvexHull/MaximalElementsEventHandler",243);FT(571,1,fP,L),zL.$b=function(t,e){return Kp(t,e)};Pp(ij,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",571);FT(570,1,{160:1},Jb),zL.Ec=function(t){uA(this,Gh(t,48))},zL.a=0,zL.b=null,zL.c=null,zL.d=null,zL.e=null;Pp(ij,"RectilinearConvexHull/RectangleEventHandler",570);FT(572,1,fP,P),zL.$b=function(t,e){return Rb(),Gh(t,48).c==Gh(e,48).c?Sx(Gh(e,48).d,Gh(t,48).d):Sx(Gh(t,48).c,Gh(e,48).c)};Pp(ij,"RectilinearConvexHull/lambda$0$Type",572);FT(573,1,fP,I),zL.$b=function(t,e){return Rb(),Gh(t,48).c==Gh(e,48).c?Sx(Gh(t,48).d,Gh(e,48).d):Sx(Gh(t,48).c,Gh(e,48).c)};Pp(ij,"RectilinearConvexHull/lambda$1$Type",573);FT(574,1,fP,j),zL.$b=function(t,e){return Rb(),Gh(t,48).c==Gh(e,48).c?Sx(Gh(e,48).d,Gh(t,48).d):Sx(Gh(e,48).c,Gh(t,48).c)};Pp(ij,"RectilinearConvexHull/lambda$2$Type",574);FT(575,1,fP,M),zL.$b=function(t,e){return Rb(),Gh(t,48).c==Gh(e,48).c?Sx(Gh(t,48).d,Gh(e,48).d):Sx(Gh(e,48).c,Gh(t,48).c)};Pp(ij,"RectilinearConvexHull/lambda$3$Type",575);FT(576,1,fP,D),zL.$b=function(t,e){return JS(t,e)};Pp(ij,"RectilinearConvexHull/lambda$4$Type",576);FT(469,1,{},_b);Pp(ij,"Scanline",469);FT(662,1,{});var bH;Pp(aj,"AbstractGraphPlacer",662);FT(222,1,{222:1},Zf);Pp(aj,"ComponentGroup",222);FT(434,662,{},Lr),zL.Fc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d;if(this.a.c=Ey(fM,kP,1,0,4,1),e.b.c=Ey(fM,kP,1,0,4,1),t.V())return e.e.a=0,void(e.e.b=0);for(S_(e,i=Gh(t.sb(0),55)),r=t.mb();r.G();)D_(this,Gh(r.H(),55));for(h=new ao,d=2*Gh(yx(i,(DL(),sU)),15).a,s=new $n(this.a);s.a<s.c.c.length;)u=mL(o=Gh(Wv(s),222),d),dy(Bp(o.a),h.a,h.b),h.a+=u.a,h.b+=u.b;if(e.e.a=h.a-d,e.e.b=h.b-d,eo(no(Af(yx(i,(RL(),AU)))))&&Xu(yx(i,(HL(),rR)))===Xu((y_(),TD))){for(f=t.mb();f.G();)KA(c=Gh(f.H(),55),c.d.a,c.d.b);for(SL(n=new R,t,d),l=t.mb();l.G();)Lf(Au((c=Gh(l.H(),55)).d),n.e);Lf(Au(e.e),n.a)}for(a=new $n(this.a);a.a<a.c.c.length;)hy(e,Bp((o=Gh(Wv(a),222)).a))};Pp(aj,"ComponentGroupGraphPlacer",434);FT(322,1,{},R);Pp(aj,"ComponentsCompactor",322);FT(13,647,sj,je,sw,hh),zL.rb=function(t,e){Td(this,t,e)},zL.ib=function(t){return Oh(this,t)},zL.jb=function(t){return Jm(this,t)},zL.Q=function(){this.c=Ey(fM,kP,1,0,4,1)},zL.kb=function(t){return-1!=Ky(this,t,0)},zL.sb=function(t){return ld(this,t)},zL.V=function(){return 0==this.c.length},zL.mb=function(){return new $n(this)},zL.vb=function(t){return gy(this,t)},zL.nb=function(t){return Dy(this,t)},zL.Xb=function(t,e){Nv(this,t,e)},zL.wb=function(t,e){return $b(this,t,e)},zL.Y=function(){return this.c.length},zL.ob=function(){return zl(this)},zL.pb=function(t){return Dk(this,t)};Pp(jP,"ArrayList",13);FT(532,13,sj,Eb),zL.ib=function(t){return RE(this,Gh(t,48))};Pp(aj,"ComponentsCompactor/Hullpoints",532);FT(529,1,{347:1},yk),zL.a=!1;Pp(aj,"ComponentsCompactor/InternalComponent",529);FT(528,1,UP,Pr),zL.mb=function(){return new $n(this.a)};Pp(aj,"ComponentsCompactor/InternalConnectedComponents",528);FT(531,1,{251:1},tT),zL.zc=function(){return null},zL.Ac=function(){return this.a},zL.yc=function(){return qE(this.d)},zL.Bc=function(){return this.b};Pp(aj,"ComponentsCompactor/InternalExternalExtension",531);FT(530,1,{251:1},Qr),zL.Ac=function(){return this.a},zL.yc=function(){return qE(this.d)},zL.zc=function(){return this.c},zL.Bc=function(){return this.b};Pp(aj,"ComponentsCompactor/InternalUnionExternalExtension",530);FT(534,1,{},bA);Pp(aj,"ComponentsCompactor/OuterSegments",534);FT(533,1,{},Ir);Pp(aj,"ComponentsCompactor/Segments",533);FT(381,1,{},nf);Pp(aj,"ComponentsProcessor",381);FT(432,662,{},B),zL.Fc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_;if(1!=t.Y()){if(t.V())return e.b.c=Ey(fM,kP,1,0,4,1),e.e.a=0,void(e.e.b=0);for(s=t.mb();s.G();){for(g=0,d=new $n((o=Gh(s.H(),55)).b);d.a<d.c.c.length;)h=Gh(Wv(d),9),g+=Gh(yx(h,(DL(),nU)),24).a;o.k=g}for(yb(t,new G),i=Gh(t.sb(0),55),e.b.c=Ey(fM,kP,1,0,4,1),S_(e,i),f=0,m=0,u=t.mb();u.G();)f=Ro(f,(b=(o=Gh(u.H(),55)).e).a),m+=b.a*b.b;for(f=Ro(f,Math.sqrt(m)*Gh(yx(e,(DL(),gq)),15).a),x=0,_=0,l=0,n=w=uj*Gh(yx(e,sU),15).a,a=t.mb();a.G();)x+(b=(o=Gh(a.H(),55)).e).a>f&&(x=0,_+=l+w,l=0),KA(o,x+(p=o.d).a,_+p.b),p.a=0,p.b=0,n=Ro(n,x+b.a),l=Ro(l,b.b),x+=b.a+w;if(e.e.a=n,e.e.b=_+l,v=Gh(yx(e,sU),15).a,eo(no(Af(yx(i,(RL(),AU)))))){for(SL(r=new R,t,v),c=t.mb();c.G();)Lf(Au(Gh(c.H(),55).d),r.e);Lf(Au(e.e),r.a)}hy(e,t)}else(y=Gh(t.sb(0),55))!=e&&(e.b.c=Ey(fM,kP,1,0,4,1),uN(e,y,0,0),S_(e,y),wd(e.a,y.a),e.e.a=y.e.a,e.e.b=y.e.b)};Pp(aj,"SimpleRowGraphPlacer",432);FT(433,1,fP,G),zL.$b=function(t,e){return function(t,e){var n;return 0==(n=e.k-t.k)?Sx(t.e.a*t.e.b,e.e.a*e.e.b):n}(Gh(t,55),Gh(e,55))};var yH;Pp(aj,"SimpleRowGraphPlacer/1",433);FT(369,1,lj,_e),zL.sc=function(t,e){OL(t,e)};Pp(fj,"CompoundGraphPostprocessor",369);FT(370,1,oj,H),zL.D=function(t){var e;return!!(e=Gh(yx(Gh(t,114).b,(HL(),fR)),44))&&0!=e.b};Pp(fj,"CompoundGraphPostprocessor/1",370);FT(368,1,lj,Vu),zL.sc=function(t,e){ZE(this,t,e)};Pp(fj,"CompoundGraphPreprocessor",368);FT(187,1,{187:1},x_),zL.c=!1;Pp(fj,"CompoundGraphPreprocessor/ExternalPort",187);FT(114,1,{114:1},gh),zL.w=function(){return df(this.c)+":"+Pw(this.b)};Pp(fj,"CrossHierarchyEdge",114);FT(310,1,fP,an),zL.$b=function(t,e){return function(t,e,n){var r,i;return e.c==(tm(),EU)&&n.c==_U?-1:e.c==_U&&n.c==EU?1:(r=gE(e.a,t.a),i=gE(n.a,t.a),e.c==EU?i-r:r-i)}(this,Gh(t,114),Gh(e,114))};Pp(fj,"CrossHierarchyEdgeComparator",310);FT(147,131,{179:1,131:1,147:1,3:1}),zL.k=0;Pp(dj,"LGraphElement",147);FT(12,147,{179:1,131:1,12:1,147:1,3:1},Og),zL.w=function(){return Pw(this)};var wH=Pp(dj,"LEdge",12);FT(55,147,{179:1,131:1,55:1,147:1,3:1,22:1},Rw),zL.mb=function(){return new $n(this.c)},zL.w=function(){return 0==this.c.c.length?"G-unlayered"+XS(this.b):0==this.b.c.length?"G-layered"+XS(this.c):"G[layerless"+XS(this.b)+", layers"+XS(this.c)+"]"};var mH=Pp(dj,"LGraph",55);FT(273,1,{}),zL.pc=function(){return this.e.j};Pp(dj,"LGraphAdapters/AbstractLShapeAdapter",273);FT(240,1,{627:1},sn),zL.b=null;Pp(dj,"LGraphAdapters/LEdgeAdapter",240);FT(325,1,{},_s),zL.pc=function(){return this.a.e},zL.b=null,zL.c=!1;Pp(dj,"LGraphAdapters/LGraphAdapter",325);FT(224,273,{129:1,224:1},un);Pp(dj,"LGraphAdapters/LLabelAdapter",224);FT(555,273,{626:1},Es),zL.a=null,zL.b=null,zL.c=!1;Pp(dj,"LGraphAdapters/LNodeAdapter",555);FT(556,273,{161:1},ks),zL.a=null,zL.b=null,zL.c=null,zL.d=!1;Pp(dj,"LGraphAdapters/LPortAdapter",556);FT(557,1,fP,F),zL.$b=function(t,e){return function(t,e){var n,r,i,o;if(0!=(o=t.g.e-e.g.e))return o;if(n=Gh(yx(t,(HL(),NR)),24),r=Gh(yx(e,NR),24),n&&r&&0!=(i=n.a-r.a))return i;switch(t.g.e){case 1:return Sx(t.i.a,e.i.a);case 2:return Sx(t.i.b,e.i.b);case 3:return Sx(e.i.a,t.i.a);case 4:return Sx(e.i.b,t.i.b);default:throw new xo(pj)}}(Gh(t,7),Gh(e,7))};Pp(dj,"LGraphAdapters/PortComparator",557);FT(168,1,{168:1},Me,jg),zL.t=function(t){var e;return!!fl(t,168)&&(e=Gh(t,168),this.d==e.d&&this.a==e.a&&this.b==e.b&&this.c==e.c)},zL.v=function(){var t,e;return t=pv(no(this.b))<<16,t|=pv(no(this.a))&sP,e=pv(no(this.c))<<16,t^(e|=pv(no(this.d))&sP)},zL.w=function(){return"Insets[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},zL.a=0,zL.b=0,zL.c=0,zL.d=0;Pp(dj,"LInsets",168);FT(165,147,{179:1,131:1,147:1,165:1,3:1});Pp(dj,"LShape",165);FT(33,165,{179:1,131:1,147:1,33:1,165:1,3:1},xc),zL.w=function(){return null==this.a?"l_"+this.k:"l_"+this.a};Pp(dj,"LLabel",33);FT(9,165,{179:1,131:1,147:1,9:1,165:1,3:1},wk),zL.w=function(){return cv(this)};var xH,_H,EH,kH,SH,CH,TH=Pp(dj,"LNode",9);FT(132,17,{132:1,3:1,23:1,17:1},Cs);var AH,NH,OH,LH,PH,IH,jH=Qy(dj,"LNode/NodeType",132,EM,(function(){return AS(),_x(Oo(jH,1),CP,132,0,[SH,kH,_H,CH,EH,xH])}));FT(7,165,{179:1,131:1,147:1,7:1,165:1,3:1},bS),zL.w=function(){var t;return null==(t=iy(this))?"p_"+this.k:"p_"+t};var MH=Pp(dj,"LPort",7);FT(399,1,oj,z),zL.D=function(t){return Rf(t)};Pp(dj,"LPort/1",399);FT(400,1,oj,Y),zL.D=function(t){return Df(t)};Pp(dj,"LPort/2",400);FT(401,1,oj,V),zL.D=function(t){return Gh(t,7).g==(uL(),wB)};Pp(dj,"LPort/3",401);FT(402,1,oj,q),zL.D=function(t){return Gh(t,7).g==(uL(),yB)};Pp(dj,"LPort/4",402);FT(403,1,oj,U),zL.D=function(t){return Gh(t,7).g==(uL(),DB)};Pp(dj,"LPort/5",403);FT(404,1,oj,X),zL.D=function(t){return Gh(t,7).g==(uL(),BB)};Pp(dj,"LPort/6",404);FT(190,1,UP,cn),zL.mb=function(){return new ln(new $n(this.a.b))};Pp(dj,"LPort/7",190);FT(405,1,PP,ln),zL.H=function(){return Gh(Wv(this.a),12).c},zL.G=function(){return hl(this.a)},zL.I=function(){ap(this.a)};Pp(dj,"LPort/7/1",405);FT(169,1,UP,fn),zL.mb=function(){return new hn(new $n(this.a.e))};Pp(dj,"LPort/8",169);FT(304,1,PP,hn),zL.H=function(){return Gh(Wv(this.a),12).d},zL.G=function(){return hl(this.a)},zL.I=function(){ap(this.a)};Pp(dj,"LPort/8/1",304);FT(16,147,{179:1,131:1,147:1,16:1,3:1,22:1},bp),zL.mb=function(){return new $n(this.a)},zL.w=function(){return"L_"+Ky(this.b.c,this,0)+XS(this.a)};Pp(dj,"Layer",16);FT(437,1,lj,W),zL.sc=function(t,e){var n,r,i,o;for(jE(e,"Big nodes intermediate-processing",1),this.a=t,r=new $n(this.a.c);r.a<r.c.c.length;)for(o=fp((n=Fh(Rh(Gh(Wv(r),16).a),new $)).b.mb(),n.a);am(o);)Xu(yx(i=Gh(ky(o),9),(RL(),FU)))===Xu((Hk(),bU))||Xu(yx(i,FU))===Xu(yU)?($y(qA(this,i,!1),FU,Gh(yx(i,FU),85)),$y(i,FU,wU)):qA(this,i,!0);j_(e)};Pp(gj,"BigNodesIntermediateProcessor",437);FT(438,1,oj,$),zL.D=function(t){return function(t){return eo(no(Af(yx(t,(DL(),wq)))))&&null!=yx(t,Uq)}(Gh(t,9))};Pp(gj,"BigNodesIntermediateProcessor/1",438);FT(582,1,ZP,dn),zL.B=function(t){return function(t){var e,n,r;for(n=0,r=(e=t.a).length;n<r;++n)e[n].B(null);return null}((this,nc(t),this))};Pp(gj,"BigNodesLabelHandler/CompoundFunction",582);FT(332,1,{},lS),zL.a=0,zL.e=null,zL.f=0;Pp(gj,"BigNodesLabelHandler/Handler",332);FT(583,1,ZP,pn),zL.B=function(t){return function(t){var e,n,r,i;for(n=new $n(t.a.c);n.a<n.c.c.length;)for(i=_k(Rh((e=Gh(Wv(n),9)).c),0);i.b!=i.d.c;)null==yx(r=Gh(Cb(i),33),(DL(),Uq))&&Dy(e.c,r);return null}((this,nc(t),this))};Pp(gj,"BigNodesLabelHandler/Handler/1",583);FT(584,1,ZP,Ts),zL.B=function(t){return function(t){return t.b.i.a+=t.a.f*(t.a.a-1),null}((this,nc(t),this))};Pp(gj,"BigNodesLabelHandler/Handler/2",584);FT(585,1,ZP,As),zL.B=function(t){return function(t){var e,n,r,i,o,a;return wE(r=Gh(yx(t.a.g,(HL(),yR)),86),(uT(),new qh(e=Gh(na(rB),11),Gh(_p(e,e.length),11),0)))||(Um(r,uE(zR))?(n=Gh(Gh(GS(t.a.b,t.b),20).sb(0),33),t.b.i.a=n.i.a,t.b.i.b=n.i.b):Um(r,uE(VR))?(i=Gh(ld(t.a.c,t.a.c.c.length-1),9),o=Gh(Gh(GS(t.a.b,t.b),20).sb(Gh(GS(t.a.b,t.b),20).Y()-1),33),a=i.j.a-(o.i.a+o.j.a),t.b.i.a=t.a.g.j.a-a-t.b.j.a,t.b.i.b=o.i.b):Um(r,Wd(WR,_x(Oo(rB,1),CP,41,0,[FR])))?(n=Gh(Gh(GS(t.a.b,t.b),20).sb(0),33),t.b.i.a=(t.a.g.j.a-t.b.j.a)/2,t.b.i.b=n.i.b):Um(r,uE(WR))?(n=Gh(Gh(GS(t.a.b,t.b),20).sb(0),33),t.b.i.b=n.i.b):Um(r,uE(FR))&&(n=Gh(Gh(GS(t.a.b,t.b),20).sb(0),33),t.b.i.a=(t.a.g.j.a-t.b.j.a)/2,t.b.i.b=n.i.b)),null}((this,nc(t),this))};Pp(gj,"BigNodesLabelHandler/Handler/3",585);FT(439,1,lj,K),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p;for(jE(e,"Big nodes post-processing",1),this.a=t,a=new $n(this.a.c);a.a<a.c.c.length;)for(u=fp((n=Fh(Gh(Wv(a),16).a,new Z)).b.mb(),n.a);am(u);){for(s=Gh(ky(u),9),l=Gh(yx(s,(DL(),mq)),15),o=ST(this,s),p=new je,d=fC(o,(uL(),yB)).mb();d.G();)f=Gh(d.H(),7),p.c[p.c.length]=f,c=f.i.a-o.j.a,f.i.a=l.a+c;for(s.j.a=l.a,h=new $n(p);h.a<h.c.c.length;)tv(f=Gh(Wv(h),7),s);this.a.e.a<s.i.a+s.j.a&&(this.a.e.a=s.i.a+s.j.a),i=Gh(yx(s,bq),20),Jm(s.c,i),(r=Gh(yx(s,yq),64))&&r.B(null)}j_(e)};Pp(gj,"BigNodesPostProcessor",439);FT(440,1,oj,Z),zL.D=function(t){return function(t){return eo(no(Af(yx(t,(DL(),wq)))))&&null!=yx(t,Uq)}(Gh(t,9))};Pp(gj,"BigNodesPostProcessor/1",440);FT(441,1,lj,Ki),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d;for(jE(e,vj,1),this.c=t,i=0,u=new $n(f=this.c.b);u.a<u.c.c.length;)(a=Gh(Wv(u),9)).k=i++;for(this.d=Gh(yx(this.c,(DL(),sU)),15).a,this.a=Gh(yx(this.c,(HL(),eR)),59),this.b=f.c.length,o=bj,c=new $n(f);c.a<c.c.c.length;)(a=Gh(Wv(c),9)).g==(AS(),SH)&&a.j.a<o&&(o=a.j.a);for(o=50>o?50:o,n=new je,d=o+this.d,l=new $n(f);l.a<l.c.c.length;)if((a=Gh(Wv(l),9)).g==(AS(),SH)&&a.j.a>d){for(h=1,r=a.j.a;r>o;)++h,r=(a.j.a-(h-1)*this.d)/h;Oh(n,new Db(this,a,h,r))}for(s=new $n(n);s.a<s.c.c.length;)_N((a=Gh(Wv(s),267)).d)&&nL(a);j_(e)},zL.b=0,zL.d=0;Pp(gj,"BigNodesPreProcessor",441);FT(267,1,{267:1},Db),zL.a=0,zL.c=0;Pp(gj,"BigNodesPreProcessor/BigNode",267);FT(442,1,lj,Zi),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p;for(jE(e,vj,1),DH=eo(no(Af(yx(t,(HL(),tR))))),this.c=t,h=new je,o=new $n(t.c);o.a<o.c.c.length;)Jm(h,Gh(Wv(o),16).a);for(i=0,c=new $n(h);c.a<c.c.c.length;)(s=Gh(Wv(c),9)).k=i++;for(this.d=Gh(yx(this.c,(DL(),sU)),15).a,this.a=Gh(yx(this.c,eR),59),this.b=h.c.length,a=bj,l=new $n(h);l.a<l.c.c.length;)(s=Gh(Wv(l),9)).g==(AS(),SH)&&s.j.a<a&&(a=s.j.a);for(a=50>a?50:a,n=new je,p=a+this.d,f=new $n(h);f.a<f.c.c.length;)if((s=Gh(Wv(f),9)).g==(AS(),SH)&&s.j.a>p){for(d=1,r=s.j.a;r>a;)++d,r=(s.j.a-(d-1)*this.d)/d;Oh(n,new Wg(this,s,d))}for(u=new $n(n);u.a<u.c.c.length;)_L(s=Gh(Wv(u),268))&&sO(s);j_(e)},zL.b=0,zL.d=0;var DH=!1;Pp(gj,"BigNodesSplitter",442);FT(268,1,{268:1},Wg),zL.a=0,zL.e=4;Pp(gj,"BigNodesSplitter/BigNode",268);FT(443,1,lj,Q),zL.sc=function(t,e){var n,r,i,o,a,s,u,c;for(jE(e,"Comment post-processing",1),u=Gh(yx(t,(DL(),sU)),15).a,o=new $n(t.c);o.a<o.c.c.length;){for(i=Gh(Wv(o),16),r=new je,s=new $n(i.a);s.a<s.c.c.length;)a=Gh(Wv(s),9),c=Gh(yx(a,pU),20),n=Gh(yx(a,_q),20),(c||n)&&(WO(a,c,n,u),c&&Jm(r,c),n&&Jm(r,n));Jm(i.a,r)}j_(e)};Pp(gj,"CommentPostprocessor",443);FT(444,1,lj,J),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g;for(jE(e,"Comment pre-processing",1),s=new $n(t.b);s.a<s.c.c.length;)if(eo(no(Af(yx(a=Gh(Wv(s),9),(HL(),JD)))))){for(r=0,n=null,u=null,d=new $n(a.f);d.a<d.c.c.length;)r+=(f=Gh(Wv(d),7)).b.c.length+f.e.c.length,1==f.b.c.length&&(u=(n=Gh(ld(f.b,0),12)).c),1==f.e.c.length&&(u=(n=Gh(ld(f.e,0),12)).d);if(1!=r||u.b.c.length+u.e.c.length!=1||eo(no(Af(yx(u.f,JD))))){for(g=new je,h=new $n(a.f);h.a<h.c.c.length;){for(l=new $n((f=Gh(Wv(h),7)).e);l.a<l.c.c.length;)0==(c=Gh(Wv(l),12)).d.e.c.length||(g.c[g.c.length]=c);for(o=new $n(f.b);o.a<o.c.c.length;)0==(i=Gh(Wv(o),12)).c.b.c.length||(g.c[g.c.length]=i)}for(p=new $n(g);p.a<p.c.c.length;)HN(Gh(Wv(p),12),!0)}else yL(a,n,u,u.f),ap(s)}j_(e)};Pp(gj,"CommentPreprocessor",444);FT(445,1,lj,tt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f;for(jE(e,"Edge and layer constraint edge reversal",1),c=new $n(t.b);c.a<c.c.c.length;){switch(u=Gh(Wv(c),9),o=null,(a=Gh(yx(u,(RL(),FU)),85)).e){case 1:case 2:Ox(),o=EV;break;case 3:case 4:Ox(),o=xV}if(o)$y(u,(DL(),Nq),(Ox(),EV)),o==xV?bO(u,a,(tm(),EU)):o==EV&&bO(u,a,(tm(),_U));else if(zs(Gh(yx(u,(HL(),AR)),28))&&0!=u.f.c.length){for(n=!0,f=new $n(u.f);f.a<f.c.c.length;){if(!((l=Gh(Wv(f),7)).g==(uL(),yB)&&l.b.c.length-l.e.c.length>0||l.g==BB&&l.b.c.length-l.e.c.length<0)){n=!1;break}if(l.g==BB)for(i=new $n(l.e);i.a<i.c.c.length;)if(r=Gh(Wv(i),12),(s=Gh(yx(r.d.f,FU),85))==(Hk(),bU)||s==yU){n=!1;break}if(l.g==yB)for(i=new $n(l.b);i.a<i.c.c.length;)if(r=Gh(Wv(i),12),(s=Gh(yx(r.c.f,FU),85))==(Hk(),gU)||s==vU){n=!1;break}}n&&bO(u,a,(tm(),kU))}}j_(e)};Pp(gj,"EdgeAndLayerConstraintEdgeReverser",445);FT(446,1,lj,et),zL.sc=function(t,e){var n,r,i,o,a,s,u,c;for(jE(e,"End label placement",1),a=Gh(yx(t,(HL(),hR)),15).a,this.a=(ml(),new _r),this.c=new _r,this.b=new _r,s=new $n(t.c);s.a<s.c.c.length;)for(u=new $n(Gh(Wv(s),16).a);u.a<u.c.c.length;)for(r=Sp(H_(Gh(Wv(u),9)));X_(r);)for(o=new $n((n=Gh(xv(r),12)).b);o.a<o.c.c.length;)(Xu(yx(i=Gh(Wv(o),33),nR))===Xu((Im(),ED))||Xu(yx(i,nR))===Xu(_D))&&(c=null,Xu(yx(i,nR))===Xu(ED)?c=n.c:Xu(yx(i,nR))===Xu(_D)&&(c=n.d),Vy(this.a,c.f)||dg(this.a,c.f,0),Vy(this.c,c.f)||dg(this.c,c.f,0),Vy(this.b,c)||dg(this.b,c,0),Xu(yx(i,(DL(),Fq)))===Xu((SE(),AG))?fO(i,c,a):lO(i,c,a));j_(e)};Pp(gj,"EndLabelProcessor",446);FT(269,1,lj,gn),zL.sc=function(t,e){var n,r,i,o;for(jE(e,"Graph transformation ("+this.a+")",1),r=qb(t.b),n=new $n(t.c);n.a<n.c.c.length;)Jm(r,Gh(Wv(n),16).a);switch(this.a.e){case 0:gL(r,t);break;case 1:UO(r),(o=Gh(yx(t,(RL(),jU)),115))&&$y(t,jU,nE(o)),Il(t.d),Il(t.e);break;case 2:gL(r,t),function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m;if(y=0,0==e.e.b)for(v=new $n(t);v.a<v.c.c.length;)y=Ro(y,(p=Gh(Wv(v),9)).i.b+p.j.b+p.e.a);else y=e.e.b-e.d.b;for(y-=e.d.b,g=new $n(t);g.a<g.c.c.length;){switch(Tr((p=Gh(Wv(g),9)).i,y-p.j.b),uk(p),Gh(yx(p,(HL(),WD)),103).e){case 3:$y(p,WD,(ok(),uD));break;case 4:$y(p,WD,(ok(),hD))}for(b=p.j,m=new $n(p.f);m.a<m.c.c.length;){for(Tr((w=Gh(Wv(m),7)).i,b.b-w.j.b),Tr(w.a,w.j.b),Hf(w,um(w.g)),(a=Gh(yx(w,NR),24))&&$y(w,NR,F_(-a.a)),o=new $n(w.e);o.a<o.c.c.length;){for(r=_k((i=Gh(Wv(o),12)).a,0);r.b!=r.d.c;)(n=Gh(Cb(r),10)).b=y-n.b;if(c=Gh(yx(i,fR),44))for(u=_k(c,0);u.b!=u.d.c;)(s=Gh(Cb(u),10)).b=y-s.b;for(h=new $n(i.b);h.a<h.c.c.length;)Tr((l=Gh(Wv(h),33)).i,y-l.j.b)}for(d=new $n(w.c);d.a<d.c.c.length;)Tr((l=Gh(Wv(d),33)).i,-l.j.b)}for(p.g==(AS(),_H)&&($y(p,(DL(),Iq),um(Gh(yx(p,Iq),32))),O_(p)),f=new $n(p.c);f.a<f.c.c.length;)Tr((l=Gh(Wv(f),33)).i,b.b-l.j.b)}}(r,t),UO(r),(i=Gh(yx(t,(RL(),jU)),115))&&$y(t,jU,nE(i)),Il(t.d),Il(t.e)}j_(e)};var RH,BH,GH;Pp(gj,"GraphTransformer",269);FT(221,17,{221:1,3:1,23:1,17:1},Ns);var HH=Qy(gj,"GraphTransformer/Mode",221,EM,(function(){return Nx(),_x(Oo(HH,1),CP,221,0,[BH,GH,RH])}));FT(448,1,lj,nt),zL.sc=function(t,e){jE(e,"Hierarchical port constraint processing",1),function(t){var e;Yl(Gh(yx(t,(HL(),AR)),28))&&(GT((my(0,(e=t.c).c.length),Gh(e.c[0],16))),GT(Gh(ld(e,e.c.length-1),16)))}(t),function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T;if((_=Gh(yx(t,(HL(),AR)),28))!=(cS(),cB)&&_!=lB){for(l=new sw((kw((d=(p=t.c).c.length)+2,QP),iw(p_(p_(5,d+2),(d+2)/10|0)))),g=new sw((kw(d+2,QP),iw(p_(p_(5,d+2),(d+2)/10|0)))),Oh(l,new _r),Oh(l,new _r),Oh(g,new je),Oh(g,new je),x=new Qi,e=0;e<d;e++)for(my(e,p.c.length),n=Gh(p.c[e],16),my(e,l.c.length),E=Gh(l.c[e],57),ml(),v=new _r,l.c[l.c.length]=v,my(e,g.c.length),S=Gh(g.c[e],20),y=new je,g.c[g.c.length]=y,i=new $n(n.a);i.a<i.c.c.length;){for(u=Sp(G_(r=Gh(Wv(i),9)));X_(u);)s_(C=(a=Gh(xv(u),12)).c.f)&&(x.a.db(C,x),(k=Gh(E.cb(yx(C,(DL(),Uq))),9))||(k=yC(t,C),E.db(yx(C,Uq),k),S.ib(k)),rv(a,Gh(ld(k.f,1),7)));for(s=Sp(H_(r));X_(s);)s_(T=(a=Gh(xv(s),12)).d.f)&&(x.a.db(T,x),(b=Gh(Up(v,yx(T,(DL(),Uq))),9))||(b=yC(t,T),dg(v,yx(T,Uq),b),y.c[y.c.length]=b),nv(a,Gh(ld(b.f,0),7)))}for(f=0;f<g.c.length;f++)if(my(f,g.c.length),!(w=Gh(g.c[f],20)).V())for(0==f?(h=new bp(t),wy(0,p.c.length),Su(p.c,0,h)):f==l.c.length-1?(h=new bp(t),p.c[p.c.length]=h):(my(f-1,p.c.length),h=Gh(p.c[f-1],16)),o=w.mb();o.G();)ev(Gh(o.H(),9),h);for(m=new Yn(new zn(x.a).a.bb().mb());m.a.G();)c=Gh(m.a.H(),21),ev(Gh(c.yb(),9),null)}}(t),j_(e)};Pp(gj,"HierarchicalPortConstraintProcessor",448);FT(449,1,fP,rt),zL.$b=function(t,e){return function(t,e){var n,r,i,o;return i=t.g,n=no(Nf(yx(t,(DL(),tU)))),o=e.g,r=no(Nf(yx(e,tU))),o!=(AS(),_H)?-1:i!=_H?1:n==r?0:n<r?-1:1}(Gh(t,9),Gh(e,9))};Pp(gj,"HierarchicalPortConstraintProcessor/NodeComparator",449);FT(450,1,lj,it),zL.sc=function(t,e){var n,r,i,o,a,s,u,c;for(jE(e,"Hierarchical port dummy size processing",1),s=new je,c=new je,n=2*(Gh(yx(t,(DL(),sU)),15).a*Gh(yx(t,(RL(),DU)),15).a),i=new $n(t.c);i.a<i.c.c.length;){for(r=Gh(Wv(i),16),s.c=Ey(fM,kP,1,0,4,1),c.c=Ey(fM,kP,1,0,4,1),a=new $n(r.a);a.a<a.c.c.length;)(o=Gh(Wv(a),9)).g==(AS(),_H)&&((u=Gh(yx(o,Iq),32))==(uL(),wB)?s.c[s.c.length]=o:u==DB&&(c.c[c.c.length]=o));nT(s,!0,n),nT(c,!1,n)}j_(e)};Pp(gj,"HierarchicalPortDummySizeProcessor",450);FT(451,1,lj,ot),zL.sc=function(t,e){var n,r,i,o;jE(e,"Orthogonally routing hierarchical port edges",1),this.a=0,function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b;for(r=Gh(yx(t,(HL(),AR)),28),u=t.e,s=t.a,n=Gh(yx(t,(DL(),xq)),15).a,c=u.a+s.b+s.c+2*n,l=0-s.d-n-t.d.b,h=u.b+s.d+s.a+2*n-t.d.b,f=new je,d=new je,o=new Yn(new zn(e.a).a.bb().mb());o.a.G();){switch(a=Gh(o.a.H(),21),i=Gh(a.yb(),9),r.e){case 1:case 2:case 3:jT(i);break;case 4:g=(p=Gh(yx(i,TR),10))?p.a:0,i.i.a=c*no(Nf(yx(i,tU)))-g,GE(i,!0,!1);break;case 5:b=(v=Gh(yx(i,TR),10))?v.a:0,i.i.a=no(Nf(yx(i,tU)))-b,GE(i,!0,!1),u.a=Ro(u.a,i.i.a+i.j.a/2)}switch(Gh(yx(i,Iq),32).e){case 1:i.i.b=l,f.c[f.c.length]=i;break;case 3:i.i.b=h,d.c[d.c.length]=i}}switch(r.e){case 1:case 2:o_(f,t),o_(d,t);break;case 3:a_(f,t),a_(d,t)}}(t,n=function(t){var e,n,r,i,o,a,s,u,c,l,f,h;for(c=new Oc,r=null,o=new $n(t.c);o.a<o.c.c.length;){for(s=new $n((i=Gh(Wv(o),16)).a);s.a<s.c.c.length;)(a=Gh(Wv(s),9)).g==(AS(),_H)&&(u=Gh(yx(a,(DL(),Pq)),9))&&(Ok(u,c),tv(l=new bS,a),Hf(l,Gh(yx(a,Iq),32)),f=Gh(ld(u.f,0),7),rv(h=new Og,l),nv(h,f));r=i}for(e=new Yn(new zn(c.a).a.bb().mb());e.a.G();)n=Gh(e.a.H(),21),ev(Gh(n.yb(),9),r);return c}(t)),function(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p;for(c=new Oc,l=new Oc,d=new Oc,p=new Oc,i=(u=Gh(yx(e,(DL(),sU)),15).a)*Gh(yx(e,(RL(),DU)),15).a,eo(no(Af(yx(e,(HL(),tR))))),s=new Yn(new zn(n.a).a.bb().mb());s.a.G();)if(o=Gh(s.a.H(),21),a=Gh(o.yb(),9),(f=Gh(yx(a,Iq),32))==(uL(),wB))for(l.a.db(a,l),r=Sp(G_(a));X_(r);)mp(c,Gh(xv(r),12).c.f);else if(f==DB)for(p.a.db(a,p),r=Sp(G_(a));X_(r);)mp(d,Gh(xv(r),12).c.f);0!=c.a.Y()&&(h=tO(new hC(2,i),e,c,l,-u-e.d.b))>0&&(t.a=u+(h-1)*i,e.d.b+=t.a,e.e.b+=t.a),0!=d.a.Y()&&(h=tO(new hC(1,i),e,d,p,e.e.b+u-e.d.b))>0&&(e.e.b+=u+(h-1)*i)}(this,t,n),function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E;for(y=new je,l=new $n(t.c);l.a<l.c.c.length;)for(d=new $n(Gh(Wv(l),16).a);d.a<d.c.c.length;)if((f=Gh(Wv(d),9)).g==(AS(),_H)&&null!=yx(f,(DL(),Pq))){for(p=null,v=null,g=null,x=new $n(f.f);x.a<x.c.c.length;)switch((m=Gh(Wv(x),7)).g.e){case 4:p=m;break;case 2:v=m;break;default:g=m}for(u=new Tf((b=Gh(ld(g.e,0),12)).a),Lf(s=new Uu(g.i),f.i),wp(_k(u,0),s),w=wx(b.a),Lf(c=new Uu(g.i),f.i),Ob(w,c,w.c.b,w.c),_=Gh(yx(f,Pq),9),E=Gh(ld(_.f,0),7),r=0,o=(a=Gh(Dk(p.b,Ey(wH,hj,12,0,0,1)),47)).length;r<o;++r)nv(e=a[r],E),Rx(e.a,e.a.b,u);for(n=0,i=(a=Gh(Dk(v.e,Ey(wH,hj,12,v.e.c.length,0,1)),47)).length;n<i;++n)rv(e=a[n],E),Rx(e.a,0,w);rv(b,null),nv(b,null),y.c[y.c.length]=f}for(h=new $n(y);h.a<h.c.c.length;)ev(f=Gh(Wv(h),9),null)}(t),r=Gh(yx(t,(HL(),AR)),28),eL((my(0,(i=t.c).c.length),Gh(i.c[0],16)),r,t),eL(Gh(ld(i,i.c.length-1),16),r,t),YN((my(0,(o=t.c).c.length),Gh(o.c[0],16))),YN(Gh(ld(o,o.c.length-1),16)),j_(e)},zL.a=0;Pp(gj,"HierarchicalPortOrthogonalEdgeRouter",451);FT(452,1,fP,at),zL.$b=function(t,e){return function(t,e){return Sx(t.i.a,e.i.a)}(Gh(t,9),Gh(e,9))};Pp(gj,"HierarchicalPortOrthogonalEdgeRouter/1",452);FT(453,1,fP,st),zL.$b=function(t,e){return function(t,e){return Sx(no(Nf(yx(t,(DL(),tU)))),no(Nf(yx(e,tU))))}(Gh(t,9),Gh(e,9))};Pp(gj,"HierarchicalPortOrthogonalEdgeRouter/2",453);FT(454,1,lj,ut),zL.sc=function(t,e){var n;jE(e,"Hierarchical port position processing",1),(n=t.c).c.length>0&&TN((my(0,n.c.length),Gh(n.c[0],16)),t),n.c.length>1&&TN(Gh(ld(n,n.c.length-1),16),t),j_(e)};Pp(gj,"HierarchicalPortPositionProcessor",454);FT(471,1,lj,ct),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h;for(jE(e,"Hyperedge merging",1),l=new Uv(t.c,0);l.b<l.d.Y();)if(Nc(l.b<l.d.Y()),0!=(h=Gh(l.d.sb(l.c=l.b++),16).a).c.length)for(a=null,c=null,f=0;f<h.c.length;f++)my(f,h.c.length),(o=(n=Gh(h.c[f],9)).g)==(AS(),kH)&&c==kH&&(r=Gh(yx(n,(DL(),zq)),7),s=Gh(yx(a,zq),7),i=Gh(yx(n,Yq),7),u=Gh(yx(a,Yq),7),(!!r||!!i)&&(!!s||!!u)&&(r==s||i==u)&&(_A(n,a,r==s,i==u),my(f,h.c.length),ya(h.c,f,1),--f,n=a,o=c)),a=n,c=o;j_(e)};Pp(gj,"HyperedgeDummyMerger",471);FT(472,1,lj,lt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c;for(jE(e,"Hypernodes processing",1),r=new $n(t.c);r.a<r.c.c.length;)for(a=new $n(Gh(Wv(r),16).a);a.a<a.c.c.length;)if(eo(no(Af(yx(o=Gh(Wv(a),9),(HL(),cR)))))&&o.f.c.length<=2){for(c=0,u=0,n=0,i=0,s=new $n(o.f);s.a<s.c.c.length;)switch(Gh(Wv(s),7).g.e){case 1:++c;break;case 2:++u;break;case 3:++n;break;case 4:++i}0==c&&0==n&&EL(t,o,i<=u)}j_(e)};Pp(gj,"HypernodesProcessor",472);FT(473,1,lj,ft),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l;for(jE(e,"Layer constraint edge reversal",1),a=new $n(t.c);a.a<a.c.c.length;){for(o=Gh(Wv(a),16),l=-1,n=new je,c=Gh(Dk(o.a,Ey(TH,qI,9,o.a.c.length,0,1)),51),i=0;i<c.length;i++)r=Gh(yx(c[i],(DL(),Bq)),140),-1==l?r!=(Mw(),cq)&&(l=i):r==(Mw(),cq)&&(ev(c[i],null),Jk(c[i],l++,o)),r==(Mw(),sq)&&Oh(n,c[i]);for(u=new $n(n);u.a<u.c.c.length;)ev(s=Gh(Wv(u),9),null),ev(s,o)}j_(e)};Pp(gj,"InLayerConstraintProcessor",473);FT(474,1,lj,ht),zL.sc=function(t,e){var n,r,i,o,a,s;if(Gh(yx(t,(DL(),Mq)),18).kb((YA(),YV))){for(s=new $n(t.b);s.a<s.c.c.length;)(o=Gh(Wv(s),9)).g==(AS(),SH)&&(i=Gh(yx(o,(HL(),gR)),65),this.c=Ho(this.c,o.i.a-i.b),this.a=Ro(this.a,o.i.a+o.j.a+i.c),this.d=Ho(this.d,o.i.b-i.d),this.b=Ro(this.b,o.i.b+o.j.b+i.a));for(a=new $n(t.b);a.a<a.c.c.length;)if((o=Gh(Wv(a),9)).g!=(AS(),SH))switch(o.g.e){case 2:if((r=Gh(yx(o,(RL(),FU)),85))==(Hk(),vU)){o.i.a=this.c-10,HE(o,new dt).A(new vn(o));break}if(r==yU){o.i.a=this.a+10,HE(o,new pt).A(new bn(o));break}if((n=Gh(yx(o,Bq),140))==(Mw(),cq)){vO(o).A(new yn(o)),o.i.b=this.d-10;break}if(n==sq){vO(o).A(new wn(o)),o.i.b=this.b+10;break}break;default:throw new io("The node type "+o.g+" is not supported by the "+FH)}}},zL.a=JI,zL.b=JI,zL.c=QI,zL.d=QI;var FH=Pp(gj,"InteractiveExternalPortPositioner",474);FT(475,1,ZP,dt),zL.B=function(t){return Gh(t,12).d.f};Pp(gj,"InteractiveExternalPortPositioner/lambda$0$Type",475);FT(476,1,ZP,vn),zL.B=function(t){return function(t,e){return t.i.b=(Md(e),e)}(this.a,t)};Pp(gj,"InteractiveExternalPortPositioner/lambda$1$Type",476);FT(477,1,ZP,pt),zL.B=function(t){return Gh(t,12).c.f};Pp(gj,"InteractiveExternalPortPositioner/lambda$2$Type",477);FT(478,1,ZP,bn),zL.B=function(t){return function(t,e){return t.i.b=(Md(e),e)}(this.a,t)};Pp(gj,"InteractiveExternalPortPositioner/lambda$3$Type",478);FT(479,1,ZP,yn),zL.B=function(t){return function(t,e){return t.i.a=(Md(e),e+10)}(this.a,t)};Pp(gj,"InteractiveExternalPortPositioner/lambda$4$Type",479);FT(480,1,ZP,wn),zL.B=function(t){return function(t,e){return t.i.a=(Md(e),e+10)}(this.a,t)};var zH,YH,VH,qH,UH,XH,WH,$H,KH,ZH,QH,JH,tF,eF,nF,rF,iF,oF,aF,sF,uF,cF,lF,fF,hF,dF,pF,gF,vF,bF,yF,wF,mF,xF,_F,EF,kF,SF,CF,TF,AF,NF,OF,LF,PF,IF,jF,MF,DF,RF;Pp(gj,"InteractiveExternalPortPositioner/lambda$5$Type",480);FT(37,17,{37:1,3:1,23:1,17:1},Os);var BF=Qy(gj,"IntermediateProcessorStrategy",37,EM,(function(){return ML(),_x(Oo(BF,1),CP,37,0,[yF,$H,RF,XH,KH,jF,aF,CF,VH,lF,SF,_F,gF,JH,zH,mF,NF,hF,dF,sF,PF,AF,kF,QH,TF,IF,LF,uF,iF,pF,qH,cF,MF,xF,tF,nF,vF,YH,UH,oF,eF,wF,EF,fF,rF,OF,bF,WH,DF,ZH])}));FT(503,1,lj,gt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v;for(jE(e,"Inverted port preprocessing",1),s=new Uv(t.c,0),n=null,v=new je;s.b<s.d.Y();){for(g=n,Nc(s.b<s.d.Y()),n=Gh(s.d.sb(s.c=s.b++),16),l=new $n(v);l.a<l.c.c.length;)ev(u=Gh(Wv(l),9),g);for(v.c=Ey(fM,kP,1,0,4,1),f=new $n(n.a);f.a<f.c.c.length;)if((u=Gh(Wv(f),9)).g==(AS(),SH)&&zs(Gh(yx(u,(HL(),AR)),28))){for(p=VA(u,(tm(),_U),(uL(),yB)).mb();p.G();)for(h=Gh(p.H(),7),r=0,i=(o=Gh(Dk(a=h.b,Ey(wH,hj,12,a.c.length,0,1)),47)).length;r<i;++r)BN(t,h,o[r],v);for(d=VA(u,EU,BB).mb();d.G();)for(h=Gh(d.H(),7),r=0,i=(o=Gh(Dk(a=h.e,Ey(wH,hj,12,a.c.length,0,1)),47)).length;r<i;++r)dA(t,h,o[r],v)}}for(c=new $n(v);c.a<c.c.c.length;)ev(u=Gh(Wv(c),9),n);j_(e)};Pp(gj,"InvertedPortProcessor",503);FT(481,1,lj,vt),zL.sc=function(t,e){jE(e,"Node and Port Label Placement and Node Sizing",1),kr((Nr(),Nr(),new _s(t,!1))),j_(e)};var GF;Pp(gj,"LabelAndNodeSizeProcessor",481);FT(482,1,lj,Ee),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v;for(jE(e,"Label dummy insertions",1),f=new je,c=Gh(yx(t,(HL(),hR)),15).a,l=Gh(yx(t,eR),59),h=new $n(t.b);h.a<h.c.c.length;)for(d=new $n(Gh(Wv(h),9).f);d.a<d.c.c.length;)for(a=new $n(Gh(Wv(d),7).e);a.a<a.c.c.length;)if((o=Gh(Wv(a),12)).c.f!=o.d.f&&Ed(o.b,GF)){for(g=Al(o.b.c.length),lr(n=new wk(t),(AS(),EH)),$y(n,(DL(),Uq),o),$y(n,oU,g),$y(n,AR,(cS(),aB)),$y(n,zq,o.c),$y(n,Yq,o.d),f.c[f.c.length]=n,gA(o,n),(v=Gh(yx(o,HR),15).a)<0&&$y(o,HR,new Gn(v=0)),p=Math.floor(v/2),r=new $n(n.f);r.a<r.c.c.length;)Gh(Wv(r),7).i.b=p;for(i=n.j,s=new Uv(o.b,0);s.b<s.d.Y();)Nc(s.b<s.d.Y()),Xu(yx(u=Gh(s.d.sb(s.c=s.b++),33),nR))===Xu((Im(),xD))&&(l==(b_(),yD)||l==pD?(i.a+=u.j.a+c,i.b=Ro(i.b,u.j.b)):(i.a=Ro(i.a,u.j.a),i.b+=u.j.b+c),g.c[g.c.length]=u,ng(s));l==(b_(),yD)||l==pD?(i.a-=c,i.b+=c+v):i.b+=c+v}Jm(t.b,f),j_(e)};Pp(gj,"LabelDummyInserter",482);FT(483,1,oj,bt),zL.D=function(t){return Xu(yx(Gh(t,33),(HL(),nR)))===Xu((Im(),xD))};Pp(gj,"LabelDummyInserter/1",483);FT(484,1,lj,yt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f;for(jE(e,"Label dummy removal",1),i=Gh(yx(t,(HL(),hR)),15).a,a=Gh(yx(t,eR),59),o=new $n(t.c);o.a<o.c.c.length;)for(u=new Uv(Gh(Wv(o),16).a,0);u.b<u.d.Y();)Nc(u.b<u.d.Y()),(s=Gh(u.d.sb(u.c=u.b++),9)).g==(AS(),EH)&&(c=Gh(yx(s,(DL(),Uq)),12),f=Gh(yx(c,HR),15).a,n=new Uu(s.i),Xu(yx(s,Fq))===Xu((SE(),NG))&&(n.b+=f+i),r=new Za(s.j.a,s.j.b-f-i),l=Gh(yx(s,oU),20),a==(b_(),yD)||a==pD?__(l,n,i,r,Xu(yx(s,Fq))!==Xu(AG)):i_(l,n,i,r),Jm(c.b,l),CO(s,!1),ng(u));j_(e)};Pp(gj,"LabelDummyRemover",484);FT(485,1,lj,wt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b;for(jE(e,"Label dummy switching",1),n=new je,l=new je,a=new je,h=new je,o=new $n(t.c);o.a<o.c.c.length;)for(c=new $n(Gh(Wv(o),16).a);c.a<c.c.c.length;)if((u=Gh(Wv(c),9)).g==(AS(),EH)){n.c[n.c.length]=u,a.c=Ey(fM,kP,1,0,4,1),h.c=Ey(fM,kP,1,0,4,1),p=u;do{(p=Gh(xv(Sp(G_(p))),12).c.f).g==kH&&(a.c[a.c.length]=p)}while(p.g==kH);b=u;do{(b=Gh(xv(Sp(H_(b))),12).d.f).g==kH&&(h.c[h.c.length]=b)}while(b.g==kH);(s=a.c.length)>(d=h.c.length)+1?Oh(l,new Qa(u,(my(f=(s+d)/2|0,a.c.length),Gh(a.c[f],9)))):d>s+1&&Oh(l,new Qa(u,(my(f=((d-s)/2|0)-1,h.c.length),Gh(h.c[f],9))))}for(v=new $n(l);v.a<v.c.c.length;)g=Gh(Wv(v),27),gO(Gh(g.a,9),Gh(g.b,9));for(i=new $n(n);i.a<i.c.c.length;)Kx(r=Gh(Wv(i),9),new mt,(DL(),Yq)),Kx(r,new xt,zq);j_(e)};Pp(gj,"LabelDummySwitcher",485);FT(486,1,ZP,mt),zL.B=function(t){return Gh(xv(Sp(G_(Gh(t,9)))),12).c.f};Pp(gj,"LabelDummySwitcher/lambda$0$Type",486);FT(487,1,ZP,xt),zL.B=function(t){return Gh(xv(Sp(H_(Gh(t,9)))),12).d.f};Pp(gj,"LabelDummySwitcher/lambda$1$Type",487);FT(488,1,lj,_t),zL.sc=function(t,e){jE(e,"Label management",1),nc(yx(t,(jy(),aD))),j_(e)};var HF;Pp(gj,"LabelManagementProcessor",488);FT(489,1,lj,ke),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,d,p;switch(jE(e,"Label side selection ("+(s=Gh(yx(t,(RL(),jU)),115))+")",1),Od(t),u=new Ec(t),s.e){case 0:!function(t){var e,n,r;for(qc(),r=new Pc(Mc(zh(t.a,new h)));X_(r);)for((n=Gh(xv(r),9)).g==(AS(),EH)&&$y(n,(DL(),Fq),(SE(),AG)),e=Sp(H_(n));X_(e);)qT(Gh(xv(e),12),(SE(),AG))}(u);break;case 1:!function(t){var e,n,r;for(qc(),r=new Pc(Mc(zh(t.a,new h)));X_(r);)for((n=Gh(xv(r),9)).g==(AS(),EH)&&$y(n,(DL(),Fq),(SE(),NG)),e=Sp(H_(n));X_(e);)qT(Gh(xv(e),12),(SE(),NG))}(u);break;case 2:!function(t){var e,n,r,i,o;for(qc(),i=new Pc(Mc(zh(t.a,new h)));X_(i);)for((r=Gh(xv(i),9)).g==(AS(),EH)&&(o=QE(r)?(SE(),AG):(SE(),NG),$y(r,(DL(),Fq),o)),n=Sp(H_(r));X_(n);)qT(e=Gh(xv(n),12),o=eo(no(Af(yx(e,(DL(),aU)))))?(SE(),NG):(SE(),AG))}(u);break;case 3:!function(t){var e,n,r,i,o;for(qc(),i=new Pc(Mc(zh(t.a,new h)));X_(i);)for((r=Gh(xv(i),9)).g==(AS(),EH)&&(o=QE(r)?(SE(),NG):(SE(),AG),$y(r,(DL(),Fq),o)),n=Sp(H_(r));X_(n);)qT(e=Gh(xv(n),12),o=eo(no(Af(yx(e,(DL(),aU)))))?(SE(),AG):(SE(),NG))}(u);break;case 4:!function(t){var e,n,r,i,o,a,s,u,c,l,f,d;for(ml(),c=new _r,qc(),u=new Pc(Mc(zh(t.a,new h)));X_(u);)for(r=new $n(i=B_(Gh(xv(u),9),(uL(),yB)));r.a<r.c.c.length;)for(a=new $n((n=Gh(Wv(r),7)).e);a.a<a.c.c.length;){for(o=Gh(Wv(a),12),SE(),((d=o.d.f).g==(AS(),kH)||d.g==EH)&&(d=Gh(yx(d,(DL(),Yq)),7).f),uv(c.d,d)?e=Gh(Wu(uv(c.d,d)),171):(e=2==i.c.length?Xu(n)===Xu((my(0,i.c.length),i.c[0]))?AG:NG:AG,jC(c.d,d,e)),s=new $n(o.b);s.a<s.c.c.length;)$y(Gh(Wv(s),33),(DL(),Fq),e);for(f=new $n(o.c.c);f.a<f.c.c.length;)$y(Gh(Wv(f),33),(DL(),Fq),e);for(l=new $n(o.d.c);l.a<l.c.c.length;)$y(Gh(Wv(l),33),(DL(),Fq),e)}}(u)}for(a=new $n(t.c);a.a<a.c.c.length;)for(r=new $n(Gh(Wv(a),16).a);r.a<r.c.c.length;){for(f=new $n((n=Gh(Wv(r),9)).f);f.a<f.c.c.length;)for(o=new $n(Gh(Wv(f),7).c);o.a<o.c.c.length;)Xu(yx(i=Gh(Wv(o),33),(DL(),Fq)))===Xu((SE(),LG))&&$y(i,Fq,HF);if(n.g==(AS(),EH)&&Xu(yx(n,(DL(),Fq)))===Xu((SE(),AG)))for(c=Gh(yx(n,Uq),12),p=Gh(yx(c,(HL(),HR)),15).a,d=n.j.b-Math.ceil(p/2),l=new $n(n.f);l.a<l.c.c.length;)Gh(Wv(l),7).i.b=d}j_(e)};Pp(gj,"LabelSideSelector",489);FT(490,1,fP,Et),zL.$b=function(t,e){return function(t,e){return t.i.b<e.i.b?-1:t.i.b==e.i.b?0:1}(Gh(t,7),Gh(e,7))};Pp(gj,"LabelSideSelector/1",490);FT(495,1,lj,kt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b;if(jE(e,"Layer constraint application",1),0!=(s=t.c).c.length){for(my(0,s.c.length),r=Gh(s.c[0],16),i=Gh(ld(s,s.c.length-1),16),v=new bp(t),b=new bp(t),a=new $n(s);a.a<a.c.c.length;)for(o=Gh(Wv(a),16),l=0,h=(d=Gh(Dk(o.a,Ey(TH,qI,9,o.a.c.length,0,1)),51)).length;l<h;++l)switch(Gh(yx(c=d[l],(RL(),FU)),85).e){case 1:ev(c,r),QA(c,!1);break;case 2:ev(c,v),QA(c,!0);break;case 3:ev(c,i),yN(c);break;case 4:ev(c,b),yN(c)}if(s.c.length>=2){for(u=!0,my(1,s.c.length),p=Gh(s.c[1],16),f=new $n(r.a);f.a<f.c.c.length;){if(Xu(yx(c=Gh(Wv(f),9),(RL(),FU)))===Xu((Hk(),wU))){u=!1;break}for(n=Sp(H_(c));X_(n);)if(Gh(xv(n),12).d.f.d==p){u=!1;break}if(!u)break}if(u){for(l=0,h=(d=Gh(Dk(r.a,Ey(TH,qI,9,r.a.c.length,0,1)),51)).length;l<h;++l)ev(c=d[l],p);Dy(s,r)}}if(s.c.length>=2){for(u=!0,g=Gh(ld(s,s.c.length-2),16),f=new $n(i.a);f.a<f.c.c.length;){if(Xu(yx(c=Gh(Wv(f),9),(RL(),FU)))===Xu((Hk(),wU))){u=!1;break}for(n=Sp(G_(c));X_(n);)if(Gh(xv(n),12).c.f.d==g){u=!1;break}if(!u)break}if(u){for(l=0,h=(d=Gh(Dk(i.a,Ey(TH,qI,9,i.a.c.length,0,1)),51)).length;l<h;++l)ev(c=d[l],g);Dy(s,i)}}1==s.c.length&&0==(my(0,s.c.length),Gh(s.c[0],16)).a.c.length&&gy(s,0),0==v.a.c.length||(wy(0,s.c.length),Su(s.c,0,v)),0==b.a.c.length||(s.c[s.c.length]=b),j_(e)}else j_(e)};Pp(gj,"LayerConstraintProcessor",495);FT(496,1,lj,St),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p;for(jE(e,"Layer size calculation",1),c=Ej,u=5e-324,a=new $n(t.c);a.a<a.c.c.length;)if((s=(o=Gh(Wv(a),16)).c).a=0,s.b=0,0!=o.a.c.length){for(f=new $n(o.a);f.a<f.c.c.length;)d=(l=Gh(Wv(f),9)).j,h=l.e,s.a=Ro(s.a,d.a+h.b+h.c);p=(r=Gh(ld(o.a,0),9)).i.b-r.e.d,n=(i=Gh(ld(o.a,o.a.c.length-1),9)).i.b+i.j.b+i.e.a,s.b=n-p,c=c<p?c:p,u=u>n?u:n}t.e.b=u-c,t.d.b-=c,j_(e)};Pp(gj,"LayerSizeAndGraphHeightCalculator",496);FT(497,1,lj,Tt),zL.sc=function(t,e){var n,r,i,o;for(jE(e,"Edge joining",1),n=eo(no(Af(yx(t,(RL(),CU))))),r=new $n(t.c);r.a<r.c.c.length;)for(o=new Uv(Gh(Wv(r),16).a,0);o.b<o.d.Y();)Nc(o.b<o.d.Y()),(i=Gh(o.d.sb(o.c=o.b++),9)).g==(AS(),kH)&&(CO(i,n),ng(o));j_(e)};Pp(gj,"LongEdgeJoiner",497);FT(498,1,lj,At),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l;if(jE(e,"Edge splitting",1),t.c.c.length<=2)j_(e);else{for(Nc((o=new Uv(t.c,0)).b<o.d.Y()),a=Gh(o.d.sb(o.c=o.b++),16);o.b<o.d.Y();)for(i=a,Nc(o.b<o.d.Y()),a=Gh(o.d.sb(o.c=o.b++),16),s=new $n(i.a);s.a<s.c.c.length;)for(u=new $n(Gh(Wv(s),9).f);u.a<u.c.c.length;)for(r=new $n(Gh(Wv(u),7).e);r.a<r.c.c.length;)(c=(n=Gh(Wv(r),12)).d.f.d)!=i&&c!=a&&gA(n,(lr(l=new wk(t),(AS(),kH)),$y(l,(DL(),Uq),n),$y(l,(HL(),AR),(cS(),aB)),ev(l,a),l));j_(e)}};Pp(gj,"LongEdgeSplitter",498);FT(499,1,lj,Nt),zL.sc=function(t,e){var n,r,i,o,a,s;for(jE(e,"Node margin calculation",1),function(t){var e,n;for(n=Gh(ia(t.a,(HL(),hR)),15).a,e=new $n(dC(t.a));e.a<e.c.c.length;)vL(t,Gh(Wv(e),626),n)}(new on((Nr(),new _s(t,!0)))),o=Gh(yx(t,(DL(),sU)),15).a,n=new $n(t.c);n.a<n.c.c.length;)for(i=new $n(Gh(Wv(n),16).a);i.a<i.c.c.length;)sN(r=Gh(Wv(i),9),o),a=r.e,s=Gh(yx(r,hU),65),a.b=Ro(a.b,s.b),a.c=Ro(a.c,s.c),a.a=Ro(a.a,s.a),a.d=Ro(a.d,s.d);j_(e)};Pp(gj,LI,499);FT(491,1,lj,Ot),zL.sc=function(t,e){var n,r,i,o,a,s,u;switch(jE(e,"Node promotion heuristic",1),this.g=t,function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g;for(t.n=Gh(yx(t.g,(DL(),sU)),15).a*Gh(yx(t.g,(RL(),KU)),15).a,t.e=t.n*Gh(yx(t.g,DU),15).a,t.i=t.g.c.c.length,s=t.i-1,h=0,t.j=0,t.k=0,t.a=sy(Ey(dM,ZL,24,t.i,0,1)),t.b=sy(Ey(yX,ZL,184,t.i,6,1)),a=new $n(t.g.c);a.a<a.c.c.length;){for((i=Gh(Wv(a),16)).k=s,f=new $n(i.a);f.a<f.c.c.length;)(l=Gh(Wv(f),9)).k=h,++h;--s}for(t.f=Ey(UX,nI,26,h,12,1),t.c=kd(UX,[ZL,nI],[52,26],12,[h,3],2),t.o=new je,t.p=new je,e=0,t.d=0,o=new $n(t.g.c);o.a<o.c.c.length;){for(s=(i=Gh(Wv(o),16)).k,r=0,g=0,u=i.a.c.length,c=0,f=new $n(i.a);f.a<f.c.c.length;)h=(l=Gh(Wv(f),9)).k,t.f[h]=l.d.k,c+=l.j.b+t.n,n=Xp(G_(l)),p=Xp(H_(l)),t.c[h][0]=p-n,t.c[h][1]=n,t.c[h][2]=p,r+=n,g+=p,n>0&&Oh(t.p,l),Oh(t.o,l);d=u+(e-=r),c+=e*t.e,$b(t.a,s,F_(d)),$b(t.b,s,c),t.j=Go(t.j,d),t.k=Ro(t.k,c),t.d+=e,e+=g}}(this),this.q=Gh(yx(t,(RL(),XU)),109),u=Gh(yx(this.g,WU),24).a,i=new Lt,this.q.e){case 2:case 1:yO(this,i);break;case 3:for(this.q=(UT(),WF),yO(this,i),a=0,o=new $n(this.a);o.a<o.c.c.length;)a=Go(a,Gh(Wv(o),24).a);a>this.j&&(this.q=zF,yO(this,i));break;case 4:for(this.q=(UT(),WF),yO(this,i),s=0,r=new $n(this.b);r.a<r.c.c.length;)s=Ro(s,(Md(n=Nf(Wv(r))),n));s>this.k&&(this.q=qF,yO(this,i));break;case 6:yO(this,new mn(pv(Ou(this.f.length*u/100))));break;case 5:yO(this,new xn(pv(Ou(this.d*u/100))));break;default:yO(this,i)}!function(t,e){var n,r,i,o,a,s;for(i=new je,n=0;n<=t.i;n++)(r=new bp(e)).k=t.i-n,i.c[i.c.length]=r;for(s=new $n(t.o);s.a<s.c.c.length;)ev(a=Gh(Wv(s),9),Gh(ld(i,t.i-t.f[a.k]),16));for(o=new $n(i);o.a<o.c.c.length;)0==Gh(Wv(o),16).a.c.length&&ap(o);e.c.c=Ey(fM,kP,1,0,4,1),Jm(e.c,i)}(this,t),j_(e)},zL.d=0,zL.e=0,zL.i=0,zL.j=0,zL.k=0,zL.n=0;Pp(gj,"NodePromotion",491);FT(492,1,ZP,Lt),zL.B=function(t){return Hd(),Hd(),vX};Pp(gj,"NodePromotion/lambda$0$Type",492);FT(493,1,ZP,mn),zL.B=function(t){return function(t,e){return Hd(),Gh(e.b,24).a<t?vX:gX}(this.a,t)},zL.a=0;Pp(gj,"NodePromotion/lambda$1$Type",493);FT(494,1,ZP,xn),zL.B=function(t){return function(t,e){return Hd(),Gh(e.a,24).a<t?vX:gX}(this.a,t)},zL.a=0;var FF,zF,YF,VF,qF,UF,XF,WF;Pp(gj,"NodePromotion/lambda$2$Type",494);FT(109,17,{109:1,3:1,23:1,17:1},Ls);var $F,KF=Qy(gj,"NodePromotionStrategy",109,EM,(function(){return UT(),_x(Oo(KF,1),CP,109,0,[XF,zF,qF,YF,VF,FF,UF,WF])}));FT(500,1,lj,Pt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m;for(jE(e,kj,1),d=Gh(yx(t,(HL(),rR)),122),i=new $n(t.c);i.a<i.c.c.length;)for(r=Gh(Wv(i),16),a=0,s=(u=Gh(Dk(r.a,Ey(TH,qI,9,r.a.c.length,0,1)),51)).length;a<s;++a)if((o=u[a]).g==(AS(),CH)){if(d==(y_(),ND))for(l=new $n(o.f);l.a<l.c.c.length;)0==(c=Gh(Wv(l),7)).b.c.length||Pk(c),0==c.e.c.length||Ik(c);else if(fl(yx(o,(DL(),Uq)),12))g=Gh(yx(o,Uq),12),v=Gh(fC(o,(uL(),BB)).mb().H(),7),b=Gh(fC(o,yB).mb().H(),7),y=Gh(yx(v,Uq),7),rv(g,w=Gh(yx(b,Uq),7)),nv(g,y),(m=new Uu(b.f.i)).a=Gm(_x(Oo(nD,1),RI,10,0,[w.f.i,w.i,w.a])).a,Nh(g.a,m),(m=new Uu(v.f.i)).a=Gm(_x(Oo(nD,1),RI,10,0,[y.f.i,y.i,y.a])).a,Nh(g.a,m);else{if(o.f.c.length>=2){for(p=!0,n=Gh(Wv(f=new $n(o.f)),7);f.a<f.c.c.length;)if(h=n,n=Gh(Wv(f),7),!e_(yx(h,Uq),yx(n,Uq))){p=!1;break}}else p=!1;for(l=new $n(o.f);l.a<l.c.c.length;)0==(c=Gh(Wv(l),7)).b.c.length||jA(c,p),0==c.e.c.length||MA(c,p)}ev(o,null)}j_(e)};Pp(gj,"NorthSouthPortPostprocessor",500);FT(501,1,lj,It),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w;for(jE(e,kj,1),p=new je,w=new je,c=new $n(t.c);c.a<c.c.c.length;)for(u=Gh(Wv(c),16),v=-1,f=0,h=(d=Gh(Dk(u.a,Ey(TH,qI,9,u.a.c.length,0,1)),51)).length;f<h;++f)if(++v,(l=d[f]).g==(AS(),SH)&&zs(Gh(yx(l,(HL(),AR)),28))){for(Yl(Gh(yx(l,(HL(),AR)),28))||hA(l),$y(l,(DL(),Gq),l),p.c=Ey(fM,kP,1,0,4,1),w.c=Ey(fM,kP,1,0,4,1),n=new je,rx(y=new so,fC(l,(uL(),wB))),CL(t,y,p,w,n),s=v,o=new $n(p);o.a<o.c.c.length;)Jk(r=Gh(Wv(o),9),s,u),++v,$y(r,Gq,l),a=Gh(ld(r.f,0),7),g=Gh(yx(a,Uq),7),eo(no(Af(yx(g,(RL(),$U)))))||Gh(yx(r,Hq),20).ib(l);for(Cg(y),b=fC(l,DB).mb();b.G();)Ob(y,Gh(b.H(),7),y.a,y.a.a);for(CL(t,y,w,null,n),i=new $n(w);i.a<i.c.c.length;)Jk(r=Gh(Wv(i),9),++v,u),$y(r,Gq,l),a=Gh(ld(r.f,0),7),g=Gh(yx(a,Uq),7),eo(no(Af(yx(g,(RL(),$U)))))||Gh(yx(l,Hq),20).ib(r);0==n.c.length||$y(l,vq,n)}j_(e)};Pp(gj,"NorthSouthPortPreprocessor",501);FT(502,1,fP,jt),zL.$b=function(t,e){var n,r;return(n=t.g)!=(r=e.g)?n.e-r.e:t.k==e.k?0:n==(uL(),wB)?t.k-e.k:e.k-t.k};Pp(gj,"NorthSouthPortPreprocessor/lambda$0$Type",502);FT(504,1,lj,Ct),zL.sc=function(t,e){var n,r,i;for(jE(e,"Removing partition constraint edges",1),n=new $n(t.c);n.a<n.c.c.length;)for(r=new $n(Gh(Wv(n),16).a);r.a<r.c.c.length;)for(i=new $n(Gh(Wv(r),9).f);i.a<i.c.c.length;)eo(no(Af(yx(Gh(Wv(i),7),(DL(),Qq)))))&&ap(i);j_(e)};Pp(gj,"PartitionPostprocessor",504);FT(505,1,lj,Mt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l;for(jE(e,"Adding partition constraint edges",1),this.a=new je,a=new $n(t.b);a.a<a.c.c.length;)i=Gh(Wv(a),9),Zy(this,Gh(yx(i,(HL(),xR)),24).a).ib(i);for(r=0;r<this.a.c.length-1;r++)for(o=Gh(ld(this.a,r),20).mb();o.G();)for(i=Gh(o.H(),9),tv(c=new bS,i),Hf(c,(uL(),yB)),$y(c,(DL(),Qq),(Hd(),Hd(),vX)),u=Gh(ld(this.a,r+1),20).mb();u.G();)s=Gh(u.H(),9),tv(l=new bS,s),Hf(l,BB),$y(l,Qq,vX),$y(n=new Og,Qq,vX),$y(n,(HL(),jR),F_(20)),rv(n,c),nv(n,l);this.a=null,j_(e)};Pp(gj,"PartitionPreprocessor",505);FT(506,1,lj,Dt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h;for(jE(e,"Port distribution",1),h=0,l=0,i=0,a=(n=DC(t)).length;i<a;++i)for(u=0,c=(r=n[i]).length;u<c;++u)for((s=r[u]).k=l++,f=new $n(s.f);f.a<f.c.c.length;)Gh(Wv(f),7).k=h++;for(o=new $n(t.c);o.a<o.c.c.length;)DT(r=Gh(Wv(o),16));_S(0!=mT(Gh(yx(t,(DL(),iU)),154),1)?new $i(Ey(KX,Sj,26,h,12,1)):new Wi(Ey(KX,Sj,26,h,12,1)),n),j_(e)};Pp(gj,"PortDistributionProcessor",506);FT(507,1,lj,Rt),zL.sc=function(t,e){var n,r,i,o;for(jE(e,"Port order processing",1),o=new Bt,n=new $n(t.c);n.a<n.c.c.length;)for(i=new $n(Gh(Wv(n),16).a);i.a<i.c.c.length;)r=Gh(Wv(i),9),zs(Gh(yx(r,(HL(),AR)),28))&&yb(r.f,o);j_(e)};Pp(gj,"PortListSorter",507);FT(508,1,fP,Bt),zL.$b=function(t,e){return function(t,e){var n,r,i,o,a;if(a=Gh(yx(t.f,(HL(),AR)),28),0!=(o=t.g.e-e.g.e)||a==(cS(),uB))return o;if(a==(cS(),oB)&&(n=Gh(yx(t,NR),24),r=Gh(yx(e,NR),24),n&&r&&0!=(i=n.a-r.a)))return i;switch(t.g.e){case 1:return Sx(t.i.a,e.i.a);case 2:return Sx(t.i.b,e.i.b);case 3:return Sx(e.i.a,t.i.a);case 4:return Sx(e.i.b,t.i.b);default:throw new xo(pj)}}(Gh(t,7),Gh(e,7))};Pp(gj,"PortListSorter/PortComparator",508);FT(509,1,lj,Gt),zL.sc=function(t,e){var n,r,i;for(jE(e,"Port side processing",1),i=new $n(t.b);i.a<i.c.c.length;)qC(Gh(Wv(i),9));for(n=new $n(t.c);n.a<n.c.c.length;)for(r=new $n(Gh(Wv(n),16).a);r.a<r.c.c.length;)qC(Gh(Wv(r),9));j_(e)};Pp(gj,"PortSideProcessor",509);FT(510,1,lj,Ht),zL.sc=function(t,e){var n,r,i,o,a,s,u,c;for(jE(e,"Restoring reversed edges",1),a=new $n(t.c);a.a<a.c.c.length;)for(s=new $n(Gh(Wv(a),16).a);s.a<s.c.c.length;)for(c=new $n(Gh(Wv(s),9).f);c.a<c.c.c.length;)for(u=Gh(Wv(c),7),r=0,i=(o=Gh(Dk(u.e,Ey(wH,hj,12,u.e.c.length,0,1)),47)).length;r<i;++r)eo(no(Af(yx(n=o[r],(DL(),aU)))))&&HN(n,!1);j_(e)};Pp(gj,"ReversedEdgeRestorer",510);FT(511,1,lj,Ft),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N;if(jE(e,"Sausage Folding",1),this.b=Gh(yx(t,(DL(),sU)),15).a,this.a=this.b*Gh(yx(t,(RL(),KU)),15).a,p=function(t,e){var n,r,i,o,a;for(i=0,n=new $n(e.c);n.a<n.c.c.length;){for(r=0,a=new $n(Gh(Wv(n),16).a);a.a<a.c.c.length;)r+=(o=Gh(Wv(a),9)).j.b+o.e.a+o.e.d+t.a;i=i>(r-=t.a)?i:r}return i}(this,t),C=(d=t.c.c.length)*function(t,e){var n,r,i,o,a;for(r=0,n=new $n(e.c);n.a<n.c.c.length;)for(o=new $n(Gh(Wv(n),16).a);o.a<o.c.c.length;)r=r>(a=(i=Gh(Wv(o),9)).j.a+i.e.c+i.e.b+t.b)?r:a;return r}(this,t),(r=(i=Gh(yx(t,(HL(),eR)),59))==(b_(),gD)||i==vD||i==bD?Gh(yx(t,gq),15).a:1/Gh(yx(t,gq),15).a)>(n=C/p))j_(e);else{k=0,o=Ej;do{h=o,o=(n=C/++k/(p*k))-r<=0?0-(n-r):n-r}while(n>r);for(h<o&&--k,c=_=d/(1>k?1:k)|0,w=_,N=!0;c<d;){E=!0,b=null,y=null;t:for(A=new $n((f=Gh(ld(t.c,c),16)).a);A.a<A.c.c.length;)for(s=Sp(G_(T=Gh(Wv(A),9)));X_(s);){if(a=Gh(xv(s),12),b&&b!=T){E=!1;break t}if(b=T,S=a.c.f,y&&y!=S){E=!1;break t}y=S}if(N&&E&&(w=0,N=!1),c!=w)for(m=Gh(ld(t.c,w),16),v=new $n(qb(f.a));v.a<v.c.c.length;)if(Jk(g=Gh(Wv(v),9),m.a.c.length,m),0==w)for(s=new $n(qb(G_(g)));s.a<s.c.c.length;)for(HN(a=Gh(Wv(s),12),!0),$y(t,Aq,(Hd(),Hd(),vX)),UN(t,a),u=new je,qN(t,a.c,a,u),x=new $n(u);x.a<x.c.c.length;)Jk(Gh(Wv(x),9),m.a.c.length-1,m);w>=_&&(N=!0),++w,++c}for(l=new Uv(t.c,0);l.b<l.d.Y();)Nc(l.b<l.d.Y()),0==(f=Gh(l.d.sb(l.c=l.b++),16)).a.c.length&&ng(l);j_(e)}},zL.a=0,zL.b=0;Pp(gj,"SausageFolding",511);FT(512,1,lj,zt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v;for(jE(e,"Self-loop processing",1),n=new je,c=new $n(t.c);c.a<c.c.c.length;){for(u=Gh(Wv(c),16),n.c=Ey(fM,kP,1,0,4,1),l=new $n(u.a);l.a<l.c.c.length;)for(h=new $n(Gh(Wv(l),9).f);h.a<h.c.c.length;)for(f=Gh(Wv(h),7),o=0,a=(s=Gh(Dk(f.e,Ey(wH,hj,12,f.e.c.length,0,1)),47)).length;o<a;++o)(i=s[o]).c.f==i.d.f&&(d=i.c,g=i.d,p=d.g,v=g.g,p!=(uL(),wB)&&p!=DB||v!=BB?(p==DB&&v==wB||p==yB&&v!=yB)&&HN(i,!1):HN(i,!1),p==yB&&v==BB?Oh(n,zT(t,i,g,d)):p==BB&&v==yB&&Oh(n,zT(t,i,d,g)));for(r=new $n(n);r.a<r.c.c.length;)ev(Gh(Wv(r),9),u)}j_(e)};Pp(gj,"SelfLoopProcessor",512);FT(513,1,lj,Yt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d;for(jE(e,"Spline SelfLoop positioning",1),c=Gh(yx(t,(RL(),eX)),153),u=new $n(t.c);u.a<u.c.c.length;)for(f=new $n(Gh(Wv(u),16).a);f.a<f.c.c.length;){for(l=Gh(Wv(f),9),a=Gh(yx(l,(DL(),fU)),20),s=new je,i=a.mb();i.G();)zk(n=Gh(i.H(),75)),0==(h=Wp(n.g),lm(h,n.i),h).a.Y()?s.c[s.c.length]=n:(ZN(n),0==n.g.a.Y()||FO(n));switch(c.e){case 0:Lm(d=new _c(l)),kL(d,s);break;case 2:for(o=new $n(s);o.a<o.c.c.length;)oC(n=Gh(Wv(o),75),(pL(),RY),!0);break;case 1:for(r=new $n(s);r.a<r.c.c.length;)oC(n=Gh(Wv(r),75),(pL(),RY),!0)}switch(c.e){case 0:case 1:iN(a);break;case 2:rN(a)}}j_(e)};Pp(gj,"SplineSelfLoopPositioner",513);FT(515,1,{},_c);Pp(gj,"SplineSelfLoopPositioner/DistributedLoopSidesCalculator",515);FT(516,1,{},BA),zL.d=!0;Pp(gj,"SplineSelfLoopPositioner/DistributedLoopSidesCalculator/SortedLoopSides",516);FT(116,1,{116:1},Co),zL.a=0,zL.b=0;var ZF;Pp(gj,"SplineSelfLoopPositioner/DistributedLoopSidesCalculator/SortedLoopSides/SizeOfSide",116);FT(318,1,{},CN);Pp(gj,"SplineSelfLoopPositioner/PortReadder",318);FT(514,1,fP,$t),zL.$b=function(t,e){return function(t,e){return Sx(e.k,t.k)}(Gh(t,75),Gh(e,75))};Pp(gj,"SplineSelfLoopPositioner/TextWidthComparator",514);FT(517,1,lj,Kt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v;for(jE(e,"Spline SelfLoop pre-processing.",1),l=new Oc,h=new $n(t.b);h.a<h.c.c.length;){for(lE(f=Gh(Wv(h),9)),l.a.Q(),s=Sp(H_(f));X_(s);)ny(o=Gh(xv(s),12))&&l.a.db(o,l);for(a=new Yn(new zn(l.a).a.bb().mb());a.a.G();)u=Gh(a.a.H(),21),g=(o=Gh(u.yb(),12)).c.g,v=o.d.g,(g==(uL(),wB)&&(v==yB||v==DB)||g==yB&&v==DB||g==DB&&v==BB||g==BB&&(v==wB||v==yB))&&HN(o,!1);if(n=_T(l,f),$y(f,(DL(),fU),n),!Yl(Gh(yx(f,(HL(),AR)),28))){for(p=new Qi,i=new $n(n);i.a<i.c.c.length;)lm(p,iv(r=Gh(Wv(i),75))),lm(p,r.i);for(c=new Uv(f.f,0);c.b<c.d.Y();)Nc(c.b<c.d.Y()),d=Gh(c.d.sb(c.c=c.b++),7),p.a.R(d)&&ng(c)}}j_(e)};Pp(gj,"SplineSelfLoopPreProcessor",517);FT(518,1,lj,Zt),zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C;for(jE(e,"Spline SelfLoop routing",1),_=new Jt,l=new $n(t.c);l.a<l.c.c.length;)for(v=new $n(Gh(Wv(l),16).a);v.a<v.c.c.length;){for(b=(g=Gh(Wv(v),9)).f,f=new Oc,n=Gh(yx(g,(DL(),fU)),20).mb();n.G();)lm(f,Gh(n.H(),75).a);for(y=new je,o=new Yn(new zn(f.a).a.bb().mb());o.a.G();){for(a=Gh(o.a.H(),21),x=(i=Gh(a.yb(),12)).c,k=i.d,c=new $n(i.c.f.f),m=0,E=0,s=0,u=0;s<2;)x==(r=Gh(Wv(c),7))&&(m=u,++s),k==r&&(E=u,++s),++u;Oh(y,new wb(m,E,(w=Gh(yx(i,lU),60))==(pL(),BY)||w==MY?b.c.length-(E-m<0?-(E-m):E-m)+1:E-m<0?-(E-m):E-m,w,i))}if(yb(y,_),d=new Qi,(h=new $n(y)).a<h.c.c.length){for(p=hL(Gh(Wv(h),195),d);h.a<h.c.c.length;)Gw(p,hL(Gh(Wv(h),195),d));$y(g,hU,(S=new Fr,C=new kC(g.j.a,g.j.b),S.d=Ro(0,C.d-p.d),S.b=Ro(0,C.b-p.b),S.a=Ro(0,p.a-C.a),S.c=Ro(0,p.c-C.c),S))}}j_(e)};Pp(gj,"SplineSelfLoopRouter",518);FT(91,1,{91:1},RC),zL.w=function(){return this.b+": "+this.d+" -> "+this.a+" "+df(this.c)},zL.a=0,zL.b=0,zL.d=0;Pp(gj,"SplineSelfLoopRouter/LoopPadding",91);FT(521,1,oj,Wh),zL.D=function(t){return Ck(this,Gh(t,91))},zL.a=0,zL.c=0;Pp(gj,"SplineSelfLoopRouter/LoopPadding/EnclosingPredicate",521);FT(520,1,fP,Qt),zL.$b=function(t,e){return function(t,e){return Sx(e.b,t.b)}(Gh(t,91),Gh(e,91))};Pp(gj,"SplineSelfLoopRouter/LoopPadding/MarginComparator",520);FT(196,1,oj,_n),zL.D=function(t){return Gh(t,91).c==this.a};Pp(gj,"SplineSelfLoopRouter/LoopPadding/PortSidePredicate",196);FT(195,1,{195:1},wb),zL.c=0,zL.d=0,zL.e=0;Pp(gj,"SplineSelfLoopRouter/SelfLoopEdge",195);FT(519,1,fP,Jt),zL.$b=function(t,e){return function(t,e){return t.d-e.d}(Gh(t,195),Gh(e,195))};Pp(gj,"SplineSelfLoopRouter/SelfLoopEdge/StepSizeComparator",519);FT(82,25,{25:1,82:1},vT),zL.vc=function(){var t,e;for(t=_k(this.a,0);t.b!=t.d.c;)Gh(Cb(t),10).a=this.j.d;for(e=_k(this.c,0);e.b!=e.d.c;)Gh(Cb(e),10).a=this.j.d},zL.wc=function(){return this.b},zL.xc=function(){return this.e},zL.w=function(){return XS(new zn(this.d.a))},zL.b=0,zL.e=0;Pp(Tj,"CLEdge",82);FT(93,25,{25:1,93:1},$A),zL.vc=function(){this.b.i.a=this.j.d+this.b.e.b},zL.wc=function(){return this.b.g==(AS(),_H)?0:this.a},zL.xc=function(){return this.b.g==(AS(),_H)?0:this.c},zL.w=function(){return Bk(yx(this.b,(DL(),Uq)))},zL.a=0,zL.c=0;var QF,JF;Pp(Tj,"CLNode",93);FT(175,17,{175:1,3:1,23:1,17:1},Ps);var tz,ez,nz,rz,iz,oz,az,sz=Qy(Tj,"ConstraintCalculationStrategy",175,EM,(function(){return kb(),_x(Oo(sz,1),CP,175,0,[QF,JF])}));FT(125,17,{125:1,3:1,23:1,17:1},Is);var uz,cz,lz,fz=Qy(Tj,"GraphCompactionStrategy",125,EM,(function(){return aC(),_x(Oo(fz,1),CP,125,0,[oz,nz,az,iz,rz,ez])}));FT(455,1,lj,zc),zL.sc=function(t,e){var n,r,i;if((r=Gh(yx(t,(RL(),ZU)),125))!=(aC(),oz)){switch(jE(e,"Horizontal Compaction",1),this.a=t,ho(n=new cT(RA(i=new qu,t)),this.b),Gh(yx(t,QU),175).e){case 1:lo(n,cz);break;default:lo(n,(zd(),eH))}switch(r.e){case 1:dN(n);break;case 2:dN(KO(n,(b_(),vD)));break;case 3:dN(fa(KO(dN(n),(b_(),vD))));break;case 4:dN(fa(fo(KO(dN(n),(b_(),vD)),new Vt)));break;case 5:dN(function(t,e){return t.b=e,t}(n,lz))}KO(n,(b_(),gD)),n.e=!0,aN(i),j_(e)}};Pp(Tj,"HorizontalGraphCompactor",455);FT(462,1,{},En),zL.tc=function(t,e){var n,r;return fl(t,82)&&fl(e,82)&&!Ow($w(Gh(t,82).d,Gh(e,82).d))?0:(n=null,fl(t,93)&&(n=Gh(t,93).b),r=null,fl(e,93)&&(r=Gh(e,93).b),n&&n.g==(AS(),_H)||r&&r.g==(AS(),_H)?0:gl(Gh(yx(this.a.a,(DL(),uU)),134),n?n.g:(AS(),kH),r?r.g:(AS(),kH)))},zL.uc=function(t,e){return fl(t,82)&&fl(e,82)&&!Ow($w(Gh(t,82).d,Gh(e,82).d))?1:Ho(t.xc(),e.xc())};Pp(Tj,"HorizontalGraphCompactor/1",462);FT(456,317,{},Kh),zL.Dc=function(t){var e,n,r;for(this.b=t,iT(this,new qt,this.a),iT(this,new Ut,this.a),e=QI,r=new $n(this.b.a.b);r.a<r.c.c.length;)fl(n=Gh(Wv(r),25),93)&&Gh(n,93).b.g==(AS(),_H)||(e=Ho(e,no(oa(this.a,n))));e==QI&&(e=0),iT(this,new Xt,new Sn(e))};Pp(Tj,"HorizontalGraphCompactor/EdgeAwareScanlineConstraintCalculation",456);FT(457,1,ZP,kn),zL.B=function(t){return oa(this,t)};Pp(Tj,"HorizontalGraphCompactor/EdgeAwareScanlineConstraintCalculation/lambda$0$Type",457);FT(458,1,oj,qt),zL.D=function(t){return fl(Gh(t,25),82)};Pp(Tj,"HorizontalGraphCompactor/EdgeAwareScanlineConstraintCalculation/lambda$1$Type",458);FT(459,1,oj,Ut),zL.D=function(t){return fl(Gh(t,25),93)};Pp(Tj,"HorizontalGraphCompactor/EdgeAwareScanlineConstraintCalculation/lambda$2$Type",459);FT(460,1,oj,Xt),zL.D=function(t){return!0};Pp(Tj,"HorizontalGraphCompactor/EdgeAwareScanlineConstraintCalculation/lambda$3$Type",460);FT(461,1,ZP,Sn),zL.B=function(t){return this.a},zL.a=0;Pp(Tj,"HorizontalGraphCompactor/EdgeAwareScanlineConstraintCalculation/lambda$4$Type",461);FT(463,1,ZP,Vt),zL.B=function(t){return Zc(),Hd(),rE(Gh(Gh(t,27).a,25).n,Gh(Gh(t,27).b,59))?gX:vX};Pp(Tj,"HorizontalGraphCompactor/lambda$0$Type",463);FT(553,1,{},qu),zL.c=!1;Pp(Tj,"LGraphToCGraphTransformer",553);FT(552,1,{},Wt),zL.Cc=function(t){var e,n,r,i,o;for(this.a=t,this.d=new jr,this.c=Ey(gz,kP,61,this.a.a.a.c.length,0,1),this.b=0,n=new $n(this.a.a.a);n.a<n.c.c.length;)(e=Gh(Wv(n),78)).d=this.b,o=rl(va(ba(new Dr,this.b),e),this.d),this.c[this.b]=o,++this.b;for(function(t){var e,n,r,i,o,a,s,u,c;for(n=new $n(t.a.a.b);n.a<n.c.c.length;)for(a=(e=Gh(Wv(n),25)).i.mb();a.G();)o=Gh(a.H(),25),e.f!=o.f&&(u=ns(t.a.d)?t.a.g.tc(e,o):t.a.g.uc(e,o),r=e.g.a+e.j.c+u-o.g.a,r=0>(r=Math.ceil(r))?0:r,e.o&&o.o&&fl(e,82)&&fl(o,82)&&!Ow($w(Gh(e,82).d,Gh(o,82).d))?(i=rl(new Dr,t.d),s=pv(Ou(o.g.a-e.g.a)),lA(ha(pa(ga(da(new Mr,0>s?0:s),1),i),t.c[e.f.d])),lA(ha(pa(ga(da(new Mr,0>-s?0:-s),1),i),t.c[o.f.d]))):(c=1,(fl(e,82)&&fl(o,93)||fl(o,82)&&fl(e,93))&&(c=2),lA(ha(pa(ga(da(new Mr,pv(r)),c),t.c[e.f.d]),t.c[o.f.d]))))}(this),function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b;for(ml(),l=new _r,u=new Us,r=new $n(t.a.a.b);r.a<r.c.c.length;)if(fl(e=Gh(Wv(r),25),93))c=Gh(e,93).b,jC(l.d,c,e);else if(fl(e,82))for(i=new Yn(new zn(Gh(e,82).d.a).a.bb().mb());i.a.G();)o=Gh(i.a.H(),21),rT(u,Gh(o.yb(),12),e);for(n=new $n(t.a.a.b);n.a<n.c.c.length;)if(fl(e=Gh(Wv(n),25),93))for(s=Sp(H_(c=Gh(e,93).b));X_(s);)if(!ny(a=Gh(xv(s),12))&&(p=a.c,b=a.d,!(uL(),OB).kb(a.c.g)||!OB.kb(a.d.g))){if(g=Gh(Up(l,a.d.f),25),lA(ha(pa(ga(da(new Mr,0),100),t.c[e.f.d]),t.c[g.f.d])),p.g==BB&&Rf((uw(),p)))for(h=Gh(GS(u,a),18).mb();h.G();)if((f=Gh(h.H(),25)).j.d<e.j.d){if((d=t.c[f.f.d])==(v=t.c[e.f.d]))continue;lA(ha(pa(ga(da(new Mr,1),100),d),v))}if(b.g==yB&&Df((uw(),b)))for(h=Gh(GS(u,a),18).mb();h.G();)if((f=Gh(h.H(),25)).j.d>e.j.d){if((d=t.c[e.f.d])==(v=t.c[f.f.d]))continue;lA(ha(pa(ga(da(new Mr,1),100),d),v))}}}(this),function(t){var e,n,r,i,o,a;for(i=new so,r=new $n(t.d.a);r.a<r.c.c.length;)0==(n=Gh(Wv(r),61)).c.c.length&&Ob(i,n,i.c.b,i.c);if(i.b>1)for(e=rl(ba(new Dr,t.b++),t.d),a=_k(i,0);a.b!=a.d.c;)o=Gh(Cb(a),61),lA(ha(pa(ga(da(new Mr,1),0),e),o))}(this),cN(Jf(this.d),new Vf),i=new $n(this.a.a.b);i.a<i.c.c.length;)(r=Gh(Wv(i),25)).r=this.c[r.f.d].e+r.g.a,r.j.d=r.r},zL.b=0;Pp(Tj,"NetworkSimplexCompaction",552);FT(142,1,{142:1,23:1},EA),zL.F=function(t){return function(t,e){var n;return 0==(n=Sx(t.j,e.j))?Sx(t.k,e.k):n}(this,Gh(t,142))},zL.c=!1,zL.d=!0,zL.i=0,zL.j=0,zL.k=0,zL.n=0;Pp(Tj,"VerticalSegment",142);FT(586,1,{},uc),zL.e=!1;Pp(Aj,"AllCrossingsCounter",586);FT(339,1,{});Pp(Aj,"BetweenLayerEdgeAllCrossingsCounter",339);FT(613,1,{},FS),zL.c=0,zL.e=0,zL.i=0;Pp(Aj,"BetweenLayerEdgeTwoNodeCrossingsCounter",613);FT(284,1,{284:1},xm),zL.w=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},zL.b=0,zL.c=0,zL.f=0;Pp(Aj,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",284);FT(128,1,{128:1,23:1},Jl),zL.F=function(t){return function(t,e){return t.c<e.c?-1:t.c==e.c?0:1}(this,Gh(t,128))},zL.w=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},zL.a=0,zL.b=0,zL.c=0;Pp(Aj,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",128);FT(610,339,{},Vi),zL.Gc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N,O,L,P,I,j,M,D,R,B,G,H,F,z,Y,V,q,U,X,W,$,K,Z,Q,J,tt,et,nt,rt,it,ot;for(K=0,A=0,L=t.length;A<L;++A)if(Yl(Gh(yx(C=t[A],(HL(),AR)),28)))for(H=new $n(C.f);H.a<H.c.c.length;){for(z=0,a=new $n((G=Gh(Wv(H),7)).e);a.a<a.c.c.length;)o=Gh(Wv(a),12),C.d!=o.d.f.d&&++z;z>0&&(this.a[G.k]=K++)}else{for(I=0,H=new $n(C.f);H.a<H.c.c.length;){for(a=new $n((G=Gh(Wv(H),7)).e);a.a<a.c.c.length;)o=Gh(Wv(a),12),C.d!=o.d.f.d&&++I;this.a[G.k]=K}I>0&&++K}for(et=0,N=0,P=e.length;N<P;++N)if(Yl(Gh(yx(C=e[N],(HL(),AR)),28))){for(j=0,H=new $n(C.f);H.a<H.c.c.length&&(G=Gh(Wv(H),7)).g==(uL(),wB);)for(a=new $n(G.b);a.a<a.c.c.length;)if(o=Gh(Wv(a),12),C.d!=o.c.f.d){++j;break}for(D=0,Y=new Uv(C.f,C.f.c.length);Y.b>0;){for(Nc(Y.b>0),z=0,a=new $n((G=Gh(Y.a.sb(Y.c=--Y.b),7)).b);a.a<a.c.c.length;)o=Gh(Wv(a),12),C.d!=o.c.f.d&&++z;z>0&&(G.g==(uL(),wB)?(this.a[G.k]=et,++et):(this.a[G.k]=et+j+D,++D))}et+=D}else{for(I=0,H=new $n(C.f);H.a<H.c.c.length;){for(a=new $n((G=Gh(Wv(H),7)).b);a.a<a.c.c.length;)o=Gh(Wv(a),12),C.d!=o.c.f.d&&++I;this.a[G.k]=et}I>0&&++et}for(F=new _r,p=new Qi,T=0,O=t.length;T<O;++T)for(J=new $n((C=t[T]).f);J.a<J.c.c.length;)for(a=new $n((Q=Gh(Wv(J),7)).e);a.a<a.c.c.length;)if(rt=(o=Gh(Wv(a),12)).d,C.d!=rt.f.d)if(Z=Gh(Wu(uv(F.d,Q)),204),nt=Gh(Wu(uv(F.d,rt)),204),Z||nt)if(Z)if(nt)if(Z==nt)Nh(Z.a,o);else{for(Nh(Z.a,o),B=_k(nt.e,0);B.b!=B.d.c;)R=Gh(Cb(B),7),jC(F.d,R,Z);lm(Z.a,nt.a),lm(Z.e,nt.e),p.a.eb(nt)}else Nh(Z.a,o),Nh(Z.e,rt),jC(F.d,rt,Z);else Nh(nt.a,o),Nh(nt.e,Q),jC(F.d,Q,nt);else d=new ef,p.a.db(d,p),Nh(d.a,o),Nh(d.e,Q),jC(F.d,Q,d),Nh(d.e,rt),jC(F.d,rt,d);for(g=Gh(Qk(p,Ey(hz,{675:1,3:1,5:1,6:1},204,p.a.Y(),0,1)),675),S=t[0].d,$=e[0].d,f=0,h=g.length;f<h;++f)for((l=g[f]).f=K,l.g=et,H=_k(l.e,0);H.b!=H.d.c;)G=Gh(Cb(H),7),V=this.a[G.k],G.f.d==S?(V<l.f&&(l.f=V,l.b=ff(G)),V>l.c&&(l.c=V)):G.f.d==$&&(V<l.g&&(l.g=V),V>l.d&&(l.d=V));for(Mk(g,0,g.length,(Qs(),Qs(),NX)),tt=Ey(UX,nI,26,g.length,12,1),n=Ey(UX,nI,26,et+1,12,1),b=0;b<g.length;b++)tt[b]=g[b].g,n[tt[b]]=1;for(i=0,y=0;y<n.length;y++)1==n[y]?n[y]=i:--i;for(q=0,w=0;w<tt.length;w++)tt[w]+=n[tt[w]],q=Go(q,tt[w]+1);for(c=1;c<q;)c*=2;for(ot=2*c-1,c-=1,it=Ey(UX,nI,26,ot,12,1),r=0,s=0,u=tt.length;s<u;++s)for(++it[x=tt[s]+c];x>0;)x%2>0&&(r+=it[x+1]),++it[x=(x-1)/2|0];for(k=Ey(dz,kP,158,2*g.length,0,1),m=0;m<g.length;m++)k[2*m]=new vg(g[m],g[m].f,g[m].c,0),k[2*m+1]=new vg(g[m],g[m].c,g[m].f,1);for(Mk(k,0,k.length,NX),M=0,_=0,E=k.length;_<E;++_)switch(k[_].d){case 0:++M;break;case 1:r+=--M}for(W=Ey(dz,kP,158,2*g.length,0,1),v=0;v<g.length;v++)W[2*v]=new vg(g[v],g[v].g,g[v].d,0),W[2*v+1]=new vg(g[v],g[v].d,g[v].g,1);for(Mk(W,0,W.length,NX),M=0,U=0,X=W.length;U<X;++U)switch(W[U].d){case 0:++M;break;case 1:r+=--M}return r};Pp(Aj,"BetweenLayerHyperedgeAllCrossingsCounter",610);FT(204,1,{204:1,23:1},ef),zL.F=function(t){return function(t,e){return t.f<e.f?-1:t.f>e.f?1:t.g<e.g?-1:t.g>e.g?1:t.b-e.b}(this,Gh(t,204))},zL.b=0,zL.c=0,zL.d=0,zL.f=0,zL.g=0;var hz=Pp(Aj,"BetweenLayerHyperedgeAllCrossingsCounter/Hyperedge",204);FT(158,1,{158:1,23:1},vg),zL.F=function(t){return function(t,e){return t.c<e.c?-1:t.c>e.c?1:t.b<e.b?-1:t.b>e.b?1:t.a!=e.a?t.a.b-e.a.b:0==t.d&&1==e.d?-1:1==t.d&&0==e.d?1:0}(this,Gh(t,158))},zL.b=0,zL.c=0,zL.d=0;var dz=Pp(Aj,"BetweenLayerHyperedgeAllCrossingsCounter/HyperedgeCorner",158);FT(611,339,{},qi),zL.Gc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_;for(_=0,r=0,o=t[0].d,y=e[0].d,u=0,l=e.length;u<l;++u)if(Yl(Gh(yx(a=e[u],(HL(),AR)),28))){for(h=0,g=new $n(a.f);g.a<g.c.c.length&&(p=Gh(Wv(g),7)).g==(uL(),wB);)for(n=new $n(p.b);n.a<n.c.c.length;)if(Gh(Wv(n),12).c.f.d==o){++h;break}for(d=0,b=new Uv(a.f,a.f.c.length);b.b>0;){for(Nc(b.b>0),v=0,n=new $n((p=Gh(b.a.sb(b.c=--b.b),7)).b);n.a<n.c.c.length;)Gh(Wv(n),12).c.f.d==o&&++v;v>0&&(p.g==(uL(),wB)?(this.a[p.k]=_,++_):(this.a[p.k]=_+h+d,++d),r+=v)}_+=d}else{for(f=0,g=new $n(a.f);g.a<g.c.c.length;){for(n=new $n((p=Gh(Wv(g),7)).b);n.a<n.c.c.length;)Gh(Wv(n),12).c.f.d==o&&++f;this.a[p.k]=_}f>0&&(++_,r+=f)}for(w=Ey(UX,nI,26,r,12,1),i=0,s=0,c=t.length;s<c;++s)if(Yl(Gh(yx(a=t[s],(HL(),AR)),28)))for(g=new $n(a.f);g.a<g.c.c.length;)for(m=i,n=new $n((p=Gh(Wv(g),7)).e);n.a<n.c.c.length;)(x=Gh(Wv(n),12).d).f.d==y&&Vm(w,m,i++,this.a[x.k]);else for(m=i,g=new $n(a.f);g.a<g.c.c.length;)for(n=new $n((p=Gh(Wv(g),7)).e);n.a<n.c.c.length;)(x=Gh(Wv(n),12).d).f.d==y&&Vm(w,m,i++,this.a[x.k]);return function(t,e,n){var r,i,o,a,s,u;for(i=1;i<t;)i*=2;for(u=2*i-1,i-=1,s=Ey(UX,nI,26,u,12,1),r=0,a=0;a<e;a++)for(++s[o=n[a]+i];o>0;)o%2>0&&(r+=s[o+1]),++s[o=(o-1)/2|0];return r}(_,r,w)};Pp(Aj,"BetweenLayerStraightEdgeAllCrossingsCounter",611);FT(338,1,{},sC),zL.b=0,zL.e=!1;Pp(Aj,"CrossingMatrixFiller",338);FT(447,1,lj,te),zL.sc=function(t,e){var n,r;jE(e,"Greedy switch crossing reduction",1),this.e=Gh(yx(t,(RL(),GU)),110),t.c.c.length<2||this.e==(hO(),ZV)||(function(t,e){var n,r,i,o,a,s,u,c;for(t.f=e,i=e.c.c.length,t.a=Ey(TH,ZL,51,i,0,2),t.d=Ey(TH,ZL,51,i,0,2),t.g=Ey(TH,ZL,51,i,0,2),a=new Uv(e.c,0);a.b<a.d.Y();)for(Nc(a.b<a.d.Y()),s=(r=Gh(a.d.sb(a.c=a.b++),16)).a.c.length,o=a.b-1,t.a[o]=Ey(TH,qI,9,s,0,1),t.d[o]=Ey(TH,qI,9,s,0,1),t.g[o]=Ey(TH,qI,9,s,0,1),c=new Uv(r.a,0),n=0;c.b<c.d.Y();)Nc(c.b<c.d.Y()),(u=Gh(c.d.sb(c.c=c.b++),9)).k=n++,t.d[o][c.b-1]=u,t.a[o][c.b-1]=u,t.g[o][c.b-1]=u;t.b=new uc(t.d),t.e.c&&(t.b.e=!0)}(this,t),this.e.b?(this.e.a?z_(this):Xy(this),n=function(t){var e,n,r,i;for(i=Ey(TH,ZL,51,t.a.length,0,2),n=0;n<i.length;n++)r=t.a[n].length,e=Ey(TH,qI,9,r,0,1),nO(t.a[n],0,e,0,r),i[n]=e;return i}(this),r=this.e.a?this.c:wS(this.b,this.d),this.i=!this.i,this.d=this.g,this.e.a?z_(this):Xy(this),r<=(this.e.a?this.c:wS(this.b,this.d))&&tx(this,n)):this.e.a?z_(this):Xy(this),function(t,e){var n,r,i,o;for(r=new Uv(t.f.c,0);r.b<r.d.Y();)for(Nc(r.b<r.d.Y()),n=Gh(r.d.sb(r.c=r.b++),16),o=e[r.b-1],i=new Uv(n.a,0);i.b<i.d.Y();)Nc(i.b<i.d.Y()),i.d.sb(i.c=i.b++),nh(i,o[i.b-1])}(this,this.a)),j_(e)},zL.c=0,zL.i=!0;Pp(Aj,"GreedySwitchProcessor",447);FT(340,1,{},bE);Pp(Aj,"InLayerEdgeAllCrossingsCounter",340);FT(614,340,{},Wf),zL.b=0,zL.d=0;Pp(Aj,"InLayerEdgeTwoNodeCrossingCounter",614);FT(226,1,{226:1,23:1},pg),zL.F=function(t){return function(t,e){return t.c<e.c||t.c==e.c&&Fp(t.a)&&Fp(e.a)&&If(t.d,Dc(t.a,t.b))>If(t.d,Dc(e.a,e.b))?-1:t.c==e.c&&Dc(t.a,t.b)==Dc(t.a,t.b)?0:1}(this,Gh(t,226))},zL.w=function(){return"ComparableEdgeAndPort [port="+this.b+", edge="+this.a+", portPosition="+this.c+"]"},zL.c=0;Pp(Aj,"InLayerEdgeTwoNodeCrossingCounter/ComparableEdgeAndPort",226);FT(612,1,{},Wk),zL.e=!0,zL.f=0,zL.g=0,zL.k=!1;Pp(Aj,"NorthSouthEdgeAllCrossingsCounter",612);FT(615,1,{},Hm),zL.b=0,zL.d=0,zL.e=!1;Pp(Aj,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",615);FT(143,1,UP,Yf),zL.mb=function(){return sA(this)},zL.b=0;Pp(Aj,"PortIterable",143);FT(344,1,PP,Cv),zL.H=function(){return Gh(sp(this.a),7)},zL.G=function(){return this.a.b>0},zL.I=function(){throw new $r};Pp(Aj,"PortIterable/1",344);FT(336,1,{},OS);Pp(Aj,"SwitchDecider",336);FT(89,1,{89:1},ee),zL.w=function(){return"NEdge[id="+this.b+" w="+this.f+" d="+this.a+"]"},zL.a=1,zL.b=0,zL.e=!1,zL.f=0;var pz=Pp(Oj,"NEdge",89);FT(157,1,{},Mr);Pp(Oj,"NEdge/NEdgeBuilder",157);FT(278,1,{},jr);Pp(Oj,"NGraph",278);FT(61,1,{61:1},Ib),zL.b=0,zL.d=-1,zL.e=0,zL.i=-1,zL.j=!1;var gz=Pp(Oj,"NNode",61);FT(333,13,sj,zr),zL.rb=function(t,e){++this.d,wy(t,this.c.length),Su(this.c,t,e)},zL.ib=function(t){return yp(this,t)},zL.jb=function(t){return++this.d,Jm(this,t)},zL.Q=function(){++this.d,this.c=Ey(fM,kP,1,0,4,1)},zL.vb=function(t){return++this.d,gy(this,t)},zL.nb=function(t){return Ic(this,t)};Pp(Oj,"NNode/ChangeAwareArrayList",333);FT(199,1,{},Dr);Pp(Oj,"NNode/NNodeBuilder",199);FT(595,1,{},ne),zL.a=!1,zL.f=iP,zL.j=0;var vz,bz;Pp(Oj,"NetworkSimplex",595);FT(193,17,{180:1,193:1,3:1,23:1,17:1},js),zL.rc=function(){switch(this.e){case 0:return new Ph;case 1:return new me;default:throw new io("No implementation is available for the cycle breaker "+(null!=this.d?this.d:""+this.e))}};var yz,wz,mz=Qy(Pj,"CycleBreakingStrategy",193,EM,(function(){return Bg(),_x(Oo(mz,1),CP,193,0,[vz,bz])}));FT(539,1,Ij,Ph),zL.qc=function(t){return wz},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N,O,L;for(jE(e,"Greedy cycle removal",1),L=(b=t.b).c.length,this.a=Ey(UX,nI,26,L,12,1),this.c=Ey(UX,nI,26,L,12,1),this.b=Ey(UX,nI,26,L,12,1),s=0,g=new $n(b);g.a<g.c.c.length;){for((d=Gh(Wv(g),9)).k=s,_=new $n(d.f);_.a<_.c.c.length;){for(o=new $n((m=Gh(Wv(_),7)).b);o.a<o.c.c.length;)(n=Gh(Wv(o),12)).c.f!=d&&(S=Gh(yx(n,(DL(),nU)),24).a,this.a[s]+=S>0?S+1:1);for(i=new $n(m.e);i.a<i.c.c.length;)(n=Gh(Wv(i),12)).d.f!=d&&(S=Gh(yx(n,(DL(),nU)),24).a,this.c[s]+=S>0?S+1:1)}0==this.c[s]?Nh(this.d,d):0==this.a[s]&&Nh(this.e,d),++s}for(h=-1,f=1,c=new je,C=Gh(yx(t,(DL(),iU)),154);L>0;){for(;0!=this.d.b;)A=Gh(wh(this.d),9),this.b[A.k]=h--,SN(this,A),--L;for(;0!=this.e.b;)N=Gh(wh(this.e),9),this.b[N.k]=f++,SN(this,N),--L;if(L>0){for(l=lP,v=new $n(b);v.a<v.c.c.length;)d=Gh(Wv(v),9),0==this.b[d.k]&&(y=this.c[d.k]-this.a[d.k])>=l&&(y>l&&(c.c=Ey(fM,kP,1,0,4,1),l=y),c.c[c.c.length]=d);u=Gh(ld(c,Yk(C,c.c.length)),9),this.b[u.k]=f++,SN(this,u),--L}}for(T=b.c.length+1,s=0;s<b.c.length;s++)this.b[s]<0&&(this.b[s]+=T);for(p=new $n(b);p.a<p.c.c.length;)for(d=Gh(Wv(p),9),x=0,E=(k=Gh(Dk(d.f,Ey(MH,yj,7,d.f.c.length,0,1)),346)).length;x<E;++x)for(r=0,a=(w=Gh(Dk((m=k[x]).e,Ey(wH,hj,12,m.e.c.length,0,1)),47)).length;r<a;++r)O=(n=w[r]).d.f.k,this.b[d.k]>this.b[O]&&(HN(n,!0),$y(t,Aq,(Hd(),Hd(),vX)));this.a=null,this.c=null,this.b=null,Cg(this.e),Cg(this.d),j_(e)};var xz;Pp(Pj,"GreedyCycleBreaker",539);FT(540,1,Ij,me),zL.qc=function(t){return xz},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d;for(jE(e,"Interactive cycle breaking",1),c=new je,f=new $n(t.b);f.a<f.c.c.length;)for((l=Gh(Wv(f),9)).k=1,h=vS(l).a,u=fE(l,(tm(),EU)).mb();u.G();)for(i=new $n(Gh(u.H(),7).e);i.a<i.c.c.length;)(d=(n=Gh(Wv(i),12)).d.f)!=l&&vS(d).a<h&&(c.c[c.c.length]=n);for(o=new $n(c);o.a<o.c.c.length;)HN(n=Gh(Wv(o),12),!0);for(c.c=Ey(fM,kP,1,0,4,1),s=new $n(t.b);s.a<s.c.c.length;)(a=Gh(Wv(s),9)).k>0&&EC(this,a,c);for(r=new $n(c);r.a<r.c.c.length;)HN(n=Gh(Wv(r),12),!0);c.c=Ey(fM,kP,1,0,4,1),j_(e)};Pp(Pj,"InteractiveCycleBreaker",540);FT(543,1,Ij,re),zL.qc=function(t){return pd(hd(new Z_,(ML(),aF)),gF)},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g;for(jE(e,"Interactive node layering",1),n=new je,f=new $n(t.b);f.a<f.c.c.length;){for(a=(s=(c=Gh(Wv(f),9)).i.a)+1>(a=s+c.j.a)?s+1:a,g=new Uv(n,0),r=null;g.b<g.d.Y();){if(Nc(g.b<g.d.Y()),(d=Gh(g.d.sb(g.c=g.b++),239)).c>=a){Nc(g.b>0),g.a.sb(g.c=--g.b);break}d.a>s&&(r?(Jm(r.b,d.b),r.a=Ro(r.a,d.a),ng(g)):(Oh(d.b,c),d.c=Ho(d.c,s),d.a=Ro(d.a,a),r=d))}r||((r=new Rr).c=s,r.a=a,eh(g,r),Oh(r.b,c))}for(o=t.c,u=0,p=new $n(n);p.a<p.c.c.length;)for(d=Gh(Wv(p),239),(i=new bp(t)).k=u++,o.c[o.c.length]=i,h=new $n(d.b);h.a<h.c.c.length;)ev(c=Gh(Wv(h),9),i),c.k=0;for(l=new $n(t.b);l.a<l.c.c.length;)0==(c=Gh(Wv(l),9)).k&&NA(this,c,t);for(;0==(my(0,o.c.length),Gh(o.c[0],16)).a.c.length;)my(0,o.c.length),o.c.splice(0,1);t.b.c=Ey(fM,kP,1,0,4,1),j_(e)};Pp(jj,"InteractiveLayerer",543);FT(239,1,{239:1},Rr),zL.a=0,zL.c=0;var _z,Ez,kz;Pp(jj,"InteractiveLayerer/LayerSpan",239);FT(173,17,{180:1,173:1,3:1,23:1,17:1},Ms),zL.rc=function(){switch(this.e){case 0:return new Sc;case 1:return new we;case 2:return new re;default:throw new io("No implementation is available for the layerer "+(null!=this.d?this.d:""+this.e))}};var Sz,Cz,Tz,Az,Nz=Qy(jj,"LayeringStrategy",173,EM,(function(){return lw(),_x(Oo(Nz,1),CP,173,0,[kz,Ez,_z])}));FT(542,1,Ij,we),zL.qc=function(t){var e;return e=Bh(Cz),eo(no(Af(yx(t,(RL(),IU)))))||Xu(yx(t,rX))===Xu((jm(),lX))?Tm(e,Tz):Xu(yx(t,rX))===Xu((jm(),fX))&&Tm(e,Az),eo(no(Af(yx(t,tX))))&&gd(e,(ML(),LF)),e},zL.sc=function(t,e){var n,r,i,o;for(jE(e,"Longest path layering",1),this.a=t,o=this.a.b,this.b=Ey(UX,nI,26,o.c.length,12,1),n=0,i=new $n(o);i.a<i.c.c.length;)Gh(Wv(i),9).k=n,this.b[n]=-1,++n;for(r=new $n(o);r.a<r.c.c.length;)LT(this,Gh(Wv(r),9));o.c=Ey(fM,kP,1,0,4,1),this.a=null,this.b=null,j_(e)};var Oz,Lz,Pz;Pp(jj,"LongestPathLayerer",542);FT(541,1,Ij,Sc),zL.qc=function(t){var e;return e=Bh(Oz),eo(no(Af(yx(t,(RL(),IU)))))||Xu(yx(t,rX))===Xu((jm(),lX))?(Tm(e,Lz),this.d=(jm(),lX)):Xu(yx(t,rX))===Xu((jm(),fX))&&(Tm(e,Pz),this.d=fX),e},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l;if(jE(e,"Network simplex layering",1),this.b=t,l=4*Gh(yx(t,(RL(),nX)),24).a,(c=this.b.b).c.length<1)j_(e);else{for(r=_k(function(t,e){var n,r,i,o,a;for(null==t.c||t.c.length<e.c.length?t.c=Ey(XX,Nj,26,e.c.length,13,1):qo(t.c),t.a=new je,r=0,a=new $n(e);a.a<a.c.c.length;)(i=Gh(Wv(a),9)).k=r++;for(n=new so,o=new $n(e);o.a<o.c.c.length;)i=Gh(Wv(o),9),t.c[i.k]||(oT(t,i),0==n.b||(Nc(0!=n.b),Gh(n.a.a.c,20)).Y()<t.a.c.length?is(n,t.a):os(n,t.a),t.a=new je);return n}(this,c),0);r.b!=r.d.c;)for(o=l*pv(Lu((n=Gh(Cb(r),20)).Y())),cN(po(vo(go(Jf(i=nN(n)),o),this.b),this.d==(jm(),lX)),Am(e,1)),a=this.b.c,u=new $n(i.a);u.a<u.c.c.length;){for(s=Gh(Wv(u),61);a.c.length<=s.e;)Td(a,a.c.length,new bp(this.b));ev(Gh(s.f,9),Gh(ld(a,s.e),16))}c.c=Ey(fM,kP,1,0,4,1),this.a=null,this.b=null,this.c=null,j_(e)}};Pp(jj,"NetworkSimplexLayerer",541);FT(326,1,{});Pp(Dj,"AbstractPortDistributor",326);FT(558,1,fP,Tn),zL.$b=function(t,e){return function(t,e,n){var r,i,o,a;return(o=e.g)!=(a=n.g)?o.e-a.e:(r=t.a[e.k],i=t.a[n.k],r||i?r?i?Sx(r.a,i.a):1:-1:0)}(this,Gh(t,7),Gh(e,7))};Pp(Dj,"AbstractPortDistributor/1",558);FT(564,1,{},Fy);Pp(Dj,"BarycenterHeuristic",564);FT(272,1,{272:1},On),zL.b=0,zL.d=0,zL.e=!1;var Iz=Pp(Dj,"BarycenterHeuristic/BarycenterState",272);FT(565,1,fP,An),zL.$b=function(t,e){return function(t,e,n){var r,i;return r=t.a[e.d.k][e.k],i=t.a[n.d.k][n.k],null!=r.a&&null!=i.a?rp(r.a,i.a):null!=r.a?-1:null!=i.a?1:0}(this.a,t,e)};var jz,Mz;Pp(Dj,"BarycenterHeuristic/lambda$0$Type",565);FT(192,17,{180:1,192:1,3:1,23:1,17:1},Ds),zL.rc=function(){switch(this.e){case 0:return new ca;case 1:return new Se;default:throw new io("No implementation is available for the crossing minimizer "+(null!=this.d?this.d:""+this.e))}};var Dz,Rz,Bz=Qy(Dj,"CrossingMinimizationStrategy",192,EM,(function(){return sb(),_x(Oo(Bz,1),CP,192,0,[Mz,jz])}));FT(526,1,Ij,Se),zL.qc=function(t){var e;return e=Bh(Rz),Gh(yx(t,(DL(),Mq)),18).kb((YA(),UV))&&pd(e,(ML(),AF)),e},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h;for(jE(e,"Interactive crossing minimization",1),f=0,i=new $n(t.c);i.a<i.c.c.length;){for(n=0,c=0,u=new $n((r=Gh(Wv(i),16)).a);u.a<u.c.c.length;)for((a=Gh(Wv(u),9)).i.a>0&&(n+=a.i.a+a.j.a/2,++c),l=new $n(a.f);l.a<l.c.c.length;)Gh(Wv(l),7).k=f++;for(n/=c,h=Ey($X,dP,26,r.a.c.length,12,1),o=0,s=new $n(r.a);s.a<s.c.c.length;)(a=Gh(Wv(s),9)).k=o++,h[a.k]=OO(a,n),a.g==(AS(),kH)&&$y(a,(DL(),Wq),h[a.k]);yb(r.a,new Nn(h))}_S(new $i(Ey(KX,Sj,26,f,12,1)),DC(t)),j_(e)};Pp(Dj,"InteractiveCrossingMinimizer",526);FT(527,1,fP,Nn),zL.$b=function(t,e){return function(t,e,n){var r,i,o;if(0==(r=Sx(t.a[e.k],t.a[n.k]))){if(i=Gh(yx(e,(DL(),Hq)),20),o=Gh(yx(n,Hq),20),i.kb(n))return-1;if(o.kb(e))return 1}return r}(this,Gh(t,9),Gh(e,9))};var Gz;Pp(Dj,"InteractiveCrossingMinimizer/1",527);FT(525,1,Ij,ca),zL.qc=function(t){var e;return e=Bh(Gz),Gh(yx(t,(DL(),Mq)),18).kb((YA(),UV))&&pd(e,(ML(),AF)),e},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A;if(jE(e,"Layer sweep crossing minimization",1),C=Gh(yx(t,(DL(),iU)),154),(g=t.c.c.length)<2)j_(e);else{for(function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x;for(c=e.c.c.length,t.a=Ey(TH,ZL,51,c,0,2),t.b=Ey(TH,ZL,51,c,0,2),t.k=Ey(TH,ZL,51,c,0,2),s=Ey(UX,nI,26,c,12,1),o=Ey(XX,Nj,26,c,13,1),t.c=Ey(XX,Nj,26,c,13,1),t.d=Ey(XX,Nj,26,c,13,1),v=0,m=0,f=new Uv(e.c,0);f.b<f.d.Y();)for(Nc(f.b<f.d.Y()),u=Gh(f.d.sb(f.c=f.b++),16),l=f.b-1,h=u.a.c.length,t.a[l]=Ey(TH,qI,9,h,0,1),t.k[l]=Ey(TH,qI,9,h,0,1),t.b[l]=Ey(TH,qI,9,h,0,1),s[l]=0,o[l]=!1,b=new Uv(u.a,0);b.b<b.d.Y();){for(Nc(b.b<b.d.Y()),g=Gh(b.d.sb(b.c=b.b++),9),t.b[l][b.b-1]=g,g.k=v++,(d=Gh(yx(g,(DL(),Gq)),9))&&hN(t.g,d,g,null),w=new $n(g.f);w.a<w.c.c.length;){for((y=Gh(Wv(w),7)).k=m++,i=new $n(y.e);i.a<i.c.c.length;)Gh(Wv(i),12).d.f.d==u&&++s[l];y.g==(uL(),yB)?y.e.c.length+y.b.c.length>1&&(t.c[l]=!0):y.g==BB&&y.e.c.length+y.b.c.length>1&&(t.d[l]=!0)}g.g==(AS(),CH)&&(++s[l],o[l]=!0)}for(n=!0,p=!0,a=0;a<t.d.length-1;a++)n&=r=t.c[a]||t.d[a+1],p&=!r;t.j=Ey(KX,Sj,26,m,12,1),x=Ey(UX,nI,26,m,12,1),n||(t.i=new ud(s,o,x),t.f=t.i),p||(t.e=new cd(s,o,x),t.f=t.e)}(this,t),r=iP,A=Gh(yx(t,(RL(),nX)),24).a,n=Ey(Iz,ZL,671,t.c.c.length,0,2),f=0,p=new $n(t.c);p.a<p.c.c.length;){for((d=Gh(Wv(p),16)).k=f,n[f]=Ey(Iz,{671:1,3:1,5:1,6:1},272,d.a.c.length,0,1),h=0,m=new $n(d.a);m.a<m.c.c.length;)(w=Gh(Wv(m),9)).k=h,n[f][h]=new On(w),++h;++f}for(i=new Fy(n,new QC(n,this.g),C,this.j),_=new $i(this.j),y=new Wi(this.j),T=0;T<A&&r>0;T++){u=(c=0!=mT(C,1))?0:g-1,s=this.b[u],k=0!=mT(C,1)?_:y,K_(s,i,c,!1,!0),o=iP,a=!0;do{if(Om(this.b,this.k),S=o,o=0,o+=nw(this.f,s,u),c){for(v=1;v<g;v++)l=this.b[v],py(k,s,(tm(),EU)),K_(l,i,!0,!a,!1),o+=nw(this.f,l,v),this.d[v]||this.c[v-1]?o+=GL(this.e,s,l):o+=NL(this.i,s,l),s=l;u=g-1}else{for(v=g-2;v>=0;v--)l=this.b[v],py(k,s,(tm(),_U)),K_(l,i,!1,!a,!1),o+=nw(this.f,l,v),this.c[v]||this.d[v+1]?o+=GL(this.e,l,s):o+=NL(this.i,l,s),s=l;u=0}a=!1,c=!c}while(o<S&&o>0);(o<r||S<r)&&(o<=S?(Om(this.b,this.a),r=o):(Om(this.k,this.a),r=S))}for(b=new Uv(t.c,0);b.b<b.d.Y();)for(Nc(b.b<b.d.Y()),d=Gh(b.d.sb(b.c=b.b++),16),E=this.a[b.b-1],x=new Uv(d.a,0);x.b<x.d.Y();)Nc(x.b<x.d.Y()),x.d.sb(x.c=x.b++),nh(x,E[x.b-1]);this.j=null,this.a=null,this.b=null,this.k=null,this.i=null,this.e=null,this.c=null,this.d=null,Dp(this.g),j_(e)}};Pp(Dj,"LayerSweepCrossingMinimizer",525);FT(327,326,{},Wi),zL.Hc=function(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p;if(h=this.a,!Yl(Gh(yx(t,(HL(),AR)),28))){for(a=4,o=0,f=fE(t,n).mb();f.G();)a=a<(r=IT(n,(c=Gh(f.H(),7)).g))-1?a:r-1,o=o>r?o:r;if(o>a){for(l=fE(t,n).mb();l.G();)h[(c=Gh(l.H(),7)).k]=e+IT(n,c.g)-a;return o-a}return 0}switch(n.e){case 1:for(i=0,s=0,f=new $n(t.f);f.a<f.c.c.length;)0!=(c=Gh(Wv(f),7)).b.c.length&&(++i,c.g==(uL(),wB)&&++s);for(u=e+s,p=e+i,l=fE(t,(tm(),_U)).mb();l.G();)(c=Gh(l.H(),7)).g==(uL(),wB)?(h[c.k]=u,--u):(h[c.k]=p,--p);return i;case 2:for(d=0,l=fE(t,(tm(),EU)).mb();l.G();)++d,h[(c=Gh(l.H(),7)).k]=e+d;return d;default:throw new Vr}};Pp(Dj,"LayerTotalPortDistributor",327);FT(274,326,{},$i),zL.Hc=function(t,e,n){var r,i,o,a,s,u,c,l,f,h,d;if(f=this.a,Yl(Gh(yx(t,(HL(),AR)),28)))switch(n.e){case 1:for(i=0,o=0,l=new $n(t.f);l.a<l.c.c.length;)0!=(u=Gh(Wv(l),7)).b.c.length&&(++i,u.g==(uL(),wB)&&++o);for(a=e+o*(r=1/(i+1)),d=e+1-r,c=fE(t,(tm(),_U)).mb();c.G();)(u=Gh(c.H(),7)).g==(uL(),wB)?(f[u.k]=a,a-=r):(f[u.k]=d,d-=r);break;case 2:for(s=0,l=new $n(t.f);l.a<l.c.c.length;)0==(u=Gh(Wv(l),7)).e.c.length||++s;for(h=e+(r=1/(s+1)),c=fE(t,(tm(),EU)).mb();c.G();)f[(u=Gh(c.H(),7)).k]=h,h+=r;break;default:throw new io(Bj)}else for(c=fE(t,n).mb();c.G();)f[(u=Gh(c.H(),7)).k]=e+ZT(n,u.g);return 1};Pp(Dj,"NodeRelativePortDistributor",274);FT(566,1,{},QC);Pp(zj,"ForsterConstraintResolver",566);FT(102,1,{102:1},Ag,NO),zL.w=function(){var t,e;for((e=new Qo).a+="[",t=0;t<this.d.length;t++)ec(e,cv(this.d[t])),null!=sl(this.g,this.d[0]).a&&ec(ec((e.a+="<",e),Sa(no(sl(this.g,this.d[0]).a))),">"),t<this.d.length-1&&(e.a+=", ");return e.a+="]",e.a},zL.a=0,zL.c=0,zL.f=0;var Hz=Pp(zj,"ForsterConstraintResolver/ConstraintGroup",102);FT(331,1,{});Pp(Yj,"AbstractCrossingsCounter",331);FT(568,331,{},ud);Pp(Yj,"BarthJuengerMutzelCrossingsCounter",568);FT(567,331,{},cd);Pp(Yj,"HyperedgeCrossingsCounter",567);FT(197,1,{197:1,23:1},bf),zL.F=function(t){return function(t,e){return t.e<e.e?-1:t.e>e.e?1:t.f<e.f?-1:t.f>e.f?1:ff(t)-ff(e)}(this,Gh(t,197))},zL.b=0,zL.c=0,zL.e=0,zL.f=0;var Fz=Pp(Yj,"HyperedgeCrossingsCounter/Hyperedge",197);FT(156,1,{156:1,23:1},Pg),zL.F=function(t){return function(t,e){return t.c<e.c?-1:t.c>e.c?1:t.b<e.b?-1:t.b>e.b?1:t.a!=e.a?ff(t.a)-ff(e.a):t.d==(ub(),Yz)&&e.d==zz?-1:t.d==zz&&e.d==Yz?1:0}(this,Gh(t,156))},zL.b=0,zL.c=0;var zz,Yz,Vz=Pp(Yj,"HyperedgeCrossingsCounter/HyperedgeCorner",156);FT(242,17,{242:1,3:1,23:1,17:1},iu);var qz,Uz=Qy(Yj,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",242,EM,(function(){return ub(),_x(Oo(Uz,1),CP,242,0,[Yz,zz])}));FT(545,1,Ij,Ce),zL.qc=function(t){return Gh(yx(t,(DL(),Mq)),18).kb((YA(),YV))?qz:null},zL.sc=function(t,e){var n;for(jE(e,"Interactive node placement",1),this.a=Gh(yx(t,(DL(),uU)),134),n=new $n(t.c);n.a<n.c.c.length;)mA(this,Gh(Wv(n),16));j_(e)};var Xz,Wz,$z;Pp(Vj,"InteractiveNodePlacer",545);FT(546,1,Ij,Te),zL.qc=function(t){return Gh(yx(t,(DL(),Mq)),18).kb((YA(),YV))?Xz:null},zL.sc=function(t,e){jE(e,"Linear segments node placement",1),this.b=Gh(yx(t,(DL(),uU)),134),LL(this,t),function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g;for(s=Ey(UX,nI,26,e.c.c.length,12,1),c=Ey(jH,CP,132,e.c.c.length,0,1),h=0,d=(f=t.a).length;h<d;++h){for(g=0,a=new $n((l=f[h]).f);a.a<a.c.c.length;)u=(i=Gh(Wv(a),9)).g,++s[r=Nu(i.d)],p=t.b.a*t.b.d,s[r]>0&&c[r]&&(p=rh(t.b,c[r],u)),g=Ro(g,i.d.c.b+p);for(o=new $n(l.f);o.a<o.c.c.length;)(i=Gh(Wv(o),9)).i.b=g+i.e.d,(n=i.d).c.b=g+i.e.d+i.j.b+i.e.a,c[Ky(n.b.c,n,0)]=i.g}}(this,t),function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_;r=Gh(yx(e,(RL(),zU)),15).a,f=4,i=3,x=20/(m=Gh(yx(e,nX),24).a),h=!1,u=0,a=iP;do{for(o=1!=u,l=0!=u,_=0,b=0,w=(g=t.a).length;b<w;++b)(d=g[b]).g=null,$O(t,d,o,l,r),_+=ka(d.a);do{s=xN(t,e)}while(s);for(v=0,y=(p=t.a).length;v<y;++v)if(0!=(n=op(d=p[v]).a))for(c=new $n(d.f);c.a<c.c.c.length;)Gh(Wv(c),9).i.b+=n;0==u||1==u?--f<=0&&(_<a||-f>m)?(u=2,a=iP):0==u?(u=1,a=_):(u=0,a=_):(h=_>=a||a-_<x,a=_,h&&--i)}while(!(h&&i<=0))}(this,t),function(t){var e,n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S;for(w=0,m=(y=t.a).length;w<m;++w){for(b=y[w],u=iP,c=iP,d=new $n(b.f);d.a<d.c.c.length;)(o=(f=Gh(Wv(d),9)).d?Ky(f.d.a,f,0):-1)>0?(l=Gh(ld(f.d.a,o-1),9),E=kh(t.b,f,l),g=f.i.b-f.e.d-(l.i.b+l.j.b+l.e.a+E)):g=f.i.b-f.e.d,u=g<u?g:u,o<f.d.a.c.length-1?(l=Gh(ld(f.d.a,o+1),9),E=kh(t.b,f,l),v=l.i.b-l.e.d-(f.i.b+f.j.b+f.e.a+E)):v=2*f.i.b,c=v<c?v:c;for(s=iP,i=!1,S=new $n((r=Gh(ld(b.f,0),9)).f);S.a<S.c.c.length;)for(k=Gh(Wv(S),7),p=r.i.b+k.i.b+k.a.b,n=new $n(k.b);n.a<n.c.c.length;)((e=(x=Gh(Wv(n),12).c).f.i.b+x.i.b+x.a.b-p)<=0?0-e:e)<(s<=0?0-s:s)&&(e<=0?0-e:e)<(e<0?u:c)&&(s=e,i=!0);for(_=new $n((a=Gh(ld(b.f,b.f.c.length-1),9)).f);_.a<_.c.c.length;)for(x=Gh(Wv(_),7),p=a.i.b+x.i.b+x.a.b,n=new $n(x.e);n.a<n.c.c.length;)((e=(k=Gh(Wv(n),12).d).f.i.b+k.i.b+k.a.b-p)<=0?0-e:e)<(s<=0?0-s:s)&&(e<=0?0-e:e)<(e<0?u:c)&&(s=e,i=!0);if(i&&0!=s)for(h=new $n(b.f);h.a<h.c.c.length;)(f=Gh(Wv(h),9)).i.b+=s}}(this),this.a=null,this.b=null,j_(e)};Pp(Vj,"LinearSegmentsNodePlacer",546);FT(111,1,{111:1,23:1},Kr),zL.F=function(t){return function(t,e){return t.b-e.b}(this,Gh(t,111))},zL.t=function(t){var e;return!!fl(t,111)&&(e=Gh(t,111),this.b==e.b)},zL.v=function(){return this.b},zL.w=function(){return"ls"+XS(this.f)},zL.a=0,zL.b=0,zL.c=-1,zL.d=-1,zL.i=0;var Kz,Zz=Pp(Vj,"LinearSegmentsNodePlacer/LinearSegment",111);FT(548,1,Ij,Ae),zL.qc=function(t){return Gh(yx(t,(DL(),Mq)),18).kb((YA(),YV))?Kz:null},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N;for(A=Gh(yx(t,(DL(),uU)),134),ml(),w=new _r,y=0,r=new jr,s=new $n(t.c);s.a<s.c.c.length;)for(S=null,k=null,h=new $n((o=Gh(Wv(s),16)).a);h.a<h.c.c.length;)f=Gh(Wv(h),9),++y,(b=rl(new Dr,r)).f=f,jC(w.d,f,b),f.e.d=Ou(f.e.d),k&&((v=new ee).f=0,v.a=pv(Qu(S.e.d+S.j.b+S.e.a+kh(A,Gh(k.f,9),f))),v.c=k,v.d=b,yp(k.g,v),yp(b.c,v)),S=f,k=b;for(u=new $n(t.c);u.a<u.c.c.length;)for(h=new $n((o=Gh(Wv(u),16)).a);h.a<h.c.c.length;)for(_=new $n((f=Gh(Wv(h),9)).f);_.a<_.c.c.length;)(N=(x=Gh(Wv(_),7)).i.b+x.a.b)!=Math.floor(N)&&(m=N-Qv(Yw(Math.round(N))),x.i.b-=m);for(a=new $n(t.c);a.a<a.c.c.length;)for(h=new $n((o=Gh(Wv(a),16)).a);h.a<h.c.c.length;)for(l=Sp(H_(f=Gh(Wv(h),9)));X_(l);)ny(c=Gh(xv(l),12))||c.d.f.d!=o&&(T=c.c.f.e.d+c.c.i.b+c.c.a.b,E=pv(c.d.f.e.d+c.d.i.b+c.d.a.b-T),n=rl(new Dr,r),(d=new ee).f=Lk(c),d.a=E>0?E:0,d.c=n,d.d=Gh(Up(w,c.c.f),61),yp(d.c.g,d),yp(d.d.c,d),(C=new ee).f=Lk(c),C.a=E<0?-E:0,C.c=n,C.d=Gh(Up(w,c.d.f),61),yp(C.c.g,C),yp(C.d.c,C));for(i=Gh(yx(t,(RL(),nX)),24).a*pv(Math.sqrt(y)),cN(po(go(Jf(r),i),!1),Am(e,1)),g=new $n(r.a);g.a<g.c.c.length;)null!=(p=Gh(Wv(g),61)).f&&((f=Gh(p.f,9)).i.b=p.e+f.e.d)};var Qz,Jz,tY,eY,nY;Pp(Vj,"NetworkSimplexPlacer",548);FT(141,17,{180:1,141:1,3:1,23:1,17:1},ou),zL.rc=function(){switch(this.e){case 0:return new Ne;case 1:return new Ce;case 2:return new Te;case 3:return new Bu;case 4:return new Ae;default:throw new io("No implementation is available for the node placer "+(null!=this.d?this.d:""+this.e))}};var rY,iY,oY=Qy(Vj,"NodePlacementStrategy",141,EM,(function(){return Gk(),_x(Oo(oY,1),CP,141,0,[nY,Jz,tY,Qz,eY])}));FT(544,1,Ij,Ne),zL.qc=function(t){return Gh(yx(t,(DL(),Mq)),18).kb((YA(),YV))?iY:null},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f;for(jE(e,"Simple node placement",1),f=Gh(yx(t,(DL(),uU)),134),s=0,o=new $n(t.c);o.a<o.c.c.length;){for((a=(r=Gh(Wv(o),16)).c).b=0,n=null,c=new $n(r.a);c.a<c.c.c.length;)u=Gh(Wv(c),9),n&&(a.b+=gl(f,u.g,n.g)*f.d),a.b+=u.e.d+u.j.b+u.e.a,n=u;s=Ro(s,a.b)}for(i=new $n(t.c);i.a<i.c.c.length;)for(l=(s-(a=(r=Gh(Wv(i),16)).c).b)/2,n=null,c=new $n(r.a);c.a<c.c.c.length;)u=Gh(Wv(c),9),n&&(l+=gl(f,u.g,n.g)*f.d),l+=u.e.d,u.i.b=l,l+=u.j.b+u.e.a,n=u;j_(e)};Pp(Vj,"SimpleNodePlacer",544);FT(81,1,{81:1},cA),zL.w=function(){var t;return t="",this.c==(ov(),sY)?t+=xI:this.c==aY&&(t+=mI),this.k==(ab(),uY)?t+="DOWN":this.k==cY?t+="UP":t+="BALANCED",t};var aY,sY;Pp(Uj,"BKAlignedLayout",81);FT(248,17,{248:1,3:1,23:1,17:1},au);var uY,cY,lY=Qy(Uj,"BKAlignedLayout/HDirection",248,EM,(function(){return ov(),_x(Oo(lY,1),CP,248,0,[sY,aY])}));FT(247,17,{247:1,3:1,23:1,17:1},su);var fY=Qy(Uj,"BKAlignedLayout/VDirection",247,EM,(function(){return ab(),_x(Oo(fY,1),CP,247,0,[uY,cY])}));FT(596,1,{},fu);Pp(Uj,"BKAligner",596);FT(599,1,{},yS);Pp(Uj,"BKCompactor",599);FT(279,1,{279:1},oe),zL.a=0;Pp(Uj,"BKCompactor/ClassEdge",279);FT(200,1,{200:1},Zr),zL.a=0,zL.b=0;var hY;Pp(Uj,"BKCompactor/ClassNode",200);FT(547,1,Ij,Bu),zL.qc=function(t){return Gh(yx(t,(DL(),Mq)),18).kb((YA(),YV))?hY:null},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y;switch(jE(e,"Brandes & Koepf node placement",1),this.b=t,this.d=zN(t),this.a=eo(no(Af(yx(t,(RL(),PU))))),this.e=Xu(yx(t,BU))===Xu((SS(),PV)),function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w;if(!((g=e.c.c.length)<3)){for(d=Ey(UX,nI,26,g,12,1),f=0,l=new $n(e.c);l.a<l.c.c.length;)c=Gh(Wv(l),16),d[f++]=c.a.c.length;for(h=new Uv(e.c,2),r=1;r<g-1;r++)for(Nc(h.b<h.d.Y()),p=new $n((n=Gh(h.d.sb(h.c=h.b++),16)).a),o=0,s=0,u=0;u<d[r+1];u++)if(w=Gh(Wv(p),9),u==d[r+1]-1||WA(t,w,r+1,r)){for(a=d[r]-1,WA(t,w,r+1,r)&&(a=t.d.e[Gh(Gh(Gh(ld(t.d.b,w.k),20).sb(0),27).a,9).k]);s<=u;){if(!WA(t,y=Gh(ld(n.a,s),9),r+1,r))for(b=Gh(ld(t.d.b,y.k),20).mb();b.G();)v=Gh(b.H(),27),((i=t.d.e[Gh(v.a,9).k])<o||i>a)&&mp(t.c,Gh(v.b,12));++s}o=a}}}(this,t),kw(4,JP),h=new sw(4),Gh(yx(t,BU),124).e){case 3:d=new cA(t,this.d.d,(ab(),uY),(ov(),aY)),h.c[h.c.length]=d;break;case 1:p=new cA(t,this.d.d,(ab(),cY),(ov(),aY)),h.c[h.c.length]=p;break;case 4:b=new cA(t,this.d.d,(ab(),uY),(ov(),sY)),h.c[h.c.length]=b;break;case 2:y=new cA(t,this.d.d,(ab(),cY),(ov(),sY)),h.c[h.c.length]=y;break;default:d=new cA(t,this.d.d,(ab(),uY),(ov(),aY)),p=new cA(t,this.d.d,cY,aY),b=new cA(t,this.d.d,uY,sY),y=new cA(t,this.d.d,cY,sY),h.c[h.c.length]=b,h.c[h.c.length]=y,h.c[h.c.length]=d,h.c[h.c.length]=p}for(n=new fu(t,this.d),o=new $n(h);o.a<o.c.c.length;)dL(n,r=Gh(Wv(o),81),this.c),WN(r);for(l=new yS(t,this.d),a=new $n(h);a.a<a.c.c.length;)QO(l,r=Gh(Wv(a),81));if(this.a)for(s=new $n(h);s.a<s.c.c.length;)r=Gh(Wv(s),81),Ih(),fT(r);if(c=null,this.e&&vN(this,t,u=function(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_;for(b=e.c.length,i=new cA(t.b,n,null,null),_=Ey($X,dP,26,b,12,1),d=Ey($X,dP,26,b,12,1),h=Ey($X,dP,26,b,12,1),p=0,s=0;s<b;s++)d[s]=iP,h[s]=lP;for(u=0;u<b;u++)for(my(u,e.c.length),r=Gh(e.c[u],81),_[u]=fT(r),_[p]>_[u]&&(p=u),l=new $n(t.b.c);l.a<l.c.c.length;)for(v=new $n(Gh(Wv(l),16).a);v.a<v.c.c.length;)g=Gh(Wv(v),9),m=no(r.n[g.k])+no(r.d[g.k]),d[u]=d[u]<m?d[u]:m,h[u]=Ro(h[u],m+g.j.b);for(x=Ey($X,dP,26,b,12,1),c=0;c<b;c++)(my(c,e.c.length),Gh(e.c[c],81)).k==(ab(),uY)?x[c]=d[p]-d[c]:x[c]=h[p]-h[c];for(o=Ey($X,dP,26,b,12,1),f=new $n(t.b.c);f.a<f.c.c.length;)for(w=new $n(Gh(Wv(f),16).a);w.a<w.c.c.length;){for(y=Gh(Wv(w),9),a=0;a<b;a++)o[a]=no((my(a,e.c.length),Gh(e.c[a],81)).n[y.k])+no((my(a,e.c.length),Gh(e.c[a],81)).d[y.k])+x[a];Nd(o),i.n[y.k]=(o[1]+o[2])/2,i.d[y.k]=0}return i}(this,h,this.d.d))&&(c=u),!c)for(s=new $n(h);s.a<s.c.c.length;)vN(this,t,r=Gh(Wv(s),81))&&(!c||fT(c)>fT(r))&&(c=r);for(!c&&(my(0,h.c.length),c=Gh(h.c[0],81)),f=new $n(t.c);f.a<f.c.c.length;)for(v=new $n(Gh(Wv(f),16).a);v.a<v.c.c.length;)(g=Gh(Wv(v),9)).i.b=no(c.n[g.k])+no(c.d[g.k]);for(this.a&&(Ih(),kT(c),function(t){var e,n,r,i,o,a;for(ml(),n=new ey,o=new Yn(new zn(new Dd((Yc(),new Kn(t.f))).a).a.bb().mb());o.a.G();){if(r=Gh(o.a.H(),21),!(i=Gh(r.yb(),9))){Ih();break}(e=Gh(xw(n,a=t.i[i.k]),20))||Sk(n,a,e=new je),e.ib(i)}}(c)),i=new $n(h);i.a<i.c.c.length;)(r=Gh(Wv(i),81)).f=null,r.b=null,r.a=null,r.d=null,r.i=null,r.g=null,r.n=null;!function(t){t.a=null,t.e=null,t.b.c=Ey(fM,kP,1,0,4,1),t.f.c=Ey(fM,kP,1,0,4,1),t.c=null}(this.d),this.c.a.Q(),j_(e)},zL.a=!1,zL.e=!1;var dY,pY;Pp(Uj,"BKNodePlacer",547);FT(194,17,{194:1,3:1,23:1,17:1},cu);var gY,vY=Qy(Uj,"CompactionStrategy",194,EM,(function(){return Dw(),_x(Oo(vY,1),CP,194,0,[dY,pY])}));FT(597,1,{},ae),zL.d=0;Pp(Uj,"NeighborhoodInformation",597);FT(598,1,fP,In),zL.$b=function(t,e){return function(t,e,n){var r;return pv((r=t.a.e[Gh(e.a,9).k]-t.a.e[Gh(n.a,9).k])>0?1:r<0?-1:0)}(this,Gh(t,27),Gh(e,27))};Pp(Uj,"NeighborhoodInformation/NeighborComparator",598);FT(334,1,{});Pp(Uj,"ThresholdStrategy",334);FT(602,334,{},_i),zL.Ic=function(t,e,n){return this.a.k==(ab(),cY)?QI:JI},zL.Jc=function(){};Pp(Uj,"ThresholdStrategy/NullThresholdStrategy",602);FT(249,1,{249:1},hu),zL.c=!1,zL.d=!1;Pp(Uj,"ThresholdStrategy/Postprocessable",249);FT(603,334,{},Ei),zL.Ic=function(t,e,n){var r,i,o;return i=e==n,r=this.a.a[n.k]==e,i||r?(o=t,this.a.c,ov(),i&&(o=$N(this,e,!0)),(o==1/0||o==-1/0)&&r&&(o=$N(this,n,!1)),o):t},zL.Jc=function(){for(var t,e,n;0!=this.d.b;)(e=UA(this,n=Gh(qg(this.d),249))).a&&(t=e.a,this.c.a[t.c.f.d.k]!==this.c.a[t.d.f.d.k]&&(TT(this,n)||ac(this.e,n)));for(;0!=this.e.a.c.length;)TT(this,Gh(Gx(this.e),249))};Pp(Uj,"ThresholdStrategy/SimpleThresholdStrategy",603);FT(423,1,{180:1},se),zL.rc=function(){switch(this.a.e){case 1:return new Gu;case 3:return new Le;default:return new Oe}};var bY,yY,wY,mY,xY,_Y,EY,kY;Pp(Xj,"EdgeRouterFactory",423);FT(538,1,Ij,Oe),zL.qc=function(t){var e,n;return n=Gh(yx(t,(DL(),Mq)),18),e=new Z_,n.kb((YA(),VV))&&(Tm(e,mY),Tm(e,_Y)),(n.kb(UV)||eo(no(Af(yx(t,(RL(),RU))))))&&(Tm(e,_Y),n.kb(XV)&&Tm(e,EY)),n.kb(YV)&&Tm(e,wY),n.kb($V)&&Tm(e,kY),n.kb(qV)&&Tm(e,xY),n.kb(HV)&&Tm(e,bY),n.kb(zV)&&Tm(e,yY),e},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d;jE(e,"Orthogonal edge routing",1),h=Gh(yx(t,(DL(),uU)),134),eo(no(Af(yx(t,(HL(),tR))))),l=new hC(0,h.a),d=0,o=new Uv(t.c,0),a=null,s=null;do{c=(u=o.b<o.d.Y()?(Nc(o.b<o.d.Y()),Gh(o.d.sb(o.c=o.b++),16)):null)?u.a:null,a&&(_O(a,d),d+=a.c.a),f=tO(l,t,s,c,a?d+h.b:d),r=!a||Zu(s,(Fk(),NY)),i=!u||Zu(c,(Fk(),NY)),f>0?(n=h.b+(f-1)*h.a,u&&(n+=h.b),n<h.f&&!r&&!i&&(n=h.f),d+=n):!r&&!i&&(d+=h.f),a=u,s=c}while(u);t.e.a=d,j_(e)};Pp(Xj,"OrthogonalEdgeRouter",538);FT(277,1,{},hC),zL.a=0,zL.c=0;Pp(Xj,"OrthogonalRoutingGenerator",277);FT(118,1,{118:1},Bw),zL.w=function(){return this.a+"->"+this.b},zL.c=0;Pp(Xj,"OrthogonalRoutingGenerator/Dependency",118);FT(80,1,{80:1,23:1},zm),zL.F=function(t){return function(t,e){return t.d-e.d}(this,Gh(t,80))},zL.t=function(t){var e;return!!fl(t,80)&&(e=Gh(t,80),this.d==e.d)},zL.v=function(){return this.d},zL.w=function(){var t,e,n,r;for(t=new Uo("{"),r=new $n(this.g);r.a<r.c.c.length;)null==(e=ry((n=Gh(Wv(r),7)).f))&&(e="n"+Bf(n.f)),t.a+=""+e,r.a<r.c.c.length&&(t.a+=",");return t.a+="}",t.a},zL.a=NaN,zL.c=0,zL.d=0,zL.f=0,zL.i=0,zL.k=NaN;Pp(Xj,"OrthogonalRoutingGenerator/HyperNode",80);FT(580,1,{},jn),zL.Kc=function(t,e){var n,r,i,o,a,s,u,c,l,f;for(f=e+t.i*this.a.c,s=new $n(t.g);s.a<s.c.c.length;)for(a=Gh(Wv(s),7),u=Gm(_x(Oo(nD,1),RI,10,0,[a.f.i,a.i,a.a])).a,r=new $n(a.e);r.a<r.c.c.length;)c=(n=Gh(Wv(r),12)).d,(u-(l=Gm(_x(Oo(nD,1),RI,10,0,[c.f.i,c.i,c.a])).a)<=0?0-(u-l):u-l)>cj&&(i=new Za(u,f),Nh(n.a,i),FA(this.a,n,t,i,!1),o=new Za(l,f),Nh(n.a,o),FA(this.a,n,t,o,!1))},zL.Lc=function(t){return t.f.i.a+t.i.a+t.a.a},zL.Mc=function(){return uL(),DB},zL.Nc=function(){return uL(),wB};Pp(Xj,"OrthogonalRoutingGenerator/NorthToSouthRoutingStrategy",580);FT(581,1,{},Mn),zL.Kc=function(t,e){var n,r,i,o,a,s,u,c,l,f;for(f=e-t.i*this.a.c,s=new $n(t.g);s.a<s.c.c.length;)for(a=Gh(Wv(s),7),u=Gm(_x(Oo(nD,1),RI,10,0,[a.f.i,a.i,a.a])).a,r=new $n(a.e);r.a<r.c.c.length;)c=(n=Gh(Wv(r),12)).d,(u-(l=Gm(_x(Oo(nD,1),RI,10,0,[c.f.i,c.i,c.a])).a)<=0?0-(u-l):u-l)>cj&&(i=new Za(u,f),Nh(n.a,i),FA(this.a,n,t,i,!1),o=new Za(l,f),Nh(n.a,o),FA(this.a,n,t,o,!1))},zL.Lc=function(t){return t.f.i.a+t.i.a+t.a.a},zL.Mc=function(){return uL(),wB},zL.Nc=function(){return uL(),DB};Pp(Xj,"OrthogonalRoutingGenerator/SouthToNorthRoutingStrategy",581);FT(579,1,{},Dn),zL.Kc=function(t,e){var n,r,i,o,a,s,u,c,l,f;for(f=e+t.i*this.a.c,s=new $n(t.g);s.a<s.c.c.length;)for(a=Gh(Wv(s),7),u=Gm(_x(Oo(nD,1),RI,10,0,[a.f.i,a.i,a.a])).b,r=new $n(a.e);r.a<r.c.c.length;)c=(n=Gh(Wv(r),12)).d,(u-(l=Gm(_x(Oo(nD,1),RI,10,0,[c.f.i,c.i,c.a])).b)<=0?0-(u-l):u-l)>cj&&(i=new Za(f,u),Nh(n.a,i),FA(this.a,n,t,i,!0),o=new Za(f,l),Nh(n.a,o),FA(this.a,n,t,o,!0))},zL.Lc=function(t){return t.f.i.b+t.i.b+t.a.b},zL.Mc=function(){return uL(),yB},zL.Nc=function(){return uL(),BB};var SY,CY,TY,AY,NY;Pp(Xj,"OrthogonalRoutingGenerator/WestToEastRoutingStrategy",579);FT(535,1,Ij,Gu),zL.qc=function(t){var e,n;return n=Gh(yx(t,(DL(),Mq)),18),e=new Z_,(n.kb((YA(),UV))||eo(no(Af(yx(t,(RL(),RU))))))&&(Tm(e,TY),n.kb(XV)&&Tm(e,AY)),n.kb(HV)&&Tm(e,SY),n.kb(zV)&&Tm(e,CY),e},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x;for(jE(e,"Polyline edge routing",1),f=Gh(yx(t,(DL(),sU)),15).a,n=Gh(yx(t,(RL(),DU)),15).a,v=0,0!=t.c.c.length&&(v=.4*n*(b=NT(Gh(ld(t.c,0),16)))),o=new Uv(t.c,0);o.b<o.d.Y();){for(Nc(o.b<o.d.Y()),(r=Zu(i=Gh(o.d.sb(o.c=o.b++),16),NY))&&v>0&&(v-=f),_O(i,v),u=0,l=new $n(i.a);l.a<l.c.c.length;){for(s=0,d=Sp(H_(c=Gh(Wv(l),9)));X_(d);)p=Iv((h=Gh(xv(d),12)).c).b,g=Iv(h.d).b,i==h.d.f.d&&(y=h.c,w=h.d,m=(Gm(_x(Oo(nD,1),RI,10,0,[y.f.i,y.i,y.a])).b+Gm(_x(Oo(nD,1),RI,10,0,[w.f.i,w.i,w.a])).b)/2,x=y.g==(uL(),yB)?new Za(v+y.f.d.c.a+.4*n*(p-g<=0?0-(p-g):p-g),m):new Za(v-.4*n*(p-g<=0?0-(p-g):p-g),m),Hl(h.a,0,x),h.c.g==BB&&(p=0,g=0)),s=s>(g-p<=0?0-(g-p):g-p)?s:g-p<=0?0-(g-p):g-p;switch(c.g.e){case 0:case 4:case 1:case 3:QN(this,c,v)}u=u>s?u:s}o.b<o.d.Y()&&(u=u>(b=NT((Nc(o.b<o.d.Y()),Gh(o.d.sb(o.c=o.b++),16))))?u:b,Nc(o.b>0),o.a.sb(o.c=--o.b)),a=.4*n*u,!r&&o.b<o.d.Y()&&(a+=f),v+=i.c.a+a}this.a.a.Q(),t.e.a=v,j_(e)};Pp(Xj,"PolylineEdgeRouter",535);FT(536,1,oj,ue),zL.D=function(t){return Sm(Gh(t,9))};Pp(Xj,"PolylineEdgeRouter/1",536);FT(75,1,{75:1},m_),zL.w=function(){var t,e,n,r;for(n=new Qo,this.e&&ec(ec(n,df(this.e)),": "),e=_k(iv(this),0);e.b!=e.d.c;)ec(ec(Yp(ec(n,null==(r=iy(t=Gh(Cb(e),7)))?"p_"+t.k:"p_"+r),32),df(t.g))," / ");return function(t,e){return td(t.a,0,e)}(n,pc(n.a)-2-1)},zL.j=0,zL.k=0;var OY,LY,PY,IY,jY,MY,DY,RY,BY,GY,HY,FY,zY,YY,VY,qY,UY,XY,WY,$Y,KY,ZY,QY,JY,tV,eV,nV,rV,iV;Pp(Wj,"ConnectedSelfLoopComponent",75);FT(60,17,{60:1,3:1,23:1,17:1},mb),zL.c=0;var oV=Qy(Wj,"LoopSide",60,EM,Lx);FT(203,1,{},VE,FN,mk),zL.w=function(){return this.b.w()},zL.c=0,zL.d=!1,zL.e=!1,zL.f=!1,zL.i=0,zL.j=0;Pp(Wj,"NubSpline",203);FT(92,1,{92:1},$g,yA);Pp(Wj,"NubSpline/PolarCP",92);FT(281,203,{},ig);Pp(Wj,"NubsSelfLoop",281);FT(112,1,{},kC,jk,Pb,lC,SC),zL.a=gI,zL.b=Ej,zL.c=gI,zL.d=Ej;var aV,sV,uV,cV,lV;Pp(Wj,"Rectangle",112);FT(537,1,Ij,Le),zL.qc=function(t){var e,n;return e=new Z_,(n=Gh(yx(t,(DL(),Mq)),18)).kb((YA(),$V))&&Tm(e,lV),n.kb(HV)&&Tm(e,aV),(n.kb(UV)||eo(no(Af(yx(t,(RL(),RU))))))&&(Tm(e,uV),n.kb(XV)&&Tm(e,cV)),n.kb(zV)&&Tm(e,sV),e},zL.sc=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S,C,T,A,N,O;jE(e,"Spline edge routing",1),y=Gh(yx(t,(DL(),sU)),15).a,this.a=y*Gh(yx(t,(RL(),DU)),15).a,O=0,p=new $n(t.c),g=null,ml(),A=new _r,T=new je,u=!0,c=!0;do{for(m=p.a<p.c.c.length?Gh(Wv(p),16):null,f=new je,a=new je,v=new Oc,_=new Oc,S=new Oc,lL(new Qa(g,m),new Qa(v,_),a,A,T,S),fL(v,_,(av(),fV),!0,a,f),fL(v,_,fV,!1,a,f),fL(v,_,hV,!0,a,f),fL(v,_,hV,!1,a,f),wN(a,v,_,f),C=new Uv(f,0);C.b<C.d.Y();)for(Nc(C.b<C.d.Y()),l=Gh(C.d.sb(C.c=C.b++),77),N=new Uv(f,C.b);N.b<N.d.Y();)Nc(N.b<N.d.Y()),rL(l,Gh(N.d.sb(N.c=N.b++),77));if(TL(f,Gh(yx(t,iU),154)),RO(f),x=O+10,m){for(c=!m||Zu(m.a,(Fk(),NY)),b=-1,i=new $n(f);i.a<i.c.c.length;)b=Go(b,(n=Gh(Wv(i),77)).n);++b>0?((h=(b+1)*this.a)<y&&!u&&!c&&(h=y),x+=h):u||c||IE(g)||IE(m)||(x+=y),_O(m,x)}for(k=new Yn(new zn(S.a).a.bb().mb());k.a.G();)for(s=Gh(k.a.H(),21),w=(E=Gh(s.yb(),12)).c.f.i,Nm(E.a,w),d=new $n(E.b);d.a<d.c.c.length;)Lf(Gh(Wv(d),33).i,w);for(o=new $n(f);o.a<o.c.c.length;)(n=Gh(Wv(o),77)).f?GC(n,O):GN(this,n,O,x);if(m)O=x+m.c.a+10;else{for(b=-1,i=new $n(f);i.a<i.c.c.length;)b=Go(b,(n=Gh(Wv(i),77)).n);b>=0&&(O+=(b+2)*this.a)}g=m,u=c}while(m);for(r=new $n(T);r.a<r.c.c.length;)xL(n=Gh(Wv(r),12),A);t.e.a=O,j_(e)},zL.a=3;Pp(Wj,"SplineEdgeRouter",537);FT(117,1,{117:1},oy),zL.w=function(){return this.a+" ->("+this.c+") "+this.b},zL.c=0;var fV,hV;Pp(Wj,"SplineEdgeRouter/Dependency",117);FT(223,17,{223:1,3:1,23:1,17:1},du);var dV=Qy(Wj,"SplineEdgeRouter/SideToProcess",223,EM,(function(){return av(),_x(Oo(dV,1),CP,223,0,[fV,hV])}));FT(77,1,{77:1,23:1},YC,mO),zL.F=function(t){return function(t,e){return t.i-e.i}(this,Gh(t,77))},zL.a=0,zL.b=0,zL.e=0,zL.f=!1,zL.i=0,zL.k=0,zL.n=0,zL.p=0;var pV,gV,vV,bV,yV,wV;Pp(Wj,"SplineEdgeRouter/SplineHyperEdge",77);FT(123,17,{123:1,3:1,23:1,17:1},pu);var mV,xV,_V,EV,kV=Qy(Jj,"ContentAlignment",123,EM,(function(){return CS(),_x(Oo(kV,1),CP,123,0,[wV,yV,bV,gV,pV,vV])}));FT(218,17,{218:1,3:1,23:1,17:1},gu);var SV,CV,TV,AV,NV,OV=Qy(Jj,"EdgeConstraint",218,EM,(function(){return Ox(),_x(Oo(OV,1),CP,218,0,[_V,xV,EV])}));FT(115,17,{115:1,3:1,23:1,17:1},vu);var LV,PV,IV,jV,MV,DV,RV,BV=Qy(Jj,"EdgeLabelSideSelection",115,EM,(function(){return fS(),_x(Oo(BV,1),CP,115,0,[CV,SV,AV,TV,NV])}));FT(124,17,{124:1,3:1,23:1,17:1},bu);var GV,HV,FV,zV,YV,VV,qV,UV,XV,WV,$V,KV=Qy(Jj,"FixedAlignment",124,EM,(function(){return SS(),_x(Oo(KV,1),CP,124,0,[MV,jV,RV,IV,DV,PV])}));FT(113,17,{113:1,3:1,23:1,17:1},yu);var ZV,QV,JV,tq,eq,nq,rq,iq,oq=Qy(Jj,"GraphProperties",113,EM,(function(){return YA(),_x(Oo(oq,1),CP,113,0,[FV,YV,VV,qV,UV,XV,$V,HV,zV,WV])}));FT(110,17,{110:1,3:1,23:1,17:1},xb),zL.a=!1,zL.b=!1,zL.c=!1;var aq,sq,uq,cq,lq=Qy(Jj,"GreedySwitchType",110,EM,(function(){return hO(),_x(Oo(lq,1),CP,110,0,[QV,nq,JV,rq,tq,iq,eq,ZV])}));FT(140,17,{140:1,3:1,23:1,17:1},wu);var fq,hq,dq=Qy(Jj,"InLayerConstraint",140,EM,(function(){return Mw(),_x(Oo(dq,1),CP,140,0,[uq,cq,sq])}));FT(174,17,{174:1,3:1,23:1,17:1},mu);var pq,gq,vq,bq,yq,wq,mq,xq,_q,Eq,kq,Sq,Cq,Tq,Aq,Nq,Oq,Lq,Pq,Iq,jq,Mq,Dq,Rq,Bq,Gq,Hq,Fq,zq,Yq,Vq,qq,Uq,Xq,Wq,$q,Kq,Zq,Qq,Jq,tU,eU,nU,rU,iU,oU,aU,sU,uU,cU,lU,fU,hU,dU,pU,gU,vU,bU,yU,wU,mU=Qy(Jj,"InteractiveReferencePoint",174,EM,(function(){return ob(),_x(Oo(mU,1),CP,174,0,[fq,hq])}));FT(85,17,{85:1,3:1,23:1,17:1},xu);var xU,_U,EU,kU,SU=Qy(Jj,"LayerConstraint",85,EM,(function(){return Hk(),_x(Oo(SU,1),CP,85,0,[wU,gU,vU,bU,yU])}));FT(219,17,{219:1,3:1,23:1,17:1},_u);var CU,TU,AU,NU,OU,LU,PU,IU,jU,MU,DU,RU,BU,GU,HU,FU,zU,YU,VU,qU,UU,XU,WU,$U,KU,ZU,QU,JU,tX,eX,nX,rX,iX,oX,aX,sX=Qy(Jj,"PortType",219,EM,(function(){return tm(),_x(Oo(sX,1),CP,219,0,[kU,_U,EU])}));FT(153,17,{153:1,3:1,23:1,17:1},Eu);var uX,cX=Qy(Jj,"SelfLoopPlacement",153,EM,(function(){return CE(),_x(Oo(cX,1),CP,153,0,[iX,aX,oX])}));FT(134,1,{134:1},iL),zL.a=0,zL.b=0,zL.c=0,zL.d=0,zL.e=0,zL.f=0;var lX,fX,hX;Pp(Jj,"Spacings",134);FT(172,17,{172:1,3:1,23:1,17:1},ku);var dX,pX=Qy(Jj,"WideNodesStrategy",172,EM,(function(){return jm(),_x(Oo(pX,1),CP,172,0,[lX,fX,hX])}));FT(644,1,{});Pp(wP,"OutputStream",644);FT(645,644,{});Pp(wP,"FilterOutputStream",645);FT(291,645,{},ce);Pp(wP,"PrintStream",291);FT(255,1,{}),zL.w=function(){return this.a};Pp(vP,"AbstractStringBuilder",255);FT(621,95,JL,ki);Pp(vP,"ArrayIndexOutOfBoundsException",621);FT(290,72,JL,Ur,mo);Pp(vP,"ArrayStoreException",290);FT(252,46,QL);Pp(vP,"Error",252);FT(84,252,QL,xr,aw);var gX,vX;Pp(vP,"AssertionError",84);XL={3:1,349:1,23:1};var bX=Pp(vP,"Boolean",349);WL={3:1,23:1,184:1,231:1};var yX=Pp(vP,"Double",184);FT(15,231,{3:1,23:1,15:1,231:1},Bn,Gn),zL.F=function(t){return function(t,e){return Sx(t.a,e.a)}(this,Gh(t,15))},zL.t=function(t){return fl(t,15)&&Gh(t,15).a==this.a},zL.v=function(){return pv(this.a)},zL.w=function(){return t=this.a,oi(),""+t;var t},zL.a=0;var wX=Pp(vP,"Float",15);FT(101,72,JL,Xr,xo);var mX,xX;Pp(vP,"IllegalStateException",101);FT(608,72,JL,_o);Pp(vP,"NegativeArraySizeException",608);FT(76,72,{3:1,54:1,76:1,46:1},Wr,Eo);Pp(vP,"NullPointerException",76);FT(130,29,{3:1,54:1,29:1,130:1,46:1},Si,Wo);Pp(vP,"NumberFormatException",130);FT(146,1,{3:1,146:1},Ig),zL.t=function(t){var e;return!!fl(t,146)&&(e=Gh(t,146),this.c==e.c&&xg(this.d,e.d)&&xg(this.a,e.a)&&xg(this.b,e.b))},zL.v=function(){return Vx(_x(Oo(fM,1),kP,1,4,[F_(this.c),this.a,this.d,this.b]))},zL.w=function(){return this.a+"."+this.d+"("+(null!=this.b?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},zL.c=0;var _X=Pp(vP,"StackTraceElement",146);FT(98,255,{345:1},Qo,Jo,Uo);var EX;Pp(vP,"StringBuilder",98);FT(45,72,{3:1,54:1,46:1,45:1},$r,ko);Pp(vP,"UnsupportedOperationException",45);FT(213,638,IP),zL.Q=function(){by(this)},zL.R=function(t){return Vy(this,t)},zL.ab=function(t){return Wx(this,t,this.e)||Wx(this,t,this.d)},zL.bb=function(){return new Hn(this)},zL.cb=function(t){return Up(this,t)},zL.db=function(t,e){return dg(this,t,e)},zL.eb=function(t){return qd(this,t)},zL.Y=function(){return Bs(this)};Pp(jP,"AbstractHashMap",213);FT(120,641,DP,Hn),zL.Q=function(){this.a.Q()},zL.kb=function(t){return cb(this,t)},zL.mb=function(){return new zx(this.a)},zL.nb=function(t){var e;return!!cb(this,t)&&(e=Gh(t,21).yb(),this.a.eb(e),!0)},zL.Y=function(){return this.a.Y()};Pp(jP,"AbstractHashMap/EntrySet",120);FT(148,1,PP,zx),zL.H=function(){return zw(this)},zL.G=function(){return this.b},zL.I=function(){Gy(this)},zL.b=!1;Pp(jP,"AbstractHashMap/EntrySetIterator",148);FT(162,1,PP,Fn),zL.G=function(){return this.b<this.d.Y()},zL.H=function(){return Nc(this.G()),this.d.sb(this.c=this.b++)},zL.I=function(){ng(this)},zL.b=0,zL.c=-1;Pp(jP,"AbstractList/IteratorImpl",162);FT(43,162,GP,Uv),zL.J=function(t){eh(this,t)},zL.K=function(){return this.b>0},zL.L=function(){return this.b},zL.M=function(){return sp(this)},zL.N=function(){return this.b-1},zL.O=function(t){nh(this,t)};Pp(jP,"AbstractList/ListIteratorImpl",43);FT(258,647,RP,Yv),zL.rb=function(t,e){wy(t,this.b),this.c.rb(this.a+t,e),++this.b},zL.sb=function(t){return my(t,this.b),this.c.sb(this.a+t)},zL.vb=function(t){var e;return my(t,this.b),e=this.c.vb(this.a+t),--this.b,e},zL.wb=function(t,e){return my(t,this.b),this.c.wb(this.a+t,e)},zL.Y=function(){return this.b},zL.a=0,zL.b=0;Pp(jP,"AbstractList/SubList",258);FT(36,641,DP,zn),zL.Q=function(){this.a.Q()},zL.kb=function(t){return this.a.R(t)},zL.mb=function(){return new Yn(this.a.bb().mb())},zL.nb=function(t){return!!this.a.R(t)&&(this.a.eb(t),!0)},zL.Y=function(){return this.a.Y()};Pp(jP,"AbstractMap/1",36);FT(40,1,PP,Yn),zL.G=function(){return this.a.G()},zL.H=function(){return Gh(this.a.H(),21).yb()},zL.I=function(){this.a.I()};Pp(jP,"AbstractMap/1/1",40);FT(211,640,MP,Vn),zL.Q=function(){this.a.Q()},zL.kb=function(t){return this.a.ab(t)},zL.mb=function(){return new qn(this.a.bb().mb())},zL.Y=function(){return this.a.Y()};Pp(jP,"AbstractMap/2",211);FT(212,1,PP,qn),zL.G=function(){return this.a.G()},zL.H=function(){return Gh(this.a.H(),21).zb()},zL.I=function(){this.a.I()};Pp(jP,"AbstractMap/2/1",212);FT(210,1,{210:1,21:1}),zL.t=function(t){var e;return!!fl(t,21)&&(e=Gh(t,21),xg(this.d,e.yb())&&xg(this.e,e.zb()))},zL.yb=function(){return this.d},zL.zb=function(){return this.e},zL.v=function(){return Bc(this.d)^Bc(this.e)},zL.Ab=function(t){return vh(this,t)},zL.w=function(){return this.d+"="+this.e};Pp(jP,"AbstractMap/AbstractEntry",210);FT(163,210,{210:1,163:1,21:1},Ru);Pp(jP,"AbstractMap/SimpleEntry",163);FT(652,1,FP),zL.t=function(t){var e;return!!fl(t,21)&&(e=Gh(t,21),xg(this.yb(),e.yb())&&xg(this.zb(),e.zb()))},zL.v=function(){return Bc(this.yb())^Bc(this.zb())},zL.w=function(){return this.yb()+"="+this.zb()};Pp(jP,zP,652);FT(639,638,IP),zL._=function(t){return xy(this,t)},zL.R=function(t){return Iu(this,t)},zL.bb=function(){return new Un(this)},zL.cb=function(t){return Wu($x(this,t))},zL.W=function(){return new Xn(this)};Pp(jP,"AbstractNavigableMap",639);FT(287,641,DP,Un),zL.kb=function(t){return fl(t,21)&&xy(this.b,Gh(t,21))},zL.mb=function(){return new fh(this.b)},zL.nb=function(t){var e;return!!fl(t,21)&&(e=Gh(t,21),My(this.b,e))},zL.Y=function(){return this.b.c};Pp(jP,"AbstractNavigableMap/EntrySet",287);FT(229,641,HP,Xn),zL.Q=function(){co(this.a)},zL.kb=function(t){return Iu(this.a,t)},zL.mb=function(){return new Wn(new fh(new Ql(this.a).b))},zL.nb=function(t){return!!Iu(this.a,t)&&(cg(this.a,t),!0)},zL.Y=function(){return this.a.c};Pp(jP,"AbstractNavigableMap/NavigableKeySet",229);FT(230,1,PP,Wn),zL.G=function(){return Rs(this.a.a)},zL.H=function(){return pf(this.a).yb()},zL.I=function(){Qh(this.a)};Pp(jP,"AbstractNavigableMap/NavigableKeySet/1",230);FT(4,1,PP,$n),zL.G=function(){return hl(this)},zL.H=function(){return Wv(this)},zL.I=function(){ap(this)},zL.a=0,zL.b=-1;Pp(jP,"ArrayList/1",4);FT(94,647,eM,Kn),zL.kb=function(t){return-1!=function(t,e){var n,r;for(n=0,r=t.Y();n<r;++n)if(xg(e,t.sb(n)))return n;return-1}(this,t)},zL.sb=function(t){return Ad(this,t)},zL.wb=function(t,e){var n;return my(t,this.a.length),n=this.a[t],Mp(this.a,t,e),n},zL.Y=function(){return this.a.length},zL.ob=function(){return Rk(this,Ey(fM,kP,1,this.a.length,4,1))},zL.pb=function(t){return Rk(this,t)};var kX,SX,CX;Pp(jP,"Arrays/ArrayList",94);FT(413,1,fP,Zn),zL.$b=function(t,e){return Kp(e,t)};Pp(jP,"Collections/2",413);FT(406,647,eM,le),zL.kb=function(t){return!1},zL.sb=function(t){return my(t,0),null},zL.mb=function(){return Dg(),Js(),TX},zL.tb=function(){return Dg(),Js(),TX},zL.Y=function(){return 0};var TX;Pp(jP,"Collections/EmptyList",406);FT(407,1,GP,fe),zL.J=function(t){throw new $r},zL.G=function(){return!1},zL.K=function(){return!1},zL.H=function(){throw new xi},zL.L=function(){return 0},zL.M=function(){throw new xi},zL.N=function(){return-1},zL.I=function(){throw new Xr},zL.O=function(t){throw new Xr};Pp(jP,"Collections/EmptyListIterator",407);FT(409,638,$P,he),zL.R=function(t){return!1},zL.ab=function(t){return!1},zL.bb=function(){return Dg(),CX},zL.cb=function(t){return null},zL.W=function(){return Dg(),CX},zL.Y=function(){return 0},zL.fb=function(){return Dg(),kX};Pp(jP,"Collections/EmptyMap",409);FT(408,641,KP,de),zL.kb=function(t){return!1},zL.mb=function(){return Dg(),Js(),TX},zL.Y=function(){return 0};var AX;Pp(jP,"Collections/EmptySet",408);FT(410,1,fP,pe),zL.$b=function(t,e){return function(t,e){return Dm(e,t)}(Gh(t,23),Gh(e,23))};Pp(jP,"Collections/ReverseComparator",410);FT(411,647,{3:1,22:1,19:1,20:1},Qn),zL.kb=function(t){return xg(this.a,t)},zL.sb=function(t){return my(t,1),this.a},zL.Y=function(){return 1};Pp(jP,"Collections/SingletonList",411);FT(217,1,MP,Jn),zL.ib=function(t){return Jr()},zL.jb=function(t){return ti()},zL.Q=function(){ei()},zL.kb=function(t){return this.b.kb(t)},zL.lb=function(t){return this.b.lb(t)},zL.V=function(){return this.b.V()},zL.mb=function(){return new tr(this.b.mb())},zL.nb=function(t){return ni()},zL.Y=function(){return this.b.Y()},zL.ob=function(){return this.b.ob()},zL.pb=function(t){return this.b.pb(t)},zL.w=function(){return Bk(this.b)};Pp(jP,"Collections/UnmodifiableCollection",217);FT(152,1,PP,tr),zL.G=function(){return this.b.G()},zL.H=function(){return this.b.H()},zL.I=function(){!function(){throw new $r}()};Pp(jP,"Collections/UnmodifiableCollectionIterator",152);FT(233,217,RP,Wl),zL.rb=function(t,e){throw new $r},zL.t=function(t){return this.a.t(t)},zL.sb=function(t){return this.a.sb(t)},zL.v=function(){return this.a.v()},zL.V=function(){return this.a.V()},zL.tb=function(){return new $l(this.a.ub(0))},zL.ub=function(t){return new $l(this.a.ub(t))},zL.vb=function(t){throw new $r},zL.wb=function(t,e){throw new $r},zL.xb=function(t,e){return new Wl(this.a.xb(t,e))};Pp(jP,"Collections/UnmodifiableList",233);FT(309,152,GP,$l),zL.J=function(t){throw new $r},zL.K=function(){return this.a.K()},zL.L=function(){return this.a.L()},zL.M=function(){return this.a.M()},zL.N=function(){return this.a.N()},zL.O=function(t){throw new $r};Pp(jP,"Collections/UnmodifiableListIterator",309);FT(305,1,IP,er),zL.Q=function(){throw new $r},zL.R=function(t){return this.c.R(t)},zL.ab=function(t){return Gs(this,t)},zL.bb=function(){return kg(this)},zL.t=function(t){return ma(this,t)},zL.cb=function(t){return this.c.cb(t)},zL.v=function(){return this.c.v()},zL.V=function(){return this.c.V()},zL.W=function(){return ug(this)},zL.db=function(t,e){throw new $r},zL.eb=function(t){throw new $r},zL.Y=function(){return this.c.Y()},zL.w=function(){return Bk(this.c)},zL.fb=function(){return Sg(this)};Pp(jP,"Collections/UnmodifiableMap",305);FT(151,217,DP,$o),zL.t=function(t){return wa(this,t)},zL.v=function(){return this.b.v()};Pp(jP,"Collections/UnmodifiableSet",151);FT(412,151,DP,Ko),zL.kb=function(t){return Hs(this,t)},zL.lb=function(t){return Fs(this,t)},zL.mb=function(){return new nr(this.b.mb())},zL.ob=function(){return zg(this)},zL.pb=function(t){return Qg(this,t)};Pp(jP,"Collections/UnmodifiableMap/UnmodifiableEntrySet",412);FT(263,1,PP,nr),zL.H=function(){return new rr(Gh(this.a.H(),21))},zL.G=function(){return this.a.G()},zL.I=function(){throw new $r};Pp(jP,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",263);FT(306,1,FP,rr),zL.t=function(t){return this.a.t(t)},zL.yb=function(){return this.a.yb()},zL.zb=function(){return this.a.zb()},zL.v=function(){return this.a.v()},zL.Ab=function(t){throw new $r},zL.w=function(){return Bk(this.a)};Pp(jP,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",306);FT(307,233,BP,Zo);Pp(jP,"Collections/UnmodifiableRandomAccessList",307);FT(308,151,HP,Kl),zL.t=function(t){return this.a.t(t)},zL.v=function(){return this.a.v()};var NX;Pp(jP,"Collections/UnmodifiableSortedSet",308);FT(522,1,fP,ge),zL.$b=function(t,e){return Md(t),Md(e),Dm(Gh(t,23),e)};Pp(jP,"Comparators/1",522);FT(202,72,JL,wi);Pp(jP,"ConcurrentModificationException",202);FT(609,72,JL,mi);Pp(jP,"EmptyStackException",609);FT(319,638,IP,yE),zL.db=function(t,e){return ih(this,t,e)},zL.Q=function(){sg(this)},zL.R=function(t){return Ud(this.a,t)},zL.ab=function(t){var e,n;for(n=new Ys(this.a);n.a<n.c.a.length;)if(e=Kb(n),xg(t,this.b[e.e]))return!0;return!1},zL.bb=function(){return new ir(this)},zL.cb=function(t){return mg(this,t)},zL.eb=function(t){return Bv(this,t)},zL.Y=function(){return this.a.c};Pp(jP,"EnumMap",319);FT(236,641,DP,ir),zL.Q=function(){sg(this.a)},zL.kb=function(t){return lb(this,t)},zL.mb=function(){return new Bd(this.a)},zL.nb=function(t){var e;return!!lb(this,t)&&(e=Gh(t,21).yb(),Bv(this.a,e),!0)},zL.Y=function(){return this.a.a.c};Pp(jP,"EnumMap/EntrySet",236);FT(237,1,PP,Bd),zL.H=function(){return this.b=Kb(this.a),new Du(this.c,this.b)},zL.G=function(){return dl(this.a)},zL.I=function(){Cc(!!this.b),Bv(this.c,this.b),this.b=null};Pp(jP,"EnumMap/EntrySetIterator",237);FT(238,652,FP,Du),zL.yb=function(){return this.a},zL.zb=function(){return this.b.b[this.a.e]},zL.Ab=function(t){return Ep(this.b,this.a.e,t)};Pp(jP,"EnumMap/MapEntry",238);FT(86,641,{22:1,19:1,86:1,18:1});Pp(jP,"EnumSet",86);FT(66,86,{22:1,19:1,86:1,66:1,18:1},qh),zL.ib=function(t){return pm(this,Gh(t,17))},zL.kb=function(t){return Ud(this,t)},zL.mb=function(){return new Ys(this)},zL.nb=function(t){return Xd(this,t)},zL.Y=function(){return this.c},zL.c=0;Pp(jP,"EnumSet/EnumSetImpl",66);FT(167,1,PP,Ys),zL.H=function(){return Kb(this)},zL.G=function(){return dl(this)},zL.I=function(){Cc(-1!=this.b),Mp(this.c.b,this.b,null),--this.c.c,this.b=-1},zL.a=-1,zL.b=-1;Pp(jP,"EnumSet/EnumSetImpl/IteratorImpl",167);FT(30,213,nM,_r,Vs,sc),zL.Uc=function(t,e){return Xu(t)===Xu(e)||null!=t&&e_(t,e)},zL.Vc=function(t){return 0|V_(t)};Pp(jP,"HashMap",30);FT(50,641,rM,Qi,Ca,Rd),zL.ib=function(t){return mp(this,t)},zL.Q=function(){this.a.Q()},zL.Wc=function(){return new Rd(this)},zL.kb=function(t){return xa(this,t)},zL.V=function(){return 0==this.a.Y()},zL.mb=function(){return new Yn(new zn(this.a).a.bb().mb())},zL.nb=function(t){return pl(this,t)},zL.Y=function(){return this.a.Y()},zL.w=function(){return XS(new zn(this.a))};Pp(jP,"HashSet",50);FT(418,1,UP,Gc),zL.mb=function(){return new gv(this)},zL.c=0;Pp(jP,"InternalHashCodeMap",418);FT(312,1,PP,gv),zL.H=function(){return this.d=this.a[this.c++],this.d},zL.G=function(){var t;return this.c<this.a.length||!(t=this.b.next()).done&&(this.a=t.value[1],this.c=0,!0)},zL.I=function(){bT(this.e,this.d.yb()),0!=this.c&&--this.c},zL.c=0,zL.d=null;var OX;Pp(jP,"InternalHashCodeMap/1",312);FT(382,1,UP,Hc),zL.mb=function(){return new Qb(this)},zL.c=0,zL.d=0;Pp(jP,"InternalStringMap",382);FT(293,1,PP,Qb),zL.H=function(){return this.c=this.a,this.a=this.b.next(),new Uh(this.d,this.c,this.d.d)},zL.G=function(){return!this.a.done},zL.I=function(){dx(this.d,this.c.value[0])};Pp(jP,"InternalStringMap/1",293);FT(383,652,FP,Uh),zL.yb=function(){return this.b.value[0]},zL.zb=function(){return this.a.d!=this.c?Pu(this.a,this.b.value[0]):this.b.value[1]},zL.Ab=function(t){return tE(this.a,this.b.value[0],t)},zL.c=0;Pp(jP,"InternalStringMap/2",383);FT(155,30,nM,ey,zy),zL.Q=function(){bh(this)},zL.R=function(t){return Vy(this.c,t)},zL.ab=function(t){var e;for(e=this.b.a;e!=this.b;){if(xg(e.e,t))return!0;e=e.a}return!1},zL.bb=function(){return new sr(this)},zL.cb=function(t){return xw(this,t)},zL.db=function(t,e){return Sk(this,t,e)},zL.eb=function(t){return rw(this,t)},zL.Y=function(){return Bs(this.c)},zL.a=!1;Pp(jP,"LinkedHashMap",155);FT(176,163,{210:1,163:1,176:1,21:1},yf,nd);Pp(jP,"LinkedHashMap/ChainEntry",176);FT(270,641,DP,sr),zL.Q=function(){bh(this.a)},zL.kb=function(t){return fb(this,t)},zL.mb=function(){return new rg(this)},zL.nb=function(t){var e;return!!fb(this,t)&&(e=Gh(t,21).yb(),rw(this.a,e),!0)},zL.Y=function(){return Bs(this.a.c)};Pp(jP,"LinkedHashMap/EntrySet",270);FT(271,1,PP,rg),zL.H=function(){return By(this)},zL.G=function(){return this.b!=this.c.a.b},zL.I=function(){Cc(!!this.a),lp(this.c.a.c,this),md(this.a),qd(this.c.a.c,this.a.d),Ul(this.c.a.c,this),this.a=null};Pp(jP,"LinkedHashMap/EntrySet/EntryIterator",271);FT(70,50,rM,Oc,Zl,Dd),zL.Wc=function(){return new Dd(this)};Pp(jP,"LinkedHashSet",70);FT(372,1,GP,Vh),zL.J=function(t){wp(this,t)},zL.G=function(){return this.b!=this.d.c},zL.K=function(){return this.b.b!=this.d.a},zL.H=function(){return Cb(this)},zL.L=function(){return this.a},zL.M=function(){return $v(this)},zL.N=function(){return this.a-1},zL.I=function(){Lw(this)},zL.O=function(t){Cc(!!this.c),this.c.c=t},zL.a=0,zL.c=null;Pp(jP,"LinkedList/ListIteratorImpl",372);FT(259,1,{},ve);Pp(jP,"LinkedList/Node",259);FT(74,72,{3:1,54:1,46:1,74:1},xi);Pp(jP,"NoSuchElementException",74);FT(154,1,{154:1},Y_,vw),zL.a=0,zL.b=0;var LX,PX,IX=0;Pp(jP,"Random",154);FT(607,647,uM),zL.rb=function(t,e){Hh(t,this.a.c.length+1),Td(this.a,t,e)},zL.ib=function(t){return Oh(this.a,t)},zL.jb=function(t){return Jm(this.a,t)},zL.Q=function(){this.a.c=Ey(fM,kP,1,0,4,1)},zL.kb=function(t){return-1!=Ky(this.a,t,0)},zL.lb=function(t){return Um(this.a,t)},zL.sb=function(t){return Hh(t,this.a.c.length),ld(this.a,t)},zL.V=function(){return 0==this.a.c.length},zL.mb=function(){return new $n(this.a)},zL.vb=function(t){return Hh(t,this.a.c.length),gy(this.a,t)},zL.Xb=function(t,e){Nv(this.a,t,e)},zL.wb=function(t,e){return Hh(t,this.a.c.length),$b(this.a,t,e)},zL.Y=function(){return this.a.c.length},zL.xb=function(t,e){return new Yv(this.a,t,e)},zL.ob=function(){return zl(this.a)},zL.pb=function(t){return Dk(this.a,t)},zL.w=function(){return XS(this.a)};Pp(jP,"Vector",607);FT(337,607,uM,ri);Pp(jP,"Stack",337);FT(253,639,$P,qs,Sv),zL.Q=function(){co(this)},zL.bb=function(){return new Ql(this)},zL.db=function(t,e){return Dx(this,t,e)},zL.eb=function(t){return cg(this,t)},zL.Y=function(){return this.c},zL.c=0;Pp(jP,"TreeMap",253);FT(182,1,PP,fh),zL.H=function(){return pf(this)},zL.G=function(){return Rs(this.a)},zL.I=function(){Qh(this)};Pp(jP,"TreeMap/EntryIterator",182);FT(209,287,DP,Ql),zL.Q=function(){co(this.a)};Pp(jP,"TreeMap/EntrySet",209);FT(183,163,{210:1,163:1,21:1,183:1},Yy),zL.b=!1;var jX=Pp(jP,"TreeMap/Node",183);FT(254,1,{},be),zL.w=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},zL.a=!1,zL.b=!1,zL.c=!1;var MX,DX,RX,BX;Pp(jP,"TreeMap/State",254);FT(138,17,cM,Mu),zL.Xc=function(){return!1},zL.Yc=function(){return!1};var GX=Qy(jP,"TreeMap/SubMapType",138,EM,(function(){return cw(),_x(Oo(GX,1),CP,138,0,[MX,DX,RX,BX])}));FT(352,138,cM,Jc),zL.Yc=function(){return!0};Qy(jP,"TreeMap/SubMapType/1",352,GX,null);FT(353,138,cM,bl),zL.Xc=function(){return!0},zL.Yc=function(){return!0};Qy(jP,"TreeMap/SubMapType/2",353,GX,null);FT(354,138,cM,tl),zL.Xc=function(){return!0};Qy(jP,"TreeMap/SubMapType/3",354,GX,null);FT(191,641,{3:1,22:1,19:1,18:1,137:1,191:1},Ji,Ta),zL.ib=function(t){return Np(this,t)},zL.Q=function(){co(this.a)},zL.kb=function(t){return Iu(this.a,t)},zL.mb=function(){return new Wn(new fh(new Ql(new Xn(this.a).a).b))},zL.nb=function(t){return cf(this,t)},zL.Y=function(){return this.a.c};Pp(jP,"TreeSet",191);var HX,FX,zX,YX,VX=0,qX=0,UX=lg("int","I"),XX=lg("boolean","Z"),WX=lg("char","C"),$X=lg("double","D"),KX=lg("float","F"),ZX=function(t){return function(){return nb(t,this,arguments)}},QX=QX=function(t,e,n,r){uo();var i=VL;function o(){for(var t=0;t<i.length;t++)i[t]()}if(e,n,r,t)try{ZX(o)()}catch(n){t(e,n)}else ZX(o)()};!function(){uo();for(var t=VL,e=0;e<arguments.length;e++)t.push(arguments[e])}((function(){var n;n={layout:function(t){ZX(function(t){var e,n,r,i,o,a,s,u,c;o=new nn(t),i=_g(o,"graph"),u=_g(o,"success"),r=_g(o,"error"),a=_g(o,"options");try{if(!i||!i.kc())throw new Hi("Mandatory parameter missing, 'graph' must be specified");!function(t,e,n){var r,i,o;(i=new Nk).d=n,r=function(t,e){var n,r;return by(t.i),by(t.a),by(t.k),by(t.j),by(t.b),by(t.n),by(t.f),by(t.e),t.d&&(r=_g(t.d,IG.b))&&r.ic()&&(t.c=r.ic().a),n=function t(e,n,r){var i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x;if($y(f=new Rw,jG,n),dg(e.e,n,f),$y(f,(DL(),Zq),r),!!e.d&&iC(e.d,f,!1),gS(n,f),YI in n.a&&(b=f.a,y=Gh(_g(n,YI),69),(v=Gh(_g(y,"left"),104))&&(b.b=v.a),(m=Gh(_g(y,"top"),104))&&(b.d=m.a),(w=Gh(_g(y,"right"),104))&&(b.c=w.a),(o=Gh(_g(y,PI),104))&&(b.a=o.a)),i=Gh(na(oq),11),h=new qh(i,Gh(_p(i,i.length),11),0),$y(f,Mq,h),null==e.g&&(e.g=Af(yx(f,(Gg(),qG)))),VI in n.a){if(!(x=_g(n,VI)).hc())throw new gp("The 'children' property of nodes must be an array.",x,n);if((l=x.hc()).a.length>0){for(r&&$y(r,Vq,f),u=Ey(TH,qI,9,l.a.length,0,1),p=0;p<l.a.length;++p){if(!(c=Tw(l,p)).kc())throw new gp("A 'children' array contains a non-object node element.",c,n);a=PO(e,c.kc(),f),u[p]=a}for(d=0;d<l.a.length;++d)g=Tw(l,d).kc(),s=u[d],VI in g.a&&!eo(no(Af(yx(s,(HL(),wR)))))&&t(e,g,s)}}return f}(t,e,null),function t(e,n){var r,i,o,a,s,u;if("edges"in n.a){if(!(u=_g(n,"edges")).hc())throw new gp("The 'edges' property of a node has to be an array.",u,n);for(a=u.hc(),s=0;s<a.a.length;++s){if(!(o=Tw(a,s)).kc())throw new gp("All elements of the 'edges' property must be objects.",o,n);jL(e,o.kc())}}if(VI in n.a)for(i=_g(n,VI).hc(),s=0;s<i.a.length;++s)r=Tw(i,s).kc(),t(e,r)}(t,e),n}(i,e),o=new jb,eo(no(Af(yx(r,qG))))?function(t,e,n){jE(n,ZI,3),ZE(t.c,e,Am(n,1)),function t(e,n,r){var i,o,a,s;if(jE(r,"Recursive layout",2),0!=n.b.c.length){for(s=1/n.b.c.length,a=new $n(n.b);a.a<a.c.c.length;)o=Gh(Wv(a),9),(i=Gh(yx(o,(DL(),Vq)),55))&&(t(e,i,Am(r,s)),MN(o,i));JO(e.d,n),oO(n,r)}PN(n),j_(r)}(t,e,Am(n,1)),OL(e,Am(n,1)),j_(n)}(o,r,new Vf):function t(e,n,r){var i,o,a,s,u,c,l,f;for(c=new $n(r.b);c.a<c.c.c.length;)u=Gh(Wv(c),9),(s=Gh(yx(u,(DL(),Vq)),55))&&(f=t(e,n,s),u.j.a=(a=Gh(yx(f,xq),15).a,new Za(f.e.a+f.a.b+f.a.c+2*a,f.e.b+f.a.d+f.a.a+2*a)).a,u.j.b=(o=Gh(yx(f,xq),15).a,new Za(f.e.a+f.a.b+f.a.c+2*o,f.e.b+f.a.d+f.a.a+2*o)).b);return l=new Vf,null!=(i=Of(yx(r,(HL(),XD))))&&Mi(i,"de.cau.cs.kieler.fixed")?function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k,S;for(jE(e,"Fixed Layout",1),u=Gh(yx(t,(HL(),rR)),122),g=0,v=0,w=new $n(t.b);w.a<w.c.c.length;){for(b=Gh(Wv(w),9),(k=Gh(yx(b,IR),10))&&(b.i.a=k.a,b.i.b=k.b,Gh(yx(b,RR),86).kb((kE(),FB))&&(S=Gh(yx(b,bR),15).a,c=Gh(yx(b,vR),15).a,S>0&&c>0&&MO(b,new Za(S,c),!0))),g=Ro(g,b.i.a+b.j.a),v=Ro(v,b.i.b+b.j.b),d=new $n(b.c);d.a<d.c.c.length;)f=Gh(Wv(d),33),(k=Gh(yx(f,IR),10))&&(f.i.a=k.a,f.i.b=k.b),g=Ro(g,b.i.a+f.i.a+f.j.a),v=Ro(v,b.i.b+f.i.b+f.j.b);for(x=new $n(b.f);x.a<x.c.c.length;)for(m=Gh(Wv(x),7),(k=Gh(yx(m,IR),10))&&(m.i.a=k.a,m.i.b=k.b),_=b.i.a+m.i.a,E=b.i.b+m.i.b,g=Ro(g,_+m.j.a),v=Ro(v,E+m.j.b),h=new $n(m.c);h.a<h.c.c.length;)f=Gh(Wv(h),33),(k=Gh(yx(f,IR),10))&&(f.i.a=k.a,f.i.b=k.b),g=Ro(g,_+f.i.a+f.j.a),v=Ro(v,E+f.i.b+f.j.b);for(s=Sp(H_(b));X_(s);)o=Gh(xv(s),12),p=LO(o),g=Ro(g,p.a),v=Ro(v,p.b);for(a=Sp(G_(b));X_(a);)Xu(yx((o=Gh(xv(a),12)).c.f,(DL(),Vq)))!==Xu(t)&&(p=LO(o),g=Ro(g,p.a),v=Ro(v,p.b))}if(u==(y_(),TD))for(y=new $n(t.b);y.a<y.c.c.length;)for(b=Gh(Wv(y),9),a=Sp(H_(b));X_(a);)o=Gh(xv(a),12),0==(l=sL(o)).b?$y(o,fR,null):$y(o,fR,l);t.e.a=g,t.e.b=v,$y(t,RR,(kE(),new qh(r=Gh(na(ZB),11),Gh(_p(r,r.length),11),0))),!!(i=Gh(yx(t,(DL(),Zq)),9))&&$y(i,RR,new qh(n=Gh(na(ZB),11),Gh(_p(n,n.length),11),0)),j_(e)}(r,l):function(t,e,n){var r,i,o;if(jE(n,ZI,1),JO(t.d,e),1==(o=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p;if(t.b=t.c,p=Af(yx(e,(HL(),DR))),d=null==p||eo((Md(p),p)),o=Gh(yx(e,(DL(),Mq)),18).kb((YA(),YV)),i=Gh(yx(e,AR),28),n=!(i==(cS(),oB)||i==sB||i==aB),!d||!n&&o)h=new Kn(_x(Oo(mH,1),{38:1,39:1,42:1,3:1,8:1,5:1,6:1},55,0,[e]));else{for(f=new $n(e.b);f.a<f.c.c.length;)(c=Gh(Wv(f),9)).k=0;for(h=new je,l=new $n(e.b);l.a<l.c.c.length;)if(c=Gh(Wv(l),9),r=IN(t,c,null)){for(S_(u=new Rw,e),$y(u,Lq,Gh(r.b,18)),wd(u.a,e.a),s=Gh(r.a,20).mb();s.G();)a=Gh(s.H(),9),Oh(u.b,a),a.a=u;h.ib(u)}o&&(t.b=t.a)}return h}(t.a,e)).Y())oO(Gh(o.sb(0),55),n);else for(i=1/o.Y(),r=o.mb();r.G();)oO(Gh(r.H(),55),Am(n,i));(function(t,e,n){t.b.Fc(e,n)})(t.a,o,e),PN(e),j_(n)}(n,r,l),r}(t,o,r),function t(e,n){var r,i,o,a,s,u,c,l,f,h,d,p,g,v,b,y,w,m,x,_,E,k;for(x=new Uu(n.d),c=new je,m=new $n(n.b);m.a<m.c.c.length;)if(y=Gh(Wv(m),9),p=Gh(Up(e.j,y),69)){for(SA(e,y,p,x),E=new $n(y.f);E.a<E.c.c.length;)if(_=Gh(Wv(E),7),(g=Gh(Up(e.n,_),69))&&(SA(e,_,g,MG),Ui(g,(HL(),LR),new Ld(hf(_.g)))),Xu(yx(y,(HL(),OR)))!==Xu((jw(),dB)))for(b=new $n(_.c);b.a<b.c.c.length;)v=Gh(Wv(b),33),d=Gh(Up(e.f,v),69),SA(e,v,d,MG);if(0!=Gh(yx(y,(HL(),yR)),86).Y())for(b=new $n(y.c);b.a<b.c.c.length;)v=Gh(Wv(b),33),d=Gh(Up(e.f,v),69),SA(e,v,d,MG);for(u=Sp(H_(y));X_(u);)N_((a=Gh(xv(u),12)).d.f,y)||(c.c[c.c.length]=a)}if(k=Gh(yx(n,(DL(),Zq)),9))for(u=Sp(H_(k));X_(u);)N_((a=Gh(xv(u),12)).d.f,k)&&(c.c[c.c.length]=a);for(s=new $n(c);s.a<s.c.c.length;)for(a=Gh(Wv(s),12),h=Gh(Up(e.b,a),69),XO(e,a,h,x),b=new $n(a.b);b.a<b.c.c.length;)v=Gh(Wv(b),33),d=Gh(Up(e.f,v),69),SA(e,v,d,x);for(i=Gh(yx(n,xq),15).a,r=new Za(n.e.a+n.a.b+n.a.c+2*i,n.e.b+n.a.d+n.a.a+2*i),(f=Gh(yx(n,Zq),9))&&(f.j.a=r.a,f.j.b=r.b),l=Gh(yx(n,jG),69),ay(e,l,FI,r.a),ay(e,l,zI,r.b),w=new $n(n.b);w.a<w.c.c.length;)y=Gh(Wv(w),9),(o=Gh(yx(y,Vq),55))&&t(e,o)}(i,r)}(new xe,i.kc(),a?a.kc():null),s=i.kc().a,u&&u.kc()?FC(u.kc().a,s):FC(null,s)}catch(t){if(fl(t=Qx(t),73))c=t,r&&r.kc()?FC(r.kc().a,hT(c).a):FC(null,hT(c).a);else{if(!fl(t,54))throw A_(t);e=t,Wy(n=new Yi,"type",new Ld(ta(e.$c))),null!=e.bc()?Wy(n,MI,new Ld(e.bc())):Wy(n,MI,new Ld("null (sic)")),Wy(n,DI,new Ld(_l(new oo("\n"),new Fn(new Kn((null==e.g&&(e.g=bd(e)),e.g)))))),r&&r.kc()?FC(r.kc().a,n.a):FC(null,n.a),function t(e,n,r){var i,o,a,s,u;for(function(t){var e,n,r;for(null==t.g&&(t.g=bd(t)),e=t.g,n=0,r=e.length;n<r;++n);}(e),null==e.i&&(e.i=Ey(hM,ZL,46,0,0,1)),o=e.i,a=0,s=o.length;a<s;++a)i=o[a],t(i,n,"\t"+r);(u=e.e)&&t(u,n,r)}(e,(Ih(),EX),"")}}}(t))}},"undefined"===rP?(void 0)(n):(typeof document!==jI&&(e.$klay=n),typeof t===KL&&t.exports&&(t.exports=n),typeof document===jI&&typeof self!==jI&&self.addEventListener("message",(function(t){n.layout(t.data)}),!1))})),zX="permProps",YX=[[["locale","default"],["user.agent","gecko1_8"]]],typeof window===KL&&typeof window.$gwt===KL&&(window.$gwt[zX]=YX);QX(null,"klay",null)}()},function(t,e,n){var r;r=function(t){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 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?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){var r=n(3).Thread,i=n(2),o={animate:!0,ready:void 0,stop:void 0,fit:!0,minDist:20,padding:20,expandingFactor:-1,prelayout:{name:"cose"},maxExpandIterations:4,boundingBox:void 0,randomize:!1};function a(t){var e=this.options={};for(var n in o)e[n]=o[n];for(var n in t)e[n]=t[n]}a.prototype.run=function(){var t=this,e=this.options,n=e.cy,o=e.boundingBox||{x1:0,y1:0,w:n.width(),h:n.height()};void 0===o.x2&&(o.x2=o.x1+o.w),void 0===o.w&&(o.w=o.x2-o.x1),void 0===o.y2&&(o.y2=o.y1+o.h),void 0===o.h&&(o.h=o.y2-o.y1);var a=n.nodes(),s=n.edges(),u=n.width(),c=n.height(),l=o,f=e.padding,h=Math.max(1,.8*Math.log(a.length));a.length<100&&(h/=2),t.trigger({type:"layoutstart",layout:t});var d={x1:0,y1:0,x2:u*h,y2:c*h};l&&(d.x1=l.x1,d.y1=l.y1,d.x2=l.x2,d.y2=l.y2),d.x1+=f,d.y1+=f,d.x2-=f,d.y2-=f;var p=d.x2-d.x1,g=d.y2-d.y1,v=Date.now();if(a.size()<=1){a.positions({x:Math.round((d.x1+d.x2)/2),y:Math.round((d.y1+d.y2)/2)}),e.fit&&n.fit(e.padding);var b=Date.now();return console.info("Layout on "+a.size()+" nodes took "+(b-v)+" ms"),t.one("layoutready",e.ready),t.trigger("layoutready"),t.one("layoutstop",e.stop),void t.trigger("layoutstop")}for(var y={width:p,height:g,minDist:e.minDist,expFact:e.expandingFactor,expIt:0,maxExpIt:e.maxExpandIterations,vertices:[],edges:[],startTime:v},w=a.length-1;w>=0;w--){var m=a[w].id(),x=a[w].position();e.randomize&&(x={x:Math.round(d.x1+(d.x2-d.x1)*Math.random()),y:Math.round(d.y1+(d.y2-d.y1)*Math.random())}),y.vertices.push({id:m,x:x.x,y:x.y})}for(w=s.length-1;w>=0;w--){var _=s[w].source().id(),E=s[w].target().id();y.edges.push({src:_,tgt:E})}var k=t.thread;function S(t){for(var r=t.vertices,i=[],o=0;o<r.length;++o){var s=r[o];i[s.id]={x:s.x,y:s.y}}a.positions((function(t,e){"number"==typeof t&&(t=e);var n=t.id(),r=i[n];return{x:Math.round(d.x1+r.x),y:Math.round(d.y1+r.y)}})),e.fit&&n.fit(e.padding)}k&&!k.stopped()||(k=t.thread=r()).require(i,"Voronoi");var C=!1;if(k.on("message",(function(n){var r=n.message;e.animate&&(S(r),C||(t.trigger("layoutready"),C=!0))})),t.one("layoutready",e.ready),e.prelayout){var T=n.makeLayout(e.prelayout);T.promiseOn("layoutstop").then(A),T.run()}else A();function A(){k.pass(y).run((function(t){function e(t){for(var e,n,r,i=t.halfedges,o=0,a=0,s=0,u=0;u<i.length;++u)e=i[u].getEndpoint(),n=i[u].getStartpoint(),o+=e.x*n.y,o-=e.y*n.x,r=e.x*n.y-n.x*e.y,a+=(e.x+n.x)*r,s+=(e.y+n.y)*r;return{x:a/(r=6*(o/=2)),y:s/r}}i=_ref_("Voronoi");var n=t.width,r=t.height,o=t.minDist,a=t.expFact,s=t.maxExpIt,u=function(){t.width=n,t.height=r,t.expIt=N,t.expFact=a,t.vertices=[];for(var e=0;e<v.length;++e)t.vertices.push({id:v[e].label,x:v[e].x,y:v[e].y})},c=function(){broadcast(t)},l=t.vertices,f=(t.edges,1/0),h=-1/0,d=1/0,p=-1/0;l.forEach((function(t){f=Math.min(t.x,f),h=Math.max(t.x,h),d=Math.min(t.y,d),p=Math.max(t.y,p)}));var g=function(t,e,n,r,i){var o=(t-e)/(n-e);return isNaN(o)&&(o=Math.random()),r+(i-r)*o},v=l.map((function(t){return{label:t.id,x:g(t.x,f,h,0,n),y:g(t.y,d,p,0,r)}}));if(u(),c(),s<=0)return t;for(var b=new i,y={xl:0,xr:n,yt:0,yb:r},w=[],m=0;m<v.length;++m)w[v[m].label]=v[m];function x(t){for(var e,n,r,i,a=0,s=0;s<t.length;++s){var u=t[s];null!=u.lSite&&null!=u.rSite&&(e=u.lSite,n=u.rSite,r=void 0,i=void 0,r=e.x-n.x,i=e.y-n.y,Math.sqrt(r*r+i*i)<o)&&++a}return a}var _=b.compute(v,y),E=_.cells;for(m=0;m<E.length;++m){var k=(L=E[m]).site,S=e(L);(P=w[k.label]).x=S.x,P.y=S.y}a<0&&(a=Math.max(.05,Math.min(.1,o/Math.sqrt(n*r/v.length)*.5)));for(var C=x(_.edges),T=C<=0||s<=0,A=0,N=0;!T;){++A;for(var O=0;O<=4;++O)for(b.recycle(_),_=b.compute(v,y),m=0;m<E.length;++m){var L,P;k=(L=E[m]).site,S=e(L),(P=w[k.label]).x=S.x,P.y=S.y}var I=x(_.edges);I<=0?T=!0:(I>=C||A>=4)&&(N>=s?T=!0:(y={xl:0,xr:n+=n*a,yt:0,yb:r+=r*a},++N,A=0)),C=I,u(),c()}return u(),t})).then((function(n){var r=n.vertices;S(n);var i=n.startTime,o=new Date;console.info("Layout on "+r.length+" nodes took "+(o-i)+" ms"),t.one("layoutstop",e.stop),e.animate||t.trigger("layoutready"),t.trigger("layoutstop"),k.stop()}))}return this},a.prototype.stop=function(){this.thread&&this.thread.stop(),this.trigger("layoutstop")},a.prototype.destroy=function(){this.thread&&this.thread.stop()},t.exports=a},function(t,e,n){"use strict";var r=n(0),i=function(t){t("layout","spread",r)};"undefined"!=typeof cytoscape&&i(cytoscape),t.exports=i},function(t,e){
|
||
/*!
|
||
Copyright (C) 2010-2013 Raymond Hill: https://github.com/gorhill/Javascript-Voronoi
|
||
MIT License: See https://github.com/gorhill/Javascript-Voronoi/LICENSE.md
|
||
*/
|
||
function n(){this.vertices=null,this.edges=null,this.cells=null,this.toRecycle=null,this.beachsectionJunkyard=[],this.circleEventJunkyard=[],this.vertexJunkyard=[],this.edgeJunkyard=[],this.cellJunkyard=[]}n.prototype.reset=function(){if(this.beachline||(this.beachline=new this.RBTree),this.beachline.root)for(var t=this.beachline.getFirst(this.beachline.root);t;)this.beachsectionJunkyard.push(t),t=t.rbNext;this.beachline.root=null,this.circleEvents||(this.circleEvents=new this.RBTree),this.circleEvents.root=this.firstCircleEvent=null,this.vertices=[],this.edges=[],this.cells=[]},n.prototype.sqrt=function(t){return Math.sqrt(t)},n.prototype.abs=function(t){return Math.abs(t)},n.prototype.ε=n.ε=1e-9,n.prototype.invε=n.invε=1/n.ε,n.prototype.equalWithEpsilon=function(t,e){return this.abs(t-e)<1e-9},n.prototype.greaterThanWithEpsilon=function(t,e){return t-e>1e-9},n.prototype.greaterThanOrEqualWithEpsilon=function(t,e){return e-t<1e-9},n.prototype.lessThanWithEpsilon=function(t,e){return e-t>1e-9},n.prototype.lessThanOrEqualWithEpsilon=function(t,e){return t-e<1e-9},n.prototype.RBTree=function(){this.root=null},n.prototype.RBTree.prototype.rbInsertSuccessor=function(t,e){var n,r,i;if(t){if(e.rbPrevious=t,e.rbNext=t.rbNext,t.rbNext&&(t.rbNext.rbPrevious=e),t.rbNext=e,t.rbRight){for(t=t.rbRight;t.rbLeft;)t=t.rbLeft;t.rbLeft=e}else t.rbRight=e;n=t}else this.root?(t=this.getFirst(this.root),e.rbPrevious=null,e.rbNext=t,t.rbPrevious=e,t.rbLeft=e,n=t):(e.rbPrevious=e.rbNext=null,this.root=e,n=null);for(e.rbLeft=e.rbRight=null,e.rbParent=n,e.rbRed=!0,t=e;n&&n.rbRed;)n===(r=n.rbParent).rbLeft?(i=r.rbRight)&&i.rbRed?(n.rbRed=i.rbRed=!1,r.rbRed=!0,t=r):(t===n.rbRight&&(this.rbRotateLeft(n),n=(t=n).rbParent),n.rbRed=!1,r.rbRed=!0,this.rbRotateRight(r)):(i=r.rbLeft)&&i.rbRed?(n.rbRed=i.rbRed=!1,r.rbRed=!0,t=r):(t===n.rbLeft&&(this.rbRotateRight(n),n=(t=n).rbParent),n.rbRed=!1,r.rbRed=!0,this.rbRotateLeft(r)),n=t.rbParent;this.root.rbRed=!1},n.prototype.RBTree.prototype.rbRemoveNode=function(t){t.rbNext&&(t.rbNext.rbPrevious=t.rbPrevious),t.rbPrevious&&(t.rbPrevious.rbNext=t.rbNext),t.rbNext=t.rbPrevious=null;var e,n,r=t.rbParent,i=t.rbLeft,o=t.rbRight;if(e=i?o?this.getFirst(o):i:o,r?r.rbLeft===t?r.rbLeft=e:r.rbRight=e:this.root=e,i&&o?(n=e.rbRed,e.rbRed=t.rbRed,e.rbLeft=i,i.rbParent=e,e!==o?(r=e.rbParent,e.rbParent=t.rbParent,t=e.rbRight,r.rbLeft=t,e.rbRight=o,o.rbParent=e):(e.rbParent=r,r=e,t=e.rbRight)):(n=t.rbRed,t=e),t&&(t.rbParent=r),!n)if(t&&t.rbRed)t.rbRed=!1;else{var a;do{if(t===this.root)break;if(t===r.rbLeft){if((a=r.rbRight).rbRed&&(a.rbRed=!1,r.rbRed=!0,this.rbRotateLeft(r),a=r.rbRight),a.rbLeft&&a.rbLeft.rbRed||a.rbRight&&a.rbRight.rbRed){a.rbRight&&a.rbRight.rbRed||(a.rbLeft.rbRed=!1,a.rbRed=!0,this.rbRotateRight(a),a=r.rbRight),a.rbRed=r.rbRed,r.rbRed=a.rbRight.rbRed=!1,this.rbRotateLeft(r),t=this.root;break}}else if((a=r.rbLeft).rbRed&&(a.rbRed=!1,r.rbRed=!0,this.rbRotateRight(r),a=r.rbLeft),a.rbLeft&&a.rbLeft.rbRed||a.rbRight&&a.rbRight.rbRed){a.rbLeft&&a.rbLeft.rbRed||(a.rbRight.rbRed=!1,a.rbRed=!0,this.rbRotateLeft(a),a=r.rbLeft),a.rbRed=r.rbRed,r.rbRed=a.rbLeft.rbRed=!1,this.rbRotateRight(r),t=this.root;break}a.rbRed=!0,t=r,r=r.rbParent}while(!t.rbRed);t&&(t.rbRed=!1)}},n.prototype.RBTree.prototype.rbRotateLeft=function(t){var e=t,n=t.rbRight,r=e.rbParent;r?r.rbLeft===e?r.rbLeft=n:r.rbRight=n:this.root=n,n.rbParent=r,e.rbParent=n,e.rbRight=n.rbLeft,e.rbRight&&(e.rbRight.rbParent=e),n.rbLeft=e},n.prototype.RBTree.prototype.rbRotateRight=function(t){var e=t,n=t.rbLeft,r=e.rbParent;r?r.rbLeft===e?r.rbLeft=n:r.rbRight=n:this.root=n,n.rbParent=r,e.rbParent=n,e.rbLeft=n.rbRight,e.rbLeft&&(e.rbLeft.rbParent=e),n.rbRight=e},n.prototype.RBTree.prototype.getFirst=function(t){for(;t.rbLeft;)t=t.rbLeft;return t},n.prototype.RBTree.prototype.getLast=function(t){for(;t.rbRight;)t=t.rbRight;return t},n.prototype.Diagram=function(t){this.site=t},n.prototype.Cell=function(t){this.site=t,this.halfedges=[],this.closeMe=!1},n.prototype.Cell.prototype.init=function(t){return this.site=t,this.halfedges=[],this.closeMe=!1,this},n.prototype.createCell=function(t){var e=this.cellJunkyard.pop();return e?e.init(t):new this.Cell(t)},n.prototype.Cell.prototype.prepareHalfedges=function(){for(var t,e=this.halfedges,n=e.length;n--;)(t=e[n].edge).vb&&t.va||e.splice(n,1);return e.sort((function(t,e){return e.angle-t.angle})),e.length},n.prototype.Cell.prototype.getNeighborIds=function(){for(var t,e=[],n=this.halfedges.length;n--;)null!==(t=this.halfedges[n].edge).lSite&&t.lSite.voronoiId!=this.site.voronoiId?e.push(t.lSite.voronoiId):null!==t.rSite&&t.rSite.voronoiId!=this.site.voronoiId&&e.push(t.rSite.voronoiId);return e},n.prototype.Cell.prototype.getBbox=function(){for(var t,e,n,r=this.halfedges,i=r.length,o=1/0,a=1/0,s=-1/0,u=-1/0;i--;)(e=(t=r[i].getStartpoint()).x)<o&&(o=e),(n=t.y)<a&&(a=n),e>s&&(s=e),n>u&&(u=n);return{x:o,y:a,width:s-o,height:u-a}},n.prototype.Cell.prototype.pointIntersection=function(t,e){for(var n,r,i,o,a=this.halfedges,s=a.length;s--;){if(r=(n=a[s]).getStartpoint(),i=n.getEndpoint(),!(o=(e-r.y)*(i.x-r.x)-(t-r.x)*(i.y-r.y)))return 0;if(o>0)return-1}return 1},n.prototype.Vertex=function(t,e){this.x=t,this.y=e},n.prototype.Edge=function(t,e){this.lSite=t,this.rSite=e,this.va=this.vb=null},n.prototype.Halfedge=function(t,e,n){if(this.site=e,this.edge=t,n)this.angle=Math.atan2(n.y-e.y,n.x-e.x);else{var r=t.va,i=t.vb;this.angle=t.lSite===e?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}},n.prototype.createHalfedge=function(t,e,n){return new this.Halfedge(t,e,n)},n.prototype.Halfedge.prototype.getStartpoint=function(){return this.edge.lSite===this.site?this.edge.va:this.edge.vb},n.prototype.Halfedge.prototype.getEndpoint=function(){return this.edge.lSite===this.site?this.edge.vb:this.edge.va},n.prototype.createVertex=function(t,e){var n=this.vertexJunkyard.pop();return n?(n.x=t,n.y=e):n=new this.Vertex(t,e),this.vertices.push(n),n},n.prototype.createEdge=function(t,e,n,r){var i=this.edgeJunkyard.pop();return i?(i.lSite=t,i.rSite=e,i.va=i.vb=null):i=new this.Edge(t,e),this.edges.push(i),n&&this.setEdgeStartpoint(i,t,e,n),r&&this.setEdgeEndpoint(i,t,e,r),this.cells[t.voronoiId].halfedges.push(this.createHalfedge(i,t,e)),this.cells[e.voronoiId].halfedges.push(this.createHalfedge(i,e,t)),i},n.prototype.createBorderEdge=function(t,e,n){var r=this.edgeJunkyard.pop();return r?(r.lSite=t,r.rSite=null):r=new this.Edge(t,null),r.va=e,r.vb=n,this.edges.push(r),r},n.prototype.setEdgeStartpoint=function(t,e,n,r){t.va||t.vb?t.lSite===n?t.vb=r:t.va=r:(t.va=r,t.lSite=e,t.rSite=n)},n.prototype.setEdgeEndpoint=function(t,e,n,r){this.setEdgeStartpoint(t,n,e,r)},n.prototype.Beachsection=function(){},n.prototype.createBeachsection=function(t){var e=this.beachsectionJunkyard.pop();return e||(e=new this.Beachsection),e.site=t,e},n.prototype.leftBreakPoint=function(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.rbPrevious;if(!a)return-1/0;var s=(n=a.site).x,u=n.y,c=u-e;if(!c)return s;var l=s-r,f=1/o-1/c,h=l/c;return f?(-h+this.sqrt(h*h-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+r:(r+s)/2},n.prototype.rightBreakPoint=function(t,e){var n=t.rbNext;if(n)return this.leftBreakPoint(n,e);var r=t.site;return r.y===e?r.x:1/0},n.prototype.detachBeachsection=function(t){this.detachCircleEvent(t),this.beachline.rbRemoveNode(t),this.beachsectionJunkyard.push(t)},n.prototype.removeBeachsection=function(t){var e=t.circleEvent,n=e.x,r=e.ycenter,i=this.createVertex(n,r),o=t.rbPrevious,a=t.rbNext,s=[t],u=Math.abs;this.detachBeachsection(t);for(var c=o;c.circleEvent&&u(n-c.circleEvent.x)<1e-9&&u(r-c.circleEvent.ycenter)<1e-9;)o=c.rbPrevious,s.unshift(c),this.detachBeachsection(c),c=o;s.unshift(c),this.detachCircleEvent(c);for(var l=a;l.circleEvent&&u(n-l.circleEvent.x)<1e-9&&u(r-l.circleEvent.ycenter)<1e-9;)a=l.rbNext,s.push(l),this.detachBeachsection(l),l=a;s.push(l),this.detachCircleEvent(l);var f,h=s.length;for(f=1;f<h;f++)l=s[f],c=s[f-1],this.setEdgeStartpoint(l.edge,c.site,l.site,i);c=s[0],(l=s[h-1]).edge=this.createEdge(c.site,l.site,void 0,i),this.attachCircleEvent(c),this.attachCircleEvent(l)},n.prototype.addBeachsection=function(t){for(var e,n,r,i,o=t.x,a=t.y,s=this.beachline.root;s;)if((r=this.leftBreakPoint(s,a)-o)>1e-9)s=s.rbLeft;else{if(!((i=o-this.rightBreakPoint(s,a))>1e-9)){r>-1e-9?(e=s.rbPrevious,n=s):i>-1e-9?(e=s,n=s.rbNext):e=n=s;break}if(!s.rbRight){e=s;break}s=s.rbRight}var u=this.createBeachsection(t);if(this.beachline.rbInsertSuccessor(e,u),e||n){if(e===n)return this.detachCircleEvent(e),n=this.createBeachsection(e.site),this.beachline.rbInsertSuccessor(u,n),u.edge=n.edge=this.createEdge(e.site,u.site),this.attachCircleEvent(e),void this.attachCircleEvent(n);if(!e||n){if(e!==n){this.detachCircleEvent(e),this.detachCircleEvent(n);var c=e.site,l=c.x,f=c.y,h=t.x-l,d=t.y-f,p=n.site,g=p.x-l,v=p.y-f,b=2*(h*v-d*g),y=h*h+d*d,w=g*g+v*v,m=this.createVertex((v*y-d*w)/b+l,(h*w-g*y)/b+f);return this.setEdgeStartpoint(n.edge,c,p,m),u.edge=this.createEdge(c,t,void 0,m),n.edge=this.createEdge(t,p,void 0,m),this.attachCircleEvent(e),void this.attachCircleEvent(n)}}else u.edge=this.createEdge(e.site,u.site)}},n.prototype.CircleEvent=function(){this.arc=null,this.rbLeft=null,this.rbNext=null,this.rbParent=null,this.rbPrevious=null,this.rbRed=!1,this.rbRight=null,this.site=null,this.x=this.y=this.ycenter=0},n.prototype.attachCircleEvent=function(t){var e=t.rbPrevious,n=t.rbNext;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,c=r.y-s,l=o.x-a,f=o.y-s,h=2*(u*f-c*l);if(!(h>=-2e-12)){var d=u*u+c*c,p=l*l+f*f,g=(f*d-c*p)/h,v=(u*p-l*d)/h,b=v+s,y=this.circleEventJunkyard.pop();y||(y=new this.CircleEvent),y.arc=t,y.site=i,y.x=g+a,y.y=b+this.sqrt(g*g+v*v),y.ycenter=b,t.circleEvent=y;for(var w=null,m=this.circleEvents.root;m;)if(y.y<m.y||y.y===m.y&&y.x<=m.x){if(!m.rbLeft){w=m.rbPrevious;break}m=m.rbLeft}else{if(!m.rbRight){w=m;break}m=m.rbRight}this.circleEvents.rbInsertSuccessor(w,y),w||(this.firstCircleEvent=y)}}}},n.prototype.detachCircleEvent=function(t){var e=t.circleEvent;e&&(e.rbPrevious||(this.firstCircleEvent=e.rbNext),this.circleEvents.rbRemoveNode(e),this.circleEventJunkyard.push(e),t.circleEvent=null)},n.prototype.connectEdge=function(t,e){var n=t.vb;if(n)return!0;var r,i,o=t.va,a=e.xl,s=e.xr,u=e.yt,c=e.yb,l=t.lSite,f=t.rSite,h=l.x,d=l.y,p=f.x,g=f.y,v=(h+p)/2,b=(d+g)/2;if(this.cells[l.voronoiId].closeMe=!0,this.cells[f.voronoiId].closeMe=!0,g!==d&&(i=b-(r=(h-p)/(g-d))*v),void 0===r){if(v<a||v>=s)return!1;if(h>p){if(!o||o.y<u)o=this.createVertex(v,u);else if(o.y>=c)return!1;n=this.createVertex(v,c)}else{if(!o||o.y>c)o=this.createVertex(v,c);else if(o.y<u)return!1;n=this.createVertex(v,u)}}else if(r<-1||r>1)if(h>p){if(!o||o.y<u)o=this.createVertex((u-i)/r,u);else if(o.y>=c)return!1;n=this.createVertex((c-i)/r,c)}else{if(!o||o.y>c)o=this.createVertex((c-i)/r,c);else if(o.y<u)return!1;n=this.createVertex((u-i)/r,u)}else if(d<g){if(!o||o.x<a)o=this.createVertex(a,r*a+i);else if(o.x>=s)return!1;n=this.createVertex(s,r*s+i)}else{if(!o||o.x>s)o=this.createVertex(s,r*s+i);else if(o.x<a)return!1;n=this.createVertex(a,r*a+i)}return t.va=o,t.vb=n,!0},n.prototype.clipEdge=function(t,e){var n=t.va.x,r=t.va.y,i=0,o=1,a=t.vb.x-n,s=t.vb.y-r,u=n-e.xl;if(0===a&&u<0)return!1;var c=-u/a;if(a<0){if(c<i)return!1;c<o&&(o=c)}else if(a>0){if(c>o)return!1;c>i&&(i=c)}if(u=e.xr-n,0===a&&u<0)return!1;if(c=u/a,a<0){if(c>o)return!1;c>i&&(i=c)}else if(a>0){if(c<i)return!1;c<o&&(o=c)}if(u=r-e.yt,0===s&&u<0)return!1;if(c=-u/s,s<0){if(c<i)return!1;c<o&&(o=c)}else if(s>0){if(c>o)return!1;c>i&&(i=c)}if(u=e.yb-r,0===s&&u<0)return!1;if(c=u/s,s<0){if(c>o)return!1;c>i&&(i=c)}else if(s>0){if(c<i)return!1;c<o&&(o=c)}return i>0&&(t.va=this.createVertex(n+i*a,r+i*s)),o<1&&(t.vb=this.createVertex(n+o*a,r+o*s)),(i>0||o<1)&&(this.cells[t.lSite.voronoiId].closeMe=!0,this.cells[t.rSite.voronoiId].closeMe=!0),!0},n.prototype.clipEdges=function(t){for(var e,n=this.edges,r=n.length,i=Math.abs;r--;)e=n[r],(!this.connectEdge(e,t)||!this.clipEdge(e,t)||i(e.va.x-e.vb.x)<1e-9&&i(e.va.y-e.vb.y)<1e-9)&&(e.va=e.vb=null,n.splice(r,1))},n.prototype.closeCells=function(t){for(var e,n,r,i,o,a,s,u,c,l=t.xl,f=t.xr,h=t.yt,d=t.yb,p=this.cells,g=p.length,v=Math.abs;g--;)if((e=p[g]).prepareHalfedges()&&e.closeMe){for(i=(r=e.halfedges).length,n=0;n<i;){if(a=r[n].getEndpoint(),u=r[(n+1)%i].getStartpoint(),v(a.x-u.x)>=1e-9||v(a.y-u.y)>=1e-9)switch(!0){case this.equalWithEpsilon(a.x,l)&&this.lessThanWithEpsilon(a.y,d):if(c=this.equalWithEpsilon(u.x,l),s=this.createVertex(l,c?u.y:d),o=this.createBorderEdge(e.site,a,s),n++,r.splice(n,0,this.createHalfedge(o,e.site,null)),i++,c)break;a=s;case this.equalWithEpsilon(a.y,d)&&this.lessThanWithEpsilon(a.x,f):if(c=this.equalWithEpsilon(u.y,d),s=this.createVertex(c?u.x:f,d),o=this.createBorderEdge(e.site,a,s),n++,r.splice(n,0,this.createHalfedge(o,e.site,null)),i++,c)break;a=s;case this.equalWithEpsilon(a.x,f)&&this.greaterThanWithEpsilon(a.y,h):if(c=this.equalWithEpsilon(u.x,f),s=this.createVertex(f,c?u.y:h),o=this.createBorderEdge(e.site,a,s),n++,r.splice(n,0,this.createHalfedge(o,e.site,null)),i++,c)break;a=s;case this.equalWithEpsilon(a.y,h)&&this.greaterThanWithEpsilon(a.x,l):if(c=this.equalWithEpsilon(u.y,h),s=this.createVertex(c?u.x:l,h),o=this.createBorderEdge(e.site,a,s),n++,r.splice(n,0,this.createHalfedge(o,e.site,null)),i++,c)break;if(a=s,c=this.equalWithEpsilon(u.x,l),s=this.createVertex(l,c?u.y:d),o=this.createBorderEdge(e.site,a,s),n++,r.splice(n,0,this.createHalfedge(o,e.site,null)),i++,c)break;if(a=s,c=this.equalWithEpsilon(u.y,d),s=this.createVertex(c?u.x:f,d),o=this.createBorderEdge(e.site,a,s),n++,r.splice(n,0,this.createHalfedge(o,e.site,null)),i++,c)break;if(a=s,c=this.equalWithEpsilon(u.x,f),s=this.createVertex(f,c?u.y:h),o=this.createBorderEdge(e.site,a,s),n++,r.splice(n,0,this.createHalfedge(o,e.site,null)),i++,c)break;default:throw"Voronoi.closeCells() > this makes no sense!"}n++}e.closeMe=!1}},n.prototype.quantizeSites=function(t){for(var e,n=this.ε,r=t.length;r--;)(e=t[r]).x=Math.floor(e.x/n)*n,e.y=Math.floor(e.y/n)*n},n.prototype.recycle=function(t){if(t){if(!(t instanceof this.Diagram))throw"Voronoi.recycleDiagram() > Need a Diagram object.";this.toRecycle=t}},n.prototype.compute=function(t,e){var n=new Date;this.reset(),this.toRecycle&&(this.vertexJunkyard=this.vertexJunkyard.concat(this.toRecycle.vertices),this.edgeJunkyard=this.edgeJunkyard.concat(this.toRecycle.edges),this.cellJunkyard=this.cellJunkyard.concat(this.toRecycle.cells),this.toRecycle=null);var r=t.slice(0);r.sort((function(t,e){var n=e.y-t.y;return n||e.x-t.x}));for(var i,o,a,s=r.pop(),u=0,c=this.cells;;)if(a=this.firstCircleEvent,s&&(!a||s.y<a.y||s.y===a.y&&s.x<a.x))s.x===i&&s.y===o||(c[u]=this.createCell(s),s.voronoiId=u++,this.addBeachsection(s),o=s.y,i=s.x),s=r.pop();else{if(!a)break;this.removeBeachsection(a.arc)}this.clipEdges(e),this.closeCells(e);var l=new Date,f=new this.Diagram;return f.cells=this.cells,f.edges=this.edges,f.vertices=this.vertices,f.execTime=l.getTime()-n.getTime(),this.reset(),f},t.exports=n},function(e,n){e.exports=t}])},t.exports=r(n(335))},function(module,exports,__webpack_require__){(function(setImmediate,__dirname){var require,require,f;
|
||
/*!
|
||
Copyright © 2016 Max Franz
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||
this software and associated documentation files (the “Software”), to deal in
|
||
the Software without restriction, including without limitation the rights to
|
||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||
of the Software, and to permit persons to whom the Software is furnished to do
|
||
so, subject to the following conditions:
|
||
|
||
The above copyright notice and this permission notice shall be included in all
|
||
copies or substantial portions of the Software.
|
||
|
||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||
SOFTWARE.
|
||
*/
|
||
f=function(){var define,module,exports;return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){if(!s&&"function"==typeof require&&require)return require(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};e[a][0].call(c.exports,(function(t){var n=e[a][1][t];return i(n||t)}),c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";var r=t("./is"),i=t("./util"),o=t("./promise"),a=t("./event"),s={event:{regex:/(\w+)(\.\w+)?/,optionalTypeRegex:/(\w+)?(\.\w+)?/,falseCallback:function(){return!1}},on:function(t){return t=i.extend({},{unbindSelfOnTrigger:!1,unbindAllBindersOnTrigger:!1},t),function(e,n,i){var o=void 0!==this.length?this:[this],a=r.string(e),u=t;if((r.fn(n)||!1===n)&&(i=n,n=void 0),!r.fn(i)&&!1!==i&&a)return this;if(a){var c={};c[e]=i,e=c}for(var l in e)if(!1===(i=e[l])&&(i=s.event.falseCallback),r.fn(i)){l=l.split(/\s+/);for(var f=0;f<l.length;f++){var h=l[f];if(!r.emptyString(h)){var d=h.match(s.event.regex);if(d)for(var p={callback:i,data:n,type:d[1],namespace:d[2]?d[2]:void 0,unbindSelfOnTrigger:u.unbindSelfOnTrigger,unbindAllBindersOnTrigger:u.unbindAllBindersOnTrigger,binders:o},g=0;g<o.length;g++){var v=o[g]._private;v.listeners=v.listeners||[],v.listeners.push(p)}}}}return this}},eventAliasesOn:function(t){var e=t;e.addListener=e.listen=e.bind=e.on,e.removeListener=e.unlisten=e.unbind=e.off,e.emit=e.trigger,e.pon=e.promiseOn=function(t,e){var n=this,r=Array.prototype.slice.call(arguments,0);return new o((function(t,e){var i=r.concat([function(e){n.off.apply(n,o),t(e)}]),o=i.concat([]);n.on.apply(n,i)}))}},off:function(t){return t=i.extend({},{},t),function(t,e){var n=this,i=void 0!==n.length,o=i?n:[n],a=r.string(t);if(0===arguments.length){for(var u=0;u<o.length;u++)o[u]._private.listeners=[];return n}if(a){var c={};c[t]=e,t=c}for(var l in t){!1===(e=t[l])&&(e=s.event.falseCallback),l=l.split(/\s+/);for(var f=0;f<l.length;f++){var h=l[f];if(!r.emptyString(h)){var d=h.match(s.event.optionalTypeRegex);if(d){var p=d[1]?d[1]:void 0,g=d[2]?d[2]:void 0;for(u=0;u<o.length;u++)for(var v=o[u]._private.listeners=o[u]._private.listeners||[],b=0;b<v.length;b++){var y=v[b],w=!g||g===y.namespace,m=!p||y.type===p,x=!e||e===y.callback,_=w&&m&&x;_&&(v.splice(b,1),b--)}}}}}return n}},trigger:function(t){return t=i.extend({},{},t),function(t,e,n){var i=void 0!==this.length?this:[this],o=r.string(t),u=r.plainObject(t),c=r.event(t);if(o){var l=t.split(/\s+/);t=[];for(var f=0;f<l.length;f++){var h=l[f];if(!r.emptyString(h)){var d=h.match(s.event.regex),p=d[1],g=d[2]?d[2]:void 0;t.push({type:p,namespace:g})}}}else u&&(t=[t]);for(e?r.array(e)||(e=[e]):e=[],f=0;f<t.length;f++)for(var v=t[f],b=0;b<i.length;b++){var y=i[b],w=y._private.listeners=y._private.listeners||[];h=c?v:new a(v,{namespace:v.namespace}),n&&(w=[{namespace:h.namespace,type:h.type,callback:n}]);for(var m=0;m<w.length;m++){var x=w[m],_=!x.namespace||x.namespace===h.namespace,E=x.type===h.type;if(_&&E){var k=[h];if(k=k.concat(e),x.data?h.data=x.data:h.data=void 0,(x.unbindSelfOnTrigger||x.unbindAllBindersOnTrigger)&&(w.splice(m,1),m--),x.unbindAllBindersOnTrigger)for(var S=x.binders,C=0;C<S.length;C++){var T=S[C];if(T&&T!==y)for(var A=T._private.listeners,N=0;N<A.length;N++)A[N]===x&&(A.splice(N,1),N--)}var O=y,L=x.callback.apply(O,k);(!1===L||h.isPropagationStopped())&&!1===L&&(h.stopPropagation(),h.preventDefault())}}}return this}}};e.exports=s},{"./event":2,"./is":5,"./promise":6,"./util":8}],2:[function(t,e,n){"use strict";var r=function(t,e){if(!(this instanceof r))return new r(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented?o:i):this.type=t,e&&(this.type=void 0!==e.type?e.type:this.type,this.namespace=e.namespace,this.layout=e.layout,this.data=e.data,this.message=e.message),this.timeStamp=t&&t.timeStamp||+new Date};function i(){return!1}function o(){return!0}r.prototype={instanceString:function(){return"event"},preventDefault:function(){this.isDefaultPrevented=o;var t=this.originalEvent;t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){this.isPropagationStopped=o;var t=this.originalEvent;t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o,this.stopPropagation()},isDefaultPrevented:i,isPropagationStopped:i,isImmediatePropagationStopped:i},e.exports=r},{}],3:[function(t,e,n){
|
||
/*! Weaver licensed under MIT (https://tldrlegal.com/license/mit-license), copyright Max Franz */
|
||
"use strict";var r=t("./is"),i=t("./util"),o=t("./thread"),a=t("./promise"),s=t("./define"),u=function(e){if(!(this instanceof u))return new u(e);if(this._private={pass:[]},r.number(e),"undefined"!=typeof navigator&&null!=navigator.hardwareConcurrency)e=navigator.hardwareConcurrency;else try{e=t("os").cpus().length}catch(t){e=4}for(var n=0;n<e;n++)this[n]=new o;this.length=e},c=u.prototype;i.extend(c,{instanceString:function(){return"fabric"},require:function(t,e){for(var n=0;n<this.length;n++)this[n].require(t,e);return this},random:function(){return this[Math.round((this.length-1)*Math.random())]},run:function(t){var e=this._private.pass.shift();return this.random().pass(e).run(t)},message:function(t){return this.random().message(t)},broadcast:function(t){for(var e=0;e<this.length;e++)this[e].message(t);return this},stop:function(){for(var t=0;t<this.length;t++)this[t].stop();return this},pass:function(t){var e=this._private.pass;if(!r.array(t))throw"Only arrays may be used with fabric.pass()";return e.push(t),this},spreadSize:function(){var t=Math.ceil(this._private.pass[0].length/this.length);return t=Math.max(1,t)},spread:function(t){for(var e=this._private,n=this.spreadSize(),r=e.pass.shift().concat([]),i=[],o=0;o<this.length;o++){var s=this[o],u=r.splice(0,n),c=s.pass(u).run(t);if(i.push(c),0===r.length)break}return a.all(i).then((function(t){for(var e=[],n=0,r=0;r<t.length;r++)for(var i=t[r],o=0;o<i.length;o++){var a=i[o];e[n++]=a}return e}))},map:function(t){return this.require(t,"_$_$_fabmap"),this.spread((function(t){var e=[],n=resolve;resolve=function(t){e.push(t)};for(var r=0;r<t.length;r++){var i=e.length,o=_$_$_fabmap(t[r]);i===e.length&&e.push(o)}return resolve=n,e}))},filter:function(t){var e=this._private.pass[0];return this.map(t).then((function(t){for(var n=[],r=0;r<e.length;r++){var i=e[r];t[r]&&n.push(i)}return n}))},sort:function(t){var e=this._private.pass[0].length,n=this.spreadSize();return t=t||function(t,e){return t<e?-1:t>e?1:0},this.require(t,"_$_$_cmp"),this.spread((function(t){var e=t.sort(_$_$_cmp);resolve(e)})).then((function(r){for(var i=function(n,i,o){i=Math.min(i,e),o=Math.min(o,e);for(var a=n,s=i,u=[],c=a;c<o;c++){var l=r[n],f=r[i];n<s&&(i>=o||t(l,f)<=0)?(u.push(l),n++):(u.push(f),i++)}for(c=0;c<u.length;c++)r[a+c]=u[c]},o=n;o<e;o*=2)for(var a=0;a<e;a+=2*o)i(a,a+o,a+2*o);return r}))}});var l=function(t){return t=t||{},function(e,n){var r=this._private.pass.shift();return this.random().pass(r)[t.threadFn](e,n)}};i.extend(c,{randomMap:l({threadFn:"map"}),reduce:l({threadFn:"reduce"}),reduceRight:l({threadFn:"reduceRight"})});var f=c;f.promise=f.run,f.terminate=f.halt=f.stop,f.include=f.require,i.extend(c,{on:s.on(),one:s.on({unbindSelfOnTrigger:!0}),off:s.off(),trigger:s.trigger()}),s.eventAliasesOn(c),e.exports=u},{"./define":1,"./is":5,"./promise":6,"./thread":7,"./util":8,os:void 0}],4:[function(t,e,n){"use strict";var r=t("./thread"),i=t("./fabric"),o=function(){};o.version="1.2.0",o.thread=o.Thread=o.worker=o.Worker=r,o.fabric=o.Fabric=i,e.exports=o},{"./fabric":3,"./thread":7}],5:[function(t,e,n){"use strict";var r=typeof{},i=function(t){return t&&t.instanceString&&o.fn(t.instanceString)?t.instanceString():null},o={defined:function(t){return null!=t},string:function(t){return null!=t&&"string"==typeof t},fn:function(t){return null!=t&&"function"==typeof t},array:function(t){return Array.isArray?Array.isArray(t):null!=t&&t instanceof Array},plainObject:function(t){return null!=t&&typeof t===r&&!o.array(t)&&t.constructor===Object},object:function(t){return null!=t&&typeof t===r},number:function(t){return null!=t&&"number"==typeof t&&!isNaN(t)},integer:function(t){return o.number(t)&&Math.floor(t)===t},bool:function(t){return null!=t&&"boolean"==typeof t},event:function(t){return"event"===i(t)},thread:function(t){return"thread"===i(t)},fabric:function(t){return"fabric"===i(t)},emptyString:function(t){return!t||!(!o.string(t)||""!==t&&!t.match(/^\s+$/))},nonemptyString:function(t){return!(!t||!o.string(t)||""===t||t.match(/^\s+$/))}};e.exports=o},{}],6:[function(t,e,n){"use strict";var r=function(t){if(!(this instanceof r))return new r(t);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof t&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))};r.prototype={fulfill:function(t){return i(this,1,"fulfillValue",t)},reject:function(t){return i(this,2,"rejectReason",t)},then:function(t,e){var n=new r;return this.onFulfilled.push(s(t,n,"fulfill")),this.onRejected.push(s(e,n,"reject")),o(this),n.proxy}};var i=function(t,e,n,r){return 0===t.state&&(t.state=e,t[n]=r,o(t)),t},o=function(t){1===t.state?a(t,"onFulfilled",t.fulfillValue):2===t.state&&a(t,"onRejected",t.rejectReason)},a=function(t,e,n){if(0!==t[e].length){var r=t[e];t[e]=[];var i=function(){for(var t=0;t<r.length;t++)r[t](n)};"function"==typeof setImmediate?setImmediate(i):setTimeout(i,0)}},s=function(t,e,n){return function(r){if("function"!=typeof t)e[n].call(e,r);else{var i;try{i=t(r)}catch(t){return void e.reject(t)}u(e,i)}}},u=function(t,e){if(t!==e&&t.proxy!==e){var n;if("object"==typeof e&&null!==e||"function"==typeof e)try{n=e.then}catch(e){return void t.reject(e)}if("function"!=typeof n)t.fulfill(e);else{var r=!1;try{n.call(e,(function(n){r||(r=!0,n===e?t.reject(new TypeError("circular thenable chain")):u(t,n))}),(function(e){r||(r=!0,t.reject(e))}))}catch(e){r||t.reject(e)}}}else t.reject(new TypeError("cannot resolve promise with itself"))},c=void 0===c?r:c;c.all=c.all||function(t){return new c((function(e,n){for(var r=new Array(t.length),i=0,o=function(n,o){r[n]=o,++i===t.length&&e(r)},a=0;a<t.length;a++)!function(e){var r=t[e];null!=r.then?r.then((function(t){o(e,t)}),(function(t){n(t)})):o(e,r)}(a)}))},e.exports=c},{}],7:[function(_dereq_,module,exports){
|
||
/*! Weaver licensed under MIT (https://tldrlegal.com/license/mit-license), copyright Max Franz */
|
||
"use strict";var window=_dereq_("./window"),util=_dereq_("./util"),Promise=_dereq_("./promise"),Event=_dereq_("./event"),define=_dereq_("./define"),is=_dereq_("./is"),Thread=function(t){if(!(this instanceof Thread))return new Thread(t);var e=this._private={requires:[],files:[],queue:null,pass:[],disabled:!1};is.plainObject(t)&&null!=t.disabled&&(e.disabled=!!t.disabled)},thdfn=Thread.prototype,stringifyFieldVal=function(t){return is.fn(t)?t.toString():"JSON.parse('"+JSON.stringify(t)+"')"},fnAsRequire=function(t){var e,n;is.object(t)&&t.fn?(e=fnAs(t.fn,t.name),n=t.name,t=t.fn):is.fn(t)?(e=t.toString(),n=t.name):is.string(t)?e=t:is.object(t)&&(e=t.proto?"":t.name+" = {};",n=t.name,t=t.obj),e+="\n";var r=function(t,n){if(t.prototype){var r=!1;for(var i in t.prototype){r=!0;break}r&&(e+=fnAsRequire({name:n,obj:t,proto:!0},t))}};if(t.prototype&&null!=n)for(var i in t.prototype){var o="",a=t.prototype[i];(o+=(s=n+".prototype."+i)+" = "+stringifyFieldVal(a)+";\n")&&(e+=o),r(a,s)}if(!is.string(t))for(var i in t){var s,u="";if(t.hasOwnProperty(i))a=t[i],u+=(s=n+'["'+i+'"]')+" = "+stringifyFieldVal(a)+";\n";u&&(e+=u),r(a,s)}return e},isPathStr=function(t){return is.string(t)&&t.match(/\.js$/)};util.extend(thdfn,{instanceString:function(){return"thread"},require:function(t,e){var n=this._private.requires;if(isPathStr(t))return this._private.files.push(t),this;if(e)t=is.fn(t)?{name:e,fn:t}:{name:e,obj:t};else if(is.fn(t)){if(!t.name)throw'The function name could not be automatically determined. Use thread.require( someFunction, "someFunction" )';t={name:t.name,fn:t}}return n.push(t),this},pass:function(t){return this._private.pass.push(t),this},run:function(fn,pass){var self=this,_p=this._private;if(pass=pass||_p.pass.shift(),_p.stopped)throw"Attempted to run a stopped thread! Start a new thread or do not stop the existing thread and reuse it.";if(_p.running)return _p.queue=_p.queue.then((function(){return self.run(fn,pass)}));var useWW=null!=window&&!_p.disabled,useNode=!window&&void 0!==module&&!_p.disabled;self.trigger("run");var runP=new Promise((function(resolve,reject){_p.running=!0;var threadTechAlreadyExists=_p.ran,fnImplStr=is.string(fn)?fn:fn.toString(),fnStr="\n"+_p.requires.map((function(t){return fnAsRequire(t)})).concat(_p.files.map((function(t){if(useWW)return'importScripts("'+((e=t).match(/^\.\//)||e.match(/^\.\./)?window.location.origin+window.location.pathname+e:e.match(/^\//)?window.location.origin+"/"+e:e)+'");';if(useNode)return'eval( require("fs").readFileSync("'+t+'", { encoding: "utf8" }) );';throw"External file `"+t+"` can not be required without any threading technology.";var e}))).concat(["( function(){","var ret = ("+fnImplStr+")("+JSON.stringify(pass)+");","if( ret !== undefined ){ resolve(ret); }","} )()\n"]).join("\n");if(_p.requires=[],_p.files=[],useWW){var fnBlob,fnUrl;if(!threadTechAlreadyExists){var fnPre=fnStr+"";fnStr=["function _ref_(o){ return eval(o); };","function broadcast(m){ return message(m); };","function message(m){ postMessage(m); };","function listen(fn){",' self.addEventListener("message", function(m){ ',' if( typeof m === "object" && (m.data.$$eval || m.data === "$$start") ){'," } else { "," fn( m.data );"," }"," });","};",'self.addEventListener("message", function(m){ if( m.data.$$eval ){ eval( m.data.$$eval ); } });',"function resolve(v){ postMessage({ $$resolve: v }); };","function reject(v){ postMessage({ $$reject: v }); };"].join("\n"),fnStr+=fnPre,fnBlob=new Blob([fnStr],{type:"application/javascript"}),fnUrl=window.URL.createObjectURL(fnBlob)}var ww=_p.webworker=_p.webworker||new Worker(fnUrl),cb;threadTechAlreadyExists&&ww.postMessage({$$eval:fnStr}),ww.addEventListener("message",cb=function(t){var e=is.object(t)&&is.object(t.data);e&&"$$resolve"in t.data?(ww.removeEventListener("message",cb),resolve(t.data.$$resolve)):e&&"$$reject"in t.data?(ww.removeEventListener("message",cb),reject(t.data.$$reject)):self.trigger(new Event(t,{type:"message",message:t.data}))},!1),threadTechAlreadyExists||ww.postMessage("$$start")}else if(useNode){_p.child||(_p.child=_dereq_("child_process").fork(_dereq_("path").join(__dirname,"thread-node-fork")));var child=_p.child,cb;child.on("message",cb=function(t){is.object(t)&&"$$resolve"in t?(child.removeListener("message",cb),resolve(t.$$resolve)):is.object(t)&&"$$reject"in t?(child.removeListener("message",cb),reject(t.$$reject)):self.trigger(new Event({},{type:"message",message:t}))}),child.send({$$eval:fnStr})}else{var promiseResolve=resolve,promiseReject=reject,timer=_p.timer=_p.timer||{listeners:[],exec:function(){fnStr=["function _ref_(o){ return eval(o); };","function broadcast(m){ return message(m); };",'function message(m){ self.trigger( new Event({}, { type: "message", message: m }) ); };',"function listen(fn){ timer.listeners.push( fn ); };","function resolve(v){ promiseResolve(v); };","function reject(v){ promiseReject(v); };"].join("\n")+fnStr,eval(fnStr)},message:function(t){for(var e=timer.listeners,n=0;n<e.length;n++)(0,e[n])(t)}};timer.exec()}})).then((function(t){return _p.running=!1,_p.ran=!0,self.trigger("ran"),t}));return null==_p.queue&&(_p.queue=runP),runP},message:function(t){var e=this._private;return e.webworker&&e.webworker.postMessage(t),e.child&&e.child.send(t),e.timer&&e.timer.message(t),this},stop:function(){var t=this._private;return t.webworker&&t.webworker.terminate(),t.child&&t.child.kill(),t.timer,t.stopped=!0,this.trigger("stop")},stopped:function(){return this._private.stopped}});var fnAs=function(t,e){var n=t.toString();return n=n.replace(/function\s*?\S*?\s*?\(/,"function "+e+"(")},defineFnal=function(t){return t=t||{},function(e,n){var r=fnAs(e,"_$_$_"+t.name);return this.require(r),this.run(["function( data ){"," var origResolve = resolve;"," var res = [];"," "," resolve = function( val ){"," res.push( val );"," };"," "," var ret = data."+t.name+"( _$_$_"+t.name+(arguments.length>1?", "+JSON.stringify(n):"")+" );"," "," resolve = origResolve;"," resolve( res.length > 0 ? res : ret );","}"].join("\n"))}};util.extend(thdfn,{reduce:defineFnal({name:"reduce"}),reduceRight:defineFnal({name:"reduceRight"}),map:defineFnal({name:"map"})});var fn=thdfn;fn.promise=fn.run,fn.terminate=fn.halt=fn.stop,fn.include=fn.require,util.extend(thdfn,{on:define.on(),one:define.on({unbindSelfOnTrigger:!0}),off:define.off(),trigger:define.trigger()}),define.eventAliasesOn(thdfn),module.exports=Thread},{"./define":1,"./event":2,"./is":5,"./promise":6,"./util":8,"./window":9,child_process:void 0,path:void 0}],8:[function(t,e,n){"use strict";var r,i=t("./is");r={extend:function(){var t,e,n,o,a,s,u=arguments[0]||{},c=1,l=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},c=2),"object"==typeof u||i.fn(u)||(u={}),l===c&&(u=this,--c);c<l;c++)if(null!=(t=arguments[c]))for(e in t)n=u[e],u!==(o=t[e])&&(f&&o&&(i.plainObject(o)||(a=i.array(o)))?(a?(a=!1,s=n&&i.array(n)?n:[]):s=n&&i.plainObject(n)?n:{},u[e]=r.extend(f,s,o)):void 0!==o&&(u[e]=o));return u},error:function(t){if(!console)throw t;if(console.error)console.error.apply(console,arguments);else{if(!console.log)throw t;console.log.apply(console,arguments)}}},e.exports=r},{"./is":5}],9:[function(t,e,n){e.exports="undefined"==typeof window?null:window},{}]},{},[4])(4)},module.exports=f()}).call(this,__webpack_require__(71).setImmediate,"/")},function(t,e,n){var r;r=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 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?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(2),o={},a={number:function(t){return null!=t&&(void 0===t?"undefined":r(t))===r(1)&&!isNaN(t)}};o.bufferCanvasImage=function(t,e){var n=e.renderer().usePaths;e.renderer().usePaths=function(){return!1},e.elements().forEach((function(t){t._private.rscratch.pathCacheKey=null,t._private.rscratch.pathCache=null}));var r=e.renderer(),o=e.mutableElements().boundingBox(),s=r.findContainerClientCoords(),u=t.full?Math.ceil(o.w):s[2],c=t.full?Math.ceil(o.h):s[3],l=a.number(t.maxWidth)||a.number(t.maxHeight),f=r.getPixelRatio(),h=1;if(void 0!==t.scale)u*=t.scale,c*=t.scale,h=t.scale;else if(l){var d=1/0,p=1/0;a.number(t.maxWidth)&&(d=h*t.maxWidth/u),a.number(t.maxHeight)&&(p=h*t.maxHeight/c),u*=h=Math.min(d,p),c*=h}l||(u*=f,c*=f,h*=f);var g=null,v=g=new i(u,c);if(u>0&&c>0){g.clearRect(0,0,u,c),g.globalCompositeOperation="source-over";var b=r.getCachedZSortedEles();if(t.full)g.translate(-o.x1*h,-o.y1*h),g.scale(h,h),r.drawElements(g,b),g.scale(1/h,1/h),g.translate(o.x1*h,o.y1*h);else{var y=e.pan(),w={x:y.x*h,y:y.y*h};h*=e.zoom(),g.translate(w.x,w.y),g.scale(h,h),r.drawElements(g,b),g.scale(1/h,1/h),g.translate(-w.x,-w.y)}t.bg&&(g.globalCompositeOperation="destination-over",g.fillStyle=t.bg,g.rect(0,0,u,c),g.fill())}return e.renderer().usePaths=n,v},o.svg=function(t){return o.bufferCanvasImage(t||{},this).getSerializedSvg()},t.exports=o},function(t,e,n){"use strict";var r=n(0),i=function(t){t&&t("core","svg",r.svg)};"undefined"!=typeof cytoscape&&i(cytoscape),t.exports=i},function(t,e,n){!function(){"use strict";var e,n,r,i,o;function a(t,e){var n,r=Object.keys(e);for(n=0;n<r.length;n++)t=t.replace(new RegExp("\\{"+r[n]+"\\}","gi"),e[r[n]]);return t}function s(t){var e,n,r;if(!t)throw new Error("cannot create a random attribute name for an undefined object");e="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="";do{for(n="",r=0;r<12;r++)n+=e[Math.floor(Math.random()*e.length)]}while(t[n]);return n}function u(t){var e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}o=function(t,e){var n,r,i,o={};for(t=t.split(","),e=e||10,n=0;n<t.length;n+=2)r="&"+t[n+1]+";",i=parseInt(t[n],e),o[r]="&#"+i+";";return o["\\xa0"]=" ",o}("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),e={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}},(r=function(t,e){this.__root=t,this.__ctx=e}).prototype.addColorStop=function(t,e){var n,r=this.__ctx.__createElement("stop");r.setAttribute("offset",t),-1!==e.indexOf("rgba")?(n=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e),r.setAttribute("stop-color",a("rgb({r},{g},{b})",{r:n[1],g:n[2],b:n[3]})),r.setAttribute("stop-opacity",n[4])):r.setAttribute("stop-color",e),this.__root.appendChild(r)},i=function(t,e){this.__root=t,this.__ctx=e},(n=function(t){var e,r={width:500,height:500,enableMirroring:!1};if(arguments.length>1?((e=r).width=arguments[0],e.height=arguments[1]):e=t||r,!(this instanceof n))return new n(e);this.width=e.width||r.width,this.height=e.height||r.height,this.enableMirroring=void 0!==e.enableMirroring?e.enableMirroring:r.enableMirroring,this.canvas=this,this.__document=e.document||document,e.ctx?this.__ctx=e.ctx:(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d")),this.__setDefaultStyles(),this.__stack=[this.__getStyleState()],this.__groupStack=[],this.__root=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__root.setAttribute("version",1.1),this.__root.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__root.setAttribute("width",this.width),this.__root.setAttribute("height",this.height),this.__ids={},this.__defs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__root.appendChild(this.__defs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__root.appendChild(this.__currentElement)}).prototype.__createElement=function(t,e,n){void 0===e&&(e={});var r,i,o=this.__document.createElementNS("http://www.w3.org/2000/svg",t),a=Object.keys(e);for(n&&(o.setAttribute("fill","none"),o.setAttribute("stroke","none")),r=0;r<a.length;r++)i=a[r],o.setAttribute(i,e[i]);return o},n.prototype.__setDefaultStyles=function(){var t,n,r=Object.keys(e);for(t=0;t<r.length;t++)this[n=r[t]]=e[n].canvas},n.prototype.__applyStyleState=function(t){if(t){var e,n,r=Object.keys(t);for(e=0;e<r.length;e++)this[n=r[e]]=t[n]}},n.prototype.__getStyleState=function(){var t,n,r={},i=Object.keys(e);for(t=0;t<i.length;t++)r[n=i[t]]=this[n];return r},n.prototype.__applyStyleToCurrentElement=function(t){var n=this.__currentElement,o=this.__currentElementsToStyle;o&&(n.setAttribute(t,""),n=o.element,o.children.forEach((function(e){e.setAttribute(t,"")})));var s,u,c,l,f,h=Object.keys(e);for(s=0;s<h.length;s++)if(u=e[h[s]],c=this[h[s]],u.apply)if(c instanceof i){if(c.__ctx)for(;c.__ctx.__defs.childNodes.length;)l=c.__ctx.__defs.childNodes[0].getAttribute("id"),this.__ids[l]=l,this.__defs.appendChild(c.__ctx.__defs.childNodes[0]);n.setAttribute(u.apply,a("url(#{id})",{id:c.__root.getAttribute("id")}))}else if(c instanceof r)n.setAttribute(u.apply,a("url(#{id})",{id:c.__root.getAttribute("id")}));else if(-1!==u.apply.indexOf(t)&&u.svg!==c)if("stroke"!==u.svgAttr&&"fill"!==u.svgAttr||-1===c.indexOf("rgba")){var d=u.svgAttr;if("globalAlpha"===h[s]&&(d=t+"-"+u.svgAttr,n.getAttribute(d)))continue;n.setAttribute(d,c)}else{f=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(c),n.setAttribute(u.svgAttr,a("rgb({r},{g},{b})",{r:f[1],g:f[2],b:f[3]}));var p=f[4],g=this.globalAlpha;null!=g&&(p*=g),n.setAttribute(u.svgAttr+"-opacity",p)}},n.prototype.__closestGroupOrSvg=function(t){return"g"===(t=t||this.__currentElement).nodeName||"svg"===t.nodeName?t:this.__closestGroupOrSvg(t.parentNode)},n.prototype.getSerializedSvg=function(t){var e,n,r,i,a,s=(new XMLSerializer).serializeToString(this.__root);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(s)&&(s=s.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t)for(e=Object.keys(o),n=0;n<e.length;n++)r=e[n],i=o[r],(a=new RegExp(r,"gi")).test(s)&&(s=s.replace(a,i));return s},n.prototype.getSvg=function(){return this.__root},n.prototype.save=function(){var t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__stack.push(this.__getStyleState())},n.prototype.restore=function(){this.__currentElement=this.__groupStack.pop(),this.__currentElementsToStyle=null,this.__currentElement||(this.__currentElement=this.__root.childNodes[1]);var t=this.__stack.pop();this.__applyStyleState(t)},n.prototype.__addTransform=function(t){var e=this.__closestGroupOrSvg();if(e.childNodes.length>0){"path"===this.__currentElement.nodeName&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());var n=this.__createElement("g");e.appendChild(n),this.__currentElement=n}var r=this.__currentElement.getAttribute("transform");r?r+=" ":r="",r+=t,this.__currentElement.setAttribute("transform",r)},n.prototype.scale=function(t,e){void 0===e&&(e=t),this.__addTransform(a("scale({x},{y})",{x:t,y:e}))},n.prototype.rotate=function(t){var e=180*t/Math.PI;this.__addTransform(a("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))},n.prototype.translate=function(t,e){this.__addTransform(a("translate({x},{y})",{x:t,y:e}))},n.prototype.transform=function(t,e,n,r,i,o){this.__addTransform(a("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:r,e:i,f:o}))},n.prototype.beginPath=function(){var t;this.__currentDefaultPath="",this.__currentPosition={},t=this.__createElement("path",{},!0),this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t},n.prototype.__applyCurrentDefaultPath=function(){var t=this.__currentElement;"path"===t.nodeName?t.setAttribute("d",this.__currentDefaultPath):console.error("Attempted to apply path command to node",t.nodeName)},n.prototype.__addPathCommand=function(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t},n.prototype.moveTo=function(t,e){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(a("M {x} {y}",{x:t,y:e}))},n.prototype.closePath=function(){this.__currentDefaultPath&&this.__addPathCommand("Z")},n.prototype.lineTo=function(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(a("L {x} {y}",{x:t,y:e})):this.__addPathCommand(a("M {x} {y}",{x:t,y:e}))},n.prototype.bezierCurveTo=function(t,e,n,r,i,o){this.__currentPosition={x:i,y:o},this.__addPathCommand(a("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:r,x:i,y:o}))},n.prototype.quadraticCurveTo=function(t,e,n,r){this.__currentPosition={x:n,y:r},this.__addPathCommand(a("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:r}))};var c=function(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]};n.prototype.arcTo=function(t,e,n,r,i){var o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(void 0!==o&&void 0!==a){if(i<0)throw new Error("IndexSizeError: The radius provided ("+i+") is negative.");if(o===t&&a===e||t===n&&e===r||0===i)this.lineTo(t,e);else{var s=c([o-t,a-e]),u=c([n-t,r-e]);if(s[0]*u[1]!=s[1]*u[0]){var l=s[0]*u[0]+s[1]*u[1],f=Math.acos(Math.abs(l)),h=c([s[0]+u[0],s[1]+u[1]]),d=i/Math.sin(f/2),p=t+d*h[0],g=e+d*h[1],v=[-s[1],s[0]],b=[u[1],-u[0]],y=function(t){var e=t[0];return t[1]>=0?Math.acos(e):-Math.acos(e)},w=y(v),m=y(b);this.lineTo(p+v[0]*i,g+v[1]*i),this.arc(p,g,i,w,m)}else this.lineTo(t,e)}}},n.prototype.stroke=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")},n.prototype.fill=function(){"path"===this.__currentElement.nodeName&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")},n.prototype.rect=function(t,e,n,r){"path"!==this.__currentElement.nodeName&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()},n.prototype.fillRect=function(t,e,n,r){var i;i=this.__createElement("rect",{x:t,y:e,width:n,height:r},!0),this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("fill")},n.prototype.strokeRect=function(t,e,n,r){var i;i=this.__createElement("rect",{x:t,y:e,width:n,height:r},!0),this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("stroke")},n.prototype.__clearCanvas=function(){for(var t=this.__closestGroupOrSvg().getAttribute("transform"),e=this.__root.childNodes[1],n=e.childNodes,r=n.length-1;r>=0;r--)n[r]&&e.removeChild(n[r]);this.__currentElement=e,this.__groupStack=[],t&&this.__addTransform(t)},n.prototype.clearRect=function(t,e,n,r){if(0!==t||0!==e||n!==this.width||r!==this.height){var i,o=this.__closestGroupOrSvg();i=this.__createElement("rect",{x:t,y:e,width:n,height:r,fill:"#FFFFFF"},!0),o.appendChild(i)}else this.__clearCanvas()},n.prototype.createLinearGradient=function(t,e,n,i){var o=this.__createElement("linearGradient",{id:s(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(o),new r(o,this)},n.prototype.createRadialGradient=function(t,e,n,i,o,a){var u=this.__createElement("radialGradient",{id:s(this.__ids),cx:i+"px",cy:o+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__defs.appendChild(u),new r(u,this)},n.prototype.__parseFont=function(){var t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-,\'\"\sa-z0-9]+?)\s*$/i.exec(this.font),e={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return"underline"===this.__fontUnderline&&(e.decoration="underline"),this.__fontHref&&(e.href=this.__fontHref),e},n.prototype.__wrapTextLink=function(t,e){if(t.href){var n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(e),n}return e},n.prototype.__applyText=function(t,e,n,r){var i,o,a=this.__parseFont(),s=this.__closestGroupOrSvg(),c=this.__createElement("text",{"font-family":a.family,"font-size":a.size,"font-style":a.style,"font-weight":a.weight,"text-decoration":a.decoration,x:e,y:n,"text-anchor":(i=this.textAlign,o={left:"start",right:"end",center:"middle",start:"start",end:"end"},o[i]||o.start),"dominant-baseline":u(this.textBaseline)},!0);c.appendChild(this.__document.createTextNode(t)),this.__currentElement=c,this.__applyStyleToCurrentElement(r),s.appendChild(this.__wrapTextLink(a,c))},n.prototype.fillText=function(t,e,n){this.__applyText(t,e,n,"fill")},n.prototype.strokeText=function(t,e,n){this.__applyText(t,e,n,"stroke")},n.prototype.measureText=function(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)},n.prototype.arc=function(t,e,n,r,i,o){if(r!==i){(r%=2*Math.PI)==(i%=2*Math.PI)&&(i=(i+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));var s=t+n*Math.cos(i),u=e+n*Math.sin(i),c=t+n*Math.cos(r),l=e+n*Math.sin(r),f=o?0:1,h=0,d=i-r;d<0&&(d+=2*Math.PI),h=o?d>Math.PI?0:1:d>Math.PI?1:0,this.lineTo(c,l),this.__addPathCommand(a("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:h,sweepFlag:f,endX:s,endY:u})),this.__currentPosition={x:s,y:u}}},n.prototype.clip=function(){var t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),n=s(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",n),e.appendChild(this.__currentElement),this.__defs.appendChild(e),t.setAttribute("clip-path",a("url(#{id})",{id:n})),t.appendChild(r),this.__currentElement=r},n.prototype.drawImage=function(){var t,e,r,i,o,a,s,u,c,l,f,h,d,p=Array.prototype.slice.call(arguments),g=p[0],v=0,b=0;if(3===p.length)t=p[1],e=p[2],r=o=g.width,i=a=g.height;else if(5===p.length)t=p[1],e=p[2],r=p[3],i=p[4],o=g.width,a=g.height;else{if(9!==p.length)throw new Error("Inavlid number of arguments passed to drawImage: "+arguments.length);v=p[1],b=p[2],o=p[3],a=p[4],t=p[5],e=p[6],r=p[7],i=p[8]}s=this.__closestGroupOrSvg(),this.__currentElement;var y="translate("+t+", "+e+")";if(g instanceof n){if((u=g.getSvg().cloneNode(!0)).childNodes&&u.childNodes.length>1){for(c=u.childNodes[0];c.childNodes.length;)d=c.childNodes[0].getAttribute("id"),this.__ids[d]=d,this.__defs.appendChild(c.childNodes[0]);if(l=u.childNodes[1]){var w,m=l.getAttribute("transform");w=m?m+" "+y:y,l.setAttribute("transform",w),s.appendChild(l)}}}else"CANVAS"!==g.nodeName&&"IMG"!==g.nodeName||((f=this.__createElement("image")).setAttribute("width",r),f.setAttribute("height",i),f.setAttribute("opacity",this.globalAlpha),f.setAttribute("preserveAspectRatio","none"),(h=this.__document.createElement("canvas")).width=r,h.height=i,h.getContext("2d").drawImage(g,v,b,o,a,0,0,r,i),g=h,f.setAttribute("transform",y),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===g.nodeName?g.toDataURL():g.getAttribute("src")),s.appendChild(f))},n.prototype.createPattern=function(t,e){var r,o=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),a=s(this.__ids);return o.setAttribute("id",a),o.setAttribute("width",t.width),o.setAttribute("height",t.height),"CANVAS"===t.nodeName||"IMG"===t.nodeName?((r=this.__document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("width",t.width),r.setAttribute("height",t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","CANVAS"===t.nodeName?t.toDataURL():t.getAttribute("src")),o.appendChild(r),this.__defs.appendChild(o)):t instanceof n&&(o.appendChild(t.__root.childNodes[1]),this.__defs.appendChild(o)),new i(o,this)},n.prototype.setLineDash=function(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null},n.prototype.drawFocusRing=function(){},n.prototype.createImageData=function(){},n.prototype.getImageData=function(){},n.prototype.putImageData=function(){},n.prototype.globalCompositeOperation=function(){},n.prototype.setTransform=function(){},"object"==typeof window&&(window.C2S=n),"object"==typeof t&&"object"==typeof t.exports&&(t.exports=n)}()}])},t.exports=r()}]); |