ferry/static/web/js/chunk-47c58a28.14a58c33.js
2020-10-22 10:07:48 +08:00

9 lines
722 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47c58a28"],{"0031":function(t,e,n){const r=n("0a4a"),i=n("4651"),a=n("3a21"),o=800;i.registerLayout("fruchtermanGroup",{getDefaultCfg(){return{maxIteration:1e3,center:[0,0],gravity:1,speed:1,groupGravity:1,nodeRepulsiveCoefficient:50,groupRepulsiveCoefficient:10,nodeAttractiveCoefficient:1,groupAttractiveCoefficient:1,preventGroupOverlap:!0,groupCollideStrength:.7}},init(t){const e=this;e.nodes=t.nodes,e.edges=t.edges,e.graph=t.graph,e.groupsData=e.graph.get("groups"),e.customGroup=e.graph.get("customGroup"),e.groupController=e.graph.get("customGroupControll")},execute(){const t=this,e=t.nodes,n=t.center;if(0===e.length)return;if(1===e.length)return e[0].x=n[0],void(e[0].y=n[1]);const r=new Map,i=new Map;e.forEach((t,e)=>{r.set(t.id,t),i.set(t.id,e)}),t.nodeMap=r,t.nodeIndexMap=i,t.run(),t.graph.refreshPositions();const a=t.customGroup,o=a.get("children"),s=t.groupController,u=t.graph.get("groupType");o.forEach(e=>{const n=e.get("id"),r=t.groupMap.get(n);r.item=e;const i=s.getGroupPadding(n),{x:a,y:o,width:c,height:h}=s.calculationGroupPosition(r.nodeIds),f=e.findByClassName("group-title"),l=e.get("children")[0];let d=0,p=0;if("circle"===u){const t=c>h?c/2:h/2,e=(c+2*a)/2,n=(h+2*o)/2;l.attr({x:e,y:n,r:t+i}),r.x=e,r.y=n,r.size=2*(t+i),d=e,p=n-t-i}else if("rect"===u){const{default:t}=s.styles,e=i*t.disCoefficient,n=c+2*e,u=h+2*e,f=a-e,g=o-e;l.attr({x:f,y:g,width:n,height:u}),r.x=f,r.y=g,r.size=[n,u],d=a,p=o}if(f){const t=r.groupData.title;let e=0,n=0;t&&(e=t.offsetox||0,n=t.offsetoy||0,t.offsetX=e,t.offsetY=n,"rect"===u&&(t.offsetX=0,t.offsetY=0));let i=d+e,a=p+n;"rect"===u&&(i=d,a=p),f.attr({x:i,y:a}),r.titlePos=[i,a]}}),t.graph.paint()},run(){const t=this,e=t.nodes,n=t.groupsData,r=t.edges,i=t.maxIteration;let a=t.width;a||"undefined"===typeof window||(a=window.innerWidth);let s=t.height;s||"undefined"===typeof s||(s=window.innerHeight);const u=t.center,c=t.nodeMap,h=t.nodeIndexMap,f=a/10,l=Math.sqrt(a*s/(e.length+1)),d=t.gravity,p=t.speed,g=new Map;t.groupMap=g,e.forEach(t=>{if(void 0===g.get(t.groupId)){let e,r;n.forEach(n=>{n.id===t.groupId&&(e=n.parentId,r=n)});const i={name:t.groupId,cx:0,cy:0,count:0,parentId:e,nodeIds:[],groupData:r};g.set(t.groupId,i)}const e=g.get(t.groupId);e.nodeIds.push(t.id),e.cx+=t.x,e.cy+=t.y,e.count++}),g.forEach(t=>{t.cx/=t.count,t.cy/=t.count}),t.DFSSetGroups();for(let v=0;v<i;v++){const n=[];e.forEach((t,e)=>{n[e]={x:0,y:0}}),t.getDisp(e,r,c,h,n,l);const i=t.groupGravity||d;e.forEach((e,r)=>{const a=g.get(e.groupId),o=Math.sqrt((e.x-a.cx)*(e.x-a.cx)+(e.y-a.cy)*(e.y-a.cy)),s=t.groupAttractiveCoefficient*l*i;n[r].x-=s*(e.x-a.cx)/o,n[r].y-=s*(e.y-a.cy)/o}),g.forEach(t=>{t.cx=0,t.cy=0,t.count=0}),e.forEach(t=>{const e=g.get(t.groupId);e.cx+=t.x,e.cy+=t.y,e.count++}),g.forEach(t=>{t.cx/=t.count,t.cy/=t.count}),e.forEach((t,e)=>{const r=.01*l*d;n[e].x-=r*(t.x-u[0]),n[e].y-=r*(t.y-u[1])}),e.forEach((t,e)=>{n[e].dx*=p/o,n[e].dy*=p/o}),e.forEach((t,e)=>{const r=Math.sqrt(n[e].x*n[e].x+n[e].y*n[e].y);if(r>0){const i=Math.min(f*(p/o),r);t.x+=n[e].x/r*i,t.y+=n[e].y/r*i}})}},getDisp(t,e,n,r,i,a){const o=this;o.calRepulsive(t,i,a),o.calAttractive(e,n,r,i,a),o.calGroupRepulsive(i,a)},calRepulsive(t,e,n){const r=this;t.forEach((i,a)=>{e[a]={x:0,y:0},t.forEach((t,o)=>{if(a===o)return;const s=i.x-t.x,u=i.y-t.y;let c=s*s+u*u;0===c&&(c=1);const h=r.nodeRepulsiveCoefficient*(n*n)/c;e[a].x+=s*h,e[a].y+=u*h})})},calAttractive(t,e,n,r,i){const a=this;t.forEach(t=>{const o=n.get(t.source),s=n.get(t.target);if(o===s)return;const u=e.get(t.source),c=e.get(t.target),h=c.x-u.x,f=c.y-u.y,l=Math.sqrt(h*h+f*f),d=a.nodeAttractiveCoefficient*l*l/i;r[s].x-=h/l*d,r[s].y-=f/l*d,r[o].x+=h/l*d,r[o].y+=f/l*d})},calGroupRepulsive(t,e){const n=this,r=n.groupMap,i=n.nodeIndexMap;r.forEach((a,o)=>{const s={x:0,y:0};r.forEach((t,r)=>{if(o===r)return;const i=a.cx-t.cx,u=a.cy-t.cy;let c=i*i+u*u;0===c&&(c=1);const h=n.groupRepulsiveCoefficient*(e*e)/c;s.x+=i*h,s.y+=u*h});const u=a.nodeIds;u.forEach(e=>{const n=i.get(e);t[n].x+=s.x,t[n].y+=s.y})})},DFSSetGroups(){const t=this,e=t.groupMap;e.forEach(n=>{const r=n.parentId;if(r){let i;t.groupsData.forEach(t=>{t.id===n.groupId&&(i=t.parentId)});const a=e.get(r);if(a)n.nodeIds.forEach(t=>{a.nodeIds.push(t)});else{const t={name:r,cx:0,cy:0,count:0,parentId:i,nodeIds:n.nodeIds};e.set(r,t)}}})},BFSDivide(t,e,n){const i=this,a=r.forceManyBody();a.strength(30);const o=r.forceSimulation().nodes(n).force("center",r.forceCenter(t/2,e/2)).force("charge",a).alpha(.3).alphaDecay(.01).alphaMin(.001).on("tick",()=>{n.forEach(t=>{const e=t.nodes;e.forEach(e=>{e.x+=t.x-t.ox,e.y+=t.y-t.oy}),t.ox=t.x,t.oy=t.y;const n=t.item,r=n.get("children")[0];r.attr({x:t.x,y:t.y})}),i.graph.refreshPositions()}).on("end",()=>{});i.groupOverlapProcess(o)},groupOverlapProcess(t){const e=this;let n=e.nodeSize;const i=e.groupCollideStrength;if(n)if(isNaN(n)){if(2===n.length){const t=n[0]>n[1]?n[0]:n[1];n=t/2}}else n/=2;else n=t=>t.size?a(t.size)?t.size[0]/2:t.size/2:10;t.force("collisionForce",r.forceCollide(n).strength(i))}})},"004e":function(t,e,n){var r=n("76e9"),i=n("8d20"),a=n("cd9d");function o(t){return t&&t.length?r(t,a,i):void 0}t.exports=o},"00d0":function(t,e){var n={}.toString,r=function(t,e){return n.call(t)==="[object "+e+"]"};t.exports=r},"01ce":function(t,e,n){t.exports={Graph:n("9671"),version:n("c3cd")}},"01eb":function(t,e,n){var r=n("33de");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,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!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){var e,n=this._arr,r=n[t].priority;while(0!==t){if(e=t>>1,n[e].priority<r)break;this._swap(t,e),t=e}},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],a=n[e];n[t]=a,n[e]=i,r[a.key]=t,r[i.key]=e}},"02d0":function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,a=n.slice,o=function(t){for(var e=a.call(arguments,1),n=0;n<e.length;n++){var o=e[n],s=-1;while((s=i.call(t,o))>-1)r.call(t,s,1)}return t};t.exports=o},"02db":function(t,e,n){var r=n("1c6a");t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(t)){for(var i in t)this._setAttr(i,t[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(t,e),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[t]},_setAttr:function(t,e){var n=this,r=this._attrs;r[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?n._setClip(e):"path"===t&&n._afterSetAttrPath?n._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&n.rotateAtStart(e):n.transform(e):r.globalAlpha=e:r[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},"03dd":function(t,e,n){var r=n("eac5"),i=n("57a5"),a=Object.prototype,o=a.hasOwnProperty;function s(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}t.exports=s},"0519":function(t,e,n){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(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.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=31)}([function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Array.isArray?Array.isArray(t):Object(r["a"])(t,"Array")}},function(t,e,n){"use strict";var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e["a"]=r},function(t,e,n){"use strict";var r=n(0),i=n(13);function a(t,e){var n;if(t)if(Object(r["a"])(t)){for(var a=0,o=t.length;a<o;a++)if(n=e(t[a],a),!1===n)break}else if(Object(i["a"])(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}e["a"]=a},function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Object(r["a"])(t,"Function")}},function(t,e,n){"use strict";var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Number")};e["a"]=i},function(t,e,n){"use strict";var r=function(t){return null===t||void 0===t};e["a"]=r},function(t,e,n){var r=n(33),i=r.mix;t.exports={assign:i}},function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Object(r["a"])(t,"String")}},function(t,e,n){"use strict";var r=n(15),i=n(4),a=function(t){if(!Object(r["a"])(t)||!Object(i["a"])(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};e["a"]=a},function(t,e,n){"use strict";var r=n(6);e["a"]=function(t){return Object(r["a"])(t)?"":t.toString()}},function(t,e,n){var r=n(18),i=function(){function t(t,e){void 0===e&&(e={});var n=this;n.options=e,n.rootNode=r(t,e)}var e=t.prototype;return e.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){"use strict";var r=n(1),i=function(t,e){return!!Object(r["a"])(t)&&t.indexOf(e)>-1};e["a"]=i},function(t,e,n){"use strict";e["a"]=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";var r=n(2),i=n(1),a=function(t,e){if(!Object(i["a"])(t))return t;var n=[];return Object(r["a"])(t,(function(t,r){e(t,r)&&n.push(t)})),n};e["a"]=a},function(t,e,n){"use strict";var r=function(t){return"object"===typeof t&&null!==t};e["a"]=r},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}e["a"]=i},function(t,e,n){var r=n(30),i=["LR","RL","TB","BT","H","V"],a=["LR","RL","H"],o=function(t){return a.indexOf(t)>-1},s=i[0];t.exports=function(t,e,n){var a=e.direction||s;if(e.isHorizontal=o(a),a&&-1===i.indexOf(a))throw new TypeError("Invalid direction: "+a);if(a===i[0])n(t,e);else if(a===i[1])n(t,e),t.right2left();else if(a===i[2])n(t,e);else if(a===i[3])n(t,e),t.bottom2top();else if(a===i[4]||a===i[5]){var u=r(t,e),c=u.left,h=u.right;n(c,e),n(h,e),e.isHorizontal?c.right2left():c.bottom2top(),h.translate(c.x-h.x,c.y-h.y),t.x=c.x,t.y=h.y;var f=t.getBoundingBox();e.isHorizontal?f.top<0&&t.translate(0,-f.top):f.left<0&&t.translate(-f.left,0)}var l=e.fixedRoot;return void 0===l&&(l=!0),l&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(7),i=18,a=2*i,o=i,s={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||o},getVGap:function(t){return t.vgap||o},getChildren:function(t){return t.children},getHeight:function(t){return t.height||a},getWidth:function(t){var e=t.label||" ";return t.width||e.split("").length*i}};function u(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof u)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}function c(t,e,n){void 0===e&&(e={}),e=r.assign({},s,e);var i,a=new u(t,e),o=[a];if(!n&&!t.collapsed)while(i=o.pop())if(!i.data.collapsed){var c=e.getChildren(i.data),h=c?c.length:0;if(i.children=new Array(h),c&&h)for(var f=0;f<h;f++){var l=new u(c[f],e);i.children[f]=l,o.push(l),l.parent=i,l.depth=i.depth+1}}return a}r.assign(u.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){var e,n=this,r=[n];while(e=r.pop())t(e),r=r.concat(e.children)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){var e,n=this,r=[n];while(e=r.shift())t(e),r=r.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e}))},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=c},function(t,e,n){"use strict";var r=n(6),i=n(20);function a(t,e){var n=Object(i["a"])(e),a=n.length;if(Object(r["a"])(t))return!a;for(var o=0;o<a;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}e["a"]=a},function(t,e,n){"use strict";var r=n(2),i=n(3),a=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Object(r["a"])(t,(function(n,r){Object(i["a"])(t)&&"prototype"===r||e.push(r)})),e};e["a"]=a},function(t,e,n){"use strict";var r=n(1),i=Array.prototype.splice,a=function(t,e){if(!Object(r["a"])(t))return[];var n=t?e.length:0,a=n-1;while(n--){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t};e["a"]=a},function(t,e,n){"use strict";var r=n(12),i=n(2),a=function(t){var e=[];return Object(i["a"])(t,(function(t){Object(r["a"])(e,t)||e.push(t)})),e};e["a"]=a},function(t,e,n){"use strict";var r=n(0),i=n(3),a=n(24),o=function(t,e){if(!e)return{0:t};if(!Object(i["a"])(e)){var n=Object(r["a"])(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}var o=Object(a["a"])(t,e);return o};e["a"]=o},function(t,e,n){"use strict";var r=n(2),i=n(0),a=n(3),o=Object.prototype.hasOwnProperty;function s(t,e){if(!e||!Object(i["a"])(t))return{};var n,s={},u=Object(a["a"])(e)?e:function(t){return t[e]};return Object(r["a"])(t,(function(t){n=u(t),o.call(s,n)?s[n].push(t):s[n]=[t]})),s}e["a"]=s},function(t,e,n){"use strict";e["a"]=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";var r=n(2),i=n(3),a=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Object(r["a"])(t,(function(n,r){Object(i["a"])(t)&&"prototype"===r||e.push(n)})),e};e["a"]=a},function(t,e,n){"use strict";var r={}.toString,i=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")};e["a"]=i},function(t,e,n){"use strict";var r=Object.prototype,i=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||r;return t===n};e["a"]=i},function(t,e,n){"use strict";var r=n(15),i=n(1),a=n(8),o=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Object(a["a"])(t)||Object(a["a"])(e))return!1;if(Object(i["a"])(t)||Object(i["a"])(e)){if(t.length!==e.length)return!1;for(var n=!0,s=0;s<t.length;s++)if(n=o(t[s],e[s]),!n)break;return n}if(Object(r["a"])(t)||Object(r["a"])(e)){var u=Object.keys(t),c=Object.keys(e);if(u.length!==c.length)return!1;for(n=!0,s=0;s<u.length;s++)if(n=o(t[u[s]],e[u[s]]),!n)break;return n}return!1};e["a"]=o},function(t,e,n){var r=n(18);t.exports=function(t,e){for(var n=r(t.data,e,!0),i=r(t.data,e,!0),a=t.children.length,o=Math.round(a/2),s=e.getSide||function(t,e){return e<o?"right":"left"},u=0;u<a;u++){var c=t.children[u],h=s(c,u);"right"===h?i.children.push(c):n.children.push(c)}return n.eachNode((function(t){t.isRoot()||(t.side="left")})),i.eachNode((function(t){t.isRoot()||(t.side="right")})),{left:n,right:i}}},function(t,e,n){var r={compactBox:n(32),dendrogram:n(114),indented:n(116),mindmap:n(118)};t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),a=n(113),o=n(17),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return o(t.rootNode,t.options,a)},e}(i),c={};function h(t,e){return e=s.assign({},c,e),new u(t,e).execute()}t.exports=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);n.d(e,"contains",(function(){return r["a"]})),n.d(e,"includes",(function(){return r["a"]}));var i=n(34);n.d(e,"difference",(function(){return i["a"]}));var a=n(35);n.d(e,"find",(function(){return a["a"]}));var o=n(36);n.d(e,"findIndex",(function(){return o["a"]}));var s=n(37);n.d(e,"firstValue",(function(){return s["a"]}));var u=n(38);n.d(e,"flatten",(function(){return u["a"]}));var c=n(39);n.d(e,"flattenDeep",(function(){return c["a"]}));var h=n(40);n.d(e,"getRange",(function(){return h["a"]}));var f=n(41);n.d(e,"pull",(function(){return f["a"]}));var l=n(21);n.d(e,"pullAt",(function(){return l["a"]}));var d=n(42);n.d(e,"reduce",(function(){return d["a"]}));var p=n(43);n.d(e,"remove",(function(){return p["a"]}));var g=n(44);n.d(e,"sortBy",(function(){return g["a"]}));var v=n(45);n.d(e,"union",(function(){return v["a"]}));var m=n(22);n.d(e,"uniq",(function(){return m["a"]}));var y=n(46);n.d(e,"valuesOfKey",(function(){return y["a"]}));var x=n(47);n.d(e,"head",(function(){return x["a"]}));var b=n(48);n.d(e,"last",(function(){return b["a"]}));var w=n(49);n.d(e,"startsWith",(function(){return w["a"]}));var _=n(50);n.d(e,"endsWith",(function(){return _["a"]}));var M=n(14);n.d(e,"filter",(function(){return M["a"]}));var S=n(51);n.d(e,"every",(function(){return S["a"]}));var k=n(52);n.d(e,"some",(function(){return k["a"]}));var A=n(53);n.d(e,"group",(function(){return A["a"]}));var P=n(24);n.d(e,"groupBy",(function(){return P["a"]}));var C=n(23);n.d(e,"groupToMap",(function(){return C["a"]}));var E=n(54);n.d(e,"getWrapBehavior",(function(){return E["a"]}));var I=n(55);n.d(e,"wrapBehavior",(function(){return I["a"]}));var O=n(56);n.d(e,"number2color",(function(){return O["a"]}));var T=n(57);n.d(e,"parseRadius",(function(){return T["a"]}));var N=n(58);n.d(e,"clamp",(function(){return N["a"]}));var j=n(59);n.d(e,"fixedBase",(function(){return j["a"]}));var B=n(60);n.d(e,"isDecimal",(function(){return B["a"]}));var L=n(61);n.d(e,"isEven",(function(){return L["a"]}));var D=n(62);n.d(e,"isInteger",(function(){return D["a"]}));var R=n(63);n.d(e,"isNegative",(function(){return R["a"]}));var F=n(64);n.d(e,"isNumberEqual",(function(){return F["a"]}));var Y=n(65);n.d(e,"isOdd",(function(){return Y["a"]}));var q=n(66);n.d(e,"isPositive",(function(){return q["a"]}));var z=n(67);n.d(e,"maxBy",(function(){return z["a"]}));var X=n(68);n.d(e,"minBy",(function(){return X["a"]}));var G=n(69);n.d(e,"mod",(function(){return G["a"]}));var W=n(70);n.d(e,"toDegree",(function(){return W["a"]}));var U=n(71);n.d(e,"toInteger",(function(){return U["a"]}));var V=n(72);n.d(e,"toRadian",(function(){return V["a"]}));var H=n(73);n.d(e,"forIn",(function(){return H["a"]}));var Z=n(25);n.d(e,"has",(function(){return Z["a"]}));var $=n(74);n.d(e,"hasKey",(function(){return $["a"]}));var Q=n(75);n.d(e,"hasValue",(function(){return Q["a"]}));var K=n(20);n.d(e,"keys",(function(){return K["a"]}));var J=n(19);n.d(e,"isMatch",(function(){return J["a"]}));var tt=n(26);n.d(e,"values",(function(){return tt["a"]}));var et=n(76);n.d(e,"lowerCase",(function(){return et["a"]}));var nt=n(77);n.d(e,"lowerFirst",(function(){return nt["a"]}));var rt=n(78);n.d(e,"substitute",(function(){return rt["a"]}));var it=n(79);n.d(e,"upperCase",(function(){return it["a"]}));var at=n(80);n.d(e,"upperFirst",(function(){return at["a"]}));var ot=n(27);n.d(e,"getType",(function(){return ot["a"]}));var st=n(81);n.d(e,"isArguments",(function(){return st["a"]}));var ut=n(0);n.d(e,"isArray",(function(){return ut["a"]}));var ct=n(1);n.d(e,"isArrayLike",(function(){return ct["a"]}));var ht=n(82);n.d(e,"isBoolean",(function(){return ht["a"]}));var ft=n(83);n.d(e,"isDate",(function(){return ft["a"]}));var lt=n(84);n.d(e,"isError",(function(){return lt["a"]}));var dt=n(3);n.d(e,"isFunction",(function(){return dt["a"]}));var pt=n(85);n.d(e,"isFinite",(function(){return pt["a"]}));var gt=n(6);n.d(e,"isNil",(function(){return gt["a"]}));var vt=n(86);n.d(e,"isNull",(function(){return vt["a"]}));var mt=n(5);n.d(e,"isNumber",(function(){return mt["a"]}));var yt=n(13);n.d(e,"isObject",(function(){return yt["a"]}));var xt=n(15);n.d(e,"isObjectLike",(function(){return xt["a"]}));var bt=n(9);n.d(e,"isPlainObject",(function(){return bt["a"]}));var wt=n(28);n.d(e,"isPrototype",(function(){return wt["a"]}));var _t=n(87);n.d(e,"isRegExp",(function(){return _t["a"]}));var Mt=n(8);n.d(e,"isString",(function(){return Mt["a"]}));var St=n(4);n.d(e,"isType",(function(){return St["a"]}));var kt=n(88);n.d(e,"isUndefined",(function(){return kt["a"]}));var At=n(89);n.d(e,"isElement",(function(){return At["a"]}));var Pt=n(90);n.d(e,"requestAnimationFrame",(function(){return Pt["a"]}));var Ct=n(91);n.d(e,"clearAnimationFrame",(function(){return Ct["a"]}));var Et=n(92);n.d(e,"augment",(function(){return Et["a"]}));var It=n(93);n.d(e,"clone",(function(){return It["a"]}));var Ot=n(94);n.d(e,"debounce",(function(){return Ot["a"]}));var Tt=n(95);n.d(e,"memoize",(function(){return Tt["a"]}));var Nt=n(96);n.d(e,"deepMix",(function(){return Nt["a"]}));var jt=n(2);n.d(e,"each",(function(){return jt["a"]}));var Bt=n(97);n.d(e,"extend",(function(){return Bt["a"]}));var Lt=n(98);n.d(e,"indexOf",(function(){return Lt["a"]}));var Dt=n(99);n.d(e,"isEmpty",(function(){return Dt["a"]}));var Rt=n(29);n.d(e,"isEqual",(function(){return Rt["a"]}));var Ft=n(100);n.d(e,"isEqualWith",(function(){return Ft["a"]}));var Yt=n(101);n.d(e,"map",(function(){return Yt["a"]}));var qt=n(102);n.d(e,"mapValues",(function(){return qt["a"]}));var zt=n(16);n.d(e,"mix",(function(){return zt["a"]})),n.d(e,"assign",(function(){return zt["a"]}));var Xt=n(103);n.d(e,"get",(function(){return Xt["a"]}));var Gt=n(104);n.d(e,"set",(function(){return Gt["a"]}));var Wt=n(105);n.d(e,"pick",(function(){return Wt["a"]}));var Ut=n(106);n.d(e,"throttle",(function(){return Ut["a"]}));var Vt=n(107);n.d(e,"toArray",(function(){return Vt["a"]}));var Ht=n(10);n.d(e,"toString",(function(){return Ht["a"]}));var Zt=n(108);n.d(e,"uniqueId",(function(){return Zt["a"]}));var $t=n(109);n.d(e,"noop",(function(){return $t["a"]}));var Qt=n(110);n.d(e,"identity",(function(){return Qt["a"]}));var Kt=n(111);n.d(e,"size",(function(){return Kt["a"]}));var Jt=n(112);n.d(e,"Cache",(function(){return Jt["a"]}))},function(t,e,n){"use strict";var r=n(14),i=n(12),a=function(t,e){return void 0===e&&(e=[]),Object(r["a"])(t,(function(t){return!Object(i["a"])(e,t)}))};e["a"]=a},function(t,e,n){"use strict";var r=n(3),i=n(19),a=n(0),o=n(9);function s(t,e){if(!Object(a["a"])(t))return null;var n;if(Object(r["a"])(e)&&(n=e),Object(o["a"])(e)&&(n=function(t){return Object(i["a"])(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}e["a"]=s},function(t,e,n){"use strict";function r(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}e["a"]=r},function(t,e,n){"use strict";var r=n(6),i=n(0),a=function(t,e){for(var n=null,a=0;a<t.length;a++){var o=t[a],s=o[e];if(!Object(r["a"])(s)){n=Object(i["a"])(s)?s[0]:s;break}}return n};e["a"]=a},function(t,e,n){"use strict";var r=n(0),i=function(t){if(!Object(r["a"])(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=function(t,e){if(void 0===e&&(e=[]),Object(r["a"])(t))for(var n=0;n<t.length;n+=1)i(t[n],e);else e.push(t);return e};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=n(14),a=function(t){if(t=Object(i["a"])(t,(function(t){return!isNaN(t)})),!t.length)return{min:0,max:0};if(Object(r["a"])(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var a=Math.max.apply(null,t),o=Math.min.apply(null,t);return{min:o,max:a}};e["a"]=a},function(t,e,n){"use strict";var r=Array.prototype,i=r.splice,a=r.indexOf,o=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var o=e[r],s=-1;while((s=a.call(t,o))>-1)i.call(t,s,1)}return t};e["a"]=o},function(t,e,n){"use strict";var r=n(2),i=n(0),a=n(9),o=function(t,e,n){if(!Object(i["a"])(t)&&!Object(a["a"])(t))return t;var o=n;return Object(r["a"])(t,(function(t,n){o=e(o,t,n)})),o};e["a"]=o},function(t,e,n){"use strict";var r=n(1),i=n(21),a=function(t,e){var n=[];if(!Object(r["a"])(t))return n;var a=-1,o=[],s=t.length;while(++a<s){var u=t[a];e(u,a,t)&&(n.push(u),o.push(a))}return Object(i["a"])(t,o),n};e["a"]=a},function(t,e,n){"use strict";var r=n(0),i=n(8),a=n(3);function o(t,e){var n;if(Object(a["a"])(e))n=function(t,n){return e(t)-e(n)};else{var o=[];Object(i["a"])(e)?o.push(e):Object(r["a"])(e)&&(o=e),n=function(t,e){for(var n=0;n<o.length;n+=1){var r=o[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}e["a"]=o},function(t,e,n){"use strict";var r=n(22),i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(r["a"])([].concat.apply([],t))};e["a"]=i},function(t,e,n){"use strict";var r=n(2),i=n(0),a=n(6);e["a"]=function(t,e){var n=[],o={};return t.forEach((function(t){var s=t[e];Object(a["a"])(s)||(Object(i["a"])(s)||(s=[s]),Object(r["a"])(s,(function(t){o[t]||(n.push(t),o[t]=!0)})))})),n}},function(t,e,n){"use strict";e["a"]=i;var r=n(1);function i(t){if(Object(r["a"])(t))return t[0]}},function(t,e,n){"use strict";e["a"]=i;var r=n(1);function i(t){if(Object(r["a"])(t)){var e=t;return e[e.length-1]}}},function(t,e,n){"use strict";var r=n(0),i=n(8);function a(t,e){return!(!Object(r["a"])(t)&&!Object(i["a"])(t))&&t[0]===e}e["a"]=a},function(t,e,n){"use strict";var r=n(0),i=n(8);function a(t,e){return!(!Object(r["a"])(t)&&!Object(i["a"])(t))&&t[t.length-1]===e}e["a"]=a},function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0};e["a"]=r},function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1};e["a"]=r},function(t,e,n){"use strict";var r=n(23);e["a"]=function(t,e){if(!e)return[t];var n=Object(r["a"])(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){"use strict";function r(t,e){return t["_wrap_"+e]}e["a"]=r},function(t,e,n){"use strict";function r(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}e["a"]=r},function(t,e,n){"use strict";var r={};function i(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}e["a"]=i},function(t,e,n){"use strict";var r=n(0);function i(t){var e=0,n=0,i=0,a=0;return Object(r["a"])(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}e["a"]=i},function(t,e,n){"use strict";var r=function(t,e,n){return t<e?e:t>n?n:t};e["a"]=r},function(t,e,n){"use strict";var r=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};e["a"]=r},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%1!==0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%2===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r["a"])(t)&&t%1===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t<0};e["a"]=i},function(t,e,n){"use strict";e["a"]=i;var r=1e-5;function i(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)<n}},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%2!==0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t>0};e["a"]=i},function(t,e,n){"use strict";var r=n(2),i=n(0),a=n(3);e["a"]=function(t,e){if(Object(i["a"])(t)){var n,o,s=t[0];return n=Object(a["a"])(e)?e(t[0]):t[0][e],Object(r["a"])(t,(function(t){o=Object(a["a"])(e)?e(t):t[e],o>n&&(s=t,n=o)})),s}}},function(t,e,n){"use strict";var r=n(2),i=n(0),a=n(3);e["a"]=function(t,e){if(Object(i["a"])(t)){var n,o,s=t[0];return n=Object(a["a"])(e)?e(t[0]):t[0][e],Object(r["a"])(t,(function(t){o=Object(a["a"])(e)?e(t):t[e],o<n&&(s=t,n=o)})),s}}},function(t,e,n){"use strict";var r=function(t,e){return(t%e+e)%e};e["a"]=r},function(t,e,n){"use strict";var r=180/Math.PI,i=function(t){return r*t};e["a"]=i},function(t,e,n){"use strict";e["a"]=parseInt},function(t,e,n){"use strict";var r=Math.PI/180,i=function(t){return r*t};e["a"]=i},function(t,e,n){"use strict";var r=n(2);e["a"]=r["a"]},function(t,e,n){"use strict";var r=n(25);e["a"]=r["a"]},function(t,e,n){"use strict";var r=n(12),i=n(26);e["a"]=function(t,e){return Object(r["a"])(Object(i["a"])(t),e)}},function(t,e,n){"use strict";var r=n(10),i=function(t){return Object(r["a"])(t).toLowerCase()};e["a"]=i},function(t,e,n){"use strict";var r=n(10),i=function(t){var e=Object(r["a"])(t);return e.charAt(0).toLowerCase()+e.substring(1)};e["a"]=i},function(t,e,n){"use strict";function r(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}e["a"]=r},function(t,e,n){"use strict";var r=n(10),i=function(t){return Object(r["a"])(t).toUpperCase()};e["a"]=i},function(t,e,n){"use strict";var r=n(10),i=function(t){var e=Object(r["a"])(t);return e.charAt(0).toUpperCase()+e.substring(1)};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Arguments")};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Boolean")};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Date")};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Error")};e["a"]=i},function(t,e,n){"use strict";var r=n(5);e["a"]=function(t){return Object(r["a"])(t)&&isFinite(t)}},function(t,e,n){"use strict";var r=function(t){return null===t};e["a"]=r},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"RegExp")};e["a"]=i},function(t,e,n){"use strict";var r=function(t){return void 0===t};e["a"]=r},function(t,e,n){"use strict";var r=function(t){return t instanceof Element||t instanceof HTMLDocument};e["a"]=r},function(t,e,n){"use strict";function r(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}e["a"]=r},function(t,e,n){"use strict";function r(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}e["a"]=r},function(t,e,n){"use strict";var r=n(16),i=n(3),a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],a=1;a<t.length;a++){var o=t[a];Object(i["a"])(o)&&(o=o.prototype),Object(r["a"])(n.prototype,o)}};e["a"]=a},function(t,e,n){"use strict";var r=n(0),i=function(t){if("object"!==typeof t||null===t)return t;var e;if(Object(r["a"])(t)){e=[];for(var n=0,a=t.length;n<a;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=i(t[n]):e[n]=t[n]}else for(var o in e={},t)"object"===typeof t[o]&&null!=t[o]?e[o]=i(t[o]):e[o]=t[o];return e};e["a"]=i},function(t,e,n){"use strict";function r(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}e["a"]=r},function(t,e,n){"use strict";var r=n(3);e["a"]=function(t,e){if(!Object(r["a"])(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=e?e.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,r);return o.set(a,s),s};return n.cache=new Map,n}},function(t,e,n){"use strict";var r=n(0),i=n(9),a=5;function o(t,e,n,s){for(var u in n=n||0,s=s||a,e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&Object(i["a"])(c)?(Object(i["a"])(t[u])||(t[u]={}),n<s?o(t[u],c,n+1,s):t[u]=e[u]):Object(r["a"])(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var s=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)o(t,e[r]);return t};e["a"]=s},function(t,e,n){"use strict";var r=n(16),i=n(3),a=function(t,e,n,a){Object(i["a"])(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=Object(r["a"])(s,t.prototype),t.superclass=o(e.prototype,e),Object(r["a"])(s,n),Object(r["a"])(t,a),t};e["a"]=a},function(t,e,n){"use strict";var r=n(1),i=function(t,e){if(!Object(r["a"])(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i};e["a"]=i},function(t,e,n){"use strict";var r=n(6),i=n(1),a=n(27),o=n(28),s=Object.prototype.hasOwnProperty;function u(t){if(Object(r["a"])(t))return!0;if(Object(i["a"])(t))return!t.length;var e=Object(a["a"])(t);if("Map"===e||"Set"===e)return!t.size;if(Object(o["a"])(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}e["a"]=u},function(t,e,n){"use strict";var r=n(3),i=n(29);e["a"]=function(t,e,n){return Object(r["a"])(n)?!!n(t,e):Object(i["a"])(t,e)}},function(t,e,n){"use strict";var r=n(2),i=n(1),a=function(t,e){if(!Object(i["a"])(t))return t;var n=[];return Object(r["a"])(t,(function(t,r){n.push(e(t,r))})),n};e["a"]=a},function(t,e,n){"use strict";var r=n(6),i=n(13),a=function(t){return t};e["a"]=function(t,e){void 0===e&&(e=a);var n={};return Object(i["a"])(t)&&!Object(r["a"])(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";var r=n(8);e["a"]=function(t,e,n){var i=0,a=Object(r["a"])(e)?e.split("."):e;while(t&&i<a.length)t=t[a[i++]];return void 0===t||i<a.length?n:t}},function(t,e,n){"use strict";var r=n(13),i=n(8),a=n(5);e["a"]=function(t,e,n){var o=t,s=Object(i["a"])(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(Object(r["a"])(o[t])||(o[t]=Object(a["a"])(s[e+1])?[]:{}),o=o[t]):o[t]=n})),t}},function(t,e,n){"use strict";var r=n(2),i=n(9),a=Object.prototype.hasOwnProperty;e["a"]=function(t,e){if(null===t||!Object(i["a"])(t))return{};var n={};return Object(r["a"])(e,(function(e){a.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";e["a"]=function(t,e,n){var r,i,a,o,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var h=e-(c-s);return i=this,a=arguments,h<=0||h>e?(r&&(clearTimeout(r),r=null),s=c,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,h)),o};return c.cancel=function(){clearTimeout(r),s=0,r=i=a=null},c}},function(t,e,n){"use strict";var r=n(1);e["a"]=function(t){return Object(r["a"])(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";var r={};e["a"]=function(t){return t=t||"g",r[t]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";e["a"]=function(){}},function(t,e,n){"use strict";e["a"]=function(t){return t}},function(t,e,n){"use strict";e["a"]=a;var r=n(6),i=n(1);function a(t){return Object(r["a"])(t)?0:Object(i["a"])(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e["a"]=r},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){r(t,e,n)}))}function i(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(i(t,e),n)})),n}function a(t,e){var n=i(t,e);r(t,-n,e)}function o(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,r){o(t,e.children[r],n)}))}function s(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){s(t,e,n)}))}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var r=e.isHorizontal;function i(t){if(0!==t.cs){i(t.c[0]);for(var e=b(d(t.c[0].el),0,null),n=1;n<t.cs;++n){i(t.c[n]);var r=d(t.c[n].er);c(t,n,e),e=b(r,n,e)}v(t),u(t)}else u(t)}function u(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function c(t,e,n){var r=t.c[e-1],i=r.mod,a=t.c[e],o=a.mod;while(null!==r&&null!==a){d(r)>n.low&&(n=n.nxt);var s=i+r.prelim+r.w-(o+a.prelim);s>0&&(o+=s,h(t,e,n.index,s));var u=d(r),c=d(a);u<=c&&(r=l(r),null!==r&&(i+=r.mod)),u>=c&&(a=f(a),null!==a&&(o+=a.mod))}!r&&a?p(t,e,a,o):r&&!a&&g(t,e,r,i)}function h(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,y(t,e,n,r)}function f(t){return 0===t.cs?t.tl:t.c[0]}function l(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function p(t,e,n,r){var i=t.c[0].el;i.tl=n;var a=r-n.mod-t.c[0].msel;i.mod+=a,i.prelim-=a,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}function g(t,e,n,r){var i=t.c[e].er;i.tr=n;var a=r-n.mod-t.c[e].mser;i.mod+=a,i.prelim-=a,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}function v(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}function m(t,e){e+=t.mod,t.x=t.prelim+e,x(t);for(var n=0;n<t.cs;n++)m(t.c[n],e)}function y(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}function x(t){for(var e=0,n=0,r=0;r<t.cs;r++)e+=t.c[r].shift,n+=e+t.c[r].change,t.c[r].mod+=n}function b(t,e,n){while(null!==n&&t>=n.low)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var w=n.fromNode(t,r);return i(w),m(w,0),o(w,t,r),a(t,r),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),a=n(115),o=n(17),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return t.rootNode.width=0,o(t.rootNode,t.options,a)},e}(i),c={};function h(t,e){return e=s.assign({},c,e),new u(t,e).execute()}t.exports=h},function(t,e,n){var r=n(7);function i(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}var a={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function o(t,e,n){n?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach((function(t,r){o(t,e.children[r],n)}))}t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,e);var n,s=0;function u(t){if(!t)return null;t.width=0,t.depth&&t.depth>s&&(s=t.depth);var e=t.children,n=e.length,r=new i(t.height,[]);return e.forEach((function(t,e){var i=u(t);r.children.push(i),0===e&&(r.leftChild=i),e===n-1&&(r.rightChild=i)})),r.originNode=t,r.isLeaf=t.isLeaf(),r}function c(t){if(t.isLeaf||0===t.children.length)t.drawingDepth=s;else{var e=t.children.map((function(t){return c(t)})),n=Math.min.apply(null,e);t.drawingDepth=n-1}return t.drawingDepth}function h(t){t.x=t.drawingDepth*e.rankSep,t.isLeaf?(t.y=0,n&&(t.y=n.y+n.height+e.nodeSep,t.originNode.parent!==n.originNode.parent&&(t.y+=e.subTreeSep)),n=t):(t.children.forEach((function(t){h(t)})),t.y=(t.leftChild.y+t.rightChild.y)/2)}var f=u(t);return c(f),h(f),o(f,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),a=n(117),o=n(30),s=n(7),u=["LR","RL","H"],c=u[0],h=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this,e=t.options,n=t.rootNode;e.isHorizontal=!0;var r=e.indent,i=void 0===r?20:r,s=e.dropCap,h=void 0===s||s,f=e.direction||c;if(f&&-1===u.indexOf(f))throw new TypeError("Invalid direction: "+f);if(f===u[0])a(n,i,h);else if(f===u[1])a(n,i,h),n.right2left();else if(f===u[2]){var l=o(n,e),d=l.left,p=l.right;a(d,i,h),d.right2left(),a(p,i,h);var g=d.getBoundingBox();p.translate(g.width,0),n.x=p.x-n.width/2}return n},e}(i),f={};function l(t,e){return e=s.assign({},f,e),new h(t,e).execute()}t.exports=l},function(t,e){function n(t,e,n,r){if(!r)try{if(t.id===t.parent.children[t.parent.children.length-1].id)return t.x+=n*t.depth,void(t.y=e?e.y:0)}catch(i){}t.x+=n*t.depth,t.y=e?e.y+e.height:0}t.exports=function(t,e,r){var i=null;t.eachNode((function(t){n(t,i,e,r),i=t}))}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),a=n(119),o=n(17),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return o(t.rootNode,t.options,a)},e}(i),c={};function h(t,e){return e=s.assign({},c,e),new u(t,e).execute()}t.exports=h},function(t,e,n){var r=n(7);function i(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=i(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function a(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){a(t)}));var r=e[0],i=e[n-1],o=i.y-r.y+i.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),o>t.height)t.y=r.y+o/2-t.height/2;else if(1!==e.length||t.height>s){var u=t.y+(t.height-o)/2-r.y;e.forEach((function(t){t.translate(0,u)}))}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var o={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,i(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i<n;i++){var a=e[i];a.startY=e[i-1].startY+e[i-1].totalHeight,a.y=a.startY+a.totalHeight/2-a.height/2}}}})),a(t)}}])}))},"0528":function(t,e,n){var r=n("1c6a"),i=n("78af"),a=i.parseRadius,o=n("adff"),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(s,o),r.augment(s,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}},createPath:function(t){var e=this,n=e._attrs,r=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(t=t||e.get("context"),t.beginPath(),0===u)t.rect(r,i,o,s);else{var c=a(u);t.moveTo(r+c.r1,i),t.lineTo(r+o-c.r2,i),0!==c.r2&&t.arc(r+o-c.r2,i+c.r2,c.r2,-Math.PI/2,0),t.lineTo(r+o,i+s-c.r3),0!==c.r3&&t.arc(r+o-c.r3,i+s-c.r3,c.r3,0,Math.PI/2),t.lineTo(r+c.r4,i+s),0!==c.r4&&t.arc(r+c.r4,i+s-c.r4,c.r4,Math.PI/2,Math.PI),t.lineTo(r,i+c.r1),0!==c.r1&&t.arc(r+c.r1,i+c.r1,c.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=s},"0621":function(t,e,n){var r=n("9e69"),i=n("d370"),a=n("6747"),o=r?r.isConcatSpreadable:void 0;function s(t){return a(t)||i(t)||!!(o&&t&&t[o])}t.exports=s},"0644":function(t,e,n){var r=n("3818"),i=1,a=4;function o(t){return r(t,i|a)}t.exports=o},"06bb":function(t,e,n){var r=n("00d0"),i=function(t){return r(t,"Function")};t.exports=i},"07c7":function(t,e){function n(){return!1}t.exports=n},"087d":function(t,e){function n(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}t.exports=n},"08cc":function(t,e,n){var r=n("1a8c");function i(t){return t===t&&!r(t)}t.exports=i},"099a":function(t,e){function n(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}t.exports=n},"0a4a":function(t,e,n){"use strict";n.r(e);var r=function(t,e){var n;function r(){var r,i,a=n.length,o=0,s=0;for(r=0;r<a;++r)i=n[r],o+=i.x,s+=i.y;for(o=o/a-t,s=s/a-e,r=0;r<a;++r)i=n[r],i.x-=o,i.y-=s}return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r},i=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return a(this.cover(e,n),e,n,t)};function a(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a,o,s,u,c,h,f,l,d=t._root,p={data:r},g=t._x0,v=t._y0,m=t._x1,y=t._y1;if(!d)return t._root=p,t;while(d.length)if((c=e>=(a=(g+m)/2))?g=a:m=a,(h=n>=(o=(v+y)/2))?v=o:y=o,i=d,!(d=d[f=h<<1|c]))return i[f]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e>=(a=(g+m)/2))?g=a:m=a,(h=n>=(o=(v+y)/2))?v=o:y=o}while((f=h<<1|c)===(l=(u>=o)<<1|s>=a));return i[l]=d,i[f]=p,t}function o(t){var e,n,r,i,o=t.length,s=new Array(o),u=new Array(o),c=1/0,h=1/0,f=-1/0,l=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(s[n]=r,u[n]=i,r<c&&(c=r),r>f&&(f=r),i<h&&(h=i),i>l&&(l=i));if(c>f||h>l)return this;for(this.cover(c,h).cover(f,l),n=0;n<o;++n)a(this,s[n],u[n],t[n]);return this}var s=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,a=(r=Math.floor(e))+1;else{var o,s,u=i-n,c=this._root;while(n>t||t>=i||r>e||e>=a)switch(s=(e<r)<<1|t<n,o=new Array(4),o[s]=c,c=o,u*=2,s){case 0:i=n+u,a=r+u;break;case 1:n=i-u,a=r+u;break;case 2:i=n+u,r=a-u;break;case 3:n=i-u,r=a-u;break}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},u=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},c=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},h=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i},f=function(t,e,n){var r,i,a,o,s,u,c,f=this._x0,l=this._y0,d=this._x1,p=this._y1,g=[],v=this._root;v&&g.push(new h(v,f,l,d,p)),null==n?n=1/0:(f=t-n,l=e-n,d=t+n,p=e+n,n*=n);while(u=g.pop())if(!(!(v=u.node)||(i=u.x0)>d||(a=u.y0)>p||(o=u.x1)<f||(s=u.y1)<l))if(v.length){var m=(i+o)/2,y=(a+s)/2;g.push(new h(v[3],m,y,o,s),new h(v[2],i,y,m,s),new h(v[1],m,a,o,y),new h(v[0],i,a,m,y)),(c=(e>=y)<<1|t>=m)&&(u=g[g.length-1],g[g.length-1]=g[g.length-1-c],g[g.length-1-c]=u)}else{var x=t-+this._x.call(null,v.data),b=e-+this._y.call(null,v.data),w=x*x+b*b;if(w<n){var _=Math.sqrt(n=w);f=t-_,l=e-_,d=t+_,p=e+_,r=v.data}}return r},l=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,r,i,a,o,s,u,c,h,f,l,d=this._root,p=this._x0,g=this._y0,v=this._x1,m=this._y1;if(!d)return this;if(d.length)while(1){if((c=a>=(s=(p+v)/2))?p=s:v=s,(h=o>=(u=(g+m)/2))?g=u:m=u,e=d,!(d=d[f=h<<1|c]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,l=f)}while(d.data!==t)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[l]=d:this._root=d),this):(this._root=i,this)};function d(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}var p=function(){return this._root},g=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},v=function(t){var e,n,r,i,a,o,s=[],u=this._root;u&&s.push(new h(u,this._x0,this._y0,this._x1,this._y1));while(e=s.pop())if(!t(u=e.node,r=e.x0,i=e.y0,a=e.x1,o=e.y1)&&u.length){var c=(r+a)/2,f=(i+o)/2;(n=u[3])&&s.push(new h(n,c,f,a,o)),(n=u[2])&&s.push(new h(n,r,f,c,o)),(n=u[1])&&s.push(new h(n,c,i,a,f)),(n=u[0])&&s.push(new h(n,r,i,c,f))}return this},m=function(t){var e,n=[],r=[];this._root&&n.push(new h(this._root,this._x0,this._y0,this._x1,this._y1));while(e=n.pop()){var i=e.node;if(i.length){var a,o=e.x0,s=e.y0,u=e.x1,c=e.y1,f=(o+u)/2,l=(s+c)/2;(a=i[0])&&n.push(new h(a,o,s,f,l)),(a=i[1])&&n.push(new h(a,f,s,u,l)),(a=i[2])&&n.push(new h(a,o,l,f,c)),(a=i[3])&&n.push(new h(a,f,l,u,c))}r.push(e)}while(e=r.pop())t(e.node,e.x0,e.y0,e.x1,e.y1);return this};function y(t){return t[0]}var x=function(t){return arguments.length?(this._x=t,this):this._x};function b(t){return t[1]}var w=function(t){return arguments.length?(this._y=t,this):this._y};function _(t,e,n){var r=new M(null==e?y:e,null==n?b:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function M(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function S(t){var e={data:t.data},n=e;while(t=t.next)n=n.next={data:t.data};return e}var k=_.prototype=M.prototype;k.copy=function(){var t,e,n=new M(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=S(r),n;t=[{source:r,target:n._root=new Array(4)}];while(r=t.pop())for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=S(e));return n},k.add=i,k.addAll=o,k.cover=s,k.data=u,k.extent=c,k.find=f,k.remove=l,k.removeAll=d,k.root=p,k.size=g,k.visit=v,k.visitAfter=m,k.x=x,k.y=w;var A=function(t){return function(){return t}},P=function(){return 1e-6*(Math.random()-.5)};function C(t){return t.x+t.vx}function E(t){return t.y+t.vy}var I=function(t){var e,n,r=1,i=1;function a(){for(var t,a,s,u,c,h,f,l=e.length,d=0;d<i;++d)for(a=_(e,C,E).visitAfter(o),t=0;t<l;++t)s=e[t],h=n[s.index],f=h*h,u=s.x+s.vx,c=s.y+s.vy,a.visit(p);function p(t,e,n,i,a){var o=t.data,l=t.r,d=h+l;if(!o)return e>u+d||i<u-d||n>c+d||a<c-d;if(o.index>s.index){var p=u-o.x-o.vx,g=c-o.y-o.vy,v=p*p+g*g;v<d*d&&(0===p&&(p=P(),v+=p*p),0===g&&(g=P(),v+=g*g),v=(d-(v=Math.sqrt(v)))/v*r,s.vx+=(p*=v)*(d=(l*=l)/(f+l)),s.vy+=(g*=v)*d,o.vx-=p*(d=1-d),o.vy-=g*d)}}}function o(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function s(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;r<a;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!==typeof t&&(t=A(null==t?1:+t)),a.initialize=function(t){e=t,s()},a.iterations=function(t){return arguments.length?(i=+t,a):i},a.strength=function(t){return arguments.length?(r=+t,a):r},a.radius=function(e){return arguments.length?(t="function"===typeof e?e:A(+e),s(),a):t},a};function O(t){return t.index}function T(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}var N=function(t){var e,n,r,i,a,o=O,s=h,u=A(30),c=1;function h(t){return 1/Math.min(i[t.source.index],i[t.target.index])}function f(r){for(var i=0,o=t.length;i<c;++i)for(var s,u,h,f,l,d,p,g=0;g<o;++g)s=t[g],u=s.source,h=s.target,f=h.x+h.vx-u.x-u.vx||P(),l=h.y+h.vy-u.y-u.vy||P(),d=Math.sqrt(f*f+l*l),d=(d-n[g])/d*r*e[g],f*=d,l*=d,h.vx-=f*(p=a[g]),h.vy-=l*p,u.vx+=f*(p=1-p),u.vy+=l*p}function l(){if(r){var s,u,c=r.length,h=t.length,f=new Map(r.map((t,e)=>[o(t,e,r),t]));for(s=0,i=new Array(c);s<h;++s)u=t[s],u.index=s,"object"!==typeof u.source&&(u.source=T(f,u.source)),"object"!==typeof u.target&&(u.target=T(f,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(s=0,a=new Array(h);s<h;++s)u=t[s],a[s]=i[u.source.index]/(i[u.source.index]+i[u.target.index]);e=new Array(h),d(),n=new Array(h),p()}}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+s(t[n],n,t)}function p(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+u(t[e],e,t)}return null==t&&(t=[]),f.initialize=function(t){r=t,l()},f.links=function(e){return arguments.length?(t=e,l(),f):t},f.id=function(t){return arguments.length?(o=t,f):o},f.iterations=function(t){return arguments.length?(c=+t,f):c},f.strength=function(t){return arguments.length?(s="function"===typeof t?t:A(+t),d(),f):s},f.distance=function(t){return arguments.length?(u="function"===typeof t?t:A(+t),p(),f):u},f},j={value:function(){}};function B(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new L(r)}function L(t){this._=t}function D(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function R(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function F(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=j,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}L.prototype=B.prototype={constructor:L,on:function(t,e){var n,r=this._,i=D(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++a<o)if(n=(t=i[a]).type)r[n]=F(r[n],t.name,e);else if(null==e)for(n in r)r[n]=F(r[n],t.name,null);return this}while(++a<o)if((n=(t=i[a]).type)&&(n=R(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new L(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],a=0,n=r.length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var Y=B,q=n("74f4");function z(t){return t.x}function X(t){return t.y}var G=10,W=Math.PI*(3-Math.sqrt(5)),U=function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,u=Object(q["c"])(h),c=Y("tick","end");function h(){f(),c.call("tick",e),n<r&&(u.stop(),c.call("end",e))}function f(r){var u,c,h=t.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(n+=(a-n)*i,s.forEach((function(t){t(n)})),u=0;u<h;++u)c=t[u],null==c.fx?c.x+=c.vx*=o:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=o:(c.y=c.fy,c.vy=0);return e}function l(){for(var e,n=0,r=t.length;n<r;++n){if(e=t[n],e.index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=G*Math.sqrt(n),a=n*W;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function d(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),l(),e={tick:f,restart:function(){return u.restart(h),e},stop:function(){return u.stop(),e},nodes:function(n){return arguments.length?(t=n,l(),s.forEach(d),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(a=+t,e):a},velocityDecay:function(t){return arguments.length?(o=1-t,e):1-o},force:function(t,n){return arguments.length>1?(null==n?s.delete(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,u,c=0,h=t.length;for(null==r?r=1/0:r*=r,c=0;c<h;++c)s=t[c],i=e-s.x,a=n-s.y,o=i*i+a*a,o<r&&(u=s,r=o);return u},on:function(t,n){return arguments.length>1?(c.on(t,n),e):c.on(t)}}},V=function(){var t,e,n,r,i=A(-30),a=1,o=1/0,s=.81;function u(r){var i,a=t.length,o=_(t,z,X).visitAfter(h);for(n=r,i=0;i<a;++i)e=t[i],o.visit(f)}function c(){if(t){var e,n,a=t.length;for(r=new Array(a),e=0;e<a;++e)n=t[e],r[n.index]=+i(n,e,t)}}function h(t){var e,n,i,a,o,s=0,u=0;if(t.length){for(i=a=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(s+=e.value,u+=n,i+=n*e.x,a+=n*e.y);t.x=i/u,t.y=a/u}else{e=t,e.x=e.data.x,e.y=e.data.y;do{s+=r[e.data.index]}while(e=e.next)}t.value=s}function f(t,i,u,c){if(!t.value)return!0;var h=t.x-e.x,f=t.y-e.y,l=c-i,d=h*h+f*f;if(l*l/s<d)return d<o&&(0===h&&(h=P(),d+=h*h),0===f&&(f=P(),d+=f*f),d<a&&(d=Math.sqrt(a*d)),e.vx+=h*t.value*n/d,e.vy+=f*t.value*n/d),!0;if(!(t.length||d>=o)){(t.data!==e||t.next)&&(0===h&&(h=P(),d+=h*h),0===f&&(f=P(),d+=f*f),d<a&&(d=Math.sqrt(a*d)));do{t.data!==e&&(l=r[t.data.index]*n/d,e.vx+=h*l,e.vy+=f*l)}while(t=t.next)}}return u.initialize=function(e){t=e,c()},u.strength=function(t){return arguments.length?(i="function"===typeof t?t:A(+t),c(),u):i},u.distanceMin=function(t){return arguments.length?(a=t*t,u):Math.sqrt(a)},u.distanceMax=function(t){return arguments.length?(o=t*t,u):Math.sqrt(o)},u.theta=function(t){return arguments.length?(s=t*t,u):Math.sqrt(s)},u},H=function(t,e,n){var r,i,a,o=A(.1);function s(t){for(var o=0,s=r.length;o<s;++o){var u=r[o],c=u.x-e||1e-6,h=u.y-n||1e-6,f=Math.sqrt(c*c+h*h),l=(a[o]-f)*i[o]*t/f;u.vx+=c*l,u.vy+=h*l}}function u(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)a[e]=+t(r[e],e,r),i[e]=isNaN(a[e])?0:+o(r[e],e,r)}}return"function"!==typeof t&&(t=A(+t)),null==e&&(e=0),null==n&&(n=0),s.initialize=function(t){r=t,u()},s.strength=function(t){return arguments.length?(o="function"===typeof t?t:A(+t),u(),s):o},s.radius=function(e){return arguments.length?(t="function"===typeof e?e:A(+e),u(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s},Z=function(t){var e,n,r,i=A(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)i=e[a],i.vx+=(r[a]-i.x)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!==typeof t&&(t=A(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"===typeof t?t:A(+t),o(),a):i},a.x=function(e){return arguments.length?(t="function"===typeof e?e:A(+e),o(),a):t},a},$=function(t){var e,n,r,i=A(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)i=e[a],i.vy+=(r[a]-i.y)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!==typeof t&&(t=A(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"===typeof t?t:A(+t),o(),a):i},a.y=function(e){return arguments.length?(t="function"===typeof e?e:A(+e),o(),a):t},a};n.d(e,"forceCenter",(function(){return r})),n.d(e,"forceCollide",(function(){return I})),n.d(e,"forceLink",(function(){return N})),n.d(e,"forceManyBody",(function(){return V})),n.d(e,"forceRadial",(function(){return H})),n.d(e,"forceSimulation",(function(){return U})),n.d(e,"forceX",(function(){return Z})),n.d(e,"forceY",(function(){return $}))},"0acb":function(t,e,n){"use strict";n.r(e),n.d(e,"getBBoxFromPoint",(function(){return i})),n.d(e,"getBBoxFromPoints",(function(){return a})),n.d(e,"isBBoxesOverlapping",(function(){return o})),n.d(e,"filterConnectPoints",(function(){return s})),n.d(e,"simplifyPolyline",(function(){return u})),n.d(e,"getSimplePolyline",(function(){return c})),n.d(e,"getExpandedBBox",(function(){return h})),n.d(e,"isHorizontalPort",(function(){return f})),n.d(e,"getExpandedBBoxPoint",(function(){return l})),n.d(e,"mergeBBox",(function(){return d})),n.d(e,"getPointsFromBBox",(function(){return p})),n.d(e,"isPointOutsideBBox",(function(){return g})),n.d(e,"getBBoxXCrossPoints",(function(){return v})),n.d(e,"getBBoxYCrossPoints",(function(){return m})),n.d(e,"getBBoxCrossPointsByPoint",(function(){return y})),n.d(e,"distance",(function(){return x})),n.d(e,"_costByPoints",(function(){return b})),n.d(e,"heuristicCostEstimate",(function(){return w})),n.d(e,"reconstructPath",(function(){return _})),n.d(e,"removeFrom",(function(){return M})),n.d(e,"isSegmentsIntersected",(function(){return S})),n.d(e,"isSegmentCrossingBBox",(function(){return k})),n.d(e,"getNeighborPoints",(function(){return A})),n.d(e,"pathFinder",(function(){return P})),n.d(e,"isBending",(function(){return C})),n.d(e,"getBorderRadiusPoints",(function(){return E})),n.d(e,"getPathWithBorderRadiusByPolyline",(function(){return I})),n.d(e,"getPolylinePoints",(function(){return O}));const r=n("1bb5"),i=t=>{const{x:e,y:n}=t;return{centerX:e,centerY:n,minX:e,minY:n,maxX:e,maxY:n,height:0,width:0}},a=(t=[])=>{const e=[],n=[];t.forEach(t=>{e.push(t.x),n.push(t.y)});const r=Math.min.apply(Math,e),i=Math.max.apply(Math,e),a=Math.min.apply(Math,n),o=Math.max.apply(Math,n);return{centerX:(r+i)/2,centerY:(a+o)/2,maxX:i,maxY:o,minX:r,minY:a,height:o-a,width:i-r}},o=(t,e)=>2*Math.abs(t.centerX-e.centerX)<t.width+e.width&&2*Math.abs(t.centerY-e.centerY)<t.height+e.height,s=t=>{const e=[],n={};return t.forEach(t=>{const e=t.id=`${t.x}-${t.y}`;n[e]=t}),r.each(n,t=>{e.push(t)}),e},u=t=>(t=s(t),t),c=(t,e)=>[t,{x:t.x,y:e.y},e],h=(t,e)=>0===t.width&&0===t.height?t:{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e},f=(t,e)=>{const n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return n/e.width>r/e.height},l=(t,e)=>{const n=f(e,t);return n?{x:e.x>t.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},d=(t,e)=>{const n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i=Math.max(t.maxX,e.maxX),a=Math.max(t.maxY,e.maxY);return{centerX:(n+i)/2,centerY:(r+a)/2,minX:n,minY:r,maxX:i,maxY:a,height:a-r,width:i-n}},p=t=>{const{minX:e,minY:n,maxX:r,maxY:i}=t;return[{x:e,y:n},{x:r,y:n},{x:r,y:i},{x:e,y:i}]},g=(t,e)=>{const{x:n,y:r}=t;return n<e.minX||n>e.maxX||r<e.minY||r>e.maxY},v=(t,e)=>e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}],m=(t,e)=>e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}],y=(t,e)=>v(t,e.x).concat(m(t,e.y)),x=(t,e)=>Math.abs(t.x-e.x)+Math.abs(t.y-e.y),b=(t,e)=>{const n=-2;let r=0;return e.forEach(e=>{e&&(t.x===e.x&&(r+=n),t.y===e.y&&(r+=n))}),r},w=(t,e,n,r,i)=>x(t,e)+x(t,n)+b(t,[e,n,r,i]),_=(t,e,n,r,i=0)=>{t.unshift(e[r]),n[r]&&n[r]!==r&&i<=100&&_(t,e,n,n[r],i+1)},M=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},S=(t,e,n,r)=>{const i=e.x-t.x,a=e.y-t.y,o=r.x-n.x,s=r.y-n.y,u=(-a*(t.x-n.x)+i*(t.y-n.y))/(-o*a+i*s),c=(o*(t.y-n.y)-s*(t.x-n.x))/(-o*a+i*s);return u>=0&&u<=1&&c>=0&&c<=1},k=(t,e,n)=>{if(n.width===n.height===0)return!1;const[r,i,a,o]=p(n);return S(t,e,r,i)||S(t,e,r,o)||S(t,e,i,a)||S(t,e,a,o)},A=(t,e,n,r)=>{const i=[];return t.forEach(t=>{t!==e&&(t.x!==e.x&&t.y!==e.y||k(t,e,n)||k(t,e,r)||i.push(t))}),s(i)},P=(t,e,n,r,i,a,o)=>{const s=[],u=[e],c={},h={},f={};h[e.id]=0,f[e.id]=w(e,n,e);const l={};t.forEach(t=>{l[t.id]=t});while(u.length){let d,p=1/0;if(u.forEach(t=>{f[t.id]<p&&(p=f[t.id],d=t)}),d===n){const t=[];return _(t,l,c,n.id),t}M(u,d),s.push(d),A(t,d,r,i).forEach(t=>{if(-1!==s.indexOf(t))return;-1===u.indexOf(t)&&u.push(t);const r=f[d.id]+x(d,t);h[t.id]&&r>=h[t.id]||(c[t.id]=d.id,h[t.id]=r,f[t.id]=h[t.id]+w(t,n,e,a,o))})}return[e,n]},C=(t,e,n)=>!(t.x===e.x===n.x||t.y===e.y===n.y),E=(t,e,n,r)=>{const i=x(t,e),a=x(n,e);i<r&&(r=i),a<r&&(r=a);const o={x:e.x-r/i*(e.x-t.x),y:e.y-r/i*(e.y-t.y)},s={x:e.x-r/a*(e.x-n.x),y:e.y-r/a*(e.y-n.y)};return[o,s]},I=(t,e)=>{const n=[],r=t[0];return n.push(`M${r.x} ${r.y}`),t.forEach((r,i)=>{const a=t[i+1],o=t[i+2];if(a&&o)if(C(r,a,o)){const[t,i]=E(r,a,o,e);n.push(`L${t.x} ${t.y}`),n.push(`Q${a.x} ${a.y} ${i.x} ${i.y}`),n.push(`L${i.x} ${i.y}`)}else n.push(`L${a.x} ${a.y}`);else a&&n.push(`L${a.x} ${a.y}`)}),n.join("")},O=(t,e,n,r,f)=>{const v=n&&n.getBBox()?n.getBBox():i(t),m=r&&r.getBBox()?r.getBBox():i(e);if(o(v,m))return u(c(t,e));const x=h(v,f),b=h(m,f);if(o(x,b))return u(c(t,e));const w=l(x,t),_=l(b,e),M=a([w,_]),S=d(x,b),k=d(x,M),A=d(b,M);let C=[];C=C.concat(p(k)),C=C.concat(p(A));const E={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[M,k,A].forEach(t=>{C=C.concat(y(t,E).filter(t=>g(t,x)&&g(t,b)))}),[{x:w.x,y:_.y},{x:_.x,y:w.y}].forEach(t=>{g(t,x)&&g(t,b)&&C.push(t)}),C.unshift(w),C.push(_),C=s(C,x,b,S);const I=P(C,w,_,v,m,t,e);return I.unshift(t),I.push(e),u(I)}},"0b07":function(t,e,n){var r=n("34ac"),i=n("3698");function a(t,e){var n=i(t,e);return r(n)?n:void 0}t.exports=a},"0b8b":function(t,e,n){"use strict";var r=n("e849"),i=r.longestPath,a=n("1845"),o=n("74e8");function s(t){switch(t.graph().ranker){case"network-simplex":h(t);break;case"tight-tree":c(t);break;case"longest-path":u(t);break;default:h(t)}}t.exports=s;var u=i;function c(t){i(t),a(t)}function h(t){o(t)}},"0d24":function(t,e,n){(function(t){var r=n("2b3e"),i=n("07c7"),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===a,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,h=c||i;t.exports=h}).call(this,n("62e4")(t))},"0e151":function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},"0e3c":function(t,e,n){n("d33f")},"0eee":function(t,e,n){var r=n("1c6a"),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function t(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return r.each(a,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var e=t.prototype;return e.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},e.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},e._parseShadow=function(t,e){var n='<feDropShadow \n dx="'+(t.dx||0)+'" \n dy="'+(t.dy||0)+'" \n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();t.exports=o},"0f0f":function(t,e,n){var r=n("8eeb"),i=n("9934");function a(t,e){return t&&r(e,i(e),t)}t.exports=a},"0fe1":function(t,e,n){const r=n("3421"),i=n("1b95");class a{getDefaultCfg(){return{default:{lineWidth:1,stroke:"#A3B1BF",strokeOpacity:.9,fill:"#F3F9FF",fillOpacity:.8,opacity:.8,disCoefficient:.6,minDis:40,maxDis:100},hover:{stroke:"#faad14",fill:"#ffe58f",fillOpacity:.3,opacity:.3,lineWidth:3},collapse:{r:30,width:80,height:40,stroke:"#A3B1BF",lineWidth:3,fill:"#F3F9FF",offsetX:-15,offsetY:5},icon:"https://gw.alipayobjects.com/zos/rmsportal/MXXetJAxlqrbisIuZxDO.svg",operatorBtn:{collapse:{img:"https://gw.alipayobjects.com/zos/rmsportal/uZVdwjJGqDooqKLKtvGA.svg",width:16,height:16},expand:{width:16,height:16,img:"https://gw.alipayobjects.com/zos/rmsportal/MXXetJAxlqrbisIuZxDO.svg"}},visible:!1}}constructor(t){this.graph=t;const e=t.get("groupStyle");this.styles=i({},this.getDefaultCfg(),e),this.customGroup={},this.delegateInGroup={},this.nodePoint=[]}create(t,e,n="circle",r=0,i=!1,a={}){const o=this.graph,s=o.get("customGroup"),u=s.get("children").map(t=>t.get("id"));if(u.indexOf(t)>-1)return console.warn(`已经存在ID为 ${t} 的分组请重新设置分组ID`);const c=s.addGroup({id:t,zIndex:r}),h=o.get("autoPaint");o.setAutoPaint(!1);const{default:f}=this.styles,{x:l,y:d,width:p,height:g,maxX:v}=this.calculationGroupPosition(e),m=this.getGroupPadding(t),y=o.get("groupBBoxs");y[t]={x:l,y:d,width:p,height:g,maxX:v};let x=null;if(i){const n=o.get("groups");e.forEach(e=>{const n=o.findById(e),r=n.getModel();r.groupId||(r.groupId=t)}),n.find(e=>e.id===t)||(n.push({id:t,title:a}),o.set({groups:n}))}const b=o.get("groups").filter(e=>e.id===t);b&&b.length>0&&(x=b[0].title);let w=0,_=0,M=null;if("circle"===n){const e=p>g?p/2:g/2,n=(p+2*l)/2,i=(g+2*d)/2,a=e+m;M=c.addShape("circle",{attrs:{...f,x:n,y:i,r:a},capture:!0,zIndex:r,groupId:t}),w=n,_=i-a,this.setDeletageGroupByStyle(t,c,{width:p,height:g,x:n,y:i,r:a})}else{const e=m*f.disCoefficient;M=c.addShape("rect",{attrs:{...f,x:l-e,y:d-e,width:p+2*e,height:g+2*e},capture:!0,zIndex:r,groupId:t}),w=l-e+15,_=d-e+15,this.setDeletageGroupByStyle(t,c,{x:l-e,y:d-e,width:p+e,height:g+e,btnOffset:v-3})}if(x){const{offsetX:t=0,offsetY:e=0,text:n=x,...r}=x,i=c.addShape("text",{attrs:{text:n,stroke:"#444",x:w+t,y:_+e,...r},className:"group-title"});i.set("capture",!1)}c.set("keyShape",M),o.get("groupNodes")[t]=e,o.setAutoPaint(h),o.paint()}setGroupStyle(t,e){if(!t||t.get("destroyed"))return;let n={};const{hover:a,default:o}=this.styles;r(e)?"default"===e?n=i({},o):"hover"===e&&(n=i({},a)):n=i({},o,e);for(const r in n)t.attr(r,n[r])}calculationGroupPosition(t){const e=this.graph;let n=1/0,i=-1/0,a=1/0,o=-1/0;for(const f of t){const t=r(f)?e.findById(f):f,s=t.getBBox(),{minX:u,minY:c,maxX:h,maxY:l}=s;u<n&&(n=u),c<a&&(a=c),h>i&&(i=h),l>o&&(o=l)}const s=Math.floor(n),u=Math.floor(a),c=Math.ceil(i)-s,h=Math.ceil(o)-u;return{x:s,y:u,width:c,height:h,maxX:Math.ceil(i)}}getGroupPadding(t){const e=this.graph,{default:n}=this.styles,r=e.get("groups"),i=!!r.filter(e=>e.parentId===t).length>0,a=i?n.maxDis:n.minDis;return a}setDeletageGroupByStyle(t,e,n){const{width:r,height:a,x:o,y:s,r:u,btnOffset:c}=n,h=this.customGroup[t];if(h){const{groupStyle:r}=h,a=i({},r,n);this.customGroup[t]={nodeGroup:e,groupStyle:a}}else this.customGroup[t]={nodeGroup:e,groupStyle:{width:r,height:a,x:o,y:s,r:u,btnOffset:c}}}getDeletageGroupById(t){return this.customGroup[t]}collapseExpandGroup(t){const e=this.getDeletageGroupById(t),{nodeGroup:n}=e,r=n.get("hasHidden");r?(n.set("hasHidden",!1),this.expandGroup(t)):(n.set("hasHidden",!0),this.collapseGroup(t))}setGroupTmpNode(t,e){const n=this.graph,r=n.get("groupNodes"),i=n.get("groups");r[t].indexOf(e)<0&&r[t].push(e);const a=i.filter(e=>e.id===t);let o=null;a.length>0&&(o=a[0].parentId),o&&this.setGroupTmpNode(o,e)}collapseGroup(t){const e=this.getDeletageGroupById(t),{nodeGroup:n}=e,{collapse:r}=this.styles,i=this.graph,a=i.get("groupType"),o=i.get("autoPaint");i.setAutoPaint(!1);const s=i.get("groupNodes")[t],{width:u,height:c}=this.calculationGroupPosition(s),h=n.get("keyShape"),{r:f,width:l,height:d,offsetX:p,offsetY:g,...v}=r;for(const M in v)h.attr(M,v[M]);let m={groupId:t,id:t+"-custom-node",x:h.attr("x"),y:h.attr("y"),style:{r:f},shape:"circle"};const y=n.findByClassName("group-title");if("circle"===a){const t=h.attr("r");h.animate({onFrame(e){return{r:t-e*(t-f)}}},500,"easeCubic"),y&&y.attr({x:h.attr("x")+p,y:h.attr("y")+g})}else"rect"===a&&(h.animate({onFrame(t){return{width:u-t*(u-l),height:c-t*(c-d)}}},500,"easeCubic"),y&&y.attr({x:h.attr("x")+10,y:h.attr("y")+d/2+5}),m={groupId:t,id:t+"-custom-node",x:h.attr("x")+l/2,y:h.attr("y")+d/2,size:[l,d],shape:"rect"});const x=i.getEdges(),b=x.filter(t=>{const e=t.getModel();return!s.includes(e.source)&&s.includes(e.target)}),w=x.filter(t=>{const e=t.getModel();return s.includes(e.source)&&!s.includes(e.target)}),_=x.filter(t=>{const e=t.getModel();return s.includes(e.source)&&s.includes(e.target)});if(s.forEach(e=>{const n=i.findById(e),r=n.getModel(),{groupId:a}=r;if(a&&a!==t){const t=this.getDeletageGroupById(a),{nodeGroup:e}=t;e.hide()}n.hide()}),_.forEach(t=>{const e=t.getSource(),n=t.getTarget();e.isVisible()&&n.isVisible()?t.show():t.hide()}),b.length>0||w.length>0){const e=i.add("node",m);e.set("capture",!1),e.hide(),this.delegateInGroup[t]={delegateNode:e},this.setGroupTmpNode(t,t+"-custom-node"),this.updateEdgeInGroupLinks(t,b,w)}i.paint(),i.setAutoPaint(o)}updateEdgeInGroupLinks(t,e,n){const r=this.graph,a={};e.map(e=>{const n=e.getModel(),i=e.get("id"),{target:o}=n;return a[i]=o,r.updateItem(e,{target:t+"-custom-node"}),!0});const o={};n.map(e=>{const n=e.getModel(),i=e.get("id"),{source:a}=n;return o[i]=a,r.updateItem(e,{source:t+"-custom-node"}),!0}),this.delegateInGroup[t]=i({sourceOutTargetInEdges:e,sourceInTargetOutEdges:n,edgesOuts:a,edgesIn:o},this.delegateInGroup[t])}expandGroup(t){const e=this.graph,n=e.get("groupType"),r=e.get("autoPaint");e.setAutoPaint(!1);const i=e.get("groupNodes")[t],a=i.filter(t=>-1===t.indexOf("custom-node")),{width:o,height:s}=this.calculationGroupPosition(a),{nodeGroup:u}=this.getDeletageGroupById(t),c=u.get("keyShape"),{default:h,collapse:f}=this.styles;for(const g in h)c.attr(g,h[g]);const l=u.findByClassName("group-title"),d=this.getGroupPadding(t);if("circle"===n){const t=o>s?o/2:s/2;c.animate({onFrame(e){return{r:f.r+e*(t-f.r+d)}}},500,"easeCubic")}else if("rect"===n){const{width:t,height:e}=f;c.animate({onFrame(n){return{width:t+n*(o-t+d*h.disCoefficient*2),height:e+n*(s-e+d*h.disCoefficient*2)}}},500,"easeCubic")}if(l){let r=null;const i=e.get("groups").filter(e=>e.id===t);i&&i.length>0&&(r=i[0].title);const{offsetX:a=0,offsetY:o=0}=r;"circle"===n?l.animate({onFrame(t){return{x:c.attr("x")+a,y:c.attr("y")-t*c.attr("r")+o}}},600,"easeCubic"):"rect"===n&&l.animate({onFrame(t){return{x:c.attr("x")+t*(15+a),y:c.attr("y")+t*(15+o)}}},600,"easeCubic")}setTimeout(()=>{i.forEach(n=>{const r=e.findById(n),i=r.getModel(),{groupId:a}=i;if(a&&a!==t){const t=this.getDeletageGroupById(a),{nodeGroup:e}=t;e.show();const n=e.get("hasHidden");n||r.show()}else r.show()});const n=e.getEdges(),r=n.filter(t=>{const e=t.getModel();return i.includes(e.source)||i.includes(e.target)});r.forEach(t=>{const e=t.getSource(),n=t.getTarget();e.isVisible()&&n.isVisible()&&t.show()})},300);const p=this.delegateInGroup[t];if(p){const{sourceOutTargetInEdges:n,sourceInTargetOutEdges:r,edgesOuts:i,edgesIn:a,delegateNode:o}=p;n.map(t=>{const n=t.get("id"),r=i[n];return e.updateItem(t,{target:r}),!0}),r.map(t=>{const n=t.get("id"),r=a[n];return e.updateItem(t,{source:r}),!0});const s=o.getModel();this.deleteTmpNode(t,s.id),e.remove(o),delete this.delegateInGroup[t]}e.setAutoPaint(r),e.paint()}deleteTmpNode(t,e){const n=this.graph,r=n.get("groups"),i=n.get("groupNodes")[t],a=i.indexOf(e);i.splice(a,1);const o=r.filter(e=>e.id===t);let s=null;o.length>0&&(s=o[0].parentId),s&&this.deleteTmpNode(s,e)}remove(t){const e=this.graph,n=this.getDeletageGroupById(t);if(!n)return void console.warn(`请确认输入的groupId ${t} 是否有误!`);const{nodeGroup:r}=n,i=e.get("autoPaint");e.setAutoPaint(!1);const a=e.get("groupNodes"),o=a[t];o.forEach(n=>{const r=e.findById(n),i=r.getModel(),a=i.groupId;a&&t===a&&(delete i.groupId,e.updateItem(r,i))}),r.destroy(),delete this.customGroup[t];const s=e.get("groups");if(s.length>0){const n=s.filter(e=>e.id!==t);e.set("groups",n)}let u=null,c=null;for(const h of s)if(t===h.id){u=h.parentId,c=h;break}c&&delete c.parentId,delete a[t],u&&(a[u]=a[u].filter(t=>!o.includes(t))),e.setAutoPaint(i),e.paint()}updateGroup(t,e){const n=this.graph,r=n.get("groupType");this.updateItemInGroup(t,e);const{groups:i}=n.save();let a=null,o=null;for(const s of i)if(t===s.id){a=s.parentId,o=s;break}if(a){const{nodeGroup:e}=this.getDeletageGroupById(a),i=e.get("keyShape");this.setGroupStyle(i,"default");const s=i.getBBox(),{minX:u,minY:c,maxX:h,maxY:f}=s,{nodeGroup:l}=this.getDeletageGroupById(t),d=l.get("keyShape"),p=d.getBBox(),{x:g,y:v}=p;if(!(g<h&&g>u&&v<f&&v>c)){delete o.parentId;const s=n.get("groupNodes"),u=s[t],c=s[a];s[a]=c.filter(t=>-1===u.indexOf(t));const{x:h,y:f,width:l,height:d}=this.calculationGroupPosition(s[a]),p=this.getGroupPadding(a),g=e.findByClassName("group-title");let v=0,m=0;if("circle"===r){const t=l>d?l/2:d/2,e=(l+2*h)/2,n=(d+2*f)/2;i.attr({r:t+p,x:e,y:n}),v=e,m=n-i.attr("r")}else if("rect"===r){const{default:t}=this.styles,e=p*t.disCoefficient;i.attr({x:h-e,y:f-e}),v=h-e+15,m=f-e+15}if(g){const t=o.title;let e=0,n=0;t&&(e=t.offsetX,n=t.offsetY),g.attr({x:v+e,y:m+n})}}}}updateItemInGroup(t,e){const n=this.graph,r=n.get("groupType"),i=n.get("groupNodes"),a=i[t],{nodeGroup:o}=this.getDeletageGroupById(t),s=o.getBBox(),u=[];a.forEach((t,r)=>{const i=n.findById(t),a=i.getModel(),o=a.groupId;o&&!u.includes(o)&&u.push(o),this.nodePoint[r]||(this.nodePoint[r]={x:a.x,y:a.y});const c=e.x-s.x+this.nodePoint[r].x,h=e.y-s.y+this.nodePoint[r].y;this.nodePoint[r]={x:c,y:h},n.updateItem(i,{x:c,y:h})}),u.includes(t)||u.push(t),u.forEach(t=>{const{nodeGroup:e}=this.getDeletageGroupById(t),n=e.get("keyShape"),a=i[t].filter(t=>-1===t.indexOf("custom-node")),{x:o,y:s,width:u,height:c}=this.calculationGroupPosition(a);let h=0,f=0;if("circle"===r){const t=(u+2*o)/2,e=(c+2*s)/2;n.attr({x:t,y:e}),h=t,f=e-n.attr("r")}else if("rect"===r){const r=e.get("hasHidden"),i=this.getGroupPadding(t);let a={};const{default:l}=this.styles,d=i*l.disCoefficient;h=o-d+15,f=s-d+15,r?(a={x:o-d,y:s-d},f+=10):a={x:o-d,y:s-d,width:u+2*d,height:c+2*d},n.attr(a)}this.updateGroupTitle(e,t,h,f)})}updateGroupTitle(t,e,n,r){const i=this.graph,a=t.findByClassName("group-title");if(a){let t=null;const o=i.get("groups").filter(t=>t.id===e);o&&o.length>0&&(t=o[0].title);let s=0,u=0;t&&(s=t.offsetX||0,u=t.offsetY||0),a.attr({x:n+s,y:r+u})}}dynamicChangeGroupSize(t,e,n){const{item:r}=t,i=r.getModel(),{groupId:a}=i,o=this.graph,s=o.get("groupType"),u=o.get("groupNodes"),c=u[a];if(0===c.length){delete u[a];const t=o.get("groups");o.set("groups",t.filter(t=>t.id!==a)),e.remove()}else{const{x:t,y:r,width:i,height:o}=this.calculationGroupPosition(c),u=this.getGroupPadding(a);let h=0,f=0;if("circle"===s){const e=i>o?i/2:o/2,a=(i+2*t)/2,s=(o+2*r)/2;n.attr({r:e+u,x:a,y:s}),h=a,f=s-n.attr("r")}else if("rect"===s){const{default:e}=this.styles,a=u*e.disCoefficient;n.attr({x:t-a,y:r-a,width:i+2*a,height:o+2*a}),h=t-a+15,f=r-a+15}this.updateGroupTitle(e,a,h,f)}this.setGroupStyle(n,"default")}resetNodePoint(){this.nodePoint.length=0}destroy(){this.graph=null,this.styles={},this.customGroup={},this.delegateInGroup={},this.resetNodePoint()}}t.exports=a},"100e":function(t,e,n){var r=n("cd9d"),i=n("2286"),a=n("c1c9");function o(t,e){return a(i(t,e,r),t+"")}t.exports=o},1041:function(t,e,n){var r=n("8eeb"),i=n("a029");function a(t,e){return r(t,i(t),e)}t.exports=a},1127:function(t,e,n){const r=n("1bb5"),i=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseout","mouseover","mousemove","mouseleave","dragstart","dragend","drag","dragenter","dragleave","drop"];function a(t){while(t&&!t.get("item"))t=t.get("parent");return t}const o=[1,0,0,0,1,0,0,0,1],s=9;function u(t){for(let e=0;e<s;e++)if(t[e]!==o[e])return!0;return!1}class c{constructor(t){this.graph=t,this.extendEvents=[],this._initEvents()}_initEvents(){const t=this,e=t.graph,n=e.get("canvas"),a=n.get("el"),o=t.extendEvents,s=r.wrapBehavior(t,"_onCanvasEvents"),u=r.wrapBehavior(t,"_onExtendEvents"),c=r.wrapBehavior(t,"_onWheelEvent");r.each(i,t=>{n.on(t,s)}),this.canvasHandler=s,o.push(r.addEventListener(a,"DOMMouseScroll",c)),o.push(r.addEventListener(a,"mousewheel",c)),"undefined"!==typeof window&&(o.push(r.addEventListener(window,"keydown",u)),o.push(r.addEventListener(window,"keyup",u)))}_onCanvasEvents(t){const e=this,n=e.graph,r=n.get("canvas"),i=r.get("pixelRatio"),o=t.target,s=t.type;t.canvasX=t.x/i,t.canvasY=t.y/i;let c={x:t.canvasX,y:t.canvasY};if(u(n.get("group").getMatrix())&&(c=n.getPointByCanvas(t.canvasX,t.canvasY)),t.x=c.x,t.y=c.y,t.currentTarget=n,o===r)return"mousemove"===s&&e._handleMouseMove(t,"canvas"),t.target=r,t.item=null,n.emit(s,t),void n.emit("canvas:"+s,t);const h=a(o);if(!h)return void n.emit(s,t);const f=h.get("item");if(f.destroyed)return;const l=f.getType();t.target=o,t.item=f,n.emit(s,t),"mouseenter"!==s&&"mouseleave"!==s&&"dragenter"!==s&&"dragleave"!==s&&(n.emit(l+":"+s,t),"dragstart"===s&&(e.dragging=!0),"dragend"===s&&(e.dragging=!1),"mousemove"===s&&e._handleMouseMove(t,l))}_onExtendEvents(t){this.graph.emit(t.type,t)}_onWheelEvent(t){r.isNil(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)}_handleMouseMove(t,e){const n=this,i=this.graph.get("canvas"),a=t.target===i?null:t.item,o=this.preItem;t=r.cloneEvent(t),o&&o!==a&&!o.destroyed&&(t.item=o,n._emitCustomEvent(o.getType(),"mouseleave",t),n.dragging&&n._emitCustomEvent(o.getType(),"dragleave",t)),a&&o!==a&&(t.item=a,n._emitCustomEvent(e,"mouseenter",t),n.dragging&&n._emitCustomEvent(e,"dragenter",t)),this.preItem=a}_emitCustomEvent(t,e,n){n.type=e,this.graph.emit(t+":"+e,n)}destroy(){const t=this.graph,e=this.canvasHandler,n=t.get("canvas");r.each(i,t=>{n.off(t,e)}),r.each(this.extendEvents,t=>{t.remove()})}}t.exports=c},1249:function(t,e,n){const r=n("1bb5");n("70e1");const i={},a={};function o(t){return a[t]||r.upperFirst(t)}const s={defaultShapeType:null,getShape(t){const e=this,n=e[t]||e[e.defaultShapeType];return n},draw(t,e,n){const r=this.getShape(t),i=r.draw(e,n);return r.afterDraw(e,n,i),i},update(t,e,n){const r=this.getShape(t);r.update&&(r.update(e,n),r.afterUpdate(e,n))},setState(t,e,n,r){const i=this.getShape(t);i.setState(e,n,r)},shouldUpdate(t){const e=this.getShape(t);return!!e.update},getControlPoints(t,e){const n=this.getShape(t);return n.getControlPoints(e)},getAnchorPoints(t,e){const n=this.getShape(t);return n.getAnchorPoints(e)}},u={options:{},getCustomConfig(){},draw(){},afterDraw(){},afterUpdate(){},setState(){},getControlPoints(t){return t.controlPoints},getAnchorPoints(t){const e=this.getCustomConfig(t)||{},{anchorPoints:n}=this.options,{anchorPoints:r}=e,i=t.anchorPoints||r||n;return i}};function c(t){const e="register"+t.className;i[e]=function(e,n,i){const a=i?t.getShape(i):u,o=r.mix({},a,n);return o.type=e,t[e]=o,o}}i.registerFactory=function(t,e){const n=o(t),a=r.mix({},s,e);return i[n]=a,a.className=n,c(a),a},i.getFactory=function(t){const e=this;return t=o(t),e[t]},t.exports=i},1290:function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},"12d7":function(t,e,n){const r=n("1bb5"),i=n("9ceb");t.exports=r.mix({getDefaultCfg(){return{item:"edge",formatText(t){return"source:"+t.source+" target:"+t.target}}},getEvents(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove"}}},i)},1304:function(t,e,n){var r=n("cd9d");function i(t){return"function"==typeof t?t:r}t.exports=i},1368:function(t,e,n){var r=n("da03"),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function a(t){return!!i&&i in t}t.exports=a},"13ea":function(t,e,n){var r=n("03dd"),i=n("42a2"),a=n("d370"),o=n("6747"),s=n("30c9"),u=n("0d24"),c=n("eac5"),h=n("73ac"),f="[object Map]",l="[object Set]",d=Object.prototype,p=d.hasOwnProperty;function g(t){if(null==t)return!0;if(s(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||h(t)||a(t)))return!t.length;var e=i(t);if(e==f||e==l)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}t.exports=g},"14c8":function(t,e){function n(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}t.exports=n},"158c":function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},"159a":function(t,e,n){var r=n("32b3"),i=n("e2e4"),a=n("c0983"),o=n("1a8c"),s=n("f4d6");function u(t,e,n,u){if(!o(t))return t;e=i(e,t);var c=-1,h=e.length,f=h-1,l=t;while(null!=l&&++c<h){var d=s(e[c]),p=n;if(c!=f){var g=l[d];p=u?u(g,d,l):void 0,void 0===p&&(p=o(g)?g:a(e[c+1])?[]:{})}r(l,d,p),l=l[d]}return t}t.exports=u},"15e8":function(t,e,n){const r=n("9ed2"),i=n("1bb5"),{get:a,cloneDeep:o,merge:s}=n("2ef0"),u="-shape",c="-label",h={options:{},getCustomConfig(){},itemType:"",draw(t,e){const n=this.drawShape(t,e);if(n.set("className",this.itemType+u),t.label){const n=this.drawLabel(t,e);n.set("className",this.itemType+c)}return n},drawShape(){},drawLabel(t,e){const n=this.getCustomConfig(t)||{},{labelCfg:r}=this.options,{labelCfg:i}=n,a=s({},r,i,t.labelCfg),o=this.getLabelStyle(t,a,e),u=e.addShape("text",{attrs:o});return u},getLabelStyleByPosition(){},getLabelStyle(t,e,n){const a=this.getLabelStyleByPosition(t,e,n);a.text=t.label;const o=this.itemType+"Label",s=r[o]?r[o].style:null,u=i.mix({},s,a,e.style);return u},getShapeStyle(t){return t.style},update(t,e){const n=e.getContainer(),r=this.itemType+u,i=n.findByClassName(r),a=this.getShapeStyle(t);i&&i.attr(a);const o=this.itemType+c,s=n.findByClassName(o);if(t.label)if(s){const e=t.labelCfg||{},r=this.getLabelStyle(t,e,n);s.resetMatrix(),s.attr(r)}else{const e=this.drawLabel(t,n);e.set("className",o)}else s&&s.remove()},setState(t,e,n){const r=n.get("keyShape");if(!r)return;const a=n.getStateStyle(t),o=this.getStateStyle(t,e,n),u=s({},o,a);if(e)r.attr(u);else{const t=n.getCurrentStatesStyle();i.each(u,(e,n)=>{t[n]||(t[n]=null)}),r.attr(t)}},getStateStyle(t,e,n){const r=n.getModel(),i=this.getCustomConfig(r)||{},{style:u,stateStyles:c}=this.options,{style:h,stateStyles:f}=i,l=s({},c,f);let d=u;if(l[t]&&(d=l[t]),e)return s({},d,r.style);const p=n.getStates(),g=s({},u,h),v=o(g);return p.forEach(t=>{s(v,a(u,t,{}),a(h,t,{}),r.style)}),v}};t.exports=h},"15f3":function(t,e,n){var r=n("89d9"),i=n("8604");function a(t,e){return r(t,e,(function(e,n){return i(t,n)}))}t.exports=a},"17d5":function(t,e,n){var r;try{r=n("e008")}catch(i){}r||(r=window.graphlib),t.exports=r},1838:function(t,e,n){var r=n("c05f"),i=n("9b02"),a=n("8604"),o=n("f608"),s=n("08cc"),u=n("20ec"),c=n("f4d6"),h=1,f=2;function l(t,e){return o(t)&&s(e)?u(c(t),e):function(n){var o=i(n,t);return void 0===o&&o===e?a(n,t):r(e,o,h|f)}}t.exports=l},1845:function(t,e,n){"use strict";var r=n("6f9c"),i=n("17d5").Graph,a=n("e849").slack;function o(t){var e,n,r=new i({directed:!1}),o=t.nodes()[0],h=t.nodeCount();r.setNode(o,{});while(s(r,t)<h)e=u(r,t),n=r.hasNode(e.v)?a(t,e):-a(t,e),c(r,t,n);return r}function s(t,e){function n(i){r.forEach(e.nodeEdges(i),(function(r){var o=r.v,s=i===o?r.w:o;t.hasNode(s)||a(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))}return r.forEach(t.nodes(),n),t.nodeCount()}function u(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return a(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=o},"188c":function(t,e,n){var r=n("1c6a"),i=n("adff"),a=n("78af"),o=n("4980"),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.radius||t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},_getPath:function(){var t,e=this._attrs,n=e.x,i=e.y,a=e.radius||e.r,o=e.symbol||"circle";return t=r.isFunction(o)?o:s.Symbols[o],t?t(n,i,a):(console.warn(o+" marker is not supported."),null)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n,r=a.parsePath(this._getPath());t.beginPath(),e=[];for(var i=0;i<r.length;i++){var s=r[i];n=new o(s,n,i===r.length-1),e.push(n),n.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var u=0;u<e.length;u++)e[u].draw(t)}}}),t.exports=s},"18d8":function(t,e,n){var r=n("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=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(a,"$1"):n||t)})),e}));t.exports=o},"196f":function(t,e,n){t.exports={Node:n("fb06"),Edge:n("576cf")}},"19b2":function(t,e,n){var r=n("33de"),i=n("9671");function a(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:s(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e}function o(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),a={v:e};return r.isUndefined(n)||(a.value=n),r.isUndefined(i)||(a.parent=i),a}))}function s(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}))}function u(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}t.exports={write:a,read:u}},"1a2d":function(t,e,n){var r=n("42a2"),i=n("1310"),a="[object Map]";function o(t){return i(t)&&r(t)==a}t.exports=o},"1b95":function(t,e,n){var r=n("7bf3"),i=n("3a21"),a=5;function o(t,e,n,s){for(var u in n=n||0,s=s||a,e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&r(c)?(r(t[u])||(t[u]={}),n<s?o(t[u],c,n+1,s):t[u]=e[u]):i(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var s=function(){for(var t=new Array(arguments.length),e=t.length,n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0],i=1;i<e;i++)o(r,t[i]);return r};t.exports=s},"1bac":function(t,e,n){var r=n("7d1f"),i=n("a029"),a=n("9934");function o(t){return r(t,a,i)}t.exports=o},"1bb5":function(t,e,n){const r={},i=n("c138"),a=n("fe39"),o=n("e877"),s=n("3f97"),u=n("7582"),c=n("3c9b");o.deepMix(r,o,s,a,i,u,c),t.exports=r},"1c3c":function(t,e,n){var r=n("9e69"),i=n("2474"),a=n("9638"),o=n("a2be"),s=n("edfa"),u=n("ac41"),c=1,h=2,f="[object Boolean]",l="[object Date]",d="[object Error]",p="[object Map]",g="[object Number]",v="[object RegExp]",m="[object Set]",y="[object String]",x="[object Symbol]",b="[object ArrayBuffer]",w="[object DataView]",_=r?r.prototype:void 0,M=_?_.valueOf:void 0;function S(t,e,n,r,_,S,k){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case b:return!(t.byteLength!=e.byteLength||!S(new i(t),new i(e)));case f:case l:case g:return a(+t,+e);case d:return t.name==e.name&&t.message==e.message;case v:case y:return t==e+"";case p:var A=s;case m:var P=r&c;if(A||(A=u),t.size!=e.size&&!P)return!1;var C=k.get(t);if(C)return C==e;r|=h,k.set(t,e);var E=o(A(t),A(e),r,_,S,k);return k["delete"](t),E;case x:if(M)return M.call(t)==M.call(e)}return!1}t.exports=S},"1c6a":function(t,e,n){var r=n("5eec"),i={};r.merge(i,r,{isColorProp:function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},isGradientColor:function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,(function(e){i.augment(t,e);var a=e[n];a&&i.merge(r,a)})),t[n]=i.merge(r,t[n])}}}),t.exports=i},"1cba":function(t,e,n){var r=n("4796"),i=n("9aff"),a=n("6428");function o(t){return function(e,n,o){return o&&"number"!=typeof o&&i(e,n,o)&&(n=o=void 0),e=a(e),void 0===n?(n=e,e=0):n=a(n),o=void 0===o?e<n?1:-1:a(o),r(e,n,o,t)}}t.exports=o},"1cec":function(t,e,n){var r=n("0b07"),i=n("2b3e"),a=r(i,"Promise");t.exports=a},"1efc":function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},"1f3a":function(t,e,n){var r=n("6f9c");function i(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}}))}t.exports=i},"1fc8":function(t,e,n){var r=n("4245");function i(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}t.exports=i},"20ec":function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},2164:function(t,e,n){var r=n("cae7");function i(t,e,n){var i=-1,a=t.criteria,o=e.criteria,s=a.length,u=n.length;while(++i<s){var c=r(a[i],o[i]);if(c){if(i>=u)return c;var h=n[i];return c*("desc"==h?-1:1)}}return t.index-e.index}t.exports=i},2172:function(t,e,n){var r=n("1c6a"),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,u=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function h(t,e){var n=t.match(c);r.each(n,(function(t){t=t.split(":"),e.addColorStop(t[0],t[1])}))}function f(t,e,n){var i,a,s=o.exec(t),u=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),c=s[2],f=e.getBBox();u>=0&&u<.5*Math.PI?(i={x:f.minX,y:f.minY},a={x:f.maxX,y:f.maxY}):.5*Math.PI<=u&&u<Math.PI?(i={x:f.maxX,y:f.minY},a={x:f.minX,y:f.maxY}):Math.PI<=u&&u<1.5*Math.PI?(i={x:f.maxX,y:f.maxY},a={x:f.minX,y:f.minY}):(i={x:f.minX,y:f.maxY},a={x:f.maxX,y:f.minY});var l=Math.tan(u),d=l*l,p=(a.x-i.x+l*(a.y-i.y))/(d+1)+i.x,g=l*(a.x-i.x+l*(a.y-i.y))/(d+1)+i.y,v=n.createLinearGradient(i.x,i.y,p,g);return h(c,v),v}function l(t,e,n){var r=s.exec(t),i=parseFloat(r[1]),a=parseFloat(r[2]),o=parseFloat(r[3]),u=r[4];if(0===o){var f=u.match(c);return f[f.length-1].split(":")[1]}var l=e.getBBox(),d=l.maxX-l.minX,p=l.maxY-l.minY,g=Math.sqrt(d*d+p*p)/2,v=n.createRadialGradient(l.minX+d*i,l.minY+p*a,o*g,l.minX+d/2,l.minY+p/2,g);return h(u,v),v}function d(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var r,i,a=u.exec(t),o=a[1],s=a[2];function c(){r=n.createPattern(i,o),e.setSilent("pattern",r),e.setSilent("patternSource",t)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?c():(i.onload=c,i.src=i.src),r}t.exports={parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if(e=e.match(a),e[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return f(t,e,n);if("r"===t[0])return l(t,e,n);if("p"===t[0])return d(t,e,n)}return t}}}},"220e":function(t,e,n){var r=n("6f9c"),i=n("b50e");function a(t){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)}}r.forEach(t.children(),e)}function o(t,e,n,r,a,o){var s={width:0,height:0,rank:o,borderType:e},u=a[e][o-1],c=i.addDummyNode(t,"border",s,n);a[e][o]=c,t.setParent(c,r),u&&t.setEdge(u,c,{weight:1})}t.exports=a},2286:function(t,e,n){var r=n("85e3"),i=Math.max;function a(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){var a=arguments,o=-1,s=i(a.length-e,0),u=Array(s);while(++o<s)u[o]=a[e+o];o=-1;var c=Array(e+1);while(++o<e)c[o]=a[o];return c[e]=n(u),r(t,this,c)}}t.exports=a},"2325b":function(t,e,n){"use strict";var r=n("6f9c"),i=n("b50e"),a=n("8c55").positionX;function o(t){t=i.asNonCompoundGraph(t),s(t),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}function s(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=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=a+i/2})),a+=i+n}))}t.exports=o},"234d":function(t,e,n){var r=n("e380"),i=500;function a(t){var e=r(t,(function(t){return n.size===i&&n.clear(),t})),n=e.cache;return e}t.exports=a},"241e0":function(t,e,n){const r=n("1bb5"),i=n("196f"),a=n("1b95"),o="node",s="edge",u="default",c="Mapper",h="stateStyles",f=Object.hasOwnProperty;class l{constructor(t){this.graph=t}addItem(t,e){const n=this.graph,o=n.get(t+"Group")||n.get("group"),l=r.upperFirst(t);let d,p=n.get(t+r.upperFirst(h))||{};const g=n.get(u+l),v=n.get(t+c);if(v){const t=v(e);t[h]&&(p=t[h],delete t[h]),e=a({},g,e,t)}else g&&r.each(g,(t,n)=>{f.call(e,n)||(r.isObject(t)?e[n]=r.clone(t):e[n]=g[n])});if(n.emit("beforeadditem",{type:t,model:e}),t===s){let t=e.source,a=e.target;if(t&&r.isString(t)&&(t=n.findById(t)),a&&r.isString(a)&&(a=n.findById(a)),!t||!a)return void console.warn("The source or target node of edge "+e.id+" does not exist!");d=new i[l]({model:e,source:t,target:a,styles:p,linkCenter:n.get("linkCenter"),group:o.addGroup()})}else d=new i[l]({model:e,styles:p,group:o.addGroup()});return n.get(t+"s").push(d),n.get("itemMap")[d.get("id")]=d,n.autoPaint(),n.emit("afteradditem",{item:d,model:e}),d}updateItem(t,e){const n=this.graph;if(r.isString(t)&&(t=n.findById(t)),!t||t.destroyed)return;const i=n.get(t.getType()+c),u=t.getModel();if(i){const n=a({},u,e),o=i(n),s=a({},u,o,e);o[h]&&(t.set("styles",s[h]),delete s[h]),r.each(s,(t,n)=>{e[n]=t})}else r.each(e,(t,n)=>{u[n]&&r.isObject(t)&&!r.isArray(t)&&(e[n]=r.mix({},u[n],e[n]))});if(n.emit("beforeupdateitem",{item:t,cfg:e}),t.getType()===s){if(e.source){let i=e.source;r.isString(i)&&(i=n.findById(i)),t.setSource(i)}if(e.target){let i=e.target;r.isString(i)&&(i=n.findById(i)),t.setTarget(i)}}if(t.update(e),t.getType()===o){const e=n.get("autoPaint");n.setAutoPaint(!1),r.each(t.getEdges(),t=>{n.refreshItem(t)}),n.setAutoPaint(e)}n.autoPaint(),n.emit("afterupdateitem",{item:t,cfg:e})}removeItem(t){const e=this.graph;if(r.isString(t)&&(t=e.findById(t)),!t||t.destroyed)return;e.emit("beforeremoveitem",{item:t});const n=t.getType(),i=e.get(t.getType()+"s"),a=i.indexOf(t);if(i.splice(a,1),delete e.get("itemMap")[t.get("id")],n===o){const n=t.getEdges();for(let t=n.length;t>=0;t--)e.removeItem(n[t])}t.destroy(),e.autoPaint(),e.emit("afterremoveitem",{item:t})}setItemState(t,e,n){const r=this.graph;t.hasState(e)!==n&&(r.emit("beforeitemstatechange",{item:t,state:e,enabled:n}),t.setState(e,n),r.autoPaint(),r.emit("afteritemstatechange",{item:t,state:e,enabled:n}))}clearItemStates(t,e){const n=this.graph;r.isString(t)&&(t=n.findById(t)),n.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),n.autoPaint(),n.emit("afteritemstatesclear",{item:t,states:e})}refreshItem(t){const e=this.graph;r.isString(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.autoPaint(),e.emit("afteritemrefresh",{item:t})}changeItemVisibility(t,e){const n=this,i=n.graph;if(r.isString(t)&&(t=i.findById(t)),i.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType()===o){const a=i.get("autoPaint");i.setAutoPaint(!1),r.each(t.getEdges(),t=>{(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}),i.setAutoPaint(a)}i.autoPaint(),i.emit("afteritemvisibilitychange",{item:t,visible:e})}destroy(){this.graph=null,this.destroyed=!0}}t.exports=l},"242e":function(t,e,n){var r=n("72af"),i=n("ec69");function a(t,e){return t&&r(t,e,i)}t.exports=a},2474:function(t,e,n){var r=n("2b3e"),i=r.Uint8Array;t.exports=i},2478:function(t,e,n){var r=n("4245");function i(t){return r(this,t).get(t)}t.exports=i},"24db":function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},"251a":function(t,e,n){var r=n("6f9c"),i=n("b50e");function a(t){var e=i.addDummyNode(t,"root",{},"_root"),n=s(t),a=r.max(r.values(n))-1,c=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=c}));var h=u(t)+1;r.forEach(t.children(),(function(r){o(t,e,c,h,a,n,r)})),t.graph().nodeRankFactor=c}function o(t,e,n,a,s,u,c){var h=t.children(c);if(h.length){var f=i.addBorderNode(t,"_bt"),l=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(f,c),d.borderTop=f,t.setParent(l,c),d.borderBottom=l,r.forEach(h,(function(r){o(t,e,n,a,s,u,r);var i=t.node(r),h=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=h!==d?1:s-u[c]+1;t.setEdge(f,h,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,l,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(c)||t.setEdge(e,f,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}function s(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}function u(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}function c(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)}))}t.exports={run:a,cleanup:c}},2524:function(t,e,n){var r=n("6044"),i="__lodash_hash_undefined__";function a(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}t.exports=a},"253c":function(t,e,n){var r=n("3729"),i=n("1310"),a="[object Arguments]";function o(t){return i(t)&&r(t)==a}t.exports=o},2593:function(t,e,n){var r=n("15f3"),i=n("c6cf"),a=i((function(t,e){return null==t?{}:r(t,e)}));t.exports=a},2599:function(t,e){const n={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK"};t.exports={LAYOUT_MESSAGE:n}},2620:function(t,e,n){var r=n("1c6a"),i=n("9f57"),a=["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave"],o=function(){var t=new Date;return t.getTime()},s=40,u=0,c=null,h=null,f={},l=null,d=0;t.exports={registerEvent:function(){var t=this,e=this.get("el");r.each(a,(function(n){e.addEventListener(n,(function(e){t._triggerEvent(n,e)}),!1)})),e.addEventListener("touchstart",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])}),!1),e.addEventListener("touchmove",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])}),!1),e.addEventListener("touchend",(function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])}),!1),e.addEventListener("contextmenu",(function(e){t._triggerEvent("contextmenu",e),e.preventDefault()}),!1)},_getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this._getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n=this,r=n.getPointByEvent(e),i=n.getShape(r.x,r.y,e),a=n.get("el");if(l&&"svg"===n.getRenderer()&&(i=n.getShape(r.x,r.y)),"mousemove"===t){if(c&&c!==i&&(n._emitEvent("mouseout",e,r,c),n._emitEvent("mouseleave",e,r,c),l&&n._emitEvent("dragleave",e,r,c),i&&!i.destroyed||(a.style.cursor="default")),l&&(n._emitEvent("drag",e,r,l),n._emitEvent("mousemove",e,r,i)),i){if(!l)if(h===i){var p=o(),g=p-d,v=f.x-e.clientX,m=f.y-e.clientY,y=v*v+m*m;g>120||y>s?(l=i,h=null,this._emitEvent("dragstart",e,r,i)):n._emitEvent("mousemove",e,r,i)}else n._emitEvent("mousemove",e,r,i);c!==i&&(n._emitEvent("mouseenter",e,r,i),n._emitEvent("mouseover",e,r,i),l&&n._emitEvent("dragenter",e,r,i))}else{var x=n._getEventObj("mousemove",e,r,n);n.emit("mousemove",x)}c=i}else if(this._emitEvent(t,e,r,i||this),l||"mousedown"!==t||e.button!==u||(h=i,f={x:e.clientX,y:e.clientY},d=o()),"mouseup"===t&&e.button===u){var b=f.x-e.clientX,w=f.y-e.clientY,_=b*b+w*w,M=o(),S=M-d;(_<s||S<200)&&(d=0,this._emitEvent("click",e,r,h||this)),l&&(l._cfg.capture=!0,this._emitEvent("dragend",e,r,l),l=null,this._emitEvent("drop",e,r,i||this)),h=null}i&&!i.get("destroyed")&&(a.style.cursor=i.attr("cursor")||"default")},_emitEvent:function(t,e,n,r){var i=this._getEventObj(t,e,n,r),a=this._getEmitter(r,e);return a&&!a.get("destroyed")&&a.emit(t,i),a}}},"266a":function(t,e,n){var r=n("7948");function i(t,e){return r(e,(function(e){return t[e]}))}t.exports=i},"26bf":function(t,e,n){var r=n("06bb"),i=n("503e"),a=function(t,e,n,a){r(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=i(s,t.prototype),t.superclass=o(e.prototype,e),i(s,n),i(t,a),t};t.exports=a},"26e8":function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},2769:function(t,e,n){var r=n("5ca00"),i=n("51f5"),a=r(i);t.exports=a},27998:function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("1bb5"),o=n("9ed2");r.registerNode("rect",{options:{size:[100,30],style:{radius:0,stroke:o.defaultShapeStrokeColor,fill:o.defaultShapeFillColor,lineWidth:1,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:12}},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},markPoints:[[0,.5],[1,.5]]},shapeType:"rect",drawShape(t,e){const n=this.getShapeStyle(t),r=e.addShape("rect",{attrs:n,className:"rect-keyShape"});return this.drawLinkPoints(t,e),r},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{top:s,left:u,right:c,bottom:h,size:f,...l}=o,d=this.getSize(t),p=d[0],g=d[1];u&&e.addShape("circle",{attrs:{...l,x:-p/2,y:0,r:f},className:"rect-mark-left",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:{...l,x:p/2,y:0,r:f},className:"rect-mark-right",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:{...l,x:0,y:-g/2,r:f},className:"rect-mark-top",isAnchorPoint:!0}),h&&e.addShape("circle",{attrs:{...l,x:0,y:g/2,r:f},className:"rect-mark-bottom",isAnchorPoint:!0})},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,o={stroke:t.color},s=i({},n,r,o,t.style),u=this.getSize(t),c=u[0],h=u[1],f=a.mix({},{x:-c/2,y:-h/2,width:c,height:h},s);return f},update(t,e){const n=this.getCustomConfig(t)||{},{style:r,labelCfg:a}=this.options,{style:o,labelCfg:s}=n,u=i({},r,o,t.style),c=this.getSize(t),h=c[0],f=c[1],l=e.get("keyShape");l.attr({x:-h/2,y:-f/2,width:h,height:f,...u});const d=e.getContainer(),p=i({},a,s,t.labelCfg),g=this.getLabelStyle(t,p,d),v=d.findByClassName("node-label");v&&v.attr({...g}),this.updateLinkPoints(t,d)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{size:s,fill:u,stroke:c,lineWidth:h}=o,f=this.getSize(t),l=f[0],d=f[1],p=e.findByClassName("rect-mark-left");p&&p.attr({x:-l/2,y:0,r:s,fill:u,stroke:c,lineWidth:h});const g=e.findByClassName("rect-mark-right");g&&g.attr({x:l/2,y:0,r:s,fill:u,stroke:c,lineWidth:h});const v=e.findByClassName("rect-mark-top");v&&v.attr({x:0,y:-d/2,r:s,fill:u,stroke:c,lineWidth:h});const m=e.findByClassName("rect-mark-bottom");m&&m.attr({x:0,y:d/2,r:s,fill:u,stroke:c,lineWidth:h})}},"single-shape")},"28c9":function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},"28fb":function(t,e,n){var r=n("adff");r.Arc=n("8563"),r.Circle=n("24db"),r.Dom=n("ba6c"),r.Ellipse=n("b5c7"),r.Fan=n("964f"),r.Image=n("c67d"),r.Line=n("a70c"),r.Marker=n("188c"),r.Path=n("d213"),r.Polygon=n("4ef2"),r.Polyline=n("321c"),r.Rect=n("0528"),r.Text=n("3cbc"),t.exports=r},"299f":function(t,e,n){var r=n("6f9c"),i=n("17d5").Graph,a=n("4589");t.exports=s;var o=r.constant(1);function s(t,e){if(t.nodeCount()<=1)return[];var n=h(t,e||o),i=u(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(i,(function(e){return t.outEdges(e.v,e.w)})),!0)}function u(t,e,n){var r,i=[],a=e[e.length-1],o=e[0];while(t.nodeCount()){while(r=o.dequeue())c(t,e,n,r);while(r=a.dequeue())c(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue(),r){i=i.concat(c(t,e,n,r,!0));break}}return i}function c(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,f(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o["in"]-=i,f(e,n,o)})),t.removeNode(i.v),o}function h(t,e){var n=new i,o=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),a=r+i;n.setEdge(t.v,t.w,a),s=Math.max(s,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w)["in"]+=i)}));var u=r.range(s+o+3).map((function(){return new a})),c=o+1;return r.forEach(n.nodes(),(function(t){f(u,c,n.node(t))})),{graph:n,buckets:u,zeroIdx:c}}function f(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)}},"2a9f":function(t,e,n){"use strict";var r=n("6f9c"),i=n("e632"),a=n("d780"),o=n("38e2"),s=n("8817"),u=n("d4f3"),c=n("17d5").Graph,h=n("b50e");function f(t){var e=h.maxRank(t),n=l(t,r.range(1,e+1),"inEdges"),o=l(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);p(t,s);for(var u,c=Number.POSITIVE_INFINITY,f=0,g=0;g<4;++f,++g){d(f%2?n:o,f%4>=2),s=h.buildLayerMatrix(t);var v=a(t,s);v<c&&(g=0,u=r.cloneDeep(s),c=v)}p(t,u)}function l(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function d(t,e){var n=new c;r.forEach(t,(function(t){var i=t.graph().root,a=o(t,i,n,e);r.forEach(a.vs,(function(e,n){t.node(e).order=n})),u(t,n,a.vs)}))}function p(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=f},"2b03":function(t,e){function n(t,e,n,r){var i=t.length,a=n+(r?1:-1);while(r?a--:++a<i)if(e(t[a],a,t))return a;return-1}t.exports=n},"2c66":function(t,e,n){var r=n("d612"),i=n("8db3"),a=n("5edf"),o=n("c584"),s=n("750a"),u=n("ac41"),c=200;function h(t,e,n){var h=-1,f=i,l=t.length,d=!0,p=[],g=p;if(n)d=!1,f=a;else if(l>=c){var v=e?null:s(t);if(v)return u(v);d=!1,f=o,g=new r}else g=e?[]:p;t:while(++h<l){var m=t[h],y=e?e(m):m;if(m=n||0!==m?m:0,d&&y===y){var x=g.length;while(x--)if(g[x]===y)continue t;e&&g.push(y),p.push(m)}else f(g,y,n)||(g!==p&&g.push(y),p.push(m))}return p}t.exports=h},"2c8d":function(t,e,n){t.exports={canvas:n("5cce"),svg:n("edb2")}},"2d7c":function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=0,a=[];while(++n<r){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}t.exports=n},"2dcb":function(t,e,n){var r=n("91e9"),i=r(Object.getPrototypeOf,Object);t.exports=i},"2ec1":function(t,e,n){var r=n("100e"),i=n("9aff");function a(t){return r((function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);while(++r<a){var u=n[r];u&&t(e,u,r,o)}return e}))}t.exports=a},"2ef0":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 a,o="4.17.19",s=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",h="__lodash_hash_undefined__",f=500,l="__lodash_placeholder__",d=1,p=2,g=4,v=1,m=2,y=1,x=2,b=4,w=8,_=16,M=32,S=64,k=128,A=256,P=512,C=30,E="...",I=800,O=16,T=1,N=2,j=3,B=1/0,L=9007199254740991,D=17976931348623157e292,R=NaN,F=4294967295,Y=F-1,q=F>>>1,z=[["ary",k],["bind",y],["bindKey",x],["curry",w],["curryRight",_],["flip",P],["partial",M],["partialRight",S],["rearg",A]],X="[object Arguments]",G="[object Array]",W="[object AsyncFunction]",U="[object Boolean]",V="[object Date]",H="[object DOMException]",Z="[object Error]",$="[object Function]",Q="[object GeneratorFunction]",K="[object Map]",J="[object Number]",tt="[object Null]",et="[object Object]",nt="[object Promise]",rt="[object Proxy]",it="[object RegExp]",at="[object Set]",ot="[object String]",st="[object Symbol]",ut="[object Undefined]",ct="[object WeakMap]",ht="[object WeakSet]",ft="[object ArrayBuffer]",lt="[object DataView]",dt="[object Float32Array]",pt="[object Float64Array]",gt="[object Int8Array]",vt="[object Int16Array]",mt="[object Int32Array]",yt="[object Uint8Array]",xt="[object Uint8ClampedArray]",bt="[object Uint16Array]",wt="[object Uint32Array]",_t=/\b__p \+= '';/g,Mt=/\b(__p \+=) '' \+/g,St=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,At=/[&<>"']/g,Pt=RegExp(kt.source),Ct=RegExp(At.source),Et=/<%-([\s\S]+?)%>/g,It=/<%([\s\S]+?)%>/g,Ot=/<%=([\s\S]+?)%>/g,Tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nt=/^\w*$/,jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bt=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(Bt.source),Dt=/^\s+|\s+$/g,Rt=/^\s+/,Ft=/\s+$/,Yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qt=/\{\n\/\* \[wrapped with (.+)\] \*/,zt=/,? & /,Xt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gt=/\\(\\)?/g,Wt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ut=/\w*$/,Vt=/^[-+]0x[0-9a-f]+$/i,Ht=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,$t=/^0o[0-7]+$/i,Qt=/^(?:0|[1-9]\d*)$/,Kt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=/($^)/,te=/['\n\r\u2028\u2029\\]/g,ee="\\ud800-\\udfff",ne="\\u0300-\\u036f",re="\\ufe20-\\ufe2f",ie="\\u20d0-\\u20ff",ae=ne+re+ie,oe="\\u2700-\\u27bf",se="a-z\\xdf-\\xf6\\xf8-\\xff",ue="\\xac\\xb1\\xd7\\xf7",ce="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",he="\\u2000-\\u206f",fe=" \\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",le="A-Z\\xc0-\\xd6\\xd8-\\xde",de="\\ufe0e\\ufe0f",pe=ue+ce+he+fe,ge="[']",ve="["+ee+"]",me="["+pe+"]",ye="["+ae+"]",xe="\\d+",be="["+oe+"]",we="["+se+"]",_e="[^"+ee+pe+xe+oe+se+le+"]",Me="\\ud83c[\\udffb-\\udfff]",Se="(?:"+ye+"|"+Me+")",ke="[^"+ee+"]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="["+le+"]",Ee="\\u200d",Ie="(?:"+we+"|"+_e+")",Oe="(?:"+Ce+"|"+_e+")",Te="(?:"+ge+"(?:d|ll|m|re|s|t|ve))?",Ne="(?:"+ge+"(?:D|LL|M|RE|S|T|VE))?",je=Se+"?",Be="["+de+"]?",Le="(?:"+Ee+"(?:"+[ke,Ae,Pe].join("|")+")"+Be+je+")*",De="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fe=Be+je+Le,Ye="(?:"+[be,Ae,Pe].join("|")+")"+Fe,qe="(?:"+[ke+ye+"?",ye,Ae,Pe,ve].join("|")+")",ze=RegExp(ge,"g"),Xe=RegExp(ye,"g"),Ge=RegExp(Me+"(?="+Me+")|"+qe+Fe,"g"),We=RegExp([Ce+"?"+we+"+"+Te+"(?="+[me,Ce,"$"].join("|")+")",Oe+"+"+Ne+"(?="+[me,Ce+Ie,"$"].join("|")+")",Ce+"?"+Ie+"+"+Te,Ce+"+"+Ne,Re,De,xe,Ye].join("|"),"g"),Ue=RegExp("["+Ee+ee+ae+de+"]"),Ve=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,He=["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"],Ze=-1,$e={};$e[dt]=$e[pt]=$e[gt]=$e[vt]=$e[mt]=$e[yt]=$e[xt]=$e[bt]=$e[wt]=!0,$e[X]=$e[G]=$e[ft]=$e[U]=$e[lt]=$e[V]=$e[Z]=$e[$]=$e[K]=$e[J]=$e[et]=$e[it]=$e[at]=$e[ot]=$e[ct]=!1;var Qe={};Qe[X]=Qe[G]=Qe[ft]=Qe[lt]=Qe[U]=Qe[V]=Qe[dt]=Qe[pt]=Qe[gt]=Qe[vt]=Qe[mt]=Qe[K]=Qe[J]=Qe[et]=Qe[it]=Qe[at]=Qe[ot]=Qe[st]=Qe[yt]=Qe[xt]=Qe[bt]=Qe[wt]=!0,Qe[Z]=Qe[$]=Qe[ct]=!1;var Ke={"À":"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"},Je={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,an="object"==typeof t&&t&&t.Object===Object&&t,on="object"==typeof self&&self&&self.Object===Object&&self,sn=an||on||Function("return this")(),un=e&&!e.nodeType&&e,cn=un&&"object"==typeof r&&r&&!r.nodeType&&r,hn=cn&&cn.exports===un,fn=hn&&an.process,ln=function(){try{var t=cn&&cn.require&&cn.require("util").types;return t||fn&&fn.binding&&fn.binding("util")}catch(e){}}(),dn=ln&&ln.isArrayBuffer,pn=ln&&ln.isDate,gn=ln&&ln.isMap,vn=ln&&ln.isRegExp,mn=ln&&ln.isSet,yn=ln&&ln.isTypedArray;function xn(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 bn(t,e,n,r){var i=-1,a=null==t?0:t.length;while(++i<a){var o=t[i];e(r,o,n(o),t)}return r}function wn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}function _n(t,e){var n=null==t?0:t.length;while(n--)if(!1===e(t[n],n,t))break;return t}function Mn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!e(t[n],n,t))return!1;return!0}function Sn(t,e){var n=-1,r=null==t?0:t.length,i=0,a=[];while(++n<r){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}function kn(t,e){var n=null==t?0:t.length;return!!n&&Dn(t,e,0)>-1}function An(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}function Pn(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}function Cn(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}function En(t,e,n,r){var i=-1,a=null==t?0:t.length;r&&a&&(n=t[++i]);while(++i<a)n=e(n,t[i],i,t);return n}function In(t,e,n,r){var i=null==t?0:t.length;r&&i&&(n=t[--i]);while(i--)n=e(n,t[i],i,t);return n}function On(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var Tn=qn("length");function Nn(t){return t.split("")}function jn(t){return t.match(Xt)||[]}function Bn(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Ln(t,e,n,r){var i=t.length,a=n+(r?1:-1);while(r?a--:++a<i)if(e(t[a],a,t))return a;return-1}function Dn(t,e,n){return e===e?lr(t,e,n):Ln(t,Fn,n)}function Rn(t,e,n,r){var i=n-1,a=t.length;while(++i<a)if(r(t[i],e))return i;return-1}function Fn(t){return t!==t}function Yn(t,e){var n=null==t?0:t.length;return n?Wn(t,e)/n:R}function qn(t){return function(e){return null==e?a:e[t]}}function zn(t){return function(e){return null==t?a:t[e]}}function Xn(t,e,n,r,i){return i(t,(function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)})),n}function Gn(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}function Wn(t,e){var n,r=-1,i=t.length;while(++r<i){var o=e(t[r]);o!==a&&(n=n===a?o:n+o)}return n}function Un(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function Vn(t,e){return Pn(e,(function(e){return[e,t[e]]}))}function Hn(t){return function(e){return t(e)}}function Zn(t,e){return Pn(e,(function(e){return t[e]}))}function $n(t,e){return t.has(e)}function Qn(t,e){var n=-1,r=t.length;while(++n<r&&Dn(e,t[n],0)>-1);return n}function Kn(t,e){var n=t.length;while(n--&&Dn(e,t[n],0)>-1);return n}function Jn(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var tr=zn(Ke),er=zn(Je);function nr(t){return"\\"+en[t]}function rr(t,e){return null==t?a:t[e]}function ir(t){return Ue.test(t)}function ar(t){return Ve.test(t)}function or(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function sr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function ur(t,e){return function(n){return t(e(n))}}function cr(t,e){var n=-1,r=t.length,i=0,a=[];while(++n<r){var o=t[n];o!==e&&o!==l||(t[n]=l,a[i++]=n)}return a}function hr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function lr(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}function dr(t,e,n){var r=n+1;while(r--)if(t[r]===e)return r;return r}function pr(t){return ir(t)?mr(t):Tn(t)}function gr(t){return ir(t)?yr(t):Nn(t)}var vr=zn(tn);function mr(t){var e=Ge.lastIndex=0;while(Ge.test(t))++e;return e}function yr(t){return t.match(Ge)||[]}function xr(t){return t.match(We)||[]}var br=function t(e){e=null==e?sn:wr.defaults(sn.Object(),e,wr.pick(sn,He));var n=e.Array,r=e.Date,i=e.Error,Xt=e.Function,ee=e.Math,ne=e.Object,re=e.RegExp,ie=e.String,ae=e.TypeError,oe=n.prototype,se=Xt.prototype,ue=ne.prototype,ce=e["__core-js_shared__"],he=se.toString,fe=ue.hasOwnProperty,le=0,de=function(){var t=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),pe=ue.toString,ge=he.call(ne),ve=sn._,me=re("^"+he.call(fe).replace(Bt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=hn?e.Buffer:a,xe=e.Symbol,be=e.Uint8Array,we=ye?ye.allocUnsafe:a,_e=ur(ne.getPrototypeOf,ne),Me=ne.create,Se=ue.propertyIsEnumerable,ke=oe.splice,Ae=xe?xe.isConcatSpreadable:a,Pe=xe?xe.iterator:a,Ce=xe?xe.toStringTag:a,Ee=function(){try{var t=Wo(ne,"defineProperty");return t({},"",{}),t}catch(e){}}(),Ie=e.clearTimeout!==sn.clearTimeout&&e.clearTimeout,Oe=r&&r.now!==sn.Date.now&&r.now,Te=e.setTimeout!==sn.setTimeout&&e.setTimeout,Ne=ee.ceil,je=ee.floor,Be=ne.getOwnPropertySymbols,Le=ye?ye.isBuffer:a,De=e.isFinite,Re=oe.join,Fe=ur(ne.keys,ne),Ye=ee.max,qe=ee.min,Ge=r.now,We=e.parseInt,Ue=ee.random,Ve=oe.reverse,Ke=Wo(e,"DataView"),Je=Wo(e,"Map"),tn=Wo(e,"Promise"),en=Wo(e,"Set"),an=Wo(e,"WeakMap"),on=Wo(ne,"create"),un=an&&new an,cn={},fn=Is(Ke),ln=Is(Je),Tn=Is(tn),Nn=Is(en),zn=Is(an),lr=xe?xe.prototype:a,mr=lr?lr.valueOf:a,yr=lr?lr.toString:a;function br(t){if(Mh(t)&&!oh(t)&&!(t instanceof kr)){if(t instanceof Sr)return t;if(fe.call(t,"__wrapped__"))return Ts(t)}return new Sr(t)}var _r=function(){function t(){}return function(e){if(!_h(e))return{};if(Me)return Me(e);t.prototype=e;var n=new t;return t.prototype=a,n}}();function Mr(){}function Sr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=a}function kr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function Ar(){var t=new kr(this.__wrapped__);return t.__actions__=eo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=eo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=eo(this.__views__),t}function Pr(){if(this.__filtered__){var t=new kr(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Cr(){var t=this.__wrapped__.value(),e=this.__dir__,n=oh(t),r=e<0,i=n?t.length:0,a=$o(0,i,this.__views__),o=a.start,s=a.end,u=s-o,c=r?s:o-1,h=this.__iteratees__,f=h.length,l=0,d=qe(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return La(t,this.__actions__);var p=[];t:while(u--&&l<d){c+=e;var g=-1,v=t[c];while(++g<f){var m=h[g],y=m.iteratee,x=m.type,b=y(v);if(x==N)v=b;else if(!b){if(x==T)continue t;break t}}p[l++]=v}return p}function Er(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Ir(){this.__data__=on?on(null):{},this.size=0}function Or(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Tr(t){var e=this.__data__;if(on){var n=e[t];return n===h?a:n}return fe.call(e,t)?e[t]:a}function Nr(t){var e=this.__data__;return on?e[t]!==a:fe.call(e,t)}function jr(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=on&&e===a?h:e,this}function Br(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Lr(){this.__data__=[],this.size=0}function Dr(t){var e=this.__data__,n=ui(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ke.call(e,n,1),--this.size,!0}function Rr(t){var e=this.__data__,n=ui(e,t);return n<0?a:e[n][1]}function Fr(t){return ui(this.__data__,t)>-1}function Yr(t,e){var n=this.__data__,r=ui(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function qr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function zr(){this.size=0,this.__data__={hash:new Er,map:new(Je||Br),string:new Er}}function Xr(t){var e=Xo(this,t)["delete"](t);return this.size-=e?1:0,e}function Gr(t){return Xo(this,t).get(t)}function Wr(t){return Xo(this,t).has(t)}function Ur(t,e){var n=Xo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Vr(t){var e=-1,n=null==t?0:t.length;this.__data__=new qr;while(++e<n)this.add(t[e])}function Hr(t){return this.__data__.set(t,h),this}function Zr(t){return this.__data__.has(t)}function $r(t){var e=this.__data__=new Br(t);this.size=e.size}function Qr(){this.__data__=new Br,this.size=0}function Kr(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function Jr(t){return this.__data__.get(t)}function ti(t){return this.__data__.has(t)}function ei(t,e){var n=this.__data__;if(n instanceof Br){var r=n.__data__;if(!Je||r.length<s-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new qr(r)}return n.set(t,e),this.size=n.size,this}function ni(t,e){var n=oh(t),r=!n&&ah(t),i=!n&&!r&&fh(t),a=!n&&!r&&!i&&Rh(t),o=n||r||i||a,s=o?Un(t.length,ie):[],u=s.length;for(var c in t)!e&&!fe.call(t,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||is(c,u))||s.push(c);return s}function ri(t){var e=t.length;return e?t[ga(0,e-1)]:a}function ii(t,e){return Ps(eo(t),pi(e,0,t.length))}function ai(t){return Ps(eo(t))}function oi(t,e,n){(n!==a&&!nh(t[e],n)||n===a&&!(e in t))&&li(t,e,n)}function si(t,e,n){var r=t[e];fe.call(t,e)&&nh(r,n)&&(n!==a||e in t)||li(t,e,n)}function ui(t,e){var n=t.length;while(n--)if(nh(t[n][0],e))return n;return-1}function ci(t,e,n,r){return bi(t,(function(t,i,a){e(r,t,n(t),a)})),r}function hi(t,e){return t&&no(e,wf(e),t)}function fi(t,e){return t&&no(e,_f(e),t)}function li(t,e,n){"__proto__"==e&&Ee?Ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function di(t,e){var r=-1,i=e.length,o=n(i),s=null==t;while(++r<i)o[r]=s?a:gf(t,e[r]);return o}function pi(t,e,n){return t===t&&(n!==a&&(t=t<=n?t:n),e!==a&&(t=t>=e?t:e)),t}function gi(t,e,n,r,i,o){var s,u=e&d,c=e&p,h=e&g;if(n&&(s=i?n(t,r,i,o):n(t)),s!==a)return s;if(!_h(t))return t;var f=oh(t);if(f){if(s=Jo(t),!u)return eo(t,s)}else{var l=Zo(t),v=l==$||l==Q;if(fh(t))return Wa(t,u);if(l==et||l==X||v&&!i){if(s=c||v?{}:ts(t),!u)return c?io(t,fi(s,t)):ro(t,hi(s,t))}else{if(!Qe[l])return i?t:{};s=es(t,l,u)}}o||(o=new $r);var m=o.get(t);if(m)return m;o.set(t,s),Bh(t)?t.forEach((function(r){s.add(gi(r,e,n,r,t,o))})):Sh(t)&&t.forEach((function(r,i){s.set(i,gi(r,e,n,i,t,o))}));var y=h?c?Ro:Do:c?_f:wf,x=f?a:y(t);return wn(x||t,(function(r,i){x&&(i=r,r=t[i]),si(s,i,gi(r,e,n,i,t,o))})),s}function vi(t){var e=wf(t);return function(n){return mi(n,t,e)}}function mi(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var i=n[r],o=e[i],s=t[i];if(s===a&&!(i in t)||!o(s))return!1}return!0}function yi(t,e,n){if("function"!=typeof t)throw new ae(c);return Ms((function(){t.apply(a,n)}),e)}function xi(t,e,n,r){var i=-1,a=kn,o=!0,u=t.length,c=[],h=e.length;if(!u)return c;n&&(e=Pn(e,Hn(n))),r?(a=An,o=!1):e.length>=s&&(a=$n,o=!1,e=new Vr(e));t:while(++i<u){var f=t[i],l=null==n?f:n(f);if(f=r||0!==f?f:0,o&&l===l){var d=h;while(d--)if(e[d]===l)continue t;c.push(f)}else a(e,l,r)||c.push(f)}return c}br.templateSettings={escape:Et,evaluate:It,interpolate:Ot,variable:"",imports:{_:br}},br.prototype=Mr.prototype,br.prototype.constructor=br,Sr.prototype=_r(Mr.prototype),Sr.prototype.constructor=Sr,kr.prototype=_r(Mr.prototype),kr.prototype.constructor=kr,Er.prototype.clear=Ir,Er.prototype["delete"]=Or,Er.prototype.get=Tr,Er.prototype.has=Nr,Er.prototype.set=jr,Br.prototype.clear=Lr,Br.prototype["delete"]=Dr,Br.prototype.get=Rr,Br.prototype.has=Fr,Br.prototype.set=Yr,qr.prototype.clear=zr,qr.prototype["delete"]=Xr,qr.prototype.get=Gr,qr.prototype.has=Wr,qr.prototype.set=Ur,Vr.prototype.add=Vr.prototype.push=Hr,Vr.prototype.has=Zr,$r.prototype.clear=Qr,$r.prototype["delete"]=Kr,$r.prototype.get=Jr,$r.prototype.has=ti,$r.prototype.set=ei;var bi=so(Ei),wi=so(Ii,!0);function _i(t,e){var n=!0;return bi(t,(function(t,r,i){return n=!!e(t,r,i),n})),n}function Mi(t,e,n){var r=-1,i=t.length;while(++r<i){var o=t[r],s=e(o);if(null!=s&&(u===a?s===s&&!Dh(s):n(s,u)))var u=s,c=o}return c}function Si(t,e,n,r){var i=t.length;n=Uh(n),n<0&&(n=-n>i?0:i+n),r=r===a||r>i?i:Uh(r),r<0&&(r+=i),r=n>r?0:Vh(r);while(n<r)t[n++]=e;return t}function ki(t,e){var n=[];return bi(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Ai(t,e,n,r,i){var a=-1,o=t.length;n||(n=rs),i||(i=[]);while(++a<o){var s=t[a];e>0&&n(s)?e>1?Ai(s,e-1,n,r,i):Cn(i,s):r||(i[i.length]=s)}return i}var Pi=uo(),Ci=uo(!0);function Ei(t,e){return t&&Pi(t,e,wf)}function Ii(t,e){return t&&Ci(t,e,wf)}function Oi(t,e){return Sn(e,(function(e){return xh(t[e])}))}function Ti(t,e){e=qa(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Es(e[n++])];return n&&n==r?t:a}function Ni(t,e,n){var r=e(t);return oh(t)?r:Cn(r,n(t))}function ji(t){return null==t?t===a?ut:tt:Ce&&Ce in ne(t)?Uo(t):ms(t)}function Bi(t,e){return t>e}function Li(t,e){return null!=t&&fe.call(t,e)}function Di(t,e){return null!=t&&e in ne(t)}function Ri(t,e,n){return t>=qe(e,n)&&t<Ye(e,n)}function Fi(t,e,r){var i=r?An:kn,o=t[0].length,s=t.length,u=s,c=n(s),h=1/0,f=[];while(u--){var l=t[u];u&&e&&(l=Pn(l,Hn(e))),h=qe(l.length,h),c[u]=!r&&(e||o>=120&&l.length>=120)?new Vr(u&&l):a}l=t[0];var d=-1,p=c[0];t:while(++d<o&&f.length<h){var g=l[d],v=e?e(g):g;if(g=r||0!==g?g:0,!(p?$n(p,v):i(f,v,r))){u=s;while(--u){var m=c[u];if(!(m?$n(m,v):i(t[u],v,r)))continue t}p&&p.push(v),f.push(g)}}return f}function Yi(t,e,n,r){return Ei(t,(function(t,i,a){e(r,n(t),i,a)})),r}function qi(t,e,n){e=qa(e,t),t=xs(t,e);var r=null==t?t:t[Es(ru(e))];return null==r?a:xn(r,t,n)}function zi(t){return Mh(t)&&ji(t)==X}function Xi(t){return Mh(t)&&ji(t)==ft}function Gi(t){return Mh(t)&&ji(t)==V}function Wi(t,e,n,r,i){return t===e||(null==t||null==e||!Mh(t)&&!Mh(e)?t!==t&&e!==e:Ui(t,e,n,r,Wi,i))}function Ui(t,e,n,r,i,a){var o=oh(t),s=oh(e),u=o?G:Zo(t),c=s?G:Zo(e);u=u==X?et:u,c=c==X?et:c;var h=u==et,f=c==et,l=u==c;if(l&&fh(t)){if(!fh(e))return!1;o=!0,h=!1}if(l&&!h)return a||(a=new $r),o||Rh(t)?No(t,e,n,r,i,a):jo(t,e,u,n,r,i,a);if(!(n&v)){var d=h&&fe.call(t,"__wrapped__"),p=f&&fe.call(e,"__wrapped__");if(d||p){var g=d?t.value():t,m=p?e.value():e;return a||(a=new $r),i(g,m,n,r,a)}}return!!l&&(a||(a=new $r),Bo(t,e,n,r,i,a))}function Vi(t){return Mh(t)&&Zo(t)==K}function Hi(t,e,n,r){var i=n.length,o=i,s=!r;if(null==t)return!o;t=ne(t);while(i--){var u=n[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}while(++i<o){u=n[i];var c=u[0],h=t[c],f=u[1];if(s&&u[2]){if(h===a&&!(c in t))return!1}else{var l=new $r;if(r)var d=r(h,f,c,t,e,l);if(!(d===a?Wi(f,h,v|m,r,l):d))return!1}}return!0}function Zi(t){if(!_h(t)||cs(t))return!1;var e=xh(t)?me:Zt;return e.test(Is(t))}function $i(t){return Mh(t)&&ji(t)==it}function Qi(t){return Mh(t)&&Zo(t)==at}function Ki(t){return Mh(t)&&wh(t.length)&&!!$e[ji(t)]}function Ji(t){return"function"==typeof t?t:null==t?El:"object"==typeof t?oh(t)?aa(t[0],t[1]):ia(t):zl(t)}function ta(t){if(!fs(t))return Fe(t);var e=[];for(var n in ne(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e}function ea(t){if(!_h(t))return vs(t);var e=fs(t),n=[];for(var r in t)("constructor"!=r||!e&&fe.call(t,r))&&n.push(r);return n}function na(t,e){return t<e}function ra(t,e){var r=-1,i=uh(t)?n(t.length):[];return bi(t,(function(t,n,a){i[++r]=e(t,n,a)})),i}function ia(t){var e=Go(t);return 1==e.length&&e[0][2]?ds(e[0][0],e[0][1]):function(n){return n===t||Hi(n,t,e)}}function aa(t,e){return os(t)&&ls(e)?ds(Es(t),e):function(n){var r=gf(n,t);return r===a&&r===e?mf(n,t):Wi(e,r,v|m)}}function oa(t,e,n,r,i){t!==e&&Pi(e,(function(o,s){if(i||(i=new $r),_h(o))sa(t,e,s,n,oa,r,i);else{var u=r?r(ws(t,s),o,s+"",t,e,i):a;u===a&&(u=o),oi(t,s,u)}}),_f)}function sa(t,e,n,r,i,o,s){var u=ws(t,n),c=ws(e,n),h=s.get(c);if(h)oi(t,n,h);else{var f=o?o(u,c,n+"",t,e,s):a,l=f===a;if(l){var d=oh(c),p=!d&&fh(c),g=!d&&!p&&Rh(c);f=c,d||p||g?oh(u)?f=u:ch(u)?f=eo(u):p?(l=!1,f=Wa(c,!0)):g?(l=!1,f=$a(c,!0)):f=[]:Th(c)||ah(c)?(f=u,ah(u)?f=Zh(u):_h(u)&&!xh(u)||(f=ts(c))):l=!1}l&&(s.set(c,f),i(f,c,r,o,s),s["delete"](c)),oi(t,n,f)}}function ua(t,e){var n=t.length;if(n)return e+=e<0?n:0,is(e,n)?t[e]:a}function ca(t,e,n){e=e.length?Pn(e,(function(t){return oh(t)?function(e){return Ti(e,1===t.length?t[0]:t)}:t})):[El];var r=-1;e=Pn(e,Hn(zo()));var i=ra(t,(function(t,n,i){var a=Pn(e,(function(e){return e(t)}));return{criteria:a,index:++r,value:t}}));return Gn(i,(function(t,e){return Ka(t,e,n)}))}function ha(t,e){return fa(t,e,(function(e,n){return mf(t,n)}))}function fa(t,e,n){var r=-1,i=e.length,a={};while(++r<i){var o=e[r],s=Ti(t,o);n(s,o)&&wa(a,qa(o,t),s)}return a}function la(t){return function(e){return Ti(e,t)}}function da(t,e,n,r){var i=r?Rn:Dn,a=-1,o=e.length,s=t;t===e&&(e=eo(e)),n&&(s=Pn(t,Hn(n)));while(++a<o){var u=0,c=e[a],h=n?n(c):c;while((u=i(s,h,u,r))>-1)s!==t&&ke.call(s,u,1),ke.call(t,u,1)}return t}function pa(t,e){var n=t?e.length:0,r=n-1;while(n--){var i=e[n];if(n==r||i!==a){var a=i;is(i)?ke.call(t,i,1):Na(t,i)}}return t}function ga(t,e){return t+je(Ue()*(e-t+1))}function va(t,e,r,i){var a=-1,o=Ye(Ne((e-t)/(r||1)),0),s=n(o);while(o--)s[i?o:++a]=t,t+=r;return s}function ma(t,e){var n="";if(!t||e<1||e>L)return n;do{e%2&&(n+=t),e=je(e/2),e&&(t+=t)}while(e);return n}function ya(t,e){return Ss(ys(t,e,El),t+"")}function xa(t){return ri(Yf(t))}function ba(t,e){var n=Yf(t);return Ps(n,pi(e,0,n.length))}function wa(t,e,n,r){if(!_h(t))return t;e=qa(e,t);var i=-1,o=e.length,s=o-1,u=t;while(null!=u&&++i<o){var c=Es(e[i]),h=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=s){var f=u[c];h=r?r(f,c,u):a,h===a&&(h=_h(f)?f:is(e[i+1])?[]:{})}si(u,c,h),u=u[c]}return t}var _a=un?function(t,e){return un.set(t,e),t}:El,Ma=Ee?function(t,e){return Ee(t,"toString",{configurable:!0,enumerable:!1,value:kl(e),writable:!0})}:El;function Sa(t){return Ps(Yf(t))}function ka(t,e,r){var i=-1,a=t.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;var o=n(a);while(++i<a)o[i]=t[i+e];return o}function Aa(t,e){var n;return bi(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}function Pa(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=q){while(r<i){var a=r+i>>>1,o=t[a];null!==o&&!Dh(o)&&(n?o<=e:o<e)?r=a+1:i=a}return i}return Ca(t,e,El,n)}function Ca(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;e=n(e);var s=e!==e,u=null===e,c=Dh(e),h=e===a;while(i<o){var f=je((i+o)/2),l=n(t[f]),d=l!==a,p=null===l,g=l===l,v=Dh(l);if(s)var m=r||g;else m=h?g&&(r||d):u?g&&d&&(r||!p):c?g&&d&&!p&&(r||!v):!p&&!v&&(r?l<=e:l<e);m?i=f+1:o=f}return qe(o,Y)}function Ea(t,e){var n=-1,r=t.length,i=0,a=[];while(++n<r){var o=t[n],s=e?e(o):o;if(!n||!nh(s,u)){var u=s;a[i++]=0===o?0:o}}return a}function Ia(t){return"number"==typeof t?t:Dh(t)?R:+t}function Oa(t){if("string"==typeof t)return t;if(oh(t))return Pn(t,Oa)+"";if(Dh(t))return yr?yr.call(t):"";var e=t+"";return"0"==e&&1/t==-B?"-0":e}function Ta(t,e,n){var r=-1,i=kn,a=t.length,o=!0,u=[],c=u;if(n)o=!1,i=An;else if(a>=s){var h=e?null:Po(t);if(h)return hr(h);o=!1,i=$n,c=new Vr}else c=e?[]:u;t:while(++r<a){var f=t[r],l=e?e(f):f;if(f=n||0!==f?f:0,o&&l===l){var d=c.length;while(d--)if(c[d]===l)continue t;e&&c.push(l),u.push(f)}else i(c,l,n)||(c!==u&&c.push(l),u.push(f))}return u}function Na(t,e){return e=qa(e,t),t=xs(t,e),null==t||delete t[Es(ru(e))]}function ja(t,e,n,r){return wa(t,e,n(Ti(t,e)),r)}function Ba(t,e,n,r){var i=t.length,a=r?i:-1;while((r?a--:++a<i)&&e(t[a],a,t));return n?ka(t,r?0:a,r?a+1:i):ka(t,r?a+1:0,r?i:a)}function La(t,e){var n=t;return n instanceof kr&&(n=n.value()),En(e,(function(t,e){return e.func.apply(e.thisArg,Cn([t],e.args))}),n)}function Da(t,e,r){var i=t.length;if(i<2)return i?Ta(t[0]):[];var a=-1,o=n(i);while(++a<i){var s=t[a],u=-1;while(++u<i)u!=a&&(o[a]=xi(o[a]||s,t[u],e,r))}return Ta(Ai(o,1),e,r)}function Ra(t,e,n){var r=-1,i=t.length,o=e.length,s={};while(++r<i){var u=r<o?e[r]:a;n(s,t[r],u)}return s}function Fa(t){return ch(t)?t:[]}function Ya(t){return"function"==typeof t?t:El}function qa(t,e){return oh(t)?t:os(t,e)?[t]:Cs(Qh(t))}var za=ya;function Xa(t,e,n){var r=t.length;return n=n===a?r:n,!e&&n>=r?t:ka(t,e,n)}var Ga=Ie||function(t){return sn.clearTimeout(t)};function Wa(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function Ua(t){var e=new t.constructor(t.byteLength);return new be(e).set(new be(t)),e}function Va(t,e){var n=e?Ua(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ha(t){var e=new t.constructor(t.source,Ut.exec(t));return e.lastIndex=t.lastIndex,e}function Za(t){return mr?ne(mr.call(t)):{}}function $a(t,e){var n=e?Ua(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Qa(t,e){if(t!==e){var n=t!==a,r=null===t,i=t===t,o=Dh(t),s=e!==a,u=null===e,c=e===e,h=Dh(e);if(!u&&!h&&!o&&t>e||o&&s&&c&&!u&&!h||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!h&&t<e||h&&n&&i&&!r&&!o||u&&n&&i||!s&&i||!c)return-1}return 0}function Ka(t,e,n){var r=-1,i=t.criteria,a=e.criteria,o=i.length,s=n.length;while(++r<o){var u=Qa(i[r],a[r]);if(u){if(r>=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return t.index-e.index}function Ja(t,e,r,i){var a=-1,o=t.length,s=r.length,u=-1,c=e.length,h=Ye(o-s,0),f=n(c+h),l=!i;while(++u<c)f[u]=e[u];while(++a<s)(l||a<o)&&(f[r[a]]=t[a]);while(h--)f[u++]=t[a++];return f}function to(t,e,r,i){var a=-1,o=t.length,s=-1,u=r.length,c=-1,h=e.length,f=Ye(o-u,0),l=n(f+h),d=!i;while(++a<f)l[a]=t[a];var p=a;while(++c<h)l[p+c]=e[c];while(++s<u)(d||a<o)&&(l[p+r[s]]=t[a++]);return l}function eo(t,e){var r=-1,i=t.length;e||(e=n(i));while(++r<i)e[r]=t[r];return e}function no(t,e,n,r){var i=!n;n||(n={});var o=-1,s=e.length;while(++o<s){var u=e[o],c=r?r(n[u],t[u],u,n,t):a;c===a&&(c=t[u]),i?li(n,u,c):si(n,u,c)}return n}function ro(t,e){return no(t,Vo(t),e)}function io(t,e){return no(t,Ho(t),e)}function ao(t,e){return function(n,r){var i=oh(n)?bn:ci,a=e?e():{};return i(n,t,zo(r,2),a)}}function oo(t){return ya((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;o=t.length>3&&"function"==typeof o?(i--,o):a,s&&as(n[0],n[1],s)&&(o=i<3?a:o,i=1),e=ne(e);while(++r<i){var u=n[r];u&&t(e,u,r,o)}return e}))}function so(t,e){return function(n,r){if(null==n)return n;if(!uh(n))return t(n,r);var i=n.length,a=e?i:-1,o=ne(n);while(e?a--:++a<i)if(!1===r(o[a],a,o))break;return n}}function uo(t){return function(e,n,r){var i=-1,a=ne(e),o=r(e),s=o.length;while(s--){var u=o[t?s:++i];if(!1===n(a[u],u,a))break}return e}}function co(t,e,n){var r=e&y,i=lo(t);function a(){var e=this&&this!==sn&&this instanceof a?i:t;return e.apply(r?n:this,arguments)}return a}function ho(t){return function(e){e=Qh(e);var n=ir(e)?gr(e):a,r=n?n[0]:e.charAt(0),i=n?Xa(n,1).join(""):e.slice(1);return r[t]()+i}}function fo(t){return function(e){return En(bl(Vf(e).replace(ze,"")),t,"")}}function lo(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=_r(t.prototype),r=t.apply(n,e);return _h(r)?r:n}}function po(t,e,r){var i=lo(t);function o(){var s=arguments.length,u=n(s),c=s,h=qo(o);while(c--)u[c]=arguments[c];var f=s<3&&u[0]!==h&&u[s-1]!==h?[]:cr(u,h);if(s-=f.length,s<r)return ko(t,e,mo,o.placeholder,a,u,f,a,a,r-s);var l=this&&this!==sn&&this instanceof o?i:t;return xn(l,this,u)}return o}function go(t){return function(e,n,r){var i=ne(e);if(!uh(e)){var o=zo(n,3);e=wf(e),n=function(t){return o(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[o?e[s]:s]:a}}function vo(t){return Lo((function(e){var n=e.length,r=n,i=Sr.prototype.thru;t&&e.reverse();while(r--){var o=e[r];if("function"!=typeof o)throw new ae(c);if(i&&!s&&"wrapper"==Yo(o))var s=new Sr([],!0)}r=s?r:n;while(++r<n){o=e[r];var u=Yo(o),h="wrapper"==u?Fo(o):a;s=h&&us(h[0])&&h[1]==(k|w|M|A)&&!h[4].length&&1==h[9]?s[Yo(h[0])].apply(s,h[3]):1==o.length&&us(o)?s[u]():s.thru(o)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&oh(r))return s.plant(r).value();var i=0,a=n?e[i].apply(this,t):r;while(++i<n)a=e[i].call(this,a);return a}}))}function mo(t,e,r,i,o,s,u,c,h,f){var l=e&k,d=e&y,p=e&x,g=e&(w|_),v=e&P,m=p?a:lo(t);function b(){var a=arguments.length,y=n(a),x=a;while(x--)y[x]=arguments[x];if(g)var w=qo(b),_=Jn(y,w);if(i&&(y=Ja(y,i,o,g)),s&&(y=to(y,s,u,g)),a-=_,g&&a<f){var M=cr(y,w);return ko(t,e,mo,b.placeholder,r,y,M,c,h,f-a)}var S=d?r:this,k=p?S[t]:t;return a=y.length,c?y=bs(y,c):v&&a>1&&y.reverse(),l&&h<a&&(y.length=h),this&&this!==sn&&this instanceof b&&(k=m||lo(k)),k.apply(S,y)}return b}function yo(t,e){return function(n,r){return Yi(n,t,e(r),{})}}function xo(t,e){return function(n,r){var i;if(n===a&&r===a)return e;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=Oa(n),r=Oa(r)):(n=Ia(n),r=Ia(r)),i=t(n,r)}return i}}function bo(t){return Lo((function(e){return e=Pn(e,Hn(zo())),ya((function(n){var r=this;return t(e,(function(t){return xn(t,r,n)}))}))}))}function wo(t,e){e=e===a?" ":Oa(e);var n=e.length;if(n<2)return n?ma(e,t):e;var r=ma(e,Ne(t/pr(e)));return ir(e)?Xa(gr(r),0,t).join(""):r.slice(0,t)}function _o(t,e,r,i){var a=e&y,o=lo(t);function s(){var e=-1,u=arguments.length,c=-1,h=i.length,f=n(h+u),l=this&&this!==sn&&this instanceof s?o:t;while(++c<h)f[c]=i[c];while(u--)f[c++]=arguments[++e];return xn(l,a?r:this,f)}return s}function Mo(t){return function(e,n,r){return r&&"number"!=typeof r&&as(e,n,r)&&(n=r=a),e=Wh(e),n===a?(n=e,e=0):n=Wh(n),r=r===a?e<n?1:-1:Wh(r),va(e,n,r,t)}}function So(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Hh(e),n=Hh(n)),t(e,n)}}function ko(t,e,n,r,i,o,s,u,c,h){var f=e&w,l=f?s:a,d=f?a:s,p=f?o:a,g=f?a:o;e|=f?M:S,e&=~(f?S:M),e&b||(e&=~(y|x));var v=[t,e,i,p,l,g,d,u,c,h],m=n.apply(a,v);return us(t)&&_s(m,v),m.placeholder=r,ks(m,t,e)}function Ao(t){var e=ee[t];return function(t,n){if(t=Hh(t),n=null==n?0:qe(Uh(n),292),n&&De(t)){var r=(Qh(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Qh(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}var Po=en&&1/hr(new en([,-0]))[1]==B?function(t){return new en(t)}:Dl;function Co(t){return function(e){var n=Zo(e);return n==K?sr(e):n==at?fr(e):Vn(e,t(e))}}function Eo(t,e,n,r,i,o,s,u){var h=e&x;if(!h&&"function"!=typeof t)throw new ae(c);var f=r?r.length:0;if(f||(e&=~(M|S),r=i=a),s=s===a?s:Ye(Uh(s),0),u=u===a?u:Uh(u),f-=i?i.length:0,e&S){var l=r,d=i;r=i=a}var p=h?a:Fo(t),g=[t,e,n,r,i,l,d,o,s,u];if(p&&gs(g,p),t=g[0],e=g[1],n=g[2],r=g[3],i=g[4],u=g[9]=g[9]===a?h?0:t.length:Ye(g[9]-f,0),!u&&e&(w|_)&&(e&=~(w|_)),e&&e!=y)v=e==w||e==_?po(t,e,u):e!=M&&e!=(y|M)||i.length?mo.apply(a,g):_o(t,e,n,r);else var v=co(t,e,n);var m=p?_a:_s;return ks(m(v,g),t,e)}function Io(t,e,n,r){return t===a||nh(t,ue[n])&&!fe.call(r,n)?e:t}function Oo(t,e,n,r,i,o){return _h(t)&&_h(e)&&(o.set(e,t),oa(t,e,a,Oo,o),o["delete"](e)),t}function To(t){return Th(t)?a:t}function No(t,e,n,r,i,o){var s=n&v,u=t.length,c=e.length;if(u!=c&&!(s&&c>u))return!1;var h=o.get(t),f=o.get(e);if(h&&f)return h==e&&f==t;var l=-1,d=!0,p=n&m?new Vr:a;o.set(t,e),o.set(e,t);while(++l<u){var g=t[l],y=e[l];if(r)var x=s?r(y,g,l,e,t,o):r(g,y,l,t,e,o);if(x!==a){if(x)continue;d=!1;break}if(p){if(!On(e,(function(t,e){if(!$n(p,e)&&(g===t||i(g,t,n,r,o)))return p.push(e)}))){d=!1;break}}else if(g!==y&&!i(g,y,n,r,o)){d=!1;break}}return o["delete"](t),o["delete"](e),d}function jo(t,e,n,r,i,a,o){switch(n){case lt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ft:return!(t.byteLength!=e.byteLength||!a(new be(t),new be(e)));case U:case V:case J:return nh(+t,+e);case Z:return t.name==e.name&&t.message==e.message;case it:case ot:return t==e+"";case K:var s=sr;case at:var u=r&v;if(s||(s=hr),t.size!=e.size&&!u)return!1;var c=o.get(t);if(c)return c==e;r|=m,o.set(t,e);var h=No(s(t),s(e),r,i,a,o);return o["delete"](t),h;case st:if(mr)return mr.call(t)==mr.call(e)}return!1}function Bo(t,e,n,r,i,o){var s=n&v,u=Do(t),c=u.length,h=Do(e),f=h.length;if(c!=f&&!s)return!1;var l=c;while(l--){var d=u[l];if(!(s?d in e:fe.call(e,d)))return!1}var p=o.get(t),g=o.get(e);if(p&&g)return p==e&&g==t;var m=!0;o.set(t,e),o.set(e,t);var y=s;while(++l<c){d=u[l];var x=t[d],b=e[d];if(r)var w=s?r(b,x,d,e,t,o):r(x,b,d,t,e,o);if(!(w===a?x===b||i(x,b,n,r,o):w)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var _=t.constructor,M=e.constructor;_==M||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof M&&M instanceof M||(m=!1)}return o["delete"](t),o["delete"](e),m}function Lo(t){return Ss(ys(t,a,Us),t+"")}function Do(t){return Ni(t,wf,Vo)}function Ro(t){return Ni(t,_f,Ho)}var Fo=un?function(t){return un.get(t)}:Dl;function Yo(t){var e=t.name+"",n=cn[e],r=fe.call(cn,e)?n.length:0;while(r--){var i=n[r],a=i.func;if(null==a||a==t)return i.name}return e}function qo(t){var e=fe.call(br,"placeholder")?br:t;return e.placeholder}function zo(){var t=br.iteratee||Il;return t=t===Il?Ji:t,arguments.length?t(arguments[0],arguments[1]):t}function Xo(t,e){var n=t.__data__;return ss(e)?n["string"==typeof e?"string":"hash"]:n.map}function Go(t){var e=wf(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,ls(i)]}return e}function Wo(t,e){var n=rr(t,e);return Zi(n)?n:a}function Uo(t){var e=fe.call(t,Ce),n=t[Ce];try{t[Ce]=a;var r=!0}catch(o){}var i=pe.call(t);return r&&(e?t[Ce]=n:delete t[Ce]),i}var Vo=Be?function(t){return null==t?[]:(t=ne(t),Sn(Be(t),(function(e){return Se.call(t,e)})))}:Ul,Ho=Be?function(t){var e=[];while(t)Cn(e,Vo(t)),t=_e(t);return e}:Ul,Zo=ji;function $o(t,e,n){var r=-1,i=n.length;while(++r<i){var a=n[r],o=a.size;switch(a.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=qe(e,t+o);break;case"takeRight":t=Ye(t,e-o);break}}return{start:t,end:e}}function Qo(t){var e=t.match(qt);return e?e[1].split(zt):[]}function Ko(t,e,n){e=qa(e,t);var r=-1,i=e.length,a=!1;while(++r<i){var o=Es(e[r]);if(!(a=null!=t&&n(t,o)))break;t=t[o]}return a||++r!=i?a:(i=null==t?0:t.length,!!i&&wh(i)&&is(o,i)&&(oh(t)||ah(t)))}function Jo(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&fe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function ts(t){return"function"!=typeof t.constructor||fs(t)?{}:_r(_e(t))}function es(t,e,n){var r=t.constructor;switch(e){case ft:return Ua(t);case U:case V:return new r(+t);case lt:return Va(t,n);case dt:case pt:case gt:case vt:case mt:case yt:case xt:case bt:case wt:return $a(t,n);case K:return new r;case J:case ot:return new r(t);case it:return Ha(t);case at:return new r;case st:return Za(t)}}function ns(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(Yt,"{\n/* [wrapped with "+e+"] */\n")}function rs(t){return oh(t)||ah(t)||!!(Ae&&t&&t[Ae])}function is(t,e){var n=typeof t;return e=null==e?L:e,!!e&&("number"==n||"symbol"!=n&&Qt.test(t))&&t>-1&&t%1==0&&t<e}function as(t,e,n){if(!_h(n))return!1;var r=typeof e;return!!("number"==r?uh(n)&&is(e,n.length):"string"==r&&e in n)&&nh(n[e],t)}function os(t,e){if(oh(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Dh(t))||(Nt.test(t)||!Tt.test(t)||null!=e&&t in ne(e))}function ss(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function us(t){var e=Yo(t),n=br[e];if("function"!=typeof n||!(e in kr.prototype))return!1;if(t===n)return!0;var r=Fo(n);return!!r&&t===r[0]}function cs(t){return!!de&&de in t}(Ke&&Zo(new Ke(new ArrayBuffer(1)))!=lt||Je&&Zo(new Je)!=K||tn&&Zo(tn.resolve())!=nt||en&&Zo(new en)!=at||an&&Zo(new an)!=ct)&&(Zo=function(t){var e=ji(t),n=e==et?t.constructor:a,r=n?Is(n):"";if(r)switch(r){case fn:return lt;case ln:return K;case Tn:return nt;case Nn:return at;case zn:return ct}return e});var hs=ce?xh:Vl;function fs(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||ue;return t===n}function ls(t){return t===t&&!_h(t)}function ds(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==a||t in ne(n)))}}function ps(t){var e=Rc(t,(function(t){return n.size===f&&n.clear(),t})),n=e.cache;return e}function gs(t,e){var n=t[1],r=e[1],i=n|r,a=i<(y|x|k),o=r==k&&n==w||r==k&&n==A&&t[7].length<=e[8]||r==(k|A)&&e[7].length<=e[8]&&n==w;if(!a&&!o)return t;r&y&&(t[2]=e[2],i|=n&y?0:b);var s=e[3];if(s){var u=t[3];t[3]=u?Ja(u,s,e[4]):s,t[4]=u?cr(t[3],l):e[4]}return s=e[5],s&&(u=t[5],t[5]=u?to(u,s,e[6]):s,t[6]=u?cr(t[5],l):e[6]),s=e[7],s&&(t[7]=s),r&k&&(t[8]=null==t[8]?e[8]:qe(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function vs(t){var e=[];if(null!=t)for(var n in ne(t))e.push(n);return e}function ms(t){return pe.call(t)}function ys(t,e,r){return e=Ye(e===a?t.length-1:e,0),function(){var i=arguments,a=-1,o=Ye(i.length-e,0),s=n(o);while(++a<o)s[a]=i[e+a];a=-1;var u=n(e+1);while(++a<e)u[a]=i[a];return u[e]=r(s),xn(t,this,u)}}function xs(t,e){return e.length<2?t:Ti(t,ka(e,0,-1))}function bs(t,e){var n=t.length,r=qe(e.length,n),i=eo(t);while(r--){var o=e[r];t[r]=is(o,n)?i[o]:a}return t}function ws(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var _s=As(_a),Ms=Te||function(t,e){return sn.setTimeout(t,e)},Ss=As(Ma);function ks(t,e,n){var r=e+"";return Ss(t,ns(r,Os(Qo(r),n)))}function As(t){var e=0,n=0;return function(){var r=Ge(),i=O-(r-n);if(n=r,i>0){if(++e>=I)return arguments[0]}else e=0;return t.apply(a,arguments)}}function Ps(t,e){var n=-1,r=t.length,i=r-1;e=e===a?r:e;while(++n<e){var o=ga(n,i),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}var Cs=ps((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(jt,(function(t,n,r,i){e.push(r?i.replace(Gt,"$1"):n||t)})),e}));function Es(t){if("string"==typeof t||Dh(t))return t;var e=t+"";return"0"==e&&1/t==-B?"-0":e}function Is(t){if(null!=t){try{return he.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Os(t,e){return wn(z,(function(n){var r="_."+n[0];e&n[1]&&!kn(t,r)&&t.push(r)})),t.sort()}function Ts(t){if(t instanceof kr)return t.clone();var e=new Sr(t.__wrapped__,t.__chain__);return e.__actions__=eo(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Ns(t,e,r){e=(r?as(t,e,r):e===a)?1:Ye(Uh(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];var o=0,s=0,u=n(Ne(i/e));while(o<i)u[s++]=ka(t,o,o+=e);return u}function js(t){var e=-1,n=null==t?0:t.length,r=0,i=[];while(++e<n){var a=t[e];a&&(i[r++]=a)}return i}function Bs(){var t=arguments.length;if(!t)return[];var e=n(t-1),r=arguments[0],i=t;while(i--)e[i-1]=arguments[i];return Cn(oh(r)?eo(r):[r],Ai(e,1))}var Ls=ya((function(t,e){return ch(t)?xi(t,Ai(e,1,ch,!0)):[]})),Ds=ya((function(t,e){var n=ru(e);return ch(n)&&(n=a),ch(t)?xi(t,Ai(e,1,ch,!0),zo(n,2)):[]})),Rs=ya((function(t,e){var n=ru(e);return ch(n)&&(n=a),ch(t)?xi(t,Ai(e,1,ch,!0),a,n):[]}));function Fs(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===a?1:Uh(e),ka(t,e<0?0:e,r)):[]}function Ys(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===a?1:Uh(e),e=r-e,ka(t,0,e<0?0:e)):[]}function qs(t,e){return t&&t.length?Ba(t,zo(e,3),!0,!0):[]}function zs(t,e){return t&&t.length?Ba(t,zo(e,3),!0):[]}function Xs(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&as(t,e,n)&&(n=0,r=i),Si(t,e,n,r)):[]}function Gs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Uh(n);return i<0&&(i=Ye(r+i,0)),Ln(t,zo(e,3),i)}function Ws(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==a&&(i=Uh(n),i=n<0?Ye(r+i,0):qe(i,r-1)),Ln(t,zo(e,3),i,!0)}function Us(t){var e=null==t?0:t.length;return e?Ai(t,1):[]}function Vs(t){var e=null==t?0:t.length;return e?Ai(t,B):[]}function Hs(t,e){var n=null==t?0:t.length;return n?(e=e===a?1:Uh(e),Ai(t,e)):[]}function Zs(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}function $s(t){return t&&t.length?t[0]:a}function Qs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Uh(n);return i<0&&(i=Ye(r+i,0)),Dn(t,e,i)}function Ks(t){var e=null==t?0:t.length;return e?ka(t,0,-1):[]}var Js=ya((function(t){var e=Pn(t,Fa);return e.length&&e[0]===t[0]?Fi(e):[]})),tu=ya((function(t){var e=ru(t),n=Pn(t,Fa);return e===ru(n)?e=a:n.pop(),n.length&&n[0]===t[0]?Fi(n,zo(e,2)):[]})),eu=ya((function(t){var e=ru(t),n=Pn(t,Fa);return e="function"==typeof e?e:a,e&&n.pop(),n.length&&n[0]===t[0]?Fi(n,a,e):[]}));function nu(t,e){return null==t?"":Re.call(t,e)}function ru(t){var e=null==t?0:t.length;return e?t[e-1]:a}function iu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==a&&(i=Uh(n),i=i<0?Ye(r+i,0):qe(i,r-1)),e===e?dr(t,e,i):Ln(t,Fn,i,!0)}function au(t,e){return t&&t.length?ua(t,Uh(e)):a}var ou=ya(su);function su(t,e){return t&&t.length&&e&&e.length?da(t,e):t}function uu(t,e,n){return t&&t.length&&e&&e.length?da(t,e,zo(n,2)):t}function cu(t,e,n){return t&&t.length&&e&&e.length?da(t,e,a,n):t}var hu=Lo((function(t,e){var n=null==t?0:t.length,r=di(t,e);return pa(t,Pn(e,(function(t){return is(t,n)?+t:t})).sort(Qa)),r}));function fu(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],a=t.length;e=zo(e,3);while(++r<a){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return pa(t,i),n}function lu(t){return null==t?t:Ve.call(t)}function du(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&as(t,e,n)?(e=0,n=r):(e=null==e?0:Uh(e),n=n===a?r:Uh(n)),ka(t,e,n)):[]}function pu(t,e){return Pa(t,e)}function gu(t,e,n){return Ca(t,e,zo(n,2))}function vu(t,e){var n=null==t?0:t.length;if(n){var r=Pa(t,e);if(r<n&&nh(t[r],e))return r}return-1}function mu(t,e){return Pa(t,e,!0)}function yu(t,e,n){return Ca(t,e,zo(n,2),!0)}function xu(t,e){var n=null==t?0:t.length;if(n){var r=Pa(t,e,!0)-1;if(nh(t[r],e))return r}return-1}function bu(t){return t&&t.length?Ea(t):[]}function wu(t,e){return t&&t.length?Ea(t,zo(e,2)):[]}function _u(t){var e=null==t?0:t.length;return e?ka(t,1,e):[]}function Mu(t,e,n){return t&&t.length?(e=n||e===a?1:Uh(e),ka(t,0,e<0?0:e)):[]}function Su(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===a?1:Uh(e),e=r-e,ka(t,e<0?0:e,r)):[]}function ku(t,e){return t&&t.length?Ba(t,zo(e,3),!1,!0):[]}function Au(t,e){return t&&t.length?Ba(t,zo(e,3)):[]}var Pu=ya((function(t){return Ta(Ai(t,1,ch,!0))})),Cu=ya((function(t){var e=ru(t);return ch(e)&&(e=a),Ta(Ai(t,1,ch,!0),zo(e,2))})),Eu=ya((function(t){var e=ru(t);return e="function"==typeof e?e:a,Ta(Ai(t,1,ch,!0),a,e)}));function Iu(t){return t&&t.length?Ta(t):[]}function Ou(t,e){return t&&t.length?Ta(t,zo(e,2)):[]}function Tu(t,e){return e="function"==typeof e?e:a,t&&t.length?Ta(t,a,e):[]}function Nu(t){if(!t||!t.length)return[];var e=0;return t=Sn(t,(function(t){if(ch(t))return e=Ye(t.length,e),!0})),Un(e,(function(e){return Pn(t,qn(e))}))}function ju(t,e){if(!t||!t.length)return[];var n=Nu(t);return null==e?n:Pn(n,(function(t){return xn(e,a,t)}))}var Bu=ya((function(t,e){return ch(t)?xi(t,e):[]})),Lu=ya((function(t){return Da(Sn(t,ch))})),Du=ya((function(t){var e=ru(t);return ch(e)&&(e=a),Da(Sn(t,ch),zo(e,2))})),Ru=ya((function(t){var e=ru(t);return e="function"==typeof e?e:a,Da(Sn(t,ch),a,e)})),Fu=ya(Nu);function Yu(t,e){return Ra(t||[],e||[],si)}function qu(t,e){return Ra(t||[],e||[],wa)}var zu=ya((function(t){var e=t.length,n=e>1?t[e-1]:a;return n="function"==typeof n?(t.pop(),n):a,ju(t,n)}));function Xu(t){var e=br(t);return e.__chain__=!0,e}function Gu(t,e){return e(t),t}function Wu(t,e){return e(t)}var Uu=Lo((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return di(e,t)};return!(e>1||this.__actions__.length)&&r instanceof kr&&is(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Wu,args:[i],thisArg:a}),new Sr(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(a),t}))):this.thru(i)}));function Vu(){return Xu(this)}function Hu(){return new Sr(this.value(),this.__chain__)}function Zu(){this.__values__===a&&(this.__values__=Gh(this.value()));var t=this.__index__>=this.__values__.length,e=t?a:this.__values__[this.__index__++];return{done:t,value:e}}function $u(){return this}function Qu(t){var e,n=this;while(n instanceof Mr){var r=Ts(n);r.__index__=0,r.__values__=a,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function Ku(){var t=this.__wrapped__;if(t instanceof kr){var e=t;return this.__actions__.length&&(e=new kr(this)),e=e.reverse(),e.__actions__.push({func:Wu,args:[lu],thisArg:a}),new Sr(e,this.__chain__)}return this.thru(lu)}function Ju(){return La(this.__wrapped__,this.__actions__)}var tc=ao((function(t,e,n){fe.call(t,n)?++t[n]:li(t,n,1)}));function ec(t,e,n){var r=oh(t)?Mn:_i;return n&&as(t,e,n)&&(e=a),r(t,zo(e,3))}function nc(t,e){var n=oh(t)?Sn:ki;return n(t,zo(e,3))}var rc=go(Gs),ic=go(Ws);function ac(t,e){return Ai(pc(t,e),1)}function oc(t,e){return Ai(pc(t,e),B)}function sc(t,e,n){return n=n===a?1:Uh(n),Ai(pc(t,e),n)}function uc(t,e){var n=oh(t)?wn:bi;return n(t,zo(e,3))}function cc(t,e){var n=oh(t)?_n:wi;return n(t,zo(e,3))}var hc=ao((function(t,e,n){fe.call(t,n)?t[n].push(e):li(t,n,[e])}));function fc(t,e,n,r){t=uh(t)?t:Yf(t),n=n&&!r?Uh(n):0;var i=t.length;return n<0&&(n=Ye(i+n,0)),Lh(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Dn(t,e,n)>-1}var lc=ya((function(t,e,r){var i=-1,a="function"==typeof e,o=uh(t)?n(t.length):[];return bi(t,(function(t){o[++i]=a?xn(e,t,r):qi(t,e,r)})),o})),dc=ao((function(t,e,n){li(t,n,e)}));function pc(t,e){var n=oh(t)?Pn:ra;return n(t,zo(e,3))}function gc(t,e,n,r){return null==t?[]:(oh(e)||(e=null==e?[]:[e]),n=r?a:n,oh(n)||(n=null==n?[]:[n]),ca(t,e,n))}var vc=ao((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function mc(t,e,n){var r=oh(t)?En:Xn,i=arguments.length<3;return r(t,zo(e,4),n,i,bi)}function yc(t,e,n){var r=oh(t)?In:Xn,i=arguments.length<3;return r(t,zo(e,4),n,i,wi)}function xc(t,e){var n=oh(t)?Sn:ki;return n(t,Fc(zo(e,3)))}function bc(t){var e=oh(t)?ri:xa;return e(t)}function wc(t,e,n){e=(n?as(t,e,n):e===a)?1:Uh(e);var r=oh(t)?ii:ba;return r(t,e)}function _c(t){var e=oh(t)?ai:Sa;return e(t)}function Mc(t){if(null==t)return 0;if(uh(t))return Lh(t)?pr(t):t.length;var e=Zo(t);return e==K||e==at?t.size:ta(t).length}function Sc(t,e,n){var r=oh(t)?On:Aa;return n&&as(t,e,n)&&(e=a),r(t,zo(e,3))}var kc=ya((function(t,e){if(null==t)return[];var n=e.length;return n>1&&as(t,e[0],e[1])?e=[]:n>2&&as(e[0],e[1],e[2])&&(e=[e[0]]),ca(t,Ai(e,1),[])})),Ac=Oe||function(){return sn.Date.now()};function Pc(t,e){if("function"!=typeof e)throw new ae(c);return t=Uh(t),function(){if(--t<1)return e.apply(this,arguments)}}function Cc(t,e,n){return e=n?a:e,e=t&&null==e?t.length:e,Eo(t,k,a,a,a,a,e)}function Ec(t,e){var n;if("function"!=typeof e)throw new ae(c);return t=Uh(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=a),n}}var Ic=ya((function(t,e,n){var r=y;if(n.length){var i=cr(n,qo(Ic));r|=M}return Eo(t,r,e,n,i)})),Oc=ya((function(t,e,n){var r=y|x;if(n.length){var i=cr(n,qo(Oc));r|=M}return Eo(e,r,t,n,i)}));function Tc(t,e,n){e=n?a:e;var r=Eo(t,w,a,a,a,a,a,e);return r.placeholder=Tc.placeholder,r}function Nc(t,e,n){e=n?a:e;var r=Eo(t,_,a,a,a,a,a,e);return r.placeholder=Nc.placeholder,r}function jc(t,e,n){var r,i,o,s,u,h,f=0,l=!1,d=!1,p=!0;if("function"!=typeof t)throw new ae(c);function g(e){var n=r,o=i;return r=i=a,f=e,s=t.apply(o,n),s}function v(t){return f=t,u=Ms(x,e),l?g(t):s}function m(t){var n=t-h,r=t-f,i=e-n;return d?qe(i,o-r):i}function y(t){var n=t-h,r=t-f;return h===a||n>=e||n<0||d&&r>=o}function x(){var t=Ac();if(y(t))return b(t);u=Ms(x,m(t))}function b(t){return u=a,p&&r?g(t):(r=i=a,s)}function w(){u!==a&&Ga(u),f=0,r=h=i=u=a}function _(){return u===a?s:b(Ac())}function M(){var t=Ac(),n=y(t);if(r=arguments,i=this,h=t,n){if(u===a)return v(h);if(d)return Ga(u),u=Ms(x,e),g(h)}return u===a&&(u=Ms(x,e)),s}return e=Hh(e)||0,_h(n)&&(l=!!n.leading,d="maxWait"in n,o=d?Ye(Hh(n.maxWait)||0,e):o,p="trailing"in n?!!n.trailing:p),M.cancel=w,M.flush=_,M}var Bc=ya((function(t,e){return yi(t,1,e)})),Lc=ya((function(t,e,n){return yi(t,Hh(e)||0,n)}));function Dc(t){return Eo(t,P)}function Rc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ae(c);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Rc.Cache||qr),n}function Fc(t){if("function"!=typeof t)throw new ae(c);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)}}function Yc(t){return Ec(2,t)}Rc.Cache=qr;var qc=za((function(t,e){e=1==e.length&&oh(e[0])?Pn(e[0],Hn(zo())):Pn(Ai(e,1),Hn(zo()));var n=e.length;return ya((function(r){var i=-1,a=qe(r.length,n);while(++i<a)r[i]=e[i].call(this,r[i]);return xn(t,this,r)}))})),zc=ya((function(t,e){var n=cr(e,qo(zc));return Eo(t,M,a,e,n)})),Xc=ya((function(t,e){var n=cr(e,qo(Xc));return Eo(t,S,a,e,n)})),Gc=Lo((function(t,e){return Eo(t,A,a,a,a,e)}));function Wc(t,e){if("function"!=typeof t)throw new ae(c);return e=e===a?e:Uh(e),ya(t,e)}function Uc(t,e){if("function"!=typeof t)throw new ae(c);return e=null==e?0:Ye(Uh(e),0),ya((function(n){var r=n[e],i=Xa(n,0,e);return r&&Cn(i,r),xn(t,this,i)}))}function Vc(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new ae(c);return _h(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),jc(t,e,{leading:r,maxWait:e,trailing:i})}function Hc(t){return Cc(t,1)}function Zc(t,e){return zc(Ya(e),t)}function $c(){if(!arguments.length)return[];var t=arguments[0];return oh(t)?t:[t]}function Qc(t){return gi(t,g)}function Kc(t,e){return e="function"==typeof e?e:a,gi(t,g,e)}function Jc(t){return gi(t,d|g)}function th(t,e){return e="function"==typeof e?e:a,gi(t,d|g,e)}function eh(t,e){return null==e||mi(t,e,wf(e))}function nh(t,e){return t===e||t!==t&&e!==e}var rh=So(Bi),ih=So((function(t,e){return t>=e})),ah=zi(function(){return arguments}())?zi:function(t){return Mh(t)&&fe.call(t,"callee")&&!Se.call(t,"callee")},oh=n.isArray,sh=dn?Hn(dn):Xi;function uh(t){return null!=t&&wh(t.length)&&!xh(t)}function ch(t){return Mh(t)&&uh(t)}function hh(t){return!0===t||!1===t||Mh(t)&&ji(t)==U}var fh=Le||Vl,lh=pn?Hn(pn):Gi;function dh(t){return Mh(t)&&1===t.nodeType&&!Th(t)}function ph(t){if(null==t)return!0;if(uh(t)&&(oh(t)||"string"==typeof t||"function"==typeof t.splice||fh(t)||Rh(t)||ah(t)))return!t.length;var e=Zo(t);if(e==K||e==at)return!t.size;if(fs(t))return!ta(t).length;for(var n in t)if(fe.call(t,n))return!1;return!0}function gh(t,e){return Wi(t,e)}function vh(t,e,n){n="function"==typeof n?n:a;var r=n?n(t,e):a;return r===a?Wi(t,e,a,n):!!r}function mh(t){if(!Mh(t))return!1;var e=ji(t);return e==Z||e==H||"string"==typeof t.message&&"string"==typeof t.name&&!Th(t)}function yh(t){return"number"==typeof t&&De(t)}function xh(t){if(!_h(t))return!1;var e=ji(t);return e==$||e==Q||e==W||e==rt}function bh(t){return"number"==typeof t&&t==Uh(t)}function wh(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=L}function _h(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Mh(t){return null!=t&&"object"==typeof t}var Sh=gn?Hn(gn):Vi;function kh(t,e){return t===e||Hi(t,e,Go(e))}function Ah(t,e,n){return n="function"==typeof n?n:a,Hi(t,e,Go(e),n)}function Ph(t){return Oh(t)&&t!=+t}function Ch(t){if(hs(t))throw new i(u);return Zi(t)}function Eh(t){return null===t}function Ih(t){return null==t}function Oh(t){return"number"==typeof t||Mh(t)&&ji(t)==J}function Th(t){if(!Mh(t)||ji(t)!=et)return!1;var e=_e(t);if(null===e)return!0;var n=fe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&he.call(n)==ge}var Nh=vn?Hn(vn):$i;function jh(t){return bh(t)&&t>=-L&&t<=L}var Bh=mn?Hn(mn):Qi;function Lh(t){return"string"==typeof t||!oh(t)&&Mh(t)&&ji(t)==ot}function Dh(t){return"symbol"==typeof t||Mh(t)&&ji(t)==st}var Rh=yn?Hn(yn):Ki;function Fh(t){return t===a}function Yh(t){return Mh(t)&&Zo(t)==ct}function qh(t){return Mh(t)&&ji(t)==ht}var zh=So(na),Xh=So((function(t,e){return t<=e}));function Gh(t){if(!t)return[];if(uh(t))return Lh(t)?gr(t):eo(t);if(Pe&&t[Pe])return or(t[Pe]());var e=Zo(t),n=e==K?sr:e==at?hr:Yf;return n(t)}function Wh(t){if(!t)return 0===t?t:0;if(t=Hh(t),t===B||t===-B){var e=t<0?-1:1;return e*D}return t===t?t:0}function Uh(t){var e=Wh(t),n=e%1;return e===e?n?e-n:e:0}function Vh(t){return t?pi(Uh(t),0,F):0}function Hh(t){if("number"==typeof t)return t;if(Dh(t))return R;if(_h(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=_h(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Dt,"");var n=Ht.test(t);return n||$t.test(t)?rn(t.slice(2),n?2:8):Vt.test(t)?R:+t}function Zh(t){return no(t,_f(t))}function $h(t){return t?pi(Uh(t),-L,L):0===t?t:0}function Qh(t){return null==t?"":Oa(t)}var Kh=oo((function(t,e){if(fs(e)||uh(e))no(e,wf(e),t);else for(var n in e)fe.call(e,n)&&si(t,n,e[n])})),Jh=oo((function(t,e){no(e,_f(e),t)})),tf=oo((function(t,e,n,r){no(e,_f(e),t,r)})),ef=oo((function(t,e,n,r){no(e,wf(e),t,r)})),nf=Lo(di);function rf(t,e){var n=_r(t);return null==e?n:hi(n,e)}var af=ya((function(t,e){t=ne(t);var n=-1,r=e.length,i=r>2?e[2]:a;i&&as(e[0],e[1],i)&&(r=1);while(++n<r){var o=e[n],s=_f(o),u=-1,c=s.length;while(++u<c){var h=s[u],f=t[h];(f===a||nh(f,ue[h])&&!fe.call(t,h))&&(t[h]=o[h])}}return t})),of=ya((function(t){return t.push(a,Oo),xn(Af,a,t)}));function sf(t,e){return Bn(t,zo(e,3),Ei)}function uf(t,e){return Bn(t,zo(e,3),Ii)}function cf(t,e){return null==t?t:Pi(t,zo(e,3),_f)}function hf(t,e){return null==t?t:Ci(t,zo(e,3),_f)}function ff(t,e){return t&&Ei(t,zo(e,3))}function lf(t,e){return t&&Ii(t,zo(e,3))}function df(t){return null==t?[]:Oi(t,wf(t))}function pf(t){return null==t?[]:Oi(t,_f(t))}function gf(t,e,n){var r=null==t?a:Ti(t,e);return r===a?n:r}function vf(t,e){return null!=t&&Ko(t,e,Li)}function mf(t,e){return null!=t&&Ko(t,e,Di)}var yf=yo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=pe.call(e)),t[e]=n}),kl(El)),xf=yo((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=pe.call(e)),fe.call(t,e)?t[e].push(n):t[e]=[n]}),zo),bf=ya(qi);function wf(t){return uh(t)?ni(t):ta(t)}function _f(t){return uh(t)?ni(t,!0):ea(t)}function Mf(t,e){var n={};return e=zo(e,3),Ei(t,(function(t,r,i){li(n,e(t,r,i),t)})),n}function Sf(t,e){var n={};return e=zo(e,3),Ei(t,(function(t,r,i){li(n,r,e(t,r,i))})),n}var kf=oo((function(t,e,n){oa(t,e,n)})),Af=oo((function(t,e,n,r){oa(t,e,n,r)})),Pf=Lo((function(t,e){var n={};if(null==t)return n;var r=!1;e=Pn(e,(function(e){return e=qa(e,t),r||(r=e.length>1),e})),no(t,Ro(t),n),r&&(n=gi(n,d|p|g,To));var i=e.length;while(i--)Na(n,e[i]);return n}));function Cf(t,e){return If(t,Fc(zo(e)))}var Ef=Lo((function(t,e){return null==t?{}:ha(t,e)}));function If(t,e){if(null==t)return{};var n=Pn(Ro(t),(function(t){return[t]}));return e=zo(e),fa(t,n,(function(t,n){return e(t,n[0])}))}function Of(t,e,n){e=qa(e,t);var r=-1,i=e.length;i||(i=1,t=a);while(++r<i){var o=null==t?a:t[Es(e[r])];o===a&&(r=i,o=n),t=xh(o)?o.call(t):o}return t}function Tf(t,e,n){return null==t?t:wa(t,e,n)}function Nf(t,e,n,r){return r="function"==typeof r?r:a,null==t?t:wa(t,e,n,r)}var jf=Co(wf),Bf=Co(_f);function Lf(t,e,n){var r=oh(t),i=r||fh(t)||Rh(t);if(e=zo(e,4),null==n){var a=t&&t.constructor;n=i?r?new a:[]:_h(t)&&xh(a)?_r(_e(t)):{}}return(i?wn:Ei)(t,(function(t,r,i){return e(n,t,r,i)})),n}function Df(t,e){return null==t||Na(t,e)}function Rf(t,e,n){return null==t?t:ja(t,e,Ya(n))}function Ff(t,e,n,r){return r="function"==typeof r?r:a,null==t?t:ja(t,e,Ya(n),r)}function Yf(t){return null==t?[]:Zn(t,wf(t))}function qf(t){return null==t?[]:Zn(t,_f(t))}function zf(t,e,n){return n===a&&(n=e,e=a),n!==a&&(n=Hh(n),n=n===n?n:0),e!==a&&(e=Hh(e),e=e===e?e:0),pi(Hh(t),e,n)}function Xf(t,e,n){return e=Wh(e),n===a?(n=e,e=0):n=Wh(n),t=Hh(t),Ri(t,e,n)}function Gf(t,e,n){if(n&&"boolean"!=typeof n&&as(t,e,n)&&(e=n=a),n===a&&("boolean"==typeof e?(n=e,e=a):"boolean"==typeof t&&(n=t,t=a)),t===a&&e===a?(t=0,e=1):(t=Wh(t),e===a?(e=t,t=0):e=Wh(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Ue();return qe(t+i*(e-t+nn("1e-"+((i+"").length-1))),e)}return ga(t,e)}var Wf=fo((function(t,e,n){return e=e.toLowerCase(),t+(n?Uf(e):e)}));function Uf(t){return xl(Qh(t).toLowerCase())}function Vf(t){return t=Qh(t),t&&t.replace(Kt,tr).replace(Xe,"")}function Hf(t,e,n){t=Qh(t),e=Oa(e);var r=t.length;n=n===a?r:pi(Uh(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function Zf(t){return t=Qh(t),t&&Ct.test(t)?t.replace(At,er):t}function $f(t){return t=Qh(t),t&&Lt.test(t)?t.replace(Bt,"\\$&"):t}var Qf=fo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Kf=fo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Jf=ho("toLowerCase");function tl(t,e,n){t=Qh(t),e=Uh(e);var r=e?pr(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return wo(je(i),n)+t+wo(Ne(i),n)}function el(t,e,n){t=Qh(t),e=Uh(e);var r=e?pr(t):0;return e&&r<e?t+wo(e-r,n):t}function nl(t,e,n){t=Qh(t),e=Uh(e);var r=e?pr(t):0;return e&&r<e?wo(e-r,n)+t:t}function rl(t,e,n){return n||null==e?e=0:e&&(e=+e),We(Qh(t).replace(Rt,""),e||0)}function il(t,e,n){return e=(n?as(t,e,n):e===a)?1:Uh(e),ma(Qh(t),e)}function al(){var t=arguments,e=Qh(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var ol=fo((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function sl(t,e,n){return n&&"number"!=typeof n&&as(t,e,n)&&(e=n=a),n=n===a?F:n>>>0,n?(t=Qh(t),t&&("string"==typeof e||null!=e&&!Nh(e))&&(e=Oa(e),!e&&ir(t))?Xa(gr(t),0,n):t.split(e,n)):[]}var ul=fo((function(t,e,n){return t+(n?" ":"")+xl(e)}));function cl(t,e,n){return t=Qh(t),n=null==n?0:pi(Uh(n),0,t.length),e=Oa(e),t.slice(n,n+e.length)==e}function hl(t,e,n){var r=br.templateSettings;n&&as(t,e,n)&&(e=a),t=Qh(t),e=tf({},e,r,Io);var i,o,s=tf({},e.imports,r.imports,Io),u=wf(s),c=Zn(s,u),h=0,f=e.interpolate||Jt,l="__p += '",d=re((e.escape||Jt).source+"|"+f.source+"|"+(f===Ot?Wt:Jt).source+"|"+(e.evaluate||Jt).source+"|$","g"),p="//# sourceURL="+(fe.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ze+"]")+"\n";t.replace(d,(function(e,n,r,a,s,u){return r||(r=a),l+=t.slice(h,u).replace(te,nr),n&&(i=!0,l+="' +\n__e("+n+") +\n'"),s&&(o=!0,l+="';\n"+s+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=u+e.length,e})),l+="';\n";var g=fe.call(e,"variable")&&e.variable;g||(l="with (obj) {\n"+l+"\n}\n"),l=(o?l.replace(_t,""):l).replace(Mt,"$1").replace(St,"$1;"),l="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var v=wl((function(){return Xt(u,p+"return "+l).apply(a,c)}));if(v.source=l,mh(v))throw v;return v}function fl(t){return Qh(t).toLowerCase()}function ll(t){return Qh(t).toUpperCase()}function dl(t,e,n){if(t=Qh(t),t&&(n||e===a))return t.replace(Dt,"");if(!t||!(e=Oa(e)))return t;var r=gr(t),i=gr(e),o=Qn(r,i),s=Kn(r,i)+1;return Xa(r,o,s).join("")}function pl(t,e,n){if(t=Qh(t),t&&(n||e===a))return t.replace(Ft,"");if(!t||!(e=Oa(e)))return t;var r=gr(t),i=Kn(r,gr(e))+1;return Xa(r,0,i).join("")}function gl(t,e,n){if(t=Qh(t),t&&(n||e===a))return t.replace(Rt,"");if(!t||!(e=Oa(e)))return t;var r=gr(t),i=Qn(r,gr(e));return Xa(r,i).join("")}function vl(t,e){var n=C,r=E;if(_h(e)){var i="separator"in e?e.separator:i;n="length"in e?Uh(e.length):n,r="omission"in e?Oa(e.omission):r}t=Qh(t);var o=t.length;if(ir(t)){var s=gr(t);o=s.length}if(n>=o)return t;var u=n-pr(r);if(u<1)return r;var c=s?Xa(s,0,u).join(""):t.slice(0,u);if(i===a)return c+r;if(s&&(u+=c.length-u),Nh(i)){if(t.slice(u).search(i)){var h,f=c;i.global||(i=re(i.source,Qh(Ut.exec(i))+"g")),i.lastIndex=0;while(h=i.exec(f))var l=h.index;c=c.slice(0,l===a?u:l)}}else if(t.indexOf(Oa(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r}function ml(t){return t=Qh(t),t&&Pt.test(t)?t.replace(kt,vr):t}var yl=fo((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),xl=ho("toUpperCase");function bl(t,e,n){return t=Qh(t),e=n?a:e,e===a?ar(t)?xr(t):jn(t):t.match(e)||[]}var wl=ya((function(t,e){try{return xn(t,a,e)}catch(n){return mh(n)?n:new i(n)}})),_l=Lo((function(t,e){return wn(e,(function(e){e=Es(e),li(t,e,Ic(t[e],t))})),t}));function Ml(t){var e=null==t?0:t.length,n=zo();return t=e?Pn(t,(function(t){if("function"!=typeof t[1])throw new ae(c);return[n(t[0]),t[1]]})):[],ya((function(n){var r=-1;while(++r<e){var i=t[r];if(xn(i[0],this,n))return xn(i[1],this,n)}}))}function Sl(t){return vi(gi(t,d))}function kl(t){return function(){return t}}function Al(t,e){return null==t||t!==t?e:t}var Pl=vo(),Cl=vo(!0);function El(t){return t}function Il(t){return Ji("function"==typeof t?t:gi(t,d))}function Ol(t){return ia(gi(t,d))}function Tl(t,e){return aa(t,gi(e,d))}var Nl=ya((function(t,e){return function(n){return qi(n,t,e)}})),jl=ya((function(t,e){return function(n){return qi(t,n,e)}}));function Bl(t,e,n){var r=wf(e),i=Oi(e,r);null!=n||_h(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Oi(e,wf(e)));var a=!(_h(n)&&"chain"in n)||!!n.chain,o=xh(t);return wn(i,(function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__),i=n.__actions__=eo(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Cn([this.value()],arguments))})})),t}function Ll(){return sn._===this&&(sn._=ve),this}function Dl(){}function Rl(t){return t=Uh(t),ya((function(e){return ua(e,t)}))}var Fl=bo(Pn),Yl=bo(Mn),ql=bo(On);function zl(t){return os(t)?qn(Es(t)):la(t)}function Xl(t){return function(e){return null==t?a:Ti(t,e)}}var Gl=Mo(),Wl=Mo(!0);function Ul(){return[]}function Vl(){return!1}function Hl(){return{}}function Zl(){return""}function $l(){return!0}function Ql(t,e){if(t=Uh(t),t<1||t>L)return[];var n=F,r=qe(t,F);e=zo(e),t-=F;var i=Un(r,e);while(++n<t)e(n);return i}function Kl(t){return oh(t)?Pn(t,Es):Dh(t)?[t]:eo(Cs(Qh(t)))}function Jl(t){var e=++le;return Qh(t)+e}var td=xo((function(t,e){return t+e}),0),ed=Ao("ceil"),nd=xo((function(t,e){return t/e}),1),rd=Ao("floor");function id(t){return t&&t.length?Mi(t,El,Bi):a}function ad(t,e){return t&&t.length?Mi(t,zo(e,2),Bi):a}function od(t){return Yn(t,El)}function sd(t,e){return Yn(t,zo(e,2))}function ud(t){return t&&t.length?Mi(t,El,na):a}function cd(t,e){return t&&t.length?Mi(t,zo(e,2),na):a}var hd=xo((function(t,e){return t*e}),1),fd=Ao("round"),ld=xo((function(t,e){return t-e}),0);function dd(t){return t&&t.length?Wn(t,El):0}function pd(t,e){return t&&t.length?Wn(t,zo(e,2)):0}return br.after=Pc,br.ary=Cc,br.assign=Kh,br.assignIn=Jh,br.assignInWith=tf,br.assignWith=ef,br.at=nf,br.before=Ec,br.bind=Ic,br.bindAll=_l,br.bindKey=Oc,br.castArray=$c,br.chain=Xu,br.chunk=Ns,br.compact=js,br.concat=Bs,br.cond=Ml,br.conforms=Sl,br.constant=kl,br.countBy=tc,br.create=rf,br.curry=Tc,br.curryRight=Nc,br.debounce=jc,br.defaults=af,br.defaultsDeep=of,br.defer=Bc,br.delay=Lc,br.difference=Ls,br.differenceBy=Ds,br.differenceWith=Rs,br.drop=Fs,br.dropRight=Ys,br.dropRightWhile=qs,br.dropWhile=zs,br.fill=Xs,br.filter=nc,br.flatMap=ac,br.flatMapDeep=oc,br.flatMapDepth=sc,br.flatten=Us,br.flattenDeep=Vs,br.flattenDepth=Hs,br.flip=Dc,br.flow=Pl,br.flowRight=Cl,br.fromPairs=Zs,br.functions=df,br.functionsIn=pf,br.groupBy=hc,br.initial=Ks,br.intersection=Js,br.intersectionBy=tu,br.intersectionWith=eu,br.invert=yf,br.invertBy=xf,br.invokeMap=lc,br.iteratee=Il,br.keyBy=dc,br.keys=wf,br.keysIn=_f,br.map=pc,br.mapKeys=Mf,br.mapValues=Sf,br.matches=Ol,br.matchesProperty=Tl,br.memoize=Rc,br.merge=kf,br.mergeWith=Af,br.method=Nl,br.methodOf=jl,br.mixin=Bl,br.negate=Fc,br.nthArg=Rl,br.omit=Pf,br.omitBy=Cf,br.once=Yc,br.orderBy=gc,br.over=Fl,br.overArgs=qc,br.overEvery=Yl,br.overSome=ql,br.partial=zc,br.partialRight=Xc,br.partition=vc,br.pick=Ef,br.pickBy=If,br.property=zl,br.propertyOf=Xl,br.pull=ou,br.pullAll=su,br.pullAllBy=uu,br.pullAllWith=cu,br.pullAt=hu,br.range=Gl,br.rangeRight=Wl,br.rearg=Gc,br.reject=xc,br.remove=fu,br.rest=Wc,br.reverse=lu,br.sampleSize=wc,br.set=Tf,br.setWith=Nf,br.shuffle=_c,br.slice=du,br.sortBy=kc,br.sortedUniq=bu,br.sortedUniqBy=wu,br.split=sl,br.spread=Uc,br.tail=_u,br.take=Mu,br.takeRight=Su,br.takeRightWhile=ku,br.takeWhile=Au,br.tap=Gu,br.throttle=Vc,br.thru=Wu,br.toArray=Gh,br.toPairs=jf,br.toPairsIn=Bf,br.toPath=Kl,br.toPlainObject=Zh,br.transform=Lf,br.unary=Hc,br.union=Pu,br.unionBy=Cu,br.unionWith=Eu,br.uniq=Iu,br.uniqBy=Ou,br.uniqWith=Tu,br.unset=Df,br.unzip=Nu,br.unzipWith=ju,br.update=Rf,br.updateWith=Ff,br.values=Yf,br.valuesIn=qf,br.without=Bu,br.words=bl,br.wrap=Zc,br.xor=Lu,br.xorBy=Du,br.xorWith=Ru,br.zip=Fu,br.zipObject=Yu,br.zipObjectDeep=qu,br.zipWith=zu,br.entries=jf,br.entriesIn=Bf,br.extend=Jh,br.extendWith=tf,Bl(br,br),br.add=td,br.attempt=wl,br.camelCase=Wf,br.capitalize=Uf,br.ceil=ed,br.clamp=zf,br.clone=Qc,br.cloneDeep=Jc,br.cloneDeepWith=th,br.cloneWith=Kc,br.conformsTo=eh,br.deburr=Vf,br.defaultTo=Al,br.divide=nd,br.endsWith=Hf,br.eq=nh,br.escape=Zf,br.escapeRegExp=$f,br.every=ec,br.find=rc,br.findIndex=Gs,br.findKey=sf,br.findLast=ic,br.findLastIndex=Ws,br.findLastKey=uf,br.floor=rd,br.forEach=uc,br.forEachRight=cc,br.forIn=cf,br.forInRight=hf,br.forOwn=ff,br.forOwnRight=lf,br.get=gf,br.gt=rh,br.gte=ih,br.has=vf,br.hasIn=mf,br.head=$s,br.identity=El,br.includes=fc,br.indexOf=Qs,br.inRange=Xf,br.invoke=bf,br.isArguments=ah,br.isArray=oh,br.isArrayBuffer=sh,br.isArrayLike=uh,br.isArrayLikeObject=ch,br.isBoolean=hh,br.isBuffer=fh,br.isDate=lh,br.isElement=dh,br.isEmpty=ph,br.isEqual=gh,br.isEqualWith=vh,br.isError=mh,br.isFinite=yh,br.isFunction=xh,br.isInteger=bh,br.isLength=wh,br.isMap=Sh,br.isMatch=kh,br.isMatchWith=Ah,br.isNaN=Ph,br.isNative=Ch,br.isNil=Ih,br.isNull=Eh,br.isNumber=Oh,br.isObject=_h,br.isObjectLike=Mh,br.isPlainObject=Th,br.isRegExp=Nh,br.isSafeInteger=jh,br.isSet=Bh,br.isString=Lh,br.isSymbol=Dh,br.isTypedArray=Rh,br.isUndefined=Fh,br.isWeakMap=Yh,br.isWeakSet=qh,br.join=nu,br.kebabCase=Qf,br.last=ru,br.lastIndexOf=iu,br.lowerCase=Kf,br.lowerFirst=Jf,br.lt=zh,br.lte=Xh,br.max=id,br.maxBy=ad,br.mean=od,br.meanBy=sd,br.min=ud,br.minBy=cd,br.stubArray=Ul,br.stubFalse=Vl,br.stubObject=Hl,br.stubString=Zl,br.stubTrue=$l,br.multiply=hd,br.nth=au,br.noConflict=Ll,br.noop=Dl,br.now=Ac,br.pad=tl,br.padEnd=el,br.padStart=nl,br.parseInt=rl,br.random=Gf,br.reduce=mc,br.reduceRight=yc,br.repeat=il,br.replace=al,br.result=Of,br.round=fd,br.runInContext=t,br.sample=bc,br.size=Mc,br.snakeCase=ol,br.some=Sc,br.sortedIndex=pu,br.sortedIndexBy=gu,br.sortedIndexOf=vu,br.sortedLastIndex=mu,br.sortedLastIndexBy=yu,br.sortedLastIndexOf=xu,br.startCase=ul,br.startsWith=cl,br.subtract=ld,br.sum=dd,br.sumBy=pd,br.template=hl,br.times=Ql,br.toFinite=Wh,br.toInteger=Uh,br.toLength=Vh,br.toLower=fl,br.toNumber=Hh,br.toSafeInteger=$h,br.toString=Qh,br.toUpper=ll,br.trim=dl,br.trimEnd=pl,br.trimStart=gl,br.truncate=vl,br.unescape=ml,br.uniqueId=Jl,br.upperCase=yl,br.upperFirst=xl,br.each=uc,br.eachRight=cc,br.first=$s,Bl(br,function(){var t={};return Ei(br,(function(e,n){fe.call(br.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),br.VERSION=o,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){br[t].placeholder=br})),wn(["drop","take"],(function(t,e){kr.prototype[t]=function(n){n=n===a?1:Ye(Uh(n),0);var r=this.__filtered__&&!e?new kr(this):this.clone();return r.__filtered__?r.__takeCount__=qe(n,r.__takeCount__):r.__views__.push({size:qe(n,F),type:t+(r.__dir__<0?"Right":"")}),r},kr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),wn(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=n==T||n==j;kr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:zo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),wn(["head","last"],(function(t,e){var n="take"+(e?"Right":"");kr.prototype[t]=function(){return this[n](1).value()[0]}})),wn(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");kr.prototype[t]=function(){return this.__filtered__?new kr(this):this[n](1)}})),kr.prototype.compact=function(){return this.filter(El)},kr.prototype.find=function(t){return this.filter(t).head()},kr.prototype.findLast=function(t){return this.reverse().find(t)},kr.prototype.invokeMap=ya((function(t,e){return"function"==typeof t?new kr(this):this.map((function(n){return qi(n,t,e)}))})),kr.prototype.reject=function(t){return this.filter(Fc(zo(t)))},kr.prototype.slice=function(t,e){t=Uh(t);var n=this;return n.__filtered__&&(t>0||e<0)?new kr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==a&&(e=Uh(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},kr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},kr.prototype.toArray=function(){return this.take(F)},Ei(kr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=br[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(br.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,u=e instanceof kr,c=s[0],h=u||oh(e),f=function(t){var e=i.apply(br,Cn([t],s));return r&&l?e[0]:e};h&&n&&"function"==typeof c&&1!=c.length&&(u=h=!1);var l=this.__chain__,d=!!this.__actions__.length,p=o&&!l,g=u&&!d;if(!o&&h){e=g?e:new kr(this);var v=t.apply(e,s);return v.__actions__.push({func:Wu,args:[f],thisArg:a}),new Sr(v,l)}return p&&g?t.apply(this,s):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),wn(["pop","push","shift","sort","splice","unshift"],(function(t){var e=oe[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);br.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(oh(i)?i:[],t)}return this[n]((function(n){return e.apply(oh(n)?n:[],t)}))}})),Ei(kr.prototype,(function(t,e){var n=br[e];if(n){var r=n.name+"";fe.call(cn,r)||(cn[r]=[]),cn[r].push({name:e,func:n})}})),cn[mo(a,x).name]=[{name:"wrapper",func:a}],kr.prototype.clone=Ar,kr.prototype.reverse=Pr,kr.prototype.value=Cr,br.prototype.at=Uu,br.prototype.chain=Vu,br.prototype.commit=Hu,br.prototype.next=Zu,br.prototype.plant=Qu,br.prototype.reverse=Ku,br.prototype.toJSON=br.prototype.valueOf=br.prototype.value=Ju,br.prototype.first=br.prototype.head,Pe&&(br.prototype[Pe]=$u),br},wr=br();sn._=wr,i=function(){return wr}.call(e,n,e,r),i===a||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(t))},"2efd":function(t,e){const n="click",r=["click","dblclick"];t.exports={getDefaultCfg(){return{trigger:n,onChange(){}}},getEvents(){let t;return r.includes(this.trigger)?t=this.trigger:(t=n,console.warn("Behavior collapse-expand的trigger参数不合法请输入click或dblclick")),{["node:"+t]:"onNodeClick"}},onNodeClick(t){const e=t.item,n=this.graph.findDataById(e.get("id")),r=n.children;if(!r||0===r.length)return;const i=!n.collapsed;if(this.shouldBegin(t,i)&&(n.collapsed=i,e.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:t.item,collapsed:i}),this.shouldUpdate(t,i))){try{this.onChange(e,i)}catch(t){console.warn("G6 自 3.0.4 版本支持直接从 item.getModel() 获取源数据(临时通知将在3.2.0版本中清除)",t)}this.graph.refreshLayout()}}}},"2fcc":function(t,e){function n(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}t.exports=n},"30c9":function(t,e,n){var r=n("9520"),i=n("b218");function a(t){return null!=t&&i(t.length)&&!r(t)}t.exports=a},"321c":function(t,e,n){var r=n("1c6a"),i=n("adff"),a=n("5134"),o=n("c4bc"),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this,e=t._attrs,n=this.getHitLineWidth(),i=e.points;if(!i||0===i.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(i,(function(t){var e=t[0],n=t[1];e<a&&(a=e),e>s&&(s=e),n<o&&(o=n),n>u&&(u=n)}));var c=n/2;return{minX:a-c,minY:o-c,maxX:s+c,maxY:u+c}},_setTcache:function(){var t,e,n=this,i=n._attrs,a=i.points,s=0,u=0,c=[];a&&0!==a.length&&(r.each(a,(function(t,e){a[e+1]&&(s+=o.len(t[0],t[1],a[e+1][0],a[e+1][1]))})),s<=0||(r.each(a,(function(n,r){a[r+1]&&(t=[],t[0]=u/s,e=o.len(n[0],n[1],a[r+1][0],a[r+1][1]),u+=e,t[1]=u/s,c.push(t))})),this.tCache=c))},createPath:function(t){var e,n=this,r=n._attrs,i=r.points;if(!(i.length<2)){var o=i.length-1,s=i[0][0],u=i[0][1],c=i[o][0],h=i[o][1];if(r.startArrow&&r.startArrow.d){var f=a.getShortenOffset(i[0][0],i[0][1],i[1][0],i[1][1],r.startArrow.d);s+=f.dx,u+=f.dy}if(r.endArrow&&r.endArrow.d){var l=a.getShortenOffset(i[o-1][0],i[o-1][1],i[o][0],i[o][1],r.endArrow.d);c-=l.dx,h-=l.dy}for(t=t||n.get("context"),t.beginPath(),t.moveTo(s,u),e=1;e<o;e++)t.lineTo(i[e][0],i[e][1]);t.lineTo(c,h)}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},afterPath:function(t){var e=this,n=e._attrs,r=n.points,i=r.length-1;t=t||e.get("context"),n.startArrow&&a.addStartArrow(t,n,r[1][0],r[1][1],r[0][0],r[0][1]),n.endArrow&&a.addEndArrow(t,n,r[i-1][0],r[i-1][1],r[i][0],r[i][1])},getPoint:function(t){var e,n,i=this._attrs,a=i.points,s=this.tCache;return s||(this._setTcache(),s=this.tCache),r.each(s,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),{x:o.at(a[n][0],a[n+1][0],e),y:o.at(a[n][1],a[n+1][1],e)}}}),t.exports=s},"32b3":function(t,e,n){var r=n("872a"),i=n("9638"),a=Object.prototype,o=a.hasOwnProperty;function s(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}t.exports=s},"32f4":function(t,e,n){var r=n("2d7c"),i=n("d327"),a=Object.prototype,o=a.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=u},3380:function(t,e,n){var r=n("1c6a"),i=r.vec2;function a(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function o(t,e,n,r,o,s,u,c,h){var f,l,d,p,g,v,m,y=.005,x=1/0,b=1e-4,w=[u,c];for(g=0;g<1;g+=.05)d=[a(t,n,o,g),a(e,r,s,g)],l=i.squaredDistance(w,d),l<x&&(f=g,x=l);for(x=1/0,m=0;m<32;m++){if(y<b)break;var _=f-y,M=f+y;d=[a(t,n,o,_),a(e,r,s,_)],l=i.squaredDistance(w,d),_>=0&&l<x?(f=_,x=l):(p=[a(t,n,o,M),a(e,r,s,M)],v=i.squaredDistance(w,p),M<=1&&v<x?(f=M,x=v):y*=.5)}return h&&(h.x=a(t,n,o,f),h.y=a(e,r,s,f)),Math.sqrt(x)}function s(t,e,n){var i=t+n-2*e;if(r.isNumberEqual(i,0))return[.5];var a=(t-e)/i;return a<=1&&a>=0?[a]:[]}t.exports={at:a,projectPoint:function(t,e,n,r,i,a,s,u){var c={};return o(t,e,n,r,i,a,s,u,c),c},pointDistance:o,extrema:s}},"339d":function(t,e){var n=function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},"33de":function(t,e,n){var r;try{r={clone:n("b8ce"),constant:n("72f0"),each:n("c641"),filter:n("9380"),has:n("3852"),isArray:n("6747"),isEmpty:n("13ea"),isFunction:n("9520"),isUndefined:n("4cfe"),keys:n("ec69"),map:n("dd61"),reduce:n("c5a2"),size:n("d623"),transform:n("50ca"),union:n("bfc7"),values:n("3ff1")}}catch(i){}r||(r=window._),t.exports=r},3421:function(t,e,n){var r=n("00d0"),i=function(t){return r(t,"String")};t.exports=i},3494:function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("1bb5"),o=n("9ed2");r.registerNode("ellipse",{options:{size:[120,60],style:{x:0,y:0,stroke:o.defaultShapeStrokeColor,fill:o.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"}},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:36,height:36}},shapeType:"ellipse",labelPosition:"center",drawShape(t,e){const n=this.getCustomConfig(t)||{},{icon:r}=this.options,{icon:a}=n,o=this.getShapeStyle(t),s=i({},r,a,t.icon),u=e.addShape("ellipse",{attrs:o}),{width:c,height:h,show:f}=s;if(f){const t=e.addShape("image",{attrs:{x:-c/2,y:-h/2,...s},className:"ellipse-icon"});t.set("capture",!1)}return this.drawLinkPoints(t,e),u},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{top:s,left:u,right:c,bottom:h,size:f,...l}=o,d=this.getSize(t),p=d[0]/2,g=d[1]/2;u&&e.addShape("circle",{attrs:{...l,x:-p,y:0,r:f},className:"ellipse-mark-left",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:{...l,x:p,y:0,r:f},className:"ellipse-mark-right",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:{...l,x:0,y:-g,r:f},className:"ellipse-mark-top",isAnchorPoint:!0}),h&&e.addShape("circle",{attrs:{...l,x:0,y:g,r:f},className:"ellipse-mark-bottom",isAnchorPoint:!0})},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,o={stroke:t.color},s=i({},n,r,o,t.style),u=this.getSize(t),c=u[0]/2,h=u[1]/2,f=a.mix({},{x:0,y:0,rx:c,ry:h},s);return f},update(t,e){const n=this.getCustomConfig(t)||{},{style:r,icon:a,labelCfg:o}=this.options,{style:s,icon:u,labelCfg:c}=n,h=i({},r,s,t.style),f=i({},a,u,t.icon),l=this.getSize(t),d=l[0]/2,p=l[1]/2,g=e.get("keyShape");g.attr({...h,rx:d,ry:p});const v=e.getContainer(),m=i({},o,c,t.labelCfg),y=this.getLabelStyle(t,m,v),x=v.findByClassName("node-label");x&&x.attr({...y});const b=v.findByClassName("ellipse-icon"),{width:w,height:_}=f;b&&b.attr({x:-w/2,y:-_/2,...f}),this.updateLinkPoints(t,v)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{size:s,...u}=o,c=this.getSize(t),h=c[0]/2,f=c[1]/2,l=e.findByClassName("ellipse-mark-left");l&&l.attr({...u,x:-h,y:0,r:s});const d=e.findByClassName("ellipse-mark-right");d&&d.attr({...u,x:h,y:0,r:s});const p=e.findByClassName("ellipse-mark-top");p&&p.attr({...u,x:0,y:-f,r:s});const g=e.findByClassName("ellipse-mark-bottom");g&&g.attr({...u,x:0,y:f,r:s})}},"single-shape")},"34ac":function(t,e,n){var r=n("9520"),i=n("1368"),a=n("1a8c"),o=n("dc57"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,h=Object.prototype,f=c.toString,l=h.hasOwnProperty,d=RegExp("^"+f.call(l).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(t){if(!a(t)||i(t))return!1;var e=r(t)?d:u;return e.test(o(t))}t.exports=p},3501:function(t,e,n){const r=n("0519"),i=n("1bb5"),a=n("c02a");function o(t,e){let n=-1;return i.each(t,(t,r)=>{if(e.id===t.id)return n=r,!1}),n}class s extends a{constructor(t){super(t),this.set("removeList",[]),this.set("layoutMethod",this._getLayout())}getDefaultCfg(){const t=super.getDefaultCfg();return t.animate=!0,t}render(){const t=this,e=t.get("data");if(!e)throw new Error("data must be defined first");t.clear(),t.emit("beforerender"),t.refreshLayout(this.get("fitView")),t.emit("afterrender")}addChild(t,e){const n=this;i.isString(e)||(e=e.get("id"));const r=n.findDataById(e);r.children||(r.children=[]),r.children.push(t),n.changeData()}_addChild(t,e,n){const r=this,a=t.data;a.x=t.x,a.y=t.y,a.depth=t.depth;const o=r.addItem("node",a);if(e){if(o.set("parent",e),n){const t=e.get("origin");if(t)o.set("origin",t);else{const t=e.getModel();o.set("origin",{x:t.x,y:t.y})}}const t=e.get("children");t?t.push(o):e.set("children",[o]),r.addItem("edge",{source:e,target:o,id:e.get("id")+":"+o.get("id")})}return i.each(t.children,t=>{r._addChild(t,o,n)}),o}changeData(t){const e=this;t?(e.data(t),e.render()):e.refreshLayout(this.get("fitView"))}updateChild(t,e){const n=this;if(!e||!n.findById(e))return void n.changeData(t);const r=n.findById(e).getModel(),i=n.findById(t.id);if(i){const e=o(r.children,t);r.children[e]=t}else r.children?r.children.push(t):r.children=[i];n.changeData()}_updateChild(t,e,n){const r=this,a=r.findById(t.id);if(!a)return void r._addChild(t,e,n);i.each(t.children,t=>{r._updateChild(t,a,n)});const s=a.get("children");if(s){const e=s.length;if(e>0){let e;for(let i=s.length-1;i>=0;i--)e=s[i].getModel(),-1===o(t.children,e)&&(r._removeChild(e.id,{x:t.x,y:t.y},n),s.splice(i,1))}}const u=a.getModel();n&&a.set("origin",{x:u.x,y:u.y}),a.set("model",t.data),a.updatePosition({x:t.x,y:t.y})}removeChild(t){const e=this,n=e.findById(t);if(!n)return;const r=n.get("parent");if(r&&!r.destroyed){const t=e.findDataById(r.get("id")).children,i=o(t,n.getModel());t.splice(i,1)}e.changeData()}_removeChild(t,e,n){const r=this,a=r.findById(t);if(a)if(i.each(a.get("children"),t=>{r._removeChild(t.getModel().id,e,n)}),n){const t=a.getModel();a.set("to",e),a.set("origin",{x:t.x,y:t.y}),r.get("removeList").push(a)}else r.removeItem(a)}save(){return this.get("data")}findDataById(t,e){const n=this;if(e||(e=n.get("data")),t===e.id)return e;let r=null;return i.each(e.children,e=>e.id===t?(r=e,!1):(r=n.findDataById(t,e),!r&&void 0)),r}changeLayout(t){const e=this;t?(e.set("layout",t),e.set("layoutMethod",e._getLayout()),e.refreshLayout()):console.warn("layout cannot be null")}refreshLayout(t){const e=this,n=e.get("data"),r=e.get("layoutMethod")(n,e.get("layout")),i=e.get("animate"),a=e.get("autoPaint");e.emit("beforerefreshlayout",{data:n,layoutData:r}),e.setAutoPaint(!1),e._updateChild(r,null,i),t&&e.get("viewController")._fitView(),i?e.layoutAnimate(r,null):(e.refresh(),e.paint()),e.setAutoPaint(a),e.emit("afterrefreshlayout",{data:n,layoutData:r})}layoutAnimate(t,e){const n=this;this.setAutoPaint(!1);const r=this.get("animateCfg");n.emit("beforeanimate",{data:t}),n.getEdges().forEach(t=>{const e=t.get("model");e.sourceAnchor||(e.sourceAnchor=t.get("sourceAnchorIndex"))}),this.get("canvas").animate({onFrame(r){i.traverseTree(t,a=>{const o=n.findById(a.id);if(o){let n=o.get("origin");const s=o.get("model");if(n||(n={x:s.x,y:s.y},o.set("origin",n)),e){const a=e(o,r,n,t);o.set("model",i.mix(s,a))}else s.x=n.x+(a.x-n.x)*r,s.y=n.y+(a.y-n.y)*r}}),i.each(n.get("removeList"),t=>{const e=t.getModel(),n=t.get("origin"),i=t.get("to");e.x=n.x+(i.x-n.x)*r,e.y=n.y+(i.y-n.y)*r}),n.refreshPositions()}},r.duration,r.ease,()=>{i.each(n.getNodes(),t=>{t.set("origin",null)}),i.each(n.get("removeList"),t=>{n.removeItem(t)}),n.set("removeList",[]),r.callback&&r.callback(),n.paint(),this.setAutoPaint(!0),n.emit("afteranimate",{data:t})},r.delay)}stopLayoutAnimate(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1}isLayoutAnimating(){return this.layoutAnimating}_getLayout(){const t=this.get("layout");return t?"function"===typeof t?t:(t.type||(t.type="dendrogram"),t.direction||(t.direction="TB"),t.radial?function(e){const n=r[t.type](e,t);return i.radialLayout(n),n}:function(e){return r[t.type](e,t)}):null}}t.exports=s},3698:function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},"36bd":function(t,e,n){"use strict";var r=n("4bf8"),i=n("77f1"),a=n("9def");t.exports=function(t){var e=r(this),n=a(e.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);while(c>s)e[s++]=t;return e}},"36e0":function(t,e,n){const r={mix:n("503e"),augment:n("8d88"),isString:n("3421"),getAdjMatrix(t,e){const n=t.nodes,r=t.edges,i=[],a=new Map;return n.forEach((t,e)=>{a.set(t.id,e);const n=[];i.push(n)}),r.forEach(t=>{const n=t.source,r=t.target,o=a.get(n),s=a.get(r);i[o][s]=1,e||(i[s][o]=1)}),i},floydWarshall(t){const e=[],n=t.length;for(let r=0;r<n;r+=1){e[r]=[];for(let i=0;i<n;i+=1)r===i?e[r][i]=0:0!==t[r][i]&&t[r][i]?e[r][i]=t[r][i]:e[r][i]=1/0}for(let r=0;r<n;r+=1)for(let t=0;t<n;t+=1)for(let i=0;i<n;i+=1)e[t][i]>e[t][r]+e[r][i]&&(e[t][i]=e[t][r]+e[r][i]);return e},getEDistance(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},scaleMatrix(t,e){const n=[];return t.forEach(t=>{const r=[];t.forEach(t=>{r.push(t*e)}),n.push(r)}),n}};t.exports=r},3818:function(t,e,n){var r=n("7e64"),i=n("8057"),a=n("32b3"),o=n("5b01"),s=n("0f0f"),u=n("e538"),c=n("4359"),h=n("54eb"),f=n("1041"),l=n("a994"),d=n("1bac"),p=n("42a2"),g=n("c87c"),v=n("c2b6"),m=n("fa21"),y=n("6747"),x=n("0d24"),b=n("cc45"),w=n("1a8c"),_=n("d7ee"),M=n("ec69"),S=1,k=2,A=4,P="[object Arguments]",C="[object Array]",E="[object Boolean]",I="[object Date]",O="[object Error]",T="[object Function]",N="[object GeneratorFunction]",j="[object Map]",B="[object Number]",L="[object Object]",D="[object RegExp]",R="[object Set]",F="[object String]",Y="[object Symbol]",q="[object WeakMap]",z="[object ArrayBuffer]",X="[object DataView]",G="[object Float32Array]",W="[object Float64Array]",U="[object Int8Array]",V="[object Int16Array]",H="[object Int32Array]",Z="[object Uint8Array]",$="[object Uint8ClampedArray]",Q="[object Uint16Array]",K="[object Uint32Array]",J={};function tt(t,e,n,C,E,I){var O,j=e&S,B=e&k,D=e&A;if(n&&(O=E?n(t,C,E,I):n(t)),void 0!==O)return O;if(!w(t))return t;var R=y(t);if(R){if(O=g(t),!j)return c(t,O)}else{var F=p(t),Y=F==T||F==N;if(x(t))return u(t,j);if(F==L||F==P||Y&&!E){if(O=B||Y?{}:m(t),!j)return B?f(t,s(O,t)):h(t,o(O,t))}else{if(!J[F])return E?t:{};O=v(t,F,j)}}I||(I=new r);var q=I.get(t);if(q)return q;I.set(t,O),_(t)?t.forEach((function(r){O.add(tt(r,e,n,r,t,I))})):b(t)&&t.forEach((function(r,i){O.set(i,tt(r,e,n,i,t,I))}));var z=D?B?d:l:B?keysIn:M,X=R?void 0:z(t);return i(X||t,(function(r,i){X&&(i=r,r=t[i]),a(O,i,tt(r,e,n,i,t,I))})),O}J[P]=J[C]=J[z]=J[X]=J[E]=J[I]=J[G]=J[W]=J[U]=J[V]=J[H]=J[j]=J[B]=J[L]=J[D]=J[R]=J[F]=J[Y]=J[Z]=J[$]=J[Q]=J[K]=!0,J[O]=J[T]=J[q]=!1,t.exports=tt},3852:function(t,e,n){var r=n("96f3"),i=n("e2c0");function a(t,e){return null!=t&&i(t,e,r)}t.exports=a},"38e2":function(t,e,n){var r=n("6f9c"),i=n("1f3a"),a=n("d9f3"),o=n("f352");function s(t,e,n,h){var f=t.children(e),l=t.node(e),d=l?l.borderLeft:void 0,p=l?l.borderRight:void 0,g={};d&&(f=r.filter(f,(function(t){return t!==d&&t!==p})));var v=i(t,f);r.forEach(v,(function(e){if(t.children(e.v).length){var i=s(t,e.v,n,h);g[e.v]=i,r.has(i,"barycenter")&&c(e,i)}}));var m=a(v,n);u(m,g);var y=o(m,h);if(d&&(y.vs=r.flatten([d,y.vs,p],!0),t.predecessors(d).length)){var x=t.node(t.predecessors(d)[0]),b=t.node(t.predecessors(p)[0]);r.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+x.order+b.order)/(y.weight+2),y.weight+=2}return y}function u(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}function c(t,e){r.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}t.exports=s},"39ff":function(t,e,n){var r=n("0b07"),i=n("2b3e"),a=r(i,"WeakMap");t.exports=a},"3a21":function(t,e,n){var r=n("00d0"),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},"3a95":function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("9ed2");r.registerNode("triangle",{options:{size:40,direction:"up",style:{stroke:a.defaultShapeStrokeColor,fill:a.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"},offset:15},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:5,lineWidth:1,fill:"#fff",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16,offset:6}},shapeType:"triangle",labelPosition:"bottom",drawShape(t,e){const n=this.getCustomConfig(t)||{},{icon:r,direction:a}=this.options,{icon:o,direction:s}=n,u=this.getShapeStyle(t),c=i({},r,o,t.icon),h=t.direction||s||a,f=e.addShape("path",{attrs:u}),{width:l,height:d,show:p,offset:g}=c;if(p){let t=-l/2,n=-d/2;"up"!==h&&"down"!==h||(n+=g),"left"!==h&&"right"!==h||(t+=g);const r=e.addShape("image",{attrs:{x:t,y:n,...c},className:"triangle-icon"});r.set("capture",!1)}return this.drawLinkPoints(t,e),f},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r,direction:a}=this.options,{linkPoints:o,direction:s}=n,u=i({},r,o,t.linkPoints),c=t.direction||s||a,{top:h,left:f,right:l,bottom:d,size:p,...g}=u,v=this.getSize(t),m=v[0];if(f){let t=null;const n=m*Math.sin(1/3*Math.PI),r=m*Math.sin(1/3*Math.PI);"up"===c?t=[-r,n]:"down"===c?t=[-r,-n]:"left"===c&&(t=[-r,r-n]),t&&e.addShape("circle",{attrs:{...g,x:t[0],y:t[1],r:p},className:"triangle-mark-left"})}if(l){let t=null;const n=m*Math.sin(1/3*Math.PI),r=m*Math.sin(1/3*Math.PI);"up"===c?t=[r,n]:"down"===c?t=[r,-n]:"right"===c&&(t=[r,r-n]),t&&e.addShape("circle",{attrs:{...g,x:t[0],y:t[1],r:p},className:"triangle-mark-right"})}if(h){let t=null;const n=m*Math.sin(1/3*Math.PI),r=m*Math.sin(1/3*Math.PI);"up"===c?t=[r-n,-n]:"left"===c?t=[r,-n]:"right"===c&&(t=[-r,-n]),t&&e.addShape("circle",{attrs:{...g,x:t[0],y:t[1],r:p},className:"triangle-mark-top"})}if(d){let t=null;const n=m*Math.sin(1/3*Math.PI),r=m*Math.sin(1/3*Math.PI);"down"===c?t=[-r+n,n]:"left"===c?t=[r,n]:"right"===c&&(t=[-r,n]),t&&e.addShape("circle",{attrs:{...g,x:t[0],y:t[1],r:p},className:"triangle-mark-bottom"})}},getPath(t){const e=this.getCustomConfig(t)||{},{direction:n}=this.options,{direction:r}=e,i=t.direction||r||n,a=this.getSize(t),o=a[0],s=o*Math.sin(1/3*Math.PI),u=o*Math.sin(1/3*Math.PI);let c=[["M",-u,s],["L",0,-s],["L",u,s],["Z"]];return"down"===i?c=[["M",-u,-s],["L",u,-s],["L",0,s],["Z"]]:"left"===i?c=[["M",-u,u-s],["L",u,-u],["L",u,u],["Z"]]:"right"===i&&(c=[["M",u,u-s],["L",-u,u],["L",-u,-u],["Z"]]),c},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,a={stroke:t.color},o=i({},n,r,a,t.style),s=this.getPath(t),u={path:s,...o};return u},update(t,e){const n=e.getContainer(),r=this.getCustomConfig(t)||{},{style:a,icon:o,labelCfg:s}=this.options,{style:u,icon:c,labelCfg:h}=r,f=i({},a,u,t.style),l=i({},o,c,t.icon),d=e.get("keyShape"),p=this.getPath(t);d.attr({path:p,...f});const g=i({},s,h,t.labelCfg),v=this.getLabelStyle(t,g,n),m=n.findByClassName("node-label");m&&m.attr({...v});const y=n.findByClassName("triangle-icon");if(y){const{width:t,height:e}=l;y.attr({x:-t/2,y:-e/2,...l})}this.updateLinkPoints(t,n)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r,direction:a}=this.options,{linkPoints:o,direction:s}=n,u=i({},r,o,t.linkPoints),c=t.direction||s||a,{size:h,...f}=u,l=this.getSize(t),d=l[0],p=e.findByClassName("triangle-mark-left");if(p){let t=null;const e=d*Math.sin(1/3*Math.PI),n=d*Math.sin(1/3*Math.PI);"up"===c?t=[-n,e]:"down"===c?t=[-n,-e]:"left"===c&&(t=[-n,n-e]),t&&p.attr({...f,x:t[0],y:t[1],r:h})}const g=e.findByClassName("triangle-mark-right");if(g){let t=null;const e=d*Math.sin(1/3*Math.PI),n=d*Math.sin(1/3*Math.PI);"up"===c?t=[n,e]:"down"===c?t=[n,-e]:"right"===c&&(t=[n,n-e]),t&&g.attr({...f,x:t[0],y:t[1],r:h})}const v=e.findByClassName("triangle-mark-top");if(v){let t=null;const e=d*Math.sin(1/3*Math.PI),n=d*Math.sin(1/3*Math.PI);"up"===c?t=[n-e,-e]:"left"===c?t=[n,-e]:"right"===c&&(t=[-n,-e]),t&&v.attr({...f,x:t[0],y:t[1],r:h})}const m=e.findByClassName("triangle-mark-bottom");if(m){let t=null;const e=d*Math.sin(1/3*Math.PI),n=d*Math.sin(1/3*Math.PI);"down"===c?t=[-n+e,e]:"left"===c?t=[n,e]:"right"===c&&(t=[-n,e]),t&&m.attr({...f,x:t[0],y:t[1],r:h})}}},"single-shape")},"3b0b":function(t,e,n){const r=n("1bb5"),i=n("c424"),a={"drag-canvas":n("594f"),"zoom-canvas":n("e916"),"drag-node":n("7c8f"),"click-select":n("a560"),tooltip:n("59ca"),"edge-tooltip":n("12d7"),"collapse-expand":n("2efd"),"activate-relations":n("7a60"),"brush-select":n("a5d3"),"drag-group":n("e310"),"drag-node-with-group":n("fe51"),"collapse-expand-group":n("f4c8")};r.each(a,(t,e)=>{i.registerBehavior(e,t)}),t.exports=i},"3b4a":function(t,e,n){var r=n("0b07"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},"3b54":function(t,e,n){var r=n("e0ef"),i=n("72fb"),a=n("6dcf");t.exports=function(t,e){return t=r(t),i(e,(function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}})),t}},"3bb4":function(t,e,n){var r=n("08cc"),i=n("ec69");function a(t){var e=i(t),n=e.length;while(n--){var a=e[n],o=t[a];e[n]=[a,o,r(o)]}return e}t.exports=a},"3c9b":function(t,e,n){"use strict";n.r(e),n.d(e,"calcStrLen",(function(){return r})),n.d(e,"fittingString",(function(){return i}));const r=t=>{let e=0;for(let n=0;n<t.length;n++)t.charCodeAt(n)>0&&t.charCodeAt(n)<128?e++:e+=2;return e},i=(t,e,n)=>{const i=1.3*n;e*=2;const a=r(t)*i,o="…";if(a>e){const n=Math.floor((e-10)/i),r=t.substring(0,n)+o;return r}return t}},"3cbc":function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e))if(-1!==e.indexOf("\n")){n=e.split("\n");var i=n.length;t.lineCount=i}else t.lineCount=1;t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){var r=this._getSpaceingY();return n*e+r*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this,e=t._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),e.textArr||this._setAttrText();var r=e.x,i=e.y,a=t.measureText();if(!a)return{minX:r,minY:i,maxX:r,maxY:i};var o=t._getTextHeight(),s=e.textAlign,u=e.textBaseline,c=t.getHitLineWidth(),h={x:r,y:i-o};s&&("end"===s||"right"===s?h.x-=a:"center"===s&&(h.x-=a/2)),u&&("top"===u?h.y+=o:"middle"===u&&(h.y+=o/2)),this.set("startPoint",h);var f=c/2;return{minX:h.x-f,minY:h.y-f,maxX:h.x+a+f,maxY:h.y+o+f}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this,n=e._attrs,i=this._cfg;i.attrs&&!i.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=n.font;var a=n.text;if(a){var o=n.textArr,s=n.x,u=n.y;if(t.beginPath(),e.hasStroke()){var c=n.strokeOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),o?e._drawTextArr(t,!1):t.strokeText(a,s,u),t.globalAlpha=1}if(e.hasFill()){var h=n.fillOpacity;r.isNil(h)||1===h||(t.globalAlpha=h),o?e._drawTextArr(t,!0):t.fillText(a,s,u)}i.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,c=this._attrs.y,h=this.getBBox(),f=h.maxY-h.minY;r.each(i,(function(r,i){n=c+i*(s+o)-f+o,"middle"===a&&(n+=f-o-(f-o)/2),"top"===a&&(n+=f-o),e?t.fillText(r,u,n):t.strokeText(r,u,n)}))},measureText:function(){var t,e=this,n=e._attrs,i=n.text,a=n.font,o=n.textArr,s=0;if(!r.isNil(i)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=a,o?r.each(o,(function(e){t=u.measureText(e).width,s<t&&(s=t),u.restore()})):(s=u.measureText(i).width,u.restore()),s}}}),t.exports=a},"3f97":function(t,e,n){const r=n("c138"),i=n("e877"),a=n("9ed2"),o=Math.PI,s=Math.sin,u=Math.cos,c=s(o/8),h=u(o/8);function f(t,e){!1!==e(t)&&i.each(t.children,t=>{f(t,e)})}const l={getBBox(t,e){const n=t.getBBox();let i={x:n.minX,y:n.minY},a={x:n.maxX,y:n.maxY};if(e){const t=e.getMatrix();i=r.applyMatrix(i,t),a=r.applyMatrix(a,t)}return{minX:i.x,minY:i.y,maxX:a.x,maxY:a.y}},getLoopCfgs(t){const e=t.sourceNode||t.targetNode,n=e.get("group").getMatrix(),r=e.getKeyShape().getBBox(),o=t.loopCfg||{},s=o.dist||2*Math.max(r.width,r.height),u=o.position||a.loopPosition,f=Math.max(r.width,r.height)/2,l=(f+s)/f,d=[n[6],n[7]],p=f*c,g=f*h;let v=[t.startPoint.x,t.startPoint.y],m=[t.endPoint.x,t.endPoint.y];if(v[0]===m[0]&&v[1]===m[1]){switch(u){case"top":v=[d[0]-p,d[1]-g],m=[d[0]+p,d[1]-g];break;case"top-right":v=[d[0]+p,d[1]-g],m=[d[0]+g,d[1]-p];break;case"right":v=[d[0]+g,d[1]-p],m=[d[0]+g,d[1]+p];break;case"bottom-right":v=[d[0]+g,d[1]+p],m=[d[0]+p,d[1]+g];break;case"bottom":v=[d[0]+p,d[1]+g],m=[d[0]-p,d[1]+g];break;case"bottom-left":v=[d[0]-p,d[1]+g],m=[d[0]-g,d[1]+p];break;case"left":v=[d[0]-g,d[1]+p],m=[d[0]-g,d[1]-p];break;case"top-left":v=[d[0]-g,d[1]-p],m=[d[0]-p,d[1]-g];break;default:v=[d[0]-p,d[1]-g],m=[d[0]+p,d[1]-g]}if(!1===o.clockwise){const t=[v[0],v[1]];v=[m[0],m[1]],m=[t[0],t[1]]}}const y=[v[0]-d[0],v[1]-d[1]],x=i.vec2.scale([],y,l),b=[d[0]+x[0],d[1]+x[1]],w=[m[0]-d[0],m[1]-d[1]],_=i.vec2.scale([],w,l),M=[d[0]+_[0],d[1]+_[1]];return t.startPoint={x:v[0],y:v[1]},t.endPoint={x:m[0],y:m[1]},t.controlPoints=[{x:b[0],y:b[1]},{x:M[0],y:M[1]}],t},traverseTree(t,e){"function"===typeof e&&f(t,e)},radialLayout(t,e){const n=["V","TB","BT"],r={x:1/0,y:1/0},i={x:-1/0,y:-1/0};let a="x",s="y";e&&n.indexOf(e)>=0&&(s="x",a="y");let u=0;this.traverseTree(t,t=>{u++,t.x>i.x&&(i.x=t.x),t.x<r.x&&(r.x=t.x),t.y>i.y&&(i.y=t.y),t.y<r.y&&(r.y=t.y)});const c=2*o/u,h=i[s]-r[s];return 0===h||this.traverseTree(t,e=>{const n=(e[s]-r[s])/h*(2*o-c)+c,i=Math.abs("x"===a?e.x-t.x:e.y-t.y);e.x=i*Math.cos(n),e.y=i*Math.sin(n)}),t},getLabelPosition(t,e,n,r,i){const a=1e-4;let c=[];const h=t.getPoint(e);if(null===h)return{x:0,y:0,angle:0};if(e<a)c=t.getStartTangent().reverse();else if(e>1-a)c=t.getEndTangent();else{const n=t.getPoint(e+a);c.push([h.x,h.y]),c.push([n.x,n.y])}let f=Math.atan2(c[1][1]-c[0][1],c[1][0]-c[0][0]);if(f<0&&(f+=2*o),n&&(h.x+=u(f)*n,h.y+=s(f)*n),r){let t=f-o/2;f>.5*o&&f<1.5*o&&(t-=o),h.x+=u(t)*r,h.y+=s(t)*r}const l={x:h.x,y:h.y,angle:f};return i?(f>.5*o&&f<1.5*o&&(f-=o),{rotate:f,...l}):l}};t.exports=l},"3ff1":function(t,e,n){var r=n("266a"),i=n("ec69");function a(t){return null==t?[]:r(t,i(t))}t.exports=a},"41c3":function(t,e,n){var r=n("1a8c"),i=n("eac5"),a=n("ec8c"),o=Object.prototype,s=o.hasOwnProperty;function u(t){if(!r(t))return a(t);var e=i(t),n=[];for(var o in t)("constructor"!=o||!e&&s.call(t,o))&&n.push(o);return n}t.exports=u},4245:function(t,e,n){var r=n("1290");function i(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}t.exports=i},42454:function(t,e,n){var r=n("f909"),i=n("2ec1"),a=i((function(t,e,n){r(t,e,n)}));t.exports=a},4284:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}t.exports=n},"42a2":function(t,e,n){var r=n("b5a7"),i=n("79bc"),a=n("1cec"),o=n("c869"),s=n("39ff"),u=n("3729"),c=n("dc57"),h="[object Map]",f="[object Object]",l="[object Promise]",d="[object Set]",p="[object WeakMap]",g="[object DataView]",v=c(r),m=c(i),y=c(a),x=c(o),b=c(s),w=u;(r&&w(new r(new ArrayBuffer(1)))!=g||i&&w(new i)!=h||a&&w(a.resolve())!=l||o&&w(new o)!=d||s&&w(new s)!=p)&&(w=function(t){var e=u(t),n=e==f?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return g;case m:return h;case y:return l;case x:return d;case b:return p}return e}),t.exports=w},4359:function(t,e){function n(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}t.exports=n},"43e8":function(t,e,n){var r=n("8185");function i(t){try{r(t)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}t.exports=i},4589: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(){var t=[],e=this._sentinel,n=e._prev;while(n!==e)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},4590:function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},"45ee":function(t,e,n){"use strict";var r=n("6f9c"),i=n("b50e");function a(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){o(t,e)}))}function o(t,e){var n=e.v,r=t.node(n).rank,a=e.w,o=t.node(a).rank,s=e.name,u=t.edge(e),c=u.labelRank;if(o!==r+1){var h,f,l;for(t.removeEdge(e),l=0,++r;r<o;++l,++r)u.points=[],f={width:0,height:0,edgeLabel:u,edgeObj:e,rank:r},h=i.addDummyNode(t,"edge",f,"_d"),r===c&&(f.width=u.width,f.height=u.height,f.dummy="edge-label",f.labelpos=u.labelpos),t.setEdge(n,h,{weight:u.weight},s),0===l&&t.graph().dummyChains.push(h),n=h;t.setEdge(n,a,{weight:u.weight},s)}}function s(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;t.setEdge(r.edgeObj,i);while(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)}))}t.exports={run:a,undo:s}},4651:function(t,e,n){const r=n("36e0"),i={registerLayout:function(t,e){if(!e)throw new Error("please specify handler for this layout:"+t);const n=function(t){const e=this;r.mix(e,e.getDefaultCfg(),t)};r.augment(n,{init(t){const e=this;e.nodes=t.nodes,e.edges=t.edges},execute(){},layout(t){const e=this;e.init(t),e.execute()},updateCfg(t){const e=this;r.mix(e,t)},destroy(){const t=this;t.positions=null,t.nodes=null,t.edges=null,t.destroyed=!0},getDefaultCfg(){}},e),i[t]=n}};t.exports=i},4796:function(t,e){var n=Math.ceil,r=Math.max;function i(t,e,i,a){var o=-1,s=r(n((e-t)/(i||1)),0),u=Array(s);while(s--)u[a?s:++o]=t,t+=i;return u}t.exports=i},"47f5":function(t,e,n){var r=n("2b03"),i=n("d9a8"),a=n("099a");function o(t,e,n){return e===e?a(t,e,n):r(t,i,n)}t.exports=o},4875:function(t,e,n){var r=n("c4bc"),i=n("3380"),a=n("7dec"),o=n("6560");t.exports={line:function(t,e,n,i,a,o,s){var u=r.box(t,e,n,i,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var c=r.pointDistance(t,e,n,i,o,s);return!isNaN(c)&&c<=a/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var a=0;a<i;a++){var o=t[a][0],s=t[a][1],u=t[a+1][0],c=t[a+1][1];if(this.line(o,s,u,c,e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,o,s,u,c,h,f){return a.pointDistance(t,e,n,r,i,o,s,u,h,f)<=c/2},quadraticline:function(t,e,n,r,a,o,s,u,c){return i.pointDistance(t,e,n,r,a,o,u,c)<=s/2},arcline:function(t,e,n,r,i,a,s,u,c){return o.pointDistance(t,e,n,r,i,a,u,c)<=s/2},rect:function(t,e,n,r,i,a){return t<=i&&i<=t+n&&e<=a&&a<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,a){return t<=i&&i<=e&&n<=a&&a<=r}}},4883:function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("1bb5"),o=n("9ed2");r.registerNode("circle",{options:{size:60,style:{x:0,y:0,stroke:o.defaultShapeStrokeColor,fill:o.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"},offset:0},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16}},shapeType:"circle",labelPosition:"center",drawShape(t,e){const n=this.getCustomConfig(t)||{},{icon:r}=this.options,{icon:a}=n,o=this.getShapeStyle(t),s=i({},r,a,t.icon),u=e.addShape("circle",{attrs:o}),{width:c,height:h,show:f}=s;if(f){const t=e.addShape("image",{attrs:{x:-c/2,y:-h/2,...s},className:"circle-icon"});t.set("capture",!1)}return this.drawLinkPoints(t,e),u},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{top:s,left:u,right:c,bottom:h,size:f,...l}=o,d=this.getSize(t),p=d[0]/2;u&&e.addShape("circle",{attrs:{...l,x:-p,y:0,r:f},className:"circle-mark-left",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:{...l,x:p,y:0,r:f},className:"circle-mark-right",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:{...l,x:0,y:-p,r:f},className:"circle-mark-top",isAnchorPoint:!0}),h&&e.addShape("circle",{attrs:{...l,x:0,y:p,r:f},className:"circle-mark-bottom",isAnchorPoint:!0})},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,o={stroke:t.color},s=i({},n,r,o,t.style),u=this.getSize(t),c=u[0]/2,h=a.mix({},{x:0,y:0,r:c},s);return h},update(t,e){const n=this.getCustomConfig(t)||{},{style:r,icon:a,labelCfg:o}=this.options,{style:s,icon:u,labelCfg:c}=n,h=i({},r,s,t.style),f=i({},a,u,t.icon),l=this.getSize(t),d=l[0]/2,p=e.getContainer(),g=e.get("keyShape");g.attr({...h,r:d});const v=i({},o,c,t.labelCfg),m=this.getLabelStyle(t,v,p),y=p.findByClassName("node-label");y&&y.attr({...m});const x=p.findByClassName("circle-icon"),{width:b,height:w}=f;x&&x.attr({x:-b/2,y:-w/2,...f}),this.updateLinkPoints(t,p)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{size:s,fill:u,stroke:c,lineWidth:h}=o,f=this.getSize(t),l=f[0]/2,d=e.findByClassName("circle-mark-left");d&&d.attr({x:-l,y:0,r:s,fill:u,stroke:c,lineWidth:h});const p=e.findByClassName("circle-mark-right");p&&p.attr({x:l,y:0,r:s,fill:u,stroke:c,lineWidth:h});const g=e.findByClassName("circle-mark-top");g&&g.attr({x:0,y:-l,r:s,fill:u,stroke:c,lineWidth:h});const v=e.findByClassName("circle-mark-bottom");v&&v.attr({x:0,y:l,r:s,fill:u,stroke:c,lineWidth:h})}},"single-shape")},"48a0":function(t,e,n){var r=n("242e"),i=n("950a"),a=i(r);t.exports=a},4980:function(t,e,n){var r=n("1c6a"),i=n("4875"),a=n("7dec"),o=n("3380"),s=n("4590"),u=r.vec3,c=r.mat3,h=["m","l","c","a","q","h","v","t","s","z"];function f(t,e,n){return{x:n.x+t,y:n.y+e}}function l(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function d(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function p(t,e){return(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e))}function g(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))}function v(t,e,n,i,a,o,s){var u=r.mod(r.toRadian(s),2*Math.PI),c=t.x,h=t.y,f=e.x,l=e.y,d=Math.cos(u)*(c-f)/2+Math.sin(u)*(h-l)/2,v=-1*Math.sin(u)*(c-f)/2+Math.cos(u)*(h-l)/2,m=d*d/(a*a)+v*v/(o*o);m>1&&(a*=Math.sqrt(m),o*=Math.sqrt(m));var y=a*a*(v*v)+o*o*(d*d),x=Math.sqrt((a*a*(o*o)-y)/y);n===i&&(x*=-1),isNaN(x)&&(x=0);var b=x*a*v/o,w=x*-o*d/a,_=(c+f)/2+Math.cos(u)*b-Math.sin(u)*w,M=(h+l)/2+Math.sin(u)*b+Math.cos(u)*w,S=g([1,0],[(d-b)/a,(v-w)/o]),k=[(d-b)/a,(v-w)/o],A=[(-1*d-b)/a,(-1*v-w)/o],P=g(k,A);return p(k,A)<=-1&&(P=Math.PI),p(k,A)>=1&&(P=0),0===i&&P>0&&(P-=2*Math.PI),1===i&&P<0&&(P+=2*Math.PI),[t,_,M,a,o,S,P,u,i]}var m=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};r.augment(m,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i,a,o,s,u=h.indexOf(n)>=0,c=u?n.toUpperCase():n,d=t,p=e.endPoint,g=d[1],m=d[2];switch(c){default:break;case"M":s=u?f(g,m,p):{x:g,y:m},this.command="M",this.params=[p,s],this.subStart=s,this.endPoint=s;break;case"L":s=u?f(g,m,p):{x:g,y:m},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"H":s=u?f(g,0,p):{x:g,y:p.y},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"V":s=u?f(0,g,p):{x:p.x,y:g},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"Q":u?(i=f(g,m,p),a=f(d[3],d[4],p)):(i={x:g,y:m},a={x:d[3],y:d[4]}),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"T":a=u?f(g,m,p):{x:g,y:m},"Q"===e.command?(i=l(e.params[1],p),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="TL",this.params=[p,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-p.x,a.y-p.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"C":u?(i=f(g,m,p),a=f(d[3],d[4],p),o=f(d[5],d[6],p)):(i={x:g,y:m},a={x:d[3],y:d[4]},o={x:d[5],y:d[6]}),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"S":u?(a=f(g,m,p),o=f(d[3],d[4],p)):(a={x:g,y:m},o={x:d[3],y:d[4]}),"C"===e.command?(i=l(e.params[2],p),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="SQ",this.params=[p,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"A":var y=g,x=m,b=d[3],w=d[4],_=d[5];s=u?f(d[6],d[7],p):{x:d[6],y:d[7]},this.command="A";var M=v(p,s,w,_,y,x,b);this.params=M;var S=e.subStart;this.subStart=S,this.endPoint=s;var k=M[5]%(2*Math.PI);r.isNumberEqual(k,2*Math.PI)&&(k=0);var A=M[6]%(2*Math.PI);r.isNumberEqual(A,2*Math.PI)&&(A=0);var P=.001;this.startTangent=function(){0===_&&(P*=-1);var t=M[3]*Math.cos(k-P)+M[1],e=M[4]*Math.sin(k-P)+M[2];return[t-S.x,e-S.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(k+t+P)+M[1],n=M[4]*Math.sin(k+t-P)+M[2];return[p.x-e,p.y-n]};break;case"Z":this.command="Z",this.params=[p,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this,a=r.command,o=r.params,s=r.box;if(s&&!i.box(s.minX,s.maxX,s.minY,s.maxY,t,e))return!1;switch(a){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(o[0].x,o[0].y,o[1].x,o[1].y,n,t,e);case"SQ":case"Q":return i.quadraticline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,n,t,e);case"C":return i.cubicline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y,n,t,e);case"A":var h=o,f=h[1],l=h[2],d=h[3],p=h[4],g=h[5],v=h[6],m=h[7],y=h[8],x=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;h=[t,e,1];var _=[1,0,0,0,1,0,0,0,1];return c.translate(_,_,[-f,-l]),c.rotate(_,_,-m),c.scale(_,_,[1/b,1/w]),u.transformMat3(h,h,_),i.arcline(0,0,x,g,g+v,1-y,n,h[0],h[1])}return!1},draw:function(t){var e,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],u=o[2],c=s,h=u,f=o[3],l=o[4],d=o[5],p=o[6],g=o[7],v=o[8],m=f>l?f:l,y=f>l?1:f/l,x=f>l?l/f:1;t.translate(c,h),t.rotate(g),t.scale(y,x),t.arc(0,0,m,d,d+p,1-v),t.scale(1/y,1/x),t.rotate(-g),t.translate(-c,-h);break;case"Z":t.closePath();break}},shortenDraw:function(t,e,n){var r,i,a,o=this.command,s=this.params;switch(o){default:break;case"M":t.moveTo(s[1].x-e,s[1].y-n);break;case"TL":case"L":t.lineTo(s[1].x-e,s[1].y-n);break;case"SQ":case"Q":r=s[1],i=s[2],t.quadraticCurveTo(r.x,r.y,i.x-e,i.y-n);break;case"C":r=s[1],i=s[2],a=s[3],t.bezierCurveTo(r.x,r.y,i.x,i.y,a.x-e,a.y-n);break;case"A":var u=s,c=u[1],h=u[2],f=c,l=h,d=u[3],p=u[4],g=u[5],v=u[6],m=u[7],y=u[8],x=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;t.translate(f,l),t.rotate(m),t.scale(b,w),t.arc(0,0,x,g,g+v,1-y),t.scale(1/b,1/w),t.rotate(-m),t.translate(-f,-l);break;case"Z":t.closePath();break}},getBBox:function(t){var e,n,r,i,u=t/2,c=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(c[0].x,c[1].x)-u,maxX:Math.max(c[0].x,c[1].x)+u,minY:Math.min(c[0].y,c[1].y)-u,maxY:Math.max(c[0].y,c[1].y)+u};break;case"SQ":case"Q":for(n=o.extrema(c[0].x,c[1].x,c[2].x),r=0,i=n.length;r<i;r++)n[r]=o.at(c[0].x,c[1].x,c[2].x,n[r]);for(n.push(c[0].x,c[2].x),e=o.extrema(c[0].y,c[1].y,c[2].y),r=0,i=e.length;r<i;r++)e[r]=o.at(c[0].y,c[1].y,c[2].y,e);e.push(c[0].y,c[2].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"C":for(n=a.extrema(c[0].x,c[1].x,c[2].x,c[3].x),r=0,i=n.length;r<i;r++)n[r]=a.at(c[0].x,c[1].x,c[2].x,c[3].x,n[r]);for(e=a.extrema(c[0].y,c[1].y,c[2].y,c[3].y),r=0,i=e.length;r<i;r++)e[r]=a.at(c[0].y,c[1].y,c[2].y,c[3].y,e[r]);n.push(c[0].x,c[3].x),e.push(c[0].y,c[3].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"A":var h=c,f=h[1],l=h[2],d=h[3],p=h[4],g=h[5],v=h[6],m=h[7],y=h[8],x=g,b=g+v,w=s.xExtrema(m,d,p),_=1/0,M=-1/0,S=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var k=w+r;1===y?x<k&&k<b&&S.push(k):b<k&&k<x&&S.push(k)}for(r=0,i=S.length;r<i;r++){var A=s.xAt(m,d,p,f,S[r]);A<_&&(_=A),A>M&&(M=A)}var P=s.yExtrema(m,d,p),C=1/0,E=-1/0,I=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var O=P+r;1===y?x<O&&O<b&&I.push(O):b<O&&O<x&&I.push(O)}for(r=0,i=I.length;r<i;r++){var T=s.yAt(m,d,p,l,I[r]);T<C&&(C=T),T>E&&(E=T)}this.box={minX:_-u,maxX:M+u,minY:C-u,maxY:E+u};break}}}),t.exports=m},"49f4":function(t,e,n){var r=n("6044");function i(){this.__data__=r?r(null):{},this.size=0}t.exports=i},"4a80":function(t,e,n){var r=n("5eec"),i="\t\n\v\f\r    \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(typeof t===typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(t,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else while(a.length>=e[s])if(n.push([r].concat(a.splice(0,e[s]))),!e[s])break})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},c=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o),c=e+n*Math.sin(-r*o),h=e+n*Math.sin(-i*o);a=[["M",s,c],["A",n,n,0,+(i-r>180),0,u,h]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},h=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,h=0,f=0;"M"===t[0][0]&&(i=+t[0][1],a=+t[0][2],o=i,h=a,f++,r[0]=["M",i,a]);for(var l,d,p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=f,v=t.length;g<v;g++){if(r.push(l=[]),d=t[g],e=d[0],e!==e.toUpperCase())switch(l[0]=e.toUpperCase(),l[0]){case"A":l[1]=d[1],l[2]=d[2],l[3]=d[3],l[4]=d[4],l[5]=d[5],l[6]=+d[6]+i,l[7]=+d[7]+a;break;case"V":l[1]=+d[1]+a;break;case"H":l[1]=+d[1]+i;break;case"R":n=[i,a].concat(d.slice(1));for(var m=2,y=n.length;m<y;m++)n[m]=+n[m]+i,n[++m]=+n[m]+a;r.pop(),r=r.concat(u(n,p));break;case"O":r.pop(),n=c(i,a,d[1],d[2]),n.push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(c(i,a,d[1],d[2],d[3])),l=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,h=+d[2]+a;break;default:for(var x=1,b=d.length;x<b;x++)l[x]=+d[x]+(x%2?i:a)}else if("R"===e)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(u(n,p)),l=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),n=c(i,a,d[1],d[2]),n.push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(c(i,a,d[1],d[2],d[3])),l=["U"].concat(r[r.length-1].slice(-2));else for(var w=0,_=d.length;w<_;w++)l[w]=d[w];if(e=e.toUpperCase(),"O"!==e)switch(l[0]){case"Z":i=+o,a=+h;break;case"H":i=l[1];break;case"V":a=l[1];break;case"M":o=l[l.length-2],h=l[l.length-1];break;default:i=l[l.length-2],a=l[l.length-1]}}return r},f=function(t,e,n,r){return[t,e,n,r,n,r]},l=function(t,e,n,r,i,a){var o=1/3,s=2/3;return[o*t+s*n,o*e+s*r,o*i+s*n,o*a+s*r,i,a]},d=function t(e,n,r,i,a,o,s,u,c,h){r===i&&(r+=1);var f,l,d,p,g,v=120*Math.PI/180,m=Math.PI/180*(+a||0),y=[],x=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}};if(h)l=h[0],d=h[1],p=h[2],g=h[3];else{f=x(e,n,-m),e=f.x,n=f.y,f=x(u,c,-m),u=f.x,c=f.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,w=(n-c)/2,_=b*b/(r*r)+w*w/(i*i);_>1&&(_=Math.sqrt(_),r*=_,i*=_);var M=r*r,S=i*i,k=(o===s?-1:1)*Math.sqrt(Math.abs((M*S-M*w*w-S*b*b)/(M*w*w+S*b*b)));p=k*r*w/i+(e+u)/2,g=k*-i*b/r+(n+c)/2,l=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((c-g)/i).toFixed(9)),l=e<p?Math.PI-l:l,d=u<p?Math.PI-d:d,l<0&&(l=2*Math.PI+l),d<0&&(d=2*Math.PI+d),s&&l>d&&(l-=2*Math.PI),!s&&d>l&&(d-=2*Math.PI)}var A=d-l;if(Math.abs(A)>v){var P=d,C=u,E=c;d=l+v*(s&&d>l?1:-1),u=p+r*Math.cos(d),c=g+i*Math.sin(d),y=t(u,c,r,i,a,0,s,C,E,[d,P,p,g])}A=d-l;var I=Math.cos(l),O=Math.sin(l),T=Math.cos(d),N=Math.sin(d),j=Math.tan(A/4),B=4/3*r*j,L=4/3*i*j,D=[e,n],R=[e+B*O,n-L*I],F=[u+B*N,c-L*T],Y=[u,c];if(R[0]=2*D[0]-R[0],R[1]=2*D[1]-R[1],h)return[R,F,Y].concat(y);y=[R,F,Y].concat(y).join().split(",");for(var q=[],z=0,X=y.length;z<X;z++)q[z]=z%2?x(y[z-1],y[z],m).y:x(y[z],y[z+1],m).x;return q},p=function(t,e){var n,r=h(t),i=e&&h(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],c="",p="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(d.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(l(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(l(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(f(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(f(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(f(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(f(e.x,e.y,e.X,e.Y));break;default:break}return t},v=function(t,e){if(t[e].length>7){t[e].shift();var a=t[e];while(a.length)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y<n;y++){r[y]&&(c=r[y][0]),"C"!==c&&(s[y]=c,y&&(p=s[y-1])),r[y]=g(r[y],a,p),"A"!==s[y]&&"C"===c&&(s[y]="C"),v(r,y),i&&(i[y]&&(c=i[y][0]),"C"!==c&&(u[y]=c,y&&(p=u[y-1])),i[y]=g(i[y],o,p),"A"!==u[y]&&"C"===c&&(u[y]="C"),v(i,y)),m(r,i,a,o,y),m(i,r,o,a,y);var x=r[y],b=i&&i[y],w=x.length,_=i&&b.length;a.x=x[w-2],a.y=x[w-1],a.bx=parseFloat(x[w-4])||a.x,a.by=parseFloat(x[w-3])||a.y,o.bx=i&&(parseFloat(b[_-4])||o.x),o.by=i&&(parseFloat(b[_-3])||o.y),o.x=i&&b[_-2],o.y=i&&b[_-1]}return i?[r,i]:r},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},m=function(t,e,n,r,i){var a=-3*e+9*n-9*r+3*i,o=t*a+6*e-12*n+6*r;return t*o-3*e+3*n},y=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1),u=u>1?1:u<0?0:u;for(var c=u/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<h;p++){var g=c*f[p]+c,v=m(g,t,n,i,o),y=m(g,e,r,a,s),x=v*v+y*y;d+=l[p]*Math.sqrt(x)}return c*d},x=function(t,e,n,r,i,a,o,s){for(var u,c,h,f,l=[],d=[[],[]],p=0;p<2;++p)if(0===p?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,h=3*n-3*t):(c=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,h=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;f=-h/c,f>0&&f<1&&l.push(f)}else{var g=c*c-4*h*u,v=Math.sqrt(g);if(!(g<0)){var m=(-c+v)/(2*u);m>0&&m<1&&l.push(m);var y=(-c-v)/(2*u);y>0&&y<1&&l.push(y)}}var x,b=l.length,w=b;while(b--)f=l[b],x=1-f,d[0][b]=x*x*x*t+3*x*x*f*n+3*x*f*f*i+f*f*f*o,d[1][b]=x*x*x*e+3*x*x*f*r+3*x*f*f*a+f*f*f*s;return d[0][w]=t,d[1][w]=e,d[0][w+1]=o,d[1][w+1]=s,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},b=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t*r-e*n)*(i-o)-(t-n)*(i*s-a*o),c=(t*r-e*n)*(a-s)-(e-r)*(i*s-a*o),h=(t-n)*(a-s)-(e-r)*(i-o);if(h){var f=u/h,l=c/h,d=+f.toFixed(2),p=+l.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,o).toFixed(2)||d>+Math.max(i,o).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:f,y:l}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},_=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a},M=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:_(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e){return t=M(t),e=M(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},k=function(t,e,n,i,a,o,s,u){r.isArray(t)||(t=[t,e,n,i,a,o,s,u]);var c=x.apply(null,t);return M(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},A=function(t,e,n,r,i,a,o,s,u){var c=1-u,h=Math.pow(c,3),f=Math.pow(c,2),l=u*u,d=l*u,p=h*t+3*f*u*n+3*c*u*u*i+d*o,g=h*e+3*f*u*r+3*c*u*u*a+d*s,v=t+2*u*(n-t)+l*(i-2*n+t),m=e+2*u*(r-e)+l*(a-2*r+e),y=n+2*u*(i-n)+l*(o-2*i+n),x=r+2*u*(a-r)+l*(s-2*a+r),b=c*t+u*n,w=c*e+u*r,_=c*i+u*o,M=c*a+u*s,S=90-180*Math.atan2(v-y,m-x)/Math.PI;return{x:p,y:g,m:{x:v,y:m},n:{x:y,y:x},start:{x:b,y:w},end:{x:_,y:M},alpha:S}},P=function(t,e,n){var r=k(t),i=k(e);if(!S(r,i))return n?0:[];for(var a=y.apply(0,t),o=y.apply(0,e),s=~~(a/8),u=~~(o/8),c=[],h=[],f={},l=n?0:[],d=0;d<s+1;d++){var p=A.apply(0,t.concat(d/s));c.push({x:p.x,y:p.y,t:d/s})}for(var g=0;g<u+1;g++){var v=A.apply(0,e.concat(g/u));h.push({x:v.x,y:v.y,t:g/u})}for(var m=0;m<s;m++)for(var x=0;x<u;x++){var w=c[m],_=c[m+1],M=h[x],P=h[x+1],C=Math.abs(_.x-w.x)<.001?"y":"x",E=Math.abs(P.x-M.x)<.001?"y":"x",I=b(w.x,w.y,_.x,_.y,M.x,M.y,P.x,P.y);if(I){if(f[I.x.toFixed(4)]===I.y.toFixed(4))continue;f[I.x.toFixed(4)]=I.y.toFixed(4);var O=w.t+Math.abs((I[C]-w[C])/(_[C]-w[C]))*(_.t-w.t),T=M.t+Math.abs((I[E]-M[E])/(P[E]-M[E]))*(P.t-M.t);O>=0&&O<=1&&T>=0&&T<=1&&(n?l++:l.push({x:I.x,y:I.y,t1:O,t2:T}))}}return l},C=function(t,e,n){var r,i,a,o,s,u,c,h,f,l;t=p(t),e=p(e);for(var d=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])r=s=m[1],i=u=m[2];else{"C"===m[0]?(f=[r,i].concat(m.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,s,u,s,u],r=s,i=u);for(var y=0,x=e.length;y<x;y++){var b=e[y];if("M"===b[0])a=c=b[1],o=h=b[2];else{"C"===b[0]?(l=[a,o].concat(b.slice(1)),a=l[6],o=l[7]):(l=[a,o,a,o,c,h,c,h],a=c,o=h);var w=P(f,l,n);if(n)d+=w;else{for(var _=0,M=w.length;_<M;_++)w[_].segment1=g,w[_].segment2=y,w[_].bez1=f,w[_].bez2=l;d=d.concat(w)}}}}}return d},E=function(t,e){return C(t,e)};function I(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&n.push(t[0]),o===t.length-2&&r.push(t[o+1]),a[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];i(a,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function O(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var u=o/(1-o*s),c=I(a,u);i.push(c.left),a=c.right}i.push(a);var h=i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return h}var T=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(O(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r},N=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(var s=0;s<r;s++){var u=Math.floor(i*s);a[u]=(a[u]||0)+1}var c=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(T(t[i],t[i+1],r))}),[]);return c.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||c.push("Z"),c},j=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r.each(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function B(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var L=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var c=0;c<=a;c++)s[0][c]={min:c};for(var h=1;h<=i;h++){n=t[h-1];for(var f=1;f<=a;f++){r=e[f-1],o=j(n,r)?0:1;var l=s[h-1][f].min+1,d=s[h][f-1].min+1,p=s[h-1][f-1].min+o;s[h][f]=B(l,d,p)}}return s},D=function(t,e){var n=L(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i]!==r){for(var u=1;u<=r;u++){var c=n[u][u].min;s=u;for(var h=o;h<=i;h++)n[u][h].min<c&&(c=n[u][h].min,s=h);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(var f=a.length-1;f>=0;f--)o=a[f].index,"add"===a[f].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}r=t.length;var l=i-r;if(r<i)for(var d=0;d<l;d++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function R(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=F(e)[0],s=1;s<=n;s++)a*=s,r=Math.floor(t.length*a),0===r?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function F(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var Y=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=F(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t};t.exports={parsePathString:s,parsePathArray:v,pathTocurve:p,pathToAbsolute:h,catmullRomToBezier:u,rectPath:_,fillPath:N,fillPathByDiff:D,formatPath:Y,intersection:E}},"4cfe":function(t,e){function n(t){return void 0===t}t.exports=n},"4d8c":function(t,e,n){var r=n("5c69");function i(t){var e=null==t?0:t.length;return e?r(t,1):[]}t.exports=i},"4edf":function(t,e,n){var r=n("d63e"),i=n("9719"),a=function(t,e){var n=[];if(!r(t))return n;var a=-1,o=[],s=t.length;while(++a<s){var u=t[a];e(u,a,t)&&(n.push(u),o.push(a))}return i(t,o),n};t.exports=a},"4ef2":function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this,e=t._attrs,n=e.points,i=this.getHitLineWidth();if(!n||0===n.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(n,(function(t){var e=t[0],n=t[1];e<a&&(a=e),e>s&&(s=e),n<o&&(o=n),n>u&&(u=n)}));var c=i/2;return{minX:a-c,minY:o-c,maxX:s+c,maxY:u+c}},createPath:function(t){var e=this,n=e._attrs,i=n.points;i.length<2||(t=t||e.get("context"),t.beginPath(),r.each(i,(function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])})),t.closePath())}}),t.exports=a},"4f17":function(t,e,n){var r=n("df2e");function i(t,e){return r(t,e,"post")}t.exports=i},"4f50":function(t,e,n){var r=n("b760"),i=n("e538"),a=n("c8fe"),o=n("4359"),s=n("fa21"),u=n("d370"),c=n("6747"),h=n("dcbe"),f=n("0d24"),l=n("9520"),d=n("1a8c"),p=n("60ed"),g=n("73ac"),v=n("8adb"),m=n("8de2");function y(t,e,n,y,x,b,w){var _=v(t,n),M=v(e,n),S=w.get(M);if(S)r(t,n,S);else{var k=b?b(_,M,n+"",t,e,w):void 0,A=void 0===k;if(A){var P=c(M),C=!P&&f(M),E=!P&&!C&&g(M);k=M,P||C||E?c(_)?k=_:h(_)?k=o(_):C?(A=!1,k=i(M,!0)):E?(A=!1,k=a(M,!0)):k=[]:p(M)||u(M)?(k=_,u(_)?k=m(_):d(_)&&!l(_)||(k=s(M))):A=!1}A&&(w.set(M,k),x(k,M,y,b,w),w["delete"](M)),r(t,n,k)}}t.exports=y},"4fef":function(t,e,n){const r=n("4651"),i=800;r.registerLayout("fruchterman",{getDefaultCfg(){return{maxIteration:1e3,center:[0,0],gravity:10,speed:1,clustering:!1,clusterGravity:10}},execute(){const t=this,e=t.nodes,n=t.center;if(0===e.length)return;if(1===e.length)return e[0].x=n[0],void(e[0].y=n[1]);const r=new Map,i=new Map;e.forEach((t,e)=>{r.set(t.id,t),i.set(t.id,e)}),t.nodeMap=r,t.nodeIndexMap=i,t.run()},run(){const t=this,e=t.nodes,n=t.edges,r=t.maxIteration;let a=t.width;a||"undefined"===typeof window||(a=window.innerWidth);let o=t.height;o||"undefined"===typeof o||(o=window.innerHeight);const s=t.center,u=t.nodeMap,c=t.nodeIndexMap,h=a/10,f=Math.sqrt(a*o/(e.length+1)),l=t.gravity,d=t.speed,p=t.clustering,g=new Map;p&&(e.forEach(t=>{if(void 0===g.get(t.cluster)){const e={name:t.cluster,cx:0,cy:0,count:0};g.set(t.cluster,e)}const e=g.get(t.cluster);e.cx+=t.x,e.cy+=t.y,e.count++}),g.forEach(t=>{t.cx/=t.count,t.cy/=t.count}));for(let v=0;v<r;v++){const r=[];if(e.forEach((t,e)=>{r[e]={x:0,y:0}}),t.getDisp(e,n,u,c,r,f),p){const n=t.clusterGravity||l;e.forEach((t,e)=>{const i=g.get(t.cluster),a=Math.sqrt((t.x-i.cx)*(t.x-i.cx)+(t.y-i.cy)*(t.y-i.cy)),o=f*n;r[e].x-=o*(t.x-i.cx)/a,r[e].y-=o*(t.y-i.cy)/a}),g.forEach(t=>{t.cx=0,t.cy=0,t.count=0}),e.forEach(t=>{const e=g.get(t.cluster);e.cx+=t.x,e.cy+=t.y,e.count++}),g.forEach(t=>{t.cx/=t.count,t.cy/=t.count})}e.forEach((t,e)=>{const n=.01*f*l;r[e].x-=n*(t.x-s[0]),r[e].y-=n*(t.y-s[1])}),e.forEach((t,e)=>{r[e].dx*=d/i,r[e].dy*=d/i}),e.forEach((t,e)=>{const n=Math.sqrt(r[e].x*r[e].x+r[e].y*r[e].y);if(n>0){const a=Math.min(h*(d/i),n);t.x+=r[e].x/n*a,t.y+=r[e].y/n*a}})}},getDisp(t,e,n,r,i,a){const o=this;o.calRepulsive(t,i,a),o.calAttractive(e,n,r,i,a)},calRepulsive(t,e,n){t.forEach((r,i)=>{e[i]={x:0,y:0},t.forEach((t,a)=>{if(i===a)return;const o=r.x-t.x,s=r.y-t.y;let u=o*o+s*s;0===u&&(u=1);const c=n*n/u;e[i].x+=o*c,e[i].y+=s*c})})},calAttractive(t,e,n,r,i){t.forEach(t=>{const a=n.get(t.source),o=n.get(t.target);if(a===o)return;const s=e.get(t.source),u=e.get(t.target),c=u.x-s.x,h=u.y-s.y,f=Math.sqrt(c*c+h*h),l=f*f/i;r[o].x-=c/f*l,r[o].y-=h/f*l,r[a].x+=c/f*l,r[a].y+=h/f*l})}})},"503e":function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}var r=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t};t.exports=r},"50ca":function(t,e,n){var r=n("8057"),i=n("7530"),a=n("242e"),o=n("badf"),s=n("2dcb"),u=n("6747"),c=n("0d24"),h=n("9520"),f=n("1a8c"),l=n("73ac");function d(t,e,n){var d=u(t),p=d||c(t)||l(t);if(e=o(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:f(t)&&h(g)?i(s(t)):{}}return(p?r:a)(t,(function(t,r,i){return e(n,t,r,i)})),n}t.exports=d},"50d8":function(t,e){function n(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}t.exports=n},51207:function(t,e){var n=function(t,e,n){return t<e?e:t>n?n:t};t.exports=n},5134:function(t,e,n){var r=n("78af"),i=n("4980"),a=Math.PI,o=Math.sin,s=Math.cos,u=Math.atan2,c=10,h=a/3;function f(t,e,n,r,i,f,l){var d,p,g,v,m,y,x;if(!e.fill){var b=e.arrowLength||c,w=e.arrowAngle?e.arrowAngle*a/180:h;x=u(r-f,n-i),m=Math.abs(e.lineWidth*s(x))/2,y=Math.abs(e.lineWidth*o(x))/2,l&&(m=-m,y=-y),d=i+b*s(x+w/2),p=f+b*o(x+w/2),g=i+b*s(x-w/2),v=f+b*o(x-w/2),t.beginPath(),t.moveTo(d-m,p-y),t.lineTo(i-m,f-y),t.lineTo(g-m,v-y),t.moveTo(i-m,f-y),t.lineTo(i+m,f+y),t.moveTo(i,f),t.stroke()}}function l(t){var e,n=[],a=r.parsePath(t.path);if(!Array.isArray(a)||0===a.length||"M"!==a[0][0]&&"m"!==a[0][0])return!1;for(var o=a.length,s=0;s<a.length;s++){var u=a[s];e=new i(u,e,s===o-1),n.push(e)}return n}function d(t,e,n,r,i){var a=Math.atan2(r-e,n-t);return{dx:s(a)*i,dy:o(a)*i}}function p(t,e,n,r,i,a,u){var c=u?e.startArrow:e.endArrow,h=c.d,f=i-n,d=a-r,p=Math.atan2(d,f),g=l(c);if(g){h&&(i-=s(p)*h,a-=o(p)*h),t.save(),t.beginPath(),t.translate(i,a),t.rotate(p);for(var v=0;v<g.length;v++)g[v].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}t.exports={addStartArrow:function(t,e,n,r,i,a){"object"===typeof e.startArrow?p(t,e,n,r,i,a,!0):e.startArrow&&f(t,e,n,r,i,a,!0)},addEndArrow:function(t,e,n,r,i,a){"object"===typeof e.endArrow?p(t,e,n,r,i,a,!1):e.endArrow&&f(t,e,n,r,i,a,!1)},getShortenOffset:d}},"51ad":function(t,e,n){var r=n("5eec"),i=Array.prototype.slice;function a(t,e){var n=t.length;while(n--)if(t[n].callback===e)return n;return-1}var o=function(){};r.augment(o,{on:function(t,e,n){var i=this;if(!r.isFunction(e))throw new TypeError("listener should be a function");return i._cfg._events||(i._cfg._events={}),i._cfg._events[t]||(i._cfg._events[t]=[]),i._cfg._events[t].push({callback:e,one:n}),this},one:function(t,e){return this.on(t,e,!0),this},emit:function(t){if(!this.get("destroyed")&&this._cfg._events&&!r.isEmpty(this._cfg._events)){var e=this._cfg._events[t];if(!r.isEmpty(e))for(var n=arguments,a=i.call(n,1),o=e.length,s=0;s<o;)e[s]&&(e[s].callback.apply(this,a),e[s]&&e[s].one?(e.splice(s,1),o--):s++)}},trigger:function(){this.emit.apply(this,arguments)},off:function(t,e){var n=this._cfg._events;if(n&&!r.isEmpty(n)){if(0===arguments.length)return this._cfg._events={},this;if(n[t]){var i=a(n[t],e);i>=0&&n[t].splice(i,1),0===n[t].length&&delete n[t]}}},removeEvent:function(t){return"undefined"===typeof t?this._cfg._events={}:delete this._cfg._events[t],this},_getEvents:function(){return this._cfg._events||{}}}),t.exports=o},"51f5":function(t,e,n){var r=n("2b03"),i=n("badf"),a=n("4b17"),o=Math.max;function s(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:a(n);return u<0&&(u=o(s+u,0)),r(t,i(e,3),u)}t.exports=s},5378:function(t,e){const n=800;class r{constructor(t){this.positions=t.positions,this.adjMatrix=t.adjMatrix,this.focusID=t.focusID,this.radii=t.radii,this.iterations=t.iterations||10,this.height=t.height||10,this.width=t.width||10,this.speed=t.speed||100,this.gravity=t.gravity||10,this.nodeSizeFunc=t.nodeSizeFunc,this.k=t.k||5,this.strictRadial=t.strictRadial,this.nodes=t.nodes}layout(){const t=this,e=t.positions,n=[],r=t.iterations,i=t.width/10;t.maxDisplace=i,t.disp=n;for(let a=0;a<r;a++)e.forEach((t,e)=>{n[e]={x:0,y:0}}),t.getRepulsion(),t.updatePositions();return e}getRepulsion(){const t=this,e=t.positions,n=t.nodes,r=t.disp,i=t.k,a=t.radii;e.forEach((o,s)=>{r[s]={x:0,y:0},e.forEach((e,u)=>{if(s===u)return;if(a[s]!==a[u])return;const c=o[0]-e[0],h=o[1]-e[1];let f=Math.sqrt(c*c+h*h);if(0===f&&(f=1),f<t.nodeSizeFunc(n[s])/2+t.nodeSizeFunc(n[u])/2){const t=i*i/f;r[s].x+=c/f*t,r[s].y+=h/f*t}})})}updatePositions(){const t=this,e=t.positions,r=t.disp,i=t.speed,a=t.strictRadial,o=t.focusID;a&&r.forEach((t,n)=>{const r=e[n][0]-e[o][0],i=e[n][1]-e[o][1],a=Math.sqrt(r*r+i*i);let s=i/a,u=-r/a;const c=Math.sqrt(t.x*t.x+t.y*t.y);let h=Math.acos((s*t.x+u*t.y)/c);h>Math.PI/2&&(h-=Math.PI/2,s*=-1,u*=-1);const f=Math.cos(h)*c;t.x=s*f,t.y=u*f}),e.forEach((t,e)=>{r[e].dx*=i/n,r[e].dy*=i/n});const s=t.radii;e.forEach((u,c)=>{if(c===o)return;const h=Math.sqrt(r[c].x*r[c].x+r[c].y*r[c].y);if(h>0&&c!==o){const f=Math.min(t.maxDisplace*(i/n),h);if(u[0]+=r[c].x/h*f,u[1]+=r[c].y/h*f,a){let t=u[0]-e[o][0],n=u[1]-e[o][1];const r=Math.sqrt(t*t+n*n);t=t/r*s[c],n=n/r*s[c],u[0]=e[o][0]+t,u[1]=e[o][1]+n}}})}}t.exports=r},5492:function(t,e,n){var r=n("32b3"),i=n("d70d");function a(t,e){return i(t||[],e||[],r)}t.exports=a},"54eb":function(t,e,n){var r=n("8eeb"),i=n("32f4");function a(t,e){return r(t,i(t),e)}t.exports=a},"55a3":function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},"576cf":function(t,e,n){const r=n("1bb5"),i=n("8d21"),a={source:"start",target:"end"},o="Node",s="Point",u="Anchor";class c extends i{getDefaultCfg(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}}init(){super.init(),this.setSource(this.get("source")),this.setTarget(this.get("target"))}setSource(t){this._setEnd("source",t),this.set("source",t)}setTarget(t){this._setEnd("target",t),this.set("target",t)}getSource(){return this.get("source")}getTarget(){return this.get("target")}update(t){const e=this.get("model");r.mix(e,t),this.updateShape(),this.afterUpdate(),this.clearCache()}updatePosition(){}_setEnd(t,e){const n=a[t]+s,i=t+o,u=this.get(i);u&&u.removeEdge(this),r.isPlainObject(e)?(this.set(n,e),this.set(i,null)):(e.addEdge(this),this.set(i,e),this.set(n,null))}_getLinkPoint(t,e,n){const i=a[t]+s,c=t+o;let h=this.get(i);if(!h){const i=this.get(c),a=t+u,o=this._getPrePoint(t,n),s=e[a];r.isNil(s)||(h=i.getLinkPointByAnchor(s)),h=h||i.getLinkPoint(o),r.isNil(h.index)||this.set(t+"AnchorIndex",h.index)}return h}_getPrePoint(t,e){if(e&&e.length){const n="source"===t?0:e.length-1;return e[n]}const n="source"===t?"target":"source";return this._getEndPoint(n)}_getControlPointsByCenter(t){const e=this._getEndPoint("source"),n=this._getEndPoint("target"),r=this.get("shapeFactory");return r.getControlPoints(t.shape,{startPoint:e,endPoint:n})}_getEndPoint(t){const e=t+o,n=a[t]+s,r=this.get(e);return r?r.get("model"):this.get(n)}_getEndCenter(t){const e=t+o,n=a[t]+s,r=this.get(e);if(r){const t=r.getBBox();return{x:t.centerX,y:t.centerY}}return this.get(n)}getShapeCfg(t){const e=this,n=e.get("linkCenter"),r=super.getShapeCfg(t);if(n)r.startPoint=e._getEndCenter("source"),r.endPoint=e._getEndCenter("target");else{const n=r.controlPoints||e._getControlPointsByCenter(r);r.startPoint=e._getLinkPoint("source",t,n),r.endPoint=e._getLinkPoint("target",t,n)}return r.sourceNode=e.get("sourceNode"),r.targetNode=e.get("targetNode"),r}getModel(){const t=this.get("model"),e=r.mix({},t),n=this.get("source"+o),i=this.get("target"+o);return n?(e.source=n.get("id"),delete e["source"+o]):e.source=this.get("start"+s),i?(e.target=i.get("id"),delete e["target"+o]):e.target=this.get("end"+s),e}destroy(){const t=this.get("source"+o),e=this.get("target"+o);t&&!t.destroyed&&t.removeEdge(this),e&&!e.destroyed&&e.removeEdge(this),super.destroy()}}t.exports=c},"57a5":function(t,e,n){var r=n("91e9"),i=r(Object.keys,Object);t.exports=i},"57dc":function(t,e){function n(t,e){return t>e}t.exports=n},5830:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=o,e.clone=s,e.fromValues=u,e.copy=c,e.set=h,e.add=f,e.subtract=l,e.multiply=d,e.divide=p,e.ceil=g,e.floor=v,e.min=m,e.max=y,e.round=x,e.scale=b,e.scaleAndAdd=w,e.distance=_,e.squaredDistance=M,e.length=S,e.squaredLength=k,e.negate=A,e.inverse=P,e.normalize=C,e.dot=E,e.cross=I,e.lerp=O,e.random=T,e.transformMat2=N,e.transformMat2d=j,e.transformMat3=B,e.transformMat4=L,e.rotate=D,e.angle=R,e.str=F,e.exactEquals=Y,e.equals=q;var r=n("8d60"),i=a(r);function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function s(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function u(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function c(t,e){return t[0]=e[0],t[1]=e[1],t}function h(t,e,n){return t[0]=e,t[1]=n,t}function f(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function g(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function v(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function x(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function w(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function S(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function k(t){var e=t[0],n=t[1];return e*e+n*n}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function C(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t}function E(t,e){return t[0]*e[0]+t[1]*e[1]}function I(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function O(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t}function T(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function N(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function j(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function B(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function D(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t}function R(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function Y(t,e){return t[0]===e[0]&&t[1]===e[1]}function q(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))}e.len=S,e.sub=l,e.mul=d,e.div=p,e.dist=_,e.sqrDist=M,e.sqrLen=k,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],a(t,t,o),e[s]=t[0],e[s+1]=t[1];return e}}()},5869:function(t,e,n){var r=n("1c6a"),i=n("78ea"),a=n("28fb"),o={},s="_INDEX",u=["zIndex","capture","visible"];function c(t){return function(e,n){var r=t(e,n);return 0===r?e[s]-n[s]:r}}function h(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}function f(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e}var l=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};function d(t){if(!t._cfg&&t!==l){var e=t.superclass.constructor;e&&!e._cfg&&d(e),t._cfg={},r.merge(t._cfg,e._cfg),r.merge(t._cfg,t.CFG)}}r.extend(l,i),r.augment(l,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return d(this.constructor),r.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var i=o[t];if(i||(i=r.upperFirst(t),o[t]=i),e.attrs&&n){var s=e.attrs;if("text"===t){var u=n.get("fontFamily");u&&(s.fontFamily=s.fontFamily?s.fontFamily:u)}}e.canvas=n,e.type=t;var c=new a[i](e);return this.add(c),c},addGroup:function(t,e){var n,i=this.get("canvas");if(e=r.merge({},e),r.isFunction(t))e?(e.canvas=i,e.parent=this,n=new t(e)):n=new t({canvas:i,parent:this}),this.add(n);else if(r.isObject(t))t.canvas=i,n=new l(t),this.add(n);else{if(void 0!==t)return!1;n=new l,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),i=this.getBBox();return r.merge(e,{x:i.minX-t[3],y:i.minY-t[0],width:i.width+t[1]+t[3],height:i.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!r.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(r.isArray(t))r.each(t,(function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)})),e._cfg.children=n.concat(t);else{var i=t,a=i.get("parent");a&&a.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){var e=this.get("children");return e.indexOf(t)>-1},getChildByIndex:function(t){var e=this.get("children");return e[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=this,e=1/0,n=-1/0,i=1/0,a=-1/0,o=t.get("children");o.length>0?r.each(o,(function(t){if(t.get("visible")){if(t.isGroup&&0===t.get("children").length)return;var r=t.getBBox();if(!r)return!0;var o=[r.minX,r.minY,1],s=[r.minX,r.maxY,1],u=[r.maxX,r.minY,1],c=[r.maxX,r.maxY,1];t.apply(o),t.apply(s),t.apply(u),t.apply(c);var h=Math.min(o[0],s[0],u[0],c[0]),f=Math.max(o[0],s[0],u[0],c[0]),l=Math.min(o[1],s[1],u[1],c[1]),d=Math.max(o[1],s[1],u[1],c[1]);h<e&&(e=h),f>n&&(n=f),l<i&&(i=l),d>a&&(a=d)}})):(e=0,n=0,i=0,a=0);var s={minX:e,minY:i,maxX:n,maxY:a};return s.x=s.minX,s.y=s.minY,s.width=s.maxX-s.minX,s.height=s.maxY-s.minY,s},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return r.each(t,(function(t,e){return t[s]=e,t})),t.sort(c((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this},findById:function(t){return this.find((function(e){return e.get("id")===t}))},find:function(t){if(r.isString(t))return this.findById(t);var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1})),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},findBy:function(t){var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1})),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},getShape:function(t,e){var n,r=this,i=r._attrs.clip,a=r._cfg.children;if(i){var o=[t,e,1];i.invert(o,r.get("canvas")),i.isPointInPath(o[0],o[1])&&(n=h(a,t,e))}else n=h(a,t,e);return n},clearTotalMatrix:function(){var t=this.get("totalMatrix");if(t){this.setSilent("totalMatrix",null);for(var e=this._cfg.children,n=0;n<e.length;n++){var r=e[n];r.clearTotalMatrix()}}},clear:function(t){if(!this.get("destroyed")){for(var e=this._cfg.children,n=e.length-1;n>=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this}},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))},clone:function(){var t=this,e=t._cfg.children,n=t._attrs,i={};r.each(n,(function(t,e){i[e]="matrix"===e?f(n[e]):n[e]}));var a=new l({attrs:i,canvas:t.get("canvas")});return r.each(e,(function(t){a.add(t.clone())})),r.each(u,(function(e){a._cfg[e]=t._cfg[e]})),a}}),t.exports=l},"58f7":function(t,e){function n(t,e,n,r,i){return i(t,(function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)})),n}t.exports=n},"594f":function(t,e,n){const r=n("1bb5"),i=Math.abs,a=10,o=document.body,s=[16,17,18];t.exports={getDefaultCfg(){return{direction:"both"}},getEvents(){return{"canvas:mousedown":"onMouseDown","canvas:mousemove":"onMouseMove","canvas:mouseup":"onMouseUp","canvas:click":"onMouseUp","canvas:mouseleave":"onOutOfRange",keyup:"onKeyUp",keydown:"onKeyDown"}},updateViewport(t){const e=this.origin,n=+t.clientX,r=+t.clientY;if(isNaN(n)||isNaN(r))return;let i=n-e.x,a=r-e.y;"x"===this.get("direction")?a=0:"y"===this.get("direction")&&(i=0),this.origin={x:n,y:r},this.graph.translate(i,a),this.graph.paint()},onMouseDown(t){this.keydown||(this.origin={x:t.clientX,y:t.clientY},this.dragging=!1)},onMouseMove(t){if(this.keydown)return;t=r.cloneEvent(t);const e=this.graph;if(this.origin){if(this.origin&&!this.dragging){if(i(this.origin.x-t.clientX)+i(this.origin.y-t.clientY)<a)return;this.shouldBegin.call(this,t)&&(t.type="dragstart",e.emit("canvas:dragstart",t),this.dragging=!0)}this.dragging&&(t.type="drag",e.emit("canvas:drag",t)),this.shouldUpdate.call(this,t)&&this.updateViewport(t)}},onMouseUp(t){if(this.keydown)return;if(!this.dragging)return void(this.origin=null);t=r.cloneEvent(t);const e=this.graph;this.shouldEnd.call(this,t)&&this.updateViewport(t),t.type="dragend",e.emit("canvas:dragend",t),this.endDrag()},endDrag(){if(this.dragging){this.origin=null,this.dragging=!1;const t=this.fn;t&&(o.removeEventListener("mouseup",t,!1),this.fn=null)}},onOutOfRange(t){if(this.dragging){const e=this,n=e.graph.get("canvas").get("el"),r=r=>{r.target!==n&&e.onMouseUp(t)};this.fn=r,o.addEventListener("mouseup",r,!1)}},onKeyDown(t){const e=t.keyCode||t.which;s.indexOf(e)>-1?this.keydown=!0:this.keydown=!1},onKeyUp(){this.keydown=!1}}},"59ca":function(t,e,n){const r=n("1bb5"),i=n("9ceb");t.exports=r.mix({getDefaultCfg(){return{item:"node",formatText(t){return t.label}}},getEvents(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove"}}},i)},"5a21":function(t,e,n){var r=n("1c6a"),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");e.appendChild(n);var a=r.uniqueId("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var o=i.exec(t),s=o[2];n.setAttribute("href",s);var u=new Image;function c(){e.setAttribute("width",u.width),e.setAttribute("height",u.height)}return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?c():(u.onload=c,u.src=u.src),this}var e=t.prototype;return e.match=function(t,e){return this.cfg===e},t}();t.exports=a},"5a3a":function(t,e,n){var r=n("1cba"),i=r();t.exports=i},"5b01":function(t,e,n){var r=n("8eeb"),i=n("ec69");function a(t,e){return t&&r(e,i(e),t)}t.exports=a},"5b70":function(t,e,n){const r=n("e34f"),i=n("4651"),a=n("3a21");i.registerLayout("dagre",{getDefaultCfg(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc(){return 50},ranksepFunc(){return 50},nodesep:50,ranksep:50,controlPoints:!0}},execute(){const t=this,e=t.nodes,n=t.edges,i=new r.graphlib.Graph,o=t.nodeSize;let s;s=o?a(o)?()=>o:()=>[o,o]:t=>t.size?a(t.size)?t.size:[t.size,t.size]:[40,40];let u=t.nodesep;t.nodesepFunc&&(u=t.nodesepFunc);let c=t.ranksep;t.ranksepFunc&&(c=t.ranksepFunc);const h=t.rankdir;let f;"LR"!==h&&"RL"!==h||(u=t.ranksep,t.ranksepFunc&&(u=t.ranksepFunc),c=t.nodesep,t.nodesepFunc&&(c=t.nodesepFunc)),i.setDefaultEdgeLabel((function(){return{}})),i.setGraph(t),e.forEach(t=>{const e=s(t),n=u(t),r=c(t),a=e[0]+2*n,o=e[1]+2*r;i.setNode(t.id,{width:a,height:o})}),n.forEach(t=>{i.setEdge(t.source,t.target)}),r.layout(i),i.nodes().forEach((t,n)=>{f=i.node(t),e[n].x=f.x,e[n].y=f.y}),i.edges().forEach((e,r)=>{f=i.edge(e),n[r].startPoint=f.points[0],n[r].endPoint=f.points[f.points.length-1],t.controlPoints&&(n[r].controlPoints=f.points.slice(1,f.points.length-1))})}})},"5c69":function(t,e,n){var r=n("087d"),i=n("0621");function a(t,e,n,o,s){var u=-1,c=t.length;n||(n=i),s||(s=[]);while(++u<c){var h=t[u];e>0&&n(h)?e>1?a(h,e-1,n,o,s):r(s,h):o||(s[s.length]=h)}return s}t.exports=a},"5ca00":function(t,e,n){var r=n("badf"),i=n("30c9"),a=n("ec69");function o(t){return function(e,n,o){var s=Object(e);if(!i(e)){var u=r(n,3);e=a(e),n=function(t){return u(s[t],t,s)}}var c=t(e,n,o);return c>-1?s[u?e[c]:c]:void 0}}t.exports=o},"5cce":function(t,e,n){t.exports={painter:n("fdbc")}},"5d89":function(t,e,n){var r=n("f8af");function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}t.exports=i},"5d9e":function(t,e,n){var r=n("00d0"),i=function(t){return r(t,"Number")};t.exports=i},"5e2e":function(t,e,n){var r=n("28c9"),i=n("69d5"),a=n("b4c0"),o=n("fba5"),s=n("67ca");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,t.exports=u},"5e5e":function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,r){var i=r.target||r.srcElement;if(!n[i.tagName]){var a=i.parentNode;while(a&&!n[a.tagName])a=a.parentNode;i=a}return this._cfg.el===i?this:this.find((function(t){return t._cfg&&t._cfg.el===i}))}},"5ece":function(t,e){var n=Object.prototype,r=function(t){var e=t&&t.constructor,r="function"===typeof e&&e.prototype||n;return t===r};t.exports=r},"5edf":function(t,e){function n(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}t.exports=n},"5eec":function(t,e,n){t.exports={isFunction:n("06bb"),isObject:n("d285"),isBoolean:n("c15b"),isNil:n("e6d6"),isString:n("3421"),isArray:n("3a21"),isNumber:n("5d9e"),isEmpty:n("e0bf"),uniqueId:n("339d"),clone:n("e0ef"),deepMix:n("1b95"),assign:n("503e"),merge:n("1b95"),upperFirst:n("dd6d"),each:n("72fb"),isEqual:n("91de"),toArray:n("61e7"),extend:n("26bf"),augment:n("8d88"),remove:n("02d0"),isNumberEqual:n("c4be"),toRadian:n("90ea1"),toDegree:n("bda5"),mod:n("932d"),clamp:n("51207"),createDom:n("158c"),modifyCSS:n("758e"),requestAnimationFrame:n("82bd"),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n("6dcf"),vec2:n("830e"),vec3:n("f98b"),transform:n("3b54")}},6023:function(t,e){function n(t,e,n){var r=void 0;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}t.exports=n},6044:function(t,e,n){var r=n("0b07"),i=r(Object,"create");t.exports=i},"60ed":function(t,e,n){var r=n("3729"),i=n("2dcb"),a=n("1310"),o="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,h=u.hasOwnProperty,f=c.call(Object);function l(t){if(!a(t)||r(t)!=o)return!1;var e=i(t);if(null===e)return!0;var n=h.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}t.exports=l},"61e7":function(t,e,n){var r=n("d63e");function i(t){return r(t)?Array.prototype.slice.call(t):[]}t.exports=i},"61e9":function(t,e,n){var r=n("33de"),i=n("9671"),a=n("01eb");function o(t,e){var n,o=new i,s={},u=new a;function c(t){var r=t.v===n?t.w:t.v,i=u.priority(r);if(void 0!==i){var a=e(t);a<i&&(s[r]=n,u.decrease(r,a))}}if(0===t.nodeCount())return o;r.each(t.nodes(),(function(t){u.add(t,Number.POSITIVE_INFINITY),o.setNode(t)})),u.decrease(t.nodes()[0],0);var h=!1;while(u.size()>0){if(n=u.removeMin(),r.has(s,n))o.setEdge(n,s[n]);else{if(h)throw new Error("Input graph is not connected: "+t);h=!0}t.nodeEdges(n).forEach(c)}return o}t.exports=o},"642a":function(t,e,n){var r=n("966f"),i=n("3bb4"),a=n("20ec");function o(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}t.exports=o},6560:function(t,e,n){var r=n("1c6a");function i(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function a(t,e,n,r){var i,a;return r?t<e?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function o(t,e,n,i){var o=0;return n-e>=2*Math.PI&&(o=2*Math.PI),e=r.mod(e,2*Math.PI),n=r.mod(n,2*Math.PI)+o,t=r.mod(t,2*Math.PI),i?e>=n?t>n&&t<e?t:a(t,n,e,!0):t<e||t>n?t:a(t,e,n):e<=n?e<t&&t<n?t:a(t,e,n,!0):t>e||t<n?t:a(t,n,e)}function s(t,e,n,i,a,s,u,c,h){var f=[u,c],l=[t,e],d=[1,0],p=r.vec2.subtract([],f,l),g=r.vec2.angleTo(d,p);g=o(g,i,a,s);var v=[n*Math.cos(g)+t,n*Math.sin(g)+e];h&&(h.x=v[0],h.y=v[1]);var m=r.vec2.distance(v,f);return m}function u(t,e,n,a,s,u){var c=0,h=Math.PI/2,f=Math.PI,l=3*Math.PI/2,d=[],p=o(c,a,s,u);p===c&&d.push(i(t,e,n,c)),p=o(h,a,s,u),p===h&&d.push(i(t,e,n,h)),p=o(f,a,s,u),p===f&&d.push(i(t,e,n,f)),p=o(l,a,s,u),p===l&&d.push(i(t,e,n,l)),d.push(i(t,e,n,a)),d.push(i(t,e,n,s));var g=1/0,v=-1/0,m=1/0,y=-1/0;return r.each(d,(function(t){g>t.x&&(g=t.x),v<t.x&&(v=t.x),m>t.y&&(m=t.y),y<t.y&&(y=t.y)})),{minX:g,minY:m,maxX:v,maxY:y}}t.exports={nearAngle:o,projectPoint:function(t,e,n,r,i,a,o,u){var c={};return s(t,e,n,r,i,a,o,u,c),c},pointDistance:s,box:u}},"656b":function(t,e,n){var r=n("e2e4"),i=n("f4d6");function a(t,e){e=r(e,t);var n=0,a=e.length;while(null!=t&&n<a)t=t[i(e[n++])];return n&&n==a?t:void 0}t.exports=a},6736:function(t,e,n){var r=n("33de");t.exports=a;var i=r.constant(1);function a(t,e,n){return o(t,e||i,n||function(e){return t.outEdges(e)})}function o(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,a=e(n);r[t][i]={distance:a,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[t],i=e[n],o=a[n],s=r.distance+i.distance;s<o.distance&&(o.distance=s,o.predecessor=i.predecessor)}))}))})),r}},6747:function(t,e){var n=Array.isArray;t.exports=n},6751:function(t,e,n){var r=n("c9ca"),i=n("aaec"),a=n("ab81");function o(t){return i(t)?a(t):r(t)}t.exports=o},"67ca":function(t,e,n){var r=n("cb5a");function i(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}t.exports=i},"69d5":function(t,e,n){var r=n("cb5a"),i=Array.prototype,a=i.splice;function o(t){var e=this.__data__,n=r(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():a.call(e,n,1),--this.size,!0}t.exports=o},"6a5c":function(t,e,n){var r=n("7948"),i=n("badf"),a=n("97d3"),o=n("d4b2"),s=n("b047"),u=n("2164"),c=n("cd9d");function h(t,e,n){var h=-1;e=r(e.length?e:[c],s(i));var f=a(t,(function(t,n,i){var a=r(e,(function(e){return e(t)}));return{criteria:a,index:++h,value:t}}));return o(f,(function(t,e){return u(t,e,n)}))}t.exports=h},"6ac0":function(t,e){function n(t,e,n,r){var i=-1,a=null==t?0:t.length;r&&a&&(n=t[++i]);while(++i<a)n=e(n,t[i],i,t);return n}t.exports=n},"6ad1":function(t,e,n){var r=n("1c6a"),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(t){var e=t.match(o);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),r.each(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function u(t,e){var n,a,o=i.exec(t),u=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),c=o[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=u&&u<Math.PI?(n={x:1,y:0},a={x:0,y:1}):Math.PI<=u&&u<1.5*Math.PI?(n={x:1,y:1},a={x:0,y:0}):(n={x:0,y:1},a={x:1,y:0});var h=Math.tan(u),f=h*h,l=(a.x-n.x+h*(a.y-n.y))/(f+1)+n.x,d=h*(a.x-n.x+h*(a.y-n.y))/(f+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",l),e.setAttribute("y2",d),e.innerHTML=s(c)}function c(t,e){var n=a.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),u=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=s(u)}var h=function(){function t(t){var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?(e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),u(t,e)):(e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),c(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}var e=t.prototype;return e.match=function(t,e){return this.cfg===e},t}();t.exports=h},"6c7b":function(t,e,n){var r=n("5ca1");r(r.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"6c7f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=o,e.fromMat4=s,e.clone=u,e.copy=c,e.fromValues=h,e.set=f,e.identity=l,e.transpose=d,e.invert=p,e.adjoint=g,e.determinant=v,e.multiply=m,e.translate=y,e.rotate=x,e.scale=b,e.fromTranslation=w,e.fromRotation=_,e.fromScaling=M,e.fromMat2d=S,e.fromQuat=k,e.normalFromMat4=A,e.projection=P,e.str=C,e.frob=E,e.add=I,e.subtract=O,e.multiplyScalar=T,e.multiplyScalarAndAdd=N,e.exactEquals=j,e.equals=B;var r=n("8d60"),i=a(r);function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(){var t=new i.ARRAY_TYPE(9);return i.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function u(t){var e=new i.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function h(t,e,n,r,a,o,s,u,c){var h=new i.ARRAY_TYPE(9);return h[0]=t,h[1]=e,h[2]=n,h[3]=r,h[4]=a,h[5]=o,h[6]=s,h[7]=u,h[8]=c,h}function f(t,e,n,r,i,a,o,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=c,t}function l(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function d(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function p(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],h=e[8],f=h*o-s*c,l=-h*a+s*u,d=c*a-o*u,p=n*f+r*l+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-h*r+i*c)*p,t[2]=(s*r-i*o)*p,t[3]=l*p,t[4]=(h*n-i*u)*p,t[5]=(-s*n+i*a)*p,t[6]=d*p,t[7]=(-c*n+r*u)*p,t[8]=(o*n-r*a)*p,t):null}function g(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],h=e[8];return t[0]=o*h-s*c,t[1]=i*c-r*h,t[2]=r*s-i*o,t[3]=s*u-a*h,t[4]=n*h-i*u,t[5]=i*a-n*s,t[6]=a*c-o*u,t[7]=r*u-n*c,t[8]=n*o-r*a,t}function v(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],c=t[8];return e*(c*a-o*u)+n*(-c*i+o*s)+r*(u*i-a*s)}function m(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],h=e[7],f=e[8],l=n[0],d=n[1],p=n[2],g=n[3],v=n[4],m=n[5],y=n[6],x=n[7],b=n[8];return t[0]=l*r+d*o+p*c,t[1]=l*i+d*s+p*h,t[2]=l*a+d*u+p*f,t[3]=g*r+v*o+m*c,t[4]=g*i+v*s+m*h,t[5]=g*a+v*u+m*f,t[6]=y*r+x*o+b*c,t[7]=y*i+x*s+b*h,t[8]=y*a+x*u+b*f,t}function y(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],h=e[7],f=e[8],l=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=l*r+d*o+c,t[7]=l*i+d*s+h,t[8]=l*a+d*u+f,t}function x(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],h=e[7],f=e[8],l=Math.sin(n),d=Math.cos(n);return t[0]=d*r+l*o,t[1]=d*i+l*s,t[2]=d*a+l*u,t[3]=d*o-l*r,t[4]=d*s-l*i,t[5]=d*u-l*a,t[6]=c,t[7]=h,t[8]=f,t}function b(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function w(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function _(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function M(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function k(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,c=n*o,h=r*o,f=r*s,l=i*o,d=i*s,p=i*u,g=a*o,v=a*s,m=a*u;return t[0]=1-f-p,t[3]=h-m,t[6]=l+v,t[1]=h+m,t[4]=1-c-p,t[7]=d-g,t[2]=l-v,t[5]=d+g,t[8]=1-c-f,t}function A(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],h=e[8],f=e[9],l=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*o,x=n*u-i*o,b=n*c-a*o,w=r*u-i*s,_=r*c-a*s,M=i*c-a*u,S=h*g-f*p,k=h*v-l*p,A=h*m-d*p,P=f*v-l*g,C=f*m-d*g,E=l*m-d*v,I=y*E-x*C+b*P+w*A-_*k+M*S;return I?(I=1/I,t[0]=(s*E-u*C+c*P)*I,t[1]=(u*A-o*E-c*k)*I,t[2]=(o*C-s*A+c*S)*I,t[3]=(i*C-r*E-a*P)*I,t[4]=(n*E-i*A+a*k)*I,t[5]=(r*A-n*C-a*S)*I,t[6]=(g*M-v*_+m*w)*I,t[7]=(v*b-p*M-m*x)*I,t[8]=(p*_-g*b+m*y)*I,t):null}function P(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function C(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function E(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))}function I(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function O(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function T(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function N(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function j(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function B(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],c=t[6],h=t[7],f=t[8],l=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],x=e[7],b=e[8];return Math.abs(n-l)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-d)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(a-p)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-g)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-v)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-m)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-y)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(h-x)<=i.EPSILON*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(f-b)<=i.EPSILON*Math.max(1,Math.abs(f),Math.abs(b))}e.mul=m,e.sub=O},"6cd4":function(t,e,n){var r=n("8057"),i=n("48a0"),a=n("1304"),o=n("6747");function s(t,e){var n=o(t)?r:i;return n(t,a(e))}t.exports=s},"6dcf":function(t,e,n){var r=n("6c7f");r.translate=function(t,e,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},t.exports=r},"6f6c":function(t,e){var n=/\w*$/;function r(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}t.exports=r},"6f9c":function(t,e,n){var r;try{r={cloneDeep:n("0644"),constant:n("72f0"),defaults:n("95ae"),each:n("c641"),filter:n("9380"),find:n("2769"),flatten:n("4d8c"),forEach:n("6cd4"),forIn:n("9948"),has:n("3852"),isUndefined:n("4cfe"),last:n("4416"),map:n("dd61"),mapValues:n("9e86"),max:n("abdd"),merge:n("42454"),min:n("004e"),minBy:n("80f6"),now:n("408c"),pick:n("2593"),range:n("5a3a"),reduce:n("c5a2"),sortBy:n("c707"),uniqueId:n("98dc"),values:n("3ff1"),zipObject:n("5492")}}catch(i){}r||(r=window._),t.exports=r},"6fcd":function(t,e,n){var r=n("50d8"),i=n("d370"),a=n("6747"),o=n("0d24"),s=n("c0983"),u=n("73ac"),c=Object.prototype,h=c.hasOwnProperty;function f(t,e){var n=a(t),c=!n&&i(t),f=!n&&!c&&o(t),l=!n&&!c&&!f&&u(t),d=n||c||f||l,p=d?r(t.length,String):[],g=p.length;for(var v in t)!e&&!h.call(t,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||l&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||p.push(v);return p}t.exports=f},"70e1":function(t,e,n){const r=n("1bb5"),i=n("b0b3").Group;t.exports=r.augment(i,{findByClassName(t){return this.find((function(e){return e.get("className")===t}))}})},"72af":function(t,e,n){var r=n("99cd"),i=r();t.exports=i},"72c2":function(t,e,n){const r=n("4651");function i(t,e,n){const r=[];for(let i=0;i<t;i++)r[i]=0;return n.forEach(t=>{r[e.get(t.source)]+=1,r[e.get(t.target)]+=1}),r}function a(t,e,n,r){t.forEach((e,n)=>{t[n].children=[],t[n].parent=[]}),r?e.forEach(e=>{const r=n.get(e.source),i=n.get(e.target);t[r].children.push(t[i]),t[i].parent.push(t[r])}):e.forEach(e=>{const r=n.get(e.source),i=n.get(e.target);t[r].children.push(t[i]),t[i].children.push(t[r])})}function o(t,e,n){const r=n.length;for(let i=0;i<r;i++)if(t.id===n[i].source&&e.id===n[i].target||e.id===n[i].source&&t.id===n[i].target)return!0;return!1}function s(t,e){return t.degree<e.degree?-1:t.degree>e.degree?1:0}r.registerLayout("circular",{getDefaultCfg(){return{center:[0,0],radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},execute(){const t=this,e=t.nodes,n=t.edges,r=e.length,a=t.center;if(0===r)return;if(1===r)return e[0].x=a[0],void(e[0].y=a[1]);let o=t.radius,s=t.startRadius,u=t.endRadius;const c=t.divisions,h=t.startAngle,f=t.endAngle,l=(f-h)/r,d=new Map;e.forEach((t,e)=>{d.set(t.id,e)}),t.nodeMap=d;const p=i(e.length,d,n);t.degrees=p;let g=t.width;g||"undefined"===typeof window||(g=window.innerWidth);let v=t.height;v||"undefined"===typeof v||(v=window.innerHeight),o||s||u?!s&&u?s=u:s&&!u&&(u=s):o=v>g?g/2:v/2;const m=t.angleRatio,y=l*m;t.astep=y;const x=t.ordering;let b=[];b="topology"===x?t.topologyOrdering():"degree"===x?t.degreeOrdering():e;const w=t.clockwise,_=Math.ceil(r/c);for(let i=0;i<r;++i){let t=o;t||(t=s+i*(u-s)/(r-1));let e=h+i%_*y+2*Math.PI/c*Math.floor(i/_);w||(e=f-i%_*y-2*Math.PI/c*Math.floor(i/_)),b[i].x=a[0]+Math.cos(e)*t,b[i].y=a[1]+Math.sin(e)*t,b[i].weight=p[i]}},topologyOrdering(){const t=this,e=t.degrees,n=t.edges,r=t.nodes,i=t.nodeMap,s=[r[0]],u=[],c=r.length;u[0]=!0,a(r,n,i,!1);let h=0;return r.forEach((t,a)=>{if(0!==a)if(a!==c-1&&e[a]===e[a+1]&&!o(s[h],t,n)||!0===u[a]){const t=s[h].children;let n=!1;for(let c=0;c<t.length;++c){const o=i.get(t[c].id);if(e[o]===e[a]&&!0!==u[o]){s.push(r[o]),u[o]=!0,n=!0;break}}let o=0;while(!n)if(u[o]||(s.push(r[o]),u[o]=!0,n=!0),o++,o===c)break}else s.push(t),u[a]=!0,h++}),s},degreeOrdering(){const t=this,e=t.nodes,n=[],r=t.degrees;return e.forEach((t,e)=>{t.degree=r[e],n.push(t)}),n.sort(s),n}})},"72fb":function(t,e,n){var r=n("d285"),i=n("3a21"),a=function(t,e){if(t){var n=void 0;if(i(t)){for(var a=0,o=t.length;a<o;a++)if(n=e(t[a],a),!1===n)break}else if(r(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}};t.exports=a},"739e":function(t,e,n){var r=n("e6d6");function i(t){return r(t)?"":t.toString()}t.exports=i},"73ac":function(t,e,n){var r=n("743f"),i=n("b047"),a=n("99d3"),o=a&&a.isTypedArray,s=o?i(o):r;t.exports=s},"743f":function(t,e,n){var r=n("3729"),i=n("b218"),a=n("1310"),o="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",h="[object Error]",f="[object Function]",l="[object Map]",d="[object Number]",p="[object Object]",g="[object RegExp]",v="[object Set]",m="[object String]",y="[object WeakMap]",x="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",M="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",A="[object Uint8Array]",P="[object Uint8ClampedArray]",C="[object Uint16Array]",E="[object Uint32Array]",I={};function O(t){return a(t)&&i(t.length)&&!!I[r(t)]}I[w]=I[_]=I[M]=I[S]=I[k]=I[A]=I[P]=I[C]=I[E]=!0,I[o]=I[s]=I[x]=I[u]=I[b]=I[c]=I[h]=I[f]=I[l]=I[d]=I[p]=I[g]=I[v]=I[m]=I[y]=!1,t.exports=O},7493:function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("1bb5");r.registerNode("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:1,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14},offset:30},stateStyles:{hover:{lineWidth:2,stroke:"#1890ff",fill:"#e6f7ff"},selected:{lineWidth:3,stroke:"#1890ff",fill:"#e6f7ff"}},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape(t,e){const n=this.getCustomConfig(t)||{},{preRect:r}=this.options,{preRect:a}=n,o=this.getShapeStyle(t),s=this.getSize(t),u=s[0],c=s[1],h=e.addShape("rect",{attrs:o}),f=i({},r,a,t.preRect),{show:l,...d}=f;return l&&e.addShape("rect",{attrs:{x:-u/2,y:-c/2,height:c,...d},className:"pre-rect"}),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),h},drawLogoIcon(t,e){const n=this.getCustomConfig(t)||{},{logoIcon:r}=this.options,{logoIcon:a}=n,o=i({},r,a,t.logoIcon),s=this.getSize(t),u=s[0];if(o.show){const{width:t,height:n,x:r,y:i,offset:a,...s}=o,c=e.addShape("image",{attrs:{...s,x:r||-u/2+t+a,y:i||-n/2,width:t,height:n},className:"rect-logo-icon"});c.set("capture",!1)}},drawStateIcon(t,e){const n=this.getCustomConfig(t)||{},{stateIcon:r}=this.options,{stateIcon:a}=n,o=i({},r,a,t.stateIcon),s=this.getSize(t),u=s[0];if(o.show){const{width:t,height:n,x:r,y:i,offset:a,...s}=o,c=e.addShape("image",{attrs:{...s,x:r||u/2-t+a,y:i||-n/2,width:t,height:n},className:"rect-state-icon"});c.set("capture",!1)}},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{top:s,left:u,right:c,bottom:h,size:f,...l}=o,d=this.getSize(t),p=d[0],g=d[1];u&&e.addShape("circle",{attrs:{...l,x:-p/2,y:0,r:f},className:"rect-mark-left",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:{...l,x:p/2,y:0,r:f},className:"rect-mark-right",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:{...l,x:0,y:-g/2,r:f},className:"rect-mark-top",isAnchorPoint:!0}),h&&e.addShape("circle",{attrs:{...l,x:0,y:g/2,r:f},className:"rect-mark-bottom",isAnchorPoint:!0})},drawLabel(t,e){const n=this.getCustomConfig(t)||{},{labelCfg:r,logoIcon:a}=this.options,{labelCfg:o,logoIcon:s}=n,u=i({},a,s,t.logoIcon),c=i({},r,o,t.labelCfg),h=this.getSize(t),f=h[0];let l=null;const{show:d,width:p}=u;let g=-f/2+c.offset;d&&(g=-f/2+p+c.offset);const{style:v}=c;return t.description?(l=e.addShape("text",{attrs:{...v,y:-5,x:g,text:t.label}}),e.addShape("text",{attrs:{text:t.description,fontSize:12,x:g,y:17,fill:"#bfbfbf"},className:"rect-description"})):l=e.addShape("text",{attrs:{...v,x:g,y:7,text:t.label}}),l},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,o={stroke:t.color},s=i({},n,r,o,t.style),u=this.getSize(t),c=u[0],h=u[1],f=a.mix({},{x:-c/2,y:-h/2,width:c,height:h},s);return f},update(t,e){const n=this.getCustomConfig(t)||{},{style:r,labelCfg:a,preRect:o,logoIcon:s,stateIcon:u}=this.options,{style:c,labelCfg:h,preRect:f,logoIcon:l,stateIcon:d}=n,p=i({},r,c,t.style),g=this.getSize(t),v=g[0],m=g[1],y=e.get("keyShape");y.attr({...p,x:-v/2,y:-m/2,width:v,height:m});const x=e.getContainer(),b=i({},a,h,t.labelCfg),w=x.findByClassName("node-label"),_=i({},s,l,t.logoIcon),{show:M,width:S}=_,{offset:k,style:A}=b;let P=-v/2+k;M&&(P=-v/2+S+k);const C=x.findByClassName("rect-description");C?(w&&w.attr({...A,y:-5,x:P}),C.attr({x:P,y:17})):w&&w.attr({...A,x:P,y:-5});const E=x.findByClassName("pre-rect");if(E){const e=i({},o,f,t.preRect);E.attr({...e,x:-v/2,y:-m/2,height:m})}const I=x.findByClassName("rect-logo-icon");if(I){const{width:t,height:e,x:n,y:r,offset:i,...a}=_;I.attr({...a,x:n||-v/2+t+i,y:r||-e/2,width:t,height:e})}const O=x.findByClassName("rect-state-icon");if(O){const e=i({},u,d,t.stateIcon),{width:n,height:r,x:a,y:o,offset:s,...c}=e;O.attr({...c,x:a||v/2-n+s,y:o||-r/2,width:n,height:r})}this.updateLinkPoints(t,x)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{size:s,fill:u,stroke:c,lineWidth:h}=o,f=this.getSize(t),l=f[0],d=f[1],p=e.findByClassName("rect-mark-left");p&&p.attr({x:-l/2,y:0,r:s,fill:u,stroke:c,lineWidth:h});const g=e.findByClassName("rect-mark-right");g&&g.attr({x:l/2,y:0,r:s,fill:u,stroke:c,lineWidth:h});const v=e.findByClassName("rect-mark-top");v&&v.attr({x:0,y:-d/2,r:s,fill:u,stroke:c,lineWidth:h});const m=e.findByClassName("rect-mark-bottom");m&&m.attr({x:0,y:d/2,r:s,fill:u,stroke:c,lineWidth:h})}},"single-shape")},"74e8":function(t,e,n){"use strict";var r=n("6f9c"),i=n("1845"),a=n("e849").slack,o=n("e849").longestPath,s=n("17d5").alg.preorder,u=n("17d5").alg.postorder,c=n("b50e").simplify;function h(t){t=c(t),o(t);var e,n,r=i(t);p(r),f(r,t);while(e=v(r))n=m(r,t,e),y(r,t,e,n)}function f(t,e){var n=u(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){l(t,e,n)}))}function l(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=d(t,e,n)}function d(t,e,n){var i=t.node(n),a=i.parent,o=!0,s=e.edge(n,a),u=0;return s||(o=!1,s=e.edge(a,n)),u=s.weight,r.forEach(e.nodeEdges(n),(function(r){var i=r.v===n,s=i?r.w:r.v;if(s!==a){var c=i===o,h=e.edge(r).weight;if(u+=c?h:-h,b(t,n,s)){var f=t.edge(n,s).cutvalue;u+=c?-f:f}}})),u}function p(t,e){arguments.length<2&&(e=t.nodes()[0]),g(t,{},1,e)}function g(t,e,n,i,a){var o=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(a){r.has(e,a)||(n=g(t,e,n,a,i))})),s.low=o,s.lim=n++,a?s.parent=a:delete s.parent,n}function v(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function m(t,e,n){var i=n.v,o=n.w;e.hasEdge(i,o)||(i=n.w,o=n.v);var s=t.node(i),u=t.node(o),c=s,h=!1;s.lim>u.lim&&(c=u,h=!0);var f=r.filter(e.edges(),(function(e){return h===w(t,t.node(e.v),c)&&h!==w(t,t.node(e.w),c)}));return r.minBy(f,(function(t){return a(e,t)}))}function y(t,e,n,r){var i=n.v,a=n.w;t.removeEdge(i,a),t.setEdge(r.v,r.w,{}),p(t),f(t,e),x(t,e)}function x(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),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}function b(t,e,n){return t.hasEdge(e,n)}function w(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=h,h.initLowLimValues=p,h.initCutValues=f,h.calcCutValue=d,h.leaveEdge=v,h.enterEdge=m,h.exchangeEdges=y},"74f4":function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return v})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return y}));var r,i,a=0,o=0,s=0,u=1e3,c=0,h=0,f=0,l="object"===typeof performance&&performance.now?performance:Date,d="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return h||(d(g),h=l.now()+f)}function g(){h=0}function v(){this._call=this._time=this._next=null}function m(t,e,n){var r=new v;return r.restart(t,e,n),r}function y(){p(),++a;var t,e=r;while(e)(t=h-e._time)>=0&&e._call.call(null,t),e=e._next;--a}function x(){h=(c=l.now())+f,a=o=0;try{y()}finally{a=0,w(),h=0}}function b(){var t=l.now(),e=t-c;e>u&&(f-=e,c=t)}function w(){var t,e,n=r,a=1/0;while(n)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(a)}function _(t){if(!a){o&&(o=clearTimeout(o));var e=t-h;e>24?(t<1/0&&(o=setTimeout(x,t-l.now()-f)),s&&(s=clearInterval(s))):(s||(c=l.now(),s=setInterval(b,u)),a=1,d(x))}}v.prototype=m.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},"750a":function(t,e,n){var r=n("c869"),i=n("bcdf"),a=n("ac41"),o=1/0,s=r&&1/a(new r([,-0]))[1]==o?function(t){return new r(t)}:i;t.exports=s},7514:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),a="find",o=!0;a in[]&&Array(1)[a]((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(a)},7530:function(t,e,n){var r=n("1a8c"),i=Object.create,a=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=a},7582:function(t,e,n){const{cloneDeep:r,groupBy:i,merge:a}=n("2ef0");t.exports={groupMapNodes:{},nodeArr:[],flatToTree(t,e="id",n="parentId"){const r="children",i=[],a=[],{groups:o}=t;return o.forEach(t=>{i[t[e]]=t}),o.forEach(t=>{const e=i[t[n]];e?(!e[r]&&(e[r]=[]),e[r].push(t)):a.push(t)}),a},addNodesToParentNode(t,e){const n=t=>{if(t.forEach(t=>{t.children?(this.nodeArr.push({id:t.id,parentId:t.parentId}),this.addNodesToParentNode(t.children,e)):this.nodeArr.push({id:t.id,parentId:t.parentId})}),this.nodeArr.length>0){const t=e=>{if(0===e.length)return;const n=e.shift(),i=r(e);this.groupMapNodes[n.id]=i,t(e)};t(this.nodeArr)}this.nodeArr.length=0};return n(t),this.groupMapNodes},getAllNodeInGroups(t){const e=i(t.groups,"id"),n=i(t.groups,"parentId"),r={};for(const i in n){if(!i)continue;const t=n[i],a=e[i];if(a&&t){const e=[...t,...a];r[i]=e}else t&&(r[i]=t)}const o=a({},e,r),s={};for(const i in o){if(!i||"undefined"===i)continue;const t=o[i].map(t=>t.id);s[i]=t}const u={};for(const i in s){if(!i||"undefined"===i)continue;const e=s[i],n=[];for(const t of e){const e=o[t].map(t=>t.id);n.push(...e)}const r=t.nodes.filter(t=>n.indexOf(t.groupId)>-1).map(t=>t.id);u[i]=r}return u}}},"758e":function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},"76dd":function(t,e,n){var r=n("ce86");function i(t){return null==t?"":r(t)}t.exports=i},"76e9":function(t,e,n){var r=n("ffd6");function i(t,e,n){var i=-1,a=t.length;while(++i<a){var o=t[i],s=e(o);if(null!=s&&(void 0===u?s===s&&!r(s):n(s,u)))var u=s,c=o}return c}t.exports=i},"78af":function(t,e,n){var r=n("1c6a"),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;t.exports={parseRadius:function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if(e=e.match(a),e[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}}},"78ea":function(t,e,n){var r=n("1c6a"),i=n("02db"),a=n("ad2d"),o=n("cba2"),s=n("fd07"),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(e?i&&i._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){var t=this.get("destroyed");t||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},7948:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}t.exports=n},"79bc":function(t,e,n){var r=n("0b07"),i=n("2b3e"),a=r(i,"Map");t.exports=a},"7a48":function(t,e,n){var r=n("6044"),i=Object.prototype,a=i.hasOwnProperty;function o(t){var e=this.__data__;return r?void 0!==e[t]:a.call(e,t)}t.exports=o},"7a60":function(t,e){t.exports={getDefaultCfg(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldUpdate(){return!0}}},getEvents(){return"mouseenter"===this.get("trigger")?{"node:mouseenter":"setAllItemStates","node:mouseleave":"clearAllItemStates"}:{"node:click":"setAllItemStates","canvas:click":"clearAllItemStates"}},setAllItemStates(t){const e=this.get("graph"),n=t.item;if(this.item=n,!this.shouldUpdate(t.item,{event:t,action:"activate"}))return;const r=this,i=this.get("activeState"),a=this.get("inactiveState"),o=e.get("autoPaint");e.setAutoPaint(!1),e.getNodes().forEach((function(t){const n=t.hasState("selected");r.resetSelected&&n&&e.setItemState(t,"selected",!1),e.setItemState(t,i,!1),a&&e.setItemState(t,a,!0)})),e.getEdges().forEach((function(t){e.setItemState(t,i,!1),a&&e.setItemState(t,a,!0)})),a&&e.setItemState(n,a,!1),e.setItemState(n,i,!0),e.getEdges().forEach((function(t){if(t.getSource()===n){const n=t.getTarget(),o=n.hasState("selected");r.resetSelected&&o&&e.setItemState(n,"selected",!1),a&&e.setItemState(n,a,!1),e.setItemState(n,i,!0),e.setItemState(t,i,!0),e.setItemState(t,a,!1),t.toFront()}else if(t.getTarget()===n){const n=t.getSource(),o=n.hasState("selected");r.resetSelected&&o&&e.setItemState(n,"selected",!1),a&&e.setItemState(n,a,!1),e.setItemState(n,i,!0),e.setItemState(t,i,!0),e.setItemState(t,a,!1),t.toFront()}})),e.paint(),e.setAutoPaint(o),e.emit("afteractivaterelations",{item:t.item,action:"activate"})},clearAllItemStates(t){const e=this.get("graph");if(!this.shouldUpdate(t.item,{event:t,action:"deactivate"}))return;const n=this,r=e.get("autoPaint");e.setAutoPaint(!1),e.getNodes().forEach((function(t){const r=t.hasState("selected");e.clearItemStates(t),r&&e.setItemState(t,"selected",!n.resetSelected)})),e.getEdges().forEach((function(t){e.clearItemStates(t)})),e.paint(),e.setAutoPaint(r),e.emit("afteractivaterelations",{item:t.item||this.item,action:"deactivate"})}}},"7a9c":function(t,e,n){"use strict";var r=n("6f9c"),i=n("a6d1"),a=n("45ee"),o=n("0b8b"),s=n("b50e").normalizeRanks,u=n("f1cd"),c=n("b50e").removeEmptyRanks,h=n("251a"),f=n("220e"),l=n("a864"),d=n("2a9f"),p=n("2325b"),g=n("b50e"),v=n("17d5").Graph;function m(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return C(t)}));n(" runLayout",(function(){y(e,n)})),n(" updateInputGraph",(function(){x(t,e)}))}))}function y(t,e){e(" makeSpaceForEdgeLabels",(function(){E(t)})),e(" removeSelfEdges",(function(){R(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){h.run(t)})),e(" rank",(function(){o(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){I(t)})),e(" removeEmptyRanks",(function(){c(t)})),e(" nestingGraph.cleanup",(function(){h.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){O(t)})),e(" removeEdgeLabelProxies",(function(){T(t)})),e(" normalize.run",(function(){a.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){F(t)})),e(" adjustCoordinateSystem",(function(){l.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){Y(t)})),e(" removeBorderNodes",(function(){D(t)})),e(" normalize.undo",(function(){a.undo(t)})),e(" fixupEdgeLabelCoords",(function(){B(t)})),e(" undoCoordinateSystem",(function(){l.undo(t)})),e(" translateGraph",(function(){N(t)})),e(" assignNodeIntersects",(function(){j(t)})),e(" reversePoints",(function(){L(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}function x(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),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}t.exports=m;var b=["nodesep","edgesep","ranksep","marginx","marginy"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],M=["width","height"],S={width:0,height:0},k=["minlen","weight","width","height","labeloffset"],A={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},P=["labelpos"];function C(t){var e=new v({multigraph:!0,compound:!0}),n=z(t.graph());return e.setGraph(r.merge({},w,q(n,b),r.pick(n,_))),r.forEach(t.nodes(),(function(n){var i=z(t.node(n));e.setNode(n,r.defaults(q(i,M),S)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=z(t.edge(n));e.setEdge(n,r.merge({},A,q(i,k),r.pick(i,P)))})),e}function E(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)}))}function I(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w),a={rank:(i.rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",a,"_ep")}}))}function O(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}function T(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))}))}function N(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),s=o.marginx||0,u=o.marginy||0;function c(t){var r=t.x,o=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,o-u/2),a=Math.max(a,o+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 a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+s,o.height=a-i+u}function j(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(g.intersectRect(a,n)),i.points.push(g.intersectRect(o,r))}))}function B(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;break}}))}function L(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}function D(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.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)}))}function R(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)}}))}function F(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}function Y(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,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}function q(t,e){return r.mapValues(r.pick(t,e),Number)}function z(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},"7b46":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"BrowserInfo",(function(){return i})),n.d(e,"NodeInfo",(function(){return a})),n.d(e,"SearchBotDeviceInfo",(function(){return o})),n.d(e,"BotInfo",(function(){return s})),n.d(e,"ReactNativeInfo",(function(){return u})),n.d(e,"detect",(function(){return p})),n.d(e,"browserName",(function(){return v})),n.d(e,"parseUserAgent",(function(){return m})),n.d(e,"detectOS",(function(){return y})),n.d(e,"getNodeVersion",(function(){return x}));var r=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},i=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),a=function(){function e(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}return e}(),o=function(){function t(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"}return t}(),s=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),u=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),c=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,h=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,f=3,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",c]],d=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function p(t){return t?m(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!==typeof navigator?m(navigator.userAgent):x()}function g(t){return""!==t&&l.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var a=i.exec(t);return!!a&&[r,a]}),!1)}function v(t){var e=g(t);return e?e[0]:null}function m(t){var e=g(t);if(!e)return null;var n=e[0],a=e[1];if("searchbot"===n)return new s;var u=a[1]&&a[1].split(/[._]/).slice(0,3);u?u.length<f&&(u=r(u,b(f-u.length))):u=[];var c=u.join("."),l=y(t),d=h.exec(t);return d&&d[1]?new o(n,c,l,d[1]):new i(n,c,l)}function y(t){for(var e=0,n=d.length;e<n;e++){var r=d[e],i=r[0],a=r[1],o=a.exec(t);if(o)return i}return null}function x(){var e="undefined"!==typeof t&&t.version;return e?new a(t.version.slice(1)):null}function b(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}}.call(this,n("4362"))},"7b83":function(t,e,n){var r=n("7c64"),i=n("93ed"),a=n("2478"),o=n("a524"),s=n("1fc8");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,t.exports=u},"7b97":function(t,e,n){var r=n("7e64"),i=n("a2be"),a=n("1c3c"),o=n("b1e5"),s=n("42a2"),u=n("6747"),c=n("0d24"),h=n("73ac"),f=1,l="[object Arguments]",d="[object Array]",p="[object Object]",g=Object.prototype,v=g.hasOwnProperty;function m(t,e,n,g,m,y){var x=u(t),b=u(e),w=x?d:s(t),_=b?d:s(e);w=w==l?p:w,_=_==l?p:_;var M=w==p,S=_==p,k=w==_;if(k&&c(t)){if(!c(e))return!1;x=!0,M=!1}if(k&&!M)return y||(y=new r),x||h(t)?i(t,e,n,g,m,y):a(t,e,w,n,g,m,y);if(!(n&f)){var A=M&&v.call(t,"__wrapped__"),P=S&&v.call(e,"__wrapped__");if(A||P){var C=A?t.value():t,E=P?e.value():e;return y||(y=new r),m(C,E,n,g,y)}}return!!k&&(y||(y=new r),o(t,e,n,g,m,y))}t.exports=m},"7bf3":function(t,e,n){var r=n("ca88"),i=n("00d0"),a=function(t){if(!r(t)||!i(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};t.exports=a},"7c2e":function(t,e,n){var r=n("7b46"),i=r.detect,a=n("1c6a"),o=n("2620"),s=n("5869"),u=n("ac61"),c=n("2c8d"),h=i(),f=h&&"firefox"===h.name,l=function t(e){t.superclass.constructor.call(this,e)};l.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas",supportCSSTransform:!1},a.extend(l,s),a.augment(l,o,{init:function(){l.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this.registerEvent(this)},_scale:function(){if("svg"!==this._cfg.renderType){var t=this.get("pixelRatio");this.scale(t,t)}},_setGlobalParam:function(){var t=this.get("renderer")||"canvas";"svg"===t?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",a.getRatio()),this._cfg.renderType=t;var e=c[t];this._cfg.renderer=e,this._cfg.canvas=this;var n=new u(this);this._cfg.timeline=n},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),a.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio"),e=this.get("width");return e*t},getHeight:function(){var t=this.get("pixelRatio"),e=this.get("height");return e*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByEvent:function(t){var e=this.get("supportCSSTransform");if(e){var n=this.get("pixelRatio")||1;if(f&&!a.isNil(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX*n,y:t.layerY*n};if(!a.isNil(t.offsetX))return{x:t.offsetX*n,y:t.offsetY*n}}var r=this.getClientByEvent(t),i=r.x,o=r.y;return this.getPointByClient(i,o)},getClientByEvent:function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},getPointByClient:function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=this.get("pixelRatio")||1;return{clientX:t/i+r.left,clientY:e/i+r.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):l.superclass.getShape.call(this,t,e)},getRenderer:function(){return this._cfg.renderType},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),l.superclass.destroy.call(this)}}),t.exports=l},"7c64":function(t,e,n){var r=n("e24b"),i=n("5e2e"),a=n("79bc");function o(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}t.exports=o},"7c8f":function(t,e,n){const r=n("3421"),i=n("1b95"),{delegateStyle:a}=n("9ed2"),o=document.body;t.exports={getDefaultCfg(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1}},getEvents(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd","canvas:mouseleave":"onOutOfRange"}},onDragStart(t){if(!this.shouldBegin.call(this,t))return;const{item:e,target:n}=t,r=e.hasLocked();if(r)return;if(n){const t=n.get("isAnchorPoint");if(t)return}const i=this.graph;this.targets=[];const a=i.findAllByState("node","selected"),o=e.get("id"),s=a.filter(t=>{const e=t.get("id");return o===e});0===s.length?this.target=e:a.length>1?a.forEach(t=>{const e=t.hasLocked();e||this.targets.push(t)}):this.targets.push(e),this.origin={x:t.x,y:t.y},this.point={},this.originPoint={}},onDrag(t){if(!this.origin)return;if(!this.get("shouldUpdate").call(this,t))return;const e=this.graph,n=e.get("autoPaint");e.setAutoPaint(!1),this.targets.length>0?this.enableDelegate?this._updateDelegate(t):this.targets.forEach(e=>{this._update(e,t,this.enableDelegate)}):this._update(this.target,t,this.enableDelegate),e.paint(),e.setAutoPaint(n)},onDragEnd(t){if(!this.origin||!this.shouldEnd.call(this,t))return;const e=this.graph,n=e.get("autoPaint");if(e.setAutoPaint(!1),this.shape&&(this.shape.remove(),this.shape=null),this.target){const t=this.target.get("delegateShape");t&&(t.remove(),this.target.set("delegateShape",null))}this.targets.length>0?this.targets.forEach(e=>this._update(e,t)):this.target&&this._update(this.target,t),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.target=null;const r=this.fn;r&&(o.removeEventListener("mouseup",r,!1),this.fn=null),e.paint(),e.setAutoPaint(n)},onOutOfRange(t){const e=this;if(this.origin){const n=e.graph.get("canvas").get("el"),r=r=>{r.target!==n&&e.onDragEnd(t)};this.fn=r,o.addEventListener("mouseup",r,!1)}},_update(t,e,n){const r=this.origin,i=t.get("model"),a=t.get("id");this.point[a]||(this.point[a]={x:i.x,y:i.y});const o=e.x-r.x+this.point[a].x,s=e.y-r.y+this.point[a].y;if(n)return void this._updateDelegate(e,o,s);const u={x:o,y:s};this.get("updateEdge")?this.graph.updateItem(t,u):t.updatePosition(u)},_updateDelegate(t,e,n){const r=t.item.get("keyShape").getBBox();if(this.shape)if(this.targets.length>0){const e=t.x-this.origin.x+this.originPoint.minX,n=t.y-this.origin.y+this.originPoint.minY;this.shape.attr({x:e,y:n})}else this.target&&this.shape.attr({x:e+r.x,y:n+r.y});else{const t=this.graph.get("group"),o=i({},a,this.delegateStyle);if(this.targets.length>0){const{x:e,y:n,width:r,height:i,minX:a,minY:s}=this.calculationGroupPosition();this.originPoint={x:e,y:n,width:r,height:i,minX:a,minY:s},this.shape=t.addShape("rect",{attrs:{width:r,height:i,x:e,y:n,...o}})}else this.target&&(this.shape=t.addShape("rect",{attrs:{width:r.width,height:r.height,x:e+r.x,y:n+r.y,...o}}),this.target.set("delegateShape",this.shape));this.shape.set("capture",!1)}},calculationGroupPosition(){const t=this.graph,e=t.findAllByState("node","selected");let n=1/0,i=-1/0,a=1/0,o=-1/0;for(const f of e){const e=r(f)?t.findById(f):f,s=e.getBBox(),{minX:u,minY:c,maxX:h,maxY:l}=s;u<n&&(n=u),c<a&&(a=c),h>i&&(i=h),l>o&&(o=l)}const s=Math.floor(n)-20,u=Math.floor(a)+10,c=Math.ceil(i)-s,h=Math.ceil(o)-u;return{x:s,y:u,width:c,height:h,minX:n,minY:a}}}},"7d1f":function(t,e,n){var r=n("087d"),i=n("6747");function a(t,e,n){var a=e(t);return i(t)?a:r(a,n(t))}t.exports=a},"7dec":function(t,e,n){var r=n("1c6a"),i=r.vec2;function a(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function o(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)}function s(t,e,n,r,o,s,u,c,h,f,l){var d,p,g,v,m,y,x,b,w=.005,_=1/0,M=1e-4,S=[h,f];for(p=0;p<1;p+=.05)g=[a(t,n,o,u,p),a(e,r,s,c,p)],v=i.squaredDistance(S,g),v<_&&(d=p,_=v);_=1/0;for(var k=0;k<32;k++){if(w<M)break;x=d-w,b=d+w,g=[a(t,n,o,u,x),a(e,r,s,c,x)],v=i.squaredDistance(S,g),x>=0&&v<_?(d=x,_=v):(y=[a(t,n,o,u,b),a(e,r,s,c,b)],m=i.squaredDistance(S,y),b<=1&&m<_?(d=b,_=m):w*=.5)}return l&&(l.x=a(t,n,o,u,d),l.y=a(e,r,s,c,d)),Math.sqrt(_)}function u(t,e,n,i){var a,o,s,u=3*t-9*e+9*n-3*i,c=6*e-12*n+6*i,h=3*n-3*i,f=[];if(r.isNumberEqual(u,0))r.isNumberEqual(c,0)||(a=-h/c,a>=0&&a<=1&&f.push(a));else{var l=c*c-4*u*h;r.isNumberEqual(l,0)?f.push(-c/(2*u)):l>0&&(s=Math.sqrt(l),a=(-c+s)/(2*u),o=(-c-s)/(2*u),a>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i){var a=-3*e+9*n-9*r+3*i,o=t*a+6*e-12*n+6*r;return t*o-3*e+3*n}function h(t,e,n,i,a,o,s,u,h){r.isNil(h)&&(h=1),h=h>1?1:h<0?0:h;for(var f=h/2,l=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,v=0;v<l;v++){var m=f*d[v]+f,y=c(m,t,n,a,s),x=c(m,e,i,o,u),b=y*y+x*x;g+=p[v]*Math.sqrt(b)}return f*g}t.exports={at:a,derivativeAt:o,projectPoint:function(t,e,n,r,i,a,o,u,c,h){var f={};return s(t,e,n,r,i,a,o,u,c,h,f),f},pointDistance:s,extrema:u,len:h}},"7e64":function(t,e,n){var r=n("5e2e"),i=n("efb66"),a=n("2fcc"),o=n("802a"),s=n("55a3"),u=n("d02c");function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype["delete"]=a,c.prototype.get=o,c.prototype.has=s,c.prototype.set=u,t.exports=c},"7ed2":function(t,e){var n="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,n),this}t.exports=r},"802a":function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},8057:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}t.exports=n},"80f6":function(t,e,n){var r=n("76e9"),i=n("badf"),a=n("8d20");function o(t,e){return t&&t.length?r(t,i(e,2),a):void 0}t.exports=o},8185:function(t,e,n){var r=n("33de");function i(t){var e={},n={},i=[];function o(s){if(r.has(n,s))throw new a;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),o),delete n[s],i.push(s))}if(r.each(t.sinks(),o),r.size(e)!==t.nodeCount())throw new a;return i}function a(){}t.exports=i,i.CycleException=a,a.prototype=new Error},8223:function(t,e,n){const r=n("4651"),i=n("36e0"),a=n("e29d");r.registerLayout("mds",{getDefaultCfg(){return{center:[0,0],linkDistance:50}},execute(){const t=this,e=t.nodes,n=t.edges,r=t.center;if(0===e.length)return;1===e.length&&(e[0].x=r[0],e[0].y=r[1]);const a=t.linkDistance,o=i.getAdjMatrix({nodes:e,edges:n},!1),s=i.floydWarshall(o);t.handleInfinity(s),t.distances=s;const u=i.scaleMatrix(s,a);t.scaledDistances=u;const c=t.runMDS();t.positions=c,c.forEach((t,n)=>{e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})},runMDS(){const t=this,e=2,n=t.scaledDistances,r=a.mul(-.5,a.pow(n,2));function i(t){return a.div(a.add.apply(null,t),t.length)}const o=i(r),s=i(a.transpose(r)),u=i(o);for(let a=0;a<r.length;++a)for(let t=0;t<r[0].length;++t)r[a][t]+=u-o[a]-s[t];const c=a.svd(r),h=a.sqrt(c.S);return c.U.map((function(t){return a.mul(t,h).splice(0,e)}))},handleInfinity(t){let e=-999999;t.forEach(t=>{t.forEach(t=>{t!==1/0&&e<t&&(e=t)})}),t.forEach((n,r)=>{n.forEach((n,i)=>{n===1/0&&(t[r][i]=e)})})}})},"82bd":function(t,e){t.exports=function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}},"830e":function(t,e,n){var r=n("5830"),i=n("51207");r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),a=r.direction(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=r},8327:function(t,e,n){var r=n("1c6a"),i=n("78af"),a=i.parseRadius,o=n("188c"),s=n("bfa1"),u={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},c=.3,h={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},f={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={left:"left",start:"left",center:"middle",right:"end",end:"end"},d=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<svg id="'+e+'"></svg>');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new s(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()}));try{e._drawChildren(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i)}finally{e.toDraw=!1}}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this._drawChildren(t)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(n.tobeRemoved&&(r.each(n.tobeRemoved,(function(t){t.parentNode&&t.parentNode.removeChild(t)})),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t))},e._drawChildren=function(t){var e,n=this,r=t._cfg.children;if(r)for(var i=0;i<r.length;i++)e=r[i],e.isGroup?n._drawGroup(e,i):n._drawShape(e,i)},e._drawShape=function(t,e){var n=this,r=t._attrs,i=t._cfg,a=i.el;i.removed||i.destroyed?a&&a.parentNode.removeChild(i.el):(!a&&i.parent&&(n._createDom(t,e),n._updateShape(t)),a=i.el,!1!==i.visible?(i.visible&&a.hasAttribute("visibility")&&a.removeAttribute("visibility"),i.hasUpdate&&n._updateShape(t),r.clip&&r.clip._cfg.hasUpdate&&n._updateShape(r.clip)):a.setAttribute("visibility","hidden"))},e._updateShape=function(t){var e=this,n=t._attrs,i=t._cfg.attrs;if(i)if(t._cfg.el||e._createDom(t),"clip"in n&&this._setClip(t,n.clip),("shadowOffsetX"in n||"shadowOffsetY"in n||"shadowBlur"in n||"shadowColor"in n)&&this._setShadow(t),"text"!==t.type){for(var a in"fan"===t.type&&e._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",e._assembleMarker(n)),"rect"===t.type&&t._cfg.el.setAttribute("d",e._assembleRect(n)),n)n[a]!==i[a]&&e._setAttribute(t,a,n[a]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else e._updateText(t)},e._setAttribute=function(t,e,n){var i=t.type,a=t._attrs,o=t._cfg.el,s=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))o.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=n.map((function(t){return t[0]+","+t[1]})),n=n.join(" ")),void o.setAttribute("points",n);if("path"===e&&r.isArray(n))o.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=h[e],n){var u=null;u="boolean"===typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+u+")"),t._cfg[e]=u}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"===typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),h[e]&&o.setAttribute(h[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},e._createDom=function(t,e){var n=u[t.type],r=t._attrs,i=t._cfg.parent;if(!n)throw new Error("the type"+t.type+"is not supported by svg");var a=document.createElementNS("http://www.w3.org/2000/svg",n);if(t._cfg.id&&(a.id=t._cfg.id),t._cfg.el=a,i){var o=i._cfg.el;if("undefined"===typeof e)o.appendChild(a);else{var s=i._cfg.el.childNodes;"svg"===o.tagName&&(e+=1),s.length<=e?o.appendChild(a):o.insertBefore(a,s[e])}}return t._cfg.attrs={},"text"===t.type?(a.setAttribute("paint-order","stroke"),a.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(r.stroke||r.strokeStyle||a.setAttribute("stroke","none"),r.fill||r.fillStyle||a.setAttribute("fill","none")),a},e._assembleMarker=function(t){var e=t.r;if("undefined"===typeof t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"===typeof t.symbol?t.symbol(t.x,t.y,e):o.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map((function(t){return t.join(" ")})).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var u=a(s);r.isArray(s)?1===s.length?u.r1=u.r2=u.r3=u.r4=s[0]:2===s.length?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):3===s.length?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;var c=[["M "+(e+u.r1)+","+n],["l "+(i-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-i)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]];return c.join(" ")},e._formatPath=function(t){return t=t.map((function(t){return t.join(" ")})).join(""),~t.indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);r=r.join(","),-1===r.indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",e.width),a.setAttribute("height",e.height),a.getContext("2d").putImageData(e,0,0),n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",a.toDataURL())}},e._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,i=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var c=e(s,n.re,a),h=e(u,n.re,a),f=u>s?1:0,l=Math.abs(u-s)>Math.PI?1:0,d=n.rs,p=n.re,g=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+h.x+","+h.y),o.push("L "+v.x+","+v.y),o.push("A "+d+","+d+",0,"+l+","+(1===f?0:1)+","+g.x+","+g.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+p+","+p+",0,"+l+","+f+","+h.x+","+h.y),n.rs>0?o.push("L "+v.x+","+v.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=this,n=t._attrs,r=t._cfg.attrs,i=t._cfg.el;for(var a in this._setFont(t),n)if(n[a]!==r[a]){if("text"===a){e._setText(t,""+n[a]);continue}if("fillStyle"===a||"strokeStyle"===a){this._setColor(t,a,n[a]);continue}if("matrix"===a){this._setTransform(t);continue}h[a]&&i.setAttribute(h[a],n[a])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",f[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",l[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,(function(t,e){0===e?"alphabetic"===i?u+='<tspan x="'+a+'" dy="'+-s+'em">'+t+"</tspan>":"top"===i?u+='<tspan x="'+a+'" dy="0.9em">'+t+"</tspan>":"middle"===i?u+='<tspan x="'+a+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===i?u+='<tspan x="'+a+'" dy="-'+(s+c)+'em">'+t+"</tspan>":"hanging"===i&&(u+='<tspan x="'+a+'" dy="'+(-(s-1)-c)+'em">'+t+"</tspan>"):u+='<tspan x="'+a+'" dy="1em">'+t+"</tspan>"})),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(h[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(h[e],"url(#"+o+")")}else r.setAttribute(h[e],n);else r.setAttribute(h[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}();t.exports=d},8563:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=n("6560"),o=n("5134");function s(t,e,n){return t+e*Math.cos(n)}function u(t,e,n){return t+e*Math.sin(n)}var c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(c,i),r.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,o=t.endAngle,s=t.clockwise,u=this.getHitLineWidth(),c=u/2,h=a.box(e,n,r,i,o,s);return h.minX-=c,h.minY-=c,h.maxX+=c,h.maxY+=c,h},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.startAngle,i=t.r,a=t.clockwise,o=Math.PI/180;a&&(o*=-1);var c=[],h=s(e,i,r+o),f=u(n,i,r+o),l=s(e,i,r),d=u(n,i,r);return c.push([h,f]),c.push([l,d]),c},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.endAngle,i=t.r,a=t.clockwise,o=Math.PI/180,c=[];a&&(o*=-1);var h=s(e,i,r+o),f=u(n,i,r+o),l=s(e,i,r),d=u(n,i,r);return c.push([l,d]),c.push([h,f]),c},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t=t||self.get("context"),t.beginPath(),t.arc(n,r,i,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();o.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();o.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=c},"85e3":function(t,e){function n(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)}t.exports=n},8604:function(t,e,n){var r=n("26e8"),i=n("e2c0");function a(t,e){return null!=t&&i(t,e,r)}t.exports=a},"872a":function(t,e,n){var r=n("3b4a");function i(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}t.exports=i},8817:function(t,e,n){var r=n("6f9c"),i=n("17d5").Graph;function a(t,e,n){var a=o(t),s=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var o=t.node(i),u=t.parent(i);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(s.setNode(i),s.setParent(i,u||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=s.edge(n,i),o=r.isUndefined(a)?0:a.weight;s.setEdge(n,i,{weight:t.edge(e).weight+o})})),r.has(o,"minRank")&&s.setNode(i,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))})),s}function o(t){var e;while(t.hasNode(e=r.uniqueId("_root")));return e}t.exports=a},"89d9":function(t,e,n){var r=n("656b"),i=n("159a"),a=n("e2e4");function o(t,e,n){var o=-1,s=e.length,u={};while(++o<s){var c=e[o],h=r(t,c);n(h,c)&&i(u,a(c,t),h)}return u}t.exports=o},"8adb":function(t,e){function n(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}t.exports=n},"8af4":function(t,e,n){const r=n("e00d"),i=n("1bb5"),a=n("2599"),o=n("b951"),{LAYOUT_MESSAGE:s}=a,u={requestAnimationFrame(t){const e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)},cancelAnimationFrame(t){const e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||function(t){return clearTimeout(t)};return e(t)}};class c{constructor(t){this.graph=t;const e=this.layoutCfg=t.get("layout")||{};this.layoutType=e.type,this.worker=null,this.workerData={},this._initLayout()}_initLayout(){}_getWorker(){return this.worker||("undefined"===typeof Worker?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=new o),this.worker}_stopWorker(){const{workerData:t}=this;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(u.cancelAnimationFrame(t.requestId),t.requestId=null),t.requestId2&&(u.cancelAnimationFrame(t.requestId2),t.requestId2=null))}layout(t){const e=this;let n=e.layoutType;const a=e.graph;e.data=e.setDataFromGraph();const o=e.data.nodes;if(!o)return!1;const s=a.get("width"),u=a.get("height"),c={};if(i.mix(c,{width:s,height:u,center:[s/2,u/2]},e.layoutCfg),e.layoutCfg=c,void 0===n){if(!o[0]||void 0!==o[0].x)return!1;n=c.type="random"}else o[0]&&void 0===o[0].x&&e.initPositions(c.center,o);let h=e.layoutMethod;if(h&&h.destroy(),this._stopWorker(),c.workerEnabled&&this._layoutWithWorker(e.data,t))return!0;if("force"===n){const t=c.onTick,e=()=>{t&&t(),a.refreshPositions()};c.tick=e;const n=c.onLayoutEnd;c.onLayoutEnd=()=>{n&&n(),a.emit("afterlayout")}}try{h=new r[n](c)}catch(f){return console.warn("The layout method: "+c+" does not exist! Please specify it first."),!1}return h.init(e.data),a.emit("beforelayout"),h.execute(),e.layoutMethod=h,"force"!==n&&(a.emit("afterlayout"),e.refreshLayout()),!1}_layoutWithWorker(t,e){const{nodes:n,edges:r}=t,{layoutCfg:i,graph:a}=this,o=this._getWorker(),{workerData:u}=this;if(!o)return!1;u.requestId=null,u.requestId2=null,u.currentTick=null,u.currentTickData=null,a.emit("beforelayout");const c=f(i,t=>"function"!==typeof t);return o.postMessage({type:s.RUN,nodes:n,edges:r,layoutCfg:c}),o.onmessage=n=>{this._handleWorkerMessage(n,t,e)},!0}_handleWorkerMessage(t,e,n){const{graph:r,workerData:i,layoutCfg:a}=this,o=t.data,{type:c}=o,f=()=>{a.onTick&&a.onTick()},l=()=>{a.onLayoutEnd&&a.onLayoutEnd(),r.emit("afterlayout")};switch(c){case s.TICK:i.currentTick=o.currentTick,i.currentTickData=o,i.requestId||(i.requestId=u.requestAnimationFrame((function(){h(e,o),r.refreshPositions(),f(),1===o.currentTick&&n&&n(),o.currentTick===o.totalTicks?l():i.currentTick===o.totalTicks&&(i.requestId2=u.requestAnimationFrame((function(){h(e,i.currentTickData),r.refreshPositions(),i.requestId2=null,f(),l()}))),i.requestId=null})));break;case s.END:null==i.currentTick&&(h(e,o),this.refreshLayout(),n&&n(),r.emit("afterlayout"));break;case s.ERROR:break;default:break}}refreshLayout(){const t=this,e=t.graph;e.get("animate")?e.positionsAnimate():e.refreshPositions()}updateLayoutCfg(t){const e=this,n=e.graph;e.layoutType=t.type;const r=e.layoutMethod;e.data=e.setDataFromGraph(),this._stopWorker(),t.workerEnabled&&this._layoutWithWorker(e.data,null)||(r.init(e.data),r.updateCfg(t),n.emit("beforelayout"),r.execute(),"force"!==e.layoutType&&n.emit("afterlayout"),e.refreshLayout())}changeLayout(t){const e=this;e.layoutType=t,e.layoutCfg=e.graph.get("layout")||{},e.layoutCfg.type=t;const n=e.layoutMethod;n&&n.destroy(),e.layout()}changeData(){const t=this,e=t.layoutMethod;e&&e.destroy(),t.layout()}setDataFromGraph(){const t=this,e=[],n=[],r=t.graph.getNodes(),i=t.graph.getEdges();r.forEach(t=>{const n=t.getModel();e.push(n)}),i.forEach(t=>{const e=t.getModel();n.push(e)});const a={nodes:e,edges:n};return"fruchtermanGroup"===t.layoutType&&(a.graph=t.graph),a}relayout(){const t=this,e=t.graph,n=t.layoutMethod;"force"===t.layoutType&&(n.ticking=!1,n.forceSimulation.stop()),e.emit("beforelayout"),n.execute(),"force"!==t.layoutType&&e.emit("afterlayout"),t.refreshLayout()}layoutAnimate(){}_getLayout(){}moveToZero(){const t=this,e=t.graph,n=e.get("data"),r=n.nodes;if(void 0===r[0].x||null===r[0].x||isNaN(r[0].x))return;const i=[0,0];r.forEach(t=>{i[0]+=t.x,i[1]+=t.y}),i[0]/=r.length,i[1]/=r.length,r.forEach(t=>{t.x-=i[0],t.y-=i[1]})}initPositions(t,e){e&&e.forEach(e=>{e.x=t[0]+Math.random(),e.y=t[1]+Math.random()})}destroy(){const t=this;t.graph=null;const e=t.layoutMethod;e&&e.destroy();const{worker:n}=this;n&&(n.terminate(),this.worker=null),t.destroyed=!0}}function h(t,e){const{nodes:n}=t,{nodes:r}=e;n.forEach((t,e)=>{t.x=r[e].x,t.y=r[e].y})}function f(t,e){const n={};if(t&&"object"===typeof t){for(const r in t)t.hasOwnProperty(r)&&e(t[r])&&(n[r]=t[r]);return n}return t}t.exports=c},"8c55":function(t,e,n){"use strict";var r=n("6f9c"),i=n("17d5").Graph,a=n("b50e");function o(t,e){var n={};function i(e,i){var a=0,o=0,s=e.length,h=r.last(i);return r.forEach(i,(function(e,f){var l=u(t,e),d=l?t.node(l).order:s;(l||e===h)&&(r.forEach(i.slice(o,f+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(o<a||d<o)||i.dummy&&t.node(e).dummy||c(n,r,e)}))})),o=f+1,a=d)})),i}return r.reduce(e,i),n}function s(t,e){var n={};function i(e,i,a,o,s){var u;r.forEach(r.range(i,a),(function(i){u=e[i],t.node(u).dummy&&r.forEach(t.predecessors(u),(function(e){var r=t.node(e);r.dummy&&(r.order<o||r.order>s)&&c(n,e,u)}))}))}function a(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(a=t.node(c[0]).order,i(n,s,u,o,a),s=u,o=a)}i(n,s,n.length,a,e.length)})),n}return r.reduce(e,a),n}function u(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}function c(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 h(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function f(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[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){u=r.sortBy(u,(function(t){return s[t]}));for(var c=(u.length-1)/2,f=Math.floor(c),l=Math.ceil(c);f<=l;++f){var d=u[f];o[t]===t&&e<s[d]&&!h(n,t,d)&&(o[d]=t,o[t]=a[t]=a[d],e=s[d])}}}))})),{root:a,align:o}}function l(t,e,n,i,a){var o={},s=d(t,e,n,a),u=a?"borderLeft":"borderRight";function c(t,e){var n=s.nodes(),r=n.pop(),i={};while(r)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}function h(t){o[t]=s.inEdges(t).reduce((function(t,e){return Math.max(t,o[e.v]+s.edge(e))}),0)}function f(e){var n=s.outEdges(e).reduce((function(t,e){return Math.min(t,o[e.w]-s.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(o[e]=Math.max(o[e],n))}return c(h,s.predecessors.bind(s)),c(f,s.successors.bind(s)),r.forEach(i,(function(t){o[t]=o[n[t]]})),o}function d(t,e,n,a){var o=new i,s=t.graph(),u=y(s.nodesep,s.edgesep,a);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(o.setNode(r),i){var a=n[i],s=o.edge(a,r);o.setEdge(a,r,Math.max(u(t,e,i),s||0))}i=e}))})),o}function p(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 a=x(t,r)/2;n=Math.max(e+a,n),i=Math.min(e-a,i)})),n-i}))}function g(t,e){var n=r.values(e),i=r.min(n),a=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(o){var s,u=n+o,c=t[u];if(c!==e){var h=r.values(c);s="l"===o?i-r.min(h):a-r.max(h),s&&(t[u]=r.mapValues(c,(function(t){return t+s})))}}))}))}function v(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var a=r.sortBy(r.map(t,i));return(a[1]+a[2])/2}))}function m(t){var e,n=a.buildLayerMatrix(t),i=r.merge(o(t,n),s(t,n)),u={};r.forEach(["u","d"],(function(a){e="u"===a?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 o=("u"===a?t.predecessors:t.successors).bind(t),s=f(t,e,i,o),c=l(t,e,s.root,s.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(t){return-t}))),u[a+n]=c}))}));var c=p(t,u);return g(u,c),v(u,t.graph().align)}function y(t,e,n){return function(i,a,o){var s,u=i.node(a),c=i.node(o),h=0;if(h+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=-u.width/2;break;case"r":s=u.width/2;break}if(s&&(h+=n?s:-s),s=0,h+=(u.dummy?e:t)/2,h+=(c.dummy?e:t)/2,h+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2;break}return s&&(h+=n?s:-s),s=0,h}}function x(t,e){return t.node(e).width}t.exports={positionX:m,findType1Conflicts:o,findType2Conflicts:s,addConflict:c,hasConflict:h,verticalAlignment:f,horizontalCompaction:l,alignCoordinates:g,findSmallestWidthAlignment:p,balance:v}},"8d20":function(t,e){function n(t,e){return t<e}t.exports=n},"8d21":function(t,e,n){const r=n("1bb5"),i=n("bcd0"),a=n("9ed2"),o="bboxCache",s="StateStyle",u="Style",c=["fillStyle","strokeStyle","path","points","img","symbol"];class h{constructor(t){const e={id:null,type:"item",model:{},group:null,animate:!1,visible:!0,locked:!1,event:!0,keyShape:null,states:[]};this._cfg=r.mix(e,this.getDefaultCfg(),t);const n=t.group;n.set("item",this);let i=this.get("model").id;i&&""!==i||(i=r.uniqueId(this.get("type"))),this.set("id",i),n.set("id",i),this.init(),this.draw()}isItem(){return!0}get(t){return this._cfg[t]}set(t,e){r.isPlainObject(t)?this._cfg=r.mix({},this._cfg,t):this._cfg[t]=e}getDefaultCfg(){return{}}init(){const t=i.getFactory(this.get("type"));this.set("shapeFactory",t)}_calculateBBox(){const t=this.get("keyShape"),e=this.get("group"),n=r.getBBox(t,e);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n}_drawInner(){const t=this,e=t.get("shapeFactory"),n=t.get("group"),r=t.get("model");if(n.clear(),!e)return;t.updatePosition(r);const i=t.getShapeCfg(r),a=i.shape,o=e.draw(a,i,n);o&&(o.isKeyShape=!0,t.set("keyShape",o),t.set("originStyle",this.getKeyShapeStyle())),this.set("currentShape",a),this._resetStates(e,a)}getKeyShapeStyle(){const t=this.getKeyShape();if(t){const e={};return r.each(t.attr(),(t,n)=>{c.indexOf(n)<0&&(e[n]=t)}),e}}_resetStates(t,e){const n=this,i=n.get("states");r.each(i,r=>{t.setState(e,r,!0,n)})}getStates(){return this.get("states")}hasState(t){return this.get("states").indexOf(t)>=0}getStateStyle(t){const e=this,n=a[e.getType()+s][t],i=this.get("styles"),o=i&&i[t],c=t+u;return r.mix({},n,o,e.get(c))}getOriginStyle(){return this.get("originStyle")}getCurrentStatesStyle(){const t=this,e=r.mix({},t.getOriginStyle());return r.each(t.getStates(),n=>{r.mix(e,t.getStateStyle(n))}),e}setState(t,e){const n=this.get("states"),r=this.get("shapeFactory"),i=n.indexOf(t);if(e){if(i>-1)return;n.push(t)}else i>-1&&n.splice(i,1);if(r){const n=this.get("model");r.setState(n.shape,t,e,this)}}clearStates(t){const e=this,n=e.getStates(),i=e.get("shapeFactory"),a=e.get("model").shape;if(!t)return e.set("states",[]),void i.setState(a,n[0],!1,e);r.isString(t)&&(t=[t]);const o=n.filter(n=>(i.setState(a,n,!1,e),!(t.indexOf(n)>=0)));e.set("states",o)}getContainer(){return this.get("group")}getKeyShape(){return this.get("keyShape")}getModel(){return this.get("model")}getType(){return this.get("type")}beforeDraw(){}afterDraw(){}getShapeCfg(t){const e=this.get("styles");if(e&&e.default){const n=r.mix({},t);return n.style=r.mix({},e.default,t.style),n}return t}refresh(){const t=this.get("model");this.updatePosition(t),this.updateShape(),this.afterUpdate(),this.clearCache()}update(t){const e=this.get("model"),n={x:e.x,y:e.y};r.mix(e,t);const i=this._isOnlyMove(t);i?this.updatePosition(e):(n.x===e.x&&n.y===e.y||this.updatePosition(e),this.updateShape()),this.afterUpdate(),this.clearCache()}updateShape(){const t=this.get("shapeFactory"),e=this.get("model"),n=e.shape;if(t.shouldUpdate(n)&&n===this.get("currentShape")){const r=this.getShapeCfg(e);t.update(n,r,this)}else this.draw();this.set("originStyle",this.getKeyShapeStyle()),this._resetStates(t,n)}updatePosition(t){const e=this.get("model"),n=r.isNil(t.x)?e.x:t.x,i=r.isNil(t.y)?e.y:t.y,a=this.get("group");r.isNil(n)||r.isNil(i)||(a.resetMatrix(),a.translate(n,i),e.x=n,e.y=i,this.clearCache())}afterUpdate(){}clearCache(){this.set(o,null)}draw(){this.beforeDraw(),this._drawInner(),this.afterDraw()}getBBox(){let t=this.get(o);return t||(t=this._calculateBBox(),this.set(o,t)),t}toFront(){this.get("group").toFront()}toBack(){this.get("group").toBack()}show(){this.changeVisibility(!0)}hide(){this.changeVisibility(!1)}changeVisibility(t){const e=this.get("group");t?e.show():e.hide(),this.set("visible",t)}enableCapture(t){const e=this.get("group");e&&e.attr("capture",t)}isVisible(){return this.get("visible")}destroy(){if(!this.destroyed){const t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.remove(),this._cfg=null,this.destroyed=!0}}}t.exports=h},"8d60":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=i,e.toRadian=o,e.equals=s;var r=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!==typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;function i(t){e.ARRAY_TYPE=t}var a=Math.PI/180;function o(t){return t*a}function s(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}},"8d88":function(t,e,n){var r=n("06bb"),i=n("61e7"),a=n("503e"),o=function(t){for(var e=i(arguments),n=1;n<e.length;n++){var o=e[n];r(o)&&(o=o.prototype),a(t.prototype,o)}};t.exports=o},"8db3":function(t,e,n){var r=n("47f5");function i(t,e){var n=null==t?0:t.length;return!!n&&r(t,e,0)>-1}t.exports=i},"8de2":function(t,e,n){var r=n("8eeb"),i=n("9934");function a(t){return r(t,i(t))}t.exports=a},"8eeb":function(t,e,n){var r=n("32b3"),i=n("872a");function a(t,e,n,a){var o=!n;n||(n={});var s=-1,u=e.length;while(++s<u){var c=e[s],h=a?a(n[c],t[c],c,n,t):void 0;void 0===h&&(h=t[c]),o?i(n,c,h):r(n,c,h)}return n}t.exports=a},9021:function(t,e,n){const r=n("e29d");class i{constructor(t){this.distances=t.distances,this.dimension=t.dimension||2,this.linkDistance=t.linkDistance}layout(){const t=this,e=t.dimension,n=t.distances,i=t.linkDistance,a=r.mul(-.5,r.pow(n,2));function o(t){return r.div(r.add.apply(null,t),t.length)}const s=o(a),u=o(r.transpose(a)),c=o(s);for(let r=0;r<a.length;++r)for(let t=0;t<a[0].length;++t)a[r][t]+=c-s[r]-u[t];let h,f=[];try{h=r.svd(a)}catch(l){const t=n.length;for(let e=0;e<t;e++){const t=Math.random()*i,e=Math.random()*i;f.push([t,e])}}if(0===f.length){const t=r.sqrt(h.S);f=h.U.map((function(n){return r.mul(n,t).splice(0,e)}))}return f}}t.exports=i},"90ea1":function(t,e){var n=Math.PI/180,r=function(t){return n*t};t.exports=r},"91de":function(t,e,n){var r=n("ca88"),i=n("d63e"),a=n("3421"),o=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(a(e)||a(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var o=!0,s=0;s<e.length;s++)if(o=t(e[s],n[s]),!o)break;return o}if(r(e)||r(n)){var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(var h=!0,f=0;f<u.length;f++)if(h=t(e[u[f]],n[u[f]]),!h)break;return h}return!1};t.exports=o},"91e9":function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},9214:function(t,e){t.exports="0.8.5"},9272:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=o,e.clone=s,e.length=u,e.fromValues=c,e.copy=h,e.set=f,e.add=l,e.subtract=d,e.multiply=p,e.divide=g,e.ceil=v,e.floor=m,e.min=y,e.max=x,e.round=b,e.scale=w,e.scaleAndAdd=_,e.distance=M,e.squaredDistance=S,e.squaredLength=k,e.negate=A,e.inverse=P,e.normalize=C,e.dot=E,e.cross=I,e.lerp=O,e.hermite=T,e.bezier=N,e.random=j,e.transformMat4=B,e.transformMat3=L,e.transformQuat=D,e.rotateX=R,e.rotateY=F,e.rotateZ=Y,e.angle=q,e.str=z,e.exactEquals=X,e.equals=G;var r=n("8d60"),i=a(r);function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function s(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function u(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function c(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function f(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function v(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function m(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function y(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function b(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function w(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function _(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function S(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function k(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function C(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function E(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function O(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function T(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),h=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*h,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*h,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*h,t}function N(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,c=s*o,h=3*a*s,f=3*u*o,l=u*a;return t[0]=e[0]*c+n[0]*h+r[0]*f+i[0]*l,t[1]=e[1]*c+n[1]*h+r[1]*f+i[1]*l,t[2]=e[2]*c+n[2]*h+r[2]*f+i[2]*l,t}function j(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t}function B(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function L(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function D(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],c=e[2],h=i*c-a*u,f=a*s-r*c,l=r*u-i*s,d=i*l-a*f,p=a*h-r*l,g=r*f-i*h,v=2*o;return h*=v,f*=v,l*=v,d*=2,p*=2,g*=2,t[0]=s+h+d,t[1]=u+f+p,t[2]=c+l+g,t}function R(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function F(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function Y(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function q(t,e){var n=c(t[0],t[1],t[2]),r=c(e[0],e[1],e[2]);C(n,n),C(r,r);var i=E(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)}function z(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function X(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))}e.sub=d,e.mul=p,e.div=g,e.dist=M,e.sqrDist=S,e.len=u,e.sqrLen=k,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},"932d":function(t,e){var n=function(t,e){return(t%e+e)%e};t.exports=n},9380:function(t,e,n){var r=n("2d7c"),i=n("9f74"),a=n("badf"),o=n("6747");function s(t,e){var n=o(t)?r:i;return n(t,a(e,3))}t.exports=s},"93ed":function(t,e,n){var r=n("4245");function i(t){var e=r(this,t)["delete"](t);return this.size-=e?1:0,e}t.exports=i},9507:function(t,e,n){t.exports={View:n("c396"),Event:n("1127"),Mode:n("a69f"),Item:n("241e0"),State:n("a1b0"),Layout:n("8af4"),CustomGroup:n("0fe1")}},"950a":function(t,e,n){var r=n("30c9");function i(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);var a=n.length,o=e?a:-1,s=Object(n);while(e?o--:++o<a)if(!1===i(s[o],o,s))break;return n}}t.exports=i},9520:function(t,e,n){var r=n("3729"),i=n("1a8c"),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function c(t){if(!i(t))return!1;var e=r(t);return e==o||e==s||e==a||e==u}t.exports=c},"95ae":function(t,e,n){var r=n("100e"),i=n("9638"),a=n("9aff"),o=n("9934"),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;c&&a(e[0],e[1],c)&&(r=1);while(++n<r){var h=e[n],f=o(h),l=-1,d=f.length;while(++l<d){var p=f[l],g=t[p];(void 0===g||i(g,s[p])&&!u.call(t,p))&&(t[p]=h[p])}}return t}));t.exports=c},9638:function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},"964f":function(t,e,n){var r=n("1c6a"),i=n("adff"),a=n("6560"),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.rs,o=e.re,s=e.startAngle,u=e.endAngle,c=e.clockwise,h=this.getHitLineWidth(),f=a.box(n,r,i,s,u,c),l=a.box(n,r,o,s,u,c),d=Math.min(f.minX,l.minX),p=Math.min(f.minY,l.minY),g=Math.max(f.maxX,l.maxX),v=Math.max(f.maxY,l.maxY),m=h/2;return{minX:d-m,minY:p-m,maxX:g+m,maxY:v+m}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},h={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},f={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};t=t||self.get("context"),t.beginPath(),t.moveTo(c.x,c.y),t.lineTo(h.x,h.y),t.arc(n,r,a,o,s,u),t.lineTo(f.x,f.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},"966f":function(t,e,n){var r=n("7e64"),i=n("c05f"),a=1,o=2;function s(t,e,n,s){var u=n.length,c=u,h=!s;if(null==t)return!c;t=Object(t);while(u--){var f=n[u];if(h&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}while(++u<c){f=n[u];var l=f[0],d=t[l],p=f[1];if(h&&f[2]){if(void 0===d&&!(l in t))return!1}else{var g=new r;if(s)var v=s(d,p,l,t,e,g);if(!(void 0===v?i(p,d,a|o,s,g):v))return!1}}return!0}t.exports=s},9671:function(t,e,n){"use strict";var r=n("33de");t.exports=s;var i="\0",a="\0",o="";function s(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[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(t,e){t[e]?t[e]++:t[e]=1}function c(t,e){--t[e]||delete t[e]}function h(t,e,n,a){var s=""+e,u=""+n;if(!t&&s>u){var c=s;s=u,u=c}return s+o+u+o+(r.isUndefined(a)?i:a)}function f(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function l(t,e){return h(t,e.v,e.w,e.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(t){return this._label=t,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},s.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},s.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},s.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]=a,this._children[t]={},this._children[a][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},s.prototype.node=function(t){return this._nodes[t]},s.prototype.hasNode=function(t){return r.has(this._nodes,t)},s.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},s.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=a;else{e+="";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},s.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},s.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==a)return e}},s.prototype.children=function(t){if(r.isUndefined(t)&&(t=a),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===a)return this.nodes();if(this.hasNode(t))return[]}},s.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},s.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},s.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},s.prototype.isLeaf=function(t){var e;return e=this.isDirected()?this.successors(t):this.neighbors(t),0===e.length},s.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={};function a(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:a(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,a(t))})),e},s.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.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},s.prototype.setEdge=function(){var t,e,n,i,a=!1,o=arguments[0];"object"===typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var s=h(this._isDirected,t,e,n);if(r.has(this._edgeLabels,s))return a&&(this._edgeLabels[s]=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[s]=a?i:this._defaultEdgeLabelFn(t,e,n);var c=f(this._isDirected,t,e,n);return t=c.v,e=c.w,Object.freeze(c),this._edgeObjs[s]=c,u(this._preds[e],t),u(this._sucs[t],e),this._in[e][s]=c,this._out[t][s]=c,this._edgeCount++,this},s.prototype.edge=function(t,e,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):h(this._isDirected,t,e,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?l(this._isDirected,arguments[0]):h(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},s.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):h(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],c(this._preds[e],t),c(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},s.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}},s.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}},s.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},"96f3":function(t,e){var n=Object.prototype,r=n.hasOwnProperty;function i(t,e){return null!=t&&r.call(t,e)}t.exports=i},9719:function(t,e,n){var r=n("d63e"),i=Array.prototype.splice,a=function(t,e){if(!r(t))return[];var n=t?e.length:0,a=n-1;while(n--){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t};t.exports=a},"97d3":function(t,e,n){var r=n("48a0"),i=n("30c9");function a(t,e){var n=-1,a=i(t)?Array(t.length):[];return r(t,(function(t,r,i){a[++n]=e(t,r,i)})),a}t.exports=a},"98dc":function(t,e,n){var r=n("76dd"),i=0;function a(t){var e=++i;return r(t)+e}t.exports=a},9934:function(t,e,n){var r=n("6fcd"),i=n("41c3"),a=n("30c9");function o(t){return a(t)?r(t,!0):i(t)}t.exports=o},9948:function(t,e,n){var r=n("72af"),i=n("1304"),a=n("9934");function o(t,e){return null==t?t:r(t,i(e),a)}t.exports=o},"99cd":function(t,e){function n(t){return function(e,n,r){var i=-1,a=Object(e),o=r(e),s=o.length;while(s--){var u=o[t?s:++i];if(!1===n(a[u],u,a))break}return e}}t.exports=n},"99d3":function(t,e,n){(function(t){var r=n("585a"),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i,s=o&&r.process,u=function(){try{var t=a&&a.require&&a.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=u}).call(this,n("62e4")(t))},"9aa7":function(t,e,n){const r=n("4651"),i=n("36e0"),a=n("5378"),o=n("9021"),s=n("3a21"),u=n("5d9e");function c(t){const e=t.length,n=t[0].length,r=[];for(let i=0;i<e;i++){const e=[];for(let r=0;r<n;r++)0!==t[i][r]?e.push(1/Math.pow(t[i][r],2)):e.push(0);r.push(e)}return r}function h(t,e){let n=-1;return t.forEach((t,r)=>{t.id!==e||(n=r)}),n}r.registerLayout("radial",{getDefaultCfg(){return{center:[0,0],maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200}},execute(){const t=this,e=t.nodes,n=t.edges,r=t.center;if(0===e.length)return;if(1===e.length)return e[0].x=r[0],void(e[0].y=r[1]);const f=t.linkDistance;let l=t.focusNode;if(i.isString(l)){let n=!1;for(let r=0;r<e.length;r++)e[r].id===l&&(l=e[r],t.focusNode=l,n=!0,r=e.length);n||(l=null)}if(!l){if(l=e[0],!l)return;t.focusNode=l}const d=h(e,l.id);t.focusIndex=d;const p=i.getAdjMatrix({nodes:e,edges:n},!1),g=i.floydWarshall(p),v=t.maxToFocus(g,d);t.handleInfinity(g,d,v+1),t.distances=g;const m=g[d];let y=t.width;y||"undefined"===typeof window||(y=window.innerWidth);let x=t.height;x||"undefined"===typeof x||(x=window.innerHeight);let b=y-r[0]>r[0]?r[0]:y-r[0],w=x-r[1]>r[1]?r[1]:x-r[1];0===b&&(b=y/2),0===w&&(w=x/2);const _=w>b?b:w,M=Math.max(...m),S=[];m.forEach((e,n)=>{t.unitRadius||(t.unitRadius=_/M),S[n]=e*t.unitRadius}),t.radii=S;const k=t.eIdealDisMatrix(g,f,S);t.eIdealDistances=k;const A=c(k);t.weights=A;const P=new o({distances:k,linkDistance:f,dimension:2});let C=P.layout();C.forEach(t=>{isNaN(t[0])&&(t[0]=Math.random()*f),isNaN(t[1])&&(t[1]=Math.random()*f)}),t.positions=C,C.forEach((t,n)=>{e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]}),C.forEach(t=>{t[0]-=C[d][0],t[1]-=C[d][1]}),t.run();const E=t.preventOverlap,I=t.nodeSize;let O;const T=t.strictRadial;if(E){const n=t.nodeSpacing;let r;r=u(n)?()=>n:"function"===typeof n?n:()=>0,O=I?s(I)?t=>{const e=I[0]>I[1]?I[0]:I[1];return e+r(t)}:t=>I+r(t):t=>{if(t.size){if(s(t.size)){const e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e+r(t)}return t.size+r(t)}return 10+r(t)};const i=new a({nodeSizeFunc:O,adjMatrix:p,positions:C,radii:S,height:x,width:y,strictRadial:T,focusID:d,iterations:t.maxPreventOverlapIteration||200,k:C.length/4.5,nodes:e});C=i.layout()}C.forEach((t,n)=>{e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})},run(){const t=this,e=t.maxIteration,n=t.positions,r=t.weights,i=t.eIdealDistances,a=t.radii;for(let o=0;o<=e;o++){const s=o/e;t.oneIteration(s,n,a,i,r)}},oneIteration(t,e,n,r,a){const o=this,s=1-t,u=o.focusIndex;e.forEach((o,c)=>{const h=i.getEDistance(o,[0,0]),f=0===h?0:1/h;if(c===u)return;let l=0,d=0,p=0;e.forEach((t,e)=>{if(c===e)return;const n=i.getEDistance(o,t),s=0===n?0:1/n,u=r[e][c];p+=a[c][e],l+=a[c][e]*(t[0]+u*(o[0]-t[0])*s),d+=a[c][e]*(t[1]+u*(o[1]-t[1])*s)});const g=0===n[c]?0:1/n[c];p*=s,p+=t*Math.pow(g,2),l*=s,l+=t*g*o[0]*f,o[0]=l/p,d*=s,d+=t*g*o[1]*f,o[1]=d/p})},eIdealDisMatrix(){const t=this,e=t.distances,n=t.linkDistance,r=t.radii,i=t.unitRadius,a=[];return e.forEach((t,e)=>{const o=[];t.forEach((t,a)=>{if(e===a)o.push(0);else if(r[e]===r[a])o.push(t*n/(r[e]/i));else{const e=(n+i)/2;o.push(t*e)}}),a.push(o)}),a},handleAbnormalMatrix(t,e){const n=t.length;for(let r=0;r<n;r++)0===t[r].length&&(t[r][e]=1,t[e][r]=1)},handleInfinity(t,e,n){const r=t.length;for(let i=0;i<r;i++)if(t[e][i]===1/0){t[e][i]=n,t[i][e]=n;for(let a=0;a<r;a++)t[i][a]!==1/0&&t[e][a]===1/0&&(t[e][a]=n+t[i][a],t[a][e]=n+t[i][a])}for(let i=0;i<r;i++)if(i!==e)for(let n=0;n<r;n++)if(t[i][n]===1/0){let r=Math.abs(t[e][i]-t[e][n]);r=0===r?1:r,t[i][n]=r}},maxToFocus(t,e){let n=0;for(let r=0;r<t[e].length;r++)t[e][r]!==1/0&&(n=t[e][r]>n?t[e][r]:n);return n}})},"9aa8":function(t,e,n){var r=n("1c6a"),i=n("4875"),a={arc:n("6560"),ellipse:n("4590"),line:n("c4bc")},o=r.createDom('<canvas width="1" height="1"></canvas>'),s=o.getContext("2d");function u(t,e,n){return n.createPath(s),s.isPointInPath(t,e)}var c=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=n.startAngle,u=n.endAngle,c=n.clockwise,h=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,a,o,s,u,c,h,t,e)},h=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?i.circle(r,a,o,t,e)||i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e):u?i.circle(r,a,o,t,e):!!c&&i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e)},f=function(t,e){var n=this._attrs,a=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,c=n.rx,h=n.ry,f=this.getHitLineWidth(),l=c>h?c:h,d=c>h?1:c/h,p=c>h?h/c:1,g=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[d,p]),r.mat3.translate(v,v,[s,u]);var m=r.mat3.invert([],v);return r.vec3.transformMat3(g,g,m),a&&o?i.circle(0,0,l,g[0],g[1])||i.arcline(0,0,l,0,2*Math.PI,!1,f,g[0],g[1]):a?i.circle(0,0,l,g[0],g[1]):!!o&&i.arcline(0,0,l,0,2*Math.PI,!1,f,g[0],g[1])},l=function(t,e){var n=this,o=n.hasFill(),s=n.hasStroke(),u=n._attrs,c=u.x,h=u.y,f=u.rs,l=u.re,d=u.startAngle,p=u.endAngle,g=u.clockwise,v=[1,0],m=[t-c,e-h],y=r.vec2.angleTo(v,m);function x(){var t=a.arc.nearAngle(y,d,p,g);if(r.isNumberEqual(y,t)){var e=r.vec2.squaredLength(m);if(f*f<=e&&e<=l*l)return!0}return!1}function b(){var r=n.getHitLineWidth(),a={x:Math.cos(d)*f+c,y:Math.sin(d)*f+h},o={x:Math.cos(d)*l+c,y:Math.sin(d)*l+h},s={x:Math.cos(p)*f+c,y:Math.sin(p)*f+h},u={x:Math.cos(p)*l+c,y:Math.sin(p)*l+h};return!!i.line(a.x,a.y,o.x,o.y,r,t,e)||(!!i.line(s.x,s.y,u.x,u.y,r,t,e)||(!!i.arcline(c,h,f,d,p,g,r,t,e)||!!i.arcline(c,h,l,d,p,g,r,t,e)))}return o&&s?x()||b():o?x():!!s&&b()},d=function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,a=n.y,o=n.width,s=n.height;return i.rect(r,a,o,s,t,e)},p=function(t,e){var n=this._attrs,r=n.x1,a=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,a,o,s,u,t,e)},g=function(t,e){var n=this,i=n.get("segments"),a=n.hasFill(),o=n.hasStroke();function s(){if(!r.isEmpty(i)){for(var a=n.getHitLineWidth(),o=0,s=i.length;o<s;o++)if(i[o].isInside(t,e,a))return!0;return!1}}return a&&o?u(t,e,n)||s():a?u(t,e,n):!!o&&s()},v=function(t,e){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.points;if(a.length<2)return!1;var o=n.getHitLineWidth(),s=a.slice(0);return a.length>=3&&s.push(a[0]),i.polyline(s,o,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},m=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return i.circle(r,a,o+s/2,t,e)},y=function(t,e){var n=this,r=n._attrs;if(n.hasStroke()){var a=r.points;if(a.length<2)return!1;var o=r.lineWidth;return i.polyline(a,o,t,e)}return!1},x=function(t,e){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.x,o=r.y,s=r.width,u=r.height,c=r.radius,h=n.getHitLineWidth();if(0===c){var f=h/2;return i.line(a-f,o,a+s+f,o,h,t,e)||i.line(a+s,o-f,a+s,o+u+f,h,t,e)||i.line(a+s+f,o+u,a-f,o+u,h,t,e)||i.line(a,o+u+f,a,o-f,h,t,e)}return i.line(a+c,o,a+s-c,o,h,t,e)||i.line(a+s,o+c,a+s,o+u-c,h,t,e)||i.line(a+s-c,o+u,a+c,o+u,h,t,e)||i.line(a,o+u-c,a,o+c,h,t,e)||i.arcline(a+s-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,h,t,e)||i.arcline(a+s-c,o+u-c,c,0,.5*Math.PI,!1,h,t,e)||i.arcline(a+c,o+u-c,c,.5*Math.PI,Math.PI,!1,h,t,e)||i.arcline(a+c,o+c,c,Math.PI,1.5*Math.PI,!1,h,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},b=function(t,e){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return i.box(r.minX,r.maxX,r.minY,r.maxY,t,e)},w=function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return i.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},_={arc:c,circle:h,dom:w,ellipse:f,fan:l,image:d,line:p,path:g,marker:m,polygon:v,polyline:y,rect:x,text:b};t.exports={isPointInPath:function(t,e){var n=_[this.type];return!!n&&n.call(this,t,e)}}},"9aff":function(t,e,n){var r=n("9638"),i=n("30c9"),a=n("c0983"),o=n("1a8c");function s(t,e,n){if(!o(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&a(e,n.length):"string"==s&&e in n)&&r(n[e],t)}t.exports=s},"9b02":function(t,e,n){var r=n("656b");function i(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}t.exports=i},"9ceb":function(t,e,n){const r=n("1bb5"),i=12;t.exports={onMouseEnter(t){const e=this;if(!e.shouldBegin(t))return;const n=t.item;e.currentTarget=n,e.showTooltip(t),e.graph.emit("tooltipchange",{item:t.item,action:"show"})},onMouseMove(t){this.shouldUpdate(t)?this.currentTarget&&t.item===this.currentTarget&&this.updatePosition(t):this.hideTooltip()},onMouseLeave(t){this.shouldEnd(t)&&(this.hideTooltip(),this.graph.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null)},showTooltip(t){const e=this;if(!t.item)return;let n=e.container;n||(n=e._createTooltip(e.graph.get("canvas")),e.container=n);const i=e.formatText(t.item.get("model"),t);n.innerHTML=i,this.updatePosition(t),r.modifyCSS(this.container,{visibility:"visible"})},hideTooltip(){r.modifyCSS(this.container,{visibility:"hidden"})},updatePosition(t){const e=this.width,n=this.height,a=this.container;let o=t.canvasX,s=t.canvasY;const u=a.getBoundingClientRect();o>e/2?o-=u.width:o+=i,s>n/2?s-=u.height:s+=i;const c=o+"px",h=s+"px";r.modifyCSS(this.container,{left:c,top:h,visibility:"visible"})},_createTooltip(t){const e=t.get("el");e.style.position="relative";const n=r.createDom('<div class="g6-tooltip g6-'+this.item+'-tooltip"></div>');return e.parentNode.appendChild(n),r.modifyCSS(n,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=n,n}}},"9d1d":function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("9ed2");r.registerNode("star",{options:{size:60,style:{stroke:a.defaultShapeStrokeColor,fill:a.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"},offset:0},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,left:!1,leftBottom:!1,rightBottom:!1,size:3,lineWidth:1,fill:"#fff",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16}},shapeType:"star",labelPosition:"center",drawShape(t,e){const n=this.getCustomConfig(t)||{},{icon:r}=this.options,{icon:a}=n,o=this.getShapeStyle(t),s=i({},r,a,t.icon),u=e.addShape("path",{attrs:o}),{width:c,height:h,show:f}=s;if(f){const t=e.addShape("image",{attrs:{x:-c/2,y:-h/2,...s},className:"star-icon"});t.set("capture",!1)}return this.drawLinkPoints(t,e),u},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{top:s,left:u,right:c,leftBottom:h,rightBottom:f,size:l,...d}=o,p=this.getSize(t),g=p[0];if(c){const t=Math.cos(.1*Math.PI)*g,n=Math.sin(.1*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-right"})}if(s){const t=Math.cos(.5*Math.PI)*g,n=Math.sin(.5*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-top"})}if(u){const t=Math.cos(.9*Math.PI)*g,n=Math.sin(.9*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-left"})}if(h){const t=Math.cos(1.3*Math.PI)*g,n=Math.sin(1.3*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-left-bottom"})}if(f){const t=Math.cos(1.7*Math.PI)*g,n=Math.sin(1.7*Math.PI)*g;e.addShape("circle",{attrs:{...d,x:t,y:-n,r:l},className:"star-mark-right-bottom"})}},getPath(t){const e=this.getCustomConfig(t)||{},{innerR:n}=e,r=this.getSize(t),i=r[0],a=3*i/8,o=t.innerR||n||a,s=[];for(let u=0;u<5;u++){const t=Math.cos((18+72*u)/180*Math.PI)*i,e=Math.sin((18+72*u)/180*Math.PI)*i,n=Math.cos((54+72*u)/180*Math.PI)*o,r=Math.sin((54+72*u)/180*Math.PI)*o;0===u?s.push(["M",t,-e]):s.push(["L",t,-e]),s.push(["L",n,-r])}return s.push(["Z"]),s},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,a={stroke:t.color},o=i({},n,r,a,t.style),s=this.getPath(t),u={path:s,...o};return u},update(t,e){const n=e.getContainer(),r=this.getCustomConfig(t)||{},{style:a,icon:o,labelCfg:s}=this.options,{style:u,icon:c,labelCfg:h}=r,f=i({},a,u,t.style),l=i({},o,c,t.icon),d=e.get("keyShape"),p=this.getPath(t);d.attr({path:p,...f});const g=i({},s,h,t.labelCfg),v=this.getLabelStyle(t,g,n),m=n.findByClassName("node-label");m&&m.attr({...v});const y=n.findByClassName("star-icon");if(y){const{width:t,height:e}=l;y.attr({x:-t/2,y:-e/2,...l})}this.updateLinkPoints(t,n)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{size:s,...u}=o,c=this.getSize(t),h=c[0],f=e.findByClassName("star-mark-right");if(f){const t=Math.cos(.1*Math.PI)*h,e=Math.sin(.1*Math.PI)*h;f.attr({...u,x:t,y:-e,r:s})}const l=e.findByClassName("star-mark-top");if(l){const t=Math.cos(.5*Math.PI)*h,e=Math.sin(.5*Math.PI)*h;l.attr({...u,x:t,y:-e,r:s})}const d=e.findByClassName("star-mark-left");if(d){const t=Math.cos(.9*Math.PI)*h,e=Math.sin(.9*Math.PI)*h;d.attr({...u,x:t,y:-e,r:s})}const p=e.findByClassName("star-mark-left-bottom");if(p){const t=Math.cos(1.3*Math.PI)*h,e=Math.sin(1.3*Math.PI)*h;p.attr({...u,x:t,y:-e,r:s})}const g=e.findByClassName("star-mark-right-bottom");if(g){const t=Math.cos(1.7*Math.PI)*h,e=Math.sin(1.7*Math.PI)*h;g.attr({...u,x:t,y:-e,r:s})}}},"single-shape")},"9d67":function(t,e,n){const r=n("9ed2"),i=n("b0b3"),a=n("bcd0"),o=n("e00d"),s=n("3b0b"),u={Graph:n("c02a"),TreeGraph:n("3501"),Util:n("1bb5"),G:i,Global:r,Shape:a,Layout:o,registerNode:a.registerNode,registerEdge:a.registerEdge,registerBehavior:s.registerBehavior,registerLayout:o.registerLayout,version:r.version};t.exports=u},"9dfc":function(t,e,n){const r=n("1249"),i=n("1bb5"),a=n("9ed2"),o=n("15e8");r.registerFactory("node",{defaultShapeType:"circle"});const s=i.mix({},o,{itemType:"node",shapeType:"",labelPosition:"center",getSize(t){const e=this.getCustomConfig(t)||{};let n=t.size||e.size||this.options.size||a.defaultNode.size;return i.isArray(n)||(n=[n,n]),n},getLabelStyleByPosition(t,e){const n=e.position||this.labelPosition;if("center"===n)return{x:0,y:0};let r=e.offset;i.isNil(r)&&(r=a.nodeLabel.offset);const o=this.getSize(t),s=o[0],u=o[1];let c;switch(n){case"top":c={x:0,y:0-u/2-r,textBaseline:"bottom"};break;case"bottom":c={x:0,y:u/2+r,textBaseline:"top"};break;case"left":c={x:0-s/2-r,y:0,textAlign:"right"};break;default:c={x:s/2+r,y:0,textAlign:"left"};break}return c},drawShape(t,e){const n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r});return i}});r.registerNode("single-shape",s)},"9e86":function(t,e,n){var r=n("872a"),i=n("242e"),a=n("badf");function o(t,e){var n={};return e=a(e,3),i(t,(function(t,i,a){r(n,i,e(t,i,a))})),n}t.exports=o},"9ed2":function(t,e){t.exports={version:"3.1.10",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",customGroupContainerClassName:"custom-group-container",delegateContainerClassName:"delegate-container",defaultShapeFillColor:"#91d5ff",defaultShapeStrokeColor:"#91d5ff",defaultNode:{shape:"circle",style:{fill:"#fff"},size:40,color:"#333"},defaultEdge:{shape:"line",style:{},size:1,color:"#333"},nodeLabel:{style:{fill:"#595959",textAlign:"center",textBaseline:"middle"},offset:5},edgeLabel:{style:{fill:"#595959",textAlign:"center",textBaseline:"middle"}},nodeStateStyle:{active:{fillOpacity:.8},selected:{lineWidth:2}},edgeStateStyle:{active:{strokeOpacity:.8},selected:{lineWidth:2}},loopPosition:"top",delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]}}},"9edc":function(t,e,n){var r=n("1c6a"),i=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},"9f57":function(t,e,n){var r=n("1c6a"),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},"9f74":function(t,e,n){var r=n("48a0");function i(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}t.exports=i},a029:function(t,e,n){var r=n("087d"),i=n("2dcb"),a=n("32f4"),o=n("d327"),s=Object.getOwnPropertySymbols,u=s?function(t){var e=[];while(t)r(e,a(t)),t=i(t);return e}:o;t.exports=u},a1b0:function(t,e,n){const r=n("1bb5"),i=16;let a=null;class o{constructor(t){this.graph=t,this.cachedStates={enabled:{},disabled:{}}}updateState(t,e,n){if(t.destroyed)return;const r=this,o=r.cachedStates,s=o.enabled,u=o.disabled;n?(r._checkCache(t,e,u),r._cacheState(t,e,s)):(r._checkCache(t,e,s),r._cacheState(t,e,u)),a&&clearTimeout(a),a=setTimeout(()=>{a=null,r.updateGraphStates()},i)}updateStates(t,e,n){const i=this;r.isString(e)?i.updateState(t,e,n):e.forEach(e=>{i.updateState(t,e,n)})}_checkCache(t,e,n){if(!n[e])return;const r=n[e].indexOf(t);r>=0&&n[e].splice(r,1)}_cacheState(t,e,n){n[e]||(n[e]=[]),n[e].push(t)}updateGraphStates(){const t=this.graph.get("states"),e=this.cachedStates;r.each(e.disabled,(e,n)=>{t[n]&&(t[n]=t[n].filter(t=>e.indexOf(t)<0&&!e.destroyed))}),r.each(e.enabled,(e,n)=>{if(t[n]){const r={};t[n].forEach(t=>{t.destroyed||(r[t.get("id")]=!0)}),e.forEach(e=>{if(!e.destroyed){const i=e.get("id");r[i]||(r[i]=!0,t[n].push(e))}})}else t[n]=e}),this.graph.emit("graphstatechange",{states:t}),this.cachedStates={enabled:{},disabled:{}}}destroy(){this.graph=null,this.cachedStates=null,a&&clearTimeout(a),a=null,this.destroyed=!0}}t.exports=o},a2be:function(t,e,n){var r=n("d612"),i=n("4284"),a=n("c584"),o=1,s=2;function u(t,e,n,u,c,h){var f=n&o,l=t.length,d=e.length;if(l!=d&&!(f&&d>l))return!1;var p=h.get(t);if(p&&h.get(e))return p==e;var g=-1,v=!0,m=n&s?new r:void 0;h.set(t,e),h.set(e,t);while(++g<l){var y=t[g],x=e[g];if(u)var b=f?u(x,y,g,e,t,h):u(y,x,g,t,e,h);if(void 0!==b){if(b)continue;v=!1;break}if(m){if(!i(e,(function(t,e){if(!a(m,e)&&(y===t||c(y,t,n,u,h)))return m.push(e)}))){v=!1;break}}else if(y!==x&&!c(y,x,n,u,h)){v=!1;break}}return h["delete"](t),h["delete"](e),v}t.exports=u},a2db:function(t,e,n){var r=n("9e69"),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;function o(t){return a?Object(a.call(t)):{}}t.exports=o},a454:function(t,e,n){var r=n("72f0"),i=n("3b4a"),a=n("cd9d"),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:a;t.exports=o},a473:function(t,e,n){var r=n("33de"),i=n("01eb");t.exports=o;var a=r.constant(1);function o(t,e,n,r){return s(t,String(e),n||a,r||function(e){return t.outEdges(e)})}function s(t,e,n,r){var a,o,s={},u=new i,c=function(t){var e=t.v!==a?t.v:t.w,r=s[e],i=n(t),c=o.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=a,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)}));while(u.size()>0){if(a=u.removeMin(),o=s[a],o.distance===Number.POSITIVE_INFINITY)break;r(a).forEach(c)}return s}},a524:function(t,e,n){var r=n("4245");function i(t){return r(this,t).has(t)}t.exports=i},a560:function(t,e,n){const r=n("1bb5"),i="shift",a=["shift","ctrl","alt"];t.exports={getDefaultCfg(){return{multiple:!0,trigger:i}},getEvents(){return this.multiple?{"node:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","canvas:click":"onCanvasClick"}},onClick(t){const e=this,n=t.item,i=e.graph,a=i.get("autoPaint");if(i.setAutoPaint(!1),!e.keydown||!e.multiple){const t=i.findAllByState("node","selected");r.each(t,t=>{t!==n&&i.setItemState(t,"selected",!1)})}n.hasState("selected")?(e.shouldUpdate.call(e,t)&&i.setItemState(n,"selected",!1),i.emit("nodeselectchange",{target:n,select:!1})):(e.shouldUpdate.call(e,t)&&i.setItemState(n,"selected",!0),i.emit("nodeselectchange",{target:n,select:!0})),i.setAutoPaint(a),i.paint()},onCanvasClick(){const t=this.graph,e=t.get("autoPaint");t.setAutoPaint(!1);const n=t.findAllByState("node","selected");r.each(n,e=>{t.setItemState(e,"selected",!1)});const i=t.findAllByState("edge","selected");r.each(i,e=>t.setItemState(e,"selected",!1)),t.paint(),t.setAutoPaint(e)},onKeyDown(t){const e=t.key;a.indexOf(e.toLowerCase()>-1)?this.keydown=!0:this.keydown=!1},onKeyUp(){this.keydown=!1}}},a5d3:function(t,e){const n=Math.min,r=Math.max,i=Math.abs,a="shift",o=["drag","shift","ctrl","alt","control"];t.exports={getDefaultCfg(){return{brushStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect(){},onDeselect(){},selectedState:"selected",trigger:a,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents(){let t;return o.indexOf(this.trigger.toLowerCase())>-1?t=this.trigger:(t=a,console.warn("Behavior brush-select的trigger参数不合法请输入drag、shift、ctrl或alt")),"drag"===t?{mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp","canvas:click":"clearStates"}:{mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown(t){const{item:e}=t;if(e)return;if("drag"!==this.trigger&&!this.keydown)return;this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates();let n=this.brush;n||(n=this._createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0},onMouseMove(t){this.dragging&&("drag"===this.trigger||this.keydown)&&(this._updateBrush(t),this.graph.paint())},onMouseUp(t){if(!this.brush&&!this.dragging)return;if("drag"!==this.trigger&&!this.keydown)return;const e=this.graph,n=e.get("autoPaint");e.setAutoPaint(!1),this.brush.destroy(),this.brush=null,this._getSelectedNodes(t),this.dragging=!1,this.graph.paint(),e.setAutoPaint(n)},clearStates(){const t=this.graph,e=t.get("autoPaint");t.setAutoPaint(!1);const n=this.selectedState,r=t.findAllByState("node",n),i=t.findAllByState("edge",n);r.forEach(e=>t.setItemState(e,n,!1)),i.forEach(e=>t.setItemState(e,n,!1)),this.selectedNodes=[],this.selectedEdges=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),t.emit("nodeselectchange",{targets:{nodes:[],edges:[]},select:!1}),t.paint(),t.setAutoPaint(e)},_getSelectedNodes(t){const e=this.graph,i=this.selectedState,a=this.originPoint,o={x:t.x,y:t.y},s=e.getPointByCanvas(a.x,a.y),u=n(o.x,s.x),c=r(o.x,s.x),h=n(o.y,s.y),f=r(o.y,s.y),l=[],d=this.shouldUpdate,p=[];e.getNodes().forEach(t=>{const n=t.getBBox();if(n.centerX>=u&&n.centerX<=c&&n.centerY>=h&&n.centerY<=f&&d(t,"select")){l.push(t);const n=t.getModel();p.push(n.id),e.setItemState(t,i,!0)}});const g=[];this.includeEdges&&l.forEach(t=>{const n=t.getEdges();n.forEach(t=>{const n=t.getModel(),{source:r,target:i}=n;p.includes(r)&&p.includes(i)&&d(t,"select")&&(g.push(t),e.setItemState(t,this.selectedState,!0))})}),this.selectedEdges=g,this.selectedNodes=l,this.onSelect&&this.onSelect(l,g),e.emit("nodeselectchange",{targets:{nodes:l,edges:g},select:!0})},_createBrush(){const t=this,e=t.graph.get("canvas").addShape("rect",{attrs:t.brushStyle,capture:!1});return this.brush=e,e},_updateBrush(t){const e=this.originPoint;this.brush.attr({width:i(t.canvasX-e.x),height:i(t.canvasY-e.y),x:n(t.canvasX,e.x),y:n(t.canvasY,e.y)})},onKeyDown(t){const e=t.key;e&&e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1},onKeyUp(){this.brush&&(this.brush.destroy(),this.brush=null,this.dragging=!1),this.keydown=!1}}},a69f:function(t,e,n){const r=n("1bb5"),i=n("3b0b");function a(t,e){return r.each(e,e=>{t.indexOf(e)<0&&(r.isString(e)&&(e={type:e}),t.push(e))}),t}function o(t,e){const n=[];return t.forEach(t=>{e.indexOf(t.type)<0&&n.push(t)}),n}class s{constructor(t){this.graph=t,this.modes=t.get("modes")||{default:[]},this._formatModes(),this.mode=t.get("defaultMode")||"default",this.currentBehaves=[],this.setMode(this.mode)}_formatModes(){const t=this.modes;r.each(t,t=>{r.each(t,(e,n)=>{r.isString(e)&&(t[n]={type:e})})})}setMode(t){const e=this.modes,n=this.graph,i=e[t];if(i)return n.emit("beforemodechange",{mode:t}),r.each(this.currentBehaves,t=>{t.unbind(n)}),this._setBehaviors(t),n.emit("aftermodechange",{mode:t}),this.mode=t,this}manipulateBehaviors(t,e,n){const i=this;return r.isArray(t)||(t=[t]),r.isArray(e)?(r.each(e,e=>{i.modes[e]?i.modes[e]=n?a(i.modes[e],t):o(i.modes[e],t):n&&(i.modes[e]=[].concat(t))}),this):(e||(e=this.mode),i.modes[e]=n?a(i.modes[e],t):o(i.modes[e],t),i.setMode(this.mode),this)}_setBehaviors(t){const e=this.graph,n=this.modes[t],a=[];let o;r.each(n,t=>{i.getBehavior(t.type)&&(o=new(i.getBehavior(t.type))(t),o&&o.bind(e),a.push(o))}),this.currentBehaves=a}destroy(){this.graph=null,this.modes=null,this.currentBehaves=null,this.destroyed=!0}}t.exports=s},a6d1:function(t,e,n){"use strict";var r=n("6f9c"),i=n("299f");function a(t){var e="greedy"===t.graph().acyclicer?i(t,n(t)):o(t);function n(t){return function(e){return t.edge(e).weight}}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"))}))}function o(t){var e=[],n={},i={};function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),(function(t){r.has(n,t.w)?e.push(t):a(t.w)})),delete n[o])}return r.forEach(t.nodes(),a),e}function s(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)}}))}t.exports={run:a,undo:s}},a70c:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=n("5134"),o=n("c4bc"),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this,n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;if(n.startArrow&&n.startArrow.d){var u=a.getShortenOffset(r,i,o,s,n.startArrow.d);r+=u.dx,i+=u.dy}if(n.endArrow&&n.endArrow.d){var c=a.getShortenOffset(r,i,o,s,n.endArrow.d);o-=c.dx,s-=c.dy}t=t||e.get("context"),t.beginPath(),t.moveTo(r,i),t.lineTo(o,s)},afterPath:function(t){var e=this,n=e._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;t=t||e.get("context"),n.startArrow&&a.addStartArrow(t,n,o,s,r,i),n.endArrow&&a.addEndArrow(t,n,r,i,o,s)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},a7b2:function(t,e,n){const r=n("1249"),i=n("1bb5"),a=n("9ed2"),o=n("15e8"),s="edge-shape";function u(t){let e=t;return"start"===t?e="end":"end"===t&&(e="start"),e}r.registerFactory("edge",{defaultShapeType:"line"});const c=i.mix({},o,{itemType:"edge",labelPosition:"center",labelAutoRotate:!1,getPath(t){const e=[];return i.each(t,(t,n)=>{0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,o={stroke:t.color},s=i.deepMix({},n,r,o,t.style),u=t.size||a.defaultEdge.size;t=this.getPathPoints(t);const c=t.startPoint,h=t.endPoint,f=this.getControlPoints(t);let l=[c];f&&(l=l.concat(f)),l.push(h);const d=this.getPath(l),p=i.mix({},a.defaultEdge.style,{stroke:a.defaultEdge.color,lineWidth:u,path:d},s);return p},getLabelStyleByPosition(t,e,n){const r=e.position||this.labelPosition,a={},o=n.findByClassName(s);let u;u="start"===r?0:"end"===r?1:.5;const{refX:c,refY:h}=e;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return a.x=t.startPoint.x+c?c:0,a.y=t.endPoint.y+h?h:0,a;const f=i.isNil(e.autoRotate)?this.labelAutoRotate:e.autoRotate,l=i.getLabelPosition(o,u,c,h,f);return a.x=l.x,a.y=l.y,a.rotate=l.rotate,a.textAlign=this._getTextAlign(r,l.angle),a},_getTextAlign(t,e){let n="center";return e?(e%=2*Math.PI,"center"!==t&&(n=e>=0&&e<=Math.PI/2||e>=1.5*Math.PI&&e<2*Math.PI?t:u(t)),n):t},getControlPoints(t){return t.controlPoints},getPathPoints(t){return t},drawShape(t,e){const n=this.getShapeStyle(t),r=e.addShape("path",{className:s,attrs:n});return r},drawLabel(t,e){const n=this.getCustomConfig(t)||{},r=n.default||{},a=i.deepMix({},this.options.labelCfg,r.labelCfg,t.labelCfg),o=this.getLabelStyle(t,a,e),s=e.addShape("text",{attrs:o});return s}});r.registerEdge("single-line",c),r.registerEdge("line",{getControlPoints(){return[]}},"single-line"),r.registerEdge("spline",{getPath(t){const e=i.getSpline(t);return e}},"single-line"),r.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints(t){const e=t.startPoint,n=t.endPoint,r={x:(e.x+n.x)/2,y:(e.y+n.y)/2};let a,o;if(void 0!==t.controlPoints){if(o=t.controlPoints[0],a=i.getCircleCenterByPoints(e,o,n),e.x<=n.x&&e.y>n.y?this.clockwise=a.x>r.x?1:0:e.x<=n.x&&e.y<n.y?this.clockwise=a.x>r.x?0:1:(e.x>n.x&&(e.y,n.y),this.clockwise=a.y<r.y?1:0),(o.x-e.x)/(o.y-e.y)===(n.x-e.x)/(n.y-e.y))return[]}else{void 0!==t.curveOffset&&(this.curveOffset=t.curveOffset),this.curveOffset<0?this.clockwise=0:this.clockwise=1;const s={x:n.x-e.x,y:n.y-e.y},u=Math.atan2(s.y,s.x);o={x:this.curveOffset*Math.cos(-Math.PI/2+u)+r.x,y:this.curveOffset*Math.sin(-Math.PI/2+u)+r.y},a=i.getCircleCenterByPoints(e,o,n)}const s=i.distance(e,a),u=[{x:s,y:s}];return u},getPath(t){const e=[];return e.push(["M",t[0].x,t[0].y]),2===t.length?e.push(["L",t[1].x,t[1].y]):e.push(["A",t[1].x,t[1].y,0,0,this.clockwise,t[2].x,t[2].y]),e}},"single-line"),r.registerEdge("quadratic",{curvePosition:.5,curveOffset:-20,getControlPoints(t){let e=t.controlPoints;if(!e||!e.length){const{startPoint:n,endPoint:r}=t,a=i.getControlPoint(n,r,this.curvePosition,this.curveOffset);e=[a]}return e},getPath(t){const e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["Q",t[1].x,t[1].y,t[2].x,t[2].y]),e}},"single-line"),r.registerEdge("cubic",{curvePosition:[.5,.5],curveOffset:[-20,20],getControlPoints(t){let e=t.controlPoints;if(!e||!e.length){const{startPoint:n,endPoint:r}=t,a=i.getControlPoint(n,r,this.curvePosition[0],this.curveOffset[0]),o=i.getControlPoint(n,r,this.curvePosition[1],this.curveOffset[1]);e=[a,o]}return e},getPath(t){const e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y]),e}},"single-line"),r.registerEdge("cubic-vertical",{curvePosition:[.5,.5],getControlPoints(t){const{startPoint:e,endPoint:n}=t,r={x:e.x,y:(n.y-e.y)*this.curvePosition[0]+e.y},i={x:n.x,y:(n.y-e.y)*this.curvePosition[1]+e.y},a=[r,i];return a}},"cubic"),r.registerEdge("cubic-horizontal",{curvePosition:[.5,.5],getControlPoints(t){const{startPoint:e,endPoint:n}=t,r={x:(n.x-e.x)*this.curvePosition[0]+e.x,y:e.y},i={x:(n.x-e.x)*this.curvePosition[1]+e.x,y:n.y},a=[r,i];return a}},"cubic"),r.registerEdge("loop",{getPathPoints(t){return i.getLoopCfgs(t)},getControlPoints(t){return t.controlPoints},afterDraw(t){t.controlPoints=null},afterUpdate(t){t.controlPoints=null}},"cubic")},a864:function(t,e,n){"use strict";var r=n("6f9c");function i(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||o(t)}function a(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||u(t),"lr"!==e&&"rl"!==e||(h(t),o(t))}function o(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){s(t.edge(e))}))}function s(t){var e=t.width;t.width=t.height,t.height=e}function u(t){r.forEach(t.nodes(),(function(e){c(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,c),r.has(n,"y")&&c(n)}))}function c(t){t.y=-t.y}function h(t){r.forEach(t.nodes(),(function(e){f(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,f),r.has(n,"x")&&f(n)}))}function f(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:i,undo:a}},a994:function(t,e,n){var r=n("7d1f"),i=n("32f4"),a=n("ec69");function o(t){return r(t,a,i)}t.exports=o},aaec:function(t,e){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",o=r+i+a,s="\\ufe0e\\ufe0f",u="\\u200d",c=RegExp("["+u+n+o+s+"]");function h(t){return c.test(t)}t.exports=h},aaf9:function(t,e,n){var r=n("df2e");function i(t,e){return r(t,e,"pre")}t.exports=i},ab81:function(t,e){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",o=r+i+a,s="\\ufe0e\\ufe0f",u="["+n+"]",c="["+o+"]",h="\\ud83c[\\udffb-\\udfff]",f="(?:"+c+"|"+h+")",l="[^"+n+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",v=f+"?",m="["+s+"]?",y="(?:"+g+"(?:"+[l,d,p].join("|")+")"+m+v+")*",x=m+v+y,b="(?:"+[l+c+"?",c,d,p,u].join("|")+")",w=RegExp(h+"(?="+h+")|"+b+x,"g");function _(t){var e=w.lastIndex=0;while(w.test(t))++e;return e}t.exports=_},abdd:function(t,e,n){var r=n("76e9"),i=n("57dc"),a=n("cd9d");function o(t){return t&&t.length?r(t,a,i):void 0}t.exports=o},ac41:function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}t.exports=n},ac61:function(t,e,n){var r=n("1c6a"),i=n("4a80"),a=n("b5ae"),o=n("fb77"),s=n("ee9f"),u=s.interpolate,c=s.interpolateArray,h=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};function f(t,e,n){var a={},o=e.toAttrs,s=e.fromAttrs,h=e.toMatrix;if(!t.get("destroyed")){var f;for(var l in o)if(!r.isEqual(s[l],o[l]))if("path"===l){var d=o[l],p=s[l];d.length>p.length?(d=i.parsePathString(o[l]),p=i.parsePathString(s[l]),p=i.fillPathByDiff(p,d),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d):e.pathFormatted||(d=i.parsePathString(o[l]),p=i.parsePathString(s[l]),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),a[l]=[];for(var g=0;g<d.length;g++){for(var v=d[g],m=p[g],y=[],x=0;x<v.length;x++)r.isNumber(v[x])&&m&&r.isNumber(m[x])?(f=u(m[x],v[x]),y.push(f(n))):y.push(v[x]);a[l].push(y)}}else r.isColorProp(l)&&r.isGradientColor(o[l])?a[l]=o[l]:(f=u(s[l],o[l]),a[l]=f(n));if(h){var b=c(e.fromMatrix,h),w=b(n);t.setMatrix(w)}t.attr(a)}}function l(t,e,n){var r,i=e.startTime;if(n<i+e.delay||e.isPaused)return!1;var a=e.duration,s=e.easing;if(n=n-i-e.delay,e.repeat)r=n%a/a,r=o[s](r);else{if(r=n/a,!(r<1)){var u=e.toAttrs||e.onFrame(1);return t.attr(u),e.toMatrix&&t.setMatrix(e.toMatrix),!0}r=o[s](r)}if(e.onFrame){var c=e.onFrame(r);t.attr(c)}else f(t,e,r);return!1}r.augment(h,{initTimer:function(){var t,e,n,r=this,i=this,o=!1;i._timer=a.timer((function(a){if(i._current=a,r._animators.length>0){for(var s=r._animators.length-1;s>=0;s--)if(t=r._animators[s],t.get("destroyed"))i.removeAnimator(s);else{if(!t.get("pause").isPaused){e=t.get("animators");for(var u=e.length-1;u>=0;u--)n=e[u],o=l(t,n,a),o&&(e.splice(u,1),o=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(s)}r.canvas.draw()}}))},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach((function(t){t.stopAnimate()})),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=h},ace3:function(t,e,n){const r=n("4651"),i=n("3421");function a(t,e,n){const r=[];for(let i=0;i<t;i++)r[i]=0;return n.forEach(t=>{r[e.get(t.source)]+=1,r[e.get(t.target)]+=1}),r}r.registerLayout("concentric",{getDefaultCfg(){return{center:[0,0],nodeSize:30,minNodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},execute(){const t=this,e=t.nodes,n=t.edges,r=e.length,o=t.center;if(0===r)return;if(1===r)return e[0].x=o[0],void(e[0].y=o[1]);const s=[];let u;u=isNaN(t.nodeSize)?Math.max(t.nodeSize[0],t.nodeSize[1]):t.nodeSize,e.forEach(t=>{let e;s.push(t),e=isNaN(t.size)?Math.max(t.size[0],t.size[1]):t.size,u=Math.max(u,e)});let c=t.width;c||"undefined"===typeof window||(c=window.innerWidth);let h=t.height;h||"undefined"===typeof h||(h=window.innerHeight),t.clockwise=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise;const f=new Map,l=new Map;if(s.forEach((t,e)=>{f.set(t.id,t),l.set(t.id,e)}),t.nodeMap=f,("degree"===t.sortBy||!i(t.sortBy)||void 0===s[0][t.sortBy])&&(t.sortBy="degree",isNaN(e[0].degree))){const t=a(e.length,l,n);s.forEach((e,n)=>{e.degree=t[n]})}s.sort((e,n)=>n[t.sortBy]-e[t.sortBy]),t.maxValueNode=s[0],t.maxLevelDiff=t.maxLevelDiff||t.maxValueNode[t.sortBy]/4;const d=[[]];let p=d[0];s.forEach(e=>{if(p.length>0){const n=Math.abs(p[0][t.sortBy]-e[t.sortBy]);n>=t.maxLevelDiff&&(p=[],d.push(p))}p.push(e)});let g=u+t.minNodeSpacing;if(!t.preventOverlap){const e=d.length>0&&d[0].length>1,n=Math.min(t.width,t.height)/2-g,r=n/(d.length+e?1:0);g=Math.min(g,r)}let v=0;if(d.forEach(e=>{const n=void 0===t.sweep?2*Math.PI-2*Math.PI/e.length:t.sweep,r=e.dTheta=n/Math.max(1,e.length-1);if(e.length>1&&t.preventOverlap){const t=Math.cos(r)-Math.cos(0),e=Math.sin(r)-Math.sin(0),n=Math.sqrt(g*g/(t*t+e*e));v=Math.max(n,v)}e.r=v,v+=g}),t.equidistant){let t=0,e=0;for(let n=0;n<d.length;n++){const r=d[n],i=r.r-e;t=Math.max(t,i)}e=0,d.forEach((n,r)=>{0===r&&(e=n.r),n.r=e,e+=t})}d.forEach(e=>{const n=e.dTheta,r=e.r;e.forEach((e,i)=>{const a=t.startAngle+(t.clockwise?1:-1)*n*i;e.x=o[0]+r*Math.cos(a),e.y=o[1]+r*Math.sin(a)})})}})},ad2d:function(t,e,n){var r=n("1c6a");function i(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function a(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function o(t,e){i(e)||(a(e)?(t[0]*=e[0],t[4]*=e[4]):r.mat3.multiply(t,t,e))}t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return r.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return r.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return r.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return r.each(t,(function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",r.mat3.multiply([],n,t[1])),e.clearTotalMatrix();break;default:break}})),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),r.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){var e=this;t=t||e;var n=e,i=[];while(n!==t)i.unshift(n),n=n.get("parent");i.unshift(n);var a=[1,0,0,0,1,0,0,0,1];return r.each(i,(function(t){r.mat3.multiply(a,t.attr("matrix"),a)})),a},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){var n=e.getTotalMatrix();o(t,n)}o(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(a(e))t[0]/=e[0],t[1]/=e[4];else{var n=r.mat3.invert([],e);n&&r.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},adff:function(t,e,n){var r=n("1c6a"),i=n("9aa8"),a=n("78ea"),o=n("4875"),s=["zIndex","capture","visible"],u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={},r.extend(u,a);var c={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};function h(t){for(var e=[],n=0;n<t.length;n++)r.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}r.augment(u,i,{isShape:!0,drawInner:function(t){var e=this,n=e._attrs;e.createPath(t);var i=t.globalAlpha;if(e.hasFill()){var a=n.fillOpacity;r.isNil(a)||1===a?t.fill():(t.globalAlpha=a,t.fill(),t.globalAlpha=i)}if(e.hasStroke()){var o=e._attrs.lineWidth;if(o>0){var s=n.strokeOpacity;r.isNil(s)||1===s||(t.globalAlpha=s),t.stroke()}}e.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=this,r=[t,e,1];if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var a=n._attrs.clip;return a?(a.invert(r,n.get("canvas")),!!a.isPointInPath(r[0],r[1])&&n.isPointInPath(r[0],r[1])):n.isPointInPath(r[0],r[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0,n=t.lineWidth||0;return n+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||(t=this.calculateBox(),t&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t},clone:function(){var t=this,e=null,n=t._attrs,i={};return r.each(n,(function(t,e){c[e]&&r.isArray(n[e])?i[e]=h(n[e]):i[e]=n[e]})),e=new t.constructor({attrs:i}),r.each(s,(function(n){e._cfg[n]=t._cfg[n]})),e}}),t.exports=u},b047:function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},b0b3:function(t,e,n){t.exports={Canvas:n("7c2e"),Group:n("5869"),Shape:n("adff"),Arc:n("8563"),Circle:n("24db"),Dom:n("ba6c"),Ellipse:n("b5c7"),Fan:n("964f"),Image:n("c67d"),Line:n("a70c"),Marker:n("188c"),Path:n("d213"),Polygon:n("4ef2"),Polyline:n("321c"),Rect:n("0528"),Text:n("3cbc"),PathSegment:n("4980"),PathUtil:n("4a80"),Event:n("9f57"),EventEmitter:n("51ad"),version:"3.4.10"}},b0b4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("85f2"),i=n.n(r);function a(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),i()(t,r.key,r)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}},b1e5:function(t,e,n){var r=n("a994"),i=1,a=Object.prototype,o=a.hasOwnProperty;function s(t,e,n,a,s,u){var c=n&i,h=r(t),f=h.length,l=r(e),d=l.length;if(f!=d&&!c)return!1;var p=f;while(p--){var g=h[p];if(!(c?g in e:o.call(e,g)))return!1}var v=u.get(t);if(v&&u.get(e))return v==e;var m=!0;u.set(t,e),u.set(e,t);var y=c;while(++p<f){g=h[p];var x=t[g],b=e[g];if(a)var w=c?a(b,x,g,e,t,u):a(x,b,g,t,e,u);if(!(void 0===w?x===b||s(x,b,n,a,u):w)){m=!1;break}y||(y="constructor"==g)}if(m&&!y){var _=t.constructor,M=e.constructor;_==M||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof M&&M instanceof M||(m=!1)}return u["delete"](t),u["delete"](e),m}t.exports=s},b218:function(t,e){var n=9007199254740991;function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}t.exports=r},b4c0:function(t,e,n){var r=n("cb5a");function i(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}t.exports=i},b50e:function(t,e,n){"use strict";var r=n("6f9c"),i=n("17d5").Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(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}function s(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}function u(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)}function c(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)}function h(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,u=t.width/2,c=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(o)*c?(s<0&&(c=-c),n=c*o/s,r=c):(o<0&&(u=-u),n=u,r=u*s/o),{x:i+n,y:a+r}}function f(t){var e=r.map(r.range(g(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e}function l(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)}))}function d(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,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!==0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))}function p(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),a(t,"border",i,e)}function g(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}function v(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function m(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}}function y(t,e){return e()}t.exports={addDummyNode:a,simplify:o,asNonCompoundGraph:s,successorWeights:u,predecessorWeights:c,intersectRect:h,buildLayerMatrix:f,normalizeRanks:l,removeEmptyRanks:d,addBorderNode:p,maxRank:g,partition:v,time:m,notime:y}},b5a7:function(t,e,n){var r=n("0b07"),i=n("2b3e"),a=r(i,"DataView");t.exports=a},b5ae:function(t,e,n){"use strict";n.r(e);var r=n("74f4"),i=function(t,e,n){var i=new r["a"];return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i},a=function(t,e,n){var i=new r["a"],a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?Object(r["b"])():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)};n.d(e,"now",(function(){return r["b"]})),n.d(e,"timer",(function(){return r["c"]})),n.d(e,"timerFlush",(function(){return r["d"]})),n.d(e,"timeout",(function(){return i})),n.d(e,"interval",(function(){return a}))},b5c7:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,u=a>o?1:a/o,c=a>o?o/a:1,h=[1,0,0,0,1,0,0,0,1];r.mat3.scale(h,h,[u,c]),r.mat3.translate(h,h,[n,i]),t.beginPath(),t.save(),t.transform(h[0],h[1],h[3],h[4],h[6],h[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},b760:function(t,e,n){var r=n("872a"),i=n("9638");function a(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}t.exports=a},b8bd:function(t,e){var n={}.toString,r=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")};t.exports=r},b8ce:function(t,e,n){var r=n("3818"),i=4;function a(t){return r(t,i)}t.exports=a},b951:function(t,e,n){const r=n("e00d"),i=n("2599"),{LAYOUT_MESSAGE:a}=i;function o(t){const{type:e}=t.data;return e===a.RUN}function s(t){const{type:e}=t.data;switch(e){case a.RUN:{const{nodes:e,edges:n,layoutCfg:i={}}=t.data,{type:o}=i,s=r[o];if(!s){postMessage({type:a.ERROR,message:`layout ${o} not found`});break}const u=new s(i);u.init({nodes:e,edges:n}),u.execute(),postMessage({type:a.END,nodes:e}),u.destroy();break}default:break}}self.onmessage=t=>{o(t)&&s(t)}},ba03:function(t,e,n){var r=n("1c6a"),i=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",a/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},ba6c:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}}}),t.exports=a},badf:function(t,e,n){var r=n("642a"),i=n("1838"),a=n("cd9d"),o=n("6747"),s=n("f9ce");function u(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?o(t)?i(t[0],t[1]):r(t):s(t)}t.exports=u},bbc0:function(t,e,n){var r=n("6044"),i="__lodash_hash_undefined__",a=Object.prototype,o=a.hasOwnProperty;function s(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return o.call(e,t)?e[t]:void 0}t.exports=s},bcd0:function(t,e,n){const r=n("1249");n("9dfc"),n("a7b2"),n("bcd6"),n("0e3c"),t.exports=r},bcd6:function(t,e,n){n("4883"),n("27998"),n("3494"),n("fc14"),n("3a95"),n("7493"),n("9d1d"),n("ec19")},bda5:function(t,e){var n=180/Math.PI,r=function(t){return n*t};t.exports=r},bfa1:function(t,e,n){var r=n("1c6a"),i=n("6ad1"),a=n("0eee"),o=n("ba03"),s=n("9edc"),u=n("5a21"),c=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},e.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},e.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},e.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new o(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},e.addGradient=function(t){var e=new i(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addArrow=function(t,e){var n=new o(t,e);return this.el.appendChild(n.el),n.id},e.addShadow=function(t){var e=new a(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addClip=function(t){var e=new s(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=c},bfc7:function(t,e,n){var r=n("5c69"),i=n("100e"),a=n("2c66"),o=n("dcbe"),s=i((function(t){return a(r(t,1,o,!0))}));t.exports=s},c02a:function(t,e,n){const{groupBy:r,isString:i}=n("2ef0"),a=n("b0b3"),o=a.EventEmitter,s=n("1bb5"),u=n("9ed2"),c=n("9507"),h="node",f="edge";class l extends o{getDefaultCfg(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",mode:[],plugins:[],data:null,fitViewPadding:10,minZoom:.2,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:null,duration:500,easing:"easeLinear"},callback:null,groupType:"circle",groupBBoxs:{},groupNodes:{},groups:[],groupStyle:{}}}constructor(t){super(),this._cfg=s.deepMix(this.getDefaultCfg(),t),this._init()}_init(){this._initCanvas();const t=new c.Event(this),e=new c.View(this),n=new c.Mode(this),r=new c.Item(this),i=new c.State(this),a=new c.Layout(this),o=new c.CustomGroup(this);this.set({eventController:t,viewController:e,modeController:n,itemController:r,stateController:i,customGroupControll:o,layoutController:a}),this._initPlugins()}_initCanvas(){let t=this.get("container");if(s.isString(t)&&(t=document.getElementById(t),this.set("container",t)),!t)throw Error("invalid container");const e=new a.Canvas({containerDOM:t,width:this.get("width"),height:this.get("height"),renderer:this.get("renderer"),pixelRatio:this.get("pixelRatio")});this.set("canvas",e),this._initGroups()}_initGroups(){const t=this.get("canvas"),e=this.get("canvas").get("el").id,n=t.addGroup({id:e+"-root",className:u.rootContainerClassName});if(this.get("groupByTypes")){const t=n.addGroup({id:e+"-edge",className:u.edgeContainerClassName}),r=n.addGroup({id:e+"-node",className:u.nodeContainerClassName}),i=n.addGroup({id:e+"-delagate",className:u.delegateContainerClassName}),a=n.addGroup({id:e+"-group",className:u.customGroupContainerClassName});a.toBack(),this.set({nodeGroup:r,edgeGroup:t,customGroup:a,delegateGroup:i})}this.set("group",n)}_initPlugins(){const t=this;s.each(t.get("plugins"),e=>{!e.destroyed&&e.initPlugin&&e.initPlugin(t)})}get(t){return this._cfg[t]}set(t,e){return s.isPlainObject(t)?this._cfg=s.mix({},this._cfg,t):this._cfg[t]=e,this}update(t,e){this.updateItem(t,e)}updateItem(t,e){this.get("itemController").updateItem(t,e)}setItemState(t,e,n){s.isString(t)&&(t=this.findById(t)),this.get("itemController").setItemState(t,e,n),this.get("stateController").updateState(t,e,n)}clearItemStates(t,e){s.isString(t)&&(t=this.findById(t)),this.get("itemController").clearItemStates(t,e),e||(e=t.get("states")),this.get("stateController").updateStates(t,e,!1)}add(t,e){return this.addItem(t,e)}addItem(t,e){if("group"===t){const{groupId:t,nodes:n,type:r,zIndex:a,title:o}=e;let s=o;return i(o)&&(s={text:o}),this.get("customGroupControll").create(t,n,r,a,!0,s)}return this.get("itemController").addItem(t,e)}remove(t){this.removeItem(t)}removeItem(t){let e=null;s.isString(t)&&(e=this.findById(t)),!e&&s.isString(t)?this.get("customGroupControll").remove(t):this.get("itemController").removeItem(t)}data(t){this.set("data",t)}node(t){"function"===typeof t&&this.set("nodeMapper",t)}edge(t){"function"===typeof t&&this.set("edgeMapper",t)}refreshItem(t){this.get("itemController").refreshItem(t)}refresh(){const t=this,e=t.get("autoPaint");if(t.setAutoPaint(!1),t.emit("beforegraphrefresh"),t.get("animate"))t.positionsAnimate();else{const e=t.get("nodes"),n=t.get("edges");s.each(e,t=>{t.refresh()}),s.each(n,t=>{t.refresh()})}t.setAutoPaint(e),t.emit("aftergraphrefresh"),t.autoPaint()}refreshPositions(){const t=this;t.emit("beforegraphrefreshposition");const e=t.get("nodes"),n=t.get("edges");let r;s.each(e,t=>{r=t.getModel(),t.updatePosition(r)}),s.each(n,t=>{t.refresh()}),t.emit("aftergraphrefreshposition"),t.autoPaint()}render(){const t=this,e=this.get("data");if(!e)throw new Error("data must be defined first");this.clear(),this.emit("beforerender");const n=this.get("autoPaint");if(this.setAutoPaint(!1),s.each(e.nodes,e=>{t.add(h,e)}),s.each(e.edges,e=>{t.add(f,e)}),e.nodes){const n=e.nodes.filter(t=>t.groupId);if(n.length>0){const n=t.get("groupType");this.renderCustomGroup(e,n)}}if(!this.get("groupByTypes"))if(e.nodes.length<e.edges.length){const t=this.getNodes();t.forEach(t=>{t.toFront()})}else{const t=this.getEdges();t.forEach(t=>{t.toBack()})}const r=t.get("layoutController");function i(){t.get("fitView")&&t.get("viewController")._fitView(),t.paint(),t.setAutoPaint(n),t.emit("afterrender")}r.layout(i)||i()}renderCustomGroup(t,e){const{groups:n,nodes:i}=t;let a=10;if(n){this.set({groups:n});const r=s.getAllNodeInGroups(t);for(const t in r){const n=r[t];this.get("customGroupControll").create(t,n,e,a),a--}const i=this.get("customGroup");i.sort()}else{const t=i.filter(t=>t.groupId),n=[],o=r(t,"groupId");for(const r in o){const t=o[r].map(t=>t.id);this.get("customGroupControll").create(r,t,e,a),a--,n.find(t=>t.id===r)||n.push({id:r})}this.set({groups:n})}}read(t){this.data(t),this.render()}changeData(t){const e=this;if(!t)return this;e.get("data")||(e.data(t),e.render());const n=this.get("autoPaint"),r=this.get("itemMap"),i={nodes:[],edges:[]};this.setAutoPaint(!1),this._diffItems(h,i,t.nodes),this._diffItems(f,i,t.edges),s.each(r,(t,n)=>{i.nodes.indexOf(t)<0&&i.edges.indexOf(t)<0&&(delete r[n],e.remove(t))}),this.set({nodes:i.nodes,edges:i.edges});const a=this.get("layoutController");return a.changeData(),this.setAutoPaint(n),this}_diffItems(t,e,n){const r=this;let i;const a=this.get("itemMap");s.each(n,n=>{if(i=a[n.id],i){if(r.get("animate")&&t===h){const t=i.getContainer().getMatrix();i.set("originAttrs",{x:t[6],y:t[7]})}r.updateItem(i,n)}else i=r.addItem(t,n);e[t+"s"].push(i)})}paint(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")}autoPaint(){this.get("autoPaint")&&this.paint()}save(){const t=[],e=[];return s.each(this.get("nodes"),e=>{t.push(e.getModel())}),s.each(this.get("edges"),t=>{e.push(t.getModel())}),{nodes:t,edges:e,groups:this.get("groups")}}changeSize(t,e){return this.get("viewController").changeSize(t,e),this.autoPaint(),this}translate(t,e){const n=this.get("group");n.translate(t,e),this.emit("viewportchange",{action:"translate",matrix:n.getMatrix()}),this.autoPaint()}moveTo(t,e){const n=this.get("group");n.move(t,e),this.emit("viewportchange",{action:"move",matrix:n.getMatrix()}),this.autoPaint()}fitView(t){t&&this.set("fitViewPadding",t),this.get("viewController")._fitView(),this.paint()}addBehaviors(t,e){return this.get("modeController").manipulateBehaviors(t,e,!0),this}removeBehaviors(t,e){return this.get("modeController").manipulateBehaviors(t,e,!1),this}setMode(t){return this.set("mode",t),this.get("modeController").setMode(t),this}getCurrentMode(){return this.get("mode")}getZoom(){return this.get("group").getMatrix()[0]}getNodes(){return this.get("nodes")}getEdges(){return this.get("edges")}zoom(t,e){const n=s.clone(this.get("group").getMatrix()),r=this.get("minZoom"),i=this.get("maxZoom");e?(s.mat3.translate(n,n,[-e.x,-e.y]),s.mat3.scale(n,n,[t,t]),s.mat3.translate(n,n,[e.x,e.y])):s.mat3.scale(n,n,[t,t]),r&&n[0]<r||i&&n[0]>i||(this.get("group").setMatrix(n),this.emit("viewportchange",{action:"zoom",matrix:n}),this.autoPaint())}zoomTo(t,e){const n=t/this.getZoom();this.zoom(n,e)}positionsAnimate(){const t=this;t.emit("beforeanimate");const e=t.get("animateCfg"),n=e.onFrame,r=t.getNodes(),i=r.map(t=>{const e=t.getModel();return{id:e.id,x:e.x,y:e.y}});t.isAnimating()&&t.stopAnimate(),t.get("canvas").animate({onFrame(e){s.each(i,r=>{const i=t.findById(r.id);if(!i||i.destroyed)return;let a=i.get("originAttrs");const o=i.get("model");if(!a){const t=i.getContainer().getMatrix();a={x:t[6],y:t[7]},i.set("originAttrs",a)}if(n){const t=n(i,e,r,a);i.set("model",s.mix(o,t))}else o.x=a.x+(r.x-a.x)*e,o.y=a.y+(r.y-a.y)*e}),t.refreshPositions()}},e.duration,e.easing,()=>{s.each(r,t=>{t.set("originAttrs",null)}),e.callback&&e.callback(),t.emit("afteranimate"),t.animating=!1})}stopAnimate(){this.get("canvas").stopAnimate()}isAnimating(){return this.animating}focusItem(t){this.get("viewController").focus(t),this.autoPaint()}getPointByClient(t,e){return this.get("viewController").getPointByClient(t,e)}getClientByPoint(t,e){return this.get("viewController").getClientByPoint(t,e)}getPointByCanvas(t,e){return this.get("viewController").getPointByCanvas(t,e)}getCanvasByPoint(t,e){return this.get("viewController").getCanvasByPoint(t,e)}showItem(t){this.get("itemController").changeItemVisibility(t,!0)}hideItem(t){this.get("itemController").changeItemVisibility(t,!1)}findById(t){return this.get("itemMap")[t]}find(t,e){let n;const r=this.get(t+"s");return s.each(r,(t,r)=>{if(e(t,r))return n=t,!1}),n}findAll(t,e){const n=[];return s.each(this.get(t+"s"),(t,r)=>{e(t,r)&&n.push(t)}),n}findAllByState(t,e){return this.findAll(t,t=>t.hasState(e))}setAutoPaint(t){this.set("autoPaint",t)}toDataURL(){const t=this.get("canvas"),e=t.getRenderer(),n=t.get("el");let r="";if("svg"===e){const t=n.cloneNode(!0),e=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),i=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",e);i.replaceChild(t,i.documentElement);const a=(new XMLSerializer).serializeToString(i);r="data:image/svg+xml;charset=utf8,"+encodeURIComponent(a)}else"canvas"===e&&(r=n.toDataURL("image/png"));return r}downloadImage(t){const e=this;e.isAnimating()&&e.stopAnimate();const n=e.get("canvas"),r=n.getRenderer(),i=(t||"graph")+("svg"===r?".svg":".png"),a=document.createElement("a");setTimeout(()=>{const t=e.toDataURL();if("undefined"!==typeof window)if(window.Blob&&window.URL&&"svg"!==r){const e=t.split(","),n=e[0].match(/:(.*?);/)[1],r=atob(e[1]);let o=r.length;const s=new Uint8Array(o);while(o--)s[o]=r.charCodeAt(o);const u=new Blob([s],{type:n});window.navigator.msSaveBlob?window.navigator.msSaveBlob(u,i):a.addEventListener("click",(function(){a.download=i,a.href=window.URL.createObjectURL(u)}))}else a.addEventListener("click",(function(){a.download=i,a.href=t}));const n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),a.dispatchEvent(n)},16)}addPlugin(t){const e=this;t.destroyed||(e.get("plugins").push(t),t.initPlugin(e))}removePlugin(t){const e=this.get("plugins"),n=e.indexOf(t);n>=0&&(t.destroyPlugin(),e.splice(n,1))}updateLayout(t){const e=this.get("layoutController");let n;s.isString(t)?(n=t,t={type:n}):n=t.type;const r=this.get("layout"),i=r?r.type:void 0;if(n&&i!==n)this.set("layout",t),e.changeLayout(n);else{const n={};s.mix(n,r,t),n.type=i||"random",this.set("layout",n),e.updateLayoutCfg(n)}}layout(){const t=this.get("layoutController"),e=this.get("layout");e.workerEnabled?t.layout():t.layoutMethod?t.relayout():t.layout()}clear(){const t=this.get("canvas");return t.clear(),this._initGroups(),this.set({itemMap:{},nodes:[],edges:[],groups:[]}),this}destroy(){this.clear(),s.each(this.get("plugins"),t=>{t.destroyPlugin()}),this.get("eventController").destroy(),this.get("itemController").destroy(),this.get("modeController").destroy(),this.get("viewController").destroy(),this.get("stateController").destroy(),this.get("layoutController").destroy(),this.get("customGroupControll").destroy(),this.get("canvas").destroy(),this._cfg=null,this.destroyed=!0}collapseGroup(t){this.get("customGroupControll").collapseGroup(t)}expandGroup(t){this.get("customGroupControll").expandGroup(t)}}t.exports=l},c05f:function(t,e,n){var r=n("7b97"),i=n("1310");function a(t,e,n,o,s){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:r(t,e,n,o,a,s))}t.exports=a},c077:function(t,e,n){const r=n("4651");r.registerLayout("random",{getDefaultCfg(){return{center:[0,0],height:300,width:300}},execute(){const t=this,e=t.nodes,n=.9,r=t.center;let i=t.width;i||"undefined"===typeof window||(i=window.innerWidth);let a=t.height;a||"undefined"===typeof a||(a=window.innerHeight),e.forEach(t=>{t.x=(Math.random()-.5)*n*i+r[0],t.y=(Math.random()-.5)*n*a+r[1]})}})},c0983:function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(t,e){var i=typeof t;return e=null==e?n:e,!!e&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}t.exports=i},c138:function(t,e,n){const r=n("e877"),i=.001,a={isBetween(t,e,n){return t>=e&&t<=n},getLineIntersect(t,e,n,r){const o={x:n.x-t.x,y:n.y-t.y},s={x:e.x-t.x,y:e.y-t.y},u={x:r.x-n.x,y:r.y-n.y},c=s.x*u.y-s.y*u.x,h=c*c,f=s.x*s.x+s.y*s.y,l=u.x*u.x+u.y*u.y;let d=null;if(h>i*f*l){const e=(o.x*u.y-o.y*u.x)/c,n=(o.x*s.y-o.y*s.x)/c;a.isBetween(e,0,1)&&a.isBetween(n,0,1)&&(d={x:t.x+e*s.x,y:t.y+e*s.y})}return d},getRectIntersectByPoint(t,e){const{x:n,y:r,width:i,height:o}=t,s=n+i/2,u=r+o/2,c=[],h={x:s,y:u};c.push({x:n,y:r}),c.push({x:n+i,y:r}),c.push({x:n+i,y:r+o}),c.push({x:n,y:r+o}),c.push({x:n,y:r});let f=null;for(let l=1;l<c.length;l++)if(f=a.getLineIntersect(c[l-1],c[l],h,e),f)break;return f},getCircleIntersectByPoint(t,e){const n=t.x,r=t.y,i=t.r,{x:a,y:o}=e,s=Math.sqrt(Math.pow(a-n,2)+Math.pow(o-r,2));if(s<i)return null;const u=a-n,c=o-r,h=Math.sign(u),f=Math.sign(c),l=Math.atan(c/u);return{x:n+Math.abs(i*Math.cos(l))*h,y:r+Math.abs(i*Math.sin(l))*f}},getEllispeIntersectByPoint(t,e){const n=t.rx,r=t.ry,i=t.x,a=t.y,o=e.x-i,s=e.y-a;let u=Math.atan2(s/r,o/n);return u<0&&(u+=2*Math.PI),{x:i+n*Math.cos(u),y:a+r*Math.sin(u)}},applyMatrix(t,e,n=1){const i=[t.x,t.y,n];return r.vec3.transformMat3(i,i,e),{x:i[0],y:i[1]}},invertMatrix(t,e,n=1){const i=r.mat3.invert([],e),a=[t.x,t.y,n];return r.vec3.transformMat3(a,a,i),{x:a[0],y:a[1]}},isConnected(t){if(t.length>0)for(let e=0;e<t[0].length;e++)if(t[0][e]===1/0)return!1;return!0},randomInitPos(t,e=[0,1],n=[0,1]){const r=[];for(let i=0;i<t;i++){const t=Math.random()*(e[1]-e[0])+e[0],i=Math.random()*(n[1]-n[0])+n[0];r.push([t,i])}return r},getCircleCenterByPoints(t,e,n){const r=t.x-e.x,i=t.y-e.y,a=t.x-n.x,o=t.y-n.y,s=(t.x*t.x-e.x*e.x-e.y*e.y+t.y*t.y)/2,u=(t.x*t.x-n.x*n.x-n.y*n.y+t.y*t.y)/2,c=i*a-r*o;return{x:-(o*s-i*u)/c,y:-(r*u-a*s)/c}},distance(t,e){const n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}};t.exports=r.mix({},r,a)},c15b:function(t,e,n){var r=n("00d0"),i=function(t){return r(t,"Boolean")};t.exports=i},c1c9:function(t,e,n){var r=n("a454"),i=n("f3c1"),a=i(r);t.exports=a},c2b6:function(t,e,n){var r=n("f8af"),i=n("5d89"),a=n("6f6c"),o=n("a2db"),s=n("c8fe"),u="[object Boolean]",c="[object Date]",h="[object Map]",f="[object Number]",l="[object RegExp]",d="[object Set]",p="[object String]",g="[object Symbol]",v="[object ArrayBuffer]",m="[object DataView]",y="[object Float32Array]",x="[object Float64Array]",b="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",M="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",A="[object Uint32Array]";function P(t,e,n){var P=t.constructor;switch(e){case v:return r(t);case u:case c:return new P(+t);case m:return i(t,n);case y:case x:case b:case w:case _:case M:case S:case k:case A:return s(t,n);case h:return new P;case f:case p:return new P(t);case l:return a(t);case d:return new P;case g:return o(t)}}t.exports=P},c396:function(t,e,n){const r=n("1bb5");class i{constructor(t){this.graph=t}getFormatPadding(){return r.formatPadding(this.graph.get("fitViewPadding"))}_fitView(){const t=this.getFormatPadding(),e=this.graph,n=e.get("group"),r=e.get("width"),i=e.get("height");n.resetMatrix();const a=n.getBBox(),o=this._getViewCenter(),s={x:a.x+a.width/2,y:a.y+a.height/2};e.translate(o.x-s.x,o.y-s.y);const u=(r-t[1]-t[3])/a.width,c=(i-t[0]-t[2])/a.height;let h=u;u>c&&(h=c),e.zoom(h,o)}focusPoint(t){const e=this._getViewCenter(),n=this.getPointByCanvas(e.x,e.y),r=this.graph.get("group").getMatrix();this.graph.translate((n.x-t.x)*r[0],(n.y-t.y)*r[4])}getPointByClient(t,e){const n=this.graph.get("canvas"),r=n.get("pixelRatio"),i=n.getPointByClient(t,e);return this.getPointByCanvas(i.x/r,i.y/r)}getClientByPoint(t,e){const n=this.graph.get("canvas"),r=this.getCanvasByPoint(t,e),i=n.get("pixelRatio"),a=n.getClientByPoint(r.x*i,r.y*i);return{x:a.clientX,y:a.clientY}}getPointByCanvas(t,e){const n=this.graph.get("group").getMatrix(),i=r.invertMatrix({x:t,y:e},n);return i}getCanvasByPoint(t,e){const n=this.graph.get("group").getMatrix();return r.applyMatrix({x:t,y:e},n)}focus(t){if(r.isString(t)&&(t=this.graph.findById(t)),t){const e=t.get("group").getMatrix();this.focusPoint({x:e[6],y:e[7]})}}changeSize(t,e){if(!r.isNumber(t)||!r.isNumber(e))throw Error("invalid canvas width & height");const n=this.graph;n.set({width:t,height:e});const i=this.graph.get("canvas");i.changeSize(t,e)}_getViewCenter(){const t=this.getFormatPadding(),e=this.graph,n=this.graph.get("width"),r=e.get("height");return{x:(n-t[2]-t[3])/2+t[3],y:(r-t[0]-t[2])/2+t[0]}}destroy(){this.graph=null,this.destroyed=!0}}t.exports=i},c3cd:function(t,e){t.exports="2.1.8"},c3fc:function(t,e,n){var r=n("42a2"),i=n("1310"),a="[object Set]";function o(t){return i(t)&&r(t)==a}t.exports=o},c424:function(t,e,n){const r=n("1bb5"),i={registerBehavior:function(t,e){if(!e)throw new Error("please specify handler for this behavior:"+t);const n=function(t){const e=this;r.mix(e,e.getDefaultCfg(),t);const n=e.getEvents();if(n){const t={};r.each(n,(n,i)=>{t[i]=r.wrapBehavior(e,n)}),this._events=t}};r.augment(n,{shouldBegin(){return!0},shouldUpdate(){return!0},shouldEnd(){return!0},getEvents(){},bind(t){const e=this._events;this.graph=t,r.each(e,(e,n)=>{t.on(n,e)})},unbind(t){const e=this._events;r.each(e,(e,n)=>{t.off(n,e)})},get(t){return this[t]},set(t,e){return this[t]=e,this},getDefaultCfg(){}},e),i[t]=n},hasBehavior:function(t){return!!i[t]},getBehavior:function(t){return i[t]}};t.exports=i},c4bc:function(t,e,n){var r=n("1c6a").vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var c=[a-t,o-e];return Math.abs(r.dot(c,u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r);return{minX:o-a,minY:u-a,maxX:s+a,maxY:c+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},c4be:function(t,e){var n=1e-5;t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;return Math.abs(t-e)<r}},c584:function(t,e){function n(t,e){return t.has(e)}t.exports=n},c5a2:function(t,e,n){var r=n("6ac0"),i=n("48a0"),a=n("badf"),o=n("58f7"),s=n("6747");function u(t,e,n){var u=s(t)?r:o,c=arguments.length<3;return u(t,a(e,4),n,c,i)}t.exports=u},c641:function(t,e,n){t.exports=n("6cd4")},c67d:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y,r=t.width,i=t.height;return{minX:e,minY:n,maxX:e+r,maxY:n+i}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,c=e.sy,h=e.swidth,f=e.sheight;this.set("toDraw",!1);var l=a;if(l instanceof ImageData&&(l=new Image,l.src=a),l instanceof Image||l instanceof HTMLElement&&r.isString(l.nodeName)&&"CANVAS"===l.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(c)||r.isNil(h)||r.isNil(f))return void t.drawImage(l,n,i,o,s);if(!r.isNil(u)&&!r.isNil(c)&&!r.isNil(h)&&!r.isNil(f))return void t.drawImage(l,u,c,h,f,n,i,o,s)}}}),t.exports=a},c6cf:function(t,e,n){var r=n("4d8c"),i=n("2286"),a=n("c1c9");function o(t){return a(i(t,void 0,r),t+"")}t.exports=o},c707:function(t,e,n){var r=n("5c69"),i=n("6a5c"),a=n("100e"),o=n("9aff"),s=a((function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},c869:function(t,e,n){var r=n("0b07"),i=n("2b3e"),a=r(i,"Set");t.exports=a},c87c:function(t,e){var n=Object.prototype,r=n.hasOwnProperty;function i(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}t.exports=i},c8fe:function(t,e,n){var r=n("f8af");function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}t.exports=i},c9ca:function(t,e,n){var r=n("ef5d"),i=r("length");t.exports=i},ca88:function(t,e){var n="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},r=function(t){return"object"===("undefined"===typeof t?"undefined":n(t))&&null!==t};t.exports=r},cae7:function(t,e,n){var r=n("ffd6");function i(t,e){if(t!==e){var n=void 0!==t,i=null===t,a=t===t,o=r(t),s=void 0!==e,u=null===e,c=e===e,h=r(e);if(!u&&!h&&!o&&t>e||o&&s&&c&&!u&&!h||i&&s&&c||!n&&c||!a)return 1;if(!i&&!o&&!h&&t<e||h&&n&&a&&!i&&!o||u&&n&&a||!s&&a||!c)return-1}return 0}t.exports=i},cb5a:function(t,e,n){var r=n("9638");function i(t,e){var n=t.length;while(n--)if(r(t[n][0],e))return n;return-1}t.exports=i},cba2:function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var i=n("1c6a"),a={delay:"delay",repeat:"repeat",rotate:"rotate"};function o(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}function s(t,e){var n={matrix:null,attrs:{}},r=e._attrs;for(var o in t)"transform"===o?n.matrix=i.transform(e.getMatrix(),t[o]):"matrix"===o?n.matrix=t[o]:i.isColorProp(o)&&i.isGradientColor(t[o])?n.attrs[o]=t[o]:a[o]||r[o]===t[o]||("rotate"===o&&(e._attrs.rotate=e._attrs.rotate||0),n.attrs[o]=t[o]);return n}function u(t,e){if(e.onFrame)return t;var n=e.delay,r=Object.prototype.hasOwnProperty;return i.each(e.toAttrs,(function(e,a){i.each(t,(function(t){n<t.startTime+t.duration&&r.call(t.toAttrs,a)&&(delete t.toAttrs[a],delete t.fromAttrs[a])}))})),e.toMatrix&&i.each(t,(function(t){n<t.startTime+t.duration&&t.toMatrix&&delete t.toMatrix})),t}t.exports={animate:function(t,e,n,a,c){void 0===c&&(c=0);var h=this;h.set("animating",!0);var f=h.get("timeline");f||(f=h.get("canvas").get("timeline"),h.setSilent("timeline",f));var l=h.get("animators")||[];f._timer||f.initTimer(),i.isNumber(a)&&(c=a,a=null),i.isFunction(n)?(a=n,n="easeLinear"):n=n||"easeLinear";var d={repeat:t.repeat,duration:e,easing:n,callback:a,delay:c,startTime:f.getTime(),id:i.uniqueId()};if(t.onFrame)d.onFrame=t.onFrame;else{var p=s(t,h);d=r({fromAttrs:o(p,h),toAttrs:p.attrs,fromMatrix:i.clone(h.getMatrix()),toMatrix:p.matrix},d)}l.length>0?l=u(l,d):f.addAnimator(h),l.push(d),h.setSilent("animators",l),h.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");i.each(e,(function(e){t.attr(e.toAttrs||e.onFrame(1)),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this,e=t.get("timeline");return t.setSilent("pause",{isPaused:!0,pauseTime:e.getTime()}),t},resumeAnimate:function(){var t=this,e=t.get("timeline"),n=e.getTime(),r=t.get("animators"),a=t.get("pause").pauseTime;return i.each(r,(function(t){t.startTime=t.startTime+(n-a),t._paused=!1,t._pauseTime=null})),t.setSilent("pause",{isPaused:!1}),t.setSilent("animators",r),t}}},cc45:function(t,e,n){var r=n("1a2d"),i=n("b047"),a=n("99d3"),o=a&&a.isMap,s=o?i(o):r;t.exports=s},ce86:function(t,e,n){var r=n("9e69"),i=n("7948"),a=n("6747"),o=n("ffd6"),s=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;function h(t){if("string"==typeof t)return t;if(a(t))return i(t,h)+"";if(o(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}t.exports=h},cfa7:function(t,e,n){var r=n("33de");function i(t){var e=0,n=[],i={},a=[];function o(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)):(o(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var c,h=[];do{c=n.pop(),i[c].onStack=!1,h.push(c)}while(s!==c);a.push(h)}}return t.nodes().forEach((function(t){r.has(i,t)||o(t)})),a}t.exports=i},d02c:function(t,e,n){var r=n("5e2e"),i=n("79bc"),a=n("7b83"),o=200;function s(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<o-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(t,e),this.size=n.size,this}t.exports=s},d213:function(t,e,n){var r=n("1c6a"),i=n("adff"),a=n("4980"),o=n("78af"),s=n("5134"),u=n("4a80"),c=n("7dec"),h=function t(e){t.superclass.constructor.call(this,e)};h.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(h,i),r.augment(h,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){var e=this;if(r.isNil(t))return e.setSilent("segments",null),void e.setSilent("box",void 0);var n,i=o.parsePath(t),s=[];if(r.isArray(i)&&0!==i.length&&("M"===i[0][0]||"m"===i[0][0])){for(var u=i.length,c=0;c<i.length;c++){var h=i[c];n=new a(h,n,c===u-1),s.push(n)}e.setSilent("segments",s),e.setSilent("tCache",null),e.setSilent("totalLength",null),e.setSilent("box",null)}},calculateBox:function(){var t=this,e=t.get("segments");if(!e)return null;var n=this.getHitLineWidth(),i=1/0,a=-1/0,o=1/0,s=-1/0;return r.each(e,(function(t){t.getBBox(n);var e=t.box;e&&(e.minX<i&&(i=e.minX),e.maxX>a&&(a=e.maxX),e.minY<o&&(o=e.minY),e.maxY>s&&(s=e.maxY))})),i===1/0||o===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:i,minY:o,maxX:a,maxY:s}},_setTcache:function(){var t,e,n,i,a=0,o=0,s=[],u=this._cfg.curve;u&&(r.each(u,(function(t,e){n=u[e+1],i=t.length,n&&(a+=c.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),this._cfg.totalLength=a,0!==a?(r.each(u,(function(r,h){n=u[h+1],i=r.length,n&&(t=[],t[0]=o/a,e=c.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))})),this._cfg.tCache=s):this._cfg.tCache=[])},getTotalLength:function(){var t=this.get("totalLength");return r.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},_calculateCurve:function(){var t=this,e=t._attrs,n=e.path;this._cfg.curve=u.pathTocurve(n)},getStartTangent:function(){var t,e,n,i,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([t.x-o[0],t.y-o[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,i=[],r.isFunction(n)){var s=n();i.push([e.x-s[0],e.y-s[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i||0===i.length)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,u=a[n+1];return{x:c.at(o[s-2],u[1],u[3],u[5],1-e),y:c.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this,n=e._attrs,i=e.get("segments");if(r.isArray(i)){var a=i.length;if(0!==a){if(t=t||e.get("context"),t.beginPath(),n.startArrow&&n.startArrow.d){var o=e.getStartTangent(),u=s.getShortenOffset(o[0][0],o[0][1],o[1][0],o[1][1],n.startArrow.d);i[0].shortenDraw(t,u.dx,u.dy)}else i[0].draw(t);for(var c=1;c<a-2;c++)i[c].draw(t);if(n.endArrow&&n.endArrow.d){var h=e.getEndTangent(),f=s.getShortenOffset(h[0][0],h[0][1],h[1][0],h[1][1],n.endArrow.d),l=i[a-1];"Z"===l.command.toUpperCase()?(i[a-2]&&i[a-2].shortenDraw(t,f.dx,f.dy),l.draw(t)):(a>2&&i[a-2].draw(t),l.shortenDraw(t,f.dx,f.dy))}else i[a-2]&&i[a-2].draw(t),i[a-1].draw(t)}}},afterPath:function(t){var e=this,n=e._attrs,i=e.get("segments"),a=n.path;if(t=t||e.get("context"),r.isArray(i)&&1!==i.length&&(n.startArrow||n.endArrow)&&"z"!==a[a.length-1]&&"Z"!==a[a.length-1]&&!n.fill){var o=e.getStartTangent();s.addStartArrow(t,n,o[0][0],o[0][1],o[1][0],o[1][1]);var u=e.getEndTangent();s.addEndArrow(t,n,u[0][0],u[0][1],u[1][0],u[1][1])}}}),t.exports=h},d225:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},d285:function(t,e){var n="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},r=function(t){var e="undefined"===typeof t?"undefined":n(t);return null!==t&&"object"===e||"function"===e};t.exports=r},d312:function(t,e,n){var r=n("a473"),i=n("33de");function a(t,e,n){return i.transform(t.nodes(),(function(i,a){i[a]=r(t,a,e,n)}),{})}t.exports=a},d327:function(t,e){function n(){return[]}t.exports=n},d33f:function(t,e,n){const r=n("1249"),i=n("1bb5"),a=n("0acb"),o=n("9ed2"),s="-shape",u="-label";r.registerEdge("polyline",{options:{color:"#999",style:{stroke:"#333",lineWidth:1,radius:0,offset:5,x:0,y:0},labelCfg:{style:{fill:"#595959"}},stateStyles:{hover:{lineWidth:3},selected:{lineWidth:5}}},shapeType:"polyline",labelPosition:"center",drawShape(t,e){const n=this.getShapeStyle(t),r=e.addShape("path",{className:"edge-shape",attrs:n});return r},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,a={stroke:t.color},s=i.deepMix({},n,r,a,t.style);t=this.getPathPoints(t),this.radius=s.radius,this.offset=s.offset;const u=t.startPoint,c=t.endPoint,h=this.getControlPoints(t);let f=[u];h&&(f=f.concat(h)),f.push(c);const l=t.sourceNode,d=t.targetNode;let p={radius:s.radius};h||(p={source:l,target:d,offset:s.offset,radius:s.radius});const g=this.getPath(f,p),v=i.deepMix({},o.defaultEdge.style,s,{lineWidth:t.size},{path:g});return v},getPath(t,e){const{source:n,target:r,offset:o,radius:s}=e;if(!o){let e=[];return s?e=a.getPathWithBorderRadiusByPolyline(t,s):i.each(t,(t,n)=>{0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e}if(s){const e=a.simplifyPolyline(a.getPolylinePoints(t[0],t[t.length-1],n,r,o));return a.getPathWithBorderRadiusByPolyline(e,s)}const u=a.getPolylinePoints(t[0],t[t.length-1],n,r,o);return i.pointsToPolygon(u)},update(t,e){const n=e.getContainer(),r=this.itemType+s,a=n.findByClassName(r);t.style||(t.style={});const o=a.attr();t.style.radius=t.style.radius||o.radius,t.style.offset=t.style.offset||o.offset;const c=this.getShapeStyle(t);a.attr(c);const h=this.itemType+u,f=n.findByClassName(h);if(t.label)if(f){const{labelCfg:e}=this.options,{labelCfg:r}=this.getCustomConfig(t)||{},a=i.deepMix({},e,r,t.labelCfg),o=this.getLabelStyle(t,a,n);f.resetMatrix(),f.attr(o)}else{const e=this.drawLabel(t,n);e.set("className",h)}else f&&f.remove()}},"single-line")},d370:function(t,e,n){var r=n("253c"),i=n("1310"),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},d4b2:function(t,e){function n(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}t.exports=n},d4f3:function(t,e,n){var r=n("6f9c");function i(t,e,n){var i,a={};r.forEach(n,(function(n){var r,o,s=t.parent(n);while(s){if(r=t.parent(s),r?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}}))}t.exports=i},d612:function(t,e,n){var r=n("7b83"),i=n("7ed2"),a=n("dc0f");function o(t){var e=-1,n=null==t?0:t.length;this.__data__=new r;while(++e<n)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,t.exports=o},d623:function(t,e,n){var r=n("03dd"),i=n("42a2"),a=n("30c9"),o=n("e2a0"),s=n("6751"),u="[object Map]",c="[object Set]";function h(t){if(null==t)return 0;if(a(t))return o(t)?s(t):t.length;var e=i(t);return e==u||e==c?t.size:r(t).length}t.exports=h},d63e:function(t,e){var n=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};t.exports=n},d70d:function(t,e){function n(t,e,n){var r=-1,i=t.length,a=e.length,o={};while(++r<i){var s=r<a?e[r]:void 0;n(o,t[r],s)}return o}t.exports=n},d780:function(t,e,n){"use strict";var r=n("6f9c");function i(t,e){for(var n=0,r=1;r<e.length;++r)n+=a(t,e[r-1],e[r]);return n}function a(t,e,n){var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),a=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),o=1;while(o<n.length)o<<=1;var s=2*o-1;o-=1;var u=r.map(new Array(s),(function(){return 0})),c=0;return r.forEach(a.forEach((function(t){var e=t.pos+o;u[e]+=t.weight;var n=0;while(e>0)e%2&&(n+=u[e+1]),e=e-1>>1,u[e]+=t.weight;c+=t.weight*n}))),c}t.exports=i},d7ee:function(t,e,n){var r=n("c3fc"),i=n("b047"),a=n("99d3"),o=a&&a.isSet,s=o?i(o):r;t.exports=s},d89f:function(t,e,n){t.exports={components:n("e44a"),dijkstra:n("a473"),dijkstraAll:n("d312"),findCycles:n("ddac"),floydWarshall:n("6736"),isAcyclic:n("43e8"),postorder:n("4f17"),preorder:n("aaf9"),prim:n("61e9"),tarjan:n("cfa7"),topsort:n("8185")}},d9a8:function(t,e){function n(t){return t!==t}t.exports=n},d9f3:function(t,e,n){"use strict";var r=n("6f9c");function i(t,e){var n={};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]))}));var i=r.filter(n,(function(t){return!t.indegree}));return a(i)}function a(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&o(t,e)}}function i(e){return function(n){n["in"].push(e),0===--n.indegree&&t.push(n)}}while(t.length){var a=t.pop();e.push(a),r.forEach(a["in"].reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}function o(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.exports=i},da03:function(t,e,n){var r=n("2b3e"),i=r["__core-js_shared__"];t.exports=i},da0a:function(t,e){function n(t,e,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var h=e-(c-s);return i=this,a=arguments,h<=0||h>e?(r&&(clearTimeout(r),r=null),s=c,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,h)),o};return c.cancel=function(){clearTimeout(r),s=0,r=i=a=null},c}t.exports=n},dc0f:function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},dc57:function(t,e){var n=Function.prototype,r=n.toString;function i(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=i},dcbe:function(t,e,n){var r=n("30c9"),i=n("1310");function a(t){return i(t)&&r(t)}t.exports=a},dd61:function(t,e,n){var r=n("7948"),i=n("badf"),a=n("97d3"),o=n("6747");function s(t,e){var n=o(t)?r:a;return n(t,i(e,3))}t.exports=s},dd6d:function(t,e,n){var r=n("739e"),i=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)};t.exports=i},ddac:function(t,e,n){var r=n("33de"),i=n("cfa7");function a(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}t.exports=a},df2e:function(t,e,n){var r=n("33de");function i(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);a(t,e,"post"===n,s,i,o)})),o}function a(t,e,n,i,o,s){r.has(i,e)||(i[e]=!0,n||s.push(e),r.each(o(e),(function(e){a(t,e,n,i,o,s)})),n&&s.push(e))}t.exports=i},e008:function(t,e,n){var r=n("01ce");t.exports={Graph:r.Graph,json:n("19b2"),alg:n("d89f"),version:r.version}},e00c:function(t,e,n){(function(e,n){t.exports=n()})(0,(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.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=62)}([function(t,e,n){var r=n(12),i={};r.merge(i,r,{isColorProp:function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},isGradientColor:function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,(function(e){i.augment(t,e);var a=e[n];a&&i.merge(r,a)})),t[n]=i.merge(r,t[n])}}}),t.exports=i},function(t,e,n){var r=n(0),i=n(98),a=n(38),o=n(19),s=["zIndex","capture","visible"],u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={},r.extend(u,a);var c={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};function h(t){for(var e=[],n=0;n<t.length;n++)r.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}r.augment(u,i,{isShape:!0,drawInner:function(t){var e=this,n=e._attrs;e.createPath(t);var i=t.globalAlpha;if(e.hasFill()){var a=n.fillOpacity;r.isNil(a)||1===a?t.fill():(t.globalAlpha=a,t.fill(),t.globalAlpha=i)}if(e.hasStroke()){var o=e._attrs.lineWidth;if(o>0){var s=n.strokeOpacity;r.isNil(s)||1===s||(t.globalAlpha=s),t.stroke()}}e.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=this,r=[t,e,1];if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var a=n._attrs.clip;return a?(a.invert(r,n.get("canvas")),!!a.isPointInPath(r[0],r[1])&&n.isPointInPath(r[0],r[1])):n.isPointInPath(r[0],r[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0,n=t.lineWidth||0;return n+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||(t=this.calculateBox(),t&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t},clone:function(){var t=this,e=null,n=t._attrs,i={};return r.each(n,(function(t,e){c[e]&&r.isArray(n[e])?i[e]=h(n[e]):i[e]=n[e]})),e=new t.constructor({attrs:i}),r.each(s,(function(n){e._cfg[n]=t._cfg[n]})),e}}),t.exports=u},function(t,e){var n={}.toString,r=function(t,e){return n.call(t)==="[object "+e+"]"};t.exports=r},function(t,e,n){"use strict";var r=n(25);n.d(e,"a",(function(){return r["e"]})),n.d(e,"f",(function(){return r["g"]})),n.d(e,"d",(function(){return r["f"]}));var i=n(115);n.d(e,"e",(function(){return i["a"]})),n.d(e,"c",(function(){return i["b"]}));var a=n(116);n.d(e,"b",(function(){return a["a"]}))},function(t,e,n){var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;t.exports={parseRadius:function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if(e=e.match(a),e[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}}},function(t,e,n){"use strict";e["c"]=o,e["b"]=s,e["a"]=u;var r=n(57);function i(t,e){return function(n){return t+n*e}}function a(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(r["a"])(isNaN(t)?e:t)}function s(t){return 1===(t=+t)?u:function(e,n){return n-e?a(e,n,t):Object(r["a"])(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?i(t,n):Object(r["a"])(isNaN(t)?e:t)}},function(t,e,n){var r=n(2),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e,n){var r=n(0).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var c=[a-t,o-e];return Math.abs(r.dot(c,u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r);return{minX:o-a,minY:u-a,maxX:s+a,maxY:c+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){var r=n(0);function i(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function a(t,e,n,r){var i,a;return r?t<e?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function o(t,e,n,i){var o=0;return n-e>=2*Math.PI&&(o=2*Math.PI),e=r.mod(e,2*Math.PI),n=r.mod(n,2*Math.PI)+o,t=r.mod(t,2*Math.PI),i?e>=n?t>n&&t<e?t:a(t,n,e,!0):t<e||t>n?t:a(t,e,n):e<=n?e<t&&t<n?t:a(t,e,n,!0):t>e||t<n?t:a(t,n,e)}function s(t,e,n,i,a,s,u,c,h){var f=[u,c],l=[t,e],d=[1,0],p=r.vec2.subtract([],f,l),g=r.vec2.angleTo(d,p);g=o(g,i,a,s);var v=[n*Math.cos(g)+t,n*Math.sin(g)+e];h&&(h.x=v[0],h.y=v[1]);var m=r.vec2.distance(v,f);return m}function u(t,e,n,a,s,u){var c=0,h=Math.PI/2,f=Math.PI,l=3*Math.PI/2,d=[],p=o(c,a,s,u);p===c&&d.push(i(t,e,n,c)),p=o(h,a,s,u),p===h&&d.push(i(t,e,n,h)),p=o(f,a,s,u),p===f&&d.push(i(t,e,n,f)),p=o(l,a,s,u),p===l&&d.push(i(t,e,n,l)),d.push(i(t,e,n,a)),d.push(i(t,e,n,s));var g=1/0,v=-1/0,m=1/0,y=-1/0;return r.each(d,(function(t){g>t.x&&(g=t.x),v<t.x&&(v=t.x),m>t.y&&(m=t.y),y<t.y&&(y=t.y)})),{minX:g,minY:m,maxX:v,maxY:y}}t.exports={nearAngle:o,projectPoint:function(t,e,n,r,i,a,o,u){var c={};return s(t,e,n,r,i,a,o,u,c),c},pointDistance:s,box:u}},function(t,e,n){var r=n(4),i=n(10),a=Math.PI,o=Math.sin,s=Math.cos,u=Math.atan2,c=10,h=a/3;function f(t,e,n,r,i,f,l){var d,p,g,v,m,y,x;if(!e.fill){var b=e.arrowLength||c,w=e.arrowAngle?e.arrowAngle*a/180:h;x=u(r-f,n-i),m=Math.abs(e.lineWidth*s(x))/2,y=Math.abs(e.lineWidth*o(x))/2,l&&(m=-m,y=-y),d=i+b*s(x+w/2),p=f+b*o(x+w/2),g=i+b*s(x-w/2),v=f+b*o(x-w/2),t.beginPath(),t.moveTo(d-m,p-y),t.lineTo(i-m,f-y),t.lineTo(g-m,v-y),t.moveTo(i-m,f-y),t.lineTo(i+m,f+y),t.moveTo(i,f),t.stroke()}}function l(t){var e,n=[],a=r.parsePath(t.path);if(!Array.isArray(a)||0===a.length||"M"!==a[0][0]&&"m"!==a[0][0])return!1;for(var o=a.length,s=0;s<a.length;s++){var u=a[s];e=new i(u,e,s===o-1),n.push(e)}return n}function d(t,e,n,r,i){var a=Math.atan2(r-e,n-t);return{dx:s(a)*i,dy:o(a)*i}}function p(t,e,n,r,i,a,u){var c=u?e.startArrow:e.endArrow,h=c.d,f=i-n,d=a-r,p=Math.atan2(d,f),g=l(c);if(g){h&&(i-=s(p)*h,a-=o(p)*h),t.save(),t.beginPath(),t.translate(i,a),t.rotate(p);for(var v=0;v<g.length;v++)g[v].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}t.exports={addStartArrow:function(t,e,n,r,i,a){"object"===typeof e.startArrow?p(t,e,n,r,i,a,!0):e.startArrow&&f(t,e,n,r,i,a,!0)},addEndArrow:function(t,e,n,r,i,a){"object"===typeof e.endArrow?p(t,e,n,r,i,a,!1):e.endArrow&&f(t,e,n,r,i,a,!1)},getShortenOffset:d}},function(t,e,n){var r=n(0),i=n(19),a=n(20),o=n(40),s=n(41),u=r.vec3,c=r.mat3,h=["m","l","c","a","q","h","v","t","s","z"];function f(t,e,n){return{x:n.x+t,y:n.y+e}}function l(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function d(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function p(t,e){return(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e))}function g(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))}function v(t,e,n,i,a,o,s){var u=r.mod(r.toRadian(s),2*Math.PI),c=t.x,h=t.y,f=e.x,l=e.y,d=Math.cos(u)*(c-f)/2+Math.sin(u)*(h-l)/2,v=-1*Math.sin(u)*(c-f)/2+Math.cos(u)*(h-l)/2,m=d*d/(a*a)+v*v/(o*o);m>1&&(a*=Math.sqrt(m),o*=Math.sqrt(m));var y=a*a*(v*v)+o*o*(d*d),x=Math.sqrt((a*a*(o*o)-y)/y);n===i&&(x*=-1),isNaN(x)&&(x=0);var b=x*a*v/o,w=x*-o*d/a,_=(c+f)/2+Math.cos(u)*b-Math.sin(u)*w,M=(h+l)/2+Math.sin(u)*b+Math.cos(u)*w,S=g([1,0],[(d-b)/a,(v-w)/o]),k=[(d-b)/a,(v-w)/o],A=[(-1*d-b)/a,(-1*v-w)/o],P=g(k,A);return p(k,A)<=-1&&(P=Math.PI),p(k,A)>=1&&(P=0),0===i&&P>0&&(P-=2*Math.PI),1===i&&P<0&&(P+=2*Math.PI),[t,_,M,a,o,S,P,u,i]}var m=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};r.augment(m,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i,a,o,s,u=h.indexOf(n)>=0,c=u?n.toUpperCase():n,d=t,p=e.endPoint,g=d[1],m=d[2];switch(c){default:break;case"M":s=u?f(g,m,p):{x:g,y:m},this.command="M",this.params=[p,s],this.subStart=s,this.endPoint=s;break;case"L":s=u?f(g,m,p):{x:g,y:m},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"H":s=u?f(g,0,p):{x:g,y:p.y},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"V":s=u?f(0,g,p):{x:p.x,y:g},this.command="L",this.params=[p,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-p.x,s.y-p.y]},this.startTangent=function(){return[p.x-s.x,p.y-s.y]};break;case"Q":u?(i=f(g,m,p),a=f(d[3],d[4],p)):(i={x:g,y:m},a={x:d[3],y:d[4]}),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"T":a=u?f(g,m,p):{x:g,y:m},"Q"===e.command?(i=l(e.params[1],p),this.command="Q",this.params=[p,i,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-i.x,a.y-i.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="TL",this.params=[p,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-p.x,a.y-p.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"C":u?(i=f(g,m,p),a=f(d[3],d[4],p),o=f(d[5],d[6],p)):(i={x:g,y:m},a={x:d[3],y:d[4]},o={x:d[5],y:d[6]}),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]};break;case"S":u?(a=f(g,m,p),o=f(d[3],d[4],p)):(a={x:g,y:m},o={x:d[3],y:d[4]}),"C"===e.command?(i=l(e.params[2],p),this.command="C",this.params=[p,i,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-i.x,p.y-i.y]}):(this.command="SQ",this.params=[p,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[p.x-a.x,p.y-a.y]});break;case"A":var y=g,x=m,b=d[3],w=d[4],_=d[5];s=u?f(d[6],d[7],p):{x:d[6],y:d[7]},this.command="A";var M=v(p,s,w,_,y,x,b);this.params=M;var S=e.subStart;this.subStart=S,this.endPoint=s;var k=M[5]%(2*Math.PI);r.isNumberEqual(k,2*Math.PI)&&(k=0);var A=M[6]%(2*Math.PI);r.isNumberEqual(A,2*Math.PI)&&(A=0);var P=.001;this.startTangent=function(){0===_&&(P*=-1);var t=M[3]*Math.cos(k-P)+M[1],e=M[4]*Math.sin(k-P)+M[2];return[t-S.x,e-S.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(k+t+P)+M[1],n=M[4]*Math.sin(k+t-P)+M[2];return[p.x-e,p.y-n]};break;case"Z":this.command="Z",this.params=[p,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this,a=r.command,o=r.params,s=r.box;if(s&&!i.box(s.minX,s.maxX,s.minY,s.maxY,t,e))return!1;switch(a){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(o[0].x,o[0].y,o[1].x,o[1].y,n,t,e);case"SQ":case"Q":return i.quadraticline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,n,t,e);case"C":return i.cubicline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y,n,t,e);case"A":var h=o,f=h[1],l=h[2],d=h[3],p=h[4],g=h[5],v=h[6],m=h[7],y=h[8],x=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;h=[t,e,1];var _=[1,0,0,0,1,0,0,0,1];return c.translate(_,_,[-f,-l]),c.rotate(_,_,-m),c.scale(_,_,[1/b,1/w]),u.transformMat3(h,h,_),i.arcline(0,0,x,g,g+v,1-y,n,h[0],h[1])}return!1},draw:function(t){var e,n,r,i=this.command,a=this.params;switch(i){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],u=o[2],c=s,h=u,f=o[3],l=o[4],d=o[5],p=o[6],g=o[7],v=o[8],m=f>l?f:l,y=f>l?1:f/l,x=f>l?l/f:1;t.translate(c,h),t.rotate(g),t.scale(y,x),t.arc(0,0,m,d,d+p,1-v),t.scale(1/y,1/x),t.rotate(-g),t.translate(-c,-h);break;case"Z":t.closePath();break}},shortenDraw:function(t,e,n){var r,i,a,o=this.command,s=this.params;switch(o){default:break;case"M":t.moveTo(s[1].x-e,s[1].y-n);break;case"TL":case"L":t.lineTo(s[1].x-e,s[1].y-n);break;case"SQ":case"Q":r=s[1],i=s[2],t.quadraticCurveTo(r.x,r.y,i.x-e,i.y-n);break;case"C":r=s[1],i=s[2],a=s[3],t.bezierCurveTo(r.x,r.y,i.x,i.y,a.x-e,a.y-n);break;case"A":var u=s,c=u[1],h=u[2],f=c,l=h,d=u[3],p=u[4],g=u[5],v=u[6],m=u[7],y=u[8],x=d>p?d:p,b=d>p?1:d/p,w=d>p?p/d:1;t.translate(f,l),t.rotate(m),t.scale(b,w),t.arc(0,0,x,g,g+v,1-y),t.scale(1/b,1/w),t.rotate(-m),t.translate(-f,-l);break;case"Z":t.closePath();break}},getBBox:function(t){var e,n,r,i,u=t/2,c=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(c[0].x,c[1].x)-u,maxX:Math.max(c[0].x,c[1].x)+u,minY:Math.min(c[0].y,c[1].y)-u,maxY:Math.max(c[0].y,c[1].y)+u};break;case"SQ":case"Q":for(n=o.extrema(c[0].x,c[1].x,c[2].x),r=0,i=n.length;r<i;r++)n[r]=o.at(c[0].x,c[1].x,c[2].x,n[r]);for(n.push(c[0].x,c[2].x),e=o.extrema(c[0].y,c[1].y,c[2].y),r=0,i=e.length;r<i;r++)e[r]=o.at(c[0].y,c[1].y,c[2].y,e);e.push(c[0].y,c[2].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"C":for(n=a.extrema(c[0].x,c[1].x,c[2].x,c[3].x),r=0,i=n.length;r<i;r++)n[r]=a.at(c[0].x,c[1].x,c[2].x,c[3].x,n[r]);for(e=a.extrema(c[0].y,c[1].y,c[2].y,c[3].y),r=0,i=e.length;r<i;r++)e[r]=a.at(c[0].y,c[1].y,c[2].y,c[3].y,e[r]);n.push(c[0].x,c[3].x),e.push(c[0].y,c[3].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"A":var h=c,f=h[1],l=h[2],d=h[3],p=h[4],g=h[5],v=h[6],m=h[7],y=h[8],x=g,b=g+v,w=s.xExtrema(m,d,p),_=1/0,M=-1/0,S=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var k=w+r;1===y?x<k&&k<b&&S.push(k):b<k&&k<x&&S.push(k)}for(r=0,i=S.length;r<i;r++){var A=s.xAt(m,d,p,f,S[r]);A<_&&(_=A),A>M&&(M=A)}var P=s.yExtrema(m,d,p),C=1/0,E=-1/0,I=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var O=P+r;1===y?x<O&&O<b&&I.push(O):b<O&&O<x&&I.push(O)}for(r=0,i=I.length;r<i;r++){var T=s.yAt(m,d,p,l,I[r]);T<C&&(C=T),T>E&&(E=T)}this.box={minX:_-u,maxX:M+u,minY:C-u,maxY:E+u};break}}}),t.exports=m},function(t,e,n){"use strict";e["a"]=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){t.exports={isFunction:n(13),isObject:n(28),isBoolean:n(66),isNil:n(14),isString:n(29),isArray:n(6),isNumber:n(67),isEmpty:n(68),uniqueId:n(71),clone:n(30),deepMix:n(31),assign:n(16),merge:n(31),upperFirst:n(73),each:n(33),isEqual:n(75),toArray:n(34),extend:n(76),augment:n(77),remove:n(78),isNumberEqual:n(79),toRadian:n(80),toDegree:n(81),mod:n(82),clamp:n(35),createDom:n(83),modifyCSS:n(84),requestAnimationFrame:n(85),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(36),vec2:n(87),vec3:n(89),transform:n(91)}},function(t,e,n){var r=n(2),i=function(t){return r(t,"Function")};t.exports=i},function(t,e){var n=function(t){return null===t||void 0===t};t.exports=n},function(t,e){var n=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};t.exports=n},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}var r=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t};t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=i,e.toRadian=o,e.equals=s;var r=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!==typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;function i(t){e.ARRAY_TYPE=t}var a=Math.PI/180;function o(t){return t*a}function s(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}},function(t,e,n){var r=n(0),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){var r=n(7),i=n(40),a=n(20),o=n(8);t.exports={line:function(t,e,n,i,a,o,s){var u=r.box(t,e,n,i,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var c=r.pointDistance(t,e,n,i,o,s);return!isNaN(c)&&c<=a/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var a=0;a<i;a++){var o=t[a][0],s=t[a][1],u=t[a+1][0],c=t[a+1][1];if(this.line(o,s,u,c,e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,o,s,u,c,h,f){return a.pointDistance(t,e,n,r,i,o,s,u,h,f)<=c/2},quadraticline:function(t,e,n,r,a,o,s,u,c){return i.pointDistance(t,e,n,r,a,o,u,c)<=s/2},arcline:function(t,e,n,r,i,a,s,u,c){return o.pointDistance(t,e,n,r,i,a,u,c)<=s/2},rect:function(t,e,n,r,i,a){return t<=i&&i<=t+n&&e<=a&&a<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,a){return t<=i&&i<=e&&n<=a&&a<=r}}},function(t,e,n){var r=n(0),i=r.vec2;function a(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function o(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)}function s(t,e,n,r,o,s,u,c,h,f,l){var d,p,g,v,m,y,x,b,w=.005,_=1/0,M=1e-4,S=[h,f];for(p=0;p<1;p+=.05)g=[a(t,n,o,u,p),a(e,r,s,c,p)],v=i.squaredDistance(S,g),v<_&&(d=p,_=v);_=1/0;for(var k=0;k<32;k++){if(w<M)break;x=d-w,b=d+w,g=[a(t,n,o,u,x),a(e,r,s,c,x)],v=i.squaredDistance(S,g),x>=0&&v<_?(d=x,_=v):(y=[a(t,n,o,u,b),a(e,r,s,c,b)],m=i.squaredDistance(S,y),b<=1&&m<_?(d=b,_=m):w*=.5)}return l&&(l.x=a(t,n,o,u,d),l.y=a(e,r,s,c,d)),Math.sqrt(_)}function u(t,e,n,i){var a,o,s,u=3*t-9*e+9*n-3*i,c=6*e-12*n+6*i,h=3*n-3*i,f=[];if(r.isNumberEqual(u,0))r.isNumberEqual(c,0)||(a=-h/c,a>=0&&a<=1&&f.push(a));else{var l=c*c-4*u*h;r.isNumberEqual(l,0)?f.push(-c/(2*u)):l>0&&(s=Math.sqrt(l),a=(-c+s)/(2*u),o=(-c-s)/(2*u),a>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i){var a=-3*e+9*n-9*r+3*i,o=t*a+6*e-12*n+6*r;return t*o-3*e+3*n}function h(t,e,n,i,a,o,s,u,h){r.isNil(h)&&(h=1),h=h>1?1:h<0?0:h;for(var f=h/2,l=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,v=0;v<l;v++){var m=f*d[v]+f,y=c(m,t,n,a,s),x=c(m,e,i,o,u),b=y*y+x*x;g+=p[v]*Math.sqrt(b)}return f*g}t.exports={at:a,derivativeAt:o,projectPoint:function(t,e,n,r,i,a,o,u,c,h){var f={};return s(t,e,n,r,i,a,o,u,c,h,f),f},pointDistance:s,extrema:u,len:h}},function(t,e,n){var r=n(0),i=n(1),a=n(4),o=n(10),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.radius||t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},_getPath:function(){var t,e=this._attrs,n=e.x,i=e.y,a=e.radius||e.r,o=e.symbol||"circle";return t=r.isFunction(o)?o:s.Symbols[o],t?t(n,i,a):(console.warn(o+" marker is not supported."),null)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n,r=a.parsePath(this._getPath());t.beginPath(),e=[];for(var i=0;i<r.length;i++){var s=r[i];n=new o(s,n,i===r.length-1),e.push(n),n.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var u=0;u<e.length;u++)e[u].draw(t)}}}),t.exports=s},function(t,e,n){var r=n(12),i="\t\n\v\f\r    \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(typeof t===typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(t,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else while(a.length>=e[s])if(n.push([r].concat(a.splice(0,e[s]))),!e[s])break})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},c=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o),c=e+n*Math.sin(-r*o),h=e+n*Math.sin(-i*o);a=[["M",s,c],["A",n,n,0,+(i-r>180),0,u,h]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},h=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,h=0,f=0;"M"===t[0][0]&&(i=+t[0][1],a=+t[0][2],o=i,h=a,f++,r[0]=["M",i,a]);for(var l,d,p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=f,v=t.length;g<v;g++){if(r.push(l=[]),d=t[g],e=d[0],e!==e.toUpperCase())switch(l[0]=e.toUpperCase(),l[0]){case"A":l[1]=d[1],l[2]=d[2],l[3]=d[3],l[4]=d[4],l[5]=d[5],l[6]=+d[6]+i,l[7]=+d[7]+a;break;case"V":l[1]=+d[1]+a;break;case"H":l[1]=+d[1]+i;break;case"R":n=[i,a].concat(d.slice(1));for(var m=2,y=n.length;m<y;m++)n[m]=+n[m]+i,n[++m]=+n[m]+a;r.pop(),r=r.concat(u(n,p));break;case"O":r.pop(),n=c(i,a,d[1],d[2]),n.push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(c(i,a,d[1],d[2],d[3])),l=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,h=+d[2]+a;break;default:for(var x=1,b=d.length;x<b;x++)l[x]=+d[x]+(x%2?i:a)}else if("R"===e)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(u(n,p)),l=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),n=c(i,a,d[1],d[2]),n.push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(c(i,a,d[1],d[2],d[3])),l=["U"].concat(r[r.length-1].slice(-2));else for(var w=0,_=d.length;w<_;w++)l[w]=d[w];if(e=e.toUpperCase(),"O"!==e)switch(l[0]){case"Z":i=+o,a=+h;break;case"H":i=l[1];break;case"V":a=l[1];break;case"M":o=l[l.length-2],h=l[l.length-1];break;default:i=l[l.length-2],a=l[l.length-1]}}return r},f=function(t,e,n,r){return[t,e,n,r,n,r]},l=function(t,e,n,r,i,a){var o=1/3,s=2/3;return[o*t+s*n,o*e+s*r,o*i+s*n,o*a+s*r,i,a]},d=function t(e,n,r,i,a,o,s,u,c,h){r===i&&(r+=1);var f,l,d,p,g,v=120*Math.PI/180,m=Math.PI/180*(+a||0),y=[],x=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}};if(h)l=h[0],d=h[1],p=h[2],g=h[3];else{f=x(e,n,-m),e=f.x,n=f.y,f=x(u,c,-m),u=f.x,c=f.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,w=(n-c)/2,_=b*b/(r*r)+w*w/(i*i);_>1&&(_=Math.sqrt(_),r*=_,i*=_);var M=r*r,S=i*i,k=(o===s?-1:1)*Math.sqrt(Math.abs((M*S-M*w*w-S*b*b)/(M*w*w+S*b*b)));p=k*r*w/i+(e+u)/2,g=k*-i*b/r+(n+c)/2,l=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((c-g)/i).toFixed(9)),l=e<p?Math.PI-l:l,d=u<p?Math.PI-d:d,l<0&&(l=2*Math.PI+l),d<0&&(d=2*Math.PI+d),s&&l>d&&(l-=2*Math.PI),!s&&d>l&&(d-=2*Math.PI)}var A=d-l;if(Math.abs(A)>v){var P=d,C=u,E=c;d=l+v*(s&&d>l?1:-1),u=p+r*Math.cos(d),c=g+i*Math.sin(d),y=t(u,c,r,i,a,0,s,C,E,[d,P,p,g])}A=d-l;var I=Math.cos(l),O=Math.sin(l),T=Math.cos(d),N=Math.sin(d),j=Math.tan(A/4),B=4/3*r*j,L=4/3*i*j,D=[e,n],R=[e+B*O,n-L*I],F=[u+B*N,c-L*T],Y=[u,c];if(R[0]=2*D[0]-R[0],R[1]=2*D[1]-R[1],h)return[R,F,Y].concat(y);y=[R,F,Y].concat(y).join().split(",");for(var q=[],z=0,X=y.length;z<X;z++)q[z]=z%2?x(y[z-1],y[z],m).y:x(y[z],y[z+1],m).x;return q},p=function(t,e){var n,r=h(t),i=e&&h(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],c="",p="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(d.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(l(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(l(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(f(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(f(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(f(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(f(e.x,e.y,e.X,e.Y));break;default:break}return t},v=function(t,e){if(t[e].length>7){t[e].shift();var a=t[e];while(a.length)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y<n;y++){r[y]&&(c=r[y][0]),"C"!==c&&(s[y]=c,y&&(p=s[y-1])),r[y]=g(r[y],a,p),"A"!==s[y]&&"C"===c&&(s[y]="C"),v(r,y),i&&(i[y]&&(c=i[y][0]),"C"!==c&&(u[y]=c,y&&(p=u[y-1])),i[y]=g(i[y],o,p),"A"!==u[y]&&"C"===c&&(u[y]="C"),v(i,y)),m(r,i,a,o,y),m(i,r,o,a,y);var x=r[y],b=i&&i[y],w=x.length,_=i&&b.length;a.x=x[w-2],a.y=x[w-1],a.bx=parseFloat(x[w-4])||a.x,a.by=parseFloat(x[w-3])||a.y,o.bx=i&&(parseFloat(b[_-4])||o.x),o.by=i&&(parseFloat(b[_-3])||o.y),o.x=i&&b[_-2],o.y=i&&b[_-1]}return i?[r,i]:r},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},m=function(t,e,n,r,i){var a=-3*e+9*n-9*r+3*i,o=t*a+6*e-12*n+6*r;return t*o-3*e+3*n},y=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1),u=u>1?1:u<0?0:u;for(var c=u/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<h;p++){var g=c*f[p]+c,v=m(g,t,n,i,o),y=m(g,e,r,a,s),x=v*v+y*y;d+=l[p]*Math.sqrt(x)}return c*d},x=function(t,e,n,r,i,a,o,s){for(var u,c,h,f,l=[],d=[[],[]],p=0;p<2;++p)if(0===p?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,h=3*n-3*t):(c=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,h=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;f=-h/c,f>0&&f<1&&l.push(f)}else{var g=c*c-4*h*u,v=Math.sqrt(g);if(!(g<0)){var m=(-c+v)/(2*u);m>0&&m<1&&l.push(m);var y=(-c-v)/(2*u);y>0&&y<1&&l.push(y)}}var x,b=l.length,w=b;while(b--)f=l[b],x=1-f,d[0][b]=x*x*x*t+3*x*x*f*n+3*x*f*f*i+f*f*f*o,d[1][b]=x*x*x*e+3*x*x*f*r+3*x*f*f*a+f*f*f*s;return d[0][w]=t,d[1][w]=e,d[0][w+1]=o,d[1][w+1]=s,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},b=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t*r-e*n)*(i-o)-(t-n)*(i*s-a*o),c=(t*r-e*n)*(a-s)-(e-r)*(i*s-a*o),h=(t-n)*(a-s)-(e-r)*(i-o);if(h){var f=u/h,l=c/h,d=+f.toFixed(2),p=+l.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,o).toFixed(2)||d>+Math.max(i,o).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:f,y:l}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},_=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a},M=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:_(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e){return t=M(t),e=M(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},k=function(t,e,n,i,a,o,s,u){r.isArray(t)||(t=[t,e,n,i,a,o,s,u]);var c=x.apply(null,t);return M(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},A=function(t,e,n,r,i,a,o,s,u){var c=1-u,h=Math.pow(c,3),f=Math.pow(c,2),l=u*u,d=l*u,p=h*t+3*f*u*n+3*c*u*u*i+d*o,g=h*e+3*f*u*r+3*c*u*u*a+d*s,v=t+2*u*(n-t)+l*(i-2*n+t),m=e+2*u*(r-e)+l*(a-2*r+e),y=n+2*u*(i-n)+l*(o-2*i+n),x=r+2*u*(a-r)+l*(s-2*a+r),b=c*t+u*n,w=c*e+u*r,_=c*i+u*o,M=c*a+u*s,S=90-180*Math.atan2(v-y,m-x)/Math.PI;return{x:p,y:g,m:{x:v,y:m},n:{x:y,y:x},start:{x:b,y:w},end:{x:_,y:M},alpha:S}},P=function(t,e,n){var r=k(t),i=k(e);if(!S(r,i))return n?0:[];for(var a=y.apply(0,t),o=y.apply(0,e),s=~~(a/8),u=~~(o/8),c=[],h=[],f={},l=n?0:[],d=0;d<s+1;d++){var p=A.apply(0,t.concat(d/s));c.push({x:p.x,y:p.y,t:d/s})}for(var g=0;g<u+1;g++){var v=A.apply(0,e.concat(g/u));h.push({x:v.x,y:v.y,t:g/u})}for(var m=0;m<s;m++)for(var x=0;x<u;x++){var w=c[m],_=c[m+1],M=h[x],P=h[x+1],C=Math.abs(_.x-w.x)<.001?"y":"x",E=Math.abs(P.x-M.x)<.001?"y":"x",I=b(w.x,w.y,_.x,_.y,M.x,M.y,P.x,P.y);if(I){if(f[I.x.toFixed(4)]===I.y.toFixed(4))continue;f[I.x.toFixed(4)]=I.y.toFixed(4);var O=w.t+Math.abs((I[C]-w[C])/(_[C]-w[C]))*(_.t-w.t),T=M.t+Math.abs((I[E]-M[E])/(P[E]-M[E]))*(P.t-M.t);O>=0&&O<=1&&T>=0&&T<=1&&(n?l++:l.push({x:I.x,y:I.y,t1:O,t2:T}))}}return l},C=function(t,e,n){var r,i,a,o,s,u,c,h,f,l;t=p(t),e=p(e);for(var d=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])r=s=m[1],i=u=m[2];else{"C"===m[0]?(f=[r,i].concat(m.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,s,u,s,u],r=s,i=u);for(var y=0,x=e.length;y<x;y++){var b=e[y];if("M"===b[0])a=c=b[1],o=h=b[2];else{"C"===b[0]?(l=[a,o].concat(b.slice(1)),a=l[6],o=l[7]):(l=[a,o,a,o,c,h,c,h],a=c,o=h);var w=P(f,l,n);if(n)d+=w;else{for(var _=0,M=w.length;_<M;_++)w[_].segment1=g,w[_].segment2=y,w[_].bez1=f,w[_].bez2=l;d=d.concat(w)}}}}}return d},E=function(t,e){return C(t,e)};function I(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&n.push(t[0]),o===t.length-2&&r.push(t[o+1]),a[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];i(a,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function O(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var u=o/(1-o*s),c=I(a,u);i.push(c.left),a=c.right}i.push(a);var h=i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return h}var T=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(O(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r},N=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(var s=0;s<r;s++){var u=Math.floor(i*s);a[u]=(a[u]||0)+1}var c=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(T(t[i],t[i+1],r))}),[]);return c.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||c.push("Z"),c},j=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r.each(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function B(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var L=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var c=0;c<=a;c++)s[0][c]={min:c};for(var h=1;h<=i;h++){n=t[h-1];for(var f=1;f<=a;f++){r=e[f-1],o=j(n,r)?0:1;var l=s[h-1][f].min+1,d=s[h][f-1].min+1,p=s[h-1][f-1].min+o;s[h][f]=B(l,d,p)}}return s},D=function(t,e){var n=L(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i]!==r){for(var u=1;u<=r;u++){var c=n[u][u].min;s=u;for(var h=o;h<=i;h++)n[u][h].min<c&&(c=n[u][h].min,s=h);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(var f=a.length-1;f>=0;f--)o=a[f].index,"add"===a[f].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}r=t.length;var l=i-r;if(r<i)for(var d=0;d<l;d++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function R(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=F(e)[0],s=1;s<=n;s++)a*=s,r=Math.floor(t.length*a),0===r?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function F(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var Y=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=F(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t};t.exports={parsePathString:s,parsePathArray:v,pathTocurve:p,pathToAbsolute:h,catmullRomToBezier:u,rectPath:_,fillPath:N,fillPathByDiff:D,formatPath:Y,intersection:E}},function(t,e,n){"use strict";e["b"]=p,e["a"]=v,e["c"]=m,e["d"]=y;var r,i,a=0,o=0,s=0,u=1e3,c=0,h=0,f=0,l="object"===typeof performance&&performance.now?performance:Date,d="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return h||(d(g),h=l.now()+f)}function g(){h=0}function v(){this._call=this._time=this._next=null}function m(t,e,n){var r=new v;return r.restart(t,e,n),r}function y(){p(),++a;var t,e=r;while(e)(t=h-e._time)>=0&&e._call.call(null,t),e=e._next;--a}function x(){h=(c=l.now())+f,a=o=0;try{y()}finally{a=0,w(),h=0}}function b(){var t=l.now(),e=t-c;e>u&&(f-=e,c=t)}function w(){var t,e,n=r,a=1/0;while(n)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,_(a)}function _(t){if(!a){o&&(o=clearTimeout(o));var e=t-h;e>24?(t<1/0&&(o=setTimeout(x,t-l.now()-f)),s&&(s=clearInterval(s))):(s||(c=l.now(),s=setInterval(b,u)),a=1,d(x))}}v.prototype=m.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},function(t,e,n){"use strict";var r=n(3),i=n(55),a=n(58),o=n(59),s=n(11),u=n(60),c=n(61),h=n(57);e["a"]=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(h["a"])(e):("number"===f?s["a"]:"string"===f?(n=Object(r["a"])(e))?(e=n,i["a"]):c["a"]:e instanceof r["a"]?i["a"]:e instanceof Date?o["a"]:Array.isArray(e)?a["a"]:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?u["a"]:s["a"])(t,e)}},function(t,e,n){"use strict";e["a"]=i,n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return o})),e["e"]=w,e["h"]=S,e["g"]=k,e["b"]=A,e["f"]=T;var r=n(26);function i(){}var a=.7,o=1/a,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),l=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),p=new RegExp("^rgba\\("+[c,c,c,u]+"\\)$"),g=new RegExp("^hsl\\("+[u,c,c]+"\\)$"),v=new RegExp("^hsla\\("+[u,c,c,u]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function x(){return O(this).formatHsl()}function b(){return this.rgb().formatRgb()}function w(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?M(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?M(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(t))?new A(e[1],e[2],e[3],1):(e=l.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?M(e[1],e[2],e[3],e[4]):(e=p.exec(t))?M(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?I(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?I(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?_(m[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function _(t){return new A(t>>16&255,t>>8&255,255&t,1)}function M(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function S(t){return t instanceof i||(t=w(t)),t?(t=t.rgb(),new A(t.r,t.g,t.b,t.opacity)):new A}function k(t,e,n,r){return 1===arguments.length?S(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+E(this.r)+E(this.g)+E(this.b)}function C(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function E(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function I(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new N(t,e,n,r)}function O(t){if(t instanceof N)return new N(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new N;if(t instanceof N)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-a,c=(o+a)/2;return u?(s=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=c<.5?o+a:2-o-a,s*=60):u=c>0&&c<1?0:s,new N(s,u,c,t.opacity)}function T(t,e,n,r){return 1===arguments.length?O(t):new N(t,e,n,null==r?1:r)}function N(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function j(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r["a"])(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:x,formatRgb:b,toString:b}),Object(r["a"])(A,k,Object(r["b"])(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P,formatHex:P,formatRgb:C,toString:C})),Object(r["a"])(N,T,Object(r["b"])(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new N(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new N(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(j(t>=240?t-240:t+120,i,r),j(t,i,r),j(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e["b"]=r,e["a"]=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}e["a"]=r,e["b"]=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,u)}}},function(t,e){var n="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},r=function(t){var e="undefined"===typeof t?"undefined":n(t);return null!==t&&"object"===e||"function"===e};t.exports=r},function(t,e,n){var r=n(2),i=function(t){return r(t,"String")};t.exports=i},function(t,e,n){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(6),a=function t(e){if("object"!==("undefined"===typeof e?"undefined":r(e))||null===e)return e;var n=void 0;if(i(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===r(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else for(var s in n={},e)"object"===r(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n};t.exports=a},function(t,e,n){var r=n(72),i=n(6),a=5;function o(t,e,n,s){for(var u in n=n||0,s=s||a,e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&r(c)?(r(t[u])||(t[u]={}),n<s?o(t[u],c,n+1,s):t[u]=e[u]):i(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var s=function(){for(var t=new Array(arguments.length),e=t.length,n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0],i=1;i<e;i++)o(r,t[i]);return r};t.exports=s},function(t,e){var n="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},r=function(t){return"object"===("undefined"===typeof t?"undefined":n(t))&&null!==t};t.exports=r},function(t,e,n){var r=n(28),i=n(6),a=function(t,e){if(t){var n=void 0;if(i(t)){for(var a=0,o=t.length;a<o;a++)if(n=e(t[a],a),!1===n)break}else if(r(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}};t.exports=a},function(t,e,n){var r=n(15);function i(t){return r(t)?Array.prototype.slice.call(t):[]}t.exports=i},function(t,e){var n=function(t,e,n){return t<e?e:t>n?n:t};t.exports=n},function(t,e,n){var r=n(86);r.translate=function(t,e,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},t.exports=r},function(t,e,n){var r=n(0),i=n(38),a=n(97),o={},s="_INDEX",u=["zIndex","capture","visible"];function c(t){return function(e,n){var r=t(e,n);return 0===r?e[s]-n[s]:r}}function h(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}function f(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e}var l=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};function d(t){if(!t._cfg&&t!==l){var e=t.superclass.constructor;e&&!e._cfg&&d(e),t._cfg={},r.merge(t._cfg,e._cfg),r.merge(t._cfg,t.CFG)}}r.extend(l,i),r.augment(l,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return d(this.constructor),r.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var i=o[t];if(i||(i=r.upperFirst(t),o[t]=i),e.attrs&&n){var s=e.attrs;if("text"===t){var u=n.get("fontFamily");u&&(s.fontFamily=s.fontFamily?s.fontFamily:u)}}e.canvas=n,e.type=t;var c=new a[i](e);return this.add(c),c},addGroup:function(t,e){var n,i=this.get("canvas");if(e=r.merge({},e),r.isFunction(t))e?(e.canvas=i,e.parent=this,n=new t(e)):n=new t({canvas:i,parent:this}),this.add(n);else if(r.isObject(t))t.canvas=i,n=new l(t),this.add(n);else{if(void 0!==t)return!1;n=new l,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),i=this.getBBox();return r.merge(e,{x:i.minX-t[3],y:i.minY-t[0],width:i.width+t[1]+t[3],height:i.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!r.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(r.isArray(t))r.each(t,(function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)})),e._cfg.children=n.concat(t);else{var i=t,a=i.get("parent");a&&a.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){var e=this.get("children");return e.indexOf(t)>-1},getChildByIndex:function(t){var e=this.get("children");return e[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=this,e=1/0,n=-1/0,i=1/0,a=-1/0,o=t.get("children");o.length>0?r.each(o,(function(t){if(t.get("visible")){if(t.isGroup&&0===t.get("children").length)return;var r=t.getBBox();if(!r)return!0;var o=[r.minX,r.minY,1],s=[r.minX,r.maxY,1],u=[r.maxX,r.minY,1],c=[r.maxX,r.maxY,1];t.apply(o),t.apply(s),t.apply(u),t.apply(c);var h=Math.min(o[0],s[0],u[0],c[0]),f=Math.max(o[0],s[0],u[0],c[0]),l=Math.min(o[1],s[1],u[1],c[1]),d=Math.max(o[1],s[1],u[1],c[1]);h<e&&(e=h),f>n&&(n=f),l<i&&(i=l),d>a&&(a=d)}})):(e=0,n=0,i=0,a=0);var s={minX:e,minY:i,maxX:n,maxY:a};return s.x=s.minX,s.y=s.minY,s.width=s.maxX-s.minX,s.height=s.maxY-s.minY,s},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return r.each(t,(function(t,e){return t[s]=e,t})),t.sort(c((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this},findById:function(t){return this.find((function(e){return e.get("id")===t}))},find:function(t){if(r.isString(t))return this.findById(t);var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1})),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},findBy:function(t){var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1})),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},getShape:function(t,e){var n,r=this,i=r._attrs.clip,a=r._cfg.children;if(i){var o=[t,e,1];i.invert(o,r.get("canvas")),i.isPointInPath(o[0],o[1])&&(n=h(a,t,e))}else n=h(a,t,e);return n},clearTotalMatrix:function(){var t=this.get("totalMatrix");if(t){this.setSilent("totalMatrix",null);for(var e=this._cfg.children,n=0;n<e.length;n++){var r=e[n];r.clearTotalMatrix()}}},clear:function(t){if(!this.get("destroyed")){for(var e=this._cfg.children,n=e.length-1;n>=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this}},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))},clone:function(){var t=this,e=t._cfg.children,n=t._attrs,i={};r.each(n,(function(t,e){i[e]="matrix"===e?f(n[e]):n[e]}));var a=new l({attrs:i,canvas:t.get("canvas")});return r.each(e,(function(t){a.add(t.clone())})),r.each(u,(function(e){a._cfg[e]=t._cfg[e]})),a}}),t.exports=l},function(t,e,n){var r=n(0),i=n(93),a=n(94),o=n(95),s=n(96),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(e?i&&i._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){var t=this.get("destroyed");t||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){var r=n(12),i=Array.prototype.slice;function a(t,e){var n=t.length;while(n--)if(t[n].callback===e)return n;return-1}var o=function(){};r.augment(o,{on:function(t,e,n){var i=this;if(!r.isFunction(e))throw new TypeError("listener should be a function");return i._cfg._events||(i._cfg._events={}),i._cfg._events[t]||(i._cfg._events[t]=[]),i._cfg._events[t].push({callback:e,one:n}),this},one:function(t,e){return this.on(t,e,!0),this},emit:function(t){if(!this.get("destroyed")&&this._cfg._events&&!r.isEmpty(this._cfg._events)){var e=this._cfg._events[t];if(!r.isEmpty(e))for(var n=arguments,a=i.call(n,1),o=e.length,s=0;s<o;)e[s]&&(e[s].callback.apply(this,a),e[s]&&e[s].one?(e.splice(s,1),o--):s++)}},trigger:function(){this.emit.apply(this,arguments)},off:function(t,e){var n=this._cfg._events;if(n&&!r.isEmpty(n)){if(0===arguments.length)return this._cfg._events={},this;if(n[t]){var i=a(n[t],e);i>=0&&n[t].splice(i,1),0===n[t].length&&delete n[t]}}},removeEvent:function(t){return"undefined"===typeof t?this._cfg._events={}:delete this._cfg._events[t],this},_getEvents:function(){return this._cfg._events||{}}}),t.exports=o},function(t,e,n){var r=n(0),i=r.vec2;function a(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function o(t,e,n,r,o,s,u,c,h){var f,l,d,p,g,v,m,y=.005,x=1/0,b=1e-4,w=[u,c];for(g=0;g<1;g+=.05)d=[a(t,n,o,g),a(e,r,s,g)],l=i.squaredDistance(w,d),l<x&&(f=g,x=l);for(x=1/0,m=0;m<32;m++){if(y<b)break;var _=f-y,M=f+y;d=[a(t,n,o,_),a(e,r,s,_)],l=i.squaredDistance(w,d),_>=0&&l<x?(f=_,x=l):(p=[a(t,n,o,M),a(e,r,s,M)],v=i.squaredDistance(w,p),M<=1&&v<x?(f=M,x=v):y*=.5)}return h&&(h.x=a(t,n,o,f),h.y=a(e,r,s,f)),Math.sqrt(x)}function s(t,e,n){var i=t+n-2*e;if(r.isNumberEqual(i,0))return[.5];var a=(t-e)/i;return a<=1&&a>=0?[a]:[]}t.exports={at:a,projectPoint:function(t,e,n,r,i,a,s,u){var c={};return o(t,e,n,r,i,a,s,u,c),c},pointDistance:o,extrema:s}},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){var r=n(0),i=n(1),a=n(8),o=n(9);function s(t,e,n){return t+e*Math.cos(n)}function u(t,e,n){return t+e*Math.sin(n)}var c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(c,i),r.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,o=t.endAngle,s=t.clockwise,u=this.getHitLineWidth(),c=u/2,h=a.box(e,n,r,i,o,s);return h.minX-=c,h.minY-=c,h.maxX+=c,h.maxY+=c,h},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.startAngle,i=t.r,a=t.clockwise,o=Math.PI/180;a&&(o*=-1);var c=[],h=s(e,i,r+o),f=u(n,i,r+o),l=s(e,i,r),d=u(n,i,r);return c.push([h,f]),c.push([l,d]),c},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.endAngle,i=t.r,a=t.clockwise,o=Math.PI/180,c=[];a&&(o*=-1);var h=s(e,i,r+o),f=u(n,i,r+o),l=s(e,i,r),d=u(n,i,r);return c.push([l,d]),c.push([h,f]),c},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t=t||self.get("context"),t.beginPath(),t.arc(n,r,i,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();o.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();o.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=c},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,u=a>o?1:a/o,c=a>o?o/a:1,h=[1,0,0,0,1,0,0,0,1];r.mat3.scale(h,h,[u,c]),r.mat3.translate(h,h,[n,i]),t.beginPath(),t.save(),t.transform(h[0],h[1],h[3],h[4],h[6],h[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=n(8),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.rs,o=e.re,s=e.startAngle,u=e.endAngle,c=e.clockwise,h=this.getHitLineWidth(),f=a.box(n,r,i,s,u,c),l=a.box(n,r,o,s,u,c),d=Math.min(f.minX,l.minX),p=Math.min(f.minY,l.minY),g=Math.max(f.maxX,l.maxX),v=Math.max(f.maxY,l.maxY),m=h/2;return{minX:d-m,minY:p-m,maxX:g+m,maxY:v+m}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},h={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},f={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};t=t||self.get("context"),t.beginPath(),t.moveTo(c.x,c.y),t.lineTo(h.x,h.y),t.arc(n,r,a,o,s,u),t.lineTo(f.x,f.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y,r=t.width,i=t.height;return{minX:e,minY:n,maxX:e+r,maxY:n+i}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,c=e.sy,h=e.swidth,f=e.sheight;this.set("toDraw",!1);var l=a;if(l instanceof ImageData&&(l=new Image,l.src=a),l instanceof Image||l instanceof HTMLElement&&r.isString(l.nodeName)&&"CANVAS"===l.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(c)||r.isNil(h)||r.isNil(f))return void t.drawImage(l,n,i,o,s);if(!r.isNil(u)&&!r.isNil(c)&&!r.isNil(h)&&!r.isNil(f))return void t.drawImage(l,u,c,h,f,n,i,o,s)}}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=n(9),o=n(7),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this,n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;if(n.startArrow&&n.startArrow.d){var u=a.getShortenOffset(r,i,o,s,n.startArrow.d);r+=u.dx,i+=u.dy}if(n.endArrow&&n.endArrow.d){var c=a.getShortenOffset(r,i,o,s,n.endArrow.d);o-=c.dx,s-=c.dy}t=t||e.get("context"),t.beginPath(),t.moveTo(r,i),t.lineTo(o,s)},afterPath:function(t){var e=this,n=e._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;t=t||e.get("context"),n.startArrow&&a.addStartArrow(t,n,o,s,r,i),n.endArrow&&a.addEndArrow(t,n,r,i,o,s)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e,n){var r=n(0),i=n(1),a=n(10),o=n(4),s=n(9),u=n(22),c=n(20),h=function t(e){t.superclass.constructor.call(this,e)};h.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(h,i),r.augment(h,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){var e=this;if(r.isNil(t))return e.setSilent("segments",null),void e.setSilent("box",void 0);var n,i=o.parsePath(t),s=[];if(r.isArray(i)&&0!==i.length&&("M"===i[0][0]||"m"===i[0][0])){for(var u=i.length,c=0;c<i.length;c++){var h=i[c];n=new a(h,n,c===u-1),s.push(n)}e.setSilent("segments",s),e.setSilent("tCache",null),e.setSilent("totalLength",null),e.setSilent("box",null)}},calculateBox:function(){var t=this,e=t.get("segments");if(!e)return null;var n=this.getHitLineWidth(),i=1/0,a=-1/0,o=1/0,s=-1/0;return r.each(e,(function(t){t.getBBox(n);var e=t.box;e&&(e.minX<i&&(i=e.minX),e.maxX>a&&(a=e.maxX),e.minY<o&&(o=e.minY),e.maxY>s&&(s=e.maxY))})),i===1/0||o===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:i,minY:o,maxX:a,maxY:s}},_setTcache:function(){var t,e,n,i,a=0,o=0,s=[],u=this._cfg.curve;u&&(r.each(u,(function(t,e){n=u[e+1],i=t.length,n&&(a+=c.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),this._cfg.totalLength=a,0!==a?(r.each(u,(function(r,h){n=u[h+1],i=r.length,n&&(t=[],t[0]=o/a,e=c.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))})),this._cfg.tCache=s):this._cfg.tCache=[])},getTotalLength:function(){var t=this.get("totalLength");return r.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},_calculateCurve:function(){var t=this,e=t._attrs,n=e.path;this._cfg.curve=u.pathTocurve(n)},getStartTangent:function(){var t,e,n,i,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([t.x-o[0],t.y-o[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,i=[],r.isFunction(n)){var s=n();i.push([e.x-s[0],e.y-s[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i||0===i.length)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,u=a[n+1];return{x:c.at(o[s-2],u[1],u[3],u[5],1-e),y:c.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this,n=e._attrs,i=e.get("segments");if(r.isArray(i)){var a=i.length;if(0!==a){if(t=t||e.get("context"),t.beginPath(),n.startArrow&&n.startArrow.d){var o=e.getStartTangent(),u=s.getShortenOffset(o[0][0],o[0][1],o[1][0],o[1][1],n.startArrow.d);i[0].shortenDraw(t,u.dx,u.dy)}else i[0].draw(t);for(var c=1;c<a-2;c++)i[c].draw(t);if(n.endArrow&&n.endArrow.d){var h=e.getEndTangent(),f=s.getShortenOffset(h[0][0],h[0][1],h[1][0],h[1][1],n.endArrow.d),l=i[a-1];"Z"===l.command.toUpperCase()?(i[a-2]&&i[a-2].shortenDraw(t,f.dx,f.dy),l.draw(t)):(a>2&&i[a-2].draw(t),l.shortenDraw(t,f.dx,f.dy))}else i[a-2]&&i[a-2].draw(t),i[a-1].draw(t)}}},afterPath:function(t){var e=this,n=e._attrs,i=e.get("segments"),a=n.path;if(t=t||e.get("context"),r.isArray(i)&&1!==i.length&&(n.startArrow||n.endArrow)&&"z"!==a[a.length-1]&&"Z"!==a[a.length-1]&&!n.fill){var o=e.getStartTangent();s.addStartArrow(t,n,o[0][0],o[0][1],o[1][0],o[1][1]);var u=e.getEndTangent();s.addEndArrow(t,n,u[0][0],u[0][1],u[1][0],u[1][1])}}}),t.exports=h},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this,e=t._attrs,n=e.points,i=this.getHitLineWidth();if(!n||0===n.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(n,(function(t){var e=t[0],n=t[1];e<a&&(a=e),e>s&&(s=e),n<o&&(o=n),n>u&&(u=n)}));var c=i/2;return{minX:a-c,minY:o-c,maxX:s+c,maxY:u+c}},createPath:function(t){var e=this,n=e._attrs,i=n.points;i.length<2||(t=t||e.get("context"),t.beginPath(),r.each(i,(function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])})),t.closePath())}}),t.exports=a},function(t,e,n){var r=n(0),i=n(1),a=n(9),o=n(7),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this,e=t._attrs,n=this.getHitLineWidth(),i=e.points;if(!i||0===i.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(i,(function(t){var e=t[0],n=t[1];e<a&&(a=e),e>s&&(s=e),n<o&&(o=n),n>u&&(u=n)}));var c=n/2;return{minX:a-c,minY:o-c,maxX:s+c,maxY:u+c}},_setTcache:function(){var t,e,n=this,i=n._attrs,a=i.points,s=0,u=0,c=[];a&&0!==a.length&&(r.each(a,(function(t,e){a[e+1]&&(s+=o.len(t[0],t[1],a[e+1][0],a[e+1][1]))})),s<=0||(r.each(a,(function(n,r){a[r+1]&&(t=[],t[0]=u/s,e=o.len(n[0],n[1],a[r+1][0],a[r+1][1]),u+=e,t[1]=u/s,c.push(t))})),this.tCache=c))},createPath:function(t){var e,n=this,r=n._attrs,i=r.points;if(!(i.length<2)){var o=i.length-1,s=i[0][0],u=i[0][1],c=i[o][0],h=i[o][1];if(r.startArrow&&r.startArrow.d){var f=a.getShortenOffset(i[0][0],i[0][1],i[1][0],i[1][1],r.startArrow.d);s+=f.dx,u+=f.dy}if(r.endArrow&&r.endArrow.d){var l=a.getShortenOffset(i[o-1][0],i[o-1][1],i[o][0],i[o][1],r.endArrow.d);c-=l.dx,h-=l.dy}for(t=t||n.get("context"),t.beginPath(),t.moveTo(s,u),e=1;e<o;e++)t.lineTo(i[e][0],i[e][1]);t.lineTo(c,h)}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},afterPath:function(t){var e=this,n=e._attrs,r=n.points,i=r.length-1;t=t||e.get("context"),n.startArrow&&a.addStartArrow(t,n,r[1][0],r[1][1],r[0][0],r[0][1]),n.endArrow&&a.addEndArrow(t,n,r[i-1][0],r[i-1][1],r[i][0],r[i][1])},getPoint:function(t){var e,n,i=this._attrs,a=i.points,s=this.tCache;return s||(this._setTcache(),s=this.tCache),r.each(s,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),{x:o.at(a[n][0],a[n+1][0],e),y:o.at(a[n][1],a[n+1][1],e)}}}),t.exports=s},function(t,e,n){var r=n(0),i=n(4),a=i.parseRadius,o=n(1),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(s,o),r.augment(s,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}},createPath:function(t){var e=this,n=e._attrs,r=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(t=t||e.get("context"),t.beginPath(),0===u)t.rect(r,i,o,s);else{var c=a(u);t.moveTo(r+c.r1,i),t.lineTo(r+o-c.r2,i),0!==c.r2&&t.arc(r+o-c.r2,i+c.r2,c.r2,-Math.PI/2,0),t.lineTo(r+o,i+s-c.r3),0!==c.r3&&t.arc(r+o-c.r3,i+s-c.r3,c.r3,0,Math.PI/2),t.lineTo(r+c.r4,i+s),0!==c.r4&&t.arc(r+c.r4,i+s-c.r4,c.r4,Math.PI/2,Math.PI),t.lineTo(r,i+c.r1),0!==c.r1&&t.arc(r+c.r1,i+c.r1,c.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=s},function(t,e,n){var r=n(0),i=n(1),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e))if(-1!==e.indexOf("\n")){n=e.split("\n");var i=n.length;t.lineCount=i}else t.lineCount=1;t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){var r=this._getSpaceingY();return n*e+r*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this,e=t._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),e.textArr||this._setAttrText();var r=e.x,i=e.y,a=t.measureText();if(!a)return{minX:r,minY:i,maxX:r,maxY:i};var o=t._getTextHeight(),s=e.textAlign,u=e.textBaseline,c=t.getHitLineWidth(),h={x:r,y:i-o};s&&("end"===s||"right"===s?h.x-=a:"center"===s&&(h.x-=a/2)),u&&("top"===u?h.y+=o:"middle"===u&&(h.y+=o/2)),this.set("startPoint",h);var f=c/2;return{minX:h.x-f,minY:h.y-f,maxX:h.x+a+f,maxY:h.y+o+f}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this,n=e._attrs,i=this._cfg;i.attrs&&!i.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=n.font;var a=n.text;if(a){var o=n.textArr,s=n.x,u=n.y;if(t.beginPath(),e.hasStroke()){var c=n.strokeOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),o?e._drawTextArr(t,!1):t.strokeText(a,s,u),t.globalAlpha=1}if(e.hasFill()){var h=n.fillOpacity;r.isNil(h)||1===h||(t.globalAlpha=h),o?e._drawTextArr(t,!0):t.fillText(a,s,u)}i.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,c=this._attrs.y,h=this.getBBox(),f=h.maxY-h.minY;r.each(i,(function(r,i){n=c+i*(s+o)-f+o,"middle"===a&&(n+=f-o-(f-o)/2),"top"===a&&(n+=f-o),e?t.fillText(r,u,n):t.strokeText(r,u,n)}))},measureText:function(){var t,e=this,n=e._attrs,i=n.text,a=n.font,o=n.textArr,s=0;if(!r.isNil(i)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=a,o?r.each(o,(function(e){t=u.measureText(e).width,s<t&&(s=t),u.restore()})):(s=u.measureText(i).width,u.restore()),s}}}),t.exports=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c}));var r=n(3),i=n(27),a=n(56),o=n(5);function s(t){return function(e){var n,i,a=e.length,o=new Array(a),s=new Array(a),u=new Array(a);for(n=0;n<a;++n)i=Object(r["f"])(e[n]),o[n]=i.r||0,s[n]=i.g||0,u[n]=i.b||0;return o=t(o),s=t(s),u=t(u),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=u(t),i+""}}}e["a"]=function t(e){var n=Object(o["b"])(e);function i(t,e){var i=n((t=Object(r["f"])(t)).r,(e=Object(r["f"])(e)).r),a=n(t.g,e.g),s=n(t.b,e.b),u=Object(o["a"])(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=s(e),t.opacity=u(e),t+""}}return i.gamma=t,i}(1);var u=s(i["b"]),c=s(a["a"])},function(t,e,n){"use strict";var r=n(27);e["a"]=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return Object(r["a"])((n-i/e)*e,a,o,s,u)}}},function(t,e,n){"use strict";e["a"]=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(24);e["a"]=function(t,e){var n,i=e?e.length:0,a=t?Math.min(i,t.length):0,o=new Array(a),s=new Array(i);for(n=0;n<a;++n)o[n]=Object(r["a"])(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}},function(t,e,n){"use strict";e["a"]=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(24);e["a"]=function(t,e){var n,i={},a={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?i[n]=Object(r["a"])(t[n],e[n]):a[n]=e[n];return function(t){for(n in i)a[n]=i[n](t);return a}}},function(t,e,n){"use strict";var r=n(11),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");function o(t){return function(){return t}}function s(t){return function(e){return t(e)+""}}e["a"]=function(t,e){var n,u,c,h=i.lastIndex=a.lastIndex=0,f=-1,l=[],d=[];t+="",e+="";while((n=i.exec(t))&&(u=a.exec(e)))(c=u.index)>h&&(c=e.slice(h,c),l[f]?l[f]+=c:l[++f]=c),(n=n[0])===(u=u[0])?l[f]?l[f]+=u:l[++f]=u:(l[++f]=null,d.push({i:f,x:Object(r["a"])(n,u)})),h=a.lastIndex;return h<e.length&&(c=e.slice(h),l[f]?l[f]+=c:l[++f]=c),l.length<2?d[0]?s(d[0].x):o(e):(e=d.length,function(t){for(var n,r=0;r<e;++r)l[(n=d[r]).i]=n.x(t);return l.join("")})}},function(t,e,n){t.exports={Canvas:n(63),Group:n(37),Shape:n(1),Arc:n(42),Circle:n(43),Dom:n(44),Ellipse:n(45),Fan:n(46),Image:n(47),Line:n(48),Marker:n(21),Path:n(49),Polygon:n(50),Polyline:n(51),Rect:n(52),Text:n(53),PathSegment:n(10),PathUtil:n(22),Event:n(18),EventEmitter:n(39),version:"3.4.10"}},function(t,e,n){var r=n(64),i=r.detect,a=n(0),o=n(92),s=n(37),u=n(99),c=n(127),h=i(),f=h&&"firefox"===h.name,l=function t(e){t.superclass.constructor.call(this,e)};l.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas",supportCSSTransform:!1},a.extend(l,s),a.augment(l,o,{init:function(){l.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this.registerEvent(this)},_scale:function(){if("svg"!==this._cfg.renderType){var t=this.get("pixelRatio");this.scale(t,t)}},_setGlobalParam:function(){var t=this.get("renderer")||"canvas";"svg"===t?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",a.getRatio()),this._cfg.renderType=t;var e=c[t];this._cfg.renderer=e,this._cfg.canvas=this;var n=new u(this);this._cfg.timeline=n},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),a.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio"),e=this.get("width");return e*t},getHeight:function(){var t=this.get("pixelRatio"),e=this.get("height");return e*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByEvent:function(t){var e=this.get("supportCSSTransform");if(e){var n=this.get("pixelRatio")||1;if(f&&!a.isNil(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX*n,y:t.layerY*n};if(!a.isNil(t.offsetX))return{x:t.offsetX*n,y:t.offsetY*n}}var r=this.getClientByEvent(t),i=r.x,o=r.y;return this.getPointByClient(i,o)},getClientByEvent:function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},getPointByClient:function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=this.get("pixelRatio")||1;return{clientX:t/i+r.left,clientY:e/i+r.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):l.superclass.getShape.call(this,t,e)},getRenderer:function(){return this._cfg.renderType},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),l.superclass.destroy.call(this)}}),t.exports=l},function(t,e,n){"use strict";(function(t){var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}();e.BrowserInfo=r;var i=function(){function e(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}return e}();e.NodeInfo=i;var a=function(){function t(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"}return t}();e.SearchBotDeviceInfo=a;var o=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}();e.BotInfo=o;var s=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}();e.ReactNativeInfo=s;var u=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,c=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,h=3,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",u]],l=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?v(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!==typeof navigator?v(navigator.userAgent):y()}function p(t){return""!==t&&f.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var a=i.exec(t);return!!a&&[r,a]}),!1)}function g(t){var e=p(t);return e?e[0]:null}function v(t){var e=p(t);if(!e)return null;var i=e[0],s=e[1];if("searchbot"===i)return new o;var u=s[1]&&s[1].split(/[._]/).slice(0,3);u?u.length<h&&(u=n(u,x(h-u.length))):u=[];var f=u.join("."),l=m(t),d=c.exec(t);return d&&d[1]?new a(i,f,l,d[1]):new r(i,u.join("."),l)}function m(t){for(var e=0,n=l.length;e<n;e++){var r=l[e],i=r[0],a=r[1],o=a.exec(t);if(o)return i}return null}function y(){var e="undefined"!==typeof t&&t.version;return e?new i(t.version.slice(1)):null}function x(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}e.detect=d,e.browserName=g,e.parseUserAgent=v,e.detectOS=m,e.getNodeVersion=y}).call(e,n(65))},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!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 u(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(t){r=o}})();var c,h=[],f=!1,l=-1;function d(){f&&c&&(f=!1,c.length?h=c.concat(h):l=-1,h.length&&p())}function p(){if(!f){var t=s(d);f=!0;var e=h.length;while(e){c=h,h=[];while(++l<e)c&&c[l].run();l=-1,e=h.length}c=null,f=!1,u(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}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];h.push(new g(t,e)),1!==h.length||f||s(p)},g.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=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,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){var r=n(2),i=function(t){return r(t,"Boolean")};t.exports=i},function(t,e,n){var r=n(2),i=function(t){return r(t,"Number")};t.exports=i},function(t,e,n){var r=n(14),i=n(15),a=n(69),o=n(70),s=Object.prototype.hasOwnProperty;function u(t){if(r(t))return!0;if(i(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}t.exports=u},function(t,e){var n={}.toString,r=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")};t.exports=r},function(t,e){var n=Object.prototype,r=function(t){var e=t&&t.constructor,r="function"===typeof e&&e.prototype||n;return t===r};t.exports=r},function(t,e){var n=function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},function(t,e,n){var r=n(32),i=n(2),a=function(t){if(!r(t)||!i(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};t.exports=a},function(t,e,n){var r=n(74),i=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)};t.exports=i},function(t,e,n){var r=n(14);function i(t){return r(t)?"":t.toString()}t.exports=i},function(t,e,n){var r=n(32),i=n(15),a=n(29),o=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(a(e)||a(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var o=!0,s=0;s<e.length;s++)if(o=t(e[s],n[s]),!o)break;return o}if(r(e)||r(n)){var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(var h=!0,f=0;f<u.length;f++)if(h=t(e[u[f]],n[u[f]]),!h)break;return h}return!1};t.exports=o},function(t,e,n){var r=n(13),i=n(16),a=function(t,e,n,a){r(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=i(s,t.prototype),t.superclass=o(e.prototype,e),i(s,n),i(t,a),t};t.exports=a},function(t,e,n){var r=n(13),i=n(34),a=n(16),o=function(t){for(var e=i(arguments),n=1;n<e.length;n++){var o=e[n];r(o)&&(o=o.prototype),a(t.prototype,o)}};t.exports=o},function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,a=n.slice,o=function(t){for(var e=a.call(arguments,1),n=0;n<e.length;n++){var o=e[n],s=-1;while((s=i.call(t,o))>-1)r.call(t,s,1)}return t};t.exports=o},function(t,e){var n=1e-5;t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;return Math.abs(t-e)<r}},function(t,e){var n=Math.PI/180,r=function(t){return n*t};t.exports=r},function(t,e){var n=180/Math.PI,r=function(t){return n*t};t.exports=r},function(t,e){var n=function(t,e){return(t%e+e)%e};t.exports=n},function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){t.exports=function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=o,e.fromMat4=s,e.clone=u,e.copy=c,e.fromValues=h,e.set=f,e.identity=l,e.transpose=d,e.invert=p,e.adjoint=g,e.determinant=v,e.multiply=m,e.translate=y,e.rotate=x,e.scale=b,e.fromTranslation=w,e.fromRotation=_,e.fromScaling=M,e.fromMat2d=S,e.fromQuat=k,e.normalFromMat4=A,e.projection=P,e.str=C,e.frob=E,e.add=I,e.subtract=O,e.multiplyScalar=T,e.multiplyScalarAndAdd=N,e.exactEquals=j,e.equals=B;var r=n(17),i=a(r);function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(){var t=new i.ARRAY_TYPE(9);return i.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function u(t){var e=new i.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function h(t,e,n,r,a,o,s,u,c){var h=new i.ARRAY_TYPE(9);return h[0]=t,h[1]=e,h[2]=n,h[3]=r,h[4]=a,h[5]=o,h[6]=s,h[7]=u,h[8]=c,h}function f(t,e,n,r,i,a,o,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=c,t}function l(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function d(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function p(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],h=e[8],f=h*o-s*c,l=-h*a+s*u,d=c*a-o*u,p=n*f+r*l+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-h*r+i*c)*p,t[2]=(s*r-i*o)*p,t[3]=l*p,t[4]=(h*n-i*u)*p,t[5]=(-s*n+i*a)*p,t[6]=d*p,t[7]=(-c*n+r*u)*p,t[8]=(o*n-r*a)*p,t):null}function g(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],h=e[8];return t[0]=o*h-s*c,t[1]=i*c-r*h,t[2]=r*s-i*o,t[3]=s*u-a*h,t[4]=n*h-i*u,t[5]=i*a-n*s,t[6]=a*c-o*u,t[7]=r*u-n*c,t[8]=n*o-r*a,t}function v(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],c=t[8];return e*(c*a-o*u)+n*(-c*i+o*s)+r*(u*i-a*s)}function m(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],h=e[7],f=e[8],l=n[0],d=n[1],p=n[2],g=n[3],v=n[4],m=n[5],y=n[6],x=n[7],b=n[8];return t[0]=l*r+d*o+p*c,t[1]=l*i+d*s+p*h,t[2]=l*a+d*u+p*f,t[3]=g*r+v*o+m*c,t[4]=g*i+v*s+m*h,t[5]=g*a+v*u+m*f,t[6]=y*r+x*o+b*c,t[7]=y*i+x*s+b*h,t[8]=y*a+x*u+b*f,t}function y(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],h=e[7],f=e[8],l=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=l*r+d*o+c,t[7]=l*i+d*s+h,t[8]=l*a+d*u+f,t}function x(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],h=e[7],f=e[8],l=Math.sin(n),d=Math.cos(n);return t[0]=d*r+l*o,t[1]=d*i+l*s,t[2]=d*a+l*u,t[3]=d*o-l*r,t[4]=d*s-l*i,t[5]=d*u-l*a,t[6]=c,t[7]=h,t[8]=f,t}function b(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function w(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function _(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function M(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function k(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,c=n*o,h=r*o,f=r*s,l=i*o,d=i*s,p=i*u,g=a*o,v=a*s,m=a*u;return t[0]=1-f-p,t[3]=h-m,t[6]=l+v,t[1]=h+m,t[4]=1-c-p,t[7]=d-g,t[2]=l-v,t[5]=d+g,t[8]=1-c-f,t}function A(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],h=e[8],f=e[9],l=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*o,x=n*u-i*o,b=n*c-a*o,w=r*u-i*s,_=r*c-a*s,M=i*c-a*u,S=h*g-f*p,k=h*v-l*p,A=h*m-d*p,P=f*v-l*g,C=f*m-d*g,E=l*m-d*v,I=y*E-x*C+b*P+w*A-_*k+M*S;return I?(I=1/I,t[0]=(s*E-u*C+c*P)*I,t[1]=(u*A-o*E-c*k)*I,t[2]=(o*C-s*A+c*S)*I,t[3]=(i*C-r*E-a*P)*I,t[4]=(n*E-i*A+a*k)*I,t[5]=(r*A-n*C-a*S)*I,t[6]=(g*M-v*_+m*w)*I,t[7]=(v*b-p*M-m*x)*I,t[8]=(p*_-g*b+m*y)*I,t):null}function P(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function C(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function E(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))}function I(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function O(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function T(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function N(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function j(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function B(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],c=t[6],h=t[7],f=t[8],l=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],x=e[7],b=e[8];return Math.abs(n-l)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-d)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(a-p)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-g)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-v)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-m)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-y)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(h-x)<=i.EPSILON*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(f-b)<=i.EPSILON*Math.max(1,Math.abs(f),Math.abs(b))}e.mul=m,e.sub=O},function(t,e,n){var r=n(88),i=n(35);r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),a=r.direction(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=o,e.clone=s,e.fromValues=u,e.copy=c,e.set=h,e.add=f,e.subtract=l,e.multiply=d,e.divide=p,e.ceil=g,e.floor=v,e.min=m,e.max=y,e.round=x,e.scale=b,e.scaleAndAdd=w,e.distance=_,e.squaredDistance=M,e.length=S,e.squaredLength=k,e.negate=A,e.inverse=P,e.normalize=C,e.dot=E,e.cross=I,e.lerp=O,e.random=T,e.transformMat2=N,e.transformMat2d=j,e.transformMat3=B,e.transformMat4=L,e.rotate=D,e.angle=R,e.str=F,e.exactEquals=Y,e.equals=q;var r=n(17),i=a(r);function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function s(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function u(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function c(t,e){return t[0]=e[0],t[1]=e[1],t}function h(t,e,n){return t[0]=e,t[1]=n,t}function f(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function g(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function v(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function x(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function w(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function S(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function k(t){var e=t[0],n=t[1];return e*e+n*n}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function C(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t}function E(t,e){return t[0]*e[0]+t[1]*e[1]}function I(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function O(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t}function T(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function N(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function j(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function B(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function D(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t}function R(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function Y(t,e){return t[0]===e[0]&&t[1]===e[1]}function q(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))}e.len=S,e.sub=l,e.mul=d,e.div=p,e.dist=_,e.sqrDist=M,e.sqrLen=k,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],a(t,t,o),e[s]=t[0],e[s+1]=t[1];return e}}()},function(t,e,n){var r=n(90);t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=o,e.clone=s,e.length=u,e.fromValues=c,e.copy=h,e.set=f,e.add=l,e.subtract=d,e.multiply=p,e.divide=g,e.ceil=v,e.floor=m,e.min=y,e.max=x,e.round=b,e.scale=w,e.scaleAndAdd=_,e.distance=M,e.squaredDistance=S,e.squaredLength=k,e.negate=A,e.inverse=P,e.normalize=C,e.dot=E,e.cross=I,e.lerp=O,e.hermite=T,e.bezier=N,e.random=j,e.transformMat4=B,e.transformMat3=L,e.transformQuat=D,e.rotateX=R,e.rotateY=F,e.rotateZ=Y,e.angle=q,e.str=z,e.exactEquals=X,e.equals=G;var r=n(17),i=a(r);function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function s(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function u(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function c(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function f(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function v(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function m(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function y(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function x(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function b(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function w(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function _(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function S(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function k(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function C(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function E(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function I(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function O(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function T(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),h=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*h,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*h,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*h,t}function N(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,c=s*o,h=3*a*s,f=3*u*o,l=u*a;return t[0]=e[0]*c+n[0]*h+r[0]*f+i[0]*l,t[1]=e[1]*c+n[1]*h+r[1]*f+i[1]*l,t[2]=e[2]*c+n[2]*h+r[2]*f+i[2]*l,t}function j(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t}function B(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function L(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function D(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],c=e[2],h=i*c-a*u,f=a*s-r*c,l=r*u-i*s,d=i*l-a*f,p=a*h-r*l,g=r*f-i*h,v=2*o;return h*=v,f*=v,l*=v,d*=2,p*=2,g*=2,t[0]=s+h+d,t[1]=u+f+p,t[2]=c+l+g,t}function R(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function F(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function Y(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function q(t,e){var n=c(t[0],t[1],t[2]),r=c(e[0],e[1],e[2]);C(n,n),C(r,r);var i=E(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)}function z(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function X(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))}e.sub=d,e.mul=p,e.div=g,e.dist=M,e.sqrDist=S,e.len=u,e.sqrLen=k,e.forEach=function(){var t=o();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},function(t,e,n){var r=n(30),i=n(33),a=n(36);t.exports=function(t,e){return t=r(t),i(e,(function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}})),t}},function(t,e,n){var r=n(0),i=n(18),a=["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave"],o=function(){var t=new Date;return t.getTime()},s=40,u=0,c=null,h=null,f={},l=null,d=0;t.exports={registerEvent:function(){var t=this,e=this.get("el");r.each(a,(function(n){e.addEventListener(n,(function(e){t._triggerEvent(n,e)}),!1)})),e.addEventListener("touchstart",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])}),!1),e.addEventListener("touchmove",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])}),!1),e.addEventListener("touchend",(function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])}),!1),e.addEventListener("contextmenu",(function(e){t._triggerEvent("contextmenu",e),e.preventDefault()}),!1)},_getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this._getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n=this,r=n.getPointByEvent(e),i=n.getShape(r.x,r.y,e),a=n.get("el");if(l&&"svg"===n.getRenderer()&&(i=n.getShape(r.x,r.y)),"mousemove"===t){if(c&&c!==i&&(n._emitEvent("mouseout",e,r,c),n._emitEvent("mouseleave",e,r,c),l&&n._emitEvent("dragleave",e,r,c),i&&!i.destroyed||(a.style.cursor="default")),l&&(n._emitEvent("drag",e,r,l),n._emitEvent("mousemove",e,r,i)),i){if(!l)if(h===i){var p=o(),g=p-d,v=f.x-e.clientX,m=f.y-e.clientY,y=v*v+m*m;g>120||y>s?(l=i,h=null,this._emitEvent("dragstart",e,r,i)):n._emitEvent("mousemove",e,r,i)}else n._emitEvent("mousemove",e,r,i);c!==i&&(n._emitEvent("mouseenter",e,r,i),n._emitEvent("mouseover",e,r,i),l&&n._emitEvent("dragenter",e,r,i))}else{var x=n._getEventObj("mousemove",e,r,n);n.emit("mousemove",x)}c=i}else if(this._emitEvent(t,e,r,i||this),l||"mousedown"!==t||e.button!==u||(h=i,f={x:e.clientX,y:e.clientY},d=o()),"mouseup"===t&&e.button===u){var b=f.x-e.clientX,w=f.y-e.clientY,_=b*b+w*w,M=o(),S=M-d;(_<s||S<200)&&(d=0,this._emitEvent("click",e,r,h||this)),l&&(l._cfg.capture=!0,this._emitEvent("dragend",e,r,l),l=null,this._emitEvent("drop",e,r,i||this)),h=null}i&&!i.get("destroyed")&&(a.style.cursor=i.attr("cursor")||"default")},_emitEvent:function(t,e,n,r){var i=this._getEventObj(t,e,n,r),a=this._getEmitter(r,e);return a&&!a.get("destroyed")&&a.emit(t,i),a}}},function(t,e,n){var r=n(0);t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(t)){for(var i in t)this._setAttr(i,t[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(t,e),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[t]},_setAttr:function(t,e){var n=this,r=this._attrs;r[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?n._setClip(e):"path"===t&&n._afterSetAttrPath?n._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&n.rotateAtStart(e):n.transform(e):r.globalAlpha=e:r[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},function(t,e,n){var r=n(0);function i(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function a(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function o(t,e){i(e)||(a(e)?(t[0]*=e[0],t[4]*=e[4]):r.mat3.multiply(t,t,e))}t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return r.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return r.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return r.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return r.each(t,(function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",r.mat3.multiply([],n,t[1])),e.clearTotalMatrix();break;default:break}})),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),r.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){var e=this;t=t||e;var n=e,i=[];while(n!==t)i.unshift(n),n=n.get("parent");i.unshift(n);var a=[1,0,0,0,1,0,0,0,1];return r.each(i,(function(t){r.mat3.multiply(a,t.attr("matrix"),a)})),a},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){var n=e.getTotalMatrix();o(t,n)}o(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(a(e))t[0]/=e[0],t[1]/=e[4];else{var n=r.mat3.invert([],e);n&&r.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var i=n(0),a={delay:"delay",repeat:"repeat",rotate:"rotate"};function o(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}function s(t,e){var n={matrix:null,attrs:{}},r=e._attrs;for(var o in t)"transform"===o?n.matrix=i.transform(e.getMatrix(),t[o]):"matrix"===o?n.matrix=t[o]:i.isColorProp(o)&&i.isGradientColor(t[o])?n.attrs[o]=t[o]:a[o]||r[o]===t[o]||("rotate"===o&&(e._attrs.rotate=e._attrs.rotate||0),n.attrs[o]=t[o]);return n}function u(t,e){if(e.onFrame)return t;var n=e.delay,r=Object.prototype.hasOwnProperty;return i.each(e.toAttrs,(function(e,a){i.each(t,(function(t){n<t.startTime+t.duration&&r.call(t.toAttrs,a)&&(delete t.toAttrs[a],delete t.fromAttrs[a])}))})),e.toMatrix&&i.each(t,(function(t){n<t.startTime+t.duration&&t.toMatrix&&delete t.toMatrix})),t}t.exports={animate:function(t,e,n,a,c){void 0===c&&(c=0);var h=this;h.set("animating",!0);var f=h.get("timeline");f||(f=h.get("canvas").get("timeline"),h.setSilent("timeline",f));var l=h.get("animators")||[];f._timer||f.initTimer(),i.isNumber(a)&&(c=a,a=null),i.isFunction(n)?(a=n,n="easeLinear"):n=n||"easeLinear";var d={repeat:t.repeat,duration:e,easing:n,callback:a,delay:c,startTime:f.getTime(),id:i.uniqueId()};if(t.onFrame)d.onFrame=t.onFrame;else{var p=s(t,h);d=r({fromAttrs:o(p,h),toAttrs:p.attrs,fromMatrix:i.clone(h.getMatrix()),toMatrix:p.matrix},d)}l.length>0?l=u(l,d):f.addAnimator(h),l.push(d),h.setSilent("animators",l),h.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");i.each(e,(function(e){t.attr(e.toAttrs||e.onFrame(1)),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this,e=t.get("timeline");return t.setSilent("pause",{isPaused:!0,pauseTime:e.getTime()}),t},resumeAnimate:function(){var t=this,e=t.get("timeline"),n=e.getTime(),r=t.get("animators"),a=t.get("pause").pauseTime;return i.each(r,(function(t){t.startTime=t.startTime+(n-a),t._paused=!1,t._pauseTime=null})),t.setSilent("pause",{isPaused:!1}),t.setSilent("animators",r),t}}},function(t,e,n){var r=n(0),i=n(18),a=n(39),o=["click","mousedown","mouseup","dblclick","contextmenu","mouseout","mouseover","mousemove","dragstart","drag","dragend","dragenter","dragleave","drop"],s=function(){};r.augment(s,a,{emit:function(t,e){var n=arguments;if(a.prototype.emit.apply(this,n),!(n.length>=2&&n[1]instanceof i&&n[1].propagationStopped)&&o.indexOf(t)>=0&&e.target===this){var r=this._cfg.parent;while(r&&!r.get("destroyed"))r.emit.apply(r,n),r=r._cfg.parent}}}),t.exports=s},function(t,e,n){var r=n(1);r.Arc=n(42),r.Circle=n(43),r.Dom=n(44),r.Ellipse=n(45),r.Fan=n(46),r.Image=n(47),r.Line=n(48),r.Marker=n(21),r.Path=n(49),r.Polygon=n(50),r.Polyline=n(51),r.Rect=n(52),r.Text=n(53),t.exports=r},function(t,e,n){var r=n(0),i=n(19),a={arc:n(8),ellipse:n(41),line:n(7)},o=r.createDom('<canvas width="1" height="1"></canvas>'),s=o.getContext("2d");function u(t,e,n){return n.createPath(s),s.isPointInPath(t,e)}var c=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=n.startAngle,u=n.endAngle,c=n.clockwise,h=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,a,o,s,u,c,h,t,e)},h=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?i.circle(r,a,o,t,e)||i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e):u?i.circle(r,a,o,t,e):!!c&&i.arcline(r,a,o,0,2*Math.PI,!1,s,t,e)},f=function(t,e){var n=this._attrs,a=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,c=n.rx,h=n.ry,f=this.getHitLineWidth(),l=c>h?c:h,d=c>h?1:c/h,p=c>h?h/c:1,g=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[d,p]),r.mat3.translate(v,v,[s,u]);var m=r.mat3.invert([],v);return r.vec3.transformMat3(g,g,m),a&&o?i.circle(0,0,l,g[0],g[1])||i.arcline(0,0,l,0,2*Math.PI,!1,f,g[0],g[1]):a?i.circle(0,0,l,g[0],g[1]):!!o&&i.arcline(0,0,l,0,2*Math.PI,!1,f,g[0],g[1])},l=function(t,e){var n=this,o=n.hasFill(),s=n.hasStroke(),u=n._attrs,c=u.x,h=u.y,f=u.rs,l=u.re,d=u.startAngle,p=u.endAngle,g=u.clockwise,v=[1,0],m=[t-c,e-h],y=r.vec2.angleTo(v,m);function x(){var t=a.arc.nearAngle(y,d,p,g);if(r.isNumberEqual(y,t)){var e=r.vec2.squaredLength(m);if(f*f<=e&&e<=l*l)return!0}return!1}function b(){var r=n.getHitLineWidth(),a={x:Math.cos(d)*f+c,y:Math.sin(d)*f+h},o={x:Math.cos(d)*l+c,y:Math.sin(d)*l+h},s={x:Math.cos(p)*f+c,y:Math.sin(p)*f+h},u={x:Math.cos(p)*l+c,y:Math.sin(p)*l+h};return!!i.line(a.x,a.y,o.x,o.y,r,t,e)||(!!i.line(s.x,s.y,u.x,u.y,r,t,e)||(!!i.arcline(c,h,f,d,p,g,r,t,e)||!!i.arcline(c,h,l,d,p,g,r,t,e)))}return o&&s?x()||b():o?x():!!s&&b()},d=function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,a=n.y,o=n.width,s=n.height;return i.rect(r,a,o,s,t,e)},p=function(t,e){var n=this._attrs,r=n.x1,a=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,a,o,s,u,t,e)},g=function(t,e){var n=this,i=n.get("segments"),a=n.hasFill(),o=n.hasStroke();function s(){if(!r.isEmpty(i)){for(var a=n.getHitLineWidth(),o=0,s=i.length;o<s;o++)if(i[o].isInside(t,e,a))return!0;return!1}}return a&&o?u(t,e,n)||s():a?u(t,e,n):!!o&&s()},v=function(t,e){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.points;if(a.length<2)return!1;var o=n.getHitLineWidth(),s=a.slice(0);return a.length>=3&&s.push(a[0]),i.polyline(s,o,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},m=function(t,e){var n=this._attrs,r=n.x,a=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return i.circle(r,a,o+s/2,t,e)},y=function(t,e){var n=this,r=n._attrs;if(n.hasStroke()){var a=r.points;if(a.length<2)return!1;var o=r.lineWidth;return i.polyline(a,o,t,e)}return!1},x=function(t,e){var n=this,r=n.hasFill(),a=n.hasStroke();function o(){var r=n._attrs,a=r.x,o=r.y,s=r.width,u=r.height,c=r.radius,h=n.getHitLineWidth();if(0===c){var f=h/2;return i.line(a-f,o,a+s+f,o,h,t,e)||i.line(a+s,o-f,a+s,o+u+f,h,t,e)||i.line(a+s+f,o+u,a-f,o+u,h,t,e)||i.line(a,o+u+f,a,o-f,h,t,e)}return i.line(a+c,o,a+s-c,o,h,t,e)||i.line(a+s,o+c,a+s,o+u-c,h,t,e)||i.line(a+s-c,o+u,a+c,o+u,h,t,e)||i.line(a,o+u-c,a,o+c,h,t,e)||i.arcline(a+s-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,h,t,e)||i.arcline(a+s-c,o+u-c,c,0,.5*Math.PI,!1,h,t,e)||i.arcline(a+c,o+u-c,c,.5*Math.PI,Math.PI,!1,h,t,e)||i.arcline(a+c,o+c,c,Math.PI,1.5*Math.PI,!1,h,t,e)}return r&&a?u(t,e,n)||o():r?u(t,e,n):!!a&&o()},b=function(t,e){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return i.box(r.minX,r.maxX,r.minY,r.maxY,t,e)},w=function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return i.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},_={arc:c,circle:h,dom:w,ellipse:f,fan:l,image:d,line:p,path:g,marker:m,polygon:v,polyline:y,rect:x,text:b};t.exports={isPointInPath:function(t,e){var n=_[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){var r=n(0),i=n(22),a=n(100),o=n(103),s=n(114),u=s.interpolate,c=s.interpolateArray,h=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};function f(t,e,n){var a={},o=e.toAttrs,s=e.fromAttrs,h=e.toMatrix;if(!t.get("destroyed")){var f;for(var l in o)if(!r.isEqual(s[l],o[l]))if("path"===l){var d=o[l],p=s[l];d.length>p.length?(d=i.parsePathString(o[l]),p=i.parsePathString(s[l]),p=i.fillPathByDiff(p,d),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d):e.pathFormatted||(d=i.parsePathString(o[l]),p=i.parsePathString(s[l]),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),a[l]=[];for(var g=0;g<d.length;g++){for(var v=d[g],m=p[g],y=[],x=0;x<v.length;x++)r.isNumber(v[x])&&m&&r.isNumber(m[x])?(f=u(m[x],v[x]),y.push(f(n))):y.push(v[x]);a[l].push(y)}}else r.isColorProp(l)&&r.isGradientColor(o[l])?a[l]=o[l]:(f=u(s[l],o[l]),a[l]=f(n));if(h){var b=c(e.fromMatrix,h),w=b(n);t.setMatrix(w)}t.attr(a)}}function l(t,e,n){var r,i=e.startTime;if(n<i+e.delay||e.isPaused)return!1;var a=e.duration,s=e.easing;if(n=n-i-e.delay,e.repeat)r=n%a/a,r=o[s](r);else{if(r=n/a,!(r<1)){var u=e.toAttrs||e.onFrame(1);return t.attr(u),e.toMatrix&&t.setMatrix(e.toMatrix),!0}r=o[s](r)}if(e.onFrame){var c=e.onFrame(r);t.attr(c)}else f(t,e,r);return!1}r.augment(h,{initTimer:function(){var t,e,n,r=this,i=this,o=!1;i._timer=a.timer((function(a){if(i._current=a,r._animators.length>0){for(var s=r._animators.length-1;s>=0;s--)if(t=r._animators[s],t.get("destroyed"))i.removeAnimator(s);else{if(!t.get("pause").isPaused){e=t.get("animators");for(var u=e.length-1;u>=0;u--)n=e[u],o=l(t,n,a),o&&(e.splice(u,1),o=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(s)}r.canvas.draw()}}))},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach((function(t){t.stopAnimate()})),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(23);n.d(e,"now",(function(){return r["b"]})),n.d(e,"timer",(function(){return r["c"]})),n.d(e,"timerFlush",(function(){return r["d"]}));var i=n(101);n.d(e,"timeout",(function(){return i["a"]}));var a=n(102);n.d(e,"interval",(function(){return a["a"]}))},function(t,e,n){"use strict";var r=n(23);e["a"]=function(t,e,n){var i=new r["a"];return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";var r=n(23);e["a"]=function(t,e,n){var i=new r["a"],a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?Object(r["b"])():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(104);n.d(e,"easeLinear",(function(){return r["a"]}));var i=n(105);n.d(e,"easeQuad",(function(){return i["b"]})),n.d(e,"easeQuadIn",(function(){return i["a"]})),n.d(e,"easeQuadOut",(function(){return i["c"]})),n.d(e,"easeQuadInOut",(function(){return i["b"]}));var a=n(106);n.d(e,"easeCubic",(function(){return a["b"]})),n.d(e,"easeCubicIn",(function(){return a["a"]})),n.d(e,"easeCubicOut",(function(){return a["c"]})),n.d(e,"easeCubicInOut",(function(){return a["b"]}));var o=n(107);n.d(e,"easePoly",(function(){return o["b"]})),n.d(e,"easePolyIn",(function(){return o["a"]})),n.d(e,"easePolyOut",(function(){return o["c"]})),n.d(e,"easePolyInOut",(function(){return o["b"]}));var s=n(108);n.d(e,"easeSin",(function(){return s["b"]})),n.d(e,"easeSinIn",(function(){return s["a"]})),n.d(e,"easeSinOut",(function(){return s["c"]})),n.d(e,"easeSinInOut",(function(){return s["b"]}));var u=n(109);n.d(e,"easeExp",(function(){return u["b"]})),n.d(e,"easeExpIn",(function(){return u["a"]})),n.d(e,"easeExpOut",(function(){return u["c"]})),n.d(e,"easeExpInOut",(function(){return u["b"]}));var c=n(110);n.d(e,"easeCircle",(function(){return c["b"]})),n.d(e,"easeCircleIn",(function(){return c["a"]})),n.d(e,"easeCircleOut",(function(){return c["c"]})),n.d(e,"easeCircleInOut",(function(){return c["b"]}));var h=n(111);n.d(e,"easeBounce",(function(){return h["c"]})),n.d(e,"easeBounceIn",(function(){return h["a"]})),n.d(e,"easeBounceOut",(function(){return h["c"]})),n.d(e,"easeBounceInOut",(function(){return h["b"]}));var f=n(112);n.d(e,"easeBack",(function(){return f["b"]})),n.d(e,"easeBackIn",(function(){return f["a"]})),n.d(e,"easeBackOut",(function(){return f["c"]})),n.d(e,"easeBackInOut",(function(){return f["b"]}));var l=n(113);n.d(e,"easeElastic",(function(){return l["c"]})),n.d(e,"easeElasticIn",(function(){return l["a"]})),n.d(e,"easeElasticOut",(function(){return l["c"]})),n.d(e,"easeElasticInOut",(function(){return l["b"]}))},function(t,e,n){"use strict";function r(t){return+t}e["a"]=r},function(t,e,n){"use strict";function r(t){return t*t}function i(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}e["a"]=r,e["c"]=i,e["b"]=a},function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function a(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}e["a"]=r,e["c"]=i,e["b"]=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return o}));var r=3,i=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(r),a=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(r),o=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(r)},function(t,e,n){"use strict";e["a"]=a,e["c"]=o,e["b"]=s;var r=Math.PI,i=r/2;function a(t){return 1-Math.cos(t*i)}function o(t){return Math.sin(t*i)}function s(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";function r(t){return Math.pow(2,10*t-10)}function i(t){return 1-Math.pow(2,-10*t)}function a(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}e["a"]=r,e["c"]=i,e["b"]=a},function(t,e,n){"use strict";function r(t){return 1-Math.sqrt(1-t*t)}function i(t){return Math.sqrt(1- --t*t)}function a(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}e["a"]=r,e["c"]=i,e["b"]=a},function(t,e,n){"use strict";e["a"]=d,e["c"]=p,e["b"]=g;var r=4/11,i=6/11,a=8/11,o=3/4,s=9/11,u=10/11,c=15/16,h=21/22,f=63/64,l=1/r/r;function d(t){return 1-p(1-t)}function p(t){return(t=+t)<r?l*t*t:t<a?l*(t-=i)*t+o:t<u?l*(t-=s)*t+c:l*(t-=h)*t+f}function g(t){return((t*=2)<=1?1-p(1-t):p(t-1)+1)/2}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return o}));var r=1.70158,i=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(r),a=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(r),o=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(r)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var r=2*Math.PI,i=1,a=.3,o=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);function a(t){return e*Math.pow(2,10*--t)*Math.sin((i-t)/n)}return a.amplitude=function(e){return t(e,n*r)},a.period=function(n){return t(e,n)},a}(i,a),s=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);function a(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/n)}return a.amplitude=function(e){return t(e,n*r)},a.period=function(n){return t(e,n)},a}(i,a),u=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);function a(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((i-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((i+t)/n))/2}return a.amplitude=function(e){return t(e,n*r)},a.period=function(n){return t(e,n)},a}(i,a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(24);n.d(e,"interpolate",(function(){return r["a"]}));var i=n(58);n.d(e,"interpolateArray",(function(){return i["a"]}));var a=n(27);n.d(e,"interpolateBasis",(function(){return a["b"]}));var o=n(56);n.d(e,"interpolateBasisClosed",(function(){return o["a"]}));var s=n(59);n.d(e,"interpolateDate",(function(){return s["a"]}));var u=n(11);n.d(e,"interpolateNumber",(function(){return u["a"]}));var c=n(60);n.d(e,"interpolateObject",(function(){return c["a"]}));var h=n(117);n.d(e,"interpolateRound",(function(){return h["a"]}));var f=n(61);n.d(e,"interpolateString",(function(){return f["a"]}));var l=n(118);n.d(e,"interpolateTransformCss",(function(){return l["a"]})),n.d(e,"interpolateTransformSvg",(function(){return l["b"]}));var d=n(121);n.d(e,"interpolateZoom",(function(){return d["a"]}));var p=n(55);n.d(e,"interpolateRgb",(function(){return p["a"]})),n.d(e,"interpolateRgbBasis",(function(){return p["b"]})),n.d(e,"interpolateRgbBasisClosed",(function(){return p["c"]}));var g=n(122);n.d(e,"interpolateHsl",(function(){return g["a"]})),n.d(e,"interpolateHslLong",(function(){return g["b"]}));var v=n(123);n.d(e,"interpolateLab",(function(){return v["a"]}));var m=n(124);n.d(e,"interpolateHcl",(function(){return m["a"]})),n.d(e,"interpolateHclLong",(function(){return m["b"]}));var y=n(125);n.d(e,"interpolateCubehelix",(function(){return y["b"]})),n.d(e,"interpolateCubehelixLong",(function(){return y["a"]}));var x=n(126);n.d(e,"quantize",(function(){return x["a"]}))},function(t,e,n){"use strict";e["a"]=g,e["b"]=_;var r=n(26),i=n(25),a=n(54),o=18,s=.96422,u=1,c=.82521,h=4/29,f=6/29,l=3*f*f,d=f*f*f;function p(t){if(t instanceof v)return new v(t.l,t.a,t.b,t.opacity);if(t instanceof M)return S(t);t instanceof i["b"]||(t=Object(i["h"])(t));var e,n,r=b(t.r),a=b(t.g),o=b(t.b),h=m((.2225045*r+.7168786*a+.0606169*o)/u);return r===a&&a===o?e=n=h:(e=m((.4360747*r+.3850649*a+.1430804*o)/s),n=m((.0139322*r+.0971045*a+.7141733*o)/c)),new v(116*h-16,500*(e-h),200*(h-n),t.opacity)}function g(t,e,n,r){return 1===arguments.length?p(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function m(t){return t>d?Math.pow(t,1/3):t/l+h}function y(t){return t>f?t*t*t:l*(t-h)}function x(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function b(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function w(t){if(t instanceof M)return new M(t.h,t.c,t.l,t.opacity);if(t instanceof v||(t=p(t)),0===t.a&&0===t.b)return new M(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*a["b"];return new M(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function _(t,e,n,r){return 1===arguments.length?w(t):new M(t,e,n,null==r?1:r)}function M(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function S(t){if(isNaN(t.h))return new v(t.l,0,0,t.opacity);var e=t.h*a["a"];return new v(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Object(r["a"])(v,g,Object(r["b"])(i["a"],{brighter:function(t){return new v(this.l+o*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new v(this.l-o*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=s*y(e),t=u*y(t),n=c*y(n),new i["b"](x(3.1338561*e-1.6168667*t-.4906146*n),x(-.9787684*e+1.9161415*t+.033454*n),x(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Object(r["a"])(M,_,Object(r["b"])(i["a"],{brighter:function(t){return new M(this.h,this.c,this.l+o*(null==t?1:t),this.opacity)},darker:function(t){return new M(this.h,this.c,this.l-o*(null==t?1:t),this.opacity)},rgb:function(){return S(this).rgb()}}))},function(t,e,n){"use strict";e["a"]=g;var r=n(26),i=n(25),a=n(54),o=-.14861,s=1.78277,u=-.29227,c=-.90649,h=1.97294,f=h*c,l=h*s,d=s*u-c*o;function p(t){if(t instanceof v)return new v(t.h,t.s,t.l,t.opacity);t instanceof i["b"]||(t=Object(i["h"])(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(d*r+f*e-l*n)/(d+f-l),s=r-o,p=(h*(n-o)-u*s)/c,g=Math.sqrt(p*p+s*s)/(h*o*(1-o)),m=g?Math.atan2(p,s)*a["b"]-120:NaN;return new v(m<0?m+360:m,g,o,t.opacity)}function g(t,e,n,r){return 1===arguments.length?p(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Object(r["a"])(v,g,Object(r["b"])(i["a"],{brighter:function(t){return t=null==t?i["c"]:Math.pow(i["c"],t),new v(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i["d"]:Math.pow(i["d"],t),new v(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*a["a"],e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),f=Math.sin(t);return new i["b"](255*(e+n*(o*r+s*f)),255*(e+n*(u*r+c*f)),255*(e+n*(h*r)),this.opacity)}}))},function(t,e,n){"use strict";e["a"]=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s}));var r=n(11),i=n(119);function a(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}function o(t,i,a,o,s,u){if(t!==a||i!==o){var c=s.push("translate(",null,e,null,n);u.push({i:c-4,x:Object(r["a"])(t,a)},{i:c-2,x:Object(r["a"])(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}function s(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:Object(r["a"])(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}function u(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:Object(r["a"])(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}function c(t,e,n,i,o,s){if(t!==n||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(r["a"])(t,n)},{i:u-2,x:Object(r["a"])(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,i),s(e.rotate,n.rotate,r,i),u(e.skewX,n.skewX,r,i),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,a=i.length;while(++n<a)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var o=a(i["a"],"px, ","px)","deg)"),s=a(i["b"],", ",")",")")},function(t,e,n){"use strict";e["a"]=u,e["b"]=c;var r,i,a,o,s=n(120);function u(t){return"none"===t?s["b"]:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=t,t=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),Object(s["a"])(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function c(t){return null==t?s["b"]:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,Object(s["a"])(t.a,t.b,t.c,t.d,t.e,t.f)):s["b"])}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i}));var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e["a"]=function(t,e,n,i,a,o){var s,u,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,c/=u),t*i<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(c)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";var r=Math.SQRT2,i=2,a=4,o=1e-12;function s(t){return((t=Math.exp(t))+1/t)/2}function u(t){return((t=Math.exp(t))-1/t)/2}function c(t){return((t=Math.exp(2*t))-1)/(t+1)}e["a"]=function(t,e){var n,h,f=t[0],l=t[1],d=t[2],p=e[0],g=e[1],v=e[2],m=p-f,y=g-l,x=m*m+y*y;if(x<o)h=Math.log(v/d)/r,n=function(t){return[f+t*m,l+t*y,d*Math.exp(r*t*h)]};else{var b=Math.sqrt(x),w=(v*v-d*d+a*x)/(2*d*i*b),_=(v*v-d*d-a*x)/(2*v*i*b),M=Math.log(Math.sqrt(w*w+1)-w),S=Math.log(Math.sqrt(_*_+1)-_);h=(S-M)/r,n=function(t){var e=t*h,n=s(M),a=d/(i*b)*(n*c(r*e+M)-u(M));return[f+a*m,l+a*y,d*n/s(r*e+M)]}}return n.duration=1e3*h,n}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(3),i=n(5);function a(t){return function(e,n){var a=t((e=Object(r["d"])(e)).h,(n=Object(r["d"])(n)).h),o=Object(i["a"])(e.s,n.s),s=Object(i["a"])(e.l,n.l),u=Object(i["a"])(e.opacity,n.opacity);return function(t){return e.h=a(t),e.s=o(t),e.l=s(t),e.opacity=u(t),e+""}}}e["a"]=a(i["c"]);var o=a(i["a"])},function(t,e,n){"use strict";e["a"]=a;var r=n(3),i=n(5);function a(t,e){var n=Object(i["a"])((t=Object(r["e"])(t)).l,(e=Object(r["e"])(e)).l),a=Object(i["a"])(t.a,e.a),o=Object(i["a"])(t.b,e.b),s=Object(i["a"])(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=a(e),t.b=o(e),t.opacity=s(e),t+""}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(3),i=n(5);function a(t){return function(e,n){var a=t((e=Object(r["c"])(e)).h,(n=Object(r["c"])(n)).h),o=Object(i["a"])(e.c,n.c),s=Object(i["a"])(e.l,n.l),u=Object(i["a"])(e.opacity,n.opacity);return function(t){return e.h=a(t),e.c=o(t),e.l=s(t),e.opacity=u(t),e+""}}}e["a"]=a(i["c"]);var o=a(i["a"])},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(5);function a(t){return function e(n){function a(e,a){var o=t((e=Object(r["b"])(e)).h,(a=Object(r["b"])(a)).h),s=Object(i["a"])(e.s,a.s),u=Object(i["a"])(e.l,a.l),c=Object(i["a"])(e.opacity,a.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,a.gamma=e,a}(1)}e["b"]=a(i["c"]);var o=a(i["a"])},function(t,e,n){"use strict";e["a"]=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){t.exports={canvas:n(128),svg:n(131)}},function(t,e,n){t.exports={painter:n(129)}},function(t,e,n){var r=n(0),i=n(130),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<canvas id="'+e+'"></canvas>');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()})),e.beforeDraw();try{e._drawGroup(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i)}finally{e.toDraw=!1}}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=this,n=t._cfg.children,r=null;this.setContext(t);for(var i=0;i<n.length;i++)r=n[i],n[i].isGroup?e._drawGroup(r):e._drawShape(r);this.restoreContext(t)}},e._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},e.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},e.restoreContext=function(){this.context.restore()},e.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var o in n)if(a.indexOf(o)>-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,u=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function h(t,e){var n=t.match(c);r.each(n,(function(t){t=t.split(":"),e.addColorStop(t[0],t[1])}))}function f(t,e,n){var i,a,s=o.exec(t),u=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),c=s[2],f=e.getBBox();u>=0&&u<.5*Math.PI?(i={x:f.minX,y:f.minY},a={x:f.maxX,y:f.maxY}):.5*Math.PI<=u&&u<Math.PI?(i={x:f.maxX,y:f.minY},a={x:f.minX,y:f.maxY}):Math.PI<=u&&u<1.5*Math.PI?(i={x:f.maxX,y:f.maxY},a={x:f.minX,y:f.minY}):(i={x:f.minX,y:f.maxY},a={x:f.maxX,y:f.minY});var l=Math.tan(u),d=l*l,p=(a.x-i.x+l*(a.y-i.y))/(d+1)+i.x,g=l*(a.x-i.x+l*(a.y-i.y))/(d+1)+i.y,v=n.createLinearGradient(i.x,i.y,p,g);return h(c,v),v}function l(t,e,n){var r=s.exec(t),i=parseFloat(r[1]),a=parseFloat(r[2]),o=parseFloat(r[3]),u=r[4];if(0===o){var f=u.match(c);return f[f.length-1].split(":")[1]}var l=e.getBBox(),d=l.maxX-l.minX,p=l.maxY-l.minY,g=Math.sqrt(d*d+p*p)/2,v=n.createRadialGradient(l.minX+d*i,l.minY+p*a,o*g,l.minX+d/2,l.minY+p/2,g);return h(u,v),v}function d(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var r,i,a=u.exec(t),o=a[1],s=a[2];function c(){r=n.createPattern(i,o),e.setSilent("pattern",r),e.setSilent("patternSource",t)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?c():(i.onload=c,i.src=i.src),r}t.exports={parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if(e=e.match(a),e[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return f(t,e,n);if("r"===t[0])return l(t,e,n);if("p"===t[0])return d(t,e,n)}return t}}}},function(t,e,n){t.exports={painter:n(132),getShape:n(139)}},function(t,e,n){var r=n(0),i=n(4),a=i.parseRadius,o=n(21),s=n(133),u={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},c=.3,h={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},f={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={left:"left",start:"left",center:"middle",right:"end",end:"end"},d=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<svg id="'+e+'"></svg>');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new s(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()}));try{e._drawChildren(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i)}finally{e.toDraw=!1}}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this._drawChildren(t)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(n.tobeRemoved&&(r.each(n.tobeRemoved,(function(t){t.parentNode&&t.parentNode.removeChild(t)})),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t))},e._drawChildren=function(t){var e,n=this,r=t._cfg.children;if(r)for(var i=0;i<r.length;i++)e=r[i],e.isGroup?n._drawGroup(e,i):n._drawShape(e,i)},e._drawShape=function(t,e){var n=this,r=t._attrs,i=t._cfg,a=i.el;i.removed||i.destroyed?a&&a.parentNode.removeChild(i.el):(!a&&i.parent&&(n._createDom(t,e),n._updateShape(t)),a=i.el,!1!==i.visible?(i.visible&&a.hasAttribute("visibility")&&a.removeAttribute("visibility"),i.hasUpdate&&n._updateShape(t),r.clip&&r.clip._cfg.hasUpdate&&n._updateShape(r.clip)):a.setAttribute("visibility","hidden"))},e._updateShape=function(t){var e=this,n=t._attrs,i=t._cfg.attrs;if(i)if(t._cfg.el||e._createDom(t),"clip"in n&&this._setClip(t,n.clip),("shadowOffsetX"in n||"shadowOffsetY"in n||"shadowBlur"in n||"shadowColor"in n)&&this._setShadow(t),"text"!==t.type){for(var a in"fan"===t.type&&e._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",e._assembleMarker(n)),"rect"===t.type&&t._cfg.el.setAttribute("d",e._assembleRect(n)),n)n[a]!==i[a]&&e._setAttribute(t,a,n[a]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else e._updateText(t)},e._setAttribute=function(t,e,n){var i=t.type,a=t._attrs,o=t._cfg.el,s=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))o.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=n.map((function(t){return t[0]+","+t[1]})),n=n.join(" ")),void o.setAttribute("points",n);if("path"===e&&r.isArray(n))o.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=h[e],n){var u=null;u="boolean"===typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+u+")"),t._cfg[e]=u}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"===typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),h[e]&&o.setAttribute(h[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},e._createDom=function(t,e){var n=u[t.type],r=t._attrs,i=t._cfg.parent;if(!n)throw new Error("the type"+t.type+"is not supported by svg");var a=document.createElementNS("http://www.w3.org/2000/svg",n);if(t._cfg.id&&(a.id=t._cfg.id),t._cfg.el=a,i){var o=i._cfg.el;if("undefined"===typeof e)o.appendChild(a);else{var s=i._cfg.el.childNodes;"svg"===o.tagName&&(e+=1),s.length<=e?o.appendChild(a):o.insertBefore(a,s[e])}}return t._cfg.attrs={},"text"===t.type?(a.setAttribute("paint-order","stroke"),a.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(r.stroke||r.strokeStyle||a.setAttribute("stroke","none"),r.fill||r.fillStyle||a.setAttribute("fill","none")),a},e._assembleMarker=function(t){var e=t.r;if("undefined"===typeof t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"===typeof t.symbol?t.symbol(t.x,t.y,e):o.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map((function(t){return t.join(" ")})).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var u=a(s);r.isArray(s)?1===s.length?u.r1=u.r2=u.r3=u.r4=s[0]:2===s.length?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):3===s.length?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;var c=[["M "+(e+u.r1)+","+n],["l "+(i-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-i)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]];return c.join(" ")},e._formatPath=function(t){return t=t.map((function(t){return t.join(" ")})).join(""),~t.indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);r=r.join(","),-1===r.indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",e.width),a.setAttribute("height",e.height),a.getContext("2d").putImageData(e,0,0),n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",a.toDataURL())}},e._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,i=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var c=e(s,n.re,a),h=e(u,n.re,a),f=u>s?1:0,l=Math.abs(u-s)>Math.PI?1:0,d=n.rs,p=n.re,g=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+h.x+","+h.y),o.push("L "+v.x+","+v.y),o.push("A "+d+","+d+",0,"+l+","+(1===f?0:1)+","+g.x+","+g.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+p+","+p+",0,"+l+","+f+","+h.x+","+h.y),n.rs>0?o.push("L "+v.x+","+v.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=this,n=t._attrs,r=t._cfg.attrs,i=t._cfg.el;for(var a in this._setFont(t),n)if(n[a]!==r[a]){if("text"===a){e._setText(t,""+n[a]);continue}if("fillStyle"===a||"strokeStyle"===a){this._setColor(t,a,n[a]);continue}if("matrix"===a){this._setTransform(t);continue}h[a]&&i.setAttribute(h[a],n[a])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",f[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",l[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,(function(t,e){0===e?"alphabetic"===i?u+='<tspan x="'+a+'" dy="'+-s+'em">'+t+"</tspan>":"top"===i?u+='<tspan x="'+a+'" dy="0.9em">'+t+"</tspan>":"middle"===i?u+='<tspan x="'+a+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===i?u+='<tspan x="'+a+'" dy="-'+(s+c)+'em">'+t+"</tspan>":"hanging"===i&&(u+='<tspan x="'+a+'" dy="'+(-(s-1)-c)+'em">'+t+"</tspan>"):u+='<tspan x="'+a+'" dy="1em">'+t+"</tspan>"})),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(h[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(h[e],"url(#"+o+")")}else r.setAttribute(h[e],n);else r.setAttribute(h[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}();t.exports=d},function(t,e,n){var r=n(0),i=n(134),a=n(135),o=n(136),s=n(137),u=n(138),c=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},e.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},e.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},e.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new o(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},e.addGradient=function(t){var e=new i(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addArrow=function(t,e){var n=new o(t,e);return this.el.appendChild(n.el),n.id},e.addShadow=function(t){var e=new a(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addClip=function(t){var e=new s(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=c},function(t,e,n){var r=n(0),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(t){var e=t.match(o);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),r.each(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function u(t,e){var n,a,o=i.exec(t),u=r.mod(r.toRadian(parseFloat(o[1])),2*Math.PI),c=o[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},a={x:1,y:1}):.5*Math.PI<=u&&u<Math.PI?(n={x:1,y:0},a={x:0,y:1}):Math.PI<=u&&u<1.5*Math.PI?(n={x:1,y:1},a={x:0,y:0}):(n={x:0,y:1},a={x:1,y:0});var h=Math.tan(u),f=h*h,l=(a.x-n.x+h*(a.y-n.y))/(f+1)+n.x,d=h*(a.x-n.x+h*(a.y-n.y))/(f+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",l),e.setAttribute("y2",d),e.innerHTML=s(c)}function c(t,e){var n=a.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),u=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=s(u)}var h=function(){function t(t){var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?(e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),u(t,e)):(e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),c(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}var e=t.prototype;return e.match=function(t,e){return this.cfg===e},t}();t.exports=h},function(t,e,n){var r=n(0),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function t(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return r.each(a,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var e=t.prototype;return e.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},e.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},e._parseShadow=function(t,e){var n='<feDropShadow \n dx="'+(t.dx||0)+'" \n dy="'+(t.dy||0)+'" \n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();t.exports=o},function(t,e,n){var r=n(0),i=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=i,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",a/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},function(t,e,n){var r=n(0),i=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},function(t,e,n){var r=n(0),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");e.appendChild(n);var a=r.uniqueId("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var o=i.exec(t),s=o[2];n.setAttribute("href",s);var u=new Image;function c(){e.setAttribute("width",u.width),e.setAttribute("height",u.height)}return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?c():(u.onload=c,u.src=u.src),this}var e=t.prototype;return e.match=function(t,e){return this.cfg===e},t}();t.exports=a},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,r){var i=r.target||r.srcElement;if(!n[i.tagName]){var a=i.parentNode;while(a&&!n[a.tagName])a=a.parentNode;i=a}return this._cfg.el===i?this:this.find((function(t){return t._cfg&&t._cfg.el===i}))}}])}))},e00d:function(t,e,n){const r=n("4651");t.exports={Random:n("c077"),Mds:n("8223"),Circular:n("72c2"),Fruchterman:n("4fef"),Radial:n("9aa7"),Force:n("e293"),Dagre:n("5b70"),Concentric:n("ace3"),Grid:n("eaab"),FruchtermanGroup:n("0031")},t.exports=r},e090:function(t,e,n){var r=n("6f9c"),i=n("b50e"),a=n("17d5").Graph;function o(t){var e=i.buildLayerMatrix(t),n=new a({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}t.exports={debugOrdering:o}},e0bf:function(t,e,n){var r=n("e6d6"),i=n("d63e"),a=n("b8bd"),o=n("5ece"),s=Object.prototype.hasOwnProperty;function u(t){if(r(t))return!0;if(i(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}t.exports=u},e0ef:function(t,e,n){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("3a21"),a=function t(e){if("object"!==("undefined"===typeof e?"undefined":r(e))||null===e)return e;var n=void 0;if(i(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===r(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else for(var s in n={},e)"object"===r(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n};t.exports=a},e24b:function(t,e,n){var r=n("49f4"),i=n("1efc"),a=n("bbc0"),o=n("7a48"),s=n("2524");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,t.exports=u},e293:function(t,e,n){const r=n("0a4a"),i=n("3a21"),a=n("5d9e"),o=n("06bb"),s=n("4651"),u=n("36e0"),c=n("2599"),{LAYOUT_MESSAGE:h}=c;function f(t){const e=t.alphaMin(),n=t.alphaTarget(),r=t.alpha(),i=Math.log((e-n)/(r-n))/Math.log(1-t.alphaDecay()),a=Math.ceil(i);return a}function l(){return"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}s.registerLayout("force",{getDefaultCfg(){return{center:[0,0],nodeStrength:null,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,edgeStrength:null,linkDistance:50,forceSimulation:null,alphaDecay:.028,alphaMin:.001,alpha:.3,collideStrength:1,tick(){},onLayoutEnd(){},onTick(){},workerEnabled:!1}},init(t){const e=this;e.nodes=t.nodes,e.edges=t.edges,e.ticking=!1},execute(){const t=this,e=t.nodes,n=t.edges;if(t.ticking)return;let i=t.forceSimulation;const a=t.alphaMin,o=t.alphaDecay,s=t.alpha;if(i)t.preventOverlap&&t.overlapProcess(i),i.alpha(s).restart(),this.ticking=!0;else try{const u=r.forceManyBody();if(t.nodeStrength&&u.strength(t.nodeStrength),i=r.forceSimulation().nodes(e).force("center",r.forceCenter(t.center[0],t.center[1])).force("charge",u).alpha(s).alphaDecay(o).alphaMin(a),t.preventOverlap&&t.overlapProcess(i),n){const e=n.map(t=>({id:t.id,source:t.source,target:t.target})),a=r.forceLink().id((function(t){return t.id})).links(e);t.edgeStrength&&a.strength(t.edgeStrength),t.linkDistance&&a.distance(t.linkDistance),i.force("link",a)}if(t.workerEnabled&&!l()&&(t.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),t.workerEnabled){i.stop();const n=f(i);for(let t=1;t<=n;t++)i.tick(),postMessage({type:h.TICK,currentTick:t,totalTicks:n,nodes:e});t.ticking=!1}else i.on("tick",()=>{t.tick()}).on("end",()=>{t.ticking=!1,t.onLayoutEnd&&t.onLayoutEnd()}),t.ticking=!0;t.forceSimulation=i}catch(u){t.ticking=!1,console.warn(u)}},overlapProcess(t){const e=this,n=e.nodeSize;let s;const u=e.nodeSpacing;let c;const h=e.collideStrength;if(c=a(u)?()=>u:"function"===typeof u?u:()=>0,n)if(o(n))s=n;else if(isNaN(n)){if(i(n)){const t=n[0]>n[1]?n[0]:n[1],e=t/2;s=t=>e+c(t)}}else{const t=n/2;s=e=>t+c(e)}else s=t=>{if(t.size){if(i(t.size)){const e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e/2+c(t)}return t.size/2+c(t)}return 10+c(t)};t.force("collisionForce",r.forceCollide(s).strength(h))},updateCfg(t){const e=this;e.ticking&&(e.forceSimulation.stop(),e.ticking=!1),e.forceSimulation=null,u.mix(e,t)},destroy(){const t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0}})},e29d:function(module,exports,__webpack_require__){"use strict";(function(global){var numeric=exports;"undefined"!==typeof global&&(global.numeric=numeric),numeric.version="1.2.6",numeric.bench=function(t,e){var n,r,i,a;"undefined"===typeof e&&(e=15),i=.5,n=new Date;while(1){for(i*=2,a=i;a>3;a-=4)t(),t(),t(),t();while(a>0)t(),a--;if(r=new Date,r-n>e)break}for(a=i;a>3;a-=4)t(),t(),t(),t();while(a>0)t(),a--;return r=new Date,1e3*(3*i-1)/(r-n)},numeric._myIndexOf=function(t){var e,n=this.length;for(e=0;e<n;++e)if(this[e]===t)return e;return-1},numeric.myIndexOf=Array.prototype.indexOf?Array.prototype.indexOf:numeric._myIndexOf,numeric.Function=Function,numeric.precision=4,numeric.largeArray=50,numeric.prettyPrint=function(t){function e(t){if(0===t)return"0";if(isNaN(t))return"NaN";if(t<0)return"-"+e(-t);if(isFinite(t)){var n=Math.floor(Math.log(t)/Math.log(10)),r=t/Math.pow(10,n),i=r.toPrecision(numeric.precision);return 10===parseFloat(i)&&(n++,r=1,i=r.toPrecision(numeric.precision)),parseFloat(i).toString()+"e"+n.toString()}return"Infinity"}var n=[];function r(t){var i;if("undefined"===typeof t)return n.push(Array(numeric.precision+8).join(" ")),!1;if("string"===typeof t)return n.push('"'+t+'"'),!1;if("boolean"===typeof t)return n.push(t.toString()),!1;if("number"===typeof t){var a=e(t),o=t.toPrecision(numeric.precision),s=parseFloat(t.toString()).toString(),u=[a,o,s,parseFloat(o).toString(),parseFloat(s).toString()];for(i=1;i<u.length;i++)u[i].length<a.length&&(a=u[i]);return n.push(Array(numeric.precision+8-a.length).join(" ")+a),!1}if(null===t)return n.push("null"),!1;if("function"===typeof t){n.push(t.toString());var c=!1;for(i in t)t.hasOwnProperty(i)&&(c?n.push(",\n"):n.push("\n{"),c=!0,n.push(i),n.push(": \n"),r(t[i]));return c&&n.push("}\n"),!0}if(t instanceof Array){if(t.length>numeric.largeArray)return n.push("...Large Array..."),!0;c=!1;for(n.push("["),i=0;i<t.length;i++)i>0&&(n.push(","),c&&n.push("\n ")),c=r(t[i]);return n.push("]"),!0}n.push("{");c=!1;for(i in t)t.hasOwnProperty(i)&&(c&&n.push(",\n"),c=!0,n.push(i),n.push(": \n"),r(t[i]));return n.push("}"),!0}return r(t),n.join("")},numeric.parseDate=function(t){function e(t){if("string"===typeof t)return Date.parse(t.replace(/-/g,"/"));if(!(t instanceof Array))throw new Error("parseDate: parameter must be arrays of strings");var n,r=[];for(n=0;n<t.length;n++)r[n]=e(t[n]);return r}return e(t)},numeric.parseFloat=function(t){function e(t){if("string"===typeof t)return parseFloat(t);if(!(t instanceof Array))throw new Error("parseFloat: parameter must be arrays of strings");var n,r=[];for(n=0;n<t.length;n++)r[n]=e(t[n]);return r}return e(t)},numeric.parseCSV=function(t){var e,n,r=t.split("\n"),i=[],a=/(([^'",]*)|('[^']*')|("[^"]*")),/g,o=/^\s*(([+-]?[0-9]+(\.[0-9]*)?(e[+-]?[0-9]+)?)|([+-]?[0-9]*(\.[0-9]+)?(e[+-]?[0-9]+)?))\s*$/,s=function(t){return t.substr(0,t.length-1)},u=0;for(n=0;n<r.length;n++){var c,h=(r[n]+",").match(a);if(h.length>0){for(i[u]=[],e=0;e<h.length;e++)c=s(h[e]),o.test(c)?i[u][e]=parseFloat(c):i[u][e]=c;u++}}return i},numeric.toCSV=function(t){var e,n,r,i,a,o=numeric.dim(t);for(r=o[0],o[1],a=[],e=0;e<r;e++){for(i=[],n=0;n<r;n++)i[n]=t[e][n].toString();a[e]=i.join(", ")}return a.join("\n")+"\n"},numeric.getURL=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(),e},numeric.imageURL=function(t){function e(t){var e,n,r,i,a,o,s,u,c=t.length,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f="";for(e=0;e<c;e+=3)n=t[e],r=t[e+1],i=t[e+2],a=n>>2,o=((3&n)<<4)+(r>>4),s=((15&r)<<2)+(i>>6),u=63&i,e+1>=c?s=u=64:e+2>=c&&(u=64),f+=h.charAt(a)+h.charAt(o)+h.charAt(s)+h.charAt(u);return f}function n(t,e,n){"undefined"===typeof e&&(e=0),"undefined"===typeof n&&(n=t.length);var r,i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],a=-1,o=0;t.length;for(r=e;r<n;r++)o=255&(a^t[r]),a=a>>>8^i[o];return-1^a}var r,i,a,o,s,u,c,h,f,l,d=t[0].length,p=t[0][0].length,g=[137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,p>>24&255,p>>16&255,p>>8&255,255&p,d>>24&255,d>>16&255,d>>8&255,255&d,8,2,0,0,0,-1,-2,-3,-4,-5,-6,-7,-8,73,68,65,84,8,29];for(l=n(g,12,29),g[29]=l>>24&255,g[30]=l>>16&255,g[31]=l>>8&255,g[32]=255&l,r=1,i=0,c=0;c<d;c++){for(c<d-1?g.push(0):g.push(1),s=3*p+1+(0===c)&255,u=3*p+1+(0===c)>>8&255,g.push(s),g.push(u),g.push(255&~s),g.push(255&~u),0===c&&g.push(0),h=0;h<p;h++)for(a=0;a<3;a++)s=t[a][c][h],s=s>255?255:s<0?0:Math.round(s),r=(r+s)%65521,i=(i+r)%65521,g.push(s);g.push(0)}return f=(i<<16)+r,g.push(f>>24&255),g.push(f>>16&255),g.push(f>>8&255),g.push(255&f),o=g.length-41,g[33]=o>>24&255,g[34]=o>>16&255,g[35]=o>>8&255,g[36]=255&o,l=n(g,37),g.push(l>>24&255),g.push(l>>16&255),g.push(l>>8&255),g.push(255&l),g.push(0),g.push(0),g.push(0),g.push(0),g.push(73),g.push(69),g.push(78),g.push(68),g.push(174),g.push(66),g.push(96),g.push(130),"data:image/png;base64,"+e(g)},numeric._dim=function(t){var e=[];while("object"===typeof t)e.push(t.length),t=t[0];return e},numeric.dim=function(t){var e,n;return"object"===typeof t?(e=t[0],"object"===typeof e?(n=e[0],"object"===typeof n?numeric._dim(t):[t.length,e.length]):[t.length]):[]},numeric.mapreduce=function(t,e){return Function("x","accum","_s","_k",'if(typeof accum === "undefined") accum = '+e+';\nif(typeof x === "number") { var xi = x; '+t+'; return accum; }\nif(typeof _s === "undefined") _s = numeric.dim(x);\nif(typeof _k === "undefined") _k = 0;\nvar _n = _s[_k];\nvar i,xi;\nif(_k < _s.length-1) {\n for(i=_n-1;i>=0;i--) {\n accum = arguments.callee(x[i],accum,_s,_k+1);\n } return accum;\n}\nfor(i=_n-1;i>=1;i-=2) { \n xi = x[i];\n '+t+";\n xi = x[i-1];\n "+t+";\n}\nif(i === 0) {\n xi = x[i];\n "+t+"\n}\nreturn accum;")},numeric.mapreduce2=function(t,e){return Function("x","var n = x.length;\nvar i,xi;\n"+e+";\nfor(i=n-1;i!==-1;--i) { \n xi = x[i];\n "+t+";\n}\nreturn accum;")},numeric.same=function t(e,n){var r,i;if(!(e instanceof Array)||!(n instanceof Array))return!1;if(i=e.length,i!==n.length)return!1;for(r=0;r<i;r++)if(e[r]!==n[r]){if("object"!==typeof e[r])return!1;if(!t(e[r],n[r]))return!1}return!0},numeric.rep=function(t,e,n){"undefined"===typeof n&&(n=0);var r,i=t[n],a=Array(i);if(n===t.length-1){for(r=i-2;r>=0;r-=2)a[r+1]=e,a[r]=e;return-1===r&&(a[0]=e),a}for(r=i-1;r>=0;r--)a[r]=numeric.rep(t,e,n+1);return a},numeric.dotMMsmall=function(t,e){var n,r,i,a,o,s,u,c,h,f,l;for(a=t.length,o=e.length,s=e[0].length,u=Array(a),n=a-1;n>=0;n--){for(c=Array(s),h=t[n],i=s-1;i>=0;i--){for(f=h[o-1]*e[o-1][i],r=o-2;r>=1;r-=2)l=r-1,f+=h[r]*e[r][i]+h[l]*e[l][i];0===r&&(f+=h[0]*e[0][i]),c[i]=f}u[n]=c}return u},numeric._getCol=function(t,e,n){var r,i=t.length;for(r=i-1;r>0;--r)n[r]=t[r][e],--r,n[r]=t[r][e];0===r&&(n[0]=t[0][e])},numeric.dotMMbig=function(t,e){var n,r,i,a=numeric._getCol,o=e.length,s=Array(o),u=t.length,c=e[0].length,h=new Array(u),f=numeric.dotVV;for(--o,--u,r=u;-1!==r;--r)h[r]=Array(c);for(--c,r=c;-1!==r;--r)for(a(e,r,s),i=u;-1!==i;--i)0,n=t[i],h[i][r]=f(n,s);return h},numeric.dotMV=function(t,e){var n,r=t.length,i=(e.length,Array(r)),a=numeric.dotVV;for(n=r-1;n>=0;n--)i[n]=a(t[n],e);return i},numeric.dotVM=function(t,e){var n,r,i,a,o,s,u;for(i=t.length,a=e[0].length,o=Array(a),r=a-1;r>=0;r--){for(s=t[i-1]*e[i-1][r],n=i-2;n>=1;n-=2)u=n-1,s+=t[n]*e[n][r]+t[u]*e[u][r];0===n&&(s+=t[0]*e[0][r]),o[r]=s}return o},numeric.dotVV=function(t,e){var n,r,i=t.length,a=t[i-1]*e[i-1];for(n=i-2;n>=1;n-=2)r=n-1,a+=t[n]*e[n]+t[r]*e[r];return 0===n&&(a+=t[0]*e[0]),a},numeric.dot=function(t,e){var n=numeric.dim;switch(1e3*n(t).length+n(e).length){case 2002:return e.length<10?numeric.dotMMsmall(t,e):numeric.dotMMbig(t,e);case 2001:return numeric.dotMV(t,e);case 1002:return numeric.dotVM(t,e);case 1001:return numeric.dotVV(t,e);case 1e3:return numeric.mulVS(t,e);case 1:return numeric.mulSV(t,e);case 0:return t*e;default:throw new Error("numeric.dot only works on vectors and matrices")}},numeric.diag=function(t){var e,n,r,i,a=t.length,o=Array(a);for(e=a-1;e>=0;e--){for(i=Array(a),n=e+2,r=a-1;r>=n;r-=2)i[r]=0,i[r-1]=0;for(r>e&&(i[r]=0),i[e]=t[e],r=e-1;r>=1;r-=2)i[r]=0,i[r-1]=0;0===r&&(i[0]=0),o[e]=i}return o},numeric.getDiag=function(t){var e,n=Math.min(t.length,t[0].length),r=Array(n);for(e=n-1;e>=1;--e)r[e]=t[e][e],--e,r[e]=t[e][e];return 0===e&&(r[0]=t[0][0]),r},numeric.identity=function(t){return numeric.diag(numeric.rep([t],1))},numeric.pointwise=function(t,e,n){"undefined"===typeof n&&(n="");var r,i,a=[],o=/\[i\]$/,s="",u=!1;for(r=0;r<t.length;r++)o.test(t[r])?(i=t[r].substring(0,t[r].length-3),s=i):i=t[r],"ret"===i&&(u=!0),a.push(i);return a[t.length]="_s",a[t.length+1]="_k",a[t.length+2]='if(typeof _s === "undefined") _s = numeric.dim('+s+');\nif(typeof _k === "undefined") _k = 0;\nvar _n = _s[_k];\nvar i'+(u?"":", ret = Array(_n)")+";\nif(_k < _s.length-1) {\n for(i=_n-1;i>=0;i--) ret[i] = arguments.callee("+t.join(",")+",_s,_k+1);\n return ret;\n}\n"+n+"\nfor(i=_n-1;i!==-1;--i) {\n "+e+"\n}\nreturn ret;",Function.apply(null,a)},numeric.pointwise2=function(t,e,n){"undefined"===typeof n&&(n="");var r,i,a=[],o=/\[i\]$/,s="",u=!1;for(r=0;r<t.length;r++)o.test(t[r])?(i=t[r].substring(0,t[r].length-3),s=i):i=t[r],"ret"===i&&(u=!0),a.push(i);return a[t.length]="var _n = "+s+".length;\nvar i"+(u?"":", ret = Array(_n)")+";\n"+n+"\nfor(i=_n-1;i!==-1;--i) {\n"+e+"\n}\nreturn ret;",Function.apply(null,a)},numeric._biforeach=function t(e,n,r,i,a){if(i!==r.length-1){var o,s=r[i];for(o=s-1;o>=0;o--)t("object"===typeof e?e[o]:e,"object"===typeof n?n[o]:n,r,i+1,a)}else a(e,n)},numeric._biforeach2=function t(e,n,r,i,a){if(i===r.length-1)return a(e,n);var o,s=r[i],u=Array(s);for(o=s-1;o>=0;--o)u[o]=t("object"===typeof e?e[o]:e,"object"===typeof n?n[o]:n,r,i+1,a);return u},numeric._foreach=function t(e,n,r,i){if(r!==n.length-1){var a,o=n[r];for(a=o-1;a>=0;a--)t(e[a],n,r+1,i)}else i(e)},numeric._foreach2=function t(e,n,r,i){if(r===n.length-1)return i(e);var a,o=n[r],s=Array(o);for(a=o-1;a>=0;a--)s[a]=t(e[a],n,r+1,i);return s},numeric.ops2={add:"+",sub:"-",mul:"*",div:"/",mod:"%",and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">=",band:"&",bor:"|",bxor:"^",lshift:"<<",rshift:">>",rrshift:">>>"},numeric.opseq={addeq:"+=",subeq:"-=",muleq:"*=",diveq:"/=",modeq:"%=",lshifteq:"<<=",rshifteq:">>=",rrshifteq:">>>=",bandeq:"&=",boreq:"|=",bxoreq:"^="},numeric.mathfuns=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","isNaN","isFinite"],numeric.mathfuns2=["atan2","pow","max","min"],numeric.ops1={neg:"-",not:"!",bnot:"~",clone:""},numeric.mapreducers={any:["if(xi) return true;","var accum = false;"],all:["if(!xi) return false;","var accum = true;"],sum:["accum += xi;","var accum = 0;"],prod:["accum *= xi;","var accum = 1;"],norm2Squared:["accum += xi*xi;","var accum = 0;"],norminf:["accum = max(accum,abs(xi));","var accum = 0, max = Math.max, abs = Math.abs;"],norm1:["accum += abs(xi)","var accum = 0, abs = Math.abs;"],sup:["accum = max(accum,xi);","var accum = -Infinity, max = Math.max;"],inf:["accum = min(accum,xi);","var accum = Infinity, min = Math.min;"]},function(){var t,e;for(t=0;t<numeric.mathfuns2.length;++t)e=numeric.mathfuns2[t],numeric.ops2[e]=e;for(t in numeric.ops2)if(numeric.ops2.hasOwnProperty(t)){e=numeric.ops2[t];var n,r,i="";-1!==numeric.myIndexOf.call(numeric.mathfuns2,t)?(i="var "+e+" = Math."+e+";\n",n=function(t,n,r){return t+" = "+e+"("+n+","+r+")"},r=function(t,n){return t+" = "+e+"("+t+","+n+")"}):(n=function(t,n,r){return t+" = "+n+" "+e+" "+r},r=numeric.opseq.hasOwnProperty(t+"eq")?function(t,n){return t+" "+e+"= "+n}:function(t,n){return t+" = "+t+" "+e+" "+n}),numeric[t+"VV"]=numeric.pointwise2(["x[i]","y[i]"],n("ret[i]","x[i]","y[i]"),i),numeric[t+"SV"]=numeric.pointwise2(["x","y[i]"],n("ret[i]","x","y[i]"),i),numeric[t+"VS"]=numeric.pointwise2(["x[i]","y"],n("ret[i]","x[i]","y"),i),numeric[t]=Function("var n = arguments.length, i, x = arguments[0], y;\nvar VV = numeric."+t+"VV, VS = numeric."+t+"VS, SV = numeric."+t+'SV;\nvar dim = numeric.dim;\nfor(i=1;i!==n;++i) { \n y = arguments[i];\n if(typeof x === "object") {\n if(typeof y === "object") x = numeric._biforeach2(x,y,dim(x),0,VV);\n else x = numeric._biforeach2(x,y,dim(x),0,VS);\n } else if(typeof y === "object") x = numeric._biforeach2(x,y,dim(y),0,SV);\n else '+r("x","y")+"\n}\nreturn x;\n"),numeric[e]=numeric[t],numeric[t+"eqV"]=numeric.pointwise2(["ret[i]","x[i]"],r("ret[i]","x[i]"),i),numeric[t+"eqS"]=numeric.pointwise2(["ret[i]","x"],r("ret[i]","x"),i),numeric[t+"eq"]=Function("var n = arguments.length, i, x = arguments[0], y;\nvar V = numeric."+t+"eqV, S = numeric."+t+'eqS\nvar s = numeric.dim(x);\nfor(i=1;i!==n;++i) { \n y = arguments[i];\n if(typeof y === "object") numeric._biforeach(x,y,s,0,V);\n else numeric._biforeach(x,y,s,0,S);\n}\nreturn x;\n')}for(t=0;t<numeric.mathfuns2.length;++t)e=numeric.mathfuns2[t],delete numeric.ops2[e];for(t=0;t<numeric.mathfuns.length;++t)e=numeric.mathfuns[t],numeric.ops1[e]=e;for(t in numeric.ops1)numeric.ops1.hasOwnProperty(t)&&(i="",e=numeric.ops1[t],-1!==numeric.myIndexOf.call(numeric.mathfuns,t)&&Math.hasOwnProperty(e)&&(i="var "+e+" = Math."+e+";\n"),numeric[t+"eqV"]=numeric.pointwise2(["ret[i]"],"ret[i] = "+e+"(ret[i]);",i),numeric[t+"eq"]=Function("x",'if(typeof x !== "object") return '+e+"x\nvar i;\nvar V = numeric."+t+"eqV;\nvar s = numeric.dim(x);\nnumeric._foreach(x,s,0,V);\nreturn x;\n"),numeric[t+"V"]=numeric.pointwise2(["x[i]"],"ret[i] = "+e+"(x[i]);",i),numeric[t]=Function("x",'if(typeof x !== "object") return '+e+"(x)\nvar i;\nvar V = numeric."+t+"V;\nvar s = numeric.dim(x);\nreturn numeric._foreach2(x,s,0,V);\n"));for(t=0;t<numeric.mathfuns.length;++t)e=numeric.mathfuns[t],delete numeric.ops1[e];for(t in numeric.mapreducers)numeric.mapreducers.hasOwnProperty(t)&&(e=numeric.mapreducers[t],numeric[t+"V"]=numeric.mapreduce2(e[0],e[1]),numeric[t]=Function("x","s","k",e[1]+'if(typeof x !== "object") { xi = x;\n'+e[0]+';\n return accum;\n}if(typeof s === "undefined") s = numeric.dim(x);\nif(typeof k === "undefined") k = 0;\nif(k === s.length-1) return numeric.'+t+"V(x);\nvar xi;\nvar n = x.length, i;\nfor(i=n-1;i!==-1;--i) {\n xi = arguments.callee(x[i]);\n"+e[0]+";\n}\nreturn accum;\n"))}(),numeric.truncVV=numeric.pointwise(["x[i]","y[i]"],"ret[i] = round(x[i]/y[i])*y[i];","var round = Math.round;"),numeric.truncVS=numeric.pointwise(["x[i]","y"],"ret[i] = round(x[i]/y)*y;","var round = Math.round;"),numeric.truncSV=numeric.pointwise(["x","y[i]"],"ret[i] = round(x/y[i])*y[i];","var round = Math.round;"),numeric.trunc=function(t,e){return"object"===typeof t?"object"===typeof e?numeric.truncVV(t,e):numeric.truncVS(t,e):"object"===typeof e?numeric.truncSV(t,e):Math.round(t/e)*e},numeric.inv=function(t){var e,n,r,i,a,o,s,u=numeric.dim(t),c=Math.abs,h=u[0],f=u[1],l=numeric.clone(t),d=numeric.identity(h);for(o=0;o<f;++o){var p=-1,g=-1;for(a=o;a!==h;++a)s=c(l[a][o]),s>g&&(p=a,g=s);for(n=l[p],l[p]=l[o],l[o]=n,i=d[p],d[p]=d[o],d[o]=i,t=n[o],s=o;s!==f;++s)n[s]/=t;for(s=f-1;-1!==s;--s)i[s]/=t;for(a=h-1;-1!==a;--a)if(a!==o){for(e=l[a],r=d[a],t=e[o],s=o+1;s!==f;++s)e[s]-=n[s]*t;for(s=f-1;s>0;--s)r[s]-=i[s]*t,--s,r[s]-=i[s]*t;0===s&&(r[0]-=i[0]*t)}}return d},numeric.det=function(t){var e=numeric.dim(t);if(2!==e.length||e[0]!==e[1])throw new Error("numeric: det() only works on square matrices");var n,r,i,a,o,s,u,c,h=e[0],f=1,l=numeric.clone(t);for(r=0;r<h-1;r++){for(i=r,n=r+1;n<h;n++)Math.abs(l[n][r])>Math.abs(l[i][r])&&(i=n);for(i!==r&&(u=l[i],l[i]=l[r],l[r]=u,f*=-1),a=l[r],n=r+1;n<h;n++){for(o=l[n],s=o[r]/a[r],i=r+1;i<h-1;i+=2)c=i+1,o[i]-=a[i]*s,o[c]-=a[c]*s;i!==h&&(o[i]-=a[i]*s)}if(0===a[r])return 0;f*=a[r]}return f*l[r][r]},numeric.transpose=function(t){var e,n,r,i,a,o=t.length,s=t[0].length,u=Array(s);for(n=0;n<s;n++)u[n]=Array(o);for(e=o-1;e>=1;e-=2){for(i=t[e],r=t[e-1],n=s-1;n>=1;--n)a=u[n],a[e]=i[n],a[e-1]=r[n],--n,a=u[n],a[e]=i[n],a[e-1]=r[n];0===n&&(a=u[0],a[e]=i[0],a[e-1]=r[0])}if(0===e){for(r=t[0],n=s-1;n>=1;--n)u[n][0]=r[n],--n,u[n][0]=r[n];0===n&&(u[0][0]=r[0])}return u},numeric.negtranspose=function(t){var e,n,r,i,a,o=t.length,s=t[0].length,u=Array(s);for(n=0;n<s;n++)u[n]=Array(o);for(e=o-1;e>=1;e-=2){for(i=t[e],r=t[e-1],n=s-1;n>=1;--n)a=u[n],a[e]=-i[n],a[e-1]=-r[n],--n,a=u[n],a[e]=-i[n],a[e-1]=-r[n];0===n&&(a=u[0],a[e]=-i[0],a[e-1]=-r[0])}if(0===e){for(r=t[0],n=s-1;n>=1;--n)u[n][0]=-r[n],--n,u[n][0]=-r[n];0===n&&(u[0][0]=-r[0])}return u},numeric._random=function t(e,n){var r,i,a=e[n],o=Array(a);if(n===e.length-1){for(i=Math.random,r=a-1;r>=1;r-=2)o[r]=i(),o[r-1]=i();return 0===r&&(o[0]=i()),o}for(r=a-1;r>=0;r--)o[r]=t(e,n+1);return o},numeric.random=function(t){return numeric._random(t,0)},numeric.norm2=function(t){return Math.sqrt(numeric.norm2Squared(t))},numeric.linspace=function(t,e,n){if("undefined"===typeof n&&(n=Math.max(Math.round(e-t)+1,1)),n<2)return 1===n?[t]:[];var r,i=Array(n);for(n--,r=n;r>=0;r--)i[r]=(r*e+(n-r)*t)/n;return i},numeric.getBlock=function(t,e,n){var r=numeric.dim(t);function i(t,a){var o,s=e[a],u=n[a]-s,c=Array(u);if(a===r.length-1){for(o=u;o>=0;o--)c[o]=t[o+s];return c}for(o=u;o>=0;o--)c[o]=i(t[o+s],a+1);return c}return i(t,0)},numeric.setBlock=function(t,e,n,r){var i=numeric.dim(t);function a(t,r,o){var s,u=e[o],c=n[o]-u;if(o===i.length-1)for(s=c;s>=0;s--)t[s+u]=r[s];for(s=c;s>=0;s--)a(t[s+u],r[s],o+1)}return a(t,r,0),t},numeric.getRange=function(t,e,n){var r,i,a,o,s=e.length,u=n.length,c=Array(s);for(r=s-1;-1!==r;--r)for(c[r]=Array(u),a=c[r],o=t[e[r]],i=u-1;-1!==i;--i)a[i]=o[n[i]];return c},numeric.blockMatrix=function(t){var e=numeric.dim(t);if(e.length<4)return numeric.blockMatrix([t]);var n,r,i,a,o,s=e[0],u=e[1];for(n=0,r=0,i=0;i<s;++i)n+=t[i][0].length;for(a=0;a<u;++a)r+=t[0][a][0].length;var c=Array(n);for(i=0;i<n;++i)c[i]=Array(r);var h,f,l,d,p,g=0;for(i=0;i<s;++i){for(h=r,a=u-1;-1!==a;--a)for(o=t[i][a],h-=o[0].length,l=o.length-1;-1!==l;--l)for(p=o[l],f=c[g+l],d=p.length-1;-1!==d;--d)f[h+d]=p[d];g+=t[i][0].length}return c},numeric.tensor=function(t,e){if("number"===typeof t||"number"===typeof e)return numeric.mul(t,e);var n=numeric.dim(t),r=numeric.dim(e);if(1!==n.length||1!==r.length)throw new Error("numeric: tensor product is only defined for vectors");var i,a,o,s,u=n[0],c=r[0],h=Array(u);for(a=u-1;a>=0;a--){for(i=Array(c),s=t[a],o=c-1;o>=3;--o)i[o]=s*e[o],--o,i[o]=s*e[o],--o,i[o]=s*e[o],--o,i[o]=s*e[o];while(o>=0)i[o]=s*e[o],--o;h[a]=i}return h},numeric.T=function(t,e){this.x=t,this.y=e},numeric.t=function(t,e){return new numeric.T(t,e)},numeric.Tbinop=function(t,e,n,r,i){var a;numeric.indexOf;if("string"!==typeof i)for(a in i="",numeric)numeric.hasOwnProperty(a)&&(t.indexOf(a)>=0||e.indexOf(a)>=0||n.indexOf(a)>=0||r.indexOf(a)>=0)&&a.length>1&&(i+="var "+a+" = numeric."+a+";\n");return Function(["y"],"var x = this;\nif(!(y instanceof numeric.T)) { y = new numeric.T(y); }\n"+i+"\nif(x.y) { if(y.y) { return new numeric.T("+r+");\n }\n return new numeric.T("+n+");\n}\nif(y.y) {\n return new numeric.T("+e+");\n}\nreturn new numeric.T("+t+");\n")},numeric.T.prototype.add=numeric.Tbinop("add(x.x,y.x)","add(x.x,y.x),y.y","add(x.x,y.x),x.y","add(x.x,y.x),add(x.y,y.y)"),numeric.T.prototype.sub=numeric.Tbinop("sub(x.x,y.x)","sub(x.x,y.x),neg(y.y)","sub(x.x,y.x),x.y","sub(x.x,y.x),sub(x.y,y.y)"),numeric.T.prototype.mul=numeric.Tbinop("mul(x.x,y.x)","mul(x.x,y.x),mul(x.x,y.y)","mul(x.x,y.x),mul(x.y,y.x)","sub(mul(x.x,y.x),mul(x.y,y.y)),add(mul(x.x,y.y),mul(x.y,y.x))"),numeric.T.prototype.reciprocal=function(){var t=numeric.mul,e=numeric.div;if(this.y){var n=numeric.add(t(this.x,this.x),t(this.y,this.y));return new numeric.T(e(this.x,n),e(numeric.neg(this.y),n))}return new T(e(1,this.x))},numeric.T.prototype.div=function(t){if(t instanceof numeric.T||(t=new numeric.T(t)),t.y)return this.mul(t.reciprocal());var e=numeric.div;return this.y?new numeric.T(e(this.x,t.x),e(this.y,t.x)):new numeric.T(e(this.x,t.x))},numeric.T.prototype.dot=numeric.Tbinop("dot(x.x,y.x)","dot(x.x,y.x),dot(x.x,y.y)","dot(x.x,y.x),dot(x.y,y.x)","sub(dot(x.x,y.x),dot(x.y,y.y)),add(dot(x.x,y.y),dot(x.y,y.x))"),numeric.T.prototype.transpose=function(){var t=numeric.transpose,e=this.x,n=this.y;return n?new numeric.T(t(e),t(n)):new numeric.T(t(e))},numeric.T.prototype.transjugate=function(){var t=numeric.transpose,e=this.x,n=this.y;return n?new numeric.T(t(e),numeric.negtranspose(n)):new numeric.T(t(e))},numeric.Tunop=function(t,e,n){return"string"!==typeof n&&(n=""),Function("var x = this;\n"+n+"\nif(x.y) { "+e+";\n}\n"+t+";\n")},numeric.T.prototype.exp=numeric.Tunop("return new numeric.T(ex)","return new numeric.T(mul(cos(x.y),ex),mul(sin(x.y),ex))","var ex = numeric.exp(x.x), cos = numeric.cos, sin = numeric.sin, mul = numeric.mul;"),numeric.T.prototype.conj=numeric.Tunop("return new numeric.T(x.x);","return new numeric.T(x.x,numeric.neg(x.y));"),numeric.T.prototype.neg=numeric.Tunop("return new numeric.T(neg(x.x));","return new numeric.T(neg(x.x),neg(x.y));","var neg = numeric.neg;"),numeric.T.prototype.sin=numeric.Tunop("return new numeric.T(numeric.sin(x.x))","return x.exp().sub(x.neg().exp()).div(new numeric.T(0,2));"),numeric.T.prototype.cos=numeric.Tunop("return new numeric.T(numeric.cos(x.x))","return x.exp().add(x.neg().exp()).div(2);"),numeric.T.prototype.abs=numeric.Tunop("return new numeric.T(numeric.abs(x.x));","return new numeric.T(numeric.sqrt(numeric.add(mul(x.x,x.x),mul(x.y,x.y))));","var mul = numeric.mul;"),numeric.T.prototype.log=numeric.Tunop("return new numeric.T(numeric.log(x.x));","var theta = new numeric.T(numeric.atan2(x.y,x.x)), r = x.abs();\nreturn new numeric.T(numeric.log(r.x),theta.x);"),numeric.T.prototype.norm2=numeric.Tunop("return numeric.norm2(x.x);","var f = numeric.norm2Squared;\nreturn Math.sqrt(f(x.x)+f(x.y));"),numeric.T.prototype.inv=function(){var t=this;if("undefined"===typeof t.y)return new numeric.T(numeric.inv(t.x));var e,n,r,i,a,o,s,u,c,h,f,l,d,p,g,v,m,y,x=t.x.length,b=numeric.identity(x),w=numeric.rep([x,x],0),_=numeric.clone(t.x),M=numeric.clone(t.y);for(c=0;c<x;c++){for(p=_[c][c],g=M[c][c],l=p*p+g*g,f=c,h=c+1;h<x;h++)p=_[h][c],g=M[h][c],d=p*p+g*g,d>l&&(f=h,l=d);for(f!==c&&(y=_[c],_[c]=_[f],_[f]=y,y=M[c],M[c]=M[f],M[f]=y,y=b[c],b[c]=b[f],b[f]=y,y=w[c],w[c]=w[f],w[f]=y),e=_[c],n=M[c],a=b[c],o=w[c],p=e[c],g=n[c],h=c+1;h<x;h++)v=e[h],m=n[h],e[h]=(v*p+m*g)/l,n[h]=(m*p-v*g)/l;for(h=0;h<x;h++)v=a[h],m=o[h],a[h]=(v*p+m*g)/l,o[h]=(m*p-v*g)/l;for(h=c+1;h<x;h++){for(r=_[h],i=M[h],s=b[h],u=w[h],p=r[c],g=i[c],f=c+1;f<x;f++)v=e[f],m=n[f],r[f]-=v*p-m*g,i[f]-=m*p+v*g;for(f=0;f<x;f++)v=a[f],m=o[f],s[f]-=v*p-m*g,u[f]-=m*p+v*g}}for(c=x-1;c>0;c--)for(a=b[c],o=w[c],h=c-1;h>=0;h--)for(s=b[h],u=w[h],p=_[h][c],g=M[h][c],f=x-1;f>=0;f--)v=a[f],m=o[f],s[f]-=p*v-g*m,u[f]-=p*m+g*v;return new numeric.T(b,w)},numeric.T.prototype.get=function(t){var e,n=this.x,r=this.y,i=0,a=t.length;if(r){while(i<a)e=t[i],n=n[e],r=r[e],i++;return new numeric.T(n,r)}while(i<a)e=t[i],n=n[e],i++;return new numeric.T(n)},numeric.T.prototype.set=function(t,e){var n,r=this.x,i=this.y,a=0,o=t.length,s=e.x,u=e.y;if(0===o)return u?this.y=u:i&&(this.y=void 0),this.x=r,this;if(u){i||(i=numeric.rep(numeric.dim(r),0),this.y=i);while(a<o-1)n=t[a],r=r[n],i=i[n],a++;return n=t[a],r[n]=s,i[n]=u,this}if(i){while(a<o-1)n=t[a],r=r[n],i=i[n],a++;return n=t[a],r[n]=s,i[n]=s instanceof Array?numeric.rep(numeric.dim(s),0):0,this}while(a<o-1)n=t[a],r=r[n],a++;return n=t[a],r[n]=s,this},numeric.T.prototype.getRows=function(t,e){var n,r,i=e-t+1,a=Array(i),o=this.x,s=this.y;for(n=t;n<=e;n++)a[n-t]=o[n];if(s){for(r=Array(i),n=t;n<=e;n++)r[n-t]=s[n];return new numeric.T(a,r)}return new numeric.T(a)},numeric.T.prototype.setRows=function(t,e,n){var r,i=this.x,a=this.y,o=n.x,s=n.y;for(r=t;r<=e;r++)i[r]=o[r-t];if(s)for(a||(a=numeric.rep(numeric.dim(i),0),this.y=a),r=t;r<=e;r++)a[r]=s[r-t];else if(a)for(r=t;r<=e;r++)a[r]=numeric.rep([o[r-t].length],0);return this},numeric.T.prototype.getRow=function(t){var e=this.x,n=this.y;return n?new numeric.T(e[t],n[t]):new numeric.T(e[t])},numeric.T.prototype.setRow=function(t,e){var n=this.x,r=this.y,i=e.x,a=e.y;return n[t]=i,a?(r||(r=numeric.rep(numeric.dim(n),0),this.y=r),r[t]=a):r&&(r=numeric.rep([i.length],0)),this},numeric.T.prototype.getBlock=function(t,e){var n=this.x,r=this.y,i=numeric.getBlock;return r?new numeric.T(i(n,t,e),i(r,t,e)):new numeric.T(i(n,t,e))},numeric.T.prototype.setBlock=function(t,e,n){n instanceof numeric.T||(n=new numeric.T(n));var r=this.x,i=this.y,a=numeric.setBlock,o=n.x,s=n.y;if(s)return i||(this.y=numeric.rep(numeric.dim(this),0),i=this.y),a(r,t,e,o),a(i,t,e,s),this;a(r,t,e,o),i&&a(i,t,e,numeric.rep(numeric.dim(o),0))},numeric.T.rep=function(t,e){var n=numeric.T;e instanceof n||(e=new n(e));var r=e.x,i=e.y,a=numeric.rep;return i?new n(a(t,r),a(t,i)):new n(a(t,r))},numeric.T.diag=function(t){t instanceof numeric.T||(t=new numeric.T(t));var e=t.x,n=t.y,r=numeric.diag;return n?new numeric.T(r(e),r(n)):new numeric.T(r(e))},numeric.T.eig=function(){if(this.y)throw new Error("eig: not implemented for complex matrices.");return numeric.eig(this.x)},numeric.T.identity=function(t){return new numeric.T(numeric.identity(t))},numeric.T.prototype.getDiag=function(){var t=numeric,e=this.x,n=this.y;return n?new t.T(t.getDiag(e),t.getDiag(n)):new t.T(t.getDiag(e))},numeric.house=function(t){var e=numeric.clone(t),n=t[0]>=0?1:-1,r=n*numeric.norm2(t);e[0]+=r;var i=numeric.norm2(e);if(0===i)throw new Error("eig: internal error");return numeric.div(e,i)},numeric.toUpperHessenberg=function(t){var e=numeric.dim(t);if(2!==e.length||e[0]!==e[1])throw new Error("numeric: toUpperHessenberg() only works on square matrices");var n,r,i,a,o,s,u,c,h,f,l=e[0],d=numeric.clone(t),p=numeric.identity(l);for(r=0;r<l-2;r++){for(a=Array(l-r-1),n=r+1;n<l;n++)a[n-r-1]=d[n][r];if(numeric.norm2(a)>0){for(o=numeric.house(a),s=numeric.getBlock(d,[r+1,r],[l-1,l-1]),u=numeric.tensor(o,numeric.dot(o,s)),n=r+1;n<l;n++)for(c=d[n],h=u[n-r-1],i=r;i<l;i++)c[i]-=2*h[i-r];for(s=numeric.getBlock(d,[0,r+1],[l-1,l-1]),u=numeric.tensor(numeric.dot(s,o),o),n=0;n<l;n++)for(c=d[n],h=u[n],i=r+1;i<l;i++)c[i]-=2*h[i-r-1];for(s=Array(l-r-1),n=r+1;n<l;n++)s[n-r-1]=p[n];for(u=numeric.tensor(o,numeric.dot(o,s)),n=r+1;n<l;n++)for(f=p[n],h=u[n-r-1],i=0;i<l;i++)f[i]-=2*h[i]}}return{H:d,Q:p}},numeric.epsilon=2220446049250313e-31,numeric.QRFrancis=function(t,e){"undefined"===typeof e&&(e=1e4),t=numeric.clone(t);numeric.clone(t);var n,r,i,a,o,s,u,c,h,f,l,d,p,g,v,m,y,x,b=numeric.dim(t),w=b[0],_=numeric.identity(w);if(w<3)return{Q:_,B:[[0,w-1]]};var M=numeric.epsilon;for(x=0;x<e;x++){for(m=0;m<w-1;m++)if(Math.abs(t[m+1][m])<M*(Math.abs(t[m][m])+Math.abs(t[m+1][m+1]))){var S=numeric.QRFrancis(numeric.getBlock(t,[0,0],[m,m]),e),k=numeric.QRFrancis(numeric.getBlock(t,[m+1,m+1],[w-1,w-1]),e);for(d=Array(m+1),v=0;v<=m;v++)d[v]=_[v];for(p=numeric.dot(S.Q,d),v=0;v<=m;v++)_[v]=p[v];for(d=Array(w-m-1),v=m+1;v<w;v++)d[v-m-1]=_[v];for(p=numeric.dot(k.Q,d),v=m+1;v<w;v++)_[v]=p[v-m-1];return{Q:_,B:S.B.concat(numeric.add(k.B,m+1))}}var A,P,C;if(i=t[w-2][w-2],a=t[w-2][w-1],o=t[w-1][w-2],s=t[w-1][w-1],c=i+s,u=i*s-a*o,h=numeric.getBlock(t,[0,0],[2,2]),c*c>=4*u)A=.5*(c+Math.sqrt(c*c-4*u)),P=.5*(c-Math.sqrt(c*c-4*u)),h=numeric.add(numeric.sub(numeric.dot(h,h),numeric.mul(h,A+P)),numeric.diag(numeric.rep([3],A*P)));else h=numeric.add(numeric.sub(numeric.dot(h,h),numeric.mul(h,c)),numeric.diag(numeric.rep([3],u)));for(n=[h[0][0],h[1][0],h[2][0]],r=numeric.house(n),d=[t[0],t[1],t[2]],p=numeric.tensor(r,numeric.dot(r,d)),v=0;v<3;v++)for(l=t[v],g=p[v],y=0;y<w;y++)l[y]-=2*g[y];for(d=numeric.getBlock(t,[0,0],[w-1,2]),p=numeric.tensor(numeric.dot(d,r),r),v=0;v<w;v++)for(l=t[v],g=p[v],y=0;y<3;y++)l[y]-=2*g[y];for(d=[_[0],_[1],_[2]],p=numeric.tensor(r,numeric.dot(r,d)),v=0;v<3;v++)for(f=_[v],g=p[v],y=0;y<w;y++)f[y]-=2*g[y];for(m=0;m<w-2;m++){for(y=m;y<=m+1;y++)if(Math.abs(t[y+1][y])<M*(Math.abs(t[y][y])+Math.abs(t[y+1][y+1]))){S=numeric.QRFrancis(numeric.getBlock(t,[0,0],[y,y]),e),k=numeric.QRFrancis(numeric.getBlock(t,[y+1,y+1],[w-1,w-1]),e);for(d=Array(y+1),v=0;v<=y;v++)d[v]=_[v];for(p=numeric.dot(S.Q,d),v=0;v<=y;v++)_[v]=p[v];for(d=Array(w-y-1),v=y+1;v<w;v++)d[v-y-1]=_[v];for(p=numeric.dot(k.Q,d),v=y+1;v<w;v++)_[v]=p[v-y-1];return{Q:_,B:S.B.concat(numeric.add(k.B,y+1))}}for(C=Math.min(w-1,m+3),n=Array(C-m),v=m+1;v<=C;v++)n[v-m-1]=t[v][m];for(r=numeric.house(n),d=numeric.getBlock(t,[m+1,m],[C,w-1]),p=numeric.tensor(r,numeric.dot(r,d)),v=m+1;v<=C;v++)for(l=t[v],g=p[v-m-1],y=m;y<w;y++)l[y]-=2*g[y-m];for(d=numeric.getBlock(t,[0,m+1],[w-1,C]),p=numeric.tensor(numeric.dot(d,r),r),v=0;v<w;v++)for(l=t[v],g=p[v],y=m+1;y<=C;y++)l[y]-=2*g[y-m-1];for(d=Array(C-m),v=m+1;v<=C;v++)d[v-m-1]=_[v];for(p=numeric.tensor(r,numeric.dot(r,d)),v=m+1;v<=C;v++)for(f=_[v],g=p[v-m-1],y=0;y<w;y++)f[y]-=2*g[y]}}throw new Error("numeric: eigenvalue iteration does not converge -- increase maxiter?")},numeric.eig=function(t,e){var n,r,i,a,o,s,u,c,h,f,l,d,p,g,v,m,y,x=numeric.toUpperHessenberg(t),b=numeric.QRFrancis(x.H,e),w=numeric.T,_=t.length,M=b.B,S=numeric.dot(b.Q,numeric.dot(x.H,numeric.transpose(b.Q))),k=new w(numeric.dot(b.Q,x.Q)),A=M.length,P=Math.sqrt;for(r=0;r<A;r++)if(n=M[r][0],n===M[r][1]);else{if(a=n+1,o=S[n][n],s=S[n][a],u=S[a][n],c=S[a][a],0===s&&0===u)continue;h=-o-c,f=o*c-s*u,l=h*h-4*f,l>=0?(d=h<0?-.5*(h-P(l)):-.5*(h+P(l)),m=(o-d)*(o-d)+s*s,y=u*u+(c-d)*(c-d),m>y?(m=P(m),g=(o-d)/m,v=s/m):(y=P(y),g=u/y,v=(c-d)/y),i=new w([[v,-g],[g,v]]),k.setRows(n,a,i.dot(k.getRows(n,a)))):(d=-.5*h,p=.5*P(-l),m=(o-d)*(o-d)+s*s,y=u*u+(c-d)*(c-d),m>y?(m=P(m+p*p),g=(o-d)/m,v=s/m,d=0,p/=m):(y=P(y+p*p),g=u/y,v=(c-d)/y,d=p/y,p=0),i=new w([[v,-g],[g,v]],[[d,p],[p,-d]]),k.setRows(n,a,i.dot(k.getRows(n,a))))}var C=k.dot(t).dot(k.transjugate()),E=(_=t.length,numeric.T.identity(_));for(a=0;a<_;a++)if(a>0)for(r=a-1;r>=0;r--){var I=C.get([r,r]),O=C.get([a,a]);numeric.neq(I.x,O.x)||numeric.neq(I.y,O.y)?(d=C.getRow(r).getBlock([r],[a-1]),p=E.getRow(a).getBlock([r],[a-1]),E.set([a,r],C.get([r,a]).neg().sub(d.dot(p)).div(I.sub(O)))):E.setRow(a,E.getRow(r))}for(a=0;a<_;a++)d=E.getRow(a),E.setRow(a,d.div(d.norm2()));return E=E.transpose(),E=k.transjugate().dot(E),{lambda:C.getDiag(),E:E}},numeric.ccsSparse=function(t){var e,n,r,i=t.length,a=[];for(n=i-1;-1!==n;--n)for(r in e=t[n],e){r=parseInt(r);while(r>=a.length)a[a.length]=0;0!==e[r]&&a[r]++}var o=a.length,s=Array(o+1);for(s[0]=0,n=0;n<o;++n)s[n+1]=s[n]+a[n];var u=Array(s[o]),c=Array(s[o]);for(n=i-1;-1!==n;--n)for(r in e=t[n],e)0!==e[r]&&(a[r]--,u[s[r]+a[r]]=n,c[s[r]+a[r]]=e[r]);return[s,u,c]},numeric.ccsFull=function(t){var e,n,r,i,a=t[0],o=t[1],s=t[2],u=numeric.ccsDim(t),c=u[0],h=u[1],f=numeric.rep([c,h],0);for(e=0;e<h;e++)for(r=a[e],i=a[e+1],n=r;n<i;++n)f[o[n]][e]=s[n];return f},numeric.ccsTSolve=function(t,e,n,r,i){var a,o,s,u,c,h,f,l=t[0],d=t[1],p=t[2],g=l.length-1,v=Math.max,m=0;function y(t){var e;if(0===n[t]){for(n[t]=1,e=l[t];e<l[t+1];++e)y(d[e]);i[m]=t,++m}}for("undefined"===typeof r&&(n=numeric.rep([g],0)),"undefined"===typeof r&&(r=numeric.linspace(0,n.length-1)),"undefined"===typeof i&&(i=[]),a=r.length-1;-1!==a;--a)y(r[a]);for(i.length=m,a=i.length-1;-1!==a;--a)n[i[a]]=0;for(a=r.length-1;-1!==a;--a)o=r[a],n[o]=e[o];for(a=i.length-1;-1!==a;--a){for(o=i[a],s=l[o],u=v(l[o+1],s),c=s;c!==u;++c)if(d[c]===o){n[o]/=p[c];break}for(f=n[o],c=s;c!==u;++c)h=d[c],h!==o&&(n[h]-=f*p[c])}return n},numeric.ccsDFS=function(t){this.k=Array(t),this.k1=Array(t),this.j=Array(t)},numeric.ccsDFS.prototype.dfs=function(t,e,n,r,i,a){var o,s,u,c=0,h=i.length,f=this.k,l=this.k1,d=this.j;if(0===r[t]){r[t]=1,d[0]=t,f[0]=s=e[t],l[0]=u=e[t+1];while(1)if(s>=u){if(i[h]=d[c],0===c)return;++h,--c,s=f[c],u=l[c]}else o=a[n[s]],0===r[o]?(r[o]=1,f[c]=s,++c,d[c]=o,s=e[o],l[c]=u=e[o+1]):++s}},numeric.ccsLPSolve=function(t,e,n,r,i,a,o){var s,u,c,h,f,l,d,p,g,v=t[0],m=t[1],y=t[2],x=(v.length,e[0]),b=e[1],w=e[2];for(u=x[i],c=x[i+1],r.length=0,s=u;s<c;++s)o.dfs(a[b[s]],v,m,n,r,a);for(s=r.length-1;-1!==s;--s)n[r[s]]=0;for(s=u;s!==c;++s)h=a[b[s]],n[h]=w[s];for(s=r.length-1;-1!==s;--s){for(h=r[s],f=v[h],l=v[h+1],d=f;d<l;++d)if(a[m[d]]===h){n[h]/=y[d];break}for(g=n[h],d=f;d<l;++d)p=a[m[d]],p!==h&&(n[p]-=g*y[d])}return n},numeric.ccsLUP1=function(t,e){var n,r,i,a,o,s,u,c=t[0].length-1,h=[numeric.rep([c+1],0),[],[]],f=[numeric.rep([c+1],0),[],[]],l=h[0],d=h[1],p=h[2],g=f[0],v=f[1],m=f[2],y=numeric.rep([c],0),x=numeric.rep([c],0),b=numeric.ccsLPSolve,w=(Math.max,Math.abs),_=numeric.linspace(0,c-1),M=numeric.linspace(0,c-1),S=new numeric.ccsDFS(c);for("undefined"===typeof e&&(e=1),n=0;n<c;++n){for(b(h,t,y,x,n,M,S),a=-1,o=-1,r=x.length-1;-1!==r;--r)i=x[r],i<=n||(s=w(y[i]),s>a&&(o=i,a=s));for(w(y[n])<e*a&&(r=_[n],a=_[o],_[n]=a,M[a]=n,_[o]=r,M[r]=o,a=y[n],y[n]=y[o],y[o]=a),a=l[n],o=g[n],u=y[n],d[a]=_[n],p[a]=1,++a,r=x.length-1;-1!==r;--r)i=x[r],s=y[i],x[r]=0,y[i]=0,i<=n?(v[o]=i,m[o]=s,++o):(d[a]=_[i],p[a]=s/u,++a);l[n+1]=a,g[n+1]=o}for(r=d.length-1;-1!==r;--r)d[r]=M[d[r]];return{L:h,U:f,P:_,Pinv:M}},numeric.ccsDFS0=function(t){this.k=Array(t),this.k1=Array(t),this.j=Array(t)},numeric.ccsDFS0.prototype.dfs=function(t,e,n,r,i,a,o){var s,u,c,h=0,f=i.length,l=this.k,d=this.k1,p=this.j;if(0===r[t]){r[t]=1,p[0]=t,l[0]=u=e[a[t]],d[0]=c=e[a[t]+1];while(1){if(isNaN(u))throw new Error("Ow!");if(u>=c){if(i[f]=a[p[h]],0===h)return;++f,--h,u=l[h],c=d[h]}else s=n[u],0===r[s]?(r[s]=1,l[h]=u,++h,p[h]=s,s=a[s],u=e[s],d[h]=c=e[s+1]):++u}}},numeric.ccsLPSolve0=function(t,e,n,r,i,a,o,s){var u,c,h,f,l,d,p,g,v,m=t[0],y=t[1],x=t[2],b=(m.length,e[0]),w=e[1],_=e[2];for(c=b[i],h=b[i+1],r.length=0,u=c;u<h;++u)s.dfs(w[u],m,y,n,r,a,o);for(u=r.length-1;-1!==u;--u)f=r[u],n[o[f]]=0;for(u=c;u!==h;++u)f=w[u],n[f]=_[u];for(u=r.length-1;-1!==u;--u){for(f=r[u],g=o[f],l=m[f],d=m[f+1],p=l;p<d;++p)if(y[p]===g){n[g]/=x[p];break}for(v=n[g],p=l;p<d;++p)n[y[p]]-=v*x[p];n[g]=v}},numeric.ccsLUP0=function(t,e){var n,r,i,a,o,s,u,c=t[0].length-1,h=[numeric.rep([c+1],0),[],[]],f=[numeric.rep([c+1],0),[],[]],l=h[0],d=h[1],p=h[2],g=f[0],v=f[1],m=f[2],y=numeric.rep([c],0),x=numeric.rep([c],0),b=numeric.ccsLPSolve0,w=(Math.max,Math.abs),_=numeric.linspace(0,c-1),M=numeric.linspace(0,c-1),S=new numeric.ccsDFS0(c);for("undefined"===typeof e&&(e=1),n=0;n<c;++n){for(b(h,t,y,x,n,M,_,S),a=-1,o=-1,r=x.length-1;-1!==r;--r)i=x[r],i<=n||(s=w(y[_[i]]),s>a&&(o=i,a=s));for(w(y[_[n]])<e*a&&(r=_[n],a=_[o],_[n]=a,M[a]=n,_[o]=r,M[r]=o),a=l[n],o=g[n],u=y[_[n]],d[a]=_[n],p[a]=1,++a,r=x.length-1;-1!==r;--r)i=x[r],s=y[_[i]],x[r]=0,y[_[i]]=0,i<=n?(v[o]=i,m[o]=s,++o):(d[a]=_[i],p[a]=s/u,++a);l[n+1]=a,g[n+1]=o}for(r=d.length-1;-1!==r;--r)d[r]=M[d[r]];return{L:h,U:f,P:_,Pinv:M}},numeric.ccsLUP=numeric.ccsLUP0,numeric.ccsDim=function(t){return[numeric.sup(t[1])+1,t[0].length-1]},numeric.ccsGetBlock=function(t,e,n){var r=numeric.ccsDim(t),i=r[0],a=r[1];"undefined"===typeof e?e=numeric.linspace(0,i-1):"number"===typeof e&&(e=[e]),"undefined"===typeof n?n=numeric.linspace(0,a-1):"number"===typeof n&&(n=[n]);var o,s,u,c,h,f=e.length,l=n.length,d=numeric.rep([a],0),p=[],g=[],v=[d,p,g],m=t[0],y=t[1],x=t[2],b=numeric.rep([i],0),w=0,_=numeric.rep([i],0);for(s=0;s<l;++s){c=n[s];var M=m[c],S=m[c+1];for(o=M;o<S;++o)u=y[o],_[u]=1,b[u]=x[o];for(o=0;o<f;++o)h=e[o],_[h]&&(p[w]=o,g[w]=b[e[o]],++w);for(o=M;o<S;++o)u=y[o],_[u]=0;d[s+1]=w}return v},numeric.ccsDot=function(t,e){var n,r,i,a,o,s,u,c,h,f,l,d=t[0],p=t[1],g=t[2],v=e[0],m=e[1],y=e[2],x=numeric.ccsDim(t),b=numeric.ccsDim(e),w=x[0],_=(x[1],b[1]),M=numeric.rep([w],0),S=numeric.rep([w],0),k=Array(w),A=numeric.rep([_],0),P=[],C=[],E=[A,P,C];for(i=0;i!==_;++i){for(a=v[i],o=v[i+1],h=0,r=a;r<o;++r)for(f=m[r],l=y[r],s=d[f],u=d[f+1],n=s;n<u;++n)c=p[n],0===S[c]&&(k[h]=c,S[c]=1,h+=1),M[c]=M[c]+g[n]*l;for(a=A[i],o=a+h,A[i+1]=o,r=h-1;-1!==r;--r)l=a+r,n=k[r],P[l]=n,C[l]=M[n],S[n]=0,M[n]=0;A[i+1]=A[i]+h}return E},numeric.ccsLUPSolve=function(t,e){var n=t.L,r=t.U,i=(t.P,e[0]),a=!1;"object"!==typeof i&&(e=[[0,e.length],numeric.linspace(0,e.length-1),e],i=e[0],a=!0);var o,s,u,c,h,f,l=e[1],d=e[2],p=n[0].length-1,g=i.length-1,v=numeric.rep([p],0),m=Array(p),y=numeric.rep([p],0),x=Array(p),b=numeric.rep([g+1],0),w=[],_=[],M=numeric.ccsTSolve,S=0;for(o=0;o<g;++o){for(h=0,u=i[o],c=i[o+1],s=u;s<c;++s)f=t.Pinv[l[s]],x[h]=f,y[f]=d[s],++h;for(x.length=h,M(n,y,v,x,m),s=x.length-1;-1!==s;--s)y[x[s]]=0;if(M(r,v,y,m,x),a)return y;for(s=m.length-1;-1!==s;--s)v[m[s]]=0;for(s=x.length-1;-1!==s;--s)f=x[s],w[S]=f,_[S]=y[f],y[f]=0,++S;b[o+1]=S}return[b,w,_]},numeric.ccsbinop=function(t,e){return"undefined"===typeof e&&(e=""),Function("X","Y","var Xi = X[0], Xj = X[1], Xv = X[2];\nvar Yi = Y[0], Yj = Y[1], Yv = Y[2];\nvar n = Xi.length-1,m = Math.max(numeric.sup(Xj),numeric.sup(Yj))+1;\nvar Zi = numeric.rep([n+1],0), Zj = [], Zv = [];\nvar x = numeric.rep([m],0),y = numeric.rep([m],0);\nvar xk,yk,zk;\nvar i,j,j0,j1,k,p=0;\n"+e+"for(i=0;i<n;++i) {\n j0 = Xi[i]; j1 = Xi[i+1];\n for(j=j0;j!==j1;++j) {\n k = Xj[j];\n x[k] = 1;\n Zj[p] = k;\n ++p;\n }\n j0 = Yi[i]; j1 = Yi[i+1];\n for(j=j0;j!==j1;++j) {\n k = Yj[j];\n y[k] = Yv[j];\n if(x[k] === 0) {\n Zj[p] = k;\n ++p;\n }\n }\n Zi[i+1] = p;\n j0 = Xi[i]; j1 = Xi[i+1];\n for(j=j0;j!==j1;++j) x[Xj[j]] = Xv[j];\n j0 = Zi[i]; j1 = Zi[i+1];\n for(j=j0;j!==j1;++j) {\n k = Zj[j];\n xk = x[k];\n yk = y[k];\n"+t+"\n Zv[j] = zk;\n }\n j0 = Xi[i]; j1 = Xi[i+1];\n for(j=j0;j!==j1;++j) x[Xj[j]] = 0;\n j0 = Yi[i]; j1 = Yi[i+1];\n for(j=j0;j!==j1;++j) y[Yj[j]] = 0;\n}\nreturn [Zi,Zj,Zv];")},function(){var k,A,B,C;for(k in numeric.ops2)A=isFinite(eval("1"+numeric.ops2[k]+"0"))?"[Y[0],Y[1],numeric."+k+"(X,Y[2])]":"NaN",B=isFinite(eval("0"+numeric.ops2[k]+"1"))?"[X[0],X[1],numeric."+k+"(X[2],Y)]":"NaN",C=isFinite(eval("1"+numeric.ops2[k]+"0"))&&isFinite(eval("0"+numeric.ops2[k]+"1"))?"numeric.ccs"+k+"MM(X,Y)":"NaN",numeric["ccs"+k+"MM"]=numeric.ccsbinop("zk = xk "+numeric.ops2[k]+"yk;"),numeric["ccs"+k]=Function("X","Y",'if(typeof X === "number") return '+A+';\nif(typeof Y === "number") return '+B+";\nreturn "+C+";\n")}(),numeric.ccsScatter=function(t){var e,n=t[0],r=t[1],i=t[2],a=numeric.sup(r)+1,o=n.length,s=numeric.rep([a],0),u=Array(o),c=Array(o),h=numeric.rep([a],0);for(e=0;e<o;++e)h[r[e]]++;for(e=0;e<a;++e)s[e+1]=s[e]+h[e];var f,l,d=s.slice(0);for(e=0;e<o;++e)l=r[e],f=d[l],u[f]=n[e],c[f]=i[e],d[l]=d[l]+1;return[s,u,c]},numeric.ccsGather=function(t){var e,n,r,i,a,o=t[0],s=t[1],u=t[2],c=o.length-1,h=s.length,f=Array(h),l=Array(h),d=Array(h);for(a=0,e=0;e<c;++e)for(r=o[e],i=o[e+1],n=r;n!==i;++n)l[a]=e,f[a]=s[n],d[a]=u[n],++a;return[f,l,d]},numeric.sdim=function t(e,n,r){if("undefined"===typeof n&&(n=[]),"object"!==typeof e)return n;var i;for(i in"undefined"===typeof r&&(r=0),r in n||(n[r]=0),e.length>n[r]&&(n[r]=e.length),e)e.hasOwnProperty(i)&&t(e[i],n,r+1);return n},numeric.sclone=function t(e,n,r){"undefined"===typeof n&&(n=0),"undefined"===typeof r&&(r=numeric.sdim(e).length);var i,a=Array(e.length);if(n===r-1){for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);return a}for(i in e)e.hasOwnProperty(i)&&(a[i]=t(e[i],n+1,r));return a},numeric.sdiag=function(t){var e,n,r=t.length,i=Array(r);for(e=r-1;e>=1;e-=2)n=e-1,i[e]=[],i[e][e]=t[e],i[n]=[],i[n][n]=t[n];return 0===e&&(i[0]=[],i[0][0]=t[e]),i},numeric.sidentity=function(t){return numeric.sdiag(numeric.rep([t],1))},numeric.stranspose=function(t){var e,n,r,i=[];t.length;for(e in t)if(t.hasOwnProperty(e))for(n in r=t[e],r)r.hasOwnProperty(n)&&("object"!==typeof i[n]&&(i[n]=[]),i[n][e]=r[n]);return i},numeric.sLUP=function(t,e){throw new Error("The function numeric.sLUP had a bug in it and has been removed. Please use the new numeric.ccsLUP function instead.")},numeric.sdotMM=function(t,e){var n,r,i,a,o,s,u,c=t.length,h=(e.length,numeric.stranspose(e)),f=h.length,l=Array(c);for(i=c-1;i>=0;i--){for(u=[],n=t[i],o=f-1;o>=0;o--){for(a in s=0,r=h[o],n)n.hasOwnProperty(a)&&a in r&&(s+=n[a]*r[a]);s&&(u[o]=s)}l[i]=u}return l},numeric.sdotMV=function(t,e){var n,r,i,a,o=t.length,s=Array(o);for(r=o-1;r>=0;r--){for(i in n=t[r],a=0,n)n.hasOwnProperty(i)&&e[i]&&(a+=n[i]*e[i]);a&&(s[r]=a)}return s},numeric.sdotVM=function(t,e){var n,r,i,a,o=[];for(n in t)if(t.hasOwnProperty(n))for(r in i=e[n],a=t[n],i)i.hasOwnProperty(r)&&(o[r]||(o[r]=0),o[r]+=a*i[r]);return o},numeric.sdotVV=function(t,e){var n,r=0;for(n in t)t[n]&&e[n]&&(r+=t[n]*e[n]);return r},numeric.sdot=function(t,e){var n=numeric.sdim(t).length,r=numeric.sdim(e).length,i=1e3*n+r;switch(i){case 0:return t*e;case 1001:return numeric.sdotVV(t,e);case 2001:return numeric.sdotMV(t,e);case 1002:return numeric.sdotVM(t,e);case 2002:return numeric.sdotMM(t,e);default:throw new Error("numeric.sdot not implemented for tensors of order "+n+" and "+r)}},numeric.sscatter=function(t){var e,n,r,i,a=t[0].length,o=t.length,s=[];for(n=a-1;n>=0;--n)if(t[o-1][n]){for(i=s,r=0;r<o-2;r++)e=t[r][n],i[e]||(i[e]=[]),i=i[e];i[t[r][n]]=t[r+1][n]}return s},numeric.sgather=function t(e,n,r){var i,a,o;for(a in"undefined"===typeof n&&(n=[]),"undefined"===typeof r&&(r=[]),i=r.length,e)if(e.hasOwnProperty(a))if(r[i]=parseInt(a),o=e[a],"number"===typeof o){if(o){if(0===n.length)for(a=i+1;a>=0;--a)n[a]=[];for(a=i;a>=0;--a)n[a].push(r[a]);n[i+1].push(o)}}else t(o,n,r);return r.length>i&&r.pop(),n},numeric.cLU=function(t){var e,n,r,i,a,o,s=t[0],u=t[1],c=t[2],h=s.length,f=0;for(e=0;e<h;e++)s[e]>f&&(f=s[e]);f++;var l,d=Array(f),p=Array(f),g=numeric.rep([f],1/0),v=numeric.rep([f],-1/0);for(r=0;r<h;r++)e=s[r],n=u[r],n<g[e]&&(g[e]=n),n>v[e]&&(v[e]=n);for(e=0;e<f-1;e++)v[e]>v[e+1]&&(v[e+1]=v[e]);for(e=f-1;e>=1;e--)g[e]<g[e-1]&&(g[e-1]=g[e]);for(e=0;e<f;e++)p[e]=numeric.rep([v[e]-g[e]+1],0),d[e]=numeric.rep([e-g[e]],0),e-g[e]+1,v[e]-e+1;for(r=0;r<h;r++)e=s[r],p[e][u[r]-g[e]]=c[r];for(e=0;e<f-1;e++)for(i=e-g[e],x=p[e],n=e+1;g[n]<=e&&n<f;n++)if(a=e-g[n],o=v[e]-e,b=p[n],l=b[a]/x[i],l){for(r=1;r<=o;r++)b[r+a]-=l*x[r+i];d[n][e-g[n]]=l}var m,y,x=[],b=[],w=[],_=[],M=[],S=[];for(h=0,m=0,e=0;e<f;e++){for(i=g[e],a=v[e],y=p[e],n=e;n<=a;n++)y[n-i]&&(x[h]=e,b[h]=n,w[h]=y[n-i],h++);for(y=d[e],n=i;n<e;n++)y[n-i]&&(_[m]=e,M[m]=n,S[m]=y[n-i],m++);_[m]=e,M[m]=e,S[m]=1,m++}return{U:[x,b,w],L:[_,M,S]}},numeric.cLUsolve=function(t,e){var n,r,i=t.L,a=t.U,o=numeric.clone(e),s=i[0],u=i[1],c=i[2],h=a[0],f=a[1],l=a[2],d=h.length,p=(s.length,o.length);for(r=0,n=0;n<p;n++){while(u[r]<n)o[n]-=c[r]*o[u[r]],r++;r++}for(r=d-1,n=p-1;n>=0;n--){while(f[r]>n)o[n]-=l[r]*o[f[r]],r--;o[n]/=l[r],r--}return o},numeric.cgrid=function(t,e){"number"===typeof t&&(t=[t,t]);var n,r,i,a=numeric.rep(t,-1);if("function"!==typeof e)switch(e){case"L":e=function(e,n){return e>=t[0]/2||n<t[1]/2};break;default:e=function(t,e){return!0};break}for(i=0,n=1;n<t[0]-1;n++)for(r=1;r<t[1]-1;r++)e(n,r)&&(a[n][r]=i,i++);return a},numeric.cdelsq=function(t){var e,n,r,i,a,o=[[-1,0],[0,-1],[0,1],[1,0]],s=numeric.dim(t),u=s[0],c=s[1],h=[],f=[],l=[];for(e=1;e<u-1;e++)for(n=1;n<c-1;n++)if(!(t[e][n]<0)){for(r=0;r<4;r++)i=e+o[r][0],a=n+o[r][1],t[i][a]<0||(h.push(t[e][n]),f.push(t[i][a]),l.push(-1));h.push(t[e][n]),f.push(t[e][n]),l.push(4)}return[h,f,l]},numeric.cdotMV=function(t,e){var n,r,i,a=t[0],o=t[1],s=t[2],u=a.length;for(i=0,r=0;r<u;r++)a[r]>i&&(i=a[r]);for(i++,n=numeric.rep([i],0),r=0;r<u;r++)n[a[r]]+=s[r]*e[o[r]];return n},numeric.Spline=function(t,e,n,r,i){this.x=t,this.yl=e,this.yr=n,this.kl=r,this.kr=i},numeric.Spline.prototype._at=function(t,e){var n,r,i,a=this.x,o=this.yl,s=this.yr,u=this.kl,c=this.kr,h=numeric.add,f=numeric.sub,l=numeric.mul;n=f(l(u[e],a[e+1]-a[e]),f(s[e+1],o[e])),r=h(l(c[e+1],a[e]-a[e+1]),f(s[e+1],o[e])),i=(t-a[e])/(a[e+1]-a[e]);var d=i*(1-i);return h(h(h(l(1-i,o[e]),l(i,s[e+1])),l(n,d*(1-i))),l(r,d*i))},numeric.Spline.prototype.at=function(t){if("number"===typeof t){var e,n,r,i=this.x,a=i.length,o=Math.floor;e=0,n=a-1;while(n-e>1)r=o((e+n)/2),i[r]<=t?e=r:n=r;return this._at(t,e)}a=t.length;var s,u=Array(a);for(s=a-1;-1!==s;--s)u[s]=this.at(t[s]);return u},numeric.Spline.prototype.diff=function(){var t,e,n,r=this.x,i=this.yl,a=this.yr,o=this.kl,s=this.kr,u=i.length,c=o,h=s,f=Array(u),l=Array(u),d=numeric.add,p=numeric.mul,g=numeric.div,v=numeric.sub;for(t=u-1;-1!==t;--t)e=r[t+1]-r[t],n=v(a[t+1],i[t]),f[t]=g(d(p(n,6),p(o[t],-4*e),p(s[t+1],-2*e)),e*e),l[t+1]=g(d(p(n,-6),p(o[t],2*e),p(s[t+1],4*e)),e*e);return new numeric.Spline(r,c,h,f,l)},numeric.Spline.prototype.roots=function(){function t(t){return t*t}var e=[],n=this.x,r=this.yl,i=this.yr,a=this.kl,o=this.kr;"number"===typeof r[0]&&(r=[r],i=[i],a=[a],o=[o]);var s,u,c,h,f,l,d,p,g,v,m,y,x,b,w,_,M,S,k,A,P,C,E,I=r.length,O=n.length-1,T=(e=Array(I),Math.sqrt);for(s=0;s!==I;++s){for(h=r[s],f=i[s],l=a[s],d=o[s],p=[],u=0;u!==O;u++){for(u>0&&f[u]*h[u]<0&&p.push(n[u]),_=n[u+1]-n[u],n[u],m=h[u],y=f[u+1],g=l[u]/_,v=d[u+1]/_,w=t(g-v+3*(m-y))+12*v*m,x=v+3*m+2*g-3*y,b=3*(v+g+2*(m-y)),w<=0?(S=x/b,M=S>n[u]&&S<n[u+1]?[n[u],S,n[u+1]]:[n[u],n[u+1]]):(S=(x-T(w))/b,k=(x+T(w))/b,M=[n[u]],S>n[u]&&S<n[u+1]&&M.push(S),k>n[u]&&k<n[u+1]&&M.push(k),M.push(n[u+1])),P=M[0],S=this._at(P,u),c=0;c<M.length-1;c++)if(C=M[c+1],k=this._at(C,u),0!==S)if(0===k||S*k>0)P=C,S=k;else{var N=0;while(1){if(E=(S*C-k*P)/(S-k),E<=P||E>=C)break;if(A=this._at(E,u),A*k>0)C=E,k=A,-1===N&&(S*=.5),N=-1;else{if(!(A*S>0))break;P=E,S=A,1===N&&(k*=.5),N=1}}p.push(E),P=M[c+1],S=this._at(P,u)}else p.push(P),P=C,S=k;0===k&&p.push(C)}e[s]=p}return"number"===typeof this.yl[0]?e[0]:e},numeric.spline=function(t,e,n,r){var i,a=t.length,o=[],s=[],u=[],c=numeric.sub,h=numeric.mul,f=numeric.add;for(i=a-2;i>=0;i--)s[i]=t[i+1]-t[i],u[i]=c(e[i+1],e[i]);"string"!==typeof n&&"string"!==typeof r||(n=r="periodic");var l=[[],[],[]];switch(typeof n){case"undefined":o[0]=h(3/(s[0]*s[0]),u[0]),l[0].push(0,0),l[1].push(0,1),l[2].push(2/s[0],1/s[0]);break;case"string":o[0]=f(h(3/(s[a-2]*s[a-2]),u[a-2]),h(3/(s[0]*s[0]),u[0])),l[0].push(0,0,0),l[1].push(a-2,0,1),l[2].push(1/s[a-2],2/s[a-2]+2/s[0],1/s[0]);break;default:o[0]=n,l[0].push(0),l[1].push(0),l[2].push(1);break}for(i=1;i<a-1;i++)o[i]=f(h(3/(s[i-1]*s[i-1]),u[i-1]),h(3/(s[i]*s[i]),u[i])),l[0].push(i,i,i),l[1].push(i-1,i,i+1),l[2].push(1/s[i-1],2/s[i-1]+2/s[i],1/s[i]);switch(typeof r){case"undefined":o[a-1]=h(3/(s[a-2]*s[a-2]),u[a-2]),l[0].push(a-1,a-1),l[1].push(a-2,a-1),l[2].push(1/s[a-2],2/s[a-2]);break;case"string":l[1][l[1].length-1]=0;break;default:o[a-1]=r,l[0].push(a-1),l[1].push(a-1),l[2].push(1);break}o="number"!==typeof o[0]?numeric.transpose(o):[o];var d=Array(o.length);if("string"===typeof n)for(i=d.length-1;-1!==i;--i)d[i]=numeric.ccsLUPSolve(numeric.ccsLUP(numeric.ccsScatter(l)),o[i]),d[i][a-1]=d[i][0];else for(i=d.length-1;-1!==i;--i)d[i]=numeric.cLUsolve(numeric.cLU(l),o[i]);return d="number"===typeof e[0]?d[0]:numeric.transpose(d),new numeric.Spline(t,e,e,d,d)},numeric.fftpow2=function t(e,n){var r=e.length;if(1!==r){var i,a,o=Math.cos,s=Math.sin,u=Array(r/2),c=Array(r/2),h=Array(r/2),f=Array(r/2);for(a=r/2,i=r-1;-1!==i;--i)--a,h[a]=e[i],f[a]=n[i],--i,u[a]=e[i],c[a]=n[i];t(u,c),t(h,f),a=r/2;var l,d,p,g=-6.283185307179586/r;for(i=r-1;-1!==i;--i)--a,-1===a&&(a=r/2-1),l=g*i,d=o(l),p=s(l),e[i]=u[a]+d*h[a]-p*f[a],n[i]=c[a]+d*f[a]+p*h[a]}},numeric._ifftpow2=function t(e,n){var r=e.length;if(1!==r){var i,a,o=Math.cos,s=Math.sin,u=Array(r/2),c=Array(r/2),h=Array(r/2),f=Array(r/2);for(a=r/2,i=r-1;-1!==i;--i)--a,h[a]=e[i],f[a]=n[i],--i,u[a]=e[i],c[a]=n[i];t(u,c),t(h,f),a=r/2;var l,d,p,g=6.283185307179586/r;for(i=r-1;-1!==i;--i)--a,-1===a&&(a=r/2-1),l=g*i,d=o(l),p=s(l),e[i]=u[a]+d*h[a]-p*f[a],n[i]=c[a]+d*f[a]+p*h[a]}},numeric.ifftpow2=function(t,e){numeric._ifftpow2(t,e),numeric.diveq(t,t.length),numeric.diveq(e,e.length)},numeric.convpow2=function(t,e,n,r){numeric.fftpow2(t,e),numeric.fftpow2(n,r);var i,a,o,s,u,c=t.length;for(i=c-1;-1!==i;--i)a=t[i],s=e[i],o=n[i],u=r[i],t[i]=a*o-s*u,e[i]=a*u+s*o;numeric.ifftpow2(t,e)},numeric.T.prototype.fft=function(){var t,e,n=this.x,r=this.y,i=n.length,a=Math.log,o=a(2),s=Math.ceil(a(2*i-1)/o),u=Math.pow(2,s),c=numeric.rep([u],0),h=numeric.rep([u],0),f=Math.cos,l=Math.sin,d=-3.141592653589793/i,p=numeric.rep([u],0),g=numeric.rep([u],0);Math.floor(i/2);for(t=0;t<i;t++)p[t]=n[t];if("undefined"!==typeof r)for(t=0;t<i;t++)g[t]=r[t];for(c[0]=1,t=1;t<=u/2;t++)e=d*t*t,c[t]=f(e),h[t]=l(e),c[u-t]=f(e),h[u-t]=l(e);var v=new numeric.T(p,g),m=new numeric.T(c,h);return v=v.mul(m),numeric.convpow2(v.x,v.y,numeric.clone(m.x),numeric.neg(m.y)),v=v.mul(m),v.x.length=i,v.y.length=i,v},numeric.T.prototype.ifft=function(){var t,e,n=this.x,r=this.y,i=n.length,a=Math.log,o=a(2),s=Math.ceil(a(2*i-1)/o),u=Math.pow(2,s),c=numeric.rep([u],0),h=numeric.rep([u],0),f=Math.cos,l=Math.sin,d=3.141592653589793/i,p=numeric.rep([u],0),g=numeric.rep([u],0);Math.floor(i/2);for(t=0;t<i;t++)p[t]=n[t];if("undefined"!==typeof r)for(t=0;t<i;t++)g[t]=r[t];for(c[0]=1,t=1;t<=u/2;t++)e=d*t*t,c[t]=f(e),h[t]=l(e),c[u-t]=f(e),h[u-t]=l(e);var v=new numeric.T(p,g),m=new numeric.T(c,h);return v=v.mul(m),numeric.convpow2(v.x,v.y,numeric.clone(m.x),numeric.neg(m.y)),v=v.mul(m),v.x.length=i,v.y.length=i,v.div(i)},numeric.gradient=function(t,e){var n=e.length,r=t(e);if(isNaN(r))throw new Error("gradient: f(x) is a NaN!");var i,a,o,s,u,c,h,f,l,d,p=Math.max,g=numeric.clone(e),v=Array(n),m=(numeric.div,numeric.sub,p=Math.max,.001),y=Math.abs,x=Math.min,b=0;for(i=0;i<n;i++){var w=p(1e-6*r,1e-8);while(1){if(++b,b>20)throw new Error("Numerical gradient fails");if(g[i]=e[i]+w,a=t(g),g[i]=e[i]-w,o=t(g),g[i]=e[i],isNaN(a)||isNaN(o))w/=16;else{if(v[i]=(a-o)/(2*w),u=e[i]-w,c=e[i],h=e[i]+w,f=(a-r)/w,l=(r-o)/w,d=p(y(v[i]),y(r),y(a),y(o),y(u),y(c),y(h),1e-8),s=x(p(y(f-v[i]),y(l-v[i]),y(f-l))/d,w/d),!(s>m))break;w/=16}}}return v},numeric.uncmin=function(t,e,n,r,i,a,o){var s=numeric.gradient;"undefined"===typeof o&&(o={}),"undefined"===typeof n&&(n=1e-8),"undefined"===typeof r&&(r=function(e){return s(t,e)}),"undefined"===typeof i&&(i=1e3),e=numeric.clone(e);var u,c,h=e.length,f=t(e);if(isNaN(f))throw new Error("uncmin: f(x0) is a NaN!");var l=Math.max,d=numeric.norm2;n=l(n,numeric.epsilon);var p,g,v,m,y,x,b,w,_,M,S=o.Hinv||numeric.identity(h),k=numeric.dot,A=(numeric.inv,numeric.sub),P=numeric.add,C=numeric.tensor,E=numeric.div,I=numeric.mul,O=numeric.all,T=numeric.isFinite,N=numeric.neg,j=0,B="";g=r(e);while(j<i){if("function"===typeof a&&a(j,e,f,g,S)){B="Callback returned true";break}if(!O(T(g))){B="Gradient has Infinity or NaN";break}if(p=N(k(S,g)),!O(T(p))){B="Search direction has Infinity or NaN";break}if(M=d(p),M<n){B="Newton step smaller than tol";break}_=1,c=k(g,p),y=e;while(j<i){if(_*M<n)break;if(m=I(p,_),y=P(e,m),u=t(y),!(u-f>=.1*_*c||isNaN(u)))break;_*=.5,++j}if(_*M<n){B="Line search step size smaller than tol";break}if(j===i){B="maxit reached during line search";break}v=r(y),x=A(v,g),w=k(x,m),b=k(S,x),S=A(P(S,I((w+k(x,b))/(w*w),C(m,m))),E(P(C(b,m),C(m,b)),w)),e=y,f=u,g=v,++j}return{solution:e,f:f,gradient:g,invHessian:S,iterations:j,message:B}},numeric.Dopri=function(t,e,n,r,i,a,o){this.x=t,this.y=e,this.f=n,this.ymid=r,this.iterations=i,this.events=o,this.message=a},numeric.Dopri.prototype._at=function(t,e){function n(t){return t*t}var r,i,a,o,s,u,c,h,f,l,d=this,p=d.x,g=d.y,v=d.f,m=d.ymid,y=(p.length,Math.floor,.5),x=numeric.add,b=numeric.mul,w=numeric.sub;return r=p[e],i=p[e+1],o=g[e],s=g[e+1],c=i-r,a=r+y*c,u=m[e],h=w(v[e],b(o,1/(r-a)+2/(r-i))),f=w(v[e+1],b(s,1/(i-a)+2/(i-r))),l=[n(t-i)*(t-a)/n(r-i)/(r-a),n(t-r)*n(t-i)/n(r-a)/n(i-a),n(t-r)*(t-a)/n(i-r)/(i-a),(t-r)*n(t-i)*(t-a)/n(r-i)/(r-a),(t-i)*n(t-r)*(t-a)/n(r-i)/(i-a)],x(x(x(x(b(o,l[0]),b(u,l[1])),b(s,l[2])),b(h,l[3])),b(f,l[4]))},numeric.Dopri.prototype.at=function(t){var e,n,r,i=Math.floor;if("number"!==typeof t){var a=t.length,o=Array(a);for(e=a-1;-1!==e;--e)o[e]=this.at(t[e]);return o}var s=this.x;e=0,n=s.length-1;while(n-e>1)r=i(.5*(e+n)),s[r]<=t?e=r:n=r;return this._at(t,e)},numeric.dopri=function(t,e,n,r,i,a,o){"undefined"===typeof i&&(i=1e-6),"undefined"===typeof a&&(a=1e3);var s,u,c,h,f,l,d,p,g,v,m,y,x,b=[t],w=[n],_=[r(t,n)],M=[],S=.2,k=[3/40,9/40],A=[44/45,-56/15,32/9],P=[19372/6561,-25360/2187,64448/6561,-212/729],C=[9017/3168,-355/33,46732/5247,49/176,-5103/18656],E=[35/384,0,500/1113,125/192,-2187/6784,11/84],I=[.10013431883002395,0,.3918321794184259,-.02982460176594817,.05893268337240795,-.04497888809104361,5618549.5/235043384],O=[.2,.3,.8,8/9,1,1],T=[-71/57600,0,71/16695,-71/1920,17253/339200,-22/525,1/40],N=0,j=(e-t)/10,B=0,L=numeric.add,D=numeric.mul,R=(Math.max,Math.min),F=Math.abs,Y=numeric.norminf,q=Math.pow,z=numeric.any,X=numeric.lt,G=numeric.and,W=(numeric.sub,new numeric.Dopri(b,w,_,M,-1,""));"function"===typeof o&&(m=o(t,n));while(t<e&&B<a)if(++B,t+j>e&&(j=e-t),s=r(t+O[0]*j,L(n,D(S*j,_[N]))),u=r(t+O[1]*j,L(L(n,D(k[0]*j,_[N])),D(k[1]*j,s))),c=r(t+O[2]*j,L(L(L(n,D(A[0]*j,_[N])),D(A[1]*j,s)),D(A[2]*j,u))),h=r(t+O[3]*j,L(L(L(L(n,D(P[0]*j,_[N])),D(P[1]*j,s)),D(P[2]*j,u)),D(P[3]*j,c))),f=r(t+O[4]*j,L(L(L(L(L(n,D(C[0]*j,_[N])),D(C[1]*j,s)),D(C[2]*j,u)),D(C[3]*j,c)),D(C[4]*j,h))),g=L(L(L(L(L(n,D(_[N],j*E[0])),D(u,j*E[2])),D(c,j*E[3])),D(h,j*E[4])),D(f,j*E[5])),l=r(t+j,g),d=L(L(L(L(L(D(_[N],j*T[0]),D(u,j*T[2])),D(c,j*T[3])),D(h,j*T[4])),D(f,j*T[5])),D(l,j*T[6])),v="number"===typeof d?F(d):Y(d),v>i){if(j=.2*j*q(i/v,.25),t+j===t){W.msg="Step size became too small";break}}else{if(M[N]=L(L(L(L(L(L(n,D(_[N],j*I[0])),D(u,j*I[2])),D(c,j*I[3])),D(h,j*I[4])),D(f,j*I[5])),D(l,j*I[6])),++N,b[N]=t+j,w[N]=g,_[N]=l,"function"===typeof o){var U,V,H=t,Z=t+.5*j;if(y=o(Z,M[N-1]),x=G(X(m,0),X(0,y)),z(x)||(H=Z,Z=t+j,m=y,y=o(Z,g),x=G(X(m,0),X(0,y))),z(x)){var $,Q,K=0,J=1,tt=1;while(1){if("number"===typeof m)V=(tt*y*H-J*m*Z)/(tt*y-J*m);else for(V=Z,p=m.length-1;-1!==p;--p)m[p]<0&&y[p]>0&&(V=R(V,(tt*y[p]*H-J*m[p]*Z)/(tt*y[p]-J*m[p])));if(V<=H||V>=Z)break;U=W._at(V,N-1),Q=o(V,U),$=G(X(m,0),X(0,Q)),z($)?(Z=V,y=Q,x=$,tt=1,-1===K?J*=.5:J=1,K=-1):(H=V,m=Q,J=1,1===K?tt*=.5:tt=1,K=1)}return g=W._at(.5*(t+V),N-1),W.f[N]=r(V,U),W.x[N]=V,W.y[N]=U,W.ymid[N-1]=g,W.events=x,W.iterations=B,W}}t+=j,n=g,m=y,j=R(.8*j*q(i/v,.25),4*j)}return W.iterations=B,W},numeric.LU=function(t,e){e=e||!1;var n,r,i,a,o,s,u,c,h,f=Math.abs,l=t.length,d=l-1,p=new Array(l);for(e||(t=numeric.clone(t)),i=0;i<l;++i){for(u=i,s=t[i],h=f(s[i]),r=i+1;r<l;++r)a=f(t[r][i]),h<a&&(h=a,u=r);for(p[i]=u,u!=i&&(t[i]=t[u],t[u]=s,s=t[i]),o=s[i],n=i+1;n<l;++n)t[n][i]/=o;for(n=i+1;n<l;++n){for(c=t[n],r=i+1;r<d;++r)c[r]-=c[i]*s[r],++r,c[r]-=c[i]*s[r];r===d&&(c[r]-=c[i]*s[r])}}return{LU:t,P:p}},numeric.LUsolve=function(t,e){var n,r,i,a,o,s=t.LU,u=s.length,c=numeric.clone(e),h=t.P;for(n=u-1;-1!==n;--n)c[n]=e[n];for(n=0;n<u;++n)for(i=h[n],h[n]!==n&&(o=c[n],c[n]=c[i],c[i]=o),a=s[n],r=0;r<n;++r)c[n]-=c[r]*a[r];for(n=u-1;n>=0;--n){for(a=s[n],r=n+1;r<u;++r)c[n]-=c[r]*a[r];c[n]/=a[n]}return c},numeric.solve=function(t,e,n){return numeric.LUsolve(numeric.LU(t,n),e)},numeric.echelonize=function(t){var e,n,r,i,a,o,s,u,c=numeric.dim(t),h=c[0],f=c[1],l=numeric.identity(h),d=Array(h),p=Math.abs,g=numeric.diveq;for(t=numeric.clone(t),e=0;e<h;++e){for(r=0,a=t[e],o=l[e],n=1;n<f;++n)p(a[r])<p(a[n])&&(r=n);for(d[e]=r,g(o,a[r]),g(a,a[r]),n=0;n<h;++n)if(n!==e){for(s=t[n],u=s[r],i=f-1;-1!==i;--i)s[i]-=a[i]*u;for(s=l[n],i=h-1;-1!==i;--i)s[i]-=o[i]*u}}return{I:l,A:t,P:d}},numeric.__solveLP=function(t,e,n,r,i,a,o){var s,u,c,h,f=numeric.sum,l=(numeric.log,numeric.mul),d=numeric.sub,p=numeric.dot,g=numeric.div,v=numeric.add,m=t.length,y=n.length,x=!1,b=0,w=1,_=(numeric.transpose(e),numeric.svd,numeric.transpose),M=(numeric.leq,Math.sqrt),S=Math.abs,k=(numeric.muleq,numeric.norminf,numeric.any,Math.min),A=numeric.all,P=numeric.gt,C=Array(m),E=Array(y),I=(numeric.rep([y],1),numeric.solve),O=d(n,p(e,a)),T=p(t,t);for(c=b;c<i;++c){var N,j;for(N=y-1;-1!==N;--N)E[N]=g(e[N],O[N]);var B=_(E);for(N=m-1;-1!==N;--N)C[N]=f(B[N]);w=.25*S(T/p(t,C));var L=100*M(T/p(C,C));for((!isFinite(w)||w>L)&&(w=L),h=v(t,l(w,C)),u=p(B,E),N=m-1;-1!==N;--N)u[N][N]+=1;j=I(u,g(h,w),!0);var D=g(O,p(e,j)),R=1;for(N=y-1;-1!==N;--N)D[N]<0&&(R=k(R,-.999*D[N]));if(s=d(a,l(j,R)),O=d(n,p(e,s)),!A(P(O,0)))return{solution:a,message:"",iterations:c};if(a=s,w<r)return{solution:s,message:"",iterations:c};if(o){var F=p(t,h),Y=p(e,h);for(x=!0,N=y-1;-1!==N;--N)if(F*Y[N]<0){x=!1;break}}else x=!(a[m-1]>=0);if(x)return{solution:s,message:"Unbounded",iterations:c}}return{solution:a,message:"maximum iteration count exceeded",iterations:c}},numeric._solveLP=function(t,e,n,r,i){var a=t.length,o=n.length,s=(numeric.sum,numeric.log,numeric.mul,numeric.sub),u=numeric.dot,c=(numeric.div,numeric.add,numeric.rep([a],0).concat([1])),h=numeric.rep([o,1],-1),f=numeric.blockMatrix([[e,h]]),l=n,d=numeric.rep([a],0).concat(Math.max(0,numeric.sup(numeric.neg(n)))+1),p=numeric.__solveLP(c,f,l,r,i,d,!1),g=numeric.clone(p.solution);g.length=a;var v=numeric.inf(s(n,u(e,g)));if(v<0)return{solution:NaN,message:"Infeasible",iterations:p.iterations};var m=numeric.__solveLP(t,e,n,r,i-p.iterations,g,!0);return m.iterations+=p.iterations,m},numeric.solveLP=function(t,e,n,r,i,a,o){if("undefined"===typeof o&&(o=1e3),"undefined"===typeof a&&(a=numeric.epsilon),"undefined"===typeof r)return numeric._solveLP(t,e,n,a,o);var s,u=r.length,c=r[0].length,h=e.length,f=numeric.echelonize(r),l=numeric.rep([c],0),d=f.P,p=[];for(s=d.length-1;-1!==s;--s)l[d[s]]=1;for(s=c-1;-1!==s;--s)0===l[s]&&p.push(s);var g=numeric.getRange,v=numeric.linspace(0,u-1),m=numeric.linspace(0,h-1),y=g(r,v,p),x=g(e,m,d),b=g(e,m,p),w=numeric.dot,_=numeric.sub,M=w(x,f.I),S=_(b,w(M,y)),k=_(n,w(M,i)),A=Array(d.length),P=Array(p.length);for(s=d.length-1;-1!==s;--s)A[s]=t[d[s]];for(s=p.length-1;-1!==s;--s)P[s]=t[p[s]];var C=_(P,w(A,w(f.I,y))),E=numeric._solveLP(C,S,k,a,o),I=E.solution;if(I!==I)return E;var O=w(f.I,_(i,w(y,I))),T=Array(t.length);for(s=d.length-1;-1!==s;--s)T[d[s]]=O[s];for(s=p.length-1;-1!==s;--s)T[p[s]]=I[s];return{solution:T,message:E.message,iterations:E.iterations}},numeric.MPStoLP=function(t){t instanceof String&&t.split("\n");var e,n,r,i,a=0,o=["Initial state","NAME","ROWS","COLUMNS","RHS","BOUNDS","ENDATA"],s=t.length,u=0,c={},h=[],f=0,l={},d=0,p=[],g=[],v=[];function m(n){throw new Error("MPStoLP: "+n+"\nLine "+e+": "+t[e]+"\nCurrent state: "+o[a]+"\n")}for(e=0;e<s;++e){r=t[e];var y=r.match(/\S*/g),x=[];for(n=0;n<y.length;++n)""!==y[n]&&x.push(y[n]);if(0!==x.length){for(n=0;n<o.length;++n)if(r.substr(0,o[n].length)===o[n])break;if(n<o.length){if(a=n,1===n&&(i=x[1]),6===n)return{name:i,c:p,A:numeric.transpose(g),b:v,rows:c,vars:l}}else switch(a){case 0:case 1:m("Unexpected line");case 2:switch(x[0]){case"N":0===u?u=x[1]:m("Two or more N rows");break;case"L":c[x[1]]=f,h[f]=1,v[f]=0,++f;break;case"G":c[x[1]]=f,h[f]=-1,v[f]=0,++f;break;case"E":c[x[1]]=f,h[f]=0,v[f]=0,++f;break;default:m("Parse error "+numeric.prettyPrint(x))}break;case 3:l.hasOwnProperty(x[0])||(l[x[0]]=d,p[d]=0,g[d]=numeric.rep([f],0),++d);var b=l[x[0]];for(n=1;n<x.length;n+=2)if(x[n]!==u){var w=c[x[n]];g[b][w]=(h[w]<0?-1:1)*parseFloat(x[n+1])}else p[b]=parseFloat(x[n+1]);break;case 4:for(n=1;n<x.length;n+=2)v[c[x[n]]]=(h[c[x[n]]]<0?-1:1)*parseFloat(x[n+1]);break;case 5:break;case 6:m("Internal error")}}}m("Reached end of file without ENDATA")},numeric.seedrandom={pow:Math.pow,random:Math.random},function(t,e,n,r,i,a,o){function s(t){var e,r,i=this,a=t.length,o=0,s=i.i=i.j=i.m=0;i.S=[],i.c=[],a||(t=[a++]);while(o<n)i.S[o]=o++;for(o=0;o<n;o++)e=i.S[o],s=h(s+e+t[o%a]),r=i.S[s],i.S[o]=r,i.S[s]=e;i.g=function(t){var e=i.S,r=h(i.i+1),a=e[r],o=h(i.j+a),s=e[o];e[r]=s,e[o]=a;var u=e[h(a+s)];while(--t)r=h(r+1),a=e[r],o=h(o+a),s=e[o],e[r]=s,e[o]=a,u=u*n+e[h(a+s)];return i.i=r,i.j=o,u},i.g(n)}function u(t,e,n,r,i){if(n=[],i=typeof t,e&&"object"==i)for(r in t)if(r.indexOf("S")<5)try{n.push(u(t[r],e-1))}catch(a){}return n.length?n:t+("string"!=i?"\0":"")}function c(t,e,n,r){for(t+="",n=0,r=0;r<t.length;r++)e[h(r)]=h((n^=19*e[h(r)])+t.charCodeAt(r));for(r in t="",e)t+=String.fromCharCode(e[r]);return t}function h(t){return t&n-1}e["seedrandom"]=function(h,f){var l,d=[];return h=c(u(f?[h,t]:arguments.length?h:[(new Date).getTime(),t,window],3),d),l=new s(d),c(l.S,t),e["random"]=function(){var t=l.g(r),e=o,s=0;while(t<i)t=(t+s)*n,e*=n,s=l.g(1);while(t>=a)t/=2,e/=2,s>>>=1;return(t+s)/e},h},o=e.pow(n,r),i=e.pow(2,i),a=2*i,c(e.random(),t)}([],numeric.seedrandom,256,6,52),function(t){function e(t){if("object"!==typeof t)return t;var n,r=[],i=t.length;for(n=0;n<i;n++)r[n+1]=e(t[n]);return r}function n(t){if("object"!==typeof t)return t;var e,r=[],i=t.length;for(e=1;e<i;e++)r[e-1]=n(t[e]);return r}function r(t,e,n){var r,i,a,o,s;for(a=1;a<=n;a+=1){for(t[a][a]=1/t[a][a],s=-t[a][a],r=1;r<a;r+=1)t[r][a]=s*t[r][a];if(o=a+1,n<o)break;for(i=o;i<=n;i+=1)for(s=t[a][i],t[a][i]=0,r=1;r<=a;r+=1)t[r][i]=t[r][i]+s*t[r][a]}}function i(t,e,n,r){var i,a,o,s;for(a=1;a<=n;a+=1){for(s=0,i=1;i<a;i+=1)s+=t[i][a]*r[i];r[a]=(r[a]-s)/t[a][a]}for(o=1;o<=n;o+=1)for(a=n+1-o,r[a]=r[a]/t[a][a],s=-r[a],i=1;i<a;i+=1)r[i]=r[i]+s*t[i][a]}function a(t,e,n,r){var i,a,o,s,u,c;for(a=1;a<=n;a+=1){if(r[1]=a,c=0,o=a-1,o<1){if(c=t[a][a]-c,c<=0)break;t[a][a]=Math.sqrt(c)}else{for(s=1;s<=o;s+=1){for(u=t[s][a],i=1;i<s;i+=1)u-=t[i][a]*t[i][s];u/=t[s][s],t[s][a]=u,c+=u*u}if(c=t[a][a]-c,c<=0)break;t[a][a]=Math.sqrt(c)}r[1]=0}}function o(t,e,n,o,s,u,c,h,f,l,d,p,g,v,m,y){var x,b,w,_,M,S,k,A,P,C,E,I,O,T,N,j,B,L,D,R,F,Y,q,z,X,G,W;O=Math.min(o,l),w=2*o+O*(O+5)/2+2*l+1,z=1e-60;do{z+=z,X=1+.1*z,G=1+.2*z}while(X<=1||G<=1);for(x=1;x<=o;x+=1)m[x]=e[x];for(x=o+1;x<=w;x+=1)m[x]=0;for(x=1;x<=l;x+=1)p[x]=0;if(M=[],0===y[1]){if(a(t,n,o,M),0!==M[1])return void(y[1]=2);i(t,n,o,e),r(t,n,o)}else{for(b=1;b<=o;b+=1)for(s[b]=0,x=1;x<=b;x+=1)s[b]=s[b]+t[x][b]*e[x];for(b=1;b<=o;b+=1)for(e[b]=0,x=b;x<=o;x+=1)e[b]=e[b]+t[b][x]*s[x]}for(u[1]=0,b=1;b<=o;b+=1)for(s[b]=e[b],u[1]=u[1]+m[b]*s[b],m[b]=0,x=b+1;x<=o;x+=1)t[x][b]=0;for(u[1]=-u[1]/2,y[1]=0,k=o,A=k+o,E=A+O,P=E+O+1,C=P+O*(O+1)/2,T=C+l,x=1;x<=l;x+=1){for(j=0,b=1;b<=o;b+=1)j+=c[b][x]*c[b][x];m[T+x]=Math.sqrt(j)}function U(){for(v[1]=v[1]+1,w=C,x=1;x<=l;x+=1){for(w+=1,j=-h[x],b=1;b<=o;b+=1)j+=c[b][x]*s[b];if(Math.abs(j)<z&&(j=0),x>d)m[w]=j;else if(m[w]=-Math.abs(j),j>0){for(b=1;b<=o;b+=1)c[b][x]=-c[b][x];h[x]=-h[x]}}for(x=1;x<=g;x+=1)m[C+p[x]]=0;for(I=0,N=0,x=1;x<=l;x+=1)m[C+x]<N*m[T+x]&&(I=x,N=m[C+x]/m[T+x]);return 0===I?999:0}function V(){for(x=1;x<=o;x+=1){for(j=0,b=1;b<=o;b+=1)j+=t[b][x]*c[b][I];m[x]=j}for(_=k,x=1;x<=o;x+=1)m[_+x]=0;for(b=g+1;b<=o;b+=1)for(x=1;x<=o;x+=1)m[_+x]=m[_+x]+t[x][b]*m[b];for(Y=!0,x=g;x>=1;x-=1){for(j=m[x],w=P+x*(x+3)/2,_=w-x,b=x+1;b<=g;b+=1)j-=m[w]*m[A+b],w+=b;if(j/=m[_],m[A+x]=j,p[x]<d)break;if(j<0)break;Y=!1,S=x}if(!Y)for(B=m[E+S]/m[A+S],x=1;x<=g;x+=1){if(p[x]<d)break;if(m[A+x]<0)break;N=m[E+x]/m[A+x],N<B&&(B=N,S=x)}for(j=0,x=k+1;x<=k+o;x+=1)j+=m[x]*m[x];if(Math.abs(j)<=z){if(Y)return y[1]=1,999;for(x=1;x<=g;x+=1)m[E+x]=m[E+x]-B*m[A+x];return m[E+g+1]=m[E+g+1]+B,700}for(j=0,x=1;x<=o;x+=1)j+=m[k+x]*c[x][I];for(L=-m[C+I]/j,q=!0,Y||B<L&&(L=B,q=!1),x=1;x<=o;x+=1)s[x]=s[x]+L*m[k+x],Math.abs(s[x])<z&&(s[x]=0);for(u[1]=u[1]+L*j*(L/2+m[E+g+1]),x=1;x<=g;x+=1)m[E+x]=m[E+x]-L*m[A+x];if(m[E+g+1]=m[E+g+1]+L,!q){for(j=-h[I],b=1;b<=o;b+=1)j+=s[b]*c[b][I];if(I>d)m[C+I]=j;else if(m[C+I]=-Math.abs(j),j>0){for(b=1;b<=o;b+=1)c[b][I]=-c[b][I];h[I]=-h[I]}return 700}for(g+=1,p[g]=I,w=P+(g-1)*g/2+1,x=1;x<=g-1;x+=1)m[w]=m[x],w+=1;if(g===o)m[w]=m[o];else{for(x=o;x>=g+1;x-=1){if(0===m[x])break;if(D=Math.max(Math.abs(m[x-1]),Math.abs(m[x])),R=Math.min(Math.abs(m[x-1]),Math.abs(m[x])),N=m[x-1]>=0?Math.abs(D*Math.sqrt(1+R*R/(D*D))):-Math.abs(D*Math.sqrt(1+R*R/(D*D))),D=m[x-1]/N,R=m[x]/N,1===D)break;if(0===D)for(m[x-1]=R*N,b=1;b<=o;b+=1)N=t[b][x-1],t[b][x-1]=t[b][x],t[b][x]=N;else for(m[x-1]=N,F=R/(1+D),b=1;b<=o;b+=1)N=D*t[b][x-1]+R*t[b][x],t[b][x]=F*(t[b][x-1]+N)-t[b][x],t[b][x-1]=N}m[w]=m[g]}return 0}function H(){if(w=P+S*(S+1)/2+1,_=w+S,0===m[_])return 798;if(D=Math.max(Math.abs(m[_-1]),Math.abs(m[_])),R=Math.min(Math.abs(m[_-1]),Math.abs(m[_])),N=m[_-1]>=0?Math.abs(D*Math.sqrt(1+R*R/(D*D))):-Math.abs(D*Math.sqrt(1+R*R/(D*D))),D=m[_-1]/N,R=m[_]/N,1===D)return 798;if(0===D){for(x=S+1;x<=g;x+=1)N=m[_-1],m[_-1]=m[_],m[_]=N,_+=x;for(x=1;x<=o;x+=1)N=t[x][S],t[x][S]=t[x][S+1],t[x][S+1]=N}else{for(F=R/(1+D),x=S+1;x<=g;x+=1)N=D*m[_-1]+R*m[_],m[_]=F*(m[_-1]+N)-m[_],m[_-1]=N,_+=x;for(x=1;x<=o;x+=1)N=D*t[x][S]+R*t[x][S+1],t[x][S+1]=F*(t[x][S]+N)-t[x][S+1],t[x][S]=N}return 0}function Z(){for(_=w-S,x=1;x<=S;x+=1)m[_]=m[w],w+=1,_+=1;return m[E+S]=m[E+S+1],p[S]=p[S+1],S+=1,S<g?797:0}function $(){return m[E+g]=m[E+g+1],m[E+g+1]=0,p[g]=0,g-=1,v[2]=v[2]+1,0}g=0,v[1]=0,v[2]=0,W=0;while(1){if(W=U(),999===W)return;while(1){if(W=V(),0===W)break;if(999===W)return;if(700===W)if(S===g)$();else{while(1)if(H(),W=Z(),797!==W)break;$()}}}}function s(t,r,i,a,s,u){t=e(t),r=e(r),i=e(i);var c,h,f,l,d,p,g=[],v=[],m=[],y=[],x=[];if(s=s||0,u=u?e(u):[void 0,0],a=a?e(a):[],h=t.length-1,f=i[1].length-1,!a)for(c=1;c<=f;c+=1)a[c]=0;for(c=1;c<=f;c+=1)v[c]=0;for(l=0,d=Math.min(h,f),c=1;c<=h;c+=1)m[c]=0;for(g[1]=0,c=1;c<=2*h+d*(d+5)/2+2*f+1;c+=1)y[c]=0;for(c=1;c<=2;c+=1)x[c]=0;return o(t,r,h,h,m,g,i,a,h,f,s,v,l,x,y,u),p="",1===u[1]&&(p="constraints are inconsistent, no solution!"),2===u[1]&&(p="matrix D in quadratic function is not positive definite!"),{solution:n(m),value:n(g),unconstrained_solution:n(r),iterations:n(x),iact:n(v),message:p}}t.solveQP=s}(numeric),numeric.svd=function(t){var e,n=numeric.epsilon,r=1e-64/n,i=50,a=0,o=0,s=0,u=0,c=0,h=numeric.clone(t),f=h.length,l=h[0].length;if(f<l)throw"Need more rows than columns";var d=new Array(l),p=new Array(l);for(o=0;o<l;o++)d[o]=p[o]=0;var g=numeric.rep([l,l],0);function v(t,e){return t=Math.abs(t),e=Math.abs(e),t>e?t*Math.sqrt(1+e*e/t/t):0==e?t:e*Math.sqrt(1+t*t/e/e)}var m=0,y=0,x=0,b=0,w=0,_=0,M=0;for(o=0;o<l;o++){for(d[o]=y,M=0,c=o+1,s=o;s<f;s++)M+=h[s][o]*h[s][o];if(M<=r)y=0;else for(m=h[o][o],y=Math.sqrt(M),m>=0&&(y=-y),x=m*y-M,h[o][o]=m-y,s=c;s<l;s++){for(M=0,u=o;u<f;u++)M+=h[u][o]*h[u][s];for(m=M/x,u=o;u<f;u++)h[u][s]+=m*h[u][o]}for(p[o]=y,M=0,s=c;s<l;s++)M+=h[o][s]*h[o][s];if(M<=r)y=0;else{for(m=h[o][o+1],y=Math.sqrt(M),m>=0&&(y=-y),x=m*y-M,h[o][o+1]=m-y,s=c;s<l;s++)d[s]=h[o][s]/x;for(s=c;s<f;s++){for(M=0,u=c;u<l;u++)M+=h[s][u]*h[o][u];for(u=c;u<l;u++)h[s][u]+=M*d[u]}}w=Math.abs(p[o])+Math.abs(d[o]),w>b&&(b=w)}for(o=l-1;-1!=o;o+=-1){if(0!=y){for(x=y*h[o][o+1],s=c;s<l;s++)g[s][o]=h[o][s]/x;for(s=c;s<l;s++){for(M=0,u=c;u<l;u++)M+=h[o][u]*g[u][s];for(u=c;u<l;u++)g[u][s]+=M*g[u][o]}}for(s=c;s<l;s++)g[o][s]=0,g[s][o]=0;g[o][o]=1,y=d[o],c=o}for(o=l-1;-1!=o;o+=-1){for(c=o+1,y=p[o],s=c;s<l;s++)h[o][s]=0;if(0!=y){for(x=h[o][o]*y,s=c;s<l;s++){for(M=0,u=c;u<f;u++)M+=h[u][o]*h[u][s];for(m=M/x,u=o;u<f;u++)h[u][s]+=m*h[u][o]}for(s=o;s<f;s++)h[s][o]=h[s][o]/y}else for(s=o;s<f;s++)h[s][o]=0;h[o][o]+=1}for(n*=b,u=l-1;-1!=u;u+=-1)for(var S=0;S<i;S++){var k=!1;for(c=u;-1!=c;c+=-1){if(Math.abs(d[c])<=n){k=!0;break}if(Math.abs(p[c-1])<=n)break}if(!k){a=0,M=1;var A=c-1;for(o=c;o<u+1;o++){if(m=M*d[o],d[o]=a*d[o],Math.abs(m)<=n)break;for(y=p[o],x=v(m,y),p[o]=x,a=y/x,M=-m/x,s=0;s<f;s++)w=h[s][A],_=h[s][o],h[s][A]=w*a+_*M,h[s][o]=-w*M+_*a}}if(_=p[u],c==u){if(_<0)for(p[u]=-_,s=0;s<l;s++)g[s][u]=-g[s][u];break}if(S>=i-1)throw"Error: no convergence.";for(b=p[c],w=p[u-1],y=d[u-1],x=d[u],m=((w-_)*(w+_)+(y-x)*(y+x))/(2*x*w),y=v(m,1),m=m<0?((b-_)*(b+_)+x*(w/(m-y)-x))/b:((b-_)*(b+_)+x*(w/(m+y)-x))/b,a=1,M=1,o=c+1;o<u+1;o++){for(y=d[o],w=p[o],x=M*y,y*=a,_=v(m,x),d[o-1]=_,a=m/_,M=x/_,m=b*a+y*M,y=-b*M+y*a,x=w*M,w*=a,s=0;s<l;s++)b=g[s][o-1],_=g[s][o],g[s][o-1]=b*a+_*M,g[s][o]=-b*M+_*a;for(_=v(m,x),p[o-1]=_,a=m/_,M=x/_,m=a*y+M*w,b=-M*y+a*w,s=0;s<f;s++)w=h[s][o-1],_=h[s][o],h[s][o-1]=w*a+_*M,h[s][o]=-w*M+_*a}d[c]=0,d[u]=m,p[u]=b}for(o=0;o<p.length;o++)p[o]<n&&(p[o]=0);for(o=0;o<l;o++)for(s=o-1;s>=0;s--)if(p[s]<p[o]){for(a=p[s],p[s]=p[o],p[o]=a,u=0;u<h.length;u++)e=h[u][o],h[u][o]=h[u][s],h[u][s]=e;for(u=0;u<g.length;u++)e=g[u][o],g[u][o]=g[u][s],g[u][s]=e;o=s}return{U:h,S:p,V:g}}}).call(this,__webpack_require__("c8ba"))},e2a0:function(t,e,n){var r=n("3729"),i=n("6747"),a=n("1310"),o="[object String]";function s(t){return"string"==typeof t||!i(t)&&a(t)&&r(t)==o}t.exports=s},e2c0:function(t,e,n){var r=n("e2e4"),i=n("d370"),a=n("6747"),o=n("c0983"),s=n("b218"),u=n("f4d6");function c(t,e,n){e=r(e,t);var c=-1,h=e.length,f=!1;while(++c<h){var l=u(e[c]);if(!(f=null!=t&&n(t,l)))break;t=t[l]}return f||++c!=h?f:(h=null==t?0:t.length,!!h&&s(h)&&o(l,h)&&(a(t)||i(t)))}t.exports=c},e2e4:function(t,e,n){var r=n("6747"),i=n("f608"),a=n("18d8"),o=n("76dd");function s(t,e){return r(t)?t:i(t,e)?[t]:a(o(t))}t.exports=s},e310:function(t,e,n){const r=n("1b95"),i=document.body,a={fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]};t.exports={getDefaultCfg(){return{delegate:!0,delegateStyle:{},delegateShapes:{},delegateShapeBBoxs:{}}},getEvents(){return{dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd","canvas:mouseleave":"onOutOfRange"}},onDragStart(t){const{target:e}=t,n=e.get("groupId");if(!n)return!1;const r=this.graph,i=r.get("customGroupControll"),a=i.customGroup,o=a[n].nodeGroup;this.targetGroup=o,this.mouseOrigin={x:t.canvasX,y:t.canvasY};const{groups:s}=r.save();let u=null;for(const c of s)if(n===c.id){u=c.parentId;break}if(u){const t=a[u].nodeGroup;i.setGroupStyle(t.get("keyShape"),"hover")}},onDrag(t){if(!this.mouseOrigin)return!1;this._updateDelegate(t)},onDragEnd(t){const e=t.target.get("groupId");if(this.delegateShapes[e]&&(this.delegateShapeBBox=this.delegateShapes[e].getBBox(),this.delegateShapes[e].remove(),delete this.delegateShapes[e]),!this.delegateShapeBBox)return!1;const n=this.graph,r=n.get("autoPaint");n.setAutoPaint(!1);const i=n.get("customGroupControll"),a=this.delegateShapeBBoxs[e];i.updateGroup(e,a),n.setAutoPaint(r),n.paint(),this.mouseOrigin=null,this.shapeOrigin=null,i.resetNodePoint(),this.delegateShapeBBox=null},_updateDelegate(t){const e=this,n=t.target.get("groupId"),i=this.targetGroup.get("keyShape"),o=this.graph,s=o.get("autoPaint");o.setAutoPaint(!1);let u=e.delegateShapes[n];const c=i.getBBox(),h=i.get("type");if(u){const{mouseOrigin:r,shapeOrigin:i}=e,a=t.canvasX-r.x,s=t.canvasY-r.y,c=a+i.x,h=s+i.y,f=o.getPointByCanvas(c,h);u.attr({x:f.x,y:f.y}),e.delegateShapeBBoxs[n]=u.getBBox()}else{const i=o.get("delegateGroup"),{width:s,height:f}=c,l=t.canvasX-s/2,d=t.canvasY-f/2,p={width:s,height:f,x:l,y:d,...r({},a,this.delegateStyle)};if("circle"===h){const n=t.canvasX,o=t.canvasY,c=s>f?s/2:f/2;u=i.addShape("circle",{attrs:{x:n,y:o,r:c,...r({},a,this.delegateStyle)}}),e.shapeOrigin={x:n,y:o}}else u=i.addShape("rect",{attrs:p}),e.shapeOrigin={x:p.x,y:p.y};e.delegateShapes[n]=u,e.delegateShapeBBoxs[n]=u.getBBox()}o.paint(),o.setAutoPaint(s)},onOutOfRange(t){const e=this;if(this.origin){const n=e.graph.get("canvas").get("el"),r=r=>{r.target!==n&&e.onDragEnd(t)};this.fn=r,i.addEventListener("mouseup",r,!1)}}}},e34f:function(t,e,n){t.exports={graphlib:n("17d5"),layout:n("7a9c"),debug:n("e090"),util:{time:n("b50e").time,notime:n("b50e").notime},version:n("9214")}},e380:function(t,e,n){var r=n("7b83"),i="Expected a function";function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(a.Cache||r),n}a.Cache=r,t.exports=a},e3f8:function(t,e,n){var r=n("656b");function i(t){return function(e){return r(e,t)}}t.exports=i},e44a:function(t,e,n){var r=n("33de");function i(t){var e,n={},i=[];function a(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),a),r.each(t.predecessors(i),a))}return r.each(t.nodes(),(function(t){e=[],a(t),e.length&&i.push(e)})),i}t.exports=i},e538:function(t,e,n){(function(t){var r=n("2b3e"),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}t.exports=c}).call(this,n("62e4")(t))},e632:function(t,e,n){"use strict";var r=n("6f9c");function i(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}))),a=r.map(r.range(i+1),(function(){return[]}));function o(n){if(!r.has(e,n)){e[n]=!0;var i=t.node(n);a[i.rank].push(n),r.forEach(t.successors(n),o)}}var s=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(s,o),a}t.exports=i},e6d6:function(t,e){var n=function(t){return null===t||void 0===t};t.exports=n},e849:function(t,e,n){"use strict";var r=n("6f9c");function i(t){var e={};function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&void 0!==o&&null!==o||(o=0),a.rank=o}r.forEach(t.sources(),n)}function a(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}t.exports={longestPath:i,slack:a}},e877:function(t,e,n){const r=n("9f57"),i={deepMix:n("1b95"),mix:n("503e"),debounce:n("6023"),each:n("72fb"),throttle:n("da0a"),mat3:n("6dcf"),vec2:n("830e"),vec3:n("f98b"),transform:n("3b54"),clone:n("e0ef"),upperFirst:n("dd6d"),isNil:n("e6d6"),isArray:n("3a21"),createDom:n("158c"),modifyCSS:n("758e"),isObject:n("d285"),isPlainObject:n("7bf3"),isNumber:n("5d9e"),isString:n("3421"),uniqueId:n("339d"),addEventListener:n("0e151"),wrapBehavior:n("14c8"),extend:n("26bf"),augment:n("8d88"),remove:n("4edf"),formatPadding(t){let e=0,n=0,r=0,a=0;return i.isNumber(t)||i.isString(t)?e=n=r=a=t:i.isArray(t)&&(e=t[0],r=i.isNil(t[1])?t[0]:t[1],a=i.isNil(t[2])?t[0]:t[2],n=i.isNil(t[3])?r:t[3]),[e,r,a,n]},cloneEvent(t){const e=new r(t.type,t,!0,!0);return e.clientX=t.clientX,e.clientY=t.clientY,e.x=t.x,e.y=t.y,e.target=t.target,e.currentTarget=t.currentTarget,e.item=t.item,e}};t.exports=i},e916:function(t,e){const n=.05;t.exports={getDefaultCfg(){return{sensitivity:2,minZoom:.1,maxZoom:10}},getEvents(){return{wheel:"onWheel"}},onWheel(t){if(t.preventDefault(),!this.shouldUpdate.call(this,t))return;const e=this.graph,r=e.get("canvas"),i=r.getPointByClient(t.clientX,t.clientY),a=r.get("pixelRatio"),o=this.get("sensitivity");let s=e.getZoom();s=t.wheelDelta<0?1-n*o:1+n*o;const u=s*e.getZoom();u>this.get("maxZoom")||u<this.get("minZoom")||(e.zoom(s,{x:i.x/a,y:i.y/a}),e.paint(),e.emit("wheelzoom",t))}}},eaab:function(t,e,n){const r=n("4651"),i=n("3421");function a(t,e,n){const r=[];for(let i=0;i<t;i++)r[i]=0;return n.forEach(t=>{r[e.get(t.source)]+=1,r[e.get(t.target)]+=1}),r}r.registerLayout("grid",{getDefaultCfg(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position(){},sortBy:"degree",nodeSize:30}},execute(){const t=this,e=t.nodes,n=e.length,r=t.center;if(0===n)return;if(1===n)return e[0].x=r[0],void(e[0].y=r[1]);const o=t.edges,s=[];e.forEach(t=>{s.push(t)});const u=new Map;if(s.forEach((t,e)=>{u.set(t.id,e)}),("degree"===t.sortBy||!i(t.sortBy)||void 0===s[0][t.sortBy])&&(t.sortBy="degree",isNaN(e[0].degree))){const t=a(s.length,u,o);s.forEach((e,n)=>{e.degree=t[n]})}s.sort((e,n)=>n[t.sortBy]-e[t.sortBy]);let c=t.width;c||"undefined"===typeof window||(c=window.innerWidth);let h=t.height;h||"undefined"===typeof h||(h=window.innerHeight),t.cells=n,t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits);const f=t.rows,l=null!=t.cols?t.cols:t.columns;if(null!=f&&null!=l)t.rows=f,t.cols=l;else if(null!=f&&null==l)t.rows=f,t.cols=Math.ceil(t.cells/t.rows);else if(null==f&&null!=l)t.cols=l,t.rows=Math.ceil(t.cells/t.cols);else if(t.cols*t.rows>t.cells){const e=t.small(),n=t.large();(e-1)*n>=t.cells?t.small(e-1):(n-1)*e>=t.cells&&t.large(n-1)}else while(t.cols*t.rows<t.cells){const e=t.small(),n=t.large();(n+1)*e>=t.cells?t.large(n+1):t.small(e+1)}t.cellWidth=t.width/t.cols,t.cellHeight=t.height/t.rows,t.condense&&(t.cellWidth=0,t.cellHeight=0),t.preventOverlap&&s.forEach(e=>{let n,r;null!=e.x&&null!=e.y||(e.x=0,e.y=0),isNaN(e.size)?(n=e.size[0],r=e.size[1]):(n=e.size,r=e.size),(isNaN(n)||isNaN(r))&&(isNaN(t.nodeSize)?(n=t.nodeSize[0],r=t.nodeSize[1]):(n=t.nodeSize,r=t.nodeSize));const i=t.preventOverlapPadding,a=n+i,o=r+i;t.cellWidth=Math.max(t.cellWidth,a),t.cellHeight=Math.max(t.cellHeight,o)}),t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(let i=0;i<s.length;i++){const e=s[i],n=t.position(e);if(n&&(void 0!==n.row||void 0!==n.col)){const r={row:n.row,col:n.col};if(void 0===r.col){r.col=0;while(t.used(r.row,r.col))r.col++}else if(void 0===r.row){r.row=0;while(t.used(r.row,r.col))r.row++}t.id2manPos[e.id]=r,t.use(r.row,r.col)}t.getPos(e)}},small(t){const e=this;let n;if(null==t)n=Math.min(e.rows,e.cols);else{const n=Math.min(e.rows,e.cols);n===e.rows?e.rows=t:e.cols=t}return n},large(t){const e=this;let n;if(null==t)n=Math.max(e.rows,e.cols);else{const n=Math.max(e.rows,e.cols);n===e.rows?e.rows=t:e.cols=t}return n},used(t,e){const n=this;return n.cellUsed["c-"+t+"-"+e]||!1},use(t,e){const n=this;n.cellUsed["c-"+t+"-"+e]=!0},moveToNextCell(){const t=this;t.col++,t.col>=t.cols&&(t.col=0,t.row++)},getPos(t){const e=this,n=e.begin,r=e.cellWidth,i=e.cellHeight;let a,o;const s=e.id2manPos[t.id];if(s)a=s.col*r+r/2+n[0],o=s.row*i+i/2+n[1];else{while(e.used(e.row,e.col))e.moveToNextCell();a=e.col*r+r/2+n[0],o=e.row*i+i/2+n[1],e.use(e.row,e.col),e.moveToNextCell()}t.x=a,t.y=o}})},eac5:function(t,e){var n=Object.prototype;function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}t.exports=r},ec19:function(t,e,n){const r=n("1249"),i=n("1bb5"),a=n("e00c");r.registerNode("image",{options:{img:"https://img2.bosszhipin.com/boss/avatar/avatar_13.png",size:200,clipCfg:{show:!1,type:"circle",r:50,rx:50,ry:35,width:50,height:35,points:[[30,12],[12,30],[30,48],[48,30]],path:[["M",25,25],["L",50,25],["A",12.5,12.5,0,1,1,50,50],["A",12.5,12.5,0,1,0,50,50],["L",25,75],["Z"]],x:0,y:0,style:{lineWidth:1}}},shapeType:"image",labelPosition:"bottom",drawShape(t,e){const n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r});return this.drawClip(t,i),i},drawClip(t,e){const n=i.mix({},this.options.clipCfg,t.clipCfg);if(!n.show)return;const{type:r,x:o,y:s,style:u}=n;let c=null;if("circle"===r){const{r:t}=n;c=new a.Circle({attrs:{r:t,x:o,y:s,...u}})}else if("rect"===r){const{width:t,height:e}=n;c=new a.Rect({attrs:{x:o,y:s,width:t,height:e,...u}})}else if("ellipse"===r){const{rx:t,ry:e}=n;c=new a.Ellipse({attrs:{x:o,y:s,rx:t,ry:e,...u}})}else if("polygon"===r){const{points:t}=n;c=new a.Polygon({attrs:{points:t,...u}})}else if("path"===r){const{path:t}=n;c=new a.Path({attrs:{path:t,...u}})}c&&e.attr("clip",c)},getShapeStyle(t){const e=this.getSize(t),n=t.img||this.options.img,r=e[0],a=e[1],o=i.mix({},{x:0-r/2,y:0-a/2,width:r,height:a,img:n},t.style);return o}},"single-shape")},ec69:function(t,e,n){var r=n("6fcd"),i=n("03dd"),a=n("30c9");function o(t){return a(t)?r(t):i(t)}t.exports=o},ec8c:function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},edb2:function(t,e,n){t.exports={painter:n("8327"),getShape:n("5e5e")}},edfa:function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}t.exports=n},ee9f:function(t,e,n){"use strict";n.r(e);var r=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function a(){}var o=.7,s=1/o,u="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",h="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,l=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgb\\("+[h,h,h]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),g=new RegExp("^rgba\\("+[h,h,h,c]+"\\)$"),v=new RegExp("^hsl\\("+[c,h,h]+"\\)$"),m=new RegExp("^hsla\\("+[c,h,h,c]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function x(){return this.rgb().formatHex()}function b(){return T(this).formatHsl()}function w(){return this.rgb().formatRgb()}function _(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=f.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?M(e):3===n?new P(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?S(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?S(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new P(e[1],e[2],e[3],1):(e=d.exec(t))?new P(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=p.exec(t))?S(e[1],e[2],e[3],e[4]):(e=g.exec(t))?S(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=v.exec(t))?O(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?O(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?M(y[t]):"transparent"===t?new P(NaN,NaN,NaN,0):null}function M(t){return new P(t>>16&255,t>>8&255,255&t,1)}function S(t,e,n,r){return r<=0&&(t=e=n=NaN),new P(t,e,n,r)}function k(t){return t instanceof a||(t=_(t)),t?(t=t.rgb(),new P(t.r,t.g,t.b,t.opacity)):new P}function A(t,e,n,r){return 1===arguments.length?k(t):new P(t,e,n,null==r?1:r)}function P(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function C(){return"#"+I(this.r)+I(this.g)+I(this.b)}function E(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function I(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function O(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new j(t,e,n,r)}function T(t){if(t instanceof j)return new j(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=_(t)),!t)return new j;if(t instanceof j)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-i,c=(o+i)/2;return u?(s=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=c<.5?o+i:2-o-i,s*=60):u=c>0&&c<1?0:s,new j(s,u,c,t.opacity)}function N(t,e,n,r){return 1===arguments.length?T(t):new j(t,e,n,null==r?1:r)}function j(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function B(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function L(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}r(a,_,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:x,formatHex:x,formatHsl:b,formatRgb:w,toString:w}),r(P,A,i(a,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatRgb:E,toString:E})),r(j,N,i(a,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new j(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new j(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new P(B(t>=240?t-240:t+120,i,r),B(t,i,r),B(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var D=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return L((n-r/e)*e,o,i,a,s)}},R=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return L((n-r/e)*e,i,a,o,s)}},F=function(t){return function(){return t}};function Y(t,e){return function(n){return t+n*e}}function q(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function z(t,e){var n=e-t;return n?Y(t,n>180||n<-180?n-360*Math.round(n/360):n):F(isNaN(t)?e:t)}function X(t){return 1===(t=+t)?G:function(e,n){return n-e?q(e,n,t):F(isNaN(e)?n:e)}}function G(t,e){var n=e-t;return n?Y(t,n):F(isNaN(t)?e:t)}var W=function t(e){var n=X(e);function r(t,e){var r=n((t=A(t)).r,(e=A(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=G(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function U(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=A(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}var V=U(D),H=U(R),Z=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=ut(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}},$=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}},Q=function(t,e){return t=+t,e-=t,function(n){return t+e*n}},K=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=ut(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},J=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tt=new RegExp(J.source,"g");function et(t){return function(){return t}}function nt(t){return function(e){return t(e)+""}}var rt,it,at,ot,st=function(t,e){var n,r,i,a=J.lastIndex=tt.lastIndex=0,o=-1,s=[],u=[];t+="",e+="";while((n=J.exec(t))&&(r=tt.exec(e)))(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:Q(n,r)})),a=tt.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?nt(u[0].x):et(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})},ut=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?F(e):("number"===r?Q:"string"===r?(n=_(e))?(e=n,W):st:e instanceof _?W:e instanceof Date?$:Array.isArray(e)?Z:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?K:Q)(t,e)},ct=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}},ht=180/Math.PI,ft={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},lt=function(t,e,n,r,i,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*ht,skewX:Math.atan(u)*ht,scaleX:o,scaleY:s}};function dt(t){return"none"===t?ft:(rt||(rt=document.createElement("DIV"),it=document.documentElement,at=document.defaultView),rt.style.transform=t,t=at.getComputedStyle(it.appendChild(rt),null).getPropertyValue("transform"),it.removeChild(rt),t=t.slice(7,-1).split(","),lt(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function pt(t){return null==t?ft:(ot||(ot=document.createElementNS("http://www.w3.org/2000/svg","g")),ot.setAttribute("transform",t),(t=ot.transform.baseVal.consolidate())?(t=t.matrix,lt(t.a,t.b,t.c,t.d,t.e,t.f)):ft)}function gt(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function a(t,r,i,a,o,s){if(t!==i||r!==a){var u=o.push("translate(",null,e,null,n);s.push({i:u-4,x:Q(t,i)},{i:u-2,x:Q(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}function o(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Q(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function s(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Q(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function u(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Q(t,n)},{i:s-2,x:Q(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),a(e.translateX,e.translateY,n.translateX,n.translateY,r,i),o(e.rotate,n.rotate,r,i),s(e.skewX,n.skewX,r,i),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,a=i.length;while(++n<a)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var vt=gt(dt,"px, ","px)","deg)"),mt=gt(pt,", ",")",")"),yt=Math.SQRT2,xt=2,bt=4,wt=1e-12;function _t(t){return((t=Math.exp(t))+1/t)/2}function Mt(t){return((t=Math.exp(t))-1/t)/2}function St(t){return((t=Math.exp(2*t))-1)/(t+1)}var kt=function(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],u=e[1],c=e[2],h=s-i,f=u-a,l=h*h+f*f;if(l<wt)r=Math.log(c/o)/yt,n=function(t){return[i+t*h,a+t*f,o*Math.exp(yt*t*r)]};else{var d=Math.sqrt(l),p=(c*c-o*o+bt*l)/(2*o*xt*d),g=(c*c-o*o-bt*l)/(2*c*xt*d),v=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(g*g+1)-g);r=(m-v)/yt,n=function(t){var e=t*r,n=_t(v),s=o/(xt*d)*(n*St(yt*e+v)-Mt(v));return[i+s*h,a+s*f,o*n/_t(yt*e+v)]}}return n.duration=1e3*r,n};function At(t){return function(e,n){var r=t((e=N(e)).h,(n=N(n)).h),i=G(e.s,n.s),a=G(e.l,n.l),o=G(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var Pt=At(z),Ct=At(G),Et=Math.PI/180,It=180/Math.PI,Ot=18,Tt=.96422,Nt=1,jt=.82521,Bt=4/29,Lt=6/29,Dt=3*Lt*Lt,Rt=Lt*Lt*Lt;function Ft(t){if(t instanceof qt)return new qt(t.l,t.a,t.b,t.opacity);if(t instanceof Ht)return Zt(t);t instanceof P||(t=k(t));var e,n,r=Wt(t.r),i=Wt(t.g),a=Wt(t.b),o=zt((.2225045*r+.7168786*i+.0606169*a)/Nt);return r===i&&i===a?e=n=o:(e=zt((.4360747*r+.3850649*i+.1430804*a)/Tt),n=zt((.0139322*r+.0971045*i+.7141733*a)/jt)),new qt(116*o-16,500*(e-o),200*(o-n),t.opacity)}function Yt(t,e,n,r){return 1===arguments.length?Ft(t):new qt(t,e,n,null==r?1:r)}function qt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function zt(t){return t>Rt?Math.pow(t,1/3):t/Dt+Bt}function Xt(t){return t>Lt?t*t*t:Dt*(t-Bt)}function Gt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Wt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ut(t){if(t instanceof Ht)return new Ht(t.h,t.c,t.l,t.opacity);if(t instanceof qt||(t=Ft(t)),0===t.a&&0===t.b)return new Ht(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*It;return new Ht(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Vt(t,e,n,r){return 1===arguments.length?Ut(t):new Ht(t,e,n,null==r?1:r)}function Ht(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Zt(t){if(isNaN(t.h))return new qt(t.l,0,0,t.opacity);var e=t.h*Et;return new qt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function $t(t,e){var n=G((t=Yt(t)).l,(e=Yt(e)).l),r=G(t.a,e.a),i=G(t.b,e.b),a=G(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function Qt(t){return function(e,n){var r=t((e=Vt(e)).h,(n=Vt(n)).h),i=G(e.c,n.c),a=G(e.l,n.l),o=G(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}r(qt,Yt,i(a,{brighter:function(t){return new qt(this.l+Ot*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new qt(this.l-Ot*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Tt*Xt(e),t=Nt*Xt(t),n=jt*Xt(n),new P(Gt(3.1338561*e-1.6168667*t-.4906146*n),Gt(-.9787684*e+1.9161415*t+.033454*n),Gt(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(Ht,Vt,i(a,{brighter:function(t){return new Ht(this.h,this.c,this.l+Ot*(null==t?1:t),this.opacity)},darker:function(t){return new Ht(this.h,this.c,this.l-Ot*(null==t?1:t),this.opacity)},rgb:function(){return Zt(this).rgb()}}));var Kt=Qt(z),Jt=Qt(G),te=-.14861,ee=1.78277,ne=-.29227,re=-.90649,ie=1.97294,ae=ie*re,oe=ie*ee,se=ee*ne-re*te;function ue(t){if(t instanceof he)return new he(t.h,t.s,t.l,t.opacity);t instanceof P||(t=k(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(se*r+ae*e-oe*n)/(se+ae-oe),a=r-i,o=(ie*(n-i)-ne*a)/re,s=Math.sqrt(o*o+a*a)/(ie*i*(1-i)),u=s?Math.atan2(o,a)*It-120:NaN;return new he(u<0?u+360:u,s,i,t.opacity)}function ce(t,e,n,r){return 1===arguments.length?ue(t):new he(t,e,n,null==r?1:r)}function he(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function fe(t){return function e(n){function r(e,r){var i=t((e=ce(e)).h,(r=ce(r)).h),a=G(e.s,r.s),o=G(e.l,r.l),s=G(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}r(he,ce,i(a,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new he(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new he(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Et,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new P(255*(e+n*(te*r+ee*i)),255*(e+n*(ne*r+re*i)),255*(e+n*(ie*r)),this.opacity)}}));var le=fe(z),de=fe(G),pe=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n};n.d(e,"interpolate",(function(){return ut})),n.d(e,"interpolateArray",(function(){return Z})),n.d(e,"interpolateBasis",(function(){return D})),n.d(e,"interpolateBasisClosed",(function(){return R})),n.d(e,"interpolateDate",(function(){return $})),n.d(e,"interpolateNumber",(function(){return Q})),n.d(e,"interpolateObject",(function(){return K})),n.d(e,"interpolateRound",(function(){return ct})),n.d(e,"interpolateString",(function(){return st})),n.d(e,"interpolateTransformCss",(function(){return vt})),n.d(e,"interpolateTransformSvg",(function(){return mt})),n.d(e,"interpolateZoom",(function(){return kt})),n.d(e,"interpolateRgb",(function(){return W})),n.d(e,"interpolateRgbBasis",(function(){return V})),n.d(e,"interpolateRgbBasisClosed",(function(){return H})),n.d(e,"interpolateHsl",(function(){return Pt})),n.d(e,"interpolateHslLong",(function(){return Ct})),n.d(e,"interpolateLab",(function(){return $t})),n.d(e,"interpolateHcl",(function(){return Kt})),n.d(e,"interpolateHclLong",(function(){return Jt})),n.d(e,"interpolateCubehelix",(function(){return le})),n.d(e,"interpolateCubehelixLong",(function(){return de})),n.d(e,"quantize",(function(){return pe}))},ef5d:function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},efb66:function(t,e,n){var r=n("5e2e");function i(){this.__data__=new r,this.size=0}t.exports=i},f1cd:function(t,e,n){var r=n("6f9c");function i(t){var e=o(t);r.forEach(t.graph().dummyChains,(function(n){var r=t.node(n),i=r.edgeObj,o=a(t,e,i.v,i.w),s=o.path,u=o.lca,c=0,h=s[c],f=!0;while(n!==i.w){if(r=t.node(n),f){while((h=s[c])!==u&&t.node(h).maxRank<r.rank)c++;h===u&&(f=!1)}if(!f){while(c<s.length-1&&t.node(h=s[c+1]).minRank<=r.rank)c++;h=s[c]}t.setParent(n,h),n=t.successors(n)[0]}}))}function a(t,e,n,r){var i,a,o=[],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),o.push(i)}while(i&&(e[i].low>u||c>e[i].lim));a=i,i=r;while((i=t.parent(i))!==a)s.push(i);return{path:o.concat(s.reverse()),lca:a}}function o(t){var e={},n=0;function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}}return r.forEach(t.children(),i),e}t.exports=i},f352:function(t,e,n){var r=n("6f9c"),i=n("b50e");function a(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=n.lhs,u=r.sortBy(n.rhs,(function(t){return-t.i})),c=[],h=0,f=0,l=0;a.sort(s(!!e)),l=o(c,u,l),r.forEach(a,(function(t){l+=t.vs.length,c.push(t.vs),h+=t.barycenter*t.weight,f+=t.weight,l=o(c,u,l)}));var d={vs:r.flatten(c,!0)};return f&&(d.barycenter=h/f,d.weight=f),d}function o(t,e,n){var i;while(e.length&&(i=r.last(e)).i<=n)e.pop(),t.push(i.vs),n++;return n}function s(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}t.exports=a},f3c1:function(t,e){var n=800,r=16,i=Date.now;function a(t){var e=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}t.exports=a},f4c8:function(t,e){const n="dblclick",r=["click","dblclick"];t.exports={getDefaultCfg(){return{trigger:n}},getEvents(){let t;return r.includes(this.trigger)?t=this.trigger:(t=n,console.warn("Behavior collapse-expand-group的trigger参数不合法请输入click或dblclick")),{[""+t]:"onGroupClick"}},onGroupClick(t){const{target:e}=t,n=e.get("groupId");if(!n)return!1;const r=this.graph,i=r.get("customGroupControll");i.collapseExpandGroup(n)}}},f4d6:function(t,e,n){var r=n("ffd6"),i=1/0;function a(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}t.exports=a},f608:function(t,e,n){var r=n("6747"),i=n("ffd6"),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(o.test(t)||!a.test(t)||null!=e&&t in Object(e))}t.exports=s},f8af:function(t,e,n){var r=n("2474");function i(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}t.exports=i},f909:function(t,e,n){var r=n("7e64"),i=n("b760"),a=n("72af"),o=n("4f50"),s=n("1a8c"),u=n("9934"),c=n("8adb");function h(t,e,n,f,l){t!==e&&a(e,(function(a,u){if(l||(l=new r),s(a))o(t,e,u,n,h,f,l);else{var d=f?f(c(t,u),a,u+"",t,e,l):void 0;void 0===d&&(d=a),i(t,u,d)}}),u)}t.exports=h},f98b:function(t,e,n){var r=n("9272");t.exports=r},f9ce:function(t,e,n){var r=n("ef5d"),i=n("e3f8"),a=n("f608"),o=n("f4d6");function s(t){return a(t)?r(o(t)):i(t)}t.exports=s},fa21:function(t,e,n){var r=n("7530"),i=n("2dcb"),a=n("eac5");function o(t){return"function"!=typeof t.constructor||a(t)?{}:r(i(t))}t.exports=o},fb06:function(t,e,n){const r=n("1bb5"),i=n("8d21"),a="anchorPointsCache",o="bboxCache";function s(t,e){let n=0,r=t[0],i=u(t[0],e);for(let a=0;a<t.length;a++){const o=t[a],s=u(o,e);s<i&&(r=o,i=s,n=a)}return r.anchorIndex=n,r}function u(t,e){return(e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y)}class c extends i{getDefaultCfg(){return{type:"node",anchors:[],edges:[],status:[]}}getEdges(){return this.get("edges")}getInEdges(){const t=this;return this.get("edges").filter(e=>e.get("target")===t)}getOutEdges(){const t=this;return this.get("edges").filter(e=>e.get("source")===t)}getLinkPointByAnchor(t){const e=this.getAnchorPoints();return e[t]}getLinkPoint(t){const e=this.get("keyShape"),n=e.get("type"),i=this.getBBox(),{centerX:a,centerY:o}=i,u=this.getAnchorPoints();let c;switch(n){case"circle":c=r.getCircleIntersectByPoint({x:a,y:o,r:i.width/2},t);break;case"ellipse":c=r.getEllispeIntersectByPoint({x:a,y:o,rx:i.width/2,ry:i.height/2},t);break;default:c=r.getRectIntersectByPoint(i,t)}let h=c;return u.length&&(h||(h=t),h=s(u,h)),h||(h={x:a,y:o}),h}lock(){this.set("locked",!0)}unlock(){this.set("locked",!1)}hasLocked(){return this.get("locked")}addEdge(t){this.get("edges").push(t)}removeEdge(t){const e=this.getEdges(),n=e.indexOf(t);n>-1&&e.splice(n,1)}clearCache(){this.set(o,null),this.set(a,null)}_isOnlyMove(t){if(!t)return!1;const e=!r.isNil(t.x),n=!r.isNil(t.y),i=Object.keys(t);return 1===i.length&&(e||n)||2===i.length&&e&&n}getAnchorPoints(){let t=this.get(a);if(!t){t=[];const e=this.get("shapeFactory"),n=this.getBBox(),i=this.get("model"),o=this.getShapeCfg(i),s=e.getAnchorPoints(i.shape,o)||[];r.each(s,(e,i)=>{const a=r.mix({x:n.minX+e[0]*n.width,y:n.minY+e[1]*n.height},e[2],{index:i});t.push(a)}),this.set(a,t)}return t}}t.exports=c},fb77:function(t,e,n){"use strict";function r(t){return+t}function i(t){return t*t}function a(t){return t*(2-t)}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function s(t){return t*t*t}function u(t){return--t*t*t+1}function c(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(e);var h=3,f=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(h),l=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(h),d=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(h),p=Math.PI,g=p/2;function v(t){return 1-Math.cos(t*g)}function m(t){return Math.sin(t*g)}function y(t){return(1-Math.cos(p*t))/2}function x(t){return Math.pow(2,10*t-10)}function b(t){return 1-Math.pow(2,-10*t)}function w(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function _(t){return 1-Math.sqrt(1-t*t)}function M(t){return Math.sqrt(1- --t*t)}function S(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var k=4/11,A=6/11,P=8/11,C=3/4,E=9/11,I=10/11,O=15/16,T=21/22,N=63/64,j=1/k/k;function B(t){return 1-L(1-t)}function L(t){return(t=+t)<k?j*t*t:t<P?j*(t-=A)*t+C:t<I?j*(t-=E)*t+O:j*(t-=T)*t+N}function D(t){return((t*=2)<=1?1-L(1-t):L(t-1)+1)/2}var R=1.70158,F=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(R),Y=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(R),q=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(R),z=2*Math.PI,X=1,G=.3,W=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=z);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*z)},i.period=function(n){return t(e,n)},i}(X,G),U=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=z);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*z)},i.period=function(n){return t(e,n)},i}(X,G),V=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=z);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*z)},i.period=function(n){return t(e,n)},i}(X,G);n.d(e,"easeLinear",(function(){return r})),n.d(e,"easeQuad",(function(){return o})),n.d(e,"easeQuadIn",(function(){return i})),n.d(e,"easeQuadOut",(function(){return a})),n.d(e,"easeQuadInOut",(function(){return o})),n.d(e,"easeCubic",(function(){return c})),n.d(e,"easeCubicIn",(function(){return s})),n.d(e,"easeCubicOut",(function(){return u})),n.d(e,"easeCubicInOut",(function(){return c})),n.d(e,"easePoly",(function(){return d})),n.d(e,"easePolyIn",(function(){return f})),n.d(e,"easePolyOut",(function(){return l})),n.d(e,"easePolyInOut",(function(){return d})),n.d(e,"easeSin",(function(){return y})),n.d(e,"easeSinIn",(function(){return v})),n.d(e,"easeSinOut",(function(){return m})),n.d(e,"easeSinInOut",(function(){return y})),n.d(e,"easeExp",(function(){return w})),n.d(e,"easeExpIn",(function(){return x})),n.d(e,"easeExpOut",(function(){return b})),n.d(e,"easeExpInOut",(function(){return w})),n.d(e,"easeCircle",(function(){return S})),n.d(e,"easeCircleIn",(function(){return _})),n.d(e,"easeCircleOut",(function(){return M})),n.d(e,"easeCircleInOut",(function(){return S})),n.d(e,"easeBounce",(function(){return L})),n.d(e,"easeBounceIn",(function(){return B})),n.d(e,"easeBounceOut",(function(){return L})),n.d(e,"easeBounceInOut",(function(){return D})),n.d(e,"easeBack",(function(){return q})),n.d(e,"easeBackIn",(function(){return F})),n.d(e,"easeBackOut",(function(){return Y})),n.d(e,"easeBackInOut",(function(){return q})),n.d(e,"easeElastic",(function(){return U})),n.d(e,"easeElasticIn",(function(){return W})),n.d(e,"easeElasticOut",(function(){return U})),n.d(e,"easeElasticInOut",(function(){return V}))},fba5:function(t,e,n){var r=n("cb5a");function i(t){return r(this.__data__,t)>-1}t.exports=i},fc14:function(t,e,n){const r=n("1249"),i=n("1b95"),a=n("9ed2");r.registerNode("diamond",{options:{size:[100,100],style:{stroke:a.defaultShapeStrokeColor,fill:a.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"}},stateStyles:{hover:{fillOpacity:.8},selected:{lineWidth:3}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16}},shapeType:"circle",labelPosition:"center",drawShape(t,e){const n=this.getCustomConfig(t)||{},{icon:r}=this.options,{icon:a}=n,o=this.getShapeStyle(t),s=i({},r,a,t.icon),u=e.addShape("path",{attrs:o}),{width:c,height:h,show:f}=s;if(f){const t=e.addShape("image",{attrs:{x:-c/2,y:-h/2,...s},className:"diamond-icon"});t.set("capture",!1)}return this.drawLinkPoints(t,e),u},drawLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{top:s,left:u,right:c,bottom:h,size:f,...l}=o,d=this.getSize(t),p=d[0],g=d[1];u&&e.addShape("circle",{attrs:{...l,x:-p/2,y:0,r:f},className:"diamond-mark-left",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:{...l,x:p/2,y:0,r:f},className:"diamond-mark-right",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:{...l,x:0,y:-g/2,r:f},className:"diamond-mark-top",isAnchorPoint:!0}),h&&e.addShape("circle",{attrs:{...l,x:0,y:g/2,r:f},className:"diamond-mark-bottom",isAnchorPoint:!0})},getPath(t){const e=this.getSize(t),n=e[0],r=e[1],i=[["M",0,-r/2],["L",n/2,0],["L",0,r/2],["L",-n/2,0],["Z"]];return i},getShapeStyle(t){const e=this.getCustomConfig(t)||{},{style:n}=this.options,{style:r}=e,a={stroke:t.color},o=i({},n,r,a,t.style),s=this.getPath(t),u={path:s,...o};return u},update(t,e){const n=e.getContainer(),r=this.getCustomConfig(t)||{},{style:a,icon:o,labelCfg:s}=this.options,{style:u,icon:c,labelCfg:h}=r,f=i({},a,u,t.style),l=i({},o,c,t.icon),d=e.get("keyShape"),p=this.getPath(t);d.attr({path:p,...f});const g=i({},s,h,t.labelCfg),v=this.getLabelStyle(t,g,n),m=n.findByClassName("node-label");m&&m.attr({...v});const y=n.findByClassName("diamond-icon");if(y){const{width:t,height:e}=l;y.attr({x:-t/2,y:-e/2,...l})}this.updateLinkPoints(t,n)},updateLinkPoints(t,e){const n=this.getCustomConfig(t)||{},{linkPoints:r}=this.options,{linkPoints:a}=n,o=i({},r,a,t.linkPoints),{size:s,fill:u,stroke:c,lineWidth:h}=o,f=this.getSize(t),l=f[0],d=f[1],p=e.findByClassName("diamond-mark-left");p&&p.attr({x:-l/2,y:0,r:s,fill:u,stroke:c,lineWidth:h});const g=e.findByClassName("diamond-mark-right");g&&g.attr({x:l/2,y:0,r:s,fill:u,stroke:c,lineWidth:h});const v=e.findByClassName("diamond-mark-top");v&&v.attr({x:0,y:-d/2,r:s,fill:u,stroke:c,lineWidth:h});const m=e.findByClassName("diamond-mark-bottom");m&&m.attr({x:0,y:d/2,r:s,fill:u,stroke:c,lineWidth:h})}},"single-shape")},fd07:function(t,e,n){var r=n("1c6a"),i=n("9f57"),a=n("51ad"),o=["click","mousedown","mouseup","dblclick","contextmenu","mouseout","mouseover","mousemove","dragstart","drag","dragend","dragenter","dragleave","drop"],s=function(){};r.augment(s,a,{emit:function(t,e){var n=arguments;if(a.prototype.emit.apply(this,n),!(n.length>=2&&n[1]instanceof i&&n[1].propagationStopped)&&o.indexOf(t)>=0&&e.target===this){var r=this._cfg.parent;while(r&&!r.get("destroyed"))r.emit.apply(r,n),r=r._cfg.parent}}}),t.exports=s},fdbc:function(t,e,n){var r=n("1c6a"),i=n("2172"),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<canvas id="'+e+'"></canvas>');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){var e=this;function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()})),e.beforeDraw();try{e._drawGroup(t)}catch(i){console.warn("error in draw canvas, detail as:"),console.warn(i)}finally{e.toDraw=!1}}e.animateHandler?e.toDraw=!0:n()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=this,n=t._cfg.children,r=null;this.setContext(t);for(var i=0;i<n.length;i++)r=n[i],n[i].isGroup?e._drawGroup(r):e._drawShape(r);this.restoreContext(t)}},e._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},e.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},e.restoreContext=function(){this.context.restore()},e.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var o in n)if(a.indexOf(o)>-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},fe39:function(t,e,n){const r=n("b0b3"),i=n("e877"),a=i.vec2;function o(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}t.exports={getSpline(t){const e=[];for(let r=0;r<t.length;r++){const n=t[r];e.push(n.x),e.push(n.y)}const n=r.PathUtil.catmullRomToBezier(e);return n.unshift(["M",t[0].x,t[0].y]),n},getControlPoint(t,e,n,r){const i={x:(1-n)*t.x+n*e.x,y:(1-n)*t.y+n*e.y},o=[];a.normalize(o,[e.x-t.x,e.y-t.y]);const s=[-o[1]*r,o[0]*r];return i.x+=s[0],i.y+=s[1],i},pointsToPolygon(t,e){if(!t.length)return"";let n="",r="";for(let i=0,a=t.length;i<a;i++){const e=t[i];r=0===i?"M{x} {y}":"L{x} {y}",n+=o(r,e)}return e&&(n+="Z"),n}}},fe51:function(t,e,n){const r=n("1b95"),{delegateStyle:i}=n("9ed2"),a=document.body;t.exports={getDefaultCfg(){return{updateEdge:!0,delegate:!0,delegateStyle:{},maxMultiple:1.1,minMultiple:1}},getEvents(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd","canvas:mouseleave":"onOutOfRange",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave"}},onMouseEnter(t){const{target:e}=t,n=e.get("groupId");if(n&&this.origin){const t=this.graph,e=t.get("customGroupControll"),r=e.getDeletageGroupById(n);if(r){const{nodeGroup:t}=r,i=t.get("keyShape");this.inGroupId=n,e.setGroupStyle(i,"hover")}}},onMouseLeave(t){const{target:e}=t,n=e.get("groupId");if(n&&this.origin){const t=this.graph,e=t.get("customGroupControll"),r=e.getDeletageGroupById(n);if(r){const{nodeGroup:t}=r,n=t.get("keyShape");e.setGroupStyle(n,"default")}}n||(this.inGroupId=null)},onDragStart(t){if(!this.shouldBegin.call(this,t))return;const{item:e}=t,n=this.graph;this.targets=[];const r=n.findAllByState("node","selected"),i=e.get("id"),a=r.filter(t=>{const e=t.get("id");return i===e});if(0===a.length){this.target=e;const t=e.getModel(),{groupId:r}=t;if(r){const t=n.get("customGroupControll"),e=t.getDeletageGroupById(r);if(e){const{nodeGroup:n}=e,i=n.get("keyShape");t.setGroupStyle(i,"hover"),this.inGroupId=r}}}else r.length>1?r.forEach(t=>{this.targets.push(t)}):this.targets.push(e);this.origin={x:t.x,y:t.y},this.point={},this.originPoint={}},onDrag(t){if(this.origin&&this.get("shouldUpdate").call(this,t))if(this.targets.length>0)this._updateDelegate(t);else{this._update(this.target,t,!0);const{item:e}=t,n=this.graph,r=e.getModel(),{groupId:i}=r;if(i){const t=n.get("customGroupControll"),e=t.getDeletageGroupById(i);if(e){const{nodeGroup:n}=e,r=n.get("keyShape");this.inGroupId!==i?t.setGroupStyle(r,"default"):t.setGroupStyle(r,"hover")}}}},onDragEnd(t){if(!this.origin||!this.shouldEnd.call(this,t))return;if(this.shape&&(this.shape.remove(),this.shape=null),this.target){const t=this.target.get("delegateShape");t&&(t.remove(),this.target.set("delegateShape",null))}this.targets.length>0?this.targets.forEach(e=>this._update(e,t)):this.target&&this._update(this.target,t),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.target=null;const e=this.fn;e&&(a.removeEventListener("mouseup",e,!1),this.fn=null),this.setCurrentGroupStyle(t)},setCurrentGroupStyle(t){const{item:e}=t,n=this.graph,r=n.get("autoPaint");n.setAutoPaint(!1);const i=e.getModel(),{groupId:a,id:o}=i,s=n.get("customGroupControll"),u=s.customGroup,c=n.get("groupNodes");if(this.inGroupId&&a){const n=u[a].nodeGroup,r=n.get("keyShape"),h=e.getBBox(),f=r.getBBox(),{x:l,y:d}=h,{minX:p,minY:g,maxX:v,maxY:m}=f;if(!(l<v*this.maxMultiple&&l>p*this.minMultiple&&d<m*this.maxMultiple&&d>g*this.minMultiple)||this.inGroupId!==a){const e=c[a];c[a]=e.filter(t=>t!==o),s.dynamicChangeGroupSize(t,n,r),delete i.groupId}if(this.inGroupId!==a){const e=u[this.inGroupId].nodeGroup,n=e.get("keyShape");-1===c[this.inGroupId].indexOf(o)&&c[this.inGroupId].push(o),i.groupId=this.inGroupId,s.dynamicChangeGroupSize(t,e,n)}s.setGroupStyle(r,"default")}else if(this.inGroupId&&!a){const e=u[this.inGroupId].nodeGroup,n=e.get("keyShape");-1===c[this.inGroupId].indexOf(o)&&c[this.inGroupId].push(o),i.groupId=this.inGroupId,s.dynamicChangeGroupSize(t,e,n)}else if(!this.inGroupId&&a){for(const t in c){const e=c[t];c[t]=e.filter(t=>t!==o)}const e=u[a].nodeGroup,n=e.get("keyShape");s.dynamicChangeGroupSize(t,e,n),delete i.groupId}this.inGroupId=null,n.paint(),n.setAutoPaint(r)},onOutOfRange(t){const e=this;if(this.origin){const n=e.graph.get("canvas").get("el"),r=r=>{r.target!==n&&e.onDragEnd(t)};this.fn=r,a.addEventListener("mouseup",r,!1)}},_update(t,e,n){const r=this.origin,i=t.get("model"),a=t.get("id");this.point[a]||(this.point[a]={x:i.x,y:i.y});const o=e.x-r.x+this.point[a].x,s=e.y-r.y+this.point[a].y;if(n)return void this._updateDelegate(e,o,s);const u={x:o,y:s};this.get("updateEdge")?this.graph.updateItem(t,u):(t.updatePosition(u),this.graph.paint())},_updateDelegate(t,e,n){const{item:a}=t,o=this.graph,s=o.get("groupType"),u=a.get("keyShape").getBBox();if(!this.shape){const t=o.get("group"),s=r({},i,this.delegateStyle);if(this.targets.length>0){const e=o.findAllByState("node","selected");0===e.length&&e.push(a);const n=o.get("customGroupControll"),{x:r,y:i,width:u,height:c}=n.calculationGroupPosition(e);this.originPoint={x:r,y:i,width:u,height:c},this.shape=t.addShape("rect",{attrs:{width:u,height:c,x:r,y:i,...s}})}else this.target&&(this.shape=t.addShape("rect",{attrs:{width:u.width,height:u.height,x:e-u.width/2,y:n-u.height/2,...s}}),this.target.set("delegateShape",this.shape));this.shape.set("capture",!1)}if(this.targets.length>0){const e=t.x-this.origin.x+this.originPoint.minX,n=t.y-this.origin.y+this.originPoint.minY;this.shape.attr({x:e,y:n})}else this.target&&("circle"===s?this.shape.attr({x:e-u.width/2,y:n-u.height/2}):"rect"===s&&this.shape.attr({x:e,y:n}));this.graph.paint()}}}}]);