ant-design/vendors_0-async.95d891ef.js
2024-11-20 18:30:54 +00:00

8 lines
2.2 MiB

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["vendors_0"],{"00077d25":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.oneHot=e.getDistance=e.getAllKeyValueMap=e.default=void 0;var r,i=n("22b52967"),o=n("9a48a41e"),a=(r=n("ed5297b5"))&&r.__esModule?r:{default:r},s=function(t,e,n){var r=[];(null==e?void 0:e.length)?r=e:(t.forEach(function(t){r=r.concat(Object.keys(t));}),r=(0,i.uniq)(r));var o={};return r.forEach(function(e){var r=[];t.forEach(function(t){void 0!==t[e]&&""!==t[e]&&r.push(t[e]);}),!r.length||(null==n?void 0:n.includes(e))||(o[e]=(0,i.uniq)(r));}),o;};e.getAllKeyValueMap=s;var u=function(t,e,n){var r=s(t,e,n),i=[];if(!Object.keys(r).length)return i;var o=Object.values(r).every(function(t){return t.every(function(t){return"number"==typeof t;});});return t.forEach(function(t,e){var n=[];Object.keys(r).forEach(function(e){var i=t[e],a=r[e],s=a.findIndex(function(t){return i===t;}),u=[];if(o)u.push(i);else for(var c=0;c<a.length;c++)c===s?u.push(1):u.push(0);n=n.concat(u);}),i[e]=n;}),i;};e.oneHot=u;var c=function(t,e,n,r){void 0===n&&(n=o.DistanceType.EuclideanDistance);var i=0;return n===o.DistanceType.EuclideanDistance&&(i=new a.default(t).euclideanDistance(new a.default(e))),i;};e.getDistance=c,e.default={getAllKeyValueMap:s,oneHot:u,getDistance:c};},"00226c26":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"pathLengthFactory",{enumerable:!0,get:function(){return u;}});var r=n("72c22a6b"),i=n("cf585742"),o=n("3f1dec58"),a=n("fe803fdd"),s=n("6a98abcb");function u(t,e,n){for(var u,c,l,f,d,h,g,p,v,m=(0,r.normalizePath)(t),y="number"==typeof e,b=[],x=0,_=0,E=0,w=0,M=[],C=[],A=0,S={x:0,y:0},D=S,I=S,T=S,k=0,F=0,N=m.length;F<N;F+=1)b=(g="M"===(p=(v=m[F])[0]))?b:[x,_].concat(v.slice(1)),g?(D=S={x:E=v[1],y:w=v[2]},A=0,y&&e<.001&&(T=S)):"L"===p?(A=(u=(0,i.segmentLineFactory)(b[0],b[1],b[2],b[3],(e||0)-k)).length,S=u.min,D=u.max,I=u.point):"A"===p?(A=(c=(0,o.segmentArcFactory)(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],(e||0)-k,n||{})).length,S=c.min,D=c.max,I=c.point):"C"===p?(A=(l=(0,a.segmentCubicFactory)(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],(e||0)-k,n||{})).length,S=l.min,D=l.max,I=l.point):"Q"===p?(A=(f=(0,s.segmentQuadFactory)(b[0],b[1],b[2],b[3],b[4],b[5],(e||0)-k,n||{})).length,S=f.min,D=f.max,I=f.point):"Z"===p&&(b=[x,_,E,w],A=(d=(0,i.segmentLineFactory)(b[0],b[1],b[2],b[3],(e||0)-k)).length,S=d.min,D=d.max,I=d.point),y&&k<e&&k+A>=e&&(T=I),C.push(D),M.push(S),k+=A,x=(h="Z"!==p?v.slice(-2):[E,w])[0],_=h[1];return y&&e>=k&&(T={x:x,y:_}),{length:k,point:T,min:{x:Math.min.apply(null,M.map(function(t){return t.x;})),y:Math.min.apply(null,M.map(function(t){return t.y;}))},max:{x:Math.max.apply(null,C.map(function(t){return t.x;})),y:Math.max.apply(null,C.map(function(t){return t.y;}))}};}},"0053e717":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("22b52967");function i(t){var e=t.values,n=t.tickInterval,i=t.tickCount,o=t.showLast;if((0,r.isNumber)(n)){var a=(0,r.filter)(e,function(t,e){return e%n==0;}),s=(0,r.last)(e);return o&&(0,r.last)(a)!==s&&a.push(s),a;}var u=e.length,c=t.min,l=t.max;if((0,r.isNil)(c)&&(c=0),(0,r.isNil)(l)&&(l=e.length-1),!(0,r.isNumber)(i)||i>=u)return e.slice(c,l+1);if(i<=0||l<=0)return[];for(var f=1===i?u:Math.floor(u/(i-1)),d=[],h=c,g=0;g<i&&!(h>=l);g++)h=Math.min(c+g*f,l),g===i-1&&o?d.push(e[l]):d.push(e[h]);return d;}},"009ff3f4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{containAllSameEdges:function(){return c;},containAllSameNodes:function(){return u;},containSameEdges:function(){return i;},containSameNodes:function(){return r;},getSameEdges:function(){return a;},getSameNodes:function(){return o;},isGraphContainsAnother:function(){return f;},isGraphOptionSame:function(){return s;},isGraphSame:function(){return l;}});var r=function(t,e){for(var n=t.nodes(),r=0;r<n.length;r++){var i=n[r];if(e.hasNode(i))return!0;}return!1;},i=function(t,e){for(var n=t.edges(),r=0;r<n.length;r++){var i=n[r];if(e.hasEdge(i.v,i.w,i.name))return!0;}return!1;},o=function(t,e){return t.nodes().filter(function(t){return e.hasNode(t);});},a=function(t,e){return t.edges().filter(function(t){return e.hasEdge(t.v,t.w,t.name);});},s=function(t,e){return t.isCompound()===e.isCompound()&&t.isDirected()===e.isDirected()&&t.isMultigraph()===e.isMultigraph();},u=function(t,e){return o(t,e).length===t.nodes().length;},c=function(t,e){return a(t,e).length===t.edges().length;},l=function(t,e){return s(t,e)&&t.nodeCount()===e.nodeCount()&&u(t,e)&&t.edgeCount()===e.edgeCount()&&c(t,e);},f=function(t,e){return u(t,e)&&c(t,e);};},"00c8916c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"Kernel",{enumerable:!0,get:function(){return v;}});var r=n("777fffbe"),i=r._(n("c3d456ca")),o=r._(n("54d66dad")),a=r._(n("21422ae0")),s=r._(n("78294f9e")),u=r._(n("8d94efed")),c=r._(n("052136da")),l=r._(n("2a207c7a")),f=r._(n("611917f7")),d=n("769809e4"),h=n("3043c99b");function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable;})),n.push.apply(n,r);}return n;}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach(function(e){(0,o.default)(t,e,n[e]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));});}return t;}var v=function(){var t,e,n;function r(t,e){(0,a.default)(this,r),this.engine=t,this.configService=e,this.model=void 0,this.dirty=!0,this.compiledBundle=void 0,this.initPromise=void 0;}return(0,s.default)(r,[{key:"init",value:function(){var t=this.configService.get(),e=t.canvas,n=t.engineOptions;this.initPromise=this.engine.init(p({canvas:e||(0,h.createCanvas)(),antialiasing:!1},n));}},{key:"setBundle",value:function(t){this.compiledBundle=JSON.parse(JSON.stringify(t));}},{key:"setDispatch",value:function(t){return this.compiledBundle.context&&(this.compiledBundle.context.dispatch=t),this;}},{key:"setMaxIteration",value:function(t){return this.compiledBundle.context&&(this.compiledBundle.context.maxIteration=t),this;}},{key:"setBinding",value:function(t,e){var n=this;if("string"==typeof t){var r=(0,c.default)(e)||(0,u.default)(e)||(0,l.default)(e);if(this.compiledBundle&&this.compiledBundle.context){var i=this.compiledBundle.context.defines.find(function(e){return e.name===t;});if(i)return i.value=e,this;var o=this.compiledBundle.context.uniforms.find(function(e){return e.name===t;});o&&(r?(o.data=e,o.isReferer=!1,o.storageClass===d.STORAGE_CLASS.Uniform?this.model&&this.model.updateUniform(t,e):this.model&&this.model.updateBuffer(t,e)):(o.isReferer=!0,o.data=e));}}else Object.keys(t).forEach(function(e){n.setBinding(e,t[e]);});return this;}},{key:"execute",value:(t=(0,i.default)(f.default.mark(function t(){var e,n,r=this,i=arguments;return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:1,!this.dirty){t.next=6;break;}return this.compiledBundle.context&&(e>1?this.compiledBundle.context.maxIteration=e:this.compiledBundle.context.maxIteration++),t.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(t){return t.isReferer;}).forEach(function(t){var e=t.data,n=t.name;r.model.confirmInput(e.model,n);}),n=0;n<e;n++)this.model.run();return this.engine.endFrame(),t.abrupt("return",this);case 12:case"end":return t.stop();}},t,this);})),function(){return t.apply(this,arguments);})},{key:"getOutput",value:(e=(0,i.default)(f.default.mark(function t(){return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.model.readData());case 1:case"end":return t.stop();}},t,this);})),function(){return e.apply(this,arguments);})},{key:"compile",value:(n=(0,i.default)(f.default.mark(function t(){var e,n,r;return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initPromise;case 2:return e=p({},this.compiledBundle.context),n=this.engine.supportWebGPU?this.engine.useWGSL?d.Target.WGSL:d.Target.GLSL450:d.Target.GLSL100,r=this.compiledBundle.shaders[n],e.defines.filter(function(t){return t.runtime;}).forEach(function(t){var e="".concat(d.DefineValuePlaceholder).concat(t.name);r=r.replace(e,"".concat(t.value));}),e.shader=r,e.uniforms.forEach(function(t){if(!t.data&&t.storageClass===d.STORAGE_CLASS.StorageBuffer){var n=1;t.type===d.AST_TOKEN_TYPES.FloatArray?n=1:t.type===d.AST_TOKEN_TYPES.Vector4FloatArray&&(n=4),t.data=new Float32Array(e.output.length*n).fill(0);}}),this.compiledBundle.context=e,t.next=11,this.engine.createComputeModel(this.compiledBundle.context);case 11:this.model=t.sent;case 12:case"end":return t.stop();}},t,this);})),function(){return n.apply(this,arguments);})}]),r;}();},"015defc5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"generate",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe")._(n("e8dd75ac")),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function o(t,e,n){var r;return(r=Math.round(t.h)>=60&&240>=Math.round(t.h)?n?Math.round(t.h)-2*e:Math.round(t.h)+2*e:n?Math.round(t.h)+2*e:Math.round(t.h)-2*e)<0?r+=360:r>=360&&(r-=360),r;}function a(t,e,n){var r;return 0===t.h&&0===t.s?t.s:((r=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(r=1),n&&5===e&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));}function s(t,e,n){var r;return(r=n?t.v+.05*e:t.v-.15*e)>1&&(r=1),Number(r.toFixed(2));}function u(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],u=(0,r.default)(t),c=5;c>0;c-=1){var l=u.toHsv(),f=(0,r.default)({h:o(l,c,!0),s:a(l,c,!0),v:s(l,c,!0)}).toHexString();n.push(f);}n.push(u.toHexString());for(var d=1;d<=4;d+=1){var h=u.toHsv(),g=(0,r.default)({h:o(h,d),s:a(h,d),v:s(h,d)}).toHexString();n.push(g);}return"dark"===e.theme?i.map(function(t){var i=t.index,o=t.opacity;return r.default.mix(e.backgroundColor||"#141414",n[i],100*o).toHexString();}):n;}var c={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},l={},f={};Object.keys(c).forEach(function(t){l[t]=u(c[t]),l[t].primary=l[t][5],f[t]=u(c[t],{theme:"dark",backgroundColor:"#141414"}),f[t].primary=f[t][5];}),l.red,l.volcano,l.gold,l.orange,l.yellow,l.lime,l.green,l.cyan,l.blue,l.geekblue,l.purple,l.magenta,l.grey;},"01733cb2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{EMPTY:function(){return r;},createEntity:function(){return o;}});var r=-1,i=1;function o(){return i++;}},"019abefd":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return p;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("f19d2b93"),a=r._(n("d8bc791f")),s=r._(n("e1f9dc6c")),u=n("5b220c3d"),c=r._(n("8a9400c4")),l=r._(n("5638ab14")),f=r._(n("9132cdb3"));let d="img-crop",h=(0,u.forwardRef)((t,e)=>{let{cropperRef:n,zoomSlider:r,rotationSlider:i,aspectSlider:a,showReset:s,resetBtnText:h,modalImage:g,aspect:p,minZoom:v,maxZoom:m,cropShape:y,showGrid:b,cropperProps:x}=t,[_,E]=(0,u.useState)(1),[w,M]=(0,u.useState)(0),[C,A]=(0,u.useState)(p),S=1!==_||0!==w||C!==p,D=()=>{E(1),M(0),A(p);},[I,T]=(0,u.useState)({x:0,y:0}),k=(0,u.useRef)({width:0,height:0,x:0,y:0}),F=(0,u.useCallback)((t,e)=>{k.current=e;},[]);(0,u.useImperativeHandle)(e,()=>({rotation:w,cropPixelsRef:k,onReset:D}));let N="[display:flex] [align-items:center] [width:60%] [margin-inline:auto]",O="[display:flex] [align-items:center] [justify-content:center] [height:32px] [width:32px] [background:transparent] [border:0] [font-family:inherit] [font-size:18px] [cursor:pointer] disabled:[opacity:20%] disabled:[cursor:default]",B="[flex:1]";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.default,Object.assign({},x,{ref:n,image:g,crop:I,zoom:_,rotation:w,aspect:C,minZoom:v,maxZoom:m,zoomWithScroll:r,cropShape:y,showGrid:b,onCropChange:T,onZoomChange:E,onRotationChange:M,onCropComplete:F,classes:{containerClassName:`${d}-container ![position:relative] [width:100%] [height:40vh] [&~section:first-of-type]:[margin-top:16px] [&~section:last-of-type]:[margin-bottom:16px]`,mediaClassName:`${d}-media`}})),r&&(0,o.jsxs)("section",{className:`${d}-control ${d}-control-zoom ${N}`,children:[(0,o.jsx)("button",{className:O,onClick:()=>E(+(_-.1).toFixed(1)),disabled:_-.1<v,children:"\uFF0D"}),(0,o.jsx)(l.default,{className:B,min:v,max:m,step:.1,value:_,onChange:E}),(0,o.jsx)("button",{className:O,onClick:()=>E(+(_+.1).toFixed(1)),disabled:_+.1>m,children:"\uFF0B"})]}),i&&(0,o.jsxs)("section",{className:`${d}-control ${d}-control-rotation ${N}`,children:[(0,o.jsx)("button",{className:`${O} [font-size:16px]`,onClick:()=>M(w-1),disabled:-180===w,children:"\u21BA"}),(0,o.jsx)(l.default,{className:B,min:-180,max:180,step:1,value:w,onChange:M}),(0,o.jsx)("button",{className:`${O} [font-size:16px]`,onClick:()=>M(w+1),disabled:180===w,children:"\u21BB"})]}),a&&(0,o.jsxs)("section",{className:`${d}-control ${d}-control-aspect ${N}`,children:[(0,o.jsx)("button",{className:O,onClick:()=>A(+(C-.01).toFixed(2)),disabled:C-.01<.5,children:"\u2195\uFE0F"}),(0,o.jsx)(l.default,{className:B,min:.5,max:2,step:.01,value:C,onChange:A}),(0,o.jsx)("button",{className:O,onClick:()=>A(+(C+.01).toFixed(2)),disabled:C+.01>2,children:"\u2194\uFE0F"})]}),s&&(r||i||a)&&(0,o.jsx)(c.default,{className:"[bottom:20px] [position:absolute]",style:S?{}:{opacity:.3,pointerEvents:"none"},onClick:D,children:h})]});});var g=(0,u.memo)(h);!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t));}}(".\\[align-items\\:center\\]{align-items:center}.\\[background\\:transparent\\]{background:transparent}.\\[border\\:0\\]{border:0}.\\[bottom\\:20px\\]{bottom:20px}.\\[cursor\\:pointer\\]{cursor:pointer}.\\[display\\:flex\\]{display:flex}.\\[flex\\:1\\]{flex:1}.\\[font-family\\:inherit\\]{font-family:inherit}.\\[font-size\\:16px\\]{font-size:16px}.\\[font-size\\:18px\\]{font-size:18px}.\\[height\\:32px\\]{height:32px}.\\[height\\:40vh\\]{height:40vh}.\\[justify-content\\:center\\]{justify-content:center}.\\[margin-inline\\:auto\\]{margin-inline:auto}.\\[position\\:absolute\\]{position:absolute}.\\!\\[position\\:relative\\]{position:relative!important}.\\[width\\:100\\%\\]{width:100%}.\\[width\\:32px\\]{width:32px}.\\[width\\:60\\%\\]{width:60%}.disabled\\:\\[cursor\\:default\\]:disabled{cursor:default}.disabled\\:\\[opacity\\:20\\%\\]:disabled{opacity:20%}.\\[\\&\\~section\\:first-of-type\\]\\:\\[margin-top\\:16px\\]~section:first-of-type{margin-top:16px}.\\[\\&\\~section\\:last-of-type\\]\\:\\[margin-bottom\\:16px\\]~section:last-of-type{margin-bottom:16px}",{insertAt:"top"});let p=(0,u.forwardRef)((t,e)=>{let{quality:n=.4,fillColor:r="white",zoomSlider:c=!0,rotationSlider:l=!1,aspectSlider:f=!1,showReset:h=!1,resetText:p,aspect:v=1,minZoom:m=1,maxZoom:y=3,cropShape:b="rect",showGrid:x=!1,cropperProps:_,modalClassName:E,modalTitle:w,modalWidth:M,modalOk:C,modalCancel:A,onModalOk:S,onModalCancel:D,modalProps:I,beforeCrop:T,children:k}=t,F=(0,u.useRef)({});F.current.onModalOk=S,F.current.onModalCancel=D,F.current.beforeCrop=T;let N=(0,u.useRef)(null),O=(0,u.useCallback)(t=>{var e;let n=document.createElement("canvas"),i=n.getContext("2d"),o=((null===(e=null==t?void 0:t.getRootNode)||void 0===e?void 0:e.call(t))||document).querySelector(`.${d}-media`),{width:a,height:s,x:u,y:c}=N.current.cropPixelsRef.current;if(l&&0!==N.current.rotation){let{naturalWidth:t,naturalHeight:e}=o,l=N.current.rotation*(Math.PI/180),f=Math.abs(Math.sin(l)),d=Math.abs(Math.cos(l)),h=t*d+e*f,g=e*d+t*f;n.width=h,n.height=g,i.fillStyle=r,i.fillRect(0,0,h,g);let p=h/2,v=g/2;i.translate(p,v),i.rotate(l),i.translate(-p,-v);let m=(h-t)/2,y=(g-e)/2;i.drawImage(o,0,0,t,e,m,y,t,e);let b=i.getImageData(0,0,h,g);n.width=a,n.height=s,i.putImageData(b,-u,-c);}else n.width=a,n.height=s,i.fillStyle=r,i.fillRect(0,0,a,s),i.drawImage(o,u,c,a,s,0,0,a,s);return n;},[r,l]),[B,P]=(0,u.useState)(""),L=(0,u.useRef)(),j=(0,u.useRef)(),R=(0,u.useCallback)(t=>(0,i.__awaiter)(void 0,[t],void 0,function*({beforeUpload:t,file:e,resolve:n,reject:r}){if("function"!=typeof t){n(e);return;}try{let r=yield t(e,[e]);n(!1!==r&&(!0!==r&&r||e));}catch(t){r(t);}}),[]),z=(0,u.useCallback)(t=>(e,r)=>new Promise((o,a)=>(0,i.__awaiter)(void 0,void 0,void 0,function*(){let u=e;if("function"==typeof F.current.beforeCrop)try{let n=yield F.current.beforeCrop(e,r);if(!1===n)return R({beforeUpload:t,file:e,resolve:o,reject:a});!0!==n&&(u=n||e);}catch(n){return R({beforeUpload:t,file:e,resolve:o,reject:a});}let c=new FileReader;c.addEventListener("load",()=>{"string"==typeof c.result&&P(c.result);}),c.readAsDataURL(u),L.current=()=>{var t,e;P(""),N.current.onReset();let n=!1;null===(e=(t=F.current).onModalCancel)||void 0===e||e.call(t,t=>{o(t),n=!0;}),n||o(s.default.LIST_IGNORE);},j.current=e=>(0,i.__awaiter)(void 0,void 0,void 0,function*(){P(""),N.current.onReset();let r=O(e.target),{type:s,name:c,uid:l}=u;r.toBlob(e=>(0,i.__awaiter)(void 0,void 0,void 0,function*(){let n=new File([e],c,{type:s});Object.assign(n,{uid:l}),R({beforeUpload:t,file:n,resolve:t=>{var e,n;o(t),null===(n=(e=F.current).onModalOk)||void 0===n||n.call(e,t);},reject:t=>{var e,n;a(t),null===(n=(e=F.current).onModalOk)||void 0===n||n.call(e,t);}});}),s,n);});})),[O,n,R]),G=(0,u.useCallback)(t=>{let e=Array.isArray(t)?t[0]:t,n=e.props,{beforeUpload:r,accept:o}=n,a=(0,i.__rest)(n,["beforeUpload","accept"]);return Object.assign(Object.assign({},e),{props:Object.assign(Object.assign({},a),{accept:o||"image/*",beforeUpload:z(r)})});},[z]),Y=(0,u.useMemo)(()=>{let t={};return void 0!==M&&(t.width=M),void 0!==C&&(t.okText=C),void 0!==A&&(t.cancelText=A),t;},[A,C,M]),X=`${d}-modal${E?` ${E}`:""}`,U="zh-CN"===("undefined"==typeof window?"":window.navigator.language);return(0,o.jsxs)(o.Fragment,{children:[G(k),B&&(0,o.jsx)(a.default,Object.assign({},I,Y,{open:!0,title:w||(U?"\u7F16\u8F91\u56FE\u7247":"Edit image"),onCancel:L.current,onOk:j.current,wrapClassName:X,maskClosable:!1,destroyOnClose:!0,children:(0,o.jsx)(g,{ref:N,cropperRef:e,zoomSlider:c,rotationSlider:l,aspectSlider:f,showReset:h,resetBtnText:p||(U?"\u91CD\u7F6E":"Reset"),modalImage:B,aspect:v,minZoom:m,maxZoom:y,cropShape:b,showGrid:x,cropperProps:_})}))]});});},"01ceb8f1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("088e0ca8")),i=function(t,e){if(!e)return[t];var n=(0,r.default)(t,e),i=[];for(var o in n)i.push(n[o]);return i;};},"02127527":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("de457467")),i=function(t,e){for(var n=(0,r.default)(t,e),i=[],o=n.length,a=0;a<o;a+=1){i[a]=[];for(var s=0;s<o;s+=1)a===s?i[a][s]=0:0!==n[a][s]&&n[a][s]?i[a][s]=n[a][s]:i[a][s]=1/0;}for(var u=0;u<o;u+=1)for(var a=0;a<o;a+=1)for(var s=0;s<o;s+=1)i[a][s]>i[a][u]+i[u][s]&&(i[a][s]=i[a][u]+i[u][s]);return i;};},"021dc89e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("21422ae0")),o=r._(n("78294f9e")),a=r._(n("5a7dbed4")),s=function(){function t(){var e=this;(0,i.default)(this,t),this.children=[],this.autoSleep=200,this.tickerKey=void 0,this.startTime=void 0,this.addChild=function(t){-1===e.children.indexOf(t)?(e.children.push(t),e.updateTickerState()):e.start();},this.removeChild=function(t){e.children=e.children.filter(function(e){return e!==t;}),e.updateTickerState();},this.kill=function(t){e.children=e.children.filter(function(e){var n=e.root.targets.map(function(e,n){if(-1===t.indexOf(e))return e;delete e._tweenOneVars;});e.root.targets=n;var r=!!n.filter(function(t){return t;}).length;return r||e.kill(),r;}),e.updateTickerState();},this.killAll=function(t){t&&(e.children.forEach(function(t){null==t||t.root.targets.forEach(function(t){t&&delete t._tweenOneVars;});}),e.children=[]),a.default.clear(e.tickerKey),e.tickerKey=void 0;},this.getTotalTime=function(){for(var t=0,n=0;n<e.children.length;n++){var r=e.children[n],i=r.pausedState?0:r.startTime+r.totalTime;t=t?Math.max(i,t):i;}return t;},this.updateTickerState=function(){e.children.length&&e.children.some(function(t){return!(null==t?void 0:t.pausedState)&&(!(null==t?void 0:t.reverseState)&&t.progressTime<t.totalTime||(null==t?void 0:t.reverseState)&&t.progressTime>0);})?e.start():e.killAll(!e.children.length);},this.start=function(){e.tickerKey||(e.tickerKey=a.default.add(e.render));},this.render=function(t){for(var n=t.time,r=t.elapsed,i=void 0===r?0:r,o=e.children,a=o.length,s=0;s<a;s++){var u=o[s];if(u){var c=u.startTime-i,l=u.startTime+u.totalTime+i;n>c&&n<l&&!u.pausedState&&u.render({time:n,elapsed:i});}}};}return(0,o.default)(t,[{key:"totalTime",get:function(){return this.getTotalTime();}}]),t;}();},"02aaba42":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("78294f9e")),o=r._(n("21422ae0")),a=(0,i.default)(function t(e,n){(0,o.default)(this,t),this.value=void 0,this.key=void 0,this.root=void 0,this.index=void 0,this.style={},this.start={},this.startAt={},this.target=void 0,this.value=e,this.key=n;});a.className=void 0,a.key=void 0;},"02af6635":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("1eabf120")),o=r._(n("855dbdf7")),a=function(t){return t;},s=function(t,e){void 0===e&&(e=a);var n={};return(0,o.default)(t)&&!(0,i.default)(t)&&Object.keys(t).forEach(function(r){n[r]=e(t[r],r);}),n;};},"02b3d64c":function(t,e,n){"use strict";function r(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1;}}n.d(e,"__esModule",{value:!0}),n.d(e,"isPathCommand",{enumerable:!0,get:function(){return r;}});},"02dd3bc3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){var n=t.toString(),r=new Blob(["importScripts('".concat(e,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(r));};},"0330be41":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("528465ee"));r._(n("a9d43e9b")).default.registerNode("simple-circle",{options:{size:a.default.defaultNode.size,style:{x:0,y:0,stroke:a.default.defaultNode.style.stroke,fill:a.default.defaultNode.style.fill,lineWidth:a.default.defaultNode.style.lineWidth},labelCfg:{style:{fill:a.default.nodeLabel.style.fill,fontSize:a.default.nodeLabel.style.fontSize,fontFamily:a.default.windowFontFamily}},stateStyles:(0,i.__assign)({},a.default.nodeStateStyles)},shapeType:"simple-circle",labelPosition:"center",shapeMap:{},drawShape:function(t,e){var n=this.getShapeStyle(t),r="".concat(this.type,"-keyShape"),i=e.addShape("circle",{attrs:n,className:"".concat(this.type,"-keyShape"),name:r,draggable:!0});return e.shapeMap[r]=i,i;},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,o.deepMix)({},e,n),a=this.getSize(t)[0]/2;return(0,i.__assign)({x:0,y:0,r:a},r);},update:function(t,e,n){var r=this.getSize(t),i={stroke:t.color,r:r[0]/2},a=e.get("keyShape"),s=(0,o.deepMix)({},a.attr(),i,t.style);this.updateShape(t,e,s,!0,n);}},"single-node");},"0386d7ea":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("1eabf120")),o=r._(n("726f18af")),a=function(t,e){var n=(0,o.default)(e),r=n.length;if((0,i.default)(t))return!r;for(var a=0;a<r;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1;}return!0;};},"03ed81b8":function(t,e,n){"use strict";function r(t){return(32|t)==97;}n.d(e,"__esModule",{value:!0}),n.d(e,"isArcCommand",{enumerable:!0,get:function(){return r;}});},"03ff4c3d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("78294f9e")),o=r._(n("21422ae0")),a=n("f2fbe439"),s=new((0,i.default)(function t(){var e=this;(0,o.default)(this,t),this.push=function(t){(0,a.dataToArray)(t).forEach(function(t){e[t.className]=t;});},this.register=this.push;}));},"04480408":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{AbstractMatrix:function(){return u;},default:function(){return l;}});var r=n("777fffbe")._(n("d8285e74")),i=n("2e47c070"),o=n("b070bdb3"),a=n("fd114b89"),s=n("afb67b89");class u{static from1DArray(t,e,n){if(t*e!==n.length)throw RangeError("data length does not match given dimensions");let r=new l(t,e);for(let i=0;i<t;i++)for(let t=0;t<e;t++)r.set(i,t,n[i*e+t]);return r;}static rowVector(t){let e=new l(1,t.length);for(let n=0;n<t.length;n++)e.set(0,n,t[n]);return e;}static columnVector(t){let e=new l(t.length,1);for(let n=0;n<t.length;n++)e.set(n,0,t[n]);return e;}static zeros(t,e){return new l(t,e);}static ones(t,e){return new l(t,e).fill(1);}static rand(t,e,n={}){if("object"!=typeof n)throw TypeError("options must be an object");let{random:r=Math.random}=n,i=new l(t,e);for(let n=0;n<t;n++)for(let t=0;t<e;t++)i.set(n,t,r());return i;}static randInt(t,e,n={}){if("object"!=typeof n)throw TypeError("options must be an object");let{min:r=0,max:i=1e3,random:o=Math.random}=n;if(!Number.isInteger(r))throw TypeError("min must be an integer");if(!Number.isInteger(i))throw TypeError("max must be an integer");if(r>=i)throw RangeError("min must be smaller than max");let a=i-r,s=new l(t,e);for(let n=0;n<t;n++)for(let t=0;t<e;t++){let e=r+Math.round(o()*a);s.set(n,t,e);}return s;}static eye(t,e,n){void 0===e&&(e=t),void 0===n&&(n=1);let r=Math.min(t,e),i=this.zeros(t,e);for(let t=0;t<r;t++)i.set(t,t,n);return i;}static diag(t,e,n){let r=t.length;void 0===e&&(e=r),void 0===n&&(n=e);let i=Math.min(r,e,n),o=this.zeros(e,n);for(let e=0;e<i;e++)o.set(e,e,t[e]);return o;}static min(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);let n=t.rows,r=t.columns,i=new l(n,r);for(let o=0;o<n;o++)for(let n=0;n<r;n++)i.set(o,n,Math.min(t.get(o,n),e.get(o,n)));return i;}static max(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);let n=t.rows,r=t.columns,i=new this(n,r);for(let o=0;o<n;o++)for(let n=0;n<r;n++)i.set(o,n,Math.max(t.get(o,n),e.get(o,n)));return i;}static checkMatrix(t){return u.isMatrix(t)?t:new l(t);}static isMatrix(t){return null!=t&&"Matrix"===t.klass;}get size(){return this.rows*this.columns;}apply(t){if("function"!=typeof t)throw TypeError("callback must be a function");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.call(this,e,n);return this;}to1DArray(){let t=[];for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.push(this.get(e,n));return t;}to2DArray(){let t=[];for(let e=0;e<this.rows;e++){t.push([]);for(let n=0;n<this.columns;n++)t[e].push(this.get(e,n));}return t;}toJSON(){return this.to2DArray();}isRowVector(){return 1===this.rows;}isColumnVector(){return 1===this.columns;}isVector(){return 1===this.rows||1===this.columns;}isSquare(){return this.rows===this.columns;}isSymmetric(){if(this.isSquare()){for(let t=0;t<this.rows;t++)for(let e=0;e<=t;e++)if(this.get(t,e)!==this.get(e,t))return!1;return!0;}return!1;}isEchelonForm(){let t=0,e=0,n=-1,r=!0,i=!1;for(;t<this.rows&&r;){for(e=0,i=!1;e<this.columns&&!1===i;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(i=!0,n=e):(r=!1,i=!0);t++;}return r;}isReducedEchelonForm(){let t=0,e=0,n=-1,r=!0,i=!1;for(;t<this.rows&&r;){for(e=0,i=!1;e<this.columns&&!1===i;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(i=!0,n=e):(r=!1,i=!0);for(let n=e+1;n<this.rows;n++)0!==this.get(t,n)&&(r=!1);t++;}return r;}echelonForm(){let t=this.clone(),e=0,n=0;for(;e<t.rows&&n<t.columns;){let r=e;for(let i=e;i<t.rows;i++)t.get(i,n)>t.get(r,n)&&(r=i);if(0===t.get(r,n))n++;else{t.swapRows(e,r);let i=t.get(e,n);for(let r=n;r<t.columns;r++)t.set(e,r,t.get(e,r)/i);for(let r=e+1;r<t.rows;r++){let i=t.get(r,n)/t.get(e,n);t.set(r,n,0);for(let o=n+1;o<t.columns;o++)t.set(r,o,t.get(r,o)-t.get(e,o)*i);}e++,n++;}}return t;}reducedEchelonForm(){let t=this.echelonForm(),e=t.columns,n=t.rows,r=n-1;for(;r>=0;)if(0===t.maxRow(r))r--;else{let i=0,o=!1;for(;i<n&&!1===o;)1===t.get(r,i)?o=!0:i++;for(let n=0;n<r;n++){let o=t.get(n,i);for(let a=i;a<e;a++){let e=t.get(n,a)-o*t.get(r,a);t.set(n,a,e);}}r--;}return t;}set(){throw Error("set method is unimplemented");}get(){throw Error("get method is unimplemented");}repeat(t={}){if("object"!=typeof t)throw TypeError("options must be an object");let{rows:e=1,columns:n=1}=t;if(!Number.isInteger(e)||e<=0)throw TypeError("rows must be a positive integer");if(!Number.isInteger(n)||n<=0)throw TypeError("columns must be a positive integer");let r=new l(this.rows*e,this.columns*n);for(let t=0;t<e;t++)for(let e=0;e<n;e++)r.setSubMatrix(this,this.rows*t,this.columns*e);return r;}fill(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,t);return this;}neg(){return this.mulS(-1);}getRow(t){(0,s.checkRowIndex)(this,t);let e=[];for(let n=0;n<this.columns;n++)e.push(this.get(t,n));return e;}getRowVector(t){return l.rowVector(this.getRow(t));}setRow(t,e){(0,s.checkRowIndex)(this,t),e=(0,s.checkRowVector)(this,e);for(let n=0;n<this.columns;n++)this.set(t,n,e[n]);return this;}swapRows(t,e){(0,s.checkRowIndex)(this,t),(0,s.checkRowIndex)(this,e);for(let n=0;n<this.columns;n++){let r=this.get(t,n);this.set(t,n,this.get(e,n)),this.set(e,n,r);}return this;}getColumn(t){(0,s.checkColumnIndex)(this,t);let e=[];for(let n=0;n<this.rows;n++)e.push(this.get(n,t));return e;}getColumnVector(t){return l.columnVector(this.getColumn(t));}setColumn(t,e){(0,s.checkColumnIndex)(this,t),e=(0,s.checkColumnVector)(this,e);for(let n=0;n<this.rows;n++)this.set(n,t,e[n]);return this;}swapColumns(t,e){(0,s.checkColumnIndex)(this,t),(0,s.checkColumnIndex)(this,e);for(let n=0;n<this.rows;n++){let r=this.get(n,t);this.set(n,t,this.get(n,e)),this.set(n,e,r);}return this;}addRowVector(t){t=(0,s.checkRowVector)(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[n]);return this;}subRowVector(t){t=(0,s.checkRowVector)(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[n]);return this;}mulRowVector(t){t=(0,s.checkRowVector)(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[n]);return this;}divRowVector(t){t=(0,s.checkRowVector)(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[n]);return this;}addColumnVector(t){t=(0,s.checkColumnVector)(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[e]);return this;}subColumnVector(t){t=(0,s.checkColumnVector)(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[e]);return this;}mulColumnVector(t){t=(0,s.checkColumnVector)(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[e]);return this;}divColumnVector(t){t=(0,s.checkColumnVector)(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[e]);return this;}mulRow(t,e){(0,s.checkRowIndex)(this,t);for(let n=0;n<this.columns;n++)this.set(t,n,this.get(t,n)*e);return this;}mulColumn(t,e){(0,s.checkColumnIndex)(this,t);for(let n=0;n<this.rows;n++)this.set(n,t,this.get(n,t)*e);return this;}max(){let t=this.get(0,0);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.get(e,n)>t&&(t=this.get(e,n));return t;}maxIndex(){let t=this.get(0,0),e=[0,0];for(let n=0;n<this.rows;n++)for(let r=0;r<this.columns;r++)this.get(n,r)>t&&(t=this.get(n,r),e[0]=n,e[1]=r);return e;}min(){let t=this.get(0,0);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.get(e,n)<t&&(t=this.get(e,n));return t;}minIndex(){let t=this.get(0,0),e=[0,0];for(let n=0;n<this.rows;n++)for(let r=0;r<this.columns;r++)this.get(n,r)<t&&(t=this.get(n,r),e[0]=n,e[1]=r);return e;}maxRow(t){(0,s.checkRowIndex)(this,t);let e=this.get(t,0);for(let n=1;n<this.columns;n++)this.get(t,n)>e&&(e=this.get(t,n));return e;}maxRowIndex(t){(0,s.checkRowIndex)(this,t);let e=this.get(t,0),n=[t,0];for(let r=1;r<this.columns;r++)this.get(t,r)>e&&(e=this.get(t,r),n[1]=r);return n;}minRow(t){(0,s.checkRowIndex)(this,t);let e=this.get(t,0);for(let n=1;n<this.columns;n++)this.get(t,n)<e&&(e=this.get(t,n));return e;}minRowIndex(t){(0,s.checkRowIndex)(this,t);let e=this.get(t,0),n=[t,0];for(let r=1;r<this.columns;r++)this.get(t,r)<e&&(e=this.get(t,r),n[1]=r);return n;}maxColumn(t){(0,s.checkColumnIndex)(this,t);let e=this.get(0,t);for(let n=1;n<this.rows;n++)this.get(n,t)>e&&(e=this.get(n,t));return e;}maxColumnIndex(t){(0,s.checkColumnIndex)(this,t);let e=this.get(0,t),n=[0,t];for(let r=1;r<this.rows;r++)this.get(r,t)>e&&(e=this.get(r,t),n[0]=r);return n;}minColumn(t){(0,s.checkColumnIndex)(this,t);let e=this.get(0,t);for(let n=1;n<this.rows;n++)this.get(n,t)<e&&(e=this.get(n,t));return e;}minColumnIndex(t){(0,s.checkColumnIndex)(this,t);let e=this.get(0,t),n=[0,t];for(let r=1;r<this.rows;r++)this.get(r,t)<e&&(e=this.get(r,t),n[0]=r);return n;}diag(){let t=Math.min(this.rows,this.columns),e=[];for(let n=0;n<t;n++)e.push(this.get(n,n));return e;}norm(t="frobenius"){let e=0;if("max"===t)return this.max();if("frobenius"===t){for(let t=0;t<this.rows;t++)for(let n=0;n<this.columns;n++)e+=this.get(t,n)*this.get(t,n);return Math.sqrt(e);}throw RangeError(`unknown norm type: ${t}`);}cumulativeSum(){let t=0;for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t+=this.get(e,n),this.set(e,n,t);return this;}dot(t){u.isMatrix(t)&&(t=t.to1DArray());let e=this.to1DArray();if(e.length!==t.length)throw RangeError("vectors do not have the same size");let n=0;for(let r=0;r<e.length;r++)n+=e[r]*t[r];return n;}mmul(t){t=l.checkMatrix(t);let e=this.rows,n=this.columns,r=t.columns,i=new l(e,r),o=new Float64Array(n);for(let a=0;a<r;a++){for(let e=0;e<n;e++)o[e]=t.get(e,a);for(let t=0;t<e;t++){let e=0;for(let r=0;r<n;r++)e+=this.get(t,r)*o[r];i.set(t,a,e);}}return i;}strassen2x2(t){t=l.checkMatrix(t);let e=new l(2,2),n=this.get(0,0),r=t.get(0,0),i=this.get(0,1),o=t.get(0,1),a=this.get(1,0),s=t.get(1,0),u=this.get(1,1),c=t.get(1,1),f=(n+u)*(r+c),d=(a+u)*r,h=n*(o-c),g=u*(s-r),p=(n+i)*c;return e.set(0,0,f+g-p+(i-u)*(s+c)),e.set(0,1,h+p),e.set(1,0,d+g),e.set(1,1,f-d+h+(a-n)*(r+o)),e;}strassen3x3(t){t=l.checkMatrix(t);let e=new l(3,3),n=this.get(0,0),r=this.get(0,1),i=this.get(0,2),o=this.get(1,0),a=this.get(1,1),s=this.get(1,2),u=this.get(2,0),c=this.get(2,1),f=this.get(2,2),d=t.get(0,0),h=t.get(0,1),g=t.get(0,2),p=t.get(1,0),v=t.get(1,1),m=t.get(1,2),y=t.get(2,0),b=t.get(2,1),x=t.get(2,2),_=(n-o)*(-h+v),E=(-n+o+a)*(d-h+v),w=(o+a)*(-d+h),M=n*d,C=(-n+u+c)*(d-g+m),A=(-n+u)*(g-m),S=(u+c)*(-d+g),D=(-i+c+f)*(v+y-b),I=(i-f)*(v-b),T=i*y,k=(c+f)*(-y+b),F=(-i+a+s)*(m+y-x),N=(i-s)*(m-x),O=(a+s)*(-y+x);return e.set(0,0,M+T+r*p),e.set(0,1,(n+r+i-o-a-c-f)*v+E+w+M+D+T+k),e.set(0,2,M+C+S+(n+r+i-a-s-u-c)*m+T+F+O),e.set(1,0,_+a*(-d+h+p-v-m-y+x)+E+M+T+F+N),e.set(1,1,_+E+w+M+s*b),e.set(1,2,T+F+N+O+o*g),e.set(2,0,M+C+A+c*(-d+g+p-v-m-y+b)+D+I+T),e.set(2,1,D+I+T+k+u*h),e.set(2,2,M+C+A+S+f*x),e;}mmulStrassen(t){t=l.checkMatrix(t);let e=this.clone(),n=e.rows,r=e.columns,i=t.rows,o=t.columns;function a(t,e,n){let r=t.rows,i=t.columns;return r===e&&i===n?t:u.zeros(e,n).setSubMatrix(t,0,0);}r!==i&&console.warn(`Multiplying ${n} x ${r} and ${i} x ${o} matrix: dimensions do not match.`);let s=Math.max(n,i),c=Math.max(r,o);return function t(e,n,r,i){if(r<=512||i<=512)return e.mmul(n);r%2==1&&i%2==1?(e=a(e,r+1,i+1),n=a(n,r+1,i+1)):r%2==1?(e=a(e,r+1,i),n=a(n,r+1,i)):i%2==1&&(e=a(e,r,i+1),n=a(n,r,i+1));let o=parseInt(e.rows/2,10),s=parseInt(e.columns/2,10),c=e.subMatrix(0,o-1,0,s-1),l=n.subMatrix(0,o-1,0,s-1),f=e.subMatrix(0,o-1,s,e.columns-1),d=n.subMatrix(0,o-1,s,n.columns-1),h=e.subMatrix(o,e.rows-1,0,s-1),g=n.subMatrix(o,n.rows-1,0,s-1),p=e.subMatrix(o,e.rows-1,s,e.columns-1),v=n.subMatrix(o,n.rows-1,s,n.columns-1),m=t(u.add(c,p),u.add(l,v),o,s),y=t(u.add(h,p),l,o,s),b=t(c,u.sub(d,v),o,s),x=t(p,u.sub(g,l),o,s),_=t(u.add(c,f),v,o,s),E=t(u.sub(h,c),u.add(l,d),o,s),w=t(u.sub(f,p),u.add(g,v),o,s),M=u.add(m,x);M.sub(_),M.add(w);let C=u.add(b,_),A=u.add(y,x),S=u.sub(m,y);S.add(b),S.add(E);let D=u.zeros(2*M.rows,2*M.columns);return(D=(D=(D=(D=D.setSubMatrix(M,0,0)).setSubMatrix(C,M.rows,0)).setSubMatrix(A,0,M.columns)).setSubMatrix(S,M.rows,M.columns)).subMatrix(0,r-1,0,i-1);}(e=a(e,s,c),t=a(t,s,c),s,c);}scaleRows(t={}){if("object"!=typeof t)throw TypeError("options must be an object");let{min:e=0,max:n=1}=t;if(!Number.isFinite(e))throw TypeError("min must be a number");if(!Number.isFinite(n))throw TypeError("max must be a number");if(e>=n)throw RangeError("min must be smaller than max");let i=new l(this.rows,this.columns);for(let t=0;t<this.rows;t++){let o=this.getRow(t);(0,r.default)(o,{min:e,max:n,output:o}),i.setRow(t,o);}return i;}scaleColumns(t={}){if("object"!=typeof t)throw TypeError("options must be an object");let{min:e=0,max:n=1}=t;if(!Number.isFinite(e))throw TypeError("min must be a number");if(!Number.isFinite(n))throw TypeError("max must be a number");if(e>=n)throw RangeError("min must be smaller than max");let i=new l(this.rows,this.columns);for(let t=0;t<this.columns;t++){let o=this.getColumn(t);(0,r.default)(o,{min:e,max:n,output:o}),i.setColumn(t,o);}return i;}flipRows(){let t=Math.ceil(this.columns/2);for(let e=0;e<this.rows;e++)for(let n=0;n<t;n++){let t=this.get(e,n),r=this.get(e,this.columns-1-n);this.set(e,n,r),this.set(e,this.columns-1-n,t);}return this;}flipColumns(){let t=Math.ceil(this.rows/2);for(let e=0;e<this.columns;e++)for(let n=0;n<t;n++){let t=this.get(n,e),r=this.get(this.rows-1-n,e);this.set(n,e,r),this.set(this.rows-1-n,e,t);}return this;}kroneckerProduct(t){t=l.checkMatrix(t);let e=this.rows,n=this.columns,r=t.rows,i=t.columns,o=new l(e*r,n*i);for(let a=0;a<e;a++)for(let e=0;e<n;e++)for(let n=0;n<r;n++)for(let s=0;s<i;s++)o.set(r*a+n,i*e+s,this.get(a,e)*t.get(n,s));return o;}transpose(){let t=new l(this.columns,this.rows);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.set(n,e,this.get(e,n));return t;}sortRows(t=c){for(let e=0;e<this.rows;e++)this.setRow(e,this.getRow(e).sort(t));return this;}sortColumns(t=c){for(let e=0;e<this.columns;e++)this.setColumn(e,this.getColumn(e).sort(t));return this;}subMatrix(t,e,n,r){(0,s.checkRange)(this,t,e,n,r);let i=new l(e-t+1,r-n+1);for(let o=t;o<=e;o++)for(let e=n;e<=r;e++)i.set(o-t,e-n,this.get(o,e));return i;}subMatrixRow(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.columns-1),e>n||e<0||e>=this.columns||n<0||n>=this.columns)throw RangeError("Argument out of range");let r=new l(t.length,n-e+1);for(let i=0;i<t.length;i++)for(let o=e;o<=n;o++){if(t[i]<0||t[i]>=this.rows)throw RangeError(`Row index out of range: ${t[i]}`);r.set(i,o-e,this.get(t[i],o));}return r;}subMatrixColumn(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.rows-1),e>n||e<0||e>=this.rows||n<0||n>=this.rows)throw RangeError("Argument out of range");let r=new l(n-e+1,t.length);for(let i=0;i<t.length;i++)for(let o=e;o<=n;o++){if(t[i]<0||t[i]>=this.columns)throw RangeError(`Column index out of range: ${t[i]}`);r.set(o-e,i,this.get(o,t[i]));}return r;}setSubMatrix(t,e,n){let r=e+(t=l.checkMatrix(t)).rows-1,i=n+t.columns-1;(0,s.checkRange)(this,e,r,n,i);for(let r=0;r<t.rows;r++)for(let i=0;i<t.columns;i++)this.set(e+r,n+i,t.get(r,i));return this;}selection(t,e){let n=(0,s.checkIndices)(this,t,e),r=new l(t.length,e.length);for(let t=0;t<n.row.length;t++){let e=n.row[t];for(let i=0;i<n.column.length;i++){let o=n.column[i];r.set(t,i,this.get(e,o));}}return r;}trace(){let t=Math.min(this.rows,this.columns),e=0;for(let n=0;n<t;n++)e+=this.get(n,n);return e;}clone(){let t=new l(this.rows,this.columns);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.set(e,n,this.get(e,n));return t;}sum(t){switch(t){case"row":return(0,a.sumByRow)(this);case"column":return(0,a.sumByColumn)(this);case void 0:return(0,a.sumAll)(this);default:throw Error(`invalid option: ${t}`);}}product(t){switch(t){case"row":return(0,a.productByRow)(this);case"column":return(0,a.productByColumn)(this);case void 0:return(0,a.productAll)(this);default:throw Error(`invalid option: ${t}`);}}mean(t){let e=this.sum(t);switch(t){case"row":for(let t=0;t<this.rows;t++)e[t]/=this.columns;return e;case"column":for(let t=0;t<this.columns;t++)e[t]/=this.rows;return e;case void 0:return e/this.size;default:throw Error(`invalid option: ${t}`);}}variance(t,e={}){if("object"==typeof t&&(e=t,t=void 0),"object"!=typeof e)throw TypeError("options must be an object");let{unbiased:n=!0,mean:r=this.mean(t)}=e;if("boolean"!=typeof n)throw TypeError("unbiased must be a boolean");switch(t){case"row":if(!Array.isArray(r))throw TypeError("mean must be an array");return(0,a.varianceByRow)(this,n,r);case"column":if(!Array.isArray(r))throw TypeError("mean must be an array");return(0,a.varianceByColumn)(this,n,r);case void 0:if("number"!=typeof r)throw TypeError("mean must be a number");return(0,a.varianceAll)(this,n,r);default:throw Error(`invalid option: ${t}`);}}standardDeviation(t,e){"object"==typeof t&&(e=t,t=void 0);let n=this.variance(t,e);if(void 0===t)return Math.sqrt(n);for(let t=0;t<n.length;t++)n[t]=Math.sqrt(n[t]);return n;}center(t,e={}){if("object"==typeof t&&(e=t,t=void 0),"object"!=typeof e)throw TypeError("options must be an object");let{center:n=this.mean(t)}=e;switch(t){case"row":if(!Array.isArray(n))throw TypeError("center must be an array");return(0,a.centerByRow)(this,n),this;case"column":if(!Array.isArray(n))throw TypeError("center must be an array");return(0,a.centerByColumn)(this,n),this;case void 0:if("number"!=typeof n)throw TypeError("center must be a number");return(0,a.centerAll)(this,n),this;default:throw Error(`invalid option: ${t}`);}}scale(t,e={}){if("object"==typeof t&&(e=t,t=void 0),"object"!=typeof e)throw TypeError("options must be an object");let n=e.scale;switch(t){case"row":if(void 0===n)n=(0,a.getScaleByRow)(this);else if(!Array.isArray(n))throw TypeError("scale must be an array");return(0,a.scaleByRow)(this,n),this;case"column":if(void 0===n)n=(0,a.getScaleByColumn)(this);else if(!Array.isArray(n))throw TypeError("scale must be an array");return(0,a.scaleByColumn)(this,n),this;case void 0:if(void 0===n)n=(0,a.getScaleAll)(this);else if("number"!=typeof n)throw TypeError("scale must be a number");return(0,a.scaleAll)(this,n),this;default:throw Error(`invalid option: ${t}`);}}toString(t){return(0,i.inspectMatrixWithOptions)(this,t);}}function c(t,e){return t-e;}u.prototype.klass="Matrix","undefined"!=typeof Symbol&&(u.prototype[Symbol.for("nodejs.util.inspect.custom")]=i.inspectMatrix),u.random=u.rand,u.randomInt=u.randInt,u.diagonal=u.diag,u.prototype.diagonal=u.prototype.diag,u.identity=u.eye,u.prototype.negate=u.prototype.neg,u.prototype.tensorProduct=u.prototype.kroneckerProduct;class l extends u{constructor(t,e){if(super(),l.isMatrix(t))return t.clone();if(Number.isInteger(t)&&t>0){if(this.data=[],Number.isInteger(e)&&e>0)for(let n=0;n<t;n++)this.data.push(new Float64Array(e));else throw TypeError("nColumns must be a positive integer");}else if(Array.isArray(t)){let n=t;if(t=n.length,"number"!=typeof(e=n[0].length)||0===e)throw TypeError("Data must be a 2D array with at least one element");this.data=[];for(let r=0;r<t;r++){if(n[r].length!==e)throw RangeError("Inconsistent array dimensions");this.data.push(Float64Array.from(n[r]));}}else throw TypeError("First argument must be a positive number or an array");return this.rows=t,this.columns=e,this;}set(t,e,n){return this.data[t][e]=n,this;}get(t,e){return this.data[t][e];}removeRow(t){if((0,s.checkRowIndex)(this,t),1===this.rows)throw RangeError("A matrix cannot have less than one row");return this.data.splice(t,1),this.rows-=1,this;}addRow(t,e){return void 0===e&&(e=t,t=this.rows),(0,s.checkRowIndex)(this,t,!0),e=Float64Array.from((0,s.checkRowVector)(this,e,!0)),this.data.splice(t,0,e),this.rows+=1,this;}removeColumn(t){if((0,s.checkColumnIndex)(this,t),1===this.columns)throw RangeError("A matrix cannot have less than one column");for(let e=0;e<this.rows;e++){let n=new Float64Array(this.columns-1);for(let r=0;r<t;r++)n[r]=this.data[e][r];for(let r=t+1;r<this.columns;r++)n[r-1]=this.data[e][r];this.data[e]=n;}return this.columns-=1,this;}addColumn(t,e){void 0===e&&(e=t,t=this.columns),(0,s.checkColumnIndex)(this,t,!0),e=(0,s.checkColumnVector)(this,e);for(let n=0;n<this.rows;n++){let r=new Float64Array(this.columns+1),i=0;for(;i<t;i++)r[i]=this.data[n][i];for(r[i++]=e[n];i<this.columns+1;i++)r[i]=this.data[n][i-1];this.data[n]=r;}return this.columns+=1,this;}}(0,o.installMathOperations)(u,l);},"04ab99e3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Component:function(){return c;},ComponentManager:function(){return l;}});var r=n("777fffbe"),i=r._(n("c3d456ca")),o=r._(n("78294f9e")),a=r._(n("21422ae0")),s=r._(n("611917f7")),u=n("01733cb2"),c=(0,o.default)(function t(e){(0,a.default)(this,t);}),l=function(){var t;function e(t){(0,a.default)(this,e),this.clazz=void 0,this.components=[],this.entities=[],this.lookup={},this.clazz=t;}return(0,o.default)(e,[{key:"clear",value:function(){this.components=[],this.entities=[],this.lookup={};}},{key:"contains",value:function(t){return this.lookup[t]>-1;}},{key:"create",value:function(t,e){this.lookup[t]=this.components.length;var n=new this.clazz(e||{});return this.components.push(n),this.entities.push(t),n;}},{key:"remove",value:function(t){var e=this.lookup[t];e>-1&&e<this.components.length-1&&(this.components[e]=this.components[this.components.length-1],this.entities[e]=this.entities[this.entities.length-1],this.lookup[this.entities[e]]=e),this.components.pop(),this.entities.pop(),delete this.lookup[t];}},{key:"removeKeepSorted",value:function(t){var e=this.lookup[t];if(e>-1){var n=this.entities[e];if(e<this.components.length-1){for(var r=e+1;r<this.components.length;++r)this.components[r-1]=this.components[r];for(var i=e+1;i<this.entities.length;++i)this.entities[i-1]=this.entities[i],this.lookup[this.entities[i-1]]=i-1;}this.components.pop(),this.entities.pop(),delete this.lookup[n];}}},{key:"moveItem",value:function(t,e){if(t!==e){for(var n=this.components[t],r=this.entities[t],i=t<e?1:-1,o=t;o!==e;o+=i){var a=o+i;this.components[o]=this.components[a],this.entities[o]=this.entities[a],this.lookup[this.entities[o]]=o;}this.components[e]=n,this.entities[e]=r,this.lookup[r]=e;}}},{key:"getEntity",value:function(t){return this.entities[t];}},{key:"getComponent",value:function(t){return this.components[t];}},{key:"getComponentByEntity",value:function(t){var e=this.lookup[t];return e>-1?this.components[e]:null;}},{key:"getCount",value:function(){return this.components.length;}},{key:"getEntityByComponentIndex",value:function(t){for(var e=0,n=Object.keys(this.lookup);e<n.length;e++){var r=Number(n[e]);if(this.lookup[r]===t)return r;}return u.EMPTY;}},{key:"find",value:function(t){for(var e=0;e<this.getCount();e++){var n=this.getComponent(e);if(t(n,e))return n;}return null;}},{key:"findIndex",value:function(t){for(var e=0;e<this.getCount();e++)if(t(this.getComponent(e),e))return e;return -1;}},{key:"forEach",value:function(t){for(var e=0,n=Object.keys(this.lookup);e<n.length;e++){var r=Number(n[e]),i=this.lookup[r];t(r,this.getComponent(i));}}},{key:"forEachAsync",value:(t=(0,i.default)(s.default.mark(function t(e){var n,r,i,o;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=0,r=Object.keys(this.lookup);case 1:if(!(n<r.length)){t.next=10;break;}return i=Number(r[n]),o=this.lookup[i],t.next=7,e(i,this.getComponent(o));case 7:n++,t.next=1;break;case 10:case"end":return t.stop();}},t,this);})),function(e){return t.apply(this,arguments);})},{key:"map",value:function(t){for(var e=[],n=0,r=Object.keys(this.lookup);n<r.length;n++){var i=Number(r[n]),o=this.lookup[i];e.push(t(i,this.getComponent(o)));}return e;}}]),e;}();},"04bb6a31":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{add:function(){return f;},angle:function(){return z;},bezier:function(){return F;},ceil:function(){return p;},clone:function(){return a;},copy:function(){return c;},create:function(){return o;},cross:function(){return I;},dist:function(){return q;},distance:function(){return E;},div:function(){return V;},divide:function(){return g;},dot:function(){return D;},equals:function(){return U;},exactEquals:function(){return X;},floor:function(){return v;},forEach:function(){return Q;},fromValues:function(){return u;},hermite:function(){return k;},inverse:function(){return A;},len:function(){return J;},length:function(){return s;},lerp:function(){return T;},max:function(){return y;},min:function(){return m;},mul:function(){return W;},multiply:function(){return h;},negate:function(){return C;},normalize:function(){return S;},random:function(){return N;},rotateX:function(){return L;},rotateY:function(){return j;},rotateZ:function(){return R;},round:function(){return b;},scale:function(){return x;},scaleAndAdd:function(){return _;},set:function(){return l;},sqrDist:function(){return Z;},sqrLen:function(){return K;},squaredDistance:function(){return w;},squaredLength:function(){return M;},str:function(){return Y;},sub:function(){return H;},subtract:function(){return d;},transformMat3:function(){return B;},transformMat4:function(){return O;},transformQuat:function(){return P;},zero:function(){return G;}});var r,i=n("852bbaa9")._(n("e89ef36f"));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 a(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e;}function s(t){return Math.hypot(t[0],t[1],t[2]);}function u(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r;}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t;}function l(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t;}function f(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 h(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 p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t;}function v(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t;}function m(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 y(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 x(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 E(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2]);}function w(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 M(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r;}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t;}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t;}function S(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t;}function D(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],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t;}function T(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t;}function k(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,u=a*(o-2)+o,c=a*(o-1),l=a*(3-2*o);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*l,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*l,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*l,t;}function F(t,e,n,r,i,o){var a=1-o,s=a*a,u=o*o,c=s*a,l=3*o*s,f=3*u*a,d=u*o;return t[0]=e[0]*c+n[0]*l+r[0]*f+i[0]*d,t[1]=e[1]*c+n[1]*l+r[1]*f+i[1]*d,t[2]=e[2]*c+n[2]*l+r[2]*f+i[2]*d,t;}function N(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,o=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=r*e,t;}function O(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t;}function B(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t;}function P(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],c=e[2],l=i*c-o*u,f=o*s-r*c,d=r*u-i*s,h=i*d-o*f,g=o*l-r*d,p=r*f-i*l,v=2*a;return l*=v,f*=v,d*=v,h*=2,g*=2,p*=2,t[0]=s+l+h,t[1]=u+f+g,t[2]=c+d+p,t;}function L(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t;}function j(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t;}function R(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t;}function z(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s);return Math.acos(Math.min(Math.max(u&&D(t,e)/u,-1),1));}function G(t){return t[0]=0,t[1]=0,t[2]=0,t;}function Y(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 U(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],u=e[2];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-u)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(u));}var H=d,W=h,V=g,q=E,Z=w,J=s,K=M,Q=(r=o(),function(t,e,n,i,o,a){var s,u;for(e||(e=3),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],o(r,r,a),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2];return t;});},"04db7c9f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return u;},isSamePoint:function(){return s;}});var r=n("22b52967");function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]);}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1;}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e));}function s(t,e){return t[0]===e[0]&&t[1]===e[1];}function u(t,e){var n=e[1],i=e[2],u=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),c=e[4],l=e[5],f=t[0],d=t[1],h=e[6],g=e[7],p=Math.cos(u)*(f-h)/2+Math.sin(u)*(d-g)/2,v=-1*Math.sin(u)*(f-h)/2+Math.cos(u)*(d-g)/2,m=p*p/(n*n)+v*v/(i*i);m>1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var y=n*n*(v*v)+i*i*(p*p),b=y?Math.sqrt((n*n*(i*i)-y)/y):1;c===l&&(b*=-1),isNaN(b)&&(b=0);var x=i?b*n*v/i:0,_=n?-(b*i)*p/n:0,E=(f+h)/2+Math.cos(u)*x-Math.sin(u)*_,w=(d+g)/2+Math.sin(u)*x+Math.cos(u)*_,M=[(p-x)/n,(v-_)/i],C=[(-1*p-x)/n,(-1*v-_)/i],A=a([1,0],M),S=a(M,C);return -1>=o(M,C)&&(S=Math.PI),o(M,C)>=1&&(S=0),0===l&&S>0&&(S-=2*Math.PI),1===l&&S<0&&(S+=2*Math.PI),{cx:E,cy:w,rx:s(t,[h,g])?0:n,ry:s(t,[h,g])?0:i,startAngle:A,endAngle:A+S,xRotation:u,arcFlag:c,sweepFlag:l};}},"04e63e65":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return g;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("19d80747"),a=r._(n("79d5413c")),s=n("9c86e52a"),u=i._(n("5b220c3d"));function c(t,e){return function(t){if(Array.isArray(t))return t;}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1;}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t;}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return;}finally{if(c)throw i;}}return s;}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e);}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}();}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r;}var f={title:function(){return u.default.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},u.default.createElement("path",{d:"M5.333 10.667h21.334c.889 0 1.333.444 1.333 1.333s-.444 1.333-1.333 1.333H5.333C4.444 13.333 4 12.89 4 12s.444-1.333 1.333-1.333Z"}),u.default.createElement("path",{d:"M13.207 2.667h.126a1.206 1.206 0 0 1 1.2 1.326l-2.413 24.14a1.333 1.333 0 0 1-1.327 1.2h-.126a1.206 1.206 0 0 1-1.2-1.326l2.413-24.14c.068-.682.642-1.2 1.327-1.2Zm8 0h.126a1.206 1.206 0 0 1 1.2 1.326l-2.413 24.14a1.333 1.333 0 0 1-1.327 1.2h-.126a1.206 1.206 0 0 1-1.2-1.326l2.413-24.14c.068-.682.642-1.2 1.327-1.2Z"}),u.default.createElement("path",{d:"M5.333 18.667h21.334c.889 0 1.333.444 1.333 1.333s-.444 1.333-1.333 1.333H5.333C4.444 21.333 4 20.89 4 20s.444-1.333 1.333-1.333Z"}));},page:function(){return u.default.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},u.default.createElement("path",{d:"M9.402 0h14.78L30 6.16V24.5c0 1.933-1.71 3.5-3.589 3.5H9.401C7.524 28 6 26.433 6 24.5v-21C6 1.567 7.523 0 9.402 0ZM23 2v4.183c0 .451.366.817.817.817H28l-5-5Zm3.333 24c.92 0 1.667-.768 1.667-1.714V8.857h-5c-.92 0-1.667-.767-1.667-1.714V2H9.667C8.747 2 8 2.768 8 3.714v20.572C8 25.232 8.746 26 9.667 26h16.666Z"}));},content:function(){return u.default.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},u.default.createElement("path",{d:"M6.12 14.589h6.628l1.52 4.004h2.485l-5.938-15.19H8.053L2.115 18.732H4.6l1.52-4.143ZM8.88 6.855c.139-.414.277-.828.415-1.38h.138c0 .138.138.414.414 1.104 0 .138.138.276.138.276 0 .138.829 2.072 2.21 5.938H6.672c1.519-3.866 2.21-5.8 2.21-5.938Zm8.148 2.348h12.705v1.933H17.029V9.203ZM2.115 20.665h27.619v1.933H2.114v-1.933Zm14.914-5.662h12.705v1.933H17.029v-1.933ZM2.115 26.327h27.619v1.933H2.114v-1.933ZM17.029 3.54h12.705v1.934H17.029V3.54Z"}));},demo:function(){return u.default.createElement("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},u.default.createElement("path",{d:"M28 6h-5a5 5 0 0 0-10 0H8a2 2 0 0 0-2 2v5a5 5 0 0 0 0 10v5a2 2 0 0 0 2 2h7v-2a3 3 0 0 1 6 0v2h7a2 2 0 0 0 2-2v-7h-2a3 3 0 0 1 0-6h2V8a2 2 0 0 0-2-2Zm-5 12a5 5 0 0 0 5 5v5h-5a5 5 0 0 0-10 0H8v-7H6a3 3 0 0 1 0-6h2V8h7V6a3 3 0 0 1 6 0v2h7v5a5 5 0 0 0-5 5Z"}));}},d=function(t){return u.default.createElement(u.default.Fragment,null,t.texts.map(function(t,e){return u.default.createElement(u.Fragment,{key:e},t.highlighted?u.default.createElement("mark",null,t.text):t.text);}));},h=function(t){var e=(0,u.useCallback)(function(){var e=0,n=[];return t.forEach(function(t){t.title&&n.push({type:"title",value:{title:t.title}}),t.hints.forEach(function(t){n.push({type:"hint",activeIndex:e++,value:t});});}),[n,e];},[t]),n=c((0,u.useState)(e),2),r=n[0],i=n[1];return(0,u.useEffect)(function(){i(e);},[t]),r;},g=function(t){var e=c(h(t.data),2),n=e[0],r=e[1],i=c((0,u.useState)(-1),2),l=i[0],g=i[1],p=(0,s.useLocation)().pathname,v=function(e){null===(n=t.onItemSelect)||void 0===n||n.call(t,e);var n,r=new URL(null==e?void 0:e.link,location.origin);(null==r?void 0:r.pathname)!==p||r.hash||setTimeout(function(){(0,a.default)(0,{maxDuration:300});},1);};(0,u.useEffect)(function(){var t=function(t){if("ArrowDown"===t.key)g((l+1)%r);else if("ArrowUp"===t.key)g((l+r-1)%r);else if("Enter"===t.key&&l>=0){var e=n.find(function(t){return"hint"===t.type&&t.activeIndex===l;}).value;s.history.push(e.link),null==v||v(e),document.activeElement.blur();}["Escape","Enter"].includes(t.key)&&g(-1);};return document.addEventListener("keydown",t),function(){return document.removeEventListener("keydown",t);};});var m=null;return m=t.loading?u.default.createElement("div",{className:"dumi-default-search-empty"},u.default.createElement(o.ReactComponent,null),u.default.createElement(s.FormattedMessage,{id:"search.loading"})):t.data.length?u.default.createElement("dl",null,n.map(function(t,e){return"title"===t.type?u.default.createElement("dt",{key:String(e)},t.value.title):u.default.createElement("dd",{key:String(e)},u.default.createElement(s.Link,{to:t.value.link,"data-active":l===t.activeIndex||void 0,onClick:function(){return null==v?void 0:v(t.value);}},u.default.createElement(f[t.value.type]),u.default.createElement("h4",null,u.default.createElement(d,{texts:t.value.highlightTitleTexts})),u.default.createElement("p",null,u.default.createElement(d,{texts:t.value.highlightTexts}))));})):u.default.createElement("div",{className:"dumi-default-search-empty"},u.default.createElement(o.ReactComponent,null),u.default.createElement(s.FormattedMessage,{id:"search.not.found"})),u.default.createElement("div",{className:"dumi-default-search-result",onMouseEnter:function(){return g(-1);},onMouseDownCapture:function(t){return t.preventDefault();},onMouseUpCapture:function(){document.activeElement.blur();}},m);};},"04fb271a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("4c6d310c"),i=n("168feef4"),o=n("22b52967");(0,i.registerNode)("star",{options:{size:60,style:{stroke:i.BaseGlobal.defaultNode.style.stroke,fill:i.BaseGlobal.defaultNode.style.fill,lineWidth:i.BaseGlobal.defaultNode.style.lineWidth},labelCfg:{style:{fill:i.BaseGlobal.nodeLabel.style.fill,fontSize:i.BaseGlobal.nodeLabel.style.fontSize,fontFamily:i.BaseGlobal.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:i.BaseGlobal.defaultNode.linkPoints.size,lineWidth:i.BaseGlobal.defaultNode.linkPoints.lineWidth,fill:i.BaseGlobal.defaultNode.linkPoints.fill,stroke:i.BaseGlobal.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,r.__assign)({},i.BaseGlobal.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,i=void 0===n?{}:n,o=this.getShapeStyle(t),a=e.addShape("path",{attrs:o,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=a;var s=i.width,u=i.height,c=i.show,l=i.text;return c&&(l?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,r.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,r.__assign)({x:-s/2,y:-u/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),a;},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,i=void 0===n?{}:n,o=i.top,a=i.left,s=i.right,u=i.leftBottom,c=i.rightBottom,l=i.size,f=i.r,d=(0,r.__rest)(i,["top","left","right","leftBottom","rightBottom","size","r"]),h=this.getSize(t)[0];if(s){var g=Math.cos(.1*Math.PI)*h,p=Math.sin(.1*Math.PI)*h;e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},d),{x:g,y:-p,r:l/2||f||5}),className:"link-point-right",name:"link-point-right"});}if(o){var g=Math.cos(.5*Math.PI)*h,p=Math.sin(.5*Math.PI)*h;e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},d),{x:g,y:-p,r:l/2||f||5}),className:"link-point-top",name:"link-point-top"});}if(a){var g=Math.cos(.9*Math.PI)*h,p=Math.sin(.9*Math.PI)*h;e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},d),{x:g,y:-p,r:l/2||f||5}),className:"link-point-left",name:"link-point-left"});}if(u){var g=Math.cos(1.3*Math.PI)*h,p=Math.sin(1.3*Math.PI)*h;e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},d),{x:g,y:-p,r:l/2||f||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"});}if(c){var g=Math.cos(1.7*Math.PI)*h,p=Math.sin(1.7*Math.PI)*h;e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},d),{x:g,y:-p,r:l/2||f||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"});}},getPath:function(t){var e=this.getSize(t)[0],n=t.innerR||3*e/8;return i.Util.getStarPath(e,n);},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},i=(0,o.mix)({},e,n),a=this.getPath(t);return(0,r.__assign)({path:a},i);},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,a=this.getPath(t),s={stroke:t.color,path:a},u=e.get("keyShape"),c=(0,o.mix)({},i,u.attr(),s);c=(0,o.mix)(c,t.style),this.updateShape(t,e,c,!0,n),this.updateLinkPoints(t,r);},updateLinkPoints:function(t,e){var n=this.getOptions({}).linkPoints,i=e.shapeMap["link-point-left"]||e.find(function(t){return"link-point-left"===t.get("className");}),a=e.shapeMap["link-point-right"]||e.find(function(t){return"link-point-right"===t.get("className");}),s=e.shapeMap["link-point-top"]||e.find(function(t){return"link-point-top"===t.get("className");}),u=e.shapeMap["link-point-left-bottom"]||e.find(function(t){return"link-point-left-bottom"===t.get("className");}),c=e.shapeMap["link-point-left-bottom"]||e.find(function(t){return"link-point-right-bottom"===t.get("className");}),l=n,f=i||a||s||u||c;f&&(l=f.attr());var d=(0,o.mix)({},l,t.linkPoints),h=d.fill,g=d.stroke,p=d.lineWidth,v=d.size/2;v||(v=d.r);var m=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},y=m.left,b=m.right,x=m.top,_=m.leftBottom,E=m.rightBottom,w=this.getSize(t)[0],M={r:v,fill:h,stroke:g,lineWidth:p},C=Math.cos(.1*Math.PI)*w,A=Math.sin(.1*Math.PI)*w;a?b||void 0===b?a.attr((0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A})):(a.remove(),delete e.shapeMap["link-point-right"]):b&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),C=Math.cos(.5*Math.PI)*w,A=Math.sin(.5*Math.PI)*w,s?x||void 0===x?s.attr((0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A})):(s.remove(),delete e.shapeMap["link-point-top"]):x&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),C=Math.cos(.9*Math.PI)*w,A=Math.sin(.9*Math.PI)*w,i?y||void 0===y?i.attr((0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A})):(i.remove(),delete e.shapeMap["link-point-left"]):y&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),C=Math.cos(1.3*Math.PI)*w,A=Math.sin(1.3*Math.PI)*w,u?_||void 0===_?u.attr((0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A})):(u.remove(),delete e.shapeMap["link-point-left-bottom"]):_&&(e.shapeMap["link-point-left-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),C=Math.cos(1.7*Math.PI)*w,A=Math.sin(1.7*Math.PI)*w,c?E||void 0===E?c.attr((0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A})):(c.remove(),delete e.shapeMap["link-point-right-bottom"]):E&&(e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},M),{x:C,y:-A}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}));}},"single-node");},"05185ca0":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("8b6af789")),a=function(t,e){if((0,i.default)(t)){for(var n,r=1/0,a=0;a<t.length;a++){var s=t[a],u=(0,o.default)(e)?e(s):s[e];u<r&&(n=s,r=u);}return n;}};},"05cb304c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("593a2957");},"05db3064":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{drawChildren:function(){return o;},refreshElement:function(){return a;}});var r=n("e704bc9f"),i=n("d5ffb871");function o(t,e){e.forEach(function(e){e.draw(t);});}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],u=t.get("el");if("remove"===e){if(t.get("isClipShape")){var c=u&&u.parentNode,l=c&&c.parentNode;c&&l&&l.removeChild(c);}else u&&u.parentNode&&u.parentNode.removeChild(u);}else if("show"===e)u.setAttribute("visibility","visible");else if("hide"===e)u.setAttribute("visibility","hidden");else if("zIndex"===e)(0,i.moveTo)(u,s.indexOf(t));else if("sort"===e){var f=t.get("children");f&&f.length&&(0,i.sortDom)(t,function(t,e){return f.indexOf(t)-f.indexOf(e)?1:0;});}else"clear"===e?u&&(u.innerHTML=""):"matrix"===e?(0,r.setTransform)(t):"clip"===e?(0,r.setClip)(t,o):"attr"===e||"add"===e&&t.draw(o);}}},"0677a95b":function(t,e,n){"use strict";var r,i;n.d(e,"__esModule",{value:!0}),n.d(e,"GraphEnum",{enumerable:!0,get:function(){return r;}}),(i=r||(r={})).DEFAULT_EDGE_NAME="\0",i.GRAPH_NODE="\0",i.EDGE_KEY_DELIM="\x01";},"067a64d8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{createDOM:function(){return r.createDOM;},modifyCSS:function(){return i.modifyCSS;}});var r=n("fb4f4acf"),i=n("bb819369");},"07041b9a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{findAllPath:function(){return a;},findShortestPath:function(){return o;}});var r=n("777fffbe")._(n("721bd00a")),i=n("f29fe526"),o=function(t,e,n,i,o){var a=(0,r.default)(t,e,i,o),s=a.length,u=a.path,c=a.allPath;return{length:s[n],path:u[n],allPath:c[n]};},a=function(t,e,n,r){if(e===n)return[[e]];var o,a=t.edges,s=void 0===a?[]:a,u=[e],c=((o={})[e]=!0,o),l=[],f=[],d=r?(0,i.getNeighbors)(e,s,"target"):(0,i.getNeighbors)(e,s);for(l.push(d);u.length>0&&l.length>0;){var h=l[l.length-1];if(h.length){var g=h.shift();g&&(u.push(g),c[g]=!0,d=r?(0,i.getNeighbors)(g,s,"target"):(0,i.getNeighbors)(g,s),l.push(d.filter(function(t){return!c[t];})));}else{var p=u.pop();c[p]=!1,l.pop();continue;}if(u[u.length-1]===n){var v=u.map(function(t){return t;});f.push(v);var p=u.pop();c[p]=!1,l.pop();}}return f;};},"071f0c13":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return null==t;};},"07aa4744":function(t,e,n){"use strict";function r(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;}n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return r;},extend:function(){return i;}});},"07e5147a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=Array.prototype,i=r.splice,o=r.indexOf,a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var a=e[r],s=-1;(s=o.call(t,a))>-1;)i.call(t,s,1);return t;};},"08073ef3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r,i=n("777fffbe"),o=n("22b52967"),a=i._(n("b208d868")),s=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},c={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:.1,fill:"#ccc"},l=function(t){function e(e){return t.call(this,e)||this;}return s(e,t),e.prototype.getDefaultCfgs=function(){return{trigger:"mousemove",d:1.5,r:300,delegateStyle:(0,o.clone)(c),showLabel:!1,maxD:5,minD:0,scaleRBy:"unset",scaleDBy:"unset",showDPercent:!0};},e.prototype.getEvents=function(){var t;switch(this.get("trigger")){case"click":t={click:"magnify"};break;case"drag":t={click:"createDelegate"};break;default:t={mousemove:"magnify"};}return t;},e.prototype.init=function(){var t=this.get("r");this.set("cachedMagnifiedModels",[]),this.set("cachedOriginPositions",{}),this.set("r2",t*t);var e=this.get("d");this.set("molecularParam",(e+1)*t);},e.prototype.createDelegate=function(t){var e=this,n=this,r=n.get("delegate");(!r||r.destroyed)&&(n.magnify(t),(r=n.get("delegate")).on("dragstart",function(t){n.set("delegateCenterDiff",{x:r.attr("x")-t.x,y:r.attr("y")-t.y});}),r.on("drag",function(t){n.magnify(t);}),"wheel"===this.get("scaleDBy")&&r.on("mousewheel",function(t){e.scaleDByWheel(t);}),"wheel"===this.get("scaleRBy")&&r.on("mousewheel",function(t){n.scaleRByWheel(t);}));},e.prototype.scaleRByWheel=function(t){var e;if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var n=this.get("graph"),r=this.get("delegate"),i=(r?{x:r.attr("x"),y:r.attr("y")}:void 0)||n.getPointByClient(t.clientX,t.clientY);e=t.originalEvent.wheelDelta<0?.95:1/.95;var o=this.get("maxR"),a=this.get("minR"),s=this.get("r");(s>(o||n.get("height"))&&e>1||s<(a||.05*n.get("height"))&&e<1)&&(e=1),s*=e,this.set("r",s),this.set("r2",s*s);var u=this.get("d");this.set("molecularParam",(u+1)*s),this.set("delegateCenterDiff",void 0),this.magnify(t,i);}},e.prototype.scaleRByDrag=function(t){var e;if(t){var n=this.get("dragPrePos"),r=this.get("graph"),i=r.getPointByClient(t.clientX,t.clientY);e=t.x-n.x<0?.95:1/.95;var o=this.get("maxR"),a=this.get("minR"),s=this.get("r");(s>(o||r.get("height"))&&e>1||s<(a||.05*r.get("height"))&&e<1)&&(e=1),s*=e,this.set("r",s),this.set("r2",s*s);var u=this.get("d");this.set("molecularParam",(u+1)*s),this.magnify(t,i),this.set("dragPrePos",{x:t.x,y:t.y});}},e.prototype.scaleDByWheel=function(t){if(t||t.originalEvent){t.preventDefault&&t.preventDefault();var e=0;e=t.originalEvent.wheelDelta<0?-.1:.1;var n=this.get("d")+e,r=this.get("maxD"),i=this.get("minD");if(n<r&&n>i){this.set("d",n);var o=this.get("r");this.set("molecularParam",(n+1)*o);var a=this.get("delegate"),s=a?{x:a.attr("x"),y:a.attr("y")}:void 0;this.set("delegateCenterDiff",void 0),this.magnify(t,s);}}},e.prototype.scaleDByDrag=function(t){var e=this.get("dragPrePos"),n=t.x-e.x>0?.1:-.1,r=this.get("d")+n,i=this.get("maxD"),o=this.get("minD");if(r<i&&r>o){this.set("d",r);var a=this.get("r");this.set("molecularParam",(r+1)*a),this.magnify(t);}this.set("dragPrePos",{x:t.x,y:t.y});},e.prototype.magnify=function(t,e){this.restoreCache();var n=this.get("graph"),r=this.get("cachedMagnifiedModels"),i=this.get("cachedOriginPositions"),o=this.get("showLabel"),a=this.get("r"),s=this.get("r2"),u=this.get("d"),c=this.get("molecularParam"),l=n.getNodes(),f=l.length,d=e?{x:e.x,y:e.y}:{x:t.x,y:t.y};this.get("dragging")&&("mousemove"===this.get("trigger")||"click"===this.get("trigger"))&&(d=this.get("cacheCenter"));var h=this.get("delegateCenterDiff");h&&(d.x+=h.x,d.y+=h.y),this.updateDelegate(d,a);for(var g=0;g<f;g++){var p=l[g].getModel(),v=p.x,m=p.y;if(!(isNaN(v)||isNaN(m))){var y=(v-d.x)*(v-d.x)+(m-d.y)*(m-d.y);if(!isNaN(y)&&y<s&&0!==y){var b=Math.sqrt(y),x=c*b/(u*b+a),_=(v-d.x)/b,E=(m-d.y)/b;if(p.x=_*x+d.x,p.y=E*x+d.y,i[p.id]||(i[p.id]={x:v,y:m,texts:[]}),r.push(p),o&&2*b<a)for(var w=l[g].getContainer().getChildren(),M=w.length,C=0;C<M;C++){var A=w[C];"text"===A.get("type")&&(i[p.id].texts.push({visible:A.get("visible"),shape:A}),A.set("visible",!0));}}}}n.refreshPositions();},e.prototype.restoreCache=function(){for(var t=this.get("cachedMagnifiedModels"),e=this.get("cachedOriginPositions"),n=t.length,r=0;r<n;r++){var i=t[r],o=e[i.id];i.x=o.x,i.y=o.y;for(var a=o.texts.length,s=0;s<a;s++){var u=o.texts[s];u.shape.set("visible",u.visible);}}this.set("cachedMagnifiedModels",[]),this.set("cachedOriginPositions",{});},e.prototype.updateParams=function(t){var e=t.r,n=t.d,r=t.trigger,i=t.minD,o=t.maxD,a=t.minR,s=t.maxR,u=t.scaleDBy,c=t.scaleRBy;isNaN(t.r)||(this.set("r",e),this.set("r2",e*e)),isNaN(n)||this.set("d",n),isNaN(o)||this.set("maxD",o),isNaN(i)||this.set("minD",i),isNaN(s)||this.set("maxR",s),isNaN(a)||this.set("minR",a);var l=this.get("d"),f=this.get("r");if(this.set("molecularParam",(l+1)*f),("mousemove"===r||"click"===r||"drag"===r)&&this.set("trigger",r),"drag"===u||"wheel"===u||"unset"===u){this.set("scaleDBy",u),this.get("delegate").remove(),this.get("delegate").destroy();var d=this.get("dPercentText");d&&(d.remove(),d.destroy());}if("drag"===c||"wheel"===c||"unset"===c){this.set("scaleRBy",c),this.get("delegate").remove(),this.get("delegate").destroy();var d=this.get("dPercentText");d&&(d.remove(),d.destroy());}},e.prototype.updateDelegate=function(t,e){var n=this,r=this,i=r.get("graph"),o=r.get("delegate");if(!o||o.destroyed){var a=i.get("group"),s=r.get("delegateStyle")||c;o=a.addShape("circle",{attrs:u({r:e/1.5,x:t.x,y:t.y},s),name:"lens-shape",draggable:!0}),"drag"!==this.get("trigger")&&("wheel"===this.get("scaleRBy")?o.on("mousewheel",function(t){r.scaleRByWheel(t);}):"drag"===this.get("scaleRBy")&&(o.on("dragstart",function(t){r.set("dragging",!0),r.set("cacheCenter",{x:t.x,y:t.y}),r.set("dragPrePos",{x:t.x,y:t.y});}),o.on("drag",function(t){r.scaleRByDrag(t);}),o.on("dragend",function(t){r.set("dragging",!1);})),"wheel"===this.get("scaleDBy")?o.on("mousewheel",function(t){n.scaleDByWheel(t);}):"drag"===this.get("scaleDBy")&&(o.on("dragstart",function(t){r.set("dragging",!0),r.set("cacheCenter",{x:t.x,y:t.y}),r.set("dragPrePos",{x:t.x,y:t.y});}),o.on("drag",function(t){n.scaleDByDrag(t);}),o.on("dragend",function(t){r.set("dragging",!1);})));}else o.attr({x:t.x,y:t.y,r:e/1.5});if(r.get("showDPercent")){var l=Math.round((r.get("d")-r.get("minD"))/(r.get("maxD")-r.get("minD"))*100),f=r.get("dPercentText"),d=t.y+e/1.5+16;!f||f.destroyed?(f=i.get("group").addShape("text",{attrs:{text:"".concat(l,"%"),x:t.x,y:d,fill:"#aaa",stroke:"#fff",lineWidth:1,fontSize:12}}),r.set("dPercentText",f)):f.attr({text:"".concat(l,"%"),x:t.x,y:d});}r.set("delegate",o);},e.prototype.clear=function(){var t=this.get("graph");this.restoreCache(),t.refreshPositions();var e=this.get("delegate");e&&!e.destroyed&&(e.remove(),e.destroy());var n=this.get("dPercentText");n&&!n.destroyed&&(n.remove(),n.destroy());},e.prototype.destroy=function(){this.clear();},e;}(a.default);},"088e0ca8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("155fe01c")),a=r._(n("f41eef67"));function s(t,e){if(!e)return{0:t};if(!(0,o.default)(e)){var n=(0,i.default)(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;};}return(0,a.default)(t,e);}},"08bc9c97":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("0053e717"));function a(t){return(0,o.default)((0,i.__assign)({showLast:!0},t));}},"08e84bc0":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return c;},rgbBasis:function(){return f;},rgbBasisClosed:function(){return d;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("9793154b"),a=r._(n("60fd7c96")),s=r._(n("236052be")),u=i._(n("fc84b712")),c=function t(e){var n=(0,u.gamma)(e);function r(t,e){var r=n((t=(0,o.rgb)(t)).r,(e=(0,o.rgb)(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),s=(0,u.default)(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=s(e),t+"";};}return r.gamma=t,r;}(1);function l(t){return function(e){var n,r,i=e.length,a=Array(i),s=Array(i),u=Array(i);for(n=0;n<i;++n)r=(0,o.rgb)(e[n]),a[n]=r.r||0,s[n]=r.g||0,u[n]=r.b||0;return a=t(a),s=t(s),u=t(u),r.opacity=1,function(t){return r.r=a(t),r.g=s(t),r.b=u(t),r+"";};};}var f=l(a.default),d=l(s.default);},"093861bb":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("e82c7689"));function i(t){return(0,r.default)(t)&&t%1!=0;}},"097ce85e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("528465ee"));r._(n("a9d43e9b")).default.registerCombo("rect",{options:{size:[40,5],padding:[25,20,15,20],animate:!0,style:{radius:0,stroke:a.default.defaultCombo.style.stroke,fill:a.default.defaultCombo.style.fill,lineWidth:a.default.defaultCombo.style.lineWidth},labelCfg:{style:{fill:a.default.comboLabel.style.fill,fontSize:a.default.comboLabel.style.fontSize,fontFamily:a.default.windowFontFamily}},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,i.__assign)({},a.default.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},shapeType:"rect",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("rect",{attrs:n,className:"rect-combo",name:"rect-combo",draggable:!0});},getLabelStyleByPosition:function(t,e){var n,r=e.position||this.labelPosition,i=t.style,a=t.padding||this.options.padding;(0,o.isNumber)(a)&&(a=[a,a,a,a]);var s=e.refX,u=e.refY;(0,o.isNil)(s)&&(s=this.refX),(0,o.isNil)(u)&&(u=this.refY);var c=-i.width/2-a[3],l=i.width/2+a[1],f=-i.height/2-a[0],d=i.height/2+a[2];switch(r){case"top":n={x:c+s,y:f+u,textBaseline:"top",textAlign:"left"};break;case"bottom":n={x:0,y:d+u,textBaseline:"top",textAlign:"center"};break;case"left":n={x:c+u,y:0,textAlign:"left"};break;case"center":n={x:0,y:0,text:t.label,textAlign:"center"};break;case"top-center":n={x:0,y:f+u,textBaseline:"top",textAlign:"center"};break;default:n={x:l+s,y:0,textAlign:"right"};}return n.text=t.label,n;},getShapeStyle:function(t){var e,n,r=this.options.style,s=t.padding||this.options.padding;(0,o.isNumber)(s)&&(s=[s,s,s,s]);var u={stroke:t.color},c=(0,o.mix)({},r,u,t.style),l=this.getSize(t),f=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;f?(0,o.isNumber)(f)?(e=f,n=f):(e=f[0],n=f[1]):(e=!(0,o.isNumber)(c.width)||isNaN(c.width)?l[0]||a.default.defaultCombo.style.width:Math.max(c.width,l[0])||l[0],n=!(0,o.isNumber)(c.height)||isNaN(c.height)?l[1]||a.default.defaultCombo.style.height:Math.max(c.height,l[1])||l[1]);var d=-e/2-s[3],h=-n/2-s[0];c.width=e+s[1]+s[3],c.height=n+s[0]+s[2];var g=(0,i.__assign)({x:d,y:h},c);return t.style?(t.style.width=e,t.style.height=n):t.style={width:e,height:n},g;},update:function(t,e){var n,r,i=this.getSize(t),a=t.padding||this.options.padding;(0,o.isNumber)(a)&&(a=[a,a,a,a]);var s=(0,o.clone)(t.style),u=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;u?(0,o.isNumber)(u)?(n=u,r=u):(n=u[0],r=u[1]):(n=Math.max(s.width,i[0])||i[0],r=Math.max(s.height,i[1])||i[1]),s.width=n+a[1]+a[3],s.height=r+a[0]+a[2];var c=e.get("sizeCache");c&&(c.width=s.width,c.height=s.height),s.x=-n/2-a[3],s.y=-r/2-a[0];var l={stroke:t.color},f=e.get("keyShape"),d=(0,o.mix)({},f.attr(),l,s);t.style?(t.style.width=n,t.style.height=r):t.style={width:n,height:r},this.updateShape(t,e,d,!1);}},"single-combo");},"0a0f0483":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Timer:function(){return p;},now:function(){return h;},timer:function(){return v;},timerFlush:function(){return m;}});var r,i,o=0,a=0,s=0,u=0,c=0,l=0,f="object"==typeof performance&&performance.now?performance:Date,d="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17);};function h(){return c||(d(g),c=f.now()+l);}function g(){c=0;}function p(){this._call=this._time=this._next=null;}function v(t,e,n){var r=new p;return r.restart(t,e,n),r;}function m(){h(),++o;for(var t,e=r;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o;}function y(){c=(u=f.now())+l,o=a=0;try{m();}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,x(o);}(),c=0;}}function b(){var t=f.now(),e=t-u;e>1e3&&(l-=e,u=t);}function x(t){!o&&(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-f.now()-l)),s&&(s=clearInterval(s))):(s||(u=f.now(),s=setInterval(b,1e3)),o=1,d(y)));}p.prototype=v.prototype={constructor:p,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?h():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,x();},stop:function(){this._call&&(this._call=null,this._time=1/0,x());}};},"0a78b5f4":function(t,e,n){"use strict";function r(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)];}n.d(e,"__esModule",{value:!0}),n.d(e,"rgb2arr",{enumerable:!0,get:function(){return r;}});},"0aad631c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("0aff2e87")),i=function(t,e){return!!(0,r.default)(t)&&t.indexOf(e)>-1;};},"0accb1b0":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{dataToArray:function(){return i;},objectEqual:function(){return function t(e,n){if(e===n||function(t,e){if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e);return!!n.length&&!!r.length&&n.length===r.length&&!n.some(function(n){var r=t[n],i=e[n];if(Array.isArray(r)&&Array.isArray(i)){var o=r.join(),a=i.join();o!==a||o.match(/\[object object\]/gi)||(r=o,i=a);}return r!==i;});}(e,n))return!0;if(!e||!n||Object.keys(e).length!==Object.keys(n).length)return!1;var i=!0,o=function(e,n){var o=Object.keys(e).length>Object.keys(n).length?e:n,a=Object.keys(e).length>Object.keys(n).length?n:e;Object.keys(o).forEach(function(e){i&&(e in a||(i=!1),"object"===(0,r.default)(o[e])&&"object"===(0,r.default)(a[e])?i=t(o[e],a[e]):"function"==typeof o[e]&&"function"==typeof a[e]?o[e].toString().replace(/\s+/g,"")!==a[e].toString().replace(/\s+/g,"")&&(i=!1):o[e]!==a[e]&&(i=!1));});};return Array.isArray(e)&&Array.isArray(n)?e.forEach(function(t,e){o(t,n[e]);}):o(e,n),i;};}});var r=n("777fffbe")._(n("6f63505d"));function i(t){return t||0===t?Array.isArray(t)?t:[t]:[];}},"0ada5a2e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{add:function(){return D;},adjoint:function(){return h;},clone:function(){return a;},copy:function(){return s;},create:function(){return i;},determinant:function(){return g;},equals:function(){return N;},exactEquals:function(){return F;},frob:function(){return S;},fromMat2d:function(){return E;},fromMat4:function(){return o;},fromQuat:function(){return w;},fromRotation:function(){return x;},fromScaling:function(){return _;},fromTranslation:function(){return b;},fromValues:function(){return u;},identity:function(){return l;},invert:function(){return d;},mul:function(){return O;},multiply:function(){return p;},multiplyScalar:function(){return T;},multiplyScalarAndAdd:function(){return k;},normalFromMat4:function(){return M;},projection:function(){return C;},rotate:function(){return m;},scale:function(){return y;},set:function(){return c;},str:function(){return A;},sub:function(){return B;},subtract:function(){return I;},translate:function(){return v;},transpose:function(){return f;}});var r=n("852bbaa9")._(n("e89ef36f"));function i(){var t=new r.ARRAY_TYPE(9);return r.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 o(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 a(t){var e=new r.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 s(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 u(t,e,n,i,o,a,s,u,c){var l=new r.ARRAY_TYPE(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=i,l[4]=o,l[5]=a,l[6]=s,l[7]=u,l[8]=c,l;}function c(t,e,n,r,i,o,a,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,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 f(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 d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=l*a-s*c,d=-l*o+s*u,h=c*o-a*u,g=n*f+r*d+i*h;return g?(g=1/g,t[0]=f*g,t[1]=(-l*r+i*c)*g,t[2]=(s*r-i*a)*g,t[3]=d*g,t[4]=(l*n-i*u)*g,t[5]=(-s*n+i*o)*g,t[6]=h*g,t[7]=(-c*n+r*u)*g,t[8]=(a*n-r*o)*g,t):null;}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=a*l-s*c,t[1]=i*c-r*l,t[2]=r*s-i*a,t[3]=s*u-o*l,t[4]=n*l-i*u,t[5]=i*o-n*s,t[6]=o*c-a*u,t[7]=r*u-n*c,t[8]=n*a-r*o,t;}function g(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8];return e*(c*o-a*u)+n*(-c*i+a*s)+r*(u*i-o*s);}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],d=n[0],h=n[1],g=n[2],p=n[3],v=n[4],m=n[5],y=n[6],b=n[7],x=n[8];return t[0]=d*r+h*a+g*c,t[1]=d*i+h*s+g*l,t[2]=d*o+h*u+g*f,t[3]=p*r+v*a+m*c,t[4]=p*i+v*s+m*l,t[5]=p*o+v*u+m*f,t[6]=y*r+b*a+x*c,t[7]=y*i+b*s+x*l,t[8]=y*o+b*u+x*f,t;}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],d=n[0],h=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=d*r+h*a+c,t[7]=d*i+h*s+l,t[8]=d*o+h*u+f,t;}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],d=Math.sin(n),h=Math.cos(n);return t[0]=h*r+d*a,t[1]=h*i+d*s,t[2]=h*o+d*u,t[3]=h*a-d*r,t[4]=h*s-d*i,t[5]=h*u-d*o,t[6]=c,t[7]=l,t[8]=f,t;}function y(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 b(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 x(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 _(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 E(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 w(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,l=r*a,f=r*s,d=i*a,h=i*s,g=i*u,p=o*a,v=o*s,m=o*u;return t[0]=1-f-g,t[3]=l-m,t[6]=d+v,t[1]=l+m,t[4]=1-c-g,t[7]=h-p,t[2]=d-v,t[5]=h+p,t[8]=1-c-f,t;}function M(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],d=e[10],h=e[11],g=e[12],p=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*u-i*a,x=n*c-o*a,_=r*u-i*s,E=r*c-o*s,w=i*c-o*u,M=l*p-f*g,C=l*v-d*g,A=l*m-h*g,S=f*v-d*p,D=f*m-h*p,I=d*m-h*v,T=y*I-b*D+x*S+_*A-E*C+w*M;return T?(T=1/T,t[0]=(s*I-u*D+c*S)*T,t[1]=(u*A-a*I-c*C)*T,t[2]=(a*D-s*A+c*M)*T,t[3]=(i*D-r*I-o*S)*T,t[4]=(n*I-i*A+o*C)*T,t[5]=(r*A-n*D-o*M)*T,t[6]=(p*w-v*E+m*_)*T,t[7]=(v*x-g*w-m*b)*T,t[8]=(g*E-p*x+m*y)*T,t):null;}function C(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 A(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")";}function S(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]);}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[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 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 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 k(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 F(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 N(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=e[0],h=e[1],g=e[2],p=e[3],v=e[4],m=e[5],y=e[6],b=e[7],x=e[8];return Math.abs(n-d)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(i-h)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(o-g)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(a-p)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(s-v)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-m)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-y)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-b)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(f-x)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(x));}var O=p,B=I;},"0aff2e87":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length);};},"0b351fec":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("22b52967"),i=n("d5ffb871"),o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){this.cfg={};var e=(0,i.createSVGElement)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=(0,i.createSVGElement)("image");e.appendChild(n);var a=(0,r.uniqueId)("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var s=o.exec(t)[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;}return t.prototype.match=function(t,e){return this.cfg===e;},t;}();},"0b36e6a4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("be1e82ef");function i(t,e,n){var i=(0,r.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,n);}},"0bddc069":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(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;};},"0d140921":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return d;}});var r=n("22b52967"),i=n("5b61de95"),o=function(){function t(t,e,n,r,o){this.fromNode=t,this.toNode=e,this.nodeEdgeNodeLabel={nodeLabel1:n||i.VACANT_NODE_LABEL,edgeLabel:r||i.VACANT_EDGE_LABEL,nodeLabel2:o||i.VACANT_NODE_LABEL};}return t.prototype.equalTo=function(t){return this.fromNode===t.formNode&&this.toNode===t.toNode&&this.nodeEdgeNodeLabel===t.nodeEdgeNodeLabel;},t.prototype.notEqualTo=function(t){return!this.equalTo(t);},t;}(),a=function(){function t(){this.rmpath=[],this.dfsEdgeList=[];}return t.prototype.equalTo=function(t){var e=this.dfsEdgeList.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(this.dfsEdgeList[n]!==t[n])return!1;return!0;},t.prototype.notEqualTo=function(t){return!this.equalTo(t);},t.prototype.pushBack=function(t,e,n,r,i){return this.dfsEdgeList.push(new o(t,e,n,r,i)),this.dfsEdgeList;},t.prototype.toGraph=function(t,e){void 0===t&&(t=i.VACANT_GRAPH_ID),void 0===e&&(e=!1);var n=new i.Graph(t,!0,e);return this.dfsEdgeList.forEach(function(t){var e=t.fromNode,r=t.toNode,o=t.nodeEdgeNodeLabel,a=o.nodeLabel1,s=o.edgeLabel,u=o.nodeLabel2;a!==i.VACANT_NODE_LABEL&&n.addNode(e,a),u!==i.VACANT_NODE_LABEL&&n.addNode(r,u),a!==i.VACANT_NODE_LABEL&&u!==a&&n.addEdge(void 0,e,r,s);}),n;},t.prototype.buildRmpath=function(){this.rmpath=[];for(var t=void 0,e=this.dfsEdgeList.length,n=e-1;n>=0;n--){var r=this.dfsEdgeList[n],i=r.fromNode,o=r.toNode;i<o&&(void 0===t||o===t)&&(this.rmpath.push(n),t=i);}return this.rmpath;},t.prototype.getNodeNum=function(){var t={};return this.dfsEdgeList.forEach(function(e){t[e.fromNode]||(t[e.fromNode]=!0),t[e.toNode]||(t[e.toNode]=!0);}),Object.keys(t).length;},t;}(),s=function(){function t(t){if(this.his={},this.nodesUsed={},this.edgesUsed={},this.edges=[],t){for(;t;){var e=t.edge;this.edges.push(e),this.nodesUsed[e.from]=1,this.nodesUsed[e.to]=1,this.edgesUsed[e.id]=1,t=t.preNode;}this.edges=this.edges.reverse();}}return t.prototype.hasNode=function(t){return 1===this.nodesUsed[t.id];},t.prototype.hasEdge=function(t){return 1===this.edgesUsed[t.id];},t;}(),u=function(){function t(t){var e=t.graphs,n=t.minSupport,r=t.minNodeNum,i=t.maxNodeNum,o=t.top,s=t.directed,u=t.verbose;this.graphs=e,this.dfsCode=new a,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=void 0===n?2:n,this.top=void 0===o?10:o,this.directed=void 0!==s&&s,this.counter=0,this.maxNodeNum=void 0===i?4:i,this.minNodeNum=void 0===r?1:r,this.verbose=void 0!==u&&u,this.maxNodeNum<this.minNodeNum&&(this.maxNodeNum=this.minNodeNum),this.reportDF=[];}return t.prototype.findForwardRootEdges=function(t,e){var n=this,r=[],i=t.nodeMap;return e.edges.forEach(function(t){(n.directed||e.label<=i[t.to].label)&&r.push(t);}),r;},t.prototype.findBackwardEdge=function(t,e,n,r){if(!this.directed&&e===n)return null;for(var i=t.nodeMap,o=i[n.to].edges,a=o.length,s=0;s<a;s++){var u=o[s];if(!r.hasEdge(u)&&u.to===e.from){if(this.directed){if(i[e.from].label<i[n.to].label||i[e.from].label===i[n.to].label&&e.label<=u.label)return u;}else if(e.label<u.label||e.label===u.label&&i[e.to].label<=i[n.to].label)return u;}}return null;},t.prototype.findForwardPureEdges=function(t,e,n,r){for(var i=[],o=e.to,a=t.nodeMap[o].edges,s=a.length,u=0;u<s;u++){var c=a[u],l=t.nodeMap[c.to];n<=l.label&&!r.hasNode(l)&&i.push(c);}return i;},t.prototype.findForwardRmpathEdges=function(t,e,n,r){for(var i=[],o=t.nodeMap,a=o[e.to].label,s=o[e.from].edges,u=s.length,c=0;c<u;c++){var l=s[c],f=o[l.to].label;!(e.to===l.to||n>f||r.hasNode(o[l.to]))&&(e.label<l.label||e.label===l.label&&a<=f)&&i.push(l);}return i;},t.prototype.getSupport=function(t){var e={};return t.forEach(function(t){e[t.graphId]||(e[t.graphId]=!0);}),Object.keys(e).length;},t.prototype.findMinLabel=function(t){var e=void 0;return Object.keys(t).forEach(function(n){var r=t[n],i=r.nodeLabel1,o=r.edgeLabel,a=r.nodeLabel2;if(!e){e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a};return;}(i<e.nodeLabel1||i===e.nodeLabel1&&o<e.edgeLabel||i===e.nodeLabel1&&o===e.edgeLabel&&a<e.nodeLabel2)&&(e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a});}),e;},t.prototype.isMin=function(){var t=this,e=this.dfsCode;if(this.verbose&&console.log("isMin checking",e),1===e.dfsEdgeList.length)return!0;var n=this.directed,r=e.toGraph(i.VACANT_GRAPH_ID,n),u=r.nodeMap,c=new a,l={};r.nodes.forEach(function(e){t.findForwardRootEdges(r,e).forEach(function(t){var n=u[t.to],i="".concat(e.label,"-").concat(t.label,"-").concat(n.label);l[i]||(l[i]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:n.label});var o={graphId:r.id,edge:t,preNode:null};l[i].projected.push(o);});});var f=this.findMinLabel(l);if(f)return c.dfsEdgeList.push(new o(0,1,f.nodeLabel1,f.edgeLabel,f.nodeLabel2)),function a(l){for(var f=c.buildRmpath(),d=c.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,h=c.dfsEdgeList[f[0]].toNode,g={},p=!1,v=0,m=n?-1:0,y=function(e){if(p)return"break";l.forEach(function(n){var i=new s(n),o=t.findBackwardEdge(r,i.edges[f[e]],i.edges[f[0]],i);o&&(g[o.label]||(g[o.label]={projected:[],edgeLabel:o.label}),g[o.label].projected.push({graphId:r.id,edge:g,preNode:n}),v=c.dfsEdgeList[f[e]].fromNode,p=!0);});},b=f.length-1;b>m&&"break"!==y(b);b--);if(p){var x=t.findMinLabel(g);c.dfsEdgeList.push(new o(h,v,i.VACANT_NODE_LABEL,x.edgeLabel,i.VACANT_NODE_LABEL));var _=c.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[_]===c.dfsEdgeList[_]&&a(g[x.edgeLabel].projected);}var E={};p=!1;var w=0;l.forEach(function(e){var n=new s(e),i=t.findForwardPureEdges(r,n.edges[f[0]],d,n);i.length>0&&(p=!0,w=h,i.forEach(function(t){var n="".concat(t.label,"-").concat(u[t.to].label);E[n]||(E[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),E[n].projected.push({graphId:r.id,edge:t,preNode:e});}));});for(var M=f.length,b=0;b<M&&"break"!==function(e){if(p)return"break";var n=f[e];l.forEach(function(e){var i=new s(e),o=t.findForwardRmpathEdges(r,i.edges[n],d,i);o.length>0&&(p=!0,w=c.dfsEdgeList[n].fromNode,o.forEach(function(t){var n="".concat(t.label,"-").concat(u[t.to].label);E[n]||(E[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),E[n].projected.push({graphId:r.id,edge:t,preNode:e});}));});}(b);b++);if(!p)return!0;var C=t.findMinLabel(E);c.dfsEdgeList.push(new o(w,h+1,i.VACANT_NODE_LABEL,C.edgeLabel,C.nodeLabel2));var A=c.dfsEdgeList.length-1;return e.dfsEdgeList[A]===c.dfsEdgeList[A]&&a(E["".concat(C.edgeLabel,"-").concat(C.nodeLabel2)].projected);}(l["".concat(f.nodeLabel1,"-").concat(f.edgeLabel,"-").concat(f.nodeLabel2)].projected);},t.prototype.report=function(){if(!(this.dfsCode.getNodeNum()<this.minNodeNum)){this.counter++;var t=this.dfsCode.toGraph(this.counter,this.directed);this.frequentSubgraphs.push((0,r.clone)(t));}},t.prototype.subGraphMining=function(t){var e=this;if(!(this.getSupport(t)<this.minSupport)&&this.isMin()){this.report();var n=this.dfsCode.getNodeNum(),r=this.dfsCode.buildRmpath(),a=this.dfsCode.dfsEdgeList[r[0]].toNode,u=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,c={},l={};t.forEach(function(t){for(var i=e.graphs[t.graphId],o=i.nodeMap,f=new s(t),d=r.length-1;d>=0;d--){var h=e.findBackwardEdge(i,f.edges[r[d]],f.edges[r[0]],f);if(h){var g="".concat(e.dfsCode.dfsEdgeList[r[d]].fromNode,"-").concat(h.label);l[g]||(l[g]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[r[d]].fromNode,edgeLabel:h.label}),l[g].projected.push({graphId:t.graphId,edge:h,preNode:t});}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(i,f.edges[r[0]],u,f).forEach(function(e){var n="".concat(a,"-").concat(e.label,"-").concat(o[e.to].label);c[n]||(c[n]={projected:[],fromNodeId:a,edgeLabel:e.label,nodeLabel2:o[e.to].label}),c[n].projected.push({graphId:t.graphId,edge:e,preNode:t});});for(var p=function(n){e.findForwardRmpathEdges(i,f.edges[r[n]],u,f).forEach(function(i){var a="".concat(e.dfsCode.dfsEdgeList[r[n]].fromNode,"-").concat(i.label,"-").concat(o[i.to].label);c[a]||(c[a]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[r[n]].fromNode,edgeLabel:i.label,nodeLabel2:o[i.to].label}),c[a].projected.push({graphId:t.graphId,edge:i,preNode:t});});},d=0;d<r.length;d++)p(d);}}),Object.keys(l).forEach(function(t){var n=l[t],r=n.toNodeId,i=n.edgeLabel;e.dfsCode.dfsEdgeList.push(new o(a,r,"-1",i,"-1")),e.subGraphMining(l[t].projected),e.dfsCode.dfsEdgeList.pop();}),Object.keys(c).forEach(function(t){var n=c[t],r=n.fromNodeId,s=n.edgeLabel,u=n.nodeLabel2;e.dfsCode.dfsEdgeList.push(new o(r,a+1,i.VACANT_NODE_LABEL,s,u)),e.subGraphMining(c[t].projected),e.dfsCode.dfsEdgeList.pop();});}},t.prototype.generate1EdgeFrequentSubGraphs=function(){var t=this.graphs,e=this.directed,n=this.minSupport,r=this.frequentSize1Subgraphs,i={},o={},a={},s={};return Object.keys(t).forEach(function(n){var r=t[n],u=r.nodeMap;r.nodes.forEach(function(t,r){var c=t.label,l="".concat(n,"-").concat(c);if(!a[l]){var f=i[c]||0;f++,i[c]=f;}a[l]={graphKey:n,label:c},t.edges.forEach(function(t){var r=c,i=u[t.to].label;if(!e&&r>i){var a=i;i=r,r=a;}var l=t.label,f="".concat(n,"-").concat(r,"-").concat(l,"-").concat(i),d="".concat(r,"-").concat(l,"-").concat(i);if(!o[d]){var h=o[d]||0;h++,o[d]=h;}s[f]={graphId:n,nodeLabel1:r,edgeLabel:l,nodeLabel2:i};});});}),Object.keys(i).forEach(function(t){if(!(i[t]<n)){var e={nodes:[],edges:[]};e.nodes.push({id:"0",label:t}),r.push(e);}}),r;},t.prototype.run=function(){var t=this;if(this.frequentSize1Subgraphs=this.generate1EdgeFrequentSubGraphs(),!(this.maxNodeNum<2)){var e=this.graphs;this.directed;var n={};Object.keys(e).forEach(function(r){var i=e[r],o=i.nodeMap;i.nodes.forEach(function(e){t.findForwardRootEdges(i,e).forEach(function(t){var i=o[t.to],a="".concat(e.label,"-").concat(t.label,"-").concat(i.label);n[a]||(n[a]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:i.label}),n[a].projected.push({graphId:r,edge:t,preNode:null});});});}),Object.keys(n).forEach(function(e){var r=n[e],i=r.projected,a=r.nodeLabel1,s=r.edgeLabel,u=r.nodeLabel2;t.dfsCode.dfsEdgeList.push(new o(0,1,a,s,u)),t.subGraphMining(i),t.dfsCode.dfsEdgeList.pop();});}},t;}(),c=function(t,e,n,r){var o={};return Object.keys(t).forEach(function(a,s){var u=t[a],c=new i.Graph(s,!0,e),l={};u.nodes.forEach(function(t,e){c.addNode(e,t[n]),l[t.id]=e;}),u.edges.forEach(function(t,e){var n=l[t.source],i=l[t.target];c.addEdge(-1,n,i,t[r]);}),c&&c.getNodeNum()&&(o[c.id]=c);}),o;},l=function(t,e,n){var r=[];return t.forEach(function(t){var i={nodes:[],edges:[]};t.nodes.forEach(function(t){var n;i.nodes.push(((n={id:"".concat(t.id)})[e]=t.label,n));}),t.edges.forEach(function(t){var e;i.edges.push(((e={source:"".concat(t.from),target:"".concat(t.to)})[n]=t.label,e));}),r.push(i);}),r;},f="cluster",d=function(t){var e=t.graphs,n=t.directed,r=void 0!==n&&n,i=t.nodeLabelProp,o=void 0===i?f:i,a=t.edgeLabelProp,s=void 0===a?f:a,d=c(e,r,o,s),h=t.minSupport,g=t.maxNodeNum,p=t.minNodeNum,v=t.verbose,m=new u({graphs:d,minSupport:h,maxNodeNum:g,minNodeNum:p,top:t.top,verbose:v,directed:r});return m.run(),l(m.frequentSubgraphs,o,s);};},"0d397506":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("533b8f72")),i=function(t){if("object"!=typeof t||null===t)return t;if((0,r.default)(t)){e=[];for(var e,n=0,o=t.length;n<o;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=i(t[n]):e[n]=t[n];}else for(var a in e={},t)"object"==typeof t[a]&&null!=t[a]?e[a]=i(t[a]):e[a]=t[a];return e;},o=i;},"0e8397d7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.toCssLowerCase=function(t){return t.replace(/[A-Z]/,function(t){return"-"+t.toLocaleLowerCase();});},e.toStyleUpperCase=h,e.toFixed=g,e.createMatrix=function(t){if("undefined"==typeof document)return null;var e=["WebKitCSS","MozCSS","DOM","MsCSS","MSCSS","OCSS","CSS"].filter(function(t){return t+"Matrix" in window;});return e.length?new window[e[0]+"Matrix"](t):(console.warn("Browsers do not support matrix."),"");},e.checkStyleName=function(t){if("undefined"==typeof document)return null;if("filter"!==t&&t in document.body.style)return t;var e=t.charAt(0).toUpperCase()+t.substr(1),n=["O","Moz","ms","Ms","Webkit"].filter(function(t){return""+t+e in document.body.style;});return n[0]?""+n[0]+e:null;},e.getGsapType=function(t){var e=t;return"z"===(e="y"===(e="x"===e?"translateX":e)?"translateY":e)?"translateZ":e;},e.parseColor=v,e.parseShadow=function(t,e){var n=e&&h(e);if(!t)return"boxShadow"===n?[0,0,0,0,0,0,0,0]:[0,0,0,0,0,0,0];var r=t.replace(/,\s+/gi,",").split(/\s+/).filter(function(t){return t;}),i=r.indexOf("inset");i>=0&&r.splice(i,1);var o=r.find(function(t){return s[t]||t.match(/#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})|(rgb|hsl)+(?:a)?\((.*)\)/i);})||"black",a=r.indexOf(o);r.splice(a,1);var u=v(o);return u[3]="number"==typeof u[3]?u[3]:1,"boxShadow"===n&&r.length<4&&r.push(0),r.concat(u,i>=0?["inset"]:[]);},e.getColor=function(t){return(4===t.length?"rgba":"rgb")+"("+t.map(function(t,e){return e<3?Math.round(t):t;}).join(",")+")";},e.isTransform=m,e.isConvert=function(t){var e=m(t);return d.filter.indexOf(e)>=0?"filter":e;},e.splitFilterToObject=function(t){if("none"===t||!t||""===t)return null;var e=t.replace(/\s+/g,"").split(")").filter(function(t){return t;}),n={};return e.forEach(function(t){var e=t.split("(");n[e[0]]=e[1];}),n;},e.getMatrix=y,e.getTransform=function(t){var e,n=t&&"none"!==t&&""!==t?t:"matrix(1, 0, 0, 1, 0, 0)";if(!n.match("matrix"))return(e={}).translateX=0,e.translateY=0,e.translateZ=0,e.rotate=0,e.rotateX=0,e.rotateY=0,e.scaleX=1,e.scaleY=1,e.scaleZ=1,e.skewX=0,e.skewY=0,e.perspective=0,(t.trim().match(/(\w+)\([^\)]+\)/ig)||[]).forEach(function(t){var n=t.split("("),r=n[0].trim(),i=n[1].replace(")","").trim();i.match(/%|em|rem/ig)&&console.warn("value("+i+") must be absolute, not relative, has been converted to absolute."),i=i.replace(/px|deg|\)/ig,""),d.transformGroup[r]&&"rotate"!==r?(i=i.split(",").map(function(t){return parseFloat(t);}),"scale3d"===r||"translate3d"===r?["X","Y","Z"].forEach(function(t,n){var o=r.substring(0,r.length-2);e[""+o+t]=i[n]||e[""+o+t];}):"rotate3d"===r?(e.rotateX=i[0]&&i[3]||e.rotateX,e.rotateY=i[1]&&i[3]||e.rotateY,e.rotate=i[2]&&i[3]||e.rotate):["X","Y"].forEach(function(t,n){e[""+r+t]=i[n]||e[""+r+t];})):"rotateZ"===r?e.rotate=parseFloat(i)||e.rotate:e[r]=parseFloat(i)||e[r];}),e;var r=y(n),i=r.m11,o=r.m12,a=r.m13,s=r.m14,c=r.m21,l=r.m22,f=r.m23,h=r.m24,p=r.m31,v=r.m32,m=r.m33,b=r.m34,x=r.m43,_=void 0,E=void 0,w=void 0,M={},C=Math.atan2(f,m),A=Math.tan(c),S=Math.tan(o),D=void 0,I=void 0;return M.rotateX=g(C*u)||0,C&&(_=c*(D=Math.cos(-C))+p*(I=Math.sin(-C)),E=l*D+v*I,w=f*D+m*I,p=-(c*I)+p*D,v=-(l*I)+v*D,m=-(f*I)+m*D,b=-(h*I)+b*D,c=_,l=E,f=w),C=Math.atan2(-a,m),M.rotateY=g(C*u)||0,C&&(_=i*(D=Math.cos(-C))-p*(I=Math.sin(-C)),E=o*D-v*I,w=a*D-m*I,v=o*I+v*D,m=a*I+m*D,b=s*I+b*D,i=_,o=E,a=w),C=Math.atan2(o,i),M.rotate=g(C*u)||0,C&&(_=i*(D=Math.cos(C))+o*(I=Math.sin(C)),E=c*D+l*I,w=p*D+v*I,o=o*D-i*I,l=l*D-c*I,v=v*D-p*I,i=_,c=E,p=w),M.rotateX&&Math.abs(M.rotateX)+Math.abs(M.rotate)>359.9&&(M.rotateX=M.rotate=0,M.rotateY=180-M.rotateY||0),M.scaleX=g(Math.sqrt(i*i+o*o+a*a)),M.scaleY=g(Math.sqrt(l*l+f*f)),M.scaleZ=g(Math.sqrt(p*p+v*v+m*m)),M.skewX=A===-S?0:A,M.skewY=S===-A?0:S,M.perspective=b?1/(b<0?-b:b):0,M.translateX=r.m41,M.translateY=r.m42,M.translateZ=x,M;},e.stylesToCss=function(t,e){var n=void 0;return r[t]||"number"!=typeof e?"content"!==t||o.test(e)||(n="'"+e.replace(/'/g,"\\'")+"'"):n=" "+e+"px",n||e;},e.getUnit=function(t,e){var n=e&&e.toString().replace(/[^a-z|%]/ig,""),r="";return t.indexOf("translate")>=0||t.indexOf("perspective")>=0||t.indexOf("blur")>=0?r="px":(t.indexOf("skew")>=0||t.indexOf("rotate")>=0)&&(r="deg"),n||r;},e.getValues=function(t,e,n){return t+"("+e+(n||"")+")";},e.findStyleByName=b,e.mergeStyle=function(t,e){if(!t||""===t)return e;if(!e||""===e)return t;var n=t.replace(/\s/g,"").split(")").filter(function(t){return""!==t&&t;}).map(function(t){return t+")";});return e.replace(/\s/g,"").split(")").filter(function(t){return""!==t&&t;}).forEach(function(t){var e=b(n,t.split("(")[0]);if(e){var r=n.indexOf(e);n[r]=t+")";}else n.push(t+")");}),n.forEach(function(t,e){t.indexOf("perspective")>=0&&e&&(n.splice(e,1),n.unshift(t));}),n.join(" ").trim();};var r={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(t){i.forEach(function(e){r[e+t.charAt(0).toUpperCase()+t.substring(1)]=r[t];});});var o=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/,a="undefined"!=typeof document&&!!(navigator&&(navigator.userAgent.indexOf("MSIE 8.0")>0||navigator.userAgent.indexOf("MSIE 9.0")>0)),s={aqua:[0,255,255,1],lime:[0,255,0,1],silver:[192,192,192,1],black:[0,0,0,1],maroon:[128,0,0,1],teal:[0,128,128,1],blue:[0,0,255,1],navy:[0,0,128,1],white:[255,255,255,1],fuchsia:[255,0,255,1],olive:[128,128,0,1],yellow:[255,255,0,1],orange:[255,165,0,1],gray:[128,128,128,1],purple:[128,0,128,1],green:[0,128,0,1],red:[255,0,0,1],pink:[255,192,203,1],cyan:[0,255,255,1],transparent:[255,255,255,0]},u=180/Math.PI,c={_lists:{transformsBase:["translate","translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ","rotate"],transforms3D:["translate3d","translateZ","scaleZ","rotateX","rotateY","perspective"]},transformGroup:{translate:1,translate3d:1,scale:1,scale3d:1,rotate:1,rotate3d:1,skew:1},filter:["grayScale","sepia","hueRotate","invert","brightness","contrast","blur"],filterConvert:{grayScale:"grayscale",hueRotate:"hue-rotate"}};c._lists.transformsBase=a?c._lists.transformsBase:c._lists.transformsBase.concat(c._lists.transforms3D);var l=e.hexExp=/#([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3})/;e.rgbAndHslExp=/((rgb|hsl)[a]?)+\((?:\d|\.\d)+(?:(deg|\%|)),[\s+]?(?:\d|\.\d)+(?:(deg|\%|)),[\s+]?(?:\d|\.\d)+(?:(deg|%|))(,[\s+]?(?:\d|\.\d)+(?:(deg|\%|)))?\)/,e.colorRegExp=/#([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3})|((rgb|hsl)[a]?)+\((?:\d|\.\d)+(?:(deg|\%)?),[\s+]?(?:\d|\.\d)+(?:(deg|\%)?),[\s+]?(?:\d|\.\d)+(?:(deg|%)?)(,[\s+]?(?:\d|\.\d)+(?:(deg|\%)?))?\)/;var f=e.colorNumExp=/(?:\d|\.\d)+(%?)/g,d=e.cssList=c;function h(t){return t.replace(/-(.?)/g,function(t){return t.replace("-","").toLocaleUpperCase();});}function g(t,e){var n=e?Math.pow(10,e):1e5,r=0|t,i=t-r,o=t;if(i){var a=(i*n+(t<0?-.5:.5)|0)/n,s=0|a;o=(t<0&&!(r+s)?"-":"")+(r+s)+"."+(a.toString().split(".")[1]||"");}return parseFloat(o);}var p=function(t,e,n){return(n<0&&(n+=6),n>=6&&(n-=6),n<1)?(e-t)*n+t:n<3?e:n<4?(e-t)*(4-n)+t:t;};function v(t){var e=s.transparent,n=t,r=void 0,i=void 0,o=void 0;if(n){if(s[n])e=s[n];else if("number"==typeof n)e=[n>>16,n>>8&255,255&n];else if(","===n.charAt(n.length-1)&&(n=n.substr(0,n.length-1)),n.match(l))3===(n=n.substr(1)).length&&(n=""+(r=n.charAt(0))+r+(i=n.charAt(1))+i+(o=n.charAt(2))+o+"ff"),6===n.length&&(n+="ff"),e=[(n=parseInt(n,16))>>24&255,n>>16&255,n>>8&255,parseFloat(((255&n)/255).toFixed(2))];else if(n.match(/^hsl/)){var a=(e=n.match(f))[3];a="string"==typeof a&&a.match("%")?parseFloat(a)/100:parseFloat(""+(a||"1"));var u=parseFloat(e[0])/60,c=parseFloat(e[1])/100,d=parseFloat(e[2])/100,h=d<=.5?d*(c+1):d+c-d*c,g=2*d-h;e=[r=Math.round(255*p(g,h,u+2)),i=Math.round(255*p(g,h,u)),o=Math.round(255*p(g,h,u-2)),a];}else 3===(e=(e=n.match(f)||s.transparent).map(function(t){return parseFloat(t);})).length&&e.push(1);}else e=s.transparent;return e;}function m(t){return d._lists.transformsBase.indexOf(t)>=0?"transform":t;}function y(t){var e=t.match(/(?:\-|\b)[\d\-\.e]+\b/gi),n={};return 6===e.length?(n.m11=parseFloat(e[0]),n.m12=parseFloat(e[1]),n.m13=0,n.m14=0,n.m21=parseFloat(e[2]),n.m22=parseFloat(e[3]),n.m23=0,n.m24=0,n.m31=0,n.m32=0,n.m33=1,n.m34=0,n.m41=parseFloat(e[4]),n.m42=parseFloat(e[5]),n.m43=0,n.m44=0):e.forEach(function(t,e){n["m"+(Math.floor(e/4)+1)+(e%4+1)]=parseFloat(t);}),n;}function b(t,e){var n=null;return t&&t.forEach(function(t){if(!n){var r=t.split("(")[0],i=r in d.transformGroup&&e.substring(0,e.length-1).indexOf(r)>=0,o=e in d.transformGroup&&r.substring(0,r.length-1).indexOf(e)>=0,a=r in d.transformGroup&&e in d.transformGroup&&(r.substring(0,r.length-2)===e||e.substring(0,e.length-2)===r);(r===e||i||o||a)&&(n=t);}}),n;}},"0e857c0a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("ddeef58a");function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]);}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1;}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e));}function s(t,e){var n=e[1],i=e[2],s=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),u=e[4],c=e[5],l=t[0],f=t[1],d=e[6],h=e[7],g=Math.cos(s)*(l-d)/2+Math.sin(s)*(f-h)/2,p=-1*Math.sin(s)*(l-d)/2+Math.cos(s)*(f-h)/2,v=g*g/(n*n)+p*p/(i*i);v>1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(p*p)+i*i*(g*g),y=m?Math.sqrt((n*n*(i*i)-m)/m):1;u===c&&(y*=-1),isNaN(y)&&(y=0);var b=i?y*n*p/i:0,x=n?-(y*i)*g/n:0,_=(l+d)/2+Math.cos(s)*b-Math.sin(s)*x,E=(f+h)/2+Math.sin(s)*b+Math.cos(s)*x,w=[(g-b)/n,(p-x)/i],M=[(-1*g-b)/n,(-1*p-x)/i],C=a([1,0],w),A=a(w,M);return -1>=o(w,M)&&(A=Math.PI),o(w,M)>=1&&(A=0),0===c&&A>0&&(A-=2*Math.PI),1===c&&A<0&&(A+=2*Math.PI),{cx:_,cy:E,rx:(0,r.isSamePoint)(t,[d,h])?0:n,ry:(0,r.isSamePoint)(t,[d,h])?0:i,startAngle:C,endAngle:C+A,xRotation:s,arcFlag:u,sweepFlag:c};}},"0e879d29":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{easeBack:function(){return f.backInOut;},easeBackIn:function(){return f.backIn;},easeBackInOut:function(){return f.backInOut;},easeBackOut:function(){return f.backOut;},easeBounce:function(){return l.bounceOut;},easeBounceIn:function(){return l.bounceIn;},easeBounceInOut:function(){return l.bounceInOut;},easeBounceOut:function(){return l.bounceOut;},easeCircle:function(){return c.circleInOut;},easeCircleIn:function(){return c.circleIn;},easeCircleInOut:function(){return c.circleInOut;},easeCircleOut:function(){return c.circleOut;},easeCubic:function(){return o.cubicInOut;},easeCubicIn:function(){return o.cubicIn;},easeCubicInOut:function(){return o.cubicInOut;},easeCubicOut:function(){return o.cubicOut;},easeElastic:function(){return d.elasticOut;},easeElasticIn:function(){return d.elasticIn;},easeElasticInOut:function(){return d.elasticInOut;},easeElasticOut:function(){return d.elasticOut;},easeExp:function(){return u.expInOut;},easeExpIn:function(){return u.expIn;},easeExpInOut:function(){return u.expInOut;},easeExpOut:function(){return u.expOut;},easeLinear:function(){return r.linear;},easePoly:function(){return a.polyInOut;},easePolyIn:function(){return a.polyIn;},easePolyInOut:function(){return a.polyInOut;},easePolyOut:function(){return a.polyOut;},easeQuad:function(){return i.quadInOut;},easeQuadIn:function(){return i.quadIn;},easeQuadInOut:function(){return i.quadInOut;},easeQuadOut:function(){return i.quadOut;},easeSin:function(){return s.sinInOut;},easeSinIn:function(){return s.sinIn;},easeSinInOut:function(){return s.sinInOut;},easeSinOut:function(){return s.sinOut;}});var r=n("b56156ed"),i=n("a3b9da61"),o=n("f8288ad6"),a=n("13020dc4"),s=n("f49718ea"),u=n("2a92b4fb"),c=n("223ab6d0"),l=n("af5a447d"),f=n("877a6d9a"),d=n("9cd1844d");},"0f02071f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.forceNBody=void 0;var r=n("d53bd7ec");function i(t){var e=0,n=0,r=0;if(t.length){for(var i=0;i<4;i++){var o=t[i];o&&o.weight&&(e+=o.weight,n+=o.x*o.weight,r+=o.y*o.weight);}t.x=n/e,t.y=r/e,t.weight=e;}else{var o=t;t.x=o.data.x,t.y=o.data.y,t.weight=o.data.weight;}}e.forceNBody=function(t,e,n,a,s){var u=n/a,c=t.map(function(t,n){var r=e[t.id],i=r.data;return{x:r.x,y:r.y,size:r.size,index:n,vx:0,vy:0,weight:u*i.layout.force.nodeStrength};}),l=(0,r.quadtree)(c,function(t){return t.x;},function(t){return t.y;}).visitAfter(i);return c.forEach(function(t){(function(t,e){e.visit(function(e,n,r,i,a){return o(e,n,r,i,a,t);});})(t,l);}),c.map(function(n,r){var i=e[t[r].id].data.layout.force.mass,o=void 0===i?1:i;s[2*r]=n.vx/o,s[2*r+1]=n.vy/o;}),s;};var o=function(t,e,n,r,i,o){var a=o.x-t.x||.1,s=o.y-t.y||.1,u=r-e,c=a*a+s*s,l=Math.sqrt(c)*c;if(u*u*.81<c){var f=t.weight/l;return o.vx+=a*f,o.vy+=s*f,!0;}if(t.length)return!1;if(t.data!==o){var f=t.data.weight/l;o.vx+=a*f,o.vy+=s*f;}};},"0f272cdc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("7be994de")),a=n("61db1663"),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,a.mix)(r,e),n;}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{};},e.prototype.get=function(t){return this.cfg[t];},e.prototype.set=function(t,e){this.cfg[t]=e;},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0;},e;}(o.default);},"0f70fe20":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("071f0c13")),a=function(t,e){for(var n=[],r={},a=0;a<t.length;a++){var s=t[a][e];if(!(0,o.default)(s)){(0,i.default)(s)||(s=[s]);for(var u=0;u<s.length;u++){var c=s[u];r[c]||(n.push(c),r[c]=!0);}}}return n;};},"10c0d8fc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.toNumber=e.isNaN=e.isNumber=void 0,e.isNumber=function(t){return"number"==typeof t;},e.isNaN=function(t){return Number.isNaN(Number(t));},e.toNumber=function(t){var n=parseFloat(t);return(0,e.isNaN)(n)?t:n;};},"10f09425":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{NEXT_STEP_BTN:function(){return u;},PLAY_PAUSE_BTN:function(){return s;},PRE_STEP_BTN:function(){return c;},TIMEBAR_CONFIG_CHANGE:function(){return a;},TIMELINE_END:function(){return i;},TIMELINE_START:function(){return r;},VALUE_CHANGE:function(){return o;}});var r="timebarstartplay",i="timebarendplay",o="valuechange",a="timebarConfigChanged",s="playPauseBtn",u="nextStepBtn",c="preStepBtn";},"111d3380":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"path2Array",{enumerable:!0,get:function(){return i;}});var r=n("cb98cfaf");function i(t){return(0,r.parsePathString)(t);}},"11214b3f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{applyAttrsToContext:function(){return f;},checkChildrenRefresh:function(){return g;},checkRefresh:function(){return h;},clearChanged:function(){return function t(e){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&t(r.cfg.children);}};},drawChildren:function(){return d;},drawPath:function(){return v;},getMergedRegion:function(){return b;},getRefreshRegion:function(){return y;},mergeView:function(){return x;},refreshElement:function(){return m;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("22b52967"),a=n("4a3cdd11"),s=r._(n("0e857c0a")),u=n("ddeef58a"),c=i._(n("b28fb25f")),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function f(t,e){var n=e.attr();for(var r in n){var i=n[r],s=l[r]?l[r]:r;"matrix"===s&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===s&&t.setLineDash?(0,o.isArray)(i)&&t.setLineDash(i):("strokeStyle"===s||"fillStyle"===s?i=(0,a.parseStyle)(t,e,i):"globalAlpha"===s&&(i*=t.globalAlpha),t[s]=i);}}function d(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw();}}function h(t,e,n){var r=t.get("refreshElements");(0,o.each)(r,function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent;}),r[0]===t?p(e,n):g(e,n);}function g(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible){if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&p(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&g(r.cfg.children,e);else{var i=function(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&(0,u.intersectRect)(n,e);}(r,e);r.cfg.refresh=i,i&&r.isGroup()&&g(r.cfg.children,e);}}}}function p(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.visible&&(r.cfg.refresh=!0,r.isGroup()&&p(r.get("children"),e));}}function v(t,e,n,r){var i=n.path,o=n.startArrow,a=n.endArrow;if(i){var u=[0,0],l=[0,0],f={dx:0,dy:0};e.beginPath();for(var d=0;d<i.length;d++){var h=i[d],g=h[0];if(0===d&&o&&o.d){var p=t.getStartTangent();f=c.getShortenOffset(p[0][0],p[0][1],p[1][0],p[1][1],o.d);}else if(d===i.length-2&&"Z"===i[d+1][0]&&a&&a.d){if("Z"===i[d+1][0]){var p=t.getEndTangent();f=c.getShortenOffset(p[0][0],p[0][1],p[1][0],p[1][1],a.d);}}else if(d===i.length-1&&a&&a.d&&"Z"!==i[0]){var p=t.getEndTangent();f=c.getShortenOffset(p[0][0],p[0][1],p[1][0],p[1][1],a.d);}var v=f.dx,m=f.dy;switch(g){case"M":e.moveTo(h[1]-v,h[2]-m),l=[h[1],h[2]];break;case"L":e.lineTo(h[1]-v,h[2]-m);break;case"Q":e.quadraticCurveTo(h[1],h[2],h[3]-v,h[4]-m);break;case"C":e.bezierCurveTo(h[1],h[2],h[3],h[4],h[5]-v,h[6]-m);break;case"A":var y=void 0;r?(y=r[d])||(y=(0,s.default)(u,h),r[d]=y):y=(0,s.default)(u,h);var b=y.cx,x=y.cy,_=y.rx,E=y.ry,w=y.startAngle,M=y.endAngle,C=y.xRotation,A=y.sweepFlag;if(e.ellipse)e.ellipse(b,x,_,E,C,w,M,1-A);else{var S=_>E?_:E,D=_>E?1:_/E,I=_>E?E/_:1;e.translate(b,x),e.rotate(C),e.scale(D,I),e.arc(0,0,S,w,M,1-A),e.scale(1/D,1/I),e.rotate(-C),e.translate(-b,-x);}break;case"Z":e.closePath();}if("Z"===g)u=l;else{var T=h.length;u=[h[T-2],h[T-1]];}}}}function m(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),!(t.cfg.parent&&t.cfg.parent.get("hasChanged"))&&(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())));}function y(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!!(n.width&&n.height),i=t.getCanvasBBox(),o=i&&!!(i.width&&i.height);r&&o?e=(0,u.mergeRegion)(n,i):r?e=n:o&&(e=i);}return e;}function b(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return(0,o.each)(t,function(t){var o=y(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY));}),{minX:(0,o.min)(e),minY:(0,o.min)(n),maxX:(0,o.max)(r),maxY:(0,o.max)(i)};}function x(t,e){return t&&e&&(0,u.intersectRect)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null;}},"116feced":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return h;}});var r=n("777fffbe"),i=n("f6fd9972"),o=n("22b52967"),a=r._(n("acf5b1cd")),s=r._(n("d61ac8e2")),u=n("10f09425"),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},l=i.ext.transform,f={fill:"#5B8FF9"},d={fill:"#e6e8e9"},h=function(){function t(t){this.frameCount=0,this.fontFamily="Arial, sans-serif";var e=t.graph,n=t.canvas,r=t.group,i=t.width,o=t.height,a=t.padding,s=t.data,u=t.start,c=t.end,l=t.x,h=t.y,g=t.tickLabelFormatter,p=t.selectedTickStyle,v=t.unselectedTickStyle,m=t.tooltipBackgroundColor,y=t.tooltipFomatter,b=t.tickLabelStyle,x=t.controllerCfg,_=void 0===x?{speed:1}:x;this.graph=e,this.group=r,this.sliceGroup=r.addGroup({name:"slice-group"}),this.canvas=n,this.width=i,this.height=o,this.padding=a,this.data=s,this.start=u,this.end=c,this.tickLabelFormatter=g,this.tickLabelStyle=b||{},this.selectedTickStyle=void 0===p?f:p,this.unselectedTickStyle=void 0===v?d:v,this.controllerCfg=_,this.currentSpeed=_.speed||1,this.x=void 0===l?0:l,this.y=void 0===h?0:h,this.tooltipBackgroundColor=m,this.tooltipFomatter=y,this.fontFamily="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif",this.renderSlices(),this.initEvent();}return t.prototype.renderSlices=function(){var t=this,e=this.width,n=this.height,r=this.padding,i=this.data,a=this.start,u=this.end,f=this.tickLabelFormatter,d=this.selectedTickStyle,h=this.unselectedTickStyle,g=this.tickLabelStyle,p=e-2*r,v=n-(3*r+4+10)-2*r,m=i.length,y=(p-2*(m-1))/m;this.tickWidth=y;var b=this.sliceGroup,x=[],_=[],E=Math.round(m*a),w=Math.round(m*u);this.startTickRectId=E,this.endTickRectId=w;var M=g.rotate;delete g.rotate,i.forEach(function(n,i){var a,s=i>=E&&i<=w,u=b.addShape("rect",{attrs:c({x:r+i*(y+2),y:r,width:y,height:v},s?d:h),draggable:!0,name:"tick-rect-".concat(i)}),p=b.addShape("rect",{attrs:{x:r+i*y+2*(2*i-1)/2,y:r,width:0===i||i===m-1?y+1:y+2,height:v,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(i)});p.toFront();var C=u.getBBox(),A=(C.minX+C.maxX)/2;if(x.push({rect:u,pickRect:p,value:n.date,x:A,y:C.minY}),f?(a=f(n),!(0,o.isString)(a)&&a&&(a=n.date)):i%Math.round(m/10)==0&&(a=n.date),a){_.push(a);var S=C.maxY+2*r;b.addShape("line",{attrs:{stroke:"#BFBFBF",x1:A,y1:S,x2:A,y2:S+4},name:"tick-line"});var D=S+4+r,I=b.addShape("text",{attrs:c({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:A,y:D,textAlign:"center",text:a,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},g),capture:!1,name:"tick-label"}),T=I.getBBox();if(T.maxX>e?I.attr("textAlign","right"):T.minX<0&&I.attr("textAlign","left"),(0,o.isNumber)(M)&&10!==_.length){var k=l([1,0,0,0,1,0,0,0,1],[["t",-A,-D],["r",M],["t",A-5,D+2]]);I.attr({textAlign:"left",matrix:k});}1===_.length?I.attr({textAlign:"left"}):10===_.length&&I.attr({textAlign:"right"});}}),this.tickRects=x;var C=this.group;this.currentSpeed=1,this.controllerBtnGroup=new s.default(c({group:C,x:this.x,y:this.y+n+5,width:e,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg));},t.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",function(e){var n=e.target;if("rect"===n.get("type")&&n.get("name")){var r=parseInt(n.get("name").split("-")[2],10);if(!isNaN(r)){var i=t.tickRects,o=t.unselectedTickStyle;i.forEach(function(t){t.rect.attr(o);});var a=t.selectedTickStyle;i[r].rect.attr(a),t.startTickRectId=r,t.endTickRectId=r;var s=r/i.length;t.graph.emit(u.VALUE_CHANGE,{value:[s,s]});}}}),e.on("dragstart",function(e){var n=t.tickRects,r=t.unselectedTickStyle;n.forEach(function(t){t.rect.attr(r);});var i=parseInt(e.target.get("name").split("-")[2],10),o=t.selectedTickStyle;n[i].rect.attr(o),t.startTickRectId=i;var a=i/n.length;t.graph.emit(u.VALUE_CHANGE,{value:[a,a]}),t.dragging=!0;}),e.on("dragover",function(e){if(t.dragging&&"rect"===e.target.get("type")){for(var n=parseInt(e.target.get("name").split("-")[2],10),r=t.startTickRectId,i=t.tickRects,o=t.selectedTickStyle,a=t.unselectedTickStyle,s=0;s<i.length;s++){var c=s>=r&&s<=n?o:a;i[s].rect.attr(c);}var l=i.length;t.endTickRectId=n,t.graph.emit(u.VALUE_CHANGE,{value:[r/l,n/l]});}}),e.on("drop",function(e){if(t.dragging&&(t.dragging=!1,"rect"===e.target.get("type"))){var n=t.startTickRectId,r=parseInt(e.target.get("name").split("-")[2],10);if(!(r<n)){var i=t.selectedTickStyle,o=t.tickRects;o[r].rect.attr(i),t.endTickRectId=r;var a=o.length;t.graph.emit(u.VALUE_CHANGE,{value:[n/a,r/a]});}}});var n=this.tooltipBackgroundColor,r=this.tooltipFomatter,i=this.canvas,o=new a.default({container:i.get("container"),backgroundColor:n}),s=this.tickRects;s.forEach(function(t){var e=t.pickRect;e.on("mouseenter",function(t){var e=t.target;if("rect"===e.get("type")){var n=parseInt(e.get("name").split("-")[2],10),a=i.getClientByPoint(s[n].x,s[n].y);o.show({x:s[n].x,y:s[n].y,clientX:a.x,clientY:a.y,text:r?r(s[n].value):s[n].value});}}),e.on("mouseleave",function(t){o.hide();});});var c=this.group;c.on("".concat(u.PLAY_PAUSE_BTN,":click"),function(){t.isPlay=!t.isPlay,t.changePlayStatus();}),c.on("".concat(u.NEXT_STEP_BTN,":click"),function(){t.updateStartEnd(1);}),c.on("".concat(u.PRE_STEP_BTN,":click"),function(){t.updateStartEnd(-1);}),c.on(u.TIMEBAR_CONFIG_CHANGE,function(e){e.type;var n=e.speed;t.currentSpeed=n;});},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(u.TIMELINE_START,null)):this.playHandler&&("undefined"!=typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(u.TIMELINE_END,null));},t.prototype.startPlay=function(){var t=this;return"undefined"!=typeof window?window.requestAnimationFrame(function(){var e=t.currentSpeed;t.frameCount%(60/e)==0&&(t.frameCount=0,t.updateStartEnd(1)),t.frameCount++,t.isPlay&&(t.playHandler=t.startPlay());}):void 0;},t.prototype.updateStartEnd=function(t){var e=this.tickRects,n=e.length,r=this.unselectedTickStyle,i=this.selectedTickStyle,o=this.endTickRectId;if(t>0?this.endTickRectId++:(e[this.endTickRectId].rect.attr(r),this.endTickRectId--),o!==this.startTickRectId)this.endTickRectId<this.startTickRectId&&(this.startTickRectId=this.endTickRectId);else{for(var a=this.startTickRectId;a<=this.endTickRectId-1;a++)e[a].rect.attr(r);this.startTickRectId=this.endTickRectId;}if(e[this.endTickRectId]){e[this.endTickRectId].rect.attr(i);var s=this.startTickRectId/n,c=this.endTickRectId/n;this.graph.emit(u.VALUE_CHANGE,{value:[s,c]});}},t.prototype.destory=function(){var t=this.sliceGroup;t.off("click"),t.off("dragstart"),t.off("dragover"),t.off("drop"),this.tickRects.forEach(function(t){var e=t.pickRect;e.off("mouseenter"),e.off("mouseleave");}),this.tickRects.length=0,t.off("".concat(u.PLAY_PAUSE_BTN,":click")),t.off("".concat(u.NEXT_STEP_BTN,":click")),t.off("".concat(u.PRE_STEP_BTN,":click")),t.off(u.TIMEBAR_CONFIG_CHANGE),this.sliceGroup.destroy();},t;}();},"1183ffe7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("e6fac422")),a=(0,i.__assign)({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label;}};},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"};}},o.default);},"118756dc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return"object"==typeof t&&null!==t;};},"11f3176a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e,n){return t<e?e:t>n?n:t;};},"120583e1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("118756dc")),o=r._(n("6e810311")),a=function(t){if(!(0,i.default)(t)||!(0,o.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e;};},"12360e27":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=parseInt;},"1251a8a2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("22b52967"),n("91b69874");},12663407:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("533b8f72")),i=function(t,e){if(void 0===e&&(e=[]),(0,r.default)(t))for(var n=0;n<t.length;n+=1)i(t[n],e);else e.push(t);return e;},o=i;},"127096f8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{BACKGROUND_STYLE:function(){return h;},DEFAULT_HANDLER_WIDTH:function(){return v;},FOREGROUND_STYLE:function(){return p;},HANDLER_STYLE:function(){return m;},TEXT_STYLE:function(){return y;},TICK_LABEL_STYLE:function(){return b;},TICK_LINE_STYLE:function(){return x;},default:function(){return _;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("22b52967"),a=n("f6fd9972"),s=r._(n("e804c7b5")),u=r._(n("acab6c7c")),c=i._(n("d61ac8e2")),l=n("10f09425"),f=this&&this.__assign||function(){return(f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},d=a.ext.transform,h={fill:"#416180",opacity:.05},g={fill:"#416180",opacity:.15,radius:5},p={fill:"#5B8FF9",opacity:.3,cursor:"grab"},v=2,m={width:2,height:24},y={textBaseline:"middle",fill:"#000",opacity:.45},b={textAlign:"center",textBaseline:"top",fill:"#607889",opacity:.35},x={lineWidth:1,stroke:"#ccc"},_=function(){function t(t){var e=this;this.prevX=0,this.onMouseDown=function(t){return function(n){e.currentHandler=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=(0,o.get)(r,"touches.0.pageX",r.pageX);var i=e.canvas.get("container");i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp);};},this.onMouseMove=function(t){t.stopPropagation(),t.preventDefault();var n=(0,o.get)(t,"touches.0.pageX",t.pageX),r=n-e.prevX,i=e.adjustOffsetRange(r/e.width);e.updateStartEnd(i),e.updateUI(),e.prevX=n;},this.onMouseUp=function(){e.currentHandler&&(e.currentHandler=void 0);var t=e.canvas.get("container");t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp));};var n=t.x,r=t.y,i=t.width,a=t.height,s=t.padding,u=t.trendCfg,l=t.controllerCfg,d=void 0===l?{speed:1}:l,v=t.backgroundStyle,_=void 0===v?{}:v,E=t.foregroundStyle,w=t.handlerStyle,M=t.textStyle,C=t.start,A=t.end,S=t.minText,D=t.maxText,I=t.group,T=t.graph,k=t.canvas,F=t.tick,N=void 0===F?{tickLabelStyle:{},tickLineStyle:{},tickLabelFormatter:function(t){return t;},ticks:[]}:F,O=t.type;this.graph=T,this.canvas=k,this.group=I,this.timeBarType=O,this.x=void 0===n?0:n,this.y=void 0===r?0:r,this.width=void 0===i?100:i,this.height=a,this.padding=void 0===s?10:s,this.ticks=N.ticks,this.trendCfg=u,this.controllerCfg=d,this.currentSpeed=d.speed||1,this.tickLabelFormatter=N.tickLabelFormatter,"trend"===O?this.backgroundStyle=f(f({},h),_):"simple"===O&&(this.backgroundStyle=f(f({},g),_)),this.foregroundStyle=f(f({},p),void 0===E?{}:E),this.handlerStyle=f(f({},m),void 0===w?{}:w),this.textStyle=f(f({},y),void 0===M?{}:M),this.tickLabelStyle=f(f({},b),N.tickLabelStyle),this.tickLineStyle=f(f({},x),N.tickLineStyle),this.currentMode=d.defaultTimeType||c.TIME_TYPE.RANGE,this.start=void 0===C?0:C,this.end=void 0===A?1:A,this.minText=void 0===S?"":S,this.maxText=void 0===D?"":D,this.fontFamily="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif",this.renderSlider();}return t.prototype.update=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=t.minText,s=t.maxText,u=t.start,c=t.end;this.start=Math.min(1,Math.max(u,0)),this.end=Math.min(1,Math.max(c,0)),(0,o.assign)(this,{x:e,y:n,width:r,height:i,minText:a,maxText:s}),this.updateUI();},t.prototype.setText=function(t,e){this.minTextShape.attr("text",t),this.maxTextShape.attr("text",e);},t.prototype.renderSlider=function(){var t=this,e=this.width,n=this.height,r=this.timeBarType;if("trend"===r&&(0,o.size)((0,o.get)(this.trendCfg,"data"))){var i=new s.default(f(f({x:this.x,y:this.y,width:e,height:n},this.trendCfg),{group:this.group}));this.trendComponent=i;}var a=this.group.addGroup({name:"slider-group"});a.addShape("rect",{attrs:f({x:0,y:0,width:e,height:n},this.backgroundStyle),name:"background"});var l=this.group.addGroup();"trend"===r?(this.minTextShape=l.addShape("text",{attrs:f({x:0,y:n/2+this.y,textAlign:"right",text:this.minText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"min-text-shape"}),this.maxTextShape=l.addShape("text",{attrs:f({y:n/2+this.y,textAlign:"left",text:this.maxText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"max-text-shape"})):(this.minTextShape=l.addShape("text",{attrs:f({x:0,y:this.y-10,textAlign:"center",text:this.minText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"min-text-shape"}),this.maxTextShape=l.addShape("text",{attrs:f({y:this.y-10,textAlign:"center",text:this.maxText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif",stroke:"#fff",lineWidth:5},this.textStyle),capture:!1,name:"max-text-shape"})),this.foregroundShape=this.group.addGroup().addShape("rect",{attrs:f({x:0,y:this.y,height:n},this.foregroundStyle),name:"foreground-shape"}),this.foregroundShape.on("mousedown",function(t){t.target.attr("cursor","grabbing");}),this.foregroundShape.on("mouseup",function(e){e.target.attr("cursor",t.foregroundStyle.cursor||"grab");});var h=(0,o.get)(this.handlerStyle,"width",2),g=(0,o.get)(this.handlerStyle,"height",24),p=this.group.addGroup({name:"minHandlerShape"});this.minHandlerShape=new u.default({name:"minHandlerShape",group:p,type:r,x:this.x,y:this.y,width:h,height:g,style:this.handlerStyle});var v=this.group.addGroup({name:"maxHandlerShape"});this.maxHandlerShape=new u.default({name:"maxHandlerShape",group:v,type:r,x:this.x,y:this.y,width:h,height:g,style:this.handlerStyle});var m=this.ticks,y=e/(m.length-1);this.tickPosList=[],this.textList&&this.textList.length&&this.textList.forEach(function(t){t.destroy();});var b=-1/0,x=this.tickLabelStyle.rotate;delete this.tickLabelStyle.rotate,this.textList=m.map(function(e,r){t.tickPosList.push(t.x+r*y),t.tickLabelFormatter?(i=t.tickLabelFormatter(e),!(0,o.isString)(i)&&i&&(i=e.date)):i=e.date;var i,a=t.x+r*y,s=t.y+n+5,u=t.group.addShape("text",{attrs:f({x:a,y:s,text:i,fontFamily:t.fontFamily||"Arial, sans-serif"},t.tickLabelStyle),name:"tick-label"});if((0,o.isNumber)(x)&&r!==m.length-1){var c=d([1,0,0,0,1,0,0,0,1],[["t",-a,-s],["r",x],["t",a-5,s+2]]);u.attr({textAlign:"left",matrix:c});}0===r?u.attr({textAlign:"left"}):r!==m.length-1&&u.attr({textAlign:"right"});var l=t.group.addShape("line",{attrs:f({x1:t.x+r*y,y1:t.y+n+2,x2:t.x+r*y,y2:t.y+n+6},t.tickLineStyle),name:"tick-line"});l.toBack();var h=u.getBBox();return h.minX>b?(u.show(),l.show(),b=h.minX+h.width+10):(u.hide(),l.hide()),u;}),this.controllerBtnGroup=new c.default(f({group:this.group,x:this.x,y:this.y+n+25,width:e,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),a.move(this.x,this.y),this.bindEvents(),this.currentMode===c.TIME_TYPE.SINGLE&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide());},t.prototype.bindEvents=function(){var t=this,e=this.group.find(function(t){return"minHandlerShape"===t.get("name");});e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var n=this.group.find(function(t){return"maxHandlerShape"===t.get("name");});n&&(n.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),n.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat(l.PLAY_PAUSE_BTN,":click"),function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus();}),this.group.on("".concat(l.NEXT_STEP_BTN,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI();}),this.group.on("".concat(l.PRE_STEP_BTN,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI();}),this.group.on(l.TIMEBAR_CONFIG_CHANGE,function(e){var n=e.type,r=e.speed;t.currentSpeed=r,t.currentMode=n,n===c.TIME_TYPE.SINGLE?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):n===c.TIME_TYPE.RANGE&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show());});},t.prototype.adjustTickIndex=function(t){for(var e=0;e<this.tickPosList.length-1;e++)if(this.tickPosList[e]<=t&&t<=this.tickPosList[e+1])return Math.abs(this.tickPosList[e]-t)<Math.abs(t-this.tickPosList[e+1])?e:e+1;return 0;},t.prototype.adjustOffsetRange=function(t){switch(this.currentHandler){case this.minHandlerShape:var e=0-this.start,n=1-this.start;return Math.min(n,Math.max(e,t));case this.maxHandlerShape:var e=0-this.end,n=1-this.end;return Math.min(n,Math.max(e,t));case this.foregroundShape:var e=0-this.start,n=1-this.end;return Math.min(n,Math.max(e,t));default:return 0;}},t.prototype.updateStartEnd=function(t){var e=this.ticks[this.adjustTickIndex(this.start*this.width)],n=this.ticks[this.adjustTickIndex(this.end*this.width)];if(!this.currentHandler){this.minText=this.tickLabelFormatter?this.tickLabelFormatter(e):null==e?void 0:e.date,this.maxText=this.tickLabelFormatter?this.tickLabelFormatter(n):null==n?void 0:n.date;return;}switch(this.currentHandler){case this.minHandlerShape:this.maxText=this.maxTextShape.attr("text"),this.start+=t,this.minText=this.tickLabelFormatter?this.tickLabelFormatter(e):e.date;break;case this.maxHandlerShape:this.minText=this.minTextShape.attr("text"),this.end+=t,this.maxText=this.tickLabelFormatter?this.tickLabelFormatter(n):n.date;break;case this.foregroundShape:this.start+=t,this.end+=t,this.minText=this.tickLabelFormatter?this.tickLabelFormatter(e):e.date,this.maxText=this.tickLabelFormatter?this.tickLabelFormatter(n):n.date;}},t.prototype.updateUI=function(){var t=this;this.start<0&&(this.start=0),this.start>1&&(this.start=1),this.end>1&&(this.end=1),this.end<0&&(this.end=0);var e=this.x+this.start*this.width,n=this.x+this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",n-e);var r=(0,o.get)(this.handlerStyle,"width",v);this.setText(this.minText,this.maxText);var i=this.dodgeText([e,n]),a=i[0],s=i[1];this.minHandlerShape.setX(e-r/2),(0,o.each)(a,function(e,n){return t.minTextShape.attr(n,e);}),this.maxHandlerShape.setX(n-r/2),(0,o.each)(s,function(e,n){return t.maxTextShape.attr(n,e);}),this.currentMode===c.TIME_TYPE.RANGE?this.graph.emit(l.VALUE_CHANGE,{value:[this.start,this.end].sort()}):this.currentMode===c.TIME_TYPE.SINGLE&&this.graph.emit(l.VALUE_CHANGE,{value:[this.end,this.end]});},t.prototype.dodgeText=function(t){var e,n,r=(0,o.get)(this.handlerStyle,"width",v),i=this.minTextShape,a=this.maxTextShape,s=t[0],u=t[1],c=!1;s>u&&(s=(e=[u,s])[0],u=e[1],i=(n=[a,i])[0],a=n[1],c=!0);var l=i.getBBox(),f=a.getBBox(),d=null,h=null;return"trend"===this.timeBarType?(d=s-l.width<this.x+2?{x:s+r/2+2,textAlign:"left"}:{x:s-r/2-2,textAlign:"right"},h=u+f.width>this.x+this.width?{x:u-r/2-2,textAlign:"right"}:{x:u+r/2+2,textAlign:"left"}):"simple"===this.timeBarType&&(d=i.attr("x")>l.width?{x:s,textAlign:"center"}:{x:s,textAlign:"left"},h=a.attr("x")>this.width-f.width?{x:u,textAlign:"right"}:{x:u,textAlign:"center"}),c?[h,d]:[d,h];},t.prototype.startPlay=function(){var t=this;return"undefined"!=typeof window?window.requestAnimationFrame(function(){var e=t.ticks,n=t.width,r=t.currentSpeed,i=n/e.length,o=t.adjustOffsetRange(i/((10-r)*1e3/60)/t.width);t.updateStartEnd(o),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay());}):void 0;},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(l.TIMELINE_START,null)):this.playHandler&&("undefined"!=typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(l.TIMELINE_END,null));},t.prototype.destory=function(){this.graph.off(l.VALUE_CHANGE,function(){});var t=this.group,e=t.find(function(t){return"minHandlerShape"===t.get("name");});e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var n=t.find(function(t){return"maxHandlerShape"===t.get("name");});n&&(n.off("maxHandlerShape-handler:mousedown"),n.off("maxHandlerShape-handler:touchstart"),n.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("".concat(l.PLAY_PAUSE_BTN,":click")),t.off("".concat(l.NEXT_STEP_BTN,":click")),t.off("".concat(l.PRE_STEP_BTN,":click")),t.off(l.TIMEBAR_CONFIG_CHANGE),t.destroy(),this.trendComponent&&this.trendComponent.destory();},t;}();},"13020dc4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{polyIn:function(){return r;},polyInOut:function(){return o;},polyOut:function(){return i;}});var r=function t(e){function n(t){return Math.pow(t,e);}return e=+e,n.exponent=t,n;}(3),i=function t(e){function n(t){return 1-Math.pow(1-t,e);}return e=+e,n.exponent=t,n;}(3),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;}(3);},"130ef5a4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("22b52967"),i=" \n\v\f\r \xa0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029",o=RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig");function s(t){if(!t)return null;if((0,r.isArray)(t))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(o,function(t,r,i){var o=[],s=r.toLowerCase();if(i.replace(a,function(t,e){e&&o.push(+e);}),"m"===s&&o.length>2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else for(;o.length>=e[s]&&(n.push([r].concat(o.splice(0,e[s]))),e[s]););return"";}),n;}},"136d9fb9":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=function(t){for(var e,n,r=[];null==t?void 0:t.length;)!function(){var o=t.pop();r.push(o),null===(e=o.in.reverse())||void 0===e||e.forEach(function(t){!t.merged&&(void 0===t.barycenter||void 0===o.barycenter||t.barycenter>=o.barycenter)&&i(o,t);}),null===(n=o.out)||void 0===n||n.forEach(function(e){e.in.push(o),0==--e.indegree&&t.push(e);});}();var o=r.filter(function(t){return!t.merged;}),a=["vs","i","barycenter","weight"];return o.map(function(t){var e={};return null==a||a.forEach(function(n){void 0!==t[n]&&(e[n]=t[n]);}),e;});},i=function(t,e){var n,r=0,i=0;t.weight&&(r+=t.barycenter*t.weight,i+=t.weight),e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),t.vs=null===(n=e.vs)||void 0===n?void 0:n.concat(t.vs),t.barycenter=r/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0;};e.default=function(t,e){var n,i,o,a={};return null==t||t.forEach(function(t,e){a[t.v]={i:e,indegree:0,in:[],out:[],vs:[t.v]};var n=a[t.v];void 0!==t.barycenter&&(n.barycenter=t.barycenter,n.weight=t.weight);}),null===(n=e.edges())||void 0===n||n.forEach(function(t){var e=a[t.v],n=a[t.w];void 0!==e&&void 0!==n&&(n.indegree++,e.out.push(a[t.w]));}),r(null===(o=(i=Object.values(a)).filter)||void 0===o?void 0:o.call(i,function(t){return!t.indegree;}));};},"137418b1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return h;}});var r,i=n("777fffbe"),o=n("c966c938"),a=i._(n("b208d868")),s=n("22b52967"),u=n("168feef4"),c=n("5fab14e3"),l=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),f=this&&this.__assign||function(){return(f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},d=["click","mouseenter"],h=function(t){function e(e){return t.call(this,e)||this;}return l(e,t),e.prototype.getDefaultCfgs=function(){return{data:{},position:"top",padding:8,margin:8,offsetX:0,offsetY:0,layout:"horizontal",flipPage:!1,containerStyle:{},align:void 0,horiSep:8,vertiSep:8,filter:{enable:!1,trigger:"click"}};},e.prototype.init=function(){this.formatArray("padding"),this.formatArray("margin");var t=this.get("filter")||{};t.multiple&&"mouseenter"===t.trigger&&this.set("multiple",!1);var e=this.get("align");if(!e){var n=this.get("position").split("-");n.includes("left")&&(e="left"),e=n.includes("right")?"right":"center",this.set("align",e);}var r=this.get("graph").get("container"),i=(0,o.createDom)("<div class='g6-legend-container' style=\"position: absolute;\"></div>");r.appendChild(i),this.set("container",i);var a=this.render();(0,o.modifyCSS)(i,this.getContainerPos(a)),this.bindEvents();},e.prototype.getContainerPos=function(t){void 0===t&&(t=[0,0]);var e=this.get("graph"),n=this.get("offsetX"),r=this.get("offsetY"),i=this.get("margin"),o=this.get("position").split("-"),a={top:0,right:1,bottom:2,left:3},s={left:(e.getWidth()-t[0])/2+0,top:(e.getHeight()-t[1])/2+0};return o.forEach(function(n){var r=i[a[n]],o=n;switch(n){case"top":case"left":r+=0;break;case"bottom":r=e.getHeight()-t[1]-r+0,o="top";break;default:r=e.getWidth()-t[0]-r+0,o="left";}s[o]=r;}),s.top+=r+e.getContainer().offsetTop,s.left+=n+e.getContainer().offsetLeft,Object.keys(s).forEach(function(t){s[t]="".concat(s[t],"px");}),s;},e.prototype.bindEvents=function(){var t=this,e=t.get("filter");if(e&&e.enable){var n=e.trigger||"click";d.includes(n)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),n="click");var r=t.get("legendCanvas");"mouseenter"===n?(r.on("node-container:mouseenter",function(e){return t.filterData(e);}),r.on("node-container:mouseleave",function(e){t.clearFilter(),t.clearActiveLegend();})):(r.on("node-container:click",function(e){return t.filterData(e);}),r.on("click",function(e){e.target&&e.target.isCanvas&&e.target.isCanvas()&&(t.clearFilter(),t.clearActiveLegend());}));}},e.prototype.changeData=function(t){this.set("data",t);var e=this.render();(0,o.modifyCSS)(this.get("container"),this.getContainerPos(e));},e.prototype.activateLegend=function(t){var e=this.get("filter");(null==e?void 0:e.multiple)||this.clearActiveLegend();var n=t.get("parent");n.get("active")?(n.set("active",!1),this.findLegendItemsByState("active").length&&n.set("inactive",!0)):(n.set("inactive",!1),n.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach(function(t){t.set("inactive",!0);}):this.clearActiveLegend();var r=(null==e?void 0:e.legendStateStyles)||{},i=(null==r?void 0:r.inactive)||{opacity:.5,"text-shape":{opacity:.5}},o=i["text-shape"]||{};this.findLegendItemsByState("inactive").forEach(function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(f(f({},n.get("oriAttrs")),i)),r.attr(f(f({},r.get("oriAttrs")),o));});var a=(null==r?void 0:r.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},s=a["text-shape"]||{};this.findLegendItemsByState("active").forEach(function(t){var e=t.get("children"),n=e[0],r=e[1];n.attr(f(f({},n.get("oriAttrs")),a)),r.attr(f(f({},r.get("oriAttrs")),s));});},e.prototype.findLegendItemsByState=function(t,e,n){void 0===e&&(e="all"),void 0===n&&(n=!0);var r=this.get("legendCanvas").find(function(t){return"root"===t.get("name");}),i=r.find(function(t){return"node-group"===t.get("name");}),o=r.find(function(t){return"edge-group"===t.get("name");});return"node"===e?i.get("children").filter(function(e){return!!e.get(t)===n;}):"edge"===e?o.get("children").filter(function(e){return!!e.get(t)===n;}):i.get("children").filter(function(e){return!!e.get(t)===n;}).concat(o.get("children").filter(function(e){return!!e.get(t)===n;}));},e.prototype.clearActiveLegend=function(){var t=this.get("legendCanvas").find(function(t){return"root"===t.get("name");});[t.find(function(t){return"node-group"===t.get("name");}),t.find(function(t){return"edge-group"===t.get("name");})].forEach(function(t){t.get("children").forEach(function(t){t.set("active",!1),t.set("inactive",!1);var e=t.get("children"),n=e[0],r=e[1];n.attr(n.get("oriAttrs")),r.attr(r.get("oriAttrs"));});});},e.prototype.filterData=function(t){var e=this.get("filter"),n=null==e?void 0:e.filterFunctions;if(e&&n){var r=this.get("legendCanvas"),i=this.get("graph"),o=e.graphActiveState||"active",a=e.graphInactiveState||"inactive",s=e.multiple;this.clearFilter(),s||this.clearActiveLegend(),this.activateLegend(t.target);var u=r.find(function(t){return"root"===t.get("name");}),c=u.find(function(t){return"node-group"===t.get("name");}),l=u.find(function(t){return"edge-group"===t.get("name");}),f=c.get("children").filter(function(t){return t.get("active");}),d=l.get("children").filter(function(t){return t.get("active");}),h=0,g=["getNodes","getEdges"];g.forEach(function(t){i[t]().forEach(function(e){var r=!1;("getNodes"===t?f:d).forEach(function(t){var i=n[t.get("id")];r=r||i(e.getModel());}),r?(i.setItemState(e,a,!1),i.setItemState(e,o,!0),h++):(i.setItemState(e,o,!1),i.setItemState(e,a,!0));});}),h||g.forEach(function(t){i[t]().forEach(function(t){i.clearItemStates(t,[a]);});});}},e.prototype.clearFilter=function(){var t=this.get("graph"),e=this.get("filter");if(e){var n=e.graphActiveState||"active",r=e.graphInactiveState||"inactive";t.getNodes().forEach(function(e){t.clearItemStates(e,[n,r]);}),t.getEdges().forEach(function(e){t.clearItemStates(e,[n,r]);});}},e.prototype.render=function(){var t,e=this;this.processData();var n=this.get("legendCanvas");n?n.clear():n=new c.Canvas({container:this.get("container"),width:200,height:200});var r=n.addGroup({name:"root"}),i=r.addGroup({name:"node-group"}),o=r.addGroup({name:"edge-group"});this.set("legendCanvas",n);var a=this.get("itemsData"),s=[i,o];["nodes","edges"].forEach(function(t,n){a[t].forEach(function(r){var i,o,a=s[n].addGroup({id:r.id,name:"node-container"}),c=r.type,l=e.getShapeSize(r),d=l.width,h=l.height,g=l.r,p=e.getStyle(t.substr(0,4),r);switch(r.type){case"circle":default:o={r:g,x:0,y:0};break;case"rect":o={width:d,height:h,x:-d/2,y:-h/2};break;case"ellipse":o={rx:d,ry:h,x:0,y:0},c="ellipse";break;case"line":o={x1:-d/2,y1:0,x2:d/2,y2:0},c="line";break;case"quadratic":o={path:[["M",-d/2,0],["Q",0,d/2,d/2,0]]},c="path";break;case"cubic":o={path:[["M",-d/2,0],["C",-d/6,d/2,d/6,-d/2,d/2,0]]},c="path";break;case"diamond":o={path:[["M",0,-h],["L",d,0],["L",0,h],["L",-d,0],["Z"]]},c="path";break;case"triangle":o={path:[["M",-d,h],["L",0,-h],["L",d,h],["Z"]]},c="path";break;case"star":o={path:u.Util.getStarPath(3*g,1.2*g)},c="path";}var v=a.addShape(c,{attrs:f(f({},o),p),name:"".concat(r.type,"-node-keyShape"),oriAttrs:f({opacity:1},p)});if(r.label){var m=v.getBBox(),y=(null===(i=r.labelCfg)||void 0===i?void 0:i.style)||{},b=f({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},y);a.addShape("text",{attrs:f({x:m.maxX+4,y:0,text:r.label},b),className:"legend-label",name:"".concat(r.type,"-node-text"),oriAttrs:b});}});});var l=this.get("padding"),d=r.find(function(t){return"title-container"===t.get("name");}),h={height:0,maxY:0,width:0};if(this.get("title")){d||(d=r.addGroup({name:"title-container"}));var g={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:l[0]},p=this.get("titleConfig")||{},v=Object.assign(g,p.style||{});t=d.addShape("text",{attrs:f({text:this.get("title")},v)}),h=d.getCanvasBBox(),d.setMatrix([1,0,0,0,1,0,p.offsetX,p.offsetY,1]);}this.layoutItems();var m=r.getCanvasBBox(),y=i.getCanvasBBox(),b=y.minX<0?Math.abs(y.minX)+l[3]:l[3],x=h.maxY<y.minY?Math.abs(h.maxY-y.minY)+l[0]:h.maxY+l[0],_=[1,0,0,0,1,0,b,x,1];i.setMatrix(_);var E=[(m=r.getCanvasBBox()).minX+m.width+l[1],m.minY+m.height+l[2]];if(t){var p=f({position:"center",offsetX:0,offsetY:0},this.get("titleConfig"));h=d.getCanvasBBox();var w=d.getMatrix()||[1,0,0,0,1,0,0,0,1];"center"===p.position?w[6]=E[0]/2+p.offsetX:"right"===p.position?(w[6]=E[0]-l[3]+p.offsetX,t.attr({textAlign:"right"})):(w[6]=l[3]+p.offsetX,t.attr({textAlign:"left"})),d.setMatrix(w),h=d.getCanvasBBox(),_=[1,0,0,0,1,0,b=y.minX<0?Math.abs(y.minX)+l[3]:l[3],x=y.minY<h.maxY?Math.abs(h.maxY-y.minY)+l[0]:h.maxY+l[0],1],i.setMatrix(_);var M=[1,0,0,0,1,0,b,x,1];"vertical"===this.get("layout")?M[6]+=y.maxX+this.get("horiSep"):M[7]+=y.maxY+this.get("vertiSep"),o.setMatrix(M);}else{y=i.getCanvasBBox();var C=[1,0,0,0,1,0,0,0,1];"vertical"===this.get("layout")?C[6]+=_[6]+y.maxX+this.get("horiSep"):C[7]+=_[7]+y.maxY+this.get("vertiSep"),o.setMatrix(C);}m=r.getCanvasBBox(),y=i.getCanvasBBox(),_=i.getMatrix()||[1,0,0,0,1,0,0,0,1];var A=o.getMatrix()||[1,0,0,0,1,0,0,0,1],S=o.getCanvasBBox();E=[Math.max(y.width+_[6],S.width+A[6])+l[1],Math.max(y.height+_[7],S.height+A[7])+l[2]],n.changeSize(E[0],E[1]);var D=this.get("containerStyle"),I=r.getMatrix()||[1,0,0,0,1,0,0,0,1],T=u.Util.invertMatrix({x:0,y:0},I);return r.addShape("rect",{attrs:f({x:T.x+(D.lineWidth||1),y:T.y+(D.lineWidth||1),width:E[0]-2*(D.lineWidth||1),height:E[1]-2*(D.lineWidth||1),fill:"#f00",stroke:"#000",lineWidth:1,opacity:.5},D),name:"legend-back-rect",capture:!1}).toBack(),E;},e.prototype.layoutItems=function(){var t=this.get("legendCanvas"),e=this.get("horiSep"),n=this.get("vertiSep"),r=this.get("layout"),i=this.get("align"),o=[0,0],a=t.find(function(t){return"root"===t.get("name");}),s=a.find(function(t){return"node-group"===t.get("name");}),u=a.find(function(t){return"edge-group"===t.get("name");}),c={min:0,max:-1/0},l=-1/0;s.get("children").forEach(function(t,i){0===i&&(c.min=o[0]);var a=t.get("children")[0],s=t.getCanvasBBox(),u=a.getBBox(),f=u.width,d=u.height,h=0,g=0,p=0;"vertical"===r?(g=o[1],p=o[0]+f/2,o[0]=p+s.height+n,h=s.maxX+g+f/2):(g=o[0]+f/2,p=o[1],o[0]=g+s.width+e,h=s.maxY+p+d/2),o[0]>c.max&&(c.max=o[0]),h>l&&(l=h),t.setMatrix([1,0,0,0,1,0,g,p,1]);});var f=c.max-c.min,d={min:0,max:-1/0},h=s.getCanvasBBox();o[0]=0,o[1]="vertical"===r?h.maxX+e:h.maxY+n,u.get("children").forEach(function(t,i){0===i&&(d.min=o[0]);var a=t.get("children")[0],s=t.getCanvasBBox(),u=a.getBBox(),c=u.width,l=u.height,f=0,h=0;"vertical"===r?(f=o[1],h=o[0],o[0]=h+s.height+n,t.setMatrix([1,0,0,0,1,0,0,h+l/2,1])):(f=o[0],h=o[1],o[0]=f+s.width+e,t.setMatrix([1,0,0,0,1,0,f+c/2,0,1])),o[0]>d.max&&(d.max=o[0]);});var g=d.max-d.min;if(i&&""!==i&&"left"!==i){var p=f-g,v="center"===i?Math.abs(p)/2:Math.abs(p);(p<0?s:u).get("children").forEach(function(t){var e=t.getMatrix()||[1,0,0,0,1,0,0,0,1];"vertical"===r?e[7]+=v:e[6]+=v,t.setMatrix(e);});}},e.prototype.processData=function(){var t=this.get("data"),e={nodes:[],edges:[]};t.nodes&&(t.nodes.sort(function(t,e){return t.order-e.order;}),t.nodes.forEach(function(t){var n,r,i,o,a,u=t.size||[(null===(n=t.style)||void 0===n?void 0:n.width)||(null===(r=t.style)||void 0===r?void 0:r.r)||8,(null===(i=t.style)||void 0===i?void 0:i.height)||(null===(o=t.style)||void 0===o?void 0:o.r)||8],c=(null===(a=t.labelCfg)||void 0===a?void 0:a.style)||{};e.nodes.push({id:t.id||(0,s.uniqueId)(),type:t.type||"circle",style:f({},t.style),order:t.order,label:t.label,itemType:"node",size:u,labelCfg:{position:"right",style:f({fontFamily:"Arial"},c)}});})),t.edges&&(t.edges.sort(function(t,e){return t.order-e.order;}),t.edges.forEach(function(t){var n,r,i=t.type||"line";"cubic-horizontal"===t.type&&(i="cubic");var o=(null===(n=t.labelCfg)||void 0===n?void 0:n.style)||{},a=t.size||[(null===(r=t.style)||void 0===r?void 0:r.width)||8,1];e.edges.push({id:t.id||(0,s.uniqueId)(),type:i,size:a,style:f({lineWidth:(0,s.isArray)(a)?a[1]:1},t.style),order:t.order,label:t.label,itemType:"edge",labelCfg:{position:"right",style:f({fontFamily:"Arial"},o)}});})),this.set("itemsData",e);},e.prototype.getContainer=function(){return this.get("container");},e.prototype.formatArray=function(t){var e=this.get(t);if((0,s.isNumber)(e))this.set(t,[e,e,e,e]);else if((0,s.isArray)(e))switch(e.length){case 0:this.set(t,[0,0,0,0]);break;case 1:this.set(t,[e[0],e[0],e[0],e[0]]);break;case 2:this.set(t,[e[0],e[1],e[0],e[1]]);break;case 3:this.set(t,[e[0],e[1],e[2],e[1]]);}return this.get(t);},e.prototype.getShapeSize=function(t){var e,n,r;return t.size&&((0,s.isArray)(t.size)?(e=t.size[0],n=t.size[1]||t.size[0],r=t.size[0]/2):(0,s.isNumber)(t.size)&&(e=t.size,n=t.size,r=t.size/2)),t.style&&(t.style.width&&(e=t.style.width),t.style.height&&(n=t.style.height),t.style.r&&(r=t.style.r)),r||(r=5),e||(e=r),n||(n=r),{width:e,height:n,r:r};},e.prototype.getStyle=function(t,e){return f(f({},"node"===t?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1}),e.style||{});},e.prototype.destroy=function(){var t=this.get("legendCanvas");null==t||t.destroy();var e=this.get("graph").get("container"),n=this.get("container");e.removeChild(n);},e;}(a.default);},"1383492e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{add:function(){return l;},ceil:function(){return g;},clone:function(){return a;},copy:function(){return u;},create:function(){return o;},cross:function(){return I;},dist:function(){return G;},distance:function(){return _;},div:function(){return z;},divide:function(){return h;},dot:function(){return D;},equals:function(){return L;},exactEquals:function(){return P;},floor:function(){return p;},forEach:function(){return H;},fromValues:function(){return s;},inverse:function(){return A;},len:function(){return X;},length:function(){return w;},lerp:function(){return T;},max:function(){return m;},min:function(){return v;},mul:function(){return R;},multiply:function(){return d;},negate:function(){return C;},normalize:function(){return S;},random:function(){return k;},round:function(){return y;},scale:function(){return b;},scaleAndAdd:function(){return x;},set:function(){return c;},sqrDist:function(){return Y;},sqrLen:function(){return U;},squaredDistance:function(){return E;},squaredLength:function(){return M;},str:function(){return B;},sub:function(){return j;},subtract:function(){return f;},transformMat4:function(){return F;},transformQuat:function(){return N;},zero:function(){return O;}});var r,i=n("852bbaa9")._(n("e89ef36f"));function o(){var t=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t;}function a(t){var e=new i.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e;}function s(t,e,n,r){var o=new i.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o;}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t;}function c(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,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[3]=e[3]+n[3],t;}function f(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;}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[3]=e[3]*n[3],t;}function h(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;}function g(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t;}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t;}function v(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[3]=Math.min(e[3],n[3]),t;}function m(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[3]=Math.max(e[3],n[3]),t;}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t;}function b(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;}function x(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;}function _(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2],e[3]-t[3]);}function E(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+r*r+i*i+o*o;}function w(t){return Math.hypot(t[0],t[1],t[2],t[3]);}function M(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i;}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t;}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t;}function S(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a,t;}function D(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3];}function I(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],o=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],u=n[1]*r[3]-n[3]*r[1],c=n[2]*r[3]-n[3]*r[2],l=e[0],f=e[1],d=e[2],h=e[3];return t[0]=f*c-d*u+h*s,t[1]=-(l*c)+d*a-h*o,t[2]=l*u-f*a+h*i,t[3]=-(l*s)+f*o-d*i,t;}function T(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t;}function k(t,e){e=e||1;do s=(n=2*i.RANDOM()-1)*n+(r=2*i.RANDOM()-1)*r;while(s>=1)do u=(o=2*i.RANDOM()-1)*o+(a=2*i.RANDOM()-1)*a;while(u>=1)var n,r,o,a,s,u,c=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*r,t[2]=e*o*c,t[3]=e*a*c,t;}function F(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t;}function N(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2],c=n[3],l=c*r+s*o-u*i,f=c*i+u*r-a*o,d=c*o+a*i-s*r,h=-a*r-s*i-u*o;return t[0]=l*c+-(h*a)+-(f*u)- -(d*s),t[1]=f*c+-(h*s)+-(d*a)- -(l*u),t[2]=d*c+-(h*u)+-(l*s)- -(f*a),t[3]=e[3],t;}function O(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t;}function B(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";}function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3];}function L(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],s=e[0],u=e[1],c=e[2],l=e[3];return Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-u)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-l)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(l));}var j=f,R=d,z=h,G=_,Y=E,X=w,U=M,H=(r=o(),function(t,e,n,i,o,a){var s,u;for(e||(e=4),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],r[3]=t[s+3],o(r,r,a),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2],t[s+3]=r[3];return t;});},"13ff8ce6":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=function(){function t(t){this.disp=[],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;}return t.prototype.layout=function(){var t=this.positions,e=[],n=this.iterations,r=this.width/10;this.maxDisplace=r,this.disp=e;for(var i=0;i<n;i++)t.forEach(function(t,n){e[n]={x:0,y:0};}),this.getRepulsion(),this.updatePositions();return t;},t.prototype.getRepulsion=function(){var t=this,e=t.positions,n=t.nodes,r=t.disp,i=t.k,o=t.radii||[];e.forEach(function(a,s){r[s]={x:0,y:0},e.forEach(function(e,u){if(s!==u&&o[s]===o[u]){var c=a[0]-e[0],l=a[1]-e[1],f=Math.sqrt(c*c+l*l);if(0===f){f=1;var d=s>u?1:-1;c=.01*d,l=.01*d;}if(f<t.nodeSizeFunc(n[s])/2+t.nodeSizeFunc(n[u])/2){var h=i*i/f;r[s].x+=c/f*h,r[s].y+=l/f*h;}}});});},t.prototype.updatePositions=function(){var t=this.positions,e=this.disp,n=this.speed,r=this.strictRadial,i=this.focusID,o=this.maxDisplace||this.width/10;r&&e.forEach(function(e,n){var r=t[n][0]-t[i][0],o=t[n][1]-t[i][1],a=Math.sqrt(r*r+o*o),s=o/a,u=-r/a,c=Math.sqrt(e.x*e.x+e.y*e.y),l=Math.acos((s*e.x+u*e.y)/c);l>Math.PI/2&&(l-=Math.PI/2,s*=-1,u*=-1);var f=Math.cos(l)*c;e.x=s*f,e.y=u*f;});var a=this.radii;t.forEach(function(s,u){if(u!==i){var c=Math.sqrt(e[u].x*e[u].x+e[u].y*e[u].y);if(c>0&&u!==i){var l=Math.min(n/800*o,c);if(s[0]+=e[u].x/c*l,s[1]+=e[u].y/c*l,r){var f=s[0]-t[i][0],d=s[1]-t[i][1],h=Math.sqrt(f*f+d*d);f=f/h*a[u],d=d/h*a[u],s[0]=t[i][0]+f,s[1]=t[i][1]+d;}}}});},t;}();e.default=r;},"1462d240":function(t,e,n){"use strict";function r(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height};}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"151aa8ff":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;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});},"155fe01c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6e810311")),i=function(t){return(0,r.default)(t,"Function");};},"15c5543e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("7048382e"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e;}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,o.each)(e||n,function(t,e){a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t);}),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var s=r.childNodes,u=s.length-1;u>=0;u--)r.removeChild(s[u]);r.appendChild(i);}else r.innerHTML=i;}else r.innerHTML=n.html;},e;}(r._(n("1bfab17d")).default);},"15d62999":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return h;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("818e8129")),a=r._(n("528465ee")),s=n("85b3418c"),u=n("22b52967"),c="bboxCache",l="bboxCanvasCache",f="sizeCache",d="anchorPointsCache",h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{type:"combo",nodes:[],edges:[],combos:[]};},e.prototype.getShapeCfg=function(t){var e=this.get("styles"),n=this.get("bbox");if(e&&n){var r=(0,u.isNumber)(t.size)?[t.size,t.size]:t.size,o=(0,u.isNumber)(t.fixSize)?[t.fixSize,t.fixSize]:t.fixSize,s=r||o||a.default.defaultCombo.size,c={r:(Math.max(n.width,n.height)||Math.max(s[0],s[1]))/2,width:n.width||s[0],height:n.height||s[1]};t.style=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},e),t.style),c);var l=t.padding||a.default.defaultCombo.padding;return(0,u.isNumber)(l)?(c.r+=l,c.width+=2*l,c.height+=2*l):(c.r=c.r+Math.max.apply(Math,l),c.width+=l[1]+l[3]||2*l[1],c.height+=l[0]+l[2]||2*l[0]),this.set(f,c),t;}return t;},e.prototype.calculateCanvasBBox=function(){if(!this.destroyed){var t=this.get("keyShape"),e=this.get("group"),n=this.get(c)||{},r=n.x,i=n.x,o=this.get(f),a=(0,s.getBBox)(t,e);return a.centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2,o?(o.width=Math.max(o.width,a.width),o.height=Math.max(o.height,a.height),this.set(f,o),"circle"===t.get("type")?(a.width=2*o.r,a.height=2*o.r):(a.width=o.width,a.height=o.height),a.minX=a.centerX-a.width/2,a.minY=a.centerY-a.height/2,a.maxX=a.centerX+a.width/2,a.maxY=a.centerY+a.height/2):(a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a.centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2),a.x=a.minX,a.y=a.minY,(a.x!==r||a.y!==i)&&this.set(d,null),a;}},e.prototype.getChildren=function(){return{nodes:this.getNodes(),combos:this.getCombos()};},e.prototype.getNodes=function(){return this.get("nodes");},e.prototype.getCombos=function(){return this.get("combos");},e.prototype.addChild=function(t){switch(t.getType()){case"node":this.addNode(t);break;case"combo":this.addCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1;}return!0;},e.prototype.addCombo=function(t){return this.get("combos").push(t),!0;},e.prototype.addNode=function(t){return this.get("nodes").push(t),!0;},e.prototype.removeChild=function(t){switch(t.getType()){case"node":this.removeNode(t);break;case"combo":this.removeCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1;}return!0;},e.prototype.removeCombo=function(t){if(t){var e=this.getCombos(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0);}},e.prototype.removeNode=function(t){if(t){var e=this.getNodes(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0);}},e.prototype.getUpdateType=function(t){},e.prototype.getBBox=function(){return this.set(l,null),this.calculateCanvasBBox();},e.prototype.clearCache=function(){this.set(c,null),this.set(l,null),this.set(d,null);},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),this.set(f,null),this.set("bbox",null),e.remove(),this._cfg=null,this.destroyed=!0;}},e;}(o.default);},16047361:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r,i=(Object.defineProperty(r=function t(){var e=this;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function");})(this,t),this.arr=[],this.keyIndice=new Map,this.size=function(){return e.arr.length;},this.keys=function(){return e.arr.map(function(t){return t.key;});},this.has=function(t){return e.keyIndice.has(t);},this.priority=function(t){var n=e.keyIndice.get(t);if(void 0!==n)return e.arr[n].priority;},this.swap=function(t,n){var r=e.arr,i=e.keyIndice,o=[r[t],r[n]],a=o[0],s=o[1];r[t]=s,r[n]=a,i.set(a.key,n),i.set(s.key,t);},this.innerDecrease=function(t){for(var n,r,i=e.arr,o=i[t].priority,a=t;0!==a&&!((null===(r=i[n=a>>1])||void 0===r?void 0:r.priority)<o);)e.swap(a,n),a=n;},this.heapify=function(t){var n=e.arr,r=t<<1,i=r+1,o=t;r<n.length&&(o=n[r].priority<n[o].priority?r:o,i<n.length&&(o=n[i].priority<n[o].priority?i:o),o!==t&&(e.swap(t,o),e.heapify(o)));},this.min=function(){if(0===e.size())throw Error("Queue underflow");return e.arr[0].key;},this.add=function(t,n){var r=e.keyIndice,i=e.arr;if(!r.has(t)){var o=i.length;return r.set(t,o),i.push({key:t,priority:n}),e.innerDecrease(o),!0;}return!1;},this.removeMin=function(){e.swap(0,e.arr.length-1);var t=e.arr.pop();return e.keyIndice.delete(t.key),e.heapify(0),t.key;},this.decrease=function(t,n){if(!e.has(t))throw Error("There's no key named ".concat(t));var r=e.keyIndice.get(t);if(n>e.arr[r].priority)throw Error("New priority is greater than current priority.Key: ".concat(t," Old: + ").concat(e.arr[r].priority," New: ").concat(n));e.arr[r].priority=n,e.innerDecrease(r);};},"prototype",{writable:!1}),r);},"1675e698":function(t,e,n){"use strict";function r(t){return t>=48&&t<=57||43===t||45===t||46===t;}function i(t){return t>=48&&t<=57;}n.d(e,"__esModule",{value:!0}),n.e(e,{isDigit:function(){return i;},isDigitStart:function(){return r;}});},"168feef4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{AbstractEvent:function(){return d.default;},AbstractGraph:function(){return s.default;},AbstractLayout:function(){return f.default;},Arrow:function(){return u.Arrow;},BaseGlobal:function(){return _;},Combo:function(){return v.default;},Edge:function(){return g.default;},Hull:function(){return p.default;},Marker:function(){return u.Marker;},Node:function(){return h.default;},Shape:function(){return u.default;},Util:function(){return l.default;},default:function(){return E;},registerBehavior:function(){return x;},registerCombo:function(){return b;},registerEdge:function(){return y;},registerNode:function(){return m;}});var r=n("d1751d7c"),i=n("777fffbe"),o=n("852bbaa9"),a=i._(n("b9a68752")),s=i._(n("eac91f5f")),u=o._(n("24d28ee5")),c=i._(n("528465ee")),l=i._(n("28f3dbcc")),f=i._(n("342e1d35")),d=i._(n("72ec38af")),h=i._(n("818e8129")),g=i._(n("d7d39f0f")),p=i._(n("e84a312f")),v=i._(n("15d62999"));r._(n("52c474fc"),e);var m=u.default.registerNode,y=u.default.registerEdge,b=u.default.registerCombo,x=a.default.registerBehavior,_=c.default,E={version:c.default.version,AbstractGraph:s.default,BaseGlobal:_,Util:l.default,Shape:u.default,Node:h.default,Edge:g.default,Combo:v.default,Hull:p.default,registerNode:u.default.registerNode,registerEdge:u.default.registerEdge,registerCombo:u.default.registerCombo,registerBehavior:a.default.registerBehavior,Arrow:u.Arrow,Marker:u.Marker,AbstractLayout:f.default,AbstractEvent:d.default};},"16c6b132":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"Mask",{enumerable:!0,get:function(){return i;}});var r=n("852bbaa9")._(n("5b220c3d")),i=function(t){return(0,r.useEffect)(function(){if(t.visible)document.body.style.overflow="hidden";else if(document.body.style.overflow){var e;document.body.style.overflow="",null===(e=t.onClose)||void 0===e||e.call(t);}},[t.visible]),t.visible?r.default.createElement("div",{className:"dumi-default-search-modal"},r.default.createElement("div",{className:"dumi-default-search-modal-mask",onClick:t.onMaskClick}),r.default.createElement("div",{className:"dumi-default-search-modal-content"},t.children)):null;};},"172bf417":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isNormalizedArray",{enumerable:!0,get:function(){return i;}});var r=n("3cdc68da");function i(t){return(0,r.isAbsoluteArray)(t)&&t.every(function(t){var e=t[0];return"ACLMQZ".includes(e);});}},"1781def1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe")._(n("41d8b444")),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=RegExp(i.source,"g");function a(t,e){var n,a,s,u,c,l=i.lastIndex=o.lastIndex=0,f=-1,d=[],h=[];for(t+="",e+="";(s=i.exec(t))&&(u=o.exec(e));)(c=u.index)>l&&(c=e.slice(l,c),d[f]?d[f]+=c:d[++f]=c),(s=s[0])===(u=u[0])?d[f]?d[f]+=u:d[++f]=u:(d[++f]=null,h.push({i:f,x:(0,r.default)(s,u)})),l=o.lastIndex;return l<e.length&&(c=e.slice(l),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?(n=h[0].x,function(t){return n(t)+"";}):(a=e,function(){return a;}):(e=h.length,function(t){for(var n,r=0;r<e;++r)d[(n=h[r]).i]=n.x(t);return d.join("");});}},"17e2df1a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=n("777fffbe")._(n("689ba446")).default;},"17ebea90":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("f29fe526");function i(t,e,n,i){var o,a,s,u,c;void 0===i&&(i=!0),function t(e,n,i,o,a){void 0===a&&(a=!0),o.enter({current:n,previous:i});var s=e.edges;(0,r.getNeighbors)(n,void 0===s?[]:s,a?"target":void 0).forEach(function(r){o.allowTraversal({previous:i,current:n,next:r})&&t(e,r,n,o,a);}),o.leave({current:n,previous:i});}(t,e,"",(void 0===(o=n)&&(o={}),a=o,s=function(){},u={},c=function(t){var e=t.next;return!u[e]&&(u[e]=!0,!0);},a.allowTraversal=o.allowTraversal||c,a.enter=o.enter||s,a.leave=o.leave||s,a),i);}},"18a59a52":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("0aff2e87")),i=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o);}return n;};},"1938a8a7":function(t,e,n){},"19dcb3fc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.FORCE_LAYOUT_TYPE_MAP=e.LAYOUT_MESSAGE=void 0,e.LAYOUT_MESSAGE={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"},e.FORCE_LAYOUT_TYPE_MAP={gForce:!0,force2:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0};},"19f1bc3f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Cache:function(){return t3.default;},assign:function(){return tH.default;},augment:function(){return tF.default;},clamp:function(){return O.default;},clearAnimationFrame:function(){return tk.default;},clone:function(){return tN.default;},contains:function(){return i.default;},debounce:function(){return tO.default;},deepMix:function(){return tP.default;},difference:function(){return o.default;},each:function(){return tL.default;},endsWith:function(){return w.default;},every:function(){return C.default;},extend:function(){return tj.default;},filter:function(){return M.default;},find:function(){return a.default;},findIndex:function(){return s.default;},firstValue:function(){return u.default;},fixedBase:function(){return B.default;},flatten:function(){return c.default;},flattenDeep:function(){return l.default;},forIn:function(){return K.default;},get:function(){return tW.default;},getRange:function(){return f.default;},getType:function(){return tc.default;},getWrapBehavior:function(){return T.default;},group:function(){return S.default;},groupBy:function(){return D.default;},groupToMap:function(){return I.default;},has:function(){return Q.default;},hasKey:function(){return $.default;},hasValue:function(){return tt.default;},head:function(){return x.default;},identity:function(){return t1.default;},includes:function(){return i.default;},indexOf:function(){return tR.default;},isArguments:function(){return tl.default;},isArray:function(){return tf.default;},isArrayLike:function(){return td.default;},isBoolean:function(){return th.default;},isDate:function(){return tg.default;},isDecimal:function(){return P.default;},isElement:function(){return tI.default;},isEmpty:function(){return tz.default;},isEqual:function(){return tG.default;},isEqualWith:function(){return tY.default;},isError:function(){return tp.default;},isEven:function(){return L.default;},isFinite:function(){return tm.default;},isFunction:function(){return tv.default;},isInteger:function(){return j.default;},isMatch:function(){return tn.default;},isNegative:function(){return R.default;},isNil:function(){return ty.default;},isNull:function(){return tb.default;},isNumber:function(){return tx.default;},isNumberEqual:function(){return z.default;},isObject:function(){return t_.default;},isObjectLike:function(){return tE.default;},isOdd:function(){return G.default;},isPlainObject:function(){return tw.default;},isPositive:function(){return Y.default;},isPrototype:function(){return tM.default;},isRegExp:function(){return tC.default;},isString:function(){return tA.default;},isType:function(){return tS.default;},isUndefined:function(){return tD.default;},keys:function(){return te.default;},last:function(){return _.default;},lowerCase:function(){return ti.default;},lowerFirst:function(){return to.default;},map:function(){return tX.default;},mapValues:function(){return tU.default;},max:function(){return X.default;},maxBy:function(){return U.default;},memoize:function(){return tB.default;},min:function(){return H.default;},minBy:function(){return W.default;},mix:function(){return tH.default;},mod:function(){return V.default;},noop:function(){return t0.default;},number2color:function(){return F.default;},omit:function(){return tZ.default;},parseRadius:function(){return N.default;},pick:function(){return tq.default;},pull:function(){return d.default;},pullAt:function(){return h.default;},reduce:function(){return g.default;},remove:function(){return p.default;},requestAnimationFrame:function(){return tT.default;},set:function(){return tV.default;},size:function(){return t2.default;},some:function(){return A.default;},sortBy:function(){return v.default;},startsWith:function(){return E.default;},substitute:function(){return ta.default;},throttle:function(){return tJ.default;},toArray:function(){return tK.default;},toDegree:function(){return q.default;},toInteger:function(){return Z.default;},toRadian:function(){return J.default;},toString:function(){return tQ.default;},union:function(){return m.default;},uniq:function(){return y.default;},uniqueId:function(){return t$.default;},upperCase:function(){return ts.default;},upperFirst:function(){return tu.default;},values:function(){return tr.default;},valuesOfKey:function(){return b.default;},wrapBehavior:function(){return k.default;}});var r=n("777fffbe"),i=r._(n("0aad631c")),o=r._(n("60e4615f")),a=r._(n("e3e7cc1f")),s=r._(n("419758c6")),u=r._(n("6e628d38")),c=r._(n("6066f383")),l=r._(n("47aea388")),f=r._(n("87e3fa21")),d=r._(n("07e5147a")),h=r._(n("2b787e3d")),g=r._(n("5ef66b67")),p=r._(n("89d2db1b")),v=r._(n("d8bbfbc5")),m=r._(n("fb0b94ef")),y=r._(n("74c198b1")),b=r._(n("d9a6595f")),x=r._(n("9e98119e")),_=r._(n("22d32eac")),E=r._(n("22d4482b")),w=r._(n("7d365ff4")),M=r._(n("18a59a52")),C=r._(n("d44c28a9")),A=r._(n("bd7b571c")),S=r._(n("d22fbd23")),D=r._(n("461f387d")),I=r._(n("7e4a7e66")),T=r._(n("40d7c03d")),k=r._(n("c4d42f68")),F=r._(n("6e7fd2aa")),N=r._(n("ce61e899")),O=r._(n("a74995e0")),B=r._(n("e60492e4")),P=r._(n("093861bb")),L=r._(n("d40d2a91")),j=r._(n("8d491414")),R=r._(n("d8f1240a")),z=r._(n("8ed42711")),G=r._(n("3f0d1d0e")),Y=r._(n("c7fe84fd")),X=r._(n("3d468e1b")),U=r._(n("f1140149")),H=r._(n("6555228a")),W=r._(n("05185ca0")),V=r._(n("524ebf25")),q=r._(n("6a1c931d")),Z=r._(n("37dc93b3")),J=r._(n("cdd0dc1d")),K=r._(n("ef907e7f")),Q=r._(n("8bcf3e79")),$=r._(n("4fbf7f77")),tt=r._(n("b4d4763e")),te=r._(n("726f18af")),tn=r._(n("0386d7ea")),tr=r._(n("8ec5c776")),ti=r._(n("43bf027e")),to=r._(n("f04c5082")),ta=r._(n("0bddc069")),ts=r._(n("1f749b40")),tu=r._(n("7c709ac0")),tc=r._(n("c78875f9")),tl=r._(n("90cd7b57")),tf=r._(n("bd41dba3")),td=r._(n("0aff2e87")),th=r._(n("9b8a07e5")),tg=r._(n("1ed4f36d")),tp=r._(n("b42bfee2")),tv=r._(n("8b6af789")),tm=r._(n("78f90810")),ty=r._(n("1eabf120")),tb=r._(n("8a5e602e")),tx=r._(n("e82c7689")),t_=r._(n("855dbdf7")),tE=r._(n("5bdfb181")),tw=r._(n("a679da2f")),tM=r._(n("d49f8c60")),tC=r._(n("bc58b502")),tA=r._(n("942b4eed")),tS=r._(n("f5b38a88")),tD=r._(n("325b5b0a")),tI=r._(n("54cd0212")),tT=r._(n("cf639ed6")),tk=r._(n("be146ee0")),tF=r._(n("1e7ff33d")),tN=r._(n("285cd33d")),tO=r._(n("566c64aa")),tB=r._(n("1e610a54")),tP=r._(n("9ef64537")),tL=r._(n("57580e52")),tj=r._(n("71b3b038")),tR=r._(n("68d97b2c")),tz=r._(n("9a6046d2")),tG=r._(n("b55953a3")),tY=r._(n("9e233233")),tX=r._(n("b18f4708")),tU=r._(n("02af6635")),tH=r._(n("151aa8ff")),tW=r._(n("eb70b9de")),tV=r._(n("9119fa11")),tq=r._(n("48abf62a")),tZ=r._(n("8cc35525")),tJ=r._(n("82bf6506")),tK=r._(n("1f757906")),tQ=r._(n("47526327")),t$=r._(n("a511e68a")),t0=r._(n("6bda3d7b")),t1=r._(n("8d46fb8d")),t2=r._(n("8ee4a775")),t3=r._(n("6b27bf0a"));},"1a34bb6d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{components:function(){return o.default;},dfs:function(){return a.default;},dijkstra:function(){return s.default;},dijkstraAll:function(){return u.default;},findCycles:function(){return c.default;},floydWarshall:function(){return p.default;},isAcyclic:function(){return l.default;},postorder:function(){return f.default;},preorder:function(){return d.default;},prim:function(){return i.default;},tarjan:function(){return h.default;},topsort:function(){return g.default;}});var r=n("777fffbe"),i=r._(n("35068061")),o=r._(n("84ee04f9")),a=r._(n("f2a74934")),s=r._(n("e9abb551")),u=r._(n("760de9e8")),c=r._(n("5e06f9a0")),l=r._(n("753d6c16")),f=r._(n("f671c984")),d=r._(n("f1d77e6b")),h=r._(n("a3e01854")),g=r._(n("73d4723b")),p=r._(n("84e6e408"));},"1b2dab90":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("7048382e"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0});},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t);});},e;}(r._(n("1bfab17d")).default);},"1bfab17d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return h;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("4c6d310c"),a=n("be1e82ef"),s=n("e704bc9f"),u=n("d5ffb871"),c=n("05db3064"),l=n("7048382e"),f=i._(n("ab51cd4f")),d=r._(n("36f00621")),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e;}return(0,o.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1});},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e);}},e.prototype.getShapeBase=function(){return f;},e.prototype.getGroupBase=function(){return d.default;},e.prototype.onCanvasChange=function(t){(0,c.refreshElement)(this,t);},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,a.getBBoxMethod)(this.get("type"));n&&(e=n(this));}if(e){var r=e.x,i=e.y,o=e.width,s=e.height,u=this.getHitLineWidth(),c=u/2,l=r-c,f=i-c;return{x:l,y:f,minX:l,minY:f,maxX:r+o+c,maxY:i+s+c,width:o+u,height:s+u};}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill;},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke;},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||(0,u.createDom)(this),(0,s.setClip)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e));},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,u=n.strokeOpacity,c=n.lineWidth,f=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&f.setAttribute(l.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),u&&f.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,u),c&&f.setAttribute(l.SVG_ATTR_MAP.lineWidth,c));},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(!n){r.setAttribute(l.SVG_ATTR_MAP[e],"none");return;}if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var i=t.find("gradient",n);i||(i=t.addGradient(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")");}else if(/^[p,P]{1}[\s]*\(/.test(n)){var i=t.find("pattern",n);i||(i=t.addPattern(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")");}else r.setAttribute(l.SVG_ATTR_MAP[e],n);},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,a=r.shadowBlur,u=r.shadowColor;(i||o||a||u)&&(0,s.setShadow)(this,t);},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&(0,s.setTransform)(this);},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e);},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!!(a&&a.isEqualNode(n));},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0;},e;}(a.AbstractShape);},"1c94f9dc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return m;}});var r,i=n("777fffbe"),o=n("852bbaa9"),a=n("50c5e722"),s=n("e73dcacf"),u=n("055005cf"),c=n("9c86e52a"),l=i._(n("9ef535e4")),f=o._(n("5b220c3d")),d=n("c513cd98"),h=n("16c6b132");function g(t,e){return function(t){if(Array.isArray(t))return t;}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1;}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t;}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return;}finally{if(c)throw i;}}return s;}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e);}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}();}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r;}var v=/(mac|iphone|ipod|ipad)/i.test("undefined"!=typeof navigator?null===(r=navigator)||void 0===r?void 0:r.platform:""),m=function(){var t=g((0,f.useState)(!1),2),e=t[0],n=t[1],r=(0,f.useRef)(null),i=(0,f.useRef)(null),o=g((0,f.useState)("\u2318"),2),p=o[0],m=o[1],y=(0,c.useSiteSearch)(),b=y.keywords,x=y.setKeywords,_=y.result,E=y.loading,w=y.load,M=g((0,f.useState)(!1),2),C=M[0],A=M[1];return(0,f.useEffect)(function(){v||m("Ctrl");var t=function(t){var e;if(((v?t.metaKey:t.ctrlKey)&&"k"===t.key||"/"===t.key&&!(["TEXTAREA","INPUT"].includes((e=t.target).tagName)||"true"===e.contentEditable))&&(t.preventDefault(),r.current)){var n=r.current.getBoundingClientRect(),o=n.top,a=n.bottom,s=n.left,u=n.right;o>=0&&s>=0&&a<=window.innerHeight&&u<=window.innerWidth?r.current.focus():(x(""),A(!0),setTimeout(function(){var t;null===(t=i.current)||void 0===t||t.focus();}));}"Escape"===t.key&&(t.preventDefault(),A(!1));};return document.addEventListener("keydown",t),function(){return document.removeEventListener("keydown",t);};},[]),f.default.createElement("div",{className:"dumi-default-search-bar"},f.default.createElement(u.ReactComponent,{className:"dumi-default-search-bar-svg"}),f.default.createElement(d.Input,{onFocus:function(){n(!0),w();},onMouseEnter:function(){w();},onBlur:function(){setTimeout(function(){n(!1);},1);},onChange:function(t){return x(t);},ref:r}),f.default.createElement("span",{className:"dumi-default-search-shortcut"},p," K"),b.trim()&&e&&!C&&f.default.createElement("div",{className:"dumi-default-search-popover"},f.default.createElement("section",null,f.default.createElement(l.default,{data:_,loading:E}))),f.default.createElement(h.Mask,{visible:C,onMaskClick:function(){A(!1);},onClose:function(){return x("");}},f.default.createElement("div",{style:{position:"relative"}},f.default.createElement(u.ReactComponent,{className:"dumi-default-search-bar-svg"}),f.default.createElement(d.Input,{onFocus:function(){return n(!0);},onBlur:function(){setTimeout(function(){n(!1);},1);},onChange:function(t){return x(t);},ref:i})),f.default.createElement(l.default,{data:_,loading:E,onItemSelect:function(){A(!1);}}),f.default.createElement("footer",null,f.default.createElement("ul",{className:"dumi-default-search-modal-commands"},f.default.createElement("li",{className:"dumi-default-search-modal-commands-arrow"},f.default.createElement("span",{className:"dumi-default-search-modal-shortcut"},f.default.createElement(s.ReactComponent,{width:"10px",height:"10px",fill:"rgba(0, 0, 0, 0.45)"})),f.default.createElement("span",{className:"dumi-default-search-modal-shortcut"},f.default.createElement(a.ReactComponent,{width:"10px",height:"10px",fill:"rgba(0, 0, 0, 0.45)"})),f.default.createElement("span",{className:"dumi-default-search-modal-commands-text"},"to navigate")),f.default.createElement("li",null,f.default.createElement("span",{className:"dumi-default-search-modal-shortcut"},"esc"),f.default.createElement("span",{className:"dumi-default-search-modal-commands-text"},"to close"))))));};},"1cad105c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getPathBBox",{enumerable:!0,get:function(){return o;}});var r=n("4c6d310c"),i=n("00226c26");function o(t,e){if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var n=(0,i.pathLengthFactory)(t,void 0,(0,r.__assign)((0,r.__assign)({},e),{length:!1})),o=n.min,a=o.x,s=o.y,u=n.max,c=u.x,l=u.y,f=c-a,d=l-s;return{width:f,height:d,x:a,y:s,x2:c,y2:l,cx:a+f/2,cy:s+d/2,cz:Math.max(f,d)+Math.min(f,d)/2};}},"1e424655":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("99cf726b")),o=r._(n("155fe01c")),a=function(t,e,n,r){(0,o.default)(e)||(n=e,e=t,t=function(){});var a=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=a(e.prototype,t);return t.prototype=(0,i.default)(s,t.prototype),t.superclass=a(e.prototype,e),(0,i.default)(s,n),(0,i.default)(t,r),t;};},"1e610a54":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=new Map;function i(t,e,n){return void 0===n&&(n=128),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=e?e.apply(this,i):i[0];r.has(t)||r.set(t,function(t){var e,n,r,i=t||1;function o(t,o){++e>i&&(r=n,a(1),++e),n[t]=o;}function a(t){e=0,n=Object.create(null),t||(r=Object.create(null));}return a(),{clear:a,has:function(t){return void 0!==n[t]||void 0!==r[t];},get:function(t){var e=n[t];return void 0!==e?e:void 0!==(e=r[t])?(o(t,e),e):void 0;},set:function(t,e){void 0!==n[t]?n[t]=e:o(t,e);}};}(n));var s=r.get(t);if(s.has(a))return s.get(a);var u=t.apply(this,i);return s.set(a,u),u;};}},"1e7ff33d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("151aa8ff")),o=r._(n("8b6af789")),a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var a=t[r];(0,o.default)(a)&&(a=a.prototype),(0,i.default)(n.prototype,a);}};},"1eabf120":function(t,e,n){"use strict";function r(t){return null==t;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"1ed4f36d":function(t,e,n){"use strict";function r(t){return t instanceof Date;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"1f749b40":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("47526327")),i=function(t){return(0,r.default)(t).toUpperCase();};},"1f757906":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("0aff2e87")),i=function(t){return(0,r.default)(t)?Array.prototype.slice.call(t):[];};},"1fccada2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Algorithm:function(){return v;},Annotation:function(){return I;},Arrow:function(){return s.Arrow;},Bundling:function(){return b;},EdgeFilterLens:function(){return A;},Fisheye:function(){return _;},Global:function(){return h.default;},Graph:function(){return l.default;},Grid:function(){return m;},ImageMinimap:function(){return C;},Layout:function(){return d.Layout;},Legend:function(){return D;},Marker:function(){return s.Marker;},Menu:function(){return x;},Minimap:function(){return y;},Shape:function(){return s.Shape;},SnapLine:function(){return S;},TimeBar:function(){return M;},ToolBar:function(){return E;},Tooltip:function(){return w;},TreeGraph:function(){return f.default;},TreeLayout:function(){return d.TreeLayout;},Util:function(){return g.default;},default:function(){return T;},registerLayout:function(){return d.registerLayout;}});var r=n("d1751d7c"),i=n("777fffbe"),o=n("852bbaa9"),a=n("4c6d310c"),s=r._(n("168feef4"),e),u=o._(n("fb79bacd")),c=o._(n("895d617b")),l=i._(n("9db2e324")),f=i._(n("cbb3b640")),d=n("fb3d3757"),h=i._(n("29fffa42")),g=i._(n("c387d242")),p=i._(n("f31a3a23"));n("6096bed2"),n("d3c37d15"),r._(n("dd1e7e85"),e),r._(n("bc1b99d6"),e);var v=(0,a.__assign)((0,a.__assign)({},u),c),m=p.default.Grid,y=p.default.Minimap,b=p.default.Bundling,x=p.default.Menu,_=p.default.Fisheye,E=p.default.ToolBar,w=p.default.Tooltip,M=p.default.TimeBar,C=p.default.ImageMinimap,A=p.default.EdgeFilterLens,S=p.default.SnapLine,D=p.default.Legend,I=p.default.Annotation,T={version:h.default.version,Graph:l.default,TreeGraph:f.default,Util:g.default,Layout:d.Layout,TreeLayout:d.TreeLayout,registerLayout:d.registerLayout,Global:h.default,registerBehavior:s.registerBehavior,registerCombo:s.registerCombo,registerEdge:s.registerEdge,registerNode:s.registerNode,Minimap:p.default.Minimap,Grid:p.default.Grid,Bundling:p.default.Bundling,Menu:p.default.Menu,ToolBar:p.default.ToolBar,Tooltip:p.default.Tooltip,Legend:p.default.Legend,TimeBar:M,SnapLine:S,Fisheye:_,ImageMinimap:C,EdgeFilterLens:A,Annotation:I,Algorithm:v,Arrow:s.Arrow,Marker:s.Marker,Shape:s.Shape};},"2006bc88":function(t,e,n){"use strict";t.exports=function(){throw Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");},t.exports.Resizable=n("57627102").default,t.exports.ResizableBox=n("a2f77c4e").default;},20176626:function(t,e,n){let r=n("29cb47c1");for(var i=n("7a4726ef"),o="undefined"==typeof window?r:window,a=["moz","webkit"],s="AnimationFrame",u=o["request"+s],c=o["cancel"+s]||o["cancelRequest"+s],l=0;!u&&l<a.length;l++)u=o[a[l]+"Request"+s],c=o[a[l]+"Cancel"+s]||o[a[l]+"CancelRequest"+s];if(!u||!c){var f=0,d=0,h=[],g=1e3/60;u=function(t){if(0===h.length){var e=i(),n=Math.max(0,g-(e-f));f=n+e,setTimeout(function(){var t=h.slice(0);h.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(f);}catch(t){setTimeout(function(){throw t;},0);}},Math.round(n));}return h.push({handle:++d,callback:t,cancelled:!1}),d;},c=function(t){for(var e=0;e<h.length;e++)h[e].handle===t&&(h[e].cancelled=!0);};}t.exports=function(t){return u.call(o,t);},t.exports.cancel=function(){c.apply(o,arguments);},t.exports.polyfill=function(t){t||(t=o),t.requestAnimationFrame=u,t.cancelAnimationFrame=c;};},"203f7a22":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("ee6934bf"),o=r._(n("f9f4a5de"));function a(t){var e=t.exponent,n=t.tickCount,r=Math.ceil((0,i.calBase)(e,t.max)),a=Math.floor((0,i.calBase)(e,t.min));return(0,o.default)(a,r,n).ticks.map(function(t){return Math.pow(t,e)*(t>=0?1:-1);});}},"206aa8fa":function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=e[0],h=e[1],g=e[2],p=e[3],v=e[4],m=e[5],y=e[6],b=e[7],x=e[8];return n[0]=d*r+h*a+g*c,n[1]=d*i+h*s+g*l,n[2]=d*o+h*u+g*f,n[3]=p*r+v*a+m*c,n[4]=p*i+v*s+m*l,n[5]=p*o+v*u+m*f,n[6]=y*r+b*a+x*c,n[7]=y*i+b*s+x*l,n[8]=y*o+b*u+x*f,n;}function i(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n;}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=l*a-s*c,d=-l*o+s*u,h=c*o-a*u,g=n*f+r*d+i*h;return g?(g=1/g,e[0]=f*g,e[1]=(-l*r+i*c)*g,e[2]=(s*r-i*a)*g,e[3]=d*g,e[4]=(l*n-i*u)*g,e[5]=(-s*n+i*o)*g,e[6]=h*g,e[7]=(-c*n+r*u)*g,e[8]=(a*n-r*o)*g,e):null;}n.d(e,"__esModule",{value:!0}),n.e(e,{invert:function(){return o;},multiplyMatrix:function(){return r;},multiplyVec2:function(){return i;}});},"207519f7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("528465ee"));r._(n("a9d43e9b")).default.registerNode("simple-rect",{options:{size:[100,30],style:{radius:0,stroke:a.default.defaultNode.style.stroke,fill:a.default.defaultNode.style.fill,lineWidth:a.default.defaultNode.style.lineWidth},labelCfg:{style:{fill:a.default.nodeLabel.style.fill,fontSize:a.default.nodeLabel.style.fontSize,fontFamily:a.default.windowFontFamily}},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,i.__assign)({},a.default.nodeStateStyles)},shapeType:"simple-rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},r=(0,o.mix)({},e,n),a=this.getSize(t),s=r.width||a[0],u=r.height||a[1];return(0,i.__assign)({x:-s/2,y:-u/2,width:s,height:u},r);},update:function(t,e,n){e.getContainer();var r=(this.mergeStyle||this.getOptions(t)).style,i=this.getSize(t),a=e.get("keyShape");t.size||(i[0]=a.attr("width")||r.width,i[1]=a.attr("height")||r.height);var s={stroke:t.color,x:-i[0]/2,y:-i[1]/2,width:i[0],height:i[1]},u=(0,o.mix)({},r,a.attr(),s);u=(0,o.mix)(u,t.style),this.updateShape(t,e,u,!1,n);}},"single-node");},"2105a9e4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Line:function(){return D;},applyMatrix:function(){return d;},compare:function(){return a;},distance:function(){return p;},floydWarshall:function(){return m;},fractionToLine:function(){return F;},getAdjMatrix:function(){return y;},getBBoxBoundLine:function(){return I;},getCircleCenterByPoints:function(){return g;},getCircleIntersectByPoint:function(){return l;},getDegree:function(){return w;},getEllipseIntersectByPoint:function(){return f;},getLineIntersect:function(){return u;},getPointsCenter:function(){return N;},getRectIntersectByPoint:function(){return c;},intersectBBox:function(){return C;},invertMatrix:function(){return h;},isPointInPolygon:function(){return M;},isPointsOverlap:function(){return P;},isPolygonsIntersect:function(){return S;},itemIntersectByLine:function(){return k;},lerp:function(){return R;},lerpArray:function(){return z;},move:function(){return x;},pointLineDistance:function(){return j;},pointLineSquareDist:function(){return B;},pointRectSquareDist:function(){return L;},rotate:function(){return E;},scale:function(){return _;},scaleMatrix:function(){return v;},squareDist:function(){return O;},translate:function(){return b;}});var r=n("f6fd9972"),i=n("22b52967"),o=r.ext.transform,a=function(t){return function(e,n){return e[t]-n[t];};},s=function(t,e,n){return t>=e&&t<=n;},u=function(t,e,n,r){var i={x:n.x-t.x,y:n.y-t.y},o={x:e.x-t.x,y:e.y-t.y},a={x:r.x-n.x,y:r.y-n.y},u=o.x*a.y-o.y*a.x,c=1/u;if(u*u>1e-4*(o.x*o.x+o.y*o.y)*(a.x*a.x+a.y*a.y)){var l=(i.x*a.y-i.y*a.x)*c,f=(i.x*o.y-i.y*o.x)*c;return s(l,0,1)&&s(f,0,1)?{x:t.x+l*o.x,y:t.y+l*o.y}:null;}return null;},c=function(t,e){var n=t.x,r=t.y,i=t.width,o=t.height,a=[],s={x:n+i/2,y:r+o/2};a.push({x:n,y:r}),a.push({x:n+i,y:r}),a.push({x:n+i,y:r+o}),a.push({x:n,y:r+o}),a.push({x:n,y:r});for(var c=null,l=1;l<a.length&&!(c=u(a[l-1],a[l],s,e));l++);return c;},l=function(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=o-n,u=a-r;if(s*s+u*u<i*i)return null;var c=Math.atan(u/s);return{x:n+Math.abs(i*Math.cos(c))*Math.sign(s),y:r+Math.abs(i*Math.sin(c))*Math.sign(u)};},f=function(t,e){var n=t.rx,r=t.ry,i=t.x,o=t.y,a=e.x-i,s=Math.atan2((e.y-o)/r,a/n);return s<0&&(s+=2*Math.PI),{x:i+n*Math.cos(s),y:o+r*Math.sin(s)};},d=function(t,e,n){void 0===n&&(n=1);var i=[t.x,t.y,n];return(!e||isNaN(e[0]))&&(e=[1,0,0,0,1,0,0,0,1]),r.vec3.transformMat3(i,i,e),{x:i[0],y:i[1]};},h=function(t,e,n){void 0===n&&(n=1),(!e||isNaN(e[0]))&&(e=[1,0,0,0,1,0,0,0,1]);var i=r.mat3.invert([1,0,0,0,1,0,0,0,1],e);i||(i=[1,0,0,0,1,0,0,0,1]);var o=[t.x,t.y,n];return r.vec3.transformMat3(o,o,i),{x:o[0],y:o[1]};},g=function(t,e,n){var r=t.x-e.x,i=t.y-e.y,o=t.x-n.x,a=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*o-r*a;return{x:-(a*s-i*u)/c,y:-(r*u-o*s)/c};},p=function(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r);},v=function(t,e){var n=[];return t.forEach(function(t){var r=[];t.forEach(function(t){r.push(t*e);}),n.push(r);}),n;},m=function(t){for(var e=[],n=t.length,r=0;r<n;r+=1){e[r]=[];for(var 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(var o=0;o<n;o+=1)for(var r=0;r<n;r+=1)for(var i=0;i<n;i+=1)e[r][i]>e[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e;},y=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw Error("invalid nodes data!");return n&&n.forEach(function(t,e){o[t.id]=e,i.push([]);}),r&&r.forEach(function(t){var n=t.source,r=t.target,a=o[n],s=o[r];i[a][s]=1,e||(i[s][a]=1);}),i;},b=function(t,e){t.translate(e.x,e.y);},x=function(t,e,n,r){void 0===r&&(r={duration:500});var i=t.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var a=t.getCanvasBBox(),s=e.x-a.minX,u=e.y-a.minY;if(n){var c=s*i[0],l=u*i[4],f=0,d=0,h=0,g=0;t.animate(function(t){return i=o(i,[["t",(h=c*t)-f,(g=l*t)-d]]),f=h,d=g,{matrix:i};},r);}else{var p=o(i,[["t",s,u]]);t.setMatrix(p);}},_=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e;(0,i.isArray)(e)||(r=[e,e]),(0,i.isArray)(e)&&1===e.length&&(r=[e[0],e[0]]),n=o(n,[["s",r[0],r[1]]]),t.setMatrix(n);},E=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=o(n,[["r",e]]),t.setMatrix(n);},w=function(t,e,n){for(var r=[],i=0;i<t;i++)r[i]=0;return n.forEach(function(t){t.source&&(r[e[t.source]]+=1),t.target&&(r[e[t.target]]+=1);}),r;},M=function(t,e,n){var r=!1,i=t.length;function o(t){return 1e-6>Math.abs(t)?0:t<0?-1:1;}if(i<=2)return!1;for(var a=0;a<i;a++){var s,u=t[a],c=t[(a+1)%i];if(((s=[e,n])[0]-u[0])*(c[1]-u[1])==(c[0]-u[0])*(s[1]-u[1])&&Math.min(u[0],c[0])<=s[0]&&s[0]<=Math.max(u[0],c[0])&&Math.min(u[1],c[1])<=s[1]&&s[1]<=Math.max(u[1],c[1]))return!0;o(u[1]-n)>0!=o(c[1]-n)>0&&0>o(e-(n-u[1])*(u[0]-c[0])/(u[1]-c[1])-u[0])&&(r=!r);}return r;},C=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY);},A=function(t,e){var n=!1;return(0,i.each)(t,function(t){if(u(t.from,t.to,e.from,e.to))return n=!0,!1;}),n;},S=function(t,e){var n=function(t){var e=t.map(function(t){return t[0];}),n=t.map(function(t){return t[1];});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)};},r=function(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}});}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}});}return e;};if(t.length<2||e.length<2||!C(n(t),n(e)))return!1;var o=!1;if((0,i.each)(e,function(e){if(M(t,e[0],e[1]))return o=!0,!1;}),o||((0,i.each)(t,function(t){if(M(e,t[0],t[1]))return o=!0,!1;}),o))return!0;var a=r(t),s=r(e),u=!1;return(0,i.each)(s,function(t){if(A(a,t))return u=!0,!1;}),u;},D=function(){function t(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r;}return t.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),r=Math.max(this.y1,this.y2);return{x:t,y:e,minX:t,minY:e,maxX:n,maxY:r,width:n-t,height:r-e};},t;}(),I=function(t,e){return({top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]})[e];},T=function(t,e){var n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),r=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),i=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(i){var o=n/i,a=r/i;if(o>=0&&o<=1&&a>=0&&a<=1)return o;}return Number.POSITIVE_INFINITY;},k=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=0,o=[],a=0;a<4;a++){var s=I(r,n[a]),c=s[0],l=s[1],f=s[2],d=s[3];o[a]=u({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:c,y:l},{x:f,y:d}),o[a]&&(i+=1);}return[o,i];},F=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=Number.POSITIVE_INFINITY,o=0,a=0;a<4;a++){var s=I(r,n[a]),u=T(e,new D(s[0],s[1],s[2],s[3]));(u=Math.abs(u-.5))>=0&&u<=1&&(o+=1,i=u<i?u:i);}return 0===o?-1:i;},N=function(t){var e=0,n=0;if(t.length>0){for(var r=0;r<t.length;r++){var i=t[r];e+=i.x,n+=i.y;}e/=t.length,n/=t.length;}return{x:e,y:n};},O=function(t,e){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2);},B=function(t,e){var n,r=e.x1,i=e.y1,o=e.x2-r,a=e.y2-i,s=t.x-r,u=t.y-i,c=s*o+u*a;n=c<=0?0:(c=(s=o-s)*o+(u=a-u)*a)<=0?0:c*c/(o*o+a*a);var l=s*s+u*u-n;return l<0&&(l=0),l;},P=function(t,e,n){return void 0===n&&(n=.001),Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<Math.pow(n,2);},L=function(t,e){var n=t.x<e.x,r=t.x>e.x+e.width,i=t.y>e.y+e.height,o=t.y<e.y;if(!(n||r||i||o))return 0;if(i&&!n&&!r)return Math.pow(e.y+e.height-t.y,2);if(o&&!n&&!r)return Math.pow(t.y-e.y,2);if(n&&!i&&!o)return Math.pow(e.x-t.x,2);if(r&&!i&&!o)return Math.pow(e.x+e.width-t.x,2);var a=Math.min(Math.abs(e.x-t.x),Math.abs(e.x+e.width-t.x)),s=Math.min(Math.abs(e.y-t.y),Math.abs(e.y+e.height-t.y));return a*a+s*s;},j=function(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e.x,u=e.y,c=[o-n,a-i];if(r.vec2.exactEquals(c,[0,0]))return NaN;var l=[-c[1],c[0]];return r.vec2.normalize(l,l),Math.abs(r.vec2.dot([s-n,u-i],l));},R=function(t,e,n){return t+(e-t)*n;},z=function(t,e,n){for(var r=Math.min(t.length,e.length),i=Array(r),o=0;o<r;o++)i[o]=R(t[o],e[o],n);return i;};},"21307b43":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=n("22b52967"),o=r._(n("983f77c3")),a=r._(n("a927a725")),s=r._(n("4cd81306")),u=r._(n("9979731d")),c=r._(n("0b351fec")),l=n("d5ffb871"),f=function(){function t(t){var e=(0,l.createSVGElement)("defs"),n=(0,i.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t;}return t.prototype.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;},t.prototype.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;},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this;},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new s.default(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id;},t.prototype.addGradient=function(t){var e=new o.default(t);return this.el.appendChild(e.el),this.add(e),e.id;},t.prototype.addArrow=function(t,e){var n=new s.default(t,e);return this.el.appendChild(n.el),this.add(n),n.id;},t.prototype.addShadow=function(t){var e=new a.default(t);return this.el.appendChild(e.el),this.add(e),e.id;},t.prototype.addPattern=function(t){var e=new c.default(t);return this.el.appendChild(e.el),this.add(e),e.id;},t.prototype.addClip=function(t){var e=new u.default(t);return this.el.appendChild(e.el),this.add(e),e.id;},t;}();},"223ab6d0":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 o(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2;}n.d(e,"__esModule",{value:!0}),n.e(e,{circleIn:function(){return r;},circleInOut:function(){return o;},circleOut:function(){return i;}});},"223f7a51":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("4c9df34d");function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.isAnyArray)(t))throw TypeError("input must be an array");if(0===t.length)throw TypeError("input must not be empty");var n=e.fromIndex,i=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(i<0||i>=t.length||!Number.isInteger(i))throw Error("fromIndex must be a positive integer smaller than length");if(a<=i||a>t.length||!Number.isInteger(a))throw Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[i],u=i+1;u<a;u++)t[u]<s&&(s=t[u]);return s;}},"22b52967":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Cache:function(){return t7.default;},assign:function(){return tH.default;},augment:function(){return tF.default;},clamp:function(){return O.default;},clearAnimationFrame:function(){return tk.default;},clone:function(){return tN.default;},contains:function(){return i.default;},debounce:function(){return tO.default;},deepMix:function(){return tP.default;},difference:function(){return o.default;},each:function(){return tL.default;},endsWith:function(){return w.default;},every:function(){return C.default;},extend:function(){return tj.default;},filter:function(){return M.default;},find:function(){return a.default;},findIndex:function(){return s.default;},firstValue:function(){return u.default;},fixedBase:function(){return B.default;},flatten:function(){return c.default;},flattenDeep:function(){return l.default;},forIn:function(){return K.default;},get:function(){return tW.default;},getEllipsisText:function(){return t5.default;},getRange:function(){return f.default;},getType:function(){return tc.default;},getWrapBehavior:function(){return T.default;},group:function(){return S.default;},groupBy:function(){return D.default;},groupToMap:function(){return I.default;},has:function(){return Q.default;},hasKey:function(){return $.default;},hasValue:function(){return tt.default;},head:function(){return x.default;},identity:function(){return t1.default;},includes:function(){return i.default;},indexOf:function(){return tR.default;},isArguments:function(){return tl.default;},isArray:function(){return tf.default;},isArrayLike:function(){return td.default;},isBoolean:function(){return th.default;},isDate:function(){return tg.default;},isDecimal:function(){return P.default;},isElement:function(){return tI.default;},isEmpty:function(){return tz.default;},isEqual:function(){return tG.default;},isEqualWith:function(){return tY.default;},isError:function(){return tp.default;},isEven:function(){return L.default;},isFinite:function(){return tm.default;},isFunction:function(){return tv.default;},isInteger:function(){return j.default;},isMatch:function(){return tn.default;},isNegative:function(){return R.default;},isNil:function(){return ty.default;},isNull:function(){return tb.default;},isNumber:function(){return tx.default;},isNumberEqual:function(){return z.default;},isObject:function(){return t_.default;},isObjectLike:function(){return tE.default;},isOdd:function(){return G.default;},isPlainObject:function(){return tw.default;},isPositive:function(){return Y.default;},isPrototype:function(){return tM.default;},isRegExp:function(){return tC.default;},isString:function(){return tA.default;},isType:function(){return tS.default;},isUndefined:function(){return tD.default;},keys:function(){return te.default;},last:function(){return _.default;},lowerCase:function(){return ti.default;},lowerFirst:function(){return to.default;},map:function(){return tX.default;},mapValues:function(){return tU.default;},max:function(){return X.default;},maxBy:function(){return U.default;},measureTextWidth:function(){return t3.default;},memoize:function(){return tB.default;},min:function(){return H.default;},minBy:function(){return W.default;},mix:function(){return tH.default;},mod:function(){return V.default;},noop:function(){return t0.default;},number2color:function(){return F.default;},omit:function(){return tZ.default;},parseRadius:function(){return N.default;},pick:function(){return tq.default;},pull:function(){return d.default;},pullAt:function(){return h.default;},reduce:function(){return g.default;},remove:function(){return p.default;},requestAnimationFrame:function(){return tT.default;},set:function(){return tV.default;},size:function(){return t2.default;},some:function(){return A.default;},sortBy:function(){return v.default;},startsWith:function(){return E.default;},substitute:function(){return ta.default;},throttle:function(){return tJ.default;},toArray:function(){return tK.default;},toDegree:function(){return q.default;},toInteger:function(){return Z.default;},toRadian:function(){return J.default;},toString:function(){return tQ.default;},union:function(){return m.default;},uniq:function(){return y.default;},uniqueId:function(){return t$.default;},upperCase:function(){return ts.default;},upperFirst:function(){return tu.default;},values:function(){return tr.default;},valuesOfKey:function(){return b.default;},wrapBehavior:function(){return k.default;}});var r=n("777fffbe"),i=r._(n("2df371cc")),o=r._(n("41749641")),a=r._(n("c4ac62ba")),s=r._(n("d32684ea")),u=r._(n("e29a6735")),c=r._(n("df0f4e4b")),l=r._(n("12663407")),f=r._(n("d53abf7c")),d=r._(n("f2905faf")),h=r._(n("c51a05f7")),g=r._(n("e3a1b1ed")),p=r._(n("4b96732d")),v=r._(n("a9da1bbd")),m=r._(n("58406652")),y=r._(n("c6ab8985")),b=r._(n("0f70fe20")),x=r._(n("8cd0d38f")),_=r._(n("5a045375")),E=r._(n("54331d04")),w=r._(n("2ac226b1")),M=r._(n("432fa017")),C=r._(n("fc48e500")),A=r._(n("615091c9")),S=r._(n("01ceb8f1")),D=r._(n("f41eef67")),I=r._(n("088e0ca8")),T=r._(n("b3cbf566")),k=r._(n("bf6da182")),F=r._(n("5fdd0309")),N=r._(n("9d78baf1")),O=r._(n("11f3176a")),B=r._(n("649d4c5d")),P=r._(n("53556cd1")),L=r._(n("3b9b2a9e")),j=r._(n("a1bb866d")),R=r._(n("86383486")),z=r._(n("7cb31f9e")),G=r._(n("917c6469")),Y=r._(n("c60d5509")),X=r._(n("f96e2b2f")),U=r._(n("7a016b76")),H=r._(n("2a1f2db7")),W=r._(n("b2823dca")),V=r._(n("e8e2570b")),q=r._(n("b3c643de")),Z=r._(n("12360e27")),J=r._(n("4444028f")),K=r._(n("e1924b3c")),Q=r._(n("e721d551")),$=r._(n("98c18c6b")),tt=r._(n("9a8ffbad")),te=r._(n("8b56e181")),tn=r._(n("ed0b15cb")),tr=r._(n("32fd355d")),ti=r._(n("40b51dd8")),to=r._(n("a71564ad")),ta=r._(n("ecf73862")),ts=r._(n("e4c47149")),tu=r._(n("c6d8399b")),tc=r._(n("db01b2f7")),tl=r._(n("2a0f881f")),tf=r._(n("533b8f72")),td=r._(n("c9ae1e54")),th=r._(n("e5962d40")),tg=r._(n("ea6f023d")),tp=r._(n("cacfa2b7")),tv=r._(n("155fe01c")),tm=r._(n("3645bdae")),ty=r._(n("071f0c13")),tb=r._(n("91cd6a2b")),tx=r._(n("501adece")),t_=r._(n("e9a09e78")),tE=r._(n("118756dc")),tw=r._(n("120583e1")),tM=r._(n("51dbb462")),tC=r._(n("39783e91")),tA=r._(n("c2d1eb5c")),tS=r._(n("6e810311")),tD=r._(n("3b8e94da")),tI=r._(n("c034ef9d")),tT=r._(n("cee2bf5e")),tk=r._(n("bb0a4569")),tF=r._(n("bb29d773")),tN=r._(n("0d397506")),tO=r._(n("ba6ea560")),tB=r._(n("5537fdc1")),tP=r._(n("902bc363")),tL=r._(n("f0b8b26a")),tj=r._(n("1e424655")),tR=r._(n("58828bf9")),tz=r._(n("fe0dfdf2")),tG=r._(n("5015cda8")),tY=r._(n("5b7cfd84")),tX=r._(n("8fc0169b")),tU=r._(n("7630fec3")),tH=r._(n("99cf726b")),tW=r._(n("5054c1ff")),tV=r._(n("783a25f0")),tq=r._(n("7a0ef3de")),tZ=r._(n("738ddbea")),tJ=r._(n("7da05c33")),tK=r._(n("2c8b655a")),tQ=r._(n("6665ed3f")),t$=r._(n("a860491c")),t0=r._(n("9f0170dc")),t1=r._(n("74b0ad4d")),t2=r._(n("ba078028")),t3=r._(n("3ee6d401")),t5=r._(n("5979e696")),t7=r._(n("d8d98a9e"));},"22d32eac":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("0aff2e87"));function i(t){if((0,r.default)(t))return t[t.length-1];}},"22d4482b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("942b4eed")),a=function(t,e){return!!((0,i.default)(t)||(0,o.default)(t))&&t[0]===e;};},"233dfe4c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("22b52967"),o=r._(n("9a47d68a")),a=function(){function t(){}return t.registerBehavior=function(e,n){if(!n)throw Error("please specify handler for this behavior: ".concat(e));var r=(0,i.clone)(o.default);Object.assign(r,n);var a=function(t){var e=this;Object.assign(this,this.getDefaultCfg(),t);var n=this.getEvents();this.events=null;var r={};n&&((0,i.each)(n,function(t,n){r[n]=(0,i.wrapBehavior)(e,t);}),this.events=r);};a.prototype=r,t.types[e]=a;},t.hasBehavior=function(e){return!!t.types[e];},t.getBehavior=function(e){return t.types[e];},t.types={},t;}();},"235d18ef":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("4c6d310c"),a=n("be1e82ef"),s=n("ddeef58a"),u=n("11214b3f"),c=i._(n("5f588eb3")),l=r._(n("b1221bd1")),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,o.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1});},e.prototype.getShapeBase=function(){return c;},e.prototype.getGroupBase=function(){return l.default;},e.prototype.onCanvasChange=function(t){(0,u.refreshElement)(this,t);},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=(0,a.getBBoxMethod)(t)(this),r=e/2,i=n.x-r,o=n.y-r,s=n.x+n.width+r,u=n.y+n.height+r;return{x:i,minX:i,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:s,maxY:u};},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape();},e.prototype.isStroke=function(){return!!this.attrs.stroke;},e.prototype._applyClip=function(t,e){e&&(t.save(),(0,u.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw());},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh){this.set("hasChanged",!1);return;}var r=this.getCanvasBBox();if(!(0,s.intersectRect)(e,r)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return;}}t.save(),(0,u.applyAttrsToContext)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw();},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null;},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=(0,s.intersectRect)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null);}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null);},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1);},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t);},e.prototype.fill=function(t){t.fill();},e.prototype.stroke=function(t){t.stroke();},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&((0,s.isNil)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&((0,s.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t);},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i);},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1;},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth;},e;}(a.AbstractShape);},"236052be":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("60fd7c96");function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return(0,r.basis)((n-i/e)*e,o,a,s,u);};}},"24d28ee5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Arrow:function(){return o.default;},Marker:function(){return a.default;},default:function(){return s;}});var r=n("777fffbe"),i=r._(n("a9d43e9b"));n("6d5f4b4d"),n("423073d2"),n("cdb4f6ea"),n("d95566da"),n("e9e57b09");var o=r._(n("b3c7c4bf")),a=r._(n("e80da673")),s=i.default;},25877146:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("9b1a8ecb")),a=n("61db1663"),s={},u="_INDEX",c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.isCanvas=function(){return!1;},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0);});return i.length>0?(0,a.each)(i,function(i){var o=i.getBBox(),a=o.minX,s=o.maxX,u=o.minY,c=o.maxY;a<t&&(t=a),s>e&&(e=s),u<n&&(n=u),c>r&&(r=c);}):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0);});return i.length>0?(0,a.each)(i,function(i){var o=i.getCanvasBBox(),a=o.minX,s=o.maxX,u=o.minY,c=o.maxY;a<t&&(t=a),s>e&&(e=s),u<n&&(n=u),c>r&&(r=c);}):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e;},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i);}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r);},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,a.each)(e,function(e){e.applyMatrix(t);});},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];(0,a.isObject)(n)?r=n:r.type=n;var i=s[r.type];i||(i=(0,a.upperFirst)(r.type),s[r.type]=i);var o=new(this.getShapeBase())[i](r);return this.add(o),o;},e.prototype.addGroup=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];return t=(0,a.isFunction)(r)?new r(i||{parent:this}):new(this.getGroupBase())(r||{}),this.add(t),t;},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas");},e.prototype.getShape=function(t,e,n){if(!(0,a.isAllowCapture)(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(r=this._findShape(i,o[0],o[1],n));}return r;},e.prototype._findShape=function(t,e,n,r){for(var i=null,o=t.length-1;o>=0;o--){var s=t[o];if((0,a.isAllowCapture)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break;}return i;},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&(t.set("parent",null),t.set("canvas",null),(0,a.removeFromArray)(i.getChildren(),t)),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(e){t(e,n);});}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(e){t(e,n);});}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t);},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e);},e.prototype.getChildren=function(){return this.get("children")||[];},e.prototype.sort=function(){var t,e=this.getChildren();(0,a.each)(e,function(t,e){return t[u]=e,t;}),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex");},function(e,n){var r=t(e,n);return 0===r?e[u]-n[u]:r;})),this.onCanvasChange("sort");},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1);}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this));},e.prototype.getFirst=function(){return this.getChildByIndex(0);},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1);},e.prototype.getChildByIndex=function(t){return this.getChildren()[t];},e.prototype.getCount=function(){return this.getChildren().length;},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1;},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e);},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,a.each)(n,function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)));}),e;},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,a.each)(n,function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1;}),e;},e.prototype.findById=function(t){return this.find(function(e){return e.get("id")===t;});},e.prototype.findByClassName=function(t){return this.find(function(e){return e.get("className")===t;});},e.prototype.findAllByName=function(t){return this.findAll(function(e){return e.get("name")===t;});},e;}(o.default);},"2595781d":function(t,e,n){"use strict";var r,i;n.d(e,"__esModule",{value:!0}),n.d(e,"gl",{enumerable:!0,get:function(){return r;}}),(i=r||(r={}))[i.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",i[i.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",i[i.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i[i.ZERO=0]="ZERO",i[i.ONE=1]="ONE",i[i.SRC_COLOR=768]="SRC_COLOR",i[i.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",i[i.SRC_ALPHA=770]="SRC_ALPHA",i[i.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",i[i.DST_ALPHA=772]="DST_ALPHA",i[i.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",i[i.DST_COLOR=774]="DST_COLOR",i[i.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",i[i.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",i[i.FUNC_ADD=32774]="FUNC_ADD",i[i.BLEND_EQUATION=32777]="BLEND_EQUATION",i[i.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",i[i.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",i[i.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",i[i.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",i[i.MAX_EXT=32776]="MAX_EXT",i[i.MIN_EXT=32775]="MIN_EXT",i[i.BLEND_DST_RGB=32968]="BLEND_DST_RGB",i[i.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",i[i.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",i[i.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",i[i.CONSTANT_COLOR=32769]="CONSTANT_COLOR",i[i.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",i[i.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",i[i.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",i[i.BLEND_COLOR=32773]="BLEND_COLOR",i[i.ARRAY_BUFFER=34962]="ARRAY_BUFFER",i[i.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",i[i.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",i[i.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",i[i.STREAM_DRAW=35040]="STREAM_DRAW",i[i.STATIC_DRAW=35044]="STATIC_DRAW",i[i.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",i[i.BUFFER_SIZE=34660]="BUFFER_SIZE",i[i.BUFFER_USAGE=34661]="BUFFER_USAGE",i[i.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",i[i.FRONT=1028]="FRONT",i[i.BACK=1029]="BACK",i[i.FRONT_AND_BACK=1032]="FRONT_AND_BACK",i[i.CULL_FACE=2884]="CULL_FACE",i[i.BLEND=3042]="BLEND",i[i.DITHER=3024]="DITHER",i[i.STENCIL_TEST=2960]="STENCIL_TEST",i[i.DEPTH_TEST=2929]="DEPTH_TEST",i[i.SCISSOR_TEST=3089]="SCISSOR_TEST",i[i.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",i[i.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",i[i.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",i[i.NO_ERROR=0]="NO_ERROR",i[i.INVALID_ENUM=1280]="INVALID_ENUM",i[i.INVALID_VALUE=1281]="INVALID_VALUE",i[i.INVALID_OPERATION=1282]="INVALID_OPERATION",i[i.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",i[i.CW=2304]="CW",i[i.CCW=2305]="CCW",i[i.LINE_WIDTH=2849]="LINE_WIDTH",i[i.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",i[i.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",i[i.CULL_FACE_MODE=2885]="CULL_FACE_MODE",i[i.FRONT_FACE=2886]="FRONT_FACE",i[i.DEPTH_RANGE=2928]="DEPTH_RANGE",i[i.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",i[i.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",i[i.DEPTH_FUNC=2932]="DEPTH_FUNC",i[i.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",i[i.STENCIL_FUNC=2962]="STENCIL_FUNC",i[i.STENCIL_FAIL=2964]="STENCIL_FAIL",i[i.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",i[i.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",i[i.STENCIL_REF=2967]="STENCIL_REF",i[i.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",i[i.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",i[i.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",i[i.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",i[i.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",i[i.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",i[i.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",i[i.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",i[i.VIEWPORT=2978]="VIEWPORT",i[i.SCISSOR_BOX=3088]="SCISSOR_BOX",i[i.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",i[i.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",i[i.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",i[i.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",i[i.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",i[i.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",i[i.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",i[i.RED_BITS=3410]="RED_BITS",i[i.GREEN_BITS=3411]="GREEN_BITS",i[i.BLUE_BITS=3412]="BLUE_BITS",i[i.ALPHA_BITS=3413]="ALPHA_BITS",i[i.DEPTH_BITS=3414]="DEPTH_BITS",i[i.STENCIL_BITS=3415]="STENCIL_BITS",i[i.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",i[i.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",i[i.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",i[i.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",i[i.SAMPLES=32937]="SAMPLES",i[i.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",i[i.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",i[i.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",i[i.DONT_CARE=4352]="DONT_CARE",i[i.FASTEST=4353]="FASTEST",i[i.NICEST=4354]="NICEST",i[i.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",i[i.BYTE=5120]="BYTE",i[i.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",i[i.SHORT=5122]="SHORT",i[i.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",i[i.INT=5124]="INT",i[i.UNSIGNED_INT=5125]="UNSIGNED_INT",i[i.FLOAT=5126]="FLOAT",i[i.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",i[i.ALPHA=6406]="ALPHA",i[i.RGB=6407]="RGB",i[i.RGBA=6408]="RGBA",i[i.LUMINANCE=6409]="LUMINANCE",i[i.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",i[i.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",i[i.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",i[i.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",i[i.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",i[i.VERTEX_SHADER=35633]="VERTEX_SHADER",i[i.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",i[i.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",i[i.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",i[i.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",i[i.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",i[i.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",i[i.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",i[i.SHADER_TYPE=35663]="SHADER_TYPE",i[i.DELETE_STATUS=35712]="DELETE_STATUS",i[i.LINK_STATUS=35714]="LINK_STATUS",i[i.VALIDATE_STATUS=35715]="VALIDATE_STATUS",i[i.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",i[i.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",i[i.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",i[i.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",i[i.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",i[i.NEVER=512]="NEVER",i[i.LESS=513]="LESS",i[i.EQUAL=514]="EQUAL",i[i.LEQUAL=515]="LEQUAL",i[i.GREATER=516]="GREATER",i[i.NOTEQUAL=517]="NOTEQUAL",i[i.GEQUAL=518]="GEQUAL",i[i.ALWAYS=519]="ALWAYS",i[i.KEEP=7680]="KEEP",i[i.REPLACE=7681]="REPLACE",i[i.INCR=7682]="INCR",i[i.DECR=7683]="DECR",i[i.INVERT=5386]="INVERT",i[i.INCR_WRAP=34055]="INCR_WRAP",i[i.DECR_WRAP=34056]="DECR_WRAP",i[i.VENDOR=7936]="VENDOR",i[i.RENDERER=7937]="RENDERER",i[i.VERSION=7938]="VERSION",i[i.NEAREST=9728]="NEAREST",i[i.LINEAR=9729]="LINEAR",i[i.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",i[i.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",i[i.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",i[i.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",i[i.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",i[i.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",i[i.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",i[i.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",i[i.TEXTURE_2D=3553]="TEXTURE_2D",i[i.TEXTURE=5890]="TEXTURE",i[i.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",i[i.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",i[i.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",i[i.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",i[i.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",i[i.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",i[i.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",i[i.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",i[i.TEXTURE0=33984]="TEXTURE0",i[i.TEXTURE1=33985]="TEXTURE1",i[i.TEXTURE2=33986]="TEXTURE2",i[i.TEXTURE3=33987]="TEXTURE3",i[i.TEXTURE4=33988]="TEXTURE4",i[i.TEXTURE5=33989]="TEXTURE5",i[i.TEXTURE6=33990]="TEXTURE6",i[i.TEXTURE7=33991]="TEXTURE7",i[i.TEXTURE8=33992]="TEXTURE8",i[i.TEXTURE9=33993]="TEXTURE9",i[i.TEXTURE10=33994]="TEXTURE10",i[i.TEXTURE11=33995]="TEXTURE11",i[i.TEXTURE12=33996]="TEXTURE12",i[i.TEXTURE13=33997]="TEXTURE13",i[i.TEXTURE14=33998]="TEXTURE14",i[i.TEXTURE15=33999]="TEXTURE15",i[i.TEXTURE16=34e3]="TEXTURE16",i[i.TEXTURE17=34001]="TEXTURE17",i[i.TEXTURE18=34002]="TEXTURE18",i[i.TEXTURE19=34003]="TEXTURE19",i[i.TEXTURE20=34004]="TEXTURE20",i[i.TEXTURE21=34005]="TEXTURE21",i[i.TEXTURE22=34006]="TEXTURE22",i[i.TEXTURE23=34007]="TEXTURE23",i[i.TEXTURE24=34008]="TEXTURE24",i[i.TEXTURE25=34009]="TEXTURE25",i[i.TEXTURE26=34010]="TEXTURE26",i[i.TEXTURE27=34011]="TEXTURE27",i[i.TEXTURE28=34012]="TEXTURE28",i[i.TEXTURE29=34013]="TEXTURE29",i[i.TEXTURE30=34014]="TEXTURE30",i[i.TEXTURE31=34015]="TEXTURE31",i[i.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",i[i.REPEAT=10497]="REPEAT",i[i.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",i[i.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",i[i.FLOAT_VEC2=35664]="FLOAT_VEC2",i[i.FLOAT_VEC3=35665]="FLOAT_VEC3",i[i.FLOAT_VEC4=35666]="FLOAT_VEC4",i[i.INT_VEC2=35667]="INT_VEC2",i[i.INT_VEC3=35668]="INT_VEC3",i[i.INT_VEC4=35669]="INT_VEC4",i[i.BOOL=35670]="BOOL",i[i.BOOL_VEC2=35671]="BOOL_VEC2",i[i.BOOL_VEC3=35672]="BOOL_VEC3",i[i.BOOL_VEC4=35673]="BOOL_VEC4",i[i.FLOAT_MAT2=35674]="FLOAT_MAT2",i[i.FLOAT_MAT3=35675]="FLOAT_MAT3",i[i.FLOAT_MAT4=35676]="FLOAT_MAT4",i[i.SAMPLER_2D=35678]="SAMPLER_2D",i[i.SAMPLER_CUBE=35680]="SAMPLER_CUBE",i[i.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",i[i.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",i[i.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",i[i.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",i[i.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",i[i.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",i[i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",i[i.COMPILE_STATUS=35713]="COMPILE_STATUS",i[i.LOW_FLOAT=36336]="LOW_FLOAT",i[i.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",i[i.HIGH_FLOAT=36338]="HIGH_FLOAT",i[i.LOW_INT=36339]="LOW_INT",i[i.MEDIUM_INT=36340]="MEDIUM_INT",i[i.HIGH_INT=36341]="HIGH_INT",i[i.FRAMEBUFFER=36160]="FRAMEBUFFER",i[i.RENDERBUFFER=36161]="RENDERBUFFER",i[i.RGBA4=32854]="RGBA4",i[i.RGB5_A1=32855]="RGB5_A1",i[i.RGB565=36194]="RGB565",i[i.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",i[i.STENCIL_INDEX=6401]="STENCIL_INDEX",i[i.STENCIL_INDEX8=36168]="STENCIL_INDEX8",i[i.DEPTH_STENCIL=34041]="DEPTH_STENCIL",i[i.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",i[i.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",i[i.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",i[i.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",i[i.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",i[i.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",i[i.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",i[i.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",i[i.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",i[i.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",i[i.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",i[i.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",i[i.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",i[i.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",i[i.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",i[i.NONE=0]="NONE",i[i.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",i[i.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",i[i.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",i[i.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",i[i.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",i[i.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",i[i.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",i[i.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",i[i.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",i[i.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",i[i.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",i[i.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",i[i.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",i[i.COPY_SRC=1]="COPY_SRC",i[i.COPY_DST=2]="COPY_DST",i[i.SAMPLED=4]="SAMPLED",i[i.STORAGE=8]="STORAGE",i[i.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT";},"2677af17":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{getMethod:function(){return o;},register:function(){return i;}});var r=new Map;function i(t,e){r.set(t,e);}function o(t){return r.get(t);}},"2696f96f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isGraphComplement",{enumerable:!0,get:function(){return o;}});var r=n("f5de0b23"),i=n("009ff3f4"),o=function(t,e){if(!(0,r.isSimpleGraph)(t)||!(0,r.isSimpleGraph)(e)||!(0,i.containAllSameNodes)(t,e)||(0,i.containSameEdges)(t,e))return!1;var n=t.nodeCount();return t.edgeCount()+e.edgeCount()===n*(n-1)/2;};},"26bc5a85":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=r._(n("21422ae0")),o=r._(n("78294f9e")),a=n("769809e4"),s=n("94a227fe"),u=function(){function t(e,n){(0,i.default)(this,t),this.elements=void 0;var r=n.data,o=n.usage,u=n.type,c=n.count;this.elements=e.elements({data:r,usage:s.usageMap[o||a.gl.STATIC_DRAW],type:s.dataTypeMap[u||a.gl.UNSIGNED_BYTE],count:c});}return(0,o.default)(t,[{key:"get",value:function(){return this.elements;}},{key:"subData",value:function(t){var e=t.data;this.elements.subdata(e);}},{key:"destroy",value:function(){this.elements.destroy();}}]),t;}();},"26e28225":function(t,e,n){"use strict";var r=!!("undefined"!=typeof window&&window.document&&window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!!(window.addEventListener||window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i;},"27dc5b05":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("c387d242")),a=o.default.isPolygonsIntersect,s=o.default.pathToPoints,u="shift",c=["drag","shift","ctrl","alt","control"],l=function(t,e){var n,r=t.getKeyShape();if("path"===t.get("type"))n=s(r.attr("path"));else{var i=r.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]];}return a(e,n);},f={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:u,includeEdges:!0,selectedEdges:[],selectedNodes:[]};},getEvents:function(){return(c.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=u,console.warn("Behavior lasso-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),"drag"===this.trigger)?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"};},onDragStart:function(t){var e=this.lasso;!t.item&&("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates("dragstart"),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show());},onDragMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&(this.points.push({x:t.x,y:t.y}),this.updateLasso(t));},onDragEnd:function(t){(this.lasso||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1);},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y]);}),e.push(["L",t[0].x,t[0].y])),e;},clearStates:function(t){void 0===t&&(t="canvas:click");var e=this.graph,n=this.selectedState,r=this.shouldDeselect,i=e.findAllByState("node",n),o=e.findAllByState("edge",n);(!r||r({action:t,nodes:i,edges:o}))&&(i.forEach(function(t){return e.setItemState(t,n,!1);}),o.forEach(function(t){return e.setItemState(t,n,!1);})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1});},getSelectedItems:function(){var t=this,e=this.graph,n=this.shouldUpdate,r=this.points.map(function(t){return[e.getCanvasByPoint(t.x,t.y).x,e.getCanvasByPoint(t.x,t.y).y];}),i=this.selectedState,o=[],a=[];e.getNodes().forEach(function(s){if(s.isVisible()&&l(s,r)&&n(s,"select",t)){o.push(s);var u=s.getModel();a.push(u.id),e.setItemState(s,i,!0);}});var s=[];this.includeEdges&&o.forEach(function(r){r.getOutEdges().forEach(function(r){if(r.isVisible()){var i=r.getModel(),o=i.source,u=i.target;a.includes(o)&&a.includes(u)&&n(r,"select",t)&&(s.push(r),e.setItemState(r,t.selectedState,!0));}});}),this.selectedEdges=s,this.selectedNodes=o,this.onSelect&&this.onSelect(o,s),e.emit("nodeselectchange",{selectedItems:{nodes:o,edges:s},select:!0});},createLasso:function(){var t=this.graph.get("delegateGroup").addShape("path",{attrs:(0,i.__assign)({path:[]},this.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=t,this.delegate=t,this.points=[],t;},updateLasso:function(t){this.lasso.attr({path:this.getLassoPath()});},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1);},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1;}};},"27f14eb4":function(t,e,n){var r,i;r=this,i=function(t,e,n){"use strict";function r(t,e){return e&&!e.endsWith("/")&&(e+="/"),n(t,e);}function i(t,e){for(let n=e;n<t.length;n++)if(!function(t){for(let e=1;e<t.length;e++)if(t[e][0]<t[e-1][0])return!1;return!0;}(t[n]))return n;return t.length;}function o(t,e){return t[0]-e[0];}let a=!1;function s(t,e,n){for(let r=n+1;r<t.length&&t[r][0]===e;n=r++);return n;}function u(t,e,n){for(let r=n-1;r>=0&&t[r][0]===e;n=r--);return n;}function c(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1};}function l(t,e,n,r){let{lastKey:i,lastNeedle:o,lastIndex:s}=n,u=0,c=t.length-1;if(r===i){if(e===o)return a=-1!==s&&t[s][0]===e,s;e>=o?u=-1===s?0:s:c=s;}return n.lastKey=r,n.lastNeedle=e,n.lastIndex=function(t,e,n,r){for(;n<=r;){let i=n+(r-n>>1),o=t[i][0]-e;if(0===o)return a=!0,i;o<0?n=i+1:r=i-1;}return a=!1,n-1;}(t,e,u,c);}function f(){return{__proto__:null};}function d(t){return"string"==typeof t?JSON.parse(t):t;}function h(t,e){for(let n=0;n<e.length;n++)t.push(e[n]);}let g="`line` must be greater than 0 (lines start at line 1)",p="`column` must be greater than or equal to 0 (columns start at column 0)";class v{constructor(t,e){let n="string"==typeof t;if(!n&&t._decodedMemo)return t;let a=n?JSON.parse(t):t,{version:s,file:u,names:l,sourceRoot:f,sources:d,sourcesContent:h}=a;this.version=s,this.file=u,this.names=l||[],this.sourceRoot=f,this.sources=d,this.sourcesContent=h,this.ignoreList=a.ignoreList||a.x_google_ignoreList||void 0;let g=r(f||"",function(t){if(!t)return"";let e=t.lastIndexOf("/");return t.slice(0,e+1);}(e));this.resolvedSources=d.map(t=>r(t||"",g));let{mappings:p}=a;"string"==typeof p?(this._encoded=p,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(t,e){let n=i(t,0);if(n===t.length)return t;e||(t=t.slice());for(let a=n;a<t.length;a=i(t,a+1)){var r;t[a]=(r=t[a],e||(r=r.slice()),r.sort(o));}return t;}(p,n)),this._decodedMemo=c(),this._bySources=void 0,this._bySourceMemos=void 0;}}function m(t){var n;return null!==(n=t._encoded)&&void 0!==n?n:t._encoded=e.encode(t._decoded);}function y(t){return t._decoded||(t._decoded=e.decode(t._encoded));}function b(t,e){let{sources:n,resolvedSources:r}=t,i=n.indexOf(e);return -1===i&&(i=r.indexOf(e)),i;}function x(t,e){let n=new v(_(t,[]),e);return n._decoded=t.mappings,n;}function _(t,e){return{version:t.version,file:t.file,names:t.names,sourceRoot:t.sourceRoot,sources:t.sources,sourcesContent:t.sourcesContent,mappings:e,ignoreList:t.ignoreList||t.x_google_ignoreList};}function E(t,e,n,r){return{source:t,line:e,column:n,name:r};}function w(t,e){return{line:t,column:e};}function M(t,e,n,r,i){let o=l(t,r,e,n);return(a?o=(-1===i?s:u)(t,r,o):-1===i&&o++,-1===o||o===t.length)?-1:o;}function C(t,e,n,r,i,o){if(--n<0)throw Error(g);if(r<0)throw Error(p);let{sources:d,resolvedSources:h}=t,v=d.indexOf(e);if(-1===v&&(v=h.indexOf(e)),-1===v)return o?[]:w(null,null);let m=(t._bySources||(t._bySources=function(t,e){let n=e.map(f);for(let r=0;r<t.length;r++){let i=t[r];for(let t=0;t<i.length;t++){let o=i[t];if(1===o.length)continue;let a=o[1],u=o[2],c=o[3],f=n[a],d=f[u]||(f[u]=[]),h=e[a],g=s(d,c,l(d,c,h,u));h.lastIndex=++g,function(t,e,n){for(let n=t.length;n>e;n--)t[n]=t[n-1];t[e]=n;}(d,g,[c,r,o[0]]);}}return n;}(y(t),t._bySourceMemos=d.map(c))))[v][n];if(null==m)return o?[]:w(null,null);let b=t._bySourceMemos[v];if(o)return function(t,e,n,r,i){let o=M(t,e,n,r,1);if(!a&&-1===i&&o++,-1===o||o===t.length)return[];let c=a?r:t[o][0];a||(o=u(t,c,o));let l=s(t,c,o),f=[];for(;o<=l;o++){let e=t[o];f.push(w(e[1]+1,e[2]));}return f;}(m,b,n,r,i);let x=M(m,b,n,r,i);if(-1===x)return w(null,null);let _=m[x];return w(_[1]+1,_[2]);}t.AnyMap=function(t,e){let n=d(t);if(!("sections"in n))return new v(n,e);let r=[],i=[],o=[],a=[],s=[];return function t(e,n,r,i,o,a,s,u,c,l,f){let{sections:g}=e;for(let e=0;e<g.length;e++){let{map:p,offset:m}=g[e],b=l,x=f;if(e+1<g.length){let t=g[e+1].offset;(b=Math.min(l,u+t.line))===l?x=Math.min(f,c+t.column):b<l&&(x=c+t.column);}(function(e,n,r,i,o,a,s,u,c,l,f){let g=d(e);if("sections"in g)return t(...arguments);let p=new v(g,n),m=i.length,b=a.length,x=y(p),{resolvedSources:_,sourcesContent:E,ignoreList:w}=p;if(h(i,_),h(a,p.names),E)h(o,E);else for(let t=0;t<_.length;t++)o.push(null);if(w)for(let t=0;t<w.length;t++)s.push(w[t]+m);for(let t=0;t<x.length;t++){let e=u+t;if(e>l)return;let n=function(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e];}(r,e),i=0===t?c:0,o=x[t];for(let t=0;t<o.length;t++){let r=o[t],a=i+r[0];if(e===l&&a>=f)return;if(1===r.length){n.push([a]);continue;}let s=m+r[1],u=r[2],c=r[3];n.push(4===r.length?[a,s,u,c]:[a,s,u,c,b+r[4]]);}}})(p,n,r,i,o,a,s,u+m.line,c+m.column,b,x);}}(n,e,r,i,o,a,s,0,0,1/0,1/0),x({version:3,file:n.file,names:a,sources:i,sourcesContent:o,mappings:r,ignoreList:s});},t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=-1,t.TraceMap=v,t.allGeneratedPositionsFor=function(t,e){let{source:n,line:r,column:i,bias:o}=e;return C(t,n,r,i,o||-1,!0);},t.decodedMap=function(t){return _(t,y(t));},t.decodedMappings=y,t.eachMapping=function(t,e){let n=y(t),{names:r,resolvedSources:i}=t;for(let t=0;t<n.length;t++){let o=n[t];for(let n=0;n<o.length;n++){let a=o[n],s=t+1,u=a[0],c=null,l=null,f=null,d=null;1!==a.length&&(c=i[a[1]],l=a[2]+1,f=a[3]),5===a.length&&(d=r[a[4]]),e({generatedLine:s,generatedColumn:u,source:c,originalLine:l,originalColumn:f,name:d});}}},t.encodedMap=function(t){return _(t,m(t));},t.encodedMappings=m,t.generatedPositionFor=function(t,e){let{source:n,line:r,column:i,bias:o}=e;return C(t,n,r,i,o||1,!1);},t.isIgnored=function(t,e){let{ignoreList:n}=t;if(null==n)return!1;let r=b(t,e);return -1!==r&&n.includes(r);},t.originalPositionFor=function(t,e){let{line:n,column:r,bias:i}=e;if(--n<0)throw Error(g);if(r<0)throw Error(p);let o=y(t);if(n>=o.length)return E(null,null,null,null);let a=o[n],s=M(a,t._decodedMemo,n,r,i||1);if(-1===s)return E(null,null,null,null);let u=a[s];if(1===u.length)return E(null,null,null,null);let{names:c,resolvedSources:l}=t;return E(l[u[1]],u[2]+1,u[3],5===u.length?c[u[4]]:null);},t.presortedDecodedMap=x,t.sourceContentFor=function(t,e){let{sourcesContent:n}=t;if(null==n)return null;let r=b(t,e);return -1===r?null:n[r];},t.traceSegment=function(t,e,n){let r=y(t);if(e>=r.length)return null;let i=r[e],o=M(i,t._decodedMemo,e,n,1);return -1===o?null:i[o];};},"object"==typeof e&&void 0!==t?i(e,n("8daaab2c"),n("78c52d9c")):i((r="undefined"!=typeof globalThis?globalThis:r||self).traceMapping={},r.sourcemapCodec,r.resolveURI);},"27fcc6bf":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("22b52967"),i=["shift","ctrl","alt","control","meta"],o={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0};},getEvents:function(){return this.zoomKey&&-1!==i.indexOf(this.zoomKey)||(this.zoomKey="ctrl"),{wheel:"onWheel"};},onWheel:function(t){var e=this;if(this.allowDrag(t)){var n=this.graph,r=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];if(r.includes("control")&&r.push("ctrl"),r.some(function(e){return t["".concat(e,"Key")];})){var i=n.get("canvas").getPointByClient(t.clientX,t.clientY),o=n.getZoom();t.wheelDelta>0?o+=.05*o:o-=.05*o,n.zoomTo(o,{x:i.x,y:i.y});}else{var a=t.deltaX||t.movementX,s=t.deltaY||t.movementY;!s&&navigator.userAgent.indexOf("Firefox")>-1&&(s=-(125*t.wheelDelta)/3);var u=this.graph.get("width"),c=this.graph.get("height"),l=this.graph.get("canvas").getCanvasBBox(),f=this.scalableRange,d=this.scalableRange;f<1&&f>-1&&(f*=u,d*=c);var h=l.minX,g=l.maxX,p=l.minY,v=l.maxY;a>0?g<-f?a=0:g-a<-f&&(a=g+f):a<0&&(h>u+f?a=0:h-a>u+f&&(a=h-(u+f))),s>0?v<-d?s=0:v-s<-d&&(s=v+d):s<0&&(p>c+d?s=0:p-s>c+d&&(s=p-(c+d))),"x"===this.get("direction")?s=0:"y"===this.get("direction")&&(a=0),n.translate(-a,-s);}if(t.preventDefault(),this.get("enableOptimize")){var m=this.get("optimizeZoom"),y=this.get("optimized"),b=n.getNodes(),x=n.getEdges(),_=b.length,E=x.length;if(!y){for(var w=0;w<_;w++){var M=b[w];if(!M.destroyed)for(var C=M.get("group").get("children"),A=C.length,S=0;S<A;S++){var D=C[S];D.destoryed||D.get("isKeyShape")||(D.set("ori-visibility",D.get("ori-visibility")||D.get("visible")),D.hide());}}for(var I=0;I<E;I++)for(var C=x[I].get("group").get("children"),A=C.length,S=0;S<A;S++){var D=C[S];D.set("ori-visibility",D.get("ori-visibility")||D.get("visible")),D.hide();}this.set("optimized",!0);}clearTimeout(this.get("timeout"));var T=setTimeout(function(){var t=n.getZoom();if(e.get("optimized")){e.set("optimized",!1);for(var r=0;r<_;r++){var i=b[r],o=i.get("group").get("children"),a=o.length;if(t<m){var s=i.getKeyShape(),u=s.get("ori-visibility");u&&s.show();}else for(var c=0;c<a;c++){var l=o[c],u=l.get("ori-visibility");!l.get("visible")&&u&&u&&l.show();}}for(var f=0;f<E;f++){var d=x[f],o=d.get("group").get("children"),a=o.length;if(t<m){var s=d.getKeyShape(),u=s.get("ori-visibility");u&&s.show();}else for(var c=0;c<a;c++){var l=o[c];if(!l.get("visible")){var u=l.get("ori-visibility");u&&l.show();}}}}},100);this.set("timeout",T);}}},allowDrag:function(t){var e,n,i=t.target,o=i&&i.isCanvas&&i.isCanvas();if((0,r.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!o)return!1;if((0,r.isObject)(this.allowDragOnItem)){var a=this.allowDragOnItem,s=a.node,u=a.edge,c=a.combo,l=null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e);if(!s&&"node"===l||!u&&"edge"===l||!c&&"combo"===l)return!1;}return!0;}};},"27ff5dba":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,i);}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n];}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e});}:function(t,e){t.default=e;}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e;},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceLayout=void 0;var c=s(n("bc4ca52b")),l=u(n("e8b19236")),f=n("38788347"),d=n("5092cda5"),h=n("19dcb3fc"),g=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.nodeStrength=null,n.edgeStrength=null,n.preventOverlap=!1,n.clusterNodeStrength=null,n.clusterEdgeStrength=null,n.clusterEdgeDistance=null,n.clusterNodeSize=null,n.clusterFociStrength=null,n.linkDistance=50,n.alphaDecay=.028,n.alphaMin=.001,n.alpha=.3,n.collideStrength=1,n.workerEnabled=!1,n.tick=function(){},n.onLayoutEnd=function(){},n.ticking=void 0,e&&n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],nodeStrength:null,edgeStrength:null,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,linkDistance:50,forceSimulation:null,alphaDecay:.028,alphaMin:.001,alpha:.3,collideStrength:1,clustering:!1,clusterNodeStrength:-1,clusterEdgeStrength:.1,clusterEdgeDistance:100,clusterFociStrength:.8,clusterNodeSize:10,tick:function(){},onLayoutEnd:function(){},workerEnabled:!1};},e.prototype.init=function(t){this.nodes=t.nodes||[];var e=t.edges||[];this.edges=e.map(function(t){var e={},n=["targetNode","sourceNode","startPoint","endPoint"];return Object.keys(t).forEach(function(r){n.indexOf(r)>-1||(e[r]=t[r]);}),e;}),this.ticking=!1;},e.prototype.execute=function(t){var e=this,n=e.nodes,r=e.edges;if(!e.ticking){var i=e.forceSimulation,o=e.alphaMin,a=e.alphaDecay,s=e.alpha;if(i){if(t){if(e.clustering&&e.clusterForce&&(e.clusterForce.nodes(n),e.clusterForce.links(r)),i.nodes(n),r&&e.edgeForce)e.edgeForce.links(r);else if(r&&!e.edgeForce){var u=c.forceLink().id(function(t){return t.id;}).links(r);e.edgeStrength&&u.strength(e.edgeStrength),e.linkDistance&&u.distance(e.linkDistance),e.edgeForce=u,i.force("link",u);}}e.preventOverlap&&e.overlapProcess(i),i.alpha(s).restart(),this.ticking=!0;}else try{var f=c.forceManyBody();if(e.nodeStrength&&f.strength(e.nodeStrength),i=c.forceSimulation().nodes(n),e.clustering){var d=(0,l.default)();d.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),r&&d.links(r),n&&d.nodes(n),d.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=d,i.force("group",d);}if(i.force("center",c.forceCenter(e.center[0],e.center[1])).force("charge",f).alpha(s).alphaDecay(a).alphaMin(o),e.preventOverlap&&e.overlapProcess(i),r){var u=c.forceLink().id(function(t){return t.id;}).links(r);e.edgeStrength&&u.strength(e.edgeStrength),e.linkDistance&&u.distance(e.linkDistance),e.edgeForce=u,i.force("link",u);}if(e.workerEnabled&&!("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope)&&(e.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),e.workerEnabled){i.stop();for(var g,p,v,m=(p=(g=i).alphaMin(),v=g.alphaTarget(),Math.ceil(Math.log((p-v)/(g.alpha()-v))/Math.log(1-g.alphaDecay()))),y=1;y<=m;y++)i.tick(),postMessage({nodes:n,currentTick:y,totalTicks:m,type:h.LAYOUT_MESSAGE.TICK},void 0);e.ticking=!1;}else i.on("tick",function(){e.tick();}).on("end",function(){e.ticking=!1,e.onLayoutEnd&&e.onLayoutEnd();}),e.ticking=!0;e.forceSimulation=i,e.ticking=!0;}catch(t){e.ticking=!1,console.warn(t);}}},e.prototype.overlapProcess=function(t){var e,n,r=this.nodeSize,i=this.nodeSpacing,o=this.collideStrength;if(n=(0,f.isNumber)(i)?function(){return i;}:(0,f.isFunction)(i)?i:function(){return 0;},r){if((0,f.isFunction)(r))e=function(t){return r(t)+n(t);};else if((0,f.isArray)(r)){var a=(r[0]>r[1]?r[0]:r[1])/2;e=function(t){return a+n(t);};}else if((0,f.isNumber)(r)){var s=r/2;e=function(t){return s+n(t);};}else e=function(){return 10;};}else e=function(t){if(t.size){if((0,f.isArray)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e/2+n(t);}if((0,f.isObject)(t.size)){var e=t.size.width>t.size.height?t.size.width:t.size.height;return e/2+n(t);}return t.size/2+n(t);}return 10+n(t);};t.force("collisionForce",c.forceCollide(e).strength(o));},e.prototype.updateCfg=function(t){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.forceSimulation=null,Object.assign(this,t);},e.prototype.destroy=function(){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.nodes=null,this.edges=null,this.destroyed=!0;},e;}(d.Base);e.ForceLayout=g;},"282f35e8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r={value:()=>{}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[];}return new o(r);}function o(t){this._=t;}function a(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break;}return null!=n&&t.push({name:e,value:n}),t;}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e};}),o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((n=(t=i[o]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value;}(r[n],t.name)))return n;return;}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++o<s;)if(n=(t=i[o]).type)r[n]=a(r[n],t.name,e);else if(null==e)for(n in r)r[n]=a(r[n],t.name,null);return this;},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t);},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i);},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n);}};var s=i;},"285cd33d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("bd41dba3")),i=function(t){if("object"!=typeof t||null===t)return t;if((0,r.default)(t)){e=[];for(var e,n=0,o=t.length;n<o;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=i(t[n]):e[n]=t[n];}else for(var a in e={},t)"object"==typeof t[a]&&null!=t[a]?e[a]=i(t[a]):e[a]=t[a];return e;},o=i;},"2893eb26":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=r._(n("0053e717")),o=r._(n("9ec2f18a")),a=r._(n("dd056852")),s=r._(n("9d40785a")),u=r._(n("203f7a22")),c=r._(n("59ef8b3d")),l=r._(n("3a71d7df")),f=n("32a22155"),d=r._(n("750261c7")),h=r._(n("08bc9c97")),g=r._(n("64978039"));(0,f.registerTickMethod)("cat",i.default),(0,f.registerTickMethod)("time-cat",h.default),(0,f.registerTickMethod)("wilkinson-extended",a.default),(0,f.registerTickMethod)("r-pretty",l.default),(0,f.registerTickMethod)("time",d.default),(0,f.registerTickMethod)("time-pretty",g.default),(0,f.registerTickMethod)("log",s.default),(0,f.registerTickMethod)("pow",u.default),(0,f.registerTickMethod)("quantile",c.default),(0,f.registerTickMethod)("d3-linear",o.default);},"28f3dbcc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return h;}});var r=n("852bbaa9"),i=n("4c6d310c"),o=r._(n("2105a9e4")),a=r._(n("85b3418c")),s=r._(n("4e4cdeae")),u=r._(n("960236de")),c=r._(n("88430f34")),l=r._(n("ee85e949")),f=n("f6fd9972"),d=f.ext.transform,h=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},u),a),s),o),c),l),{transform:d,mat3:f.mat3});},"29f820e5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=function(){function t(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1;}return t.prototype.getLength=function(){return this.length;},t.prototype.contains=function(t,e){var n=this.length/2;return t<=this.xmid+n&&t>=this.xmid-n&&e<=this.ymid+n&&e>=this.ymid-n;},t.prototype.NW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid+this.length/4,length:this.length/2});},t.prototype.NE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid+this.length/4,length:this.length/2});},t.prototype.SW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid-this.length/4,length:this.length/2});},t.prototype.SE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid-this.length/4,length:this.length/2});},t;}();e.default=r;},"29fffa42":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("906a7e64"),i="rgb(0, 0, 0)",o=(0,r.getColorsWithSubjectColor)("rgb(95, 149, 255)","rgb(255, 255, 255)"),a={version:"0.8.23",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:o.mainStroke,fill:o.mainFill},size:20,color:o.mainStroke,linkPoints:{size:8,lineWidth:1,fill:o.activeFill,stroke:o.activeStroke}},nodeStateStyles:{active:{fill:o.activeFill,stroke:o.activeStroke,lineWidth:2,shadowColor:o.mainStroke,shadowBlur:10},selected:{fill:o.selectedFill,stroke:o.selectedStroke,lineWidth:4,shadowColor:o.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:o.highlightFill,stroke:o.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:o.inactiveFill,stroke:o.inactiveStroke,lineWidth:1},disable:{fill:o.disableFill,stroke:o.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:i,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:o.edgeMainStroke,lineAppendWidth:2},color:o.edgeMainStroke},edgeStateStyles:{active:{stroke:o.edgeActiveStroke,lineWidth:1},selected:{stroke:o.edgeSelectedStroke,lineWidth:2,shadowColor:o.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:o.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:o.edgeInactiveStroke,lineWidth:1},disable:{stroke:o.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:i,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:o.comboMainFill,lineWidth:1,stroke:o.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:o.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:o.comboActiveStroke,lineWidth:1,fill:o.comboActiveFill},selected:{stroke:o.comboSelectedStroke,lineWidth:2,fill:o.comboSelectedFill,shadowColor:o.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:o.comboHighlightStroke,lineWidth:2,fill:o.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:o.comboInactiveStroke,fill:o.comboInactiveFill,lineWidth:1},disable:{stroke:o.comboDisableStroke,fill:o.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};},"2a0f881f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6e810311")),i=function(t){return(0,r.default)(t,"Arguments");};},"2a1f2db7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("533b8f72")),i=function(t){if((0,r.default)(t))return t.reduce(function(t,e){return Math.min(t,e);},t[0]);};},"2a56d5d2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=r._(n("6f63505d")),o=r._(n("78294f9e")),a=r._(n("21422ae0")),s=r._(n("4af4df40")),u=r._(n("e67082b2")),c=r._(n("d8e63692")),l=n("b9c9496c"),f=function(t){(0,u.default)(n,t);var e=(0,c.default)(n);function n(t,r){var o;return(0,a.default)(this,n),(o=e.call(this,t,r)).value=void 0,o.key=void 0,o.start="",o.vars={},o.attr=void 0,o.maxSegmentLength=void 0,o.toPath=void 0,o.interpolator=void 0,o.pointsArray=void 0,o.getPointVars=function(t){return Array.isArray(t)?t:t.replace(/\,\s+/g,",").split(/\s+/).map(function(t){return t.split(",").map(function(t){return parseFloat(t.replace(/[a-z]/gi,""));});});},o.polygonPoints=function(t,e){var n=o.getPointVars(t),r=o.getPointVars(e);if(n.length!==r.length){for(var i=n.length>r.length,a=i?n:r,s=a===n?r:n,u=s.length;u<a.length;u++)s[u]=s[s.length-1];return i?[a,s]:[s,a];}return[n,r];},o.getAnimStart=function(){var t=(0,s.default)(o),e=t.target,n=t.startAt,r=void 0===n?{}:n,a=t.key,u=e.tagName;return r[a]&&("object"===(0,i.default)(r[a])?(o.attr=r[a].attr||o.attr,o.start=r[a].path,o.maxSegmentLength=r[a].maxSegmentLength):"string"==typeof r[a]&&(o.start=r[a])),o.attr="polygon"===u?"points":o.attr,o.attr="path"===u?"d":o.attr,o.start=o.start||(e.getAttribute?e.getAttribute(o.attr):e[o.attr]),o.start=o.start||"M0,0Z","polygon"===u||"points"===o.attr?o.pointsArray=o.polygonPoints(o.start,o.toPath):o.interpolator=(0,l.interpolate)(o.start,o.toPath,{maxSegmentLength:o.maxSegmentLength}),o.start;},o.setArrayRatio=function(t,e,n,r){if("string"==typeof n)return n;var i=e[r];return(n-i)*t+i;},o.render=function(t){var e;if("polygon"===(0,s.default)(o).target.tagName||"points"===o.attr){var n=o.pointsArray[0];e=o.pointsArray[1].map(function(e,r){return e.map(function(e,i){return o.setArrayRatio(t,n[r],e,i);}).join(", ");}).join(" ");}else e=o.interpolator(t);return{path:e,attr:o.attr};},o.value=t,o.key=r,o.attr=t.attr||"",o.toPath=t.path,o.maxSegmentLength=void 0===t.maxSegmentLength?.5:t.maxSegmentLength,o;}return(0,o.default)(n);}(r._(n("02aaba42")).default);f.key="setAttribute",f.className="SVGMorph";},"2a818b28":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.camelize=e.isString=void 0,e.isString=function(t){return"string"==typeof t;};var r,i,o=/-(\w)/g;e.camelize=(r=function(t){return t.replace(o,function(t,e){return e?e.toUpperCase():"";});},i=Object.create(null),function(t){return i[t]||(i[t]=r(t));});},"2a92b4fb":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{expIn:function(){return i;},expInOut:function(){return a;},expOut:function(){return o;}});var r=n("cb805605");function i(t){return(0,r.tpmt)(1-+t);}function o(t){return 1-(0,r.tpmt)(t);}function a(t){return((t*=2)<=1?(0,r.tpmt)(1-t):2-(0,r.tpmt)(t-1))/2;}},"2ac226b1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("c2d1eb5c")),a=function(t,e){return!!((0,i.default)(t)||(0,o.default)(t))&&t[t.length-1]===e;};},"2acda869":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"toRGB",{enumerable:!0,get:function(){return a;}});var r=n("19f1bc3f"),i=n("8a7a4560"),o=/rgba?\(([\s.,0-9]+)\)/,a=(0,r.memoize)(function(t){if("#"===t[0]&&7===t.length)return t;var e,n=((e=document.getElementById("antv-web-colour-picker"))||((e=document.createElement("i")).id="antv-web-colour-picker",e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e)),e);n.style.color=t;var r=document.defaultView.getComputedStyle(n,"").getPropertyValue("color"),a=o.exec(r)[1].split(/\s*,\s*/).map(function(t){return Number(t);});return(0,i.arr2rgb)(a);},function(t){return t;},256);},"2ad4f37c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return v;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("4c6d310c"),a=n("8d42ebc3"),s=n("22b52967"),u=r._(n("235d18ef")),c=n("cf6c8813"),l=n("11214b3f"),f=r._(n("0b36e6a4")),d=r._(n("31290f85")),h=r._(n("df09585d")),g=i._(n("b28fb25f"));function p(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];if(r=(0,d.default)(o,e,n))break;}return r;}var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,o.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},e),{startArrow:!1,endArrow:!1});},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow();},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow();},e.prototype._setPathArr=function(t){this.attrs.path=(0,c.path2Absolute)(t);var e=h.default.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null);},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=(0,c.path2Segments)(this.attr("path")),this.set("segments",t)),t;},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();g.addStartArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1]);}if(n){var r=this.getEndTangent();g.addEndArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1]);}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var u=this.getTotalLength();s=h.default.isPointInStroke(o,i,t,e,u);}if(!s&&r){if(a)s=(0,f.default)(this,t,e);else{var c=this.attr("path"),l=h.default.extractPolygons(c);s=p(l.polygons,t,e)||p(l.polylines,t,e);}}return s;},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");(0,l.drawPath)(this,t,e,n);},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t);},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return(0,s.isNil)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t;},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;(0,s.each)(r,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i);});var o=i[n];if((0,s.isNil)(o)||(0,s.isNil)(n))return null;var u=o.length,c=i[n+1];return a.Cubic.pointAt(o[u-2],o[u-1],c[1],c[2],c[3],c[4],c[5],c[6],e);},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",h.default.pathToCurve(t));},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,u=[],c=this.get("curve");if(c){if((0,s.each)(c,function(t,e){n=c[e+1],r=t.length,n&&(i+=a.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0);}),this.set("totalLength",i),0===i){this.set("tCache",[]);return;}(0,s.each)(c,function(s,l){n=c[l+1],r=s.length,n&&((t=[])[0]=o/i,e=a.Cubic.length(s[r-2],s[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,u.push(t));}),this.set("tCache",u);}},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?t.push([n[0]-i[0],n[1]-i[1]]):t.push([r[0],r[1]]),t.push([n[0],n[1]]);}return t;},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?t.push([i[0]-o[0],i[1]-o[1]]):t.push([r[0],r[1]]),t.push([i[0],i[1]]);}return t;},e;}(u.default);},"2b26c989":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("83469828"))&&r.__esModule?r:{default:r},o=n("6a4ad838");e.default=function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var r,a=1,s=0,u=1e3,c=t.nodes,l=void 0===c?[]:c,f=t.edges,d=void 0===f?[]:f,h=l.length,g={},p={},v=0;v<h;++v){var m=l[v],y=m.id;g[y]=1/h,p[y]=1/h;}for(var b=(0,i.default)(t);u>0&&a>e;){s=0;for(var v=0;v<h;++v){var m=l[v],y=m.id;if(r=0,0===b[m.id].inDegree)g[y]=0;else{for(var x=(0,o.getNeighbors)(y,d,"source"),_=0;_<x.length;++_){var E=x[_],w=b[E].outDegree;w>0&&(r+=p[E]/w);}g[y]=n*r,s+=g[y];}}s=(1-s)/h,a=0;for(var v=0;v<h;++v){var m=l[v],y=m.id;a+=Math.abs((r=g[y]+s)-p[y]),p[y]=r;}u-=1;}return p;};},"2b42466f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{interpolate:function(){return i.default;},interpolateArray:function(){return o.default;}});var r=n("777fffbe"),i=r._(n("cc6c61ec")),o=r._(n("d3e56c5a"));},"2b787e3d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("0aff2e87")),i=Array.prototype.splice,o=function(t,e){if(!(0,r.default)(t))return[];for(var n=t?e.length:0,o=n-1;n--;){var a=void 0,s=e[n];(n===o||s!==a)&&(a=s,i.call(t,s,1));}return t;};},"2ba22957":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){var o,a,s,u,c;void 0===i&&(i=!0),function t(e,n,i,o,a){void 0===a&&(a=!0),o.enter({current:n,previous:i});var s=e.edges;(0,r.getNeighbors)(n,void 0===s?[]:s,a?"target":void 0).forEach(function(r){o.allowTraversal({previous:i,current:n,next:r})&&t(e,r,n,o,a);}),o.leave({current:n,previous:i});}(t,e,"",(void 0===(o=n)&&(o={}),a=o,s=function(){},u={},c=function(t){var e=t.next;return!u[e]&&(u[e]=!0,!0);},a.allowTraversal=o.allowTraversal||c,a.enter=o.enter||s,a.leave=o.leave||s,a),i);};var r=n("6a4ad838");},"2ba40a20":function(t,e,n){"use strict";function r(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t;}n.d(e,"__esModule",{value:!0}),n.d(e,"vertical",{enumerable:!0,get:function(){return r;}});},"2becae4d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("21422ae0")),o=r._(n("78294f9e")),a=function(){function t(e,n){(0,i.default)(this,t),this.attribute=void 0,this.buffer=void 0;var r=n.buffer,o=n.offset,a=n.stride,s=n.normalized,u=n.size,c=n.divisor;this.buffer=r,this.attribute={buffer:r.get(),offset:o||0,stride:a||0,normalized:s||!1,divisor:c||0},u&&(this.attribute.size=u);}return(0,o.default)(t,[{key:"get",value:function(){return this.attribute;}},{key:"updateBuffer",value:function(t){this.buffer.subData(t);}},{key:"destroy",value:function(){this.buffer.destroy();}}]),t;}();},"2c78d2ac":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Color:function(){return i;},Rgb:function(){return C;},brighter:function(){return a;},darker:function(){return o;},default:function(){return x;},hsl:function(){return N;},hslConvert:function(){return F;},rgb:function(){return M;},rgbConvert:function(){return w;}});var r=n("852bbaa9")._(n("07aa4744"));function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,f=RegExp(`^rgb\\(${s},${s},${s}\\)$`),d=RegExp(`^rgb\\(${c},${c},${c}\\)$`),h=RegExp(`^rgba\\(${s},${s},${s},${u}\\)$`),g=RegExp(`^rgba\\(${c},${c},${c},${u}\\)$`),p=RegExp(`^hsl\\(${u},${c},${c}\\)$`),v=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 b(){return this.rgb().formatRgb();}function x(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?E(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?E(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 C(e[1],e[2],e[3],1):(e=d.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?E(e[1],e[2],e[3],e[4]):(e=g.exec(t))?E(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?k(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?k(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?_(m[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null;}function _(t){return new C(t>>16&255,t>>8&255,255&t,1);}function E(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r);}function w(t){return(t instanceof i||(t=x(t)),t)?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C;}function M(t,e,n,r){return 1==arguments.length?w(t):new C(t,e,n,null==r?1:r);}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r;}function A(){return`#${T(this.r)}${T(this.g)}${T(this.b)}`;}function S(){let t=D(this.opacity);return`${1===t?"rgb(":"rgba("}${I(this.r)}, ${I(this.g)}, ${I(this.b)}${1===t?")":`, ${t})`}`;}function D(t){return isNaN(t)?1:Math.max(0,Math.min(1,t));}function I(t){return Math.max(0,Math.min(255,Math.round(t)||0));}function T(t){return((t=I(t))<16?"0":"")+t.toString(16);}function k(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new O(t,e,n,r);}function F(t){if(t instanceof O)return new O(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=x(t)),!t)return new O;if(t instanceof O)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+(n<r)*6:n===a?(r-e)/u+2:(e-n)/u+4,u/=c<.5?a+o:2-a-o,s*=60):u=c>0&&c<1?0:s,new O(s,u,c,t.opacity);}function N(t,e,n,r){return 1==arguments.length?F(t):new O(t,e,n,null==r?1:r);}function O(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r;}function B(t){return(t=(t||0)%360)<0?t+360:t;}function P(t){return Math.max(0,Math.min(1,t||0));}function L(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255;}(0,r.default)(i,x,{copy(t){return Object.assign(new this.constructor,this,t);},displayable(){return this.rgb().displayable();},hex:y,formatHex:y,formatHex8:function(){return this.rgb().formatHex8();},formatHsl:function(){return F(this).formatHsl();},formatRgb:b,toString:b}),(0,r.default)(C,M,(0,r.extend)(i,{brighter(t){return t=null==t?a:Math.pow(a,t),new C(this.r*t,this.g*t,this.b*t,this.opacity);},darker(t){return t=null==t?o:Math.pow(o,t),new C(this.r*t,this.g*t,this.b*t,this.opacity);},rgb(){return this;},clamp(){return new C(I(this.r),I(this.g),I(this.b),D(this.opacity));},displayable(){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:A,formatHex:A,formatHex8:function(){return`#${T(this.r)}${T(this.g)}${T(this.b)}${T((isNaN(this.opacity)?1:this.opacity)*255)}`;},formatRgb:S,toString:S})),(0,r.default)(O,N,(0,r.extend)(i,{brighter(t){return t=null==t?a:Math.pow(a,t),new O(this.h,this.s,this.l*t,this.opacity);},darker(t){return t=null==t?o:Math.pow(o,t),new O(this.h,this.s,this.l*t,this.opacity);},rgb(){var t=this.h%360+(this.h<0)*360,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 C(L(t>=240?t-240:t+120,i,r),L(t,i,r),L(t<120?t+240:t-120,i,r),this.opacity);},clamp(){return new O(B(this.h),P(this.s),P(this.l),D(this.opacity));},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1;},formatHsl(){let t=D(this.opacity);return`${1===t?"hsl(":"hsla("}${B(this.h)}, ${100*P(this.s)}%, ${100*P(this.l)}%${1===t?")":`, ${t})`}`;}}));},"2c8b655a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("c9ae1e54")),i=function(t){return(0,r.default)(t)?Array.prototype.slice.call(t):[];};},"2d2b746a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("7048382e"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0});},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,o.each)(e||r,function(t,e){"img"===e?n._setImage(r.img):a.SVG_ATTR_MAP[e]&&i.setAttribute(a.SVG_ATTR_MAP[e],t);});},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e);},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,o.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL());}},e;}(r._(n("1bfab17d")).default);},"2df371cc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("c9ae1e54")),i=function(t,e){return!!(0,r.default)(t)&&t.indexOf(e)>-1;};},"2e2f736c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.isArray=void 0,e.isArray=Array.isArray;},"2e47c070":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{inspectMatrix:function(){return o;},inspectMatrixWithOptions:function(){return a;}});let r=" ".repeat(2),i=" ".repeat(4);function o(){return a(this);}function a(t,e={}){let{maxRows:n=15,maxColumns:o=10,maxNumSize:s=8}=e;return`${t.constructor.name} {
${r}[
${i}${function(t,e,n,r){let{rows:o,columns:a}=t,s=Math.min(o,e),u=Math.min(a,n),c=[];for(let e=0;e<s;e++){let n=[];for(let i=0;i<u;i++)n.push(function(t,e){let n=String(t);if(n.length<=e)return n.padEnd(e," ");let r=t.toPrecision(e-2);if(r.length<=e)return r;let i=t.toExponential(e-2),o=i.indexOf("e"),a=i.slice(o);return i.slice(0,e-a.length)+a;}(t.get(e,i),r));c.push(`${n.join(" ")}`);}return u!==a&&(c[c.length-1]+=` ... ${a-n} more columns`),s!==o&&c.push(`... ${o-e} more rows`),c.join(`
${i}`);}(t,n,o,s)}
${r}]
${r}rows: ${t.rows}
${r}columns: ${t.columns}
}`;}},"2e5ed0a2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("afb67b89"),o=r._(n("b6b3d6c6"));class a extends o.default{constructor(t,e){(0,i.checkRowIndex)(t,e),super(t,1,t.columns),this.row=e;}set(t,e,n){return this.matrix.set(this.row,e,n),this;}get(t,e){return this.matrix.get(this.row,e);}}},"2ef9ac2b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{HiddenText:function(){return o;},LiveRegion:function(){return a;},useAnnouncement:function(){return s;}});var r=n("852bbaa9")._(n("5b220c3d"));let i={display:"none"};function o(t){let{id:e,value:n}=t;return r.default.createElement("div",{id:e,style:i},n);}function a(t){let{id:e,announcement:n,ariaLiveType:i="assertive"}=t;return r.default.createElement("div",{id:e,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},n);}function s(){let[t,e]=(0,r.useState)("");return{announce:(0,r.useCallback)(t=>{null!=t&&e(t);},[]),announcement:t};}},"300ecc66":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{DAY:function(){return g;},HOUR:function(){return h;},MINUTE:function(){return d;},MONTH:function(){return p;},SECOND:function(){return f;},YEAR:function(){return v;},getTickInterval:function(){return y;},timeFormat:function(){return c;},toTimeStamp:function(){return l;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("22b52967"),a=i._(n("a3210f79")),s=r._(n("7a8ce254")),u="format";function c(t,e){return(a[u]||a.default[u])(t,e);}function l(t){return(0,o.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,o.isDate)(t)&&(t=t.getTime()),t;}var f=1e3,d=6e4,h=36e5,g=864e5,p=26784e5,v=31536e6,m=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",36e5],["HH",216e5],["HH",432e5],["YYYY-MM-DD",864e5],["YYYY-MM-DD",3456e5],["YYYY-WW",6048e5],["YYYY-MM",26784e5],["YYYY-MM",107136e5],["YYYY-MM",160704e5],["YYYY",32832e6]];function y(t,e,n){var r=(0,s.default)(function(t){return t[1];})(m,(e-t)/n)-1,i=m[r];return r<0?i=m[0]:r>=m.length&&(i=(0,o.last)(m)),i;}},"3043c99b":function(t,e,n){"use strict";function r(){if("undefined"!=typeof document)return document.createElement("canvas");throw Error("Cannot create a canvas in this context");}n.d(e,"__esModule",{value:!0}),n.d(e,"createCanvas",{enumerable:!0,get:function(){return r;}});},"30dd8503":function(t,e,n){"use strict";function r(t){return(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;})(t);}Object.defineProperty(e,"__esModule",{value:!0}),e.detectAllUndirectedCycle=e.detectAllDirectedCycle=e.detectAllCycles=e.default=void 0;var i,o=(i=n("2ba22957"))&&i.__esModule?i:{default:i},a=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=u(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a];}return i.default=t,n&&n.set(t,i),i;}(n("3dbcbb94")),s=n("6a4ad838");function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e;})(t);}var c=function(t,e,n){void 0===n&&(n=!0);for(var r,i,o=[],u=(0,a.default)(t,!1),c=0;c<u.length;c++){var l=u[c];if(l.length)for(var f=l[0],d=f.id,h=[f],g=((r={})[d]=f,r),p=((i={})[d]=new Set,i);h.length>0;)for(var v=h.pop(),m=v.id,y=(0,s.getNeighbors)(m,t.edges),b=0;b<y.length;b+=1)!function(r){var i,a=y[r],s=t.nodes.find(function(t){return t.id===a;});if(a===m)o.push(((i={})[a]=v,i));else if(a in p){if(!p[m].has(s)){for(var u=!0,c=[s,v],l=g[m];p[a].size&&!p[a].has(l)&&(c.push(l),l!==g[l.id]);)l=g[l.id];if(c.push(l),e&&n?(u=!1,c.findIndex(function(t){return e.indexOf(t.id)>-1;})>-1&&(u=!0)):e&&!n&&c.findIndex(function(t){return e.indexOf(t.id)>-1;})>-1&&(u=!1),u){for(var f={},d=1;d<c.length;d+=1)f[c[d-1].id]=c[d];c.length&&(f[c[c.length-1].id]=c[0]),o.push(f);}p[a].add(v);}}else g[a]=v,h.push(s),p[a]=new Set([v]);}(b);}return o;};e.detectAllUndirectedCycle=c;var l=function(t,e,n){void 0===n&&(n=!0);for(var r=[],i=new Set,o=[],u=[],c={},l={},f=function(t){for(var e=[t];e.length>0;){var n=e.pop();i.has(n)&&(i.delete(n),o[n.id].forEach(function(t){e.push(t);}),o[n.id].clear());}},d=t.nodes,h=void 0===d?[]:d,g=0;g<h.length;g+=1){var p=h[g];l[p.id]=g,c[g]=p;}if(e&&n)for(var g=0;g<e.length;g++)!function(t){var n=e[t];l[h[t].id]=l[n],l[n]=0,c[0]=h.find(function(t){return t.id===n;}),c[l[h[t].id]]=h[t];}(g);for(var v=0;v<h.length;){var m=h.filter(function(t){return l[t.id]>=v;}),y=(0,a.detectStrongConnectComponents)({nodes:m,edges:t.edges}).filter(function(t){return t.length>1;});if(0===y.length)break;var b=function(r){for(var i,o,a=1/0,c=0;c<r.length;c+=1)for(var f=r[c],d=0;d<f.length;d++){var h=l[f[d].id];h<a&&(a=h,o=c);}for(var g=r[o],p=[],c=0;c<g.length;c+=1){var v=g[c];p[v.id]=[];for(var m=0,y=(0,s.getNeighbors)(v.id,t.edges,"target").filter(function(t){return g.map(function(t){return t.id;}).indexOf(t)>-1;});m<y.length;m++){var b=y[m];b!==v.id||!1===n&&e.indexOf(v.id)>-1?p[v.id].push(l[b]):u.push(((i={})[v.id]=v,i));}}return{component:g,adjList:p,minIdx:a};}(y),x=b.minIdx,_=b.adjList,E=b.component;if(E.length>1){E.forEach(function(t){o[t.id]=new Set;});var w=c[x];if(e&&n&&-1===e.indexOf(w.id))return u;!function t(a,s,l){var d=!1;if(e&&!1===n&&e.indexOf(a.id)>-1)return d;r.push(a),i.add(a);for(var h=l[a.id],g=0;g<h.length;g+=1){var p=c[h[g]];if(p===s){for(var v={},m=1;m<r.length;m+=1)v[r[m-1].id]=r[m];r.length&&(v[r[r.length-1].id]=r[0]),u.push(v),d=!0;}else!i.has(p)&&t(p,s,l)&&(d=!0);}if(d)f(a);else for(var g=0;g<h.length;g+=1){var p=c[h[g]];o[p.id].has(a)||o[p.id].add(a);}return r.pop(),d;}(w,w,_),v=x+1;}else break;}return u;};e.detectAllDirectedCycle=l,e.detectAllCycles=function(t,e,n,r){return(void 0===r&&(r=!0),e)?l(t,n,r):c(t,n,r);},e.default=function(t){var e=null,n=t.nodes,r={},i={},a={},s={};(void 0===n?[]:n).forEach(function(t){i[t.id]=t;});for(var u={enter:function(t){var n=t.current,o=t.previous;if(a[n]){e={};for(var s=n,u=o;u!==n;)e[s]=u,s=u,u=r[u];e[s]=u;}else a[n]=n,delete i[n],r[n]=o;},leave:function(t){var e=t.current;s[e]=e,delete a[e];},allowTraversal:function(t){var n=t.next;return!e&&!s[n];}};Object.keys(i).length;){var c=Object.keys(i)[0];(0,o.default)(t,c,u);}return e;};},"30f8c619":function(t,e,n){"use strict";var r=n("6360845b"),i=n("41f4ebcb");function o(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=10*e,i=10*n,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i};}o.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel";},t.exports=o;},"3114e5c2":function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,i);}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n];}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e});}:function(t,e){t.default=e;}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e;},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0});var u=a(n("bc4ca52b")),c=s(n("e3b32e43")),l=s(n("338bd3b5")),f=n("86dbbe2a");e.default=function(t,e){var n=t.nodes,i=t.edges,o=e.width,a=e.height;if(!(null==n?void 0:n.length))return Promise.resolve();var s=[];n.forEach(function(t){if(i.filter(function(e){return e.source===t.id||e.target===t.id;}).length>1){var e=r({},t);delete e.size,s.push(e);}});var d=[];i.forEach(function(t){var e=s.find(function(e){return e.id===t.source;}),n=s.find(function(e){return e.id===t.target;});e&&n&&d.push(t);});var h=new f.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}).layout({nodes:s,edges:d}).nodes;n.forEach(function(t){var e=(h||[]).find(function(e){return e.id===t.id;});t.x=(null==e?void 0:e.x)||o/2,t.y=(null==e?void 0:e.y)||a/2;});var g=JSON.parse(JSON.stringify(n)),p=JSON.parse(JSON.stringify(i)),v=u.forceSimulation().nodes(g).force("link",u.forceLink(p).id(function(t){return t.id;}).distance(function(t){return d.find(function(e){return e.source===t.source&&e.target===t.target;})?30:20;})).force("charge",u.forceManyBody()).force("center",u.forceCenter(o/2,a/2)).force("x",u.forceX(o/2)).force("y",u.forceY(a/2)).alpha(.3).alphaDecay(.08).alphaMin(.001);return new Promise(function(t){v.on("end",function(){n.forEach(function(t){var e=g.find(function(e){return e.id===t.id;});e&&(t.x=e.x,t.y=e.y);});var r=Math.min.apply(Math,n.map(function(t){return t.x;})),s=Math.max.apply(Math,n.map(function(t){return t.x;})),u=Math.min.apply(Math,n.map(function(t){return t.y;})),f=Math.max.apply(Math,n.map(function(t){return t.y;})),d=o/(s-r),h=a/(f-u);n.forEach(function(t){void 0!==t.x&&d<1&&(t.x=(t.x-r)*d),void 0!==t.y&&h<1&&(t.y=(t.y-u)*h);}),n.forEach(function(t){t.sizeTemp=t.size,t.size=[10,10];}),(0,l.default)(n,i),n.forEach(function(t){t.size=t.sizeTemp||[],delete t.sizeTemp;}),(0,c.default)({nodes:n,edges:i},e),t();});});};},"31290f85":function(t,e,n){"use strict";function r(t){return 1e-6>Math.abs(t)?0:t<0?-1:1;}function i(t,e,n){var i=!1,o=t.length;if(o<=2)return!1;for(var a=0;a<o;a++){var s,u=t[a],c=t[(a+1)%o];if(((s=[e,n])[0]-u[0])*(c[1]-u[1])==(c[0]-u[0])*(s[1]-u[1])&&Math.min(u[0],c[0])<=s[0]&&s[0]<=Math.max(u[0],c[0])&&Math.min(u[1],c[1])<=s[1]&&s[1]<=Math.max(u[1],c[1]))return!0;r(u[1]-n)>0!=r(c[1]-n)>0&&0>r(e-(n-u[1])*(u[0]-c[0])/(u[1]-c[1])-u[0])&&(i=!i);}return i;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});},"312cd984":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("99dbff91"),i=n("82084c6c"),o={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var o=t[r];e.push(o[0]),n.push(o[1]);}return(0,i.getBBoxByArray)(e,n);},length:function(t){return(0,r.lengthOfSegment)(t);},pointAt:function(t,e){return(0,r.pointAtSegments)(t,e);},pointDistance:function(t,e,n){return(0,r.distanceAtSegment)(t,e,n);},tangentAngle:function(t,e){return(0,r.angleAtSegments)(t,e);}};},"3187df38":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=t=>()=>t;},"31c5a7f2":function(t,e,n){"use strict";e.__esModule=!0,e.LinesAndColumns=void 0;var r=function(){function t(t){this.string=t;for(var e=[0],n=0;n<t.length;)switch(t[n]){case"\n":e.push(n+=1);break;case"\r":"\n"===t[n+=1]&&(n+=1),e.push(n);break;default:n++;}this.offsets=e;}return t.prototype.locationForIndex=function(t){if(t<0||t>this.string.length)return null;for(var e=0,n=this.offsets;n[e+1]<=t;)e++;var r=t-n[e];return{line:e,column:r};},t.prototype.indexForLocation=function(t){var e=t.line,n=t.column;return e<0||e>=this.offsets.length||n<0||n>this.lengthOfLine(e)?null:this.offsets[e]+n;},t.prototype.lengthOfLine=function(t){var e=this.offsets[t];return(t===this.offsets.length-1?this.string.length:this.offsets[t+1])-e;},t;}();e.LinesAndColumns=r,e.default=r;},"3215bdaa":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("d54fbbc1"));function i(t,e,n,i,o){var a=t.length;if(a<2)return!1;for(var s=0;s<a-1;s++){var u=t[s][0],c=t[s][1],l=t[s+1][0],f=t[s+1][1];if((0,r.default)(u,c,l,f,e,n,i))return!0;}if(o){var d=t[0],h=t[a-1];if((0,r.default)(d[0],d[1],h[0],h[1],e,n,i))return!0;}return!1;}},"324429dd":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{detect:function(){return h;},detectOS:function(){return p;},getNodeVersion:function(){return v;},parseUserAgent:function(){return g;}});let r=n("2a4fe9ac");var i=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e));},o=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser";},a=function(t){this.version=t,this.type="node",this.name="node",this.os=r.platform;},s=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device";},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null;},c=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null;},l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,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",/EdgA?\/([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|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["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",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],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/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["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 h(t){return t?g(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!=typeof navigator?g(navigator.userAgent):v();}function g(t){var e=""!==t&&f.reduce(function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o];},!1);if(!e)return null;var n=e[0],r=e[1];if("searchbot"===n)return new u;var a=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);a?a.length<3&&(a=i(i([],a,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e;}(3-a.length),!0)):a=[];var c=a.join("."),d=p(t),h=l.exec(t);return h&&h[1]?new s(n,c,d,h[1]):new o(n,c,d);}function p(t){for(var e=0,n=d.length;e<n;e++){var r=d[e],i=r[0];if(r[1].exec(t))return i;}return null;}function v(){return void 0!==r&&r.version?new a(r.version.slice(1)):null;}},"325b5b0a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return void 0===t;};},"32691cb9":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.ComboForceLayout=void 0;var o=n("5092cda5"),a=n("38788347"),s=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.maxIteration=100,n.gravity=10,n.comboGravity=10,n.linkDistance=10,n.alpha=1,n.alphaMin=.001,n.alphaDecay=1-Math.pow(n.alphaMin,1/300),n.alphaTarget=0,n.velocityDecay=.6,n.edgeStrength=.6,n.nodeStrength=30,n.preventOverlap=!1,n.preventNodeOverlap=!1,n.preventComboOverlap=!1,n.collideStrength=void 0,n.nodeCollideStrength=.5,n.comboCollideStrength=.5,n.comboSpacing=20,n.comboPadding=10,n.optimizeRangeFactor=1,n.onTick=function(){},n.onLayoutEnd=function(){},n.depthAttractiveForceScale=1,n.depthRepulsiveForceScale=2,n.nodes=[],n.edges=[],n.combos=[],n.comboTrees=[],n.width=300,n.height=300,n.bias=[],n.nodeMap={},n.oriComboMap={},n.indexMap={},n.comboMap={},n.previousLayouted=!1,n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10};},e.prototype.execute=function(){var t=this.nodes,e=this.center;if(this.comboTree={id:"comboTreeRoot",depth:-1,children:this.comboTrees},!t||0===t.length){this.onLayoutEnd&&this.onLayoutEnd();return;}if(1===t.length){t[0].x=e[0],t[0].y=e[1],this.onLayoutEnd&&this.onLayoutEnd();return;}this.initVals(),this.run(),this.onLayoutEnd&&this.onLayoutEnd();},e.prototype.run=function(){var t=this,e=t.nodes,n=t.previousLayouted?t.maxIteration/5:t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var r=t.center,i=t.velocityDecay,o=t.comboMap;t.previousLayouted||t.initPos(o);for(var s=0;s<n;s++)!function(n){var r=[];e.forEach(function(t,e){r[e]={x:0,y:0};}),t.applyCalculate(r),t.applyComboCenterForce(r),e.forEach(function(t,e){(0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)&&(t.x+=r[e].x*i,t.y+=r[e].y*i);}),t.alpha+=(t.alphaTarget-t.alpha)*t.alphaDecay,t.onTick();}(0);var u=[0,0];e.forEach(function(t){(0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)&&(u[0]+=t.x,u[1]+=t.y);}),u[0]/=e.length,u[1]/=e.length;var c=[r[0]-u[0],r[1]-u[1]];e.forEach(function(t,e){(0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)&&(t.x+=c[0],t.y+=c[1]);}),t.combos.forEach(function(t){var e=o[t.id];e&&e.empty&&(t.x=e.cx||t.x,t.y=e.cy||t.y);}),t.previousLayouted=!0;},e.prototype.initVals=function(){var t,e,n,r,i,o,s,u=this.edges,c=this.nodes,l=this.combos,f={},d={},h={};c.forEach(function(t,e){d[t.id]=t,h[t.id]=e;}),this.nodeMap=d,this.indexMap=h;var g={};l.forEach(function(t){g[t.id]=t;}),this.oriComboMap=g,this.comboMap=this.getComboMap();var p=this.preventOverlap;this.preventComboOverlap=this.preventComboOverlap||p,this.preventNodeOverlap=this.preventNodeOverlap||p;var v=this.collideStrength;v&&(this.comboCollideStrength=v,this.nodeCollideStrength=v),this.comboCollideStrength=this.comboCollideStrength?this.comboCollideStrength:0,this.nodeCollideStrength=this.nodeCollideStrength?this.nodeCollideStrength:0;for(var m=0;m<u.length;++m){var y=(0,a.getEdgeTerminal)(u[m],"source"),b=(0,a.getEdgeTerminal)(u[m],"target");f[y]?f[y]++:f[y]=1,f[b]?f[b]++:f[b]=1;}for(var x=[],m=0;m<u.length;++m){var y=(0,a.getEdgeTerminal)(u[m],"source"),b=(0,a.getEdgeTerminal)(u[m],"target");x[m]=f[y]/(f[y]+f[b]);}this.bias=x;var _=this.nodeSize,E=this.nodeSpacing;if(e=(0,a.isNumber)(E)?function(){return E;}:(0,a.isFunction)(E)?E:function(){return 0;},this.nodeSpacing=e,_){if((0,a.isFunction)(_))t=function(t){return _(t);};else if((0,a.isArray)(_)){var w=(_[0]>_[1]?_[0]:_[1])/2;t=function(t){return w;};}else{var M=_/2;t=function(t){return M;};}}else t=function(t){if(t.size){if((0,a.isArray)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e/2;}if((0,a.isObject)(t.size)){var e=t.size.width>t.size.height?t.size.width:t.size.height;return e/2;}return t.size/2;}return 10;};this.nodeSize=t;var C=this.comboSpacing;n=(0,a.isNumber)(C)?function(){return C;}:(0,a.isFunction)(C)?C:function(){return 0;},this.comboSpacing=n;var A=this.comboPadding;r=(0,a.isNumber)(A)?function(){return A;}:(0,a.isArray)(A)?function(){return Math.max.apply(null,A);}:(0,a.isFunction)(A)?A:function(){return 0;},this.comboPadding=r;var S=this.linkDistance;S||(S=10),i=(0,a.isNumber)(S)?function(t){return S;}:S,this.linkDistance=i;var D=this.edgeStrength;D||(D=1),o=(0,a.isNumber)(D)?function(t){return D;}:D,this.edgeStrength=o;var I=this.nodeStrength;I||(I=30),s=(0,a.isNumber)(I)?function(t){return I;}:I,this.nodeStrength=s;},e.prototype.initPos=function(t){this.nodes.forEach(function(e,n){var r=e.comboId,i=t[r];r&&i?(e.x=i.cx+100/(n+1),e.y=i.cy+100/(n+1)):(e.x=100/(n+1),e.y=100/(n+1));});},e.prototype.getComboMap=function(){var t=this,e=t.nodeMap,n=t.comboTrees,r=t.oriComboMap,i={};return(n||[]).forEach(function(n){var o=[];(0,a.traverseTreeUp)(n,function(n){if("node"===n.itemType||!r[n.id])return!0;if(void 0===i[n.id]){var s={id:n.id,name:n.id,cx:0,cy:0,count:0,depth:t.oriComboMap[n.id].depth||0,children:[]};i[n.id]=s;}var u=n.children;u&&u.forEach(function(t){if(!i[t.id]&&!e[t.id])return!0;o.push(t);});var c=i[n.id];if(c.cx=0,c.cy=0,0===o.length){c.empty=!0;var l=r[n.id];c.cx=l.x,c.cy=l.y;}return o.forEach(function(t){if(c.count++,"node"!==t.itemType){var n=i[t.id];(0,a.isNumber)(n.cx)&&(c.cx+=n.cx),(0,a.isNumber)(n.cy)&&(c.cy+=n.cy);return;}var r=e[t.id];r&&((0,a.isNumber)(r.x)&&(c.cx+=r.x),(0,a.isNumber)(r.y)&&(c.cy+=r.y));}),c.cx/=c.count||1,c.cy/=c.count||1,c.children=o,!0;});}),i;},e.prototype.applyComboCenterForce=function(t){var e=this.gravity,n=this.comboGravity||e,r=this.alpha,i=this.comboTrees,o=this.indexMap,s=this.nodeMap,u=this.comboMap;(i||[]).forEach(function(e){(0,a.traverseTreeUp)(e,function(e){if("node"===e.itemType||!u[e.id])return!0;var i=u[e.id],c=(i.depth+1)/10*.5,l=i.cx,f=i.cy;return i.cx=0,i.cy=0,i.children.forEach(function(e){if("node"!==e.itemType){var d=u[e.id];d&&(0,a.isNumber)(d.cx)&&(i.cx+=d.cx),d&&(0,a.isNumber)(d.cy)&&(i.cy+=d.cy);return;}var h=s[e.id],g=h.x-l||.005,p=h.y-f||.005,v=Math.sqrt(g*g+p*p),m=o[h.id],y=n*r/v*c;t[m].x-=g*y,t[m].y-=p*y,(0,a.isNumber)(h.x)&&(i.cx+=h.x),(0,a.isNumber)(h.y)&&(i.cy+=h.y);}),i.cx/=i.count||1,i.cy/=i.count||1,!0;});});},e.prototype.applyCalculate=function(t){var e=this.comboMap,n=this.nodes,r={};n.forEach(function(t,e){n.forEach(function(n,i){if(!(e<i)){var o=t.x-n.x||.005,a=t.y-n.y||.005,s=o*o+a*a,u=Math.sqrt(s);s<1&&(s=u),r["".concat(t.id,"-").concat(n.id)]={vx:o,vy:a,vl2:s,vl:u},r["".concat(n.id,"-").concat(t.id)]={vl2:s,vl:u,vx:-o,vy:-a};}});}),this.updateComboSizes(e),this.calRepulsive(t,r),this.calAttractive(t,r),this.preventComboOverlap&&this.comboNonOverlapping(t,e);},e.prototype.updateComboSizes=function(t){var e=this,n=e.comboTrees,r=e.nodeMap,i=e.nodeSize,o=e.comboSpacing,s=e.comboPadding;(n||[]).forEach(function(n){var u=[];(0,a.traverseTreeUp)(n,function(n){if("node"===n.itemType)return!0;var c=t[n.id];if(!c)return!1;var l=n.children;l&&l.forEach(function(e){(t[e.id]||r[e.id])&&u.push(e);}),c.minX=1/0,c.minY=1/0,c.maxX=-1/0,c.maxY=-1/0,u.forEach(function(t){if("node"!==t.itemType)return!0;var e=r[t.id];if(!e)return!0;var n=i(e),o=e.x-n,a=e.y-n,s=e.x+n,u=e.y+n;c.minX>o&&(c.minX=o),c.minY>a&&(c.minY=a),c.maxX<s&&(c.maxX=s),c.maxY<u&&(c.maxY=u);});var f=e.oriComboMap[n.id].size||10;(0,a.isArray)(f)&&(f=f[0]);var d=Math.max(c.maxX-c.minX,c.maxY-c.minY,f);return c.r=d/2+o(c)/2+s(c),!0;});});},e.prototype.comboNonOverlapping=function(t,e){var n=this.comboTree,r=this.comboCollideStrength,i=this.indexMap,o=this.nodeMap;(0,a.traverseTreeUp)(n,function(n){if(!e[n.id]&&!o[n.id]&&"comboTreeRoot"!==n.id)return!1;var a=n.children;return a&&a.length>1&&a.forEach(function(n,s){if("node"===n.itemType)return!1;var u=e[n.id];u&&a.forEach(function(a,c){if(s<=c||"node"===a.itemType)return!1;var l=e[a.id];if(!l)return!1;var f=u.cx-l.cx||.005,d=u.cy-l.cy||.005,h=f*f+d*d,g=u.r||1,p=l.r||1,v=g+p,m=p*p;if(h<v*v){var y=n.children;if(!y||0===y.length)return!1;var b=a.children;if(!b||0===b.length)return!1;var x=Math.sqrt(h),_=(v-x)/x*r,E=f*_,w=d*_,M=m/(g*g+m),C=1-M;y.forEach(function(e){if("node"!==e.itemType)return!1;if(o[e.id]){var n=i[e.id];b.forEach(function(e){if("node"!==e.itemType||!o[e.id])return!1;var r=i[e.id];t[n].x+=E*M,t[n].y+=w*M,t[r].x-=E*C,t[r].y-=w*C;});}});}});}),!0;});},e.prototype.calRepulsive=function(t,e){var n=this,r=n.nodes,i=n.width*n.optimizeRangeFactor,o=n.nodeStrength,a=n.alpha,s=n.nodeCollideStrength,u=n.preventNodeOverlap,c=n.nodeSize,l=n.nodeSpacing,f=n.depthRepulsiveForceScale,d=n.center;r.forEach(function(h,g){if(h.x&&h.y){if(d){var p=n.gravity,v=h.x-d[0]||.005,m=h.y-d[1]||.005,y=Math.sqrt(v*v+m*m);t[g].x-=v*p*a/y,t[g].y-=m*p*a/y;}r.forEach(function(n,r){if(g!==r&&n.x&&n.y){var d=e["".concat(h.id,"-").concat(n.id)],p=d.vl2,v=d.vl;if(!(v>i)){var m=e["".concat(h.id,"-").concat(n.id)],y=m.vx,b=m.vy,x=Math.log(Math.abs(n.depth-h.depth)/10)+1||1;x=x<1?1:x,n.comboId!==h.comboId&&(x+=1);var _=x?Math.pow(f,x):1,E=o(n)*a/p*_;if(t[g].x+=y*E,t[g].y+=b*E,g<r&&u){var w=c(h)+l(h)||1,M=c(n)+l(n)||1,C=w+M;if(p<C*C){var A=(C-v)/v*s,S=M*M,D=S/(w*w+S),I=y*A,T=b*A;t[g].x+=I*D,t[g].y+=T*D,D=1-D,t[r].x-=I*D,t[r].y-=T*D;}}}}});}});},e.prototype.calAttractive=function(t,e){var n=this,r=n.edges,i=n.linkDistance,o=n.alpha,s=n.edgeStrength,u=n.bias,c=n.depthAttractiveForceScale;r.forEach(function(r,l){var f=(0,a.getEdgeTerminal)(r,"source"),d=(0,a.getEdgeTerminal)(r,"target");if(f&&d&&f!==d){var h=n.indexMap[f],g=n.indexMap[d],p=n.nodeMap[f],v=n.nodeMap[d];if(p&&v){var m=p.depth===v.depth?0:Math.log(Math.abs(p.depth-v.depth)/10);p.comboId===v.comboId&&(m/=2);var y=m?Math.pow(c,m):1;if(p.comboId!==v.comboId&&1===y?y=c/2:p.comboId===v.comboId&&(y=2),(0,a.isNumber)(v.x)&&(0,a.isNumber)(p.x)&&(0,a.isNumber)(v.y)&&(0,a.isNumber)(p.y)){var b=e["".concat(d,"-").concat(f)],x=b.vl,_=b.vx,E=b.vy,w=(x-i(r))/x*o*s(r)*y,M=_*w,C=E*w,A=u[l];t[g].x-=M*A,t[g].y-=C*A,t[h].x+=M*(1-A),t[h].y+=C*(1-A);}}}});},e.prototype.getType=function(){return"comboForce";},e;}(o.Base);e.ComboForceLayout=s;},"32a22155":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{getTickMethod:function(){return i;},registerTickMethod:function(){return o;}});var r={};function i(t){return r[t];}function o(t,e){r[t]=e;}},"32fd355d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("f0b8b26a")),o=r._(n("155fe01c")),a=Object.values?function(t){return Object.values(t);}:function(t){var e=[];return(0,i.default)(t,function(n,r){(0,o.default)(t)&&"prototype"===r||e.push(n);}),e;};},"331dbc55":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return d;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("324429dd"),a=r._(n("25877146")),s=n("61db1663"),u=r._(n("b1f36149")),c=r._(n("b8744f97")),l=(0,o.detect)(),f=l&&"firefox"===l.name,d=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n;}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e;},e.prototype.initContainer=function(){var t=this.get("container");(0,s.isString)(t)&&(t=document.getElementById(t),this.set("container",t));},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"));},e.prototype.initEvents=function(){var t=new c.default({canvas:this});t.init(),this.set("eventController",t);},e.prototype.initTimeline=function(){var t=new u.default(this);this.set("timeline",t);},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px");},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize");},e.prototype.getRenderer=function(){return this.get("renderer");},e.prototype.getCursor=function(){return this.get("cursor");},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.isBrowser&&e&&(e.style.cursor=t);},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(f&&!(0,s.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,s.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY};}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r);},e.prototype.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};},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top};},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top};},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t);},e.prototype.clearEvents=function(){this.get("eventController").destroy();},e.prototype.isCanvas=function(){return!0;},e.prototype.getParent=function(){return null;},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this));},e;}(a.default);},"3382daac":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("35968075"),n("05cb304c");},"338bd3b5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=new Map,i=.8;function o(t,e){var n=(r.get(t.id)||[]).find(function(t){return t.source===e.id||t.target===e.id;}),i=t.size[0]*t.size[1],o=e.size[0]*e.size[1],a=i>o?e:t,s=i>o?t:e,u=a.x-a.size[0]/2,c=a.y-a.size[1]/2,l=a.x+a.size[0]/2,f=a.y+a.size[1]/2,d=s.x-s.size[0]/2,h=s.y-s.size[1]/2,g=s.x+s.size[0]/2,p=s.y+s.size[1]/2,v=a.x,m=a.y,y=s.x,b=s.y,x=0,_=0;if(l>=d&&g>=u&&f>=h&&p>=c)0===(_=Math.sqrt(Math.pow(y-v,2)+Math.pow(b-m,2)))&&(_=1e-7),x=(10/_*100+((l<g?l:g)-(u>d?u:d))*((f<p?f:p)-(c>h?c:h)))*1e7;else{var E,w,M,C,A,S,D,I,T,k,F,N,O,B,P,L,j,R,z,G,Y=!1,X=(E=a.x-a.size[0]/2,w=a.y-a.size[1]/2,M=a.x+a.size[0]/2,C=a.y+a.size[1]/2,A=s.x-s.size[0]/2,S=s.y-s.size[1]/2,D=s.x+s.size[0]/2,I=s.y+s.size[1]/2,T=a.x,k=a.y,F=s.x,N=s.y,B=Math.atan2(O=F-T,N-k),P=0,L=0,j=0,R=0,B>1.5707963267948966?(L=w-I,P=A-M,j=parseFloat(L?(L/Math.cos(B)).toFixed(2):P.toFixed(2)),R=parseFloat(P?(P/Math.sin(B)).toFixed(2):L.toFixed(2))):j=R=0<B&&B<=1.5707963267948966?(L=S-C)>(P=A-M)?parseFloat(L?(L/Math.cos(B)).toFixed(2):P.toFixed(2)):parseFloat(P?(P/Math.sin(B)).toFixed(2):L.toFixed(2)):B<-1.5707963267948966?(L=w-I)>(P=-(D-E))?parseFloat(L?(L/Math.cos(B)).toFixed(2):P.toFixed(2)):parseFloat(P?(P/Math.sin(B)).toFixed(2):L.toFixed(2)):(L=S-C)>(P=Math.abs(O)>(M-E)/2?E-D:O)?parseFloat(L?(L/Math.cos(B)).toFixed(2):P.toFixed(2)):parseFloat(P&&0!==B?(P/Math.sin(B)).toFixed(2):L.toFixed(2)),z=parseFloat(B.toFixed(2)),G=!1,{distance:Math.abs(j<R?j:R),isHoriz:G});_=X.distance,X.isHoriz,_<=10?0!==_?n?x+=10+1e7/_:x+=10+1e8/_:x+=1e7:(x+=_,n&&(x+=_*_));}return x;}function a(t){for(var e=0,n=0;n<t.length;n++){var r=t[n];(r.x<0||r.y<0||r.x>1200||r.y>800)&&(e+=1e12);for(var i=n+1;i<t.length;i++)e+=o(r,t[i]);}return e;}function s(t,e){var n=0;(t.x<0||t.y<0||t.x+t.size[0]+20>1200||t.y+t.size[1]+20>800)&&(n+=1e12);for(var r=0;r<e.length;++r)t.id!==e[r].id&&(n+=o(t,e[r]));return n;}e.default=function(t,e){if(0===t.length)return{nodes:t,edges:e};t.forEach(function(t){var n=e.filter(function(e){return e.source===t.id||e.target===t.id;});r.set(t,n);}),t.sort(function(t,e){var n,i;return(null===(n=r.get(t.id))||void 0===n?void 0:n.length)-(null===(i=r.get(e.id))||void 0===i?void 0:i.length);});for(var n=a(t),o=20,u=1,c=0,l=0;o>0&&!(++l>=50);){var f=function(t,e){for(var n=!1,r=[10,-10,0,0],o=[0,0,10,-10],u=0;u<t.length;++u)for(var c=t[u],l=s(c,t),f=0;f<r.length;f++)if(function(t,e,n,r){var i=new Map;n.forEach(function(t,e){i.set(t.id,t);});var o=r.filter(function(e){return e.source===t.id||e.target===t.id;})||[],a=[];o.forEach(function(e){var n=e.source===t.id?e.target:e.source,r=i.get(n);r&&a.push(r);});for(var s=!0,u=0;u<a.length;u++){var c=a[u],l=180*Math.atan((t.y-c.y)/(c.x-t.y)),f=180*Math.atan((e.y-c.y)/(c.x-e.y)),d=l<30||l>150,h=f<30||f>150,g=l>70&&l<110,p=f>70&&f<110;if(d&&!h||l*f<0||g&&!p||l*f<0){s=!1;break;}if((c.x-t.x)*(c.x-e.x)<0){s=!1;break;}if((c.y-t.y)*(c.y-e.y)<0){s=!1;break;}}return s;}(c,{x:c.x+r[f],y:c.y+o[f]},t,e)){c.x+=r[f],c.y+=o[f];var d=s(c,t),h=Math.random();d<l?(l=d,n=!0):h<i&&h>.1?(l=d,n=!0):(c.x-=r[f],c.y-=o[f]);}return(i>.1&&(i*=.5),n)?a(t):0;}(t,e);0!==f&&(c=f),u=c-n,n=c,0===u?--o:o=20;}return t.forEach(function(t){t.x=t.x-t.size[0]/2,t.y=t.y-t.size[1]/2;}),{nodes:t,edges:e};};},"33e7aed3":function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("99ddfaf3")),o=function(t){var e=[],n={},r={},i=function(o){var a;r[o]||(r[o]=!0,n[o]=!0,null===(a=t.outEdges(o))||void 0===a||a.forEach(function(t){n[t.w]?e.push(t):i(t.w);}),delete n[o]);};return t.nodes().forEach(i),e;};e.default={run:function(t){var e="greedy"===t.graph().acyclicer?(0,i.default)(t,function(e){var n;return(null===(n=t.edge(e))||void 0===n?void 0:n.weight)||1;}):o(t);null==e||e.forEach(function(e){var n=t.edge(e);t.removeEdgeObj(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,"rev-".concat(Math.random()));});},undo:function(t){t.edges().forEach(function(e){var n=t.edge(e);if(n.reversed){t.removeEdgeObj(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r);}});}};},"342e1d35":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("4c6d310c"),i=n("22b52967"),o=n("960236de"),a=n("ee85e949"),s=function(){function t(t){this.graph=t,this.layoutCfg=t.get("layout")||{},this.layoutType=this.getLayoutType(),this.layoutMethods=[],this.initLayout();}return t.prototype.initLayout=function(){},t.prototype.getLayoutType=function(){return this.getLayoutCfgType(this.layoutCfg);},t.prototype.getLayoutCfgType=function(t){var e=t.type;if(e)return e;var n=t.pipes;return Array.isArray(n)?n.map(function(t){return(null==t?void 0:t.type)||"";}):null;},t.prototype.isLayoutTypeSame=function(t){var e=this.getLayoutCfgType(t),n=Array.isArray(this.layoutType),r=Array.isArray(e);return n&&r?this.layoutType.every(function(t,n){return t===e[n];}):!(Array.isArray(e)||Array.isArray(this.layoutType))&&(null==t?void 0:t.type)===this.layoutType;},t.prototype.refreshLayout=function(){var t=this.graph,e=this.layoutType,n=this.layoutCfg;if(t){var r=(void 0===n?{}:n).animate,i=void 0===r&&("force"===e||"force2"===e),o=(0,a.isForce)(e)&&(r||i);t.get("animate")&&!o?t.positionsAnimate("comboCombined"===e):t.refreshPositions("comboCombined"===e);}},t.prototype.changeLayout=function(t){var e=t.disableTriggerLayout,n=(0,r.__rest)(t,["disableTriggerLayout"]);this.layoutCfg=n,this.layoutType=n.type||this.layoutType,e||this.layout();},t.prototype.changeData=function(t){this.layout(t);},t.prototype.destoryLayoutMethods=function(){var t=this.layoutMethods,e=[];return null==t||t.forEach(function(t){var n,r=null===(n=t.getType)||void 0===n?void 0:n.call(t);r&&e.push(r),t.destroy();}),this.layoutMethods=[],e;},t.prototype.destroyLayout=function(){this.destoryLayoutMethods();var t=this.graph;t&&!t.get("destroyed")&&t.set("layout",void 0),this.layoutCfg=void 0,this.layoutType=void 0,this.layoutMethods=void 0;},t.prototype.setDataFromGraph=function(){for(var t,e=[],n=[],r=[],i=[],o=[],a=[],s=[],u=this.graph.getNodes(),c=this.graph.getEdges(),l=this.graph.getCombos(),f=u.length,d=0;d<f;d++){var h=u[d];if(h&&!h.destroyed){var g=h.getModel();if(!h.isVisible()){n.push(g);continue;}e.push(g);}}for(var p=c.length,d=0;d<p;d++){var v=c[d];if(v&&!v.destroyed){var g=v.getModel();if(!v.isVisible()){i.push(g);continue;}g.isComboEdge?o.push(g):r.push(g);}}for(var m=l.length,d=0;d<m;d++){var y=l[d];if(!y.destroyed){var g=y.getModel();if(!y.isVisible()){s.push(g);continue;}a.push(g);}}return{nodes:e,hiddenNodes:n,edges:r,hiddenEdges:i,combos:a,hiddenCombos:s,comboEdges:o,vedges:null===(t=this.graph.get("vedges"))||void 0===t?void 0:t.map(function(t){return t.getModel();})};},t.prototype.relayout=function(t){var e=this,n=this.graph,r=this.layoutMethods,i=this.layoutCfg;if(!(!n||n.get("destroyed"))){var o=Promise.resolve();if(t){this.data=this.setDataFromGraph();var a=this.data.nodes;if(!a)return!1;o=this.initPositions(i.center,a);}n.emit("beforelayout"),null==r||r.forEach(function(t,n){var a=i[n]||i;o=o.then(function(){var t,o=e.execLayoutMethod(a,n);return n===r.length-1&&(null===(t=i.onAllLayoutEnd)||void 0===t||t.call(i)),o;});});}},t.prototype.filterLayoutData=function(t,e){var n,o,a=t.nodes,s=t.edges,u=(0,r.__rest)(t,["nodes","edges"]);if(!a)return t;n=(0,i.isFunction)(null==e?void 0:e.nodesFilter)?e.nodesFilter:function(){return!0;};var c=a.filter(n);if((0,i.isFunction)(null==e?void 0:e.edgesFilter))o=e.edgesFilter;else{var l=c.reduce(function(t,e){return t[e.id]=!0,t;},{});o=function(t){return l[t.source]&&l[t.target];};}return(0,r.__assign)({nodes:c,edges:s.filter(o)},u);},t.prototype.getLayoutBBox=function(t){var e=this.graph,n=Object.values((0,i.groupBy)(e.getNodes(),function(t){return t.getModel().layoutOrder;})).map(function(t){var e=(0,o.calculationItemsBBox)(t);return e.size=[e.width,e.height],e;});return{groupNodes:Object.values((0,i.groupBy)(t,"layoutOrder")),layoutNodes:n};},t.prototype.layoutAnimate=function(){},t.prototype.moveToZero=function(){var t=this.graph.get("data").nodes;if(!(void 0===t[0].x||null===t[0].x||(0,o.isNaN)(t[0].x))){for(var e=[0,0],n=t.length,r=0;r<n;r++){var i=t[r];e[0]+=i.x,e[1]+=i.y;}e[0]/=t.length,e[1]/=t.length;for(var r=0;r<n;r++){var i=t[r];i.x-=e[0],i.y-=e[1];}}},t.prototype.initPositions=function(t,e){var n;return(0,r.__awaiter)(this,void 0,void 0,function(){var i,a,s;return(0,r.__generator)(this,function(r){return(i=this.graph,null==e?void 0:e.length)?(s=(a=e.filter(function(t){return(0,o.isNaN)(t.x)||(0,o.isNaN)(t.y);}))?a.length:0)?[2,null===(n=this.initWithPreset)||void 0===n?void 0:n.call(this,function(){},function(){var e=.85*i.get("width"),n=.85*i.get("height"),r=Math.ceil(e/n*Math.sqrt(s)),u=Math.ceil(s/r),c=e/(r-1),l=n/(u-1);isFinite(c)&&c||(c=0),isFinite(l)&&c||(l=0);for(var f=t[0]-e/2,d=t[1]-n/2,h=0;h<s;h++){var g=a[h];(0,o.isNaN)(+g.x)&&(g.x=h%r*c+f),(0,o.isNaN)(+g.y)&&(g.y=Math.floor(h/r)*l+d);}})]:[2]:[2,Promise.resolve()];});});},t.prototype.destroy=function(){this.graph=null,this.destoryLayoutMethods(),this.destroyed=!0;},t;}();},35068061:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("d7fbc71b")),o=r._(n("16047361")),a=function(t,e){var n,r,a=new i.default,s=new Map,u=new o.default;function c(t){var r=t.v===n?t.w:t.v,i=u.priority(r);if(void 0!==i){var o=e(t);o<i&&(s.set(r,n),u.decrease(r,o));}}if(0===t.nodeCount())return a;t.nodes().forEach(function(t){u.add(t,Number.POSITIVE_INFINITY),a.setNode(t);}),u.decrease(t.nodes()[0],0);for(var l=!1;u.size()>0;){if(n=u.removeMin(),s.has(n))a.setEdge(n,s.get(n));else if(l)throw Error("Input graph is not connected: "+t.graph());else l=!0;null===(r=t.nodeEdges(n))||void 0===r||r.forEach(c);}return a;};},"3529c69a":function(t,e,n){"use strict";function r(t){return(t()-.5)*1e-6;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},35968075:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("61483c47"),n("826a2c5f"),n("a9d559a1"),n("6308dac9"),n("d5d2fbaa"),n("c654f54f"),n("04fb271a"),n("6de422fa");},"363e6d7b":function(t,e,n){"use strict";function r(t){return 1e-15>Math.abs(t)?t:parseFloat(t.toFixed(15));}n.d(e,"__esModule",{value:!0}),n.d(e,"prettyNumber",{enumerable:!0,get:function(){return r;}});},"3645bdae":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("501adece"));function i(t){return(0,r.default)(t)&&isFinite(t);}},"368c2bda":function(t,e,n){"use strict";function r(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"36d93ef0":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{arcToCubic:function(){return f.arcToCubic;},clonePath:function(){return u.clonePath;},distanceSquareRoot:function(){return x.distanceSquareRoot;},equalizeSegments:function(){return _.equalizeSegments;},getDrawDirection:function(){return m.getDrawDirection;},getPathArea:function(){return v.getPathArea;},getPathBBox:function(){return d.getPathBBox;},getPathBBoxTotalLength:function(){return g.getPathBBoxTotalLength;},getPointAtLength:function(){return y.getPointAtLength;},getRotatedCurve:function(){return p.getRotatedCurve;},getTotalLength:function(){return h.getTotalLength;},isPointInStroke:function(){return b.isPointInStroke;},normalizePath:function(){return c.normalizePath;},path2Absolute:function(){return a.path2Absolute;},path2Array:function(){return s.path2Array;},path2Curve:function(){return o.path2Curve;},path2String:function(){return i.path2String;},reverseCurve:function(){return l.reverseCurve;}});var r=n("d1751d7c"),i=n("9cd1b7c7"),o=n("dd8eda70"),a=n("f9fcb714"),s=n("111d3380"),u=n("53313131"),c=n("72c22a6b"),l=n("72225f68"),f=n("445ca8fb"),d=n("1cad105c"),h=n("500428c5"),g=n("c8dc9f53"),p=n("af154522"),v=n("3fb1326f"),m=n("cd262dfb"),y=n("4a13cbcf"),b=n("410c7725"),x=n("b0fcf145"),_=n("51c51865");r._(n("e288102e"),e);},"36f00621":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return d;}});var r=n("852bbaa9"),i=n("4c6d310c"),o=n("be1e82ef"),a=n("22b52967"),s=r._(n("ab51cd4f")),u=n("05db3064"),c=n("e704bc9f"),l=n("7048382e"),f=n("d5ffb871"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0;},e.prototype.createDom=function(){var t=(0,f.createSVGElement)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t);}return t;},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e);}},e.prototype.onCanvasChange=function(t){(0,u.refreshElement)(this,t);},e.prototype.getShapeBase=function(){return s;},e.prototype.getGroupBase=function(){return e;},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),(0,c.setClip)(this,t),this.createPath(t),e.length&&(0,u.drawChildren)(t,e));},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,function(t,e){l.SVG_ATTR_MAP[e]&&r.setAttribute(l.SVG_ATTR_MAP[e],t);}),(0,c.setTransform)(this);},e;}(o.AbstractGroup);},"3742034d":function(t,e,n){"use strict";function r(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)};}n.d(e,"__esModule",{value:!0}),n.d(e,"rotateVector",{enumerable:!0,get:function(){return r;}});},37756433:function(t,e,n){"use strict";function r(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1);}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n);}};}}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"37dc93b3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=parseInt;},"3871d277":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r="ctrl",i=["shift","ctrl","alt","control"],o={getDefaultCfg:function(){return{trigger:r,combinedKey:"1",functionName:"fitView",functionParams:[]};},getEvents:function(){return i.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=r,console.warn("Behavior shortcuts-fit-view \u7684 trigger \u53C2\u6570 '".concat(this.trigger,"' \u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"};},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();this.triggerKeydown||(r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n?this.triggerKeydown=!0:this.triggerKeydown=!1);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view \u7684 functionName \u53C2\u6570 '".concat(this.functionName,"' \u4E0D\u5408\u6CD5\uFF0C\u5B83\u4E0D\u662F Graph \u7684\u4E00\u4E2A\u51FD\u6570\u540D")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]();return;}var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(r===o||"control"===r&&"ctrl"===o||"ctrl"===r&&"control"===o)&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]());}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1;}};},38788347:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,i);}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n];}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n);};Object.defineProperty(e,"__esModule",{value:!0}),i(n("2a818b28"),e),i(n("2e2f736c"),e),i(n("10c0d8fc"),e),i(n("d6d41c0b"),e),i(n("4efc221b"),e),i(n("71bd698c"),e);},"3935ad87":function(t,e,n){"use strict";function r(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o];}n.d(e,"__esModule",{value:!0}),n.d(e,"quadToCubic",{enumerable:!0,get:function(){return r;}});},"394f3d24":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"World",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=r._(n("21422ae0")),o=r._(n("78294f9e")),a=n("769809e4"),s=n("af9c1423"),u=n("00c8916c"),c=function(){function t(){(0,i.default)(this,t),this.engine=void 0,this.configService=new a.ConfigService;}return(0,o.default)(t,[{key:"setConfig",value:function(t){this.configService.set(t);}},{key:"setEngine",value:function(t){this.engine=t;}},{key:"createEntity",value:function(){return(0,a.createEntity)();}},{key:"createKernel",value:function(t){var e=new u.Kernel(this.engine,this.configService);return"string"==typeof t?e.setBundle(JSON.parse(t)):e.setBundle(t),e.init(),e;}},{key:"destroy",value:function(){this.engine.destroy();}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new t;return n.setConfig(e),n.setEngine(new s.WebGLEngine),n;}}]),t;}();},"39783e91":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6e810311")),i=function(t){return(0,r.default)(t,"RegExp");};},"3a05a9d9":function(t,e,n){},"3a71d7df":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("22b52967"),o=r._(n("4b34eb62")),a=r._(n("f9f4a5de")),s=r._(n("d700b812"));function u(t){var e=t.min,n=t.max,r=t.tickCount,u=t.tickInterval,c=t.minLimit,l=t.maxLimit,f=(0,a.default)(e,n,r).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(l)?u?(0,o.default)(e,n,u).ticks:f:(0,s.default)(t,(0,i.head)(f),(0,i.last)(f));}},"3a752a8a":function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("7e05b7c9")),o=n("dfdb2ac4");e.default={layout:i.default,util:{time:o.time,notime:o.notime}};},"3b48d35c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.clusterBundle=e.clusterCode=e.fruchtermanBundle=e.fruchtermanCode=void 0,e.fruchtermanCode="\nimport { globalInvocationID } from 'g-webgpu';\nconst MAX_EDGE_PER_VERTEX;\nconst VERTEX_COUNT;\n@numthreads(1, 1, 1)\nclass Fruchterman {\n @in @out\n u_Data: vec4[];\n @in\n u_K: float;\n @in\n u_K2: float;\n \n @in\n u_Center: vec2;\n @in\n u_Gravity: float;\n @in\n u_ClusterGravity: float;\n @in\n u_Speed: float;\n @in\n u_MaxDisplace: float;\n @in\n u_Clustering: float;\n @in\n u_AttributeArray: vec4[];\n @in\n u_ClusterCenters: vec4[];\n calcRepulsive(i: int, currentNode: vec4): vec2 {\n let dx = 0, dy = 0;\n for (let j = 0; j < VERTEX_COUNT; j++) {\n if (i != j) {\n const nextNode = this.u_Data[j];\n const xDist = currentNode[0] - nextNode[0];\n const yDist = currentNode[1] - nextNode[1];\n const dist = (xDist * xDist + yDist * yDist) + 0.01;\n let param = this.u_K2 / dist;\n \n if (dist > 0.0) {\n dx += param * xDist;\n dy += param * yDist;\n if (xDist == 0 && yDist == 0) {\n const sign = i < j ? 1 : -1;\n dx += param * sign;\n dy += param * sign;\n }\n }\n }\n }\n return [dx, dy];\n }\n calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // \n let dx = 0, dy = 0;\n const vx = currentNode[0] - this.u_Center[0];\n const vy = currentNode[1] - this.u_Center[1];\n const gf = 0.01 * this.u_K * this.u_Gravity;\n dx = gf * vx;\n dy = gf * vy;\n if (this.u_Clustering == 1) {\n const clusterIdx = int(nodeAttributes[0]);\n const center = this.u_ClusterCenters[clusterIdx];\n const cvx = currentNode[0] - center[0];\n const cvy = currentNode[1] - center[1];\n const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01;\n const parma = this.u_K * this.u_ClusterGravity / dist;\n dx += parma * cvx;\n dy += parma * cvy;\n }\n return [dx, dy];\n }\n calcAttractive(i: int, currentNode: vec4): vec2 {\n let dx = 0, dy = 0;\n const arr_offset = int(floor(currentNode[2] + 0.5));\n const length = int(floor(currentNode[3] + 0.5));\n const node_buffer: vec4;\n for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) {\n if (p >= length) break;\n const arr_idx = arr_offset + p;\n // when arr_idx % 4 == 0 update currentNodedx_buffer\n const buf_offset = arr_idx - arr_idx / 4 * 4;\n if (p == 0 || buf_offset == 0) {\n node_buffer = this.u_Data[int(arr_idx / 4)];\n }\n const float_j = buf_offset == 0 ? node_buffer[0] :\n buf_offset == 1 ? node_buffer[1] :\n buf_offset == 2 ? node_buffer[2] :\n node_buffer[3];\n const nextNode = this.u_Data[int(float_j)];\n const xDist = currentNode[0] - nextNode[0];\n const yDist = currentNode[1] - nextNode[1];\n const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01;\n let attractiveF = dist / this.u_K;\n \n if (dist > 0.0) {\n dx -= xDist * attractiveF;\n dy -= yDist * attractiveF;\n if (xDist == 0 && yDist == 0) {\n const sign = i < int(float_j) ? 1 : -1;\n dx -= sign * attractiveF;\n dy -= sign * attractiveF;\n }\n }\n }\n return [dx, dy];\n }\n @main\n compute() {\n const i = globalInvocationID.x;\n const currentNode = this.u_Data[i];\n let dx = 0, dy = 0;\n if (i >= VERTEX_COUNT) {\n this.u_Data[i] = currentNode;\n return;\n }\n\n // [gravity, fx, fy, 0]\n const nodeAttributes = this.u_AttributeArray[i];\n\n if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) {\n // the node is fixed\n this.u_Data[i] = [\n nodeAttributes[1],\n nodeAttributes[2],\n currentNode[2],\n currentNode[3]\n ];\n return;\n }\n\n // repulsive\n const repulsive = this.calcRepulsive(i, currentNode);\n dx += repulsive[0];\n dy += repulsive[1];\n // attractive\n const attractive = this.calcAttractive(i, currentNode);\n dx += attractive[0];\n dy += attractive[1];\n // gravity\n const gravity = this.calcGravity(currentNode, nodeAttributes);\n dx -= gravity[0];\n dy -= gravity[1];\n // speed\n dx *= this.u_Speed;\n dy *= this.u_Speed;\n\n // move\n const distLength = sqrt(dx * dx + dy * dy);\n if (distLength > 0.0) {\n const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength);\n this.u_Data[i] = [\n currentNode[0] + dx / distLength * limitedDist,\n currentNode[1] + dy / distLength * limitedDist,\n currentNode[2],\n currentNode[3]\n ];\n }\n }\n}\n",e.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2<f32>","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',e.clusterCode="\nimport { globalInvocationID } from 'g-webgpu';\nconst VERTEX_COUNT;\nconst CLUSTER_COUNT;\n@numthreads(1, 1, 1)\nclass CalcCenter {\n @in\n u_Data: vec4[];\n @in\n u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...]\n @in @out\n u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...]\n @main\n compute() {\n const i = globalInvocationID.x;\n const center = this.u_ClusterCenters[i];\n let sumx = 0;\n let sumy = 0;\n let count = 0;\n for (let j = 0; j < VERTEX_COUNT; j++) {\n const attributes = this.u_NodeAttributes[j];\n const clusterIdx = int(attributes[0]);\n const vertex = this.u_Data[j];\n if (clusterIdx == i) {\n sumx += vertex.x;\n sumy += vertex.y;\n count += 1;\n }\n }\n this.u_ClusterCenters[i] = [\n sumx / count,\n sumy / count,\n count,\n i\n ];\n }\n}\n",e.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}';},"3b8e94da":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return void 0===t;};},"3b9b2a9e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("501adece")),i=function(t){return(0,r.default)(t)&&t%2==0;};},"3b9ee2eb":function(t,e,n){"use strict";var r;n.d(e,"__esModule",{value:!0}),n.d(e,"DistanceType",{enumerable:!0,get:function(){return r;}}),(r||(r={})).EuclideanDistance="euclideanDistance";},"3bc7b30a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("ddeef58a");function i(t,e,n,i,o,a,s,u){var c=(Math.atan2(u-e,s-t)+2*Math.PI)%(2*Math.PI);if(c<i||c>o)return!1;var l={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return(0,r.distance)(l.x,l.y,s,u)<=a/2;}},"3c2540e8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("7048382e"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0});},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t);});},e;}(r._(n("1bfab17d")).default);},"3c80ed51":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t));}catch(t){o(t);}}function s(t){try{u(r.throw(t));}catch(t){o(t);}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e);})).then(a,s);}u((r=r.apply(t,e||[])).next());});},a=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1];},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this;}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue;}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break;}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break;}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break;}i[2]&&a.ops.pop(),a.trys.pop();continue;}s=e.call(t,a);}catch(t){s=[6,t],r=0;}finally{n=i=0;}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0};}([s,u]);};}};Object.defineProperty(e,"__esModule",{value:!0}),e.GForceGPULayout=void 0;var s=n("5092cda5"),u=n("38788347"),c=n("409668eb"),l=n("691948ba"),f=n("d6d41c0b"),d=n("ad4a9b63"),h=n("19dcb3fc"),g=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.workerEnabled=!1,n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:2e3,gravity:10,clustering:!1,clusterGravity:10};},e.prototype.execute=function(){return o(this,void 0,void 0,function(){var t,e,n,r,i;return a(this,function(o){switch(o.label){case 0:if(t=this,!(e=t.nodes)||0===e.length)return t.onLayoutEnd&&t.onLayoutEnd(),[2];if(t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]),n=t.center,1===e.length)return e[0].x=n[0],e[0].y=n[1],t.onLayoutEnd&&t.onLayoutEnd(),[2];return r={},i={},e.forEach(function(e,n){(0,u.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,u.isNumber)(e.y)||(e.y=Math.random()*t.height),r[e.id]=e,i[e.id]=n;}),t.nodeMap=r,t.nodeIdxMap=i,t.nodeStrength=(0,l.proccessToFunc)(t.nodeStrength,1),t.edgeStrength=(0,l.proccessToFunc)(t.edgeStrength,1),[4,t.run()];case 1:return o.sent(),[2];}});});},e.prototype.executeWithWorker=function(t,e){var n=this,r=n.nodes,i=n.center;if(r&&0!==r.length){if(1===r.length){r[0].x=i[0],r[0].y=i[1];return;}var o={},a={};r.forEach(function(t,e){(0,u.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,u.isNumber)(t.y)||(t.y=Math.random()*n.height),o[t.id]=t,a[t.id]=e;}),n.nodeMap=o,n.nodeIdxMap=a,n.nodeStrength=(0,l.proccessToFunc)(n.nodeStrength,1),n.edgeStrength=(0,l.proccessToFunc)(n.edgeStrength,1),n.run(t,e);}},e.prototype.run=function(t,e){return o(this,void 0,void 0,function(){var n,r,i,s,g,p,v,m,y,b,x,_,E,w,M,C,A,S,D,I,T,k,F,N,O,B=this;return a(this,function(P){switch(P.label){case 0:for(n=this,r=n.nodes,i=n.edges,s=n.maxIteration,n.width||"undefined"==typeof window||(n.width=window.innerWidth),n.height||"undefined"==typeof window||(n.height=window.innerHeight),g=r.length,n.linkDistance=(0,l.proccessToFunc)(n.linkDistance),n.edgeStrength=(0,l.proccessToFunc)(n.edgeStrength),v=(p=(0,l.buildTextureDataWithTwoEdgeAttr)(r,i,n.linkDistance,n.edgeStrength)).maxEdgePerVetex,m=p.array,n.degrees=(0,f.getDegree)(r.length,n.nodeIdxMap,i).map(function(t){return t.all;}),y=[],b=[],x=[],_=[],E=[],w=[],M=[],n.getMass||(n.getMass=function(t){return n.degrees[n.nodeIdxMap[t.id]]||1;}),C=n.gravity,A=n.center,r.forEach(function(t,e){y.push(n.getMass(t)),b.push(n.nodeStrength(t)),n.degrees[e]||(n.degrees[e]=0);var r=[A[0],A[1],C];if(n.getCenter){var i=n.getCenter(t,n.degrees[e]);i&&(0,u.isNumber)(i[0])&&(0,u.isNumber)(i[1])&&(0,u.isNumber)(i[2])&&(r=i);}x.push(r[0]),_.push(r[1]),E.push(r[2]),(0,u.isNumber)(t.fx)&&(0,u.isNumber)(t.fy)?(w.push(t.fx||.001),M.push(t.fy||.001)):(w.push(0),M.push(0));}),S=(0,l.arrayToTextureData)([y,n.degrees,b,w]),D=(0,l.arrayToTextureData)([x,_,E,M]),I=n.workerEnabled?c.World.create({canvas:t,engineOptions:{supportCompute:!0}}):c.World.create({engineOptions:{supportCompute:!0}}),T=n.onLayoutEnd,k=[],m.forEach(function(t){k.push(t);}),F=0;F<4;F++)k.push(0);return N=I.createKernel(d.gForceBundle).setDispatch([g,1,1]).setBinding({u_Data:m,u_damping:n.damping,u_maxSpeed:n.maxSpeed,u_minMovement:n.minMovement,u_coulombDisScale:n.coulombDisScale,u_factor:n.factor,u_NodeAttributeArray1:S,u_NodeAttributeArray2:D,MAX_EDGE_PER_VERTEX:v,VERTEX_COUNT:g,u_AveMovement:k,u_interval:n.interval}),O=I.createKernel(d.aveMovementBundle).setDispatch([1,1,1]).setBinding({u_Data:m,VERTEX_COUNT:g,u_AveMovement:[0,0,0,0]}),[4,o(B,void 0,void 0,function(){var i,o,u;return a(this,function(a){switch(a.label){case 0:i=0,a.label=1;case 1:if(!(i<s))return[3,5];return[4,N.execute()];case 2:return a.sent(),O.setBinding({u_Data:N}),[4,O.execute()];case 3:a.sent(),o=Math.max(.02,n.interval-.002*i),N.setBinding({u_interval:o,u_AveMovement:O}),a.label=4;case 4:return i++,[3,1];case 5:return[4,N.getOutput()];case 6:return u=a.sent(),t?e.postMessage({type:h.LAYOUT_MESSAGE.GPUEND,vertexEdgeData:u}):r.forEach(function(t,e){var n=u[4*e],r=u[4*e+1];t.x=n,t.y=r;}),T&&T(),[2];}});})];case 1:return P.sent(),[2];}});});},e.prototype.getType=function(){return"gForce-gpu";},e;}(s.Base);e.GForceGPULayout=g;},"3c9681f0":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{cross:function(){return r;},genConvexHull:function(){return i;}});var r=function(t,e,n){return(t.y-n.y)*(e.x-n.x)-(t.x-n.x)*(e.y-n.y);},i=function(t){var e=t.map(function(t){return{x:t.getModel().x,y:t.getModel().y};});e.sort(function(t,e){return t.x===e.x?t.y-e.y:t.x-e.x;});for(var n={},i=e.length-1;i>=0;i--){var o=e[i],a=o.x,s=o.y;n["".concat(a,"-").concat(s)]&&e.splice(i,1),n["".concat(a,"-").concat(s)]=!0;}if(1===e.length)return e;for(var u=[],i=0;i<e.length;i++){for(;u.length>=2&&0>=r(u[u.length-2],u[u.length-1],e[i]);)u.pop();u.push(e[i]);}for(var c=[],i=e.length-1;i>=0;i--){for(;c.length>=2&&0>=r(c[c.length-2],c[c.length-1],e[i]);)c.pop();c.push(e[i]);}return c.pop(),u.pop(),u.concat(c);};},"3cdc68da":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isAbsoluteArray",{enumerable:!0,get:function(){return i;}});var r=n("68d590b8");function i(t){return(0,r.isPathArray)(t)&&t.every(function(t){var e=t[0];return e===e.toUpperCase();});}},"3d2f45d5":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);};Object.defineProperty(e,"__esModule",{value:!0}),e.Force2Layout=void 0;var a=n("5092cda5"),s=n("38788347"),u=n("0f02071f"),c=function(t,e){return t?(0,s.isNumber)(t)?function(e){return t;}:t:function(t){return e||1;};},l=function(t){function e(e){var n=t.call(this)||this;n.maxIteration=1e3,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=500,n.minMovement=.4,n.interval=.02,n.factor=1,n.linkDistance=200,n.gravity=0,n.clusterNodeStrength=20,n.preventOverlap=!0,n.distanceThresholdMode="mean",n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.judgingDistance=0,n.centripetalOptions={leaf:2,single:2,others:1,center:function(t){return{x:n.width/2,y:n.height/2};}};var r=e.getMass;return n.propsGetMass=r,n.updateCfg(e),n;}return i(e,t),e.prototype.getCentripetalOptions=function(){var t,e=this.leafCluster,n=this.clustering,r=this.nodeClusterBy,i=this.nodes,a=this.nodeMap,u=this.clusterNodeStrength,c=function(t){return"function"==typeof u?u(t):u;},l={};if(e){t=this.getSameTypeLeafMap()||{};var f=Array.from(new Set(null==i?void 0:i.map(function(t){return t[r];})))||[];l={single:100,leaf:function(e,n,r){var i=t[e.id]||{},o=i.relativeLeafNodes,a=i.sameTypeLeafNodes;return(null==a?void 0:a.length)===(null==o?void 0:o.length)||(null==f?void 0:f.length)===1?1:c(e);},others:1,center:function(e,n,r){var i,o,a=((null===(i=e.data)||void 0===i?void 0:i.layout)||{}).degree;if(!a)return{x:100,y:100};if(1===a){var u=(t[e.id]||{}).sameTypeLeafNodes,c=void 0===u?[]:u;1===c.length?o=void 0:c.length>1&&(o=(0,s.getAvgNodePosition)(c));}else o=void 0;return{x:null==o?void 0:o.x,y:null==o?void 0:o.y};}};}if(n){t||(t=this.getSameTypeLeafMap());var d=Array.from(new Set(i.map(function(t,e){return t[r];}))).filter(function(t){return void 0!==t;}),h={};d.forEach(function(t){var e=i.filter(function(e){return e[r]===t;}).map(function(t){return a[t.id];});h[t]=(0,s.getAvgNodePosition)(e);}),l={single:function(t){return c(t);},leaf:function(t){return c(t);},others:function(t){return c(t);},center:function(t,e,n){var i=h[t[r]];return{x:null==i?void 0:i.x,y:null==i?void 0:i.y};}};}this.centripetalOptions=o(o({},this.centripetalOptions),l);var g=this.centripetalOptions,p=g.leaf,v=g.single,m=g.others;p&&"function"!=typeof p&&(this.centripetalOptions.leaf=function(){return p;}),v&&"function"!=typeof v&&(this.centripetalOptions.single=function(){return v;}),m&&"function"!=typeof m&&(this.centripetalOptions.others=function(){return m;});},e.prototype.updateCfg=function(t){t&&Object.assign(this,t);},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0};},e.prototype.execute=function(){var t=this;t.stop();var e=t.nodes,n=t.edges,r=t.defSpringLen;if(t.judgingDistance=0,!e||0===e.length){t.onLayoutEnd([]);return;}t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var i=t.center;if(1===e.length){e[0].x=i[0],e[0].y=i[1],t.onLayoutEnd([o({},e[0])]);return;}t.degreesMap=(0,s.getDegreeMap)(e,n),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(e){var n=1;(0,s.isNumber)(e.mass)&&(n=e.mass);var r=t.degreesMap[e.id].all;return!r||r<5?n:5*r*n;};var a=t.nodeSize;if(t.preventOverlap){var u,l,f=t.nodeSpacing;l=(0,s.isNumber)(f)?function(){return f;}:(0,s.isFunction)(f)?f:function(){return 0;},u=a?(0,s.isArray)(a)?function(t){return Math.max(a[0],a[1])+l(t);}:function(t){return a+l(t);}:function(t){return t.size?(0,s.isArray)(t.size)?Math.max(t.size[0],t.size[1])+l(t):(0,s.isObject)(t.size)?Math.max(t.size.width,t.size.height)+l(t):t.size+l(t):10+l(t);};}t.nodeSize=u,t.linkDistance=c(t.linkDistance,1),t.nodeStrength=c(t.nodeStrength,1),t.edgeStrength=c(t.edgeStrength,1);var d={},h={};e.forEach(function(e,r){(0,s.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,s.isNumber)(e.y)||(e.y=Math.random()*t.height);var i=t.degreesMap[e.id];d[e.id]=o(o({},e),{data:o(o({},e.data),{size:t.nodeSize(e)||30,layout:{inDegree:i.in,outDegree:i.out,degree:i.all,tDegree:i.in,sDegree:i.out,force:{mass:t.getMass(e),nodeStrength:t.nodeStrength(e,n)}}})}),h[e.id]=r;}),t.nodeMap=d,t.nodeIdxMap=h,t.edgeInfos=[],null==n||n.forEach(function(e){var n=d[e.source],i=d[e.target];n&&i?t.edgeInfos.push({edgeStrength:t.edgeStrength(e),linkDistance:r?r(o(o({},e),{source:n,target:i}),n,i):t.linkDistance(e,n,i)||1+(a(n)+a(n)||0)/2}):elf.edgeInfos.push({});}),this.getCentripetalOptions(),t.onLayoutEnd=t.onLayoutEnd||function(){},t.run();},e.prototype.run=function(){var t=this,e=t.maxIteration,n=t.nodes,r=t.edges,i=t.workerEnabled,o=t.minMovement,a=t.animate,s=t.nodeMap,u=t.height;if(t.currentMinY=0,t.currentMaxY=u,n){var c=[];if(n.forEach(function(t,e){c[2*e]=0,c[2*e+1]=0;}),this.defSideCoe&&"function"==typeof this.defSideCoe){var l={};r.forEach(function(t){var e=t.source,n=t.target;l[e]=l[e]||[],l[e].push(t),l[n]=l[n]||[],l[n].push(t);}),this.relatedEdges=l;}if(i||!a){for(var f=0;(t.judgingDistance>o||f<1)&&f<e;f++)t.runOneStep(f,c);t.onLayoutEnd(Object.values(s));}else{if("undefined"==typeof window)return;var d=0;this.timeInterval=window.setInterval(function(){n&&(t.runOneStep(d,c),(++d>=e||t.judgingDistance<o)&&(t.onLayoutEnd(Object.values(s)),window.clearInterval(t.timeInterval)));},0);}}},e.prototype.runOneStep=function(t,e){var n,r=this.nodes,i=this.edges,o=(this.nodeMap,this.monitor),a=[];if(null==r?void 0:r.length){this.calRepulsive(a),i&&this.calAttractive(a),this.calGravity(a),this.attractToSide(a);var s=this.interval;this.updateVelocity(a,e,s),this.updatePosition(e,s),null===(n=this.tick)||void 0===n||n.call(this),o&&o({energy:this.calTotalEnergy(a),nodes:r,edges:i,iterations:t});}},e.prototype.calTotalEnergy=function(t){var e=this.nodes,n=this.nodeMap;if(!(null==e?void 0:e.length))return 0;var r=0;return e.forEach(function(e,i){var o=t[2*i],a=t[2*i+1],s=n[e.id].data.layout.force.mass;r+=(void 0===s?1:s)*(o*o+a*a)*.5;}),r;},e.prototype.calRepulsive=function(t){var e=this.nodes,n=this.nodeMap,r=this.factor,i=this.coulombDisScale;this.nodeSize,(0,u.forceNBody)(e,n,r,i*i,t);},e.prototype.calAttractive=function(t){var e=this.edges,n=this.nodeMap,r=this.nodeIdxMap,i=this.edgeInfos;this.nodeSize,e.forEach(function(e,o){var a=(0,s.getEdgeTerminal)(e,"source"),u=(0,s.getEdgeTerminal)(e,"target"),c=n[a],l=n[u];if(c&&l){var f=l.x-c.x,d=l.y-c.y;f||d||(f=.01*Math.random(),d=.01*Math.random());var h=Math.sqrt(f*f+d*d),g=f/h,p=d/h,v=i[o]||{},m=v.linkDistance,y=v.edgeStrength,b=((void 0===m?200:m)-h)*(void 0===y?200:y),x=c.data.layout.force.mass||1,_=l.data.layout.force.mass||1,E=1/x,w=1/_,M=g*b,C=p*b,A=2*r[a],S=2*r[u];t[A]-=M*E,t[A+1]-=C*E,t[S]+=M*w,t[S+1]+=C*w;}});},e.prototype.calGravity=function(t){var e,n=this.nodes,r=this.edges,i=void 0===r?[]:r,o=this.nodeMap,a=this.width,u=this.height,c=this.center,l=this.gravity,f=this.degreesMap,d=this.centripetalOptions;if(n)for(var h=n.length,g=0;g<h;g++){var p=2*g,v=o[n[g].id],m=v.data.layout.force.mass,y=void 0===m?1:m,b=0,x=0,_=l,E=f[v.id],w=E.in,M=E.out,C=E.all,A=null===(e=this.getCenter)||void 0===e?void 0:e.call(this,v,C);if(A){var S=A[0],D=A[1],I=A[2];b=v.x-S,x=v.y-D,_=I;}else b=v.x-c[0],x=v.y-c[1];if(_&&(t[p]-=_*b/y,t[p+1]-=_*x/y),d){var T=d.leaf,k=d.single,F=d.others,N=d.center,O=(null==N?void 0:N(v,n,i,a,u))||{x:0,y:0,centerStrength:0},B=O.x,P=O.y,L=O.centerStrength;if(!(0,s.isNumber)(B)||!(0,s.isNumber)(P))continue;var j=(v.x-B)/y,R=(v.y-P)/y;if(L&&(t[p]-=L*j,t[p+1]-=L*R),0===C){var z=k(v);if(!z)continue;t[p]-=z*j,t[p+1]-=z*R;continue;}if(0===w||0===M){var G=T(v,n,i);if(!G)continue;t[p]-=G*j,t[p+1]-=G*R;continue;}var Y=F(v);if(!Y)continue;t[p]-=Y*j,t[p+1]-=Y*R;}}},e.prototype.attractToSide=function(t){var e=this.defSideCoe,n=(this.height,this.nodes),r=this.relatedEdges,i=this.currentMinY,o=void 0===i?0:i,a=this.currentMaxY,s=void 0===a?this.height:a;e&&"function"==typeof e&&(null==n?void 0:n.length)&&n.forEach(function(n,i){var a=e(n,r[n.id]||[]);if(0!==a){var u=Math.abs(a);t[2*i+1]-=u*(n.y-(a<0?o:s));}});},e.prototype.updateVelocity=function(t,e,n){var r=this.nodes,i=this.damping,o=this.maxSpeed;(null==r?void 0:r.length)&&r.forEach(function(r,a){var s=(e[2*a]+t[2*a]*n)*i||.01,u=(e[2*a+1]+t[2*a+1]*n)*i||.01,c=Math.sqrt(s*s+u*u);if(c>o){var l=o/c;s*=l,u*=l;}e[2*a]=s,e[2*a+1]=u;});},e.prototype.updatePosition=function(t,e){var n=this,r=n.nodes,i=n.distanceThresholdMode,o=n.nodeMap;if(!(null==r?void 0:r.length)){this.judgingDistance=0;return;}var a=0;"max"===i?n.judgingDistance=-1/0:"min"===i&&(n.judgingDistance=1/0);var u=1/0,c=-1/0;r.forEach(function(r,l){var f=o[r.id];if((0,s.isNumber)(r.fx)&&(0,s.isNumber)(r.fy)){r.x=r.fx,r.y=r.fy,f.x=r.x,f.y=r.y;return;}var d=t[2*l]*e,h=t[2*l+1]*e;r.x+=d,r.y+=h,f.x=r.x,f.y=r.y,r.y<u&&(u=r.y),r.y>c&&(c=r.y);var g=Math.sqrt(d*d+h*h);switch(i){case"max":n.judgingDistance<g&&(n.judgingDistance=g);break;case"min":n.judgingDistance>g&&(n.judgingDistance=g);break;default:a+=g;}}),this.currentMinY=u,this.currentMaxY=c,i&&"mean"!==i||(n.judgingDistance=a/r.length);},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval);},e.prototype.destroy=function(){this.stop(),this.tick=null,this.nodes=null,this.edges=null,this.destroyed=!0;},e.prototype.getType=function(){return"force2";},e.prototype.getSameTypeLeafMap=function(){var t=this.nodeClusterBy,e=this.nodes,n=this.edges,r=this.nodeMap,i=this.degreesMap;if(null==e?void 0:e.length){var o={};return e.forEach(function(e,a){1===i[e.id].all&&(o[e.id]=(0,s.getCoreNodeAndRelativeLeafNodes)("leaf",e,n,t,i,r));}),o;}},e;}(a.Base);e.Force2Layout=l;},"3d468e1b":function(t,e,n){"use strict";function r(t){if(!Array.isArray(t))return-1/0;var e=t.length;if(!e)return-1/0;for(var n=t[0],r=1;r<e;r++)n=Math.max(n,t[r]);return n;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"3d79e8ff":function(t,e,n){"use strict";let{default:r,DraggableCore:i}=n("f517d45c");t.exports=r,t.exports.default=r,t.exports.DraggableCore=i;},"3dbcbb94":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=function(t,e){return e?o(t):i(t);},e.detectStrongConnectComponents=e.detectConnectedComponents=void 0;var r=n("6a4ad838"),i=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u=[],c=0;c<n.length;c++){var l=n[c];if(!s[l.id]){!function t(e){u.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o),a=0;a<i.length;++a)!function(e){var r=i[e];if(!s[r]){var o=n.filter(function(t){return t.id===r;});o.length>0&&t(o[0]);}}(a);}(l);for(var f=[];u.length>0;)f.push(u.pop());a.push(f);}}return a;};e.detectConnectedComponents=i;var o=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u={},c={},l=[],f=0,d=function t(e){u[e.id]=f,c[e.id]=f,f+=1,a.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o,"target").filter(function(t){return n.map(function(t){return t.id;}).indexOf(t)>-1;}),d=0;d<i.length;d++)!function(r){var o=i[r];if(u[o]||0===u[o])s[o]&&(c[e.id]=Math.min(c[e.id],u[o]));else{var a=n.filter(function(t){return t.id===o;});a.length>0&&t(a[0]),c[e.id]=Math.min(c[e.id],c[o]);}}(d);if(c[e.id]===u[e.id]){for(var h=[];a.length>0;){var g=a.pop();if(s[g.id]=!1,h.push(g),g===e)break;}h.length>0&&l.push(h);}},h=0;h<n.length;h++){var g=n[h];u[g.id]||0===u[g.id]||d(g);}return l;};e.detectStrongConnectComponents=o;},"3e577758":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"timer",{enumerable:!0,get:function(){return r.timer;}});var r=n("0a0f0483");},"3ed4f16f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return _;}});var r=n("777fffbe"),i=r._(n("6f63505d")),o=r._(n("611917f7")),a=r._(n("c3d456ca")),s=r._(n("21422ae0")),u=r._(n("78294f9e")),c=r._(n("03ff4c3d")),l=r._(n("9f1bbdf3")),f=r._(n("d8428bb7")),d=r._(n("d2caed15")),h=r._(n("5a7dbed4")),g=r._(n("021dc89e")),p=r._(n("cdede2eb")),v=n("f2fbe439");c.default.push(f.default),c.default.push(d.default),c.default.push(l.default);var m=0,y=new g.default,b=function(){function t(e,n){var r,u=this;(0,s.default)(this,t),this.targets=void 0,this.props=void 0,this.timeline=void 0,this.animate=void 0,this.$reverse=!1,this.vars=[],this.initTime=void 0,this.attr=void 0,this.init=(r=(0,a.default)(o.default.mark(function t(e){var n;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=(0,v.getInitProps)(e),u.targets[0].tagName&&!u.attr&&(n.animation=(0,v.dataToArray)(n.animation).map(function(t){var e={style:{}};for(var n in t)n in c.default||n in v.initAnimProps?e[n]=t[n]:e.style[n]=t[n];return Object.keys(e.style).length||delete e.style,t.duration&&(t.duration=Math.round(t.duration)),t.delay&&(t.delay=Math.round(t.delay)),t.appearTo&&(t.appearTo=Math.round(t.appearTo)),t.repeatDelay&&(t.repeatDelay=Math.round(t.repeatDelay)),e;})),u.animate=new p.default(n),u.animate.id="TweenOne_".concat(m),m++,u.animate.startTime=u.initTime,u.animate.onChangeChild=u.onChange,u.animate.onChangeTimeline=u.onChangeTimeline,u.animate.root=u,u.animate.parent=u.timeline,u.animate.init();case 11:case"end":return t.stop();}},t);})),function(t){return r.apply(this,arguments);}),this.renderToDom=function(){for(var t=0;t<u.vars.length;t++){var e=u.vars[t];for(var n in e){var r=e[n],o=u.targets[t];if(o){if(u.props.attr&&o.tagName&&o.setAttribute){if("style"===n)for(var a in r)o.style[a]=r[n];o.setAttribute(n,r);}else if(n in c.default){var s=c.default[n].key;if("function"==typeof o[s])o[s](r.attr,r.path);else if("object"===(0,i.default)(r)&&"object"===(0,i.default)(o[s])&&s)for(var l in r){var f=r[l];"__self"===s?o[l]=f:o[s][l]="object"===(0,i.default)(f)&&f.text||f;}else o[s||n]=r;}else o[n]=r;}}}},this.onChange=function(t){"onComplete"===t.mode&&t.render&&u.renderToDom(),t.mode&&u.props.onChange&&!t.silence&&(t.targets=(0,v.flatArray)(t.targets),t.vars=(0,v.flatArray)(t.vars),u.props.onChange(t));},this.onChangeTimeline=function(t){if(u.renderToDom(),"onTimelineComplete"===t.mode){var e;null===(e=t.targets)||void 0===e||e.forEach(function(t){delete t._tweenOneVars;});}t.mode&&u.props.onChangeTimeline&&(t.targets=(0,v.flatArray)(t.targets),t.vars=(0,v.flatArray)(u.vars),u.props.onChangeTimeline(t));},this.goto=function(t,e){u.targets.forEach(function(t){t&&Object.keys(t._tweenOneVars||{}).forEach(function(e){delete t._tweenOneVars[e];});}),u.animate.goto(t,e);},this.kill=function(t){u.animate.kill(t);},this.targets=e,this.props=n,this.timeline=y,this.initTime=h.default.time,this.attr=n.attr,e.forEach(function(t){u.vars.push(t._tweenOneVars);}),this.init(n);}return(0,u.default)(t,[{key:"paused",get:function(){return this.animate.pausedState;},set:function(t){this.animate.paused(t);}},{key:"reverse",get:function(){return this.$reverse;},set:function(t){this.$reverse=t,this.animate.reverse(t);}},{key:"regionStartTime",get:function(){return this.animate.regionStartTime;},set:function(t){this.animate.regionStartTime=t,this.animate.setTotalTime();}},{key:"regionEndTime",get:function(){return this.animate.regionEndTime||this.animate.totalTime;},set:function(t){this.animate.regionEndTime=t,this.animate.setTotalTime();}}]),t;}(),x=function(t,e){if(!t){console.error("Error: targets is undefined.");return;}"wake"!==h.default.state&&h.default.wake();var n=(0,v.dataToArray)(t).map(function(t){return t._tweenOneVars=t._tweenOneVars||{},t;}),r=n.filter(function(t){return t.tagName;}),i=n.filter(function(t){return!t.tagName;}),o=[];return r.length&&o.push(new b(r,e)),i.length&&o.push(new b(i,e)),(0,v.flatArray)(o);};x.kill=function(t){void 0===t?y.killAll(!0):y.kill((0,v.dataToArray)(t));},x.plugins=c.default;var _=x;},"3ee6d401":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r,i=n("777fffbe"),o=n("4c6d310c"),a=i._(n("32fd355d")),s=i._(n("5537fdc1")),u=i._(n("c2d1eb5c")),c=(0,s.default)(function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,o=e.fontWeight,a=e.fontStyle,s=e.fontVariant;return r||(r=document.createElement("canvas").getContext("2d")),r.font=[a,s,o,n+"px",i].join(" "),r.measureText((0,u.default)(t)?t:"").width;},function(t,e){return void 0===e&&(e={}),(0,o.__spreadArrays)([t],(0,a.default)(e)).join("");});},"3f0d1d0e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("e82c7689"));function i(t){return(0,r.default)(t)&&t%2!=0;}},"3f1dec58":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"segmentArcFactory",{enumerable:!0,get:function(){return a;}});var r=n("cf585742"),i=n("b0fcf145");function o(t,e){var n=t.x,r=t.y,i=e.x,o=e.y,a=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(o,2)));return(n*o-r*i<0?-1:1)*Math.acos((n*i+r*o)/a);}function a(t,e,n,a,s,u,c,l,f,d,h){var g,p=h.bbox,v=void 0===p||p,m=h.length,y=void 0===m||m,b=h.sampleSize,x=void 0===b?30:b,_="number"==typeof d,E=t,w=e,M=0,C=[E,w,0],A=[E,w],S={x:0,y:0},D=[{x:E,y:w}];_&&d<=0&&(S={x:E,y:w});for(var I=0;I<=x;I+=1){if(E=(g=function(t,e,n,i,a,s,u,c,l,f){var d=Math.abs,h=Math.sin,g=Math.cos,p=Math.sqrt,v=Math.PI,m=d(n),y=d(i),b=v/180*((a%360+360)%360);if(t===c&&e===l)return{x:t,y:e};if(0===m||0===y)return(0,r.segmentLineFactory)(t,e,c,l,f).point;var x=(t-c)/2,_=(e-l)/2,E={x:g(b)*x+h(b)*_,y:-h(b)*x+g(b)*_},w=Math.pow(E.x,2)/Math.pow(m,2)+Math.pow(E.y,2)/Math.pow(y,2);w>1&&(m*=p(w),y*=p(w));var M=(Math.pow(m,2)*Math.pow(y,2)-Math.pow(m,2)*Math.pow(E.y,2)-Math.pow(y,2)*Math.pow(E.x,2))/(Math.pow(m,2)*Math.pow(E.y,2)+Math.pow(y,2)*Math.pow(E.x,2)),C=(s!==u?1:-1)*p(M=M<0?0:M),A={x:C*(m*E.y/y),y:C*(-(y*E.x)/m)},S={x:g(b)*A.x-h(b)*A.y+(t+c)/2,y:h(b)*A.x+g(b)*A.y+(e+l)/2},D={x:(E.x-A.x)/m,y:(E.y-A.y)/y},I=o({x:1,y:0},D),T=o(D,{x:(-E.x-A.x)/m,y:(-E.y-A.y)/y});!u&&T>0?T-=2*v:u&&T<0&&(T+=2*v);var k=I+(T%=2*v)*f,F=m*g(k),N=y*h(k);return{x:g(b)*F-h(b)*N+S.x,y:h(b)*F+g(b)*N+S.y};}(t,e,n,a,s,u,c,l,f,I/x)).x,w=g.y,v&&D.push({x:E,y:w}),y&&(M+=(0,i.distanceSquareRoot)(A,[E,w])),A=[E,w],_&&M>=d&&d>C[2]){var T=(M-d)/(M-C[2]);S={x:A[0]*(1-T)+C[0]*T,y:A[1]*(1-T)+C[1]*T};}C=[E,w,M];}return _&&d>=M&&(S={x:l,y:f}),{length:M,point:S,min:{x:Math.min.apply(null,D.map(function(t){return t.x;})),y:Math.min.apply(null,D.map(function(t){return t.y;}))},max:{x:Math.max.apply(null,D.map(function(t){return t.x;})),y:Math.max.apply(null,D.map(function(t){return t.y;}))}};}},"3f784af4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.canDragX=function(t){return"both"===t.props.axis||"x"===t.props.axis;},e.canDragY=function(t){return"both"===t.props.axis||"y"===t.props.axis;},e.createCoreData=function(t,e,n){let i=!(0,r.isNum)(t.lastX),a=o(t);return i?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:a,deltaX:e-t.lastX,deltaY:n-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:n};},e.createDraggableData=function(t,e){let n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y};},e.getBoundPosition=function(t,e,n){var a;if(!t.props.bounds)return[e,n];let{bounds:s}=t.props;s="string"==typeof s?s:{left:(a=s).left,top:a.top,right:a.right,bottom:a.bottom};let u=o(t);if("string"==typeof s){let t;let{ownerDocument:e}=u,n=e.defaultView;if(!((t="parent"===s?u.parentNode:e.querySelector(s))instanceof n.HTMLElement))throw Error('Bounds selector "'+s+'" could not find an element.');let o=n.getComputedStyle(u),a=n.getComputedStyle(t);s={left:-u.offsetLeft+(0,r.int)(a.paddingLeft)+(0,r.int)(o.marginLeft),top:-u.offsetTop+(0,r.int)(a.paddingTop)+(0,r.int)(o.marginTop),right:(0,i.innerWidth)(t)-(0,i.outerWidth)(u)-u.offsetLeft+(0,r.int)(a.paddingRight)-(0,r.int)(o.marginRight),bottom:(0,i.innerHeight)(t)-(0,i.outerHeight)(u)-u.offsetTop+(0,r.int)(a.paddingBottom)-(0,r.int)(o.marginBottom)};}return(0,r.isNum)(s.right)&&(e=Math.min(e,s.right)),(0,r.isNum)(s.bottom)&&(n=Math.min(n,s.bottom)),(0,r.isNum)(s.left)&&(e=Math.max(e,s.left)),(0,r.isNum)(s.top)&&(n=Math.max(n,s.top)),[e,n];},e.getControlPosition=function(t,e,n){let r="number"==typeof e?(0,i.getTouch)(t,e):null;if("number"==typeof e&&!r)return null;let a=o(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,i.offsetXYFromParent)(r||t,s,n.props.scale);},e.snapToGrid=function(t,e,n){return[Math.round(e/t[0])*t[0],Math.round(n/t[1])*t[1]];};var r=n("77bf7b9a"),i=n("9b61cbc5");function o(t){let e=t.findDOMNode();if(!e)throw Error("<DraggableCore>: Unmounted during event!");return e;}},"3f818bf2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"linearDependencies",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("d281459f")),o=r._(n("04480408"));function a(t,e={}){let{thresholdValue:n=1e-9,thresholdError:r=1e-9}=e,s=(t=o.default.checkMatrix(t)).rows,u=new o.default(s,s);for(let e=0;e<s;e++){let a=o.default.columnVector(t.getRow(e)),c=t.subMatrixRow(function(t,e){let n=[];for(let r=0;r<t;r++)r!==e&&n.push(r);return n;}(s,e)).transpose(),l=new i.default(c).solve(a),f=o.default.sub(a,c.mmul(l)).abs().max();u.setRow(e,function(t,e,n,r=1e-9,i=1e-9){if(t>i)return Array(e.rows+1).fill(0);{let t=e.addRow(n,[0]);for(let e=0;e<t.rows;e++)Math.abs(t.get(e,0))<r&&t.set(e,0,0);return t.to1DArray();}}(f,l,e,n,r));}return u;}},"3fb1326f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getPathArea",{enumerable:!0,get:function(){return i;}});var r=n("dd8eda70");function i(t){var e=0,n=0,i=0;return(0,r.path2Curve)(t).map(function(t){if("M"===t[0])return e=t[1],n=t[2],0;var r,o,a,s=t.slice(1),u=s[0],c=s[1],l=s[2],f=s[3],d=s[4],h=s[5];return o=e,i=3*((h-(a=n))*(u+l)-(d-o)*(c+f)+c*(o-l)-u*(a-f)+h*(l+o/3)-d*(f+a/3))/20,e=(r=t.slice(-2))[0],n=r[1],i;}).reduce(function(t,e){return t+e;},0);}},"3fd19bc1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("235d18ef")),a=n("4a3cdd11"),s=n("ddeef58a"),u=r._(n("9cf49413")),c=r._(n("6319d61e")),l=r._(n("0b36e6a4")),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0});},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,f=o.y,d=o.width,h=o.height,g=o.radius;if(g){var p=!1;return n&&(p=(0,c.default)(a,f,d,h,g,i,t,e)),!p&&r&&(p=(0,l.default)(this,t,e)),p;}var v=i/2;return r&&n?(0,s.inBox)(a-v,f-v,d+v,h+v,t,e):r?(0,s.inBox)(a,f,d,h,t,e):n?(0,u.default)(a,f,d,h,i,t,e):void 0;},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,o);else{var u=(0,a.parseRadius)(s),c=u[0],l=u[1],f=u[2],d=u[3];t.moveTo(n+c,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-f),0!==f&&t.arc(n+i-f,r+o-f,f,0,Math.PI/2),t.lineTo(n+d,r+o),0!==d&&t.arc(n+d,r+o-d,d,Math.PI/2,Math.PI),t.lineTo(n,r+c),0!==c&&t.arc(n+c,r+c,c,Math.PI,1.5*Math.PI),t.closePath();}},e;}(o.default);},"3fd3e121":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=Math.min,i=Math.max,o=Math.abs,a="shift",s=["drag","shift","ctrl","alt","control"],u={getDefaultCfg:function(){return{brushStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},selectedState:"selected",trigger:a,includeEdges:!0,includeCombos:!1,selectOnCombo:!1,selectedEdges:[],selectedNodes:[],selectedCombos:[]};},getEvents:function(){return(s.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=a,console.warn("Behavior brush-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),"drag"===this.trigger)?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"};},onMouseDown:function(t){var e=t.item,n=this.brush,r=this.selectOnCombo,i=(null==e?void 0:e.getType())==="combo";(!i||r)&&(i||!e)&&("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0);},onMouseMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&this.updateBrush(t);},onMouseUp:function(t){this.graph,(this.brush||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1);},clearStates:function(){var t=this.graph,e=this.selectedState,n=t.findAllByState("node",e),r=t.findAllByState("edge",e),i=t.findAllByState("combo",e);n.forEach(function(n){return t.setItemState(n,e,!1);}),r.forEach(function(n){return t.setItemState(n,e,!1);}),i.forEach(function(n){return t.setItemState(n,e,!1);}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1});},isBBoxCenterInRect:function(t,e,n,r,i){var o=t.getBBox();return o.centerX>=e&&o.centerX<=n&&o.centerY>=r&&o.centerY<=i;},getSelectedNodes:function(t){var e=this,n=this.graph,o=this.originPoint,a=this.shouldUpdate,s=this.isBBoxCenterInRect,u=this.selectedState,c={x:t.x,y:t.y},l=n.getPointByCanvas(o.x,o.y),f=r(c.x,l.x),d=i(c.x,l.x),h=r(c.y,l.y),g=i(c.y,l.y),p=[],v=[];n.getNodes().forEach(function(t){if(t.isVisible()&&s(t,f,d,h,g)&&a(t,"select",e)){p.push(t);var r=t.getModel();v.push(r.id),n.setItemState(t,u,!0);}});var m=[];this.includeEdges&&p.forEach(function(t){t.getOutEdges().forEach(function(t){if(t.isVisible()){var r=t.getModel(),i=r.source,o=r.target;v.includes(i)&&v.includes(o)&&a(t,"select",e)&&(m.push(t),n.setItemState(t,e.selectedState,!0));}});});var y=[];this.includeCombos&&n.getCombos().forEach(function(t){if(t.isVisible()&&s(t,f,d,h,g)&&a(t,"select",e)){y.push(t);var r=t.getModel();v.push(r.id),n.setItemState(t,u,!0);}}),this.selectedEdges=m,this.selectedNodes=p,this.selectedCombos=y,this.onSelect&&this.onSelect(p,m,y),n.emit("nodeselectchange",{selectedItems:{nodes:p,edges:m,combos:y},select:!0});},createBrush:function(){var t=this.graph.get("canvas").addShape("rect",{attrs:this.brushStyle,capture:!1,name:"brush-shape"});return this.brush=t,this.delegate=t,t;},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:o(t.canvasX-e.x),height:o(t.canvasY-e.y),x:r(t.canvasX,e.x),y:r(t.canvasY,e.y)});},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n?this.keydown=!0:this.keydown=!1;}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1;}};},"401cc1f3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("852bbaa9")._(n("5b220c3d")),i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);})(t,e);},o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},a={Pixel:"Pixel",Percent:"Percent"},s={unit:a.Percent,value:.8};function u(t){return"number"==typeof t?{unit:a.Percent,value:100*t}:"string"==typeof t?t.match(/^(\d*(\.\d+)?)px$/)?{unit:a.Pixel,value:parseFloat(t)}:t.match(/^(\d*(\.\d+)?)%$/)?{unit:a.Percent,value:parseFloat(t)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),s):(console.warn("scrollThreshold should be string or number"),s);}var c=function(t){function e(e){var n=t.call(this,e)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:"string"==typeof n.props.scrollableTarget?document.getElementById(n.props.scrollableTarget):(null===n.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n happen because the element may not have been added to DOM yet.\n See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n "),null);},n.onStart=function(t){!n.lastScrollTop&&(n.dragging=!0,t instanceof MouseEvent?n.startY=t.pageY:t instanceof TouchEvent&&(n.startY=t.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange="transform",n._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"));},n.onMove=function(t){n.dragging&&(t instanceof MouseEvent?n.currentY=t.pageY:t instanceof TouchEvent&&(n.currentY=t.touches[0].pageY),n.currentY<n.startY||(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),n.currentY-n.startY>1.5*n.maxPullDownDistance||!n._infScroll||(n._infScroll.style.overflow="visible",n._infScroll.style.transform="translate3d(0px, "+(n.currentY-n.startY)+"px, 0px)")));},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){n._infScroll&&(n._infScroll.style.overflow="auto",n._infScroll.style.transform="none",n._infScroll.style.willChange="unset");});},n.onScrollListener=function(t){"function"==typeof n.props.onScroll&&setTimeout(function(){return n.props.onScroll&&n.props.onScroll(t);},0);var e=n.props.height||n._scrollableNode?t.target:document.documentElement.scrollTop?document.documentElement:document.body;n.actionTriggered||((n.props.inverse?n.isElementAtTop(e,n.props.scrollThreshold):n.isElementAtBottom(e,n.props.scrollThreshold))&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=e.scrollTop);},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:e.dataLength},n.throttledOnScrollListener=(function(t,e,n,r){var i,o=!1,a=0;function s(){i&&clearTimeout(i);}function u(){var u=this,c=Date.now()-a,l=arguments;function f(){a=Date.now(),n.apply(u,l);}o||(r&&!i&&f(),s(),void 0===r&&c>t?f():!0!==e&&(i=setTimeout(r?function(){i=void 0;}:f,void 0===r?t-c:t)));}return"boolean"!=typeof e&&(r=n,n=e,e=void 0),u.cancel=function(){s(),o=!0;},u;})(150,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n;}return!function(t,e){function n(){this.constructor=t;}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}(e,t),e.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw Error('Mandatory prop "refreshFunction" missing.\n Pull Down To Refresh functionality will not work\n as expected. Check README.md for usage\'');},e.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)));},e.prototype.componentDidUpdate=function(t){this.props.dataLength!==t.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}));},e.getDerivedStateFromProps=function(t,e){return t.dataLength!==e.prevDataLength?o(o({},e),{prevDataLength:t.dataLength}):null;},e.prototype.isElementAtTop=function(t,e){void 0===e&&(e=.8);var n=t===document.body||t===document.documentElement?window.screen.availHeight:t.clientHeight,r=u(e);return r.unit===a.Pixel?t.scrollTop<=r.value+n-t.scrollHeight+1:t.scrollTop<=r.value/100+n-t.scrollHeight+1;},e.prototype.isElementAtBottom=function(t,e){void 0===e&&(e=.8);var n=t===document.body||t===document.documentElement?window.screen.availHeight:t.clientHeight,r=u(e);return r.unit===a.Pixel?t.scrollTop+n>=t.scrollHeight-r.value:t.scrollTop+n>=r.value/100*t.scrollHeight;},e.prototype.render=function(){var t=this,e=o({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),n=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),i=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return r.default.createElement("div",{style:i,className:"infinite-scroll-component__outerdiv"},r.default.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(e){return t._infScroll=e;},style:e},this.props.pullDownToRefresh&&r.default.createElement("div",{style:{position:"relative"},ref:function(e){return t._pullDown=e;}},r.default.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!n&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage));},e;}(r.Component);},"40287b3a":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.ConcentricLayout=void 0;var o=n("38788347"),a=function(t){function e(e){var n=t.call(this)||this;return n.nodeSize=30,n.minNodeSpacing=10,n.nodeSpacing=10,n.preventOverlap=!1,n.equidistant=!1,n.startAngle=1.5*Math.PI,n.clockwise=!0,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.onLayoutEnd=function(){},n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"};},e.prototype.execute=function(){var t,e,n,r=this,i=r.nodes,a=r.edges,s=i.length;if(0===s){null===(t=r.onLayoutEnd)||void 0===t||t.call(r);return;}r.width||"undefined"==typeof window||(r.width=window.innerWidth),r.height||"undefined"==typeof window||(r.height=window.innerHeight),r.center||(r.center=[r.width/2,r.height/2]);var u=r.center;if(1===s){i[0].x=u[0],i[0].y=u[1],null===(e=r.onLayoutEnd)||void 0===e||e.call(r);return;}var c=r.nodeSize,l=r.nodeSpacing,f=[],d=0;n=(0,o.isArray)(c)?Math.max(c[0],c[1]):c,(0,o.isArray)(l)?d=Math.max(l[0],l[1]):(0,o.isNumber)(l)&&(d=l),i.forEach(function(t){f.push(t);var e=n;(0,o.isArray)(t.size)?e=Math.max(t.size[0],t.size[1]):(0,o.isNumber)(t.size)?e=t.size:(0,o.isObject)(t.size)&&(e=Math.max(t.size.width,t.size.height)),n=Math.max(n,e),(0,o.isFunction)(l)&&(d=Math.max(l(t),d));}),r.clockwise=void 0!==r.counterclockwise?!r.counterclockwise:r.clockwise;var h={},g={};if(f.forEach(function(t,e){h[t.id]=t,g[t.id]=e;}),("degree"===r.sortBy||!(0,o.isString)(r.sortBy)||void 0===f[0][r.sortBy])&&(r.sortBy="degree",!(0,o.isNumber)(i[0].degree))){var p=(0,o.getDegree)(i.length,g,a);f.forEach(function(t,e){t.degree=p[e].all;});}f.sort(function(t,e){return e[r.sortBy]-t[r.sortBy];}),r.maxValueNode=f[0],r.maxLevelDiff=r.maxLevelDiff||r.maxValueNode[r.sortBy]/4;var v=[[]],m=v[0];f.forEach(function(t){if(m.length>0){var e=Math.abs(m[0][r.sortBy]-t[r.sortBy]);r.maxLevelDiff&&e>=r.maxLevelDiff&&(m=[],v.push(m));}m.push(t);});var y=n+(d||r.minNodeSpacing);if(!r.preventOverlap){var b=v.length>0&&v[0].length>1,x=(Math.min(r.width,r.height)/2-y)/(v.length+(b?1:0));y=Math.min(y,x);}var _=0;if(v.forEach(function(t){var e=r.sweep;void 0===e&&(e=2*Math.PI-2*Math.PI/t.length);var n=t.dTheta=e/Math.max(1,t.length-1);if(t.length>1&&r.preventOverlap){var i=Math.cos(n)-1,o=Math.sin(n)-0;_=Math.max(Math.sqrt(y*y/(i*i+o*o)),_);}t.r=_,_+=y;}),r.equidistant){for(var E=0,w=0,M=0;M<v.length;M++){var C=v[M].r-w;E=Math.max(E,C);}w=0,v.forEach(function(t,e){0===e&&(w=t.r),t.r=w,w+=E;});}return v.forEach(function(t){var e=t.dTheta,n=t.r;t.forEach(function(t,i){var o=r.startAngle+(r.clockwise?1:-1)*e*i;t.x=u[0]+n*Math.cos(o),t.y=u[1]+n*Math.sin(o);});}),r.onLayoutEnd&&r.onLayoutEnd(),{nodes:i,edges:a};},e.prototype.getType=function(){return"concentric";},e;}(n("5092cda5").Base);e.ConcentricLayout=a;},"405cc890":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t));}catch(t){o(t);}}function s(t){try{u(r.throw(t));}catch(t){o(t);}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e);})).then(a,s);}u((r=r.apply(t,e||[])).next());});},a=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1];},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this;}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue;}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break;}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break;}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break;}i[2]&&a.ops.pop(),a.trys.pop();continue;}s=e.call(t,a);}catch(t){s=[6,t],r=0;}finally{n=i=0;}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0};}([s,u]);};}};Object.defineProperty(e,"__esModule",{value:!0}),e.FruchtermanGPULayout=void 0;var s=n("5092cda5"),u=n("38788347"),c=n("409668eb"),l=n("691948ba"),f=n("3b48d35c"),d=n("19dcb3fc"),h=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.gravity=10,n.speed=1,n.clustering=!1,n.clusterField="cluster",n.clusterGravity=10,n.workerEnabled=!1,n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10};},e.prototype.execute=function(){return o(this,void 0,void 0,function(){var t,e,n,r,i,o=this;return a(this,function(a){switch(a.label){case 0:if(t=this,!(e=t.nodes)||0===e.length)return t.onLayoutEnd&&t.onLayoutEnd(),[2];if(t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]),n=t.center,1===e.length)return e[0].x=n[0],e[0].y=n[1],t.onLayoutEnd&&t.onLayoutEnd(),[2];return r={},i={},e.forEach(function(t,e){(0,u.isNumber)(t.x)||(t.x=Math.random()*o.width),(0,u.isNumber)(t.y)||(t.y=Math.random()*o.height),r[t.id]=t,i[t.id]=e;}),t.nodeMap=r,t.nodeIdxMap=i,[4,t.run()];case 1:return a.sent(),[2];}});});},e.prototype.executeWithWorker=function(t,e){return o(this,void 0,void 0,function(){var n,r,i,o,s,c=this;return a(this,function(a){switch(a.label){case 0:if(n=this,r=n.nodes,i=n.center,!r||0===r.length)return[2];if(1===r.length)return r[0].x=i[0],r[0].y=i[1],[2];return o={},s={},r.forEach(function(t,e){(0,u.isNumber)(t.x)||(t.x=Math.random()*c.width),(0,u.isNumber)(t.y)||(t.y=Math.random()*c.height),o[t.id]=t,s[t.id]=e;}),n.nodeMap=o,n.nodeIdxMap=s,[4,n.run(t,e)];case 1:return a.sent(),[2];}});});},e.prototype.run=function(t,e){return o(this,void 0,void 0,function(){var n,r,i,s,h,g,p,v,m,y,b,x,_,E,w,M,C,A,S,D,I,T,k,F,N=this;return a(this,function(O){switch(O.label){case 0:for(n=this,r=n.nodes,i=n.edges,s=n.maxIteration,h=n.center,p=Math.sqrt(g=n.height*n.width)/10,m=Math.sqrt(v=g/(r.length+1)),y=n.speed,b=n.clustering,_=(x=(0,l.attributesToTextureData)([n.clusterField],r)).array,E=x.count,r.forEach(function(t,e){var n=0,r=0;(0,u.isNumber)(t.fx)&&(0,u.isNumber)(t.fy)&&(n=t.fx||.001,r=t.fy||.001),_[4*e+1]=n,_[4*e+2]=r;}),w=r.length,C=(M=(0,l.buildTextureData)(r,i)).maxEdgePerVetex,A=M.array,S=n.workerEnabled?c.World.create({canvas:t,engineOptions:{supportCompute:!0}}):c.World.create({engineOptions:{supportCompute:!0}}),D=n.onLayoutEnd,I=[],T=0;T<E;T++)I.push(0,0,0,0);return k=S.createKernel(f.fruchtermanBundle).setDispatch([w,1,1]).setBinding({u_Data:A,u_K:m,u_K2:v,u_Gravity:n.gravity,u_ClusterGravity:n.clusterGravity||n.gravity||1,u_Speed:y,u_MaxDisplace:p,u_Clustering:b?1:0,u_Center:h,u_AttributeArray:_,u_ClusterCenters:I,MAX_EDGE_PER_VERTEX:C,VERTEX_COUNT:w}),b&&(F=S.createKernel(f.clusterBundle).setDispatch([E,1,1]).setBinding({u_Data:A,u_NodeAttributes:_,u_ClusterCenters:I,VERTEX_COUNT:w,CLUSTER_COUNT:E})),[4,o(N,void 0,void 0,function(){var n,i;return a(this,function(o){switch(o.label){case 0:n=0,o.label=1;case 1:if(!(n<s))return[3,6];return[4,k.execute()];case 2:if(o.sent(),!b)return[3,4];return F.setBinding({u_Data:k}),[4,F.execute()];case 3:o.sent(),k.setBinding({u_ClusterCenters:F}),o.label=4;case 4:k.setBinding({u_MaxDisplace:p*=.99}),o.label=5;case 5:return n++,[3,1];case 6:return[4,k.getOutput()];case 7:return i=o.sent(),t?e.postMessage({type:d.LAYOUT_MESSAGE.GPUEND,vertexEdgeData:i}):r.forEach(function(t,e){var n=i[4*e],r=i[4*e+1];t.x=n,t.y=r;}),D&&D(),[2];}});})];case 1:return O.sent(),[2];}});});},e.prototype.getType=function(){return"fruchterman-gpu";},e;}(s.Base);e.FruchtermanGPULayout=h;},"409668eb":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Kernel:function(){return r.Kernel;},World:function(){return i.World;}});var r=n("00c8916c"),i=n("394f3d24");},"40b51dd8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6665ed3f")),i=function(t){return(0,r.default)(t).toLowerCase();};},"40d7c03d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){return t["_wrap_"+e];};},"40ef983d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return p;}});var r=n("777fffbe"),i=r._(n("a886aa58")),o=r._(n("54d66dad")),a=r._(n("c3d456ca")),s=r._(n("21422ae0")),u=r._(n("78294f9e")),c=r._(n("8d94efed")),l=r._(n("611917f7")),f=n("769809e4");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable;})),n.push.apply(n,r);}return n;}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){(0,o.default)(t,e,n[e]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));});}return t;}var g=0,p=function(){var t;function e(t,n){var r=this;(0,s.default)(this,e),this.reGl=t,this.context=n,this.entity=(0,f.createEntity)(),this.texFBO=void 0,this.computeCommand=void 0,this.textureCache={},this.outputTextureName=void 0,this.swapOutputTextureName=void 0,this.compiledPingpong=void 0,this.dynamicPingpong=void 0;var i={};this.context.uniforms.forEach(function(t){var e=t.name,n=t.type,o=t.data,a=t.isReferer,s=t.storageClass;if(s===f.STORAGE_CLASS.StorageBuffer){if(a)r.textureCache[e]={data:void 0},i["".concat(e,"Size")]=function(){return o.compiledBundle.context.output.textureSize;};else{r.textureCache[e]=r.calcDataTexture(e,n,o);var u=r.textureCache[e],l=u.textureWidth,d=u.isOutput;i["".concat(e,"Size")]=[l,l],d&&(r.outputTextureName=e,r.context.needPingpong&&(r.outputTextureName="".concat(e,"Output"),r.textureCache[r.outputTextureName]=r.calcDataTexture(e,n,o)));}i[e]=function(){return r.textureCache[e].texture;};}else if(s===f.STORAGE_CLASS.Uniform){if(o&&(Array.isArray(o)||(0,c.default)(o))&&o.length>16)throw Error("invalid data type ".concat(n));i[e]=function(){return t.data;};}});var o=this.getOuputDataTexture(),a=o.textureWidth,u=o.texelCount;i.u_OutputTextureSize=[a,a],i.u_OutputTexelCount=u,this.context.output.textureSize=[a,a];var l={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:"#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n#else\n precision mediump float;\n#endif\n".concat(this.context.shader),uniforms:i,vert:"attribute vec3 a_Position;\nattribute vec2 a_TexCoord;\n\nvarying vec2 v_TexCoord;\n\nvoid main() {\n gl_Position = vec4(a_Position, 1.0);\n v_TexCoord = a_TexCoord;\n}",primitive:"triangle strip",count:4};this.computeCommand=this.reGl(l);}return(0,u.default)(e,[{key:"run",value:function(){var t=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){t.computeCommand();});}},{key:"readData",value:(t=(0,a.default)(l.default.mark(function t(){var e,n,r,i,o,a,s,u,c=this;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){e=c.reGl.read();}),!e){t.next=6;break;}if(r=(n=this.getOuputDataTexture()).originalDataLength,i=n.elementsPerTexel,a=void 0===(o=n.typedArrayConstructor)?Float32Array:o,s=[],4!==i)for(u=0;u<e.length;u+=4)1===i?s.push(e[u]):2===i?s.push(e[u],e[u+1]):s.push(e[u],e[u+1],e[u+2]);else s=e;return t.abrupt("return",new a(s.slice(0,r)));case 6:return t.abrupt("return",new Float32Array);case 7:case"end":return t.stop();}},t,this);})),function(){return t.apply(this,arguments);})},{key:"confirmInput",value:function(t,e){var n;this.entity===t.entity?(this.dynamicPingpong=!0,n=this):n=t,this.textureCache[e].id=n.getOuputDataTexture().id,this.textureCache[e].texture=n.getOuputDataTexture().texture;}},{key:"updateUniform",value:function(){}},{key:"updateBuffer",value:function(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=this.context.uniforms.find(function(e){return e.name===t;});if(n){var r=this.calcDataTexture(t,n.type,e),i=r.texture,o=r.data;this.textureCache[t].data=o,this.textureCache[t].texture=i;}}},{key:"destroy",value:function(){}},{key:"swap",value:function(){if(this.swapOutputTextureName||this.createSwapOutputDataTexture(),this.compiledPingpong){var t=this.context.output.name;this.textureCache[t].id=this.getOuputDataTexture().id,this.textureCache[t].texture=this.getOuputDataTexture().texture;}var e=this.outputTextureName;this.outputTextureName=this.swapOutputTextureName,this.swapOutputTextureName=e;}},{key:"getOuputDataTexture",value:function(){return this.textureCache[this.outputTextureName];}},{key:"createSwapOutputDataTexture",value:function(){var t=this.cloneDataTexture(this.getOuputDataTexture());this.swapOutputTextureName="".concat(this.entity,"-swap"),this.textureCache[this.swapOutputTextureName]=t;}},{key:"cloneDataTexture",value:function(t){var e=t.data,n=t.textureWidth;return h(h({},t),{},{id:g++,texture:this.reGl.texture({width:n,height:n,data:e,type:"float"})});}},{key:"calcDataTexture",value:function(t,e,n){var r=1;e===f.AST_TOKEN_TYPES.Vector4FloatArray&&(r=4);for(var o=[],a=0;a<n.length;a+=r)1===r?o.push(n[a],0,0,0):2===r?o.push(n[a],n[a+1],0,0):3===r?o.push(n[a],n[a+1],n[a+2],0):4===r&&o.push(n[a],n[a+1],n[a+2],n[a+3]);var s=n.length,u=Math.ceil(s/r),l=Math.ceil(Math.sqrt(u)),d=l*l;u<d&&o.push.apply(o,(0,i.default)(Array((d-u)*4).fill(0)));var h=this.reGl.texture({width:l,height:l,data:o,type:"float"});return{id:g++,data:o,originalDataLength:s,typedArrayConstructor:(0,c.default)(n)?n.constructor:void 0,textureWidth:l,texture:h,texelCount:u,elementsPerTexel:r,isOutput:t===this.context.output.name};}}]),e;}();},"410c7725":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isPointInStroke",{enumerable:!0,get:function(){return i;}});var r=n("c393d7db");function i(t,e){return .001>Math.abs((0,r.getPropertiesAtPoint)(t,e).distance);}},41749641:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("432fa017")),o=r._(n("2df371cc")),a=function(t,e){return void 0===e&&(e=[]),(0,i.default)(t,function(t){return!(0,o.default)(e,t);});};},41943871:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{isColorProp:function(){return r;},isGradientColor:function(){return i;}});var r=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t);},i=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t);};},"419758c6":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(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;};},"41bf3cc6":function(t,e,n){"use strict";function r(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"41d8b444":function(t,e,n){"use strict";function r(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n;};}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"41f4ebcb":function(t,e,n){"use strict";var r,i=n("26e28225");i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=function(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n];}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o;};},"4230714a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("04480408");class i extends r.AbstractMatrix{constructor(t,e={}){let{rows:n=1}=e;if(t.length%n!=0)throw Error("the data length is not divisible by the number of rows");super(),this.rows=n,this.columns=t.length/n,this.data=t;}set(t,e,n){let r=this._calculateIndex(t,e);return this.data[r]=n,this;}get(t,e){let n=this._calculateIndex(t,e);return this.data[n];}_calculateIndex(t,e){return t*this.columns+e;}}},"423073d2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("85b3418c"),s=n("2105a9e4"),u=n("4e4cdeae"),c=r._(n("528465ee")),l=r._(n("a9d43e9b")),f=n("652a6d72"),d="edge-shape",h={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:c.default.defaultEdge.size,style:{x:0,y:0,stroke:c.default.defaultEdge.style.stroke,lineAppendWidth:c.default.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:c.default.edgeLabel.style.fill,fontSize:c.default.edgeLabel.style.fontSize,fontFamily:c.default.windowFontFamily}},stateStyles:(0,i.__assign)({},c.default.edgeStateStyles)},getPath:function(t){var e=[];return(0,o.each)(t,function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y]);}),e;},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,o.mix)({},e,n,t.style),i=t.size||c.default.defaultEdge.size,a=(t=this.getPathPoints(t)).startPoint,s=t.endPoint,u=this.getControlPoints(t),l=[a];u&&(l=l.concat(u)),l.push(s);var f=this.getPath(l);return(0,o.mix)({},c.default.defaultEdge.style,{stroke:c.default.defaultEdge.color,lineWidth:i,path:f},r);},updateShapeStyle:function(t,e,n){var r,a=e.getContainer(),s=(null===(r=e.getKeyShape)||void 0===r?void 0:r.call(e))||a.shapeMap["edge-shape"],u=t.size,c=(t=this.getPathPoints(t)).startPoint,l=t.endPoint,f=this.getControlPoints(t),d=[c];f&&(d=d.concat(f)),d.push(l);var h=s.attr(),g=t.style||{};void 0===g.stroke&&(g.stroke=t.color);var p=t.sourceNode,v=t.targetNode,m={radius:g.radius};f||(m={source:p,target:v,offset:g.offset,radius:g.radius});var y=this.getPath(d,m),b={};"move"===n?b={path:y}:(h.endArrow&&!1===g.endArrow&&(t.style.endArrow={path:""}),h.startArrow&&!1===g.startArrow&&(t.style.startArrow={path:""}),void 0===(b=(0,i.__assign)({},t.style)).lineWidth&&(b.lineWidth=((0,o.isNumber)(u)?u:null==u?void 0:u[0])||h.lineWidth),void 0===b.path&&(b.path=y),void 0===b.stroke&&(b.stroke=h.stroke||t.color)),s&&s.attr(b);},getLabelStyleByPosition:function(t,e,n){var r,i,s=e.position||this.labelPosition,u={},c=null==n?void 0:n.shapeMap[d];r="start"===s?0:"end"===s?1:.5;var l=e.refX||this.refX,f=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return u.x=t.startPoint.x+l,u.y=t.startPoint.y+f,u.text=t.label,u;i=(0,o.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate;var h=(0,a.getLabelPosition)(c,r,l,f,i);return u.x=h.x,u.y=h.y,u.rotate=h.rotate,u.textAlign=this._getTextAlign(s,h.angle),u.text=t.label,u;},getLabelBgStyleByPosition:function(t,e){if(!t)return{};var n=t.getBBox(),r=e.style&&e.style.background;if(!r)return{};var a=r.padding,s=n.width+a[1]+a[3],u=n.height+a[0]+a[2],c=(0,i.__assign)((0,i.__assign)({},r),{width:s,height:u,x:n.minX-a[3],y:n.minY-a[0],matrix:[1,0,0,0,1,0,0,0,1]});return((0,o.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate)&&(c.matrix=t.attr("matrix")||[1,0,0,0,1,0,0,0,1]),c;},_getTextAlign:function(t,e){var n,r="center";return e?(e%=2*Math.PI,"center"!==t&&(e>=0&&e<=Math.PI/2||e>=1.5*Math.PI&&e<2*Math.PI?r=t:(n=t,"start"===t?n="end":"end"===t&&(n="start"),r=n)),r):t;},getControlPoints:function(t){return t.controlPoints;},getPathPoints:function(t){return t;},drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("path",{className:d,name:d,attrs:n});return e.shapeMap[d]=r,r;},drawLabel:function(t,e){var n=this.options.labelCfg,r=(0,o.deepMix)({},n,t.labelCfg),i=this.getLabelStyle(t,r,e),a=i.rotate;delete i.rotate;var s=e.addShape("text",{attrs:i,name:"text-shape",labelRelated:!0,draggable:!0});if(e.shapeMap["text-shape"]=s,isNaN(a)||""===a||s.rotateAtStart(a),i.background){var u=this.drawLabelBg(t,e,s,i,a),c=this.itemType+f.CLS_LABEL_BG_SUFFIX;u.set("classname",c),e.shapeMap[c]=u,s.toFront();}return s;},drawLabelBg:function(t,e,n,r,i){var a=this.options.labelCfg,s=(0,o.deepMix)({},a,t.labelCfg),u=this.getLabelBgStyleByPosition(n,s),c=e.addShape("rect",{name:"text-bg-shape",attrs:u,labelRelated:!0});return e.shapeMap["text-bg-shape"]=c,c;}},g=(0,i.__assign)((0,i.__assign)({},f.shapeBase),h);l.default.registerEdge("single-edge",g),l.default.registerEdge("line",{getControlPoints:function(){}},"single-edge"),l.default.registerEdge("spline",{getPath:function(t){return(0,u.getSpline)(t);}},"single-edge"),l.default.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e,n,r=t.startPoint,i=t.endPoint,a={x:(r.x+i.x)/2,y:(r.y+i.y)/2};if(void 0!==t.controlPoints){if(n=t.controlPoints[0],e=(0,s.getCircleCenterByPoints)(r,n,i),r.x<=i.x&&r.y>i.y?this.clockwise=e.x>n.x?0:1:r.x<=i.x&&r.y<i.y?this.clockwise=e.x>n.x?1:0:r.x>i.x&&r.y<=i.y?this.clockwise=e.y<n.y?0:1:this.clockwise=e.y<n.y?1:0,(n.x-r.x)/(n.y-r.y)==(i.x-r.x)/(i.y-r.y))return[];}else{void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),(0,o.isArray)(t.curveOffset)&&(t.curveOffset=t.curveOffset[0]),t.curveOffset<0?this.clockwise=0:this.clockwise=1;var u={x:i.x-r.x,y:i.y-r.y},c=Math.atan2(u.y,u.x);n={x:t.curveOffset*Math.cos(-Math.PI/2+c)+a.x,y:t.curveOffset*Math.sin(-Math.PI/2+c)+a.y},e=(0,s.getCircleCenterByPoints)(r,n,i);}var l=(0,s.distance)(r,e);return[{x:l,y:l}];},getPath:function(t){var 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-edge"),l.default.registerEdge("quadratic",{curvePosition:.5,curveOffset:-20,getControlPoints:function(t){var e=t.controlPoints;if(!e||!e.length){var n=t.startPoint,r=t.endPoint;void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),(0,o.isArray)(t.curveOffset)&&(t.curveOffset=t.curveOffset[0]),(0,o.isArray)(t.curvePosition)&&(t.curvePosition=t.curveOffset[0]),e=[(0,u.getControlPoint)(n,r,t.curvePosition,t.curveOffset)];}return e;},getPath:function(t){var 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-edge"),l.default.registerEdge("cubic",{curvePosition:[.5,.5],curveOffset:[-20,20],getControlPoints:function(t){var e=t.controlPoints;if(void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),(0,o.isNumber)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),(0,o.isNumber)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]),!e||!e.length||e.length<2){var n=t.startPoint,r=t.endPoint;e=[(0,u.getControlPoint)(n,r,t.curvePosition[0],t.curveOffset[0]),(0,u.getControlPoint)(n,r,t.curvePosition[1],t.curveOffset[1])];}return e;},getPath:function(t){var 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-edge"),l.default.registerEdge("cubic-vertical",{curvePosition:[.5,.5],minCurveOffset:[0,0],curveOffset:void 0,getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.minCurveOffset&&(t.minCurveOffset=this.minCurveOffset),(0,o.isNumber)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),(0,o.isNumber)(t.minCurveOffset)&&(t.minCurveOffset=[t.minCurveOffset,-t.minCurveOffset]),(0,o.isNumber)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]);var r=n.y-e.y,i=[0,0];return t.curveOffset?i=t.curveOffset:Math.abs(r)<Math.abs(t.minCurveOffset[0])&&(i=t.minCurveOffset),[{x:e.x,y:e.y+r*this.curvePosition[0]+i[0]},{x:n.x,y:n.y-r*this.curvePosition[1]+i[1]}];}},"cubic"),l.default.registerEdge("cubic-horizontal",{curvePosition:[.5,.5],minCurveOffset:[0,0],curveOffset:void 0,getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.minCurveOffset&&(t.minCurveOffset=this.minCurveOffset),(0,o.isNumber)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),(0,o.isNumber)(t.minCurveOffset)&&(t.minCurveOffset=[t.minCurveOffset,-t.minCurveOffset]),(0,o.isNumber)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]);var r=n.x-e.x,i=[0,0];return t.curveOffset?i=t.curveOffset:Math.abs(r)<Math.abs(t.minCurveOffset[0])&&(i=t.minCurveOffset),[{x:e.x+r*this.curvePosition[0]+i[0],y:e.y},{x:n.x-r*this.curvePosition[1]+i[1],y:n.y}];}},"cubic"),l.default.registerEdge("loop",{getPathPoints:function(t){return(0,a.getLoopCfgs)(t);},getControlPoints:function(t){return t.controlPoints;},afterDraw:function(t){t.controlPoints=void 0;},afterUpdate:function(t){t.controlPoints=void 0;}},"cubic");},"42aa62cf":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=n("777fffbe")._(n("9acea899")).default;},"432fa017":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("c9ae1e54")),i=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o);}return n;};},"437a4445":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{LDU:function(){return _;},add:function(){return E;},adjoint:function(){return d;},clone:function(){return o;},copy:function(){return a;},create:function(){return i;},determinant:function(){return h;},equals:function(){return C;},exactEquals:function(){return M;},frob:function(){return x;},fromRotation:function(){return m;},fromScaling:function(){return y;},fromValues:function(){return u;},identity:function(){return s;},invert:function(){return f;},mul:function(){return D;},multiply:function(){return g;},multiplyScalar:function(){return A;},multiplyScalarAndAdd:function(){return S;},rotate:function(){return p;},scale:function(){return v;},set:function(){return c;},str:function(){return b;},sub:function(){return I;},subtract:function(){return w;},transpose:function(){return l;}});var r=n("852bbaa9")._(n("e89ef36f"));function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t;}function o(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e;}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t;}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t;}function u(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o;}function c(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t;}function l(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n;}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t;}function f(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*o-i*r;return a?(a=1/a,t[0]=o*a,t[1]=-r*a,t[2]=-i*a,t[3]=n*a,t):null;}function d(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t;}function h(t){return t[0]*t[3]-t[2]*t[1];}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],c=n[2],l=n[3];return t[0]=r*s+o*u,t[1]=i*s+a*u,t[2]=r*c+o*l,t[3]=i*c+a*l,t;}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*s,t[1]=i*u+a*s,t[2]=-(r*s)+o*u,t[3]=-(i*s)+a*u,t;}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1];return t[0]=r*s,t[1]=i*s,t[2]=o*u,t[3]=a*u,t;}function m(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t;}function y(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t;}function b(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";}function x(t){return Math.hypot(t[0],t[1],t[2],t[3]);}function _(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n];}function E(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;}function w(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;}function M(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3];}function C(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],u=e[1],c=e[2],l=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-c)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-l)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(l));}function A(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;}function S(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;}var D=g,I=w;},"43bf027e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("47526327")),i=function(t){return(0,r.default)(t).toLowerCase();};},"4444028f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=Math.PI/180,i=function(t){return r*t;};},"444c2b3c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"LayoutWorker",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("02dd3bc3")),i=function(t){return void 0===t&&(t="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js"),new r.default(function(){var t={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",GPURUN:"GPU_LAYOUT_RUN"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout),onmessage=function(e){var n;((n=e.data.type)===t.RUN||n===t.GPURUN)&&function(e){var n=this;switch(e.data.type){case t.RUN:var r,i=e.data,o=i.nodes,a=i.edges,s=i.layoutCfg,u=void 0===s?{}:s,c=u.type,l=layout.getLayoutByName(c);if(!l){this.postMessage({type:t.ERROR,message:"layout ".concat(c," not found")});break;}u.onLayoutEnd=function(){n.postMessage({type:t.END,nodes:o}),null==r||r.destroy();},(r=new l(u)).init({nodes:o,edges:a}),r.execute();break;case t.GPURUN:var f=e.data,d=f.nodes,a=f.edges,h=f.layoutCfg,u=void 0===h?{}:h,g=f.canvas,c=u.type,l=layout.getLayoutByName(c);if(!l){this.postMessage({type:t.ERROR,message:"layout ".concat(c," not found")});break;}if("gpu"!==c.split("-")[1]){this.postMessage({type:t.ERROR,message:"layout ".concat(c," does not support GPU")});break;}var p=new l(u);p.init({nodes:d,edges:a}),p.executeWithWorker(g,this);}}(e);};},t);};},"445ca8fb":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"arcToCubic",{enumerable:!0,get:function(){return function t(e,n,i,o,a,s,u,c,l,f){var d,h,g,p,v,m=e,y=n,b=i,x=o,_=c,E=l,w=120*Math.PI/180,M=Math.PI/180*(+a||0),C=[];if(f)h=f[0],g=f[1],p=f[2],v=f[3];else{m=(d=(0,r.rotateVector)(m,y,-M)).x,y=d.y,_=(d=(0,r.rotateVector)(_,E,-M)).x,E=d.y;var A=(m-_)/2,S=(y-E)/2,D=A*A/(b*b)+S*S/(x*x);D>1&&(b*=D=Math.sqrt(D),x*=D);var I=b*b,T=x*x,k=(s===u?-1:1)*Math.sqrt(Math.abs((I*T-I*S*S-T*A*A)/(I*S*S+T*A*A)));p=k*b*S/x+(m+_)/2,v=-(k*x)*A/b+(y+E)/2,h=Math.asin(((y-v)/x*1e9>>0)/1e9),g=Math.asin(((E-v)/x*1e9>>0)/1e9),h=m<p?Math.PI-h:h,g=_<p?Math.PI-g:g,h<0&&(h=2*Math.PI+h),g<0&&(g=2*Math.PI+g),u&&h>g&&(h-=2*Math.PI),!u&&g>h&&(g-=2*Math.PI);}var F=g-h;if(Math.abs(F)>w){var N=g,O=_,B=E;C=t(_=p+b*Math.cos(g=h+w*(u&&g>h?1:-1)),E=v+x*Math.sin(g),b,x,a,0,u,O,B,[g,N,p,v]);}F=g-h;var P=Math.cos(h),L=Math.cos(g),j=Math.tan(F/4),R=4/3*b*j,z=4/3*x*j,G=[m,y],Y=[m+R*Math.sin(h),y-z*P],X=[_+R*Math.sin(g),E-z*L],U=[_,E];if(Y[0]=2*G[0]-Y[0],Y[1]=2*G[1]-Y[1],f)return Y.concat(X,U,C);C=Y.concat(X,U,C);for(var H=[],W=0,V=C.length;W<V;W+=1)H[W]=W%2?(0,r.rotateVector)(C[W-1],C[W],M).y:(0,r.rotateVector)(C[W],C[W+1],M).x;return H;};}});var r=n("3742034d");},"44cdc360":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.Layouts=e.Layout=void 0;var r=n("ef785247"),i=n("b0b078bd"),o=n("b5d9520f"),a=n("3d2f45d5"),s=n("5043e8ba"),u=n("e570532a"),c=n("e658ed93"),l=n("86dbbe2a"),f=n("86a82e9b"),d=n("40287b3a"),h=n("50277de6"),g=n("4b6f939e"),p=n("405cc890"),v=n("3c80ed51"),m=n("32691cb9"),y=n("f9f31366"),b=n("467c7895"),x=n("62ef0bec"),_=n("a0f2fb57"),E=n("38788347"),w=function(){function t(t){var e=(0,r.getLayoutByName)(t.type);this.layoutInstance=new e(t);}return t.prototype.layout=function(t){return this.layoutInstance.layout(t);},t.prototype.updateCfg=function(t){this.layoutInstance.updateCfg(t);},t.prototype.init=function(t){this.correctLayers(t.nodes),this.layoutInstance.init(t);},t.prototype.correctLayers=function(t){if(null==t?void 0:t.length){var e=1/0,n=[];if(t.forEach(function(t){(0,E.isString)(t.layer)&&(t.layer=parseInt(t.layer,10)),!(void 0===t.layer||isNaN(t.layer))&&(n.push(t),t.layer<e&&(e=t.layer));}),e<=0){var r=Math.abs(e)+1;n.forEach(function(t){return t.layer+=r;});}}},t.prototype.execute=function(){this.layoutInstance.execute();},t.prototype.getDefaultCfg=function(){return this.layoutInstance.getDefaultCfg();},t.prototype.destroy=function(){return this.layoutInstance.destroy();},t;}();e.Layout=w,e.Layouts={force:u.ForceLayout,fruchterman:g.FruchtermanLayout,forceAtlas2:b.ForceAtlas2Layout,gForce:s.GForceLayout,force2:a.Force2Layout,dagre:l.DagreLayout,dagreCompound:_.DagreCompoundLayout,circular:c.CircularLayout,radial:f.RadialLayout,concentric:d.ConcentricLayout,grid:i.GridLayout,mds:h.MDSLayout,comboForce:m.ComboForceLayout,comboCombined:y.ComboCombinedLayout,random:o.RandomLayout,"gForce-gpu":v.GForceGPULayout,"fruchterman-gpu":p.FruchtermanGPULayout,er:x.ERLayout};},"454e307d":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);})(t,e);},function(t,e){function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.DetailContext=e.NoopContext=e.VError=void 0;var o=function(t){function e(n,r){var i=t.call(this,r)||this;return i.path=n,Object.setPrototypeOf(i,e.prototype),i;}return i(e,t),e;}(Error);e.VError=o;var a=function(){function t(){}return t.prototype.fail=function(t,e,n){return!1;},t.prototype.unionResolver=function(){return this;},t.prototype.createContext=function(){return this;},t.prototype.resolveUnion=function(t){},t;}();e.NoopContext=a;var s=function(){function t(){this._propNames=[""],this._messages=[null],this._score=0;}return t.prototype.fail=function(t,e,n){return this._propNames.push(t),this._messages.push(e),this._score+=n,!1;},t.prototype.unionResolver=function(){return new u;},t.prototype.resolveUnion=function(t){for(var e,n,r=null,i=0,o=t.contexts;i<o.length;i++){var a=o[i];(!r||a._score>=r._score)&&(r=a);}r&&r._score>0&&((e=this._propNames).push.apply(e,r._propNames),(n=this._messages).push.apply(n,r._messages));},t.prototype.getError=function(t){for(var e=[],n=this._propNames.length-1;n>=0;n--){var r=this._propNames[n];t+="number"==typeof r?"["+r+"]":r?"."+r:"";var i=this._messages[n];i&&e.push(t+" "+i);}return new o(t,e.join("; "));},t.prototype.getErrorDetail=function(t){for(var e=[],n=this._propNames.length-1;n>=0;n--){var r=this._propNames[n];t+="number"==typeof r?"["+r+"]":r?"."+r:"";var i=this._messages[n];i&&e.push({path:t,message:i});}for(var o=null,n=e.length-1;n>=0;n--)o&&(e[n].nested=[o]),o=e[n];return o;},t;}();e.DetailContext=s;var u=function(){function t(){this.contexts=[];}return t.prototype.createContext=function(){var t=new s;return this.contexts.push(t),t;},t;}();},"455d8214":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("22b52967"),i=function(){function t(t){this.arr=t;}return t.prototype.getArr=function(){return this.arr||[];},t.prototype.add=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null==r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]+r[o];return new t(i);}},t.prototype.subtract=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null==r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]-r[o];return new t(i);}},t.prototype.avg=function(e){var n=[];if(0!==e)for(var r in this.arr)n[r]=this.arr[r]/e;return new t(n);},t.prototype.negate=function(){var e=[];for(var n in this.arr)e[n]=-this.arr[n];return new t(e);},t.prototype.squareEuclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return r;}},t.prototype.euclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return Math.sqrt(r);}console.error("The two vectors are unequal in length.");},t.prototype.normalize=function(){var e=[],n=(0,r.clone)(this.arr);n.sort(function(t,e){return t-e;});var i=n[n.length-1],o=n[0];for(var a in this.arr)e[a]=(this.arr[a]-o)/(i-o);return new t(e);},t.prototype.norm2=function(){if(!(null===(t=this.arr)||void 0===t?void 0:t.length))return 0;var t,e=0;for(var n in this.arr)e+=Math.pow(this.arr[n],2);return Math.sqrt(e);},t.prototype.dot=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=this.arr[i]*t.arr[i];return r;}console.error("The two vectors are unequal in length.");},t.prototype.equal=function(t){var e,n=t.arr;if((null===(e=this.arr)||void 0===e?void 0:e.length)!==(null==n?void 0:n.length))return!1;for(var r in this.arr)if(this.arr[r]!==n[r])return!1;return!0;},t;}();},"458ecae5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("4c6d310c"),a=n("8d42ebc3"),s=n("22b52967"),u=r._(n("235d18ef")),c=r._(n("3215bdaa")),l=i._(n("b28fb25f")),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,o.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},e),{startArrow:!1,endArrow:!1});},e.prototype.initAttrs=function(t){this.setArrow();},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache();},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null);},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],u=n[o-1][0],c=n[o-1][1];r&&l.addStartArrow(this,t,n[1][0],n[1][1],a,s),i&&l.addEndArrow(this,t,n[o-2][0],n[o-2][1],u,c);},e.prototype.isFill=function(){return!1;},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr().points;return(0,c.default)(o,i,t,e,!1);},e.prototype.isStroke=function(){return!0;},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a=n[0][0],s=n[0][1],u=n[o-1][0],c=n[o-1][1];if(r&&r.d){var f=l.getShortenOffset(a,s,n[1][0],n[1][1],r.d);a+=f.dx,s+=f.dy;}if(i&&i.d){var f=l.getShortenOffset(n[o-2][0],n[o-2][1],u,c,i.d);u-=f.dx,c-=f.dy;}t.beginPath(),t.moveTo(a,s);for(var d=0;d<o-1;d++){var h=n[d];t.lineTo(h[0],h[1]);}t.lineTo(u,c);}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t);},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,s.isNil)(e)?(this.set("totalLength",a.Polyline.length(t)),this.get("totalLength")):e;},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,s.each)(i,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i);}),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e);},e.prototype._setTcache=function(){var t,e,n=this.attr().points;if(n&&0!==n.length){var r=this.getTotalLength();if(!(r<=0)){var i=0,o=[];(0,s.each)(n,function(s,u){n[u+1]&&((t=[])[0]=i/r,e=a.Line.length(s[0],s[1],n[u+1][0],n[u+1][1]),i+=e,t[1]=i/r,o.push(t));}),this.set("tCache",o);}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e;},e.prototype.getEndTangent=function(){var t=this.attr().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;},e;}(u.default);},"461f387d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("8b6af789")),a=Object.prototype.hasOwnProperty,s=function(t,e){if(!e||!(0,i.default)(t))return{};for(var n,r={},s=(0,o.default)(e)?e:function(t){return t[e];},u=0;u<t.length;u++){var c=t[u];n=s(c),a.call(r,n)?r[n].push(c):r[n]=[c];}return r;};},"466fa8f0":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{DaYun:function(){return w;},EightChar:function(){return C;},Foto:function(){return L;},FotoUtil:function(){return m;},Fu:function(){return I;},Holiday:function(){return u;},HolidayUtil:function(){return l;},I18n:function(){return x;},JieQi:function(){return f;},LiuNian:function(){return _;},LiuYue:function(){return d;},Lunar:function(){return z;},LunarMonth:function(){return T;},LunarTime:function(){return B;},LunarUtil:function(){return s;},LunarYear:function(){return O;},NineStar:function(){return S;},NineStarUtil:function(){return y;},ShouXingUtil:function(){return F;},ShuJiu:function(){return D;},Solar:function(){return X;},SolarHalfYear:function(){return H;},SolarMonth:function(){return G;},SolarSeason:function(){return U;},SolarUtil:function(){return i;},SolarWeek:function(){return o;},SolarYear:function(){return W;},Tao:function(){return R;},TaoUtil:function(){return g;},XiaoYun:function(){return E;},Yun:function(){return M;}});let r=class{static isLeapYear(t){return t<1600?t%4==0:t%4==0&&t%100!=0||t%400==0;}static getDaysOfMonth(t,e){if(1582===t&&10===e)return 21;let n=e-1,i=r.DAYS_OF_MONTH[n];return 1===n&&r.isLeapYear(t)&&i++,i;}static getDaysOfYear(t){return 1582===t?355:r.isLeapYear(t)?366:365;}static getDaysInYear(t,e,n){let i=0;for(let n=1;n<e;n++)i+=r.getDaysOfMonth(t,n);let o=n;if(1582===t&&10===e&&n>=15){if(n>=15)o-=10;else if(n>4)throw Error(`wrong solar year ${t} month ${e} day ${n}`);}return i+o;}static getWeeksOfMonth(t,e,n){return Math.ceil((r.getDaysOfMonth(t,e)+X.fromYmd(t,e,1).getWeek()-n)/7);}static getDaysBetween(t,e,n,i,o,a){let s,u,c;if(t==i)s=r.getDaysInYear(i,o,a)-r.getDaysInYear(t,e,n);else if(t>i){for(u=r.getDaysOfYear(i)-r.getDaysInYear(i,o,a),c=i+1;c<t;c++)u+=r.getDaysOfYear(c);u+=r.getDaysInYear(t,e,n),s=-u;}else{for(u=r.getDaysOfYear(t)-r.getDaysInYear(t,e,n),c=t+1;c<i;c++)u+=r.getDaysOfYear(c);u+=r.getDaysInYear(i,o,a),s=u;}return s;}},i=r;i.WEEK=["{w.sun}","{w.mon}","{w.tues}","{w.wed}","{w.thur}","{w.fri}","{w.sat}"],i.DAYS_OF_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],i.XINGZUO=["{xz.aries}","{xz.taurus}","{xz.gemini}","{xz.cancer}","{xz.leo}","{xz.virgo}","{xz.libra}","{xz.scorpio}","{xz.sagittarius}","{xz.capricornus}","{xz.aquarius}","{xz.pisces}"],i.FESTIVAL={"1-1":"{jr.yuanDan}","2-14":"{jr.qingRen}","3-8":"{jr.fuNv}","3-12":"{jr.zhiShu}","3-15":"{jr.xiaoFei}","4-1":"{jr.yuRen}","5-1":"{jr.wuYi}","5-4":"{jr.qingNian}","6-1":"{jr.erTong}","7-1":"{jr.jianDang}","8-1":"{jr.jianJun}","9-10":"{jr.jiaoShi}","10-1":"{jr.guoQing}","10-31":"{jr.wanShengYe}","11-1":"{jr.wanSheng}","12-24":"{jr.pingAn}","12-25":"{jr.shengDan}"},i.OTHER_FESTIVAL={"1-8":["\u5468\u6069\u6765\u901D\u4E16\u7EAA\u5FF5\u65E5"],"1-10":["\u4E2D\u56FD\u4EBA\u6C11\u8B66\u5BDF\u8282"],"1-14":["\u65E5\u8BB0\u60C5\u4EBA\u8282"],"1-21":["\u5217\u5B81\u901D\u4E16\u7EAA\u5FF5\u65E5"],"1-26":["\u56FD\u9645\u6D77\u5173\u65E5"],"1-27":["\u56FD\u9645\u5927\u5C60\u6740\u7EAA\u5FF5\u65E5"],"2-2":["\u4E16\u754C\u6E7F\u5730\u65E5"],"2-4":["\u4E16\u754C\u6297\u764C\u65E5"],"2-7":["\u4EAC\u6C49\u94C1\u8DEF\u7F62\u5DE5\u7EAA\u5FF5\u65E5"],"2-10":["\u56FD\u9645\u6C14\u8C61\u8282"],"2-19":["\u9093\u5C0F\u5E73\u901D\u4E16\u7EAA\u5FF5\u65E5"],"2-20":["\u4E16\u754C\u793E\u4F1A\u516C\u6B63\u65E5"],"2-21":["\u56FD\u9645\u6BCD\u8BED\u65E5"],"2-24":["\u7B2C\u4E09\u4E16\u754C\u9752\u5E74\u65E5"],"3-1":["\u56FD\u9645\u6D77\u8C79\u65E5"],"3-3":["\u4E16\u754C\u91CE\u751F\u52A8\u690D\u7269\u65E5","\u5168\u56FD\u7231\u8033\u65E5"],"3-5":["\u5468\u6069\u6765\u8BDE\u8FB0\u7EAA\u5FF5\u65E5","\u4E2D\u56FD\u9752\u5E74\u5FD7\u613F\u8005\u670D\u52A1\u65E5"],"3-6":["\u4E16\u754C\u9752\u5149\u773C\u65E5"],"3-7":["\u5973\u751F\u8282"],"3-12":["\u5B59\u4E2D\u5C71\u901D\u4E16\u7EAA\u5FF5\u65E5"],"3-14":["\u9A6C\u514B\u601D\u901D\u4E16\u7EAA\u5FF5\u65E5","\u767D\u8272\u60C5\u4EBA\u8282"],"3-17":["\u56FD\u9645\u822A\u6D77\u65E5"],"3-18":["\u5168\u56FD\u79D1\u6280\u4EBA\u624D\u6D3B\u52A8\u65E5","\u5168\u56FD\u7231\u809D\u65E5"],"3-20":["\u56FD\u9645\u5E78\u798F\u65E5"],"3-21":["\u4E16\u754C\u68EE\u6797\u65E5","\u4E16\u754C\u7761\u7720\u65E5","\u56FD\u9645\u6D88\u9664\u79CD\u65CF\u6B67\u89C6\u65E5"],"3-22":["\u4E16\u754C\u6C34\u65E5"],"3-23":["\u4E16\u754C\u6C14\u8C61\u65E5"],"3-24":["\u4E16\u754C\u9632\u6CBB\u7ED3\u6838\u75C5\u65E5"],"3-29":["\u4E2D\u56FD\u9EC4\u82B1\u5C97\u4E03\u5341\u4E8C\u70C8\u58EB\u6B89\u96BE\u7EAA\u5FF5\u65E5"],"4-2":["\u56FD\u9645\u513F\u7AE5\u56FE\u4E66\u65E5","\u4E16\u754C\u81EA\u95ED\u75C7\u65E5"],"4-4":["\u56FD\u9645\u5730\u96F7\u884C\u52A8\u65E5"],"4-7":["\u4E16\u754C\u536B\u751F\u65E5"],"4-8":["\u56FD\u9645\u73CD\u7A00\u52A8\u7269\u4FDD\u62A4\u65E5"],"4-12":["\u4E16\u754C\u822A\u5929\u65E5"],"4-14":["\u9ED1\u8272\u60C5\u4EBA\u8282"],"4-15":["\u5168\u6C11\u56FD\u5BB6\u5B89\u5168\u6559\u80B2\u65E5"],"4-22":["\u4E16\u754C\u5730\u7403\u65E5","\u5217\u5B81\u8BDE\u8FB0\u7EAA\u5FF5\u65E5"],"4-23":["\u4E16\u754C\u8BFB\u4E66\u65E5"],"4-24":["\u4E2D\u56FD\u822A\u5929\u65E5"],"4-25":["\u513F\u7AE5\u9884\u9632\u63A5\u79CD\u5BA3\u4F20\u65E5"],"4-26":["\u4E16\u754C\u77E5\u8BC6\u4EA7\u6743\u65E5","\u5168\u56FD\u759F\u75BE\u65E5"],"4-28":["\u4E16\u754C\u5B89\u5168\u751F\u4EA7\u4E0E\u5065\u5EB7\u65E5"],"4-30":["\u5168\u56FD\u4EA4\u901A\u5B89\u5168\u53CD\u601D\u65E5"],"5-2":["\u4E16\u754C\u91D1\u67AA\u9C7C\u65E5"],"5-3":["\u4E16\u754C\u65B0\u95FB\u81EA\u7531\u65E5"],"5-5":["\u9A6C\u514B\u601D\u8BDE\u8FB0\u7EAA\u5FF5\u65E5"],"5-8":["\u4E16\u754C\u7EA2\u5341\u5B57\u65E5"],"5-11":["\u4E16\u754C\u80A5\u80D6\u65E5"],"5-12":["\u5168\u56FD\u9632\u707E\u51CF\u707E\u65E5","\u62A4\u58EB\u8282"],"5-14":["\u73AB\u7470\u60C5\u4EBA\u8282"],"5-15":["\u56FD\u9645\u5BB6\u5EAD\u65E5"],"5-19":["\u4E2D\u56FD\u65C5\u6E38\u65E5"],"5-20":["\u7F51\u7EDC\u60C5\u4EBA\u8282"],"5-22":["\u56FD\u9645\u751F\u7269\u591A\u6837\u6027\u65E5"],"5-25":["525\u5FC3\u7406\u5065\u5EB7\u8282"],"5-27":["\u4E0A\u6D77\u89E3\u653E\u65E5"],"5-29":["\u56FD\u9645\u7EF4\u548C\u4EBA\u5458\u65E5"],"5-30":["\u4E2D\u56FD\u4E94\u5345\u8FD0\u52A8\u7EAA\u5FF5\u65E5"],"5-31":["\u4E16\u754C\u65E0\u70DF\u65E5"],"6-3":["\u4E16\u754C\u81EA\u884C\u8F66\u65E5"],"6-5":["\u4E16\u754C\u73AF\u5883\u65E5"],"6-6":["\u5168\u56FD\u7231\u773C\u65E5"],"6-8":["\u4E16\u754C\u6D77\u6D0B\u65E5"],"6-11":["\u4E2D\u56FD\u4EBA\u53E3\u65E5"],"6-14":["\u4E16\u754C\u732E\u8840\u65E5","\u4EB2\u4EB2\u60C5\u4EBA\u8282"],"6-17":["\u4E16\u754C\u9632\u6CBB\u8352\u6F20\u5316\u4E0E\u5E72\u65F1\u65E5"],"6-20":["\u4E16\u754C\u96BE\u6C11\u65E5"],"6-21":["\u56FD\u9645\u745C\u4F3D\u65E5"],"6-25":["\u5168\u56FD\u571F\u5730\u65E5"],"6-26":["\u56FD\u9645\u7981\u6BD2\u65E5","\u8054\u5408\u56FD\u5BAA\u7AE0\u65E5"],"7-1":["\u9999\u6E2F\u56DE\u5F52\u7EAA\u5FF5\u65E5"],"7-6":["\u56FD\u9645\u63A5\u543B\u65E5","\u6731\u5FB7\u901D\u4E16\u7EAA\u5FF5\u65E5"],"7-7":["\u4E03\u4E03\u4E8B\u53D8\u7EAA\u5FF5\u65E5"],"7-11":["\u4E16\u754C\u4EBA\u53E3\u65E5","\u4E2D\u56FD\u822A\u6D77\u65E5"],"7-14":["\u94F6\u8272\u60C5\u4EBA\u8282"],"7-18":["\u66FC\u5FB7\u62C9\u56FD\u9645\u65E5"],"7-30":["\u56FD\u9645\u53CB\u8C0A\u65E5"],"8-3":["\u7537\u4EBA\u8282"],"8-5":["\u6069\u683C\u65AF\u901D\u4E16\u7EAA\u5FF5\u65E5"],"8-6":["\u56FD\u9645\u7535\u5F71\u8282"],"8-8":["\u5168\u6C11\u5065\u8EAB\u65E5"],"8-9":["\u56FD\u9645\u571F\u8457\u4EBA\u65E5"],"8-12":["\u56FD\u9645\u9752\u5E74\u8282"],"8-14":["\u7EFF\u8272\u60C5\u4EBA\u8282"],"8-19":["\u4E16\u754C\u4EBA\u9053\u4E3B\u4E49\u65E5","\u4E2D\u56FD\u533B\u5E08\u8282"],"8-22":["\u9093\u5C0F\u5E73\u8BDE\u8FB0\u7EAA\u5FF5\u65E5"],"8-29":["\u5168\u56FD\u6D4B\u7ED8\u6CD5\u5BA3\u4F20\u65E5"],"9-3":["\u4E2D\u56FD\u6297\u65E5\u6218\u4E89\u80DC\u5229\u7EAA\u5FF5\u65E5"],"9-5":["\u4E2D\u534E\u6148\u5584\u65E5"],"9-8":["\u4E16\u754C\u626B\u76F2\u65E5"],"9-9":["\u6BDB\u6CFD\u4E1C\u901D\u4E16\u7EAA\u5FF5\u65E5","\u5168\u56FD\u62D2\u7EDD\u9152\u9A7E\u65E5"],"9-14":["\u4E16\u754C\u6E05\u6D01\u5730\u7403\u65E5","\u76F8\u7247\u60C5\u4EBA\u8282"],"9-15":["\u56FD\u9645\u6C11\u4E3B\u65E5"],"9-16":["\u56FD\u9645\u81ED\u6C27\u5C42\u4FDD\u62A4\u65E5"],"9-17":["\u4E16\u754C\u9A91\u884C\u65E5"],"9-18":["\u4E5D\u4E00\u516B\u4E8B\u53D8\u7EAA\u5FF5\u65E5"],"9-20":["\u5168\u56FD\u7231\u7259\u65E5"],"9-21":["\u56FD\u9645\u548C\u5E73\u65E5"],"9-27":["\u4E16\u754C\u65C5\u6E38\u65E5"],"9-30":["\u4E2D\u56FD\u70C8\u58EB\u7EAA\u5FF5\u65E5"],"10-1":["\u56FD\u9645\u8001\u5E74\u4EBA\u65E5"],"10-2":["\u56FD\u9645\u975E\u66B4\u529B\u65E5"],"10-4":["\u4E16\u754C\u52A8\u7269\u65E5"],"10-11":["\u56FD\u9645\u5973\u7AE5\u65E5"],"10-10":["\u8F9B\u4EA5\u9769\u547D\u7EAA\u5FF5\u65E5"],"10-13":["\u56FD\u9645\u51CF\u8F7B\u81EA\u7136\u707E\u5BB3\u65E5","\u4E2D\u56FD\u5C11\u5E74\u5148\u950B\u961F\u8BDE\u8FB0\u65E5"],"10-14":["\u8461\u8404\u9152\u60C5\u4EBA\u8282"],"10-16":["\u4E16\u754C\u7CAE\u98DF\u65E5"],"10-17":["\u5168\u56FD\u6276\u8D2B\u65E5"],"10-20":["\u4E16\u754C\u7EDF\u8BA1\u65E5"],"10-24":["\u4E16\u754C\u53D1\u5C55\u4FE1\u606F\u65E5","\u7A0B\u5E8F\u5458\u8282"],"10-25":["\u6297\u7F8E\u63F4\u671D\u7EAA\u5FF5\u65E5"],"11-5":["\u4E16\u754C\u6D77\u5578\u65E5"],"11-8":["\u8BB0\u8005\u8282"],"11-9":["\u5168\u56FD\u6D88\u9632\u65E5"],"11-11":["\u5149\u68CD\u8282"],"11-12":["\u5B59\u4E2D\u5C71\u8BDE\u8FB0\u7EAA\u5FF5\u65E5"],"11-14":["\u7535\u5F71\u60C5\u4EBA\u8282"],"11-16":["\u56FD\u9645\u5BBD\u5BB9\u65E5"],"11-17":["\u56FD\u9645\u5927\u5B66\u751F\u8282"],"11-19":["\u4E16\u754C\u5395\u6240\u65E5"],"11-28":["\u6069\u683C\u65AF\u8BDE\u8FB0\u7EAA\u5FF5\u65E5"],"11-29":["\u56FD\u9645\u58F0\u63F4\u5DF4\u52D2\u65AF\u5766\u4EBA\u6C11\u65E5"],"12-1":["\u4E16\u754C\u827E\u6ECB\u75C5\u65E5"],"12-2":["\u5168\u56FD\u4EA4\u901A\u5B89\u5168\u65E5"],"12-3":["\u4E16\u754C\u6B8B\u75BE\u4EBA\u65E5"],"12-4":["\u5168\u56FD\u6CD5\u5236\u5BA3\u4F20\u65E5"],"12-5":["\u4E16\u754C\u5F31\u80FD\u4EBA\u58EB\u65E5","\u56FD\u9645\u5FD7\u613F\u4EBA\u5458\u65E5"],"12-7":["\u56FD\u9645\u6C11\u822A\u65E5"],"12-9":["\u4E16\u754C\u8DB3\u7403\u65E5","\u56FD\u9645\u53CD\u8150\u8D25\u65E5"],"12-10":["\u4E16\u754C\u4EBA\u6743\u65E5"],"12-11":["\u56FD\u9645\u5C71\u5CB3\u65E5"],"12-12":["\u897F\u5B89\u4E8B\u53D8\u7EAA\u5FF5\u65E5"],"12-13":["\u56FD\u5BB6\u516C\u796D\u65E5"],"12-14":["\u62E5\u62B1\u60C5\u4EBA\u8282"],"12-18":["\u56FD\u9645\u79FB\u5F99\u8005\u65E5"],"12-26":["\u6BDB\u6CFD\u4E1C\u8BDE\u8FB0\u7EAA\u5FF5\u65E5"]},i.WEEK_FESTIVAL={"3-0-1":"\u5168\u56FD\u4E2D\u5C0F\u5B66\u751F\u5B89\u5168\u6559\u80B2\u65E5","5-2-0":"\u6BCD\u4EB2\u8282","5-3-0":"\u5168\u56FD\u52A9\u6B8B\u65E5","6-3-0":"\u7236\u4EB2\u8282","9-3-6":"\u5168\u6C11\u56FD\u9632\u6559\u80B2\u65E5","10-1-1":"\u4E16\u754C\u4F4F\u623F\u65E5","11-4-4":"\u611F\u6069\u8282"};class o{static fromYmd(t,e,n,r){return new o(t,e,n,r);}static fromDate(t,e){return o.fromYmd(t.getFullYear(),t.getMonth()+1,t.getDate(),e);}constructor(t,e,n,r){this._year=t,this._month=e,this._day=n,this._start=r;}getYear(){return this._year;}getMonth(){return this._month;}getDay(){return this._day;}getStart(){return this._start;}getIndex(){let t=X.fromYmd(this._year,this._month,1).getWeek()-this._start;return t<0&&(t+=7),Math.ceil((this._day+t)/7);}getIndexInYear(){let t=X.fromYmd(this._year,1,1).getWeek()-this._start;return t<0&&(t+=7),Math.ceil((i.getDaysInYear(this._year,this._month,this._day)+t)/7);}next(t,e){let n=this._start;if(0===t)return o.fromYmd(this._year,this._month,this._day,n);let r=X.fromYmd(this._year,this._month,this._day);if(!e)return r=r.next(7*t),o.fromYmd(r.getYear(),r.getMonth(),r.getDay(),n);{let e=t,a=o.fromYmd(this._year,this._month,this._day,n),s=this._month,u=e>0;for(;0!==e;){r=r.next(u?7:-7);let t=(a=o.fromYmd(r.getYear(),r.getMonth(),r.getDay(),n)).getMonth();if(s!==t){let e=a.getIndex();if(u){if(1===e){let e=a.getFirstDay();t=(a=o.fromYmd(e.getYear(),e.getMonth(),e.getDay(),n)).getMonth();}else r=X.fromYmd(a.getYear(),a.getMonth(),1),a=o.fromYmd(r.getYear(),r.getMonth(),r.getDay(),n);}else if(i.getWeeksOfMonth(a.getYear(),a.getMonth(),n)===e){let e=a.getFirstDay().next(6);t=(a=o.fromYmd(e.getYear(),e.getMonth(),e.getDay(),n)).getMonth();}else r=X.fromYmd(a.getYear(),a.getMonth(),i.getDaysOfMonth(a.getYear(),a.getMonth())),a=o.fromYmd(r.getYear(),r.getMonth(),r.getDay(),n);s=t;}e-=u?1:-1;}return a;}}getFirstDay(){let t=X.fromYmd(this._year,this._month,this._day),e=t.getWeek()-this._start;return e<0&&(e+=7),t.next(-e);}getFirstDayInMonth(){let t=0,e=this.getDays();for(let n=0;n<e.length;n++)if(this._month===e[n].getMonth()){t=n;break;}return e[t];}getDays(){let t=this.getFirstDay(),e=[];e.push(t);for(let n=1;n<7;n++)e.push(t.next(n));return e;}getDaysInMonth(){let t=this.getDays(),e=[];for(let n=0;n<t.length;n++){let r=t[n];this._month===r.getMonth()&&e.push(r);}return e;}toString(){return`${this.getYear()}.${this.getMonth()}.${this.getIndex()}`;}toFullString(){return`${this.getYear()}\u5E74${this.getMonth()}\u6708\u7B2C${this.getIndex()}\u5468`;}}let a=class{static getTimeZhiIndex(t){if(!t)return 0;t.length>5&&(t=t.substring(0,5));let e=1;for(let n=1;n<22;n+=2){if(t>=(n<10?"0":"")+n+":00"&&t<=(n+1<10?"0":"")+(n+1)+":59")return e;e++;}return 0;}static convertTime(t){return a.ZHI[a.getTimeZhiIndex(t)+1];}static getJiaZiIndex(t){return a.index(t,a.JIA_ZI,0);}static hex(t){let e=t.toString(16);return e.length<2&&(e="0"+e),e.toUpperCase();}static getDayYi(t,e){let n=[],r=a.hex(a.getJiaZiIndex(e)),i=a.hex(a.getJiaZiIndex(t)),o=a.DAY_YI_JI,s=o.indexOf(r+"=");for(;s>-1;){let t,e;let u=o=o.substring(s+3);u.indexOf("=")>-1&&(u=u.substring(0,u.indexOf("=")-2));let c=!1,l=u.substring(0,u.indexOf(":"));for(t=0,e=l.length;t<e;t+=2)if(l.substring(t,t+2)==i){c=!0;break;}if(c){let r=u.substring(u.indexOf(":")+1);for(t=0,e=(r=r.substring(0,r.indexOf(","))).length;t<e;t+=2)n.push(a.YI_JI[parseInt(r.substring(t,t+2),16)]);break;}s=o.indexOf(r+"=");}return n.length<1&&n.push(a.SHEN_SHA[0]),n;}static getDayJi(t,e){let n=[],r=a.hex(a.getJiaZiIndex(e)),i=a.hex(a.getJiaZiIndex(t)),o=a.DAY_YI_JI,s=o.indexOf(r+"=");for(;s>-1;){let t,e;let u=o=o.substring(s+3);u.indexOf("=")>-1&&(u=u.substring(0,u.indexOf("=")-2));let c=!1,l=u.substring(0,u.indexOf(":"));for(t=0,e=l.length;t<e;t+=2)if(l.substring(t,t+2)==i){c=!0;break;}if(c){let r=u.substring(u.indexOf(",")+1);for(t=0,e=r.length;t<e;t+=2)n.push(a.YI_JI[parseInt(r.substring(t,t+2),16)]);break;}s=o.indexOf(r+"=");}return n.length<1&&n.push(a.SHEN_SHA[0]),n;}static getDayJiShen(t,e){let n=[],r=a.hex(a.getJiaZiIndex(e)),i=Math.abs(t).toString(16).toUpperCase(),o=a.DAY_SHEN_SHA.indexOf(i+r+"=");if(o>-1){let t=a.DAY_SHEN_SHA.substring(o+4);t.indexOf("=")>-1&&(t=t.substring(0,t.indexOf("=")-3));let e=t.substring(0,t.indexOf(","));for(let t=0,r=e.length;t<r;t+=2)n.push(a.SHEN_SHA[parseInt(e.substring(t,t+2),16)]);}return n.length<1&&n.push(a.SHEN_SHA[0]),n;}static getDayXiongSha(t,e){let n=[],r=a.hex(a.getJiaZiIndex(e)),i=Math.abs(t).toString(16).toUpperCase(),o=a.DAY_SHEN_SHA.indexOf(i+r+"=");if(o>-1){let t=a.DAY_SHEN_SHA.substring(o+4);t.indexOf("=")>-1&&(t=t.substring(0,t.indexOf("=")-3));let e=t.substring(t.indexOf(",")+1);for(let t=0,r=e.length;t<r;t+=2)n.push(a.SHEN_SHA[parseInt(e.substring(t,t+2),16)]);}return n.length<1&&n.push(a.SHEN_SHA[0]),n;}static getTimeYi(t,e){let n=[],r=a.hex(a.getJiaZiIndex(t)),i=a.hex(a.getJiaZiIndex(e)),o=a.TIME_YI_JI.indexOf(r+i+"=");if(o>-1){let t=a.TIME_YI_JI.substring(o+5);t.indexOf("=")>-1&&(t=t.substring(0,t.indexOf("=")-4));let e=t.substring(0,t.indexOf(","));for(let t=0,r=e.length;t<r;t+=2)n.push(a.YI_JI[parseInt(e.substring(t,t+2),16)]);}return n.length<1&&n.push(a.SHEN_SHA[0]),n;}static getTimeJi(t,e){let n=[],r=a.hex(a.getJiaZiIndex(t)),i=a.hex(a.getJiaZiIndex(e)),o=a.TIME_YI_JI.indexOf(r+i+"=");if(o>-1){let t=a.TIME_YI_JI.substring(o+5);t.indexOf("=")>-1&&(t=t.substring(0,t.indexOf("=")-4));let e=t.substring(t.indexOf(",")+1);for(let t=0,r=e.length;t<r;t+=2)n.push(a.YI_JI[parseInt(e.substring(t,t+2),16)]);}return n.length<1&&n.push(a.SHEN_SHA[0]),n;}static getXunIndex(t){let e=a.find(t,a.GAN),n=a.find(t,a.ZHI),r=e.index-n.index;return r<0&&(r+=12),Math.floor(r/2);}static getXun(t){return a.XUN[a.getXunIndex(t)];}static getXunKong(t){return a.XUN_KONG[a.getXunIndex(t)];}static find(t,e){for(let n=0,r=e.length;n<r;n++){let r=e[n];if(!(r.length<1)&&t.indexOf(r)>-1)return{index:n,value:r};}return null;}static index(t,e,n){for(let r=0,i=e.length;r<i;r++)if(e[r]===t)return r+n;return -1;}},s=a;s.BASE_MONTH_ZHI_INDEX=2,s.XUN=["{jz.jiaZi}","{jz.jiaXu}","{jz.jiaShen}","{jz.jiaWu}","{jz.jiaChen}","{jz.jiaYin}"],s.XUN_KONG=["{dz.xu}{dz.hai}","{dz.shen}{dz.you}","{dz.wu}{dz.wei}","{dz.chen}{dz.si}","{dz.yin}{dz.mao}","{dz.zi}{dz.chou}"],s.CHANG_SHENG=["{ds.changSheng}","{ds.muYu}","{ds.guanDai}","{ds.linGuan}","{ds.diWang}","{ds.shuai}","{ds.bing}","{ds.si}","{ds.mu}","{ds.jue}","{ds.tai}","{ds.yang}"],s.MONTH_ZHI=["","{dz.yin}","{dz.mao}","{dz.chen}","{dz.si}","{dz.wu}","{dz.wei}","{dz.shen}","{dz.you}","{dz.xu}","{dz.hai}","{dz.zi}","{dz.chou}"],s.JIE_QI=["{jq.dongZhi}","{jq.xiaoHan}","{jq.daHan}","{jq.liChun}","{jq.yuShui}","{jq.jingZhe}","{jq.chunFen}","{jq.qingMing}","{jq.guYu}","{jq.liXia}","{jq.xiaoMan}","{jq.mangZhong}","{jq.xiaZhi}","{jq.xiaoShu}","{jq.daShu}","{jq.liQiu}","{jq.chuShu}","{jq.baiLu}","{jq.qiuFen}","{jq.hanLu}","{jq.shuangJiang}","{jq.liDong}","{jq.xiaoXue}","{jq.daXue}"],s.JIE_QI_IN_USE=["DA_XUE","{jq.dongZhi}","{jq.xiaoHan}","{jq.daHan}","{jq.liChun}","{jq.yuShui}","{jq.jingZhe}","{jq.chunFen}","{jq.qingMing}","{jq.guYu}","{jq.liXia}","{jq.xiaoMan}","{jq.mangZhong}","{jq.xiaZhi}","{jq.xiaoShu}","{jq.daShu}","{jq.liQiu}","{jq.chuShu}","{jq.baiLu}","{jq.qiuFen}","{jq.hanLu}","{jq.shuangJiang}","{jq.liDong}","{jq.xiaoXue}","{jq.daXue}","DONG_ZHI","XIAO_HAN","DA_HAN","LI_CHUN","YU_SHUI","JING_ZHE"],s.LIU_YAO=["{ly.xianSheng}","{ly.youYin}","{ly.xianFu}","{ly.foMie}","{ly.daAn}","{ly.chiKou}"],s.HOU=["{h.first}","{h.second}","{h.third}"],s.WU_HOU=["{h.qiuYinJie}","{h.miJiao}","{h.shuiQuan}","{h.yanBei}","{h.queShi}","{h.zhiShi}","{h.jiShi}","{h.zhengNiao}","{h.shuiZe}","{h.dongFeng}","{h.zheChongShiZhen}","{h.yuZhi}","{h.taJi}","{h.houYan}","{h.caoMuMengDong}","{h.taoShi}","{h.cangGeng}","{h.yingHua}","{h.xuanNiaoZhi}","{h.leiNai}","{h.shiDian}","{h.tongShi}","{h.tianShu}","{h.hongShi}","{h.pingShi}","{h.mingJiu}","{h.daiSheng}","{h.louGuo}","{h.qiuYinChu}","{h.wangGua}","{h.kuCai}","{h.miCao}","{h.maiQiu}","{h.tangLang}","{h.juShi}","{h.fanShe}","{h.luJia}","{h.tiaoShi}","{h.banXia}","{h.wenFeng}","{h.xiShuai}","{h.yingShi}","{h.fuCao}","{h.tuRun}","{h.daYu}","{h.liangFeng}","{h.baiLu}","{h.hanChan}","{h.yingNai}","{h.tianDi}","{h.heNai}","{h.hongYanLai}","{h.xuanNiaoGui}","{h.qunNiao}","{h.leiShi}","{h.zheChongPiHu}","{h.shuiShiHe}","{h.hongYanLaiBin}","{h.queRu}","{h.juYou}","{h.caiNai}","{h.caoMuHuangLuo}","{h.zheChongXianFu}","{h.shuiShiBing}","{h.diShi}","{h.zhiRu}","{h.hongCang}","{h.tianQi}","{h.biSe}","{h.heDan}","{h.huShi}","{h.liTing}"],s.GAN=["","{tg.jia}","{tg.yi}","{tg.bing}","{tg.ding}","{tg.wu}","{tg.ji}","{tg.geng}","{tg.xin}","{tg.ren}","{tg.gui}"],s.POSITION_XI=["","{bg.gen}","{bg.qian}","{bg.kun}","{bg.li}","{bg.xun}","{bg.gen}","{bg.qian}","{bg.kun}","{bg.li}","{bg.xun}"],s.POSITION_YANG_GUI=["","{bg.kun}","{bg.kun}","{bg.dui}","{bg.qian}","{bg.gen}","{bg.kan}","{bg.li}","{bg.gen}","{bg.zhen}","{bg.xun}"],s.POSITION_YIN_GUI=["","{bg.gen}","{bg.kan}","{bg.qian}","{bg.dui}","{bg.kun}","{bg.kun}","{bg.gen}","{bg.li}","{bg.xun}","{bg.zhen}"],s.POSITION_FU=["","{bg.xun}","{bg.xun}","{bg.zhen}","{bg.zhen}","{bg.kan}","{bg.li}","{bg.kun}","{bg.kun}","{bg.qian}","{bg.dui}"],s.POSITION_FU_2=["","{bg.kan}","{bg.kun}","{bg.qian}","{bg.xun}","{bg.gen}","{bg.kan}","{bg.kun}","{bg.qian}","{bg.xun}","{bg.gen}"],s.POSITION_CAI=["","{bg.gen}","{bg.gen}","{bg.kun}","{bg.kun}","{bg.kan}","{bg.kan}","{bg.zhen}","{bg.zhen}","{bg.li}","{bg.li}"],s.POSITION_TAI_SUI_YEAR=["{bg.kan}","{bg.gen}","{bg.gen}","{bg.zhen}","{bg.xun}","{bg.xun}","{bg.li}","{bg.kun}","{bg.kun}","{bg.dui}","{bg.kan}","{bg.kan}"],s.POSITION_GAN=["{bg.zhen}","{bg.zhen}","{bg.li}","{bg.li}","{ps.center}","{ps.center}","{bg.dui}","{bg.dui}","{bg.kan}","{bg.kan}"],s.POSITION_ZHI=["{bg.kan}","{ps.center}","{bg.zhen}","{bg.zhen}","{ps.center}","{bg.li}","{bg.li}","{ps.center}","{bg.dui}","{bg.dui}","{ps.center}","{bg.kan}"],s.POSITION_TAI_DAY=["{ts.zhan}{ts.men}{ts.dui} {ps.wai}{ps.dongNan}","{ts.dui}{ts.mo}{ts.ce} {ps.wai}{ps.dongNan}","{ts.chu}{ts.zao}{ts.lu} {ps.wai}{ps.zhengNan}","{ts.cangKu}{ts.men} {ps.wai}{ps.zhengNan}","{ts.fang}{ts.chuang}{ts.xi} {ps.wai}{ps.zhengNan}","{ts.zhan}{ts.men}{ts.chuang} {ps.wai}{ps.zhengNan}","{ts.zhan}{ts.dui}{ts.mo} {ps.wai}{ps.zhengNan}","{ts.chu}{ts.zao}{ts.ce} {ps.wai}{ps.xiNan}","{ts.cangKu}{ts.lu} {ps.wai}{ps.xiNan}","{ts.fang}{ts.chuang}{ts.men} {ps.wai}{ps.xiNan}","{ts.zhan}{ts.men}{ts.xi} {ps.wai}{ps.xiNan}","{ts.dui}{ts.mo}{ts.chuang} {ps.wai}{ps.xiNan}","{ts.chu}{ts.zao}{ts.dui} {ps.wai}{ps.xiNan}","{ts.cangKu}{ts.ce} {ps.wai}{ps.zhengXi}","{ts.fang}{ts.chuang}{ts.lu} {ps.wai}{ps.zhengXi}","{ts.zhan}{ts.daMen} {ps.wai}{ps.zhengXi}","{ts.dui}{ts.mo}{ts.xi} {ps.wai}{ps.zhengXi}","{ts.chu}{ts.zao}{ts.chuang} {ps.wai}{ps.zhengXi}","{ts.cangKu}{ts.dui} {ps.wai}{ps.xiBei}","{ts.fang}{ts.chuang}{ts.ce} {ps.wai}{ps.xiBei}","{ts.zhan}{ts.men}{ts.lu} {ps.wai}{ps.xiBei}","{ts.dui}{ts.mo}{ts.men} {ps.wai}{ps.xiBei}","{ts.chu}{ts.zao}{ts.xi} {ps.wai}{ps.xiBei}","{ts.cangKu}{ts.chuang} {ps.wai}{ps.xiBei}","{ts.fang}{ts.chuang}{ts.dui} {ps.wai}{ps.zhengBei}","{ts.zhan}{ts.men}{ts.ce} {ps.wai}{ps.zhengBei}","{ts.dui}{ts.mo}{ts.lu} {ps.wai}{ps.zhengBei}","{ts.chu}{ts.zao}{ts.men} {ps.wai}{ps.zhengBei}","{ts.cangKu}{ts.xi} {ps.wai}{ps.zhengBei}","{ts.zhan}{ts.fang}{ts.chuang} {ps.fangNei}{ps.bei}","{ts.zhan}{ts.men}{ts.dui} {ps.fangNei}{ps.bei}","{ts.dui}{ts.mo}{ts.ce} {ps.fangNei}{ps.bei}","{ts.chu}{ts.zao}{ts.lu} {ps.fangNei}{ps.bei}","{ts.cangKu}{ts.men} {ps.fangNei}{ps.bei}","{ts.fang}{ts.chuang}{ts.xi} {ps.fangNei}{ps.center}","{ts.zhan}{ts.men}{ts.chuang} {ps.fangNei}{ps.center}","{ts.zhan}{ts.dui}{ts.mo} {ps.fangNei}{ps.nan}","{ts.chu}{ts.zao}{ts.ce} {ps.fangNei}{ps.nan}","{ts.cangKu}{ts.lu} {ps.fangNei}{ps.nan}","{ts.fang}{ts.chuang}{ts.men} {ps.fangNei}{ps.xi}","{ts.zhan}{ts.men}{ts.xi} {ps.fangNei}{ps.dong}","{ts.dui}{ts.mo}{ts.chuang} {ps.fangNei}{ps.dong}","{ts.chu}{ts.zao}{ts.dui} {ps.fangNei}{ps.dong}","{ts.cangKu}{ts.ce} {ps.fangNei}{ps.dong}","{ts.fang}{ts.chuang}{ts.lu} {ps.fangNei}{ps.center}","{ts.zhan}{ts.daMen} {ps.wai}{ps.dongBei}","{ts.dui}{ts.mo}{ts.xi} {ps.wai}{ps.dongBei}","{ts.chu}{ts.zao}{ts.chuang} {ps.wai}{ps.dongBei}","{ts.cangKu}{ts.dui} {ps.wai}{ps.dongBei}","{ts.fang}{ts.chuang}{ts.ce} {ps.wai}{ps.dongBei}","{ts.zhan}{ts.men}{ts.lu} {ps.wai}{ps.dongBei}","{ts.dui}{ts.mo}{ts.men} {ps.wai}{ps.zhengDong}","{ts.chu}{ts.zao}{ts.xi} {ps.wai}{ps.zhengDong}","{ts.cangKu}{ts.chuang} {ps.wai}{ps.zhengDong}","{ts.fang}{ts.chuang}{ts.dui} {ps.wai}{ps.zhengDong}","{ts.zhan}{ts.men}{ts.ce} {ps.wai}{ps.zhengDong}","{ts.dui}{ts.mo}{ts.lu} {ps.wai}{ps.dongNan}","{ts.chu}{ts.zao}{ts.men} {ps.wai}{ps.dongNan}","{ts.cangKu}{ts.xi} {ps.wai}{ps.dongNan}","{ts.zhan}{ts.fang}{ts.chuang} {ps.wai}{ps.dongNan}"],s.POSITION_TAI_MONTH=["{ts.zhan}{ts.fang}{ts.chuang}","{ts.zhan}{ts.hu}{ts.win}","{ts.zhan}{ts.men}{ts.tang}","{ts.zhan}{ts.chu}{ts.zao}","{ts.zhan}{ts.fang}{ts.chuang}","{ts.zhan}{ts.chuang}{ts.cang}","{ts.zhan}{ts.dui}{ts.mo}","{ts.zhan}{ts.ce}{ts.hu}","{ts.zhan}{ts.men}{ts.fang}","{ts.zhan}{ts.fang}{ts.chuang}","{ts.zhan}{ts.zao}{ts.lu}","{ts.zhan}{ts.fang}{ts.chuang}"],s.ZHI=["","{dz.zi}","{dz.chou}","{dz.yin}","{dz.mao}","{dz.chen}","{dz.si}","{dz.wu}","{dz.wei}","{dz.shen}","{dz.you}","{dz.xu}","{dz.hai}"],s.ZHI_XING=["","{zx.jian}","{zx.chu}","{zx.man}","{zx.ping}","{zx.ding}","{zx.zhi}","{zx.po}","{zx.wei}","{zx.cheng}","{zx.shou}","{zx.kai}","{zx.bi}"],s.JIA_ZI=["{jz.jiaZi}","{jz.yiChou}","{jz.bingYin}","{jz.dingMao}","{jz.wuChen}","{jz.jiSi}","{jz.gengWu}","{jz.xinWei}","{jz.renShen}","{jz.guiYou}","{jz.jiaXu}","{jz.yiHai}","{jz.bingZi}","{jz.dingChou}","{jz.wuYin}","{jz.jiMao}","{jz.gengChen}","{jz.xinSi}","{jz.renWu}","{jz.guiWei}","{jz.jiaShen}","{jz.yiYou}","{jz.bingXu}","{jz.dingHai}","{jz.wuZi}","{jz.jiChou}","{jz.gengYin}","{jz.xinMao}","{jz.renChen}","{jz.guiSi}","{jz.jiaWu}","{jz.yiWei}","{jz.bingShen}","{jz.dingYou}","{jz.wuXu}","{jz.jiHai}","{jz.gengZi}","{jz.xinChou}","{jz.renYin}","{jz.guiMao}","{jz.jiaChen}","{jz.yiSi}","{jz.bingWu}","{jz.dingWei}","{jz.wuShen}","{jz.jiYou}","{jz.gengXu}","{jz.xinHai}","{jz.renZi}","{jz.guiChou}","{jz.jiaYin}","{jz.yiMao}","{jz.bingChen}","{jz.dingSi}","{jz.wuWu}","{jz.jiWei}","{jz.gengShen}","{jz.xinYou}","{jz.renXu}","{jz.guiHai}"],s.CHANG_SHENG_OFFSET={"{tg.jia}":1,"{tg.bing}":10,"{tg.wu}":10,"{tg.geng}":7,"{tg.ren}":4,"{tg.yi}":6,"{tg.ding}":9,"{tg.ji}":9,"{tg.xin}":0,"{tg.gui}":3},s.TIAN_SHEN=["","{sn.qingLong}","{sn.mingTang}","{sn.tianXing}","{sn.zhuQue}","{sn.jinKui}","{sn.tianDe}","{sn.baiHu}","{sn.yuTang}","{sn.tianLao}","{sn.xuanWu}","{sn.siMing}","{sn.gouChen}"],s.ZHI_TIAN_SHEN_OFFSET={"{dz.zi}":4,"{dz.chou}":2,"{dz.yin}":0,"{dz.mao}":10,"{dz.chen}":8,"{dz.si}":6,"{dz.wu}":4,"{dz.wei}":2,"{dz.shen}":0,"{dz.you}":10,"{dz.xu}":8,"{dz.hai}":6},s.TIAN_SHEN_TYPE={"{sn.qingLong}":"{s.huangDao}","{sn.mingTang}":"{s.huangDao}","{sn.jinKui}":"{s.huangDao}","{sn.tianDe}":"{s.huangDao}","{sn.yuTang}":"{s.huangDao}","{sn.siMing}":"{s.huangDao}","{sn.tianXing}":"{s.heiDao}","{sn.zhuQue}":"{s.heiDao}","{sn.baiHu}":"{s.heiDao}","{sn.tianLao}":"{s.heiDao}","{sn.xuanWu}":"{s.heiDao}","{sn.gouChen}":"{s.heiDao}"},s.TIAN_SHEN_TYPE_LUCK={"{s.huangDao}":"{s.goodLuck}","{s.heiDao}":"{s.badLuck}"},s.LU={"{tg.jia}":"{dz.yin}","{tg.yi}":"{dz.mao}","{tg.bing}":"{dz.si}","{tg.ding}":"{dz.wu}","{tg.wu}":"{dz.si}","{tg.ji}":"{dz.wu}","{tg.geng}":"{dz.shen}","{tg.xin}":"{dz.you}","{tg.ren}":"{dz.hai}","{tg.gui}":"{dz.zi}","{dz.yin}":"{tg.jia}","{dz.mao}":"{tg.yi}","{dz.si}":"{tg.bing},{tg.wu}","{dz.wu}":"{tg.ding},{tg.ji}","{dz.shen}":"{tg.geng}","{dz.you}":"{tg.xin}","{dz.hai}":"{tg.ren}","{dz.zi}":"{tg.gui}"},s.PENGZU_GAN=["","{tg.jia}\u4E0D\u5F00\u4ED3\u8D22\u7269\u8017\u6563","{tg.yi}\u4E0D\u683D\u690D\u5343\u682A\u4E0D\u957F","{tg.bing}\u4E0D\u4FEE\u7076\u5FC5\u89C1\u707E\u6B83","{tg.ding}\u4E0D\u5243\u5934\u5934\u5FC5\u751F\u75AE","{tg.wu}\u4E0D\u53D7\u7530\u7530\u4E3B\u4E0D\u7965","{tg.ji}\u4E0D\u7834\u5238\u4E8C\u6BD4\u5E76\u4EA1","{tg.geng}\u4E0D\u7ECF\u7EDC\u7EC7\u673A\u865A\u5F20","{tg.xin}\u4E0D\u5408\u9171\u4E3B\u4EBA\u4E0D\u5C1D","{tg.ren}\u4E0D\u6CF1\u6C34\u66F4\u96BE\u63D0\u9632","{tg.gui}\u4E0D\u8BCD\u8BBC\u7406\u5F31\u654C\u5F3A"],s.PENGZU_ZHI=["","{dz.zi}\u4E0D\u95EE\u535C\u81EA\u60F9\u7978\u6B83","{dz.chou}\u4E0D\u51A0\u5E26\u4E3B\u4E0D\u8FD8\u4E61","{dz.yin}\u4E0D\u796D\u7940\u795E\u9B3C\u4E0D\u5C1D","{dz.mao}\u4E0D\u7A7F\u4E95\u6C34\u6CC9\u4E0D\u9999","{dz.chen}\u4E0D\u54ED\u6CE3\u5FC5\u4E3B\u91CD\u4E27","{dz.si}\u4E0D\u8FDC\u884C\u8D22\u7269\u4F0F\u85CF","{dz.wu}\u4E0D\u82EB\u76D6\u5C4B\u4E3B\u66F4\u5F20","{dz.wei}\u4E0D\u670D\u836F\u6BD2\u6C14\u5165\u80A0","{dz.shen}\u4E0D\u5B89\u5E8A\u9B3C\u795F\u5165\u623F","{dz.you}\u4E0D\u4F1A\u5BA2\u9189\u5750\u98A0\u72C2","{dz.xu}\u4E0D\u5403\u72AC\u4F5C\u602A\u4E0A\u5E8A","{dz.hai}\u4E0D\u5AC1\u5A36\u4E0D\u5229\u65B0\u90CE"],s.NUMBER=["{n.zero}","{n.one}","{n.two}","{n.three}","{n.four}","{n.five}","{n.six}","{n.seven}","{n.eight}","{n.nine}","{n.ten}","{n.eleven}","{n.twelve}"],s.MONTH=["","{m.one}","{m.two}","{m.three}","{m.four}","{m.five}","{m.six}","{m.seven}","{m.eight}","{m.nine}","{m.ten}","{m.eleven}","{m.twelve}"],s.SEASON=["","{od.first}{sz.chun}","{od.second}{sz.chun}","{od.third}{sz.chun}","{od.first}{sz.xia}","{od.second}{sz.xia}","{od.third}{sz.xia}","{od.first}{sz.qiu}","{od.second}{sz.qiu}","{od.third}{sz.qiu}","{od.first}{sz.dong}","{od.second}{sz.dong}","{od.third}{sz.dong}"],s.SHENGXIAO=["","{sx.rat}","{sx.ox}","{sx.tiger}","{sx.rabbit}","{sx.dragon}","{sx.snake}","{sx.horse}","{sx.goat}","{sx.monkey}","{sx.rooster}","{sx.dog}","{sx.pig}"],s.DAY=["","{d.one}","{d.two}","{d.three}","{d.four}","{d.five}","{d.six}","{d.seven}","{d.eight}","{d.nine}","{d.ten}","{d.eleven}","{d.twelve}","{d.thirteen}","{d.fourteen}","{d.fifteen}","{d.sixteen}","{d.seventeen}","{d.eighteen}","{d.nighteen}","{d.twenty}","{d.twentyOne}","{d.twentyTwo}","{d.twentyThree}","{d.twentyFour}","{d.twentyFive}","{d.twentySix}","{d.twentySeven}","{d.twentyEight}","{d.twentyNine}","{d.thirty}"],s.YUE_XIANG=["","{yx.shuo}","{yx.jiShuo}","{yx.eMeiXin}","{yx.eMeiXin}","{yx.eMei}","{yx.xi}","{yx.shangXian}","{yx.shangXian}","{yx.jiuYe}","{yx.night}","{yx.night}","{yx.night}","{yx.jianYingTu}","{yx.xiaoWang}","{yx.wang}","{yx.jiWang}","{yx.liDai}","{yx.juDai}","{yx.qinDai}","{yx.gengDai}","{yx.jianKuiTu}","{yx.xiaXian}","{yx.xiaXian}","{yx.youMing}","{yx.youMing}","{yx.eMeiCan}","{yx.eMeiCan}","{yx.can}","{yx.xiao}","{yx.hui}"],s.XIU={"{dz.shen}1":"{xx.bi}","{dz.shen}2":"{xx.yi}","{dz.shen}3":"{xx.ji}","{dz.shen}4":"{xx.kui}","{dz.shen}5":"{xx.gui}","{dz.shen}6":"{xx.di}","{dz.shen}0":"{xx.xu}","{dz.zi}1":"{xx.bi}","{dz.zi}2":"{xx.yi}","{dz.zi}3":"{xx.ji}","{dz.zi}4":"{xx.kui}","{dz.zi}5":"{xx.gui}","{dz.zi}6":"{xx.di}","{dz.zi}0":"{xx.xu}","{dz.chen}1":"{xx.bi}","{dz.chen}2":"{xx.yi}","{dz.chen}3":"{xx.ji}","{dz.chen}4":"{xx.kui}","{dz.chen}5":"{xx.gui}","{dz.chen}6":"{xx.di}","{dz.chen}0":"{xx.xu}","{dz.si}1":"{xx.wei}","{dz.si}2":"{xx.zi}","{dz.si}3":"{xx.zhen}","{dz.si}4":"{xx.dou}","{dz.si}5":"{xx.lou}","{dz.si}6":"{xx.liu}","{dz.si}0":"{xx.fang}","{dz.you}1":"{xx.wei}","{dz.you}2":"{xx.zi}","{dz.you}3":"{xx.zhen}","{dz.you}4":"{xx.dou}","{dz.you}5":"{xx.lou}","{dz.you}6":"{xx.liu}","{dz.you}0":"{xx.fang}","{dz.chou}1":"{xx.wei}","{dz.chou}2":"{xx.zi}","{dz.chou}3":"{xx.zhen}","{dz.chou}4":"{xx.dou}","{dz.chou}5":"{xx.lou}","{dz.chou}6":"{xx.liu}","{dz.chou}0":"{xx.fang}","{dz.yin}1":"{xx.xin}","{dz.yin}2":"{xx.shi}","{dz.yin}3":"{xx.can}","{dz.yin}4":"{xx.jiao}","{dz.yin}5":"{xx.niu}","{dz.yin}6":"{xx.vei}","{dz.yin}0":"{xx.xing}","{dz.wu}1":"{xx.xin}","{dz.wu}2":"{xx.shi}","{dz.wu}3":"{xx.can}","{dz.wu}4":"{xx.jiao}","{dz.wu}5":"{xx.niu}","{dz.wu}6":"{xx.vei}","{dz.wu}0":"{xx.xing}","{dz.xu}1":"{xx.xin}","{dz.xu}2":"{xx.shi}","{dz.xu}3":"{xx.can}","{dz.xu}4":"{xx.jiao}","{dz.xu}5":"{xx.niu}","{dz.xu}6":"{xx.vei}","{dz.xu}0":"{xx.xing}","{dz.hai}1":"{xx.zhang}","{dz.hai}2":"{xx.tail}","{dz.hai}3":"{xx.qiang}","{dz.hai}4":"{xx.jing}","{dz.hai}5":"{xx.kang}","{dz.hai}6":"{xx.nv}","{dz.hai}0":"{xx.mao}","{dz.mao}1":"{xx.zhang}","{dz.mao}2":"{xx.tail}","{dz.mao}3":"{xx.qiang}","{dz.mao}4":"{xx.jing}","{dz.mao}5":"{xx.kang}","{dz.mao}6":"{xx.nv}","{dz.mao}0":"{xx.mao}","{dz.wei}1":"{xx.zhang}","{dz.wei}2":"{xx.tail}","{dz.wei}3":"{xx.qiang}","{dz.wei}4":"{xx.jing}","{dz.wei}5":"{xx.kang}","{dz.wei}6":"{xx.nv}","{dz.wei}0":"{xx.mao}"},s.XIU_LUCK={"{xx.jiao}":"{s.goodLuck}","{xx.kang}":"{s.badLuck}","{xx.di}":"{s.badLuck}","{xx.fang}":"{s.goodLuck}","{xx.xin}":"{s.badLuck}","{xx.tail}":"{s.goodLuck}","{xx.ji}":"{s.goodLuck}","{xx.dou}":"{s.goodLuck}","{xx.niu}":"{s.badLuck}","{xx.nv}":"{s.badLuck}","{xx.xu}":"{s.badLuck}","{xx.wei}":"{s.badLuck}","{xx.shi}":"{s.goodLuck}","{xx.qiang}":"{s.goodLuck}","{xx.kui}":"{s.badLuck}","{xx.lou}":"{s.goodLuck}","{xx.vei}":"{s.goodLuck}","{xx.mao}":"{s.badLuck}","{xx.bi}":"{s.goodLuck}","{xx.zi}":"{s.badLuck}","{xx.can}":"{s.goodLuck}","{xx.jing}":"{s.goodLuck}","{xx.gui}":"{s.badLuck}","{xx.liu}":"{s.badLuck}","{xx.xing}":"{s.badLuck}","{xx.zhang}":"{s.goodLuck}","{xx.yi}":"{s.badLuck}","{xx.zhen}":"{s.goodLuck}"},s.XIU_SONG={"{xx.jiao}":"\u89D2\u661F\u9020\u4F5C\u4E3B\u8363\u660C\uFF0C\u5916\u8FDB\u7530\u8D22\u53CA\u5973\u90CE\uFF0C\u5AC1\u5A36\u5A5A\u59FB\u51FA\u8D35\u5B50\uFF0C\u6587\u4EBA\u53CA\u7B2C\u89C1\u541B\u738B\uFF0C\u60DF\u6709\u57CB\u846C\u4E0D\u53EF\u7528\uFF0C\u4E09\u5E74\u4E4B\u540E\u4E3B\u761F\u75AB\uFF0C\u8D77\u5DE5\u4FEE\u7B51\u575F\u57FA\u5730\uFF0C\u5802\u524D\u7ACB\u89C1\u4E3B\u4EBA\u51F6\u3002","{xx.kang}":"\u4EA2\u661F\u9020\u4F5C\u957F\u623F\u5F53\uFF0C\u5341\u65E5\u4E4B\u4E2D\u4E3B\u6709\u6B83\uFF0C\u7530\u5730\u6D88\u78E8\u5B98\u5931\u804C\uFF0C\u63A5\u8FD0\u5B9A\u662F\u864E\u72FC\u4F24\uFF0C\u5AC1\u5A36\u5A5A\u59FB\u7528\u6B64\u65E5\uFF0C\u513F\u5B59\u65B0\u5987\u5B88\u7A7A\u623F\uFF0C\u57CB\u846C\u82E5\u8FD8\u7528\u6B64\u65E5\uFF0C\u5F53\u65F6\u5BB3\u7978\u4E3B\u91CD\u4F24\u3002","{xx.di}":"\u6C10\u661F\u9020\u4F5C\u4E3B\u707E\u51F6\uFF0C\u8D39\u5C3D\u7530\u56ED\u4ED3\u5E93\u7A7A\uFF0C\u57CB\u846C\u4E0D\u53EF\u7528\u6B64\u65E5\uFF0C\u60AC\u7EF3\u540A\u9888\u7978\u91CD\u91CD\uFF0C\u82E5\u662F\u5A5A\u59FB\u79BB\u522B\u6563\uFF0C\u591C\u62DB\u6D6A\u5B50\u5165\u623F\u4E2D\uFF0C\u884C\u8239\u5FC5\u5B9A\u906D\u6C89\u6CA1\uFF0C\u66F4\u751F\u804B\u54D1\u5B50\u5B59\u7A77\u3002","{xx.fang}":"\u623F\u661F\u9020\u4F5C\u7530\u56ED\u8FDB\uFF0C\u94B1\u8D22\u725B\u9A6C\u904D\u5C71\u5C97\uFF0C\u66F4\u62DB\u5916\u5904\u7530\u5E84\u5B85\uFF0C\u8363\u534E\u5BCC\u8D35\u798F\u7984\u5EB7\uFF0C\u57CB\u846C\u82E5\u7136\u7528\u6B64\u65E5\uFF0C\u9AD8\u5B98\u8FDB\u804C\u62DC\u541B\u738B\uFF0C\u5AC1\u5A36\u5AE6\u5A25\u81F3\u6708\u6BBF\uFF0C\u4E09\u5E74\u62B1\u5B50\u81F3\u671D\u5802\u3002","{xx.xin}":"\u5FC3\u661F\u9020\u4F5C\u5927\u4E3A\u51F6\uFF0C\u66F4\u906D\u5211\u8BBC\u72F1\u56DA\u4E2D\uFF0C\u5FE4\u9006\u5B98\u975E\u5B85\u4EA7\u9000\uFF0C\u57CB\u846C\u5352\u66B4\u6B7B\u76F8\u4ECE\uFF0C\u5A5A\u59FB\u82E5\u662F\u7528\u6B64\u65E5\uFF0C\u5B50\u6B7B\u513F\u4EA1\u6CEA\u6EE1\u80F8\uFF0C\u4E09\u5E74\u4E4B\u5185\u8FDE\u906D\u7978\uFF0C\u4E8B\u4E8B\u6559\u541B\u6CA1\u59CB\u7EC8\u3002","{xx.tail}":"\u5C3E\u661F\u9020\u4F5C\u4E3B\u5929\u6069\uFF0C\u5BCC\u8D35\u8363\u534E\u798F\u7984\u589E\uFF0C\u62DB\u8D22\u8FDB\u5B9D\u5174\u5BB6\u5B85\uFF0C\u548C\u5408\u5A5A\u59FB\u8D35\u5B50\u5B59\uFF0C\u57CB\u846C\u82E5\u80FD\u4F9D\u6B64\u65E5\uFF0C\u7537\u6E05\u5973\u6B63\u5B50\u5B59\u5174\uFF0C\u5F00\u95E8\u653E\u6C34\u62DB\u7530\u5B85\uFF0C\u4EE3\u4EE3\u516C\u4FAF\u8FDC\u64AD\u540D\u3002","{xx.ji}":"\u7B95\u661F\u9020\u4F5C\u4E3B\u9AD8\u5F3A\uFF0C\u5C81\u5C81\u5E74\u5E74\u5927\u5409\u660C\uFF0C\u57CB\u846C\u4FEE\u575F\u5927\u5409\u5229\uFF0C\u7530\u8695\u725B\u9A6C\u904D\u5C71\u5C97\uFF0C\u5F00\u95E8\u653E\u6C34\u62DB\u7530\u5B85\uFF0C\u7BA7\u6EE1\u91D1\u94F6\u8C37\u6EE1\u4ED3\uFF0C\u798F\u836B\u9AD8\u5B98\u52A0\u7984\u4F4D\uFF0C\u516D\u4EB2\u4E30\u7984\u4E50\u5B89\u5EB7\u3002","{xx.dou}":"\u6597\u661F\u9020\u4F5C\u4E3B\u62DB\u8D22\uFF0C\u6587\u6B66\u5B98\u5458\u4F4D\u9F0E\u53F0\uFF0C\u7530\u5B85\u5BB6\u8D22\u5343\u4E07\u8FDB\uFF0C\u575F\u5802\u4FEE\u7B51\u8D35\u5BCC\u6765\uFF0C\u5F00\u95E8\u653E\u6C34\u62DB\u725B\u9A6C\uFF0C\u65FA\u8695\u7537\u5973\u4E3B\u548C\u8C10\uFF0C\u9047\u6B64\u5409\u5BBF\u6765\u7167\u62A4\uFF0C\u65F6\u652F\u798F\u5E86\u6C38\u65E0\u707E\u3002","{xx.niu}":"\u725B\u661F\u9020\u4F5C\u4E3B\u707E\u5371\uFF0C\u4E5D\u6A2A\u4E09\u707E\u4E0D\u53EF\u63A8\uFF0C\u5BB6\u5B85\u4E0D\u5B89\u4EBA\u53E3\u9000\uFF0C\u7530\u8695\u4E0D\u5229\u4E3B\u4EBA\u8870\uFF0C\u5AC1\u5A36\u5A5A\u59FB\u7686\u81EA\u635F\uFF0C\u91D1\u94F6\u8D22\u8C37\u6E10\u65E0\u4E4B\uFF0C\u82E5\u662F\u5F00\u95E8\u5E76\u653E\u6C34\uFF0C\u725B\u732A\u7F8A\u9A6C\u4EA6\u4F24\u60B2\u3002","{xx.nv}":"\u5973\u661F\u9020\u4F5C\u635F\u5A46\u5A18\uFF0C\u5144\u5F1F\u76F8\u5ACC\u4F3C\u864E\u72FC\uFF0C\u57CB\u846C\u751F\u707E\u9022\u9B3C\u602A\uFF0C\u98A0\u90AA\u75BE\u75C5\u4E3B\u761F\u60F6\uFF0C\u4E3A\u4E8B\u906D\u5B98\u8D22\u5931\u6563\uFF0C\u6CFB\u5229\u7559\u8FDE\u4E0D\u53EF\u5F53\uFF0C\u5F00\u95E8\u653E\u6C34\u7528\u6B64\u65E5\uFF0C\u5168\u5BB6\u8D22\u6563\u4E3B\u79BB\u4E61\u3002","{xx.xu}":"\u865A\u661F\u9020\u4F5C\u4E3B\u707E\u6B83\uFF0C\u7537\u5973\u5B64\u7720\u4E0D\u4E00\u53CC\uFF0C\u5185\u4E71\u98CE\u58F0\u65E0\u793C\u8282\uFF0C\u513F\u5B59\u5AB3\u5987\u4F34\u4EBA\u5E8A\uFF0C\u5F00\u95E8\u653E\u6C34\u906D\u707E\u7978\uFF0C\u864E\u54AC\u86C7\u4F24\u53C8\u5352\u4EA1\uFF0C\u4E09\u4E09\u4E94\u4E94\u8FDE\u5E74\u75C5\uFF0C\u5BB6\u7834\u4EBA\u4EA1\u4E0D\u53EF\u5F53\u3002","{xx.wei}":"\u5371\u661F\u4E0D\u53EF\u9020\u9AD8\u697C\uFF0C\u81EA\u906D\u5211\u540A\u89C1\u8840\u5149\uFF0C\u4E09\u5E74\u5B69\u5B50\u906D\u6C34\u5384\uFF0C\u540E\u751F\u51FA\u5916\u6C38\u4E0D\u8FD8\uFF0C\u57CB\u846C\u82E5\u8FD8\u9022\u6B64\u65E5\uFF0C\u5468\u5E74\u767E\u65E5\u53D6\u9AD8\u5802\uFF0C\u4E09\u5E74\u4E24\u8F7D\u4E00\u60B2\u4F24\uFF0C\u5F00\u95E8\u653E\u6C34\u5230\u5B98\u5802\u3002","{xx.shi}":"\u5BA4\u661F\u4FEE\u9020\u8FDB\u7530\u725B\uFF0C\u513F\u5B59\u4EE3\u4EE3\u8FD1\u738B\u4FAF\uFF0C\u5BB6\u8D35\u8363\u534E\u5929\u4E0A\u81F3\uFF0C\u5BFF\u5982\u5F6D\u7956\u516B\u5343\u79CB\uFF0C\u5F00\u95E8\u653E\u6C34\u62DB\u8D22\u5E1B\uFF0C\u548C\u5408\u5A5A\u59FB\u751F\u8D35\u513F\uFF0C\u57CB\u846C\u82E5\u80FD\u4F9D\u6B64\u65E5\uFF0C\u95E8\u5EAD\u5174\u65FA\u798F\u65E0\u4F11\u3002","{xx.qiang}":"\u58C1\u661F\u9020\u4F5C\u4E3B\u589E\u8D22\uFF0C\u4E1D\u8695\u5927\u719F\u798F\u6ED4\u5929\uFF0C\u5974\u5A62\u81EA\u6765\u4EBA\u53E3\u8FDB\uFF0C\u5F00\u95E8\u653E\u6C34\u51FA\u82F1\u8D24\uFF0C\u57CB\u846C\u62DB\u8D22\u5B98\u54C1\u8FDB\uFF0C\u5BB6\u4E2D\u8BF8\u4E8B\u4E50\u9676\u7136\uFF0C\u5A5A\u59FB\u5409\u5229\u4E3B\u8D35\u5B50\uFF0C\u65E9\u64AD\u540D\u8A89\u8457\u7956\u97AD\u3002","{xx.kui}":"\u594E\u661F\u9020\u4F5C\u5F97\u796F\u7965\uFF0C\u5BB6\u5185\u8363\u548C\u5927\u5409\u660C\uFF0C\u82E5\u662F\u57CB\u846C\u9634\u5352\u6B7B\uFF0C\u5F53\u5E74\u5B9A\u4E3B\u4E24\u4E09\u4F24\uFF0C\u770B\u770B\u519B\u4EE4\u5211\u4F24\u5230\uFF0C\u91CD\u91CD\u5B98\u4E8B\u4E3B\u761F\u60F6\uFF0C\u5F00\u95E8\u653E\u6C34\u906D\u707E\u7978\uFF0C\u4E09\u5E74\u4E24\u6B21\u635F\u513F\u90CE\u3002","{xx.lou}":"\u5A04\u661F\u4FEE\u9020\u8D77\u95E8\u5EAD\uFF0C\u8D22\u65FA\u5BB6\u548C\u4E8B\u4E8B\u5174\uFF0C\u5916\u8FDB\u94B1\u8D22\u767E\u65E5\u8FDB\uFF0C\u4E00\u5BB6\u5144\u5F1F\u64AD\u9AD8\u540D\uFF0C\u5A5A\u59FB\u8FDB\u76CA\u751F\u8D35\u5B50\uFF0C\u7389\u5E1B\u91D1\u94F6\u7BB1\u6EE1\u76C8\uFF0C\u653E\u6C34\u5F00\u95E8\u7686\u5409\u5229\uFF0C\u7537\u8363\u5973\u8D35\u5BFF\u5EB7\u5B81\u3002","{xx.vei}":"\u80C3\u661F\u9020\u4F5C\u4E8B\u5982\u4F55\uFF0C\u5BB6\u8D35\u8363\u534E\u559C\u6C14\u591A\uFF0C\u57CB\u846C\u8D35\u4E34\u5B98\u7984\u4F4D\uFF0C\u592B\u5987\u9F50\u7709\u6C38\u4FDD\u5EB7\uFF0C\u5A5A\u59FB\u9047\u6B64\u5BB6\u5BCC\u8D35\uFF0C\u4E09\u707E\u4E5D\u7978\u4E0D\u9022\u4ED6\uFF0C\u4ECE\u6B64\u95E8\u524D\u591A\u5409\u5E86\uFF0C\u513F\u5B59\u4EE3\u4EE3\u62DC\u91D1\u9636\u3002","{xx.mao}":"\u6634\u661F\u9020\u4F5C\u8FDB\u7530\u725B\uFF0C\u57CB\u846C\u5B98\u707E\u4E0D\u5F97\u4F11\uFF0C\u91CD\u4E27\u4E8C\u65E5\u4E09\u4EBA\u6B7B\uFF0C\u5C3D\u5356\u7530\u56ED\u4E0D\u8BB0\u589E\uFF0C\u5F00\u95E8\u653E\u6C34\u62DB\u707E\u7978\uFF0C\u4E09\u5C81\u5B69\u513F\u767D\u4E86\u5934\uFF0C\u5A5A\u59FB\u4E0D\u53EF\u9022\u6B64\u65E5\uFF0C\u6B7B\u522B\u751F\u79BB\u662F\u53EF\u6101\u3002","{xx.bi}":"\u6BD5\u661F\u9020\u4F5C\u4E3B\u5149\u524D\uFF0C\u4E70\u5F97\u7530\u56ED\u6709\u4F59\u94B1\uFF0C\u57CB\u846C\u6B64\u65E5\u6DFB\u5B98\u804C\uFF0C\u7530\u8695\u5927\u719F\u6C38\u4E30\u5E74\uFF0C\u5F00\u95E8\u653E\u6C34\u591A\u5409\u5E86\uFF0C\u5408\u5BB6\u4EBA\u53E3\u5F97\u5B89\u7136\uFF0C\u5A5A\u59FB\u82E5\u5F97\u9022\u6B64\u65E5\uFF0C\u751F\u5F97\u5B69\u513F\u798F\u5BFF\u5168\u3002","{xx.zi}":"\u89DC\u661F\u9020\u4F5C\u6709\u5F92\u5211\uFF0C\u4E09\u5E74\u5FC5\u5B9A\u4E3B\u4F36\u4E01\uFF0C\u57CB\u846C\u5352\u6B7B\u591A\u56E0\u6B64\uFF0C\u53D6\u5B9A\u5BC5\u5E74\u4F7F\u6740\u4EBA\uFF0C\u4E09\u4E27\u4E0D\u6B62\u7686\u7531\u6B64\uFF0C\u4E00\u4EBA\u836F\u6BD2\u4E8C\u4EBA\u8EAB\uFF0C\u5BB6\u95E8\u7530\u5730\u7686\u9000\u8D25\uFF0C\u4ED3\u5E93\u91D1\u94F6\u5316\u4F5C\u5C18\u3002","{xx.can}":"\u53C2\u661F\u9020\u4F5C\u65FA\u4EBA\u5BB6\uFF0C\u6587\u661F\u7167\u8000\u5927\u5149\u534E\uFF0C\u53EA\u56E0\u9020\u4F5C\u7530\u8D22\u65FA\uFF0C\u57CB\u846C\u62DB\u75BE\u54ED\u9EC4\u6C99\uFF0C\u5F00\u95E8\u653E\u6C34\u52A0\u5B98\u804C\uFF0C\u623F\u623F\u5B50\u5B59\u89C1\u7530\u52A0\uFF0C\u5A5A\u59FB\u8BB8\u9041\u906D\u5211\u514B\uFF0C\u7537\u5973\u671D\u5F00\u5E55\u843D\u82B1\u3002","{xx.jing}":"\u4E95\u661F\u9020\u4F5C\u65FA\u8695\u7530\uFF0C\u91D1\u699C\u9898\u540D\u7B2C\u4E00\u5149\uFF0C\u57CB\u846C\u987B\u9632\u60CA\u5352\u6B7B\uFF0C\u72C2\u98A0\u98CE\u75BE\u5165\u9EC4\u6CC9\uFF0C\u5F00\u95E8\u653E\u6C34\u62DB\u8D22\u5E1B\uFF0C\u725B\u9A6C\u732A\u7F8A\u65FA\u83AB\u8A00\uFF0C\u8D35\u4EBA\u7530\u5858\u6765\u5165\u5B85\uFF0C\u513F\u5B59\u5174\u65FA\u6709\u4F59\u94B1\u3002","{xx.gui}":"\u9B3C\u661F\u8D77\u9020\u5352\u4EBA\u4EA1\uFF0C\u5802\u524D\u4E0D\u89C1\u4E3B\u4EBA\u90CE\uFF0C\u57CB\u846C\u6B64\u65E5\u5B98\u7984\u81F3\uFF0C\u513F\u5B59\u4EE3\u4EE3\u8FD1\u541B\u738B\uFF0C\u5F00\u95E8\u653E\u6C34\u987B\u4F24\u6B7B\uFF0C\u5AC1\u5A36\u592B\u59BB\u4E0D\u4E45\u957F\uFF0C\u4FEE\u571F\u7B51\u5899\u4F24\u4EA7\u5973\uFF0C\u624B\u6276\u53CC\u5973\u6CEA\u6C6A\u6C6A\u3002","{xx.liu}":"\u67F3\u661F\u9020\u4F5C\u4E3B\u906D\u5B98\uFF0C\u663C\u591C\u5077\u95ED\u4E0D\u6682\u5B89\uFF0C\u57CB\u846C\u761F\u60F6\u591A\u75BE\u75C5\uFF0C\u7530\u56ED\u9000\u5C3D\u5B88\u51AC\u5BD2\uFF0C\u5F00\u95E8\u653E\u6C34\u906D\u804B\u778E\uFF0C\u8170\u9A7C\u80CC\u66F2\u4F3C\u5F13\u5F2F\uFF0C\u66F4\u6709\u68D2\u5211\u5B9C\u8C28\u614E\uFF0C\u5987\u4EBA\u968F\u5BA2\u8D70\u76D8\u6853\u3002","{xx.xing}":"\u661F\u5BBF\u65E5\u597D\u9020\u65B0\u623F\uFF0C\u8FDB\u804C\u52A0\u5B98\u8FD1\u5E1D\u738B\uFF0C\u4E0D\u53EF\u57CB\u846C\u5E76\u653E\u6C34\uFF0C\u51F6\u661F\u4E34\u4F4D\u5973\u4EBA\u4EA1\uFF0C\u751F\u79BB\u6B7B\u522B\u65E0\u5FC3\u604B\uFF0C\u8981\u81EA\u5F52\u4F11\u522B\u5AC1\u90CE\uFF0C\u5B54\u5B50\u4E5D\u66F2\u6B8A\u96BE\u5EA6\uFF0C\u653E\u6C34\u5F00\u95E8\u5929\u547D\u4F24\u3002","{xx.zhang}":"\u5F20\u661F\u65E5\u597D\u9020\u9F99\u8F69\uFF0C\u5E74\u5E74\u5E76\u89C1\u8FDB\u5E84\u7530\uFF0C\u57CB\u846C\u4E0D\u4E45\u5347\u5B98\u804C\uFF0C\u4EE3\u4EE3\u4E3A\u5B98\u8FD1\u5E1D\u524D\uFF0C\u5F00\u95E8\u653E\u6C34\u62DB\u8D22\u5E1B\uFF0C\u5A5A\u59FB\u548C\u5408\u798F\u7EF5\u7EF5\uFF0C\u7530\u8695\u4EBA\u6EE1\u4ED3\u5E93\u6EE1\uFF0C\u767E\u822C\u987A\u610F\u81EA\u5B89\u7136\u3002","{xx.yi}":"\u7FFC\u661F\u4E0D\u5229\u67B6\u9AD8\u5802\uFF0C\u4E09\u5E74\u4E8C\u8F7D\u89C1\u761F\u60F6\uFF0C\u57CB\u846C\u82E5\u8FD8\u9022\u6B64\u65E5\uFF0C\u5B50\u5B59\u5FC5\u5B9A\u8D70\u4ED6\u4E61\uFF0C\u5A5A\u59FB\u6B64\u65E5\u4E0D\u5B9C\u5229\uFF0C\u5F52\u5BB6\u5B9A\u662F\u4E0D\u76F8\u5F53\uFF0C\u5F00\u95E8\u653E\u6C34\u5BB6\u987B\u7834\uFF0C\u5C11\u5973\u604B\u82B1\u8D2A\u5916\u90CE\u3002","{xx.zhen}":"\u8F78\u661F\u4E34\u6C34\u9020\u9F99\u5BAB\uFF0C\u4EE3\u4EE3\u4E3A\u5B98\u53D7\u7687\u5C01\uFF0C\u5BCC\u8D35\u8363\u534E\u589E\u5BFF\u7984\uFF0C\u5E93\u6EE1\u4ED3\u76C8\u81EA\u660C\u9686\uFF0C\u57CB\u846C\u6587\u660C\u6765\u7167\u52A9\uFF0C\u5B85\u820D\u5B89\u5B81\u4E0D\u89C1\u51F6\uFF0C\u66F4\u6709\u4E3A\u5B98\u6CBE\u5E1D\u5BA0\uFF0C\u5A5A\u59FB\u9F99\u5B50\u5165\u9F99\u5BAB\u3002"},s.ZHENG={"{xx.jiao}":"{wx.mu}","{xx.jing}":"{wx.mu}","{xx.kui}":"{wx.mu}","{xx.dou}":"{wx.mu}","{xx.kang}":"{wx.jin}","{xx.gui}":"{wx.jin}","{xx.lou}":"{wx.jin}","{xx.niu}":"{wx.jin}","{xx.di}":"{wx.tu}","{xx.liu}":"{wx.tu}","{xx.vei}":"{wx.tu}","{xx.nv}":"{wx.tu}","{xx.fang}":"{wx.ri}","{xx.xing}":"{wx.ri}","{xx.mao}":"{wx.ri}","{xx.xu}":"{wx.ri}","{xx.xin}":"{wx.yue}","{xx.zhang}":"{wx.yue}","{xx.bi}":"{wx.yue}","{xx.wei}":"{wx.yue}","{xx.tail}":"{wx.huo}","{xx.yi}":"{wx.huo}","{xx.zi}":"{wx.huo}","{xx.shi}":"{wx.huo}","{xx.ji}":"{wx.shui}","{xx.zhen}":"{wx.shui}","{xx.can}":"{wx.shui}","{xx.qiang}":"{wx.shui}"},s.ANIMAL={"{xx.jiao}":"{dw.jiao}","{xx.dou}":"{dw.xie}","{xx.kui}":"{dw.lang}","{xx.jing}":"{dw.han}","{xx.kang}":"{dw.long}","{xx.niu}":"{dw.niu}","{xx.lou}":"{dw.gou}","{xx.gui}":"{dw.yang}","{xx.nv}":"{dw.fu}","{xx.di}":"{dw.he}","{xx.vei}":"{dw.zhi}","{xx.liu}":"{dw.zhang}","{xx.fang}":"{dw.tu}","{xx.xu}":"{dw.shu}","{xx.mao}":"{dw.ji}","{xx.xing}":"{dw.ma}","{xx.xin}":"{dw.huLi}","{xx.wei}":"{dw.yan}","{xx.bi}":"{dw.wu}","{xx.zhang}":"{dw.lu}","{xx.tail}":"{dw.hu}","{xx.shi}":"{dw.zhu}","{xx.zi}":"{dw.hou}","{xx.yi}":"{dw.she}","{xx.ji}":"{dw.bao}","{xx.qiang}":"{dw.xu}","{xx.can}":"{dw.yuan}","{xx.zhen}":"{dw.yin}"},s.GONG={"{xx.jiao}":"{ps.dong}","{xx.jing}":"{ps.nan}","{xx.kui}":"{ps.xi}","{xx.dou}":"{ps.bei}","{xx.kang}":"{ps.dong}","{xx.gui}":"{ps.nan}","{xx.lou}":"{ps.xi}","{xx.niu}":"{ps.bei}","{xx.di}":"{ps.dong}","{xx.liu}":"{ps.nan}","{xx.vei}":"{ps.xi}","{xx.nv}":"{ps.bei}","{xx.fang}":"{ps.dong}","{xx.xing}":"{ps.nan}","{xx.mao}":"{ps.xi}","{xx.xu}":"{ps.bei}","{xx.xin}":"{ps.dong}","{xx.zhang}":"{ps.nan}","{xx.bi}":"{ps.xi}","{xx.wei}":"{ps.bei}","{xx.tail}":"{ps.dong}","{xx.yi}":"{ps.nan}","{xx.zi}":"{ps.xi}","{xx.shi}":"{ps.bei}","{xx.ji}":"{ps.dong}","{xx.zhen}":"{ps.nan}","{xx.can}":"{ps.xi}","{xx.qiang}":"{ps.bei}"},s.SHOU={"{ps.dong}":"{sn.qingLong}","{ps.nan}":"{sn.zhuQue}","{ps.xi}":"{sn.baiHu}","{ps.bei}":"{sn.xuanWu}"},s.FESTIVAL={"1-1":"{jr.chunJie}","1-15":"{jr.yuanXiao}","2-2":"{jr.longTou}","5-5":"{jr.duanWu}","7-7":"{jr.qiXi}","8-15":"{jr.zhongQiu}","9-9":"{jr.chongYang}","12-8":"{jr.laBa}"},s.OTHER_FESTIVAL={"1-4":["\u63A5\u795E\u65E5"],"1-5":["\u9694\u5F00\u65E5"],"1-7":["\u4EBA\u65E5"],"1-8":["\u8C37\u65E5","\u987A\u661F\u8282"],"1-9":["\u5929\u65E5"],"1-10":["\u5730\u65E5"],"1-20":["\u5929\u7A7F\u8282"],"1-25":["\u586B\u4ED3\u8282"],"1-30":["\u6B63\u6708\u6666"],"2-1":["\u4E2D\u548C\u8282"],"2-2":["\u793E\u65E5\u8282"],"3-3":["\u4E0A\u5DF3\u8282"],"5-20":["\u5206\u9F99\u8282"],"5-25":["\u4F1A\u9F99\u8282"],"6-6":["\u5929\u8D36\u8282"],"6-24":["\u89C2\u83B2\u8282"],"6-25":["\u4E94\u8C37\u6BCD\u8282"],"7-15":["\u4E2D\u5143\u8282"],"7-22":["\u8D22\u795E\u8282"],"7-29":["\u5730\u85CF\u8282"],"8-1":["\u5929\u7078\u65E5"],"10-1":["\u5BD2\u8863\u8282"],"10-10":["\u5341\u6210\u8282"],"10-15":["\u4E0B\u5143\u8282"],"12-7":["\u9A71\u50A9\u65E5"],"12-16":["\u5C3E\u7259"],"12-24":["\u796D\u7076\u65E5"]},s.CHONG=["{dz.wu}","{dz.wei}","{dz.shen}","{dz.you}","{dz.xu}","{dz.hai}","{dz.zi}","{dz.chou}","{dz.yin}","{dz.mao}","{dz.chen}","{dz.si}"],s.CHONG_GAN=["{tg.wu}","{tg.ji}","{tg.geng}","{tg.xin}","{tg.ren}","{tg.gui}","{tg.jia}","{tg.yi}","{tg.bing}","{tg.ding}"],s.CHONG_GAN_TIE=["{tg.ji}","{tg.wu}","{tg.xin}","{tg.geng}","{tg.gui}","{tg.ren}","{tg.yi}","{tg.jia}","{tg.ding}","{tg.bing}"],s.CHONG_GAN_4=["{tg.geng}","{tg.xin}","{tg.ren}","{tg.gui}","","","{tg.jia}","{tg.yi}","{tg.bing}","{tg.ding}"],s.HE_GAN_5=["{tg.ji}","{tg.geng}","{tg.xin}","{tg.ren}","{tg.gui}","{tg.jia}","{tg.yi}","{tg.bing}","{tg.ding}","{tg.wu}"],s.HE_ZHI_6=["{dz.chou}","{dz.zi}","{dz.hai}","{dz.xu}","{dz.you}","{dz.shen}","{dz.wei}","{dz.wu}","{dz.si}","{dz.chen}","{dz.mao}","{dz.yin}"],s.SHA={"{dz.zi}":"{ps.nan}","{dz.chou}":"{ps.dong}","{dz.yin}":"{ps.bei}","{dz.mao}":"{ps.xi}","{dz.chen}":"{ps.nan}","{dz.si}":"{ps.dong}","{dz.wu}":"{ps.bei}","{dz.wei}":"{ps.xi}","{dz.shen}":"{ps.nan}","{dz.you}":"{ps.dong}","{dz.xu}":"{ps.bei}","{dz.hai}":"{ps.xi}"},s.POSITION_DESC={"{bg.kan}":"{ps.zhengBei}","{bg.gen}":"{ps.dongBei}","{bg.zhen}":"{ps.zhengDong}","{bg.xun}":"{ps.dongNan}","{bg.li}":"{ps.zhengNan}","{bg.kun}":"{ps.xiNan}","{bg.dui}":"{ps.zhengXi}","{bg.qian}":"{ps.xiBei}","{ps.center}":"{ps.zhong}"},s.NAYIN={"{jz.jiaZi}":"{ny.haiZhong}{wx.jin}","{jz.jiaWu}":"{ny.shaZhong}{wx.jin}","{jz.bingYin}":"{ny.luZhong}{wx.huo}","{jz.bingShen}":"{ny.shanXia}{wx.huo}","{jz.wuChen}":"{ny.daLin}{wx.mu}","{jz.wuXu}":"{ny.pingDi}{wx.mu}","{jz.gengWu}":"{ny.luPang}{wx.tu}","{jz.gengZi}":"{ny.biShang}{wx.tu}","{jz.renShen}":"{ny.jianFeng}{wx.jin}","{jz.renYin}":"{ny.jinBo}{wx.jin}","{jz.jiaXu}":"{ny.shanTou}{wx.huo}","{jz.jiaChen}":"{ny.fuDeng}{wx.huo}","{jz.bingZi}":"{ny.jianXia}{wx.shui}","{jz.bingWu}":"{ny.tianHe}{wx.shui}","{jz.wuYin}":"{ny.chengTou}{wx.tu}","{jz.wuShen}":"{ny.daYi}{wx.tu}","{jz.gengChen}":"{ny.baiLa}{wx.jin}","{jz.gengXu}":"{ny.chaiChuan}{wx.jin}","{jz.renWu}":"{ny.yangLiu}{wx.mu}","{jz.renZi}":"{ny.sangZhe}{wx.mu}","{jz.jiaShen}":"{ny.quanZhong}{wx.shui}","{jz.jiaYin}":"{ny.daXi}{wx.shui}","{jz.bingXu}":"{ny.wuShang}{wx.tu}","{jz.bingChen}":"{ny.shaZhong}{wx.tu}","{jz.wuZi}":"{ny.piLi}{wx.huo}","{jz.wuWu}":"{ny.tianShang}{wx.huo}","{jz.gengYin}":"{ny.songBo}{wx.mu}","{jz.gengShen}":"{ny.shiLiu}{wx.mu}","{jz.renChen}":"{ny.changLiu}{wx.shui}","{jz.renXu}":"{ny.daHai}{wx.shui}","{jz.yiChou}":"{ny.haiZhong}{wx.jin}","{jz.yiWei}":"{ny.shaZhong}{wx.jin}","{jz.dingMao}":"{ny.luZhong}{wx.huo}","{jz.dingYou}":"{ny.shanXia}{wx.huo}","{jz.jiSi}":"{ny.daLin}{wx.mu}","{jz.jiHai}":"{ny.pingDi}{wx.mu}","{jz.xinWei}":"{ny.luPang}{wx.tu}","{jz.xinChou}":"{ny.biShang}{wx.tu}","{jz.guiYou}":"{ny.jianFeng}{wx.jin}","{jz.guiMao}":"{ny.jinBo}{wx.jin}","{jz.yiHai}":"{ny.shanTou}{wx.huo}","{jz.yiSi}":"{ny.fuDeng}{wx.huo}","{jz.dingChou}":"{ny.jianXia}{wx.shui}","{jz.dingWei}":"{ny.tianHe}{wx.shui}","{jz.jiMao}":"{ny.chengTou}{wx.tu}","{jz.jiYou}":"{ny.daYi}{wx.tu}","{jz.xinSi}":"{ny.baiLa}{wx.jin}","{jz.xinHai}":"{ny.chaiChuan}{wx.jin}","{jz.guiWei}":"{ny.yangLiu}{wx.mu}","{jz.guiChou}":"{ny.sangZhe}{wx.mu}","{jz.yiYou}":"{ny.quanZhong}{wx.shui}","{jz.yiMao}":"{ny.daXi}{wx.shui}","{jz.dingHai}":"{ny.wuShang}{wx.tu}","{jz.dingSi}":"{ny.shaZhong}{wx.tu}","{jz.jiChou}":"{ny.piLi}{wx.huo}","{jz.jiWei}":"{ny.tianShang}{wx.huo}","{jz.xinMao}":"{ny.songBo}{wx.mu}","{jz.xinYou}":"{ny.shiLiu}{wx.mu}","{jz.guiSi}":"{ny.changLiu}{wx.shui}","{jz.guiHai}":"{ny.daHai}{wx.shui}"},s.WU_XING_GAN={"{tg.jia}":"{wx.mu}","{tg.yi}":"{wx.mu}","{tg.bing}":"{wx.huo}","{tg.ding}":"{wx.huo}","{tg.wu}":"{wx.tu}","{tg.ji}":"{wx.tu}","{tg.geng}":"{wx.jin}","{tg.xin}":"{wx.jin}","{tg.ren}":"{wx.shui}","{tg.gui}":"{wx.shui}"},s.WU_XING_ZHI={"{dz.yin}":"{wx.mu}","{dz.mao}":"{wx.mu}","{dz.si}":"{wx.huo}","{dz.wu}":"{wx.huo}","{dz.chen}":"{wx.tu}","{dz.chou}":"{wx.tu}","{dz.xu}":"{wx.tu}","{dz.wei}":"{wx.tu}","{dz.shen}":"{wx.jin}","{dz.you}":"{wx.jin}","{dz.hai}":"{wx.shui}","{dz.zi}":"{wx.shui}"},s.SHI_SHEN={"{tg.jia}{tg.jia}":"{ss.biJian}","{tg.jia}{tg.yi}":"{ss.jieCai}","{tg.jia}{tg.bing}":"{ss.shiShen}","{tg.jia}{tg.ding}":"{ss.shangGuan}","{tg.jia}{tg.wu}":"{ss.pianCai}","{tg.jia}{tg.ji}":"{ss.zhengCai}","{tg.jia}{tg.geng}":"{ss.qiSha}","{tg.jia}{tg.xin}":"{ss.zhengGuan}","{tg.jia}{tg.ren}":"{ss.pianYin}","{tg.jia}{tg.gui}":"{ss.zhengYin}","{tg.yi}{tg.yi}":"{ss.biJian}","{tg.yi}{tg.jia}":"{ss.jieCai}","{tg.yi}{tg.ding}":"{ss.shiShen}","{tg.yi}{tg.bing}":"{ss.shangGuan}","{tg.yi}{tg.ji}":"{ss.pianCai}","{tg.yi}{tg.wu}":"{ss.zhengCai}","{tg.yi}{tg.xin}":"{ss.qiSha}","{tg.yi}{tg.geng}":"{ss.zhengGuan}","{tg.yi}{tg.gui}":"{ss.pianYin}","{tg.yi}{tg.ren}":"{ss.zhengYin}","{tg.bing}{tg.bing}":"{ss.biJian}","{tg.bing}{tg.ding}":"{ss.jieCai}","{tg.bing}{tg.wu}":"{ss.shiShen}","{tg.bing}{tg.ji}":"{ss.shangGuan}","{tg.bing}{tg.geng}":"{ss.pianCai}","{tg.bing}{tg.xin}":"{ss.zhengCai}","{tg.bing}{tg.ren}":"{ss.qiSha}","{tg.bing}{tg.gui}":"{ss.zhengGuan}","{tg.bing}{tg.jia}":"{ss.pianYin}","{tg.bing}{tg.yi}":"{ss.zhengYin}","{tg.ding}{tg.ding}":"{ss.biJian}","{tg.ding}{tg.bing}":"{ss.jieCai}","{tg.ding}{tg.ji}":"{ss.shiShen}","{tg.ding}{tg.wu}":"{ss.shangGuan}","{tg.ding}{tg.xin}":"{ss.pianCai}","{tg.ding}{tg.geng}":"{ss.zhengCai}","{tg.ding}{tg.gui}":"{ss.qiSha}","{tg.ding}{tg.ren}":"{ss.zhengGuan}","{tg.ding}{tg.yi}":"{ss.pianYin}","{tg.ding}{tg.jia}":"{ss.zhengYin}","{tg.wu}{tg.wu}":"{ss.biJian}","{tg.wu}{tg.ji}":"{ss.jieCai}","{tg.wu}{tg.geng}":"{ss.shiShen}","{tg.wu}{tg.xin}":"{ss.shangGuan}","{tg.wu}{tg.ren}":"{ss.pianCai}","{tg.wu}{tg.gui}":"{ss.zhengCai}","{tg.wu}{tg.jia}":"{ss.qiSha}","{tg.wu}{tg.yi}":"{ss.zhengGuan}","{tg.wu}{tg.bing}":"{ss.pianYin}","{tg.wu}{tg.ding}":"{ss.zhengYin}","{tg.ji}{tg.ji}":"{ss.biJian}","{tg.ji}{tg.wu}":"{ss.jieCai}","{tg.ji}{tg.xin}":"{ss.shiShen}","{tg.ji}{tg.geng}":"{ss.shangGuan}","{tg.ji}{tg.gui}":"{ss.pianCai}","{tg.ji}{tg.ren}":"{ss.zhengCai}","{tg.ji}{tg.yi}":"{ss.qiSha}","{tg.ji}{tg.jia}":"{ss.zhengGuan}","{tg.ji}{tg.ding}":"{ss.pianYin}","{tg.ji}{tg.bing}":"{ss.zhengYin}","{tg.geng}{tg.geng}":"{ss.biJian}","{tg.geng}{tg.xin}":"{ss.jieCai}","{tg.geng}{tg.ren}":"{ss.shiShen}","{tg.geng}{tg.gui}":"{ss.shangGuan}","{tg.geng}{tg.jia}":"{ss.pianCai}","{tg.geng}{tg.yi}":"{ss.zhengCai}","{tg.geng}{tg.bing}":"{ss.qiSha}","{tg.geng}{tg.ding}":"{ss.zhengGuan}","{tg.geng}{tg.wu}":"{ss.pianYin}","{tg.geng}{tg.ji}":"{ss.zhengYin}","{tg.xin}{tg.xin}":"{ss.biJian}","{tg.xin}{tg.geng}":"{ss.jieCai}","{tg.xin}{tg.gui}":"{ss.shiShen}","{tg.xin}{tg.ren}":"{ss.shangGuan}","{tg.xin}{tg.yi}":"{ss.pianCai}","{tg.xin}{tg.jia}":"{ss.zhengCai}","{tg.xin}{tg.ding}":"{ss.qiSha}","{tg.xin}{tg.bing}":"{ss.zhengGuan}","{tg.xin}{tg.ji}":"{ss.pianYin}","{tg.xin}{tg.wu}":"{ss.zhengYin}","{tg.ren}{tg.ren}":"{ss.biJian}","{tg.ren}{tg.gui}":"{ss.jieCai}","{tg.ren}{tg.jia}":"{ss.shiShen}","{tg.ren}{tg.yi}":"{ss.shangGuan}","{tg.ren}{tg.bing}":"{ss.pianCai}","{tg.ren}{tg.ding}":"{ss.zhengCai}","{tg.ren}{tg.wu}":"{ss.qiSha}","{tg.ren}{tg.ji}":"{ss.zhengGuan}","{tg.ren}{tg.geng}":"{ss.pianYin}","{tg.ren}{tg.xin}":"{ss.zhengYin}","{tg.gui}{tg.gui}":"{ss.biJian}","{tg.gui}{tg.ren}":"{ss.jieCai}","{tg.gui}{tg.yi}":"{ss.shiShen}","{tg.gui}{tg.jia}":"{ss.shangGuan}","{tg.gui}{tg.ding}":"{ss.pianCai}","{tg.gui}{tg.bing}":"{ss.zhengCai}","{tg.gui}{tg.ji}":"{ss.qiSha}","{tg.gui}{tg.wu}":"{ss.zhengGuan}","{tg.gui}{tg.xin}":"{ss.pianYin}","{tg.gui}{tg.geng}":"{ss.zhengYin}"},s.ZHI_HIDE_GAN={"{dz.zi}":["{tg.gui}"],"{dz.chou}":["{tg.ji}","{tg.gui}","{tg.xin}"],"{dz.yin}":["{tg.jia}","{tg.bing}","{tg.wu}"],"{dz.mao}":["{tg.yi}"],"{dz.chen}":["{tg.wu}","{tg.yi}","{tg.gui}"],"{dz.si}":["{tg.bing}","{tg.geng}","{tg.wu}"],"{dz.wu}":["{tg.ding}","{tg.ji}"],"{dz.wei}":["{tg.ji}","{tg.ding}","{tg.yi}"],"{dz.shen}":["{tg.geng}","{tg.ren}","{tg.wu}"],"{dz.you}":["{tg.xin}"],"{dz.xu}":["{tg.wu}","{tg.xin}","{tg.ding}"],"{dz.hai}":["{tg.ren}","{tg.jia}"]},s.YI_JI=["{yj.jiSi}","{yj.qiFu}","{yj.qiuSi}","{yj.kaiGuang}","{yj.suHui}","{yj.qiJiao}","{yj.zhaiJiao}","{yj.muYu}","{yj.chouShen}","{yj.zaoMiao}","{yj.siZhao}","{yj.fenXiang}","{yj.xieTu}","{yj.chuHuo}","{yj.diaoKe}","{yj.jiaQu}","{yj.DingHun}","{yj.naCai}","{yj.wenMing}","{yj.naXu}","{yj.guiNing}","{yj.anChuang}","{yj.heZhang}","{yj.guanJi}","{yj.dingMeng}","{yj.jinRenKou}","{yj.caiYi}","{yj.wanMian}","{yj.kaiRong}","{yj.xiuFen}","{yj.qiZuan}","{yj.poTu}","{yj.anZang}","{yj.liBei}","{yj.chengFu}","{yj.chuFu}","{yj.kaiShengFen}","{yj.heShouMu}","{yj.ruLian}","{yj.yiJiu}","{yj.puDu}","{yj.ruZhai}","{yj.anXiang}","{yj.anMen}","{yj.xiuZao}","{yj.qiJi}","{yj.dongTu}","{yj.shangLiang}","{yj.shuZhu}","{yj.kaiJing}","{yj.zuoBei}","{yj.chaiXie}","{yj.poWu}","{yj.huaiYuan}","{yj.buYuan}","{yj.faMuZuoLiang}","{yj.zuoZhao}","{yj.jieChu}","{yj.kaiZhuYan}","{yj.chuanPing}","{yj.gaiWuHeJi}","{yj.kaiCe}","{yj.zaoCang}","{yj.saiXue}","{yj.pingZhi}","{yj.zaoQiao}","{yj.zuoCe}","{yj.zhuDi}","{yj.kaiChi}","{yj.faMu}","{yj.kaiQu}","{yj.jueJing}","{yj.saoShe}","{yj.fangShui}","{yj.zaoWu}","{yj.heJi}","{yj.zaoChuChou}","{yj.xiuMen}","{yj.dingSang}","{yj.zuoLiang}","{yj.xiuShi}","{yj.jiaMa}","{yj.kaiShi}","{yj.guaBian}","{yj.naChai}","{yj.qiuCai}","{yj.kaiCang}","{yj.maiChe}","{yj.zhiChan}","{yj.guYong}","{yj.chuHuoCai}","{yj.anJiXie}","{yj.zaoCheQi}","{yj.jingLuo}","{yj.yunNiang}","{yj.zuoRan}","{yj.guZhu}","{yj.zaoChuan}","{yj.geMi}","{yj.zaiZhong}","{yj.quYu}","{yj.jieWang}","{yj.muYang}","{yj.anDuiWei}","{yj.xiYi}","{yj.ruXue}","{yj.liFa}","{yj.tanBing}","{yj.jianGui}","{yj.chengChuan}","{yj.duShui}","{yj.zhenJiu}","{yj.chuXing}","{yj.yiXi}","{yj.fenJu}","{yj.TiTou}","{yj.zhengShou}","{yj.naChu}","{yj.buZhuo}","{yj.tianLie}","{yj.jiaoNiuMa}","{yj.huiQinYou}","{yj.fuRen}","{yj.qiuYi}","{yj.zhiBing}","{yj.ciSong}","{yj.qiJiDongTu}","{yj.poWuHuaiYuan}","{yj.gaiWu}","{yj.zaoCangKu}","{yj.liQuanJiaoYi}","{yj.jiaoYi}","{yj.liQuan}","{yj.anJi}","{yj.huiYou}","{yj.qiuYiLiaoBing}","{yj.zhuShi}","{yj.yuShi}","{yj.xingSang}","{yj.duanYi}","{yj.guiXiu}","{s.none}"],s.DAY_YI_JI="30=192531010D:838454151A4C200C1E23221D212726,030F522E1F00=2430000C18:8319000776262322200C1E1D,06292C2E1F04=32020E1A26:7917155B0001025D,0F522E38201D=162E3A0A22:790F181113332C2E2D302F1554,7001203810=0E1A263202:79026A17657603,522E201F05=0D19250131:7911192C2E302F00030401060F1571292A75,707C20522F=0C18243000:4F2C2E2B383F443D433663,0F01478A20151D=0E1A320226:3840,0001202B892F=14202C3808:3807504089,8829=0E1A263202:383940,6370018A75202B454F6605=32020E1A26:38394089,0001202B22=16223A0A2E:384C,8A2020=2B3707131F:2C2E5B000739337C38802D44484C2425201F1E272621,5229701535=121E2A3606:2C2E2D2B156343364C,0F4729710D708A20036A1904=0D19250131:5040262789,0F7129033B=202C380814:5040000738,0F7D7C584F012063452B35=1A2632020E:50400089,8813=1A2632020E:69687011180F791966762627201E,0352292E8034=182430000C:291503000D332E53261F2075,0F5238584F450B=000C182430:297170192C2E2D2F2B3E363F4C,0F52156320010347200B=131F2B3707:297115030102195283840D332C2E,0F1F5863201D8A02=222E3A0A16:261F1E20232289,52290058363F32=16222E3A0A:261F201E232289,8D39=0D19310125:262322271E201D21,52450F4F09=0D19253101:262322271E202189,1F4526=16222E3A0A:262322271F1E20,712906=0F1B273303:17262322274050,80387C6B2C=0915212D39:1707702C2E71291F20,0F52000106111D15=16222E3A0A:170007386A7448363F261F1E,030F79636F2026=030F1B2733:1784832C2E5B26201F,0F010D2913=182430000C:175447440D15838477656A49,2B2E1F8A202228=101C283404:70504C7889,8803=0D19250131:700F181126151E20001A7919,8D2F=0915212D39:705283845B0D2F71,0F202E4106=3606121E2A:70786289,06802E1F23=1824000C30:70076A363F,292017=202C380814:700718111A302F717566,0F2B2E2026=3B0B17232F:70545283842E71291A7933192A5D5A5040,090C384F45208A1D6B38=212D390915:7039170F45513A2C2E7129242526271F201D,00010352153A=15212D3909:703911170E2C2E2D2F4B15712952633D,092B8A2027=010D192531:702D155483840F63262720,53292F017D4F38442B2E1F4717=16222E3A0A:705C4C39171A4F0E7971295B5248,0F2E1F1D37=1A2632020E:2E260F27201F,523815292F1A22=0E1A260232:64262322271F2021,0F2F293822=2F3B0B1723:161A0F1526271F4C,586103473818=2430000C18:161A7889,292E1F0F386131=17232F3B0B:04795B3F651A5D,0F5201062016=14202C3808:04170F79195D1A637566363F76,01522E8A2039=132B37071F:0470170F191A134C8384662426232227201E,8D08=0D19253101:040370181123220F1326271E2021,29153B=0D19310125:040307177938494C,0F26207017=0E2632021A:0403010218111A17332C2E2D2B15713E6575,45382064291D=142C380820:04033918110F0D2C2E7129332D2B72528384547566,8D1C=1830000C24:040318111A17332C15290D200C7A,4745063835=0F2733031B:040318111A16175B795452848315302F6563395D,387029202E=14202C3808:04031975363F6366,0F5401202C5283842E2F1E=0E1A320226:0403080618111A16332E2F152A09537919702C5445490D75072B,8063203820=182430000C:04067033392C7161262322271E1D210C,8D2F=101C283404:3F4889,881C=2733030F1B:3F74397677658988,0F3847201D=293505111D:3F8B657789,0F2029702E7D35=111D293505:3F8B6589,1F200A=020E1A2632:3F656477,0F2B71292005=111D290535:3F6589,8810=0F1B273303:3F88,2B38200F1C=293505111D:0F83843D363F776424,15462F2C52032971152A=0F1B273303:0F17795B54838458,52807C3811=121E2A3606:0F172C2E387129363F7566512D4E4461,01034752203A=172F3B0B23:0F171511793F76584C,0347200C1D20=2D39091521:0F175B3975660745514F2B4825201E211D,010352292E2E=0F1B273303:0F170070792C2E261F,040341232228=05111D2935:0F1700707129385C363F3D1F1E232226,80412B202F14=14202C3808:0F17000728705448757A,522E1F15562F05=30000C1824:0F17000102061979454F3A15477677,241F8A2021=2F3B0B1723:0F17000102060370392E52838453331F,452F2C266A79292B203810=0C18243000:0F170001020E032A70692C2E302F802D2B0D7129474C201F2322,5211183809615D34=1A2632020E:0F171170792F5B1566770001032C2B802D,29387C207134=14202C3808:0F0D33000103452E528384297115752620,63386F7014=15212D3909:0F7045332C2E71201F1D21,4701155229530327=101C283404:0F70161715232238838426271F20,7D035219=121E2A3606:0F705B0004037C5D15653F1F26,522B473809=131F2B0737:0F705215261E20,012E1F25=182430000C:0F707B7C00012F75,52201B=2531010D19:0F706A151E201D528384544466,47010C2E292F2C3820=14202C3808:0F707500261E20,382E1F05=3606121E2A:0F161A17452F0D33712C2E2B5443633F,150170208A0327=0E1A263202:0F150370002E0D3979528384532971331F1E20,477D0D=06121E2A36:0F5B8370000102060403161A494447,386A418A201A=17232F3B0B:0F03700D332C2E2971152F52838463,01004547380C26=101C283404:0F03700D33195284835329711563,01260038206B0E=131F2B3707:0F03706A4F0D332C528384532E29711563,450075000F=131F2B3707:0F0370010239332E2C19528384532971156375262720,8D18=17232F3B0B:0F0370390D332C192E2971637547202322,581528=0E1A263202:0F0302791566046F,29710D722A38528384202E4530=0E1A263202:0F030102392E15634447001F1E,293845200D707538=1E2A360612:0F0300017039712952542D2C302F80380D2A363F3349483E616320,1118150C1F2E20=33030F1B27:0F03000102700D29713963451F0C20,528338542F15806128=121E2A3606:0F030001027039452971150D332C2F6327,2052838403=2C38081420:0F030001022A0D3945297115528384637020,476A382E1F4426=010D192531:0F03390D332C1929711563261D2E2322,382000521118750C706B15=131F2B3707:0F033915666A52261E272048,382E2F6329712C0114=0D19253101:0F52838403700D332C29712E1F27201E2322,1545017505=131F2B3707:0F528400012E7129,092026=3707131F2B:0F528471295B795D2B155333565A446375661F201E272621,00016B0C4113=14202C3808:0F280001363F8B4326232220,2E1F47032F7D35=16222E3A0A:0F0211195465756679,2F384570202B6A10=15212D3909:0F0102700D332C2E2F0319528384531529716345261F2322,8D32=101C283404:0F0102037039330D5284832971152E1F0C,0026206B37=16222E3A0A:0F003854,20521D2106=020E1A2632:0F00175058,5D6B80382E16=1B2733030F:0F00701784831952712C2E1526271F,033806201F=2B3707131F:0F00701A17830E544C5C78,7129632E1F38208A452F16=15212D3909:0F00040370396A742E15444948,458A384F2021=16222E3A0A:0F005B261F20,2E2F1D=2531010D19:0F0003450D3329712C2E2F1575,528A63705A20587D7C12=17232F3B0B:0F00030D70332C2E3952838453542971156375,6B2019=1B2733030F:0F000301020D297115332E1F0C,165220262E=121E2A3606:0F00030102700D332E2C192971155383846375261F1E20,8D1F=33030F1B27:0F00030102700D19297115332C2B535448,2E45208A00=2632020E1A:0F00030102705283842E544779,2920454F754C3836=16222E3A0A:0F0052037029710D332C15,7545584F8A201D2121=121E2A3606:0F00074850,8A2036=0D25310119:0F00071A706A717677492923221E202726,80522E1F39=1E2A360612:0F006A385040740717,1F70631E=212D390915:0F006A1938271779,565A4575522F801F1E632B=121E2A3606:0F00010D0302703352838453297115632E,208A454F2B=0E1A263202:0F000170390D332E2971152F63751F1E20,52846A381F=14202C3808:0F000106387129,2E1F24=14202C3808:0F0001062E7129,522010=0814202C38:0F0001062871292E7C528384032C5C2A15767765,11185D8A206B08=131F2B0737:0F0001067C1F20,522900=202C380814:0F0001020D700339332C192A83842971152E1F0C20262322,065256386110=111D293505:0F000102700D332C2E297115383F631F20,0347562B=14202C3808:0F000102700D332C712E15261F201E,80036A61473831=0C18243000:0F000102700D335283845329711563,38048A7D45202A=14202C3808:0F000102702E15471F1E,294F2B452C2F268011=0D19253101:0F0001022E792D3E75663D19,472063703852292B39=222E3A0A16:0F0001022E154826271F1E203874362322,036312=0D19253101:0F000102032971152C2E19,4720637038522B15=111D293505:0F000102030D70332E3919528384532971152B2F201F0C,8D1B=232F3B0B17:0F000102030D7033528384534529711520,63475814=131F2B3707:0F000102030D332C2E195283845329716375261E2322,8D19=15212D3909:0F00010203700D332C2E1929711552838453637526202322,8D09=111D293505:0F00010203700D332E2F192971152B52838453631F20,8D33=1A2632020E:0F00010203700D332E2F1929711552838453261F201E2322,8D03=2E3A0A1622:0F0001020370332C2E2F1575261F,2971476A458352380C=111D293505:0F0001020370332E2F0D19297115637566302B2C3979,8D08=000C182430:0F000102037039297175261F1D21,454F2E1563410F=17232F3B0B:0F0001020370390D3319297115632E2C752620212322,8D07=3606121E2A:0F0001020370390D332C1929712E157563548384534C,20248A38=16222E3A0A:0F0001020370390D1952838453542971631F0C,152036=14202C3808:0F00010203703915632719792322,80262045297158750F=111D293505:0F00010203528384157033,752971206B452F2B262E05=3404101C28:0F00010206030D7129302F79802D7C2B5C4744,11701D2052843833=111D293505:0F00010206181139702E1F686F6A792D2C304E153375664923221D21,52296B0D800D=15212D3909:0F000102070D70332C2E19528384297115637526201E2322,8D05=2C38081420:0F0001021A175D2C19152E302F7183846379,8A20704F7545410A=131F2B3707:0F001A651707,565A58202E1F476320=121E36062A:0F11707B7C5271291E20,2E1F39=111D293505:0F11700001522E71291F20,2B07=131F2B0737:0F11700001397129,2E2002=111D293505:0F11707129,2E1F2002=131F37072B:0F1152702E2F71291F20,000103=131F37072B:0F1152702E2F71291F20,7A3A=111D293505:0F117B7C2C2E71291F20,520300=111D350529:0F110001702E2F71291F20,0621=101C280434:0F11000170717B,522E1F0A=06121E2A36:0F110001708471292E1F20,03388051561C=121E2A3606:0F1100017B7C702E7129,522B22=2D39091521:0F110039702C2E522F1574487B7C2D4E804B,098A204538612B=05111D2935:0F1118795B65170002195D,52382E8A201E=2531010D19:0F111829711500010370390D332E750C201F,4552832F382B8004=2A3606121E:0F1118175C000301027039450D29332C2E2F15631F,8A582020=31010D1925:0F1118032A0D545283841A802D2C2E2B71296366774744201F26232221,010900150C06=2C38081420:0F11180300706A2E1549466319,292F26806B382B20754506=2E3A0A1622:0F1118528384530001035C702971152B332C2E63201F1E23222621,6B75452D4F802E=111D293505:0F1118060300017B7C792E39767566261F20,7129805136=232F3B0B17:0F111800171A454F514E3A3871157765443D23221E262720,80612E1F1C=212D390915:0F11180003706A4F0D332C2E192971155363751F20262322,524746416128=3B0B17232F:0F111800037039450D2971332C632026,1F2E2B38528327=3B0B17232F:0F11180006032A0D70332E011954838471152C202322,58477D630C=0814202C38:0F1118000106287129705B032C2E302F802D4E2B201F,528458384108=380814202C:0F11180001027039302971542F7526201E,63472E151F583A=1E2A360612:0F1118000102030D70332C2E192971158384535426201E2322,471F1B=1F2B370713:0F1118000102030D70332C2E195283845329711563261F0C20,4745752522=3505111D29:0F1118000102030D70332E2C192971153953631F0C262720,5284612528=390915212D:0F111800010203700D332C2E192971152F4B49471F270C2322,52562B2029=390915212D:0F111800010203391929710D1552838453,2075708A456309410F=0A16222E3A:0F111800010206032A0D097170292D302F1575761320,521F47251D=1F2B370713:0F18000102111A1703154F2C2E382D2F807566,7163708A1F207D2A=05111D2935:0F111800017C5C2C2E7129,527015382021=2B3707131F:0F11185C0370332D152322528384636626271E,2F292C2E1F00010601=2430000C18:0F11185C0001092A0D7014692983847B7C2C2E302F802D2B,06454F208A2E=0D19253101:0F11181200171A7919547638,5215201D09=3A0A16222E:0F1A1716007015713F261F2720,5263587D2B470304=111D293505:0F1A0070153871291F20,7A7629=010D192531:0F181179005B712980152D4E2A0D533358,5270208A11=0814202C38:0F181138171A7975665B52845415,47701F8A2013=121E2A3606:0F181117795B5C007054292A0D690403332D2C2E66632B3D,8A454F3822=121E2A3606:0F1811705200012E71291F20,382A=16222E0A3A:0F1811705200012E71291F20,062B27=14202C0838:0F18117052000171291E20,2E1F27=16222E0A3A:0F18117000012E71291F20,527A06=111D290535:0F1811700001062E2F1F20,712912=14202C3808:0F181100062839707952542C2E302F03565A7566441F1E,0D29802B2029=1824300C00:0F181100012C2E7129,522025=121E2A0636:0F18110001261F20,03522E=0915212D39:0F18110001702C2E7129,6F454F098A2025=030F1B2733:0F18110001702C2E71291F0D2B152F2127,5283162014=16222E3A0A:0F18110001707B7C0D7129,52565A152B2034=17232F3B0B:0F1811000104037115454F7677657B7C392023222726210C,52092E1F27=3707131F2B:0F181100010603797B7C802D302F2B6743441F202322,2952477D2528=14202C0838:0F181100017B7C2E71291F20,036F33=0D19253101:0F18110001027939706954528384685D15565A75201E1D26,29032E11=182430000C:0F1811000102062A0D2C2D804B2B672E2F7129,70471F8A2030=17232F3B0B:0F5C707971292C2E0E032A0D6A804B2D8C2B3348634C,52110915462031=15212D3909:0F5C5B0001032A0D7052842C2E71291F20,1118517D462B=0F1B273303:0F5C111800015B712952841F20,756A251A=2733030F1B:1545332C2E2F84836375662620,0F0003700D71292B1C=0E1A320226:1516291211020056,06382007=000C182430:1551000403706A454F3A3D771F262322271E1D21,382B41522016=17232F3B0B:1500443626271F1E,29710F47380D19520337=182430000C:150001021745512E443D65262322,2B63387C18=192531010D:151A83842627202322,580F7003632E1F297C26=0E1A263202:15391A302F83845475662627201E,0F702E4629004708=3606121E2A:5B000102073911522C302F3A678C363F33490D482425200C1E2322,0F15382E1F6116=1E2A360612:5B71297000010611182A0D39792C2E332D4E80151F202621,52454F3804=2C38081420:5B11180001020328700D332C2E195283847115632F751F2720,290F476630=0C18243000:201E27262322,8902=3404101C28:2A0D11180F52848353037039156358332C2E,3820002628=010D192531:4089,030F565A61206B27=1824300C00:4089,8836=1C28340410:0370833F0F6A5215,010D582E1F202C2F582938=112935051D:03700F,79192C2E2D715275262322271F201D217936=112935051D:0370110F45510D3371290941614C522623222720,8D3B=152D390921:03047039171A533852443D363F,8D11=0F1B273303:030402111A16175B4F3A2B153E0079015D54528483696A51,7006200F05=0F1B270333:03041A174533302F56795B3E808339528454,700F292026=121E2A3606:037B7C2E2F261F20,0F14=1E2A360612:030270170F45513A2C71295283842A0D532D24252623222720,155A382E1F2F=1B2733030F:03027011170D332D2C2E2F716152838454,010F201F2C=121E2A3606:03027039450D332C2F2D2971528384636626202322,581535=212D390915:03020E0F18110D332C2E2D2F4971293E615244756653,8A202531=1B2733030F:030102703945802D2C512B7129092322270C7566,112E528325=2D39091521:030102062C2E543E3D636679,380D19462971001F=293505111D:03111A171538193E3F,0F632C2E70454F200C19=17232F3B0B:031A2B7915656A,0F177001204529710D632E2F02=32020E1A26:033945302F838475262720,297071000F2E1F3810=17232F3B0B:0339332C2E1575201E26,0F520D631F29712A72473826=390915212D:0339332C2E302B66201D1F27,0D2971010015520F6B0E=15212D3909:03392D2E332F211D201F1E27,0F7015380029710D195824=16223A0A2E:036F791E20,522E1F31=1D29350511:5283845B79037B7C802D2C2E4E302F2B38493D4463664C1F2021,0F0D712917=15212D3909:5283845303702971150D2F,388A6A6D0F2012=111D293505:528384530370331929272E2B2F631F1D20,0F156B380E=0D19253101:528384530339454F0D297115332E2F637520,0F00705802=2A3606121E:528384530339332E152C2F58631F20,380D000F2900=283404101C:528384530003010215392C20,1112180F29560D2E1F754511=15212D3909:5283845300031929150D332C2E63,0F217045208A717521=3505111D29:5283845300010670802D2C2E4E155B201F1E232221,380F71296A0E=17232F3B0B:5283845354037029711575262720,631F58000F2E38010D=111D293505:528384000103451915332C2E631F2720,29716A0D0F7019=1D29350511:5283840001032E1570637566302F391F,0F4729712030=16222E3A0A:5283845479036A2627201E,0F380D70297115012F1A=1F2B370713:528384542E03700F111869565A7566631F1E2021,297138000C31=121E2A3606:52838454443D65002C2E15495D1F,0F417D712B38630F=0D19253101:5283845444360F11756415,2C2F29016B472E2B20381D=212D390915:528384545363000103332E15,0F1F197029710D757D2032=121E2A3606:528384546315332C2E2F26201F2322,0F0D45002971756B17=192531010D:52838454754C2971150301022E,0F63206A0938268A4117=1B2733030F:52848353000103297115332E2F19,0F8A514F6A6620754526=1824300C00:528403395B2F1E20,0F012D=0B17232F3B:5254700001020612692D4E584647336375662E1F1E,71290D262037=131F2B3707:525400045B17791A565D754C7866,2E1F207C34=0F2733031B:483F89,8838=232F3B0B17:767779392623222789,152B1F1D200E=0A16222E3A:767789,528300292025=14202C3808:7665261F20,0F291A=222E3A0A16:7665262322271F201E21,0F0029807124=1824000C30:7889,292E1F24=101C283404:8D,8832=1D29350511:63767789,522E0006206B31=131F2B3707:7B7C343589,0F7038=2632020E1A:7B7C343589,520F20=0E1A260232:7B34,8812=1C28340410:02703918110F7919155283756626232227201E,012C2E1F0C29=121E2A3606:020F11161A17454F2C2E2D302F2B38434C,2070016328=1824300C00:02060418110D332C2E415B637566262322271F20,520F23=142038082C:07504089,0F010C=15212D3909:07262723221F40,0F7129523B=2430000C18:0717363F1A2C4F3A67433D8B,71290F0103471A=2531010D19:0704031118528384542D2E4E49201F1E1D2127,292B000C3B=283404101C:073F7765644889,012014=111D293505:074048261F202322,0F71454F1500018008=111D293505:07404826271F1E2089,882C=0D19253101:07565A5283845463756677261F20,010F15296120=2F3B0B1723:07487677393F89,0F2952151F1D30=111D293505:074889,06520F3808=17232F3B0B:074889,883B=131F2B3707:074889,8832=15212D3909:07762623221F1E20,000F1552296B2F2A=0D19253101:0776776A742623221F200C211D1E,11180F2F5206802B0B=04101C2834:0776776564,000F29382011=101C283404:0706397B7C794C636A48,520F7129472026=14202C3808:077C343589,880A=380814202C:076A79040363660F5D363F,52292E1F20382F15560123=16223A0A2E:076A696819,0F2918=222E3A0A16:076A171552847983546578,712970010F2D=182430000C:076A48,45752F29384C0F204F612B30=131F2B3707:076A7626271F1E20,0D0F29382F2E0E=0814202C38:07343589,065238=1C28340410:070039201F0C2789,06030F292F23=101C280434:076564,0F292002=0D19253101:073918111A17332C2E71292322271F1E20481D45548384,38002F702A=1824300C00:7C343589,8801=172F3B0B23:6A79363F65,0F292B7118=1B2733030F:6A170F19,5845754C201F4F382430=1B2733030F:6A170F1963766F,5452201F32=0C18243000:6A0339332C20528384531563,29713801000F0C47806B3B=2A3606121E:77766564000789,0F52201E8A01=202C380814:1F2027260076232289,0F29528339=0F1B330327:3435,8809=0F1B273303:34357B7C,8818=121E2A3606:34357B7C7789,0F291D=232F3B0B17:34357B7C89,0F2021=33030F1B27:34357B7C89,030F27=390915212D:34357B7C89,712917=1D29350511:3435073989,8802=2C38081420:34357C89,0111180F292006=30000C1824:34357C89,71291A=14202C3808:34357C89,8A2036=182430000C:3435000789,8835=232F3B0B17:34350089,0F2025=3707131F2B:34353989,0F2037=0D25310119:343589,0F52202D=0F1B273303:343589,0F7152290D=131F2B3707:343589,8830=121E2A3606:343589,881C=16222E3A0A:343589,8819=131F2B3707:343589,880F=15212D3909:343589,8832=14202C3808:343589,8813=0D19253101:343589,8811=17232F3B0B:343589,881E=142C380820:017018110F1A2E15495247838463462322271F,8D03=0F1B270333:0103040818111A155284262322271E20217A79708330,38472E631B=14202C3808:010670170F0E3A294152838454262322271F201E,2E1815442C=0F1B273303:01067071292C2E1F20,1103150F520A=17232F0B3B:010670181126271F202165,293816=182430000C:0106111839513A2C2E2D2F8C804B4723221F63,7152292037=0F2733031B:010203040618110F3315292A271D200C6339171A712C2E30491E21,7A21=0E1A260232:010206040318110F2E292A27200C70072C302F541F392B49,381512=1A2632020E:010206110F452C2E7129095B5226232227201F0C,58804B036B2B381C=142C380820:01023918112E2D493E52756624262322271F20,8D12=121E2A3606:008354,06462F2E1F27=030F1B2733:00797084831754,0F2E472D4E1F06=0D19250131:0079701811072C2E01060F33152627200C7A1A302F4576631F2B,8052382900=172F3B0B23:00790F072C2E0103047018111A262322271E7A302F5448637545,293815561E=101C340428:007952151E20,0F2E1F33=0F1B273303:007984831A160F1719,632E20471D6B01=152D390921:0079110F0304062A528423222627207A19701A2C2E2F5D83,294513=0F1B273303:0079181A165B332F2B262322271E2021030469702D4E49712930845D,454F05=152139092D:0079192E2F030417332D1552847A5D,4E201F=162E3A0A22:003826232277,632E20523A=0D19310125:0038262389,521513=1C28340410:00384089,0F202E157C07=04101C2834:00384089,152967631F=101C283404:00384740,0F2037=1C28340410:00387765504089,0F157C04=131F37072B:00385476,521F13=16222E3A0A:003854767789,2E1F522010=131F2B3707:003854637519,205D1D1F52151E210F=121E2A3606:003889,52201F1D4733=121E2A3606:003889,881F=212D390915:001D23221E2789,52290F2E1F202B=07131F2B37:002C7080305C784C62,2E1F472001=283404101C:004D64547589,0F292E=131F2B3707:005040,522E1F0F2C2004=3404101C28:005089,032C2E1F33=182430000C:005089,8815=192531010D:00261F23221E201D2189,8D12=131F2B3707:00261F2322271E200C89,8D1E=121E2A3606:0026271E20,2F2E1F33=16222E3A0A:002627241F1E20232289,8D33=14202C3808:002627651E20232289,881B=182430000C:00262789,292C2E1F2B2F2A=07131F2B37:00262322271F1E203F8B65,52290F038002=15212D3909:001779332D2322271E2007760304,38290F1C=1F2B370713:00173883546365756619,466115201F701D47522434=0D25310119:00170F79191A6540,712909387C2015=0E1A263202:00170F332C2E2D2F802952443F26232227201F,15637C383A=132B37071F:00170F7665776489,8D2A=390915212D:00177689,0F52804F2507=2E3A0A1622:00177179546A76,0F52443D1F2D=0915212D39:0070,0F292C2E791F13=131F2B3707:007083624C,0F38202E7D4F45471F7107=380814202C:00704F0D332C2E2D15363F261F20274C,0F2906036F4703=3404101C28:00702C2E164C157126271F1E202425363F,29386A032B0F=0F1B273303:00700F1715262720,472E386309=15212D0939:007022230726,2E17712952302F15=15212D3909:00704889,8834=1C28340410:0070784889,0345201F21=2D39091521:007007482089,2E1F58470B=0D19253101:0070071A010618110F5B52846775,6326202E=16222E3A0A:00701A17794C0F302F715475,2E454F8A20243A=0F1B330327:007018111A1617192E15382627201F656477,4F090A=0F1B273303:002E2F18110F5B3315292A26271F20210C7A70710102393E19,035A37=14202C3808:002E4344793F26271F20,03702C2F292B381A31=0E1A263202:00161A5D454F153826201E27,7D0D2904=152139092D:0004037039180F332D152952262322271F0C533A83,4117804735=1F2B370713:0004037B7C0F79494766754667,80293869208A1E=162E3A0A22:00040301067018111A0F332C15292A261E200C7A7919712F5D52838454,5617454F06=3404101C28:000403110F527079156523221E2027,0129802E1F6B1D=1830000C24:0004031A170F11332C2E302F1571292A657677451949,70201D5218=102834041C:0004031811171A5B332C2E155D52,0D29204504=17233B0B2F:00040318110F1519262322271E2021,52831F3825=3B0B17232F:00046A7966444C7765,010C202F38520F70292E31=14202C3808:003F261F202789,8836=131F2B3707:003F657789,7152290F032B3A=2632020E1A:003F651F0C2027232289,0F292B=16222E3A0A:003F89,8836=212D390915:000F76,032E1F522C292B22=2B3707131F:000F7765,2E1F7C4607=0F1B273303:000F01111A1615292A2627200C2C670279538384543E49,634512=0F1B273303:000F1320,6380382936=0F2733031B:000F1323222627,2E3829031535=0D25310119:00676589,0F200F=0C18243000:00401D232289,71290F47202B=101C283404:0040395089,8803=30000C1824:004023222089,0F291118470D=0A16222E3A:004089,0F5211=1A2632020E:004089,0F0147200B=3A0A16222E:00037039454F0D332971152C4C48,090F476341382E0A=111D293505:00037039041A26271F1E202322,0F2F2C335129452E0D3A3B=222E3A0A16:000370396A450D332F4B154C,0F208A7D41381F2E14=0F1B273303:00030401061A16170F332E71292627200C02696A45514F0D2C2D4E497A,2B0B=0F1B273303:000304111A33152D2E302F71292A5284530770022B,0F6345203B=0F1B330327:00030418111617332E2D2F292A52845407020D302B,090F452001=0F1B273303:000304080618110F1A2E2D0D3371292A2C302F7566010239454E802B,632039=2430000C18:00036A7415384878,45751F20240F522E834F2E=182430000C:000301394F2E154763751F27,0F707A802629710D192035=14202C3808:0003391983845475,2E1F0F6A702971722A0D04=0F1B270333:00483F,6338200F2A=3B0B17232F:00481F2023221E27262189,0F292C2E1B=122A36061E:0076645089,8819=202C380814:0076777566262322271F201E,0F111852290D=101C283404:00763989,0F2036=1E2A360612:00788B89,0671292E25=010D192531:00784C793989,0F29702E1F208A21=31010D1925:0006261F1E201D212322,0F2938111801=2A3606121E:00060403702C2E4C154947443D651F,0D2920=101C283404:0006522E261F20,0F712939=2632020E1A:00060724232227261F2025,520F157929382F22=31010D1925:0006547677,0F5229151F201B=0E1A320226:00061A161718110F292A0C26271F21797001022F49,470D=0814202C38:002876396577261F20,5283290F37=212D390915:0028397976771E232227,0F522E47442027=121E2A3606:006389,8822=101C280434:007B7C3989,881E=1830000C24:007B343589,8805=2E3A0A1622:00021719792B155D5466774962,010611180F292030=14202C3808:00020370454F0D3933192C2E2D156375261F202322,0F7123=0E1A260232:0002070818111A16175B153E445D5452848365647576,2038454F15=182430000C:0007385476771548,52061F2024=2D39091521:0007504089,0F29157030=15212D3909:0007504089,060F71702F2918=15212D3909:0007504089,880B=17232F0B3B:000770171989,0F2E20382F=0B17232F3B:00077089,522E1F8A202C=07131F2B37:000704036939487C4466,0F7011293821=1824000C30:000715547776,521F18=0E2632021A:0007030401021811171A0F2E2322271F1E706749528483,202F293800=0F1B330327:00077663,0F297138202C=0B17232F3B:000776776548,0F1118152E1F2017=121E2A3606:00077665776489,52830F208A14=1A2632020E:00077B7C4834353989,2952203B=2632020E1A:00076A386563,0F7D8A2066454F52754C15=1E2A360612:00076A0F3874485040,06707C2509=3606121E2A:00076A74504089,5229702C7D15=14202C3808:00076A74173926271F1E20,0F7029522B09=000C182430:00076A54196348767765,7920297115528A0D382B16=101C283404:000734357B7C3989,0F528329200C=06121E2A36:0007343589,290F7104=2E3A0A1622:0007343589,0F292F702012=182430000C:0007343589,0F71296B708003=15212D3909:0007343589,7129706300=0D19310125:0007010618111A332D302F15262322271E530270164C,560F712924=0E1A263202:000701020618111A1752848354230C7027,262038292C=111D293505:0007711F204840,010F29153814=17232F3B0B:00076527262322,1552835A201D0F382D=0D19253101:0007363F8B3989,09292C208A0F28=030F1B2733:000739483F66,0F208A2B0A=04101C2834:0007397B7C343589,0106522008=020E1A2632:0007396A48343589,0F203A=283404101C:00073934357B7C89,0F5223=3505111D29:000739343589,032010=0A16222E3A:000739343589,520F2F=111D293505:000739343589,8A200A=15212D0939:00077A7089,8817=17232F3B0B:000789,8D3B=172F3B0B23:000789,8815=1B2733030F:007C343589,881B=212D390915:007C343589,8812=15212D3909:006A79190F6F2627,6B46204538290B=380814202C:006A38075040,0F630141202B454F2D=121E2A3606:006A5040077448,702B2C0F2F292E=0B17232F3B:006A583F232227261F20,0F291547031C=232F3B0B17:006A6F391974,0F2E614447702C292F71201F38521F=31010D1925:0034353989,522E1F2B=0D19253101:00343589,060F5200=2A3606121E:00343589,7129565A01=131F2B3707:00343589,883B=111D350529:00343589,8800=152D390921:000150402627,0F292F2B1E=2733030F1B:00010F17505840,565A80385283846315=101C283404:000103020611187B7C2D4E616439201E0C26,522E474429=101C283404:0001030239450D297115332C2E4C,0F542070528438632C=101C283404:000103392E54837548,19700F58157A20381F=1830000C24:00010670175B71292A152322271E,03637C2B380F=0E1A263202:0001067052842E71291F20,030F38477533=131F2B3707:0001067011185B0D332C2E2D712909262322271F200C,0F5263250C=17232F0B3B:000106040318111A170F33292A26276A201D0C7A71077C1F1E74694F,520A=0D19253101:0001060403232226380F767754,568020152D=111D293505:000106025B75712904032D302F382B2A0D801E20,2E1F0F0F0C=0D19253101:00010607155B5C26271E2021165D83,38470F2920=16222E3A0A:000106073018110F3329271E0C7A0D75,3826201508=0F1B273303:00010618111A16332C2E2F2D27200C07483A450D,1552843825=0E1A263202:000102261E2027,03476F700F2971382E39=15212D3909:0001027007834878,2E388A201D17=131F2B3707:00010203450D3329152C2E2F5375,0F638A6A1D8A382D=0E1A263202:000102030D70332C2E29712F534426201F1E,0F38152F=121E2A3606:0001020370450D332C2E2D152971,0F52838A201D1B=1D29350511:0001020370528384631575712D2E4E3E581F1E1D,292C2B452620803A=222E3A0A16:0001020370392F2971152B54754C,458A1F0F20462C=14202C3808:0001020370392F80712B546675201E26,1F58472E152F=16222E3A0A:000102037039714515750D33,201D381F092E0F1103=32020E1A26:000102030F7039453319152E2D2F63751F0C1E20,71290D38472C=16222E3A0A:000102035270392E2D5863,0F381D2B2921201511=131F2B3707:0001020352666A,0F7020262938172F3A=2430000C18:00010203332C2E2F1558631F,0F1920707A2971264627=05111D2935:0001020311180F702E1F7952838468332D6749443E46630C1E1D21,292B2035=1C28340410:000102031118396375664819,1D4138702080291F=232F3B0B17:000102033945332C6375201D21,0F1929710D702D=101C283404:00010203390D3329152C2B751E20,2E1F54475352458316=111D293505:0001020339161745514F2C190F1A152E2D2F304979,8D13=17232F3B0B:00010203396A79637566201D211E,29387D71707A30=101C283404:000102033911170D3319152E2F0947442627201F,8D25=3505111D29:000102031811392E2D19528384543E4463751F20,152F1A290F0D=0E1A263202:0001020626232227201E,0F2E03801F0F=101C283404:0001020617385483,030F47202B6B1B=2733030F1B:000102060F17705283797823221E2027,2E712910=121E2A3606:000102062A397129797B7C2E1F2425,162F5D20262B=182430000C:0001020603691817452C2E2D498344,412B6A09633808=3A0A16222E:0001020603700F7B7C2E1F692D48302F565A586366240C21,2B151A292039=17232F3B0B:000102060717706A33392D2E4E674447482322271E210C,71292B4F2023=33030F1B27:0001020607036A5D397C2163664744,0F4E25208A08=04101C2834:000102060775261F20,71290F70150C=101C283404:00010206111803302F565A802D4E2B881F261E0C,0D0F521B=16222E3A0A:00010206090D5B7952838454685D7B7C443D77656366201F1E,030F47454F24=010D192531:000102071283542627201D210C4C78,29580F2E6352032E1F01=32020E1A26:00010275261E0C2322,6303706F0F292E1F19=0E2632021A:000102081A158483262322270C1E,700F292E1B=101C283404:00011A1615262322271F1E200C214C,472B0F1124=3707131F2B:00013974150726271F1E200C,0F06520D297170382B4507=17233B0B2F:000118111A16175B154C26271E200C232279302F5D528384547543,0F297C7A03=17232F3B0B:000118111A332C2E2D1571292A2627200C7A1979,387C02=172F3B0B23:000118111A332C2E2D1571292A23222627200C7A791970302F5D5283845456,387C454F1F=0E1A263202:0001081811171A160F1571292A26271E20396476452B0D,632E523813=15212D3909:00211D1E232289,8D16=0E2632021A:006526232227201F,8926=05111D2935:00657689,6B0F5225=16223A0A2E:00654C89,8D03=2A3606121E:006589,2970472008=15212D3909:001A170F5B332E2D7129261E203E5D,1503528306=152139092D:001A170F1379232227761926,71293833=1C28340410:001A1715838444363F261F1E200C2322,0F476B52036338=14202C3808:001A2B5448701938754C,152E20242510=0D19253101:0039504089,8D39=283404101C:003926271E20747677642322480C06,2E1F38=0F1B273303:0039262322271E201D210C0748766465776A,150F382939=202C380814:0039332C2E2D2F152B4644261F1E,0F7019382971637A31=192531010D:0039787989,1F2E2010=101C283404:0039787089,2E1F8A034F206B29=05111D2935:00398B7989,0F200C=131F2B3707:0039077426271F1E20,0F29713852832B632D=14202C3808:0039076A7426271F2048,0F79197029717A382C=0E1A263202:00397C343548,8929=3B0B17232F:003934357B7C89,0F2028=16222E0A3A:0039343589,8D34=16222E3A0A:0039343589,880B=111D293505:0039343589,8805=17233B0B2F:0039343589,882E=101C283404:0039343589,8806=17233B0B2F:00390103040618111A17332C2E262322271E157A7071302F45631F2075,807C2B=0915212D39:00396577647969271E2322,52012E1F2620612D=16222E3A0A:00391A6A15384C4943363F7448,0F0379472B6319=192531010D:00394C786F89,0F2E442035=182430000C:003989,882A=121E2A3606:003989,8816=13191F252B313701070D:003989,8801=0D19310125:003989,880D=0F1B273303:0018112C2E01040607332D292A09270C2322696870302F47023945,382052801C=101C340428:00190F153917701A48,472E1F200334=1F2B370713:00195475667689,5229152E2019=222E3A0A16:004C504089,0F5215470A=3A0A16222E:005C702C2F802B154C78,5A562E1F208A45466319=102834041C:0089,090F1538=131F2B3707:71297C790001062A0F802D,5215705D2F=0E1A263202:7100030170391959152E2D2F2B,0F201F4F75668A3824=030F1B2733:5483846376656419786A,298030201A=2430000C18:5452838479195D00012A0D7B7C2C2E3348156366242526201E,0F71292D=07131F2B37:54528384700001020339482D301571565A363F637566,06292B201F8A29=030F1B2733:54528384036F796A153E65,7129631D=2733030F1B:5452848303152F802C2D,2E1F208A7A700F29710C7D22=33030F1B27:118384155B20272E1F21,0F03380E=0E1A263202:1179302F842627201E,0071292E1F0E=06121E2A36:11177B7C52842C2E5B1F20,060071292F0F0E=101C283404:110F70528475660D7129,012E1F20262A=101C283404:110F03706A795215636626271E,0C012F38062C292B07=020E1A2632:110F0001702C2E7129201F,52060C=0E1A263202:110F00017052792E1F1E,71290D2B2020=293505111D:110F1A6A702C2E1952838453712F6375,45201500011D=101C340428:11037B7C2E2F7129,0F52200B=0E1A263202:11000170792C2E7129,0F52201F01=111D350529:110001527B7C2E75,0F2009=04101C2834:1100010206702D804E2B2620,0F52540D00=131F2B3707:110001392E1F20,0F712932=17232F3B0B:117154528384292C2E302D4E092A0D50407970443D,5680410023=2B3707131F:111879690001020370396A2E2D528384543E637566,0F380D580F292000=222E3A0A16:111879076A1A171523221E272024,5229700F1D012E292B0C2F0B=06121E2A36:111817000106702C2E71292A0D33802D302F4E2B44,0F52252029=07131F2B37:11180F000704030D7C684580302F153867534775,70204119=2430000C18:11180F00012A0D70795D7B7C39332D2C2E4E4863664C,064F478A2037=1E2A360612:11180F000152548471702C2E2D4E303348492A156144474C63,8A201F38450618=202C380814:11180F000128032A0D7129302C2E2F2D802B09411F1E20,5284543824=2F3B0B1723:11180F0001020370391952845329712B632E7B7C792D2C8020,385D151E=293505111D:11180F0001020339700D29716375662E1F2620,3815568016=16222E3A0A:11180F000102587B7C5283847971302F804B2B497675,09612E1F201E=232F3B0B17:11180F00010E715229702E79692C2D2B15093954444C66,2F565A806132=131F2B3707:11180F71297052838454792A0D33802D153853201F1E212627,012F56476628=3707131F2B:11180F71297000010604032A0D793969302F33802D636675,201F52565A1E18=1D29350511:11180F5C000102030D332C2E195329711563261F202322,52843A=202C380814:11180370392A0D3329712C2F156375795B5D,450C8A00382E1F20010C=3A0A16222E:11185283847975661271393D692D15565A201E262322,292F060D0C02=30000C1824:111852838470795B302F404533802D152B39201E23221D212726,0F2E1F010D2923=2D39091521:111852838453546319297115030D332B2C,060F8A2E38201F38=0D19253101:111800020D041A796933483E5347446563751F1D212026,010F09150C17=2430000C18:1118000717161A2C2E3371292B56433D6375363F,0F010347208A09=020E1A2632:111800012A0D2C705271292E201F,1538617904=30000C1824:11180001032A0D70795B2C2E302F802D4E152B33714161201F26,520958470A=000C182430:11180001020439332C2E302F2B5844477515634C1F2721,0F520D19267A2971702037=232F3B0B17:111800010206037939695483845D2D2E4E446375661F262120,0F52290D7123=31010D1925:111800010206071979697C67474475664C,0F16298A2014=182430000C:11187129705B79000106032A0D397B6F7C802D2C2B61756627261E0C1D21,0F2E15414732=192531010D:111871545283842979397B7C69152B2A0D33485324251F1D1E26,6B00702F800C201E=1F2B370713:5D0007363F232227261E21,037C0F471F202E=0E1A263202:6526232227201F,880E=111D293505:653989,8806=131F2B3707:363F6526232227201E89,8832=1A2632020E:1A454F548384,881D=121E2A3606:1A38712975,0F201A=0E1A263202:1A162623227954,0001710F290C=0F1B273303:1A16170F13152654,3852204F32=0F1B273303:1A5D453A332C2E2F4B25262322271F201E1D21,000F704723=2F3B0B1723:3950177089,522E1F0F201A=1D29350511:39701117302F713819297566,004551152C2E201D1F34=121E2A3606:393589,881A=15212D3909:393589,882C=182430000C:393589,8825=101C283404:393589,881C=2531010D19:394089,71294709636F7C440D=0D19253101:3948007889,8D38=2430000C18:394889,8811=111D293505:394889,882A=0E1A263202:3907,8807=0D19253101:39343589,8831=101C283404:393489,8801=222E3A0A16:390050404C89,0F528329692018=131F2B3707:39006A26201F,0F520D38580629712B09=380814202C:390001022C2E302F1575804B2D261F20,0D0F0319707D5229717A15=17232F3B0B:3989,8D11=0A16222E3A:181179838454637566,0F5229012007=111D293505:18117915384C,52200E=0C18243000:1811795B032C2E302F802D4163754C27261E1D2120,010D0F29521F29=16222E0A3A:1811795B5466,01202F=192531010D:181179000607040D03302F5283844F3A45512B1533664C47,090F702E208A2B=0B17232F3B:18117900012C2E5B1F20,0F710D52291A=122A36061E:181179190E332C2E2D52637566262322271F20,8D02=0F1B273303:181117332C2E1526232227201F1E3E,38030F522922=142038082C:181170792C2F7129,52201F=121E36062A:18117001061579,71292023=121E2A3606:18117000012C2E7129,522024=3505111D29:18110F3900010203700D3329711563752E1F0C201D,38525D1A=101C283404:18110F197983842E230C271F1E7A70525463,2620291503=111D293505:1811002E1F8384,0F2022=1824000C30:181100012C2E2F1F,0F3821=142038082C:181100012C2E2F1F20,0F5229=14202C3808:181100015B3875,2E2034=15212D3909:181100012A0D2C2E2F2B2D304E447129841F,0F09416138200F=0814202C38:181100012A0D52842953411E20,2E1F0F47152F=131F2B3707:18110001032A0D845B7129302F791533536678,0F208A1F1D33=17232F3B0B:18115452840001712970802D2C2E302F2B2A0D78791F,0F204758610E=0F1B273303:18111A16175B3315262322271F1E201D215D838454433E363F754551,00030F290D=0C18243000:18115C0001702A2C2E2F5283847129795B6375802D154C,1F208A2407=15212D3909:88,262052830D=17232F3B0B:88,8D17=102834041C:88,8D0B=15212D0939:88,8D24=121E2A0636:88,8D09=17232F0B3B:88,8D13=111D293505:1979,3F2F2E45207D37=112935051D:1966583F6589,8831=16222E3A0A:4C4089,880C=0C18243000:4C78,297172380D2A2E0F47484112=16222E3A0A:5C0F1811790070528471291F20,2F0380512514=1C28340410:5C0001020652835B0E03804B2D4E2B752024210C,292E565A36=1A2632020E:5C11180001027170520D2984832B15200C,03802E386333=15212D3909:89,6B34=111D293505:89,8D",s.TIME_YI_JI="0D28=,2C2E2128=,2C2E0110=,2C2E0C1F=,2C2E7A701B1C=,01022308=,01026D003026=,000106037A702D02=,000106037A702802=,000106037A703131=,000106037A70341B=,000106087A701F0E=,000106087A702E15=,000106087A702C2E0E39=,000106087A702C2E0D2B=,881727=,88032D=,88352F=,882B2F=,882125=,882A22=,880C1E=,880220=,88161A=,882018=,883422=,880113=,880B11=,883315=,882915=,881F17=,88150D=,88122E=,88302A=,88262A=,883A28=,880826=,881C2C=,881905=,882303=,880F09=,88050B=,883701=,882D01=,88060C=,882410=,881A12=,882E0E=,88380E=,881010=,883630=,881834=,880E38=,882232=,882C30=,88043A=,881E0A=,880006=,883208=,880A04=,881400=,882808=,883137=,883B35=,882737=,881D39=,88133B=,880933=,88251D=,882F1B=,881B1F=,88111D=,880719=,88391B=,88212D=,7A702C0B15=,7A70551515=,7A70552D00=,7A7D2C2E1334=382C,000106083528=382C,7A70000106080504=382C7A6C55700F197120,00010608223A=380006082C,01026D0D2C=380006082C,01027A70551D30=380006082C0F71295283,01027A703636=380006082C0F71295283,0102416D1226=380006082C7A706C550F297120,0102251C=380006082C7A6C55700F197120,01026D2300=3800010608,2C2E0324=3800010608,7A702C2E082E=3800010608,7A70552C2E3B34=38000106082C,2F8026330C=38000106082C,2F80267A701622=38000106082C7A70556C0F197120,1904=38000106082C7A6C55700F197120,1514=38000106087A70556C0F197120,2C2E3138=38000106087A70556C0F197120,2C2E0B10=38000106087A6C55700F197120,2C2E2B28=387A6C55700F197120,000106082C2E2E16=38082C,000106037A700E3A=38082C,000106037A703708=38082C6C550F197120,000106037A701B20=38082C6C550F197120,000106037A70111C=38082C6C550F197120,000106037A703A2D=2C38,000106082733=2C38,000106081015=2C38020F71295283,000106083817=2C2920,7A700F03=2C2920,616D1839=2C292070556C100F,00010608161B=2C2920020F7100010608,302B=2C2920556C0F1971,7A701E07=2C2920010F,1B1B=2C2920010670100F00,352B=2C292000010206100F70,082B=2C292000010206100F707A,0C21=2C292000010870556C100F7A,0617=2C29206C0F1971,7A70552807=2C29207A70556C0F197100010206,122F=2C29207A706C55100F1971,1017=2C29207A706C55100F1971,2731=2C20,616D0436=2C2070550F,7A7D01022E12=2C200F71295283,01021831=2C20556C0F1971,7A702912=2C20100F52,01026D1D33=2C807138152952,000106080E31=2C80713815295270556C100F,000106083201=2C80713815295270556C100F7A,000106080327=2C80713815295202100F,000106037A702B2B=2C80713815295202100F,000106037A702801=2C80713815295202100F,000106083639=2C80713815295202100F7A7055,00010608341D=2C807138152952556C100F,000106037A701B23=2C807138152952010F6C55,7A70302D=2C8071381529520102100F7A7055,2231=2C8071381529520102100F7A6C55,1F13=2C80713815295200010206100F20,7A70313B=2C8071381529526C550F,000106037A701A15=2C8071381529527A70550F,000106080219=2C8071381529527A70556C0F19,000106082E0D=2C80713815295208556C100F,000106037A70161F=2C80711529525670556C100F,000106083813=2C80711529525670556C100F,000106082D05=2C807115295256020F7A706C55,2237=2C80711529525602100F,000106081F0D=2C80711529525602100F55,000106037A702627=2C8071152952560102100F7A706C,2C33=2C8071152952560102100F7A706C,0939=2C80711529525601100F7A7055,416D021F=2C80711529525600010206100F70,0E37=2C80711529525600010870556C10,2129=2C8071152952566C550F,7A702519=2C8071152952566C550F19,7A702417=2C8071152952566C55100F19,000106037A70043B=2C8071152952566C55100F19,000106037A700C1B=2C8071152952566C55100F19,7A703B31=2C8071152952566C100F19,7A705500010603172D=2C8071152952567A70550F,416D3A2F=2C8071152952567A70556C100F,1901=2C8071152952567A706C55100F19,1119=2C8071152952567A6C55700F19,1C2B=2C80711529525608556C100F,000106037A701403=2C80711529525608556C100F,000106037A70071D=2C80711529525608100F55,000106037A701908=292C20,7A7D01026D2E0F=292C200102100F7A7055,032C=292C20000608,0102071C=292C206C550F1971,000106037A700E33=292C207A70556C000108,0503=2920550F,7A702C2E0721=2920556C100F,7A702C1225=2920000108556C100F,7A702C2E1F11=2900010870556C100F7A,032C201A11=297A70556C100F,032C200E35=297A70556C100F,032C20000A=70556C0F197120,7A7D3A29=70556C100F2C20,000106081C25=70556C100F2C20,000106082805=70556C100F2C20,000106082F20=70556C100F2C20,00010608150C=70556C100F29522002,7A7D000106033314=70556C100F,00010608032C20122A=70556C08,7A7D000106032415=70100F2C715220,000106081A0D=4B0F2C20,000106037A701902=4B0F2C20,000106080E3B=4B0F20,7A702C000106032E17=0F2C09382920,7A7000010603363B=0F2C093829206C55,000106037A70082C=0F29528320,7A2C71707D01026D0718=0F712952832C20,7A7D01021C26=0F712952832C20,7A7D01026D3918=0F712952832C2038000608,01027A70552126=0F712952832C2010,01021330=0F712952832C207A7055,01021118=0F712952832C207A7055,01023524=0F715220,7A70552C2E3419=20556C0F1971,7A702C2E1D31=2000010206100F,7A702C1E05=0270290F2C207A,00010608212C=0270550F,00010608032C200C23=0270550F,00010608032C203706=0270550F20,000106082C2E2520=0270550F20,7A7D000106032E13=0270550F202C807115295256,000106081620=020F29528320,000106087A2C71707D0112=020F2952832055,7A2C71707D000106030F08=020F20,7A7055000106032A23=020F712952832C20,2521=020F712952832C20,000106082F21=020F712952832C20,000106080003=020F712952832C20,7A700432=020F712952832C2038000106086C,7A701E03=020F712952832C2070556C10,000106081623=020F712952832C2001,2236=020F712952832C2001,000B=020F712952832C2001,7A70552C36=020F712952832C20013800,416D341E=020F712952832C20017055,7A7D0E32=020F712952832C200110,7A7D0329=020F712952832C2001107A706C55,262D=020F712952832C20017A7055,1229=020F712952832C2000010608,122D=020F712952832C2000010608,1011=020F712952832C2000010608,0A0B=020F712952832C2000010608,1F0F=020F712952832C2000010870556C,1A0E=020F712952832C206C55,7A703312=020F712952832C2010,000106037A70172A=020F712952832C2010,7A7055000106033B3B=020F712952832C2010,416D000106037A700B12=020F712952832C20106C55,000106037A700615=020F712952832C207A7055,3203=020F712952832C207A7055,201B=020F712952832C207A706C5510,2023=020F712952832C207A6C7055,2A1B=020F7129528320,000106087A702C2629=020F7129528320,7A702C2E3709=020F7129528320,7A702C000106083A24=020F7129528320,7A70552C2E341A=020F712952832038000106087A70,2C2E1C2D=020F712952832001,7A702C2E0611=020F712952832001,7A702C2E021A=020F712952832001,7A7D2C2E3815=020F71295283200100,7A702C2E3024=020F71295283200110,616D2C2E093B=020F71295283206C55,7A702C2E000106030505=020F71295283206C55,7A702C030C1A=020F71295283207A706C55,000106082C2E3705=020F712952837A706C55,032C201F0C=02550F20,000106037A700508=02550F20,000106037A703029=02550F20,000106087A702C2E3027=02550F202C807115295256,000106037A703526=02100F2C29528320,000106037A70150E=02100F2C29528320,00010608380F=02100F2C29528320,000106083527=02100F2C29528320,7A70000106031C27=02100F2C2955528320,000106081227=02100F2C29555283207A706C,00010608060F=02100F2C29555283207A706C,000106081D34=02100F7020,7A7D000106030F02=02100F7055528315,2F8026000106083920=02100F7055528315,2F802600010608212A=02100F7055528315,000106082A20=02100F7055528315,000106083A26=02100F7055528315,000106080439=02100F7055528315,000106080008=02100F7055528315,000106081B21=02100F7055528315,00010608071B=02100F7055528315,000106080D24=02100F7055528315,000106082C2E2C32=02100F7055528315,000106082C2E2B2C=02100F7055528315,00010608032C201402=02100F7055528315,00010608032C20391C=02100F7055528315,7A7D000106031F10=02100F705552831538,2F8026000106082D06=02100F70555283157A,2F802600010608290D=02100F20,7A702C000106032416=02100F20,616D000106037A702C34=02100F20292C,7A70000106031C2A=02100F528315,7A7055000106032234=02100F528315,7A7055000106032A21=02100F55528315,000106037A703313=02100F55528315,000106037A700509=02100F55528315,000106037A702D03=02100F55528315,000106037A700613=02100F55528315,000106037A702235=02100F55528315,000106037A70391D=02100F55528315,000106037A70100F=02100F55528315,000106087A702C111B=02100F55528315,000106087A702C2E2916=02100F55528315,7A2C71707D000106030430=02100F55528315,7A2C71707D000106033B32=02100F55528315,7A2C71707D000106081903=02100F55528315,7A702C2E000106033A27=02100F55528315,7A702C000106030931=02100F55528315,7A702C000106030C1C=02100F55528315,7A70000106032735=02100F555283152C8071,000106037A700B13=02100F555283152C807138,000106037A701517=02100F555283152C807138,000106037A702917=02100F555283156C,000106037A703136=550F522010,7A2C71707D01022A1E=550F715220,7A702C2E1333=550F715220,7A702C2E000106081405=556C,000106087A702C2E0433=556C,7A70000106083B38=556C0F197120,7A702C2E1E01=556C0F19712001,7A702C2E190B=556C000108,7A70230B=556C000108,7A702C2E1A0F=556C0001082C807115295256,7A701830=556C0008,7A2C71707D01023814=556C100F295220,7A2C71707D03082F=556C100F295220,7A702C0C1D=556C100F295220,7A702C2E00010603021D=556C100F295220,7A70000106031121=556C100F2952202C,7A701835=556C100F2952202C80713815,000106037A703B30=556C100F29522002,000106037A70290C=556C100F29522002,7A70000106030930=556C100F2952200238,000106037A702B27=556C100F2952200102,7A702C2E3812=556C08,000106037A701012=556C08,000106037A701621=556C08,7A702C2E000106033209=556C08,7A702C2E000106032021=556C082C807138152952,000106037A700009=556C082C807138152952,000106037A702A1D=807138152952000170100F,032C200A05=807138152952000170100F,032C20273B=8071381529527A706C550F,032C203423=80711529525600010870556C100F,032C201511=80711529525600010870556C100F,032C20183B=80711529525600010870556C100F,032C203311=010F2C80093829206C55,7A702B29=010F2C80093829206C55,7A70616D3A25=010F2C09382920,7A70550825=010F2C093829207A6C5570,201E=010F09382920,7A702C2E352E=010670100F2C71522000,1C28=010670100F7152207A6C55,2C2E2E11=0106100F7152,7A70032C203205=0106100F71526C,7A70032C202A19=0102290F20,7A702C2E2A1F=010270290F2C207A6C55,2413=010270290F2C207A6C55,0437=010270290F2C207A6C55,0935=010270550F,032C201B18=010270550F20,2B24=010270550F20,2F80261906=010270550F20,2C2E2732=010270550F20,2C2E071A=010270550F20,2C2E3700=010270550F20,7A7D1724=010270550F203800,2F80263921=010270550F202C29,416D290F=010270550F202C807138152952,1619=010270550F202C8071381529527A,3207=010270550F202C80711529525600,0829=010270550F2000,060D=010270550F2000,0001=010270550F2000,2736=010270550F207A,1B1E=010270550F207A,2C2E140B=010270550F207A6C,0114=010270550F7A6C,032C202C3B=010270550F7A6C,032C20201F=0102550F20,7A702C1A13=0102550F20,7A702C3637=0102550F20,7A702C280B=0102550F20,7A702C223B=0102550F20,7A702C032D04=0102100F2C29528320,7A701409=0102100F2C29528320,7A70552307=0102100F2C2952832000,0005=0102100F295283,032C207A700A00=0102100F2955528320,7A2C71707D082D=0102100F2955528320,7A702C2E2809=0102100F295552832000,7A702C2E2B2D=0102100F7055528315,021E=0102100F7055528315,0C20=0102100F7055528315,2F80263420=0102100F7055528315,2F80261510=0102100F7055528315,2F80262E10=0102100F7055528315,2F80262806=0102100F7055528315,2F80263134=0102100F7055528315,2F80261D38=0102100F7055528315,2F8026251A=0102100F7055528315,2F80263A2A=0102100F7055528315,2F80267A7D1120=0102100F7055528315,2F80267A7D0824=0102100F7055528315,2C2E1E00=0102100F7055528315,2C2E7A2F1D=0102100F7055528315,032C200A06=0102100F7055528315,7A7D2C2E1C2E=0102100F70555283153800,2F80261832=0102100F70555283153800,2C2E280A=0102100F70555283153800,2C2E320A=0102100F705552831538007A,2738=0102100F705552831538007A6C,2F80260720=0102100F705552831538007A6C,2F8026032B=0102100F70555283152C292000,1907=0102100F70555283152C292000,3703=0102100F70555283152C292000,2739=0102100F70555283152C29207A,251B=0102100F70555283152C29207A,2B25=0102100F70555283152C29207A6C,1331=0102100F70555283152C207A,0D29=0102100F70555283152C80717A,1B1D=0102100F70555283158071,032C200D2D=0102100F705552831500,1725=0102100F705552831500,352D=0102100F705552831500,0C19=0102100F705552831500,150F=0102100F705552831500,3025=0102100F705552831500,0F07=0102100F705552831500,1E09=0102100F705552831500,251F=0102100F705552831500,010C=0102100F705552831500,2F80261A10=0102100F705552831500,2F80261016=0102100F705552831500,2F80260934=0102100F705552831500,2F80262910=0102100F705552831500,2F80267A7D1A14=0102100F705552831500,2C2E2304=0102100F705552831500,7A7D3421=0102100F7055528315002C2920,212F=0102100F7055528315002C807138,111F=0102100F7055528315002C807138,3135=0102100F7055528315008071,032C200828=0102100F7055528315007A6C,2022=0102100F70555283156C,7A7D140A=0102100F70555283156C,7A7D2C2E2127=0102100F70555283157A,1618=0102100F70555283157A,0B0F=0102100F70555283157A,1836=0102100F70555283157A,172E=0102100F70555283157A,2F8026352A=0102100F70555283157A,2F80262B2E=0102100F70555283157A,2F8026082A=0102100F70555283157A,2F80262306=0102100F70555283157A,2F80263702=0102100F70555283157A,2F80262C38=0102100F70555283157A,2F80261E06=0102100F70555283157A,2F80261B1A=0102100F70555283157A,2F8026032A=0102100F70555283157A,2C2E1F14=0102100F70555283157A,2C2E3810=0102100F70555283157A,2C2E262C=0102100F70555283157A29,032C20201A=0102100F70555283157A00,2F80260A02=0102100F70555283157A00,2F80261838=0102100F70555283157A6C,2F80260E34=0102100F70555283157A6C,2F80260438=0102100F70555283157A6C,2C2E2F1A=0102100F70555283157A6C,2C2E2305=0102100F528315,7A70553525=0102100F5283152C8071,7A70550723=0102100F528315807138,7A7055032C200D2A=0102100F55528315,2F80267A2C71707D3316=0102100F55528315,2F80267A2C71707D1224=0102100F55528315,2F80267A2C71707D212E=0102100F55528315,2F80267A700616=0102100F55528315,2F80267A70380C=0102100F55528315,2F80267A700434=0102100F55528315,2F80267A702A18=0102100F55528315,7A2C71707D2628=0102100F55528315,7A2C71707D100C=0102100F55528315,7A2C71707D2F80261729=0102100F55528315,7A701F15=0102100F55528315,7A70240E=0102100F55528315,7A703632=0102100F55528315,7A701339=0102100F55528315,7A700115=0102100F55528315,7A702C2C37=0102100F55528315,7A702C320B=0102100F55528315,7A702C3206=0102100F55528315,7A702C2E2238=0102100F55528315,616D2F80267A2C71707D3816=0102100F555283153800,2F80267A701406=0102100F555283153800,2F80267A700111=0102100F555283152C8071,7A700501=0102100F555283152C8071,7A70370B=0102100F555283152C807138,7A703B37=0102100F555283152C80713800,7A701C2F=0102100F555283152920,7A702C240F=0102100F555283152920,7A702C0A03=0102100F555283152920,7A702C0221=0102100F55528315292000,7A702C2E3317=0102100F55528315292000,7A702C2E3634=0102100F5552831500,2F80267A2C71707D3028=0102100F5552831500,7A2C71707D111A=0102100F5552831500,7A2C71707D071E=0102100F5552831500,7A2C71707D2913=0102100F5552831500,7A702F19=0102100F5552831500,7A702301=0102100F5552831500,7A702C3919=0102100F5552831500,7A702C3B33=0102100F5552831500,7A702C2E0223=0102100F5552831500,7A702C03032F=0102100F55528315006C,7A702C2E262E=0102100F555283156C,2F80267A70032E=0102100F555283156C,7A2C71707D0F0B=0102100F555283156C,7A701D3B=0102100F555283156C,7A702C2E030116=01100F1571292C20,2F80267A703200=01100F1571292C20,7A7055370A=01100F1571292C2000,7A701B22=01100F1571292C2000,7A701E04=01100F1571292C2000,416D1336=01100F1571292C20007A70556C,391A=01100F1571292C20007A6C7055,1C24=01100F1571292C207A7055,2F80260D2E=01100F15712920,7A702C2E2D0A=01100F15712920,7A702C2E2800=01100F15712920027A7055,2C2E251E=01100F157129207A70556C,2C2E1228=01100F157129207A70556C,416D2C2E050A=01100F5220,7A70550000=01100F5220,616D2624=01100F5220,616D2F80267A702804=01100F5220006C,7A70550F06=01100F52207A70556C,2C2E2F1E=01100F52207A70556C,2C2E1014=01100F527A70556C,032C20161E=01100F712920,7A702C2E0A0A=01100F71522C2920,616D161C=0070100F292C20,01020F04=0006100F7020,7A7D01026D183A=0006100F7020,616D0102201C=0006100F20,7A2C71707D01026D1D37=000170100F292C20,2F18=000170100F292C802038,161D=00014B0F,032C201338=00014B0F2C2002,2F80261728=00014B0F20,2C2E0F0A=00014B0F20,7A2C71707D1833=00014B0F20,7A702C1407=00014B0F20,7A702C1401=0001060838,2C2E1123=0001060838,416D032C202019=000106082C38,2C31=000106082C38,391F=000106082C38,2523=000106082C38,7A70416D1C29=000106082C38020F71295283,3811=000106082C38020F71295283,7A700937=000106082C386C550F197120,7A700117=00010252100F29202C7A706C55,1337=00010206700F202C807138152952,3A2E=00010206100F7020,616D0610=00010206100F20,7A2C71707D0328=00010206100F20,7A700F01=00010206100F20,7A702C3310=00010206100F20,7A702C2E3139=0001100F298020,7A702C2625=00010870556C100F2C20,1909=00010870556C100F2C20,391E=00010870556C100F2C20,2124=00010870556C100F2C20,2F80267A7D0F00=00010870556C100F2C2038,2D09=00010870556C100F2C2002,0500=00010870556C100F2C207A,2C39=00010870556C100F2C207A,2518=00010870556C100F2C207A,0B0C=00010870556C100F2C207A,2F80262911=00010870556C100F7A,032C200007=000108556C100F2C2029,7A700A07=000108556C100F2C2029,7A701332=000108556C100F20,2C2E7A70100D=000108556C100F20,7A702C2E2239=000108556C100F20,7A702C2E0A01=000108556C100F20,7A702C2E380D=0001086C100F2C20,7A70551D36=0001086C100F2C20,7A70552F1F=000108100F70552920,010D=000108100F70552920,616D0507=000108100F705529202C80713815,0B0D=000108100F705529202C8071157A,3133=000108100F7055292002,2309=000108100F7055292002,416D0002=000108100F705529207A,2F80263202=000108100F705529207A,2F80263638=000108100F705529207A,2C2E2A1A=000108100F705529207A38,2F80262414=000108100F705529207A6C,2C2E2E14=000108100F552920,7A2C71707D1404=000108100F552920,7A2C71707D0B17=000108100F552920,7A70330D=000108100F552920,7A702C172F=000108100F552920,7A702C2E3707=000108100F5529206C,616D7A702C2E302E=6C55700F197120,2C2E7A7D0C22=6C55700F197120,7A7D01026D1E02=6C550F297120,000106037A703923=6C550F297120,7A702C2E03230A=6C550F1920,7A2C71707D240C=6C550F19200210,7A2C71707D000106031A16=6C550F197120,000106037A701513=6C550F197120,7A703A2B=6C550F197120,7A701837=6C550F197120,7A702F23=6C550F197120,7A702F22=6C550F197120,7A702D07=6C550F197120,7A702C2E3922=6C550F197120,7A700102093A=6C550F197120,7A70000106031B19=6C550F197120,616D7A70071F=6C550F197120,616D7A702C2E212B=6C550F197120,616D7A702C2E000106032734=6C550F197120292C,000106037A700325=6C550F1971200001020610,7A702C122B=6C550F19712008,000106037A702411=6C100F2952,7A7055032C20010E=100F2C29528320,01023704=100F2C29528320,0102363A=100F292C206C55,000106037A702B26=100F2920,7A2C71707D01026D302C=100F7055528315,01021E08=100F7055528315,01022730=100F7055528315,01021512=100F7055528315,010200352C=100F7055528315,7A7D01026D2F1C=100F7055528315,7A7D01026D0222=100F70555283153800,01026D2412=100F70555283157A,01022230=100F70555283157A,0102060E=100F70555283157A6C,01022C3A=100F70555283157A6C,01026D1F12=100F1571292C20,01026D3B36=100F1571292C20,01026D1516=100F1571292C20,000106037A702302=100F1571292C20,000106037A701D32=100F1571292C20,000106082F8026330E=100F1571292C20,000106086D2A1C=100F1571292C20,7A7001026D313A=100F1571292C20,7A7000010603341C=100F1571292C20,416D7A70000106032B2A=100F1571292C2002,000106037A700326=100F1571292C20556C,000106037A70273A=100F1571292C2000,01026D0722=100F1571292C2000,01026D2E0C=100F1571292C206C55,000106037A701408=100F1571292C207A706C55,01022020=100F1571292C207A706C55,000106081726=100F1571292C207A6C7055,0102290E=100F1571292C207A6C7055,000106080932=100F1571292C207A6C7055,000106080D26=100F52,00010608032C20100E=100F5283153800,01027A70550B16=100F5220,2F8026000106081122=100F5220,6D010200133A=100F5220,01026D1F16=100F5220,000106037A703132=100F5220,000106083B3A=100F5220,000106082522=100F5220,00010608190A=100F5220,000106082C2E021C=100F5220,7A70000106030936=100F52202C,01026D3A2C=100F52206C55,01027A701A0C=100F52206C55,000106037A700E30=100F52206C55,000106037A700A08=100F52207A706C55,000106083204=100F52207A6C5570,01026D0B0E=100F55528315,01027A2C71707D0004=100F55528315,7A2C71707D01026D1D3A=100F55528315,7A2C71707D01026D3418=100F5552831500,7A2C71707D0102201D=100F712920,7A702C2E00010608030E36=100F71522C2920,01023635=100F715229,00010608032C20021B=7A70550F2C715220,1900=7A70550F715220,2C2E0A09=7A70556C,00010608172C=7A70556C,00010608032C200B14=7A70556C,00010608032C202914=7A70556C0F197120,2C2E0938=7A70556C0F197120,000106082C2E111E=7A70556C000108,0502=7A70556C000108,2F80260D2F=7A70556C0001082C807138152952,2D0B=7A70556C0001082C807138152952,3633=7A70556C0001082C807115295256,0C18=7A70556C0008,01020218=7A70556C0008,0102302F=7A70556C100F295220,000106082C35=7A70556C100F295220,000106081E0B=7A70556C100F2952202C807115,3130=7A70556C100F29522002,000106080506=7A70556C100F29522001,2C2E330F=7A70556C100F29522001022C8071,010F=7A70556C100F295220010200,0435=7A70556C100F295280713815,032C200614=7A70556C100F295201,032C20122C=7A70556C100F29520102,032C203B39=7A706C550F297120,0F05=7A706C550F297102,032C200D25=7A706C550F19712001,616D2233=7A706C550F19712000010608,2626=7A6C70550F197120,01021A17=7A6C70550F197120,00010608262F=7A6C70550F1971202C29,000106083529=7A6C70550F19712002,616D000106082D08=7A6C70550F197120103800,0102341F=7A6C55700F197120,2C2E172B=082C38,7A7055000106030D27=082C38,7A70000106030827=08556C100F2C20,000106037A702803=08556C100F2C20,000106037A701013=08556C100F2C20,7A7000010603262B=08556C100F2C20,7A7000010603240D=08556C100F2C20,7A70000106033631=08556C100F2C20,7A70000106030431=08556C100F20,7A702C2E000106031D35=08100F552920,000106037A701335=08100F552920,000106037A700612=08100F55292038,000106037A70",s.SHEN_SHA=["{s.none}","{sn.tianEn}","{sn.muCang}","{sn.shiYang}","{sn.shengQi}","{sn.yiHou}","{sn.qingLong}","{sn.zaiSha}","{sn.tianHuo}","{sn.siJi}","{sn.baLong}","{sn.fuRi}","{sn.xuShi}","{sn.mingTang}","{sn.yueSha}","{sn.yueXu}","{sn.xueZhi}","{sn.tianZei}","{sn.wuXu}","{sn.tuFu}","{sn.guiJi}","{sn.xueJi}","{sn.yueDe}","{sn.yueEn}","{sn.siXiang}","{sn.wangRi}","{sn.tianCang}","{sn.buJiang}","{sn.yaoAn}","{sn.wuHe}","{sn.mingFeiDui}","{sn.yueJian}","{sn.xiaoShi}","{sn.tuHu}","{sn.wangWang}","{sn.tianXing}","{sn.tianDe}","{sn.guanRi}","{sn.jiQi}","{sn.yuYu}","{sn.daShi}","{sn.daBai}","{sn.xianChi}","{sn.zhuQue}","{sn.shouRi}","{sn.tianWu}","{sn.fuDe}","{sn.liuYi}","{sn.jinTang}","{sn.jinKui}","{sn.yanDui}","{sn.zhaoYao}","{sn.jiuKong}","{sn.jiuKan}","{sn.jiuJiao}","{sn.xiangRi}","{sn.baoGuang}","{sn.tianGang}","{sn.siShen}","{sn.yueXing}","{sn.yueHai}","{sn.youHuo}","{sn.chongRi}","{sn.shiDe}","{sn.minRi}","{sn.sanHe}","{sn.linRi}","{sn.tianMa}","{sn.shiYin}","{sn.mingFei}","{sn.siQi}","{sn.diNang}","{sn.baiHu}","{sn.yueDeHe}","{sn.jingAn}","{sn.yuTang}","{sn.puHu}","{sn.jieShen}","{sn.xiaoHao}","{sn.tianDeHe}","{sn.yueKong}","{sn.yiMa}","{sn.tianHou}","{sn.chuShen}","{sn.yuePo}","{sn.daHao}","{sn.wuLi}","{sn.tianLao}","{sn.yinDe}","{sn.fuSheng}","{sn.tianLi}","{sn.zhiSi}","{sn.yuanWu}","{sn.yangDe}","{sn.tianXi}","{sn.tianYi}","{sn.siMing}","{sn.yueYan}","{sn.diHuo}","{sn.fourHit}","{sn.daSha}","{sn.daHui}","{sn.tianYuan}","{sn.liuHe}","{sn.wuFu}","{sn.shengXin}","{sn.heKui}","{sn.jieSha}","{sn.siQiong}","{sn.gouChen}","{sn.chuShuiLong}","{sn.baFeng}","{sn.tianShe}","{sn.wuMu}","{sn.baZhuan}","{sn.yinCuo}","{sn.siHao}","{sn.yangCuo}","{sn.siFei}","{sn.sanYin}","{sn.xiaoHui}","{sn.yinDaoChongYang}","{sn.danYin}","{sn.guChen}","{sn.yinWei}","{sn.xingHen}","{sn.liaoLi}","{sn.jueYin}","{sn.chunYang}","{sn.qiNiao}","{sn.suiBo}","{sn.yinYangJiaoPo}","{sn.yinYangJuCuo}","{sn.yinYangJiChong}","{sn.zhuZhen}","{sn.yangCuoYinChong}","{sn.qiFu}","{sn.tianGou}","{sn.jiuHu}","{sn.chengRi}","{sn.tianFu}","{sn.guYang}","{sn.jueYang}","{sn.chunYin}","{sn.liuShe}","{sn.yinShen}","{sn.jieChu}","{sn.yangPoYinChong}"],s.DAY_SHEN_SHA="100=010203040506,0708090A0B101=010C0D,0E0F101112131415102=16011718191A1B1C1D1E,1F20212223103=24011825261B271D1E,28292A2B104=012C2D2E2F3031,3233343536105=3738,393A3B3C3D123E106=3F404142434445,464748107=494A4B4C4D,4E108=4F5051524C4D5345,54555657109=58595345,5A5B12565C10A=5D415E5F60,616263640B6510B=0266676869,6A6B6C0A3E6D10C=1602171803041B05061E,07086E10D=24181B0C0D,0E0F1011126F13141510E=70191A1C1D,1F2021222310F=0125261B271D,28292A2B110=012C2D2E2F3031,3233343536111=49013738,393A3B3C3D123E112=4F50013F404142434445,4648113=014A4B,4E6E114=51524C4D5345,54550B5657115=0158595345,5A5B12565C116=1601185D415E5F60,61626364117=24021867681B69,6A6B3E6D118=0203040506,0708119=1B0C0D,0E0F10111213141511A=191A1B1C1D1E,1F2021222311B=4925261B271D1E,28292A11C=4F502C2D2E2F3031,323334353611D=3738,393A3B3C3D123E11E=3F404142434445,460B4811F=4A4B,4E71120=16171851524C4D5345,545556121=241858595345,5A5B12565C122=5D415E5F60,61626364123=0267681B69,6A6B3E6D124=0203041B05061E,070847125=491B0C0D,0E0F101112131415126=4F50191A1C1D1E,1F20212223127=2526271D1E,28292A2B128=2C2D2E2F3031,32333435360B129=3738,393A3B3C3D123E12A=1617183F404142434445,464812B=24184A4B,4E7212C=51524C4D53,5455565712D=0158595345,5A5B12565C12E=015D415E5F60,616263647312F=49010267681B69,6A6B3E6D130=4F500102030405061E,070874131=010C0D,0E0F101112131415726E132=191A1C1D1E,1F2021220B722375133=2526271D1E,28292A2B134=1617182C2D2E2F3031,3233343536135=24183738,393A3B3C3D126F3E136=3F4041424344,4648137=4A4B,4E72138=51524C4D5345,545576567257139=4958595345,5A5B7612565C7713A=4F505D415E5F60,6162636413B=02676869,6A6B3E6D200=1601025D60,393B28292A11090A201=0103041A1B4A,123435360B6D202=011819681B4C1D061E,3D1014203=011718252F591D0D1E,1F20213233204=012C26,3C23205=493751522D2E69,121364223E2B206=503F4005311E,6A3A5A5B207=5841440C38,4615208=431C4D45,6B4E5648209=27534B45,545507086162125620A=16666730,0E0F635720B=0241425E5F1B,6C0A0B3E5C20C=02185D1B601E,393B28292A116E20D=171803041B4A,126F3435366D20E=7019684C1D06,3D101420F=4901252F591D0D,1F2021323378210=50012C26,3C23211=013751522D2E69,121364223E2B212=013F40053145,6A3A5A5B213=015841440C38,46156E214=16431C4D5345,6B4E5648215=27534B45,545507086162120B5648216=18671B30,0E0F6357217=02171841425E5F1B,3E5C218=025D60,393B28292A11219=4903041A1B4A,123435366D21A=5019681B4C1D061E,3D101421B=252F591D0D45,1F2021323321C=2C26,3C2321D=3751522D2E69,121364223E2B21E=163F40053145,6A3A5A5B21F=5841440C38,467147150B220=18431C4D5345,6B4E5648221=171827534B45,5455070861621256222=6730,0E0F6357223=490241425E5F1B,3E5C224=50025D1B601E,393B28292A11225=03041A4A,123435366D226=19684C1D061E,3D1014227=252F591D0D1E,1F20213233228=162C26,3C23229=3751522D2E69,121364220B3E2B22A=183F40053145,6A3A5A5B22B=17185841440C38,46157222C=431C4D53,6B4E564822D=490127534B45,54550708616212567922E=5001671B30,0E0F635722F=010241425E5F,3E5C230=01025D601E,393B28292A1174231=0103041A4A,1234353647726E6D232=1619684C1D061E,3D1014233=252F591D0D1E,1F202132330B75234=182C26,3C23235=17183751522D2E69,126F1364223E2B236=3F400531,6A3A5A5B237=495841440C38,461572238=50431C4D5345,6B4E76567248239=27534B45,5455070861627612567323A=6730,0E0F635723B=0241425E5F,3E5C300=0102415E5F1A1B69,090A471457301=011B05,6A125C302=5001185D19515203042F0C1D601E,323315303=4F490118251C1D1E,3C5A5B106D304=012C2706,1F20213B710B787A305=58372668300D,6B123E306=173F402D2E45,07086423307=00,393A0E2B308=24164142444A533145,61624622567B309=674C533845,28292A4E12135630A=431B594D,5455633435364830B=021B27,3D116C0A3E30C=500218415E5F1A1B691E,146E5730D=4F49181B05,6A126F5C30E=705D19515203042F0C1D60,3233150B30F=01251C1D,3C5A5B106D310=01172C2706,1F20213B7C311=0158372668300D,6B123E312=2416013F402D2E45,0708476423313=01,393A0E0F6E2B314=4142444A533145,61624622567D315=66671B4C533845,28292A4E121356316=5018431B594D,54556334353648317=4F4902181B4B,3D113E318=02415E5F1A69,140B57319=1B05,6A125C31A=175D19515203042F0C1D601E,32331531B=251C1D1E,3C5A5B106D31C=24162C2706,1F20213B31D=58372668300D,6B123E31E=3F402D2E45,0708642331F=00,393A0E0F2B320=50184142444A533145,61624622567E321=4F4918671B4C533845,28292A4E121356322=43594D,5455633435360B48323=021B4B,3D113E324=0217415E5F1A691E,1457325=05,6A125C326=58165D19515203042F0C1D601E,323315327=251C1D1E,3C5A5B106D328=2C2706,1F20213B75329=58372668300D,6B123E32A=50183F402D2E45,0708642332B=4F4918,393A0E0F722B32C=4142444A5331,616246220B567B32D=01671B4C533845,28292A4E12135632E=011743594D,5455633435364832F=01024B,3D113E330=24160102415E5F1A691E,741457331=0105,6A12726E5C332=5D19515203042F0C1D601E,32331572333=251C1D1E,3C5A5B106D334=50182C2706,1F20213B335=4F491858372668300D,6B126F3E336=3F402D2E,0708640B23337=00,393A0E0F722B338=174142444A533145,616246762256727B73339=674C533845,28292A4E7612135633A=241643594D,5455633435364833B=024B,3D113E400=5001431B,5A5B1248401=490141425E5F2F4B,32336314402=4F01024A1D1E,396B3C130B57403=01025803044C1D1E,07085C404=01183F5D5960,0E0F10127F405=171819,1F20213E6D788075406=162526690645,28292A407=242C2D2E050D,6162343536647B408=3767680C5345,6A3A3B3D12155623409=4041441C5345,46562B40A=501B274D31,4E1140B=4951521A1B3038,5455223E40C=4F431B1E,5A5B0981120B6E4840D=41425E5F2F4B,3233631440E=02184A1D,396B3C135740F=010217185803044C1D,0708475C410=16013F585960,0E0F1012411=240119,1F20213E6D412=012526690645,28292A413=012C2D2E050D,6162343536646E7B414=503767681B0C5345,6A3A3B3D126F155623415=494041441B1C5345,46562B416=4F1B274D31,4E11710B417=51521A1B3038,54556C81223E418=18431B,5A5B1248419=171841425E5F2F4B,3233631441A=16024A1D1E,396B3C135741B=24025844044C1D1E,07085C41C=3F5D5960,0E0F101241D=19,1F20213E6D41E=50702526690645,28292A41F=492C2D2E050D,6162343536647D420=4F663767681B0C5345,6A3A3B3D12150B5623421=4041441B1C5345,46562B422=181B274D31,4E11423=171851521A3038,5455223E424=16431E,5A5B1248425=2441425E5F2F4B,32336314426=024A1D1E,396B3C1357427=025803044C1D1E,07085C428=503F5D5960,0E0F10126F429=4919,1F20213E6D42A=4F2526690645,28292A0B8242B=2C2D2E050D,616234353664727E7342C=183767681B0C53,6A3A3B3D1215562342D=0117184041441C5345,4647562B42E=1601274D31,4E1142F=240151521A3038,5455223E430=01431E,5A5B761248431=0141425E5F2F4B,32336314726E432=50024A1D1E,396B3C137257433=49025844044C1D1E,0708745C434=4F3F5D5960,0E0F10120B435=19,1F20213E6D75436=1825266906,28292A82437=17182C2D2E050D,616234353664727B73438=163767680C5345,6A3A3B3D1215567223439=244041441C5345,46562B43A=274D31,4E1143B=51521A3038,545576223E83500=012F4D31,54550708323312501=01586938,0E0F3C63502=16010241435E5F051D1E,641448503=01020C1D4B1E,6A28292A353615220B504=0117183F03041C,123457505=181927,3D103E5C506=5D25306045,1F20213B616213507=492C2667,6D508=503751522D2E530645,1256509=401B4A530D45,393A5A5B115650A=4142441A1B4C,462350B=681B59,6B4E3E2B50C=162F4D311E,5455070832330981126E50D=586938,0E0F3C0B50E=02171841435E5F051D,64144850F=0102180C1D4B,6A28292A35361522510=013F03041C,123457511=49011927,3D103E5C512=50015D25306045,1F20213B616213513=012C26671B,6E6D514=3751522D2E1B530645,126F56515=401B4A530D45,393A5A5B1156516=164142441A1B4C,467123517=6859,6B4E6C810B3E2B518=17182F4D31,54550708323312519=18586938,0E0F3C6351A=0241435E5F051D1E,64144851B=49020C1D4B1E,6A28292A3536152251C=503F03041C,12345751D=1927,3D103E5C51E=705D25306045,1F20213B61621351F=2C26671B,6D520=163751522D2E1B530645,1256521=404A530D45,393A5A5B110B56522=17184142441A1B,4623523=186859,6B4E3E2B524=2F4D311E,54550708323312525=49586938,0E0F3C63526=500241435E5F051D1E,641448527=020C1D4B1E,6A28292A35361522528=3F03041C,126F344757529=1927,3D103E5C52A=165D25306045,1F20213B616213658452B=662C2667,0B726D52C=17183751522D2E1B5306,125652D=0118404A530D45,393A5A5B115652E=014142441A4C,462352F=49016859,6B4E3E2B530=50012F4D311E,545507083233761285531=01586938,0E0F3C63726E532=0241435E5F051D1E,64147248533=020C1D4B1E,6A28292A7435361522534=163F03041C,123457535=1927,3D100B3E5C536=16185D253060,1F20213B61621378537=182C2667,726D538=3751522D2E530645,125672539=49404A530D45,393A5A5B115653A=504142441A4C,46472353B=681B59,6B4E763E2B600=241601304D,3C28292A4E1235361423601=01,54553B63342B602=0102681D311E,3D603=010241425E5F4A1D381E,64604=01183F434C,39127148605=4F49181951520304594B,61620B3E73606=50256745,5A5B102257607=172C69,1F20215C608=5D37261B05536045,6B111256609=402D2E1A1B0C5345,6B11125660A=24161B1C06,6A3A0E0F1360B=5841442F270D,3233463E60C=304D1E,3C28292A4E0981123536146E2360D=00,54553B63342B60E=0218681D31,3D60F=4F4901021841425E5F4A1D38,640B610=50013F434C,391248611=01171951520304594B,61623E612=0125671B45,5A5B102257613=012C1B69,1F20216E5C614=24165D37261B05536045,6B11126F56615=402D2E1A1B0C5345,070815566D616=1C06,6A3A0E0F1347617=5841442F270D,3233466C813E618=18304D,3C28292A4E1235361423619=4F4918,54553B63340B2B61A=5002681D311E,3D61B=021741425E5F4A1D381E,6461C=3F434C,39124861D=1951520304594B,61623E61E=24167025671B45,5A5B10225761F=2C1B69,1F20215C620=5D372605536045,6B111256621=402D2E1A0C5345,070815566D622=181B1C06,6A3A0E0F13623=4F49185841442F270D,3233460B3E624=50304D1E,3C28292A4E1235361423625=17,54553B63342B626=02681D311E,3D627=0241425E5F4A1D381E,64628=24163F434C,39126F48629=1951520304594B,61623E62A=256745,5A5B1022578662B=2C69,1F2021725C7562C=185D37261B055360,6B11125662D=4F490118402D2E1A0C5345,0708150B566D62E=50011C06,6A3A0E0F1362F=01175841442F270D,3233463E630=01304D1E,3C28292A4E761235361423631=01,54553B6334726E2B87632=241602681D311E,3D72633=0241425E5F4A1D381E,7464634=3F434C,39124748635=1951520304594B,61623E6573636=661825671B,5A5B10225786637=4F49182C69,1F20210B725C75638=505D372605536045,6B11125672639=17402D2E1A0C5345,070815566D63A=1B1C06,6A3A0E0F1363B=5841442F270D,323346763E700=0103404142445906,46701=01020D,4E14702=50015152694D1D1E,54553B23703=4901051D1E,5A5B2B1288704=4F0102415E5F0C31,6162636415705=6667681C38,6A6B3E706=4303042745,07080B48707=02304B,0E0F101112708=16171819,1F20135657709=24185825261B5345,28292A353622565C70A=025D2C2D2E2F4A60,3233893470B=374C,393A3C3D3E6D70C=503F4041424459061E,466E70D=49020D,4E1470E=4F5152694D1D,54553B70F=01051D,5A5B12132B710=0102415E5F0C31,61626364150B65711=0167681C38,6A6B3E712=162417184303041B2745,070848713=240102181B304B,0E0F1011126E714=191A1B5345,1F20215657715=5825261B5345,28292A353622565C717=49374C,393A3C3D126F473E6D718=4F3F404142445906,46719=020D,4E1471A=515269,1D1E71B=051D1E,5A5B12132B71C=16021718415E5F0C31,616263641571D=241867681B1C38,6A6B3E71E=4303041B2745,07084871F=021B30,0E0F101112720=50191A5345,1F20215657721=495825265345,28292A353622565C722=4F025D2C2D2E2F4A60,32338934723=374C,393A3C3D123E6D724=3F4041424459061E,46098A0B725=020D,4E7114726=1617185152694D1D1E,54553B23727=2418051D1E,5A5B12132B728=02415E5F0C31,616263641573729=67681B1C38,6A6B3E72A=504303042745,07084872B=4902304B,0E0F1011126F7272C=4F70191A1B,1F2021565772D=015825265345,28292A353622565C72E=01025D2C2D2E2F4A60,323389340B72F=01374C,393A3C3D6C8A123E6D730=160117183F4041424459061E,46731=240102180D,4E14726E732=5152694D1D1E,54553B767223733=051D1E,5A5B7612132B77734=5002415E5F0C31,6162636415735=4967681C38,6A6B473E736=4F4303041B27,7448737=02304B,0E0F10111272738=191A5345,1F20210B56725775739=5825265345,28292A353622565C73A=160217185D2C2D2E2F4A60,3233893473B=2418374C,393A3C3D123E6D800=50013F5D402760,6A3A5A5B22801=490102414430,466D802=014D1D061E,6B4E4714803=011D0D1E,54550708616212804=0102671B4A,0E0F6323805=41425E5F4C,8B2B806=16593145,3928292A113536807=025803041A1B38,1234130B808=181943681B695345,3D105648809=1718252F0553534B45,1F20213B32335680A=50022C260C,3C155780B=493751522D2E1C,12643E5C80C=3F5D4027601E,6A3A5A5B226E80D=02414430,466D80E=4D1D06,6B4E1480F=011D0D,5455070861621279810=16010266674A,0E0F6323811=0141425E5F1B4C,0B3E2B812=01181B593145,3928292A113536813=010217185803041A1B38,1234136E814=501943681B695345,3D105648815=49252F05534B45,1F20213B323356816=022C260C,3C1557817=3751522D2E1C,126F643E5C818=3F5D402760,6A3A5A5B22819=02414430,466D81A=164D1D061E,6B4E1481B=1D0D1E,545507086162120B6581C=0218671B4A,0E0F632381D=171841425E5F1B4C,3E2B81E=501B593145,3928292A11353681F=49025D03041A38,123413820=194368695345,3D10475648821=252F05534B45,1F20213B323356716=50025D2C2D2E2F4A60,32338934822=022C260C,3C1557823=3751522D2E1C,12643E5C824=163F5D4027601E,6A3A5A5B098A22825=02414430,46710B6D826=184D1D061E,6B4E14827=17181D0D1E,54550708616212828=5002671B4A,0E0F6323829=4941425E5F4C,3E2B82A=593145,3928292A11353682B=025803041A38,126F34137282C=701943681B6953,3D10564882D=01252F05534B45,1F2021613233567882E=1601022C260C,3C155782F=013751522D2E1C,6C8A12640B3E5C830=01183F5D4027601E,6A3A5A5B22831=01021718414430,46726E6D832=504D1D061E,6B4E761472833=491D0D1E,545507086162761273834=02674A,0E0F6323835=41425E5F4C,3E2B836=1B5931,3928292A11743536837=025803041A38,12341372838=16194368695345,3D10567248839=252F05534B45,1F20213B32330B567583A=02182C260C,3C155783B=17183751522D2E1C,12643E5C900=013F408C2E4C,0708641457901=010259,393A0E0F5C902=2416015D4142441D601E,61624635367B903=0167691D1E,28292A4E126D904=01021B054D06,5455637134220B905=580C0D,3D11153E906=17415E5F1A1B1C45,23907=4F49021B27,6A3B12472B908=501819515203042F30533145,323356909=1825533845,3C5A5B105690A=022C43,1F2021487C90B=3726684A4B,6B12133E90C=24163F402D2E4C1E,070864146E5790D=0259,393A0E0F5C90E=5D4142441D60,61624635360B7B90F=0167691D,28292A4E126D910=0102171B054D06,5455633422911=4F4901581B0C0D,3D11153E912=500118415E5F1A1B1C45,23913=0102181B27,6A3B126E2B914=19515203042F30533145,323356915=25533845,3C5A5B1056916=2416022C43,1F202148917=3726684A4B,6B126F133E918=3F402D2E4C,070864140B57919=0259,393A0E0F5C91A=175D4142441D601E,61624635367D91B=4F4966671B691D1E,28292A4E126D91C=5002181B054D06,545563342291D=18581B0C0D,3D11153E91E=415E5F1A1C45,2391F=0227,6A3B122B920=241619515203042F305331,323356921=25533845,3C5A5B1056922=022C43,1F20210B48788D923=3726684A4B,6B12133E924=173F402D2E4C1E,0708098A641457925=4F49022E,393A0E0F475C926=50185D4142441D601E,61624635367E927=18671B691D1E,28292A4E126D928=02054D06,5455633422929=580C0D,3D11153E92A=2416415E5F1A1C45,2392B=0227,6A3B126F722B92C=7019515203042F305331,32330B5692D=0125533845,3C5A5B105692E=0102162C43,1F2021487592F=4F49013726684A4B,6B6C8A12133E930=5001183F402D2E4C1E,0708641457931=01021859,393A0E0F726E5C932=5D4142441D601E,616246763536727B73933=67691D1E,28292A4E76126D934=241602054D06,5455633422935=580C0D,3D11153E936=415E5F1A1B1C,740B23937=0227,6A3B12722B938=1719515203042F30533145,32335672939=4F4925533845,3C5A5B105693A=5002182C43,1F20214893B=183726684A4B,6B12133EA00=160170182543261C,28292A48A01=240117182C2D2E274B,61623464147BA02=013F376768301D1E,6A3A3D1257A03=01584041441D1E,465CA04=015D4D60,4E1113A05=4951521A1B4A,54553E6DA06=4F501B4C0645,5A5B12A07=41425E5F2F590D,32336322A08=025345,396B3C0B5623A09=020304695345,0708562BA0A=16180531,0E0F10126FA0B=241618190C38,1F20213B3536103EA0C=2543261C1E,28292A6E48A0D=2C2D2E274B,61623464147BA0E=3F376768301D,6A3A3D124757A0F=4924584041441B1D,465CA10=4F50015D1B4D60,4E1113A11=0151521A1B4A,54553E6DA12=011B4C0645,5A5B120BA13=0141425E5F2F590D,323363226EA14=1602185345,396B3C5623A15=240217180304695345,0708562BA16=0531,0E0F1012A17=190C38,1F20213B3536153EA18=2543261C,28292A4882A19=49503F3767681B301D1E,6A3A3D1257A1A=4F503F3767681B301D1E,6A3A3D1257A1B=584041441B1D1E,465CA1C=5D1B4D60,4E1171130BA1D=51521A1B4A,54553E6DA1E=16184C0645,5A5B12A1F=24171841425E5F2F590D,32336322A20=025345,396B3C5623A21=020304695345,0708562BA22=0531,0E0F10128EA23=49190C38,1F20213B3536153E788FA24=4F502543261C1E,28292A48A25=2C2D2E274B,61623464147DA26=663F3767681B301D1E,6A3A3D120B57A27=584041441B1D1E,465CA28=16185D4D60,4E1113A29=24171851521A4A,54553E6DA2A=4C0645,5A5B7612A2B=41425E5F2F590D,3233632272A2C=0253,396B3C475623A2D=1601020304695345,0708562BA2E=4F50010531,0E0F1012A2F=01190C38,1F20213B3536153EA30=012543261C1E,28292A09900B4882A31=012C2D2E274B,6162346414726E7E73A32=16183F376768301D1E,6A3A3D126F7257A33=2417185D4041441D1E,465CA34=5D4D60,4E1113A35=51521A4A,5455763E6D83A36=4C06,5A5B12A37=4941425E5F2F590D,3233632272A38=4F50029145,396B3C567223A39=020304695345,070874562BA3A=0531,0E0F10120BA3B=190C38,1F20213B6C903536153E75B00=01701718254A31,1F20216162B01=0118582C26,674C38B02=50013F375152432D2E591D1E,121448B03=4901401B1D4B1E,393A5B11B04=014142441A69,4657B05=681B05,6B4E3E5CB06=682F0C4D6045,5455070832331215B07=1C,0E0F3C636DB08=1602415E5F27530645,3536136456B09=0230530D45,6A28292A0B56B0A=17180304,126F342223B0B=1819,3D103E2BB0C=50254A311E,1F202161626EB0D=49582C26,671B4C38B0E=3F375152432D2E591D,121448B0F=01401B1D4B,393A3B5A5B11B10=014142441A1B69,4657B11=01681B05,6B4E3E5CB12=16015D2F0C4D6045,5455070832331215B13=011C,0E0F3C630B6E6DB14=021718415E5F27530645,3536136456B15=021830530D45,6A28292A56B16=500304,12342223B17=4919,3D103E2BB18=254A31,1F4E21616278B19=582C26,671B4C38B1A=3F375152432D2E1B591D1E,121448B1B=401B1D4B1E,393A3B5A5B1147B1C=164142441A1B69,467157B1D=6805,6B4E0B3E5CB1E=17185D2F0C926045,5455070832331215B1F=181C,0E0F3C636DB20=5002415E5F27530645,3536136456B21=490230530D45,6A28292A56B22=0304,12342223B23=19,3D103E2BB24=254A311E,1F20136162B25=582C26671B4C38,00B26=163F375152432D2E1B591D1E,121448B27=401D4B1E,393A3B5A5B110BB28=17184142441A69,4657B29=186805,6B4E3E5CB2A=505D2F0C4D6045,54550708323376121585B2B=491C,0E0F3C63726DB2C=02415E5F275306,3536136456B2D=010230530D45,6A28292A56B2E=010304,12342223B2F=0119,3D103E2BB30=1601254A311E,1F2021616209906584B31=0166582C26674C38,0B726EB32=17183F375152432D2E591D1E,126F147248B33=18401D4B1E,393A3B5A5B11B34=504142441A69,4657B35=49681B05,6B4E763E5CB36=5D2F0C4D60,5455070832331215B37=1C,0E0F3C63726DB38=02415E5F27530645,353613645672B39=0230530D45,6A28292A744756B3A=160304,12342223B3B=19,3D106C900B3E2BC00=500170661825670C,5A5B1013141523C01=4F4901182C1C,1F2021222BC02=011637261B271D311E,6B1112C03=01402D2E1A1B311D381E,0708C04=0143,6A3A0E0F7148C05=41442F4B,32334635360B3EC06=24164A4D45,3C28292A4E1257C07=174C,545563345CC08=025D6859536045,3D56C09=0241425E5F5345,4764566DC0A=50186906,393B126FC0B=4F4918581951520304050D,61623EC0C=25671B0C1E,5A5B101314156E23C0D=2C1B1C,1F2021222BC0E=3F37264B1D31,6B1112C0F=01402D2E1A1B301D38,07080BC10=241601431B,6A3A0E0F48C11=011741442F4B,32334635363EC12=014A4D45,3C28292A4E1257C13=014C,545563346E5CC14=5002185D6804536045,3D56C15=4F49021841425E5F5345,64566DC16=6906,393B12C17=581951524404050D,61623EC18=25670C,5A5B101314152386C19=2C1B1C,1F2021220B2BC1A=24163F37261B271D31,6B1112C1B=17402D2E1A1B301D381E,0708C1C=43,6A3A0E0F48C1D=41582F4B,32334635363EC1E=50184A4D45,3C28292A4E1257C1F=4F49184C,545563345CC20=025D6859536045,3D56C21=0241425E5F5345,64566DC22=6906,393B12C23=581951520304050D,61620B3EC24=241625671B0C1E,5A5B1013141523C25=172C1B1C,1F2021222BC26=3F3726271D311E,6B1112C27=402D2E1A301D381E,0708C28=501843,6A5B0E0F48C29=4F491841442F4B,32334635363EC2A=4A4D45,3C28292A4E761257C2B=4C,54556334725C93C2C=025D68595360,3D56C2D=010241425E5F5345,640B566DC2E=2416016906,393B12C2F=0117581951520304050D,61623EC30=0125670C,5A5B1009901314152386C31=012C1C,1F202122726E2B75C32=50183F3726271D311E,6B11126F72C33=4F4918402D2E1A301D381E,070847C34=431B,6A3A0E0F48C35=41442F4B,3233467635363EC36=4A4D,3C28292A4E1257C37=4C,545563340B725CC38=2416025D6859536045,3D5672C39=021741425E5F5345,7464566DC3A=6906,393B12C3B=581951520304050D,61626C903E6573";class u{constructor(t,e,n,r){this._day=u._ymd(t),this._name=e,this._work=n,this._target=u._ymd(r);}static _ymd(t){return 0>t.indexOf("-")?t.substring(0,4)+"-"+t.substring(4,6)+"-"+t.substring(6):t;}getDay(){return this._day;}setDay(t){this._day=u._ymd(t);}getName(){return this._name;}setName(t){this._name=t;}isWork(){return this._work;}setWork(t){this._work=t;}getTarget(){return this._target;}setTarget(t){this._target=u._ymd(t);}toString(){return this._day+" "+this._name+(this._work?"\u8C03\u4F11":"")+" "+this._target;}}let c=class{static _padding(t){return(t<10?"0":"")+t;}static _findForward(t){let e=c._DATA_IN_USE.indexOf(t);if(e<0)return null;let n=c._DATA_IN_USE.substring(e),r=n.length%c._SIZE;for(r>0&&(n=n.substring(r));0!==n.indexOf(t)&&n.length>=c._SIZE;)n=n.substring(c._SIZE);return n;}static _findBackward(t){let e=c._DATA_IN_USE.lastIndexOf(t);if(e<0)return null;let n=t.length,r=c._DATA_IN_USE.substring(0,e+n),i=r.length,o=i%c._SIZE;for(o>0&&(r=r.substring(0,i-o)),i=r.length;i-n!==r.lastIndexOf(t)&&i>=c._SIZE;)i=(r=r.substring(0,i-c._SIZE)).length;return r;}static _buildHolidayForward(t){let e=t.substring(0,8);return new u(e,c._NAMES_IN_USE[t.charCodeAt(8)-c._ZERO],t.charCodeAt(9)===c._ZERO,t.substring(10,18));}static _buildHolidayBackward(t){let e=t.length,n=t.substring(e-18,e-10);return new u(n,c._NAMES_IN_USE[t.charCodeAt(e-10)-c._ZERO],t.charCodeAt(e-9)===c._ZERO,t.substring(e-8));}static _findHolidaysForward(t){let e=[],n=c._findForward(t);if(null==n)return e;for(;0===n.indexOf(t);)e.push(c._buildHolidayForward(n)),n=n.substring(c._SIZE);return e;}static _findHolidaysBackward(t){let e=[],n=c._findBackward(t);if(null==n)return e;let r=n.length,i=t.length;for(;r-i===n.lastIndexOf(t);)e.push(c._buildHolidayBackward(n)),r=(n=n.substring(0,r-c._SIZE)).length;return e.reverse(),e;}static getHoliday(t,e=0,n=0){let r;return(r=0==e||0==n?c._findHolidaysForward((t+"").replace(/-/g,"")):c._findHolidaysForward(t+c._padding(e)+c._padding(n))).length<1?null:r[0];}static getHolidays(t,e=0){return 0==e?c._findHolidaysForward((t+"").replace(/-/g,"")):c._findHolidaysForward(t+c._padding(e));}static getHolidaysByTarget(t,e=0){return 0==e?c._findHolidaysBackward((t+"").replace(/-/g,"")):c._findHolidaysBackward(t+c._padding(e));}static _fixNames(t){t&&(c._NAMES_IN_USE=t);}static _fixData(t){if(!t)return;let e=[];for(;t.length>=c._SIZE;){let n=t.substring(0,c._SIZE),r=n.substring(0,8),i=c._TAG_REMOVE==n.substring(8,9),o=c.getHoliday(r);if(o){let t=-1;for(let e=0,n=c._NAMES_IN_USE.length;e<n;e++)if(c._NAMES_IN_USE[e]===o.getName()){t=e;break;}if(t>-1){let e=r+String.fromCharCode(t+c._ZERO)+(o.isWork()?"0":"1")+o.getTarget().replace(/-/g,"");c._DATA_IN_USE=c._DATA_IN_USE.replace(RegExp(e,"g"),i?"":n);}}else i||e.push(n);t=t.substring(c._SIZE);}e.length>0&&(c._DATA_IN_USE+=e.join(""));}static fix(t,e){e?(c._fixNames(t),c._fixData(e)):c._fixData(t);}},l=c;l.NAMES=["\u5143\u65E6\u8282","\u6625\u8282","\u6E05\u660E\u8282","\u52B3\u52A8\u8282","\u7AEF\u5348\u8282","\u4E2D\u79CB\u8282","\u56FD\u5E86\u8282","\u56FD\u5E86\u4E2D\u79CB","\u6297\u6218\u80DC\u5229\u65E5"],l.DATA="200112290020020101200112300020020101200201010120020101200201020120020101200201030120020101200202091020020212200202101020020212200202121120020212200202131120020212200202141120020212200202151120020212200202161120020212200202171120020212200202181120020212200204273020020501200204283020020501200205013120020501200205023120020501200205033120020501200205043120020501200205053120020501200205063120020501200205073120020501200209286020021001200209296020021001200210016120021001200210026120021001200210036120021001200210046120021001200210056120021001200210066120021001200210076120021001200301010120030101200302011120030201200302021120030201200302031120030201200302041120030201200302051120030201200302061120030201200302071120030201200302081020030201200302091020030201200304263020030501200304273020030501200305013120030501200305023120030501200305033120030501200305043120030501200305053120030501200305063120030501200305073120030501200309276020031001200309286020031001200310016120031001200310026120031001200310036120031001200310046120031001200310056120031001200310066120031001200310076120031001200401010120040101200401171020040122200401181020040122200401221120040122200401231120040122200401241120040122200401251120040122200401261120040122200401271120040122200401281120040122200405013120040501200405023120040501200405033120040501200405043120040501200405053120040501200405063120040501200405073120040501200405083020040501200405093020040501200410016120041001200410026120041001200410036120041001200410046120041001200410056120041001200410066120041001200410076120041001200410096020041001200410106020041001200501010120050101200501020120050101200501030120050101200502051020050209200502061020050209200502091120050209200502101120050209200502111120050209200502121120050209200502131120050209200502141120050209200502151120050209200504303020050501200505013120050501200505023120050501200505033120050501200505043120050501200505053120050501200505063120050501200505073120050501200505083020050501200510016120051001200510026120051001200510036120051001200510046120051001200510056120051001200510066120051001200510076120051001200510086020051001200510096020051001200512310020060101200601010120060101200601020120060101200601030120060101200601281020060129200601291120060129200601301120060129200601311120060129200602011120060129200602021120060129200602031120060129200602041120060129200602051020060129200604293020060501200604303020060501200605013120060501200605023120060501200605033120060501200605043120060501200605053120060501200605063120060501200605073120060501200609306020061001200610016120061001200610026120061001200610036120061001200610046120061001200610056120061001200610066120061001200610076120061001200610086020061001200612300020070101200612310020070101200701010120070101200701020120070101200701030120070101200702171020070218200702181120070218200702191120070218200702201120070218200702211120070218200702221120070218200702231120070218200702241120070218200702251020070218200704283020070501200704293020070501200705013120070501200705023120070501200705033120070501200705043120070501200705053120070501200705063120070501200705073120070501200709296020071001200709306020071001200710016120071001200710026120071001200710036120071001200710046120071001200710056120071001200710066120071001200710076120071001200712290020080101200712300120080101200712310120080101200801010120080101200802021020080206200802031020080206200802061120080206200802071120080206200802081120080206200802091120080206200802101120080206200802111120080206200802121120080206200804042120080404200804052120080404200804062120080404200805013120080501200805023120080501200805033120080501200805043020080501200806074120080608200806084120080608200806094120080608200809135120080914200809145120080914200809155120080914200809276020081001200809286020081001200809296120081001200809306120081001200810016120081001200810026120081001200810036120081001200810046120081001200810056120081001200901010120090101200901020120090101200901030120090101200901040020090101200901241020090125200901251120090125200901261120090125200901271120090125200901281120090125200901291120090125200901301120090125200901311120090125200902011020090125200904042120090404200904052120090404200904062120090404200905013120090501200905023120090501200905033120090501200905284120090528200905294120090528200905304120090528200905314020090528200909276020091001200910016120091001200910026120091001200910036120091001200910046120091001200910055120091003200910065120091003200910075120091003200910085120091003200910105020091003201001010120100101201001020120100101201001030120100101201002131120100213201002141120100213201002151120100213201002161120100213201002171120100213201002181120100213201002191120100213201002201020100213201002211020100213201004032120100405201004042120100405201004052120100405201005013120100501201005023120100501201005033120100501201006124020100616201006134020100616201006144120100616201006154120100616201006164120100616201009195020100922201009225120100922201009235120100922201009245120100922201009255020100922201009266020101001201010016120101001201010026120101001201010036120101001201010046120101001201010056120101001201010066120101001201010076120101001201010096020101001201101010120110101201101020120110101201101030120110101201101301020110203201102021120110203201102031120110203201102041120110203201102051120110203201102061120110203201102071120110203201102081120110203201102121020110203201104022020110405201104032120110405201104042120110405201104052120110405201104303120110501201105013120110501201105023120110501201106044120110606201106054120110606201106064120110606201109105120110912201109115120110912201109125120110912201110016120111001201110026120111001201110036120111001201110046120111001201110056120111001201110066120111001201110076120111001201110086020111001201110096020111001201112310020120101201201010120120101201201020120120101201201030120120101201201211020120123201201221120120123201201231120120123201201241120120123201201251120120123201201261120120123201201271120120123201201281120120123201201291020120123201203312020120404201204012020120404201204022120120404201204032120120404201204042120120404201204283020120501201204293120120501201204303120120501201205013120120501201205023020120501201206224120120623201206234120120623201206244120120623201209295020120930201209305120120930201210016120121001201210026120121001201210036120121001201210046120121001201210056120121001201210066120121001201210076120121001201210086020121001201301010120130101201301020120130101201301030120130101201301050020130101201301060020130101201302091120130210201302101120130210201302111120130210201302121120130210201302131120130210201302141120130210201302151120130210201302161020130210201302171020130210201304042120130404201304052120130404201304062120130404201304273020130501201304283020130501201304293120130501201304303120130501201305013120130501201306084020130612201306094020130612201306104120130612201306114120130612201306124120130612201309195120130919201309205120130919201309215120130919201309225020130919201309296020131001201310016120131001201310026120131001201310036120131001201310046120131001201310056120131001201310066120131001201310076120131001201401010120140101201401261020140131201401311120140131201402011120140131201402021120140131201402031120140131201402041120140131201402051120140131201402061120140131201402081020140131201404052120140405201404062120140405201404072120140405201405013120140501201405023120140501201405033120140501201405043020140501201405314120140602201406014120140602201406024120140602201409065120140908201409075120140908201409085120140908201409286020141001201410016120141001201410026120141001201410036120141001201410046120141004201410056120141001201410066120141001201410076120141001201410116020141001201501010120150101201501020120150101201501030120150101201501040020150101201502151020150219201502181120150219201502191120150219201502201120150219201502211120150219201502221120150219201502231120150219201502241120150219201502281020150219201504042120150405201504052120150405201504062120150405201505013120150501201505023120150501201505033120150501201506204120150620201506214120150620201506224120150620201509038120150903201509048120150903201509058120150903201509068020150903201509265120150927201509275120150927201510016120151001201510026120151001201510036120151001201510046120151004201510056120151001201510066120151001201510076120151001201510106020151001201601010120160101201601020120160101201601030120160101201602061020160208201602071120160208201602081120160208201602091120160208201602101120160208201602111120160208201602121120160208201602131120160208201602141020160208201604022120160404201604032120160404201604042120160404201604303120160501201605013120160501201605023120160501201606094120160609201606104120160609201606114120160609201606124020160609201609155120160915201609165120160915201609175120160915201609185020160915201610016120161001201610026120161001201610036120161001201610046120161001201610056120161001201610066120161001201610076120161001201610086020161001201610096020161001201612310120170101201701010120170101201701020120170101201701221020170128201701271120170128201701281120170128201701291120170128201701301120170128201701311120170128201702011120170128201702021120170128201702041020170128201704012020170404201704022120170404201704032120170404201704042120170404201704293120170501201704303120170501201705013120170501201705274020170530201705284120170530201705294120170530201705304120170530201709306020171001201710016120171001201710026120171001201710036120171001201710045120171004201710056120171001201710066120171001201710076120171001201710086120171001201712300120180101201712310120180101201801010120180101201802111020180216201802151120180216201802161120180216201802171120180216201802181120180216201802191120180216201802201120180216201802211120180216201802241020180216201804052120180405201804062120180405201804072120180405201804082020180405201804283020180501201804293120180501201804303120180501201805013120180501201806164120180618201806174120180618201806184120180618201809225120180924201809235120180924201809245120180924201809296020181001201809306020181001201810016120181001201810026120181001201810036120181001201810046120181001201810056120181001201810066120181001201810076120181001201812290020190101201812300120190101201812310120190101201901010120190101201902021020190205201902031020190205201902041120190205201902051120190205201902061120190205201902071120190205201902081120190205201902091120190205201902101120190205201904052120190405201904062120190405201904072120190405201904283020190501201905013120190501201905023120190501201905033120190501201905043120190501201905053020190501201906074120190607201906084120190607201906094120190607201909135120190913201909145120190913201909155120190913201909296020191001201910016120191001201910026120191001201910036120191001201910046120191001201910056120191001201910066120191001201910076120191001201910126020191001202001010120200101202001191020200125202001241120200125202001251120200125202001261120200125202001271120200125202001281120200125202001291120200125202001301120200125202001311120200125202002011120200125202002021120200125202004042120200404202004052120200404202004062120200404202004263020200501202005013120200501202005023120200501202005033120200501202005043120200501202005053120200501202005093020200501202006254120200625202006264120200625202006274120200625202006284020200625202009277020201001202010017120201001202010026120201001202010036120201001202010046120201001202010056120201001202010066120201001202010076120201001202010086120201001202010106020201001202101010120210101202101020120210101202101030120210101202102071020210212202102111120210212202102121120210212202102131120210212202102141120210212202102151120210212202102161120210212202102171120210212202102201020210212202104032120210404202104042120210404202104052120210404202104253020210501202105013120210501202105023120210501202105033120210501202105043120210501202105053120210501202105083020210501202106124120210614202106134120210614202106144120210614202109185020210921202109195120210921202109205120210921202109215120210921202109266020211001202110016120211001202110026120211001202110036120211001202110046120211001202110056120211001202110066120211001202110076120211001202110096020211001202201010120220101202201020120220101202201030120220101202201291020220201202201301020220201202201311120220201202202011120220201202202021120220201202202031120220201202202041120220201202202051120220201202202061120220201202204022020220405202204032120220405202204042120220405202204052120220405202204243020220501202204303120220501202205013120220501202205023120220501202205033120220501202205043120220501202205073020220501202206034120220603202206044120220603202206054120220603202209105120220910202209115120220910202209125120220910202210016120221001202210026120221001202210036120221001202210046120221001202210056120221001202210066120221001202210076120221001202210086020221001202210096020221001202212310120230101202301010120230101202301020120230101202301211120230122202301221120230122202301231120230122202301241120230122202301251120230122202301261120230122202301271120230122202301281020230122202301291020230122202304052120230405202304233020230501202304293120230501202304303120230501202305013120230501202305023120230501202305033120230501202305063020230501202306224120230622202306234120230622202306244120230622202306254020230622202309295120230929202309306120231001202310016120231001202310026120231001202310036120231001202310046120231001202310056120231001202310066120231001202310076020231001202310086020231001202312300120240101202312310120240101202401010120240101202402041020240210202402101120240210202402111120240210202402121120240210202402131120240210202402141120240210202402151120240210202402161120240210202402171120240210202402181020240210202404042120240404202404052120240404202404062120240404202404072020240404202404283020240501202405013120240501202405023120240501202405033120240501202405043120240501202405053120240501202405113020240501202406084120240610202406094120240610202406104120240610202409145020240917202409155120240917202409165120240917202409175120240917202409296020241001202410016120241001202410026120241001202410036120241001202410046120241001202410056120241001202410066120241001202410076120241001202410126020241001202501010120250101202501261020250129202501281120250129202501291120250129202501301120250129202501311120250129202502011120250129202502021120250129202502031120250129202502041120250129202502081020250129202504042120250404202504052120250404202504062120250404202504273020250501202505013120250501202505023120250501202505033120250501202505043120250501202505053120250501202505314120250531202506014120250531202506024120250531202509287020251001202510017120251001202510027120251001202510037120251001202510047120251001202510057120251001202510067120251001202510077120251001202510087120251001202510117020251001",l._SIZE=18,l._ZERO=48,l._TAG_REMOVE="~",l._NAMES_IN_USE=c.NAMES,l._DATA_IN_USE=c.DATA;class f{constructor(t,e){let n=!1,r=!1,i,o;for(i=0,o=s.JIE_QI.length;i<o;i++)if(s.JIE_QI[i]===t){i%2==0?r=!0:n=!0;break;}this._name=t,this._solar=e,this._jie=n,this._qi=r;}getName(){return this._name;}getSolar(){return this._solar;}setName(t){this._name=t;}setSolar(t){this._solar=t;}isJie(){return this._jie;}isQi(){return this._qi;}toString(){return this.getName();}}class d{constructor(t,e){this._liuNian=t,this._index=e;}getIndex(){return this._index;}getMonthInChinese(){return s.MONTH[this._index+1];}getGanZhi(){let t=[2,4,6,8,0][(s.find(this._liuNian.getGanZhi(),s.GAN).index-1)%5];return s.GAN[(this._index+t)%10+1]+s.ZHI[(this._index+s.BASE_MONTH_ZHI_INDEX)%12+1];}getXun(){return s.getXun(this.getGanZhi());}getXunKong(){return s.getXunKong(this.getGanZhi());}}class h{constructor(t,e=""){this._name=t,this._remark=e;}getName(){return this._name;}getRemark(){return this._remark;}toString(){return this._name;}toFullString(){let t=[this._name];return this._remark&&t.push("["+this._remark+"]"),t.join("");}}class g{}g.SAN_HUI=["1-7","7-7","10-15"],g.SAN_YUAN=["1-15","7-15","10-15"],g.WU_LA=["1-1","5-5","7-7","10-1","12-8"],g.AN_WU=["{dz.wei}","{dz.xu}","{dz.chen}","{dz.yin}","{dz.wu}","{dz.zi}","{dz.you}","{dz.shen}","{dz.si}","{dz.hai}","{dz.mao}","{dz.chou}"],g.BA_HUI={"{jz.bingWu}":"\u5929\u4F1A","{jz.renWu}":"\u5730\u4F1A","{jz.renZi}":"\u4EBA\u4F1A","{jz.gengWu}":"\u65E5\u4F1A","{jz.gengShen}":"\u6708\u4F1A","{jz.xinYou}":"\u661F\u8FB0\u4F1A","{jz.jiaChen}":"\u4E94\u884C\u4F1A","{jz.jiaXu}":"\u56DB\u65F6\u4F1A"},g.BA_JIE={"{jq.liChun}":"\u4E1C\u5317\u65B9\u5EA6\u4ED9\u4E0A\u5723\u5929\u5C0A\u540C\u68B5\u7081\u59CB\u9752\u5929\u541B\u4E0B\u964D","{jq.chunFen}":"\u4E1C\u65B9\u7389\u5B9D\u661F\u4E0A\u5929\u5C0A\u540C\u9752\u5E1D\u4E5D\u7081\u5929\u541B\u4E0B\u964D","{jq.liXia}":"\u4E1C\u5357\u65B9\u597D\u751F\u5EA6\u547D\u5929\u5C0A\u540C\u68B5\u7081\u59CB\u4E39\u5929\u541B\u4E0B\u964D","{jq.xiaZhi}":"\u5357\u65B9\u7384\u771F\u4E07\u798F\u5929\u5C0A\u540C\u8D64\u5E1D\u4E09\u7081\u5929\u541B\u4E0B\u964D","{jq.liQiu}":"\u897F\u5357\u65B9\u592A\u7075\u865A\u7687\u5929\u5C0A\u540C\u68B5\u7081\u59CB\u7D20\u5929\u541B\u4E0B\u964D","{jq.qiuFen}":"\u897F\u65B9\u592A\u5999\u81F3\u6781\u5929\u5C0A\u540C\u767D\u5E1D\u4E03\u7081\u5929\u541B\u4E0B\u964D","{jq.liDong}":"\u897F\u5317\u65B9\u65E0\u91CF\u592A\u534E\u5929\u5C0A\u540C\u68B5\u7081\u59CB\u7384\u5929\u541B\u4E0B\u964D","{jq.dongZhi}":"\u5317\u65B9\u7384\u4E0A\u7389\u5BB8\u5929\u5C0A\u540C\u9ED1\u5E1D\u4E94\u7081\u5929\u541B\u4E0B\u964D"},g.FESTIVAL={"1-1":[new h("\u5929\u814A\u4E4B\u8FB0","\u5929\u814A\uFF0C\u6B64\u65E5\u4E94\u5E1D\u4F1A\u4E8E\u4E1C\u65B9\u4E5D\u7081\u9752\u5929")],"1-3":[new h("\u90DD\u771F\u4EBA\u5723\u8BDE"),new h("\u5B59\u771F\u4EBA\u5723\u8BDE")],"1-5":[new h("\u5B59\u7956\u6E05\u9759\u5143\u541B\u8BDE")],"1-7":[new h("\u4E3E\u8FC1\u8D4F\u4F1A","\u6B64\u65E5\u4E0A\u5143\u8D50\u798F\uFF0C\u5929\u5B98\u540C\u5730\u6C34\u4E8C\u5B98\u8003\u6821\u7F6A\u798F")],"1-9":[new h("\u7389\u7687\u4E0A\u5E1D\u5723\u8BDE")],"1-13":[new h("\u5173\u5723\u5E1D\u541B\u98DE\u5347")],"1-15":[new h("\u4E0A\u5143\u5929\u5B98\u5723\u8BDE"),new h("\u8001\u7956\u5929\u5E08\u5723\u8BDE")],"1-19":[new h("\u957F\u6625\u90B1\u771F\u4EBA(\u90B1\u5904\u673A)\u5723\u8BDE")],"1-28":[new h("\u8BB8\u771F\u541B(\u8BB8\u900A\u5929\u5E08)\u5723\u8BDE")],"2-1":[new h("\u52FE\u9648\u5929\u7687\u5927\u5E1D\u5723\u8BDE"),new h("\u957F\u6625\u5218\u771F\u4EBA(\u5218\u6E0A\u7136)\u5723\u8BDE")],"2-2":[new h("\u571F\u5730\u6B63\u795E\u8BDE"),new h("\u59DC\u592A\u516C\u5723\u8BDE")],"2-3":[new h("\u6587\u660C\u6893\u6F7C\u5E1D\u541B\u5723\u8BDE")],"2-6":[new h("\u4E1C\u534E\u5E1D\u541B\u5723\u8BDE")],"2-13":[new h("\u5EA6\u4EBA\u65E0\u91CF\u845B\u771F\u541B\u5723\u8BDE")],"2-15":[new h("\u592A\u6E05\u9053\u5FB7\u5929\u5C0A(\u592A\u4E0A\u8001\u541B)\u5723\u8BDE")],"2-19":[new h("\u6148\u822A\u771F\u4EBA\u5723\u8BDE")],"3-1":[new h("\u8C2D\u7956(\u8C2D\u5904\u7AEF)\u957F\u771F\u771F\u4EBA\u5723\u8BDE")],"3-3":[new h("\u7384\u5929\u4E0A\u5E1D\u5723\u8BDE")],"3-6":[new h("\u773C\u5149\u5A18\u5A18\u5723\u8BDE")],"3-15":[new h("\u5929\u5E08\u5F20\u5927\u771F\u4EBA\u5723\u8BDE"),new h("\u8D22\u795E\u8D75\u516C\u5143\u5E05\u5723\u8BDE")],"3-16":[new h("\u4E09\u8305\u771F\u541B\u5F97\u9053\u4E4B\u8FB0"),new h("\u4E2D\u5CB3\u5927\u5E1D\u5723\u8BDE")],"3-18":[new h("\u738B\u7956(\u738B\u5904\u4E00)\u7389\u9633\u771F\u4EBA\u5723\u8BDE"),new h("\u540E\u571F\u5A18\u5A18\u5723\u8BDE")],"3-19":[new h("\u592A\u9633\u661F\u541B\u5723\u8BDE")],"3-20":[new h("\u5B50\u5B59\u5A18\u5A18\u5723\u8BDE")],"3-23":[new h("\u5929\u540E\u5988\u7956\u5723\u8BDE")],"3-26":[new h("\u9B3C\u8C37\u5148\u5E08\u8BDE")],"3-28":[new h("\u4E1C\u5CB3\u5927\u5E1D\u5723\u8BDE")],"4-1":[new h("\u957F\u751F\u8C2D\u771F\u541B\u6210\u9053\u4E4B\u8FB0")],"4-10":[new h("\u4F55\u4ED9\u59D1\u5723\u8BDE")],"4-14":[new h("\u5415\u7956\u7EAF\u9633\u7956\u5E08\u5723\u8BDE")],"4-15":[new h("\u949F\u79BB\u7956\u5E08\u5723\u8BDE")],"4-18":[new h("\u5317\u6781\u7D2B\u5FAE\u5927\u5E1D\u5723\u8BDE"),new h("\u6CF0\u5C71\u5723\u6BCD\u78A7\u971E\u5143\u541B\u8BDE"),new h("\u534E\u4F57\u795E\u533B\u5148\u5E08\u8BDE")],"4-20":[new h("\u773C\u5149\u5723\u6BCD\u5A18\u5A18\u8BDE")],"4-28":[new h("\u795E\u519C\u5148\u5E1D\u8BDE")],"5-1":[new h("\u5357\u6781\u957F\u751F\u5927\u5E1D\u5723\u8BDE")],"5-5":[new h("\u5730\u814A\u4E4B\u8FB0","\u5730\u814A\uFF0C\u6B64\u65E5\u4E94\u5E1D\u4F1A\u4E8E\u5357\u65B9\u4E09\u7081\u4E39\u5929"),new h("\u5357\u65B9\u96F7\u7956\u5723\u8BDE"),new h("\u5730\u7957\u6E29\u5143\u5E05\u5723\u8BDE"),new h("\u96F7\u9706\u9093\u5929\u541B\u5723\u8BDE")],"5-11":[new h("\u57CE\u968D\u7237\u5723\u8BDE")],"5-13":[new h("\u5173\u5723\u5E1D\u541B\u964D\u795E"),new h("\u5173\u5E73\u592A\u5B50\u5723\u8BDE")],"5-18":[new h("\u5F20\u5929\u5E08\u5723\u8BDE")],"5-20":[new h("\u9A6C\u7956\u4E39\u9633\u771F\u4EBA\u5723\u8BDE")],"5-29":[new h("\u7D2B\u9752\u767D\u7956\u5E08\u5723\u8BDE")],"6-1":[new h("\u5357\u6597\u661F\u541B\u4E0B\u964D")],"6-2":[new h("\u5357\u6597\u661F\u541B\u4E0B\u964D")],"6-3":[new h("\u5357\u6597\u661F\u541B\u4E0B\u964D")],"6-4":[new h("\u5357\u6597\u661F\u541B\u4E0B\u964D")],"6-5":[new h("\u5357\u6597\u661F\u541B\u4E0B\u964D")],"6-6":[new h("\u5357\u6597\u661F\u541B\u4E0B\u964D")],"6-10":[new h("\u5218\u6D77\u87FE\u7956\u5E08\u5723\u8BDE")],"6-15":[new h("\u7075\u5B98\u738B\u5929\u541B\u5723\u8BDE")],"6-19":[new h("\u6148\u822A(\u89C2\u97F3)\u6210\u9053\u65E5")],"6-23":[new h("\u706B\u795E\u5723\u8BDE")],"6-24":[new h("\u5357\u6781\u5927\u5E1D\u4E2D\u65B9\u96F7\u7956\u5723\u8BDE"),new h("\u5173\u5723\u5E1D\u541B\u5723\u8BDE")],"6-26":[new h("\u4E8C\u90CE\u771F\u541B\u5723\u8BDE")],"7-7":[new h("\u9053\u5FB7\u814A\u4E4B\u8FB0","\u9053\u5FB7\u814A\uFF0C\u6B64\u65E5\u4E94\u5E1D\u4F1A\u4E8E\u897F\u65B9\u4E03\u7081\u7D20\u5929"),new h("\u5E86\u751F\u4E2D\u4F1A","\u6B64\u65E5\u4E2D\u5143\u8D66\u7F6A\uFF0C\u5730\u5B98\u540C\u5929\u6C34\u4E8C\u5B98\u8003\u6821\u7F6A\u798F")],"7-12":[new h("\u897F\u65B9\u96F7\u7956\u5723\u8BDE")],"7-15":[new h("\u4E2D\u5143\u5730\u5B98\u5927\u5E1D\u5723\u8BDE")],"7-18":[new h("\u738B\u6BCD\u5A18\u5A18\u5723\u8BDE")],"7-20":[new h("\u5218\u7956(\u5218\u5904\u7384)\u957F\u751F\u771F\u4EBA\u5723\u8BDE")],"7-22":[new h("\u8D22\u5E1B\u661F\u541B\u6587\u8D22\u795E\u589E\u798F\u76F8\u516C\u674E\u8BE1\u7956\u5723\u8BDE")],"7-26":[new h("\u5F20\u4E09\u4E30\u7956\u5E08\u5723\u8BDE")],"8-1":[new h("\u8BB8\u771F\u541B\u98DE\u5347\u65E5")],"8-3":[new h("\u4E5D\u5929\u53F8\u547D\u7076\u541B\u8BDE")],"8-5":[new h("\u5317\u65B9\u96F7\u7956\u5723\u8BDE")],"8-10":[new h("\u5317\u5CB3\u5927\u5E1D\u8BDE\u8FB0")],"8-15":[new h("\u592A\u9634\u661F\u541B\u8BDE")],"9-1":[new h("\u5317\u6597\u4E5D\u7687\u964D\u4E16\u4E4B\u8FB0")],"9-2":[new h("\u5317\u6597\u4E5D\u7687\u964D\u4E16\u4E4B\u8FB0")],"9-3":[new h("\u5317\u6597\u4E5D\u7687\u964D\u4E16\u4E4B\u8FB0")],"9-4":[new h("\u5317\u6597\u4E5D\u7687\u964D\u4E16\u4E4B\u8FB0")],"9-5":[new h("\u5317\u6597\u4E5D\u7687\u964D\u4E16\u4E4B\u8FB0")],"9-6":[new h("\u5317\u6597\u4E5D\u7687\u964D\u4E16\u4E4B\u8FB0")],"9-7":[new h("\u5317\u6597\u4E5D\u7687\u964D\u4E16\u4E4B\u8FB0")],"9-8":[new h("\u5317\u6597\u4E5D\u7687\u964D\u4E16\u4E4B\u8FB0")],"9-9":[new h("\u5317\u6597\u4E5D\u7687\u964D\u4E16\u4E4B\u8FB0"),new h("\u6597\u59E5\u5143\u541B\u5723\u8BDE"),new h("\u91CD\u9633\u5E1D\u541B\u5723\u8BDE"),new h("\u7384\u5929\u4E0A\u5E1D\u98DE\u5347"),new h("\u9146\u90FD\u5927\u5E1D\u5723\u8BDE")],"9-22":[new h("\u589E\u798F\u8D22\u795E\u8BDE")],"9-23":[new h("\u8428\u7FC1\u771F\u541B\u5723\u8BDE")],"9-28":[new h("\u4E94\u663E\u7075\u5B98\u9A6C\u5143\u5E05\u5723\u8BDE")],"10-1":[new h("\u6C11\u5C81\u814A\u4E4B\u8FB0","\u6C11\u5C81\u814A\uFF0C\u6B64\u65E5\u4E94\u5E1D\u4F1A\u4E8E\u5317\u65B9\u4E94\u7081\u9ED1\u5929"),new h("\u4E1C\u7687\u5927\u5E1D\u5723\u8BDE")],"10-3":[new h("\u4E09\u8305\u5E94\u5316\u771F\u541B\u5723\u8BDE")],"10-6":[new h("\u5929\u66F9\u8BF8\u53F8\u4E94\u5CB3\u4E94\u5E1D\u5723\u8BDE")],"10-15":[new h("\u4E0B\u5143\u6C34\u5B98\u5927\u5E1D\u5723\u8BDE"),new h("\u5EFA\u751F\u5927\u4F1A","\u6B64\u65E5\u4E0B\u5143\u89E3\u5384\uFF0C\u6C34\u5B98\u540C\u5929\u5730\u4E8C\u5B98\u8003\u6821\u7F6A\u798F")],"10-18":[new h("\u5730\u6BCD\u5A18\u5A18\u5723\u8BDE")],"10-19":[new h("\u957F\u6625\u90B1\u771F\u541B\u98DE\u5347")],"10-20":[new h("\u865A\u9756\u5929\u5E08(\u5373\u4E09\u5341\u4EE3\u5929\u5E08\u5F18\u609F\u5F20\u771F\u4EBA)\u8BDE")],"11-6":[new h("\u897F\u5CB3\u5927\u5E1D\u5723\u8BDE")],"11-9":[new h("\u6E58\u5B50\u97E9\u7956\u5723\u8BDE")],"11-11":[new h("\u592A\u4E59\u6551\u82E6\u5929\u5C0A\u5723\u8BDE")],"11-26":[new h("\u5317\u65B9\u4E94\u9053\u5723\u8BDE")],"12-8":[new h("\u738B\u4FAF\u814A\u4E4B\u8FB0","\u738B\u4FAF\u814A\uFF0C\u6B64\u65E5\u4E94\u5E1D\u4F1A\u4E8E\u4E0A\u65B9\u7384\u90FD\u7389\u4EAC")],"12-16":[new h("\u5357\u5CB3\u5927\u5E1D\u5723\u8BDE"),new h("\u798F\u5FB7\u6B63\u795E\u8BDE")],"12-20":[new h("\u9C81\u73ED\u5148\u5E08\u5723\u8BDE")],"12-21":[new h("\u5929\u7337\u4E0A\u5E1D\u5723\u8BDE")],"12-22":[new h("\u91CD\u9633\u7956\u5E08\u5723\u8BDE")],"12-23":[new h("\u796D\u7076\u738B","\u6700\u9002\u5B9C\u8C22\u65E7\u5E74\u592A\u5C81\uFF0C\u5F00\u542F\u62DC\u65B0\u5E74\u592A\u5C81")],"12-25":[new h("\u7389\u5E1D\u5DE1\u5929"),new h("\u5929\u795E\u4E0B\u964D")],"12-29":[new h("\u6E05\u9759\u5B59\u771F\u541B(\u5B59\u4E0D\u4E8C)\u6210\u9053")]};class p{constructor(t,e="",n=!1,r=""){this._name=t,this._result=e||"",this._everyMonth=n,this._remark=r;}getName(){return this._name;}getResult(){return this._result;}isEveryMonth(){return this._everyMonth;}getRemark(){return this._remark;}toString(){return this._name;}toFullString(){let t=[this._name];return this._result&&t.push(this._result),this._remark&&t.push(this._remark),t.join(" ");}}let v=class{static getXiu(t,e){return v.XIU_27[(v.XIU_OFFSET[Math.abs(t)-1]+e-1)%v.XIU_27.length];}},m=v;m.DAY_ZHAI_GUAN_YIN=["1-8","2-7","2-9","2-19","3-3","3-6","3-13","4-22","5-3","5-17","6-16","6-18","6-19","6-23","7-13","8-16","9-19","9-23","10-2","11-19","11-24","12-25"],m.XIU_27=["{xx.jiao}","{xx.kang}","{xx.di}","{xx.fang}","{xx.xin}","{xx.tail}","{xx.ji}","{xx.dou}","{xx.nv}","{xx.xu}","{xx.wei}","{xx.shi}","{xx.qiang}","{xx.kui}","{xx.lou}","{xx.vei}","{xx.mao}","{xx.bi}","{xx.zi}","{xx.can}","{xx.jing}","{xx.gui}","{xx.liu}","{xx.xing}","{xx.zhang}","{xx.yi}","{xx.zhen}"],m.XIU_OFFSET=[11,13,15,17,19,21,24,0,2,4,7,9],m._DJ="\u72AF\u8005\u593A\u7EAA",m._JS="\u72AF\u8005\u51CF\u5BFF",m._SS="\u72AF\u8005\u635F\u5BFF",m._XL="\u72AF\u8005\u524A\u7984\u593A\u7EAA",m._JW="\u72AF\u8005\u4E09\u5E74\u5185\u592B\u5987\u4FF1\u4EA1",m._Y=new p("\u6768\u516C\u5FCC"),m._T=new p("\u56DB\u5929\u738B\u5DE1\u884C","",!0),m._D=new p("\u6597\u964D",v._DJ,!0),m._S=new p("\u6708\u6714",v._DJ,!0),m._W=new p("\u6708\u671B",v._DJ,!0),m._H=new p("\u6708\u6666",v._JS,!0),m._L=new p("\u96F7\u658B\u65E5",v._JS,!0),m._J=new p("\u4E5D\u6BD2\u65E5","\u72AF\u8005\u592D\u4EA1\uFF0C\u5947\u7978\u4E0D\u6D4B"),m._R=new p("\u4EBA\u795E\u5728\u9634","\u72AF\u8005\u5F97\u75C5",!0,"\u5B9C\u5148\u4E00\u65E5\u5373\u6212"),m._M=new p("\u53F8\u547D\u594F\u4E8B",v._JS,!0,"\u5982\u6708\u5C0F\uFF0C\u5373\u6212\u5EFF\u4E5D"),m._HH=new p("\u6708\u6666",v._JS,!0,"\u5982\u6708\u5C0F\uFF0C\u5373\u6212\u5EFF\u4E5D"),m.FESTIVAL={"1-1":[new p("\u5929\u814A\uFF0C\u7389\u5E1D\u6821\u4E16\u4EBA\u795E\u6C14\u7984\u547D",v._XL),v._S],"1-3":[new p("\u4E07\u795E\u90FD\u4F1A",v._DJ),v._D],"1-5":[new p("\u4E94\u865A\u5FCC")],"1-6":[new p("\u516D\u8017\u5FCC"),v._L],"1-7":[new p("\u4E0A\u4F1A\u65E5",v._SS)],"1-8":[new p("\u4E94\u6BBF\u960E\u7F57\u5929\u5B50\u8BDE",v._DJ),v._T],"1-9":[new p("\u7389\u7687\u4E0A\u5E1D\u8BDE",v._DJ)],"1-13":[v._Y],"1-14":[new p("\u4E09\u5143\u964D",v._JS),v._T],"1-15":[new p("\u4E09\u5143\u964D",v._JS),new p("\u4E0A\u5143\u795E\u4F1A",v._DJ),v._W,v._T],"1-16":[new p("\u4E09\u5143\u964D",v._JS)],"1-19":[new p("\u957F\u6625\u771F\u4EBA\u8BDE")],"1-23":[new p("\u4E09\u5C38\u795E\u594F\u4E8B"),v._T],"1-25":[v._H,new p("\u5929\u5730\u4ED3\u5F00\u65E5","\u72AF\u8005\u635F\u5BFF\uFF0C\u5B50\u5E26\u75BE")],"1-27":[v._D],"1-28":[v._R],"1-29":[v._T],"1-30":[v._HH,v._M,v._T],"2-1":[new p("\u4E00\u6BBF\u79E6\u5E7F\u738B\u8BDE",v._DJ),v._S],"2-2":[new p("\u4E07\u795E\u90FD\u4F1A",v._DJ),new p("\u798F\u5FB7\u571F\u5730\u6B63\u795E\u8BDE","\u72AF\u8005\u5F97\u7978")],"2-3":[new p("\u6587\u660C\u5E1D\u541B\u8BDE",v._XL),v._D],"2-6":[new p("\u4E1C\u534E\u5E1D\u541B\u8BDE"),v._L],"2-8":[new p("\u91CA\u8FE6\u725F\u5C3C\u4F5B\u51FA\u5BB6",v._DJ),new p("\u4E09\u6BBF\u5B8B\u5E1D\u738B\u8BDE",v._DJ),new p("\u5F20\u5927\u5E1D\u8BDE",v._DJ),v._T],"2-11":[v._Y],"2-14":[v._T],"2-15":[new p("\u91CA\u8FE6\u725F\u5C3C\u4F5B\u6D85\u69C3",v._XL),new p("\u592A\u4E0A\u8001\u541B\u8BDE",v._XL),new p("\u6708\u671B",v._XL,!0),v._T],"2-17":[new p("\u4E1C\u65B9\u675C\u5C06\u519B\u8BDE")],"2-18":[new p("\u56DB\u6BBF\u4E94\u5B98\u738B\u8BDE",v._XL),new p("\u81F3\u5723\u5148\u5E08\u5B54\u5B50\u8BB3\u8FB0",v._XL)],"2-19":[new p("\u89C2\u97F3\u5927\u58EB\u8BDE",v._DJ)],"2-21":[new p("\u666E\u8D24\u83E9\u8428\u8BDE")],"2-23":[v._T],"2-25":[v._H],"2-27":[v._D],"2-28":[v._R],"2-29":[v._T],"2-30":[v._HH,v._M,v._T],"3-1":[new p("\u4E8C\u6BBF\u695A\u6C5F\u738B\u8BDE",v._DJ),v._S],"3-3":[new p("\u7384\u5929\u4E0A\u5E1D\u8BDE",v._DJ),v._D],"3-6":[v._L],"3-8":[new p("\u516D\u6BBF\u535E\u57CE\u738B\u8BDE",v._DJ),v._T],"3-9":[new p("\u725B\u9B3C\u795E\u51FA","\u72AF\u8005\u4EA7\u6076\u80CE"),v._Y],"3-12":[new p("\u4E2D\u592E\u4E94\u9053\u8BDE")],"3-14":[v._T],"3-15":[new p("\u660A\u5929\u4E0A\u5E1D\u8BDE",v._DJ),new p("\u7384\u575B\u8BDE",v._DJ),v._W,v._T],"3-16":[new p("\u51C6\u63D0\u83E9\u8428\u8BDE",v._DJ)],"3-19":[new p("\u4E2D\u5CB3\u5927\u5E1D\u8BDE"),new p("\u540E\u571F\u5A18\u5A18\u8BDE"),new p("\u4E09\u8305\u964D")],"3-20":[new p("\u5929\u5730\u4ED3\u5F00\u65E5",v._SS),new p("\u5B50\u5B59\u5A18\u5A18\u8BDE")],"3-23":[v._T],"3-25":[v._H],"3-27":[new p("\u4E03\u6BBF\u6CF0\u5C71\u738B\u8BDE"),v._D],"3-28":[v._R,new p("\u82CD\u9889\u81F3\u5723\u5148\u5E08\u8BDE",v._XL),new p("\u4E1C\u5CB3\u5927\u5E1D\u8BDE")],"3-29":[v._T],"3-30":[v._HH,v._M,v._T],"4-1":[new p("\u516B\u6BBF\u90FD\u5E02\u738B\u8BDE",v._DJ),v._S],"4-3":[v._D],"4-4":[new p("\u4E07\u795E\u5584\u4F1A","\u72AF\u8005\u5931\u763C\u592D\u80CE"),new p("\u6587\u6B8A\u83E9\u8428\u8BDE")],"4-6":[v._L],"4-7":[new p("\u5357\u6597\u3001\u5317\u6597\u3001\u897F\u6597\u540C\u964D",v._JS),v._Y],"4-8":[new p("\u91CA\u8FE6\u725F\u5C3C\u4F5B\u8BDE",v._DJ),new p("\u4E07\u795E\u5584\u4F1A","\u72AF\u8005\u5931\u763C\u592D\u80CE"),new p("\u5584\u6076\u7AE5\u5B50\u964D","\u72AF\u8005\u8840\u6B7B"),new p("\u4E5D\u6BBF\u5E73\u7B49\u738B\u8BDE"),v._T],"4-14":[new p("\u7EAF\u9633\u7956\u5E08\u8BDE",v._JS),v._T],"4-15":[v._W,new p("\u949F\u79BB\u7956\u5E08\u8BDE"),v._T],"4-16":[new p("\u5929\u5730\u4ED3\u5F00\u65E5",v._SS)],"4-17":[new p("\u5341\u6BBF\u8F6C\u8F6E\u738B\u8BDE",v._DJ)],"4-18":[new p("\u5929\u5730\u4ED3\u5F00\u65E5",v._SS),new p("\u7D2B\u5FBD\u5927\u5E1D\u8BDE",v._SS)],"4-20":[new p("\u773C\u5149\u5723\u6BCD\u8BDE")],"4-23":[v._T],"4-25":[v._H],"4-27":[v._D],"4-28":[v._R],"4-29":[v._T],"4-30":[v._HH,v._M,v._T],"5-1":[new p("\u5357\u6781\u957F\u751F\u5927\u5E1D\u8BDE",v._DJ),v._S],"5-3":[v._D],"5-5":[new p("\u5730\u814A",v._XL),new p("\u4E94\u5E1D\u6821\u5B9A\u751F\u4EBA\u5B98\u7235",v._XL),v._J,v._Y],"5-6":[v._J,v._L],"5-7":[v._J],"5-8":[new p("\u5357\u65B9\u4E94\u9053\u8BDE"),v._T],"5-11":[new p("\u5929\u5730\u4ED3\u5F00\u65E5",v._SS),new p("\u5929\u4E0B\u90FD\u57CE\u968D\u8BDE")],"5-12":[new p("\u70B3\u7075\u516C\u8BDE")],"5-13":[new p("\u5173\u5723\u964D",v._XL)],"5-14":[new p("\u591C\u5B50\u65F6\u4E3A\u5929\u5730\u4EA4\u6CF0",v._JW),v._T],"5-15":[v._W,v._J,v._T],"5-16":[new p("\u4E5D\u6BD2\u65E5",v._JW),new p("\u5929\u5730\u5143\u6C14\u9020\u5316\u4E07\u7269\u4E4B\u8FB0",v._JW)],"5-17":[v._J],"5-18":[new p("\u5F20\u5929\u5E08\u8BDE")],"5-22":[new p("\u5B5D\u5A25\u795E\u8BDE",v._DJ)],"5-23":[v._T],"5-25":[v._J,v._H],"5-26":[v._J],"5-27":[v._J,v._D],"5-28":[v._R],"5-29":[v._T],"5-30":[v._HH,v._M,v._T],"6-1":[v._S],"6-3":[new p("\u97E6\u9A6E\u83E9\u8428\u5723\u8BDE"),v._D,v._Y],"6-5":[new p("\u5357\u8D61\u90E8\u6D32\u8F6C\u5927\u8F6E",v._SS)],"6-6":[new p("\u5929\u5730\u4ED3\u5F00\u65E5",v._SS),v._L],"6-8":[v._T],"6-10":[new p("\u91D1\u7C9F\u5982\u6765\u8BDE")],"6-14":[v._T],"6-15":[v._W,v._T],"6-19":[new p("\u89C2\u4E16\u97F3\u83E9\u8428\u6210\u9053",v._DJ)],"6-23":[new p("\u5357\u65B9\u706B\u795E\u8BDE","\u72AF\u8005\u906D\u56DE\u7984"),v._T],"6-24":[new p("\u96F7\u7956\u8BDE",v._XL),new p("\u5173\u5E1D\u8BDE",v._XL)],"6-25":[v._H],"6-27":[v._D],"6-28":[v._R],"6-29":[v._T],"6-30":[v._HH,v._M,v._T],"7-1":[v._S,v._Y],"7-3":[v._D],"7-5":[new p("\u4E2D\u4F1A\u65E5",v._SS,!1,"\u4E00\u4F5C\u521D\u4E03")],"7-6":[v._L],"7-7":[new p("\u9053\u5FB7\u814A",v._XL),new p("\u4E94\u5E1D\u6821\u751F\u4EBA\u5584\u6076",v._XL),new p("\u9B41\u661F\u8BDE",v._XL)],"7-8":[v._T],"7-10":[new p("\u9634\u6BD2\u65E5","",!1,"\u5927\u5FCC")],"7-12":[new p("\u957F\u771F\u8C2D\u771F\u4EBA\u8BDE")],"7-13":[new p("\u5927\u52BF\u81F3\u83E9\u8428\u8BDE",v._JS)],"7-14":[new p("\u4E09\u5143\u964D",v._JS),v._T],"7-15":[v._W,new p("\u4E09\u5143\u964D",v._DJ),new p("\u5730\u5B98\u6821\u7C4D",v._DJ),v._T],"7-16":[new p("\u4E09\u5143\u964D",v._JS)],"7-18":[new p("\u897F\u738B\u6BCD\u8BDE",v._DJ)],"7-19":[new p("\u592A\u5C81\u8BDE",v._DJ)],"7-22":[new p("\u589E\u798F\u8D22\u795E\u8BDE",v._XL)],"7-23":[v._T],"7-25":[v._H],"7-27":[v._D],"7-28":[v._R],"7-29":[v._Y,v._T],"7-30":[new p("\u5730\u85CF\u83E9\u8428\u8BDE",v._DJ),v._HH,v._M,v._T],"8-1":[v._S,new p("\u8BB8\u771F\u541B\u8BDE")],"8-3":[v._D,new p("\u5317\u6597\u8BDE",v._XL),new p("\u53F8\u547D\u7076\u541B\u8BDE","\u72AF\u8005\u906D\u56DE\u7984")],"8-5":[new p("\u96F7\u58F0\u5927\u5E1D\u8BDE",v._DJ)],"8-6":[v._L],"8-8":[v._T],"8-10":[new p("\u5317\u6597\u5927\u5E1D\u8BDE")],"8-12":[new p("\u897F\u65B9\u4E94\u9053\u8BDE")],"8-14":[v._T],"8-15":[v._W,new p("\u592A\u660E\u671D\u5143","\u72AF\u8005\u66B4\u4EA1",!1,"\u5B9C\u711A\u9999\u5B88\u591C"),v._T],"8-16":[new p("\u5929\u66F9\u63A0\u5237\u771F\u541B\u964D","\u72AF\u8005\u8D2B\u592D")],"8-18":[new p("\u5929\u4EBA\u5174\u798F\u4E4B\u8FB0","",!1,"\u5B9C\u658B\u6212\uFF0C\u5B58\u60F3\u5409\u4E8B")],"8-23":[new p("\u6C49\u6052\u5019\u5F20\u663E\u738B\u8BDE"),v._T],"8-24":[new p("\u7076\u541B\u592B\u4EBA\u8BDE")],"8-25":[v._H],"8-27":[v._D,new p("\u81F3\u5723\u5148\u5E08\u5B54\u5B50\u8BDE",v._XL),v._Y],"8-28":[v._R,new p("\u56DB\u5929\u4F1A\u4E8B")],"8-29":[v._T],"8-30":[new p("\u8BF8\u795E\u8003\u6821","\u72AF\u8005\u593A\u7B97"),v._HH,v._M,v._T],"9-1":[v._S,new p("\u5357\u6597\u8BDE",v._XL),new p("\u5317\u6597\u4E5D\u661F\u964D\u4E16",v._DJ,!1,"\u6B64\u4E5D\u65E5\u4FF1\u5B9C\u658B\u6212")],"9-3":[v._D,new p("\u4E94\u761F\u795E\u8BDE")],"9-6":[v._L],"9-8":[v._T],"9-9":[new p("\u6597\u6BCD\u8BDE",v._XL),new p("\u9146\u90FD\u5927\u5E1D\u8BDE"),new p("\u7384\u5929\u4E0A\u5E1D\u98DE\u5347")],"9-10":[new p("\u6597\u6BCD\u964D",v._DJ)],"9-11":[new p("\u5B9C\u6212")],"9-13":[new p("\u5B5F\u5A46\u5C0A\u795E\u8BDE")],"9-14":[v._T],"9-15":[v._W,v._T],"9-17":[new p("\u91D1\u9F99\u56DB\u5927\u738B\u8BDE","\u72AF\u8005\u906D\u6C34\u5384")],"9-19":[new p("\u65E5\u5BAB\u6708\u5BAB\u4F1A\u5408",v._JS),new p("\u89C2\u4E16\u97F3\u83E9\u8428\u8BDE",v._JS)],"9-23":[v._T],"9-25":[v._H,v._Y],"9-27":[v._D],"9-28":[v._R],"9-29":[v._T],"9-30":[new p("\u836F\u5E08\u7409\u7483\u5149\u4F5B\u8BDE","\u72AF\u8005\u5371\u75BE"),v._HH,v._M,v._T],"10-1":[v._S,new p("\u6C11\u5C81\u814A",v._DJ),new p("\u56DB\u5929\u738B\u964D","\u72AF\u8005\u4E00\u5E74\u5185\u6B7B")],"10-3":[v._D,new p("\u4E09\u8305\u8BDE")],"10-5":[new p("\u4E0B\u4F1A\u65E5",v._JS),new p("\u8FBE\u6469\u7956\u5E08\u8BDE",v._JS)],"10-6":[v._L,new p("\u5929\u66F9\u8003\u5BDF",v._DJ)],"10-8":[new p("\u4F5B\u6D85\u69C3\u65E5","",!1,"\u5927\u5FCC\u8272\u6B32"),v._T],"10-10":[new p("\u56DB\u5929\u738B\u964D","\u72AF\u8005\u4E00\u5E74\u5185\u6B7B")],"10-11":[new p("\u5B9C\u6212")],"10-14":[new p("\u4E09\u5143\u964D",v._JS),v._T],"10-15":[v._W,new p("\u4E09\u5143\u964D",v._DJ),new p("\u4E0B\u5143\u6C34\u5E9C\u6821\u7C4D",v._DJ),v._T],"10-16":[new p("\u4E09\u5143\u964D",v._JS),v._T],"10-23":[v._Y,v._T],"10-25":[v._H],"10-27":[v._D,new p("\u5317\u6781\u7D2B\u5FBD\u5927\u5E1D\u964D")],"10-28":[v._R],"10-29":[v._T],"10-30":[v._HH,v._M,v._T],"11-1":[v._S],"11-3":[v._D],"11-4":[new p("\u81F3\u5723\u5148\u5E08\u5B54\u5B50\u8BDE",v._XL)],"11-6":[new p("\u897F\u5CB3\u5927\u5E1D\u8BDE")],"11-8":[v._T],"11-11":[new p("\u5929\u5730\u4ED3\u5F00\u65E5",v._DJ),new p("\u592A\u4E59\u6551\u82E6\u5929\u5C0A\u8BDE",v._DJ)],"11-14":[v._T],"11-15":[new p("\u6708\u671B","\u4E0A\u534A\u591C\u72AF\u7537\u6B7B \u4E0B\u534A\u591C\u72AF\u5973\u6B7B"),new p("\u56DB\u5929\u738B\u5DE1\u884C","\u4E0A\u534A\u591C\u72AF\u7537\u6B7B \u4E0B\u534A\u591C\u72AF\u5973\u6B7B")],"11-17":[new p("\u963F\u5F25\u9640\u4F5B\u8BDE")],"11-19":[new p("\u592A\u9633\u65E5\u5BAB\u8BDE","\u72AF\u8005\u5F97\u5947\u7978")],"11-21":[v._Y],"11-23":[new p("\u5F20\u4ED9\u8BDE","\u72AF\u8005\u7EDD\u55E3"),v._T],"11-25":[new p("\u63A0\u5237\u5927\u592B\u964D","\u72AF\u8005\u906D\u5927\u51F6"),v._H],"11-26":[new p("\u5317\u65B9\u4E94\u9053\u8BDE")],"11-27":[v._D],"11-28":[v._R],"11-29":[v._T],"11-30":[v._HH,v._M,v._T],"12-1":[v._S],"12-3":[v._D],"12-6":[new p("\u5929\u5730\u4ED3\u5F00\u65E5",v._JS),v._L],"12-7":[new p("\u63A0\u5237\u5927\u592B\u964D","\u72AF\u8005\u5F97\u6076\u75BE")],"12-8":[new p("\u738B\u4FAF\u814A",v._DJ),new p("\u91CA\u8FE6\u5982\u6765\u6210\u4F5B\u4E4B\u8FB0"),v._T,new p("\u521D\u65EC\u5185\u620A\u65E5\uFF0C\u4EA6\u540D\u738B\u4FAF\u814A",v._DJ)],"12-12":[new p("\u592A\u7D20\u4E09\u5143\u541B\u671D\u771F")],"12-14":[v._T],"12-15":[v._W,v._T],"12-16":[new p("\u5357\u5CB3\u5927\u5E1D\u8BDE")],"12-19":[v._Y],"12-20":[new p("\u5929\u5730\u4EA4\u9053","\u72AF\u8005\u4FC3\u5BFF")],"12-21":[new p("\u5929\u7337\u4E0A\u5E1D\u8BDE")],"12-23":[new p("\u4E94\u5CB3\u8BDE\u964D"),v._T],"12-24":[new p("\u53F8\u4ECA\u671D\u5929\u594F\u4EBA\u5584\u6076","\u72AF\u8005\u5F97\u5927\u7978")],"12-25":[new p("\u4E09\u6E05\u7389\u5E1D\u540C\u964D\uFF0C\u8003\u5BDF\u5584\u6076","\u72AF\u8005\u5F97\u5947\u7978"),v._H],"12-27":[v._D],"12-28":[v._R],"12-29":[new p("\u534E\u4E25\u83E9\u8428\u8BDE"),v._T],"12-30":[new p("\u8BF8\u795E\u4E0B\u964D\uFF0C\u5BDF\u8BBF\u5584\u6076","\u72AF\u8005\u7537\u5973\u4FF1\u4EA1")]},m.OTHER_FESTIVAL={"1-1":["\u5F25\u52D2\u83E9\u8428\u5723\u8BDE"],"1-6":["\u5B9A\u5149\u4F5B\u5723\u8BDE"],"2-8":["\u91CA\u8FE6\u725F\u5C3C\u4F5B\u51FA\u5BB6"],"2-15":["\u91CA\u8FE6\u725F\u5C3C\u4F5B\u6D85\u69C3"],"2-19":["\u89C2\u4E16\u97F3\u83E9\u8428\u5723\u8BDE"],"2-21":["\u666E\u8D24\u83E9\u8428\u5723\u8BDE"],"3-16":["\u51C6\u63D0\u83E9\u8428\u5723\u8BDE"],"4-4":["\u6587\u6B8A\u83E9\u8428\u5723\u8BDE"],"4-8":["\u91CA\u8FE6\u725F\u5C3C\u4F5B\u5723\u8BDE"],"4-15":["\u4F5B\u5409\u7965\u65E5"],"4-28":["\u836F\u738B\u83E9\u8428\u5723\u8BDE"],"5-13":["\u4F3D\u84DD\u83E9\u8428\u5723\u8BDE"],"6-3":["\u97E6\u9A6E\u83E9\u8428\u5723\u8BDE"],"6-19":["\u89C2\u97F3\u83E9\u8428\u6210\u9053"],"7-13":["\u5927\u52BF\u81F3\u83E9\u8428\u5723\u8BDE"],"7-15":["\u4F5B\u6B22\u559C\u65E5"],"7-24":["\u9F99\u6811\u83E9\u8428\u5723\u8BDE"],"7-30":["\u5730\u85CF\u83E9\u8428\u5723\u8BDE"],"8-15":["\u6708\u5149\u83E9\u8428\u5723\u8BDE"],"8-22":["\u71C3\u706F\u4F5B\u5723\u8BDE"],"9-9":["\u6469\u5229\u652F\u5929\u83E9\u8428\u5723\u8BDE"],"9-19":["\u89C2\u4E16\u97F3\u83E9\u8428\u51FA\u5BB6"],"9-30":["\u836F\u5E08\u7409\u7483\u5149\u4F5B\u5723\u8BDE"],"10-5":["\u8FBE\u6469\u7956\u5E08\u5723\u8BDE"],"10-20":["\u6587\u6B8A\u83E9\u8428\u51FA\u5BB6"],"11-17":["\u963F\u5F25\u9640\u4F5B\u5723\u8BDE"],"11-19":["\u65E5\u5149\u83E9\u8428\u5723\u8BDE"],"12-8":["\u91CA\u8FE6\u725F\u5C3C\u4F5B\u6210\u9053"],"12-23":["\u76D1\u658B\u83E9\u8428\u5723\u8BDE"],"12-29":["\u534E\u4E25\u83E9\u8428\u5723\u8BDE"]};class y{}y.NUMBER=["{n.one}","{n.two}","{n.three}","{n.four}","{n.five}","{n.six}","{n.seven}","{n.eight}","{n.nine}"],y.WU_XING=["{wx.shui}","{wx.tu}","{wx.mu}","{wx.mu}","{wx.tu}","{wx.jin}","{wx.jin}","{wx.tu}","{wx.huo}"],y.POSITION=["{bg.kan}","{bg.kun}","{bg.zhen}","{bg.xun}","{ps.center}","{bg.qian}","{bg.dui}","{bg.gen}","{bg.li}"],y.LUCK_XUAN_KONG=["{s.goodLuck}","{s.badLuck}","{s.badLuck}","{s.goodLuck}","{s.badLuck}","{s.goodLuck}","{s.badLuck}","{s.goodLuck}","{s.goodLuck}"],y.YIN_YANG_QI_MEN=["{s.yang}","{s.yin}","{s.yang}","{s.yang}","{s.yang}","{s.yin}","{s.yin}","{s.yang}","{s.yin}"],y.COLOR=["{s.white}","{s.black}","{s.blue}","{s.green}","{s.yellow}","{s.white}","{s.red}","{s.white}","{s.purple}"];let b=class{static updateArray(t){let e=b._ARRAYS[t],n=b._OBJS[t];for(let t in e){let r=e[t];for(let e=0,i=r.length;e<i;e++)n[t][e]=r[e].replace(/{(.[^}]*)}/g,(t,e)=>b.getMessage(e));}}static updateStringDictionary(t){let e=b._DICT_STRING[t],n=b._OBJS[t];for(let t in e){let r=e[t];for(let e in r){let i=e.replace(/{(.[^}]*)}/g,(t,e)=>b.getMessage(e));n[t][i]=r[e].replace(/{(.[^}]*)}/g,(t,e)=>b.getMessage(e));}}}static updateNumberDictionary(t){let e=b._DICT_NUMBER[t],n=b._OBJS[t];for(let t in e){let r=e[t];for(let e in r){let i=e.replace(/{(.[^}]*)}/g,(t,e)=>b.getMessage(e));n[t][i]=r[e];}}}static updateArrayDictionary(t){let e=b._DICT_ARRAY[t],n=b._OBJS[t];for(let t in e){let r=e[t];for(let e in r){let i=e.replace(/{(.[^}]*)}/g,(t,e)=>b.getMessage(e)),o=r[e];for(let t=0,e=o.length;t<e;t++)o[t]=o[t].replace(/{(.[^}]*)}/g,(t,e)=>b.getMessage(e));n[t][i]=o;}}}static update(){for(let t in b._ARRAYS)b.updateArray(t);for(let t in b._DICT_STRING)b.updateStringDictionary(t);for(let t in b._DICT_NUMBER)b.updateNumberDictionary(t);for(let t in b._DICT_ARRAY)b.updateArrayDictionary(t);}static setMessages(t,e){if(e){for(let n in b._MESSAGES[t]||(b._MESSAGES[t]={}),e)b._MESSAGES[t][n]=e[n];b.update();}}static getMessage(t){let e=b._MESSAGES[b._LANG][t];return void 0==e&&(e=b._MESSAGES[b._DEFAULT_LANG][t]),void 0==e&&(e=t),e;}static setLanguage(t){b._MESSAGES[t]&&(b._LANG=t,b.update());}static getLanguage(){return b._LANG;}static initArray(t){let e=b._ARRAYS[t],n=b._OBJS[t];for(let t in e){e[t].length=0;let r=n[t];for(let n=0,i=r.length;n<i;n++)e[t].push(r[n]);}}static initArrayDictionary(t){let e=b._DICT_ARRAY[t],n=b._OBJS[t];for(let t in e){let r=n[t];for(let n in r)e[t][n]=r[n];}}static initStringDictionary(t){let e=b._DICT_STRING[t],n=b._OBJS[t];for(let t in e){let r=n[t];for(let n in r)e[t][n]=r[n];}}static initNumberDictionary(t){let e=b._DICT_NUMBER[t],n=b._OBJS[t];for(let t in e){let r=n[t];for(let n in r)e[t][n]=r[n];}}static init(){if(!b._INIT){for(let t in b._INIT=!0,b._ARRAYS)b.initArray(t);for(let t in b._DICT_STRING)b.initStringDictionary(t);for(let t in b._DICT_NUMBER)b.initNumberDictionary(t);for(let t in b._DICT_ARRAY)b.initArrayDictionary(t);b.setLanguage(b._DEFAULT_LANG);}}},x=b;x._DEFAULT_LANG="chs",x._INIT=!1,x._MESSAGES={chs:{"tg.jia":"\u7532","tg.yi":"\u4E59","tg.bing":"\u4E19","tg.ding":"\u4E01","tg.wu":"\u620A","tg.ji":"\u5DF1","tg.geng":"\u5E9A","tg.xin":"\u8F9B","tg.ren":"\u58EC","tg.gui":"\u7678","dz.zi":"\u5B50","dz.chou":"\u4E11","dz.yin":"\u5BC5","dz.mao":"\u536F","dz.chen":"\u8FB0","dz.si":"\u5DF3","dz.wu":"\u5348","dz.wei":"\u672A","dz.shen":"\u7533","dz.you":"\u9149","dz.xu":"\u620C","dz.hai":"\u4EA5","zx.jian":"\u5EFA","zx.chu":"\u9664","zx.man":"\u6EE1","zx.ping":"\u5E73","zx.ding":"\u5B9A","zx.zhi":"\u6267","zx.po":"\u7834","zx.wei":"\u5371","zx.cheng":"\u6210","zx.shou":"\u6536","zx.kai":"\u5F00","zx.bi":"\u95ED","jz.jiaZi":"\u7532\u5B50","jz.yiChou":"\u4E59\u4E11","jz.bingYin":"\u4E19\u5BC5","jz.dingMao":"\u4E01\u536F","jz.wuChen":"\u620A\u8FB0","jz.jiSi":"\u5DF1\u5DF3","jz.gengWu":"\u5E9A\u5348","jz.xinWei":"\u8F9B\u672A","jz.renShen":"\u58EC\u7533","jz.guiYou":"\u7678\u9149","jz.jiaXu":"\u7532\u620C","jz.yiHai":"\u4E59\u4EA5","jz.bingZi":"\u4E19\u5B50","jz.dingChou":"\u4E01\u4E11","jz.wuYin":"\u620A\u5BC5","jz.jiMao":"\u5DF1\u536F","jz.gengChen":"\u5E9A\u8FB0","jz.xinSi":"\u8F9B\u5DF3","jz.renWu":"\u58EC\u5348","jz.guiWei":"\u7678\u672A","jz.jiaShen":"\u7532\u7533","jz.yiYou":"\u4E59\u9149","jz.bingXu":"\u4E19\u620C","jz.dingHai":"\u4E01\u4EA5","jz.wuZi":"\u620A\u5B50","jz.jiChou":"\u5DF1\u4E11","jz.gengYin":"\u5E9A\u5BC5","jz.xinMao":"\u8F9B\u536F","jz.renChen":"\u58EC\u8FB0","jz.guiSi":"\u7678\u5DF3","jz.jiaWu":"\u7532\u5348","jz.yiWei":"\u4E59\u672A","jz.bingShen":"\u4E19\u7533","jz.dingYou":"\u4E01\u9149","jz.wuXu":"\u620A\u620C","jz.jiHai":"\u5DF1\u4EA5","jz.gengZi":"\u5E9A\u5B50","jz.xinChou":"\u8F9B\u4E11","jz.renYin":"\u58EC\u5BC5","jz.guiMao":"\u7678\u536F","jz.jiaChen":"\u7532\u8FB0","jz.yiSi":"\u4E59\u5DF3","jz.bingWu":"\u4E19\u5348","jz.dingWei":"\u4E01\u672A","jz.wuShen":"\u620A\u7533","jz.jiYou":"\u5DF1\u9149","jz.gengXu":"\u5E9A\u620C","jz.xinHai":"\u8F9B\u4EA5","jz.renZi":"\u58EC\u5B50","jz.guiChou":"\u7678\u4E11","jz.jiaYin":"\u7532\u5BC5","jz.yiMao":"\u4E59\u536F","jz.bingChen":"\u4E19\u8FB0","jz.dingSi":"\u4E01\u5DF3","jz.wuWu":"\u620A\u5348","jz.jiWei":"\u5DF1\u672A","jz.gengShen":"\u5E9A\u7533","jz.xinYou":"\u8F9B\u9149","jz.renXu":"\u58EC\u620C","jz.guiHai":"\u7678\u4EA5","sx.rat":"\u9F20","sx.ox":"\u725B","sx.tiger":"\u864E","sx.rabbit":"\u5154","sx.dragon":"\u9F99","sx.snake":"\u86C7","sx.horse":"\u9A6C","sx.goat":"\u7F8A","sx.monkey":"\u7334","sx.rooster":"\u9E21","sx.dog":"\u72D7","sx.pig":"\u732A","dw.long":"\u9F99","dw.niu":"\u725B","dw.gou":"\u72D7","dw.yang":"\u7F8A","dw.tu":"\u5154","dw.shu":"\u9F20","dw.ji":"\u9E21","dw.ma":"\u9A6C","dw.hu":"\u864E","dw.zhu":"\u732A","dw.hou":"\u7334","dw.she":"\u86C7","dw.huLi":"\u72D0","dw.yan":"\u71D5","dw.bao":"\u8C79","dw.yuan":"\u733F","dw.yin":"\u8693","dw.lu":"\u9E7F","dw.wu":"\u4E4C","dw.jiao":"\u86DF","dw.lang":"\u72FC","dw.fu":"\u8760","dw.zhang":"\u7350","dw.xu":"\u735D","dw.xie":"\u736C","dw.han":"\u72B4","dw.he":"\u8C89","dw.zhi":"\u5F58","wx.jin":"\u91D1","wx.mu":"\u6728","wx.shui":"\u6C34","wx.huo":"\u706B","wx.tu":"\u571F","wx.ri":"\u65E5","wx.yue":"\u6708","n.zero":"\u3007","n.one":"\u4E00","n.two":"\u4E8C","n.three":"\u4E09","n.four":"\u56DB","n.five":"\u4E94","n.six":"\u516D","n.seven":"\u4E03","n.eight":"\u516B","n.nine":"\u4E5D","n.ten":"\u5341","n.eleven":"\u5341\u4E00","n.twelve":"\u5341\u4E8C","d.one":"\u521D\u4E00","d.two":"\u521D\u4E8C","d.three":"\u521D\u4E09","d.four":"\u521D\u56DB","d.five":"\u521D\u4E94","d.six":"\u521D\u516D","d.seven":"\u521D\u4E03","d.eight":"\u521D\u516B","d.nine":"\u521D\u4E5D","d.ten":"\u521D\u5341","d.eleven":"\u5341\u4E00","d.twelve":"\u5341\u4E8C","d.thirteen":"\u5341\u4E09","d.fourteen":"\u5341\u56DB","d.fifteen":"\u5341\u4E94","d.sixteen":"\u5341\u516D","d.seventeen":"\u5341\u4E03","d.eighteen":"\u5341\u516B","d.nighteen":"\u5341\u4E5D","d.twenty":"\u4E8C\u5341","d.twentyOne":"\u5EFF\u4E00","d.twentyTwo":"\u5EFF\u4E8C","d.twentyThree":"\u5EFF\u4E09","d.twentyFour":"\u5EFF\u56DB","d.twentyFive":"\u5EFF\u4E94","d.twentySix":"\u5EFF\u516D","d.twentySeven":"\u5EFF\u4E03","d.twentyEight":"\u5EFF\u516B","d.twentyNine":"\u5EFF\u4E5D","d.thirty":"\u4E09\u5341","m.one":"\u6B63","m.two":"\u4E8C","m.three":"\u4E09","m.four":"\u56DB","m.five":"\u4E94","m.six":"\u516D","m.seven":"\u4E03","m.eight":"\u516B","m.nine":"\u4E5D","m.ten":"\u5341","m.eleven":"\u51AC","m.twelve":"\u814A","w.sun":"\u65E5","w.mon":"\u4E00","w.tues":"\u4E8C","w.wed":"\u4E09","w.thur":"\u56DB","w.fri":"\u4E94","w.sat":"\u516D","xz.aries":"\u767D\u7F8A","xz.taurus":"\u91D1\u725B","xz.gemini":"\u53CC\u5B50","xz.cancer":"\u5DE8\u87F9","xz.leo":"\u72EE\u5B50","xz.virgo":"\u5904\u5973","xz.libra":"\u5929\u79E4","xz.scorpio":"\u5929\u874E","xz.sagittarius":"\u5C04\u624B","xz.capricornus":"\u6469\u7FAF","xz.aquarius":"\u6C34\u74F6","xz.pisces":"\u53CC\u9C7C","bg.qian":"\u4E7E","bg.kun":"\u5764","bg.zhen":"\u9707","bg.xun":"\u5DFD","bg.kan":"\u574E","bg.li":"\u79BB","bg.gen":"\u826E","bg.dui":"\u5151","ps.center":"\u4E2D","ps.dong":"\u4E1C","ps.nan":"\u5357","ps.xi":"\u897F","ps.bei":"\u5317","ps.zhong":"\u4E2D\u5BAB","ps.zhengDong":"\u6B63\u4E1C","ps.zhengNan":"\u6B63\u5357","ps.zhengXi":"\u6B63\u897F","ps.zhengBei":"\u6B63\u5317","ps.dongBei":"\u4E1C\u5317","ps.dongNan":"\u4E1C\u5357","ps.xiBei":"\u897F\u5317","ps.xiNan":"\u897F\u5357","ps.wai":"\u5916","ps.fangNei":"\u623F\u5185","jq.dongZhi":"\u51AC\u81F3","jq.xiaoHan":"\u5C0F\u5BD2","jq.daHan":"\u5927\u5BD2","jq.liChun":"\u7ACB\u6625","jq.yuShui":"\u96E8\u6C34","jq.jingZhe":"\u60CA\u86F0","jq.chunFen":"\u6625\u5206","jq.qingMing":"\u6E05\u660E","jq.guYu":"\u8C37\u96E8","jq.liXia":"\u7ACB\u590F","jq.xiaoMan":"\u5C0F\u6EE1","jq.mangZhong":"\u8292\u79CD","jq.xiaZhi":"\u590F\u81F3","jq.xiaoShu":"\u5C0F\u6691","jq.daShu":"\u5927\u6691","jq.liQiu":"\u7ACB\u79CB","jq.chuShu":"\u5904\u6691","jq.baiLu":"\u767D\u9732","jq.qiuFen":"\u79CB\u5206","jq.hanLu":"\u5BD2\u9732","jq.shuangJiang":"\u971C\u964D","jq.liDong":"\u7ACB\u51AC","jq.xiaoXue":"\u5C0F\u96EA","jq.daXue":"\u5927\u96EA","sn.qingLong":"\u9752\u9F99","sn.baiHu":"\u767D\u864E","sn.zhuQue":"\u6731\u96C0","sn.xuanWu":"\u7384\u6B66","sn.mingTang":"\u660E\u5802","sn.tianXing":"\u5929\u5211","sn.tianDe":"\u5929\u5FB7","sn.jinKui":"\u91D1\u532E","sn.yuTang":"\u7389\u5802","sn.siMing":"\u53F8\u547D","sn.tianLao":"\u5929\u7262","sn.gouChen":"\u52FE\u9648","sn.tianEn":"\u5929\u6069","sn.muCang":"\u6BCD\u4ED3","sn.shiYang":"\u65F6\u9633","sn.shengQi":"\u751F\u6C14","sn.yiHou":"\u76CA\u540E","sn.zaiSha":"\u707E\u715E","sn.tianHuo":"\u5929\u706B","sn.siJi":"\u56DB\u5FCC","sn.baLong":"\u516B\u9F99","sn.fuRi":"\u590D\u65E5","sn.xuShi":"\u7EED\u4E16","sn.yueSha":"\u6708\u715E","sn.yueXu":"\u6708\u865A","sn.xueZhi":"\u8840\u652F","sn.tianZei":"\u5929\u8D3C","sn.wuXu":"\u4E94\u865A","sn.tuFu":"\u571F\u7B26","sn.guiJi":"\u5F52\u5FCC","sn.xueJi":"\u8840\u5FCC","sn.yueDe":"\u6708\u5FB7","sn.yueEn":"\u6708\u6069","sn.siXiang":"\u56DB\u76F8","sn.wangRi":"\u738B\u65E5","sn.tianCang":"\u5929\u4ED3","sn.buJiang":"\u4E0D\u5C06","sn.wuHe":"\u4E94\u5408","sn.mingFeiDui":"\u9E23\u5420\u5BF9","sn.yueJian":"\u6708\u5EFA","sn.xiaoShi":"\u5C0F\u65F6","sn.tuHu":"\u571F\u5E9C","sn.wangWang":"\u5F80\u4EA1","sn.yaoAn":"\u8981\u5B89","sn.siShen":"\u6B7B\u795E","sn.tianMa":"\u5929\u9A6C","sn.jiuHu":"\u4E5D\u864E","sn.qiNiao":"\u4E03\u9E1F","sn.liuShe":"\u516D\u86C7","sn.guanRi":"\u5B98\u65E5","sn.jiQi":"\u5409\u671F","sn.yuYu":"\u7389\u5B87","sn.daShi":"\u5927\u65F6","sn.daBai":"\u5927\u8D25","sn.xianChi":"\u54B8\u6C60","sn.shouRi":"\u5B88\u65E5","sn.tianWu":"\u5929\u5DEB","sn.fuDe":"\u798F\u5FB7","sn.liuYi":"\u516D\u4EEA","sn.jinTang":"\u91D1\u5802","sn.yanDui":"\u538C\u5BF9","sn.zhaoYao":"\u62DB\u6447","sn.jiuKong":"\u4E5D\u7A7A","sn.jiuKan":"\u4E5D\u574E","sn.jiuJiao":"\u4E5D\u7126","sn.xiangRi":"\u76F8\u65E5","sn.baoGuang":"\u5B9D\u5149","sn.tianGang":"\u5929\u7F61","sn.yueXing":"\u6708\u5211","sn.yueHai":"\u6708\u5BB3","sn.youHuo":"\u6E38\u7978","sn.chongRi":"\u91CD\u65E5","sn.shiDe":"\u65F6\u5FB7","sn.minRi":"\u6C11\u65E5","sn.sanHe":"\u4E09\u5408","sn.linRi":"\u4E34\u65E5","sn.shiYin":"\u65F6\u9634","sn.mingFei":"\u9E23\u5420","sn.siQi":"\u6B7B\u6C14","sn.diNang":"\u5730\u56CA","sn.yueDeHe":"\u6708\u5FB7\u5408","sn.jingAn":"\u656C\u5B89","sn.puHu":"\u666E\u62A4","sn.jieShen":"\u89E3\u795E","sn.xiaoHao":"\u5C0F\u8017","sn.tianDeHe":"\u5929\u5FB7\u5408","sn.yueKong":"\u6708\u7A7A","sn.yiMa":"\u9A7F\u9A6C","sn.tianHou":"\u5929\u540E","sn.chuShen":"\u9664\u795E","sn.yuePo":"\u6708\u7834","sn.daHao":"\u5927\u8017","sn.wuLi":"\u4E94\u79BB","sn.yinDe":"\u9634\u5FB7","sn.fuSheng":"\u798F\u751F","sn.tianLi":"\u5929\u540F","sn.zhiSi":"\u81F4\u6B7B","sn.yuanWu":"\u5143\u6B66","sn.yangDe":"\u9633\u5FB7","sn.tianXi":"\u5929\u559C","sn.tianYi":"\u5929\u533B","sn.yueYan":"\u6708\u538C","sn.diHuo":"\u5730\u706B","sn.fourHit":"\u56DB\u51FB","sn.daSha":"\u5927\u715E","sn.daHui":"\u5927\u4F1A","sn.tianYuan":"\u5929\u613F","sn.liuHe":"\u516D\u5408","sn.wuFu":"\u4E94\u5BCC","sn.shengXin":"\u5723\u5FC3","sn.heKui":"\u6CB3\u9B41","sn.jieSha":"\u52AB\u715E","sn.siQiong":"\u56DB\u7A77","sn.chuShuiLong":"\u89E6\u6C34\u9F99","sn.baFeng":"\u516B\u98CE","sn.tianShe":"\u5929\u8D66","sn.wuMu":"\u4E94\u5893","sn.baZhuan":"\u516B\u4E13","sn.yinCuo":"\u9634\u9519","sn.siHao":"\u56DB\u8017","sn.yangCuo":"\u9633\u9519","sn.siFei":"\u56DB\u5E9F","sn.sanYin":"\u4E09\u9634","sn.xiaoHui":"\u5C0F\u4F1A","sn.yinDaoChongYang":"\u9634\u9053\u51B2\u9633","sn.danYin":"\u5355\u9634","sn.guChen":"\u5B64\u8FB0","sn.yinWei":"\u9634\u4F4D","sn.xingHen":"\u884C\u72E0","sn.liaoLi":"\u4E86\u623E","sn.jueYin":"\u7EDD\u9634","sn.chunYang":"\u7EAF\u9633","sn.suiBo":"\u5C81\u8584","sn.yinYangJiaoPo":"\u9634\u9633\u4EA4\u7834","sn.yinYangJuCuo":"\u9634\u9633\u4FF1\u9519","sn.yinYangJiChong":"\u9634\u9633\u51FB\u51B2","sn.zhuZhen":"\u9010\u9635","sn.yangCuoYinChong":"\u9633\u9519\u9634\u51B2","sn.qiFu":"\u4E03\u7B26","sn.tianGou":"\u5929\u72D7","sn.chengRi":"\u6210\u65E5","sn.tianFu":"\u5929\u7B26","sn.guYang":"\u5B64\u9633","sn.jueYang":"\u7EDD\u9633","sn.chunYin":"\u7EAF\u9634","sn.yinShen":"\u9634\u795E","sn.jieChu":"\u89E3\u9664","sn.yangPoYinChong":"\u9633\u7834\u9634\u51B2","ss.biJian":"\u6BD4\u80A9","ss.jieCai":"\u52AB\u8D22","ss.shiShen":"\u98DF\u795E","ss.shangGuan":"\u4F24\u5B98","ss.pianCai":"\u504F\u8D22","ss.zhengCai":"\u6B63\u8D22","ss.qiSha":"\u4E03\u6740","ss.zhengGuan":"\u6B63\u5B98","ss.pianYin":"\u504F\u5370","ss.zhengYin":"\u6B63\u5370","s.none":"\u65E0","s.huangDao":"\u9EC4\u9053","s.heiDao":"\u9ED1\u9053","s.goodLuck":"\u5409","s.badLuck":"\u51F6","s.yin":"\u9634","s.yang":"\u9633","s.white":"\u767D","s.black":"\u9ED1","s.blue":"\u78A7","s.green":"\u7EFF","s.yellow":"\u9EC4","s.red":"\u8D64","s.purple":"\u7D2B","jr.chuXi":"\u9664\u5915","jr.chunJie":"\u6625\u8282","jr.yuanXiao":"\u5143\u5BB5\u8282","jr.longTou":"\u9F99\u5934\u8282","jr.duanWu":"\u7AEF\u5348\u8282","jr.qiXi":"\u4E03\u5915\u8282","jr.zhongQiu":"\u4E2D\u79CB\u8282","jr.chongYang":"\u91CD\u9633\u8282","jr.laBa":"\u814A\u516B\u8282","jr.yuanDan":"\u5143\u65E6\u8282","jr.qingRen":"\u60C5\u4EBA\u8282","jr.fuNv":"\u5987\u5973\u8282","jr.zhiShu":"\u690D\u6811\u8282","jr.xiaoFei":"\u6D88\u8D39\u8005\u6743\u76CA\u65E5","jr.wuYi":"\u52B3\u52A8\u8282","jr.qingNian":"\u9752\u5E74\u8282","jr.erTong":"\u513F\u7AE5\u8282","jr.yuRen":"\u611A\u4EBA\u8282","jr.jianDang":"\u5EFA\u515A\u8282","jr.jianJun":"\u5EFA\u519B\u8282","jr.jiaoShi":"\u6559\u5E08\u8282","jr.guoQing":"\u56FD\u5E86\u8282","jr.wanShengYe":"\u4E07\u5723\u8282\u524D\u591C","jr.wanSheng":"\u4E07\u5723\u8282","jr.pingAn":"\u5E73\u5B89\u591C","jr.shengDan":"\u5723\u8BDE\u8282","ds.changSheng":"\u957F\u751F","ds.muYu":"\u6C90\u6D74","ds.guanDai":"\u51A0\u5E26","ds.linGuan":"\u4E34\u5B98","ds.diWang":"\u5E1D\u65FA","ds.shuai":"\u8870","ds.bing":"\u75C5","ds.si":"\u6B7B","ds.mu":"\u5893","ds.jue":"\u7EDD","ds.tai":"\u80CE","ds.yang":"\u517B","h.first":"\u521D\u5019","h.second":"\u4E8C\u5019","h.third":"\u4E09\u5019","h.qiuYinJie":"\u86AF\u8693\u7ED3","h.miJiao":"\u9E8B\u89D2\u89E3","h.shuiQuan":"\u6C34\u6CC9\u52A8","h.yanBei":"\u96C1\u5317\u4E61","h.queShi":"\u9E4A\u59CB\u5DE2","h.zhiShi":"\u96C9\u59CB\u96CA","h.jiShi":"\u9E21\u59CB\u4E73","h.zhengNiao":"\u5F81\u9E1F\u5389\u75BE","h.shuiZe":"\u6C34\u6CFD\u8179\u575A","h.dongFeng":"\u4E1C\u98CE\u89E3\u51BB","h.zheChongShiZhen":"\u86F0\u866B\u59CB\u632F","h.yuZhi":"\u9C7C\u965F\u8D1F\u51B0","h.taJi":"\u736D\u796D\u9C7C","h.houYan":"\u5019\u96C1\u5317","h.caoMuMengDong":"\u8349\u6728\u840C\u52A8","h.taoShi":"\u6843\u59CB\u534E","h.cangGeng":"\u4ED3\u5E9A\u9E23","h.yingHua":"\u9E70\u5316\u4E3A\u9E20","h.xuanNiaoZhi":"\u7384\u9E1F\u81F3","h.leiNai":"\u96F7\u4E43\u53D1\u58F0","h.shiDian":"\u59CB\u7535","h.tongShi":"\u6850\u59CB\u534E","h.tianShu":"\u7530\u9F20\u5316\u4E3A\u9D3D","h.hongShi":"\u8679\u59CB\u89C1","h.pingShi":"\u840D\u59CB\u751F","h.mingJiu":"\u9E23\u9E20\u62C2\u5947\u7FBD","h.daiSheng":"\u6234\u80DC\u964D\u4E8E\u6851","h.louGuo":"\u877C\u8748\u9E23","h.qiuYinChu":"\u86AF\u8693\u51FA","h.wangGua":"\u738B\u74DC\u751F","h.kuCai":"\u82E6\u83DC\u79C0","h.miCao":"\u9761\u8349\u6B7B","h.maiQiu":"\u9EA6\u79CB\u81F3","h.tangLang":"\u87B3\u8782\u751F","h.juShi":"\u9D59\u59CB\u9E23","h.fanShe":"\u53CD\u820C\u65E0\u58F0","h.luJia":"\u9E7F\u89D2\u89E3","h.tiaoShi":"\u8729\u59CB\u9E23","h.banXia":"\u534A\u590F\u751F","h.wenFeng":"\u6E29\u98CE\u81F3","h.xiShuai":"\u87CB\u87C0\u5C45\u58C1","h.yingShi":"\u9E70\u59CB\u631A","h.fuCao":"\u8150\u8349\u4E3A\u8424","h.tuRun":"\u571F\u6DA6\u6EBD\u6691","h.daYu":"\u5927\u96E8\u884C\u65F6","h.liangFeng":"\u51C9\u98CE\u81F3","h.baiLu":"\u767D\u9732\u964D","h.hanChan":"\u5BD2\u8749\u9E23","h.yingNai":"\u9E70\u4E43\u796D\u9E1F","h.tianDi":"\u5929\u5730\u59CB\u8083","h.heNai":"\u79BE\u4E43\u767B","h.hongYanLai":"\u9E3F\u96C1\u6765","h.xuanNiaoGui":"\u7384\u9E1F\u5F52","h.qunNiao":"\u7FA4\u9E1F\u517B\u7F9E","h.leiShi":"\u96F7\u59CB\u6536\u58F0","h.zheChongPiHu":"\u86F0\u866B\u576F\u6237","h.shuiShiHe":"\u6C34\u59CB\u6DB8","h.hongYanLaiBin":"\u9E3F\u96C1\u6765\u5BBE","h.queRu":"\u96C0\u5165\u5927\u6C34\u4E3A\u86E4","h.juYou":"\u83CA\u6709\u9EC4\u82B1","h.caiNai":"\u8C7A\u4E43\u796D\u517D","h.caoMuHuangLuo":"\u8349\u6728\u9EC4\u843D","h.zheChongXianFu":"\u86F0\u866B\u54B8\u4FEF","h.shuiShiBing":"\u6C34\u59CB\u51B0","h.diShi":"\u5730\u59CB\u51BB","h.zhiRu":"\u96C9\u5165\u5927\u6C34\u4E3A\u8703","h.hongCang":"\u8679\u85CF\u4E0D\u89C1","h.tianQi":"\u5929\u6C14\u4E0A\u5347\u5730\u6C14\u4E0B\u964D","h.biSe":"\u95ED\u585E\u800C\u6210\u51AC","h.heDan":"\u9E56\u9D20\u4E0D\u9E23","h.huShi":"\u864E\u59CB\u4EA4","h.liTing":"\u8354\u633A\u51FA","ts.zhan":"\u5360","ts.hu":"\u6237","ts.win":"\u7A97","ts.fang":"\u623F","ts.chuang":"\u5E8A","ts.lu":"\u7089","ts.zao":"\u7076","ts.dui":"\u7893","ts.mo":"\u78E8","ts.xi":"\u6816","ts.chu":"\u53A8","ts.ce":"\u5395","ts.cang":"\u4ED3","ts.cangKu":"\u4ED3\u5E93","ts.daMen":"\u5927\u95E8","ts.men":"\u95E8","ts.tang":"\u5802","ly.xianSheng":"\u5148\u80DC","ly.xianFu":"\u5148\u8D1F","ly.youYin":"\u53CB\u5F15","ly.foMie":"\u4F5B\u706D","ly.daAn":"\u5927\u5B89","ly.chiKou":"\u8D64\u53E3","yj.jiSi":"\u796D\u7940","yj.qiFu":"\u7948\u798F","yj.qiuSi":"\u6C42\u55E3","yj.kaiGuang":"\u5F00\u5149","yj.suHui":"\u5851\u7ED8","yj.qiJiao":"\u9F50\u91AE","yj.zhaiJiao":"\u658B\u91AE","yj.muYu":"\u6C90\u6D74","yj.chouShen":"\u916C\u795E","yj.zaoMiao":"\u9020\u5E99","yj.siZhao":"\u7940\u7076","yj.fenXiang":"\u711A\u9999","yj.xieTu":"\u8C22\u571F","yj.chuHuo":"\u51FA\u706B","yj.diaoKe":"\u96D5\u523B","yj.jiaQu":"\u5AC1\u5A36","yj.DingHun":"\u8BA2\u5A5A","yj.naCai":"\u7EB3\u91C7","yj.wenMing":"\u95EE\u540D","yj.naXu":"\u7EB3\u5A7F","yj.guiNing":"\u5F52\u5B81","yj.anChuang":"\u5B89\u5E8A","yj.heZhang":"\u5408\u5E10","yj.guanJi":"\u51A0\u7B04","yj.dingMeng":"\u8BA2\u76DF","yj.jinRenKou":"\u8FDB\u4EBA\u53E3","yj.caiYi":"\u88C1\u8863","yj.wanMian":"\u633D\u9762","yj.kaiRong":"\u5F00\u5BB9","yj.xiuFen":"\u4FEE\u575F","yj.qiZuan":"\u542F\u94BB","yj.poTu":"\u7834\u571F","yj.anZang":"\u5B89\u846C","yj.liBei":"\u7ACB\u7891","yj.chengFu":"\u6210\u670D","yj.chuFu":"\u9664\u670D","yj.kaiShengFen":"\u5F00\u751F\u575F","yj.heShouMu":"\u5408\u5BFF\u6728","yj.ruLian":"\u5165\u6B93","yj.yiJiu":"\u79FB\u67E9","yj.puDu":"\u666E\u6E21","yj.ruZhai":"\u5165\u5B85","yj.anXiang":"\u5B89\u9999","yj.anMen":"\u5B89\u95E8","yj.xiuZao":"\u4FEE\u9020","yj.qiJi":"\u8D77\u57FA","yj.dongTu":"\u52A8\u571F","yj.shangLiang":"\u4E0A\u6881","yj.shuZhu":"\u7AD6\u67F1","yj.kaiJing":"\u5F00\u4E95\u5F00\u6C60","yj.zuoBei":"\u4F5C\u9642\u653E\u6C34","yj.chaiXie":"\u62C6\u5378","yj.poWu":"\u7834\u5C4B","yj.huaiYuan":"\u574F\u57A3","yj.buYuan":"\u8865\u57A3","yj.faMuZuoLiang":"\u4F10\u6728\u505A\u6881","yj.zuoZhao":"\u4F5C\u7076","yj.jieChu":"\u89E3\u9664","yj.kaiZhuYan":"\u5F00\u67F1\u773C","yj.chuanPing":"\u7A7F\u5C4F\u6247\u67B6","yj.gaiWuHeJi":"\u76D6\u5C4B\u5408\u810A","yj.kaiCe":"\u5F00\u5395","yj.zaoCang":"\u9020\u4ED3","yj.saiXue":"\u585E\u7A74","yj.pingZhi":"\u5E73\u6CBB\u9053\u6D82","yj.zaoQiao":"\u9020\u6865","yj.zuoCe":"\u4F5C\u5395","yj.zhuDi":"\u7B51\u5824","yj.kaiChi":"\u5F00\u6C60","yj.faMu":"\u4F10\u6728","yj.kaiQu":"\u5F00\u6E20","yj.jueJing":"\u6398\u4E95","yj.saoShe":"\u626B\u820D","yj.fangShui":"\u653E\u6C34","yj.zaoWu":"\u9020\u5C4B","yj.heJi":"\u5408\u810A","yj.zaoChuChou":"\u9020\u755C\u7A20","yj.xiuMen":"\u4FEE\u95E8","yj.dingSang":"\u5B9A\u78C9","yj.zuoLiang":"\u4F5C\u6881","yj.xiuShi":"\u4FEE\u9970\u57A3\u5899","yj.jiaMa":"\u67B6\u9A6C","yj.kaiShi":"\u5F00\u5E02","yj.guaBian":"\u6302\u533E","yj.naChai":"\u7EB3\u8D22","yj.qiuCai":"\u6C42\u8D22","yj.kaiCang":"\u5F00\u4ED3","yj.maiChe":"\u4E70\u8F66","yj.zhiChan":"\u7F6E\u4EA7","yj.guYong":"\u96C7\u5EB8","yj.chuHuoCai":"\u51FA\u8D27\u8D22","yj.anJiXie":"\u5B89\u673A\u68B0","yj.zaoCheQi":"\u9020\u8F66\u5668","yj.jingLuo":"\u7ECF\u7EDC","yj.yunNiang":"\u915D\u917F","yj.zuoRan":"\u4F5C\u67D3","yj.guZhu":"\u9F13\u94F8","yj.zaoChuan":"\u9020\u8239","yj.geMi":"\u5272\u871C","yj.zaiZhong":"\u683D\u79CD","yj.quYu":"\u53D6\u6E14","yj.jieWang":"\u7ED3\u7F51","yj.muYang":"\u7267\u517B","yj.anDuiWei":"\u5B89\u7893\u78D1","yj.xiYi":"\u4E60\u827A","yj.ruXue":"\u5165\u5B66","yj.liFa":"\u7406\u53D1","yj.tanBing":"\u63A2\u75C5","yj.jianGui":"\u89C1\u8D35","yj.chengChuan":"\u4E58\u8239","yj.duShui":"\u6E21\u6C34","yj.zhenJiu":"\u9488\u7078","yj.chuXing":"\u51FA\u884C","yj.yiXi":"\u79FB\u5F99","yj.fenJu":"\u5206\u5C45","yj.TiTou":"\u5243\u5934","yj.zhengShou":"\u6574\u624B\u8DB3\u7532","yj.naChu":"\u7EB3\u755C","yj.buZhuo":"\u6355\u6349","yj.tianLie":"\u754B\u730E","yj.jiaoNiuMa":"\u6559\u725B\u9A6C","yj.huiQinYou":"\u4F1A\u4EB2\u53CB","yj.fuRen":"\u8D74\u4EFB","yj.qiuYi":"\u6C42\u533B","yj.zhiBing":"\u6CBB\u75C5","yj.ciSong":"\u8BCD\u8BBC","yj.qiJiDongTu":"\u8D77\u57FA\u52A8\u571F","yj.poWuHuaiYuan":"\u7834\u5C4B\u574F\u57A3","yj.gaiWu":"\u76D6\u5C4B","yj.zaoCangKu":"\u9020\u4ED3\u5E93","yj.liQuanJiaoYi":"\u7ACB\u5238\u4EA4\u6613","yj.jiaoYi":"\u4EA4\u6613","yj.liQuan":"\u7ACB\u5238","yj.anJi":"\u5B89\u673A","yj.huiYou":"\u4F1A\u53CB","yj.qiuYiLiaoBing":"\u6C42\u533B\u7597\u75C5","yj.zhuShi":"\u8BF8\u4E8B\u4E0D\u5B9C","yj.yuShi":"\u9980\u4E8B\u52FF\u53D6","yj.xingSang":"\u884C\u4E27","yj.duanYi":"\u65AD\u8681","yj.guiXiu":"\u5F52\u5CAB","xx.bi":"\u6BD5","xx.yi":"\u7FFC","xx.ji":"\u7B95","xx.kui":"\u594E","xx.gui":"\u9B3C","xx.di":"\u6C10","xx.xu":"\u865A","xx.wei":"\u5371","xx.zi":"\u89DC","xx.zhen":"\u8F78","xx.dou":"\u6597","xx.lou":"\u5A04","xx.liu":"\u67F3","xx.fang":"\u623F","xx.xin":"\u5FC3","xx.shi":"\u5BA4","xx.can":"\u53C2","xx.jiao":"\u89D2","xx.niu":"\u725B","xx.vei":"\u80C3","xx.xing":"\u661F","xx.zhang":"\u5F20","xx.tail":"\u5C3E","xx.qiang":"\u58C1","xx.jing":"\u4E95","xx.kang":"\u4EA2","xx.nv":"\u5973","xx.mao":"\u6634","sz.chun":"\u6625","sz.xia":"\u590F","sz.qiu":"\u79CB","sz.dong":"\u51AC","od.first":"\u5B5F","od.second":"\u4EF2","od.third":"\u5B63","yx.shuo":"\u6714","yx.jiShuo":"\u65E2\u6714","yx.eMeiXin":"\u86FE\u7709\u65B0","yx.eMei":"\u86FE\u7709","yx.xi":"\u5915","yx.shangXian":"\u4E0A\u5F26","yx.jiuYe":"\u4E5D\u591C","yx.night":"\u5BB5","yx.jianYingTu":"\u6E10\u76C8\u51F8","yx.xiaoWang":"\u5C0F\u671B","yx.wang":"\u671B","yx.jiWang":"\u65E2\u671B","yx.liDai":"\u7ACB\u5F85","yx.juDai":"\u5C45\u5F85","yx.qinDai":"\u5BDD\u5F85","yx.gengDai":"\u66F4\u5F85","yx.jianKuiTu":"\u6E10\u4E8F\u51F8","yx.xiaXian":"\u4E0B\u5F26","yx.youMing":"\u6709\u660E","yx.eMeiCan":"\u86FE\u7709\u6B8B","yx.can":"\u6B8B","yx.xiao":"\u6653","yx.hui":"\u6666","ny.sangZhe":"\u6851\u67D8","ny.baiLa":"\u767D\u8721","ny.yangLiu":"\u6768\u67F3","ny.jinBo":"\u91D1\u7B94","ny.haiZhong":"\u6D77\u4E2D","ny.daHai":"\u5927\u6D77","ny.shaZhong":"\u6C99\u4E2D","ny.luZhong":"\u7089\u4E2D","ny.shanXia":"\u5C71\u4E0B","ny.daLin":"\u5927\u6797","ny.pingDi":"\u5E73\u5730","ny.luPang":"\u8DEF\u65C1","ny.biShang":"\u58C1\u4E0A","ny.jianFeng":"\u5251\u950B","ny.shanTou":"\u5C71\u5934","ny.fuDeng":"\u8986\u706F","ny.jianXia":"\u6DA7\u4E0B","ny.tianHe":"\u5929\u6CB3","ny.chengTou":"\u57CE\u5934","ny.daYi":"\u5927\u9A7F","ny.chaiChuan":"\u9497\u948F","ny.quanZhong":"\u6CC9\u4E2D","ny.daXi":"\u5927\u6EAA","ny.wuShang":"\u5C4B\u4E0A","ny.piLi":"\u9739\u96F3","ny.tianShang":"\u5929\u4E0A","ny.songBo":"\u677E\u67CF","ny.shiLiu":"\u77F3\u69B4","ny.changLiu":"\u957F\u6D41"},en:{"tg.jia":"Jia","tg.yi":"Yi","tg.bing":"Bing","tg.ding":"Ding","tg.wu":"Wu","tg.ji":"Ji","tg.geng":"Geng","tg.xin":"Xin","tg.ren":"Ren","tg.gui":"Gui","dz.zi":"Zi","dz.chou":"Chou","dz.yin":"Yin","dz.mao":"Mao","dz.chen":"Chen","dz.si":"Si","dz.wu":"Wu","dz.wei":"Wei","dz.shen":"Shen","dz.you":"You","dz.xu":"Xu","dz.hai":"Hai","zx.jian":"Build","zx.chu":"Remove","zx.man":"Full","zx.ping":"Flat","zx.ding":"Stable","zx.zhi":"Hold","zx.po":"Break","zx.wei":"Danger","zx.cheng":"Complete","zx.shou":"Collect","zx.kai":"Open","zx.bi":"Close","jz.jiaZi":"JiaZi","jz.yiChou":"YiChou","jz.bingYin":"BingYin","jz.dingMao":"DingMao","jz.wuChen":"WuChen","jz.jiSi":"JiSi","jz.gengWu":"GengWu","jz.xinWei":"XinWei","jz.renShen":"RenShen","jz.guiYou":"GuiYou","jz.jiaXu":"JiaXu","jz.yiHai":"YiHai","jz.bingZi":"BingZi","jz.dingChou":"DingChou","jz.wuYin":"WuYin","jz.jiMao":"JiMao","jz.gengChen":"GengChen","jz.xinSi":"XinSi","jz.renWu":"RenWu","jz.guiWei":"GuiWei","jz.jiaShen":"JiaShen","jz.yiYou":"YiYou","jz.bingXu":"BingXu","jz.dingHai":"DingHai","jz.wuZi":"WuZi","jz.jiChou":"JiChou","jz.gengYin":"GengYin","jz.xinMao":"XinMao","jz.renChen":"RenChen","jz.guiSi":"GuiSi","jz.jiaWu":"JiaWu","jz.yiWei":"YiWei","jz.bingShen":"BingShen","jz.dingYou":"DingYou","jz.wuXu":"WuXu","jz.jiHai":"JiHai","jz.gengZi":"GengZi","jz.xinChou":"XinChou","jz.renYin":"RenYin","jz.guiMao":"GuiMao","jz.jiaChen":"JiaChen","jz.yiSi":"YiSi","jz.bingWu":"BingWu","jz.dingWei":"DingWei","jz.wuShen":"WuShen","jz.jiYou":"JiYou","jz.gengXu":"GengXu","jz.xinHai":"XinHai","jz.renZi":"RenZi","jz.guiChou":"GuiChou","jz.jiaYin":"JiaYin","jz.yiMao":"YiMao","jz.bingChen":"BingChen","jz.dingSi":"DingSi","jz.wuWu":"WuWu","jz.jiWei":"JiWei","jz.gengShen":"GengShen","jz.xinYou":"XinYou","jz.renXu":"RenXu","jz.guiHai":"GuiHai","sx.rat":"Rat","sx.ox":"Ox","sx.tiger":"Tiger","sx.rabbit":"Rabbit","sx.dragon":"Dragon","sx.snake":"Snake","sx.horse":"Horse","sx.goat":"Goat","sx.monkey":"Monkey","sx.rooster":"Rooster","sx.dog":"Dog","sx.pig":"Pig","dw.long":"Dragon","dw.niu":"Ox","dw.gou":"Dog","dw.yang":"Goat","dw.tu":"Rabbit","dw.shu":"Rat","dw.ji":"Rooster","dw.ma":"Horse","dw.hu":"Tiger","dw.zhu":"Pig","dw.hou":"Monkey","dw.she":"Snake","dw.huLi":"Fox","dw.yan":"Swallow","dw.bao":"Leopard","dw.yuan":"Ape","dw.yin":"Earthworm","dw.lu":"Deer","dw.wu":"Crow","dw.lang":"Wolf","dw.fu":"Bat","wx.jin":"Metal","wx.mu":"Wood","wx.shui":"Water","wx.huo":"Fire","wx.tu":"Earth","wx.ri":"Sun","wx.yue":"Moon","n.zero":"0","n.one":"1","n.two":"2","n.three":"3","n.four":"4","n.five":"5","n.six":"6","n.seven":"7","n.eight":"8","n.nine":"9","n.ten":"10","n.eleven":"11","n.twelve":"12","w.sun":"Sunday","w.mon":"Monday","w.tues":"Tuesday","w.wed":"Wednesday","w.thur":"Thursday","w.fri":"Friday","w.sat":"Saturday","xz.aries":"Aries","xz.taurus":"Taurus","xz.gemini":"Gemini","xz.cancer":"Cancer","xz.leo":"Leo","xz.virgo":"Virgo","xz.libra":"Libra","xz.scorpio":"Scorpio","xz.sagittarius":"Sagittarius","xz.capricornus":"Capricornus","xz.aquarius":"Aquarius","xz.pisces":"Pisces","bg.qian":"Qian","bg.kun":"Kun","bg.zhen":"Zhen","bg.xun":"Xun","bg.kan":"Kan","bg.li":"Li","bg.gen":"Gen","bg.dui":"Dui","ps.center":"Center","ps.dong":"East","ps.nan":"South","ps.xi":"West","ps.bei":"North","ps.zhong":"Center","ps.zhengDong":"East","ps.zhengNan":"South","ps.zhengXi":"West","ps.zhengBei":"North","ps.dongBei":"Northeast","ps.dongNan":"Southeast","ps.xiBei":"Northwest","ps.xiNan":"Southwest","jq.dongZhi":"Winter Solstice","jq.xiaoHan":"Lesser Cold","jq.daHan":"Great Cold","jq.liChun":"Spring Beginning","jq.yuShui":"Rain Water","jq.jingZhe":"Awakening from Hibernation","jq.chunFen":"Spring Equinox","jq.qingMing":"Fresh Green","jq.guYu":"Grain Rain","jq.liXia":"Beginning of Summer","jq.xiaoMan":"Lesser Fullness","jq.mangZhong":"Grain in Ear","jq.xiaZhi":"Summer Solstice","jq.xiaoShu":"Lesser Heat","jq.daShu":"Greater Heat","jq.liQiu":"Beginning of Autumn","jq.chuShu":"End of Heat","jq.baiLu":"White Dew","jq.qiuFen":"Autumnal Equinox","jq.hanLu":"Cold Dew","jq.shuangJiang":"First Frost","jq.liDong":"Beginning of Winter","jq.xiaoXue":"Light Snow","jq.daXue":"Heavy Snow","sn.qingLong":"Azure Dragon","sn.baiHu":"White Tiger","sn.zhuQue":"Rosefinch","sn.xuanWu":"Black Tortoise","sn.tianEn":"Serene Grace","sn.siShen":"Death","sn.tianMa":"Pegasus","sn.baLong":"Eight Dragon","sn.jiuHu":"Nine Tiger","sn.qiNiao":"Seven Bird","sn.liuShe":"Six Snake","s.none":"None","s.goodLuck":"Good luck","s.badLuck":"Bad luck","s.yin":"Yin","s.yang":"Yang","s.white":"White","s.black":"Black","s.blue":"Blue","s.green":"Green","s.yellow":"Yellow","s.red":"Red","s.purple":"Purple","jr.chuXi":"Chinese New Year's Eve","jr.chunJie":"Luna New Year","jr.yuanXiao":"Lantern Festival","jr.duanWu":"Dragon Boat Festival","jr.qiXi":"Begging Festival","jr.zhongQiu":"Mid-Autumn Festival","jr.laBa":"Laba Festival","jr.yuanDan":"New Year's Day","jr.qingRen":"Valentine's Day","jr.fuNv":"Women's Day","jr.xiaoFei":"Consumer Rights Day","jr.zhiShu":"Arbor Day","jr.wuYi":"International Worker's Day","jr.erTong":"Children's Day","jr.qingNian":"Youth Day","jr.yuRen":"April Fools' Day","jr.jianDang":"Party's Day","jr.jianJun":"Army Day","jr.jiaoShi":"Teachers' Day","jr.guoQing":"National Day","jr.wanShengYe":"All Saints' Eve","jr.wanSheng":"All Saints' Day","jr.pingAn":"Christmas Eve","jr.shengDan":"Christmas Day","ts.zhan":"At","ts.hu":"Household","ts.zao":"Cooker","ts.dui":"Pestle","ts.xi":"Habitat","ts.win":"Window","ts.fang":"Room","ts.chuang":"Bed","ts.lu":"Stove","ts.mo":"Mill","ts.chu":"Kitchen","ts.ce":"Toilet","ts.cang":"Depot","ts.cangKu":"Depot","ts.daMen":"Gate","ts.men":"Door","ts.tang":"Hall","ly.xianSheng":"Win first","ly.xianFu":"Lose first","ly.youYin":"Friend's referral","ly.foMie":"Buddhism's demise","ly.daAn":"Great safety","ly.chiKou":"Chikagoro","yj.jiSi":"Sacrifice","yj.qiFu":"Pray","yj.qiuSi":"Seek heirs","yj.kaiGuang":"Consecretion","yj.suHui":"Paint sculptural","yj.qiJiao":"Build altar","yj.zhaiJiao":"Taoist rites","yj.muYu":"Bathing","yj.chouShen":"Reward gods","yj.zaoMiao":"Build temple","yj.siZhao":"Offer kitchen god","yj.fenXiang":"Burn incense","yj.xieTu":"Earth gratitude","yj.chuHuo":"Expel the flame","yj.diaoKe":"Carving","yj.jiaQu":"Marriage","yj.DingHun":"Engagement","yj.naCai":"Proposing","yj.wenMing":"Ask name","yj.naXu":"Uxorilocal marriage","yj.guiNing":"Visit parents","yj.anChuang":"Bed placing","yj.heZhang":"Make up accounts","yj.guanJi":"Crowning adulthood","yj.dingMeng":"Make alliance","yj.jinRenKou":"Adopt","yj.caiYi":"Dressmaking","yj.wanMian":"Cosmeticsurgery","yj.kaiRong":"Open face","yj.xiuFen":"Grave repair","yj.qiZuan":"Open coffin","yj.poTu":"Break earth","yj.anZang":"Burial","yj.liBei":"Tombstone erecting","yj.chengFu":"Formation of clothes","yj.chuFu":"Mourning clothes removal","yj.kaiShengFen":"Open grave","yj.heShouMu":"Make coffin","yj.ruLian":"Body placing","yj.yiJiu":"Move coffin","yj.puDu":"Save soul","yj.ruZhai":"Enter house","yj.anXiang":"Incenst placement","yj.anMen":"Door placing","yj.xiuZao":"Repair","yj.qiJi":"Digging","yj.dongTu":"Break ground","yj.shangLiang":"Beam placing","yj.shuZhu":"Erecting pillars","yj.kaiJing":"Open pond and well","yj.zuoBei":"Make pond and fill water","yj.chaiXie":"Smash house","yj.poWu":"Break house","yj.huaiYuan":"Demolish","yj.buYuan":"Mending","yj.faMuZuoLiang":"Make beams","yj.zuoZhao":"Make stove","yj.jieChu":"Removal","yj.kaiZhuYan":"Build beam","yj.chuanPing":"Build door","yj.gaiWuHeJi":"Cover house","yj.kaiCe":"Open toilet","yj.zaoCang":"Build depot","yj.saiXue":"Block nest","yj.pingZhi":"Repair roads","yj.zaoQiao":"Build bridge","yj.zuoCe":"Build toilet","yj.zhuDi":"Fill","yj.kaiChi":"Open pond","yj.faMu":"Lumbering","yj.kaiQu":"Canalization","yj.jueJing":"Dig well","yj.saoShe":"Sweep house","yj.fangShui":"Drainage","yj.zaoWu":"Build house","yj.heJi":"Close ridge","yj.zaoChuChou":"Livestock thickening","yj.xiuMen":"Repair door","yj.dingSang":"Fix stone","yj.zuoLiang":"Beam construction","yj.xiuShi":"Decorate wall","yj.jiaMa":"Erect horse","yj.kaiShi":"Opening","yj.guaBian":"Hang plaque","yj.naChai":"Accept wealth","yj.qiuCai":"Seek wealth","yj.kaiCang":"Open depot","yj.maiChe":"Buy car","yj.zhiChan":"Buy property","yj.guYong":"Hire","yj.chuHuoCai":"Delivery","yj.anJiXie":"Build machine","yj.zaoCheQi":"Build car","yj.jingLuo":"Build loom","yj.yunNiang":"Brew","yj.zuoRan":"Dye","yj.guZhu":"Cast","yj.zaoChuan":"Build boat","yj.geMi":"Harvest honey","yj.zaiZhong":"Farming","yj.quYu":"Fishing","yj.jieWang":"Netting","yj.muYang":"Graze","yj.anDuiWei":"Build rub","yj.xiYi":"Learn","yj.ruXue":"Enter school","yj.liFa":"Haircut","yj.tanBing":"Visiting","yj.jianGui":"Meet noble","yj.chengChuan":"Ride boat","yj.duShui":"Cross water","yj.zhenJiu":"Acupuncture","yj.chuXing":"Travel","yj.yiXi":"Move","yj.fenJu":"Live apart","yj.TiTou":"Shave","yj.zhengShou":"Manicure","yj.naChu":"Feed livestock","yj.buZhuo":"Catch","yj.tianLie":"Hunt","yj.jiaoNiuMa":"Train horse","yj.huiQinYou":"Meet friends","yj.fuRen":"Go post","yj.qiuYi":"See doctor","yj.zhiBing":"Treat","yj.ciSong":"Litigation","yj.qiJiDongTu":"Lay foundation","yj.poWuHuaiYuan":"Demolish","yj.gaiWu":"Build house","yj.zaoCangKu":"Build depot","yj.liQuanJiaoYi":"Covenant trade","yj.jiaoYi":"Trade","yj.liQuan":"Covenant","yj.anJi":"Install machine","yj.huiYou":"Meet friends","yj.qiuYiLiaoBing":"Seek treatment","yj.zhuShi":"Everything Sucks","yj.yuShi":"Do nothing else","yj.xingSang":"Funeral","yj.duanYi":"Block ant hole","yj.guiXiu":"Place beam","xx.bi":"Finish","xx.yi":"Wing","xx.ji":"Sieve","xx.kui":"Qui","xx.gui":"Ghost","xx.di":"Foundation","xx.xu":"Virtual","xx.wei":"Danger","xx.zi":"Mouth","xx.zhen":"Cross-bar","xx.dou":"Fight","xx.lou":"Weak","xx.liu":"Willow","xx.fang":"House","xx.xin":"Heart","xx.shi":"Room","xx.can":"Join","xx.jiao":"Horn","xx.niu":"Ox","xx.vei":"Stomach","xx.xing":"Star","xx.zhang":"Chang","xx.tail":"Tail","xx.qiang":"Wall","xx.jing":"Well","xx.kang":"Kang","xx.nv":"Female","xx.mao":"Mao","sz.chun":"Spring","sz.xia":"Summer","sz.qiu":"Autumn","sz.dong":"Winter","yx.shuo":"New","yx.eMeiXin":"New waxing","yx.eMei":"Waxing","yx.xi":"Evening","yx.shangXian":"First quarter","yx.jiuYe":"Nine night","yx.night":"Night","yx.jianYingTu":"Gibbous","yx.xiaoWang":"Little full","yx.wang":"Full","yx.jianKuiTu":"Disseminating","yx.xiaXian":"Third quarter","yx.eMeiCan":"Waning waxing","yx.can":"Waning","yx.xiao":"Daybreak","yx.hui":"Obscure","ny.sangZhe":"Cudrania","ny.baiLa":"Wax","ny.yangLiu":"Willow","ny.jinBo":"Foil","ny.haiZhong":"Sea","ny.daHai":"Ocean","ny.shaZhong":"Sand","ny.luZhong":"Stove","ny.shanXia":"Piedmont","ny.daLin":"Forest","ny.pingDi":"Land","ny.luPang":"Roadside","ny.biShang":"Wall","ny.jianFeng":"Blade","ny.shanTou":"Hilltop","ny.fuDeng":"Light","ny.jianXia":"Valleyn","ny.tianHe":"River","ny.chengTou":"City","ny.daYi":"Post","ny.chaiChuan":"Ornaments","ny.quanZhong":"Spring","ny.daXi":"Stream","ny.wuShang":"Roof","ny.piLi":"Thunderbolt","ny.tianShang":"Sky","ny.songBo":"Coniferin","ny.shiLiu":"Pomegranate","ny.changLiu":"Flows"}},x._OBJS={LunarUtil:s,SolarUtil:i,TaoUtil:g,FotoUtil:m,NineStarUtil:y},x._DICT_STRING={LunarUtil:{TIAN_SHEN_TYPE:{},TIAN_SHEN_TYPE_LUCK:{},XIU_LUCK:{},LU:{},XIU:{},SHA:{},POSITION_DESC:{},NAYIN:{},WU_XING_GAN:{},WU_XING_ZHI:{},SHOU:{},GONG:{},FESTIVAL:{},ZHENG:{},ANIMAL:{},SHI_SHEN:{},XIU_SONG:{}},SolarUtil:{FESTIVAL:{}},TaoUtil:{BA_HUI:{},BA_JIE:{}}},x._DICT_NUMBER={LunarUtil:{ZHI_TIAN_SHEN_OFFSET:{},CHANG_SHENG_OFFSET:{}}},x._DICT_ARRAY={LunarUtil:{ZHI_HIDE_GAN:{}}},x._ARRAYS={LunarUtil:{GAN:[],ZHI:[],JIA_ZI:[],ZHI_XING:[],XUN:[],XUN_KONG:[],CHONG:[],CHONG_GAN:[],CHONG_GAN_TIE:[],HE_GAN_5:[],HE_ZHI_6:[],SHENGXIAO:[],NUMBER:[],POSITION_XI:[],POSITION_YANG_GUI:[],POSITION_YIN_GUI:[],POSITION_FU:[],POSITION_FU_2:[],POSITION_CAI:[],POSITION_TAI_SUI_YEAR:[],POSITION_GAN:[],POSITION_ZHI:[],JIE_QI:[],JIE_QI_IN_USE:[],TIAN_SHEN:[],SHEN_SHA:[],PENGZU_GAN:[],PENGZU_ZHI:[],MONTH_ZHI:[],CHANG_SHENG:[],HOU:[],WU_HOU:[],POSITION_TAI_DAY:[],POSITION_TAI_MONTH:[],YI_JI:[],LIU_YAO:[],MONTH:[],SEASON:[],DAY:[],YUE_XIANG:[]},SolarUtil:{WEEK:[],XINGZUO:[]},TaoUtil:{AN_WU:[]},FotoUtil:{XIU_27:[]},NineStarUtil:{NUMBER:[],WU_XING:[],POSITION:[],LUCK_XUAN_KONG:[],YIN_YANG_QI_MEN:[],COLOR:[]}};class _{constructor(t,e){this._year=t.getStartYear()+e,this._age=t.getStartAge()+e,this._index=e,this._daYun=t,this._lunar=t.getLunar();}getYear(){return this._year;}getAge(){return this._age;}getIndex(){return this._index;}getLunar(){return this._lunar;}getGanZhi(){let t=s.getJiaZiIndex(this._lunar.getJieQiTable()[x.getMessage("jq.liChun")].getLunar().getYearInGanZhiExact())+this._index;return this._daYun.getIndex()>0&&(t+=this._daYun.getStartAge()-1),t%=s.JIA_ZI.length,s.JIA_ZI[t];}getXun(){return s.getXun(this.getGanZhi());}getXunKong(){return s.getXunKong(this.getGanZhi());}getLiuYue(){let t=[];for(let e=0;e<12;e++)t.push(new d(this,e));return t;}}class E{constructor(t,e,n){this._year=t.getStartYear()+e,this._age=t.getStartAge()+e,this._index=e,this._daYun=t,this._lunar=t.getLunar(),this._forward=n;}getYear(){return this._year;}getAge(){return this._age;}getIndex(){return this._index;}getGanZhi(){let t=s.getJiaZiIndex(this._lunar.getTimeInGanZhi()),e=this._index+1;this._daYun.getIndex()>0&&(e+=this._daYun.getStartAge()-1),t+=this._forward?e:-e;let n=s.JIA_ZI.length;for(;t<0;)t+=n;return t%=n,s.JIA_ZI[t];}getXun(){return s.getXun(this.getGanZhi());}getXunKong(){return s.getXunKong(this.getGanZhi());}}class w{constructor(t,e){let n,r,i,o;let a=t.getLunar(),s=a.getSolar().getYear(),u=t.getStartSolar().getYear();e<1?(n=s,r=1,i=u-1,o=u-s):(r=(n=u+(e-1)*10)-s+1,i=n+9,o=r+9),this._startYear=n,this._endYear=i,this._startAge=r,this._endAge=o,this._index=e,this._yun=t,this._lunar=a;}getStartYear(){return this._startYear;}getEndYear(){return this._endYear;}getStartAge(){return this._startAge;}getEndAge(){return this._endAge;}getIndex(){return this._index;}getLunar(){return this._lunar;}getGanZhi(){if(this._index<1)return"";let t=s.getJiaZiIndex(this._lunar.getMonthInGanZhiExact());t+=this._yun.isForward()?this._index:-this._index;let e=s.JIA_ZI.length;return t>=e&&(t-=e),t<0&&(t+=e),s.JIA_ZI[t];}getXun(){return s.getXun(this.getGanZhi());}getXunKong(){return s.getXunKong(this.getGanZhi());}getLiuNian(t=10){this._index<1&&(t=this._endYear-this._startYear+1);let e=[];for(let n=0;n<t;n++)e.push(new _(this,n));return e;}getXiaoYun(t=10){this._index<1&&(t=this._endYear-this._startYear+1);let e=[];for(let n=0;n<t;n++)e.push(new E(this,n,this._yun.isForward()));return e;}}class M{constructor(t,e,n=1){let r,i,o;this._gender=e,this._lunar=t;let a=0==t.getYearGanIndexExact()%2,u=1===e,c=a&&u||!a&&!u;this._forward=c;let l=t.getPrevJie(),f=t.getNextJie(),d=t.getSolar(),h=c?d:l.getSolar(),g=c?f.getSolar():d,p=0;if(2===n){let t=g.subtractMinute(h);r=Math.floor(t/4320),t-=4320*r,i=Math.floor(t/360),t-=360*i,o=Math.floor(t/12),t-=12*o,p=2*t;}else{let t=(23==g.getHour()?11:s.getTimeZhiIndex(g.toYmdHms().substring(11,16)))-(23==h.getHour()?11:s.getTimeZhiIndex(h.toYmdHms().substring(11,16))),e=g.subtract(h);t<0&&(t+=12,e--);let n=Math.floor(10*t/30);i=4*e+n,o=10*t-30*n,r=Math.floor(i/12),i-=12*r;}this._startYear=r,this._startMonth=i,this._startDay=o,this._startHour=p;}getGender(){return this._gender;}getStartYear(){return this._startYear;}getStartMonth(){return this._startMonth;}getStartDay(){return this._startDay;}getStartHour(){return this._startHour;}isForward(){return this._forward;}getLunar(){return this._lunar;}getStartSolar(){let t=this._lunar.getSolar();return(t=(t=(t=t.nextYear(this._startYear)).nextMonth(this._startMonth)).next(this._startDay)).nextHour(this._startHour);}getDaYun(t=10){let e=[];for(let n=0;n<t;n++)e.push(new w(this,n));return e;}}class C{constructor(t){this._sect=2,this._lunar=t;}static fromLunar(t){return new C(t);}getSect(){return this._sect;}setSect(t){this._sect=1==t?1:2;}getDayGanIndex(){return 2===this._sect?this._lunar.getDayGanIndexExact2():this._lunar.getDayGanIndexExact();}getDayZhiIndex(){return 2===this._sect?this._lunar.getDayZhiIndexExact2():this._lunar.getDayZhiIndexExact();}getYear(){return this._lunar.getYearInGanZhiExact();}getYearGan(){return this._lunar.getYearGanExact();}getYearZhi(){return this._lunar.getYearZhiExact();}getYearHideGan(){return s.ZHI_HIDE_GAN[this.getYearZhi()]||[];}getYearWuXing(){let t=s.WU_XING_GAN[this.getYearGan()],e=s.WU_XING_ZHI[this.getYearZhi()];return t&&e?t+e:"";}getYearNaYin(){return s.NAYIN[this.getYear()]||"";}getYearShiShenGan(){return s.SHI_SHEN[this.getDayGan()+this.getYearGan()]||"";}getYearShiShenZhi(){let t=this.getDayGan(),e=s.ZHI_HIDE_GAN[this.getYearZhi()],n=[];if(e)for(let r=0,i=e.length;r<i;r++){let i=s.SHI_SHEN[t+e[r]];i&&n.push(i);}return n;}getDiShi(t){let e=s.CHANG_SHENG_OFFSET[this.getDayGan()];if(void 0==e)return"";let n=e+(this.getDayGanIndex()%2==0?t:-t);return n>=12&&(n-=12),n<0&&(n+=12),s.CHANG_SHENG[n];}getYearDiShi(){return this.getDiShi(this._lunar.getYearZhiIndexExact());}getYearXun(){return this._lunar.getYearXunExact();}getYearXunKong(){return this._lunar.getYearXunKongExact();}getMonth(){return this._lunar.getMonthInGanZhiExact();}getMonthGan(){return this._lunar.getMonthGanExact();}getMonthZhi(){return this._lunar.getMonthZhiExact();}getMonthHideGan(){return s.ZHI_HIDE_GAN[this.getMonthZhi()]||[];}getMonthWuXing(){let t=s.WU_XING_GAN[this.getMonthGan()],e=s.WU_XING_ZHI[this.getMonthZhi()];return t&&e?t+e:"";}getMonthNaYin(){return s.NAYIN[this.getMonth()]||"";}getMonthShiShenGan(){return s.SHI_SHEN[this.getDayGan()+this.getMonthGan()]||"";}getMonthShiShenZhi(){let t=this.getDayGan(),e=s.ZHI_HIDE_GAN[this.getMonthZhi()],n=[];if(e)for(let r=0,i=e.length;r<i;r++){let i=s.SHI_SHEN[t+e[r]];i&&n.push(i);}return n;}getMonthDiShi(){return this.getDiShi(this._lunar.getMonthZhiIndexExact());}getMonthXun(){return this._lunar.getMonthXunExact();}getMonthXunKong(){return this._lunar.getMonthXunKongExact();}getDay(){return 2===this._sect?this._lunar.getDayInGanZhiExact2():this._lunar.getDayInGanZhiExact();}getDayGan(){return 2===this._sect?this._lunar.getDayGanExact2():this._lunar.getDayGanExact();}getDayZhi(){return 2===this._sect?this._lunar.getDayZhiExact2():this._lunar.getDayZhiExact();}getDayHideGan(){return s.ZHI_HIDE_GAN[this.getDayZhi()]||[];}getDayWuXing(){let t=s.WU_XING_GAN[this.getDayGan()],e=s.WU_XING_ZHI[this.getDayZhi()];return t&&e?t+e:"";}getDayNaYin(){return s.NAYIN[this.getDay()]||"";}getDayShiShenGan(){return"\u65E5\u4E3B";}getDayShiShenZhi(){let t=this.getDayGan(),e=s.ZHI_HIDE_GAN[this.getDayZhi()],n=[];if(e)for(let r=0,i=e.length;r<i;r++){let i=s.SHI_SHEN[t+e[r]];i&&n.push(i);}return n;}getDayDiShi(){return this.getDiShi(this.getDayZhiIndex());}getDayXun(){return 2===this._sect?this._lunar.getDayXunExact2():this._lunar.getDayXunExact();}getDayXunKong(){return 2===this._sect?this._lunar.getDayXunKongExact2():this._lunar.getDayXunKongExact();}getTime(){return this._lunar.getTimeInGanZhi();}getTimeGan(){return this._lunar.getTimeGan();}getTimeZhi(){return this._lunar.getTimeZhi();}getTimeHideGan(){return s.ZHI_HIDE_GAN[this.getTimeZhi()]||[];}getTimeWuXing(){let t=s.WU_XING_GAN[this._lunar.getTimeGan()],e=s.WU_XING_ZHI[this._lunar.getTimeZhi()];return t&&e?t+e:"";}getTimeNaYin(){return s.NAYIN[this.getTime()]||"";}getTimeShiShenGan(){return s.SHI_SHEN[this.getDayGan()+this.getTimeGan()]||"";}getTimeShiShenZhi(){let t=this.getDayGan(),e=s.ZHI_HIDE_GAN[this.getTimeZhi()],n=[];if(e)for(let r=0,i=e.length;r<i;r++){let i=s.SHI_SHEN[t+e[r]];i&&n.push(i);}return n;}getTimeDiShi(){return this.getDiShi(this._lunar.getTimeZhiIndex());}getTimeXun(){return this._lunar.getTimeXun();}getTimeXunKong(){return this._lunar.getTimeXunKong();}getTaiYuan(){let t=this._lunar.getMonthGanIndexExact()+1;t>=10&&(t-=10);let e=this._lunar.getMonthZhiIndexExact()+3;return e>=12&&(e-=12),s.GAN[t+1]+s.ZHI[e+1];}getTaiYuanNaYin(){return s.NAYIN[this.getTaiYuan()]||"";}getTaiXi(){let t=2==this._sect?this._lunar.getDayGanIndexExact2():this._lunar.getDayGanIndexExact(),e=2==this._sect?this._lunar.getDayZhiIndexExact2():this._lunar.getDayZhiIndexExact();return s.HE_GAN_5[t]+s.HE_ZHI_6[e];}getTaiXiNaYin(){return s.NAYIN[this.getTaiXi()]||"";}getMingGong(){let t=s.find(this.getMonthZhi(),s.MONTH_ZHI).index+s.find(this.getTimeZhi(),s.MONTH_ZHI).index;t=(t>=14?26:14)-t;let e=(this._lunar.getYearGanIndexExact()+1)*2+t;for(;e>10;)e-=10;return s.GAN[e]+s.MONTH_ZHI[t];}getMingGongNaYin(){return s.NAYIN[this.getMingGong()]||"";}getShenGong(){let t=s.find(this.getMonthZhi(),s.MONTH_ZHI).index+s.find(this.getTimeZhi(),s.ZHI).index;for(;t>12;)t-=12;let e=(this._lunar.getYearGanIndexExact()+1)*2+t%12;for(;e>10;)e-=10;return s.GAN[e]+s.MONTH_ZHI[t];}getShenGongNaYin(){return s.NAYIN[this.getShenGong()]||"";}getLunar(){return this._lunar;}getYun(t,e=1){return new M(this._lunar,t,e);}toString(){return this.getYear()+" "+this.getMonth()+" "+this.getDay()+" "+this.getTime();}}let A=class{static fromIndex(t){return new A(t);}constructor(t){this._index=t;}getNumber(){return y.NUMBER[this._index];}getColor(){return y.COLOR[this._index];}getWuXing(){return y.WU_XING[this._index];}getPosition(){return y.POSITION[this._index];}getPositionDesc(){return s.POSITION_DESC[this.getPosition()]||"";}getNameInXuanKong(){return A.NAME_XUAN_KONG[this._index];}getNameInBeiDou(){return A.NAME_BEI_DOU[this._index];}getNameInQiMen(){return A.NAME_QI_MEN[this._index];}getNameInTaiYi(){return A.NAME_TAI_YI[this._index];}getLuckInQiMen(){return A.LUCK_QI_MEN[this._index];}getLuckInXuanKong(){return y.LUCK_XUAN_KONG[this._index];}getYinYangInQiMen(){return y.YIN_YANG_QI_MEN[this._index];}getTypeInTaiYi(){return A.TYPE_TAI_YI[this._index];}getBaMenInQiMen(){return A.BA_MEN_QI_MEN[this._index];}getSongInTaiYi(){return A.SONG_TAI_YI[this._index];}getIndex(){return this._index;}toString(){return this.getNumber()+this.getColor()+this.getWuXing()+this.getNameInBeiDou();}toFullString(){let t=this.getNumber();return t+=this.getColor()+this.getWuXing()+" "+this.getPosition()+"("+this.getPositionDesc()+") "+this.getNameInBeiDou()+" \u7384\u7A7A["+this.getNameInXuanKong()+" "+this.getLuckInXuanKong()+"] \u5947\u95E8["+this.getNameInQiMen()+" "+this.getLuckInQiMen(),this.getBaMenInQiMen().length>0&&(t+=" "+this.getBaMenInQiMen()+"\u95E8"),t+=" "+this.getYinYangInQiMen()+"] \u592A\u4E59["+this.getNameInTaiYi()+" "+this.getTypeInTaiYi()+"]";}},S=A;S.NAME_BEI_DOU=["\u5929\u67A2","\u5929\u7487","\u5929\u7391","\u5929\u6743","\u7389\u8861","\u5F00\u9633","\u6447\u5149","\u6D1E\u660E","\u9690\u5143"],S.NAME_XUAN_KONG=["\u8D2A\u72FC","\u5DE8\u95E8","\u7984\u5B58","\u6587\u66F2","\u5EC9\u8D1E","\u6B66\u66F2","\u7834\u519B","\u5DE6\u8F85","\u53F3\u5F3C"],S.NAME_QI_MEN=["\u5929\u84EC","\u5929\u82AE","\u5929\u51B2","\u5929\u8F85","\u5929\u79BD","\u5929\u5FC3","\u5929\u67F1","\u5929\u4EFB","\u5929\u82F1"],S.BA_MEN_QI_MEN=["\u4F11","\u6B7B","\u4F24","\u675C","","\u5F00","\u60CA","\u751F","\u666F"],S.NAME_TAI_YI=["\u592A\u4E59","\u6444\u63D0","\u8F69\u8F95","\u62DB\u6447","\u5929\u7B26","\u9752\u9F99","\u54B8\u6C60","\u592A\u9634","\u5929\u4E59"],S.TYPE_TAI_YI=["\u5409\u795E","\u51F6\u795E","\u5B89\u795E","\u5B89\u795E","\u51F6\u795E","\u5409\u795E","\u51F6\u795E","\u5409\u795E","\u5409\u795E"],S.SONG_TAI_YI=["\u95E8\u4E2D\u592A\u4E59\u660E\uFF0C\u661F\u5B98\u53F7\u8D2A\u72FC\uFF0C\u8D4C\u5F69\u8D22\u559C\u65FA\uFF0C\u5A5A\u59FB\u5927\u5409\u660C\uFF0C\u51FA\u5165\u65E0\u963B\u6321\uFF0C\u53C2\u8C12\u89C1\u8D24\u826F\uFF0C\u6B64\u884C\u4E09\u4E94\u91CC\uFF0C\u9ED1\u8863\u522B\u9634\u9633\u3002","\u95E8\u524D\u89C1\u6444\u63D0\uFF0C\u767E\u4E8B\u5FC5\u5FE7\u7591\uFF0C\u76F8\u751F\u72B9\u81EA\u53EF\uFF0C\u76F8\u514B\u7978\u5FC5\u4E34\uFF0C\u6B7B\u95E8\u5E76\u76F8\u4F1A\uFF0C\u8001\u5987\u54ED\u60B2\u557C\uFF0C\u6C42\u8C0B\u5E76\u5409\u4E8B\uFF0C\u5C3D\u7686\u4E0D\u76F8\u5B9C\uFF0C\u53EA\u53EF\u85CF\u9690\u9041\uFF0C\u82E5\u52A8\u4F24\u8EAB\u75BE\u3002","\u51FA\u5165\u4F1A\u8F69\u8F95\uFF0C\u51E1\u4E8B\u5FC5\u7F20\u7275\uFF0C\u76F8\u751F\u5168\u4E0D\u7F8E\uFF0C\u76F8\u514B\u66F4\u5FE7\u714E\uFF0C\u8FDC\u884C\u591A\u4E0D\u5229\uFF0C\u535A\u5F69\u5C3D\u8F93\u94B1\uFF0C\u4E5D\u5929\u7384\u5973\u6CD5\uFF0C\u53E5\u53E5\u4E0D\u865A\u8A00\u3002","\u62DB\u6447\u53F7\u6728\u661F\uFF0C\u5F53\u4E4B\u4E8B\u83AB\u884C\uFF0C\u76F8\u514B\u884C\u4EBA\u963B\uFF0C\u9634\u4EBA\u53E3\u820C\u8FCE\uFF0C\u68A6\u5BD0\u591A\u60CA\u60E7\uFF0C\u5C4B\u54CD\u65A7\u81EA\u9E23\uFF0C\u9634\u9633\u6D88\u606F\u7406\uFF0C\u4E07\u6CD5\u5F17\u8FDD\u60C5\u3002","\u4E94\u9B3C\u4E3A\u5929\u7B26\uFF0C\u5F53\u95E8\u9634\u5973\u8C0B\uFF0C\u76F8\u514B\u65E0\u597D\u4E8B\uFF0C\u884C\u8DEF\u963B\u4E2D\u9014\uFF0C\u8D70\u5931\u96BE\u5BFB\u89C5\uFF0C\u9053\u9022\u6709\u5C3C\u59D1\uFF0C\u6B64\u661F\u5F53\u95E8\u503C\uFF0C\u4E07\u4E8B\u6709\u707E\u9664\u3002","\u795E\u5149\u8DC3\u9752\u9F99\uFF0C\u8D22\u6C14\u559C\u91CD\u91CD\uFF0C\u6295\u5165\u6709\u9152\u98DF\uFF0C\u8D4C\u5F69\u6700\u5174\u9686\uFF0C\u66F4\u9022\u76F8\u751F\u65FA\uFF0C\u4F11\u8A00\u514B\u7834\u51F6\uFF0C\u89C1\u8D35\u5B89\u8425\u5BE8\uFF0C\u4E07\u4E8B\u603B\u5409\u540C\u3002","\u543E\u5C06\u4E3A\u54B8\u6C60\uFF0C\u5F53\u4E4B\u5C3D\u4E0D\u5B9C\uFF0C\u51FA\u5165\u591A\u4E0D\u5229\uFF0C\u76F8\u514B\u6709\u707E\u60C5\uFF0C\u8D4C\u5F69\u5168\u8F93\u5C3D\uFF0C\u6C42\u8D22\u7A7A\u624B\u56DE\uFF0C\u4ED9\u4EBA\u771F\u5999\u8BED\uFF0C\u611A\u4EBA\u83AB\u4E0E\u77E5\uFF0C\u52A8\u7528\u865A\u60CA\u9000\uFF0C\u53CD\u590D\u9006\u98CE\u5439\u3002","\u5750\u4E34\u592A\u9634\u661F\uFF0C\u767E\u7978\u4E0D\u76F8\u4FB5\uFF0C\u6C42\u8C0B\u6089\u6210\u5C31\uFF0C\u77E5\u4EA4\u6709\u89C5\u5BFB\uFF0C\u56DE\u98CE\u5F52\u6765\u8DEF\uFF0C\u6050\u6709\u6B83\u4F0F\u8D77\uFF0C\u5BC6\u8BED\u4E2D\u8BB0\u53D6\uFF0C\u614E\u4E4E\u83AB\u8F7B\u884C\u3002","\u8FCE\u6765\u5929\u4E59\u661F\uFF0C\u76F8\u9022\u767E\u4E8B\u5174\uFF0C\u8FD0\u7528\u548C\u5408\u5E86\uFF0C\u8336\u9152\u559C\u76F8\u8FCE\uFF0C\u6C42\u8C0B\u5E76\u5AC1\u5A36\uFF0C\u597D\u5408\u6709\u5929\u6210\uFF0C\u7978\u798F\u5982\u795E\u9A8C\uFF0C\u5409\u51F6\u751A\u5206\u660E\u3002"],S.LUCK_QI_MEN=["\u5927\u51F6","\u5927\u51F6","\u5C0F\u5409","\u5927\u5409","\u5927\u5409","\u5927\u5409","\u5C0F\u51F6","\u5C0F\u5409","\u5C0F\u51F6"];class D{constructor(t,e){this._name=t,this._index=e;}getName(){return this._name;}setName(t){this._name=t;}getIndex(){return this._index;}setIndex(t){this._index=t;}toString(){return this.getName();}toFullString(){return this.getName()+"\u7B2C"+this.getIndex()+"\u5929";}}class I{constructor(t,e){this._name=t,this._index=e;}getName(){return this._name;}setName(t){this._name=t;}getIndex(){return this._index;}setIndex(t){this._index=t;}toString(){return this.getName();}toFullString(){return this.getName()+"\u7B2C"+this.getIndex()+"\u5929";}}class T{static fromYm(t,e){return O.fromYear(t).getMonth(e);}constructor(t,e,n,r,i){this._year=t,this._month=e,this._dayCount=n,this._firstJulianDay=r,this._index=i,this._zhiIndex=(i-1+s.BASE_MONTH_ZHI_INDEX)%12;}getYear(){return this._year;}getMonth(){return this._month;}getIndex(){return this._index;}getGanIndex(){let t=(O.fromYear(this._year).getGanIndex()+1)%5*2;return(this._index-1+t)%10;}getZhiIndex(){return this._zhiIndex;}getGan(){return s.GAN[this.getGanIndex()+1];}getZhi(){return s.ZHI[this._zhiIndex+1];}getGanZhi(){return this.getGan()+this.getZhi();}isLeap(){return this._month<0;}getDayCount(){return this._dayCount;}getFirstJulianDay(){return this._firstJulianDay;}getPositionXi(){return s.POSITION_XI[this.getGanIndex()+1];}getPositionXiDesc(){return s.POSITION_DESC[this.getPositionXi()];}getPositionYangGui(){return s.POSITION_YANG_GUI[this.getGanIndex()+1];}getPositionYangGuiDesc(){return s.POSITION_DESC[this.getPositionYangGui()];}getPositionYinGui(){return s.POSITION_YIN_GUI[this.getGanIndex()+1];}getPositionYinGuiDesc(){return s.POSITION_DESC[this.getPositionYinGui()];}getPositionFu(t=2){return(1==t?s.POSITION_FU:s.POSITION_FU_2)[this.getGanIndex()+1];}getPositionFuDesc(t=2){return s.POSITION_DESC[this.getPositionFu(t)];}getPositionCai(){return s.POSITION_CAI[this.getGanIndex()+1];}getPositionCaiDesc(){return s.POSITION_DESC[this.getPositionCai()];}getPositionTaiSui(){let t;switch(Math.abs(this._month)){case 1:case 5:case 9:t="\u826E";break;case 3:case 7:case 11:t="\u5764";break;case 4:case 8:case 12:t="\u5DFD";break;default:t=s.POSITION_GAN[X.fromJulianDay(this.getFirstJulianDay()).getLunar().getMonthGanIndex()];}return t;}getPositionTaiSuiDesc(){return s.POSITION_DESC[this.getPositionTaiSui()];}getNineStar(){let t=O.fromYear(this._year).getZhiIndex()%3,e=(13+Math.abs(this._month))%12,n=27-3*t;e<s.BASE_MONTH_ZHI_INDEX&&(n-=3);let r=(n-e)%9;return S.fromIndex(r);}toString(){return`${this.getYear()}\u5E74${this.isLeap()?"\u95F0":""}${s.MONTH[Math.abs(this.getMonth())]}\u6708(${this.getDayCount()})\u5929`;}next(t){if(0==t)return T.fromYm(this._year,this._month);{let e,n,r,i=Math.abs(t),o=this._year,a=o,s=this._month,u=0,c=O.fromYear(o).getMonths();if(t>0){for(;;){for(e=0,r=c.length;e<r;e++)if((n=c[e]).getYear()===a&&n.getMonth()===s){u=e;break;}let t=r-u-1;if(i<t)break;i-=t;let l=c[r-1];a=l.getYear(),s=l.getMonth(),o++,c=O.fromYear(o).getMonths();}return c[u+i];}for(;;){for(e=0,r=c.length;e<r;e++)if((n=c[e]).getYear()===a&&n.getMonth()===s){u=e;break;}if(i<=u)break;i-=u;let t=c[0];a=t.getYear(),s=t.getMonth(),o--,c=O.fromYear(o).getMonths();}return c[u-i];}}}let k=class{static decode(t){let e="0000000000",n=e+e;return t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/J/g,"00")).replace(/I/g,"000")).replace(/H/g,"0000")).replace(/G/g,"00000")).replace(/t/g,"02")).replace(/s/g,"002")).replace(/r/g,"0002")).replace(/q/g,"00002")).replace(/p/g,"000002")).replace(/o/g,"0000002")).replace(/n/g,"00000002")).replace(/m/g,"000000002")).replace(/l/g,"0000000002")).replace(/k/g,"01")).replace(/j/g,"0101")).replace(/i/g,"001")).replace(/h/g,"001001")).replace(/g/g,"0001")).replace(/f/g,"00001")).replace(/e/g,"000001")).replace(/d/g,"0000001")).replace(/c/g,"00000001")).replace(/b/g,"000000001")).replace(/a/g,"0000000001")).replace(/A/g,n+n+n)).replace(/B/g,n+n+e)).replace(/C/g,n+n)).replace(/D/g,n+e)).replace(/E/g,n)).replace(/F/g,e);}static nutationLon2(t){let e=-1.742*t,n=t*t,r=0;for(let i=0,o=k.NUT_B.length;i<o;i+=5)r+=(k.NUT_B[i+3]+e)*Math.sin(k.NUT_B[i]+k.NUT_B[i+1]*t+k.NUT_B[i+2]*n),e=0;return r/100/k.SECOND_PER_RAD;}static eLon(t,e){let n,r,i,o;t/=10;let a=0,s=1,u,c=k.XL0[2]-k.XL0[1];for(let l=0;l<6;l++,s*=t)if(n=Math.floor(k.XL0[1+l]),0!=(u=(r=Math.floor(k.XL0[2+l]))-n)){e<0?i=r:(i=Math.floor(3*e*u/c+.5+n),0!=l&&(i+=3),i>r&&(i=r)),o=0;for(let e=n;e<i;e+=3)o+=k.XL0[e]*Math.cos(k.XL0[e+1]+t*k.XL0[e+2]);a+=o*s;}a/=k.XL0[0];let l=t*t;return a+(-.0728-2.7702*t-1.1019*l-.0996*l*t)/k.SECOND_PER_RAD;}static mLon(t,e){let n,r,i,o=k.XL1,a=o[0].length,s=1,u=t*t,c=u*t,l=c*t,f=l*t,d=t-10;n=0+(3.81034409+8399.684730072*t-3319e-8*u+311e-10*c-2033e-13*l)*k.SECOND_PER_RAD+(5028.792262*t+1.1124406*u+7699e-8*c-23479e-9*l-178e-10*f),d>0&&(n+=-.866+1.43*d+.054*d*d),u/=1e4,c/=1e8,l/=1e8,(e*=6)<0&&(e=a);for(let f=0,d=o.length;f<d;f++,s*=t){let d=o[f],h=d.length,g=Math.floor(e*h/a+.5);for(f>0&&(g+=6),g>=h&&(g=h),r=0,i=0;r<g;r+=6)i+=d[r]*Math.cos(d[r+1]+t*d[r+2]+u*d[r+3]+c*d[r+4]+l*d[r+5]);n+=i*s;}return n/k.SECOND_PER_RAD;}static gxcSunLon(t){let e=t*t;return -20.49552*(1+(.016708634-42037e-9*t-1267e-10*e)*Math.cos(-.043126+628.301955*t-2732e-9*e))/k.SECOND_PER_RAD;}static ev(t){let e=628.307585*t;return 628.332+21*Math.sin(1.527+e)+.44*Math.sin(1.48+2*e)+.129*Math.sin(5.82+e)*t+55e-5*Math.sin(4.21+e)*t*t;}static saLon(t,e){return k.eLon(t,e)+k.nutationLon2(t)+k.gxcSunLon(t)+Math.PI;}static dtExt(t,e){let n=(t-1820)/100;return -20+e*n*n;}static dtCalc(t){let e,n=k.DT_AT.length,r=k.DT_AT[n-2],i=k.DT_AT[n-1];if(t>=r)return t>r+100?k.dtExt(t,31):k.dtExt(t,31)-(k.dtExt(r,31)-i)*(r+100-t)/100;for(e=0;e<n&&!(t<k.DT_AT[e+5]);e+=5);let o=(t-k.DT_AT[e])/(k.DT_AT[e+5]-k.DT_AT[e])*10,a=o*o;return k.DT_AT[e+1]+k.DT_AT[e+2]*o+k.DT_AT[e+3]*a+k.DT_AT[e+4]*(a*o);}static dtT(t){return k.dtCalc(t/365.2425+2e3)/k.SECOND_PER_DAY;}static mv(t){return 8399.71-914*Math.sin(.7848+8328.691425*t+1523e-7*t*t)-(179*Math.sin(2.543+15542.7543*t)+160*Math.sin(.1874+7214.0629*t)+62*Math.sin(3.14+16657.3828*t)+34*Math.sin(4.827+16866.9323*t)+22*Math.sin(4.9+23871.4457*t)+12*Math.sin(2.59+14914.4523*t)+7*Math.sin(.23+6585.7609*t)+5*Math.sin(.9+25195.624*t)+5*Math.sin(2.32-7700.3895*t)+5*Math.sin(3.88+8956.9934*t)+5*Math.sin(.49+7771.3771*t));}static saLonT(t){let e,n=628.3319653318;return e=(t-1.75347-Math.PI)/628.3319653318,n=k.ev(e),e+=(t-k.saLon(e,10))/n,n=k.ev(e),e+=(t-k.saLon(e,-1))/n;}static msaLon(t,e,n){return k.mLon(t,e)+-.0000034-(k.eLon(t,n)+k.gxcSunLon(t)+Math.PI);}static msaLonT(t){let e,n=7771.37714500204;return e=(t+1.08472)/7771.37714500204,e+=(t-k.msaLon(e,3,3))/n,n=k.mv(e)-k.ev(e),e+=(t-k.msaLon(e,20,10))/n,e+=(t-k.msaLon(e,-1,60))/n;}static saLonT2(t){let e=(t-1.75347-Math.PI)/628.3319653318;return e-=(5297e-9*e*e+.0334166*Math.cos(4.669257+628.307585*e)+2061e-7*Math.cos(2.67823+628.307585*e)*e)/628.3319653318,e+=(t-k.eLon(e,8)-Math.PI+(20.5+17.2*Math.sin(2.1824-33.75705*e))/k.SECOND_PER_RAD)/628.3319653318;}static msaLonT2(t){let e,n=7771.37714500204,r,i=(e=(t+1.08472)/7771.37714500204)*e;return e-=(-.00003309*i+.10976*Math.cos(.784758+8328.6914246*e+152292e-9*i)+.02224*Math.cos(.1874+7214.0628654*e-21848e-8*i)-.03342*Math.cos(4.669257+628.307585*e))/n,i=e*e,r=k.mLon(e,20)-(4.8950632+628.3319653318*e+5297e-9*i+.0334166*Math.cos(4.669257+628.307585*e)+2061e-7*Math.cos(2.67823+628.307585*e)*e+349e-6*Math.cos(4.6261+1256.61517*e)-20.5/k.SECOND_PER_RAD),n=7771.38-914*Math.sin(.7848+8328.691425*e+1523e-7*i)-179*Math.sin(2.543+15542.7543*e)-160*Math.sin(.1874+7214.0629*e),e+=(t-r)/n;}static qiHigh(t){let e=36525*k.saLonT2(t),n=((e=e-k.dtT(e)+k.ONE_THIRD)+.5)%1*k.SECOND_PER_DAY;return(n<1200||n>k.SECOND_PER_DAY-1200)&&(e=36525*k.saLonT(t)-k.dtT(e)+k.ONE_THIRD),e;}static shuoHigh(t){let e=36525*k.msaLonT2(t),n=((e=e-k.dtT(e)+k.ONE_THIRD)+.5)%1*k.SECOND_PER_DAY;return(n<1800||n>k.SECOND_PER_DAY-1800)&&(e=36525*k.msaLonT(t)-k.dtT(e)+k.ONE_THIRD),e;}static qiLow(t){let e=(t-4.895062166)/628.3319653318;e-=(53*e*e+334116*Math.cos(4.67+628.307585*e)+2061*Math.cos(2.678+628.3076*e)*e)/628.3319653318/1e7;let n=48950621.66+6283319653.318*e+53*e*e+334166*Math.cos(4.669257+628.307585*e)+3489*Math.cos(4.6261+1256.61517*e)+2060.6*Math.cos(2.67823+628.307585*e)*e-994-834*Math.sin(2.1824-33.75705*e);return 36525*(e-=(n/1e7-t)/628.332+(32*(e+1.8)*(e+1.8)-20)/k.SECOND_PER_DAY/36525)+k.ONE_THIRD;}static shuoLow(t){let e=(t+1.08472)/7771.37714500204;return 36525*(e-=(-.0000331*e*e+.10976*Math.cos(.785+8328.6914*e)+.02224*Math.cos(.187+7214.0629*e)-.03342*Math.cos(4.669+628.3076*e))/7771.37714500204+(32*(e+1.8)*(e+1.8)-20)/k.SECOND_PER_DAY/36525)+k.ONE_THIRD;}static calcShuo(t){let e,n=k.SHUO_KB.length,r=0;t+=X.J2000;let i=k.SHUO_KB[0]-14,o=k.SHUO_KB[n-1]-14;if(t<i||t>=2436935)r=Math.floor(k.shuoHigh(Math.floor((t+14-2451551)/29.5306)*Math.PI*2)+.5);else if(t>=i&&t<o){for(e=0;e<n&&!(t+14<k.SHUO_KB[e+2]);e+=2);1683460==(r=Math.floor((r=k.SHUO_KB[e]+k.SHUO_KB[e+1]*Math.floor((t+14-k.SHUO_KB[e])/k.SHUO_KB[e+1]))+.5))&&r++,r-=X.J2000;}else if(t>=o&&t<2436935){r=Math.floor(k.shuoLow(Math.floor((t+14-2451551)/29.5306)*Math.PI*2)+.5);let e=Math.floor((t-o)/29.5306),n=k.SB.substring(e,e+1);"1"==n?r+=1:"2"==n&&(r-=1);}return r;}static calcQi(t){let e,n=k.QI_KB.length,r=0;t+=X.J2000;let i=k.QI_KB[0]-7,o=k.QI_KB[n-1]-7;if(t<i||t>=2436935)r=Math.floor(k.qiHigh(Math.floor((t+7-2451259)/365.2422*24)*Math.PI/12)+.5);else if(t>=i&&t<o){for(e=0;e<n&&!(t+7<k.QI_KB[e+2]);e+=2);1683460==(r=Math.floor((r=k.QI_KB[e]+k.QI_KB[e+1]*Math.floor((t+7-k.QI_KB[e])/k.QI_KB[e+1]))+.5))&&r++,r-=X.J2000;}else if(t>=o&&t<2436935){r=Math.floor(k.qiLow(Math.floor((t+7-2451259)/365.2422*24)*Math.PI/12)+.5);let e=Math.floor((t-o)/365.2422*24),n=k.QB.substring(e,e+1);"1"==n?r+=1:"2"==n&&(r-=1);}return r;}static qiAccurate(t){let e=36525*k.saLonT(t);return e-k.dtT(e)+k.ONE_THIRD;}static qiAccurate2(t){let e=Math.PI/12,n=Math.floor((t+293)/365.2422*24)*e,r=k.qiAccurate(n);return r-t>5?k.qiAccurate(n-e):r-t<-5?k.qiAccurate(n+e):r;}},F=k;F.PI_2=2*Math.PI,F.ONE_THIRD=1/3,F.SECOND_PER_DAY=86400,F.SECOND_PER_RAD=648e3/Math.PI,F.NUT_B=[2.1824,-33.75705,36e-6,-1720,920,3.5069,1256.66393,11e-6,-132,57,1.3375,16799.4182,-.000051,-23,10,4.3649,-67.5141,72e-6,21,-9,.04,-628.302,0,-14,0,2.36,8328.691,0,7,0,3.46,1884.966,0,-5,2,5.44,16833.175,0,-4,2,3.69,25128.11,0,-3,0,3.55,628.362,0,2,0],F.DT_AT=[-4e3,108371.7,-13036.8,392,0,-500,17201,-627.82,16.17,-.3413,-150,12200.6,-346.41,5.403,-.1593,150,9113.8,-328.13,-1.647,.0377,500,5707.5,-391.41,.915,.3145,900,2203.4,-283.45,13.034,-.1778,1300,490.1,-57.35,2.085,-.0072,1600,120,-9.81,-1.532,.1403,1700,10.2,-.91,.51,-.037,1800,13.4,-.72,.202,-.0193,1830,7.8,-1.81,.416,-.0247,1860,8.3,-.13,-.406,.0292,1880,-5.4,.32,-.183,.0173,1900,-2.3,2.06,.169,-.0135,1920,21.2,1.69,-.304,.0167,1940,24.2,1.22,-.064,.0031,1960,33.2,.51,.231,-.0109,1980,51,1.29,-.026,.0032,2e3,63.87,.1,0,0,2005,64.7,.21,0,0,2012,66.8,.22,0,0,2018,69,.36,0,0,2028,72.6],F.XL0=[1e10,20,578,920,1100,1124,1136,1148,1217,1226,1229,1229,1229,1229,1937,2363,2618,2633,2660,2666,17534704567,0,0,334165646,4.669256804,6283.075849991,3489428,4.6261024,12566.1517,349706,2.744118,5753.384885,341757,2.828866,3.523118,313590,3.62767,77713.771468,267622,4.418084,7860.419392,234269,6.135162,3930.209696,132429,.742464,11506.76977,127317,2.037097,529.690965,119917,1.109629,1577.343542,99025,5.23268,5884.92685,90186,2.04505,26.29832,85722,3.50849,398.149,77979,1.17883,5223.69392,75314,2.53339,5507.55324,50526,4.58293,18849.22755,49238,4.20507,775.52261,35666,2.91954,.06731,31709,5.84902,11790.62909,28413,1.89869,796.29801,27104,.31489,10977.0788,24281,.34481,5486.77784,20616,4.80647,2544.31442,20539,1.86948,5573.1428,20226,2.45768,6069.77675,15552,.83306,213.2991,13221,3.41118,2942.46342,12618,1.08303,20.7754,11513,.64545,.98032,10285,.636,4694.00295,10190,.97569,15720.83878,10172,4.2668,7.11355,9921,6.2099,2146.1654,9761,.681,155.4204,8580,5.9832,161000.6857,8513,1.2987,6275.9623,8471,3.6708,71430.6956,7964,1.8079,17260.1547,7876,3.037,12036.4607,7465,1.7551,5088.6288,7387,3.5032,3154.6871,7355,4.6793,801.8209,6963,.833,9437.7629,6245,3.9776,8827.3903,6115,1.8184,7084.8968,5696,2.7843,6286.599,5612,4.3869,14143.4952,5558,3.4701,6279.5527,5199,.1891,12139.5535,5161,1.3328,1748.0164,5115,.2831,5856.4777,4900,.4874,1194.447,4104,5.3682,8429.2413,4094,2.3985,19651.0485,3920,6.1683,10447.3878,3677,6.0413,10213.2855,3660,2.5696,1059.3819,3595,1.7088,2352.8662,3557,1.776,6812.7668,3329,.5931,17789.8456,3041,.4429,83996.8473,3005,2.7398,1349.8674,2535,3.1647,4690.4798,2474,.2148,3.5904,2366,.4847,8031.0923,2357,2.0653,3340.6124,2282,5.222,4705.7323,2189,5.5559,553.5694,2142,1.4256,16730.4637,2109,4.1483,951.7184,2030,.3713,283.8593,1992,5.2221,12168.0027,1986,5.7747,6309.3742,1912,3.8222,23581.2582,1889,5.3863,149854.4001,1790,2.2149,13367.9726,1748,4.5605,135.0651,1622,5.9884,11769.8537,1508,4.1957,6256.7775,1442,4.1932,242.7286,1435,3.7236,38.0277,1397,4.4014,6681.2249,1362,1.8893,7632.9433,1250,1.1305,5.5229,1205,2.6223,955.5997,1200,1.0035,632.7837,1129,.1774,4164.312,1083,.3273,103.0928,1052,.9387,11926.2544,1050,5.3591,1592.596,1033,6.1998,6438.4962,1001,6.0291,5746.2713,980,.999,11371.705,980,5.244,27511.468,938,2.624,5760.498,923,.483,522.577,922,4.571,4292.331,905,5.337,6386.169,862,4.165,7058.598,841,3.299,7234.794,836,4.539,25132.303,813,6.112,4732.031,812,6.271,426.598,801,5.821,28.449,787,.996,5643.179,776,2.957,23013.54,769,3.121,7238.676,758,3.974,11499.656,735,4.386,316.392,731,.607,11513.883,719,3.998,74.782,706,.323,263.084,676,5.911,90955.552,663,3.665,17298.182,653,5.791,18073.705,630,4.717,6836.645,615,1.458,233141.314,612,1.075,19804.827,596,3.321,6283.009,596,2.876,6283.143,555,2.452,12352.853,541,5.392,419.485,531,.382,31441.678,519,4.065,6208.294,513,2.361,10973.556,494,5.737,9917.697,450,3.272,11015.106,449,3.653,206.186,447,2.064,7079.374,435,4.423,5216.58,421,1.906,245.832,413,.921,3738.761,402,.84,20.355,387,1.826,11856.219,379,2.344,3.881,374,2.954,3128.389,370,5.031,536.805,365,1.018,16200.773,365,1.083,88860.057,352,5.978,3894.182,352,2.056,244287.6,351,3.713,6290.189,340,1.106,14712.317,339,.978,8635.942,339,3.202,5120.601,333,.837,6496.375,325,3.479,6133.513,316,5.089,21228.392,316,1.328,10873.986,309,3.646,10.637,303,1.802,35371.887,296,3.397,9225.539,288,6.026,154717.61,281,2.585,14314.168,262,3.856,266.607,262,2.579,22483.849,257,1.561,23543.231,255,3.949,1990.745,251,3.744,10575.407,240,1.161,10984.192,238,.106,7.046,236,4.272,6040.347,234,3.577,10969.965,211,3.714,65147.62,210,.754,13521.751,207,4.228,5650.292,202,.814,170.673,201,4.629,6037.244,200,.381,6172.87,199,3.933,6206.81,199,5.197,6262.3,197,1.046,18209.33,195,1.07,5230.807,195,4.869,36.028,194,4.313,6244.943,192,1.229,709.933,192,5.595,6282.096,192,.602,6284.056,189,3.744,23.878,188,1.904,15.252,188,.867,22003.915,182,3.681,15110.466,181,.491,1.484,179,3.222,39302.097,179,1.259,12559.038,62833196674749,0,0,20605886,2.67823456,6283.07584999,430343,2.635127,12566.1517,42526,1.59047,3.52312,11926,5.79557,26.29832,10898,2.96618,1577.34354,9348,2.5921,18849.2275,7212,1.1385,529.691,6777,1.8747,398.149,6733,4.4092,5507.5532,5903,2.888,5223.6939,5598,2.1747,155.4204,4541,.398,796.298,3637,.4662,775.5226,2896,2.6471,7.1135,2084,5.3414,.9803,1910,1.8463,5486.7778,1851,4.9686,213.2991,1729,2.9912,6275.9623,1623,.0322,2544.3144,1583,1.4305,2146.1654,1462,1.2053,10977.0788,1246,2.8343,1748.0164,1188,3.258,5088.6288,1181,5.2738,1194.447,1151,2.075,4694.003,1064,.7661,553.5694,997,1.303,6286.599,972,4.239,1349.867,945,2.7,242.729,858,5.645,951.718,758,5.301,2352.866,639,2.65,9437.763,610,4.666,4690.48,583,1.766,1059.382,531,.909,3154.687,522,5.661,71430.696,520,1.854,801.821,504,1.425,6438.496,433,.241,6812.767,426,.774,10447.388,413,5.24,7084.897,374,2.001,8031.092,356,2.429,14143.495,350,4.8,6279.553,337,.888,12036.461,337,3.862,1592.596,325,3.4,7632.943,322,.616,8429.241,318,3.188,4705.732,297,6.07,4292.331,295,1.431,5746.271,290,2.325,20.355,275,.935,5760.498,270,4.804,7234.794,253,6.223,6836.645,228,5.003,17789.846,225,5.672,11499.656,215,5.202,11513.883,208,3.955,10213.286,208,2.268,522.577,206,2.224,5856.478,206,2.55,25132.303,203,.91,6256.778,189,.532,3340.612,188,4.735,83996.847,179,1.474,4164.312,178,3.025,5.523,177,3.026,5753.385,159,4.637,3.286,157,6.124,5216.58,155,3.077,6681.225,154,4.2,13367.973,143,1.191,3894.182,138,3.093,135.065,136,4.245,426.598,134,5.765,6040.347,128,3.085,5643.179,127,2.092,6290.189,125,3.077,11926.254,125,3.445,536.805,114,3.244,12168.003,112,2.318,16730.464,111,3.901,11506.77,111,5.32,23.878,105,3.75,7860.419,103,2.447,1990.745,96,.82,3.88,96,4.08,6127.66,91,5.42,206.19,91,.42,7079.37,88,5.17,11790.63,81,.34,9917.7,80,3.89,10973.56,78,2.4,1589.07,78,2.58,11371.7,77,3.98,955.6,77,3.36,36.03,76,1.3,103.09,75,5.18,10969.97,75,4.96,6496.37,73,5.21,38.03,72,2.65,6309.37,70,5.61,3738.76,69,2.6,3496.03,69,.39,15.25,69,2.78,20.78,65,1.13,7058.6,64,4.28,28.45,61,5.63,10984.19,60,.73,419.48,60,5.28,10575.41,58,5.55,17298.18,58,3.19,4732.03,5291887,0,0,871984,1.072097,6283.07585,30913,.86729,12566.1517,2734,.053,3.5231,1633,5.1883,26.2983,1575,3.6846,155.4204,954,.757,18849.228,894,2.057,77713.771,695,.827,775.523,506,4.663,1577.344,406,1.031,7.114,381,3.441,5573.143,346,5.141,796.298,317,6.053,5507.553,302,1.192,242.729,289,6.117,529.691,271,.306,398.149,254,2.28,553.569,237,4.381,5223.694,208,3.754,.98,168,.902,951.718,153,5.759,1349.867,145,4.364,1748.016,134,3.721,1194.447,125,2.948,6438.496,122,2.973,2146.165,110,1.271,161000.686,104,.604,3154.687,100,5.986,6286.599,92,4.8,5088.63,89,5.23,7084.9,83,3.31,213.3,76,3.42,5486.78,71,6.19,4690.48,68,3.43,4694,65,1.6,2544.31,64,1.98,801.82,61,2.48,10977.08,50,1.44,6836.65,49,2.34,1592.6,46,1.31,4292.33,46,3.81,149854.4,43,.04,7234.79,40,4.94,7632.94,39,1.57,71430.7,38,3.17,6309.37,35,.99,6040.35,35,.67,1059.38,31,3.18,2352.87,31,3.55,8031.09,30,1.92,10447.39,30,2.52,6127.66,28,4.42,9437.76,28,2.71,3894.18,27,.67,25132.3,26,5.27,6812.77,25,.55,6279.55,23,1.38,4705.73,22,.64,6256.78,20,6.07,640.88,28923,5.84384,6283.07585,3496,0,0,1682,5.4877,12566.1517,296,5.196,155.42,129,4.722,3.523,71,5.3,18849.23,64,5.97,242.73,40,3.79,553.57,11408,3.14159,0,772,4.134,6283.076,77,3.84,12566.15,42,.42,155.42,88,3.14,0,17,2.77,6283.08,5,2.01,155.42,3,2.21,12566.15,27962,3.1987,84334.66158,10164,5.42249,5507.55324,8045,3.8801,5223.6939,4381,3.7044,2352.8662,3193,4.0003,1577.3435,2272,3.9847,1047.7473,1814,4.9837,6283.0758,1639,3.5646,5856.4777,1444,3.7028,9437.7629,1430,3.4112,10213.2855,1125,4.8282,14143.4952,1090,2.0857,6812.7668,1037,4.0566,71092.8814,971,3.473,4694.003,915,1.142,6620.89,878,4.44,5753.385,837,4.993,7084.897,770,5.554,167621.576,719,3.602,529.691,692,4.326,6275.962,558,4.41,7860.419,529,2.484,4705.732,521,6.25,18073.705,903,3.897,5507.553,618,1.73,5223.694,380,5.244,2352.866,166,1.627,84334.662,10001398880,0,0,167069963,3.098463508,6283.075849991,1395602,3.0552461,12566.1517,308372,5.198467,77713.771468,162846,1.173877,5753.384885,157557,2.846852,7860.419392,92480,5.45292,11506.76977,54244,4.56409,3930.2097,47211,3.661,5884.92685,34598,.96369,5507.55324,32878,5.89984,5223.69392,30678,.29867,5573.1428,24319,4.2735,11790.62909,21183,5.84715,1577.34354,18575,5.02194,10977.0788,17484,3.01194,18849.22755,10984,5.05511,5486.77784,9832,.8868,6069.7768,8650,5.6896,15720.8388,8583,1.2708,161000.6857,6490,.2725,17260.1547,6292,.9218,529.691,5706,2.0137,83996.8473,5574,5.2416,71430.6956,4938,3.245,2544.3144,4696,2.5781,775.5226,4466,5.5372,9437.7629,4252,6.0111,6275.9623,3897,5.3607,4694.003,3825,2.3926,8827.3903,3749,.8295,19651.0485,3696,4.9011,12139.5535,3566,1.6747,12036.4607,3454,1.8427,2942.4634,3319,.2437,7084.8968,3192,.1837,5088.6288,3185,1.7778,398.149,2846,1.2134,6286.599,2779,1.8993,6279.5527,2628,4.589,10447.3878,2460,3.7866,8429.2413,2393,4.996,5856.4777,2359,.2687,796.298,2329,2.8078,14143.4952,2210,1.95,3154.6871,2035,4.6527,2146.1654,1951,5.3823,2352.8662,1883,.6731,149854.4001,1833,2.2535,23581.2582,1796,.1987,6812.7668,1731,6.152,16730.4637,1717,4.4332,10213.2855,1619,5.2316,17789.8456,1381,5.1896,8031.0923,1364,3.6852,4705.7323,1314,.6529,13367.9726,1041,4.3329,11769.8537,1017,1.5939,4690.4798,998,4.201,6309.374,966,3.676,27511.468,874,6.064,1748.016,779,3.674,12168.003,771,.312,7632.943,756,2.626,6256.778,746,5.648,11926.254,693,2.924,6681.225,680,1.423,23013.54,674,.563,3340.612,663,5.661,11371.705,659,3.136,801.821,648,2.65,19804.827,615,3.029,233141.314,612,5.134,1194.447,563,4.341,90955.552,552,2.091,17298.182,534,5.1,31441.678,531,2.407,11499.656,523,4.624,6438.496,513,5.324,11513.883,477,.256,11856.219,461,1.722,7234.794,458,3.766,6386.169,458,4.466,5746.271,423,1.055,5760.498,422,1.557,7238.676,415,2.599,7058.598,401,3.03,1059.382,397,1.201,1349.867,379,4.907,4164.312,360,5.707,5643.179,352,3.626,244287.6,348,.761,10973.556,342,3.001,4292.331,336,4.546,4732.031,334,3.138,6836.645,324,4.164,9917.697,316,1.691,11015.106,307,.238,35371.887,298,1.306,6283.143,298,1.75,6283.009,293,5.738,16200.773,286,5.928,14712.317,281,3.515,21228.392,280,5.663,8635.942,277,.513,26.298,268,4.207,18073.705,266,.9,12352.853,260,2.962,25132.303,255,2.477,6208.294,242,2.8,709.933,231,1.054,22483.849,229,1.07,14314.168,216,1.314,154717.61,215,6.038,10873.986,200,.561,7079.374,198,2.614,951.718,197,4.369,167283.762,186,2.861,5216.58,183,1.66,39302.097,183,5.912,3738.761,175,2.145,6290.189,173,2.168,10575.407,171,3.702,1592.596,171,1.343,3128.389,164,5.55,6496.375,164,5.856,10984.192,161,1.998,10969.965,161,1.909,6133.513,157,4.955,25158.602,154,6.216,23543.231,153,5.357,13521.751,150,5.77,18209.33,150,5.439,155.42,139,1.778,9225.539,139,1.626,5120.601,128,2.46,13916.019,123,.717,143571.324,122,2.654,88860.057,121,4.414,3894.182,121,1.192,3.523,120,4.03,553.569,119,1.513,17654.781,117,3.117,14945.316,113,2.698,6040.347,110,3.085,43232.307,109,.998,955.6,108,2.939,17256.632,107,5.285,65147.62,103,.139,11712.955,103,5.85,213.299,102,3.046,6037.244,101,2.842,8662.24,100,3.626,6262.3,98,2.36,6206.81,98,5.11,6172.87,98,2,15110.47,97,2.67,5650.29,97,2.75,6244.94,96,4.02,6282.1,96,5.31,6284.06,92,.1,29088.81,85,3.26,20426.57,84,2.6,28766.92,81,3.58,10177.26,80,5.81,5230.81,78,2.53,16496.36,77,4.06,6127.66,73,.04,5481.25,72,5.96,12559.04,72,5.92,4136.91,71,5.49,22003.91,70,3.41,7.11,69,.62,11403.68,69,3.9,1589.07,69,1.96,12416.59,69,4.51,426.6,67,1.61,11087.29,66,4.5,47162.52,66,5.08,283.86,66,4.32,16858.48,65,1.04,6062.66,64,1.59,18319.54,63,5.7,45892.73,63,4.6,66567.49,63,3.82,13517.87,62,2.62,11190.38,61,1.54,33019.02,60,5.58,10344.3,60,5.38,316428.23,60,5.78,632.78,59,6.12,9623.69,57,.16,17267.27,57,3.86,6076.89,57,1.98,7668.64,56,4.78,20199.09,55,4.56,18875.53,55,3.51,17253.04,54,3.07,226858.24,54,4.83,18422.63,53,5.02,12132.44,52,3.63,5333.9,52,.97,155427.54,51,3.36,20597.24,50,.99,11609.86,50,2.21,1990.75,48,1.62,12146.67,48,1.17,12569.67,47,4.62,5436.99,47,1.81,12562.63,47,.59,21954.16,47,.76,7342.46,46,.27,4590.91,46,3.77,156137.48,45,5.66,10454.5,44,5.84,3496.03,43,.24,17996.03,41,5.93,51092.73,41,4.21,12592.45,40,5.14,1551.05,40,5.28,15671.08,39,3.69,18052.93,39,4.94,24356.78,38,2.72,11933.37,38,5.23,7477.52,38,4.99,9779.11,37,3.7,9388.01,37,4.44,4535.06,36,2.16,28237.23,36,2.54,242.73,36,.22,5429.88,35,6.15,19800.95,35,2.92,36949.23,34,5.63,2379.16,34,5.73,16460.33,34,5.11,5849.36,33,6.19,6268.85,10301861,1.1074897,6283.07584999,172124,1.064423,12566.1517,70222,3.14159,0,3235,1.0217,18849.2275,3080,2.8435,5507.5532,2497,1.3191,5223.6939,1849,1.4243,1577.3435,1008,5.9138,10977.0788,865,1.42,6275.962,863,.271,5486.778,507,1.686,5088.629,499,6.014,6286.599,467,5.987,529.691,440,.518,4694.003,410,1.084,9437.763,387,4.75,2544.314,375,5.071,796.298,352,.023,83996.847,344,.949,71430.696,341,5.412,775.523,322,6.156,2146.165,286,5.484,10447.388,284,3.42,2352.866,255,6.132,6438.496,252,.243,398.149,243,3.092,4690.48,225,3.689,7084.897,220,4.952,6812.767,219,.42,8031.092,209,1.282,1748.016,193,5.314,8429.241,185,1.82,7632.943,175,3.229,6279.553,173,1.537,4705.732,158,4.097,11499.656,158,5.539,3154.687,150,3.633,11513.883,148,3.222,7234.794,147,3.653,1194.447,144,.817,14143.495,135,6.151,5746.271,134,4.644,6836.645,128,2.693,1349.867,123,5.65,5760.498,118,2.577,13367.973,113,3.357,17789.846,110,4.497,4292.331,108,5.828,12036.461,102,5.621,6256.778,99,1.14,1059.38,98,.66,5856.48,93,2.32,10213.29,92,.77,16730.46,88,1.5,11926.25,86,1.42,5753.38,85,.66,155.42,81,1.64,6681.22,80,4.11,951.72,66,4.55,5216.58,65,.98,25132.3,64,4.19,6040.35,64,.52,6290.19,63,1.51,5643.18,59,6.18,4164.31,57,2.3,10973.56,55,2.32,11506.77,55,2.2,1592.6,55,5.27,3340.61,54,5.54,553.57,53,5.04,9917.7,53,.92,11371.7,52,3.98,17298.18,52,3.6,10969.97,49,5.91,3894.18,49,2.51,6127.66,48,1.67,12168,46,.31,801.82,42,3.7,10575.41,42,4.05,10984.19,40,2.17,7860.42,40,4.17,26.3,38,5.82,7058.6,37,3.39,6496.37,36,1.08,6309.37,36,5.34,7079.37,34,3.62,11790.63,32,.32,16200.77,31,4.24,3738.76,29,4.55,11856.22,29,1.26,8635.94,27,3.45,5884.93,26,5.08,10177.26,26,5.38,21228.39,24,2.26,11712.96,24,1.05,242.73,24,5.59,6069.78,23,3.63,6284.06,23,1.64,4732.03,22,3.46,213.3,21,1.05,3496.03,21,3.92,13916.02,21,4.01,5230.81,20,5.16,12352.85,20,.69,1990.75,19,2.73,6062.66,19,5.01,11015.11,18,6.04,6283.01,18,2.85,7238.68,18,5.6,6283.14,18,5.16,17253.04,18,2.54,14314.17,17,1.58,7.11,17,.98,3930.21,17,4.75,17267.27,16,2.19,6076.89,16,2.19,18073.7,16,6.12,3.52,16,4.61,9623.69,16,3.4,16496.36,15,.19,9779.11,15,5.3,13517.87,15,4.26,3128.39,15,.81,709.93,14,.5,25158.6,14,4.38,4136.91,13,.98,65147.62,13,3.31,154717.61,13,2.11,1589.07,13,1.92,22483.85,12,6.03,9225.54,12,1.53,12559.04,12,5.82,6282.1,12,5.61,5642.2,12,2.38,167283.76,12,.39,12132.44,12,3.98,4686.89,12,5.81,12569.67,12,.56,5849.36,11,.45,6172.87,11,5.8,16858.48,11,6.22,12146.67,11,2.27,5429.88,435939,5.784551,6283.07585,12363,5.57935,12566.1517,1234,3.1416,0,879,3.628,77713.771,569,1.87,5573.143,330,5.47,18849.228,147,4.48,5507.553,110,2.842,161000.686,101,2.815,5223.694,85,3.11,1577.34,65,5.47,775.52,61,1.38,6438.5,50,4.42,6286.6,47,3.66,7084.9,46,5.39,149854.4,42,.9,10977.08,40,3.2,5088.63,35,1.81,5486.78,32,5.35,3154.69,30,3.52,796.3,29,4.62,4690.48,28,1.84,4694,27,3.14,71430.7,27,6.17,6836.65,26,1.42,2146.17,25,2.81,1748.02,24,2.18,155.42,23,4.76,7234.79,21,3.38,7632.94,21,.22,4705.73,20,4.22,1349.87,20,2.01,1194.45,20,4.58,529.69,19,1.59,6309.37,18,5.7,6040.35,18,6.03,4292.33,17,2.9,9437.76,17,2,8031.09,17,5.78,83996.85,16,.05,2544.31,15,.95,6127.66,14,.36,10447.39,14,1.48,2352.87,13,.77,553.57,13,5.48,951.72,13,5.27,6279.55,13,3.76,6812.77,11,5.41,6256.78,10,.68,1592.6,10,4.95,398.15,10,1.15,3894.18,10,5.2,244287.6,10,1.94,11856.22,9,5.39,25132.3,8,6.18,1059.38,8,.69,8429.24,8,5.85,242.73,7,5.26,14143.5,7,.52,801.82,6,2.24,8635.94,6,4,13367.97,6,2.77,90955.55,6,5.17,7058.6,5,1.46,233141.31,5,4.13,7860.42,5,3.91,26.3,5,3.89,12036.46,5,5.58,6290.19,5,5.54,1990.75,5,.83,11506.77,5,6.22,6681.22,4,5.26,10575.41,4,1.91,7477.52,4,.43,10213.29,4,1.09,709.93,4,5.09,11015.11,4,4.22,88860.06,4,3.57,7079.37,4,1.98,6284.06,4,3.93,10973.56,4,6.18,9917.7,4,.36,10177.26,4,2.75,3738.76,4,3.33,5643.18,4,5.36,25158.6,14459,4.27319,6283.07585,673,3.917,12566.152,77,0,0,25,3.73,18849.23,4,2.8,6286.6,386,2.564,6283.076,31,2.27,12566.15,5,3.44,5573.14,2,2.05,18849.23,1,2.06,77713.77,1,4.41,161000.69,1,3.82,149854.4,1,4.08,6127.66,1,5.26,6438.5,9,1.22,6283.08,1,.66,12566.15],F.XL1=[[22639.586,.78475822,8328.691424623,1.5229241,25.0719,-.123598,4586.438,.1873974,7214.06286536,-2.184756,-18.86,.0828,2369.914,2.542952,15542.75428998,-.661832,6.212,-.0408,769.026,3.140313,16657.38284925,3.04585,50.144,-.2472,666.418,1.527671,628.30195521,-.02664,.062,-.0054,411.596,4.826607,16866.932315,-1.28012,-1.07,-.0059,211.656,4.115028,-1114.6285593,-3.70768,-43.93,.2064,205.436,.230523,6585.7609101,-2.15812,-18.92,.0882,191.956,4.898507,23871.4457146,.86109,31.28,-.164,164.729,2.586078,14914.4523348,-.6352,6.15,-.035,147.321,5.4553,-7700.3894694,-1.5496,-25.01,.118,124.988,.48608,7771.377145,-.3309,3.11,-.02,109.38,3.88323,8956.9933798,1.4963,25.13,-.129,55.177,5.57033,-1324.178025,.6183,7.3,-.035,45.1,.89898,25195.62374,.2428,24,-.129,39.533,3.81213,-8538.24089,2.803,26.1,-.118,38.43,4.30115,22756.817155,-2.8466,-12.6,.042,36.124,5.49587,24986.074274,4.5688,75.2,-.371,30.773,1.94559,14428.125731,-4.3695,-37.7,.166,28.397,3.28586,7842.364821,-2.2114,-18.8,.077,24.358,5.64142,16171.056245,-.6885,6.3,-.046,18.585,4.41371,-557.31428,-1.8538,-22,.1,17.954,3.58454,8399.6791,-.3576,3.2,-.03,14.53,4.9416,23243.143759,.888,31.2,-.16,14.38,.9709,32200.137139,2.384,56.4,-.29,14.251,5.7641,-2.3012,1.523,25.1,-.12,13.899,.3735,31085.50858,-1.324,12.4,-.08,13.194,1.7595,-9443.319984,-5.231,-69,.33,9.679,3.0997,-16029.080894,-3.072,-50.1,.24,9.366,.3016,24080.99518,-3.465,-19.9,.08,8.606,4.1582,-1742.930514,-3.681,-44,.21,8.453,2.8416,16100.06857,1.192,28.2,-.14,8.05,2.6292,14286.15038,-.609,6.1,-.03,7.63,6.2388,17285.684804,3.019,50.2,-.25,7.447,1.4845,1256.60391,-.053,.1,-.01,7.371,.2736,5957.458955,-2.131,-19,.09,7.063,5.6715,33.757047,-.308,-3.6,.02,6.383,4.7843,7004.5134,2.141,32.4,-.16,5.742,2.6572,32409.686605,-1.942,5,-.05,4.374,4.3443,22128.5152,-2.82,-13,.05,3.998,3.2545,33524.31516,1.766,49,-.25,3.21,2.2443,14985.44001,-2.516,-16,.06,2.915,1.7138,24499.74767,.834,31,-.17,2.732,1.9887,13799.82378,-4.343,-38,.17,2.568,5.4122,-7072.08751,-1.576,-25,.11,2.521,3.2427,8470.66678,-2.238,-19,.07,2.489,4.0719,-486.3266,-3.734,-44,.2,2.146,5.6135,-1952.47998,.645,7,-.03,1.978,2.7291,39414.2,.199,37,-.21,1.934,1.5682,33314.7657,6.092,100,-.5,1.871,.4166,30457.20662,-1.297,12,-.1,1.753,2.0582,-8886.0057,-3.38,-47,.2,1.437,2.386,-695.87607,.59,7,0,1.373,3.026,-209.54947,4.33,51,-.2,1.262,5.94,16728.37052,1.17,28,-.1,1.224,6.172,6656.74859,-4.04,-41,.2,1.187,5.873,6099.43431,-5.89,-63,.3,1.177,1.014,31571.83518,2.41,56,-.3,1.162,3.84,9585.29534,1.47,25,-.1,1.143,5.639,8364.73984,-2.18,-19,.1,1.078,1.229,70.98768,-1.88,-22,.1,1.059,3.326,40528.82856,3.91,81,-.4,.99,5.013,40738.37803,-.42,30,-.2,.948,5.687,-17772.01141,-6.75,-94,.5,.876,.298,-.35232,0,0,0,.822,2.994,393.02097,0,0,0,.788,1.836,8326.39022,3.05,50,-.2,.752,4.985,22614.8418,.91,31,-.2,.74,2.875,8330.99262,0,0,0,.669,.744,-24357.77232,-4.6,-75,.4,.644,1.314,8393.12577,-2.18,-19,.1,.639,5.888,575.33849,0,0,0,.635,1.116,23385.11911,-2.87,-13,0,.584,5.197,24428.75999,2.71,53,-.3,.583,3.513,-9095.55517,.95,4,0,.572,6.059,29970.88002,-5.03,-32,.1,.565,2.96,.32863,1.52,25,-.1,.561,4.001,-17981.56087,-2.43,-43,.2,.557,.529,7143.07519,-.3,3,0,.546,2.311,25614.37623,4.54,75,-.4,.536,4.229,15752.30376,-4.99,-45,.2,.493,3.316,-8294.9344,-1.83,-29,.1,.491,1.744,8362.4485,1.21,21,-.1,.478,1.803,-10071.6219,-5.2,-69,.3,.454,.857,15333.2048,3.66,57,-.3,.445,2.071,8311.7707,-2.18,-19,.1,.426,.345,23452.6932,-3.44,-20,.1,.42,4.941,33733.8646,-2.56,-2,0,.413,1.642,17495.2343,-1.31,-1,0,.404,1.458,23314.1314,-.99,9,-.1,.395,2.132,38299.5714,-3.51,-6,0,.382,2.7,31781.3846,-1.92,5,0,.375,4.827,6376.2114,2.17,32,-.2,.361,3.867,16833.1753,-.97,3,0,.358,5.044,15056.4277,-4.4,-38,.2,.35,5.157,-8257.7037,-3.4,-47,.2,.344,4.233,157.7344,0,0,0,.34,2.672,13657.8484,-.58,6,0,.329,5.61,41853.0066,3.29,74,-.4,.325,5.895,-39.8149,0,0,0,.309,4.387,21500.2132,-2.79,-13,.1,.302,1.278,786.0419,0,0,0,.302,5.341,-24567.3218,-.27,-24,.1,.301,1.045,5889.8848,-1.57,-12,0,.294,4.201,-2371.2325,-3.65,-44,.2,.293,3.704,21642.1886,-6.55,-57,.2,.29,4.069,32828.4391,2.36,56,-.3,.289,3.472,31713.8105,-1.35,12,-.1,.285,5.407,-33.7814,.31,4,0,.283,5.998,-16.9207,-3.71,-44,.2,.283,2.772,38785.898,.23,37,-.2,.274,5.343,15613.742,-2.54,-16,.1,.263,3.997,25823.9257,.22,24,-.1,.254,.6,24638.3095,-1.61,2,0,.253,1.344,6447.1991,.29,10,-.1,.25,.887,141.9754,-3.76,-44,.2,.247,.317,5329.157,-2.1,-19,.1,.245,.141,36.0484,-3.71,-44,.2,.231,2.287,14357.1381,-2.49,-16,.1,.227,5.158,2.6298,0,0,0,.219,5.085,47742.8914,1.72,63,-.3,.211,2.145,6638.7244,-2.18,-19,.1,.201,4.415,39623.7495,-4.13,-14,0,.194,2.091,588.4927,0,0,0,.193,3.057,-15400.7789,-3.1,-50,0,.186,5.598,16799.3582,-.72,6,0,.185,3.886,1150.677,0,0,0,.183,1.619,7178.0144,1.52,25,0,.181,2.635,8328.3391,1.52,25,0,.181,2.077,8329.0437,1.52,25,0,.179,3.215,-9652.8694,-.9,-18,0,.176,1.716,-8815.018,-5.26,-69,0,.175,5.673,550.7553,0,0,0,.17,2.06,31295.058,-5.6,-39,0,.167,1.239,7211.7617,-.7,6,0,.165,4.499,14967.4158,-.7,6,0,.164,3.595,15540.4531,.9,31,0,.164,4.237,522.3694,0,0,0,.163,4.633,15545.0555,-2.2,-19,0,.161,.478,6428.0209,-2.2,-19,0,.158,2.03,13171.5218,-4.3,-38,0,.157,2.28,7216.3641,-3.7,-44,0,.154,5.65,7935.6705,1.5,25,0,.152,.46,29828.9047,-1.3,12,0,.151,1.19,-.7113,0,0,0,.15,1.42,23942.4334,-1,9,0,.144,2.75,7753.3529,1.5,25,0,.137,2.08,7213.7105,-2.2,-19,0,.137,1.44,7214.4152,-2.2,-19,0,.136,4.46,-1185.6162,-1.8,-22,0,.136,3.03,8000.1048,-2.2,-19,0,.134,2.83,14756.7124,-.7,6,0,.131,5.05,6821.0419,-2.2,-19,0,.128,5.99,-17214.6971,-4.9,-72,0,.127,5.35,8721.7124,1.5,25,0,.126,4.49,46628.2629,-2,19,0,.125,5.94,7149.6285,1.5,25,0,.124,1.09,49067.0695,1.1,55,0,.121,2.88,15471.7666,1.2,28,0,.111,3.92,41643.4571,7.6,125,-1,.11,1.96,8904.0299,1.5,25,0,.106,3.3,-18.0489,-2.2,-19,0,.105,2.3,-4.931,1.5,25,0,.104,2.22,-6.559,-1.9,-22,0,.101,1.44,1884.9059,-.1,0,0,.1,5.92,5471.1324,-5.9,-63,0,.099,1.12,15149.7333,-.7,6,0,.096,4.73,15508.9972,-.4,10,0,.095,5.18,7230.9835,1.5,25,0,.093,3.37,39900.5266,3.9,81,0,.092,2.01,25057.0619,2.7,53,0,.092,1.21,-79.6298,0,0,0,.092,1.65,-26310.2523,-4,-68,0,.091,1.01,42062.5561,-1,23,0,.09,6.1,29342.5781,-5,-32,0,.09,4.43,15542.402,-.7,6,0,.09,3.8,15543.1066,-.7,6,0,.089,4.15,6063.3859,-2.2,-19,0,.086,4.03,52.9691,0,0,0,.085,.49,47952.4409,-2.6,11,0,.085,1.6,7632.8154,2.1,32,0,.084,.22,14392.0773,-.7,6,0,.083,6.22,6028.4466,-4,-41,0,.083,.63,-7909.9389,2.8,26,0,.083,5.2,-77.5523,0,0,0,.082,2.74,8786.1467,-2.2,-19,0,.08,2.43,9166.5428,-2.8,-26,0,.08,3.7,-25405.1732,4.1,27,0,.078,5.68,48857.52,5.4,106,-1,.077,1.85,8315.5735,-2.2,-19,0,.075,5.46,-18191.1103,1.9,8,0,.075,1.41,-16238.6304,1.3,1,0,.074,5.06,40110.0761,-.4,30,0,.072,2.1,64.4343,-3.7,-44,0,.071,2.17,37671.2695,-3.5,-6,0,.069,1.71,16693.4313,-.7,6,0,.069,3.33,-26100.7028,-8.3,-119,1,.068,1.09,8329.4028,1.5,25,0,.068,3.62,8327.9801,1.5,25,0,.068,2.41,16833.1509,-1,3,0,.067,3.4,24709.2971,-3.5,-20,0,.067,1.65,8346.7156,-.3,3,0,.066,2.61,22547.2677,1.5,39,0,.066,3.5,15576.5113,-1,3,0,.065,5.76,33037.9886,-2,5,0,.065,4.58,8322.1325,-.3,3,0,.065,6.2,17913.9868,3,50,0,.065,1.5,22685.8295,-1,9,0,.065,2.37,7180.3058,-1.9,-15,0,.064,1.06,30943.5332,2.4,56,0,.064,1.89,8288.8765,1.5,25,0,.064,4.7,6.0335,.3,4,0,.063,2.83,8368.5063,1.5,25,0,.063,5.66,-2580.7819,.7,7,0,.062,3.78,7056.3285,-2.2,-19,0,.061,1.49,8294.91,1.8,29,0,.061,.12,-10281.1714,-.9,-18,0,.061,3.06,-8362.4729,-1.2,-21,0,.061,4.43,8170.9571,1.5,25,0,.059,5.78,-13.1179,-3.7,-44,0,.059,5.97,6625.5702,-2.2,-19,0,.058,5.01,-.508,-.3,0,0,.058,2.73,7161.0938,-2.2,-19,0,.057,.19,7214.0629,-2.2,-19,0,.057,4,22199.5029,-4.7,-35,0,.057,5.38,8119.142,5.8,76,0,.056,1.07,7542.6495,1.5,25,0,.056,.28,8486.4258,1.5,25,0,.054,4.19,16655.0816,4.6,75,0,.053,.72,7267.032,-2.2,-19,0,.053,3.12,12.6192,.6,7,0,.052,2.99,-32896.013,-1.8,-49,0,.052,3.46,1097.708,0,0,0,.051,5.37,-6443.786,-1.6,-25,0,.051,1.35,7789.401,-2.2,-19,0,.051,5.83,40042.502,.2,38,0,.051,3.63,9114.733,1.5,25,0,.05,1.51,8504.484,-2.5,-22,0,.05,5.23,16659.684,1.5,25,0,.05,1.15,7247.82,-2.5,-23,0,.047,.25,-1290.421,.3,0,0,.047,4.67,-32686.464,-6.1,-100,0,.047,3.49,548.678,0,0,0,.047,2.37,6663.308,-2.2,-19,0,.046,.98,1572.084,0,0,0,.046,2.04,14954.262,-.7,6,0,.046,3.72,6691.693,-2.2,-19,0,.045,6.19,-235.287,0,0,0,.044,2.96,32967.001,-.1,27,0,.044,3.82,-1671.943,-5.6,-66,0,.043,5.82,1179.063,0,0,0,.043,.07,34152.617,1.7,49,0,.043,3.71,6514.773,-.3,0,0,.043,5.62,15.732,-2.5,-23,0,.043,5.8,8351.233,-2.2,-19,0,.042,.27,7740.199,1.5,25,0,.042,6.14,15385.02,-.7,6,0,.042,6.13,7285.051,-4.1,-41,0,.041,1.27,32757.451,4.2,78,0,.041,4.46,8275.722,1.5,25,0,.04,.23,8381.661,1.5,25,0,.04,5.87,-766.864,2.5,29,0,.04,1.66,254.431,0,0,0,.04,.4,9027.981,-.4,0,0,.04,2.96,7777.936,1.5,25,0,.039,4.67,33943.068,6.1,100,0,.039,3.52,8326.062,1.5,25,0,.039,3.75,21013.887,-6.5,-57,0,.039,5.6,606.978,0,0,0,.039,1.19,8331.321,1.5,25,0,.039,2.84,7211.433,-2.2,-19,0,.038,.67,7216.693,-2.2,-19,0,.038,6.22,25161.867,.6,28,0,.038,4.4,7806.322,1.5,25,0,.038,4.16,9179.168,-2.2,-19,0,.037,4.73,14991.999,-.7,6,0,.036,.35,67.514,-.6,-7,0,.036,3.7,25266.611,-1.6,0,0,.036,5.39,16328.796,-.7,6,0,.035,1.44,7174.248,-2.2,-19,0,.035,5,15684.73,-4.4,-38,0,.035,.39,-15.419,-2.2,-19,0,.035,6.07,15020.385,-.7,6,0,.034,6.01,7371.797,-2.2,-19,0,.034,.96,-16623.626,-3.4,-54,0,.033,6.24,9479.368,1.5,25,0,.033,3.21,23661.896,5.2,82,0,.033,4.06,8311.418,-2.2,-19,0,.033,2.4,1965.105,0,0,0,.033,5.17,15489.785,-.7,6,0,.033,5.03,21986.54,.9,31,0,.033,4.1,16691.14,2.7,46,0,.033,5.13,47114.589,1.7,63,0,.033,4.45,8917.184,1.5,25,0,.033,4.23,2.078,0,0,0,.032,2.33,75.251,1.5,25,0,.032,2.1,7253.878,-2.2,-19,0,.032,3.11,-.224,1.5,25,0,.032,4.43,16640.462,-.7,6,0,.032,5.68,8328.363,0,0,0,.031,5.32,8329.02,3,50,0,.031,3.7,16118.093,-.7,6,0,.03,3.67,16721.817,-.7,6,0,.03,5.27,-1881.492,-1.2,-15,0,.03,5.72,8157.839,-2.2,-19,0,.029,5.73,-18400.313,-6.7,-94,0,.029,2.76,16,-2.2,-19,0,.029,1.75,8879.447,1.5,25,0,.029,.32,8851.061,1.5,25,0,.029,.9,14704.903,3.7,57,0,.028,2.9,15595.723,-.7,6,0,.028,5.88,16864.631,.2,24,0,.028,.63,16869.234,-2.8,-26,0,.028,4.04,-18609.863,-2.4,-43,0,.027,5.83,6727.736,-5.9,-63,0,.027,6.12,418.752,4.3,51,0,.027,.14,41157.131,3.9,81,0,.026,3.8,15.542,0,0,0,.026,1.68,50181.698,4.8,99,-1,.026,.32,315.469,0,0,0,.025,5.67,19.188,.3,0,0,.025,3.16,62.133,-2.2,-19,0,.025,3.76,15502.939,-.7,6,0,.025,4.53,45999.961,-2,19,0,.024,3.21,837.851,-4.4,-51,0,.024,2.82,38157.596,.3,37,0,.024,5.21,15540.124,-.7,6,0,.024,.26,14218.576,0,13,0,.024,3.01,15545.384,-.7,6,0,.024,1.16,-17424.247,-.6,-21,0,.023,2.34,-67.574,.6,7,0,.023,2.44,18.024,-1.9,-22,0,.023,3.7,469.4,0,0,0,.023,.72,7136.511,-2.2,-19,0,.023,4.5,15582.569,-.7,6,0,.023,2.8,-16586.395,-4.9,-72,0,.023,1.51,80.182,0,0,0,.023,1.09,5261.583,-1.5,-12,0,.023,.56,54956.954,-.5,44,0,.023,4.01,8550.86,-2.2,-19,0,.023,4.46,38995.448,-4.1,-14,0,.023,3.82,2358.126,0,0,0,.022,3.77,32271.125,.5,34,0,.022,.82,15935.775,-.7,6,0,.022,1.07,24013.421,-2.9,-13,0,.022,.4,8940.078,-2.2,-19,0,.022,2.06,15700.489,-.7,6,0,.022,4.27,15124.002,-5,-45,0,.021,1.16,56071.583,3.2,88,0,.021,5.58,9572.189,-2.2,-19,0,.02,1.7,-17.273,-3.7,-44,0,.02,3.05,214.617,0,0,0,.02,4.41,8391.048,-2.2,-19,0,.02,5.95,23869.145,2.4,56,0,.02,.42,40947.927,-4.7,-21,0,.019,1.39,5818.897,.3,10,0,.019,.71,23873.747,-.7,6,0,.019,2.81,7291.615,-2.2,-19,0,.019,5.09,8428.018,-2.2,-19,0,.019,4.14,6518.187,-1.6,-12,0,.019,3.85,21.33,0,0,0,.018,.66,14445.046,-.7,6,0,.018,1.65,.966,-4,-48,0,.018,5.64,-17143.709,-6.8,-94,0,.018,6.01,7736.432,-2.2,-19,0,.018,2.74,31153.083,-1.9,5,0,.018,4.58,6116.355,-2.2,-19,0,.018,2.28,46.401,.3,0,0,.018,3.8,10213.597,1.4,25,0,.018,2.84,56281.132,-1.1,36,0,.018,3.53,8249.062,1.5,25,0,.017,4.43,20871.911,-3,-13,0,.017,4.44,627.596,0,0,0,.017,1.85,628.308,0,0,0,.017,1.19,8408.321,2,25,0,.017,1.95,7214.056,-2,-19,0,.017,1.57,7214.07,-2,-19,0,.017,1.65,13870.811,-6,-60,0,.017,.3,22.542,-4,-44,0,.017,2.62,-119.445,0,0,0,.016,4.87,5747.909,2,32,0,.016,4.45,14339.108,-1,6,0,.016,1.83,41366.68,0,30,0,.016,4.53,16309.618,-3,-23,0,.016,2.54,15542.754,-1,6,0,.016,6.05,1203.646,0,0,0,.015,5.2,2751.147,0,0,0,.015,1.8,-10699.924,-5,-69,0,.015,.4,22824.391,-3,-20,0,.015,2.1,30666.756,-6,-39,0,.015,2.1,6010.417,-2,-19,0,.015,.7,-23729.47,-5,-75,0,.015,1.4,14363.691,-1,6,0,.015,5.8,16900.689,-2,0,0,.015,5.2,23800.458,3,53,0,.015,5.3,6035,-2,-19,0,.015,1.2,8251.139,2,25,0,.015,3.6,-8.86,0,0,0,.015,.8,882.739,0,0,0,.015,3,1021.329,0,0,0,.015,.6,23296.107,1,31,0,.014,5.4,7227.181,2,25,0,.014,.1,7213.352,-2,-19,0,.014,4,15506.706,3,50,0,.014,3.4,7214.774,-2,-19,0,.014,4.6,6665.385,-2,-19,0,.014,.1,-8.636,-2,-22,0,.014,3.1,15465.202,-1,6,0,.014,4.9,508.863,0,0,0,.014,3.5,8406.244,2,25,0,.014,1.3,13313.497,-8,-82,0,.014,2.8,49276.619,-3,0,0,.014,.1,30528.194,-3,-10,0,.013,1.7,25128.05,1,31,0,.013,2.9,14128.405,-1,6,0,.013,3.4,57395.761,3,80,0,.013,2.7,13029.546,-1,6,0,.013,3.9,7802.556,-2,-19,0,.013,1.6,8258.802,-2,-19,0,.013,2.2,8417.709,-2,-19,0,.013,.7,9965.21,-2,-19,0,.013,3.4,50391.247,0,48,0,.013,3,7134.433,-2,-19,0,.013,2.9,30599.182,-5,-31,0,.013,3.6,-9723.857,1,0,0,.013,4.8,7607.084,-2,-19,0,.012,.8,23837.689,1,35,0,.012,3.6,4.409,-4,-44,0,.012,5,16657.031,3,50,0,.012,4.4,16657.735,3,50,0,.012,1.1,15578.803,-4,-38,0,.012,6,-11.49,0,0,0,.012,1.9,8164.398,0,0,0,.012,2.4,31852.372,-4,-17,0,.012,2.4,6607.085,-2,-19,0,.012,4.2,8359.87,0,0,0,.012,.5,5799.713,-2,-19,0,.012,2.7,7220.622,0,0,0,.012,4.3,-139.72,0,0,0,.012,2.3,13728.836,-2,-16,0,.011,3.6,14912.146,1,31,0,.011,4.7,14916.748,-2,-19,0],[1.6768,4.66926,628.301955,-.0266,.1,-.005,.51642,3.3721,6585.76091,-2.158,-18.9,.09,.41383,5.7277,14914.452335,-.635,6.2,-.04,.37115,3.9695,7700.389469,1.55,25,-.12,.2756,.7416,8956.99338,1.496,25.1,-.13,.24599,4.2253,-2.3012,1.523,25.1,-.12,.07118,.1443,7842.36482,-2.211,-19,.08,.06128,2.4998,16171.05625,-.688,6,0,.04516,.443,8399.6791,-.36,3,0,.04048,5.771,14286.15038,-.61,6,0,.03747,4.626,1256.60391,-.05,0,0,.03707,3.415,5957.45895,-2.13,-19,.1,.03649,1.8,23243.14376,.89,31,-.2,.02438,.042,16029.08089,3.07,50,-.2,.02165,1.017,-1742.93051,-3.68,-44,.2,.01923,3.097,17285.6848,3.02,50,-.3,.01692,1.28,.3286,1.52,25,-.1,.01361,.298,8326.3902,3.05,50,-.2,.01293,4.013,7072.0875,1.58,25,-.1,.01276,4.413,8330.9926,0,0,0,.0127,.101,8470.6668,-2.24,-19,.1,.01097,1.203,22128.5152,-2.82,-13,0,.01088,2.545,15542.7543,-.66,6,0,.00835,.19,7214.0629,-2.18,-19,.1,.00734,4.855,24499.7477,.83,31,-.2,.00686,5.13,13799.8238,-4.34,-38,.2,.00631,.93,-486.3266,-3.73,-44,0,.00585,.699,9585.2953,1.5,25,0,.00566,4.073,8328.3391,1.5,25,0,.00566,.638,8329.0437,1.5,25,0,.00539,2.472,-1952.48,.6,7,0,.00509,2.88,-.7113,0,0,0,.00469,3.56,30457.2066,-1.3,12,0,.00387,.78,-.3523,0,0,0,.00378,1.84,22614.8418,.9,31,0,.00362,5.53,-695.8761,.6,7,0,.00317,2.8,16728.3705,1.2,28,0,.00303,6.07,157.7344,0,0,0,.003,2.53,33.757,-.3,-4,0,.00295,4.16,31571.8352,2.4,56,0,.00289,5.98,7211.7617,-.7,6,0,.00285,2.06,15540.4531,.9,31,0,.00283,2.65,2.6298,0,0,0,.00282,6.17,15545.0555,-2.2,-19,0,.00278,1.23,-39.8149,0,0,0,.00272,3.82,7216.3641,-3.7,-44,0,.0027,4.37,70.9877,-1.9,-22,0,.00256,5.81,13657.8484,-.6,6,0,.00244,5.64,-.2237,1.5,25,0,.0024,2.96,8311.7707,-2.2,-19,0,.00239,.87,-33.7814,.3,4,0,.00216,2.31,15.9995,-2.2,-19,0,.00186,3.46,5329.157,-2.1,-19,0,.00169,2.4,24357.772,4.6,75,0,.00161,5.8,8329.403,1.5,25,0,.00161,5.2,8327.98,1.5,25,0,.0016,4.26,23385.119,-2.9,-13,0,.00156,1.26,550.755,0,0,0,.00155,1.25,21500.213,-2.8,-13,0,.00152,.6,-16.921,-3.7,-44,0,.0015,2.71,-79.63,0,0,0,.0015,5.29,15.542,0,0,0,.00148,1.06,-2371.232,-3.7,-44,0,.00141,.77,8328.691,1.5,25,0,.00141,3.67,7143.075,-.3,0,0,.00138,5.45,25614.376,4.5,75,0,.00129,4.9,23871.446,.9,31,0,.00126,4.03,141.975,-3.8,-44,0,.00124,6.01,522.369,0,0,0,.0012,4.94,-10071.622,-5.2,-69,0,.00118,5.07,-15.419,-2.2,-19,0,.00107,3.49,23452.693,-3.4,-20,0,.00104,4.78,17495.234,-1.3,0,0,.00103,1.44,-18.049,-2.2,-19,0,.00102,5.63,15542.402,-.7,6,0,.00102,2.59,15543.107,-.7,6,0,.001,4.11,-6.559,-1.9,-22,0,97e-5,.08,15400.779,3.1,50,0,96e-5,5.84,31781.385,-1.9,5,0,94e-5,1.08,8328.363,0,0,0,94e-5,2.46,16799.358,-.7,6,0,94e-5,1.69,6376.211,2.2,32,0,93e-5,3.64,8329.02,3,50,0,93e-5,2.65,16655.082,4.6,75,0,9e-4,1.9,15056.428,-4.4,-38,0,89e-5,1.59,52.969,0,0,0,88e-5,2.02,-8257.704,-3.4,-47,0,88e-5,3.02,7213.711,-2.2,-19,0,87e-5,.5,7214.415,-2.2,-19,0,87e-5,.49,16659.684,1.5,25,0,82e-5,5.64,-4.931,1.5,25,0,79e-5,5.17,13171.522,-4.3,-38,0,76e-5,3.6,29828.905,-1.3,12,0,76e-5,4.08,24567.322,.3,24,0,76e-5,4.58,1884.906,-.1,0,0,73e-5,.33,31713.811,-1.4,12,0,73e-5,.93,32828.439,2.4,56,0,71e-5,5.91,38785.898,.2,37,0,69e-5,2.2,15613.742,-2.5,-16,0,66e-5,3.87,15.732,-2.5,-23,0,66e-5,.86,25823.926,.2,24,0,65e-5,2.52,8170.957,1.5,25,0,63e-5,.18,8322.132,-.3,0,0,6e-4,5.84,8326.062,1.5,25,0,6e-4,5.15,8331.321,1.5,25,0,6e-4,2.18,8486.426,1.5,25,0,58e-5,2.3,-1.731,-4,-44,0,58e-5,5.43,14357.138,-2,-16,0,57e-5,3.09,8294.91,2,29,0,57e-5,4.67,-8362.473,-1,-21,0,56e-5,4.15,16833.151,-1,0,0,54e-5,1.93,7056.329,-2,-19,0,54e-5,5.27,8315.574,-2,-19,0,52e-5,5.6,8311.418,-2,-19,0,52e-5,2.7,-77.552,0,0,0,51e-5,4.3,7230.984,2,25,0,5e-4,.4,-.508,0,0,0,49e-5,5.4,7211.433,-2,-19,0,49e-5,4.4,7216.693,-2,-19,0,49e-5,4.3,16864.631,0,24,0,49e-5,2.2,16869.234,-3,-26,0,47e-5,6.1,627.596,0,0,0,47e-5,5,12.619,1,7,0,45e-5,4.9,-8815.018,-5,-69,0,44e-5,1.6,62.133,-2,-19,0,42e-5,2.9,-13.118,-4,-44,0,42e-5,4.1,-119.445,0,0,0,41e-5,4.3,22756.817,-3,-13,0,41e-5,3.6,8288.877,2,25,0,4e-4,.5,6663.308,-2,-19,0,4e-4,1.1,8368.506,2,25,0,39e-5,4.1,6443.786,2,25,0,39e-5,3.1,16657.383,3,50,0,38e-5,.1,16657.031,3,50,0,38e-5,3,16657.735,3,50,0,38e-5,4.6,23942.433,-1,9,0,37e-5,4.3,15385.02,-1,6,0,37e-5,5,548.678,0,0,0,36e-5,1.8,7213.352,-2,-19,0,36e-5,1.7,7214.774,-2,-19,0,35e-5,1.1,7777.936,2,25,0,35e-5,1.6,-8.86,0,0,0,35e-5,4.4,23869.145,2,56,0,35e-5,2,6691.693,-2,-19,0,34e-5,1.3,-1185.616,-2,-22,0,34e-5,2.2,23873.747,-1,6,0,33e-5,2,-235.287,0,0,0,33e-5,3.1,17913.987,3,50,0,33e-5,1,8351.233,-2,-19,0],[.00487,4.6693,628.30196,-.027,0,-.01,.00228,2.6746,-2.3012,1.523,25,-.12,.0015,3.372,6585.76091,-2.16,-19,.1,.0012,5.728,14914.45233,-.64,6,0,.00108,3.969,7700.38947,1.55,25,-.1,8e-4,.742,8956.99338,1.5,25,-.1,254e-6,6.002,.3286,1.52,25,-.1,21e-5,.144,7842.3648,-2.21,-19,0,18e-5,2.5,16171.0562,-.7,6,0,13e-5,.44,8399.6791,-.4,3,0,126e-6,5.03,8326.3902,3,50,0,12e-5,5.77,14286.1504,-.6,6,0,118e-6,5.96,8330.9926,0,0,0,11e-5,1.8,23243.1438,.9,31,0,11e-5,3.42,5957.459,-2.1,-19,0,11e-5,4.63,1256.6039,-.1,0,0,99e-6,4.7,-.7113,0,0,0,7e-5,.04,16029.0809,3.1,50,0,7e-5,5.14,8328.3391,1.5,25,0,7e-5,5.85,8329.0437,1.5,25,0,6e-5,1.02,-1742.9305,-3.7,-44,0,6e-5,3.1,17285.6848,3,50,0,54e-6,5.69,-.352,0,0,0,43e-6,.52,15.542,0,0,0,41e-6,2.03,2.63,0,0,0,4e-5,.1,8470.667,-2.2,-19,0,4e-5,4.01,7072.088,1.6,25,0,36e-6,2.93,-8.86,-.3,0,0,3e-5,1.2,22128.515,-2.8,-13,0,3e-5,2.54,15542.754,-.7,6,0,27e-6,4.43,7211.762,-.7,6,0,26e-6,.51,15540.453,.9,31,0,26e-6,1.44,15545.055,-2.2,-19,0,25e-6,5.37,7216.364,-3.7,-44,0],[12e-6,1.041,-2.3012,1.52,25,-.1,17e-7,.31,-.711,0,0,0]],F.QI_KB=[1640650.479938,15.218425,1642476.703182,15.21874996,1683430.515601,15.218750011,1752157.640664,15.218749978,1807675.003759,15.218620279,1883627.765182,15.218612292,1907369.1281,15.218449176,1936603.140413,15.218425,1939145.52418,15.218466998,1947180.7983,15.218524844,1964362.041824,15.218533526,1987372.340971,15.218513908,1999653.819126,15.218530782,2007445.469786,15.218535181,2021324.917146,15.218526248,2047257.232342,15.218519654,2070282.898213,15.218425,2073204.87285,15.218515221,2080144.500926,15.218530782,2086703.688963,15.218523776,2110033.182763,15.218425,2111190.300888,15.218425,2113731.271005,15.218515671,2120670.840263,15.218425,2123973.309063,15.218425,2125068.997336,15.218477932,2136026.312633,15.218472436,2156099.495538,15.218425,2159021.324663,15.218425,2162308.575254,15.218461742,2178485.706538,15.218425,2178759.662849,15.218445786,2185334.0208,15.218425,2187525.481425,15.218425,2188621.191481,15.218437494,2322147.76],F.QB=k.decode("FrcFs22AFsckF2tsDtFqEtF1posFdFgiFseFtmelpsEfhkF2anmelpFlF1ikrotcnEqEq2FfqmcDsrFor22FgFrcgDscFs22FgEeFtE2sfFs22sCoEsaF2tsD1FpeE2eFsssEciFsFnmelpFcFhkF2tcnEqEpFgkrotcnEqrEtFermcDsrE222FgBmcmr22DaEfnaF222sD1FpeForeF2tssEfiFpEoeFssD1iFstEqFppDgFstcnEqEpFg11FscnEqrAoAF2ClAEsDmDtCtBaDlAFbAEpAAAAAD2FgBiBqoBbnBaBoAAAAAAAEgDqAdBqAFrBaBoACdAAf1AACgAAAeBbCamDgEifAE2AABa1C1BgFdiAAACoCeE1ADiEifDaAEqAAFe1AcFbcAAAAAF1iFaAAACpACmFmAAAAAAAACrDaAAADG0"),F.SHUO_KB=[1457698.231017,29.53067166,1546082.512234,29.53085106,1640640.7353,29.5306,1642472.151543,29.53085439,1683430.5093,29.53086148,1752148.041079,29.53085097,1807665.420323,29.53059851,1883618.1141,29.5306,1907360.7047,29.5306,1936596.2249,29.5306,1939135.6753,29.5306,1947168],F.SB=k.decode("EqoFscDcrFpmEsF2DfFideFelFpFfFfFiaipqti1ksttikptikqckstekqttgkqttgkqteksttikptikq2fjstgjqttjkqttgkqtekstfkptikq2tijstgjiFkirFsAeACoFsiDaDiADc1AFbBfgdfikijFifegF1FhaikgFag1E2btaieeibggiffdeigFfqDfaiBkF1kEaikhkigeidhhdiegcFfakF1ggkidbiaedksaFffckekidhhdhdikcikiakicjF1deedFhFccgicdekgiFbiaikcfi1kbFibefgEgFdcFkFeFkdcfkF1kfkcickEiFkDacFiEfbiaejcFfffkhkdgkaiei1ehigikhdFikfckF1dhhdikcfgjikhfjicjicgiehdikcikggcifgiejF1jkieFhegikggcikFegiegkfjebhigikggcikdgkaFkijcfkcikfkcifikiggkaeeigefkcdfcfkhkdgkegieidhijcFfakhfgeidieidiegikhfkfckfcjbdehdikggikgkfkicjicjF1dbidikFiggcifgiejkiegkigcdiegfggcikdbgfgefjF1kfegikggcikdgFkeeijcfkcikfkekcikdgkabhkFikaffcfkhkdgkegbiaekfkiakicjhfgqdq2fkiakgkfkhfkfcjiekgFebicggbedF1jikejbbbiakgbgkacgiejkijjgigfiakggfggcibFifjefjF1kfekdgjcibFeFkijcfkfhkfkeaieigekgbhkfikidfcjeaibgekgdkiffiffkiakF1jhbakgdki1dj1ikfkicjicjieeFkgdkicggkighdF1jfgkgfgbdkicggfggkidFkiekgijkeigfiskiggfaidheigF1jekijcikickiggkidhhdbgcfkFikikhkigeidieFikggikhkffaffijhidhhakgdkhkijF1kiakF1kfheakgdkifiggkigicjiejkieedikgdfcggkigieeiejfgkgkigbgikicggkiaideeijkefjeijikhkiggkiaidheigcikaikffikijgkiahi1hhdikgjfifaakekighie1hiaikggikhkffakicjhiahaikggikhkijF1kfejfeFhidikggiffiggkigicjiekgieeigikggiffiggkidheigkgfjkeigiegikifiggkidhedeijcfkFikikhkiggkidhh1ehigcikaffkhkiggkidhh1hhigikekfiFkFikcidhh1hitcikggikhkfkicjicghiediaikggikhkijbjfejfeFhaikggifikiggkigiejkikgkgieeigikggiffiggkigieeigekijcijikggifikiggkideedeijkefkfckikhkiggkidhh1ehijcikaffkhkiggkidhh1hhigikhkikFikfckcidhh1hiaikgjikhfjicjicgiehdikcikggifikigiejfejkieFhegikggifikiggfghigkfjeijkhigikggifikiggkigieeijcijcikfksikifikiggkidehdeijcfdckikhkiggkhghh1ehijikifffffkhsFngErD1pAfBoDd1BlEtFqA2AqoEpDqElAEsEeB2BmADlDkqBtC1FnEpDqnEmFsFsAFnllBbFmDsDiCtDmAB2BmtCgpEplCpAEiBiEoFqFtEqsDcCnFtADnFlEgdkEgmEtEsCtDmADqFtAFrAtEcCqAE1BoFqC1F1DrFtBmFtAC2ACnFaoCgADcADcCcFfoFtDlAFgmFqBq2bpEoAEmkqnEeCtAE1bAEqgDfFfCrgEcBrACfAAABqAAB1AAClEnFeCtCgAADqDoBmtAAACbFiAAADsEtBqAB2FsDqpFqEmFsCeDtFlCeDtoEpClEqAAFrAFoCgFmFsFqEnAEcCqFeCtFtEnAEeFtAAEkFnErAABbFkADnAAeCtFeAfBoAEpFtAABtFqAApDcCGJ");let N=class{static fromYear(t){let e;return N._CACHE_YEAR&&N._CACHE_YEAR.getYear()==t?e=N._CACHE_YEAR:(e=new N(t),N._CACHE_YEAR=e),e;}constructor(t){this._year=t,this._months=[],this._jieQiJulianDays=[];let e=t-4,n=e%10,r=e%12;n<0&&(n+=10),r<0&&(r+=12),this._ganIndex=n,this._zhiIndex=r,this.compute();}compute(){let t,e;let n=[],r=[],i=[],o=[],a=this._year,u=Math.floor((a-2e3)*365.2422+180),c=365.2422*Math.floor((u-355+183)/365.2422)+355;for(F.calcQi(c)>u&&(c-=365.2422),t=0;t<26;t++)n.push(F.calcQi(c+15.2184*t));for(t=0,e=s.JIE_QI_IN_USE.length;t<e;t++)u=0===t?F.qiAccurate2(n[0]-15.2184):t<=26?F.qiAccurate2(n[t-1]):F.qiAccurate2(n[25]+15.2184*(t-26)),this._jieQiJulianDays.push(u+X.J2000);for((c=F.calcShuo(n[0]))>n[0]&&(c-=29.53),t=0;t<16;t++)r.push(F.calcShuo(c+29.5306*t));for(t=0;t<15;t++)i.push(Math.floor(r[t+1]-r[t])),o.push(t);let l=a-1,f=16;if(N._LEAP_11.indexOf(a)>-1)f=13;else if(N._LEAP_12.indexOf(a)>-1)f=14;else if(r[13]<=n[24]){for(t=1;r[t+1]>n[2*t]&&t<13;)t++;f=t;}for(e=f;e<15;e++)o[e]-=1;let d=[11,12,1,2,3,4,5,6,7,8,9,10],h=-1,g=-1,p=l;for(t=0;t<15;t++){let e=r[t]+X.J2000,n=o[t],a=d[n%12];1724360<=e&&e<1729794?a=d[(n+1)%12]:1807724<=e&&e<1808699?a=d[(n+1)%12]:(1729794==e||1808699==e)&&(a=12),-1==h&&(h=a,g=a),a<h&&(p+=1,g=1),h=a,t==f?a=-a:(1729794==e||1808699==e)&&(a=-11),this._months.push(new T(p,a,i[t],r[t]+X.J2000,g)),g++;}}getYear(){return this._year;}getGanIndex(){return this._ganIndex;}getZhiIndex(){return this._zhiIndex;}getGan(){return s.GAN[this._ganIndex+1];}getZhi(){return s.ZHI[this._zhiIndex+1];}getGanZhi(){return this.getGan()+this.getZhi();}getJieQiJulianDays(){return this._jieQiJulianDays;}getDayCount(){let t=0;for(let e=0,n=this._months.length;e<n;e++){let n=this._months[e];n.getYear()==this._year&&(t+=n.getDayCount());}return t;}getMonths(){return this._months;}getMonthsInYear(){let t=[];for(let e=0,n=this._months.length;e<n;e++){let n=this._months[e];n.getYear()==this._year&&t.push(n);}return t;}getMonth(t){for(let e=0,n=this._months.length;e<n;e++){let n=this._months[e];if(n.getYear()==this._year&&n.getMonth()==t)return n;}return null;}getLeapMonth(){for(let t=0,e=this._months.length;t<e;t++){let e=this._months[t];if(e.getYear()==this._year&&e.isLeap())return Math.abs(e.getMonth());}return 0;}toString(){return`${this.getYear()}`;}toFullString(){return`${this.getYear()}\u5E74`;}_getZaoByGan(t,e){let n=this.getMonth(1);if(null==n)return"";let r=t-X.fromJulianDay(n.getFirstJulianDay()).getLunar().getDayGanIndex();return r<0&&(r+=10),e.replace("\u51E0",s.NUMBER[r+1]);}_getZaoByZhi(t,e){let n=this.getMonth(1);if(null==n)return"";let r=t-X.fromJulianDay(n.getFirstJulianDay()).getLunar().getDayZhiIndex();return r<0&&(r+=12),e.replace("\u51E0",s.NUMBER[r+1]);}getTouLiang(){return this._getZaoByZhi(0,"\u51E0\u9F20\u5077\u7CAE");}getCaoZi(){return this._getZaoByZhi(0,"\u8349\u5B50\u51E0\u5206");}getGengTian(){return this._getZaoByZhi(1,"\u51E0\u725B\u8015\u7530");}getHuaShou(){return this._getZaoByZhi(3,"\u82B1\u6536\u51E0\u5206");}getZhiShui(){return this._getZaoByZhi(4,"\u51E0\u9F99\u6CBB\u6C34");}getTuoGu(){return this._getZaoByZhi(6,"\u51E0\u9A6C\u9A6E\u8C37");}getQiangMi(){return this._getZaoByZhi(9,"\u51E0\u9E21\u62A2\u7C73");}getKanCan(){return this._getZaoByZhi(9,"\u51E0\u59D1\u770B\u8695");}getGongZhu(){return this._getZaoByZhi(11,"\u51E0\u5C60\u5171\u732A");}getJiaTian(){return this._getZaoByGan(0,"\u7532\u7530\u51E0\u5206");}getFenBing(){return this._getZaoByGan(2,"\u51E0\u4EBA\u5206\u997C");}getDeJin(){return this._getZaoByGan(7,"\u51E0\u65E5\u5F97\u91D1");}getRenBing(){return this._getZaoByGan(2,this._getZaoByZhi(2,"\u51E0\u4EBA\u51E0\u4E19"));}getRenChu(){return this._getZaoByGan(3,this._getZaoByZhi(2,"\u51E0\u4EBA\u51E0\u9504"));}getYuan(){return N.YUAN[Math.floor((this._year+2696)/60)%3]+"\u5143";}getYun(){return N.YUN[Math.floor((this._year+2696)/20)%9]+"\u8FD0";}getNineStar(){let t=s.getJiaZiIndex(this.getGanZhi())+1,e=(62+3*(Math.floor(this._year+2696)/60%3)-t)%9;return 0==e&&(e=9),S.fromIndex(e-1);}getPositionXi(){return s.POSITION_XI[this._ganIndex+1];}getPositionXiDesc(){return s.POSITION_DESC[this.getPositionXi()];}getPositionYangGui(){return s.POSITION_YANG_GUI[this._ganIndex+1];}getPositionYangGuiDesc(){return s.POSITION_DESC[this.getPositionYangGui()];}getPositionYinGui(){return s.POSITION_YIN_GUI[this._ganIndex+1];}getPositionYinGuiDesc(){return s.POSITION_DESC[this.getPositionYinGui()];}getPositionFu(t=2){return(1==t?s.POSITION_FU:s.POSITION_FU_2)[this._ganIndex+1];}getPositionFuDesc(t=2){return s.POSITION_DESC[this.getPositionFu(t)];}getPositionCai(){return s.POSITION_CAI[this._ganIndex+1];}getPositionCaiDesc(){return s.POSITION_DESC[this.getPositionCai()];}getPositionTaiSui(){return s.POSITION_TAI_SUI_YEAR[this._zhiIndex];}getPositionTaiSuiDesc(){return s.POSITION_DESC[this.getPositionTaiSui()];}next(t){return N.fromYear(this._year+t);}},O=N;O.YUAN=["\u4E0B","\u4E0A","\u4E2D"],O.YUN=["\u4E03","\u516B","\u4E5D","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],O._LEAP_11=[75,94,170,265,322,398,469,553,583,610,678,735,754,773,849,887,936,1050,1069,1126,1145,1164,1183,1259,1278,1308,1373,1403,1441,1460,1498,1555,1593,1612,1631,1642,2033,2128,2147,2242,2614,2728,2910,3062,3244,3339,3616,3711,3730,3825,4007,4159,4197,4322,4341,4379,4417,4531,4599,4694,4713,4789,4808,4971,5085,5104,5161,5180,5199,5294,5305,5476,5677,5696,5772,5791,5848,5886,6049,6068,6144,6163,6258,6402,6440,6497,6516,6630,6641,6660,6679,6736,6774,6850,6869,6899,6918,6994,7013,7032,7051,7070,7089,7108,7127,7146,7222,7271,7290,7309,7366,7385,7404,7442,7461,7480,7491,7499,7594,7624,7643,7662,7681,7719,7738,7814,7863,7882,7901,7939,7958,7977,7996,8034,8053,8072,8091,8121,8159,8186,8216,8235,8254,8273,8311,8330,8341,8349,8368,8444,8463,8474,8493,8531,8569,8588,8626,8664,8683,8694,8702,8713,8721,8751,8789,8808,8816,8827,8846,8884,8903,8922,8941,8971,9036,9066,9085,9104,9123,9142,9161,9180,9199,9218,9256,9294,9313,9324,9343,9362,9381,9419,9438,9476,9514,9533,9544,9552,9563,9571,9582,9601,9639,9658,9666,9677,9696,9734,9753,9772,9791,9802,9821,9886,9897,9916,9935,9954,9973,9992],O._LEAP_12=[37,56,113,132,151,189,208,227,246,284,303,341,360,379,417,436,458,477,496,515,534,572,591,629,648,667,697,716,792,811,830,868,906,925,944,963,982,1001,1020,1039,1058,1088,1153,1202,1221,1240,1297,1335,1392,1411,1422,1430,1517,1525,1536,1574,3358,3472,3806,3988,4751,4941,5066,5123,5275,5343,5438,5457,5495,5533,5552,5715,5810,5829,5905,5924,6421,6535,6793,6812,6888,6907,7002,7184,7260,7279,7374,7556,7746,7757,7776,7833,7852,7871,7966,8015,8110,8129,8148,8224,8243,8338,8406,8425,8482,8501,8520,8558,8596,8607,8615,8645,8740,8778,8835,8865,8930,8960,8979,8998,9017,9055,9074,9093,9112,9150,9188,9237,9275,9332,9351,9370,9408,9427,9446,9457,9465,9495,9560,9590,9628,9647,9685,9715,9742,9780,9810,9818,9829,9848,9867,9905,9924,9943,9962,1e4],O._CACHE_YEAR=null;class B{static fromYmdHms(t,e,n,r,i,o){return new B(t,e,n,r,i,o);}constructor(t,e,n,r,i,o){this._lunar=z.fromYmdHms(t,e,n,r,i,o),this._zhiIndex=s.getTimeZhiIndex([(r<10?"0":"")+r,(i<10?"0":"")+i].join(":")),this._ganIndex=(this._lunar.getDayGanIndexExact()%5*2+this._zhiIndex)%10;}getGanIndex(){return this._ganIndex;}getZhiIndex(){return this._zhiIndex;}getGan(){return s.GAN[this._ganIndex+1];}getZhi(){return s.ZHI[this._zhiIndex+1];}getGanZhi(){return this.getGan()+this.getZhi();}getShengXiao(){return s.SHENGXIAO[this._zhiIndex+1];}getPositionXi(){return s.POSITION_XI[this._ganIndex+1];}getPositionXiDesc(){return s.POSITION_DESC[this.getPositionXi()];}getPositionYangGui(){return s.POSITION_YANG_GUI[this._ganIndex+1];}getPositionYangGuiDesc(){return s.POSITION_DESC[this.getPositionYangGui()];}getPositionYinGui(){return s.POSITION_YIN_GUI[this._ganIndex+1];}getPositionYinGuiDesc(){return s.POSITION_DESC[this.getPositionYinGui()];}getPositionFu(t=2){return(1===t?s.POSITION_FU:s.POSITION_FU_2)[this._ganIndex+1];}getPositionFuDesc(t=2){return s.POSITION_DESC[this.getPositionFu(t)];}getPositionCai(){return s.POSITION_CAI[this._ganIndex+1];}getPositionCaiDesc(){return s.POSITION_DESC[this.getPositionCai()];}getNaYin(){return s.NAYIN[this.getGanZhi()];}getTianShen(){return s.TIAN_SHEN[(this._zhiIndex+s.ZHI_TIAN_SHEN_OFFSET[this._lunar.getDayZhiExact()])%12+1];}getTianShenType(){return s.TIAN_SHEN_TYPE[this.getTianShen()];}getTianShenLuck(){return s.TIAN_SHEN_TYPE_LUCK[this.getTianShenType()];}getChong(){return s.CHONG[this._zhiIndex];}getSha(){return s.SHA[this.getZhi()];}getChongShengXiao(){let t=this.getChong();for(let e=0,n=s.ZHI.length;e<n;e++)if(s.ZHI[e]===t)return s.SHENGXIAO[e];return"";}getChongDesc(){return"("+this.getChongGan()+this.getChong()+")"+this.getChongShengXiao();}getChongGan(){return s.CHONG_GAN[this._ganIndex];}getChongGanTie(){return s.CHONG_GAN_TIE[this._ganIndex];}getYi(){return s.getTimeYi(this._lunar.getDayInGanZhiExact(),this.getGanZhi());}getJi(){return s.getTimeJi(this._lunar.getDayInGanZhiExact(),this.getGanZhi());}getNineStar(){let t=this._lunar.getSolar().toYmd(),e=this._lunar.getJieQiTable(),n=!1;t>=e[x.getMessage("jq.dongZhi")].toYmd()&&t<e[x.getMessage("jq.xiaZhi")].toYmd()&&(n=!0);let r=(n?[0,3,6]:[8,5,2])[this._lunar.getDayZhiIndex()%3],i=n?r+this._zhiIndex:r+9-this._zhiIndex;return S.fromIndex(i%9);}getXun(){return s.getXun(this.getGanZhi());}getXunKong(){return s.getXunKong(this.getGanZhi());}getMinHm(){let t=this._lunar.getHour();return t<1?"00:00":t>22?"23:00":(t%2==0&&(t-=1),(t<10?"0":"")+t+":00");}getMaxHm(){let t=this._lunar.getHour();return t<1?"00:59":t>22?"23:59":(t%2!=0&&(t+=1),(t<10?"0":"")+t+":59");}toString(){return this.getGanZhi();}}let P=class{constructor(t){this._lunar=t;}static fromLunar(t){return new P(t);}static fromYmdHms(t,e,n,r,i,o){return P.fromLunar(z.fromYmdHms(t+P.DEAD_YEAR-1,e,n,r,i,o));}static fromYmd(t,e,n){return P.fromYmdHms(t,e,n,0,0,0);}getLunar(){return this._lunar;}getYear(){let t=this._lunar.getSolar().getYear(),e=t-P.DEAD_YEAR;return t===this._lunar.getYear()&&e++,e;}getMonth(){return this._lunar.getMonth();}getDay(){return this._lunar.getDay();}getYearInChinese(){let t=this.getYear()+"",e="";for(let n=0,r=t.length;n<r;n++)e+=s.NUMBER[t.charCodeAt(n)-48];return e;}getMonthInChinese(){return this._lunar.getMonthInChinese();}getDayInChinese(){return this._lunar.getDayInChinese();}getFestivals(){return m.FESTIVAL[this.getMonth()+"-"+this.getDay()]||[];}getOtherFestivals(){let t=[],e=m.OTHER_FESTIVAL[this.getMonth()+"-"+this.getDay()];return e&&e.forEach(e=>{t.push(e);}),t;}isMonthZhai(){let t=this.getMonth();return 1===t||5===t||9===t;}isDayYangGong(){let t=this.getFestivals();for(let e=0,n=t.length;e<n;e++)if("\u6768\u516C\u5FCC"===t[e].getName())return!0;return!1;}isDayZhaiShuoWang(){let t=this.getDay();return 1===t||15===t;}isDayZhaiSix(){let t=this.getDay();if(8===t||14===t||15===t||23===t||29===t||30===t)return!0;if(28===t){let t=T.fromYm(this._lunar.getYear(),this.getMonth());if(null!=t&&30!==t.getDayCount())return!0;}return!1;}isDayZhaiTen(){let t=this.getDay();return 1===t||8===t||14===t||15===t||18===t||23===t||24===t||28===t||29===t||30===t;}isDayZhaiGuanYin(){let t=this.getMonth()+"-"+this.getDay();for(let e=0,n=m.DAY_ZHAI_GUAN_YIN.length;e<n;e++)if(t===m.DAY_ZHAI_GUAN_YIN[e])return!0;return!1;}getXiu(){return m.getXiu(this.getMonth(),this.getDay());}getXiuLuck(){return s.XIU_LUCK[this.getXiu()];}getXiuSong(){return s.XIU_SONG[this.getXiu()];}getZheng(){return s.ZHENG[this.getXiu()];}getAnimal(){return s.ANIMAL[this.getXiu()];}getGong(){return s.GONG[this.getXiu()];}getShou(){return s.SHOU[this.getGong()];}toString(){return this.getYearInChinese()+"\u5E74"+this.getMonthInChinese()+"\u6708"+this.getDayInChinese();}toFullString(){let t=this.toString(),e=this.getFestivals();for(let n=0,r=e.length;n<r;n++)t+=" ("+e[n]+")";return t;}},L=P;L.DEAD_YEAR=-543;let j=class{constructor(t){this._lunar=t;}static fromLunar(t){return new j(t);}static fromYmdHms(t,e,n,r,i,o){return j.fromLunar(z.fromYmdHms(t+j.BIRTH_YEAR,e,n,r,i,o));}static fromYmd(t,e,n){return j.fromYmdHms(t,e,n,0,0,0);}getLunar(){return this._lunar;}getYear(){return this._lunar.getYear()-j.BIRTH_YEAR;}getMonth(){return this._lunar.getMonth();}getDay(){return this._lunar.getDay();}getYearInChinese(){let t=this.getYear()+"",e="";for(let n=0,r=t.length;n<r;n++)e+=s.NUMBER[t.charCodeAt(n)-48];return e;}getMonthInChinese(){return this._lunar.getMonthInChinese();}getDayInChinese(){return this._lunar.getDayInChinese();}getFestivals(){let t=[],e=g.FESTIVAL[this.getMonth()+"-"+this.getDay()];e&&e.forEach(e=>{t.push(e);});let n=this._lunar.getJieQi();x.getMessage("jq.dongZhi")===n?t.push(new h("\u5143\u59CB\u5929\u5C0A\u5723\u8BDE")):x.getMessage("jq.xiaZhi")===n&&t.push(new h("\u7075\u5B9D\u5929\u5C0A\u5723\u8BDE"));let r=g.BA_JIE[n];return r&&t.push(new h(r)),(r=g.BA_HUI[this._lunar.getDayInGanZhi()])&&t.push(new h(r)),t;}_isDayIn(t){let e=this.getMonth()+"-"+this.getDay();for(let n=0,r=t.length;n<r;n++)if(e===t[n])return!0;return!1;}isDaySanHui(){return this._isDayIn(g.SAN_HUI);}isDaySanYuan(){return this._isDayIn(g.SAN_YUAN);}isDayBaJie(){return!!g.BA_JIE[this._lunar.getJieQi()];}isDayWuLa(){return this._isDayIn(g.WU_LA);}isDayBaHui(){return!!g.BA_HUI[this._lunar.getDayInGanZhi()];}isDayMingWu(){return x.getMessage("tg.wu")===this._lunar.getDayGan();}isDayAnWu(){return this._lunar.getDayZhi()===g.AN_WU[Math.abs(this.getMonth())-1];}isDayWu(){return this.isDayMingWu()||this.isDayAnWu();}isDayTianShe(){let t=!1,e=this._lunar.getMonthZhi(),n=this._lunar.getDayInGanZhi();return[x.getMessage("dz.yin"),x.getMessage("dz.mao"),x.getMessage("dz.chen")].join(",").indexOf(e)>-1?x.getMessage("jz.wuYin")===n&&(t=!0):[x.getMessage("dz.si"),x.getMessage("dz.wu"),x.getMessage("dz.wei")].join(",").indexOf(e)>-1?x.getMessage("jz.jiaWu")===n&&(t=!0):[x.getMessage("dz.shen"),x.getMessage("dz.you"),x.getMessage("dz.xu")].join(",").indexOf(e)>-1?x.getMessage("jz.wuShen")===n&&(t=!0):[x.getMessage("dz.hai"),x.getMessage("dz.zi"),x.getMessage("dz.chou")].join(",").indexOf(e)>-1&&x.getMessage("jz.jiaZi")===n&&(t=!0),t;}toString(){return this.getYearInChinese()+"\u5E74"+this.getMonthInChinese()+"\u6708"+this.getDayInChinese();}toFullString(){return"\u9053\u6B77"+this.getYearInChinese()+"\u5E74\uFF0C\u5929\u904B"+this._lunar.getYearInGanZhi()+"\u5E74\uFF0C"+this._lunar.getMonthInGanZhi()+"\u6708\uFF0C"+this._lunar.getDayInGanZhi()+"\u65E5\u3002"+this.getMonthInChinese()+"\u6708"+this.getDayInChinese()+"\u65E5\uFF0C"+this._lunar.getTimeZhi()+"\u6642\u3002";}},R=j;R.BIRTH_YEAR=-2697;class z{static fromYmd(t,e,n){return z.fromYmdHms(t,e,n,0,0,0);}static fromYmdHms(t,e,n,r,i,o){let a=O.fromYear(t),s=a.getMonth(e);if(null==s)throw Error(`wrong lunar year ${t} month ${e}`);if(n<1)throw Error("lunar day must bigger than 0");let u=s.getDayCount();if(n>u)throw Error(`only ${u} days in lunar year ${t} month ${e}`);let c=X.fromJulianDay(s.getFirstJulianDay()+n-1),l=X.fromYmdHms(c.getYear(),c.getMonth(),c.getDay(),r,i,o);return c.getYear()!==t&&(a=O.fromYear(c.getYear())),new z(t,e,n,r,i,o,l,a);}static fromSolar(t){let e=0,n=0,r=0,i=O.fromYear(t.getYear()),o=i.getMonths();for(let i=0,a=o.length;i<a;i++){let a=o[i],s=t.subtract(X.fromJulianDay(a.getFirstJulianDay()));if(s<a.getDayCount()){e=a.getYear(),n=a.getMonth(),r=s+1;break;}}return new z(e,n,r,t.getHour(),t.getMinute(),t.getSecond(),t,i);}static fromDate(t){return z.fromSolar(X.fromDate(t));}static _computeJieQi(t,e){let n=e.getJieQiJulianDays();for(let e=0,r=s.JIE_QI_IN_USE.length;e<r;e++){let r=s.JIE_QI_IN_USE[e];t.jieQiList.push(r),t.jieQi[r]=X.fromJulianDay(n[e]);}}static _computeYear(t,e,n){let r=n-4,i=r%10,o=r%12;i<0&&(i+=10),o<0&&(o+=12);let a=i,s=o,u=i,c=o,l=e.getYear(),f=e.toYmd(),d=e.toYmdHms(),h=t.jieQi[x.getMessage("jq.liChun")];h.getYear()!=l&&(h=t.jieQi.LI_CHUN);let g=h.toYmd(),p=h.toYmdHms();n===l?(f<g&&(a--,s--),d<p&&(u--,c--)):n<l&&(f>=g&&(a++,s++),d>=p&&(u++,c++)),t.yearGanIndex=i,t.yearZhiIndex=o,t.yearGanIndexByLiChun=(a<0?a+10:a)%10,t.yearZhiIndexByLiChun=(s<0?s+12:s)%12,t.yearGanIndexExact=(u<0?u+10:u)%10,t.yearZhiIndexExact=(c<0?c+12:c)%12;}static _computeMonth(t,e){let n,r=null,i,o=e.toYmd(),a=e.toYmdHms(),u=s.JIE_QI_IN_USE.length,c=-3;for(i=0;i<u;i+=2){n=t.jieQi[s.JIE_QI_IN_USE[i]];let e=null==r?o:r.toYmd();if(o>=e&&o<n.toYmd())break;r=n,c++;}let l=((t.yearGanIndexByLiChun+(c<0?1:0))%5+1)*2%10;for(i=0,t.monthGanIndex=((c<0?c+10:c)+l)%10,t.monthZhiIndex=((c<0?c+12:c)+s.BASE_MONTH_ZHI_INDEX)%12,r=null,c=-3;i<u;i+=2){n=t.jieQi[s.JIE_QI_IN_USE[i]];let e=null==r?a:r.toYmdHms();if(a>=e&&a<n.toYmdHms())break;r=n,c++;}l=((t.yearGanIndexExact+(c<0?1:0))%5+1)*2%10,t.monthGanIndexExact=((c<0?c+10:c)+l)%10,t.monthZhiIndexExact=((c<0?c+12:c)+s.BASE_MONTH_ZHI_INDEX)%12;}static _computeDay(t,e,n,r){let i=Math.floor(X.fromYmdHms(e.getYear(),e.getMonth(),e.getDay(),12,0,0).getJulianDay())-11,o=i%10,a=i%12;t.dayGanIndex=o,t.dayZhiIndex=a;let s=o,u=a;t.dayGanIndexExact2=s,t.dayZhiIndexExact2=u;let c=(n<10?"0":"")+n+":"+(r<10?"0":"")+r;c>="23:00"&&c<="23:59"&&(++s>=10&&(s-=10),++u>=12&&(u-=12)),t.dayGanIndexExact=s,t.dayZhiIndexExact=u;}static _computeTime(t,e,n){let r=s.getTimeZhiIndex((e<10?"0":"")+e+":"+(n<10?"0":"")+n);t.timeZhiIndex=r,t.timeGanIndex=(t.dayGanIndexExact%5*2+r)%10;}static _computeWeek(t,e){t.weekIndex=e.getWeek();}static _compute(t,e,n,r,i){let o={timeGanIndex:0,timeZhiIndex:0,dayGanIndex:0,dayZhiIndex:0,dayGanIndexExact:0,dayZhiIndexExact:0,dayGanIndexExact2:0,dayZhiIndexExact2:0,monthGanIndex:0,monthZhiIndex:0,monthGanIndexExact:0,monthZhiIndexExact:0,yearGanIndex:0,yearZhiIndex:0,yearGanIndexByLiChun:0,yearZhiIndexByLiChun:0,yearGanIndexExact:0,yearZhiIndexExact:0,weekIndex:0,jieQi:{},jieQiList:[]};return z._computeJieQi(o,i),z._computeYear(o,r,t),z._computeMonth(o,r),z._computeDay(o,r,e,n),z._computeTime(o,e,n),z._computeWeek(o,r),o;}constructor(t,e,n,r,i,o,a,s){let u=z._compute(t,r,i,a,s);this._year=t,this._month=e,this._day=n,this._hour=r,this._minute=i,this._second=o,this._timeGanIndex=u.timeGanIndex,this._timeZhiIndex=u.timeZhiIndex,this._dayGanIndex=u.dayGanIndex,this._dayZhiIndex=u.dayZhiIndex,this._dayGanIndexExact=u.dayGanIndexExact,this._dayZhiIndexExact=u.dayZhiIndexExact,this._dayGanIndexExact2=u.dayGanIndexExact2,this._dayZhiIndexExact2=u.dayZhiIndexExact2,this._monthGanIndex=u.monthGanIndex,this._monthZhiIndex=u.monthZhiIndex,this._monthGanIndexExact=u.monthGanIndexExact,this._monthZhiIndexExact=u.monthZhiIndexExact,this._yearGanIndex=u.yearGanIndex,this._yearZhiIndex=u.yearZhiIndex,this._yearGanIndexByLiChun=u.yearGanIndexByLiChun,this._yearZhiIndexByLiChun=u.yearZhiIndexByLiChun,this._yearGanIndexExact=u.yearGanIndexExact,this._yearZhiIndexExact=u.yearZhiIndexExact,this._weekIndex=u.weekIndex,this._jieQi=u.jieQi,this._jieQiList=u.jieQiList,this._solar=a,this._eightChar=new C(this),this._lang=x.getLanguage();}getYear(){return this._year;}getMonth(){return this._month;}getDay(){return this._day;}getHour(){return this._hour;}getMinute(){return this._minute;}getSecond(){return this._second;}getTimeGanIndex(){return this._timeGanIndex;}getTimeZhiIndex(){return this._timeZhiIndex;}getDayGanIndex(){return this._dayGanIndex;}getDayZhiIndex(){return this._dayZhiIndex;}getMonthGanIndex(){return this._monthGanIndex;}getMonthZhiIndex(){return this._monthZhiIndex;}getYearGanIndex(){return this._yearGanIndex;}getYearZhiIndex(){return this._yearZhiIndex;}getYearGanIndexByLiChun(){return this._yearGanIndexByLiChun;}getYearZhiIndexByLiChun(){return this._yearZhiIndexByLiChun;}getDayGanIndexExact(){return this._dayGanIndexExact;}getDayZhiIndexExact(){return this._dayZhiIndexExact;}getDayGanIndexExact2(){return this._dayGanIndexExact2;}getDayZhiIndexExact2(){return this._dayZhiIndexExact2;}getMonthGanIndexExact(){return this._monthGanIndexExact;}getMonthZhiIndexExact(){return this._monthZhiIndexExact;}getYearGanIndexExact(){return this._yearGanIndexExact;}getYearZhiIndexExact(){return this._yearZhiIndexExact;}getGan(){return this.getYearGan();}getZhi(){return this.getYearZhi();}getYearGan(){return s.GAN[this._yearGanIndex+1];}getYearGanByLiChun(){return s.GAN[this._yearGanIndexByLiChun+1];}getYearGanExact(){return s.GAN[this._yearGanIndexExact+1];}getYearZhi(){return s.ZHI[this._yearZhiIndex+1];}getYearZhiByLiChun(){return s.ZHI[this._yearZhiIndexByLiChun+1];}getYearZhiExact(){return s.ZHI[this._yearZhiIndexExact+1];}getYearInGanZhi(){return this.getYearGan()+this.getYearZhi();}getYearInGanZhiByLiChun(){return this.getYearGanByLiChun()+this.getYearZhiByLiChun();}getYearInGanZhiExact(){return this.getYearGanExact()+this.getYearZhiExact();}getMonthGan(){return s.GAN[this._monthGanIndex+1];}getMonthGanExact(){return s.GAN[this._monthGanIndexExact+1];}getMonthZhi(){return s.ZHI[this._monthZhiIndex+1];}getMonthZhiExact(){return s.ZHI[this._monthZhiIndexExact+1];}getMonthInGanZhi(){return this.getMonthGan()+this.getMonthZhi();}getMonthInGanZhiExact(){return this.getMonthGanExact()+this.getMonthZhiExact();}getDayGan(){return s.GAN[this._dayGanIndex+1];}getDayGanExact(){return s.GAN[this._dayGanIndexExact+1];}getDayGanExact2(){return s.GAN[this._dayGanIndexExact2+1];}getDayZhi(){return s.ZHI[this._dayZhiIndex+1];}getDayZhiExact(){return s.ZHI[this._dayZhiIndexExact+1];}getDayZhiExact2(){return s.ZHI[this._dayZhiIndexExact2+1];}getDayInGanZhi(){return this.getDayGan()+this.getDayZhi();}getDayInGanZhiExact(){return this.getDayGanExact()+this.getDayZhiExact();}getDayInGanZhiExact2(){return this.getDayGanExact2()+this.getDayZhiExact2();}getTimeGan(){return s.GAN[this._timeGanIndex+1];}getTimeZhi(){return s.ZHI[this._timeZhiIndex+1];}getTimeInGanZhi(){return this.getTimeGan()+this.getTimeZhi();}getShengxiao(){return this.getYearShengXiao();}getYearShengXiao(){return s.SHENGXIAO[this._yearZhiIndex+1];}getYearShengXiaoByLiChun(){return s.SHENGXIAO[this._yearZhiIndexByLiChun+1];}getYearShengXiaoExact(){return s.SHENGXIAO[this._yearZhiIndexExact+1];}getMonthShengXiao(){return s.SHENGXIAO[this._monthZhiIndex+1];}getMonthShengXiaoExact(){return s.SHENGXIAO[this._monthZhiIndexExact+1];}getDayShengXiao(){return s.SHENGXIAO[this._dayZhiIndex+1];}getTimeShengXiao(){return s.SHENGXIAO[this._timeZhiIndex+1];}getYearInChinese(){let t=this._year+"",e="";for(let n=0,r=t.length;n<r;n++){let r=t.charCodeAt(n);e+=s.NUMBER[r-48];}return e;}getMonthInChinese(){return(this._month<0?"\u95F0":"")+s.MONTH[Math.abs(this._month)];}getDayInChinese(){return s.DAY[this._day];}getPengZuGan(){return s.PENGZU_GAN[this._dayGanIndex+1];}getPengZuZhi(){return s.PENGZU_ZHI[this._dayZhiIndex+1];}getPositionXi(){return this.getDayPositionXi();}getPositionXiDesc(){return this.getDayPositionXiDesc();}getPositionYangGui(){return this.getDayPositionYangGui();}getPositionYangGuiDesc(){return this.getDayPositionYangGuiDesc();}getPositionYinGui(){return this.getDayPositionYinGui();}getPositionYinGuiDesc(){return this.getDayPositionYinGuiDesc();}getPositionFu(){return this.getDayPositionFu();}getPositionFuDesc(){return this.getDayPositionFuDesc();}getPositionCai(){return this.getDayPositionCai();}getPositionCaiDesc(){return this.getDayPositionCaiDesc();}getDayPositionXi(){return s.POSITION_XI[this._dayGanIndex+1];}getDayPositionXiDesc(){return s.POSITION_DESC[this.getDayPositionXi()]||"";}getDayPositionYangGui(){return s.POSITION_YANG_GUI[this._dayGanIndex+1];}getDayPositionYangGuiDesc(){return s.POSITION_DESC[this.getDayPositionYangGui()]||"";}getDayPositionYinGui(){return s.POSITION_YIN_GUI[this._dayGanIndex+1];}getDayPositionYinGuiDesc(){return s.POSITION_DESC[this.getDayPositionYinGui()]||"";}getDayPositionFu(t=2){return(1===t?s.POSITION_FU:s.POSITION_FU_2)[this._dayGanIndex+1];}getDayPositionFuDesc(t=2){return s.POSITION_DESC[this.getDayPositionFu(t)]||"";}getDayPositionCai(){return s.POSITION_CAI[this._dayGanIndex+1];}getDayPositionCaiDesc(){return s.POSITION_DESC[this.getDayPositionCai()]||"";}getTimePositionXi(){return s.POSITION_XI[this._timeGanIndex+1];}getTimePositionXiDesc(){return s.POSITION_DESC[this.getTimePositionXi()]||"";}getTimePositionYangGui(){return s.POSITION_YANG_GUI[this._timeGanIndex+1];}getTimePositionYangGuiDesc(){return s.POSITION_DESC[this.getTimePositionYangGui()]||"";}getTimePositionYinGui(){return s.POSITION_YIN_GUI[this._timeGanIndex+1];}getTimePositionYinGuiDesc(){return s.POSITION_DESC[this.getTimePositionYinGui()]||"";}getTimePositionFu(t=2){return(1===t?s.POSITION_FU:s.POSITION_FU_2)[this._timeGanIndex+1];}getTimePositionFuDesc(t=2){return s.POSITION_DESC[this.getTimePositionFu(t)]||"";}getTimePositionCai(){return s.POSITION_CAI[this._timeGanIndex+1];}getTimePositionCaiDesc(){return s.POSITION_DESC[this.getTimePositionCai()]||"";}getYearPositionTaiSui(t=2){let e;switch(t){case 1:e=this._yearZhiIndex;break;case 3:e=this._yearZhiIndexExact;break;default:e=this._yearZhiIndexByLiChun;}return s.POSITION_TAI_SUI_YEAR[e];}getYearPositionTaiSuiDesc(t=2){return s.POSITION_DESC[this.getYearPositionTaiSui(t)];}getMonthPositionTaiSui(t=2){let e,n;3===t?(e=this._monthZhiIndexExact,n=this._monthGanIndexExact):(e=this._monthZhiIndex,n=this._monthGanIndex);let r=e-s.BASE_MONTH_ZHI_INDEX;return r<0&&(r+=12),[x.getMessage("bg.gen"),s.POSITION_GAN[n],x.getMessage("bg.kun"),x.getMessage("bg.xun")][r%4];}getMonthPositionTaiSuiDesc(t=2){return s.POSITION_DESC[this.getMonthPositionTaiSui(t)];}getDayPositionTaiSui(t=2){let e,n;switch(t){case 1:e=this.getDayInGanZhi(),n=this._yearZhiIndex;break;case 3:e=this.getDayInGanZhi(),n=this._yearZhiIndexExact;break;default:e=this.getDayInGanZhiExact2(),n=this._yearZhiIndexByLiChun;}return[x.getMessage("jz.jiaZi"),x.getMessage("jz.yiChou"),x.getMessage("jz.bingYin"),x.getMessage("jz.dingMao"),x.getMessage("jz.wuChen"),x.getMessage("jz.jiSi")].join(",").indexOf(e)>-1?x.getMessage("bg.zhen"):[x.getMessage("jz.bingZi"),x.getMessage("jz.dingChou"),x.getMessage("jz.wuYin"),x.getMessage("jz.jiMao"),x.getMessage("jz.gengChen"),x.getMessage("jz.xinSi")].join(",").indexOf(e)>-1?x.getMessage("bg.li"):[x.getMessage("jz.wuZi"),x.getMessage("jz.jiChou"),x.getMessage("jz.gengYin"),x.getMessage("jz.xinMao"),x.getMessage("jz.renChen"),x.getMessage("jz.guiSi")].join(",").indexOf(e)>-1?x.getMessage("ps.center"):[x.getMessage("jz.gengZi"),x.getMessage("jz.xinChou"),x.getMessage("jz.renYin"),x.getMessage("jz.guiMao"),x.getMessage("jz.jiaChen"),x.getMessage("jz.yiSi")].join(",").indexOf(e)>-1?x.getMessage("bg.dui"):[x.getMessage("jz.renZi"),x.getMessage("jz.guiChou"),x.getMessage("jz.jiaYin"),x.getMessage("jz.yiMao"),x.getMessage("jz.bingChen"),x.getMessage("jz.dingSi")].join(",").indexOf(e)>-1?x.getMessage("bg.kan"):s.POSITION_TAI_SUI_YEAR[n];}getDayPositionTaiSuiDesc(t=2){return s.POSITION_DESC[this.getDayPositionTaiSui(t)];}getChong(){return this.getDayChong();}getChongGan(){return this.getDayChongGan();}getChongGanTie(){return this.getDayChongGanTie();}getChongShengXiao(){return this.getDayChongShengXiao();}getChongDesc(){return this.getDayChongDesc();}getSha(){return this.getDaySha();}getDayChong(){return s.CHONG[this._dayZhiIndex];}getDayChongGan(){return s.CHONG_GAN[this._dayGanIndex];}getDayChongGanTie(){return s.CHONG_GAN_TIE[this._dayGanIndex];}getDayChongShengXiao(){let t=this.getChong();for(let e=0,n=s.ZHI.length;e<n;e++)if(s.ZHI[e]===t)return s.SHENGXIAO[e];return"";}getDayChongDesc(){return"("+this.getDayChongGan()+this.getDayChong()+")"+this.getDayChongShengXiao();}getDaySha(){return s.SHA[this.getDayZhi()]||"";}getTimeChong(){return s.CHONG[this._timeZhiIndex];}getTimeChongGan(){return s.CHONG_GAN[this._timeGanIndex];}getTimeChongGanTie(){return s.CHONG_GAN_TIE[this._timeGanIndex];}getTimeChongShengXiao(){let t=this.getTimeChong();for(let e=0,n=s.ZHI.length;e<n;e++)if(s.ZHI[e]===t)return s.SHENGXIAO[e];return"";}getTimeChongDesc(){return"("+this.getTimeChongGan()+this.getTimeChong()+")"+this.getTimeChongShengXiao();}getTimeSha(){return s.SHA[this.getTimeZhi()]||"";}getYearNaYin(){return s.NAYIN[this.getYearInGanZhi()]||"";}getMonthNaYin(){return s.NAYIN[this.getMonthInGanZhi()]||"";}getDayNaYin(){return s.NAYIN[this.getDayInGanZhi()]||"";}getTimeNaYin(){return s.NAYIN[this.getTimeInGanZhi()]||"";}getSeason(){return s.SEASON[Math.abs(this._month)];}static _convertJieQi(t){let e=t;return"DONG_ZHI"===e?e=x.getMessage("jq.dongZhi"):"DA_HAN"===e?e=x.getMessage("jq.daHan"):"XIAO_HAN"===e?e=x.getMessage("jq.xiaoHan"):"LI_CHUN"===e?e=x.getMessage("jq.liChun"):"DA_XUE"===e?e=x.getMessage("jq.daXue"):"YU_SHUI"===e?e=x.getMessage("jq.yuShui"):"JING_ZHE"===e&&(e=x.getMessage("jq.jingZhe")),e;}checkLang(){let t=x.getLanguage();if(this._lang!=t){for(let t=0,e=s.JIE_QI_IN_USE.length;t<e;t++){let e=s.JIE_QI_IN_USE[t],n=this._jieQiList[t],r=this._jieQi[n];this._jieQiList[t]=e,this._jieQi[e]=r;}this._lang=t;}}getJie(){for(let t=0,e=s.JIE_QI_IN_USE.length;t<e;t+=2){let e=s.JIE_QI_IN_USE[t],n=this.getJieQiSolar(e);if(n&&n.getYear()===this._solar.getYear()&&n.getMonth()===this._solar.getMonth()&&n.getDay()===this._solar.getDay())return z._convertJieQi(e);}return"";}getQi(){for(let t=1,e=s.JIE_QI_IN_USE.length;t<e;t+=2){let e=s.JIE_QI_IN_USE[t],n=this.getJieQiSolar(e);if(n&&n.getYear()===this._solar.getYear()&&n.getMonth()===this._solar.getMonth()&&n.getDay()===this._solar.getDay())return z._convertJieQi(e);}return"";}getJieQi(){let t="";for(let e in this._jieQi){let n=this._jieQi[e];if(n.getYear()==this._solar.getYear()&&n.getMonth()==this._solar.getMonth()&&n.getDay()==this._solar.getDay()){t=e;break;}}return z._convertJieQi(t);}getWeek(){return this._weekIndex;}getWeekInChinese(){return i.WEEK[this.getWeek()];}getXiu(){return s.XIU[this.getDayZhi()+this.getWeek()]||"";}getXiuLuck(){return s.XIU_LUCK[this.getXiu()]||"";}getXiuSong(){return s.XIU_SONG[this.getXiu()]||"";}getZheng(){return s.ZHENG[this.getXiu()]||"";}getAnimal(){return s.ANIMAL[this.getXiu()]||"";}getGong(){return s.GONG[this.getXiu()]||"";}getShou(){return s.SHOU[this.getGong()]||"";}getFestivals(){let t=[],e=s.FESTIVAL[this._month+"-"+this._day];return e&&t.push(e),12==Math.abs(this._month)&&this._day>=29&&this._year!=this.next(1).getYear()&&t.push(x.getMessage("jr.chuXi")),t;}getOtherFestivals(){let t=[],e=s.OTHER_FESTIVAL[this._month+"-"+this._day];e&&e.forEach(e=>{t.push(e);});let n=this.getJieQiSolar(x.getMessage("jq.qingMing")),r=this._solar.toYmd();r===n.next(-1).toYmd()&&t.push("\u5BD2\u98DF\u8282");let i=4-(n=this.getJieQiSolar(x.getMessage("jq.liChun"))).getLunar().getDayGanIndex();return i<0&&(i+=10),r===n.next(i+40).toYmd()&&t.push("\u6625\u793E"),(i=4-(n=this.getJieQiSolar(x.getMessage("jq.liQiu"))).getLunar().getDayGanIndex())<0&&(i+=10),r===n.next(i+40).toYmd()&&t.push("\u79CB\u793E"),t;}getBaZi(){let t=this.getEightChar(),e=[];return e.push(t.getYear()),e.push(t.getMonth()),e.push(t.getDay()),e.push(t.getTime()),e;}getBaZiWuXing(){let t=this.getEightChar(),e=[];return e.push(t.getYearWuXing()),e.push(t.getMonthWuXing()),e.push(t.getDayWuXing()),e.push(t.getTimeWuXing()),e;}getBaZiNaYin(){let t=this.getEightChar(),e=[];return e.push(t.getYearNaYin()),e.push(t.getMonthNaYin()),e.push(t.getDayNaYin()),e.push(t.getTimeNaYin()),e;}getBaZiShiShenGan(){let t=this.getEightChar(),e=[];return e.push(t.getYearShiShenGan()),e.push(t.getMonthShiShenGan()),e.push(t.getDayShiShenGan()),e.push(t.getTimeShiShenGan()),e;}getBaZiShiShenZhi(){let t=this.getEightChar(),e=[];return e.push(t.getYearShiShenZhi()[0]),e.push(t.getMonthShiShenZhi()[0]),e.push(t.getDayShiShenZhi()[0]),e.push(t.getTimeShiShenZhi()[0]),e;}getBaZiShiShenYearZhi(){return this.getEightChar().getYearShiShenZhi();}getBaZiShiShenMonthZhi(){return this.getEightChar().getMonthShiShenZhi();}getBaZiShiShenDayZhi(){return this.getEightChar().getDayShiShenZhi();}getBaZiShiShenTimeZhi(){return this.getEightChar().getTimeShiShenZhi();}getZhiXing(){let t=this._dayZhiIndex-this._monthZhiIndex;return t<0&&(t+=12),s.ZHI_XING[t+1];}getDayTianShen(){let t=this.getMonthZhi(),e=s.ZHI_TIAN_SHEN_OFFSET[t];return void 0==e?"":s.TIAN_SHEN[(this._dayZhiIndex+e)%12+1];}getTimeTianShen(){let t=this.getDayZhiExact(),e=s.ZHI_TIAN_SHEN_OFFSET[t];return void 0==e?"":s.TIAN_SHEN[(this._timeZhiIndex+e)%12+1];}getDayTianShenType(){return s.TIAN_SHEN_TYPE[this.getDayTianShen()]||"";}getTimeTianShenType(){return s.TIAN_SHEN_TYPE[this.getTimeTianShen()]||"";}getDayTianShenLuck(){return s.TIAN_SHEN_TYPE_LUCK[this.getDayTianShenType()]||"";}getTimeTianShenLuck(){return s.TIAN_SHEN_TYPE_LUCK[this.getTimeTianShenType()]||"";}getDayPositionTai(){return s.POSITION_TAI_DAY[s.getJiaZiIndex(this.getDayInGanZhi())];}getMonthPositionTai(){let t=this._month;return t<0?"":s.POSITION_TAI_MONTH[t-1];}getDayYi(t=1){return s.getDayYi(2==t?this.getMonthInGanZhiExact():this.getMonthInGanZhi(),this.getDayInGanZhi());}getDayJi(t=1){return s.getDayJi(2==t?this.getMonthInGanZhiExact():this.getMonthInGanZhi(),this.getDayInGanZhi());}getDayJiShen(){return s.getDayJiShen(this.getMonth(),this.getDayInGanZhi());}getDayXiongSha(){return s.getDayXiongSha(this.getMonth(),this.getDayInGanZhi());}getTimeYi(){return s.getTimeYi(this.getDayInGanZhiExact(),this.getTimeInGanZhi());}getTimeJi(){return s.getTimeJi(this.getDayInGanZhiExact(),this.getTimeInGanZhi());}getYueXiang(){return s.YUE_XIANG[this._day];}_getYearNineStar(t){let e=s.getJiaZiIndex(t)+1,n=e-(s.getJiaZiIndex(this.getYearInGanZhi())+1);n>1?n-=60:n<-1&&(n+=60);let r=(62+3*(Math.floor((this._year+n+2696)/60)%3)-e)%9;return 0===r&&(r=9),S.fromIndex(r-1);}getYearNineStar(t=2){let e;switch(t){case 1:e=this.getYearInGanZhi();break;case 3:e=this.getYearInGanZhiExact();break;default:e=this.getYearInGanZhiByLiChun();}return this._getYearNineStar(e);}getMonthNineStar(t=2){let e,n;switch(t){case 1:e=this._yearZhiIndex,n=this._monthZhiIndex;break;case 3:e=this._yearZhiIndexExact,n=this._monthZhiIndexExact;break;default:e=this._yearZhiIndexByLiChun,n=this._monthZhiIndex;}let r=27-e%3*3;return n<s.BASE_MONTH_ZHI_INDEX&&(r-=3),S.fromIndex((r-n)%9);}getJieQiSolar(t){return this.checkLang(),this._jieQi[t];}getDayNineStar(){let t,e,n;let r=this._solar.toYmd(),i=this.getJieQiSolar(x.getMessage("jq.dongZhi")),o=this.getJieQiSolar("DONG_ZHI"),a=this.getJieQiSolar(x.getMessage("jq.xiaZhi")),u=s.getJiaZiIndex(i.getLunar().getDayInGanZhi()),c=s.getJiaZiIndex(o.getLunar().getDayInGanZhi()),l=s.getJiaZiIndex(a.getLunar().getDayInGanZhi()),f=(t=u>29?i.next(60-u):i.next(-u)).toYmd(),d=(e=c>29?o.next(60-c):o.next(-c)).toYmd(),h=(n=l>29?a.next(60-l):a.next(-l)).toYmd(),g=0;return r>=f&&r<h?g=this._solar.subtract(t)%9:r>=h&&r<d?g=8-this._solar.subtract(n)%9:r>=d?g=this._solar.subtract(e)%9:r<f&&(g=(8+t.subtract(this._solar))%9),S.fromIndex(g);}getTimeNineStar(){let t=this._solar.toYmd(),e=!1;t>=this.getJieQiSolar(x.getMessage("jq.dongZhi")).toYmd()&&t<this.getJieQiSolar(x.getMessage("jq.xiaZhi")).toYmd()?e=!0:t>=this.getJieQiSolar("DONG_ZHI").toYmd()&&(e=!0);let n=(e?[0,3,6]:[8,5,2])[this.getDayZhiIndex()%3],r=e?n+this._timeZhiIndex:n+9-this._timeZhiIndex;return S.fromIndex(r%9);}getSolar(){return this._solar;}getJieQiTable(){return this.checkLang(),this._jieQi;}getJieQiList(){return this._jieQiList;}getNextJie(t=!1){let e=[];for(let t=0,n=s.JIE_QI_IN_USE.length/2;t<n;t++)e.push(s.JIE_QI_IN_USE[2*t]);return this.getNearJieQi(!0,e,t);}getPrevJie(t=!1){let e=[];for(let t=0,n=s.JIE_QI_IN_USE.length/2;t<n;t++)e.push(s.JIE_QI_IN_USE[2*t]);return this.getNearJieQi(!1,e,t);}getNextQi(t=!1){let e=[];for(let t=0,n=s.JIE_QI_IN_USE.length/2;t<n;t++)e.push(s.JIE_QI_IN_USE[2*t+1]);return this.getNearJieQi(!0,e,t);}getPrevQi(t=!1){let e=[];for(let t=0,n=s.JIE_QI_IN_USE.length/2;t<n;t++)e.push(s.JIE_QI_IN_USE[2*t+1]);return this.getNearJieQi(!1,e,t);}getNextJieQi(t=!1){return this.getNearJieQi(!0,[],t);}getPrevJieQi(t=!1){return this.getNearJieQi(!1,[],t);}getNearJieQi(t,e,n){let r="",i=null,o={},a=!1;if(e)for(let t=0,n=e.length;t<n;t++)o[e[t]]=!0,a=!0;let s=n?this._solar.toYmd():this._solar.toYmdHms();for(let e in this._jieQi){let u=this._jieQi[e],c=z._convertJieQi(e);if(a&&!o[c])continue;let l=n?u.toYmd():u.toYmdHms();if(t){if(l<=s)continue;null==i?(r=c,i=u):l<(n?i.toYmd():i.toYmdHms())&&(r=c,i=u);}else{if(l>s)continue;null==i?(r=c,i=u):l>(n?i.toYmd():i.toYmdHms())&&(r=c,i=u);}}return new f(r,i);}getCurrentJieQi(){let t=null;for(let e in this._jieQi){let n=this._jieQi[e];if(n.getYear()==this._solar.getYear()&&n.getMonth()==this._solar.getMonth()&&n.getDay()==this._solar.getDay()){t=new f(z._convertJieQi(e),n);break;}}return t;}getCurrentJie(){for(let t=0,e=s.JIE_QI_IN_USE.length;t<e;t+=2){let e=s.JIE_QI_IN_USE[t],n=this.getJieQiSolar(e);if(n&&n.getYear()===this._solar.getYear()&&n.getMonth()===this._solar.getMonth()&&n.getDay()===this._solar.getDay())return new f(z._convertJieQi(e),n);}return null;}getCurrentQi(){for(let t=1,e=s.JIE_QI_IN_USE.length;t<e;t+=2){let e=s.JIE_QI_IN_USE[t],n=this.getJieQiSolar(e);if(n&&n.getYear()===this._solar.getYear()&&n.getMonth()===this._solar.getMonth()&&n.getDay()===this._solar.getDay())return new f(z._convertJieQi(e),n);}return null;}getEightChar(){return this._eightChar;}next(t){return this._solar.next(t).getLunar();}getYearXun(){return s.getXun(this.getYearInGanZhi());}getMonthXun(){return s.getXun(this.getMonthInGanZhi());}getDayXun(){return s.getXun(this.getDayInGanZhi());}getTimeXun(){return s.getXun(this.getTimeInGanZhi());}getYearXunByLiChun(){return s.getXun(this.getYearInGanZhiByLiChun());}getYearXunExact(){return s.getXun(this.getYearInGanZhiExact());}getMonthXunExact(){return s.getXun(this.getMonthInGanZhiExact());}getDayXunExact(){return s.getXun(this.getDayInGanZhiExact());}getDayXunExact2(){return s.getXun(this.getDayInGanZhiExact2());}getYearXunKong(){return s.getXunKong(this.getYearInGanZhi());}getMonthXunKong(){return s.getXunKong(this.getMonthInGanZhi());}getDayXunKong(){return s.getXunKong(this.getDayInGanZhi());}getTimeXunKong(){return s.getXunKong(this.getTimeInGanZhi());}getYearXunKongByLiChun(){return s.getXunKong(this.getYearInGanZhiByLiChun());}getYearXunKongExact(){return s.getXunKong(this.getYearInGanZhiExact());}getMonthXunKongExact(){return s.getXunKong(this.getMonthInGanZhiExact());}getDayXunKongExact(){return s.getXunKong(this.getDayInGanZhiExact());}getDayXunKongExact2(){return s.getXunKong(this.getDayInGanZhiExact2());}toString(){return this.getYearInChinese()+"\u5E74"+this.getMonthInChinese()+"\u6708"+this.getDayInChinese();}toFullString(){let t=this.toString();t+=" "+this.getYearInGanZhi()+"("+this.getYearShengXiao()+")\u5E74"+(" "+this.getMonthInGanZhi()+"(")+this.getMonthShengXiao()+")\u6708"+(" "+this.getDayInGanZhi()+"(")+this.getDayShengXiao()+")\u65E5"+(" "+this.getTimeZhi()+"(")+this.getTimeShengXiao()+")\u65F6"+(" \u7EB3\u97F3["+this.getYearNaYin()+" "+this.getMonthNaYin()+" "+this.getDayNaYin()+" ")+this.getTimeNaYin()+"] \u661F\u671F"+this.getWeekInChinese(),this.getFestivals().forEach(e=>{t+=" ("+e+")";}),this.getOtherFestivals().forEach(e=>{t+=" ("+e+")";});let e=this.getJieQi();return e.length>0&&(t+=" ["+e+"]"),t+=" "+this.getGong()+"\u65B9"+this.getShou()+(" \u661F\u5BBF["+this.getXiu()+this.getZheng()+this.getAnimal()+"](")+this.getXiuLuck()+")"+(" \u5F6D\u7956\u767E\u5FCC["+this.getPengZuGan()+" ")+this.getPengZuZhi()+"]"+(" \u559C\u795E\u65B9\u4F4D["+this.getDayPositionXi()+"](")+this.getDayPositionXiDesc()+")"+(" \u9633\u8D35\u795E\u65B9\u4F4D["+this.getDayPositionYangGui()+"](")+this.getDayPositionYangGuiDesc()+")"+(" \u9634\u8D35\u795E\u65B9\u4F4D["+this.getDayPositionYinGui()+"](")+this.getDayPositionYinGuiDesc()+")"+(" \u798F\u795E\u65B9\u4F4D["+this.getDayPositionFu()+"](")+this.getDayPositionFuDesc()+")"+(" \u8D22\u795E\u65B9\u4F4D["+this.getDayPositionCai()+"](")+this.getDayPositionCaiDesc()+") \u51B2["+this.getDayChongDesc()+"] \u715E["+this.getDaySha()+"]";}getShuJiu(){let t=X.fromYmd(this._solar.getYear(),this._solar.getMonth(),this._solar.getDay()),e=this.getJieQiSolar("DONG_ZHI"),n=X.fromYmd(e.getYear(),e.getMonth(),e.getDay());t.isBefore(n)&&(e=this.getJieQiSolar(x.getMessage("jq.dongZhi")),n=X.fromYmd(e.getYear(),e.getMonth(),e.getDay()));let r=X.fromYmd(e.getYear(),e.getMonth(),e.getDay()).next(81);if(t.isBefore(n)||!t.isBefore(r))return null;let i=t.subtract(n);return new D(s.NUMBER[Math.floor(i/9)+1]+"\u4E5D",i%9+1);}getFu(){let t=X.fromYmd(this._solar.getYear(),this._solar.getMonth(),this._solar.getDay()),e=this.getJieQiSolar(x.getMessage("jq.xiaZhi")),n=this.getJieQiSolar(x.getMessage("jq.liQiu")),r=X.fromYmd(e.getYear(),e.getMonth(),e.getDay()),i=6-e.getLunar().getDayGanIndex();if(i<0&&(i+=10),i+=20,r=r.next(i),t.isBefore(r))return null;let o=t.subtract(r);if(o<10)return new I("\u521D\u4F0F",o+1);if(r=r.next(10),(o=t.subtract(r))<10)return new I("\u4E2D\u4F0F",o+1);r=r.next(10);let a=X.fromYmd(n.getYear(),n.getMonth(),n.getDay());if(o=t.subtract(r),a.isAfter(r)){if(o<10)return new I("\u4E2D\u4F0F",o+11);r=r.next(10),o=t.subtract(r);}return o<10?new I("\u672B\u4F0F",o+1):null;}getLiuYao(){return s.LIU_YAO[(Math.abs(this._month)+this._day-2)%6];}getWuHou(){let t=this.getPrevJieQi(!0),e=s.find(t.getName(),s.JIE_QI),n=Math.floor(this._solar.subtract(t.getSolar())/5);return n>2&&(n=2),s.WU_HOU[(3*e.index+n)%s.WU_HOU.length];}getHou(){let t=this.getPrevJieQi(!0),e=this._solar.subtract(t.getSolar()),n=s.HOU.length-1,r=Math.floor(e/5);return r>n&&(r=n),t.getName()+" "+s.HOU[r];}getDayLu(){let t=s.LU[this.getDayGan()],e=s.LU[this.getDayZhi()],n=t+"\u547D\u4E92\u7984";return e&&(n+=" "+e+"\u547D\u8FDB\u7984"),n;}getTime(){return B.fromYmdHms(this._year,this._month,this._day,this._hour,this._minute,this._second);}getTimes(){let t=[];t.push(B.fromYmdHms(this._year,this._month,this._day,0,0,0));for(let e=0;e<12;e++)t.push(B.fromYmdHms(this._year,this._month,this._day,(e+1)*2-1,0,0));return t;}getFoto(){return L.fromLunar(this);}getTao(){return R.fromLunar(this);}}class G{static fromYm(t,e){return new G(t,e);}static fromDate(t){return G.fromYm(t.getFullYear(),t.getMonth()+1);}constructor(t,e){this._year=t,this._month=e;}getYear(){return this._year;}getMonth(){return this._month;}next(t){let e=t<0?-1:1,n=Math.abs(t),r=this._year+Math.floor(n/12)*e;return(n=this._month+n%12*e)>12?(n-=12,r++):n<1&&(n+=12,r--),G.fromYm(r,n);}getDays(){let t=[],e=X.fromYmd(this._year,this._month,1);t.push(e);let n=i.getDaysOfMonth(this._year,this._month);for(let r=1;r<n;r++)t.push(e.next(r));return t;}getWeeks(t){let e=[],n=o.fromYmd(this._year,this._month,1,t);for(;;){e.push(n);let t=(n=n.next(1,!1)).getFirstDay();if(t.getYear()>this._year||t.getMonth()>this._month)break;}return e;}toString(){return`${this.getYear()}-${this.getMonth()}`;}toFullString(){return`${this.getYear()}\u5E74${this.getMonth()}\u6708`;}}let Y=class{static fromYmd(t,e,n){return Y.fromYmdHms(t,e,n,0,0,0);}static fromYmdHms(t,e,n,r,i,o){return new Y(t,e,n,r,i,o);}static fromDate(t){return Y.fromYmdHms(t.getFullYear(),t.getMonth()+1,t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());}static fromJulianDay(t){let e,n=Math.floor(t+.5),r=t+.5-n;n>=2299161&&(e=Math.floor((n-1867216.25)/36524.25),n+=1+e-Math.floor(e/4));let i=Math.floor(((n+=1524)-122.1)/365.25),o=Math.floor((n-=Math.floor(365.25*i))/30.601),a=n-=Math.floor(30.601*o);o>13?(o-=13,i-=4715):(o-=1,i-=4716);let s=Math.floor(r*=24);r-=s;let u=Math.floor(r*=60);r-=u;let c=Math.round(r*=60);return c>59&&(c-=60,u++),u>59&&(u-=60,s++),s>23&&(s-=24,a+=1),Y.fromYmdHms(i,o,a,s,u,c);}static fromBaZi(t,e,n,r,i=2,o=1900){i=1==i?1:2;let a=[],u=s.index(e.substring(1),s.ZHI,-1)-2;if(u<0&&(u+=12),((s.index(t.substring(0,1),s.GAN,-1)+1)*2+u)%10!==s.index(e.substring(0,1),s.GAN,-1))return a;let c=s.getJiaZiIndex(t)-57;c<0&&(c+=60),c++,u*=2;let l=2*s.index(r.substring(1),s.ZHI,-1),f=[l];0==l&&2==i&&(f=[0,23]);let d=o-1,h=new Date().getFullYear();for(;c<=h;){if(c>=d){let l=z.fromYmd(c,1,1),d=l.getJieQiList(),h=l.getJieQiTable()[d[4+u]];if(h.getYear()>=o){let o=s.getJiaZiIndex(n)-s.getJiaZiIndex(h.getLunar().getDayInGanZhiExact2());o<0&&(o+=60),o>0&&(h=h.next(o)),f.forEach(s=>{let u=0,c=0;0==o&&s===h.getHour()&&(u=h.getMinute(),c=h.getSecond());let l=Y.fromYmdHms(h.getYear(),h.getMonth(),h.getDay(),s,u,c),f=l.getLunar(),d=2===i?f.getDayInGanZhiExact2():f.getDayInGanZhiExact();f.getYearInGanZhiExact()===t&&f.getMonthInGanZhiExact()===e&&d===n&&f.getTimeInGanZhi()===r&&a.push(l);});}}c+=60;}return a;}constructor(t,e,n,r,i,o){if(1582===t&&10===e&&n>4&&n<15)throw Error(`wrong solar year ${t} month ${e} day ${n}`);if(e<1||e>12)throw Error(`wrong month ${e}`);if(n<1||n>31)throw Error(`wrong day ${n}`);if(r<0||r>23)throw Error(`wrong hour ${r}`);if(i<0||i>59)throw Error(`wrong minute ${i}`);if(o<0||o>59)throw Error(`wrong second ${o}`);this._year=t,this._month=e,this._day=n,this._hour=r,this._minute=i,this._second=o;}getYear(){return this._year;}getMonth(){return this._month;}getDay(){return this._day;}getHour(){return this._hour;}getMinute(){return this._minute;}getSecond(){return this._second;}getWeek(){return(Math.floor(this.getJulianDay()+.5)+7000001)%7;}getWeekInChinese(){return i.WEEK[this.getWeek()];}getSolarWeek(t){return o.fromYmd(this._year,this._month,this._day,t);}isLeapYear(){return i.isLeapYear(this._year);}getFestivals(){let t=[],e=i.FESTIVAL[this._month+"-"+this._day];e&&t.push(e);let n=Math.ceil(this._day/7),r=this.getWeek();return(e=i.WEEK_FESTIVAL[this._month+"-"+n+"-"+r])&&t.push(e),this._day+7>i.getDaysOfMonth(this._year,this._month)&&(e=i.WEEK_FESTIVAL[this._month+"-0-"+r])&&t.push(e),t;}getOtherFestivals(){let t=[],e=i.OTHER_FESTIVAL[this._month+"-"+this._day];return e&&e.forEach(e=>{t.push(e);}),t;}getXingzuo(){return this.getXingZuo();}getXingZuo(){let t=11,e=100*this._month+this._day;return e>=321&&e<=419?t=0:e>=420&&e<=520?t=1:e>=521&&e<=621?t=2:e>=622&&e<=722?t=3:e>=723&&e<=822?t=4:e>=823&&e<=922?t=5:e>=923&&e<=1023?t=6:e>=1024&&e<=1122?t=7:e>=1123&&e<=1221?t=8:e>=1222||e<=119?t=9:e<=218&&(t=10),i.XINGZUO[t];}getSalaryRate(){if(1===this._month&&1===this._day||5===this._month&&1===this._day||10===this._month&&this._day>=1&&this._day<=3)return 3;let t=this.getLunar();if(1===t.getMonth()&&t.getDay()>=1&&3>=t.getDay()||5===t.getMonth()&&5===t.getDay()||8===t.getMonth()&&15===t.getDay()||"\u6E05\u660E"===t.getJieQi())return 3;let e=l.getHoliday(this._year,this._month,this._day);if(e){if(!e.isWork())return 2;}else{let t=this.getWeek();if(6===t||0===t)return 2;}return 1;}toYmd(){let t=this._year+"";for(;t.length<4;)t="0"+t;return[t,(this._month<10?"0":"")+this._month,(this._day<10?"0":"")+this._day].join("-");}toYmdHms(){return this.toYmd()+" "+[(this._hour<10?"0":"")+this._hour,(this._minute<10?"0":"")+this._minute,(this._second<10?"0":"")+this._second].join(":");}toString(){return this.toYmd();}toFullString(){let t=this.toYmdHms();return this.isLeapYear()&&(t+=" \u95F0\u5E74"),t+=" \u661F\u671F"+this.getWeekInChinese(),this.getFestivals().forEach(e=>{t+=" ("+e+")";}),t+=" "+this.getXingZuo()+"\u5EA7";}nextYear(t){let e=this._year+t,n=this._month,r=this._day;return 1582===e&&10===n?r>4&&r<15&&(r+=10):2===n&&r>28&&!i.isLeapYear(e)&&(r=28),Y.fromYmdHms(e,n,r,this._hour,this._minute,this._second);}nextMonth(t){let e=G.fromYm(this._year,this._month).next(t),n=e.getYear(),r=e.getMonth(),o=this._day;if(1582===n&&10===r)o>4&&o<15&&(o+=10);else{let t=i.getDaysOfMonth(n,r);o>t&&(o=t);}return Y.fromYmdHms(n,r,o,this._hour,this._minute,this._second);}nextDay(t){let e=this._year,n=this._month,r=this._day;if(1582===e&&10===n&&r>4&&(r-=10),t>0){r+=t;let o=i.getDaysOfMonth(e,n);for(;r>o;)r-=o,++n>12&&(n=1,e++),o=i.getDaysOfMonth(e,n);}else if(t<0){for(;r+t<=0;)--n<1&&(n=12,e--),r+=i.getDaysOfMonth(e,n);r+=t;}return 1582===e&&10===n&&r>4&&(r+=10),Y.fromYmdHms(e,n,r,this._hour,this._minute,this._second);}next(t,e=!1){if(!e)return this.nextDay(t);{let e=Y.fromYmdHms(this._year,this._month,this._day,this._hour,this._minute,this._second);if(0!==t){let n=Math.abs(t),r=t<1?-1:1;for(;n>0;){e=e.next(r);let t=!0,i=l.getHoliday(e.getYear(),e.getMonth(),e.getDay());if(i)t=i.isWork();else{let n=e.getWeek();(0===n||6===n)&&(t=!1);}t&&(n-=1);}}return e;}}nextHour(t){let e=this._hour+t,n=e<0?-1:1,r=Math.abs(e),i=Math.floor(r/24)*n;(r=r%24*n)<0&&(r+=24,i--);let o=this.next(i);return Y.fromYmdHms(o.getYear(),o.getMonth(),o.getDay(),r,o.getMinute(),o.getSecond());}getLunar(){return z.fromSolar(this);}getJulianDay(){let t=this._year,e=this._month,n=this._day+((this._second/60+this._minute)/60+this._hour)/24,r=0,i=!1;return 372*t+31*e+Math.floor(n)>=588829&&(i=!0),e<=2&&(e+=12,t--),i&&(r=2-(r=Math.floor(t/100))+Math.floor(r/4)),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+n+r-1524.5;}isBefore(t){return!(this._year>t.getYear())&&(this._year<t.getYear()||!(this._month>t.getMonth())&&(this._month<t.getMonth()||!(this._day>t.getDay())&&(this._day<t.getDay()||!(this._hour>t.getHour())&&(this._hour<t.getHour()||!(this._minute>t.getMinute())&&(this._minute<t.getMinute()||this._second<t.getSecond())))));}isAfter(t){return this._year>t.getYear()||!(this._year<t.getYear())&&(this._month>t.getMonth()||!(this._month<t.getMonth())&&(this._day>t.getDay()||!(this._day<t.getDay())&&(this._hour>t.getHour()||!(this._hour<t.getHour())&&(this._minute>t.getMinute()||!(this._minute<t.getMinute())&&this._second>t.getSecond()))));}subtract(t){return i.getDaysBetween(t.getYear(),t.getMonth(),t.getDay(),this._year,this._month,this._day);}subtractMinute(t){let e=this.subtract(t),n=60*this._hour+this._minute-(60*t.getHour()+t.getMinute());return n<0&&(n+=1440,e--),n+=1440*e;}},X=Y;X.J2000=2451545;class U{static fromYm(t,e){return new U(t,e);}static fromDate(t){return U.fromYm(t.getFullYear(),t.getMonth()+1);}constructor(t,e){this._year=t,this._month=e;}getYear(){return this._year;}getMonth(){return this._month;}getIndex(){return Math.ceil(this._month/3);}next(t){let e=G.fromYm(this._year,this._month).next(3*t);return U.fromYm(e.getYear(),e.getMonth());}getMonths(){let t=[],e=this.getIndex()-1;for(let n=0;n<3;n++)t.push(G.fromYm(this._year,3*e+n+1));return t;}toString(){return`${this.getYear()}.${this.getIndex()}`;}toFullString(){return`${this.getYear()}\u5E74${this.getIndex()}\u5B63\u5EA6`;}}class H{static fromYm(t,e){return new H(t,e);}static fromDate(t){return H.fromYm(t.getFullYear(),t.getMonth()+1);}constructor(t,e){this._year=t,this._month=e;}getYear(){return this._year;}getMonth(){return this._month;}getIndex(){return Math.ceil(this._month/6);}next(t){let e=G.fromYm(this._year,this._month).next(6*t);return H.fromYm(e.getYear(),e.getMonth());}getMonths(){let t=[],e=this.getIndex()-1;for(let n=0;n<6;n++)t.push(G.fromYm(this._year,6*e+n+1));return t;}toString(){return`${this.getYear()}.${this.getIndex()}`;}toFullString(){let t=["\u4E0A","\u4E0B"][this.getIndex()-1];return`${this.getYear()}\u5E74${t}\u534A\u5E74`;}}class W{static fromYear(t){return new W(t);}static fromDate(t){return W.fromYear(t.getFullYear());}constructor(t){this._year=t;}getYear(){return this._year;}next(t){return W.fromYear(this._year+t);}getMonths(){let t=[],e=G.fromYm(this._year,1);t.push(e);for(let n=1;n<12;n++)t.push(e.next(n));return t;}toString(){return`${this.getYear()}`;}toFullString(){return`${this.getYear()}\u5E74`;}}x.init();},"467c7895":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceAtlas2Layout=void 0;var a=n("5092cda5"),s=n("38788347"),u=o(n("dc728d10")),c=o(n("29f820e5")),l=o(n("e0f519a2")),f=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.kr=5,n.kg=1,n.mode="normal",n.preventOverlap=!1,n.dissuadeHubs=!1,n.barnesHut=void 0,n.maxIteration=0,n.ks=.1,n.ksmax=10,n.tao=.1,n.onLayoutEnd=function(){},n.prune=void 0,n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{};},e.prototype.execute=function(){var t=this.nodes,e=this.onLayoutEnd,n=this.prune,r=this.maxIteration;this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight);for(var i=[],o=t.length,a=0;a<o;a+=1){var u=t[a],c=10,l=10;(0,s.isNumber)(u.size)&&(c=u.size,l=u.size),(0,s.isArray)(u.size)?(isNaN(u.size[0])||(c=u.size[0]),isNaN(u.size[1])||(l=u.size[1])):(0,s.isObject)(u.size)&&(c=u.size.width,l=u.size.height),this.getWidth&&!isNaN(this.getWidth(u))&&(l=this.getWidth(u)),this.getHeight&&!isNaN(this.getHeight(u))&&(c=this.getHeight(u));var f=Math.max(c,l);i.push(f);}void 0===this.barnesHut&&o>250&&(this.barnesHut=!0),void 0===this.prune&&o>100&&(this.prune=!0),0!==this.maxIteration||this.prune?0===this.maxIteration&&n&&(r=100,o<=200&&o>100?r=500:o>200&&(r=950),this.maxIteration=r):(r=250,o<=200&&o>100?r=1e3:o>200&&(r=1200),this.maxIteration=r),!this.kr&&(this.kr=50,o>100&&o<=500?this.kr=20:o>500&&(this.kr=1)),!this.kg&&(this.kg=20,o>100&&o<=500?this.kg=10:o>500&&(this.kg=1)),this.nodes=this.updateNodesByForces(i),e();},e.prototype.updateNodesByForces=function(t){for(var e=this.edges,n=this.maxIteration,r=this.nodes,i=e.filter(function(t){return(0,s.getEdgeTerminal)(t,"source")!==(0,s.getEdgeTerminal)(t,"target");}),o=r.length,a=i.length,u=[],c={},l={},f=[],d=0;d<o;d+=1)c[r[d].id]=d,u[d]=0,(void 0===r[d].x||isNaN(r[d].x))&&(r[d].x=1e3*Math.random()),(void 0===r[d].y||isNaN(r[d].y))&&(r[d].y=1e3*Math.random()),f.push({x:r[d].x,y:r[d].y});for(var d=0;d<a;d+=1){for(var h=void 0,g=void 0,p=0,v=0,m=0;m<o;m+=1){var y=(0,s.getEdgeTerminal)(i[d],"source"),b=(0,s.getEdgeTerminal)(i[d],"target");r[m].id===y?(h=r[m],p=m):r[m].id===b&&(g=r[m],v=m),l[d]={sourceIdx:p,targetIdx:v};}h&&(u[c[h.id]]+=1),g&&(u[c[g.id]]+=1);}var x=n;if(r=this.iterate(x,c,l,a,u,t),this.prune){for(var m=0;m<a;m+=1)u[l[m].sourceIdx]<=1?(r[l[m].sourceIdx].x=r[l[m].targetIdx].x,r[l[m].sourceIdx].y=r[l[m].targetIdx].y):u[l[m].targetIdx]<=1&&(r[l[m].targetIdx].x=r[l[m].sourceIdx].x,r[l[m].targetIdx].y=r[l[m].sourceIdx].y);this.prune=!1,this.barnesHut=!1,x=100,r=this.iterate(x,c,l,a,u,t);}return r;},e.prototype.iterate=function(t,e,n,r,i,o){for(var a=this.nodes,s=this.kr,c=this.preventOverlap,l=this.barnesHut,f=a.length,d=0,h=t,g=[],p=[],v=[],m=0;m<f;m+=1)if(g[2*m]=0,g[2*m+1]=0,l){var y={id:m,rx:a[m].x,ry:a[m].y,mass:1,g:s,degree:i[m]};v[m]=new u.default(y);}for(;h>0;){for(var m=0;m<f;m+=1)p[2*m]=g[2*m],p[2*m+1]=g[2*m+1],g[2*m]=0,g[2*m+1]=0;g=this.getAttrForces(h,50,r,e,n,i,o,g),g=l&&(c&&h>50||!c)?this.getOptRepGraForces(g,v,i):this.getRepGraForces(h,50,g,100,o,i);var b=this.updatePos(g,p,d,i);a=b.nodes,d=b.sg,h--,this.tick&&this.tick();}return a;},e.prototype.getAttrForces=function(t,e,n,r,i,o,a,s){for(var u=this.nodes,c=this.preventOverlap,l=this.dissuadeHubs,f=this.mode,d=this.prune,h=0;h<n;h+=1){var g=u[i[h].sourceIdx],p=i[h].sourceIdx,v=u[i[h].targetIdx],m=i[h].targetIdx;if(!d||!(o[p]<=1)&&!(o[m]<=1)){var y=[v.x-g.x,v.y-g.y],b=Math.hypot(y[0],y[1]);b=b<1e-4?1e-4:b,y[0]=y[0]/b,y[1]=y[1]/b,c&&t<e&&(b=b-a[p]-a[m]);var x=b,_=x;"linlog"===f&&(_=x=Math.log(1+b)),l&&(x=b/o[p],_=b/o[m]),c&&t<e&&b<=0?(x=0,_=0):c&&t<e&&b>0&&(x=b,_=b),s[2*r[g.id]]+=x*y[0],s[2*r[v.id]]-=_*y[0],s[2*r[g.id]+1]+=x*y[1],s[2*r[v.id]+1]-=_*y[1];}}return s;},e.prototype.getRepGraForces=function(t,e,n,r,i,o){for(var a=this.nodes,s=this.preventOverlap,u=this.kr,c=this.kg,l=this.center,f=this.prune,d=a.length,h=0;h<d;h+=1){for(var g=h+1;g<d;g+=1)if(!f||!(o[h]<=1)&&!(o[g]<=1)){var p=[a[g].x-a[h].x,a[g].y-a[h].y],v=Math.hypot(p[0],p[1]);v=v<1e-4?1e-4:v,p[0]=p[0]/v,p[1]=p[1]/v,s&&t<e&&(v=v-i[h]-i[g]);var m=u*(o[h]+1)*(o[g]+1)/v;s&&t<e&&v<0?m=r*(o[h]+1)*(o[g]+1):s&&t<e&&0===v?m=0:s&&t<e&&v>0&&(m=u*(o[h]+1)*(o[g]+1)/v),n[2*h]-=m*p[0],n[2*g]+=m*p[0],n[2*h+1]-=m*p[1],n[2*g+1]+=m*p[1];}var y=[a[h].x-l[0],a[h].y-l[1]],b=Math.hypot(y[0],y[1]);y[0]=y[0]/b,y[1]=y[1]/b;var x=c*(o[h]+1);n[2*h]-=x*y[0],n[2*h+1]-=x*y[1];}return n;},e.prototype.getOptRepGraForces=function(t,e,n){for(var r=this.nodes,i=this.kg,o=this.center,a=this.prune,s=r.length,u=9e10,f=-9e10,d=9e10,h=-9e10,g=0;g<s;g+=1)a&&n[g]<=1||(e[g].setPos(r[g].x,r[g].y),r[g].x>=f&&(f=r[g].x),r[g].x<=u&&(u=r[g].x),r[g].y>=h&&(h=r[g].y),r[g].y<=d&&(d=r[g].y));for(var p=Math.max(f-u,h-d),v={xmid:(f+u)/2,ymid:(h+d)/2,length:p,massCenter:o,mass:s},m=new c.default(v),y=new l.default(m),g=0;g<s;g+=1)(!a||!(n[g]<=1))&&e[g].in(m)&&y.insert(e[g]);for(var g=0;g<s;g+=1)if(!a||!(n[g]<=1)){e[g].resetForce(),y.updateForce(e[g]),t[2*g]-=e[g].fx,t[2*g+1]-=e[g].fy;var b=[r[g].x-o[0],r[g].y-o[1]],x=Math.hypot(b[0],b[1]);x=x<1e-4?1e-4:x,b[0]=b[0]/x,b[1]=b[1]/x;var _=i*(n[g]+1);t[2*g]-=_*b[0],t[2*g+1]-=_*b[1];}return t;},e.prototype.updatePos=function(t,e,n,r){for(var i=this.nodes,o=this.ks,a=this.tao,u=this.prune,c=this.ksmax,l=i.length,f=[],d=[],h=0,g=0,p=0;p<l;p+=1)if(!u||!(r[p]<=1)){var v=[t[2*p]-e[2*p],t[2*p+1]-e[2*p+1]],m=Math.hypot(v[0],v[1]),y=[t[2*p]+e[2*p],t[2*p+1]+e[2*p+1]],b=Math.hypot(y[0],y[1]);f[p]=m,d[p]=b/2,h+=(r[p]+1)*f[p],g+=(r[p]+1)*d[p];}var x=n;n=a*g/h,0!==x&&(n=n>1.5*x?1.5*x:n);for(var p=0;p<l;p+=1)if((!u||!(r[p]<=1))&&!((0,s.isNumber)(i[p].fx)&&(0,s.isNumber)(i[p].fy))){var _=o*n/(1+n*Math.sqrt(f[p])),E=Math.hypot(t[2*p],t[2*p+1]),w=c/(E=E<1e-4?1e-4:E),M=(_=_>w?w:_)*t[2*p],C=_*t[2*p+1];i[p].x+=M,i[p].y+=C;}return{nodes:i,sg:n};},e;}(a.Base);e.ForceAtlas2Layout=f;},47526327:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("1eabf120")),i=function(t){return(0,r.default)(t)?"":t.toString();};},"477457a1":function(t,e,n){"use strict";function r(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1);}}n.d(e,"__esModule",{value:!0}),n.d(e,"fixArc",{enumerable:!0,get:function(){return r;}});},"47aea388":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("bd41dba3")),i=function(t,e){if(void 0===e&&(e=[]),(0,r.default)(t))for(var n=0;n<t.length;n+=1)i(t[n],e);else e.push(t);return e;},o=i;},"47c6e0b5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{getAllKeyValueMap:function(){return s;},getDistance:function(){return c;},oneHot:function(){return u;}});var r=n("777fffbe"),i=n("22b52967"),o=n("3b9ee2eb"),a=r._(n("455d8214")),s=function(t,e,n){var r=[];(null==e?void 0:e.length)?r=e:(t.forEach(function(t){r=r.concat(Object.keys(t));}),r=(0,i.uniq)(r));var o={};return r.forEach(function(e){var r=[];t.forEach(function(t){void 0!==t[e]&&""!==t[e]&&r.push(t[e]);}),!r.length||(null==n?void 0:n.includes(e))||(o[e]=(0,i.uniq)(r));}),o;},u=function(t,e,n){var r=s(t,e,n),i=[];if(!Object.keys(r).length)return i;var o=Object.values(r).every(function(t){return t.every(function(t){return"number"==typeof t;});});return t.forEach(function(t,e){var n=[];Object.keys(r).forEach(function(e){var i=t[e],a=r[e],s=a.findIndex(function(t){return i===t;}),u=[];if(o)u.push(i);else for(var c=0;c<a.length;c++)c===s?u.push(1):u.push(0);n=n.concat(u);}),i[e]=n;}),i;},c=function(t,e,n,r){void 0===n&&(n=o.DistanceType.EuclideanDistance);var i=0;return n===o.DistanceType.EuclideanDistance&&(i=new a.default(t).euclideanDistance(new a.default(e))),i;};},"485acb0b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("e6fac422")),a=(0,i.__assign)({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: ".concat(t.source," target: ").concat(t.target);}};},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"};}},o.default);},"48abf62a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("57580e52")),o=r._(n("a679da2f")),a=Object.prototype.hasOwnProperty,s=function(t,e){if(null===t||!(0,o.default)(t))return{};var n={};return(0,i.default)(e,function(e){a.call(t,e)&&(n[e]=t[e]);}),n;};},"4a03da9b":function(t,e,n){t.exports=n("30f8c619");},"4a13cbcf":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getPointAtLength",{enumerable:!0,get:function(){return o;}});var r=n("4c6d310c"),i=n("00226c26");function o(t,e,n){return(0,i.pathLengthFactory)(t,e,(0,r.__assign)((0,r.__assign)({},n),{bbox:!1,length:!0})).point;}},"4a3cdd11":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{parseLineGradient:function(){return c;},parsePattern:function(){return f;},parseRadialGradient:function(){return l;},parseRadius:function(){return h;},parseStyle:function(){return d;}});var r=n("ddeef58a"),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function u(t,e){var n=t.match(s);(0,r.each)(n,function(t){var n=t.split(":");e.addColorStop(n[0],n[1]);});}function c(t,e,n){var r,o,a=i.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),c=a[2],l=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:l.minX,y:l.minY},o={x:l.maxX,y:l.maxY}):.5*Math.PI<=s&&s<Math.PI?(r={x:l.maxX,y:l.minY},o={x:l.minX,y:l.maxY}):Math.PI<=s&&s<1.5*Math.PI?(r={x:l.maxX,y:l.maxY},o={x:l.minX,y:l.minY}):(r={x:l.minX,y:l.maxY},o={x:l.maxX,y:l.minY});var f=Math.tan(s),d=f*f,h=(o.x-r.x+f*(o.y-r.y))/(d+1)+r.x,g=f*(o.x-r.x+f*(o.y-r.y))/(d+1)+r.y,p=t.createLinearGradient(r.x,r.y,h,g);return u(c,p),p;}function l(t,e,n){var r=o.exec(n),i=parseFloat(r[1]),a=parseFloat(r[2]),c=parseFloat(r[3]),l=r[4];if(0===c){var f=l.match(s);return f[f.length-1].split(":")[1];}var d=e.getBBox(),h=d.maxX-d.minX,g=d.maxY-d.minY,p=Math.sqrt(h*h+g*g)/2,v=t.createRadialGradient(d.minX+h*i,d.minY+g*a,0,d.minX+h/2,d.minY+g/2,c*p);return u(l,v),v;}function f(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=a.exec(n),s=o[1],u=o[2];function c(){r=t.createPattern(i,s),e.set("pattern",r),e.set("patternSource",n);}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;default:s="no-repeat";}return i=new Image,u.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=u,i.complete?c():(i.onload=c,i.src=i.src),r;}function d(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if((0,r.isString)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return c(t,e,n);if("r"===n[0])return l(t,e,n);if("p"===n[0])return f(t,e,n);}return n;}if(n instanceof CanvasPattern)return n;}function h(t){var e=0,n=0,i=0,o=0;return(0,r.isArray)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,[e,n,i,o];}},"4a3e9761":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r,i=n("777fffbe"),o=n("22b52967"),a=n("168feef4"),s=i._(n("b208d868")),u=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),c=a.Util.pointLineDistance,l={stroke:"#FA8C16",lineWidth:1},f=function(t){function e(e){return t.call(this,e)||this;}return u(e,t),e.prototype.getDefaultCfgs=function(){return{line:l,itemAlignType:"center",tolerance:5,horizontalLines:{},verticalLines:{},alignLines:[]};},e.prototype.init=function(){},e.prototype.getEvents=function(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd"};},e.prototype.onDragStart=function(){this.initBoxLine();},e.prototype.onDrag=function(t){var e=t.item,n=(e.get("delegateShape")||e).getBBox(),r=e.getModel(),i=r.x-n.x,o=r.y-n.y;this.show({x:n.minX+i,y:n.minY+o},{width:n.width,height:n.height});},e.prototype.onDragEnd=function(){this.destory();},e.prototype.initBoxLine=function(){var t=this._cfgs,e=t.horizontalLines,n=t.verticalLines,r=t.itemAlignType;this.get("graph").getNodes().forEach(function(t){var i=t.getBBox(),o=t.get("id");!0===r||"horizontal"===r?(e["".concat(o,"tltr")]=[i.minX,i.minY,i.maxX,i.minY,t],e["".concat(o,"lcrc")]=[i.minX,i.centerY,i.maxX,i.centerY,t],e["".concat(o,"blbr")]=[i.minX,i.maxY,i.maxX,i.maxY,t]):"center"===r&&(e["".concat(o,"lcrc")]=[i.minX,i.centerY,i.maxX,i.centerY,t]),!0===r||"vertical"===r?(n["".concat(o,"tlbl")]=[i.minX,i.minY,i.minX,i.maxY,t],n["".concat(o,"tcbc")]=[i.centerX,i.minY,i.centerX,i.maxY,t],n["".concat(o,"trbr")]=[i.maxX,i.minY,i.maxX,i.maxY,t]):"center"===r&&(n["".concat(o,"tcbc")]=[i.centerX,i.minY,i.centerX,i.maxY,t]);});},e.prototype.show=function(t,e){var n=(0,o.mix)({},t);return this.itemAlign(t,e,n),t;},e.prototype.itemAlign=function(t,e,n){var r=this,i=this._cfgs,a=i.horizontalLines,s=i.verticalLines,u=i.tolerance,c={x:n.x+e.width/2,y:n.y},l={x:n.x+e.width/2,y:n.y+e.height/2},f={x:n.x+e.width/2,y:n.y+e.height},d={x:n.x,y:n.y+e.height/2},h={x:n.x+e.width,y:n.y+e.height/2},g=[],p=[],v=null;if(this.clearAlignLine(),(0,o.each)(a,function(t){t[4].isVisible&&(g.push(r.getLineDisObject(t,c)),g.push(r.getLineDisObject(t,l)),g.push(r.getLineDisObject(t,f)));}),(0,o.each)(s,function(t){t[4].isVisible&&(p.push(r.getLineDisObject(t,d)),p.push(r.getLineDisObject(t,l)),p.push(r.getLineDisObject(t,h)));}),g.sort(function(t,e){return t.dis-e.dis;}),p.sort(function(t,e){return t.dis-e.dis;}),0!==g.length&&g[0].dis<u){t.y=g[0].line[1]-g[0].point.y+n.y,v={type:"item",horizontals:[g[0]]};for(var m=1;m<3;m++)g[0].dis===g[m].dis&&v.horizontals.push(g[m]);}if(0!==p.length&&p[0].dis<u){t.x=p[0].line[0]-p[0].point.x+n.x,v?v.verticals=[p[0]]:v={type:"item",verticals:[p[0]]};for(var m=1;m<3;m++)p[0].dis===p[m].dis&&v.verticals.push(p[m]);}v&&(v.bbox=e,this.addAlignLine(v));},e.prototype.addAlignLine=function(t){var e=t.bbox,n=t.type,r=t.horizontals,i=t.verticals,a=this._cfgs,s=a.line,u=a.alignLines,c=this.get("graph").get("group");"item"===n&&(r&&(0,o.each)(r,function(t){var n,r,i=t.line,a=t.point,l=(i[0]+i[2])/2;a.x<l?(n=a.x-e.width/2,r=Math.max(i[0],i[2])):(n=a.x+e.width/2,r=Math.min(i[0],i[2]));var f=(0,o.mix)({x1:n,y1:i[1],x2:r,y2:i[1]},s),d=c.addShape("line",{attrs:f,capture:!1});u.push(d);}),i&&(0,o.each)(i,function(t){var n,r,i=t.line,a=t.point,l=(i[1]+i[3])/2;a.y<l?(n=a.y-e.height/2,r=Math.max(i[1],i[3])):(n=a.y+e.height/2,r=Math.min(i[1],i[3]));var f=(0,o.mix)({x1:i[0],y1:n,x2:i[0],y2:r},s),d=c.addShape("line",{attrs:f,capture:!1});u.push(d);}));},e.prototype.getLineDisObject=function(t,e){return{line:t,point:e,dis:c(t,e)};},e.prototype.getContainer=function(){return this.get("container");},e.prototype.clearAlignLine=function(){var t=this._cfgs.alignLines;(0,o.each)(t,function(t){t.remove();}),t.length=0;},e.prototype.destory=function(){var t=this._cfgs,e=t.horizontalLines,n=t.verticalLines;this.get("graph").getNodes().forEach(function(t){var r=t.get("id");delete e["".concat(r,"tltr")],delete e["".concat(r,"lcrc")],delete e["".concat(r,"blbr")],delete n["".concat(r,"tlbl")],delete n["".concat(r,"tcbc")],delete n["".concat(r,"trbr")];}),this.clearAlignLine();},e;}(s.default);},"4aa17cbe":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return d;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("4c6d310c"),a=n("be1e82ef"),s=n("c31be87c"),u=i._(n("5f588eb3")),c=r._(n("b1221bd1")),l=n("ddeef58a"),f=n("11214b3f"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,o.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e;},e.prototype.onCanvasChange=function(t){("attr"===t||"sort"===t||"changeSize"===t)&&(this.set("refreshElements",[this]),this.draw());},e.prototype.getShapeBase=function(){return u;},e.prototype.getGroupBase=function(){return c.default;},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(0,l.getPixelRatio)();return t>=1?Math.ceil(t):1;},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height};},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t;},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o);},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height);},e.prototype.getShape=function(e,n){return this.get("quickHit")?(0,s.getShape)(this,e,n):t.prototype.getShape.call(this,e,n,null);},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();return e.length&&e[0]===this?t=n:(t=(0,f.getMergedRegion)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=(0,f.mergeView)(t,n))),t;},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t);},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,l.clearAnimationFrame)(t),this.set("drawFrame",null),this.set("refreshElements",[]));},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw();},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),(0,f.applyAttrsToContext)(t,this),(0,f.drawChildren)(t,n),this.set("refreshElements",[]);},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),(0,f.applyAttrsToContext)(t,this),(0,f.checkRefresh)(this,n,r),(0,f.drawChildren)(t,n,r),t.restore()):e.length&&(0,f.clearChanged)(e),(0,l.each)(e,function(t){t.get("hasChanged")&&t.set("hasChanged",!1);}),this.set("refreshElements",[]);},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame"),n=this.get("drawFrameCallback");e||(e=(0,l.requestAnimationFrame)(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),n&&n();}),this.set("drawFrame",e));},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t);},e;}(a.AbstractCanvas);},"4b34eb62":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("22b52967");function i(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e;}function o(t,e,n){var o=i(t,n,"floor"),a=i(e,n,"ceil");o=(0,r.fixedBase)(o,n),a=(0,r.fixedBase)(a,n);for(var s=[],u=Math.max((a-o)/4095,n),c=o;c<=a;c+=u){var l=(0,r.fixedBase)(c,u);s.push(l);}return{min:o,max:a,ticks:s};}},"4b39050c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("4c6d310c"),i=n("c966c938"),o=n("22b52967"),a=n("168feef4"),s=a.Util.cloneEvent,u=a.Util.isViewportChanged,c=function(t){function e(e){var n=t.call(this,e)||this;return n.extendEvents=[],n.dragging=!1,n.mousedown=!1,n.preItem=null,n.destroy(),n.graph=e,n.destroyed=!1,n.initEvents(),n;}return(0,r.__extends)(e,t),e.prototype.initEvents=function(){var t=this.graph,e=this.extendEvents,n=void 0===e?[]:e,r=t.get("canvas"),a=r.get("el"),s=(0,o.wrapBehavior)(this,"onCanvasEvents"),u=(0,o.wrapBehavior)(this,"onExtendEvents"),c=(0,o.wrapBehavior)(this,"onWheelEvent");r.off("*").on("*",s),this.canvasHandler=s,n.push((0,i.addEventListener)(a,"wheel",c)),"undefined"!=typeof window&&(n.push((0,i.addEventListener)(window,"keydown",u)),n.push((0,i.addEventListener)(window,"keyup",u)),n.push((0,i.addEventListener)(window,"focus",u))),this.resetHandler&&t.off("afterchangedata",this.resetHandler),this.resetHandler=(0,o.wrapBehavior)(this,"resetStatus"),t.on("afterchangedata",this.resetHandler);},e.getItemRoot=function(t){for(;t&&!t.get("item");)t=t.get("parent");return t;},e.prototype.onCanvasEvents=function(t){var n=this,r=this.graph,i=r.get("canvas"),o=t.target,a=t.type;switch(a){case"drag":this.onCanvasEvents(Object.assign({},t,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},t,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout(function(){return n.mousedown=!1;});break;case"click":if(!this.mousedown)return;}t.canvasX=t.x,t.canvasY=t.y;var s={x:t.canvasX,y:t.canvasY},c=r.get("group").getMatrix();if(c||(c=[1,0,0,0,1,0,0,0,1]),u(c)&&(s=r.getPointByClient(t.clientX,t.clientY)),t.x=s.x,t.y=s.y,t.currentTarget=r,o===i){("mousemove"===a||"mouseleave"===a)&&this.handleMouseMove(t,"canvas"),t.target=i,t.item=null,r.emit(a,t),r.emit("canvas:".concat(a),t);return;}var l=e.getItemRoot(o);if(!l){r.emit(a,t);return;}var f=l.get("item");if(!f.destroyed){var d=f.getType();if(t.target=o,t.item=f,t.canvasX===t.x&&t.canvasY===t.y){var h=r.getCanvasByPoint(t.x,t.y);t.canvasX=h.x,t.canvasY=h.y;}t.name&&!t.name.includes(":")?(r.emit("".concat(d,":").concat(a),t),r.emit(a,t)):t.name&&r.emit(t.name,t),"dragstart"===a&&(this.dragging=!0),"dragend"===a&&(this.dragging=!1),"mousemove"===a&&this.handleMouseMove(t,d);}},e.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t);},e.prototype.onWheelEvent=function(t){(0,o.isNil)(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t);},e.prototype.handleMouseMove=function(t,e){var n=this.graph,r=this.preItem,i=n.get("canvas"),o=t.target===i?null:t.item;t=s(t),r&&r!==o&&!r.destroyed&&(t.item=r,this.emitCustomEvent(r.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(r.getType(),"dragleave",t)),o&&r!==o&&(t.item=o,this.emitCustomEvent(e,"mouseenter",t),this.dragging&&this.emitCustomEvent(e,"dragenter",t)),this.preItem=o;},e.prototype.emitCustomEvent=function(t,e,n){n.type=e,this.graph.emit("".concat(t,":").concat(e),n);},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null;},e.prototype.destroy=function(){var t=this.graph,e=this.canvasHandler,n=this.extendEvents;t.get("canvas").off("*",e),(0,o.each)(n,function(t){t.remove();}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0;},e;}(a.AbstractEvent);},"4b590b62":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return g;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("4c6d310c"),a=n("be1e82ef"),s=n("7048382e"),u=n("05db3064"),c=n("e704bc9f"),l=n("d5ffb871"),f=i._(n("ab51cd4f")),d=r._(n("36f00621")),h=r._(n("21307b43")),g=function(t){function e(e){return t.call(this,(0,o.__assign)((0,o.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this;}return(0,o.__extends)(e,t),e.prototype.getShapeBase=function(){return f;},e.prototype.getGroupBase=function(){return d.default;},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!s.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!s.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i;}return this.find(function(t){return t.get("el")===r;});},e.prototype.createDom=function(){var t=(0,l.createSVGElement)("svg"),e=new h.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t;},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&(0,l.sortDom)(this,function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0;});}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i);}}else"matrix"===t?(0,c.setTransform)(this):"clip"===t?(0,c.setClip)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")));},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();(0,c.setClip)(this,t),e.length&&(0,u.drawChildren)(t,e);},e;}(a.AbstractCanvas);},"4b6f939e":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.FruchtermanLayout=void 0;var o=n("5092cda5"),a=n("38788347"),s=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.workerEnabled=!1,n.gravity=10,n.speed=5,n.clustering=!1,n.clusterGravity=10,n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.onLayoutEnd=function(){},n.tick=function(){},n.animate=!0,n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10,animate:!0};},e.prototype.execute=function(){var t,e,n=this,r=this.nodes;if(void 0!==this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval),!r||0===r.length){null===(t=this.onLayoutEnd)||void 0===t||t.call(this);return;}this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight),this.center||(this.center=[this.width/2,this.height/2]);var i=this.center;if(1===r.length){r[0].x=i[0],r[0].y=i[1],null===(e=this.onLayoutEnd)||void 0===e||e.call(this);return;}var o={},s={};return r.forEach(function(t,e){(0,a.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,a.isNumber)(t.y)||(t.y=Math.random()*n.height),o[t.id]=t,s[t.id]=e;}),this.nodeMap=o,this.nodeIdxMap=s,this.run();},e.prototype.run=function(){var t,e=this,n=e.nodes;if(n){var r=e.edges,i=e.maxIteration,o=e.workerEnabled,a=e.clustering,s=e.animate,u={};if(a&&n.forEach(function(t){void 0===u[t.cluster]&&(u[t.cluster]={name:t.cluster,cx:0,cy:0,count:0});}),o||!s){for(var c=0;c<i;c++)e.runOneStep(u);null===(t=e.onLayoutEnd)||void 0===t||t.call(e);}else{if("undefined"==typeof window)return;var l=0;this.timeInterval=window.setInterval(function(){var t;e.runOneStep(u),++l>=i&&(null===(t=e.onLayoutEnd)||void 0===t||t.call(e),window.clearInterval(e.timeInterval));},0);}return{nodes:n,edges:r};}},e.prototype.runOneStep=function(t){var e,n=this.nodes;if(n){var r=this.edges,i=this.center,o=this.gravity,s=this.speed,u=this.clustering,c=this.height*this.width,l=Math.sqrt(c)/10,f=c/(n.length+1),d=Math.sqrt(f),h=[];if(n.forEach(function(t,e){h[e]={x:0,y:0};}),this.applyCalculate(n,r,h,d,f),u){for(var g in t)t[g].cx=0,t[g].cy=0,t[g].count=0;for(var g in n.forEach(function(e){var n=t[e.cluster];(0,a.isNumber)(e.x)&&(n.cx+=e.x),(0,a.isNumber)(e.y)&&(n.cy+=e.y),n.count++;}),t)t[g].cx/=t[g].count,t[g].cy/=t[g].count;var p=this.clusterGravity||o;n.forEach(function(e,n){if((0,a.isNumber)(e.x)&&(0,a.isNumber)(e.y)){var r=t[e.cluster],i=Math.sqrt((e.x-r.cx)*(e.x-r.cx)+(e.y-r.cy)*(e.y-r.cy)),o=d*p;h[n].x-=o*(e.x-r.cx)/i,h[n].y-=o*(e.y-r.cy)/i;}});}n.forEach(function(t,e){if((0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)){var n=.01*d*o;h[e].x-=n*(t.x-i[0]),h[e].y-=n*(t.y-i[1]);}}),n.forEach(function(t,e){if((0,a.isNumber)(t.fx)&&(0,a.isNumber)(t.fy)){t.x=t.fx,t.y=t.fy;return;}if((0,a.isNumber)(t.x)&&(0,a.isNumber)(t.y)){var n=Math.sqrt(h[e].x*h[e].x+h[e].y*h[e].y);if(n>0){var r=Math.min(s/800*l,n);t.x+=h[e].x/n*r,t.y+=h[e].y/n*r;}}}),null===(e=this.tick)||void 0===e||e.call(this);}},e.prototype.applyCalculate=function(t,e,n,r,i){this.calRepulsive(t,n,i),e&&this.calAttractive(e,n,r);},e.prototype.calRepulsive=function(t,e,n){t.forEach(function(r,i){e[i]={x:0,y:0},t.forEach(function(t,o){if(i!==o&&(0,a.isNumber)(r.x)&&(0,a.isNumber)(t.x)&&(0,a.isNumber)(r.y)&&(0,a.isNumber)(t.y)){var s=r.x-t.x,u=r.y-t.y,c=s*s+u*u;if(0===c){c=1;var l=i>o?1:-1;s=.01*l,u=.01*l;}var f=n/c;e[i].x+=s*f,e[i].y+=u*f;}});});},e.prototype.calAttractive=function(t,e,n){var r=this;t.forEach(function(t){var i=(0,a.getEdgeTerminal)(t,"source"),o=(0,a.getEdgeTerminal)(t,"target");if(i&&o){var s=r.nodeIdxMap[i],u=r.nodeIdxMap[o];if(s!==u){var c=r.nodeMap[i],l=r.nodeMap[o];if((0,a.isNumber)(l.x)&&(0,a.isNumber)(c.x)&&(0,a.isNumber)(l.y)&&(0,a.isNumber)(c.y)){var f=l.x-c.x,d=l.y-c.y,h=Math.sqrt(f*f+d*d),g=h*h/n;e[u].x-=f/h*g,e[u].y-=d/h*g,e[s].x+=f/h*g,e[s].y+=d/h*g;}}}});},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval);},e.prototype.destroy=function(){this.stop(),this.tick=null,this.nodes=null,this.edges=null,this.destroyed=!0;},e.prototype.getType=function(){return"fruchterman";},e;}(o.Base);e.FruchtermanLayout=s;},"4b7b5836":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("dfdb2ac4"),i=function(t,e){var n,i,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,f=t.edge(e),d=f.labelRank;if(c!==s+1){t.removeEdgeObj(e);var h=t.graph();for(o=0,++s;s<c;++o,++s)f.points=[],i={edgeLabel:f,width:0,height:0,edgeObj:e,rank:s},n=(0,r.addDummyNode)(t,"edge",i,"_d"),s===d&&(i.width=f.width,i.height=f.height,i.dummy="edge-label",i.labelpos=f.labelpos),t.setEdge(a,n,{weight:f.weight},l),0===o&&(h.dummyChains||(h.dummyChains=[]),h.dummyChains.push(n)),a=n;t.setEdge(a,u,{weight:f.weight},l);}};e.default={run:function(t){t.graph().dummyChains=[],t.edges().forEach(function(e){return i(t,e);});},undo:function(t){var e;null===(e=t.graph().dummyChains)||void 0===e||e.forEach(function(e){var n,r=t.node(e),i=r.edgeLabel;r.edgeObj&&t.setEdgeObj(r.edgeObj,i);for(var o=e;r.dummy;)n=t.successors(o)[0],t.removeNode(o),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),o=n,r=t.node(o);});}};},"4b8c3fdf":function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n;};}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"4b96732d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("c9ae1e54")),o=r._(n("c51a05f7")),a=function(t,e){var n=[];if(!(0,i.default)(t))return n;for(var r=-1,a=[],s=t.length;++r<s;){var u=t[r];e(u,r,t)&&(n.push(u),a.push(r));}return(0,o.default)(t,a),n;};},"4c9df34d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isAnyArray",{enumerable:!0,get:function(){return i;}});let r=Object.prototype.toString;function i(t){let e=r.call(t);return e.endsWith("Array]")&&!e.includes("Big");}},"4cd81306":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("22b52967"),i=n("d5ffb871"),o=function(){function t(t,e){this.cfg={};var n=(0,i.createSVGElement)("marker"),o=(0,r.uniqueId)("marker_");n.setAttribute("id",o);var a=(0,i.createSVGElement)("path");a.setAttribute("stroke",t.stroke||"none"),a.setAttribute("fill",t.fill||"none"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=o;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,a):(this.cfg=s,this._setMarker(t.lineWidth,a)),this;}return t.prototype.match=function(){return!1;},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5");},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,o=this.cfg.d;(0,r.isArray)(i)&&(i=i.map(function(t){return t.join(" ");}).join("")),e.setAttribute("d",i),n.appendChild(e),o&&n.setAttribute("refX",""+o/t);},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t);},t;}();},"4dd0d10d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("9f8bfa32"));function i(t,e,n){var i,o,a,s,u,c,l,f=this._x0,d=this._y0,h=this._x1,g=this._y1,p=[],v=this._root;for(v&&p.push(new r.default(v,f,d,h,g)),null==n?n=1/0:(f=t-n,d=e-n,h=t+n,g=e+n,n*=n);c=p.pop();)if((v=c.node)&&!((o=c.x0)>h)&&!((a=c.y0)>g)&&!((s=c.x1)<f)&&!((u=c.y1)<d)){if(v.length){var m=(o+s)/2,y=(a+u)/2;p.push(new r.default(v[3],m,y,s,u),new r.default(v[2],o,y,m,u),new r.default(v[1],m,a,s,y),new r.default(v[0],o,a,m,y)),(l=(e>=y)<<1|t>=m)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c);}else{var b=t-+this._x.call(null,v.data),x=e-+this._y.call(null,v.data),_=b*b+x*x;if(_<n){var E=Math.sqrt(n=_);f=t-E,d=e-E,h=t+E,g=e+E,i=v.data;}}}return i;}},"4df530e7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r,i=n("777fffbe"),o=n("c966c938"),a=n("22b52967"),s=i._(n("b208d868")),u=i._(n("8109e137")),c=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});"undefined"!=typeof document&&(0,u.default)("\n .g6-component-toolbar {\n position: absolute;\n list-style-type: none;\n padding: 6px;\n left: 0px;\n top: 0px;\n background-color: rgba(255, 255, 255, 0.9);\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n margin: 0;\n }\n .g6-component-toolbar li {\n float: left;\n text-align: center;\n width: 35px;\n height: 24px;\n cursor: pointer;\n list-style-type:none;\n list-style: none;\n margin-left: 0px;\n }\n .g6-component-toolbar li .icon {\n opacity: 0.7;\n }\n .g6-component-toolbar li .icon:hover {\n opacity: 1;\n }\n");var l=function(t){if(!t)return[];if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;){if(e.push(n),"HTML"===n.tagName){e.push(document,window);break;}n=n.parentElement;}return e;},f=function(t){function e(e){return t.call(this,e)||this;}return c(e,t),e.prototype.getDefaultCfgs=function(){return{handleClick:void 0,getContent:function(t){return'\n <ul class=\'g6-component-toolbar\'>\n <li code=\'redo\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <path d="M256 682.666667c0-102.741333 66.730667-213.333333 213.333333-213.333334 107.008 0 190.762667 56.576 230.570667 125.354667L611.968 682.666667H853.333333v-241.365334l-91.562666 91.562667C704.768 448.469333 601.130667 384 469.333333 384c-196.096 0-298.666667 150.229333-298.666666 298.666667h85.333333z" fill="" p-id="2041"></path>\n </svg>\n </li>\n <li code=\'undo\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <path d="M170.666667 682.666667h241.365333l-87.936-87.978667C363.904 525.909333 447.658667 469.333333 554.666667 469.333333c146.602667 0 213.333333 110.592 213.333333 213.333334h85.333333c0-148.437333-102.570667-298.666667-298.666666-298.666667-131.797333 0-235.392 64.469333-292.48 148.821333L170.666667 441.301333V682.666667z" fill="" p-id="2764"></path>\n </svg>\n </li>\n <li code=\'zoomOut\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <path d="M658.432 428.736a33.216 33.216 0 0 1-33.152 33.152H525.824v99.456a33.216 33.216 0 0 1-66.304 0V461.888H360.064a33.152 33.152 0 0 1 0-66.304H459.52V296.128a33.152 33.152 0 0 1 66.304 0V395.52H625.28c18.24 0 33.152 14.848 33.152 33.152z m299.776 521.792a43.328 43.328 0 0 1-60.864-6.912l-189.248-220.992a362.368 362.368 0 0 1-215.36 70.848 364.8 364.8 0 1 1 364.8-364.736 363.072 363.072 0 0 1-86.912 235.968l192.384 224.64a43.392 43.392 0 0 1-4.8 61.184z m-465.536-223.36a298.816 298.816 0 0 0 298.432-298.432 298.816 298.816 0 0 0-298.432-298.432A298.816 298.816 0 0 0 194.24 428.8a298.816 298.816 0 0 0 298.432 298.432z"></path>\n </svg>\n </li>\n <li code=\'zoomIn\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n <path d="M639.936 416a32 32 0 0 1-32 32h-256a32 32 0 0 1 0-64h256a32 32 0 0 1 32 32z m289.28 503.552a41.792 41.792 0 0 1-58.752-6.656l-182.656-213.248A349.76 349.76 0 0 1 480 768 352 352 0 1 1 832 416a350.4 350.4 0 0 1-83.84 227.712l185.664 216.768a41.856 41.856 0 0 1-4.608 59.072zM479.936 704c158.784 0 288-129.216 288-288S638.72 128 479.936 128a288.32 288.32 0 0 0-288 288c0 158.784 129.216 288 288 288z" p-id="3853"></path>\n </svg>\n </li>\n <li code=\'realZoom\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">\n <path d="M384 320v384H320V320h64z m256 0v384H576V320h64zM512 576v64H448V576h64z m0-192v64H448V384h64z m355.968 576H92.032A28.16 28.16 0 0 1 64 931.968V28.032C64 12.608 76.608 0 95.168 0h610.368L896 192v739.968a28.16 28.16 0 0 1-28.032 28.032zM704 64v128h128l-128-128z m128 192h-190.464V64H128v832h704V256z"></path>\n </svg>\n </li>\n <li code=\'autoZoom\'>\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">\n <path d="M684.288 305.28l0.128-0.64-0.128-0.64V99.712c0-19.84 15.552-35.904 34.496-35.712a35.072 35.072 0 0 1 34.56 35.776v171.008h170.944c19.648 0 35.84 15.488 35.712 34.432a35.072 35.072 0 0 1-35.84 34.496h-204.16l-0.64-0.128a32.768 32.768 0 0 1-20.864-7.552c-1.344-1.024-2.816-1.664-3.968-2.816-0.384-0.32-0.512-0.768-0.832-1.088a33.472 33.472 0 0 1-9.408-22.848zM305.28 64a35.072 35.072 0 0 0-34.56 35.776v171.008H99.776A35.072 35.072 0 0 0 64 305.216c0 18.944 15.872 34.496 35.84 34.496h204.16l0.64-0.128a32.896 32.896 0 0 0 20.864-7.552c1.344-1.024 2.816-1.664 3.904-2.816 0.384-0.32 0.512-0.768 0.768-1.088a33.024 33.024 0 0 0 9.536-22.848l-0.128-0.64 0.128-0.704V99.712A35.008 35.008 0 0 0 305.216 64z m618.944 620.288h-204.16l-0.64 0.128-0.512-0.128c-7.808 0-14.72 3.2-20.48 7.68-1.28 1.024-2.752 1.664-3.84 2.752-0.384 0.32-0.512 0.768-0.832 1.088a33.664 33.664 0 0 0-9.408 22.912l0.128 0.64-0.128 0.704v204.288c0 19.712 15.552 35.904 34.496 35.712a35.072 35.072 0 0 0 34.56-35.776V753.28h170.944c19.648 0 35.84-15.488 35.712-34.432a35.072 35.072 0 0 0-35.84-34.496z m-593.92 11.52c-0.256-0.32-0.384-0.768-0.768-1.088-1.088-1.088-2.56-1.728-3.84-2.688a33.088 33.088 0 0 0-20.48-7.68l-0.512 0.064-0.64-0.128H99.84a35.072 35.072 0 0 0-35.84 34.496 35.072 35.072 0 0 0 35.712 34.432H270.72v171.008c0 19.84 15.552 35.84 34.56 35.776a35.008 35.008 0 0 0 34.432-35.712V720l-0.128-0.64 0.128-0.704a33.344 33.344 0 0 0-9.472-22.848zM512 374.144a137.92 137.92 0 1 0 0.128 275.84A137.92 137.92 0 0 0 512 374.08z"></path>\n </svg>\n </li>\n </ul>\n ';},zoomSensitivity:2};},e.prototype.init=function(){var t=this,e=this.get("graph"),n=this.get("getContent")(e),r=n;(0,a.isString)(n)&&(r=(0,o.createDom)(n));var i=this.get("className");r.setAttribute("class",i||"g6-component-toolbar");var s=this.get("container");s||(s=this.get("graph").get("container")),(0,a.isString)(s)&&(s=document.getElementById(s)),s.appendChild(r),this.set("toolBar",r);var u=this.get("handleClick");r.addEventListener("click",function(n){var r=l(n).filter(function(t){return"LI"===t.nodeName;});if(0!==r.length){var i=r[0].getAttribute("code");i&&(u?u(i,e):t.handleDefaultOperator(i));}});var c=this.get("position");c&&(0,o.modifyCSS)(r,{top:"".concat(c.y,"px"),left:"".concat(c.x,"px")}),this.bindUndoRedo();},e.prototype.bindUndoRedo=function(){var t=this.get("graph"),e=document.querySelector('.g6-component-toolbar li[code="undo"]'),n=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),r=document.querySelector('.g6-component-toolbar li[code="redo"]'),i=document.querySelector('.g6-component-toolbar li[code="redo"] svg');e&&n&&r&&i&&(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4"),r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4"),t.on("stackchange",function(t){var o=t.undoStack,a=t.redoStack,s=o.length,u=a.length;0===s?(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(e.removeAttribute("style"),n.removeAttribute("style")),0===u?(r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),i.removeAttribute("style"));}));},e.prototype.undo=function(){var t=this.get("graph"),e=t.getUndoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action;t.pushStack(r,(0,a.clone)(n.data),"redo");var i=n.data.before;if("add"===r&&(i=n.data.after),!i)return;switch(r){case"visible":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1);});});break;case"render":case"update":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=t.findById(e.id);delete e.id,t.updateItem(n,e,!1),"combo"===n.getType()&&t.updateCombo(n);});});break;case"changedata":t.changeData(i,!1);break;case"delete":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1);});});break;case"add":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){t.removeItem(e.id,!1);});});break;case"updateComboTree":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){t.updateComboTree(e.id,e.parentId,!1);});});break;case"createCombo":var o=n.data.after.combos,s=o[o.length-1];Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){t.updateComboTree(e.id,e.parentId,!1);});}),t.removeItem(s.id,!1);break;case"uncombo":var u=i.combos[i.combos.length-1],c=i.nodes.concat(i.combos).map(function(t){return t.id;}).filter(function(t){return t!==u.id;});t.createCombo(u,c,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1);}}}},e.prototype.redo=function(){var t=this.get("graph"),e=t.getRedoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action,i=n.data.after;if(t.pushStack(r,(0,a.clone)(n.data)),"delete"===r&&(i=n.data.before),!i)return;switch(r){case"visible":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1);});});break;case"render":case"update":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=t.findById(e.id);delete e.id,t.updateItem(n,e,!1),"combo"===n.getType()&&t.updateCombo(n);});});break;case"changedata":t.changeData(i,!1);break;case"delete":i.edges&&i.edges.forEach(function(e){t.removeItem(e.id,!1);}),i.nodes&&i.nodes.forEach(function(e){t.removeItem(e.id,!1);}),i.combos&&i.combos.forEach(function(e){t.removeItem(e.id,!1);});break;case"add":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1);});});break;case"updateComboTree":Object.keys(i).forEach(function(e){var n=i[e];n&&n.forEach(function(e){t.updateComboTree(e.id,e.parentId,!1);});});break;case"createCombo":var o=i.combos[i.combos.length-1];t.createCombo(o,o.children.map(function(t){return t.id;}),!1);break;case"uncombo":var s=n.data.before.combos,u=s[s.length-1];t.uncombo(u.id,!1);break;case"layout":t.updateLayout(i,void 0,void 0,!1);}}}},e.prototype.zoomOut=function(){var t=this.get("graph"),e=t.getZoom(),n=1/(1-.05*this.get("zoomSensitivity"));n*e>(this.get("maxZoom")||t.get("maxZoom"))||t.zoomTo(e*n);},e.prototype.zoomIn=function(){var t=this.get("graph"),e=t.getZoom(),n=1-.05*this.get("zoomSensitivity");n*e<(this.get("minZoom")||t.get("minZoom"))||t.zoomTo(e*n);},e.prototype.realZoom=function(){this.get("graph").zoomTo(1);},e.prototype.autoZoom=function(){this.get("graph").fitView([20,20]);},e.prototype.handleDefaultOperator=function(t){switch(t){case"redo":this.redo();break;case"undo":this.undo();break;case"zoomOut":this.zoomOut();break;case"zoomIn":this.zoomIn();break;case"realZoom":this.realZoom();break;case"autoZoom":this.autoZoom();}},e.prototype.destroy=function(){var t=this.get("toolBar");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,a.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t);}var n=this.get("handleClick");n&&t.removeEventListener("click",n);},e;}(s.default);},"4e322f45":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("78294f9e")),o=r._(n("21422ae0")),a=(0,i.default)(function t(e,n){var r=this;(0,o.default)(this,t),this.start=void 0,this.startAt=void 0,this.target=void 0,this.vars=void 0,this.key=void 0,this.getAnimStart=function(){var t=r.target,e=r.vars,n=r.startAt,i=r.key,o=e.formatMoney,a={thousand:o&&o.thousand||",",decimal:o&&o.decimal||"."},s=RegExp("\\".concat(a.thousand),"g");return r.start=n[i]||{value:parseFloat(t.innerHTML.replace(s,"").replace(a.decimal,"."))||0},r.start;},this.toMoney=function(t,e){var n={thousand:e.thousand||",",decimal:e.decimal||"."},r=0>parseFloat(t)?"-":"",i=t.split("."),o=Math.abs(parseInt(i[0],10)).toString(),a=o.length>3?o.length%3:0,s=i[1];return"".concat(r).concat(a?"".concat(o.substr(0,a)).concat(n.thousand):"").concat(o.substr(a).replace(/(\d{3})(?=\d)/g,"$1".concat(n.thousand))).concat(s?"".concat(n.decimal).concat(s):"");},this.render=function(t){var e=r.vars,n=e.value,i=e.floatLength,o=e.formatMoney,a=(n-r.start.value)*t+r.start.value;if("number"==typeof i){if(i){var s=(a=a.toFixed(i)).toString().split("."),u=s[1]||"";u=u.length>i?u.substring(0,i):u;var c=i-u.length;c&&Array(c).fill(0).forEach(function(t){u+="".concat(t);}),a="".concat(s[0],".").concat(u);}else a=Math.round(a);}return o?r.toMoney("".concat(a),o):a;},this.vars=e,this.key=n;});a.key="innerHTML",a.className="Children";var s=a;},"4e4cdeae":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{getClosedSpline:function(){return l;},getControlPoint:function(){return s;},getSpline:function(){return a;},getStarPath:function(){return v;},paddedHull:function(){return p;},pathToPoints:function(){return c;},pointsToPolygon:function(){return u;},roundedHull:function(){return g;}});var r=n("f6fd9972"),i=n("cf6c8813"),o=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){if("\\"===t.charAt(0))return t.slice(1);var r=e[n];return 0===r&&(r="0"),r||"";}):t;},a=function(t){var e=[];if(t.length<2)throw Error("point length must largn than 2, now it's ".concat(t.length));for(var n=0;n<t.length;n++){var r=t[n],o=r.x,a=r.y;e.push(o),e.push(a);}var s=(0,i.catmullRom2Bezier)(e);return s.unshift(["M",t[0].x,t[0].y]),s;},s=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=0);var o={x:(1-n)*t.x+n*e.x,y:(1-n)*t.y+n*e.y},a=[0,0];r.vec2.normalize(a,[e.x-t.x,e.y-t.y]),a&&(a[0]||a[1])||(a=[0,0]);var s=[-a[1]*i,a[0]*i];return o.x+=s[0],o.y+=s[1],o;},u=function(t,e){var n=t.length;if(!n)return"";for(var r="",i=0;i<n;i++){var a=t[i];r+=o(0===i?"M{x} {y}":"L{x} {y}",a);}return e&&(r+="Z"),r;},c=function(t){var e=[];return t.forEach(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]]);}}),e;},l=function(t){if(t.length<2)throw Error("point length must larger than 2, now it's ".concat(t.length));var e=t[0],n=t[1],r=t[t.length-1],i=t[t.length-2];t.unshift(r),t.unshift(i),t.push(e),t.push(n);for(var o=[],a=1;a<t.length-2;a+=1){var s=t[a-1].x,u=t[a-1].y,c=t[a].x,l=t[a].y,f=t[a+1].x,d=t[a+1].y,h=a!==t.length-2?t[a+2].x:f,g=a!==t.length-2?t[a+2].y:d,p=c+(f-s)/6,v=l+(d-u)/6,m=f-(h-c)/6,y=d-(g-l)/6;o.push(["C",p,v,m,y,f,d]);}return o.unshift(["M",r.x,r.y]),o;},f=function(t,e){return r.vec2.scale([0,0],r.vec2.normalize([0,0],t),e);},d=function(t,e){var n=[t[1]-e[1],e[0]-t[0]],r=Math.sqrt(n[0]*n[0]+n[1]*n[1]);if(0===r)throw Error("p0 should not be equal to p1");return[n[0]/r,n[1]/r];},h=function(t,e){return[e[0]-t[0],e[1]-t[1]];};function g(t,e){if(!t||t.length<1)return"";if(1===t.length)return n=[t[0][0],t[0][1]-e],i=[t[0][0],t[0][1]+e],"M ".concat(n," A ").concat(e,",").concat(e,",0,0,0,").concat(i," A ").concat(e,",").concat(e,",0,0,0,").concat(n);if(2===t.length)return o=r.vec2.scale([0,0],d(t[0],t[1]),e),a=r.vec2.scale([0,0],o,-1),s=r.vec2.add([0,0],t[0],o),u=r.vec2.add([0,0],t[1],o),c=r.vec2.add([0,0],t[1],a),l=r.vec2.add([0,0],t[0],a),"M ".concat(s," L ").concat(u," A ").concat([e,e,"0,0,0",c].join(",")," L ").concat(l," A ").concat([e,e,"0,0,0",s].join(","));for(var n,i,o,a,s,u,c,l,f=Array(t.length),h=0;h<f.length;++h){var g=0===h?t[t.length-1]:t[h-1],p=t[h],v=r.vec2.scale([0,0],d(g,p),e);f[h]=[r.vec2.add([0,0],g,v),r.vec2.add([0,0],p,v)];}var m="A ".concat([e,e,"0,0,0,"].join(","));return(f=f.map(function(t,e){var n="";return 0===e&&(n="M ".concat(f[f.length-1][1]," ")),n+="".concat(m+t[0]," L ").concat(t[1]);})).join(" ");}function p(t,e){var n,i,o,a,s,u,c,l,d,g,p,v,m=t.length;if(!t||m<1)return"";if(1===m)return n=[t[0][0],t[0][1]-e],i=[t[0][0],t[0][1]+e],"M ".concat(n," A ").concat([e,e,"0,0,0",i].join(",")," A ").concat([e,e,"0,0,0",n].join(","));if(2===m)return a=f(o=h(t[0],t[1]),e),s=r.vec2.add([0,0],t[0],r.vec2.scale([0,0],a,-1)),u=r.vec2.add([0,0],t[1],a),c=1.2*e,l=f(r.vec2.normalize([0,0],o),c),d=r.vec2.scale([0,0],l,-1),g=r.vec2.add([0,0],s,d),p=r.vec2.add([0,0],u,d),v=r.vec2.add([0,0],s,l),"M ".concat(s," C ").concat([g,p,u].join(",")," S ").concat([v,s].join(",")," Z");for(var y=t.map(function(e,n){var i=t[(n+1)%m];return{p:e,v:r.vec2.normalize([0,0],h(e,i))};}),b=0;b<y.length;++b){var x=b>0?b-1:m-1,_=r.vec2.normalize([0,0],r.vec2.add([0,0],y[x].v,r.vec2.scale([0,0],y[b].v,-1)));y[b].p=r.vec2.add([0,0],y[b].p,r.vec2.scale([0,0],_,e));}return y.map(function(t){var e=t.p;return{x:e[0],y:e[1]};});}var v=function(t,e){for(var n=[],r=0;r<5;r++){var i=Math.cos((18+72*r)/180*Math.PI)*t,o=Math.sin((18+72*r)/180*Math.PI)*t,a=Math.cos((54+72*r)/180*Math.PI)*e,s=Math.sin((54+72*r)/180*Math.PI)*e;0===r?n.push(["M",i,-o]):n.push(["L",i,-o]),n.push(["L",a,-s]);}return n.push(["Z"]),n;};},"4e7ab584":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"correlation",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("04480408"));function i(t,e=t,n={}){t=new r.default(t);let o=!1;if("object"!=typeof e||r.default.isMatrix(e)||Array.isArray(e)?e=new r.default(e):(n=e,e=t,o=!0),t.rows!==e.rows)throw TypeError("Both matrices must have the same number of rows");let{center:a=!0,scale:s=!0}=n;a&&(t.center("column"),o||e.center("column")),s&&(t.scale("column"),o||e.scale("column"));let u=t.standardDeviation("column",{unbiased:!0}),c=o?u:e.standardDeviation("column",{unbiased:!0}),l=t.transpose().mmul(e);for(let e=0;e<l.rows;e++)for(let n=0;n<l.columns;n++)l.set(e,n,l.get(e,n)*(1/(u[e]*c[n]))*(1/(t.rows-1)));return l;}},"4ea889e5":function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("bedb26df")),o=r(n("136d9fb9")),a=r(n("650800ec")),s=function(t,e,n,r,l,f){var d,h,g,p,v=t.children(e),m=t.node(e),y=m?m.borderLeft:void 0,b=m?m.borderRight:void 0,x={};y&&(v=null==v?void 0:v.filter(function(t){return t!==y&&t!==b;}));var _=(0,i.default)(t,v||[]);null==_||_.forEach(function(e){var i;if(null===(i=t.children(e.v))||void 0===i?void 0:i.length){var o=s(t,e.v,n,r,f);x[e.v]=o,o.hasOwnProperty("barycenter")&&c(e,o);}});var E=(0,o.default)(_,n);u(E,x),null===(d=E.filter(function(t){return t.vs.length>0;}))||void 0===d||d.forEach(function(e){var n=t.node(e.vs[0]);n&&(e.fixorder=n.fixorder,e.order=n.order);});var w=(0,a.default)(E,r,l,f);if(y&&(w.vs=[y,w.vs,b].flat(),null===(h=t.predecessors(y))||void 0===h?void 0:h.length)){var M=t.node((null===(g=t.predecessors(y))||void 0===g?void 0:g[0])||""),C=t.node((null===(p=t.predecessors(b))||void 0===p?void 0:p[0])||"");w.hasOwnProperty("barycenter")||(w.barycenter=0,w.weight=0),w.barycenter=(w.barycenter*w.weight+M.order+C.order)/(w.weight+2),w.weight+=2;}return w;},u=function(t,e){null==t||t.forEach(function(t){var n,r=null===(n=t.vs)||void 0===n?void 0:n.map(function(t){return e[t]?e[t].vs:t;});t.vs=r.flat();});},c=function(t,e){void 0!==t.barycenter?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight);};e.default=s;},"4efc221b":function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);};Object.defineProperty(e,"__esModule",{value:!0}),e.clone=e.isObject=void 0,e.isObject=function(t){return null!==t&&"object"==typeof t;},e.clone=function(t){if(null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){var n=[];return t.forEach(function(t){n.push(t);}),n.map(function(t){return(0,e.clone)(t);});}if("object"==typeof t&&Object.keys(t).length){var i=r({},t);return Object.keys(i).forEach(function(t){i[t]=(0,e.clone)(i[t]);}),i;}return t;};},"4f024b38":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("455d8214")),i=function(t,e){var n=new r.default(e),i=n.norm2(),o=new r.default(t),a=o.norm2(),s=n.dot(o),u=i*a;return u?s/u:0;};},"4fbf7f77":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=n("777fffbe")._(n("8bcf3e79")).default;},"4fea9d48":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r,i=n("777fffbe"),o=n("c966c938"),a=n("22b52967"),s=i._(n("8109e137")),u=i._(n("b208d868")),c=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});"undefined"!=typeof document&&(0,s.default)("\n .g6-component-tooltip {\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n background-color: rgba(255, 255, 255, 0.9);\n padding: 10px 8px;\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n }\n .tooltip-type {\n padding: 0;\n margin: 0;\n }\n .tooltip-id {\n color: #531dab;\n }\n");var l=function(t){function e(e){return t.call(this,e)||this;}return c(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,getContent:function(t){return"\n <h4 class='tooltip-type'>\u7C7B\u578B\uFF1A".concat(t.item.getType(),"</h4>\n <span class='tooltip-id'>ID\uFF1A").concat(t.item.getID(),"</span>\n ");},shouldBegin:function(t){return!0;},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0};},e.prototype.getEvents=function(){return"click"===this.get("trigger")?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"};},e.prototype.init=function(){var t=this,e=t.get("className")||"g6-component-tooltip",n=(0,o.createDom)("<div class='".concat(e,"'></div>")),r=t.get("container");r||(r=t.get("graph").get("container")),(0,a.isString)(r)&&(r=document.getElementById(r)),(0,o.modifyCSS)(n,{position:"absolute",visibility:"hidden",display:"none"}),r.appendChild(n),"click"!==t.get("trigger")&&(n.addEventListener("mouseenter",function(t){(0,o.modifyCSS)(n,{visibility:"visible",display:"unset"});}),n.addEventListener("mouseleave",function(e){t.hideTooltip();})),t.set("tooltip",n);},e.prototype.onClick=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,r=this.get("graph");this.currentTarget===n?(this.currentTarget=null,this.hideTooltip(),r.emit("tooltipchange",{item:t.item,action:"hide"})):(this.currentTarget=n,this.showTooltip(t),r.emit("tooltipchange",{item:t.item,action:"show"}));}},e.prototype.onMouseEnter=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,r=this.get("graph");this.currentTarget=n,this.showTooltip(t),r.emit("tooltipchange",{item:t.item,action:"show"});}},e.prototype.onMouseMove=function(t){var e=this.get("itemTypes");t.item&&t.item.getType&&-1===e.indexOf(t.item.getType())||!this.currentTarget||t.item!==this.currentTarget||this.showTooltip(t);},e.prototype.onMouseLeave=function(){this.hideTooltip(),this.get("graph").emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null;},e.prototype.clearContainer=function(){var t=this.get("tooltip");t&&(t.innerHTML="");},e.prototype.showTooltip=function(t){if(t.item){var e=this.get("itemTypes");if(!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=this.get("tooltip"),r=this.get("getContent")(t);(0,a.isString)(r)?n.innerHTML=r:(this.clearContainer(),n.appendChild(r)),this.updatePosition(t);}}},e.prototype.hideTooltip=function(){var t=this.get("tooltip");t&&(0,o.modifyCSS)(t,{visibility:"hidden",display:"none"});},e.prototype.updatePosition=function(t){var e=this.get("shouldBegin"),n=this.get("tooltip");if(!e(t)){(0,o.modifyCSS)(n,{visibility:"hidden",display:"none"});return;}var r=this.get("graph"),i=r.get("width"),s=r.get("height"),u=this.get("offsetX")||0,c=this.get("offsetY")||0,l=r.getPointByClient(t.clientX,t.clientY),f=this.get("fixToNode"),d=t.item;if(d.getType&&"node"===d.getType()&&f&&(0,a.isArray)(f)&&f.length>=2){var h=d.getBBox();l={x:h.minX+h.width*f[0],y:h.minY+h.height*f[1]};}var g=r.getCanvasByPoint(l.x,l.y),p=g.x,v=g.y,m=r.getContainer(),y={x:p+m.offsetLeft+u,y:v+m.offsetTop+c};(0,o.modifyCSS)(n,{visibility:"visible",display:"unset"});var b=n.getBoundingClientRect();p+b.width+u>i&&(y.x-=b.width+u),v+b.height+c>s&&(y.y-=b.height+c,y.y<0&&(y.y=0)),(0,o.modifyCSS)(n,{left:"".concat(y.x,"px"),top:"".concat(y.y,"px")});},e.prototype.hide=function(){this.onMouseLeave();},e.prototype.destroy=function(){var t=this.get("tooltip");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,a.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t);}},e;}(u.default);},"500428c5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getTotalLength",{enumerable:!0,get:function(){return o;}});var r=n("4c6d310c"),i=n("00226c26");function o(t,e){return(0,i.pathLengthFactory)(t,void 0,(0,r.__assign)((0,r.__assign)({},e),{bbox:!1,length:!0})).length;}},"5015cda8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=r._(n("118756dc")),o=r._(n("c9ae1e54")),a=r._(n("c2d1eb5c")),s=function(t,e){if(t===e)return!0;if(!t||!e||(0,a.default)(t)||(0,a.default)(e))return!1;if((0,o.default)(t)||(0,o.default)(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=s(t[r],e[r]));r++);return n;}if((0,i.default)(t)||(0,i.default)(e)){var u=Object.keys(t),c=Object.keys(e);if(u.length!==c.length)return!1;for(var n=!0,r=0;r<u.length&&(n=s(t[u[r]],e[u[r]]));r++);return n;}return!1;},u=s;},"501adece":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6e810311")),i=function(t){return(0,r.default)(t,"Number");};},"50277de6":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.MDSLayout=void 0;var o=n("d10f4774"),a=n("38788347"),s=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.linkDistance=50,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],linkDistance:50};},e.prototype.execute=function(){var t=this.nodes,e=this.edges,n=void 0===e?[]:e,r=this.center;if(!t||0===t.length){this.onLayoutEnd&&this.onLayoutEnd();return;}if(1===t.length){t[0].x=r[0],t[0].y=r[1],this.onLayoutEnd&&this.onLayoutEnd();return;}var i=this.linkDistance,o=(0,a.getAdjMatrix)({nodes:t,edges:n},!1),s=(0,a.floydWarshall)(o);this.handleInfinity(s);var u=(0,a.scaleMatrix)(s,i);this.scaledDistances=u;var c=this.runMDS();return this.positions=c,c.forEach(function(e,n){t[n].x=e[0]+r[0],t[n].y=e[1]+r[1];}),this.onLayoutEnd&&this.onLayoutEnd(),{nodes:t,edges:n};},e.prototype.runMDS=function(){var t=this.scaledDistances,e=o.Matrix.mul(o.Matrix.pow(t,2),-.5),n=e.mean("row"),r=e.mean("column"),i=e.mean();e.add(i).subRowVector(n).subColumnVector(r);var a=new o.SingularValueDecomposition(e),s=o.Matrix.sqrt(a.diagonalMatrix).diagonal();return a.leftSingularVectors.toJSON().map(function(t){return o.Matrix.mul([t],[s]).toJSON()[0].splice(0,2);});},e.prototype.handleInfinity=function(t){var e=-999999;t.forEach(function(t){t.forEach(function(t){t!==1/0&&e<t&&(e=t);});}),t.forEach(function(n,r){n.forEach(function(n,i){n===1/0&&(t[r][i]=e);});});},e.prototype.getType=function(){return"mds";},e;}(n("5092cda5").Base);e.MDSLayout=s;},"5043e8ba":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.GForceLayout=void 0;var o=n("5092cda5"),a=n("38788347"),s=function(t,e){return t?(0,a.isNumber)(t)?function(e){return t;}:t:function(t){return e||1;};},u=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0};},e.prototype.execute=function(){var t=this,e=t.nodes;if(void 0!==t.timeInterval&&"undefined"!=typeof window&&window.clearInterval(t.timeInterval),!e||0===e.length){null===(u=t.onLayoutEnd)||void 0===u||u.call(t);return;}t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var n=t.center;if(1===e.length){e[0].x=n[0],e[0].y=n[1],null===(c=t.onLayoutEnd)||void 0===c||c.call(t);return;}var r={},i={};e.forEach(function(e,n){(0,a.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,a.isNumber)(e.y)||(e.y=Math.random()*t.height),r[e.id]=e,i[e.id]=n;}),t.nodeMap=r,t.nodeIdxMap=i,t.linkDistance=s(t.linkDistance,1),t.nodeStrength=s(t.nodeStrength,1),t.edgeStrength=s(t.edgeStrength,1);var o=t.nodeSize;if(t.preventOverlap){var u,c,l,f,d=t.nodeSpacing;f=(0,a.isNumber)(d)?function(){return d;}:(0,a.isFunction)(d)?d:function(){return 0;},l=o?(0,a.isArray)(o)?function(t){return Math.max(o[0],o[1])+f(t);}:function(t){return o+f(t);}:function(t){return t.size?(0,a.isArray)(t.size)?Math.max(t.size[0],t.size[1])+f(t):(0,a.isObject)(t.size)?Math.max(t.size.width,t.size.height)+f(t):t.size+f(t):10+f(t);};}t.nodeSize=l;var h=t.edges;t.degrees=(0,a.getDegree)(e.length,t.nodeIdxMap,h),t.getMass||(t.getMass=function(e){return e.mass||t.degrees[t.nodeIdxMap[e.id]].all||1;}),t.run();},e.prototype.run=function(){var t,e=this,n=e.maxIteration,r=e.nodes,i=e.workerEnabled,o=e.minMovement,a=e.animate;if(r){if(i||!a){for(var s=0;s<n;s++){var u=e.runOneStep(s);if(e.reachMoveThreshold(r,u,o))break;}null===(t=e.onLayoutEnd)||void 0===t||t.call(e);}else{if("undefined"==typeof window)return;var c=0;this.timeInterval=window.setInterval(function(){if(r){var t,i,a=e.runOneStep(c)||[];e.reachMoveThreshold(r,a,o)&&(null===(t=e.onLayoutEnd)||void 0===t||t.call(e),window.clearInterval(e.timeInterval)),++c>=n&&(null===(i=e.onLayoutEnd)||void 0===i||i.call(e),window.clearInterval(e.timeInterval));}},0);}}},e.prototype.reachMoveThreshold=function(t,e,n){var r=0;return t.forEach(function(t,n){var i=t.x-e[n].x,o=t.y-e[n].y;r+=Math.sqrt(i*i+o*o);}),(r/=t.length)<n;},e.prototype.runOneStep=function(t){var e,n=this.nodes,r=this.edges,i=[],o=[];if(n){n.forEach(function(t,e){i[2*e]=0,i[2*e+1]=0,o[2*e]=0,o[2*e+1]=0;}),this.calRepulsive(i,n),r&&this.calAttractive(i,r),this.calGravity(i,n);var a=Math.max(.02,this.interval-.002*t);this.updateVelocity(i,o,a,n);var s=[];return n.forEach(function(t){s.push({x:t.x,y:t.y});}),this.updatePosition(o,a,n),null===(e=this.tick)||void 0===e||e.call(this),s;}},e.prototype.calRepulsive=function(t,e){var n=this.getMass,r=this.factor,i=this.coulombDisScale,o=this.preventOverlap,a=this.collideStrength,s=void 0===a?1:a,u=this.nodeStrength,c=this.nodeSize;e.forEach(function(a,l){var f=n?n(a):1;e.forEach(function(e,d){if(!(l>=d)){var h=a.x-e.x,g=a.y-e.y;0===h&&0===g&&(h=.01*Math.random(),g=.01*Math.random());var p=h*h+g*g,v=Math.sqrt(p),m=(v+.1)*i,y=h/v,b=g/v,x=(u(a)+u(e))*.5*r/(m*m),_=n?n(e):1;if(t[2*l]+=y*x,t[2*l+1]+=b*x,t[2*d]-=y*x,t[2*d+1]-=b*x,o&&(c(a)+c(e))/2>v){var E=s*(u(a)+u(e))*.5/p;t[2*l]+=y*E/f,t[2*l+1]+=b*E/f,t[2*d]-=y*E/_,t[2*d+1]-=b*E/_;}}});});},e.prototype.calAttractive=function(t,e){var n=this.nodeMap,r=this.nodeIdxMap,i=this.linkDistance,o=this.edgeStrength,s=this.nodeSize,u=this.getMass;e.forEach(function(e,c){var l=(0,a.getEdgeTerminal)(e,"source"),f=(0,a.getEdgeTerminal)(e,"target"),d=n[l],h=n[f],g=h.x-d.x,p=h.y-d.y;0===g&&0===p&&(g=.01*Math.random(),p=.01*Math.random());var v=Math.sqrt(g*g+p*p),m=g/v,y=p/v,b=((i(e,d,h)||1+(s(d)+s(h)||0)/2)-v)*o(e),x=r[l],_=r[f],E=u?u(d):1,w=u?u(h):1;t[2*x]-=m*b/E,t[2*x+1]-=y*b/E,t[2*_]+=m*b/w,t[2*_+1]+=y*b/w;});},e.prototype.calGravity=function(t,e){for(var n=this.center,r=this.gravity,i=this.degrees,o=e.length,s=0;s<o;s++){var u=e[s],c=u.x-n[0],l=u.y-n[1],f=r;if(this.getCenter){var d=this.getCenter(u,i[s].all);d&&(0,a.isNumber)(d[0])&&(0,a.isNumber)(d[1])&&(0,a.isNumber)(d[2])&&(c=u.x-d[0],l=u.y-d[1],f=d[2]);}f&&(t[2*s]-=f*c,t[2*s+1]-=f*l);}},e.prototype.updateVelocity=function(t,e,n,r){var i=this,o=n*i.damping;r.forEach(function(n,r){var a=t[2*r]*o||.01,s=t[2*r+1]*o||.01,u=Math.sqrt(a*a+s*s);if(u>i.maxSpeed){var c=i.maxSpeed/u;a*=c,s*=c;}e[2*r]=a,e[2*r+1]=s;});},e.prototype.updatePosition=function(t,e,n){n.forEach(function(n,r){if((0,a.isNumber)(n.fx)&&(0,a.isNumber)(n.fy)){n.x=n.fx,n.y=n.fy;return;}var i=t[2*r]*e,o=t[2*r+1]*e;n.x+=i,n.y+=o;});},e.prototype.stop=function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval);},e.prototype.destroy=function(){this.stop(),this.tick=null,this.nodes=null,this.edges=null,this.destroyed=!0;},e.prototype.getType=function(){return"gForce";},e;}(o.Base);e.GForceLayout=u;},"5054c1ff":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("c2d1eb5c")),i=function(t,e,n){for(var i=0,o=(0,r.default)(e)?e.split("."):e;t&&i<o.length;)t=t[o[i++]];return void 0===t||i<o.length?n:t;};},"5085d04f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("4c6d310c"),i=n("22b52967"),o=n("960236de"),a=n("2105a9e4"),s=n("c64a4ad4"),u=n("85b3418c"),c=function(){function t(t){this.destroyed=!1,this.graph=t,this.destroyed=!1;}return t.prototype.getViewCenter=function(){var t=this.getFormatPadding(),e=this.graph,n=this.graph.get("width"),r=e.get("height");return{x:(n-t[1]-t[3])/2+t[3],y:(r-t[0]-t[2])/2+t[0]};},t.prototype.fitCenter=function(t,e){var n,r=this.graph,i=r.get("group"),o=r.getNodes();if(o.length>r.get("optimizeThreshold")){var s=1/0,u=1/0,c=-1/0,l=-1/0;o.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y;s>n&&(s=n),u>r&&(u=r),c<n&&(c=n),l<r&&(l=r);});var f=i.getMatrix()||[1,0,0,0,1,0,0,0,1],d=(0,a.applyMatrix)({x:s,y:u},f),h=d.x,g=d.y,p=(0,a.applyMatrix)({x:c,y:l},f),v=p.x,m=p.y;n={minX:h,maxX:v,minY:g,maxY:m,width:v-h,height:m-g,x:h,y:g};}else n=i.getCanvasBBox();if(0!==n.width&&0!==n.height){var y=this.getViewCenter(),b={x:n.x+n.width/2,y:n.y+n.height/2};r.translate(y.x-b.x,y.y-b.y,t,e);}},t.prototype.animatedFitView=function(t,e,n,r,i,c,l,f){var d=this.graph;n=n||{duration:500,easing:"easeCubic"};var h=r.x+i.x-c.x-r.minX,g=r.y+i.y-c.y-r.minY;if(!((0,o.isNaN)(h)||(0,o.isNaN)(g))){var p=(0,s.transform)([1,0,0,0,1,0,0,0,1],[["t",h,g]]);if(!f){var v=(0,u.getAnimateCfgWithCallback)({animateCfg:n,callback:function(){d.emit("viewportchange",{action:"translate",matrix:p});}});t.animate(function(t){return{matrix:(0,a.lerpArray)(e,p,t)};},v);return;}var m=d.get("minZoom"),y=d.get("maxZoom"),b=l;m&&l<m?(b=m,console.warn("fitview failed, ratio out of range, ratio: %f",l,"graph minzoom has been used instead")):y&&l>y&&(b=y,console.warn("fitview failed, ratio out of range, ratio: %f",l,"graph maxzoom has been used instead"));var x=(0,s.transform)(p,[["t",-i.x,-i.y],["s",b,b],["t",i.x,i.y]]),_=(0,u.getAnimateCfgWithCallback)({animateCfg:n,callback:function(){t.setMatrix(x),d.emit("viewportchange",{action:"translate",matrix:p}),d.emit("viewportchange",{action:"zoom",matrix:x});}});t.stopAnimate(),t.setMatrix(e),t.animate(function(t){return{matrix:(0,a.lerpArray)(e,x,t)};},_);}},t.prototype.fitView=function(t,e){var n,r=this.graph,i=this.getFormatPadding(),a=r.get("width"),s=r.get("height"),u=r.get("group"),c=u.getMatrix()||[1,0,0,0,1,0,0,0,1];u.resetMatrix();var l=r.getNodes();if(l.length>r.get("optimizeThreshold")){var f=1/0,d=1/0,h=-1/0,g=-1/0;l.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y;f>n&&(f=n),d>r&&(d=r),h<n&&(h=n),g<r&&(g=r);}),n={minX:f,maxX:h,minY:d,maxY:g,width:h-f,height:g-d,x:f,y:d};}else n=u.getCanvasBBox();if(0!==n.width&&0!==n.height){var p=this.getViewCenter(),v={x:n.x+n.width/2,y:n.y+n.height/2},m=(a-i[1]-i[3])/n.width,y=(s-i[0]-i[2])/n.height,b=m;if(m>y&&(b=y),t)this.animatedFitView(u,c,e,n,p,v,b,!0);else{var x=p.x-v.x,_=p.y-v.y;if((0,o.isNaN)(x)||(0,o.isNaN)(_))return;r.translate(x,_),r.zoom(b,p)||console.warn("zoom failed, ratio out of range, ratio: %f",b);}}},t.prototype.fitViewByRules=function(t,e,n){var r,i,o=t.onlyOutOfViewPort,a=t.direction,s=void 0===a?"both":a,u=t.ratioRule,c=this.graph,l=this.getFormatPadding(),f=c.get("width"),d=c.get("height"),h=c.get("group"),g=h.getMatrix()||[1,0,0,0,1,0,0,0,1];h.resetMatrix();var p=c.getNodes();if(p.length>c.get("optimizeThreshold")){var v=1/0,m=1/0,y=-1/0,b=-1/0;p.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y;v>n&&(v=n),m>r&&(m=r),y<n&&(y=n),b<r&&(b=r);}),r={minX:v,maxX:y,minY:m,maxY:b,width:y-v,height:b-m,x:v,y:m};}else r=h.getCanvasBBox();if(0!==r.width&&0!==r.height){var x=this.getViewCenter(),_={x:r.x+r.width/2,y:r.y+r.height/2},E=(f-l[1]-l[3])/r.width,w=(d-l[0]-l[2])/r.height;if(i="x"===s?E:"y"===s?w:"max"===(void 0===u?"min":u)?Math.max(E,w):Math.min(E,w),void 0!==o&&o&&(i=i<1?i:1),e)this.animatedFitView(h,g,n,r,x,_,i,!0);else{var M=c.getZoom()*i,C=c.get("minZoom");M<C&&(M=C,console.warn("fitview failed, ratio out of range, ratio: %f",i,"graph minzoom has been used instead")),c.translate(x.x-_.x,x.y-_.y),c.zoomTo(M,x);}}},t.prototype.getFormatPadding=function(){var t=this.graph.get("fitViewPadding");return(0,o.formatPadding)(t);},t.prototype.focusPoint=function(t,e,n){var i=this,o=this.getViewCenter(),a=this.getPointByCanvas(o.x,o.y),s=this.graph.get("group").getMatrix();if(s||(s=[1,0,0,0,1,0,0,0,1]),e){var u=(a.x-t.x)*s[0],c=(a.y-t.y)*s[4],l=0,f=0,d=0,h=0;this.graph.get("canvas").animate(function(t){d=u*t,h=c*t,i.graph.translate(d-l,h-f),l=d,f=h;},(0,r.__assign)({},n));}else this.graph.translate((a.x-t.x)*s[0],(a.y-t.y)*s[4]);},t.prototype.getPointByCanvas=function(t,e){var n=this.graph.get("group").getMatrix();return n||(n=[1,0,0,0,1,0,0,0,1]),(0,a.invertMatrix)({x:t,y:e},n);},t.prototype.getPointByClient=function(t,e){var n=this.graph.get("canvas").getPointByClient(t,e);return this.getPointByCanvas(n.x,n.y);},t.prototype.getClientByPoint=function(t,e){var n=this.graph.get("canvas"),r=this.getCanvasByPoint(t,e),i=n.getClientByPoint(r.x,r.y);return{x:i.x,y:i.y};},t.prototype.getCanvasByPoint=function(t,e){var n=this.graph.get("group").getMatrix();return n||(n=[1,0,0,0,1,0,0,0,1]),(0,a.applyMatrix)({x:t,y:e},n);},t.prototype.focus=function(t,e,n){if((0,i.isString)(t)&&(t=this.graph.findById(t)),t){var r=0,o=0;if(t.getType&&"edge"===t.getType()){var a=t.getSource().get("group").getMatrix(),s=t.getTarget().get("group").getMatrix();a&&s?(r=(a[6]+s[6])/2,o=(a[7]+s[7])/2):(a||s)&&(r=a?a[6]:s[6],o=a?a[7]:s[7]);}else{var u=t.get("group").getMatrix();u||(u=[1,0,0,0,1,0,0,0,1]),r=u[6],o=u[7];}this.focusPoint({x:r,y:o},e,n);}},t.prototype.focusItems=function(t,e,n,r){if(t.length){var i=this.graph,o=this.getFormatPadding(),a=i.get("width"),s=i.get("height"),u=i.get("group"),c=u.getMatrix()||[1,0,0,0,1,0,0,0,1];u.resetMatrix();for(var l={x:0,y:0,minX:Number.MAX_SAFE_INTEGER,minY:Number.MAX_SAFE_INTEGER,maxX:Number.MIN_SAFE_INTEGER,maxY:Number.MIN_SAFE_INTEGER,width:0,height:0},f=0;f<t.length;f++){var d=t[f].getBBox();d.minX<l.minX&&(l.minX=d.minX),d.minY<l.minY&&(l.minY=d.minY),d.maxX>l.maxX&&(l.maxX=d.maxX),d.maxY>l.maxY&&(l.maxY=d.maxY);}if(l.x=l.minX,l.y=l.minY,l.width=l.maxX-l.minX,l.height=l.maxY-l.minY,0!==l.width&&0!==l.height){var h=this.getViewCenter(),g={x:l.x+l.width/2,y:l.y+l.height/2},p=(a-o[1]-o[3])/l.width,v=(s-o[0]-o[2])/l.height,m=p;p>v&&(m=v),n?this.animatedFitView(u,c,r,l,h,g,m,e):(i.translate(h.x-g.x,h.y-g.y),e&&!i.zoom(m,h)&&console.warn("zoom failed, ratio out of range, ratio: %f",m));}}},t.prototype.changeSize=function(t,e){var n=this.graph;if(!(0,i.isNumber)(t)||!(0,i.isNumber)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:t,height:e}),n.get("canvas").changeSize(t,e),n.get("plugins").forEach(function(t){t.get("gridContainer")&&t.positionInit();});},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1;},t;}();},"5092cda5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.Base=void 0;var r=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){};}return t.prototype.layout=function(t){return this.init(t),this.execute(!0);},t.prototype.init=function(t){this.nodes=t.nodes||[],this.edges=t.edges||[],this.combos=t.combos||[],this.comboEdges=t.comboEdges||[],this.hiddenNodes=t.hiddenNodes||[],this.hiddenEdges=t.hiddenEdges||[],this.hiddenCombos=t.hiddenCombos||[],this.vedges=t.vedges||[];},t.prototype.execute=function(t){},t.prototype.executeWithWorker=function(){},t.prototype.getDefaultCfg=function(){return{};},t.prototype.updateCfg=function(t){t&&Object.assign(this,t);},t.prototype.getType=function(){return"base";},t.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0;},t;}();e.Base=r;},51202462:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return f;},detectAllCycles:function(){return l;},detectAllDirectedCycle:function(){return c;},detectAllUndirectedCycle:function(){return u;}});var r=n("777fffbe"),i=n("852bbaa9"),o=r._(n("17ebea90")),a=i._(n("61a00822")),s=n("f29fe526"),u=function(t,e,n){void 0===n&&(n=!0);for(var r,i,o=[],u=(0,a.default)(t,!1),c=0;c<u.length;c++){var l=u[c];if(l.length)for(var f=l[0],d=f.id,h=[f],g=((r={})[d]=f,r),p=((i={})[d]=new Set,i);h.length>0;)for(var v=h.pop(),m=v.id,y=(0,s.getNeighbors)(m,t.edges),b=0;b<y.length;b+=1)!function(r){var i,a=y[r],s=t.nodes.find(function(t){return t.id===a;});if(a===m)o.push(((i={})[a]=v,i));else if(a in p){if(!p[m].has(s)){for(var u=!0,c=[s,v],l=g[m];p[a].size&&!p[a].has(l)&&(c.push(l),l!==g[l.id]);)l=g[l.id];if(c.push(l),e&&n?(u=!1,c.findIndex(function(t){return e.indexOf(t.id)>-1;})>-1&&(u=!0)):e&&!n&&c.findIndex(function(t){return e.indexOf(t.id)>-1;})>-1&&(u=!1),u){for(var f={},d=1;d<c.length;d+=1)f[c[d-1].id]=c[d];c.length&&(f[c[c.length-1].id]=c[0]),o.push(f);}p[a].add(v);}}else g[a]=v,h.push(s),p[a]=new Set([v]);}(b);}return o;},c=function(t,e,n){void 0===n&&(n=!0);for(var r=[],i=new Set,o=[],u=[],c={},l={},f=function(t){for(var e=[t];e.length>0;){var n=e.pop();i.has(n)&&(i.delete(n),o[n.id].forEach(function(t){e.push(t);}),o[n.id].clear());}},d=t.nodes,h=void 0===d?[]:d,g=0;g<h.length;g+=1){var p=h[g];l[p.id]=g,c[g]=p;}if(e&&n)for(var g=0;g<e.length;g++)!function(t){var n=e[t];l[h[t].id]=l[n],l[n]=0,c[0]=h.find(function(t){return t.id===n;}),c[l[h[t].id]]=h[t];}(g);for(var v=0;v<h.length;){var m=h.filter(function(t){return l[t.id]>=v;}),y=(0,a.detectStrongConnectComponents)({nodes:m,edges:t.edges}).filter(function(t){return t.length>1;});if(0===y.length)break;var b=function(r){for(var i,o,a=1/0,c=0;c<r.length;c+=1)for(var f=r[c],d=0;d<f.length;d++){var h=l[f[d].id];h<a&&(a=h,o=c);}for(var g=r[o],p=[],c=0;c<g.length;c+=1){var v=g[c];p[v.id]=[];for(var m=0,y=(0,s.getNeighbors)(v.id,t.edges,"target").filter(function(t){return g.map(function(t){return t.id;}).indexOf(t)>-1;});m<y.length;m++){var b=y[m];b!==v.id||!1===n&&e.indexOf(v.id)>-1?p[v.id].push(l[b]):u.push(((i={})[v.id]=v,i));}}return{component:g,adjList:p,minIdx:a};}(y),x=b.minIdx,_=b.adjList,E=b.component;if(E.length>1){E.forEach(function(t){o[t.id]=new Set;});var w=c[x];if(e&&n&&-1===e.indexOf(w.id))return u;!function t(a,s,l){var d=!1;if(e&&!1===n&&e.indexOf(a.id)>-1)return d;r.push(a),i.add(a);for(var h=l[a.id],g=0;g<h.length;g+=1){var p=c[h[g]];if(p===s){for(var v={},m=1;m<r.length;m+=1)v[r[m-1].id]=r[m];r.length&&(v[r[r.length-1].id]=r[0]),u.push(v),d=!0;}else!i.has(p)&&t(p,s,l)&&(d=!0);}if(d)f(a);else for(var g=0;g<h.length;g+=1){var p=c[h[g]];o[p.id].has(a)||o[p.id].add(a);}return r.pop(),d;}(w,w,_),v=x+1;}else break;}return u;},l=function(t,e,n,r){return(void 0===r&&(r=!0),e)?c(t,n,r):u(t,n,r);},f=function(t){var e=null,n=t.nodes,r={},i={},a={},s={};(void 0===n?[]:n).forEach(function(t){i[t.id]=t;});for(var u={enter:function(t){var n=t.current,o=t.previous;if(a[n]){e={};for(var s=n,u=o;u!==n;)e[s]=u,s=u,u=r[u];e[s]=u;}else a[n]=n,delete i[n],r[n]=o;},leave:function(t){var e=t.current;s[e]=e,delete a[e];},allowTraversal:function(t){var n=t.next;return!e&&!s[n];}};Object.keys(i).length;){var c=Object.keys(i)[0];(0,o.default)(t,c,u);}return e;};},"512b53c7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe"),i=n("4c6d310c"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0});},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o,a,s,u,c,l,f=this.attr(),d=i/2,h=f.x,g=f.y,p=f.rx,v=f.ry,m=(t-h)*(t-h),y=(e-g)*(e-g);return r&&n?1>=m/((o=p+d)*o)+y/((a=v+d)*a):r?1>=m/(p*p)+y/(v*v):!!n&&m/((s=p-d)*s)+y/((u=v-d)*u)>=1&&1>=m/((c=p+d)*c)+y/((l=v+d)*l);},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;t.beginPath(),t.ellipse?t.ellipse(n,r,i,o,0,0,2*Math.PI,!1):(t.save(),t.translate(n,r),t.scale(i>o?1:i/o,i>o?o/i:1),t.arc(0,0,i>o?i:o,0,2*Math.PI),t.restore(),t.closePath());},e;}(r._(n("235d18ef")).default);},51381487:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"transform",{enumerable:!0,get:function(){return i;}});var r=n("b018614c");function i(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],i=0,o=e.length;i<o;i++){var a,s=e[i];switch(s[0]){case"t":!function(t,e,n){var i=[0,0,0,0,0,0,0,0,0];r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e);}(n,n,[s[1],s[2]]);break;case"s":!function(t,e,n){var i=[0,0,0,0,0,0,0,0,0];r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e);}(n,n,[s[1],s[2]]);break;case"r":!function(t,e,n){var i=[0,0,0,0,0,0,0,0,0];r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e);}(n,n,s[1]);break;case"m":a=s[1],r.mat3.multiply(n,a,n);}}return n;}},"51c51865":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"equalizeSegments",{enumerable:!0,get:function(){return function t(e,n,r){var i=o(e),a=o(n),s=i.length,u=a.length,c=i.filter(function(t){return t.l;}).length,l=a.filter(function(t){return t.l;}).length,f=i.filter(function(t){return t.l;}).reduce(function(t,e){return t+e.l;},0)/c||0,d=a.filter(function(t){return t.l;}).reduce(function(t,e){return t+e.l;},0)/l||0,h=r||Math.max(s,u),g=[f,d],p=[h-s,h-u],v=0,m=[i,a].map(function(t,e){return t.l===h?t.map(function(t){return t.s;}):t.map(function(t,n){return v=n&&p[e]&&t.l>=g[e],p[e]-=v?1:0,v?t.ss:[t.s];}).flat();});return m[0].length===m[1].length?m:t(m[0],m[1],h);};}});var r=n("ed0d3524"),i=n("fe803fdd");function o(t){return t.map(function(t,e,n){var o,a,s,u,c,l,f,d,h,g,p,v,m=e&&n[e-1].slice(-2).concat(t.slice(1)),y=e?(0,i.segmentCubicFactory)(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],{bbox:!1}).length:0;return v=e?y?(void 0===o&&(o=.5),a=m.slice(0,2),s=m.slice(2,4),u=m.slice(4,6),c=m.slice(6,8),l=(0,r.midPoint)(a,s,o),f=(0,r.midPoint)(s,u,o),d=(0,r.midPoint)(u,c,o),h=(0,r.midPoint)(l,f,o),g=(0,r.midPoint)(f,d,o),p=(0,r.midPoint)(h,g,o),[["C"].concat(l,h,p),["C"].concat(g,d,c)]):[t,t]:[t],{s:t,ss:v,l:y};});}},"51dbb462":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=Object.prototype,i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r);};},"521e1f60":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.browserPrefixToKey=o,e.browserPrefixToStyle=function(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t;},e.default=void 0,e.getPrefix=i;let r=["Moz","Webkit","O","ms"];function i(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";let n=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!n||e in n)return"";for(let t=0;t<r.length;t++)if(o(e,r[t]) in n)return r[t];return"";}function o(t,e){return e?"".concat(e).concat(function(t){let e="",n=!0;for(let r=0;r<t.length;r++)n?(e+=t[r].toUpperCase(),n=!1):"-"===t[r]?n=!0:e+=t[r];return e;}(t)):t;}e.default=i();},"5241b9a9":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("b6b3d6c6"));class i extends r.default{constructor(t){super(t,t.rows,t.columns);}set(t,e,n){return this.matrix.set(this.rows-t-1,e,n),this;}get(t,e){return this.matrix.get(this.rows-t-1,e);}}},"524ebf25":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){return(t%e+e)%e;};},"528465ee":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r="rgb(95, 149, 255)",i="rgb(0, 0, 0)",o="rgb(247, 250, 255)",a="rgb(253, 253, 253)",s="rgb(250, 250, 250)",u="rgb(224, 224, 224)",c="rgb(234, 234, 234)",l="#4572d9",f={version:"0.8.23",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:r,fill:"rgb(239, 244, 255)"},size:20,color:r,linkPoints:{size:8,lineWidth:1,fill:o,stroke:r}},nodeStateStyles:{active:{fill:o,stroke:r,lineWidth:2,shadowColor:r,shadowBlur:10},selected:{fill:"rgb(255, 255, 255)",stroke:r,lineWidth:4,shadowColor:r,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:"rgb(223, 234, 255)",stroke:l,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:o,stroke:"rgb(191, 213, 255)",lineWidth:1},disable:{fill:s,stroke:u,lineWidth:1}},edgeLabel:{style:{fill:i,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:u,lineAppendWidth:2},color:u},edgeStateStyles:{active:{stroke:r,lineWidth:1},selected:{stroke:r,lineWidth:2,shadowColor:r,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:r,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:c,lineWidth:1},disable:{stroke:"rgb(245, 245, 245)",lineWidth:1}},comboLabel:{style:{fill:i,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:a,lineWidth:1,stroke:u,r:5,width:20,height:10},size:[20,5],color:u,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:r,lineWidth:1,fill:o},selected:{stroke:r,lineWidth:2,fill:a,shadowColor:r,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:l,lineWidth:2,fill:a,"text-shape":{fontWeight:500}},inactive:{stroke:u,fill:a,lineWidth:1},disable:{stroke:c,fill:s,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},windowFontFamily:"undefined"!=typeof window&&window.getComputedStyle&&document.body&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"};},"52c474fc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("d1751d7c")._(n("5f08034b"),e);},53313131:function(t,e,n){"use strict";function r(t){return t.map(function(t){return Array.isArray(t)?[].concat(t):t;});}n.d(e,"__esModule",{value:!0}),n.d(e,"clonePath",{enumerable:!0,get:function(){return r;}});},"533b8f72":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6e810311")),i=function(t){return Array.isArray?Array.isArray(t):(0,r.default)(t,"Array");};},"53556cd1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("501adece")),i=function(t){return(0,r.default)(t)&&t%1!=0;};},"5358c545":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("7048382e"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e;}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,function(t,e){"points"===e&&(0,o.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map(function(t){return t[0]+","+t[1];}).join(" ")):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t);});},e;}(r._(n("1bfab17d")).default);},"53c99e30":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"pathFinder",{enumerable:!0,get:function(){return p;}});var r=n("168feef4"),i=n("22b52967"),o=n("ad0731aa"),a={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2};},distFunc:function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y);},fallbackRoute:function(t,e,n,r,i){return(0,o.simplifyPolyline)((0,o.getPolylinePoints)(t,e,n,r,i.offset));}},s=function(t,e){var n=Math.round(Math.abs(t/e));return n<0?0:(t<0?-1:1)*n;},u=function(t,e,n){var r={};return t.forEach(function(t){if(t)for(var i=(0,o.getExpandedBBox)(t.getBBox(),n),a=s(i.minX,e);a<=s(i.maxX,e);a+=1)for(var u=s(i.minY,e);u<=s(i.maxY,e);u+=1)r["".concat(a,"|||").concat(u)]=!0;}),r;},c=function(t,e){var n=e.x-t.x,r=e.y-t.y;return n||r?Math.atan2(r,n):0;},l=function(t,e){var n=Math.abs(t-e);return n>Math.PI?2*Math.PI-n:n;},f=function(t,e,n){for(var r=1/0,i=0,o=e.length;i<o;i++){var a=n(t,e[i]);a<r&&(r=a);}return r;},d=function(t,e,n,i,a){var u=[];if(!n)return[t];var c=a.directions,l=a.offset,f=n.getBBox(),d=e.x>f.minX&&e.x<f.maxX&&e.y>f.minY&&e.y<f.maxY,h=(0,o.getExpandedBBox)(f,l);for(var g in h)h[g]=s(h[g],a.gridSize);if(d){for(var p=0;p<c.length;p++)for(var v=c[p],m=[[{x:h.minX,y:h.minY},{x:h.maxX,y:h.minY}],[{x:h.minX,y:h.minY},{x:h.minX,y:h.maxY}],[{x:h.maxX,y:h.minY},{x:h.maxX,y:h.maxY}],[{x:h.minX,y:h.maxY},{x:h.maxX,y:h.maxY}]],g=0;g<4;g++){var y=m[g],b=r.Util.getLineIntersect(t,{x:t.x+v.stepX*h.width,y:t.y+v.stepY*h.height},y[0],y[1]);b&&!(0,o.isSegmentCrossingBBox)(t,b,f)&&(b.id="".concat(b.x,"|||").concat(b.y),u.push(b));}return u;}var x=(0,o.getExpandedBBoxPoint)(h,t,i);return x.id="".concat(x.x,"|||").concat(x.y),[x];},h=function(t,e,n,r){var i=c(t,e),o=n[t.id];return o?l(c({x:o.x,y:o.y},t),i):l(c(r,t),i);},g=function(t,e,n,r,i,o,a){var s=[r],u=r,c=t.id,l=t.x,f=t.y,d={x:l,y:f,id:c};h(d,o,e,n)&&(u={x:o.x===r.x?r.x:d.x*a,y:o.y===r.y?r.y:d.y*a},s.unshift(u));for(var g=e[c];g&&g.id!==c;){var p={x:l,y:f,id:c},v={x:g.x,y:g.y,id:g.id};h(v,p,e,n)&&(u={x:v.x===p.x?u.x:v.x*a,y:v.y===p.y?u.y:v.y*a},s.unshift(u)),c=v.id,l=v.x,f=v.y,g=e[c];}return s[0].x=l===n.x?i.x:u.x,s[0].y=f===n.y?i.y:u.y,s.unshift(i),s;},p=function(t,e,n,r,c){if(isNaN(t.x)||isNaN(e.x))return[];var l,p,v,m,y,b,x=(0,i.deepMix)(a,c);x.obstacles=x.obstacles||[];var _=x.penalties,E=x.gridSize,w=u(x.obstacles.concat([n,r]),E,x.offset),M={x:s(t.x,E),y:s(t.y,E)},C={x:s(e.x,E),y:s(e.y,E)};t.id="".concat(M.x,"|||").concat(M.y),e.id="".concat(C.x,"|||").concat(C.y);var A=d(M,t,n,C,x),S=d(C,e,r,M,x);A.forEach(function(t){delete w[t.id];}),S.forEach(function(t){delete w[t.id];});for(var D={},I={},T={},k={},F={},N=new o.SortedArray,O=0;O<A.length;O++){var B=A[O];D[B.id]=B,k[B.id]=0,F[B.id]=f(B,S,x.distFunc),N.add({id:B.id,value:F[B.id]});}var P=x.maximumLoops,L=1/0,j={};for(S.forEach(function(t){j["".concat(t.x,"|||").concat(t.y)]=!0;}),Object.keys(D).forEach(function(t){var e=D[t].id;F[e]<=L&&(L=F[e],l=D[e]);});Object.keys(D).length>0&&P>0;){var R=N.minId((P+1)%30==0);if(R)l=D[R];else break;if(j["".concat(l.x,"|||").concat(l.y)])return g(l,T,M,e,t,C,E);delete D[l.id],N.remove(l.id),I[l.id]=!0;for(var O=0;O<x.directions.length;O++){p=x.directions[O];var z="".concat(Math.round(l.x)+p.stepX,"|||").concat(Math.round(l.y)+p.stepY);if(v={x:l.x+p.stepX,y:l.y+p.stepY,id:z},!(I[z]||(b=h(l,v,T,M))>x.maxAllowedDirectionChange)&&!w[z]){D[z]||(D[z]=v);var G=_[b];m=x.distFunc(l,v)+(isNaN(G)?E:G),y=k[l.id]+m;var Y=k[z];Y&&y>=Y||(T[z]=l,k[z]=y,F[z]=y+f(v,S,x.distFunc),N.add({id:z,value:F[z]}));}}P-=1;}return x.fallbackRoute(t,e,n,r,x);};},"54331d04":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("c2d1eb5c")),a=function(t,e){return!!((0,i.default)(t)||(0,o.default)(t))&&t[0]===e;};},"54cd0212":function(t,e,n){"use strict";function r(t){return t instanceof Element||t instanceof Document;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"5537fdc1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("155fe01c")),i=function(t,e){if(!(0,r.default)(t))throw TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s;};return n.cache=new Map,n;};},"554e7a39":function(t,e,n){"use strict";function r(t,e){var n,r=1;function i(){var i,o,a=n.length,s=0,u=0;for(i=0;i<a;++i)s+=(o=n[i]).x,u+=o.y;for(s=(s/a-t)*r,u=(u/a-e)*r,i=0;i<a;++i)o=n[i],o.x-=s,o.y-=u;}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t;},i.x=function(e){return arguments.length?(t=+e,i):t;},i.y=function(t){return arguments.length?(e=+t,i):e;},i.strength=function(t){return arguments.length?(r=+t,i):r;},i;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"55c32f33":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=function(){};},"5640766a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getEasing",{enumerable:!0,get:function(){return o;}});var r=n("852bbaa9")._(n("0e879d29")),i={};function o(t){return i[t.toLowerCase()]||r[t];}},"566c64aa":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,o);},e),a&&t.apply(i,o);};};},"57580e52":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("855dbdf7")),a=function(t,e){if(t){if((0,i.default)(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if((0,o.default)(t)){for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break;}}};},57627102:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=u(void 0);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o];}return r.default=t,n&&n.set(t,r),r;}(n("5b220c3d")),i=n("3d79e8ff"),o=n("a6822745"),a=n("681e86b9"),s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e;})(t);}function c(){return(c=Object.assign?Object.assign.bind():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;}).apply(this,arguments);}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable;})),n.push.apply(n,r);}return n;}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){var r,i;r=e,i=n[e],(r=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}(t,"string");return"symbol"==typeof e?e:String(e);}(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i;}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));});}return t;}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;})(t,e);}var h=function(t){function e(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e;}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t);var n=e.prototype;return n.componentWillUnmount=function(){this.resetData();},n.resetData=function(){this.lastHandleRect=this.slack=null;},n.runConstraints=function(t,e){var n=this.props,r=n.minConstraints,i=n.maxConstraints,o=n.lockAspectRatio;if(!r&&!i&&!o)return[t,e];if(o){var a=this.props.width/this.props.height;Math.abs(t-this.props.width)>Math.abs((e-this.props.height)*a)?e=t/a:t=e*a;}var s=t,u=e,c=this.slack||[0,0],l=c[0],f=c[1];return t+=l,e+=f,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),i&&(t=Math.min(i[0],t),e=Math.min(i[1],e)),this.slack=[l+(s-t),f+(u-e)],[t,e];},n.resizeHandler=function(t,e){var n=this;return function(r,i){var o=i.node,a=i.deltaX,s=i.deltaY;"onResizeStart"===t&&n.resetData();var u=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,c=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(u||c){var l=e[0],f=e[e.length-1],d=o.getBoundingClientRect();null!=n.lastHandleRect&&("w"===f&&(a+=d.left-n.lastHandleRect.left),"n"===l&&(s+=d.top-n.lastHandleRect.top)),n.lastHandleRect=d,"w"===f&&(a=-a),"n"===l&&(s=-s);var h=n.props.width+(u?a/n.props.transformScale:0),g=n.props.height+(c?s/n.props.transformScale:0),p=n.runConstraints(h,g);h=p[0],g=p[1];var v=h!==n.props.width||g!==n.props.height,m="function"==typeof n.props[t]?n.props[t]:null;m&&!("onResize"===t&&!v)&&(null==r.persist||r.persist(),m(r,{node:o,size:{width:h,height:g},handle:e})),"onResizeStop"===t&&n.resetData();}};},n.renderResizeHandle=function(t,e){var n=this.props.handle;if(!n)return r.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof n)return n(t,e);var i=f({ref:e},"string"==typeof n.type?{}:{handleAxis:t});return r.cloneElement(n,i);},n.render=function(){var t=this,e=this.props,n=e.children,a=e.className,u=e.draggableOpts,l=(e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart,e.resizeHandles),d=(e.transformScale,function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i;}(e,s));return(0,o.cloneElement)(n,f(f({},d),{},{className:(a?a+" ":"")+"react-resizable",children:[].concat(n.props.children,l.map(function(e){var n,o=null!=(n=t.handleRefs[e])?n:t.handleRefs[e]=r.createRef();return r.createElement(i.DraggableCore,c({},u,{nodeRef:o,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,o));}))}));},e;}(r.Component);e.default=h,h.propTypes=a.resizableProps,h.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};},"57da0159":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("d1751d7c");r._(n("9dd59558"),e),r._(n("663f843d"),e),r._(n("36d93ef0"),e),r._(n("19f1bc3f"),e),r._(n("84e41889"),e),r._(n("067a64d8"),e);},"57e9a921":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{inverse:function(){return c;},solve:function(){return l;}});var r=n("777fffbe"),i=r._(n("83c2e0df")),o=r._(n("7712cd71")),a=r._(n("d281459f")),s=r._(n("04480408")),u=r._(n("aac703c5"));function c(t,e=!1){return(t=u.default.checkMatrix(t),e)?new a.default(t).inverse():l(t,s.default.eye(t.rows));}function l(t,e,n=!1){return(t=u.default.checkMatrix(t),e=u.default.checkMatrix(e),n)?new a.default(t).solve(e):t.isSquare()?new i.default(t).solve(e):new o.default(t).solve(e);}},"580b457d":function(t,e,n){"use strict";function r(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=function t(e){var n,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(r=t(e[n]))&&(i&&(i+=" "),i+=r);else for(n in e)e[n]&&(i&&(i+=" "),i+=n);}return i;}(t))&&(r&&(r+=" "),r+=e);return r;}n.d(e,"__esModule",{value:!0}),n.e(e,{clsx:function(){return r;},default:function(){return i;}});var i=r;},58406652:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("c6ab8985")),i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.default)([].concat.apply([],t));};},"58828bf9":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("c9ae1e54")),i=function(t,e){if(!(0,r.default)(t))return -1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break;}return i;};},"593a2957":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("4c6d310c"),i=n("22b52967"),o=n("168feef4"),a=n("ad0731aa"),s=n("53c99e30");(0,o.registerEdge)("polyline",{options:{color:o.BaseGlobal.defaultEdge.color,size:o.BaseGlobal.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:o.BaseGlobal.defaultEdge.style.stroke,lineAppendWidth:o.BaseGlobal.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:o.BaseGlobal.edgeLabel.style.fill,fontSize:o.BaseGlobal.edgeLabel.style.fontSize,fontFamily:o.BaseGlobal.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:(0,r.__assign)({},o.BaseGlobal.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);0===n.radius&&delete n.radius;var r=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return e.shapeMap["edge-shape"]=r,r;},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,i.mix)({},e,n,t.style);t=this.getPathPoints(t),this.radius=r.radius,this.offset=r.offset;var a=t.startPoint,s=t.endPoint,u=this.getControlPoints(t),c=[a];u&&(c=c.concat(u)),c.push(s);var l=t.sourceNode,f=t.targetNode,d=r.radius,h=this.options.routeCfg,g=(0,i.mix)({},h,t.routeCfg);g.offset=r.offset;var p=this.getPath(c,l,f,d,g,!u);return((0,i.isArray)(p)&&p.length<=1||(0,i.isString)(p)&&-1===p.indexOf("L"))&&(p="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(s.x)||isNaN(s.y))&&(p="M0 0, L0 0"),(0,i.mix)({},o.BaseGlobal.defaultEdge.style,r,{lineWidth:t.size,path:p});},updateShapeStyle:function(t,e){var n=e.getContainer();if(e.isVisible()){var r={stroke:t.color},o=n.shapeMap["edge-shape"]||n.find(function(t){return"edge-shape"===t.get("className");})||e.getKeyShape(),a=t.size,s=(t=this.getPathPoints(t)).startPoint,u=t.endPoint,c=this.getControlPoints(t),l=[s];c&&(l=l.concat(c)),l.push(u);var f=o.attr(),d=(0,i.mix)({},r,f,t.style),h=t.sourceNode,g=t.targetNode,p=d.radius,v=this.options.routeCfg,m=(0,i.mix)({},v,t.routeCfg);m.offset=d.offset;var y=this.getPath(l,h,g,p,m,!c);((0,i.isArray)(y)&&y.length<=1||(0,i.isString)(y)&&-1===y.indexOf("L"))&&(y="M0 0, L0 0"),(isNaN(s.x)||isNaN(s.y)||isNaN(u.x)||isNaN(u.y))&&(y="M0 0, L0 0"),f.endArrow&&!1===d.endArrow&&(t.style.endArrow={path:""}),f.startArrow&&!1===d.startArrow&&(t.style.startArrow={path:""});var b=(0,i.mix)(r,o.attr(),{lineWidth:a,path:y},t.style);o&&o.attr(b);}},getPath:function(t,e,n,r,u,c){var l=u.offset,f=u.obstacles,d=u.simple;if(!l||t.length>2||!1===c){if(r)return(0,a.getPathWithBorderRadiusByPolyline)(t,r);var h=[];return(0,i.each)(t,function(t,e){0===e?h.push(["M",t.x,t.y]):h.push(["L",t.x,t.y]);}),h;}!1===d||(null==f?void 0:f.length)||(d=!0);var g=d?(0,a.getPolylinePoints)(t[t.length-1],t[0],n,e,l):(0,s.pathFinder)(t[0],t[t.length-1],e,n,u);return g&&g.length?r?(0,a.getPathWithBorderRadiusByPolyline)(g,r):(g=(0,a.removeRedundantPoint)(g),o.Util.pointsToPolygon(g)):"M0 0, L0 0";}},"single-edge");},59625338:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{add:function(){return j;},calculateW:function(){return w;},clone:function(){return O;},conjugate:function(){return T;},copy:function(){return P;},create:function(){return g;},dot:function(){return G;},equals:function(){return Z;},exactEquals:function(){return q;},exp:function(){return M;},fromEuler:function(){return F;},fromMat3:function(){return k;},fromValues:function(){return B;},getAngle:function(){return y;},getAxisAngle:function(){return m;},identity:function(){return p;},invert:function(){return I;},len:function(){return U;},length:function(){return X;},lerp:function(){return Y;},ln:function(){return C;},mul:function(){return R;},multiply:function(){return b;},normalize:function(){return V;},pow:function(){return A;},random:function(){return D;},rotateX:function(){return x;},rotateY:function(){return _;},rotateZ:function(){return E;},rotationTo:function(){return J;},scale:function(){return z;},set:function(){return L;},setAxes:function(){return Q;},setAxisAngle:function(){return v;},slerp:function(){return S;},sqlerp:function(){return K;},sqrLen:function(){return W;},squaredLength:function(){return H;},str:function(){return N;}});var r,i,o,a,s,u,c=n("852bbaa9"),l=c._(n("e89ef36f")),f=c._(n("0ada5a2e")),d=c._(n("04bb6a31")),h=c._(n("1383492e"));function g(){var t=new l.ARRAY_TYPE(4);return l.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t;}function p(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t;}function v(t,e,n){var r=Math.sin(n*=.5);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t;}function m(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>l.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n;}function y(t,e){var n=G(t,e);return Math.acos(2*n*n-1);}function b(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],c=n[2],l=n[3];return t[0]=r*l+a*s+i*c-o*u,t[1]=i*l+a*u+o*s-r*c,t[2]=o*l+a*c+r*u-i*s,t[3]=a*l-r*s-i*u-o*c,t;}function x(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*s,t[1]=i*u+o*s,t[2]=o*u-i*s,t[3]=a*u-r*s,t;}function _(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u-o*s,t[1]=i*u+a*s,t[2]=o*u+r*s,t[3]=a*u-i*s,t;}function E(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+i*s,t[1]=i*u-r*s,t[2]=o*u+a*s,t[3]=a*u-o*s,t;}function w(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t;}function M(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=Math.exp(o),u=a>0?s*Math.sin(a)/a:0;return t[0]=n*u,t[1]=r*u,t[2]=i*u,t[3]=s*Math.cos(a),t;}function C(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=a>0?Math.atan2(a,o)/a:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+o*o),t;}function A(t,e,n){return C(t,e),z(t,t,n),M(t,t),t;}function S(t,e,n,r){var i,o,a,s,u,c=e[0],f=e[1],d=e[2],h=e[3],g=n[0],p=n[1],v=n[2],m=n[3];return(o=c*g+f*p+d*v+h*m)<0&&(o=-o,g=-g,p=-p,v=-v,m=-m),1-o>l.EPSILON?(a=Math.sin(i=Math.acos(o)),s=Math.sin((1-r)*i)/a,u=Math.sin(r*i)/a):(s=1-r,u=r),t[0]=s*c+u*g,t[1]=s*f+u*p,t[2]=s*d+u*v,t[3]=s*h+u*m,t;}function D(t){var e=l.RANDOM(),n=l.RANDOM(),r=l.RANDOM(),i=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=o*Math.sin(2*Math.PI*r),t[3]=o*Math.cos(2*Math.PI*r),t;}function I(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=o*s,t;}function T(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t;}function k(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*o+o]-e[3*a+a]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+i]+e[3*i+o])*n,t[a]=(e[3*a+i]+e[3*i+a])*n;}return t;}function F(t,e,n,r){var i=.5*Math.PI/180,o=Math.sin(e*=i),a=Math.cos(e),s=Math.sin(n*=i),u=Math.cos(n),c=Math.sin(r*=i),l=Math.cos(r);return t[0]=o*u*l-a*s*c,t[1]=a*s*l+o*u*c,t[2]=a*u*c-o*s*l,t[3]=a*u*l+o*s*c,t;}function N(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";}var O=h.clone,B=h.fromValues,P=h.copy,L=h.set,j=h.add,R=b,z=h.scale,G=h.dot,Y=h.lerp,X=h.length,U=X,H=h.squaredLength,W=H,V=h.normalize,q=h.exactEquals,Z=h.equals,J=(r=d.create(),i=d.fromValues(1,0,0),o=d.fromValues(0,1,0),function(t,e,n){var a=d.dot(e,n);return a<-.999999?(d.cross(r,i,e),1e-6>d.len(r)&&d.cross(r,o,e),d.normalize(r,r),v(t,r,Math.PI),t):a>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(d.cross(r,e,n),t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=1+a,V(t,t));}),K=(a=g(),s=g(),function(t,e,n,r,i,o){return S(a,e,i,o),S(s,n,r,o),S(t,a,s,2*o*(1-o)),t;}),Q=(u=f.create(),function(t,e,n,r){return u[0]=n[0],u[3]=n[1],u[6]=n[2],u[1]=r[0],u[4]=r[1],u[7]=r[2],u[2]=-e[0],u[5]=-e[1],u[8]=-e[2],V(t,k(t,u));});},"5979e696":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("c2d1eb5c")),o=r._(n("6665ed3f")),a=r._(n("3ee6d401")),s=function(t,e,n,r){void 0===r&&(r="...");var s,u,c=(0,a.default)(r,n),l=(0,i.default)(t)?t:(0,o.default)(t),f=e,d=[];if((0,a.default)(t,n)<=e)return t;for(;s=l.substr(0,16),!((u=(0,a.default)(s,n))+c>f)||!(u>f);)if(d.push(s),f-=u,!(l=l.substr(16)))return d.join("");for(;s=l.substr(0,1),!((u=(0,a.default)(s,n))+c>f);)if(d.push(s),f-=u,!(l=l.substr(1)))return d.join("");return""+d.join("")+r;};},"5997f8f4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isCurveArray",{enumerable:!0,get:function(){return i;}});var r=n("172bf417");function i(t){return(0,r.isNormalizedArray)(t)&&t.every(function(t){var e=t[0];return"MC".includes(e);});}},"59b733d2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("71b016a7"));function i(t,e,n){var i,o,a,s=(0,r.default)(.1);function u(t){for(var r=0,s=i.length;r<s;++r){var u=i[r],c=u.x-e||1e-6,l=u.y-n||1e-6,f=Math.sqrt(c*c+l*l),d=(a[r]-f)*o[r]*t/f;u.vx+=c*d,u.vy+=l*d;}}function c(){if(i){var e,n=i.length;for(e=0,o=Array(n),a=Array(n);e<n;++e)a[e]=+t(i[e],e,i),o[e]=isNaN(a[e])?0:+s(i[e],e,i);}}return"function"!=typeof t&&(t=(0,r.default)(+t)),null==e&&(e=0),null==n&&(n=0),u.initialize=function(t){i=t,c();},u.strength=function(t){return arguments.length?(s="function"==typeof t?t:(0,r.default)(+t),c(),u):s;},u.radius=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),c(),u):t;},u.x=function(t){return arguments.length?(e=+t,u):e;},u.y=function(t){return arguments.length?(n=+t,u):n;},u;}},"59e18c04":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("04480408")),o=r._(n("aac703c5")),a=n("ca8df5f7");class s{constructor(t,e={}){let n,r;let{assumeSymmetric:s=!1}=e;if(!(t=o.default.checkMatrix(t)).isSquare())throw Error("Matrix is not a square matrix");let c=t.columns,l=new i.default(c,c),f=new Float64Array(c),d=new Float64Array(c),h=t;if(s||t.isSymmetric()){for(n=0;n<c;n++)for(r=0;r<c;r++)l.set(n,r,h.get(n,r));(function(t,e,n,r){let i,o,a,s,u,c,l,f;for(u=0;u<t;u++)n[u]=r.get(t-1,u);for(s=t-1;s>0;s--){for(c=0,f=0,a=0;c<s;c++)f+=Math.abs(n[c]);if(0===f)for(u=0,e[s]=n[s-1];u<s;u++)n[u]=r.get(s-1,u),r.set(s,u,0),r.set(u,s,0);else{for(c=0;c<s;c++)n[c]/=f,a+=n[c]*n[c];for(i=n[s-1],o=Math.sqrt(a),i>0&&(o=-o),e[s]=f*o,a-=i*o,n[s-1]=i-o,u=0;u<s;u++)e[u]=0;for(u=0;u<s;u++){for(i=n[u],r.set(u,s,i),o=e[u]+r.get(u,u)*i,c=u+1;c<=s-1;c++)o+=r.get(c,u)*n[c],e[c]+=r.get(c,u)*i;e[u]=o;}for(u=0,i=0;u<s;u++)e[u]/=a,i+=e[u]*n[u];for(u=0,l=i/(a+a);u<s;u++)e[u]-=l*n[u];for(u=0;u<s;u++){for(i=n[u],o=e[u],c=u;c<=s-1;c++)r.set(c,u,r.get(c,u)-(i*e[c]+o*n[c]));n[u]=r.get(s-1,u),r.set(s,u,0);}}n[s]=a;}for(s=0;s<t-1;s++){if(r.set(t-1,s,r.get(s,s)),r.set(s,s,1),0!==(a=n[s+1])){for(c=0;c<=s;c++)n[c]=r.get(c,s+1)/a;for(u=0;u<=s;u++){for(c=0,o=0;c<=s;c++)o+=r.get(c,s+1)*r.get(c,u);for(c=0;c<=s;c++)r.set(c,u,r.get(c,u)-o*n[c]);}}for(c=0;c<=s;c++)r.set(c,s+1,0);}for(u=0;u<t;u++)n[u]=r.get(t-1,u),r.set(t-1,u,0);r.set(t-1,t-1,1),e[0]=0;})(c,d,f,l),function(t,e,n,r){let i,o,s,u,c,l,f,d,h,g,p,v,m,y,b,x;for(s=1;s<t;s++)e[s-1]=e[s];e[t-1]=0;let _=0,E=0,w=Number.EPSILON;for(l=0;l<t;l++){for(E=Math.max(E,Math.abs(n[l])+Math.abs(e[l])),f=l;f<t&&!(Math.abs(e[f])<=w*E);)f++;if(f>l)do{for(i=n[l],d=(n[l+1]-i)/(2*e[l]),h=(0,a.hypotenuse)(d,1),d<0&&(h=-h),n[l]=e[l]/(d+h),n[l+1]=e[l]*(d+h),g=n[l+1],o=i-n[l],s=l+2;s<t;s++)n[s]-=o;for(_+=o,d=n[f],v=p=1,m=p,y=e[l+1],b=0,x=0,s=f-1;s>=l;s--)for(c=0,m=v,v=p,x=b,i=p*e[s],o=p*d,h=(0,a.hypotenuse)(d,e[s]),e[s+1]=b*h,b=e[s]/h,d=(p=d/h)*n[s]-b*i,n[s+1]=o+b*(p*i+b*n[s]);c<t;c++)o=r.get(c,s+1),r.set(c,s+1,b*r.get(c,s)+p*o),r.set(c,s,p*r.get(c,s)-b*o);d=-b*x*m*y*e[l]/g,e[l]=b*d,n[l]=p*d;}while(Math.abs(e[l])>w*E)n[l]=n[l]+_,e[l]=0;}for(s=0;s<t-1;s++){for(c=s,d=n[s],u=s+1;u<t;u++)n[u]<d&&(c=u,d=n[u]);if(c!==s)for(u=0,n[c]=n[s],n[s]=d;u<t;u++)d=r.get(u,s),r.set(u,s,r.get(u,c)),r.set(u,c,d);}}(c,d,f,l);}else{let t=new i.default(c,c),e=new Float64Array(c);for(r=0;r<c;r++)for(n=0;n<c;n++)t.set(n,r,h.get(n,r));(function(t,e,n,r){let i,o,a,s,u,c,l;let f=t-1;for(c=1;c<=f-1;c++){for(l=0,s=c;s<=f;s++)l+=Math.abs(e.get(s,c-1));if(0!==l){for(a=0,s=f;s>=c;s--)n[s]=e.get(s,c-1)/l,a+=n[s]*n[s];for(o=Math.sqrt(a),n[c]>0&&(o=-o),a-=n[c]*o,n[c]=n[c]-o,u=c;u<t;u++){for(i=0,s=f;s>=c;s--)i+=n[s]*e.get(s,u);for(i/=a,s=c;s<=f;s++)e.set(s,u,e.get(s,u)-i*n[s]);}for(s=0;s<=f;s++){for(i=0,u=f;u>=c;u--)i+=n[u]*e.get(s,u);for(i/=a,u=c;u<=f;u++)e.set(s,u,e.get(s,u)-i*n[u]);}n[c]=l*n[c],e.set(c,c-1,l*o);}}for(s=0;s<t;s++)for(u=0;u<t;u++)r.set(s,u,s===u?1:0);for(c=f-1;c>=1;c--)if(0!==e.get(c,c-1)){for(s=c+1;s<=f;s++)n[s]=e.get(s,c-1);for(u=c;u<=f;u++){for(o=0,s=c;s<=f;s++)o+=n[s]*r.get(s,u);for(o=o/n[c]/e.get(c,c-1),s=c;s<=f;s++)r.set(s,u,r.get(s,u)+o*n[s]);}}})(c,t,e,l),function(t,e,n,r,i){let o,a,s,c,l,f,d,h,g,p,v,m,y,b,x,_=t-1,E=t-1,w=Number.EPSILON,M=0,C=0,A=0,S=0,D=0,I=0,T=0,k=0;for(o=0;o<t;o++)for((o<0||o>E)&&(n[o]=i.get(o,o),e[o]=0),a=Math.max(o-1,0);a<t;a++)C+=Math.abs(i.get(o,a));for(;_>=0;){for(c=_;c>0&&(0===(I=Math.abs(i.get(c-1,c-1))+Math.abs(i.get(c,c)))&&(I=C),!(Math.abs(i.get(c,c-1))<w*I));)c--;if(c===_)i.set(_,_,i.get(_,_)+M),n[_]=i.get(_,_),e[_]=0,_--,k=0;else if(c===_-1){if(d=i.get(_,_-1)*i.get(_-1,_),T=Math.sqrt(Math.abs(S=(A=(i.get(_-1,_-1)-i.get(_,_))/2)*A+d)),i.set(_,_,i.get(_,_)+M),i.set(_-1,_-1,i.get(_-1,_-1)+M),h=i.get(_,_),S>=0){for(T=A>=0?A+T:A-T,n[_-1]=h+T,n[_]=n[_-1],0!==T&&(n[_]=h-d/T),e[_-1]=0,e[_]=0,I=Math.abs(h=i.get(_,_-1))+Math.abs(T),D=Math.sqrt((A=h/I)*A+(S=T/I)*S),A/=D,S/=D,a=_-1;a<t;a++)T=i.get(_-1,a),i.set(_-1,a,S*T+A*i.get(_,a)),i.set(_,a,S*i.get(_,a)-A*T);for(o=0;o<=_;o++)T=i.get(o,_-1),i.set(o,_-1,S*T+A*i.get(o,_)),i.set(o,_,S*i.get(o,_)-A*T);for(o=0;o<=E;o++)T=r.get(o,_-1),r.set(o,_-1,S*T+A*r.get(o,_)),r.set(o,_,S*r.get(o,_)-A*T);}else n[_-1]=h+A,n[_]=h+A,e[_-1]=T,e[_]=-T;_-=2,k=0;}else{if(h=i.get(_,_),g=0,d=0,c<_&&(g=i.get(_-1,_-1),d=i.get(_,_-1)*i.get(_-1,_)),10===k){for(M+=h,o=0;o<=_;o++)i.set(o,o,i.get(o,o)-h);h=g=.75*(I=Math.abs(i.get(_,_-1))+Math.abs(i.get(_-1,_-2))),d=-.4375*I*I;}if(30===k&&(I=(I=(g-h)/2)*I+d)>0){for(I=Math.sqrt(I),g<h&&(I=-I),I=h-d/((g-h)/2+I),o=0;o<=_;o++)i.set(o,o,i.get(o,o)-I);M+=I,h=g=d=.964;}for(k+=1,l=_-2;l>=c&&(I=Math.abs(A=((D=h-(T=i.get(l,l)))*(I=g-T)-d)/i.get(l+1,l)+i.get(l,l+1))+Math.abs(S=i.get(l+1,l+1)-T-D-I)+Math.abs(D=i.get(l+2,l+1)),A/=I,S/=I,D/=I,!(l===c||Math.abs(i.get(l,l-1))*(Math.abs(S)+Math.abs(D))<w*(Math.abs(A)*(Math.abs(i.get(l-1,l-1))+Math.abs(T)+Math.abs(i.get(l+1,l+1))))));)l--;for(o=l+2;o<=_;o++)i.set(o,o-2,0),o>l+2&&i.set(o,o-3,0);for(s=l;s<=_-1&&(b=s!==_-1,s!==l&&0!==(h=Math.abs(A=i.get(s,s-1))+Math.abs(S=i.get(s+1,s-1))+Math.abs(D=b?i.get(s+2,s-1):0))&&(A/=h,S/=h,D/=h),0!==h);s++)if(I=Math.sqrt(A*A+S*S+D*D),A<0&&(I=-I),0!==I){for(s!==l?i.set(s,s-1,-I*h):c!==l&&i.set(s,s-1,-i.get(s,s-1)),A+=I,h=A/I,g=S/I,T=D/I,S/=A,D/=A,a=s;a<t;a++)A=i.get(s,a)+S*i.get(s+1,a),b&&(A+=D*i.get(s+2,a),i.set(s+2,a,i.get(s+2,a)-A*T)),i.set(s,a,i.get(s,a)-A*h),i.set(s+1,a,i.get(s+1,a)-A*g);for(o=0;o<=Math.min(_,s+3);o++)A=h*i.get(o,s)+g*i.get(o,s+1),b&&(A+=T*i.get(o,s+2),i.set(o,s+2,i.get(o,s+2)-A*D)),i.set(o,s,i.get(o,s)-A),i.set(o,s+1,i.get(o,s+1)-A*S);for(o=0;o<=E;o++)A=h*r.get(o,s)+g*r.get(o,s+1),b&&(A+=T*r.get(o,s+2),r.set(o,s+2,r.get(o,s+2)-A*D)),r.set(o,s,r.get(o,s)-A),r.set(o,s+1,r.get(o,s+1)-A*S);}}}if(0!==C){for(_=t-1;_>=0;_--)if(A=n[_],0===(S=e[_]))for(c=_,i.set(_,_,1),o=_-1;o>=0;o--){for(d=i.get(o,o)-A,D=0,a=c;a<=_;a++)D+=i.get(o,a)*i.get(a,_);if(e[o]<0)T=d,I=D;else if(c=o,0===e[o]?i.set(o,_,0!==d?-D/d:-D/(w*C)):(h=i.get(o,o+1),g=i.get(o+1,o),f=(h*I-T*D)/(S=(n[o]-A)*(n[o]-A)+e[o]*e[o]),i.set(o,_,f),i.set(o+1,_,Math.abs(h)>Math.abs(T)?(-D-d*f)/h:(-I-g*f)/T)),w*(f=Math.abs(i.get(o,_)))*f>1)for(a=o;a<=_;a++)i.set(a,_,i.get(a,_)/f);}else if(S<0)for(c=_-1,Math.abs(i.get(_,_-1))>Math.abs(i.get(_-1,_))?(i.set(_-1,_-1,S/i.get(_,_-1)),i.set(_-1,_,-(i.get(_,_)-A)/i.get(_,_-1))):(x=u(0,-i.get(_-1,_),i.get(_-1,_-1)-A,S),i.set(_-1,_-1,x[0]),i.set(_-1,_,x[1])),i.set(_,_-1,0),i.set(_,_,1),o=_-2;o>=0;o--){for(p=0,v=0,a=c;a<=_;a++)p+=i.get(o,a)*i.get(a,_-1),v+=i.get(o,a)*i.get(a,_);if(d=i.get(o,o)-A,e[o]<0)T=d,D=p,I=v;else if(c=o,0===e[o]?(x=u(-p,-v,d,S),i.set(o,_-1,x[0]),i.set(o,_,x[1])):(h=i.get(o,o+1),g=i.get(o+1,o),m=(n[o]-A)*(n[o]-A)+e[o]*e[o]-S*S,y=(n[o]-A)*2*S,0===m&&0===y&&(m=w*C*(Math.abs(d)+Math.abs(S)+Math.abs(h)+Math.abs(g)+Math.abs(T))),x=u(h*D-T*p+S*v,h*I-T*v-S*p,m,y),i.set(o,_-1,x[0]),i.set(o,_,x[1]),Math.abs(h)>Math.abs(T)+Math.abs(S)?(i.set(o+1,_-1,(-p-d*i.get(o,_-1)+S*i.get(o,_))/h),i.set(o+1,_,(-v-d*i.get(o,_)-S*i.get(o,_-1))/h)):(x=u(-D-g*i.get(o,_-1),-I-g*i.get(o,_),T,S),i.set(o+1,_-1,x[0]),i.set(o+1,_,x[1]))),w*(f=Math.max(Math.abs(i.get(o,_-1)),Math.abs(i.get(o,_))))*f>1)for(a=o;a<=_;a++)i.set(a,_-1,i.get(a,_-1)/f),i.set(a,_,i.get(a,_)/f);}for(o=0;o<t;o++)if(o<0||o>E)for(a=o;a<t;a++)r.set(o,a,i.get(o,a));for(a=t-1;a>=0;a--)for(o=0;o<=E;o++){for(s=0,T=0;s<=Math.min(a,E);s++)T+=r.get(o,s)*i.get(s,a);r.set(o,a,T);}}}(c,d,f,l,t);}this.n=c,this.e=d,this.d=f,this.V=l;}get realEigenvalues(){return Array.from(this.d);}get imaginaryEigenvalues(){return Array.from(this.e);}get eigenvectorMatrix(){return this.V;}get diagonalMatrix(){let t,e,n=this.n,r=this.e,o=this.d,a=new i.default(n,n);for(t=0;t<n;t++){for(e=0;e<n;e++)a.set(t,e,0);a.set(t,t,o[t]),r[t]>0?a.set(t,t+1,r[t]):r[t]<0&&a.set(t,t-1,r[t]);}return a;}}function u(t,e,n,r){let i,o;return Math.abs(n)>Math.abs(r)?(i=r/n,o=n+i*r,[(t+i*e)/o,(e-i*t)/o]):(i=n/r,o=r+i*n,[(i*t+e)/o,(i*e-t)/o]);}},"59eaaa59":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("777fffbe")._(n("d1ab55b2")),i=n("82084c6c"),o=n("8485cc4c");function a(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n;}function s(t,e,n){var r=t+n-2*e;if((0,i.isNumberEqual)(r,0))return[.5];var o=(t-e)/r;return o<=1&&o>=0?[o]:[];}function u(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e);}function c(t,e,n,i,o,s,u){var c=a(t,n,o,u),l=a(e,i,s,u),f=r.default.pointAt(t,e,n,i,u),d=r.default.pointAt(n,i,o,s,u);return[[t,e,f.x,f.y,c,l],[c,l,d.x,d.y,o,s]];}var l={box:function(t,e,n,r,o,u){var c=s(t,n,o)[0],l=s(e,r,u)[0],f=[t,o],d=[e,u];return void 0!==c&&f.push(a(t,n,o,c)),void 0!==l&&d.push(a(e,r,u,l)),(0,i.getBBoxByArray)(f,d);},length:function(t,e,n,r,o,a){return function t(e,n,r,o,a,s,u){if(0===u)return((0,i.distance)(e,n,r,o)+(0,i.distance)(r,o,a,s)+(0,i.distance)(e,n,a,s))/2;var l=c(e,n,r,o,a,s,.5),f=l[0],d=l[1];return f.push(u-1),d.push(u-1),t.apply(null,f)+t.apply(null,d);}(t,e,n,r,o,a,3);},nearestPoint:function(t,e,n,r,i,s,u,c){return(0,o.nearestPoint)([t,n,i],[e,r,s],u,c,a);},pointDistance:function(t,e,n,r,o,a,s,u){var c=this.nearestPoint(t,e,n,r,o,a,s,u);return(0,i.distance)(c.x,c.y,s,u);},interpolationAt:a,pointAt:function(t,e,n,r,i,o,s){return{x:a(t,n,i,s),y:a(e,r,o,s)};},divide:function(t,e,n,r,i,o,a){return c(t,e,n,r,i,o,a);},tangentAngle:function(t,e,n,r,o,a,s){var c=u(t,n,o,s),l=Math.atan2(u(e,r,a,s),c);return(0,i.piMod)(l);}};},"59ef8b3d":function(t,e,n){"use strict";function r(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort(function(t,e){return t-e;}),i=[],o=0;o<e;o++){var a=o/(e-1);i.push(function(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n];}(r,a));}return i;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"5a045375":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("c9ae1e54"));function i(t){if((0,r.default)(t))return t[t.length-1];}},"5a6d3e87":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"CountUp",{enumerable:!0,get:function(){return i;}});var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},i=function(){function t(t,e,n){var i=this;this.endVal=e,this.options=n,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){i.startTime||(i.startTime=t);var e=t-i.startTime;i.remaining=i.duration-e,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(e,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(e,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(e/i.duration);var n=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=n?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),e<i.duration?i.rAF=requestAnimationFrame(i.count):null!==i.finalEndVal?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback();},this.formatNumber=function(t){var e,n,r,o=(Math.abs(t).toFixed(i.options.decimalPlaces)+"").split(".");if(e=o[0],n=o.length>1?i.options.decimal+o[1]:"",i.options.useGrouping){r="";for(var a=3,s=0,u=0,c=e.length;u<c;++u)i.options.useIndianSeparators&&4===u&&(a=2,s=1),0!==u&&s%a==0&&(r=i.options.separator+r),s++,r=e[c-u-1]+r;e=r;}return i.options.numerals&&i.options.numerals.length&&(e=e.replace(/[0-9]/g,function(t){return i.options.numerals[+t];}),n=n.replace(/[0-9]/g,function(t){return i.options.numerals[+t];})),(t<0?"-":"")+i.options.prefix+e+n+i.options.suffix;},this.easeOutExpo=function(t,e,n,r){return n*(1-Math.pow(2,-10*t/r))*1024/1023+e;},this.options=r(r({},this.defaults),n),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof t?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i);}),window.onscroll=function(){window.onScrollFns.forEach(function(t){return t();});},this.handleScroll(this)));}return t.prototype.handleScroll=function(t){if(t&&window&&!t.once){var e=window.innerHeight+window.scrollY,n=t.el.getBoundingClientRect(),r=n.top+window.pageYOffset,i=n.top+n.height+window.pageYOffset;i<e&&i>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start();},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>i||r>e)&&!t.paused&&t.reset();}},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;if(this.countDown=this.startVal>t,Math.abs(t-this.startVal)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var e=this.countDown?1:-1;this.endVal=t+e*this.options.smartEasingAmount,this.duration=this.duration/2;}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing;},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal));},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused;},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal);},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count));},t.prototype.printValue=function(t){var e;if(this.el){var n=this.formattingFn(t);(null===(e=this.options.plugin)||void 0===e?void 0:e.render)?this.options.plugin.render(this.el,n):"INPUT"===this.el.tagName?this.el.value=n:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n;}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t);},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null);},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration;},t;}();},"5a7dbed4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=n("852bbaa9"),o=r._(n("21422ae0")),a=r._(n("78294f9e")),s=i._(n("20176626")),u=n("f2fbe439"),c=new(function(){function t(){var e=this;(0,o.default)(this,t),this.lagThreshold=150,this.adjustedLag=33,this.emptyTime=0,this.elapsed=0,this.frameFPS=1e3/240,this.startTime=0,this.prevTime=0,this.useTimeout=!1,this.lastUpdate=this.startTime,this.nextTime=this.frameFPS,this.req=void 0,this.id=-1,this.tweenId=0,this.tickFn=[],this.state="sleep",this.time=0,this.frame=0,this.removeReq=function(t){return e.useTimeout?clearTimeout(t):(0,s.cancel)(t);},this.tick=function(){var t=e.tickFn;e.startTime||(e.startTime=(0,u.getTime)()-e.frameFPS,e.lastUpdate=e.startTime),e.elapsed=(0,u.getTime)()-e.lastUpdate,e.elapsed>e.lagThreshold&&(e.startTime+=e.elapsed-e.adjustedLag),e.lastUpdate+=e.elapsed,e.time=e.lastUpdate-e.startTime;var n=e.time-e.nextTime;if(n>0){e.frame++,e.nextTime+=n+(n>=e.frameFPS?4:e.frameFPS-n);for(var r=e.time-e.prevTime,i=0;i<t.length;i++)t[i].fn({time:e.time,elapsed:r<e.frameFPS?e.frameFPS:r});e.prevTime=e.time;}if(!e.tickFn.length&&(e.emptyTime||(e.emptyTime=e.time+500),e.time>=e.emptyTime)){e.emptyTime=0,e.sleep();return;}e.req&&(e.id=e.req(e.tick));},this.wake=function(){e.id&&e.sleep(),e.req=e.useTimeout?function(t){return setTimeout(t,e.frameFPS);}:s.default,e.tick(),e.state="wake";},this.sleep=function(){e.removeReq(e.id),e.id=-1,e.req=void 0,e.state="sleep";},this.add=function(t){var n="TweenOneTicker_".concat(e.tweenId);return e.tweenId+=1,-1===e.tickFn.findIndex(function(t){return t.key===n;})&&e.tickFn.push({key:n,fn:t}),e.emptyTime=0,e.req||e.wake(),n;},this.clear=function(t){e.tickFn=e.tickFn.filter(function(e){return e.key!==t&&e.fn!==t;});},this.timeout=function(t,n){if("function"!=typeof t)return console.warn("not function");var r=e.time,i=e.add(function(){e.time-r>=(n||0)&&(e.clear(i),t());});return i;},this.interval=function(t,n){if("function"!=typeof t)return console.warn("not function"),null;var r=e.time;return e.add(function(){e.time-r>=(n||0)&&(r=e.time,t());});};}return(0,a.default)(t,[{key:"fps",value:function(t,e){this.frameFPS=1e3/(t||240),this.nextTime=this.time+this.frameFPS,this.useTimeout=void 0===e?this.useTimeout:e,this.useTimeout&&(this.req=function(e){return setTimeout(e,t);});}}]),t;}());},"5b61de95":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Graph:function(){return l;},VACANT_EDGE_ID:function(){return r;},VACANT_EDGE_LABEL:function(){return o;},VACANT_GRAPH_ID:function(){return s;},VACANT_NODE_ID:function(){return i;},VACANT_NODE_LABEL:function(){return a;}});var r=-1,i=-1,o="-1",a="-1",s=-1,u=function(t,e,n,a){void 0===t&&(t=r),void 0===e&&(e=i),void 0===n&&(n=i),void 0===a&&(a=o),this.id=t,this.from=e,this.to=n,this.label=a;},c=function(){function t(t,e){void 0===t&&(t=i),void 0===e&&(e=a),this.id=t,this.label=e,this.edges=[],this.edgeMap={};}return t.prototype.addEdge=function(t){this.edges.push(t),this.edgeMap[t.id]=t;},t;}(),l=function(){function t(t,e,n){void 0===t&&(t=i),void 0===e&&(e=!0),void 0===n&&(n=!1),this.id=t,this.edgeIdAutoIncrease=e,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=n;}return t.prototype.getNodeNum=function(){return this.nodes.length;},t.prototype.addNode=function(t,e){if(!this.nodeMap[t]){var n=new c(t,e);this.nodes.push(n),this.nodeMap[t]=n,this.nodeLabelMap[e]||(this.nodeLabelMap[e]=[]),this.nodeLabelMap[e].push(t);}},t.prototype.addEdge=function(t,e,n,r){if((this.edgeIdAutoIncrease||void 0===t)&&(t=this.counter++),!this.nodeMap[e]||!this.nodeMap[n]||!this.nodeMap[n].edgeMap[t]){var i=new u(t,e,n,r);if(this.edges.push(i),this.edgeMap[t]=i,this.nodeMap[e].addEdge(i),this.edgeLabelMap[r]||(this.edgeLabelMap[r]=[]),this.edgeLabelMap[r].push(i),!this.directed){var o=new u(t,n,e,r);this.nodeMap[n].addEdge(o),this.edgeLabelMap[r].push(o);}}},t;}();},"5b7cfd84":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("155fe01c")),o=r._(n("5015cda8")),a=function(t,e,n){return(0,i.default)(n)?!!n(t,e):(0,o.default)(t,e);};},"5bdfb181":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return"object"==typeof t&&null!==t;};},"5c0b3490":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{angleTo:function(){return c;},direction:function(){return u;},leftRotate:function(){return o;},leftScale:function(){return a;},leftTranslate:function(){return i;},transform:function(){return s;},vertical:function(){return l;}});var r=n("b018614c");function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e);}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e);}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e);}function s(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,u=e.length;s<u;s++){var c,l=e[s];switch(l[0]){case"t":i(n,n,[l[1],l[2]]);break;case"s":a(n,n,[l[1],l[2]]);break;case"r":o(n,n,l[1]);break;case"m":c=l[1],r.mat3.multiply(n,c,n);}}return n;}function u(t,e){return t[0]*e[1]-e[0]*t[1];}function c(t,e,n){var i=r.vec2.angle(t,e),o=u(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i;}function l(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t;}},"5c304557":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{add:function(){return l;},angle:function(){return L;},ceil:function(){return g;},clone:function(){return a;},copy:function(){return u;},create:function(){return o;},cross:function(){return I;},dist:function(){return W;},distance:function(){return _;},div:function(){return H;},divide:function(){return h;},dot:function(){return D;},equals:function(){return G;},exactEquals:function(){return z;},floor:function(){return p;},forEach:function(){return Z;},fromValues:function(){return s;},inverse:function(){return A;},len:function(){return Y;},length:function(){return w;},lerp:function(){return T;},max:function(){return m;},min:function(){return v;},mul:function(){return U;},multiply:function(){return d;},negate:function(){return C;},normalize:function(){return S;},random:function(){return k;},rotate:function(){return P;},round:function(){return y;},scale:function(){return b;},scaleAndAdd:function(){return x;},set:function(){return c;},sqrDist:function(){return V;},sqrLen:function(){return q;},squaredDistance:function(){return E;},squaredLength:function(){return M;},str:function(){return R;},sub:function(){return X;},subtract:function(){return f;},transformMat2:function(){return F;},transformMat2d:function(){return N;},transformMat3:function(){return O;},transformMat4:function(){return B;},zero:function(){return j;}});var r,i=n("852bbaa9")._(n("e89ef36f"));function o(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t;}function a(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e;}function s(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n;}function u(t,e){return t[0]=e[0],t[1]=e[1],t;}function c(t,e,n){return t[0]=e,t[1]=n,t;}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t;}function f(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 h(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 p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t;}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t;}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t;}function y(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 x(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t;}function _(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1]);}function E(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r;}function w(t){return Math.hypot(t[0],t[1]);}function M(t){var e=t[0],n=t[1];return e*e+n*n;}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t;}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t;}function S(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 D(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 T(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t;}function k(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 F(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 N(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 O(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 B(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 P(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t;}function L(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o);return Math.acos(Math.min(Math.max(a&&(n*i+r*o)/a,-1),1));}function j(t){return t[0]=0,t[1]=0,t;}function R(t){return"vec2("+t[0]+", "+t[1]+")";}function z(t,e){return t[0]===e[0]&&t[1]===e[1];}function G(t,e){var n=t[0],r=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(a));}var Y=w,X=f,U=d,H=h,W=_,V=E,q=M,Z=(r=o(),function(t,e,n,i,o,a){var s,u;for(e||(e=2),n||(n=0),u=i?Math.min(i*e+n,t.length):t.length,s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],o(r,r,a),t[s]=r[0],t[s+1]=r[1];return t;});},"5ca14ea6":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return x;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("02127527")),a=r._(n("0d140921")),s=r._(n("721bd00a")),u=n("f29fe526"),c=function(t,e,n,r){void 0===n&&(n="cluster"),void 0===r&&(r=2);var i=[],o=t.nodes;return e.forEach(function(t,e){i.push(l(o,t,e,n,r));}),i;},l=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach(function(e,u){if(e<=i&&n!==u){o.push(u),a.push(t[u]);var c=t[u][r];s[c]?(s[c].count++,s[c].dists.push(e)):s[c]={count:1,dists:[e]};}}),Object.keys(s).forEach(function(t){s[t].dists=s[t].dists.sort(function(t,e){return t-e;});}),{nodeIdx:n,nodeId:t[n].id,nodeIdxs:o,neighbors:a,neighborNum:o.length-1,nodeLabelCountMap:s};},f=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach(function(t,r){for(var u=0,c=0,l=t.nodeIdxs,f=t.neighborNum-1;u<o;){for(var d=l[1+Math.floor(Math.random()*f)],h=0;(a["".concat(r,"-").concat(d)]||a["".concat(d,"-").concat(r)])&&(d=Math.floor(Math.random()*e),!(++h>2*e)););if(h<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},u++,++s>=n))return a;if(++c>2*e)break;}if(u<o){var g=o-u;o=(o+g)/(e-r-1);}}),a;},d=function(t,e,n,r){var i=n.nodes;return r||(r={}),Object.keys(t).forEach(function(o){if(!r||!r[o]){r[o]={nodes:[],edges:[]};var a,s,u=t[o],c=null===(a=e[u.start])||void 0===a?void 0:a.nodeIdxs,l=null===(s=e[u.end])||void 0===s?void 0:s.nodeIdxs;if(c&&l){var f=new Set(l),d=c.filter(function(t){return f.has(t);});if(d&&d.length){for(var h={},g=d.length,p=0;p<g;p++){var v=i[d[p]];r[o].nodes.push(v),h[v.id]=!0;}n.edges.forEach(function(t){h[t.source]&&h[t.target]&&r[o].edges.push(t);});}}}}),r;},h=function(t,e,n,r){var i,o,a={};t.nodes.forEach(function(t){a[t.id]=t;});var s=0;return(null===(i=null==e?void 0:e.edges)||void 0===i?void 0:i.length)&&!((null===(o=null==e?void 0:e.nodes)||void 0===o?void 0:o.length)<2)?(t.edges.forEach(function(t){var i=a[t.source][n],o=a[t.target][n],u=null==e?void 0:e.nodes[0][n],c=null==e?void 0:e.nodes[1][n],l=null==e?void 0:e.edges[0][r];t[r]===l&&(i===u&&o===c||i===c&&o===u)&&s++;}),s):0;},g=function(t,e,n){for(var r=1/0,i=0,o=0;o<e;o++)!function(e){var n=t[e],o=Object.keys(n).sort(function(t,e){return n[t]-n[e];}),a=[];o.forEach(function(t,e){a[e%10]||(a[e%10]={graphs:[],totalCount:0,aveCount:0}),a[e%10].graphs.push(t),a[e%10].totalCount+=n[t];});var s=0,u=[];a.forEach(function(t){var e=t.totalCount/t.graphs.length;t.aveCount=e,u.push(e);var r=0,i=t.length;t.graphs.forEach(function(e,i){var o=n[e];t.graphs.forEach(function(t,e){i!==e&&(r+=Math.abs(o-n[t]));});}),r/=i*(i-1)/2,s+=r;}),s/=a.length;var c=0;u.forEach(function(t,e){u.forEach(function(n,r){e!==r&&(c+=Math.abs(t-n));}),c/=u.length*(u.length-1)/2;});var l=c-s;r<l&&(r=l,i=e);}(o);return{structure:n[i],structureCountMap:t[i]};},p=function(t,e){var n={},r={};return t.forEach(function(t,i){n[t.id]={idx:i,node:t,degree:0,inDegree:0,outDegree:0};var o=t[e];r[o]||(r[o]=[]),r[o].push(t);}),{nodeMap:n,nodeLabelMap:r};},v=function(t,e,n){var r={},i={};return t.forEach(function(t,o){r["".concat(u.uniqueId)]={idx:o,edge:t};var a=t[e];i[a]||(i[a]=[]),i[a].push(t);var s=n[t.source];s&&(s.degree++,s.outDegree++);var c=n[t.target];c&&(c.degree++,c.inDegree++);}),{edgeMap:r,edgeLabelMap:i};},m=function(t,e,n){var r=e.length,i={};return e.forEach(function(e,o){for(var a=n?0:o+1,s=t[o].id,u=a;u<r;u++)if(o!==u){var c=t[u].id,l=e[u];i["".concat(s,"-").concat(c)]=l,n||(i["".concat(c,"-").concat(s)]=l);}}),i;},y=function(t,e,n,r,i,o,a,s,u,c,l){var f,g="".concat(e.id,"-").concat(n.id);if(c&&c[g])return c[g];var p=l?l[g]:void 0;return p||(p=(l=d(((f={})[g]={start:r[e.id].idx,end:r[n.id].idx,distance:i},f),o,t,l))[g]),h(p,a,s,u);},b=function(t,e,n,r){var i,o,a,s=null===(i=t[e])||void 0===i?void 0:i.degree,u=null===(o=t[e])||void 0===o?void 0:o.inDegree,c=null===(a=t[e])||void 0===a?void 0:a.outDegree;return void 0===t[e]&&(s=1/0,u=1/0,c=1/0,r[e].forEach(function(t){var e=n[t.id].degree;s>e&&(s=e);var r=n[t.id].inDegree;u>r&&(u=r);var i=n[t.id].outDegree;c>i&&(c=i);}),t[e]={degree:s,inDegree:u,outDegree:c}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:c};},x=function(t,e,n,r,u,x,_){if(void 0===n&&(n=!1),void 0===x&&(x="cluster"),void 0===_&&(_="cluster"),t&&t.nodes){var E,w=t.nodes.length;if(w){var M=(0,o.default)(t,n),C=(0,o.default)(e,n),A=m(t.nodes,M,n),S=m(e.nodes,C,n),D=p(t.nodes,x),I=D.nodeMap,T=D.nodeLabelMap,k=p(e.nodes,x),F=k.nodeMap,N=k.nodeLabelMap;v(t.edges,_,I);var O=v(e.edges,_,F).edgeLabelMap,B=[];null==C||C.forEach(function(t){B=B.concat(t);}),u||(u=Math.max.apply(Math,(0,i.__spreadArray)((0,i.__spreadArray)([],B,!1),[2],!1))),r||(r=u);var P=c(t,M,x,r),L=c(e,C,x,r),j=Math.min(100,w*(w-1)/2),R=d(f(r,w,j,P,M),P,t),z={graphs:R,nodeLabelProp:x,edgeLabelProp:_,minSupport:1,minNodeNum:1,maxNodeNum:4,directed:n},G=(0,a.default)(z).slice(0,10),Y=G.length,X=[];G.forEach(function(t,e){X[e]={},Object.keys(R).forEach(function(n){var r=h(R[n],t,x,_);X[e][n]=r;});});var U=g(X,Y,G),H=U.structure,W=U.structureCountMap,V=e.nodes[0],q=[],Z=null===(E=e.nodes[0])||void 0===E?void 0:E[x],J=-1/0;e.nodes.forEach(function(t){var e=t[x],n=T[e];(null==n?void 0:n.length)>J&&(J=n.length,q=n,Z=e,V=t);});var K={},Q={},$={},tt={},te={},tn={};Object.keys(N).forEach(function(r,i){te[r]=[],n&&(tn[r]=[]);var o=-1/0,a=N[r],s={};a.forEach(function(t){var e=S["".concat(V.id,"-").concat(t.id)];if(e&&te[r].push(e),o<e&&(o=e),s["".concat(V.id,"-").concat(t.id)]={start:0,end:F[t.id].idx,distance:e},n){var i=S["".concat(t.id,"-").concat(V.id)];i&&tn[r].push(i);}}),te[r]=te[r].sort(function(t,e){return t-e;}),n&&(tn[r]=tn[r].sort(function(t,e){return t-e;})),Q=d(s,L,e,Q);var u=[];if(Object.keys(s).forEach(function(t){if($[t]){u.push($[t]);return;}var e=Q[t];$[t]=h(e,H,x,_),u.push($[t]);}),u=u.sort(function(t,e){return e-t;}),tt["".concat(V.id,"-").concat(r)]=u,r!==Z)for(var c=(null==q?void 0:q.length)||0,l=c-1;l>=0;l--)!function(e){var n=q[e],i=P[I[n.id].idx],o=i.nodeLabelCountMap[r],a=N[r].length;if(!o||o.count<a)return q.splice(e,1);for(var s=!1,c=0;c<a;c++)if(o.dists[c]>te[r][c]){s=!0;break;}if(s)return q.splice(e,1);var l={};i.neighbors.forEach(function(t){var e=A["".concat(n.id,"-").concat(t.id)];l["".concat(n.id,"-").concat(t.id)]={start:I[n.id].idx,end:I[t.id].idx,distance:e};}),R=d(l,P,t,R);var f=[];Object.keys(l).forEach(function(t){if(W[t]){f.push(W[t]);return;}var e=R[t];W[t]=h(e,H,x,_),f.push(W[t]);}),f=f.sort(function(t,e){return e-t;});for(var g=!1,c=0;c<a;c++)if(f[c]<u[c]){g=!0;break;}g&&q.splice(e,1);}(l);});var tr=[];null==q||q.forEach(function(r){for(var i=I[r.id].idx,o=l(t.nodes,M[i],i,x,u).neighbors,a=o.length,s=!1,c=a-1;c>=0;c--){if(o.length+1<e.nodes.length){s=!0;return;}var f=o[c],d=f[x];if(!N[d]||!N[d].length||!te[d]||!te[d].length){o.splice(c,1);continue;}var h="".concat(r.id,"-").concat(f.id),g=A[h],p=te[d].length-1;if(g>te[d][p]){o.splice(c,1);continue;}if(n){var v=A["".concat(f.id,"-").concat(r.id)];if(p=tn[d].length-1,v>tn[d][p]){o.splice(c,1);continue;}}var m=W[h]?W[h]:y(t,r,f,I,g,P,H,x,_,W,R),E="".concat(V.id,"-").concat(d);if(m<tt[E][tt[E].length-1]){o.splice(c,1);continue;}var w=b(K,d,F,N),C=w.minPatternNodeLabelDegree;if(w.minPatternNodeLabelInDegree,w.minPatternNodeLabelOutDegree,I[f.id].degree<C){o.splice(c,1);continue;}}s||tr.push({nodes:[r].concat(o)});});var ti=(0,s.default)(e,V.id,!1).length,to={};n?(Object.keys(ti).forEach(function(t){var e=F[t].node[x];to[e]?to[e].push(ti[t]):to[e]=[ti[t]];}),Object.keys(to).forEach(function(t){to[t].sort(function(t,e){return t-e;});})):to=te;for(var ta=tr.length,ts=ta-1;ts>=0&&"break"!==function(r){var i=tr[r],o=i.nodes[0],a={},u={};i.nodes.forEach(function(t,e){u[t.id]={idx:e,node:t,degree:0,inDegree:0,outDegree:0};var n=t[x];a[n]?a[n]++:a[n]=1;});var c=[],l={};t.edges.forEach(function(t){u[t.source]&&u[t.target]&&(c.push(t),l[t[_]]?l[t[_]]++:l[t[_]]=1,u[t.source].degree++,u[t.target].degree++,u[t.source].outDegree++,u[t.target].inDegree++);});for(var f=Object.keys(O).length,d=!1,h=0;h<f;h++){var g=Object.keys(O)[h];if(!l[g]||l[g]<O[g].length){d=!0;break;}}if(d)return tr.splice(r,1),"continue";var p=c.length;if(p<e.edges.length)return tr.splice(r,1),"break";for(var v=!1,h=p-1;h>=0&&"break"!==function(t){var e=c[t],r=e[_],i=O[r];if(!i||!i.length)return(l[r]--,i&&l[r]<i.length)?(v=!0,"break"):(c.splice(t,1),u[e.source].degree--,u[e.target].degree--,u[e.source].outDegree--,u[e.target].inDegree--,"continue");var o=u[e.source].node[x],a=u[e.target].node[x],s=!1;if(i.forEach(function(t){var e=F[t.source].node,r=F[t.target].node;e[x]===o&&r[x]===a&&(s=!0),n||e[x]!==a||r[x]!==o||(s=!0);}),!s)return(l[r]--,i&&l[r]<i.length)?(v=!0,"break"):(c.splice(t,1),u[e.source].degree--,u[e.target].degree--,u[e.source].outDegree--,u[e.target].inDegree--,"continue");}(h);h--);if(v)return tr.splice(r,1),"continue";i.edges=c;var m=(0,s.default)(i,i.nodes[0].id,!1).length;if(Object.keys(m).reverse().forEach(function(t){if(t!==i.nodes[0].id&&!v){if(m[t]===1/0){var e=u[t].node[x];if(a[e]--,a[e]<N[e].length){v=!0;return;}var n=i.nodes.indexOf(u[t].node);i.nodes.splice(n,1),u[t]=void 0;return;}var r=I[t].node[x];if(!to[r]||!to[r].length||m[t]>to[r][to[r].length-1]){var e=u[t].node[x];if(a[e]--,a[e]<N[e].length){v=!0;return;}var n=i.nodes.indexOf(u[t].node);i.nodes.splice(n,1),u[t]=void 0;}}}),v)return tr.splice(r,1),"continue";for(var y=!0,E=0;y&&!v;){if(y=!1,(n?u[o.id].degree<F[V.id].degree||u[o.id].inDegree<F[V.id].inDegree||u[o.id].outDegree<F[V.id].outDegree:u[o.id].degree<F[V.id].degree)||a[o[x]]<N[o[x]].length){v=!0;break;}for(var w=i.nodes.length,M=w-1;M>=0;M--){var C=i.nodes[M],A=u[C.id].degree,S=u[C.id].inDegree,D=u[C.id].outDegree,T=b(K,C[x],F,N),k=T.minPatternNodeLabelDegree,B=T.minPatternNodeLabelInDegree,P=T.minPatternNodeLabelOutDegree;if(n?A<k||S<B||D<P:A<k){if(a[C[x]]--,a[C[x]]<N[C[x]].length){v=!0;break;}i.nodes.splice(M,1),u[C.id]=void 0,y=!0;}}if(v||!y&&0!==E)break;p=c.length;for(var L=p-1;L>=0;L--){var j=c[L];if(!u[j.source]||!u[j.target]){c.splice(L,1);var R=j[_];if(l[R]--,u[j.source]&&(u[j.source].degree--,u[j.source].outDegree--),u[j.target]&&(u[j.target].degree--,u[j.target].inDegree--),O[R]&&l[R]<O[R].length){v=!0;break;}y=!0;}}E++;}if(v||v||i.nodes.length<e.nodes.length||c.length<e.edges.length)return tr.splice(r,1),"continue";}(ts);ts--);for(var tu=tr.length,ts=0;ts<=tu-1;ts++)!function(t){var e=tr[t],n={};e.edges.forEach(function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1;});for(var r=tu-1;r>t;r--)!function(t){var e=tr[t],r={};e.edges.forEach(function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);r[e]?r[e]++:r[e]=1;});var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach(function(t){r[t]!==n[t]&&(i=!1);}),i&&tr.splice(t,1);}(r);tu=tr.length;}(ts);return tr;}}};},"5e06f9a0":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("a3e01854")),i=function(t){return(0,r.default)(t).filter(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0]);});};},"5e7303cb":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"dispatch",{enumerable:!0,get:function(){return r.default;}});var r=n("777fffbe")._(n("282f35e8"));},"5ef66b67":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("57580e52")),o=r._(n("bd41dba3")),a=r._(n("a679da2f")),s=function(t,e,n){if(!(0,o.default)(t)&&!(0,a.default)(t))return t;var r=n;return(0,i.default)(t,function(t,n){r=e(r,t,n);}),r;};},"5f08034b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("d1751d7c");r._(n("3a05a9d9"),e),r._(n("e63abf85"),e),r._(n("1938a8a7"),e),r._(n("8a9c481d"),e);},"5f588eb3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Base:function(){return i.default;},Circle:function(){return o.default;},Ellipse:function(){return a.default;},Image:function(){return s.default;},Line:function(){return u.default;},Marker:function(){return c.default;},Path:function(){return l.default;},Polygon:function(){return f.default;},Polyline:function(){return d.default;},Rect:function(){return h.default;},Text:function(){return g.default;}});var r=n("777fffbe"),i=r._(n("235d18ef")),o=r._(n("ea87a61c")),a=r._(n("512b53c7")),s=r._(n("c0961540")),u=r._(n("6a672732")),c=r._(n("e483958d")),l=r._(n("2ad4f37c")),f=r._(n("9114e155")),d=r._(n("458ecae5")),h=r._(n("3fd19bc1")),g=r._(n("da915cc8"));},"5fab14e3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"Canvas",{enumerable:!0,get:function(){return o.default;}});var r=n("d1751d7c"),i=n("777fffbe");n("5f588eb3"),r._(n("be1e82ef"),e);var o=i._(n("4aa17cbe"));n("b1221bd1"),n("0e857c0a");},"5fdd0309":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r={},i=function(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;};},"602d48e8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("afb67b89"),o=r._(n("b6b3d6c6"));class a extends o.default{constructor(t,e){super(t,(e=(0,i.checkRowIndices)(t,e)).length,t.columns),this.rowIndices=e;}set(t,e,n){return this.matrix.set(this.rowIndices[t],e,n),this;}get(t,e){return this.matrix.get(this.rowIndices[t],e);}}},"603c6687":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"ConfigService",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("21422ae0")),o=r._(n("78294f9e")),a=function(){function t(){(0,i.default)(this,t),this.config=void 0;}return(0,o.default)(t,[{key:"get",value:function(){return this.config;}},{key:"set",value:function(t){this.config=t;}}]),t;}();},"6066f383":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("bd41dba3")),i=function(t){if(!(0,r.default)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e;};},"6096bed2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("3382daac");},"60c702b0":function(t,e,n){var r;r=function(){"use strict";var t=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray;},e=function(t,e){for(var n=Object.keys(e),r=0;r<n.length;++r)t[n[r]]=e[n[r]];return t;};function n(t){var e=Error("(regl) "+t);throw console.error(e),e;}function r(t,e){t||n(e);}function i(t){return t?": "+t:"";}function o(t,e){switch(e){case"number":return"number"==typeof t;case"object":return"object"==typeof t;case"string":return"string"==typeof t;case"boolean":return"boolean"==typeof t;case"function":return"function"==typeof t;case"undefined":return void 0===t;case"symbol":return"symbol"==typeof t;}}function a(t,e,r){0>e.indexOf(t)&&n("invalid value"+i(r)+". must be one of: "+e);}var s=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function u(t,e){for(t+="";t.length<e;)t=" "+t;return t;}function c(){this.name="unknown",this.lines=[],this.index={},this.hasErrors=!1;}function l(t,e){this.number=t,this.line=e,this.errors=[];}function f(t,e,n){this.file=t,this.line=e,this.message=n;}function d(){var t=Error(),e=(t.stack||t).toString(),n=/compileProcedure.*\n\s*at.*\((.*)\)/.exec(e);if(n)return n[1];var r=/compileProcedure.*\n\s*at\s+(.*)(\n|$)/.exec(e);return r?r[1]:"unknown";}function h(){var t=Error(),e=(t.stack||t).toString(),n=/at REGLCommand.*\n\s+at.*\((.*)\)/.exec(e);if(n)return n[1];var r=/at REGLCommand.*\n\s+at\s+(.*)\n/.exec(e);return r?r[1]:"unknown";}function g(t,e){var n=t.split("\n"),r=1,i=0,o={unknown:new c,0:new c};o.unknown.name=o[0].name=e||d(),o.unknown.lines.push(new l(0,""));for(var a=0;a<n.length;++a){var s=n[a],u=/^\s*#\s*(\w+)\s+(.+)\s*$/.exec(s);if(u)switch(u[1]){case"line":var f=/(\d+)(\s+\d+)?/.exec(u[2]);!f||(r=0|f[1],!f[2]||(i=0|f[2])in o||(o[i]=new c));break;case"define":var h,g=/SHADER_NAME(_B64)?\s+(.*)$/.exec(u[2]);g&&(o[i].name=g[1]?(h=g[2],"undefined"!=typeof atob?atob(h):"base64:"+h):g[2]);}o[i].lines.push(new l(r++,s));}return Object.keys(o).forEach(function(t){var e=o[t];e.lines.forEach(function(t){e.index[t.number]=t;});}),o;}function p(t){t._commandRef=d();}function v(t,e){var r=h();n(t+" in command "+(e||d())+("unknown"===r?"":" called from "+r));}function m(t,e,n,r){o(t,e)||v("invalid parameter type"+i(n)+". expected "+e+", got "+typeof t,r||d());}var y={};function b(t,e){return 32820===t||32819===t||33635===t?2:34042===t?4:y[t]*e;}function x(t){return!(t&t-1)&&!!t;}y[5120]=y[5121]=1,y[5122]=y[5123]=y[36193]=y[33635]=y[32819]=y[32820]=2,y[5124]=y[5125]=y[5126]=y[34042]=4;var _=e(r,{optional:function(t){t();},raise:n,commandRaise:v,command:function(t,e,n){t||v(e,n||d());},parameter:function(t,e,r){t in e||n("unknown parameter ("+t+")"+i(r)+". possible values: "+Object.keys(e).join());},commandParameter:function(t,e,n,r){t in e||v("unknown parameter ("+t+")"+i(n)+". possible values: "+Object.keys(e).join(),r||d());},constructor:function(t){Object.keys(t).forEach(function(t){0>s.indexOf(t)&&n('invalid regl constructor argument "'+t+'". must be one of '+s);});},type:function(t,e,r){o(t,e)||n("invalid parameter type"+i(r)+". expected "+e+", got "+typeof t);},commandType:m,isTypedArray:function(e,r){t(e)||n("invalid parameter type"+i(r)+". must be a typed array");},nni:function(t,e){t>=0&&(0|t)===t||n("invalid parameter type, ("+t+")"+i(e)+". must be a nonnegative integer");},oneOf:a,shaderError:function(t,e,n,i,o){if(!t.getShaderParameter(e,t.COMPILE_STATUS)){var a,s=t.getShaderInfoLog(e),c=i===t.FRAGMENT_SHADER?"fragment":"vertex";m(n,"string",c+" shader source must be a string",o);var l=g(n,o);(function(t,e){e.forEach(function(e){var n=t[e.file];if(n){var r=n.index[e.line];if(r){r.errors.push(e),n.hasErrors=!0;return;}}t.unknown.hasErrors=!0,t.unknown.lines[0].errors.push(e);});})(l,(a=[],s.split("\n").forEach(function(t){if(!(t.length<5)){var e=/^ERROR:\s+(\d+):(\d+):\s*(.*)$/.exec(t);e?a.push(new f(0|e[1],0|e[2],e[3].trim())):t.length>0&&a.push(new f("unknown",0,t));}}),a)),Object.keys(l).forEach(function(t){var e=l[t];if(e.hasErrors){var n=[""],r=[""];i("file number "+t+": "+e.name+"\n","color:red;text-decoration:underline;font-weight:bold"),e.lines.forEach(function(t){if(t.errors.length>0){i(u(t.number,4)+"| ","background-color:yellow; font-weight:bold"),i(t.line+"\n","color:red; background-color:yellow; font-weight:bold");var e=0;t.errors.forEach(function(n){var r=n.message,o=/^\s*'(.*)'\s*:\s*(.*)$/.exec(r);if(o){var a=o[1];r=o[2],"assign"===a&&(a="="),e=Math.max(t.line.indexOf(a,e),0);}else e=0;i(u("| ",6)),i(u("^^^",e+3)+"\n","font-weight:bold"),i(u("| ",6)),i(r+"\n","font-weight:bold");}),i(u("| ",6)+"\n");}else i(u(t.number,4)+"| "),i(t.line+"\n","color:red");}),"undefined"==typeof document||window.chrome?console.log(n.join("")):(r[0]=n.join("%c"),console.log.apply(console,r));}function i(t,e){n.push(t),r.push(e||"");}}),r.raise("Error compiling "+c+" shader, "+l[0].name);}},linkError:function(t,e,n,i,o){if(!t.getProgramParameter(e,t.LINK_STATUS)){var a=t.getProgramInfoLog(e),s=g(n,o),u='Error linking program with vertex shader, "'+g(i,o)[0].name+'", and fragment shader "'+s[0].name+'"';"undefined"!=typeof document?console.log("%c"+u+"\n%c"+a,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(u+"\n"+a),r.raise(u);}},callSite:h,saveCommandRef:p,saveDrawInfo:function(t,e,n,r){function i(t,e){Object.keys(e).forEach(function(e){t[r.id(e)]=!0;});}p(t),t._fragId=(o=t.static.frag)?r.id(o):0,t._vertId=(a=t.static.vert)?r.id(a):0;var o,a,s=t._uniformSet={};i(s,e.static),i(s,e.dynamic);var u=t._attributeSet={};i(u,n.static),i(u,n.dynamic),t._hasCount="count"in t.static||"count"in t.dynamic||"elements"in t.static||"elements"in t.dynamic;},framebufferFormat:function(t,e,n){t.texture?a(t.texture._texture.internalformat,e,"unsupported texture format for attachment"):a(t.renderbuffer._renderbuffer.format,n,"unsupported renderbuffer format for attachment");},guessCommand:d,texture2D:function(t,e,n){var i,o=e.width,a=e.height,s=e.channels;r(o>0&&o<=n.maxTextureSize&&a>0&&a<=n.maxTextureSize,"invalid texture shape"),(33071!==t.wrapS||33071!==t.wrapT)&&r(x(o)&&x(a),"incompatible wrap mode for texture, both width and height must be power of 2"),1===e.mipmask?1!==o&&1!==a&&r(9984!==t.minFilter&&9986!==t.minFilter&&9985!==t.minFilter&&9987!==t.minFilter,"min filter requires mipmap"):(r(x(o)&&x(a),"texture must be a square power of 2 to support mipmapping"),r(e.mipmask===(o<<1)-1,"missing or incomplete mipmap data")),5126===e.type&&(0>n.extensions.indexOf("oes_texture_float_linear")&&r(9728===t.minFilter&&9728===t.magFilter,"filter not supported, must enable oes_texture_float_linear"),r(!t.genMipmaps,"mipmap generation not supported with float textures"));var u=e.images;for(i=0;i<16;++i)if(u[i]){var c=o>>i,l=a>>i;r(e.mipmask&1<<i,"missing mipmap data");var f=u[i];if(r(f.width===c&&f.height===l,"invalid shape for mip images"),r(f.format===e.format&&f.internalformat===e.internalformat&&f.type===e.type,"incompatible type for mip image"),f.compressed);else if(f.data){var d=Math.ceil(b(f.type,s)*c/f.unpackAlignment)*f.unpackAlignment;r(f.data.byteLength===d*l,"invalid data for image, buffer size is inconsistent with image format");}else f.element||f.copy;}else t.genMipmaps||r((e.mipmask&1<<i)==0,"extra mipmap data");e.compressed&&r(!t.genMipmaps,"mipmap generation for compressed images not supported");},textureCube:function(t,e,n,i){var o=t.width,a=t.height,s=t.channels;r(o>0&&o<=i.maxTextureSize&&a>0&&a<=i.maxTextureSize,"invalid texture shape"),r(o===a,"cube map must be square"),r(33071===e.wrapS&&33071===e.wrapT,"wrap mode not supported by cube map");for(var u=0;u<n.length;++u){var c=n[u];r(c.width===o&&c.height===a,"inconsistent cube map face shape"),e.genMipmaps&&(r(!c.compressed,"can not generate mipmap for compressed textures"),r(1===c.mipmask,"can not specify mipmaps and generate mipmaps"));for(var l=c.images,f=0;f<16;++f){var d=l[f];if(d){var h=o>>f,g=a>>f;r(c.mipmask&1<<f,"missing mipmap data"),r(d.width===h&&d.height===g,"invalid shape for mip images"),r(d.format===t.format&&d.internalformat===t.internalformat&&d.type===t.type,"incompatible type for mip image"),d.compressed||(d.data?r(d.data.byteLength===h*g*Math.max(b(d.type,s),d.unpackAlignment),"invalid data for image, buffer size is inconsistent with image format"):d.element||d.copy);}}}}}),E=0;function w(t,e){this.id=E++,this.type=t,this.data=e;}function M(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"');}var C={DynamicVariable:w,define:function(t,e){return new w(t,"["+(function t(e){if(0===e.length)return[];var n=e.charAt(0),r=e.charAt(e.length-1);if(e.length>1&&n===r&&('"'===n||"'"===n))return['"'+M(e.substr(1,e.length-2))+'"'];var i=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(e);if(i)return t(e.substr(0,i.index)).concat(t(i[1])).concat(t(e.substr(i.index+i[0].length)));var o=e.split(".");if(1===o.length)return['"'+M(e)+'"'];for(var a=[],s=0;s<o.length;++s)a=a.concat(t(o[s]));return a;})(e+"").join("][")+"]");},isDynamic:function(t){return"function"==typeof t&&!t._reglType||t instanceof w;},unbox:function t(e,n){return"function"==typeof e?new w(0,e):"number"==typeof e||"boolean"==typeof e?new w(5,e):Array.isArray(e)?new w(6,e.map((e,r)=>t(e,n+"["+r+"]"))):e instanceof w?e:void _(!1,"invalid option type in uniform "+n);}},A={next:"function"==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t);}:function(t){return setTimeout(t,16);},cancel:"function"==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t);}:clearTimeout},S="undefined"!=typeof performance&&performance.now?function(){return performance.now();}:function(){return+new Date;};function D(t){return"string"==typeof t?t.split():(_(Array.isArray(t),"invalid extension array"),t);}function I(t){return"string"==typeof t?(_("undefined"!=typeof document,"not supported outside of DOM"),document.querySelector(t)):t;}function T(t,e){for(var n=Array(t),r=0;r<t;++r)n[r]=e(r);return n;}function k(t){var e,n;return e=(t>65535)<<4,t>>>=e,n=(t>255)<<3,t>>>=n,e|=n,n=(t>15)<<2,t>>>=n,e|=n,n=(t>3)<<1,t>>>=n,(e|=n)|t>>1;}function F(){var t=T(8,function(){return[];});function e(e){var n=function(t){for(var e=16;e<=268435456;e*=16)if(t<=e)return e;return 0;}(e),r=t[k(n)>>2];return r.length>0?r.pop():new ArrayBuffer(n);}function n(e){t[k(e.byteLength)>>2].push(e);}return{alloc:e,free:n,allocType:function(t,n){var r=null;switch(t){case 5120:r=new Int8Array(e(n),0,n);break;case 5121:r=new Uint8Array(e(n),0,n);break;case 5122:r=new Int16Array(e(2*n),0,n);break;case 5123:r=new Uint16Array(e(2*n),0,n);break;case 5124:r=new Int32Array(e(4*n),0,n);break;case 5125:r=new Uint32Array(e(4*n),0,n);break;case 5126:r=new Float32Array(e(4*n),0,n);break;default:return null;}return r.length!==n?r.subarray(0,n):r;},freeType:function(t){n(t.buffer);}};}var N=F();N.zero=F();var O=function(t,e){var n=1;e.ext_texture_filter_anisotropic&&(n=t.getParameter(34047));var r=1,i=1;e.webgl_draw_buffers&&(r=t.getParameter(34852),i=t.getParameter(36063));var o=!!e.oes_texture_float;if(o){var a=t.createTexture();t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var s=t.createFramebuffer();if(t.bindFramebuffer(36160,s),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))o=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var u=N.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,u),t.getError()?o=!1:(t.deleteFramebuffer(s),t.deleteTexture(a),o=1===u[0]),N.freeType(u);}}var c="undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),l=!0;if(!c){var f=t.createTexture(),d=N.allocType(5121,36);t.activeTexture(33984),t.bindTexture(34067,f),t.texImage2D(34069,0,6408,3,3,0,6408,5121,d),N.freeType(d),t.bindTexture(34067,null),t.deleteTexture(f),l=!t.getError();}return{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter(function(t){return!!e[t];}),maxAnisotropic:n,maxDrawbuffers:r,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:o,npotTextureCube:l};};function B(e){return!!e&&"object"==typeof e&&Array.isArray(e.shape)&&Array.isArray(e.stride)&&"number"==typeof e.offset&&e.shape.length===e.stride.length&&(Array.isArray(e.data)||t(e.data));}var P=function(t){return Object.keys(t).map(function(e){return t[e];});},L={shape:function(t){for(var e=[],n=t;n.length;n=n[0])e.push(n.length);return e;},flatten:function(t,e,n,r){var i=1;if(e.length)for(var o=0;o<e.length;++o)i*=e[o];else i=0;var a=r||N.allocType(n,i);switch(e.length){case 0:break;case 1:!function(t,e,n){for(var r=0;r<e;++r)n[r]=t[r];}(t,e[0],a);break;case 2:!function(t,e,n,r){for(var i=0,o=0;o<e;++o)for(var a=t[o],s=0;s<n;++s)r[i++]=a[s];}(t,e[0],e[1],a);break;case 3:j(t,e[0],e[1],e[2],a,0);break;default:!function t(e,n,r,i,o){for(var a=1,s=r+1;s<n.length;++s)a*=n[s];var u=n[r];if(n.length-r==4){var c=n[r+1],l=n[r+2],f=n[r+3];for(s=0;s<u;++s)j(e[s],c,l,f,i,o),o+=a;}else for(s=0;s<u;++s)t(e[s],n,r+1,i,o),o+=a;}(t,e,0,a,0);}return a;}};function j(t,e,n,r,i,o){for(var a=o,s=0;s<e;++s)for(var u=t[s],c=0;c<n;++c)for(var l=u[c],f=0;f<r;++f)i[a++]=l[f];}var R={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},z={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},G={dynamic:35048,stream:35040,static:35044},Y=L.flatten,X=L.shape,U=[];function H(t){return 0|R[Object.prototype.toString.call(t)];}function W(t,e){for(var n=0;n<e.length;++n)t[n]=e[n];}function V(t,e,n,r,i,o,a){for(var s=0,u=0;u<n;++u)for(var c=0;c<r;++c)t[s++]=e[i*u+o*c+a];}U[5120]=1,U[5122]=2,U[5124]=4,U[5121]=1,U[5123]=2,U[5125]=4,U[5126]=4;var q={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Z=new Float32Array(1),J=new Uint32Array(Z.buffer);function K(t){for(var e=N.allocType(5123,t.length),n=0;n<t.length;++n)if(isNaN(t[n]))e[n]=65535;else if(t[n]===1/0)e[n]=31744;else if(t[n]===-1/0)e[n]=64512;else{Z[0]=t[n];var r=J[0],i=r>>>31<<15,o=(r<<1>>>24)-127,a=r>>13&1023;if(o<-24)e[n]=i;else if(o<-14){var s=-14-o;e[n]=i+(a+1024>>s);}else o>15?e[n]=i+31744:e[n]=i+(o+15<<10)+a;}return e;}function Q(e){return Array.isArray(e)||t(e);}var $=function(t){return!(t&t-1)&&!!t;},tt=[9984,9986,9985,9987],te=[0,6409,6410,6407,6408],tn={};function tr(t){return"[object "+t+"]";}tn[6409]=tn[6406]=tn[6402]=1,tn[34041]=tn[6410]=2,tn[6407]=tn[35904]=3,tn[6408]=tn[35906]=4;var ti=tr("HTMLCanvasElement"),to=tr("OffscreenCanvas"),ta=tr("CanvasRenderingContext2D"),ts=tr("ImageBitmap"),tu=tr("HTMLImageElement"),tc=tr("HTMLVideoElement"),tl=Object.keys(R).concat([ti,to,ta,ts,tu,tc]),tf=[];tf[5121]=1,tf[5126]=4,tf[36193]=2,tf[5123]=2,tf[5125]=4;var td=[];function th(t){return Array.isArray(t)&&(0===t.length||"number"==typeof t[0]);}function tg(t){return!!(Array.isArray(t)&&0!==t.length&&Q(t[0]));}function tp(t){return Object.prototype.toString.call(t);}function tv(t){if(!t)return!1;var e=tp(t);return tl.indexOf(e)>=0||th(t)||tg(t)||B(t);}function tm(t){return 0|R[Object.prototype.toString.call(t)];}function ty(t,e){return N.allocType(36193===t.type?5126:t.type,e);}function tb(t,e){36193===t.type?(t.data=K(e),N.freeType(e)):t.data=e;}function tx(t,e,n,r,i,o){if(a=void 0!==td[t]?td[t]:tn[t]*tf[e],o&&(a*=6),!i)return a*n*r;for(var a,s=0,u=n;u>=1;)s+=a*u*u,u/=2;return s;}td[32854]=2,td[32855]=2,td[36194]=2,td[34041]=4,td[33776]=.5,td[33777]=.5,td[33778]=1,td[33779]=1,td[35986]=.5,td[35987]=1,td[34798]=1,td[35840]=.5,td[35841]=.25,td[35842]=.5,td[35843]=.25,td[36196]=.5;var t_=[];t_[32854]=2,t_[32855]=2,t_[36194]=2,t_[33189]=2,t_[36168]=1,t_[34041]=4,t_[35907]=4,t_[34836]=16,t_[34842]=8,t_[34843]=6;var tE=function(t,e,n,r,i){var o={rgba4:32854,rgb565:36194,"rgb5 a1":32855,depth:33189,stencil:36168,"depth stencil":34041};e.ext_srgb&&(o.srgba=35907),e.ext_color_buffer_half_float&&(o.rgba16f=34842,o.rgb16f=34843),e.webgl_color_buffer_float&&(o.rgba32f=34836);var a=[];Object.keys(o).forEach(function(t){a[o[t]]=t;});var s=0,u={};function c(t){this.id=s++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.width=0,this.height=0,i.profile&&(this.stats={size:0});}function l(e){var n=e.renderbuffer;_(n,"must not double destroy renderbuffer"),t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(n),e.renderbuffer=null,e.refCount=0,delete u[e.id],r.renderbufferCount--;}return c.prototype.decRef=function(){--this.refCount<=0&&l(this);},i.profile&&(r.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach(function(e){t+=u[e].stats.size;}),t;}),{create:function(e,s){var l=new c(t.createRenderbuffer());function f(e,r){var s,u,c,d=0,h=0,g=32854;if("object"==typeof e&&e){if("shape"in e){var p=e.shape;_(Array.isArray(p)&&p.length>=2,"invalid renderbuffer shape"),d=0|p[0],h=0|p[1];}else"radius"in e&&(d=h=0|e.radius),"width"in e&&(d=0|e.width),"height"in e&&(h=0|e.height);"format"in e&&(_.parameter(e.format,o,"invalid renderbuffer format"),g=o[e.format]);}else"number"==typeof e?(d=0|e,h="number"==typeof r?0|r:d):e?_.raise("invalid arguments to renderbuffer constructor"):d=h=1;if(_(d>0&&h>0&&d<=n.maxRenderbufferSize&&h<=n.maxRenderbufferSize,"invalid renderbuffer size"),d!==l.width||h!==l.height||g!==l.format)return f.width=l.width=d,f.height=l.height=h,l.format=g,t.bindRenderbuffer(36161,l.renderbuffer),t.renderbufferStorage(36161,g,d,h),_(0===t.getError(),"invalid render buffer format"),i.profile&&(l.stats.size=(s=l.format,u=l.width,c=l.height,t_[s]*u*c)),f.format=a[l.format],f;}return u[l.id]=l,r.renderbufferCount++,f(e,s),f.resize=function(e,r){var o,a,s,u=0|e,c=0|r||u;return u===l.width&&c===l.height||(_(u>0&&c>0&&u<=n.maxRenderbufferSize&&c<=n.maxRenderbufferSize,"invalid renderbuffer size"),f.width=l.width=u,f.height=l.height=c,t.bindRenderbuffer(36161,l.renderbuffer),t.renderbufferStorage(36161,l.format,u,c),_(0===t.getError(),"invalid render buffer format"),i.profile&&(l.stats.size=(o=l.format,a=l.width,s=l.height,t_[o]*a*s))),f;},f._reglType="renderbuffer",f._renderbuffer=l,i.profile&&(f.stats=l.stats),f.destroy=function(){l.decRef();},f;},clear:function(){P(u).forEach(l);},restore:function(){P(u).forEach(function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height);}),t.bindRenderbuffer(36161,null);}};},tw=[6407,6408],tM=[];tM[6408]=4,tM[6407]=3;var tC=[];tC[5121]=1,tC[5126]=4,tC[36193]=2;var tA=[32854,32855,36194,35907,34842,34843,34836],tS={};function tD(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.offset=0,this.stride=0,this.divisor=0;}function tI(t){return Array.prototype.slice.call(t);}function tT(t){return tI(t).join("");}tS[36053]="complete",tS[36054]="incomplete attachment",tS[36057]="incomplete dimensions",tS[36055]="incomplete, missing attachment",tS[36061]="unsupported";var tk="xyzw".split(""),tF="dither",tN="blend.enable",tO="blend.color",tB="blend.equation",tP="blend.func",tL="depth.enable",tj="depth.func",tR="depth.range",tz="depth.mask",tG="colorMask",tY="cull.enable",tX="cull.face",tU="frontFace",tH="lineWidth",tW="polygonOffset.enable",tV="polygonOffset.offset",tq="sample.alpha",tZ="sample.enable",tJ="sample.coverage",tK="stencil.enable",tQ="stencil.mask",t$="stencil.func",t0="stencil.opFront",t1="stencil.opBack",t2="scissor.enable",t3="scissor.box",t5="viewport",t7="profile",t6="framebuffer",t4="vert",t8="frag",t9="elements",et="primitive",ee="count",en="offset",er="instances",ei="Width",eo="Height",ea=t6+ei,es=t6+eo,eu=t5+ei,ec=t5+eo,el="drawingBuffer",ef=el+ei,ed=el+eo,eh=[tP,tB,t$,t0,t1,tJ,t5,t3,tV],eg={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ep=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"],ev={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},em={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ey={frag:35632,vert:35633},eb={cw:2304,ccw:2305};function ex(e){return Array.isArray(e)||t(e)||B(e);}function e_(t){return t.sort(function(t,e){return t===t5?-1:e===t5?1:t<e?-1:1;});}function eE(t,e,n,r){this.thisDep=t,this.contextDep=e,this.propDep=n,this.append=r;}function ew(t){return t&&!(t.thisDep||t.contextDep||t.propDep);}function eM(t){return new eE(!1,!1,!1,t);}function eC(t,e){var n=t.type;if(0===n){var r=t.data.length;return new eE(!0,r>=1,r>=2,e);}if(4===n){var i=t.data;return new eE(i.thisDep,i.contextDep,i.propDep,e);}if(5===n)return new eE(!1,!1,!1,e);if(6!==n)return new eE(3===n,2===n,1===n,e);for(var o=!1,a=!1,s=!1,u=0;u<t.data.length;++u){var c=t.data[u];if(1===c.type)s=!0;else if(2===c.type)a=!0;else if(3===c.type)o=!0;else if(0===c.type){o=!0;var l=c.data;l>=1&&(a=!0),l>=2&&(s=!0);}else 4===c.type&&(o=o||c.data.thisDep,a=a||c.data.contextDep,s=s||c.data.propDep);}return new eE(o,a,s,e);}var eA=new eE(!1,!1,!1,function(){}),eS=function(t,e){if(!e.ext_disjoint_timer_query)return null;var n=[],r=[];function i(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null;}var o=[],a=[];function s(t,e,n){var r=o.pop()||new i;r.startQueryIndex=t,r.endQueryIndex=e,r.sum=0,r.stats=n,a.push(r);}var u=[],c=[];return{beginQuery:function(t){var i=n.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,i),r.push(i),s(r.length-1,r.length,t);},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007);},pushScopeStats:s,update:function(){var t,i,s=r.length;if(0!==s){c.length=Math.max(c.length,s+1),u.length=Math.max(u.length,s+1),u[0]=0,c[0]=0;var l=0;for(i=0,t=0;i<r.length;++i){var f=r[i];e.ext_disjoint_timer_query.getQueryObjectEXT(f,34919)?(l+=e.ext_disjoint_timer_query.getQueryObjectEXT(f,34918),n.push(f)):r[t++]=f,u[i+1]=l,c[i+1]=t;}for(i=0,r.length=t,t=0;i<a.length;++i){var d=a[i],h=d.startQueryIndex,g=d.endQueryIndex;d.sum+=u[g]-u[h];var p=c[h],v=c[g];v===p?(d.stats.gpuTime+=d.sum/1e6,o.push(d)):(d.startQueryIndex=p,d.endQueryIndex=v,a[t++]=d);}a.length=t;}},getNumPendingQueries:function(){return r.length;},clear:function(){n.push.apply(n,r);for(var t=0;t<n.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(n[t]);r.length=0,n.length=0;},restore:function(){r.length=0,n.length=0;}};},eD="webglcontextlost",eI="webglcontextrestored";function eT(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return n;return -1;}return function(n){var r,i,o=function(t){var n,r,i,o,a=t||{},s={},u=[],c=[],l="undefined"==typeof window?1:window.devicePixelRatio,f=!1,d=function(t){t&&_.raise(t);},h=function(){};if("string"==typeof a?(_("undefined"!=typeof document,"selector queries only supported in DOM enviroments"),_(n=document.querySelector(a),"invalid query string for element")):"object"==typeof a?"string"==typeof a.nodeName&&"function"==typeof a.appendChild&&"function"==typeof a.getBoundingClientRect?n=a:"function"==typeof a.drawArrays||"function"==typeof a.drawElements?i=(o=a).canvas:(_.constructor(a),"gl"in a?o=a.gl:"canvas"in a?i=I(a.canvas):"container"in a&&(r=I(a.container)),"attributes"in a&&(s=a.attributes,_.type(s,"object","invalid context attributes")),"extensions"in a&&(u=D(a.extensions)),"optionalExtensions"in a&&(c=D(a.optionalExtensions)),"onDone"in a&&(_.type(a.onDone,"function","invalid or missing onDone callback"),d=a.onDone),"profile"in a&&(f=!!a.profile),"pixelRatio"in a&&_((l=+a.pixelRatio)>0,"invalid pixel ratio")):_.raise("invalid arguments to regl"),n&&("canvas"===n.nodeName.toLowerCase()?i=n:r=n),!o){if(!i){_("undefined"!=typeof document,"must manually specify webgl context outside of DOM environments");var g=function(t,n,r){var i,o=document.createElement("canvas");function a(){var n=window.innerWidth,i=window.innerHeight;if(t!==document.body){var a=t.getBoundingClientRect();n=a.right-a.left,i=a.bottom-a.top;}o.width=r*n,o.height=r*i,e(o.style,{width:n+"px",height:i+"px"});}return e(o.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(o),t===document.body&&(o.style.position="absolute",e(t.style,{margin:0,padding:0})),t!==document.body&&"function"==typeof ResizeObserver?(i=new ResizeObserver(function(){setTimeout(a);})).observe(t):window.addEventListener("resize",a,!1),a(),{canvas:o,onDestroy:function(){i?i.disconnect():window.removeEventListener("resize",a),t.removeChild(o);}};}(r||document.body,0,l);if(!g)return null;i=g.canvas,h=g.onDestroy;}void 0===s.premultipliedAlpha&&(s.premultipliedAlpha=!0),o=function(t,e){function n(n){try{return t.getContext(n,e);}catch(t){return null;}}return n("webgl")||n("experimental-webgl")||n("webgl-experimental");}(i,s);}return o?{gl:o,canvas:i,container:r,extensions:u,optionalExtensions:c,pixelRatio:l,profile:f,onDone:d,onDestroy:h}:(h(),d("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null);}(n);if(!o)return null;var a=o.gl,s=a.getContextAttributes(),u=a.isContextLost(),c=function(t,e){var n={};function r(e){_.type(e,"string","extension name must be string");var r,i=e.toLowerCase();try{r=n[i]=t.getExtension(i);}catch(t){}return!!r;}for(var i=0;i<e.extensions.length;++i){var o=e.extensions[i];if(!r(o))return e.onDestroy(),e.onDone('"'+o+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null;}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach(function(t){if(n[t]&&!r(t))throw Error("(regl): error restoring extension "+t);});}};}(a,o);if(!c)return null;var l=(r={"":0},i=[""],{id:function(t){var e=r[t];return e||(e=r[t]=i.length,i.push(t)),e;},str:function(t){return i[t];}}),f={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},d=c.extensions,h=eS(a,d),g=S(),p=a.drawingBufferWidth,v=a.drawingBufferHeight,m={tick:0,time:0,viewportWidth:p,viewportHeight:v,framebufferWidth:p,framebufferHeight:v,drawingBufferWidth:p,drawingBufferHeight:v,pixelRatio:o.pixelRatio},y=O(a,d),b=function(e,n,r,i){var o=0,a={};function s(t){this.id=o++,this.buffer=e.createBuffer(),this.type=t,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&&(this.stats={size:0});}s.prototype.bind=function(){e.bindBuffer(this.type,this.buffer);},s.prototype.destroy=function(){f(this);};var u=[];function c(t,n,r){t.byteLength=n.byteLength,e.bufferData(t.type,n,r);}function l(e,n,r,i,o,a){if(e.usage=r,Array.isArray(n)){if(e.dtype=i||5126,n.length>0){if(Array.isArray(n[0])){s=X(n);for(var s,u,l=1,f=1;f<s.length;++f)l*=s[f];e.dimension=l,u=Y(n,s,e.dtype),c(e,u,r),a?e.persistentData=u:N.freeType(u);}else if("number"==typeof n[0]){e.dimension=o;var d=N.allocType(e.dtype,n.length);W(d,n),c(e,d,r),a?e.persistentData=d:N.freeType(d);}else t(n[0])?(e.dimension=n[0].length,e.dtype=i||H(n[0])||5126,u=Y(n,[n.length,n[0].length],e.dtype),c(e,u,r),a?e.persistentData=u:N.freeType(u)):_.raise("invalid buffer data");}}else if(t(n))e.dtype=i||H(n),e.dimension=o,c(e,n,r),a&&(e.persistentData=new Uint8Array(new Uint8Array(n.buffer)));else if(B(n)){s=n.shape;var h=n.stride,g=n.offset,p=0,v=0,m=0,y=0;1===s.length?(p=s[0],v=1,m=h[0],y=0):2===s.length?(p=s[0],v=s[1],m=h[0],y=h[1]):_.raise("invalid shape"),e.dtype=i||H(n.data)||5126,e.dimension=v;var b=N.allocType(e.dtype,p*v);V(b,n.data,p,v,m,y,g),c(e,b,r),a?e.persistentData=b:N.freeType(b);}else n instanceof ArrayBuffer?(e.dtype=5121,e.dimension=o,c(e,n,r),a&&(e.persistentData=new Uint8Array(new Uint8Array(n)))):_.raise("invalid buffer data");}function f(t){n.bufferCount--,i(t);var r=t.buffer;_(r,"buffer must not be deleted already"),e.deleteBuffer(r),t.buffer=null,delete a[t.id];}return r.profile&&(n.getTotalBufferSize=function(){var t=0;return Object.keys(a).forEach(function(e){t+=a[e].stats.size;}),t;}),{create:function(i,o,u,c){n.bufferCount++;var d=new s(o);function h(n){var i=35044,o=null,a=0,s=0,u=1;return Array.isArray(n)||t(n)||B(n)||n instanceof ArrayBuffer?o=n:"number"==typeof n?a=0|n:n&&(_.type(n,"object","buffer arguments must be an object, a number or an array"),"data"in n&&(_(null===o||Array.isArray(o)||t(o)||B(o),"invalid data for buffer"),o=n.data),"usage"in n&&(_.parameter(n.usage,G,"invalid buffer usage"),i=G[n.usage]),"type"in n&&(_.parameter(n.type,z,"invalid buffer type"),s=z[n.type]),"dimension"in n&&(_.type(n.dimension,"number","invalid dimension"),u=0|n.dimension),"length"in n&&(_.nni(a,"buffer length must be a nonnegative integer"),a=0|n.length)),d.bind(),o?l(d,o,i,s,u,c):(a&&e.bufferData(d.type,a,i),d.dtype=s||5121,d.usage=i,d.dimension=u,d.byteLength=a),r.profile&&(d.stats.size=d.byteLength*U[d.dtype]),h;}function g(t,n){_(n+t.byteLength<=d.byteLength,"invalid buffer subdata call, buffer is too small. Can't write data of size "+t.byteLength+" starting from offset "+n+" to a buffer of size "+d.byteLength),e.bufferSubData(d.type,n,t);}return a[d.id]=d,u||h(i),h._reglType="buffer",h._buffer=d,h.subdata=function(e,n){var r,i=0|(n||0);if(d.bind(),t(e)||e instanceof ArrayBuffer)g(e,i);else if(Array.isArray(e)){if(e.length>0){if("number"==typeof e[0]){var o=N.allocType(d.dtype,e.length);W(o,e),g(o,i),N.freeType(o);}else if(Array.isArray(e[0])||t(e[0])){r=X(e);var a=Y(e,r,d.dtype);g(a,i),N.freeType(a);}else _.raise("invalid buffer data");}}else if(B(e)){r=e.shape;var s=e.stride,u=0,c=0,l=0,f=0;1===r.length?(u=r[0],c=1,l=s[0],f=0):2===r.length?(u=r[0],c=r[1],l=s[0],f=s[1]):_.raise("invalid shape");var p=Array.isArray(e.data)?d.dtype:H(e.data),v=N.allocType(p,u*c);V(v,e.data,u,c,l,f,e.offset),g(v,i),N.freeType(v);}else _.raise("invalid data for buffer subdata");return h;},r.profile&&(h.stats=d.stats),h.destroy=function(){f(d);},h;},createStream:function(t,e){var n=u.pop();return n||(n=new s(t)),n.bind(),l(n,e,35040,0,1,!1),n;},destroyStream:function(t){u.push(t);},clear:function(){P(a).forEach(f),u.forEach(f);},getBuffer:function(t){return t&&t._buffer instanceof s?t._buffer:null;},restore:function(){P(a).forEach(function(t){t.buffer=e.createBuffer(),e.bindBuffer(t.type,t.buffer),e.bufferData(t.type,t.persistentData||t.byteLength,t.usage);});},_initBuffer:l};}(a,f,o,function(t){return x.destroyBuffer(t);}),x=function(e,n,r,i,o){for(var a=r.maxAttributes,s=Array(a),u=0;u<a;++u)s[u]=new tD;var c=0,l={},f={Record:tD,scope:{},state:s,currentVAO:null,targetVAO:null,restore:d()?function(){d()&&P(l).forEach(function(t){t.refresh();});}:function(){},createVAO:function(e){var r=new g;function s(e){_(Array.isArray(e),"arguments to vertex array constructor must be an array"),_(e.length<a,"too many attributes"),_(e.length>0,"must specify at least one attribute");var i={},u=r.attributes;u.length=e.length;for(var c=0;c<e.length;++c){var l,f=e[c],d=u[c]=new tD,h=f.data||f;Array.isArray(h)||t(h)||B(h)?(r.buffers[c]&&(l=r.buffers[c],t(h)&&l._buffer.byteLength>=h.byteLength?l.subdata(h):(l.destroy(),r.buffers[c]=null)),r.buffers[c]||(l=r.buffers[c]=o.create(f,34962,!1,!0)),d.buffer=o.getBuffer(l),d.size=0|d.buffer.dimension,d.normalized=!1,d.type=d.buffer.dtype,d.offset=0,d.stride=0,d.divisor=0,d.state=1,i[c]=1):o.getBuffer(f)?(d.buffer=o.getBuffer(f),d.size=0|d.buffer.dimension,d.normalized=!1,d.type=d.buffer.dtype,d.offset=0,d.stride=0,d.divisor=0,d.state=1):o.getBuffer(f.buffer)?(d.buffer=o.getBuffer(f.buffer),d.size=0|(+f.size||d.buffer.dimension),d.normalized=!!f.normalized,"type"in f?(_.parameter(f.type,z,"invalid buffer type"),d.type=z[f.type]):d.type=d.buffer.dtype,d.offset=0|(f.offset||0),d.stride=0|(f.stride||0),d.divisor=0|(f.divisor||0),d.state=1,_(d.size>=1&&d.size<=4,"size must be between 1 and 4"),_(d.offset>=0,"invalid offset"),_(d.stride>=0&&d.stride<=255,"stride must be between 0 and 255"),_(d.divisor>=0,"divisor must be positive"),_(!d.divisor||!!n.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in f?(_(c>0,"first attribute must not be a constant"),d.x=+f.x||0,d.y=+f.y||0,d.z=+f.z||0,d.w=+f.w||0,d.state=2):_(!1,"invalid attribute spec for location "+c);}for(var g=0;g<r.buffers.length;++g)!i[g]&&r.buffers[g]&&(r.buffers[g].destroy(),r.buffers[g]=null);return r.refresh(),s;}return i.vaoCount+=1,s.destroy=function(){for(var t=0;t<r.buffers.length;++t)r.buffers[t]&&r.buffers[t].destroy();r.buffers.length=0,r.destroy();},s._vao=r,s._reglType="vao",s(e);},getVAO:function(t){return"function"==typeof t&&t._vao?t._vao:null;},destroyBuffer:function(t){for(var n=0;n<s.length;++n){var r=s[n];r.buffer===t&&(e.disableVertexAttribArray(n),r.buffer=null);}},setVAO:d()?function(t){if(t!==f.currentVAO){var e=d();t?e.bindVertexArrayOES(t.vao):e.bindVertexArrayOES(null),f.currentVAO=t;}}:function(t){if(t!==f.currentVAO){if(t)t.bindAttrs();else for(var n=h(),r=0;r<s.length;++r){var i=s[r];i.buffer?(e.enableVertexAttribArray(r),e.vertexAttribPointer(r,i.size,i.type,i.normalized,i.stride,i.offfset),n&&i.divisor&&n.vertexAttribDivisorANGLE(r,i.divisor)):(e.disableVertexAttribArray(r),e.vertexAttrib4f(r,i.x,i.y,i.z,i.w));}f.currentVAO=t;}},clear:d()?function(){P(l).forEach(function(t){t.destroy();});}:function(){}};function d(){return n.oes_vertex_array_object;}function h(){return n.angle_instanced_arrays;}function g(){this.id=++c,this.attributes=[];var t=d();t?this.vao=t.createVertexArrayOES():this.vao=null,l[this.id]=this,this.buffers=[];}return g.prototype.bindAttrs=function(){for(var t=h(),n=this.attributes,r=0;r<n.length;++r){var i=n[r];i.buffer?(e.enableVertexAttribArray(r),e.bindBuffer(34962,i.buffer.buffer),e.vertexAttribPointer(r,i.size,i.type,i.normalized,i.stride,i.offset),t&&i.divisor&&t.vertexAttribDivisorANGLE(r,i.divisor)):(e.disableVertexAttribArray(r),e.vertexAttrib4f(r,i.x,i.y,i.z,i.w));}for(var o=n.length;o<a;++o)e.disableVertexAttribArray(o);},g.prototype.refresh=function(){var t=d();t&&(t.bindVertexArrayOES(this.vao),this.bindAttrs(),f.currentVAO=this);},g.prototype.destroy=function(){if(this.vao){var t=d();this===f.currentVAO&&(f.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null;}l[this.id]&&(delete l[this.id],i.vaoCount-=1);},f;}(a,d,y,f,b),E=function(e,n,r,i){var o={},a=0,s={uint8:5121,uint16:5123};function u(t){this.id=a++,o[this.id]=this,this.buffer=t,this.primType=4,this.vertCount=0,this.type=0;}n.oes_element_index_uint&&(s.uint32=5125),u.prototype.bind=function(){this.buffer.bind();};var c=[];function l(i,o,a,s,u,c,l){if(i.buffer.bind(),o){var f,d=l;!l&&(!t(o)||B(o)&&!t(o.data))&&(d=n.oes_element_index_uint?5125:5123),r._initBuffer(i.buffer,o,a,d,3);}else e.bufferData(34963,c,a),i.buffer.dtype=f||5121,i.buffer.usage=a,i.buffer.dimension=3,i.buffer.byteLength=c;if(f=l,!l){switch(i.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125;break;default:_.raise("unsupported type for element array");}i.buffer.dtype=f;}i.type=f,_(5125!==f||!!n.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var h=u;h<0&&(h=i.buffer.byteLength,5123===f?h>>=1:5125===f&&(h>>=2)),i.vertCount=h;var g=s;if(s<0){g=4;var p=i.buffer.dimension;1===p&&(g=0),2===p&&(g=1),3===p&&(g=4);}i.primType=g;}function f(t){i.elementsCount--,_(null!==t.buffer,"must not double destroy elements"),delete o[t.id],t.buffer.destroy(),t.buffer=null;}return{create:function(e,n){var o=r.create(null,34963,!0),a=new u(o._buffer);function c(e){if(e){if("number"==typeof e)o(e),a.primType=4,a.vertCount=0|e,a.type=5121;else{var n=null,r=35044,i=-1,u=-1,f=0,d=0;Array.isArray(e)||t(e)||B(e)?n=e:(_.type(e,"object","invalid arguments for elements"),"data"in e&&_(Array.isArray(n=e.data)||t(n)||B(n),"invalid data for element buffer"),"usage"in e&&(_.parameter(e.usage,G,"invalid element buffer usage"),r=G[e.usage]),"primitive"in e&&(_.parameter(e.primitive,q,"invalid element buffer primitive"),i=q[e.primitive]),"count"in e&&(_("number"==typeof e.count&&e.count>=0,"invalid vertex count for elements"),u=0|e.count),"type"in e&&(_.parameter(e.type,s,"invalid buffer type"),d=s[e.type]),"length"in e?f=0|e.length:(f=u,5123===d||5122===d?f*=2:(5125===d||5124===d)&&(f*=4))),l(a,n,r,i,u,f,d);}}else o(),a.primType=4,a.vertCount=0,a.type=5121;return c;}return i.elementsCount++,c(e),c._reglType="elements",c._elements=a,c.subdata=function(t,e){return o.subdata(t,e),c;},c.destroy=function(){f(a);},c;},createStream:function(t){var e=c.pop();return e||(e=new u(r.create(null,34963,!0,!1)._buffer)),l(e,t,35040,-1,-1,0,0),e;},destroyStream:function(t){c.push(t);},getElements:function(t){return"function"==typeof t&&t._elements instanceof u?t._elements:null;},clear:function(){P(o).forEach(f);}};}(a,d,b,f),w=function(t,n,r,i){var o={},a={};function s(t,e,n,r){this.name=t,this.id=e,this.location=n,this.info=r;}function u(t,e){for(var n=0;n<t.length;++n)if(t[n].id===e.id){t[n].location=e.location;return;}t.push(e);}function c(e,r,i){var s=35632===e?o:a,u=s[r];if(!u){var c=n.str(r);u=t.createShader(e),t.shaderSource(u,c),t.compileShader(u),_.shaderError(t,u,c,e,i),s[r]=u;}return u;}var l={},f=[],d=0;function h(t,e){this.id=d++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,i.profile&&(this.stats={uniformsCount:0,attributesCount:0});}function g(e,r,o){var a,l,f=c(35632,e.fragId),d=c(35633,e.vertId),h=e.program=t.createProgram();if(t.attachShader(h,f),t.attachShader(h,d),o)for(a=0;a<o.length;++a){var g=o[a];t.bindAttribLocation(h,g[0],g[1]);}t.linkProgram(h),_.linkError(t,h,n.str(e.fragId),n.str(e.vertId),r);var p=t.getProgramParameter(h,35718);i.profile&&(e.stats.uniformsCount=p);var v=e.uniforms;for(a=0;a<p;++a)if(l=t.getActiveUniform(h,a)){if(l.size>1)for(var m=0;m<l.size;++m){var y=l.name.replace("[0]","["+m+"]");u(v,new s(y,n.id(y),t.getUniformLocation(h,y),l));}else u(v,new s(l.name,n.id(l.name),t.getUniformLocation(h,l.name),l));}var b=t.getProgramParameter(h,35721);i.profile&&(e.stats.attributesCount=b);var x=e.attributes;for(a=0;a<b;++a)(l=t.getActiveAttrib(h,a))&&u(x,new s(l.name,n.id(l.name),t.getAttribLocation(h,l.name),l));}return i.profile&&(r.getMaxUniformsCount=function(){var t=0;return f.forEach(function(e){e.stats.uniformsCount>t&&(t=e.stats.uniformsCount);}),t;},r.getMaxAttributesCount=function(){var t=0;return f.forEach(function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount);}),t;}),{clear:function(){var e=t.deleteShader.bind(t);P(o).forEach(e),o={},P(a).forEach(e),a={},f.forEach(function(e){t.deleteProgram(e.program);}),f.length=0,l={},r.shaderCount=0;},program:function(n,i,s,u){_.command(n>=0,"missing vertex shader",s),_.command(i>=0,"missing fragment shader",s);var c=l[i];c||(c=l[i]={});var d=c[n];if(d&&(d.refCount++,!u))return d;var p=new h(i,n);return r.shaderCount++,g(p,s,u),d||(c[n]=p),f.push(p),e(p,{destroy:function(){if(p.refCount--,p.refCount<=0){t.deleteProgram(p.program);var e=f.indexOf(p);f.splice(e,1),r.shaderCount--;}c[p.vertId].refCount<=0&&(t.deleteShader(a[p.vertId]),delete a[p.vertId],delete l[p.fragId][p.vertId]),Object.keys(l[p.fragId]).length||(t.deleteShader(o[p.fragId]),delete o[p.fragId],delete l[p.fragId]);}});},restore:function(){o={},a={};for(var t=0;t<f.length;++t)g(f[t],null,f[t].attributes.map(function(t){return[t.location,t.name];}));},shader:c,frag:-1,vert:-1};}(a,l,f,o),M=function(n,r,i,o,a,s,u){var c={"don't care":4352,"dont care":4352,nice:4354,fast:4353},l={repeat:10497,clamp:33071,mirror:33648},f={nearest:9728,linear:9729},d=e({mipmap:9987,"nearest mipmap nearest":9984,"linear mipmap nearest":9985,"nearest mipmap linear":9986,"linear mipmap linear":9987},f),h={none:0,browser:37444},g={uint8:5121,rgba4:32819,rgb565:33635,"rgb5 a1":32820},p={alpha:6406,luminance:6409,"luminance alpha":6410,rgb:6407,rgba:6408,rgba4:32854,"rgb5 a1":32855,rgb565:36194},v={};r.ext_srgb&&(p.srgb=35904,p.srgba=35906),r.oes_texture_float&&(g.float32=g.float=5126),r.oes_texture_half_float&&(g.float16=g["half float"]=36193),r.webgl_depth_texture&&(e(p,{depth:6402,"depth stencil":34041}),e(g,{uint16:5123,uint32:5125,"depth stencil":34042})),r.webgl_compressed_texture_s3tc&&e(v,{"rgb s3tc dxt1":33776,"rgba s3tc dxt1":33777,"rgba s3tc dxt3":33778,"rgba s3tc dxt5":33779}),r.webgl_compressed_texture_atc&&e(v,{"rgb atc":35986,"rgba atc explicit alpha":35987,"rgba atc interpolated alpha":34798}),r.webgl_compressed_texture_pvrtc&&e(v,{"rgb pvrtc 4bppv1":35840,"rgb pvrtc 2bppv1":35841,"rgba pvrtc 4bppv1":35842,"rgba pvrtc 2bppv1":35843}),r.webgl_compressed_texture_etc1&&(v["rgb etc1"]=36196);var m=Array.prototype.slice.call(n.getParameter(34467));Object.keys(v).forEach(function(t){var e=v[t];m.indexOf(e)>=0&&(p[t]=e);});var y=Object.keys(p);i.textureFormats=y;var b=[];Object.keys(p).forEach(function(t){b[p[t]]=t;});var x=[];Object.keys(g).forEach(function(t){x[g[t]]=t;});var E=[];Object.keys(f).forEach(function(t){E[f[t]]=t;});var w=[];Object.keys(d).forEach(function(t){w[d[t]]=t;});var M=[];Object.keys(l).forEach(function(t){M[l[t]]=t;});var C=y.reduce(function(t,e){var n=p[e];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||r.ext_srgb&&(35904===n||35906===n)?t[n]=n:32855===n||e.indexOf("rgba")>=0?t[n]=6408:t[n]=6407,t;},{});function A(){this.internalformat=6408,this.format=6408,this.type=5121,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=37444,this.width=0,this.height=0,this.channels=0;}function S(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels;}function D(t,e){if("object"==typeof e&&e){if("premultiplyAlpha"in e&&(_.type(e.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),t.premultiplyAlpha=e.premultiplyAlpha),"flipY"in e&&(_.type(e.flipY,"boolean","invalid texture flip"),t.flipY=e.flipY),"alignment"in e&&(_.oneOf(e.alignment,[1,2,4,8],"invalid texture unpack alignment"),t.unpackAlignment=e.alignment),"colorSpace"in e&&(_.parameter(e.colorSpace,h,"invalid colorSpace"),t.colorSpace=h[e.colorSpace]),"type"in e){var n=e.type;_(r.oes_texture_float||!("float"===n||"float32"===n),"you must enable the OES_texture_float extension in order to use floating point textures."),_(r.oes_texture_half_float||!("half float"===n||"float16"===n),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),_(r.webgl_depth_texture||!("uint16"===n||"uint32"===n||"depth stencil"===n),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),_.parameter(n,g,"invalid texture type"),t.type=g[n];}var o=t.width,a=t.height,s=t.channels,u=!1;"shape"in e?(_(Array.isArray(e.shape)&&e.shape.length>=2,"shape must be an array"),o=e.shape[0],a=e.shape[1],3===e.shape.length&&(_((s=e.shape[2])>0&&s<=4,"invalid number of channels"),u=!0),_(o>=0&&o<=i.maxTextureSize,"invalid width"),_(a>=0&&a<=i.maxTextureSize,"invalid height")):("radius"in e&&_((o=a=e.radius)>=0&&o<=i.maxTextureSize,"invalid radius"),"width"in e&&_((o=e.width)>=0&&o<=i.maxTextureSize,"invalid width"),"height"in e&&_((a=e.height)>=0&&a<=i.maxTextureSize,"invalid height"),"channels"in e&&(_((s=e.channels)>0&&s<=4,"invalid number of channels"),u=!0)),t.width=0|o,t.height=0|a,t.channels=0|s;var c=!1;if("format"in e){var l=e.format;_(r.webgl_depth_texture||!("depth"===l||"depth stencil"===l),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),_.parameter(l,p,"invalid texture format");var f=t.internalformat=p[l];t.format=C[f],l in g&&!("type"in e)&&(t.type=g[l]),l in v&&(t.compressed=!0),c=!0;}!u&&c?t.channels=tn[t.format]:u&&!c?t.channels!==te[t.format]&&(t.format=t.internalformat=te[t.channels]):c&&u&&_(t.channels===tn[t.format],"number of channels inconsistent with specified format");}}function I(t){n.pixelStorei(37440,t.flipY),n.pixelStorei(37441,t.premultiplyAlpha),n.pixelStorei(37443,t.colorSpace),n.pixelStorei(3317,t.unpackAlignment);}function T(){A.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1;}function k(e,n){var r=null;if(tv(n)?r=n:n&&(_.type(n,"object","invalid pixel data type"),D(e,n),"x"in n&&(e.xOffset=0|n.x),"y"in n&&(e.yOffset=0|n.y),tv(n.data)&&(r=n.data)),_(!e.compressed||r instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),n.copy){_(!r,"can not specify copy and data field for the same texture");var o=a.viewportWidth,s=a.viewportHeight;e.width=e.width||o-e.xOffset,e.height=e.height||s-e.yOffset,e.needsCopy=!0,_(e.xOffset>=0&&e.xOffset<o&&e.yOffset>=0&&e.yOffset<s&&e.width>0&&e.width<=o&&e.height>0&&e.height<=s,"copy texture read out of bounds");}else if(r){if(t(r))e.channels=e.channels||4,e.data=r,"type"in n||5121!==e.type||(e.type=tm(r));else if(th(r))e.channels=e.channels||4,function(t,e){var n=e.length;switch(t.type){case 5121:case 5123:case 5125:case 5126:var r=N.allocType(t.type,n);r.set(e),t.data=r;break;case 36193:t.data=K(e);break;default:_.raise("unsupported texture type, must specify a typed array");}}(e,r),e.alignment=1,e.needsFree=!0;else if(B(r)){var u,c,l,f,d,h,g=r.data;Array.isArray(g)||5121!==e.type||(e.type=tm(g));var p=r.shape,v=r.stride;3===p.length?(l=p[2],h=v[2]):(_(2===p.length,"invalid ndarray pixel data, must be 2 or 3D"),l=1,h=1),u=p[0],c=p[1],f=v[0],d=v[1],e.alignment=1,e.width=u,e.height=c,e.channels=l,e.format=e.internalformat=te[l],e.needsFree=!0,function(t,e,n,r,i,o){for(var a=t.width,s=t.height,u=t.channels,c=ty(t,a*s*u),l=0,f=0;f<s;++f)for(var d=0;d<a;++d)for(var h=0;h<u;++h)c[l++]=e[n*d+r*f+i*h+o];tb(t,c);}(e,g,f,d,h,r.offset);}else if(tp(r)===ti||tp(r)===to||tp(r)===ta)tp(r)===ti||tp(r)===to?e.element=r:e.element=r.canvas,e.width=e.element.width,e.height=e.element.height,e.channels=4;else if(tp(r)===ts)e.element=r,e.width=r.width,e.height=r.height,e.channels=4;else if(tp(r)===tu)e.element=r,e.width=r.naturalWidth,e.height=r.naturalHeight,e.channels=4;else if(tp(r)===tc)e.element=r,e.width=r.videoWidth,e.height=r.videoHeight,e.channels=4;else if(tg(r)){var m=e.width||r[0].length,y=e.height||r.length,b=e.channels;b=Q(r[0][0])?b||r[0][0].length:b||1;for(var x=L.shape(r),E=1,w=0;w<x.length;++w)E*=x[w];var M=ty(e,E);L.flatten(r,x,"",M),tb(e,M),e.alignment=1,e.width=m,e.height=y,e.channels=b,e.format=e.internalformat=te[b],e.needsFree=!0;}}else e.width=e.width||1,e.height=e.height||1,e.channels=e.channels||4;5126===e.type?_(i.extensions.indexOf("oes_texture_float")>=0,"oes_texture_float extension not enabled"):36193===e.type&&_(i.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled");}function F(t,e,r,i,a){var s=t.element,u=t.data,c=t.internalformat,l=t.format,f=t.type,d=t.width,h=t.height;I(t),s?n.texSubImage2D(e,a,r,i,l,f,s):t.compressed?n.compressedTexSubImage2D(e,a,r,i,c,d,h,u):t.needsCopy?(o(),n.copyTexSubImage2D(e,a,r,i,t.xOffset,t.yOffset,d,h)):n.texSubImage2D(e,a,r,i,d,h,l,f,u);}var O=[];function j(){return O.pop()||new T;}function R(t){t.needsFree&&N.freeType(t.data),T.call(t),O.push(t);}function z(){A.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16);}function G(t,e,n){var r=t.images[0]=j();t.mipmask=1,r.width=t.width=e,r.height=t.height=n,r.channels=t.channels=4;}function Y(t,e){var n=null;if(tv(e))S(n=t.images[0]=j(),t),k(n,e),t.mipmask=1;else if(D(t,e),Array.isArray(e.mipmap))for(var r=e.mipmap,i=0;i<r.length;++i)S(n=t.images[i]=j(),t),n.width>>=i,n.height>>=i,k(n,r[i]),t.mipmask|=1<<i;else S(n=t.images[0]=j(),t),k(n,e),t.mipmask=1;S(t,t.images[0]),t.compressed&&(33776===t.internalformat||33777===t.internalformat||33778===t.internalformat||33779===t.internalformat)&&_(t.width%4==0&&t.height%4==0,"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4");}function X(t,e){for(var r=t.images,i=0;i<r.length;++i){if(!r[i])return;!function(t,e,r){var i=t.element,a=t.data,s=t.internalformat,u=t.format,c=t.type,l=t.width,f=t.height;I(t),i?n.texImage2D(e,r,u,u,c,i):t.compressed?n.compressedTexImage2D(e,r,s,l,f,0,a):t.needsCopy?(o(),n.copyTexImage2D(e,r,u,t.xOffset,t.yOffset,l,f,0)):n.texImage2D(e,r,u,l,f,0,u,c,a||null);}(r[i],e,i);}}var U=[];function H(){var t=U.pop()||new z;A.call(t),t.mipmask=0;for(var e=0;e<16;++e)t.images[e]=null;return t;}function W(t){for(var e=t.images,n=0;n<e.length;++n)e[n]&&R(e[n]),e[n]=null;U.push(t);}function V(){this.minFilter=9728,this.magFilter=9728,this.wrapS=33071,this.wrapT=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352;}function q(t,e){if("min"in e){var n=e.min;_.parameter(n,d),t.minFilter=d[n],!(tt.indexOf(t.minFilter)>=0)||"faces"in e||(t.genMipmaps=!0);}if("mag"in e){var r=e.mag;_.parameter(r,f),t.magFilter=f[r];}var o=t.wrapS,a=t.wrapT;if("wrap"in e){var s=e.wrap;"string"==typeof s?(_.parameter(s,l),o=a=l[s]):Array.isArray(s)&&(_.parameter(s[0],l),_.parameter(s[1],l),o=l[s[0]],a=l[s[1]]);}else{if("wrapS"in e){var u=e.wrapS;_.parameter(u,l),o=l[u];}if("wrapT"in e){var h=e.wrapT;_.parameter(h,l),a=l[h];}}if(t.wrapS=o,t.wrapT=a,"anisotropic"in e){var g=e.anisotropic;_("number"==typeof g&&g>=1&&g<=i.maxAnisotropic,"aniso samples must be between 1 and "),t.anisotropic=e.anisotropic;}if("mipmap"in e){var p=!1;switch(typeof e.mipmap){case"string":_.parameter(e.mipmap,c,"invalid mipmap hint"),t.mipmapHint=c[e.mipmap],t.genMipmaps=!0,p=!0;break;case"boolean":p=t.genMipmaps=e.mipmap;break;case"object":_(Array.isArray(e.mipmap),"invalid mipmap type"),t.genMipmaps=!1,p=!0;break;default:_.raise("invalid mipmap type");}!p||"min"in e||(t.minFilter=9984);}}function Z(t,e){n.texParameteri(e,10241,t.minFilter),n.texParameteri(e,10240,t.magFilter),n.texParameteri(e,10242,t.wrapS),n.texParameteri(e,10243,t.wrapT),r.ext_texture_filter_anisotropic&&n.texParameteri(e,34046,t.anisotropic),t.genMipmaps&&(n.hint(33170,t.mipmapHint),n.generateMipmap(e));}var J=0,tr={},tl=i.maxTextureUnits,tf=Array(tl).map(function(){return null;});function td(t){A.call(this),this.mipmask=0,this.internalformat=6408,this.id=J++,this.refCount=1,this.target=t,this.texture=n.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new V,u.profile&&(this.stats={size:0});}function t_(t){n.activeTexture(33984),n.bindTexture(t.target,t.texture);}function tE(){var t=tf[0];t?n.bindTexture(t.target,t.texture):n.bindTexture(3553,null);}function tw(t){var e=t.texture;_(e,"must not double destroy texture");var r=t.unit,i=t.target;r>=0&&(n.activeTexture(33984+r),n.bindTexture(i,null),tf[r]=null),n.deleteTexture(e),t.texture=null,t.params=null,t.pixels=null,t.refCount=0,delete tr[t.id],s.textureCount--;}return e(td.prototype,{bind:function(){this.bindCount+=1;var t=this.unit;if(t<0){for(var e=0;e<tl;++e){var r=tf[e];if(r){if(r.bindCount>0)continue;r.unit=-1;}tf[e]=this,t=e;break;}t>=tl&&_.raise("insufficient number of texture units"),u.profile&&s.maxTextureUnits<t+1&&(s.maxTextureUnits=t+1),this.unit=t,n.activeTexture(33984+t),n.bindTexture(this.target,this.texture);}return t;},unbind:function(){this.bindCount-=1;},decRef:function(){--this.refCount<=0&&tw(this);}}),u.profile&&(s.getTotalTextureSize=function(){var t=0;return Object.keys(tr).forEach(function(e){t+=tr[e].stats.size;}),t;}),{create2D:function(t,e){var r=new td(3553);function o(t,e){var n=r.texInfo;V.call(n);var a=H();return"number"==typeof t?"number"==typeof e?G(a,0|t,0|e):G(a,0|t,0|t):t?(_.type(t,"object","invalid arguments to regl.texture"),q(n,t),Y(a,t)):G(a,1,1),n.genMipmaps&&(a.mipmask=(a.width<<1)-1),r.mipmask=a.mipmask,S(r,a),_.texture2D(n,a,i),r.internalformat=a.internalformat,o.width=a.width,o.height=a.height,t_(r),X(a,3553),Z(n,3553),tE(),W(a),u.profile&&(r.stats.size=tx(r.internalformat,r.type,a.width,a.height,n.genMipmaps,!1)),o.format=b[r.internalformat],o.type=x[r.type],o.mag=E[n.magFilter],o.min=w[n.minFilter],o.wrapS=M[n.wrapS],o.wrapT=M[n.wrapT],o;}return tr[r.id]=r,s.textureCount++,o(t,e),o.subimage=function(t,e,n,i){_(!!t,"must specify image data");var a=0|e,s=0|n,u=0|i,c=j();return S(c,r),c.width=0,c.height=0,k(c,t),c.width=c.width||(r.width>>u)-a,c.height=c.height||(r.height>>u)-s,_(r.type===c.type&&r.format===c.format&&r.internalformat===c.internalformat,"incompatible format for texture.subimage"),_(a>=0&&s>=0&&a+c.width<=r.width&&s+c.height<=r.height,"texture.subimage write out of bounds"),_(r.mipmask&1<<u,"missing mipmap data"),_(c.data||c.element||c.needsCopy,"missing image data"),t_(r),F(c,3553,a,s,u),tE(),R(c),o;},o.resize=function(t,e){var i=0|t,a=0|e||i;if(i===r.width&&a===r.height)return o;o.width=r.width=i,o.height=r.height=a,t_(r);for(var s=0;r.mipmask>>s;++s){var c=i>>s,l=a>>s;if(!c||!l)break;n.texImage2D(3553,s,r.format,c,l,0,r.format,r.type,null);}return tE(),u.profile&&(r.stats.size=tx(r.internalformat,r.type,i,a,!1,!1)),o;},o._reglType="texture2d",o._texture=r,u.profile&&(o.stats=r.stats),o.destroy=function(){r.decRef();},o;},createCube:function(t,e,r,o,a,c){var l=new td(34067);tr[l.id]=l,s.cubeCount++;var f=Array(6);function d(t,e,n,r,o,a){var s,c=l.texInfo;for(V.call(c),s=0;s<6;++s)f[s]=H();if("number"!=typeof t&&t){if("object"==typeof t){if(e)Y(f[0],t),Y(f[1],e),Y(f[2],n),Y(f[3],r),Y(f[4],o),Y(f[5],a);else if(q(c,t),D(l,t),"faces"in t){var h=t.faces;for(_(Array.isArray(h)&&6===h.length,"cube faces must be a length 6 array"),s=0;s<6;++s)_("object"==typeof h[s]&&!!h[s],"invalid input for cube map face"),S(f[s],l),Y(f[s],h[s]);}else for(s=0;s<6;++s)Y(f[s],t);}else _.raise("invalid arguments to cube map");}else{var g=0|t||1;for(s=0;s<6;++s)G(f[s],g,g);}for(S(l,f[0]),i.npotTextureCube||_($(l.width)&&$(l.height),"your browser does not support non power or two texture dimensions"),c.genMipmaps?l.mipmask=(f[0].width<<1)-1:l.mipmask=f[0].mipmask,_.textureCube(l,c,f,i),l.internalformat=f[0].internalformat,d.width=f[0].width,d.height=f[0].height,t_(l),s=0;s<6;++s)X(f[s],34069+s);for(Z(c,34067),tE(),u.profile&&(l.stats.size=tx(l.internalformat,l.type,d.width,d.height,c.genMipmaps,!0)),d.format=b[l.internalformat],d.type=x[l.type],d.mag=E[c.magFilter],d.min=w[c.minFilter],d.wrapS=M[c.wrapS],d.wrapT=M[c.wrapT],s=0;s<6;++s)W(f[s]);return d;}return d(t,e,r,o,a,c),d.subimage=function(t,e,n,r,i){_(!!e,"must specify image data"),_("number"==typeof t&&t===(0|t)&&t>=0&&t<6,"invalid face");var o=0|n,a=0|r,s=0|i,u=j();return S(u,l),u.width=0,u.height=0,k(u,e),u.width=u.width||(l.width>>s)-o,u.height=u.height||(l.height>>s)-a,_(l.type===u.type&&l.format===u.format&&l.internalformat===u.internalformat,"incompatible format for texture.subimage"),_(o>=0&&a>=0&&o+u.width<=l.width&&a+u.height<=l.height,"texture.subimage write out of bounds"),_(l.mipmask&1<<s,"missing mipmap data"),_(u.data||u.element||u.needsCopy,"missing image data"),t_(l),F(u,34069+t,o,a,s),tE(),R(u),d;},d.resize=function(t){var e=0|t;if(e!==l.width){d.width=l.width=e,d.height=l.height=e,t_(l);for(var r=0;r<6;++r)for(var i=0;l.mipmask>>i;++i)n.texImage2D(34069+r,i,l.format,e>>i,e>>i,0,l.format,l.type,null);return tE(),u.profile&&(l.stats.size=tx(l.internalformat,l.type,d.width,d.height,!1,!0)),d;}},d._reglType="textureCube",d._texture=l,u.profile&&(d.stats=l.stats),d.destroy=function(){l.decRef();},d;},clear:function(){for(var t=0;t<tl;++t)n.activeTexture(33984+t),n.bindTexture(3553,null),tf[t]=null;P(tr).forEach(tw),s.cubeCount=0,s.textureCount=0;},getTexture:function(t){return null;},restore:function(){for(var t=0;t<tl;++t){var e=tf[t];e&&(e.bindCount=0,e.unit=-1,tf[t]=null);}P(tr).forEach(function(t){t.texture=n.createTexture(),n.bindTexture(t.target,t.texture);for(var e=0;e<32;++e)if((t.mipmask&1<<e)!=0){if(3553===t.target)n.texImage2D(3553,e,t.internalformat,t.width>>e,t.height>>e,0,t.internalformat,t.type,null);else for(var r=0;r<6;++r)n.texImage2D(34069+r,e,t.internalformat,t.width>>e,t.height>>e,0,t.internalformat,t.type,null);}Z(t.texInfo,t.target);});},refresh:function(){for(var t=0;t<tl;++t){var e=tf[t];e&&(e.bindCount=0,e.unit=-1,tf[t]=null),n.activeTexture(33984+t),n.bindTexture(3553,null),n.bindTexture(34067,null);}}};}(a,d,y,function(){j.procs.poll();},m,f,o),k=tE(a,d,y,f,o),F=function(t,n,r,i,o,a){var s={cur:null,next:null,dirty:!1,setFBO:null},u=["rgba"],c=["rgba4","rgb565","rgb5 a1"];n.ext_srgb&&c.push("srgba"),n.ext_color_buffer_half_float&&c.push("rgba16f","rgb16f"),n.webgl_color_buffer_float&&c.push("rgba32f");var l=["uint8"];function f(t,e,n){this.target=t,this.texture=e,this.renderbuffer=n;var r=0,i=0;e?(r=e.width,i=e.height):n&&(r=n.width,i=n.height),this.width=r,this.height=i;}function d(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef());}function h(t,e,n){if(t){if(t.texture){var r=t.texture._texture,i=Math.max(1,r.width),o=Math.max(1,r.height);_(i===e&&o===n,"inconsistent width/height for supplied texture"),r.refCount+=1;}else{var a=t.renderbuffer._renderbuffer;_(a.width===e&&a.height===n,"inconsistent width/height for renderbuffer"),a.refCount+=1;}}}function g(e,n){n&&(n.texture?t.framebufferTexture2D(36160,e,n.target,n.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,n.renderbuffer._renderbuffer.renderbuffer));}function p(t){var e=3553,n=null,r=null,i=t;"object"==typeof t&&(i=t.data,"target"in t&&(e=0|t.target)),_.type(i,"function","invalid attachment data");var o=i._reglType;return"texture2d"===o?(n=i,_(3553===e)):"textureCube"===o?(n=i,_(e>=34069&&e<34075,"invalid cube map target")):"renderbuffer"===o?(r=i,e=36161):_.raise("invalid regl object for attachment"),new f(e,n,r);}function v(t,e,n,r,a){if(n){var s=i.create2D({width:t,height:e,format:r,type:a});return s._texture.refCount=0,new f(3553,s,null);}var u=o.create({width:t,height:e,format:r});return u._renderbuffer.refCount=0,new f(36161,null,u);}function m(t){return t&&(t.texture||t.renderbuffer);}function y(t,e,n){t&&(t.texture?t.texture.resize(e,n):t.renderbuffer&&t.renderbuffer.resize(e,n),t.width=e,t.height=n);}n.oes_texture_half_float&&l.push("half float","float16"),n.oes_texture_float&&l.push("float","float32");var b=0,x={};function E(){this.id=b++,x[this.id]=this,this.framebuffer=t.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null;}function w(t){t.colorAttachments.forEach(d),d(t.depthAttachment),d(t.stencilAttachment),d(t.depthStencilAttachment);}function M(e){var n=e.framebuffer;_(n,"must not double destroy framebuffer"),t.deleteFramebuffer(n),e.framebuffer=null,a.framebufferCount--,delete x[e.id];}function C(e){t.bindFramebuffer(36160,e.framebuffer);var n,i=e.colorAttachments;for(n=0;n<i.length;++n)g(36064+n,i[n]);for(n=i.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),g(36096,e.depthAttachment),g(36128,e.stencilAttachment),g(33306,e.depthStencilAttachment);var o=t.checkFramebufferStatus(36160);t.isContextLost()||36053===o||_.raise("framebuffer configuration not supported, status = "+tS[o]),t.bindFramebuffer(36160,s.next?s.next.framebuffer:null),s.cur=s.next,t.getError();}function A(t,i){var o=new E;function f(t,e){_(s.next!==o,"can not update framebuffer which is currently in use");var i,a=0,d=0,g=!0,y=!0,b=null,x=!0,E="rgba",M="uint8",A=1,S=null,D=null,I=null,T=!1;if("number"==typeof t)a=0|t,d=0|e||a;else if(t){if(_.type(t,"object","invalid arguments for framebuffer"),"shape"in t){var k=t.shape;_(Array.isArray(k)&&k.length>=2,"invalid shape for framebuffer"),a=k[0],d=k[1];}else"radius"in t&&(a=d=t.radius),"width"in t&&(a=t.width),"height"in t&&(d=t.height);("color"in t||"colors"in t)&&Array.isArray(b=t.color||t.colors)&&_(1===b.length||n.webgl_draw_buffers,"multiple render targets not supported"),!b&&("colorCount"in t&&_((A=0|t.colorCount)>0,"invalid color buffer count"),"colorTexture"in t&&(x=!!t.colorTexture,E="rgba4"),"colorType"in t&&(M=t.colorType,x?(_(n.oes_texture_float||!("float"===M||"float32"===M),"you must enable OES_texture_float in order to use floating point framebuffer objects"),_(n.oes_texture_half_float||!("half float"===M||"float16"===M),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):"half float"===M||"float16"===M?(_(n.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),E="rgba16f"):("float"===M||"float32"===M)&&(_(n.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),E="rgba32f"),_.oneOf(M,l,"invalid color type")),"colorFormat"in t&&(E=t.colorFormat,u.indexOf(E)>=0?x=!0:c.indexOf(E)>=0?x=!1:x?_.oneOf(t.colorFormat,u,"invalid color format for texture"):_.oneOf(t.colorFormat,c,"invalid color format for renderbuffer"))),("depthTexture"in t||"depthStencilTexture"in t)&&_(!(T=!!(t.depthTexture||t.depthStencilTexture))||n.webgl_depth_texture,"webgl_depth_texture extension not supported"),"depth"in t&&("boolean"==typeof t.depth?g=t.depth:(S=t.depth,y=!1)),"stencil"in t&&("boolean"==typeof t.stencil?y=t.stencil:(D=t.stencil,g=!1)),"depthStencil"in t&&("boolean"==typeof t.depthStencil?g=y=t.depthStencil:(I=t.depthStencil,g=!1,y=!1));}else a=d=1;var F=null,N=null,O=null,B=null;if(Array.isArray(b))F=b.map(p);else if(b)F=[p(b)];else for(i=0,F=Array(A);i<A;++i)F[i]=v(a,d,x,E,M);_(n.webgl_draw_buffers||F.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),_(F.length<=r.maxColorAttachments,"too many color attachments, not supported"),a=a||F[0].width,d=d||F[0].height,S?N=p(S):g&&!y&&(N=v(a,d,T,"depth","uint32")),D?O=p(D):y&&!g&&(O=v(a,d,!1,"stencil","uint8")),I?B=p(I):!S&&!D&&y&&g&&(B=v(a,d,T,"depth stencil","depth stencil")),_(!!S+!!D+!!I<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var P=null;for(i=0;i<F.length;++i)if(h(F[i],a,d),_(!F[i]||F[i].texture&&tw.indexOf(F[i].texture._texture.format)>=0||F[i].renderbuffer&&tA.indexOf(F[i].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+i+" is invalid"),F[i]&&F[i].texture){var L=tM[F[i].texture._texture.format]*tC[F[i].texture._texture.type];null===P?P=L:_(P===L,"all color attachments much have the same number of bits per pixel.");}return h(N,a,d),_(!N||N.texture&&6402===N.texture._texture.format||N.renderbuffer&&33189===N.renderbuffer._renderbuffer.format,"invalid depth attachment for framebuffer object"),h(O,a,d),_(!O||O.renderbuffer&&36168===O.renderbuffer._renderbuffer.format,"invalid stencil attachment for framebuffer object"),h(B,a,d),_(!B||B.texture&&34041===B.texture._texture.format||B.renderbuffer&&34041===B.renderbuffer._renderbuffer.format,"invalid depth-stencil attachment for framebuffer object"),w(o),o.width=a,o.height=d,o.colorAttachments=F,o.depthAttachment=N,o.stencilAttachment=O,o.depthStencilAttachment=B,f.color=F.map(m),f.depth=m(N),f.stencil=m(O),f.depthStencil=m(B),f.width=o.width,f.height=o.height,C(o),f;}return a.framebufferCount++,f(t,i),e(f,{resize:function(t,e){_(s.next!==o,"can not resize a framebuffer which is currently in use");var n=Math.max(0|t,1),r=Math.max(0|e||n,1);if(n===o.width&&r===o.height)return f;for(var i=o.colorAttachments,a=0;a<i.length;++a)y(i[a],n,r);return y(o.depthAttachment,n,r),y(o.stencilAttachment,n,r),y(o.depthStencilAttachment,n,r),o.width=f.width=n,o.height=f.height=r,C(o),f;},_reglType:"framebuffer",_framebuffer:o,destroy:function(){M(o),w(o);},use:function(t){s.setFBO({framebuffer:f},t);}});}return e(s,{getFramebuffer:function(t){if("function"==typeof t&&"framebuffer"===t._reglType){var e=t._framebuffer;if(e instanceof E)return e;}return null;},create:A,createCube:function(t){var o=Array(6);function a(t){_(0>o.indexOf(s.next),"can not update framebuffer which is currently in use");var r,c,f={color:null},d=0,h=null,g="rgba",p="uint8",v=1;if("number"==typeof t)d=0|t;else if(t){if(_.type(t,"object","invalid arguments for framebuffer"),"shape"in t){var m=t.shape;_(Array.isArray(m)&&m.length>=2,"invalid shape for framebuffer"),_(m[0]===m[1],"cube framebuffer must be square"),d=m[0];}else"radius"in t&&(d=0|t.radius),"width"in t?(d=0|t.width,"height"in t&&_(t.height===d,"must be square")):"height"in t&&(d=0|t.height);("color"in t||"colors"in t)&&Array.isArray(h=t.color||t.colors)&&_(1===h.length||n.webgl_draw_buffers,"multiple render targets not supported"),!h&&("colorCount"in t&&_((v=0|t.colorCount)>0,"invalid color buffer count"),"colorType"in t&&(_.oneOf(t.colorType,l,"invalid color type"),p=t.colorType),"colorFormat"in t&&(g=t.colorFormat,_.oneOf(t.colorFormat,u,"invalid color format for texture"))),"depth"in t&&(f.depth=t.depth),"stencil"in t&&(f.stencil=t.stencil),"depthStencil"in t&&(f.depthStencil=t.depthStencil);}else d=1;if(h){if(Array.isArray(h))for(r=0,c=[];r<h.length;++r)c[r]=h[r];else c=[h];}else{c=Array(v);var y={radius:d,format:g,type:p};for(r=0;r<v;++r)c[r]=i.createCube(y);}for(r=0,f.color=Array(c.length);r<c.length;++r){var b=c[r];_("function"==typeof b&&"textureCube"===b._reglType,"invalid cube map"),d=d||b.width,_(b.width===d&&b.height===d,"invalid cube map shape"),f.color[r]={target:34069,data:c[r]};}for(r=0;r<6;++r){for(var x=0;x<c.length;++x)f.color[x].target=34069+r;r>0&&(f.depth=o[0].depth,f.stencil=o[0].stencil,f.depthStencil=o[0].depthStencil),o[r]?o[r](f):o[r]=A(f);}return e(a,{width:d,height:d,color:c});}return a(t),e(a,{faces:o,resize:function(t){var e,n=0|t;if(_(n>0&&n<=r.maxCubeMapSize,"invalid radius for cube fbo"),n===a.width)return a;var i=a.color;for(e=0;e<i.length;++e)i[e].resize(n);for(e=0;e<6;++e)o[e].resize(n);return a.width=a.height=n,a;},_reglType:"framebufferCube",destroy:function(){o.forEach(function(t){t.destroy();});}});},clear:function(){P(x).forEach(M);},restore:function(){s.cur=null,s.next=null,s.dirty=!0,P(x).forEach(function(e){e.framebuffer=t.createFramebuffer(),C(e);});}});}(a,d,y,M,k,f),j=function(t,n,r,i,o,a,s,u,c,l,f,d,h,g,p){var v=l.Record,m={add:32774,subtract:32778,"reverse subtract":32779};r.ext_blend_minmax&&(m.min=32775,m.max=32776);var y=r.angle_instanced_arrays,b=r.webgl_draw_buffers,x={dirty:!0,profile:p.profile},E={},w=[],M={},A={};function S(t){return t.replace(".","_");}function D(t,e,n){var r=S(t);w.push(t),E[r]=x[r]=!!n,M[r]=e;}function I(t,e,n){var r=S(t);w.push(t),Array.isArray(n)?(x[r]=n.slice(),E[r]=n.slice()):x[r]=E[r]=n,A[r]=e;}D(tF,3024),D(tN,3042),I(tO,"blendColor",[0,0,0,0]),I(tB,"blendEquationSeparate",[32774,32774]),I(tP,"blendFuncSeparate",[1,0,1,0]),D(tL,2929,!0),I(tj,"depthFunc",513),I(tR,"depthRange",[0,1]),I(tz,"depthMask",!0),I(tG,tG,[!0,!0,!0,!0]),D(tY,2884),I(tX,"cullFace",1029),I(tU,tU,2305),I(tH,tH,1),D(tW,32823),I(tV,"polygonOffset",[0,0]),D(tq,32926),D(tZ,32928),I(tJ,"sampleCoverage",[1,!1]),D(tK,2960),I(tQ,"stencilMask",-1),I(t$,"stencilFunc",[519,0,-1]),I(t0,"stencilOpSeparate",[1028,7680,7680,7680]),I(t1,"stencilOpSeparate",[1029,7680,7680,7680]),D(t2,3089),I(t3,"scissor",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),I(t5,t5,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var k={gl:t,context:h,strings:n,next:E,current:x,draw:d,elements:a,buffer:o,shader:f,attributes:l.state,vao:l,uniforms:c,framebuffer:u,extensions:r,timer:g,isBufferArgs:ex},F={primTypes:q,compareFuncs:ev,blendFuncs:eg,blendEquations:m,stencilOps:em,glTypes:z,orientationType:eb};_.optional(function(){k.isArrayLike=Q;}),b&&(F.backBuffer=[1029],F.drawBuffer=T(i.maxDrawbuffers,function(t){return 0===t?[0]:T(t,function(t){return 36064+t;});}));var N=0;function O(){var t=function(){var t=0,n=[],r=[];function i(){var n=[],r=[];return e(function(){n.push.apply(n,tI(arguments));},{def:function(){var e="v"+t++;return r.push(e),arguments.length>0&&(n.push(e,"="),n.push.apply(n,tI(arguments)),n.push(";")),e;},toString:function(){return tT([r.length>0?"var "+r.join(",")+";":"",tT(n)]);}});}function o(){var t=i(),n=i(),r=t.toString,o=n.toString;function a(e,r){n(e,r,"=",t.def(e,r),";");}return e(function(){t.apply(t,tI(arguments));},{def:t.def,entry:t,exit:n,save:a,set:function(e,n,r){a(e,n),t(e,n,"=",r,";");},toString:function(){return r()+o();}});}var a=i(),s={};return{global:a,link:function(e){for(var i=0;i<r.length;++i)if(r[i]===e)return n[i];var o="g"+t++;return n.push(o),r.push(e),o;},block:i,proc:function(t,n){var r=[];function i(){var t="a"+r.length;return r.push(t),t;}n=n||0;for(var a=0;a<n;++a)i();var u=o(),c=u.toString;return s[t]=e(u,{arg:i,toString:function(){return tT(["function(",r.join(),"){",c(),"}"]);}});},scope:o,cond:function(){var t=tT(arguments),n=o(),r=o(),i=n.toString,a=r.toString;return e(n,{then:function(){return n.apply(n,tI(arguments)),this;},else:function(){return r.apply(r,tI(arguments)),this;},toString:function(){var e=a();return e&&(e="else{"+e+"}"),tT(["if(",t,"){",i(),"}",e]);}});},compile:function(){var t=['"use strict";',a,"return {"];Object.keys(s).forEach(function(e){t.push('"',e,'":',s[e].toString(),",");}),t.push("}");var e=tT(t).replace(/;/g,";\n").replace(/}/g,"}\n").replace(/{/g,"{\n");return Function.apply(null,n.concat(e)).apply(null,r);}};}(),r=t.link,i=t.global;t.id=N++,t.batchId="0";var o=r(k),a=t.shared={props:"a0"};Object.keys(k).forEach(function(t){a[t]=i.def(o,".",t);}),_.optional(function(){t.CHECK=r(_),t.commandStr=_.guessCommand(),t.command=r(t.commandStr),t.assert=function(t,e,n){t("if(!(",e,"))",this.CHECK,".commandRaise(",r(n),",",this.command,");");},F.invalidBlendCombinations=ep;});var s=t.next={},u=t.current={};Object.keys(A).forEach(function(t){Array.isArray(x[t])&&(s[t]=i.def(a.next,".",t),u[t]=i.def(a.current,".",t));});var c=t.constants={};Object.keys(F).forEach(function(t){c[t]=i.def(JSON.stringify(F[t]));}),t.invoke=function(e,n){switch(n.type){case 0:var i=["this",a.context,a.props,t.batchId];return e.def(r(n.data),".call(",i.slice(0,Math.max(n.data.length+1,4)),")");case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def("this",n.data);case 4:return n.data.append(t,e),n.data.ref;case 5:return n.data.toString();case 6:return n.data.map(function(n){return t.invoke(e,n);});}},t.attribCache={};var f={};return t.scopeAttrib=function(t){var e=n.id(t);if(e in f)return f[e];var i=l.scope[e];return i||(i=l.scope[e]=new v),f[e]=r(i);},t;}function B(t,e,n){var r=t.shared.context,i=t.scope();Object.keys(n).forEach(function(o){e.save(r,"."+o);var a=n[o].append(t,e);Array.isArray(a)?i(r,".",o,"=[",a.join(),"];"):i(r,".",o,"=",a,";");}),e(i);}function P(t,e,n,r){var i,o,a=t.shared,s=a.gl,u=a.framebuffer;b&&(i=e.def(a.extensions,".webgl_draw_buffers"));var c=t.constants,l=c.drawBuffer,f=c.backBuffer;o=n?n.append(t,e):e.def(u,".next"),r||e("if(",o,"!==",u,".cur){"),e("if(",o,"){",s,".bindFramebuffer(",36160,",",o,".framebuffer);"),b&&e(i,".drawBuffersWEBGL(",l,"[",o,".colorAttachments.length]);"),e("}else{",s,".bindFramebuffer(",36160,",null);"),b&&e(i,".drawBuffersWEBGL(",f,");"),e("}",u,".cur=",o,";"),r||e("}");}function L(t,e,n){var r=t.shared,i=r.gl,o=t.current,a=t.next,s=r.current,u=r.next,c=t.cond(s,".dirty");w.forEach(function(e){var r,l,f=S(e);if(!(f in n.state)){if(f in a){r=a[f],l=o[f];var d=T(x[f].length,function(t){return c.def(r,"[",t,"]");});c(t.cond(d.map(function(t,e){return t+"!=="+l+"["+e+"]";}).join("||")).then(i,".",A[f],"(",d,");",d.map(function(t,e){return l+"["+e+"]="+t;}).join(";"),";"));}else{r=c.def(u,".",f);var h=t.cond(r,"!==",s,".",f);c(h),f in M?h(t.cond(r).then(i,".enable(",M[f],");").else(i,".disable(",M[f],");"),s,".",f,"=",r,";"):h(i,".",A[f],"(",r,");",s,".",f,"=",r,";");}}}),0===Object.keys(n.state).length&&c(s,".dirty=false;"),e(c);}function j(t,e,n,r){var i=t.shared,o=t.current,a=i.current,s=i.gl;e_(Object.keys(n)).forEach(function(i){var u=n[i];if(!r||r(u)){var c=u.append(t,e);if(M[i]){var l=M[i];ew(u)?c?e(s,".enable(",l,");"):e(s,".disable(",l,");"):e(t.cond(c).then(s,".enable(",l,");").else(s,".disable(",l,");")),e(a,".",i,"=",c,";");}else if(Q(c)){var f=o[i];e(s,".",A[i],"(",c,");",c.map(function(t,e){return f+"["+e+"]="+t;}).join(";"),";");}else e(s,".",A[i],"(",c,");",a,".",i,"=",c,";");}});}function R(t,e){y&&(t.instancing=e.def(t.shared.extensions,".angle_instanced_arrays"));}function G(t,e,n,r,i){var o,a,s,u=t.shared,c=t.stats,l=u.current,f=u.timer,d=n.profile;function h(){return"undefined"==typeof performance?"Date.now()":"performance.now()";}function p(t){t(o=e.def(),"=",h(),";"),"string"==typeof i?t(c,".count+=",i,";"):t(c,".count++;"),g&&(r?t(a=e.def(),"=",f,".getNumPendingQueries();"):t(f,".beginQuery(",c,");"));}function v(t){t(c,".cpuTime+=",h(),"-",o,";"),g&&(r?t(f,".pushScopeStats(",a,",",f,".getNumPendingQueries(),",c,");"):t(f,".endQuery();"));}function m(t){var n=e.def(l,".profile");e(l,".profile=",t,";"),e.exit(l,".profile=",n,";");}if(d){if(ew(d)){d.enable?(p(e),v(e.exit),m("true")):m("false");return;}m(s=d.append(t,e));}else s=e.def(l,".profile");var y=t.block();p(y),e("if(",s,"){",y,"}");var b=t.block();v(b),e.exit("if(",s,"){",b,"}");}function Y(t,e,n,r,i){var o=t.shared;r.forEach(function(r){var a,s=r.name,u=n.attributes[s];if(u){if(!i(u))return;a=u.append(t,e);}else{if(!i(eA))return;var c=t.scopeAttrib(s);_.optional(function(){t.assert(e,c+".state","missing attribute "+s);}),a={},Object.keys(new v).forEach(function(t){a[t]=e.def(c,".",t);});}!function(n,r,i){var a=o.gl,s=e.def(n,".location"),u=e.def(o.attributes,"[",s,"]"),c=i.state,l=i.buffer,f=[i.x,i.y,i.z,i.w],d=["buffer","normalized","offset","stride"];function h(){e("if(!",u,".buffer){",a,".enableVertexAttribArray(",s,");}");var n,o=i.type;if(n=i.size?e.def(i.size,"||",r):r,e("if(",u,".type!==",o,"||",u,".size!==",n,"||",d.map(function(t){return u+"."+t+"!=="+i[t];}).join("||"),"){",a,".bindBuffer(",34962,",",l,".buffer);",a,".vertexAttribPointer(",[s,n,o,i.normalized,i.stride,i.offset],");",u,".type=",o,";",u,".size=",n,";",d.map(function(t){return u+"."+t+"="+i[t]+";";}).join(""),"}"),y){var c=i.divisor;e("if(",u,".divisor!==",c,"){",t.instancing,".vertexAttribDivisorANGLE(",[s,c],");",u,".divisor=",c,";}");}}function g(){e("if(",u,".buffer){",a,".disableVertexAttribArray(",s,");",u,".buffer=null;","}if(",tk.map(function(t,e){return u+"."+t+"!=="+f[e];}).join("||"),"){",a,".vertexAttrib4f(",s,",",f,");",tk.map(function(t,e){return u+"."+t+"="+f[e]+";";}).join(""),"}");}1===c?h():2===c?g():(e("if(",c,"===",1,"){"),h(),e("}else{"),g(),e("}"));}(t.link(r),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1;}}(r.info.type),a);});}function X(t,e,r,i,o){for(var a=t.shared,s=a.gl,u=0;u<i.length;++u){var c,l,f=i[u],d=f.name,h=f.info.type,g=r.uniforms[d],p=t.link(f)+".location";if(g){if(!o(g))continue;if(ew(g)){var v=g.value;if(_.command(null!=v,'missing uniform "'+d+'"',t.commandStr),35678===h||35680===h){_.command("function"==typeof v&&(35678===h&&("texture2d"===v._reglType||"framebuffer"===v._reglType)||35680===h&&("textureCube"===v._reglType||"framebufferCube"===v._reglType)),"invalid texture for uniform "+d,t.commandStr);var m=t.link(v._texture||v.color[0]._texture);e(s,".uniform1i(",p,",",m+".bind());"),e.exit(m,".unbind();");}else if(35674===h||35675===h||35676===h){_.optional(function(){_.command(Q(v),"invalid matrix for uniform "+d,t.commandStr),_.command(35674===h&&4===v.length||35675===h&&9===v.length||35676===h&&16===v.length,"invalid length for matrix uniform "+d,t.commandStr);});var y=t.global.def("new Float32Array(["+Array.prototype.slice.call(v)+"])"),b=2;35675===h?b=3:35676===h&&(b=4),e(s,".uniformMatrix",b,"fv(",p,",false,",y,");");}else{switch(h){case 5126:_.commandType(v,"number","uniform "+d,t.commandStr),c="1f";break;case 35664:_.command(Q(v)&&2===v.length,"uniform "+d,t.commandStr),c="2f";break;case 35665:_.command(Q(v)&&3===v.length,"uniform "+d,t.commandStr),c="3f";break;case 35666:_.command(Q(v)&&4===v.length,"uniform "+d,t.commandStr),c="4f";break;case 35670:_.commandType(v,"boolean","uniform "+d,t.commandStr),c="1i";break;case 5124:_.commandType(v,"number","uniform "+d,t.commandStr),c="1i";break;case 35671:case 35667:_.command(Q(v)&&2===v.length,"uniform "+d,t.commandStr),c="2i";break;case 35672:case 35668:_.command(Q(v)&&3===v.length,"uniform "+d,t.commandStr),c="3i";break;case 35673:case 35669:_.command(Q(v)&&4===v.length,"uniform "+d,t.commandStr),c="4i";}e(s,".uniform",c,"(",p,",",Q(v)?Array.prototype.slice.call(v):v,");");}continue;}l=g.append(t,e);}else{if(!o(eA))continue;l=e.def(a.uniforms,"[",n.id(d),"]");}35678===h?(_(!Array.isArray(l),"must specify a scalar prop for textures"),e("if(",l,"&&",l,'._reglType==="framebuffer"){',l,"=",l,".color[0];","}")):35680===h&&(_(!Array.isArray(l),"must specify a scalar prop for cube maps"),e("if(",l,"&&",l,'._reglType==="framebufferCube"){',l,"=",l,".color[0];","}")),_.optional(function(){function n(n,r){t.assert(e,n,'bad data or missing for uniform "'+d+'". '+r);}function r(t){_(!Array.isArray(l),"must not specify an array type for uniform"),n("typeof "+l+'==="'+t+'"',"invalid type, expected "+t);}function i(e,r){Array.isArray(l)?_(l.length===e,"must have length "+e):n(a.isArrayLike+"("+l+")&&"+l+".length==="+e,"invalid vector, should have length "+e,t.commandStr);}function o(e){_(!Array.isArray(l),"must not specify a value type"),n("typeof "+l+'==="function"&&'+l+'._reglType==="texture'+(3553===e?"2d":"Cube")+'"',"invalid texture type",t.commandStr);}switch(h){case 5124:case 5126:r("number");break;case 35667:case 35664:i(2,"number");break;case 35668:case 35665:i(3,"number");break;case 35669:case 35666:case 35674:i(4,"number");break;case 35670:r("boolean");break;case 35671:i(2,"boolean");break;case 35672:i(3,"boolean");break;case 35673:i(4,"boolean");break;case 35675:i(9,"number");break;case 35676:i(16,"number");break;case 35678:o(3553);break;case 35680:o(34067);}});var x=1;switch(h){case 35678:case 35680:var E=e.def(l,"._texture");e(s,".uniform1i(",p,",",E,".bind());"),e.exit(E,".unbind();");continue;case 5124:case 35670:c="1i";break;case 35667:case 35671:c="2i",x=2;break;case 35668:case 35672:c="3i",x=3;break;case 35669:case 35673:c="4i",x=4;break;case 5126:c="1f";break;case 35664:c="2f",x=2;break;case 35665:c="3f",x=3;break;case 35666:c="4f",x=4;break;case 35674:c="Matrix2fv";break;case 35675:c="Matrix3fv";break;case 35676:c="Matrix4fv";}if(e(s,".uniform",c,"(",p,","),"M"===c.charAt(0)){var w=Math.pow(h-35674+2,2),M=t.global.def("new Float32Array(",w,")");Array.isArray(l)?e("false,(",T(w,function(t){return M+"["+t+"]="+l[t];}),",",M,")"):e("false,(Array.isArray(",l,")||",l," instanceof Float32Array)?",l,":(",T(w,function(t){return M+"["+t+"]="+l+"["+t+"]";}),",",M,")");}else x>1?e(T(x,function(t){return Array.isArray(l)?l[t]:l+"["+t+"]";})):(_(!Array.isArray(l),"uniform value must not be an array"),e(l));e(");");}}function U(t,e,n,r){var i,o,a,s,u,c,l,f,d=t.shared,h=d.gl,g=d.draw,p=r.draw,v=(o=p.elements,a=e,o?((o.contextDep&&r.contextDynamic||o.propDep)&&(a=n),i=o.append(t,a)):i=a.def(g,".",t9),i&&a("if("+i+")"+h+".bindBuffer(34963,"+i+".buffer.buffer);"),i);function m(i){var o=p[i];return o?o.contextDep&&r.contextDynamic||o.propDep?o.append(t,n):o.append(t,e):e.def(g,".",i);}var b=m(et),x=m(en),E=(u=p.count,c=e,u?((u.contextDep&&r.contextDynamic||u.propDep)&&(c=n),s=u.append(t,c),_.optional(function(){u.MISSING&&t.assert(e,"false","missing vertex count"),u.DYNAMIC&&t.assert(c,s+">=0","missing vertex count");})):(s=c.def(g,".",ee),_.optional(function(){t.assert(c,s+">=0","missing vertex count");})),s);if("number"==typeof E){if(0===E)return;}else n("if(",E,"){"),n.exit("}");y&&(l=m(er),f=t.instancing);var w=v+".type",M=p.elements&&ew(p.elements);function C(){function t(){n(f,".drawElementsInstancedANGLE(",[b,E,w,x+"<<(("+w+"-5121)>>1)",l],");");}function e(){n(f,".drawArraysInstancedANGLE(",[b,x,E,l],");");}v?M?t():(n("if(",v,"){"),t(),n("}else{"),e(),n("}")):e();}function A(){function t(){n(h+".drawElements("+[b,E,w,x+"<<(("+w+"-5121)>>1)"]+");");}function e(){n(h+".drawArrays("+[b,x,E]+");");}v?M?t():(n("if(",v,"){"),t(),n("}else{"),e(),n("}")):e();}y&&("number"!=typeof l||l>=0)?"string"==typeof l?(n("if(",l,">0){"),C(),n("}else if(",l,"<0){"),A(),n("}")):C():A();}function H(t,e,n,r,i){var o=O(),a=o.proc("body",i);return _.optional(function(){o.commandStr=e.commandStr,o.command=o.link(e.commandStr);}),y&&(o.instancing=a.def(o.shared.extensions,".angle_instanced_arrays")),t(o,a,n,r),o.compile().body;}function W(t,e,n,r){R(t,e),n.useVAO?n.drawVAO?e(t.shared.vao,".setVAO(",n.drawVAO.append(t,e),");"):e(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(e(t.shared.vao,".setVAO(null);"),Y(t,e,n,r.attributes,function(){return!0;})),X(t,e,n,r.uniforms,function(){return!0;}),U(t,e,e,n);}function V(t,e,n,r){function i(){return!0;}t.batchId="a1",R(t,e),Y(t,e,n,r.attributes,i),X(t,e,n,r.uniforms,i),U(t,e,e,n);}function Z(t,e,n,r){R(t,e);var i=n.contextDep,o=e.def(),a=e.def();t.shared.props=a,t.batchId=o;var s=t.scope(),u=t.scope();function c(t){return t.contextDep&&i||t.propDep;}function l(t){return!c(t);}if(e(s.entry,"for(",o,"=0;",o,"<","a1",";++",o,"){",a,"=","a0","[",o,"];",u,"}",s.exit),n.needsContext&&B(t,u,n.context),n.needsFramebuffer&&P(t,u,n.framebuffer),j(t,u,n.state,c),n.profile&&c(n.profile)&&G(t,u,n,!1,!0),r)n.useVAO?n.drawVAO?c(n.drawVAO)?u(t.shared.vao,".setVAO(",n.drawVAO.append(t,u),");"):s(t.shared.vao,".setVAO(",n.drawVAO.append(t,s),");"):s(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(s(t.shared.vao,".setVAO(null);"),Y(t,s,n,r.attributes,l),Y(t,u,n,r.attributes,c)),X(t,s,n,r.uniforms,l),X(t,u,n,r.uniforms,c),U(t,s,u,n);else{var f=t.global.def("{}"),d=n.shader.progVar.append(t,u),h=u.def(d,".id"),g=u.def(f,"[",h,"]");u(t.shared.gl,".useProgram(",d,".program);","if(!",g,"){",g,"=",f,"[",h,"]=",t.link(function(e){return H(V,t,n,e,2);}),"(",d,");}",g,".call(this,a0[",o,"],",o,");");}}function J(t,e,n){var r=e.static[n];if(r&&function(t){if(!("object"!=typeof t||Q(t))){for(var e=Object.keys(t),n=0;n<e.length;++n)if(C.isDynamic(t[e[n]]))return!0;return!1;}}(r)){var i=t.global,o=Object.keys(r),a=!1,s=!1,u=!1,c=t.global.def("{}");o.forEach(function(e){var n=r[e];if(C.isDynamic(n)){"function"==typeof n&&(n=r[e]=C.unbox(n));var o=eC(n,null);a=a||o.thisDep,u=u||o.propDep,s=s||o.contextDep;}else{switch(i(c,".",e,"="),typeof n){case"number":i(n);break;case"string":i('"',n,'"');break;case"object":Array.isArray(n)&&i("[",n.join(),"]");break;default:i(t.link(n));}i(";");}}),e.dynamic[n]=new C.DynamicVariable(4,{thisDep:a,contextDep:s,propDep:u,ref:c,append:function(t,e){o.forEach(function(n){var i=r[n];if(C.isDynamic(i)){var o=t.invoke(e,i);e(c,".",n,"=",o,";");}});}}),delete e.static[n];}}return{next:E,current:x,procs:function(){var t,e=O(),n=e.proc("poll"),o=e.proc("refresh"),a=e.block();n(a),o(a);var s=e.shared,u=s.gl,c=s.next,l=s.current;a(l,".dirty=false;"),P(e,n),P(e,o,null,!0),y&&(t=e.link(y)),r.oes_vertex_array_object&&o(e.link(r.oes_vertex_array_object),".bindVertexArrayOES(null);");for(var f=0;f<i.maxAttributes;++f){var d=o.def(s.attributes,"[",f,"]"),h=e.cond(d,".buffer");h.then(u,".enableVertexAttribArray(",f,");",u,".bindBuffer(",34962,",",d,".buffer.buffer);",u,".vertexAttribPointer(",f,",",d,".size,",d,".type,",d,".normalized,",d,".stride,",d,".offset);").else(u,".disableVertexAttribArray(",f,");",u,".vertexAttrib4f(",f,",",d,".x,",d,".y,",d,".z,",d,".w);",d,".buffer=null;"),o(h),y&&o(t,".vertexAttribDivisorANGLE(",f,",",d,".divisor);");}return o(e.shared.vao,".currentVAO=null;",e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"),Object.keys(M).forEach(function(t){var r=M[t],i=a.def(c,".",t),s=e.block();s("if(",i,"){",u,".enable(",r,")}else{",u,".disable(",r,")}",l,".",t,"=",i,";"),o(s),n("if(",i,"!==",l,".",t,"){",s,"}");}),Object.keys(A).forEach(function(t){var r,i,s=A[t],f=x[t],d=e.block();if(d(u,".",s,"("),Q(f)){var h=f.length;r=e.global.def(c,".",t),i=e.global.def(l,".",t),d(T(h,function(t){return r+"["+t+"]";}),");",T(h,function(t){return i+"["+t+"]="+r+"["+t+"];";}).join("")),n("if(",T(h,function(t){return r+"["+t+"]!=="+i+"["+t+"]";}).join("||"),"){",d,"}");}else r=a.def(c,".",t),i=a.def(l,".",t),d(r,");",l,".",t,"=",r,";"),n("if(",r,"!==",i,"){",d,"}");o(d);}),e.compile();}(),compile:function(t,s,c,d,h){var g=O();g.stats=g.link(h),Object.keys(s.static).forEach(function(t){J(g,s,t);}),eh.forEach(function(e){J(g,t,e);});var p=function(t,e,s,c,d){var h,g,p,b,x,E,M,C,A,D,I,k,F=t.static,N=t.dynamic;_.optional(function(){var t=[t6,t4,t8,t9,et,en,ee,er,t7,"vao"].concat(w);function e(e){Object.keys(e).forEach(function(e){_.command(t.indexOf(e)>=0,'unknown parameter "'+e+'"',d.commandStr);});}e(F),e(N);});var O=function(t,e){var n=t.static;if("string"==typeof n[t8]&&"string"==typeof n[t4]){if(Object.keys(e.dynamic).length>0)return null;var r=e.static,i=Object.keys(r);if(i.length>0&&"number"==typeof r[i[0]]){for(var o=[],a=0;a<i.length;++a)_("number"==typeof r[i[a]],"must specify all vertex attribute locations when using vaos"),o.push([0|r[i[a]],i[a]]);return o;}}return null;}(t,e),B=function(t,e){var n=t.static,r=t.dynamic;if(t6 in n){var i=n[t6];return i?(i=u.getFramebuffer(i),_.command(i,"invalid framebuffer object"),eM(function(t,e){var n=t.link(i),r=t.shared;e.set(r.framebuffer,".next",n);var o=r.context;return e.set(o,"."+ea,n+".width"),e.set(o,"."+es,n+".height"),n;})):eM(function(t,e){var n=t.shared;e.set(n.framebuffer,".next","null");var r=n.context;return e.set(r,"."+ea,r+"."+ef),e.set(r,"."+es,r+"."+ed),"null";});}if(!(t6 in r))return null;var o=r[t6];return eC(o,function(t,e){var n=t.invoke(e,o),r=t.shared,i=r.framebuffer,a=e.def(i,".getFramebuffer(",n,")");_.optional(function(){t.assert(e,"!"+n+"||"+a,"invalid framebuffer object");}),e.set(i,".next",a);var s=r.context;return e.set(s,"."+ea,a+"?"+a+".width:"+s+"."+ef),e.set(s,"."+es,a+"?"+a+".height:"+s+"."+ed),a;});}(t,0),P=function(t,e,n){var r=t.static,i=t.dynamic;function o(t){if(t in r){var o,a,s=r[t];_.commandType(s,"object","invalid "+t,n.commandStr);var u=!0,c=0|s.x,l=0|s.y;return"width"in s?(o=0|s.width,_.command(o>=0,"invalid "+t,n.commandStr)):u=!1,"height"in s?(a=0|s.height,_.command(a>=0,"invalid "+t,n.commandStr)):u=!1,new eE(!u&&e&&e.thisDep,!u&&e&&e.contextDep,!u&&e&&e.propDep,function(t,e){var n=t.shared.context,r=o;"width"in s||(r=e.def(n,".",ea,"-",c));var i=a;return"height"in s||(i=e.def(n,".",es,"-",l)),[c,l,r,i];});}if(t in i){var f=i[t],d=eC(f,function(e,n){var r=e.invoke(n,f);_.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t);});var i=e.shared.context,o=n.def(r,".x|0"),a=n.def(r,".y|0"),s=n.def('"width" in ',r,"?",r,".width|0:","(",i,".",ea,"-",o,")"),u=n.def('"height" in ',r,"?",r,".height|0:","(",i,".",es,"-",a,")");return _.optional(function(){e.assert(n,s+">=0&&"+u+">=0","invalid "+t);}),[o,a,s,u];});return e&&(d.thisDep=d.thisDep||e.thisDep,d.contextDep=d.contextDep||e.contextDep,d.propDep=d.propDep||e.propDep),d;}return e?new eE(e.thisDep,e.contextDep,e.propDep,function(t,e){var n=t.shared.context;return[0,0,e.def(n,".",ea),e.def(n,".",es)];}):null;}var a=o(t5);if(a){var s=a;a=new eE(a.thisDep,a.contextDep,a.propDep,function(t,e){var n=s.append(t,e),r=t.shared.context;return e.set(r,"."+eu,n[2]),e.set(r,"."+ec,n[3]),n;});}return{viewport:a,scissor_box:o(t3)};}(t,B,d),L=function(t,e){var n=t.static,r=t.dynamic,i=function(){if(t9 in n){var t=n[t9];ex(t)?t=a.getElements(a.create(t,!0)):t&&(t=a.getElements(t),_.command(t,"invalid elements",e.commandStr));var i=eM(function(e,n){if(t){var r=e.link(t);return e.ELEMENTS=r,r;}return e.ELEMENTS=null,null;});return i.value=t,i;}if(t9 in r){var o=r[t9];return eC(o,function(t,e){var n=t.shared,r=n.isBufferArgs,i=n.elements,a=t.invoke(e,o),s=e.def("null"),u=e.def(r,"(",a,")"),c=t.cond(u).then(s,"=",i,".createStream(",a,");").else(s,"=",i,".getElements(",a,");");return _.optional(function(){t.assert(c.else,"!"+a+"||"+s,"invalid elements");}),e.entry(c),e.exit(t.cond(u).then(i,".destroyStream(",s,");")),t.ELEMENTS=s,s;});}return null;}();function o(t,o){if(t in n){var a=0|n[t];return _.command(!o||a>=0,"invalid "+t,e.commandStr),eM(function(t,e){return o&&(t.OFFSET=a),a;});}if(t in r){var s=r[t];return eC(s,function(e,n){var r=e.invoke(n,s);return o&&(e.OFFSET=r,_.optional(function(){e.assert(n,r+">=0","invalid "+t);})),r;});}return o&&i?eM(function(t,e){return t.OFFSET="0",0;}):null;}var s=o(en,!0);return{elements:i,primitive:function(){if(et in n){var t=n[et];return _.commandParameter(t,q,"invalid primitve",e.commandStr),eM(function(e,n){return q[t];});}if(et in r){var o=r[et];return eC(o,function(t,e){var n=t.constants.primTypes,r=t.invoke(e,o);return _.optional(function(){t.assert(e,r+" in "+n,"invalid primitive, must be one of "+Object.keys(q));}),e.def(n,"[",r,"]");});}return i?ew(i)?i.value?eM(function(t,e){return e.def(t.ELEMENTS,".primType");}):eM(function(){return 4;}):new eE(i.thisDep,i.contextDep,i.propDep,function(t,e){var n=t.ELEMENTS;return e.def(n,"?",n,".primType:",4);}):null;}(),count:function(){if(ee in n){var t=0|n[ee];return _.command("number"==typeof t&&t>=0,"invalid vertex count",e.commandStr),eM(function(){return t;});}if(ee in r){var o=r[ee];return eC(o,function(t,e){var n=t.invoke(e,o);return _.optional(function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">=0&&"+n+"===("+n+"|0)","invalid vertex count");}),n;});}if(i){if(ew(i)){if(i)return s?new eE(s.thisDep,s.contextDep,s.propDep,function(t,e){var n=e.def(t.ELEMENTS,".vertCount-",t.OFFSET);return _.optional(function(){t.assert(e,n+">=0","invalid vertex offset/element buffer too small");}),n;}):eM(function(t,e){return e.def(t.ELEMENTS,".vertCount");});var a=eM(function(){return -1;});return _.optional(function(){a.MISSING=!0;}),a;}var u=new eE(i.thisDep||s.thisDep,i.contextDep||s.contextDep,i.propDep||s.propDep,function(t,e){var n=t.ELEMENTS;return t.OFFSET?e.def(n,"?",n,".vertCount-",t.OFFSET,":-1"):e.def(n,"?",n,".vertCount:-1");});return _.optional(function(){u.DYNAMIC=!0;}),u;}return null;}(),instances:o(er,!1),offset:s};}(t,d),j=(h=t.static,g=t.dynamic,p={},w.forEach(function(t){var e=S(t);function n(n,r){if(t in h){var i=n(h[t]);p[e]=eM(function(){return i;});}else if(t in g){var o=g[t];p[e]=eC(o,function(t,e){return r(t,e,t.invoke(e,o));});}}switch(t){case tY:case tN:case tF:case tK:case tL:case t2:case tW:case tq:case tZ:case tz:return n(function(e){return _.commandType(e,"boolean",t,d.commandStr),e;},function(e,n,r){return _.optional(function(){e.assert(n,"typeof "+r+'==="boolean"',"invalid flag "+t,e.commandStr);}),r;});case tj:return n(function(e){return _.commandParameter(e,ev,"invalid "+t,d.commandStr),ev[e];},function(e,n,r){var i=e.constants.compareFuncs;return _.optional(function(){e.assert(n,r+" in "+i,"invalid "+t+", must be one of "+Object.keys(ev));}),n.def(i,"[",r,"]");});case tR:return n(function(t){return _.command(Q(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]&&t[0]<=t[1],"depth range is 2d array",d.commandStr),t;},function(t,e,n){return _.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===2&&typeof "+n+'[0]==="number"&&typeof '+n+'[1]==="number"&&'+n+"[0]<="+n+"[1]","depth range must be a 2d array");}),[e.def("+",n,"[0]"),e.def("+",n,"[1]")];});case tP:return n(function(t){_.commandType(t,"object","blend.func",d.commandStr);var n="srcRGB"in t?t.srcRGB:t.src,r="srcAlpha"in t?t.srcAlpha:t.src,i="dstRGB"in t?t.dstRGB:t.dst,o="dstAlpha"in t?t.dstAlpha:t.dst;return _.commandParameter(n,eg,e+".srcRGB",d.commandStr),_.commandParameter(r,eg,e+".srcAlpha",d.commandStr),_.commandParameter(i,eg,e+".dstRGB",d.commandStr),_.commandParameter(o,eg,e+".dstAlpha",d.commandStr),_.command(-1===ep.indexOf(n+", "+i),"unallowed blending combination (srcRGB, dstRGB) = ("+n+", "+i+")",d.commandStr),[eg[n],eg[i],eg[r],eg[o]];},function(e,n,r){var i=e.constants.blendFuncs;function o(o,a){var s=n.def('"',o,a,'" in ',r,"?",r,".",o,a,":",r,".",o);return _.optional(function(){e.assert(n,s+" in "+i,"invalid "+t+"."+o+a+", must be one of "+Object.keys(eg));}),s;}_.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid blend func, must be an object");});var a=o("src","RGB"),s=o("dst","RGB");_.optional(function(){var t=e.constants.invalidBlendCombinations;e.assert(n,t+".indexOf("+a+'+", "+'+s+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)");});var u=n.def(i,"[",a,"]"),c=n.def(i,"[",o("src","Alpha"),"]");return[u,n.def(i,"[",s,"]"),c,n.def(i,"[",o("dst","Alpha"),"]")];});case tB:return n(function(e){return"string"==typeof e?(_.commandParameter(e,m,"invalid "+t,d.commandStr),[m[e],m[e]]):"object"==typeof e?(_.commandParameter(e.rgb,m,t+".rgb",d.commandStr),_.commandParameter(e.alpha,m,t+".alpha",d.commandStr),[m[e.rgb],m[e.alpha]]):void _.commandRaise("invalid blend.equation",d.commandStr);},function(e,n,r){var i=e.constants.blendEquations,o=n.def(),a=n.def(),s=e.cond("typeof ",r,'==="string"');return _.optional(function(){function n(t,n,r){e.assert(t,r+" in "+i,"invalid "+n+", must be one of "+Object.keys(m));}n(s.then,t,r),e.assert(s.else,r+"&&typeof "+r+'==="object"',"invalid "+t),n(s.else,t+".rgb",r+".rgb"),n(s.else,t+".alpha",r+".alpha");}),s.then(o,"=",a,"=",i,"[",r,"];"),s.else(o,"=",i,"[",r,".rgb];",a,"=",i,"[",r,".alpha];"),n(s),[o,a];});case tO:return n(function(t){return _.command(Q(t)&&4===t.length,"blend.color must be a 4d array",d.commandStr),T(4,function(e){return+t[e];});},function(t,e,n){return _.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","blend.color must be a 4d array");}),T(4,function(t){return e.def("+",n,"[",t,"]");});});case tQ:return n(function(t){return _.commandType(t,"number",e,d.commandStr),0|t;},function(t,e,n){return _.optional(function(){t.assert(e,"typeof "+n+'==="number"',"invalid stencil.mask");}),e.def(n,"|0");});case t$:return n(function(n){_.commandType(n,"object",e,d.commandStr);var r=n.cmp||"keep",i=n.ref||0,o="mask"in n?n.mask:-1;return _.commandParameter(r,ev,t+".cmp",d.commandStr),_.commandType(i,"number",t+".ref",d.commandStr),_.commandType(o,"number",t+".mask",d.commandStr),[ev[r],i,o];},function(t,e,n){var r=t.constants.compareFuncs;return _.optional(function(){function i(){t.assert(e,Array.prototype.join.call(arguments,""),"invalid stencil.func");}i(n+"&&typeof ",n,'==="object"'),i('!("cmp" in ',n,")||(",n,".cmp in ",r,")");}),[e.def('"cmp" in ',n,"?",r,"[",n,".cmp]",":",7680),e.def(n,".ref|0"),e.def('"mask" in ',n,"?",n,".mask|0:-1")];});case t0:case t1:return n(function(n){_.commandType(n,"object",e,d.commandStr);var r=n.fail||"keep",i=n.zfail||"keep",o=n.zpass||"keep";return _.commandParameter(r,em,t+".fail",d.commandStr),_.commandParameter(i,em,t+".zfail",d.commandStr),_.commandParameter(o,em,t+".zpass",d.commandStr),[t===t1?1029:1028,em[r],em[i],em[o]];},function(e,n,r){var i=e.constants.stencilOps;function o(o){return _.optional(function(){e.assert(n,'!("'+o+'" in '+r+")||("+r+"."+o+" in "+i+")","invalid "+t+"."+o+", must be one of "+Object.keys(em));}),n.def('"',o,'" in ',r,"?",i,"[",r,".",o,"]:",7680);}return _.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t);}),[t===t1?1029:1028,o("fail"),o("zfail"),o("zpass")];});case tV:return n(function(t){_.commandType(t,"object",e,d.commandStr);var n=0|t.factor,r=0|t.units;return _.commandType(n,"number",e+".factor",d.commandStr),_.commandType(r,"number",e+".units",d.commandStr),[n,r];},function(e,n,r){return _.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t);}),[n.def(r,".factor|0"),n.def(r,".units|0")];});case tX:return n(function(t){var n=0;return"front"===t?n=1028:"back"===t&&(n=1029),_.command(!!n,e,d.commandStr),n;},function(t,e,n){return _.optional(function(){t.assert(e,n+'==="front"||'+n+'==="back"',"invalid cull.face");}),e.def(n,'==="front"?',1028,":",1029);});case tH:return n(function(t){return _.command("number"==typeof t&&t>=i.lineWidthDims[0]&&t<=i.lineWidthDims[1],"invalid line width, must be a positive number between "+i.lineWidthDims[0]+" and "+i.lineWidthDims[1],d.commandStr),t;},function(t,e,n){return _.optional(function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">="+i.lineWidthDims[0]+"&&"+n+"<="+i.lineWidthDims[1],"invalid line width");}),n;});case tU:return n(function(t){return _.commandParameter(t,eb,e,d.commandStr),eb[t];},function(t,e,n){return _.optional(function(){t.assert(e,n+'==="cw"||'+n+'==="ccw"',"invalid frontFace, must be one of cw,ccw");}),e.def(n+'==="cw"?2304:2305');});case tG:return n(function(t){return _.command(Q(t)&&4===t.length,"color.mask must be length 4 array",d.commandStr),t.map(function(t){return!!t;});},function(t,e,n){return _.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","invalid color.mask");}),T(4,function(t){return"!!"+n+"["+t+"]";});});case tJ:return n(function(t){_.command("object"==typeof t&&t,e,d.commandStr);var n="value"in t?t.value:1,r=!!t.invert;return _.command("number"==typeof n&&n>=0&&n<=1,"sample.coverage.value must be a number between 0 and 1",d.commandStr),[n,r];},function(t,e,n){return _.optional(function(){t.assert(e,n+"&&typeof "+n+'==="object"',"invalid sample.coverage");}),[e.def('"value" in ',n,"?+",n,".value:1"),e.def("!!",n,".invert")];});}}),p),R=function(t,e,r){var i,o=t.static,a=t.dynamic;function s(t){if(t in o){var e=n.id(o[t]);_.optional(function(){f.shader(ey[t],e,_.guessCommand());});var r=eM(function(){return e;});return r.id=e,r;}if(t in a){var i=a[t];return eC(i,function(e,n){var r=e.invoke(n,i),o=n.def(e.shared.strings,".id(",r,")");return _.optional(function(){n(e.shared.shader,".shader(",ey[t],",",o,",",e.command,");");}),o;});}return null;}var u=s(t8),c=s(t4),l=null;return ew(u)&&ew(c)?(l=f.program(c.id,u.id,null,r),i=eM(function(t,e){return t.link(l);})):i=new eE(u&&u.thisDep||c&&c.thisDep,u&&u.contextDep||c&&c.contextDep,u&&u.propDep||c&&c.propDep,function(t,e){var n,r,i=t.shared.shader;n=u?u.append(t,e):e.def(i,".",t8),r=c?c.append(t,e):e.def(i,".",t4);var o=i+".program("+r+","+n;return _.optional(function(){o+=","+t.command;}),e.def(o+")");}),{frag:u,vert:c,progVar:i,program:l};}(t,0,O);function G(t){var e=P[t];e&&(j[t]=e);}G(t5),G(S(t3));var Y=Object.keys(j).length>0,X={framebuffer:B,draw:L,shader:R,state:j,dirty:Y,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(X.profile=function(t){var e,n=t.static,r=t.dynamic;if(t7 in n){var i=!!n[t7];(e=eM(function(t,e){return i;})).enable=i;}else if(t7 in r){var o=r[t7];e=eC(o,function(t,e){return t.invoke(e,o);});}return e;}(t,d),X.uniforms=(b=s.static,x=s.dynamic,E={},Object.keys(b).forEach(function(t){var e,n=b[t];if("number"==typeof n||"boolean"==typeof n)e=eM(function(){return n;});else if("function"==typeof n){var r=n._reglType;"texture2d"===r||"textureCube"===r?e=eM(function(t){return t.link(n);}):"framebuffer"===r||"framebufferCube"===r?(_.command(n.color.length>0,'missing color attachment for framebuffer sent to uniform "'+t+'"',d.commandStr),e=eM(function(t){return t.link(n.color[0]);})):_.commandRaise('invalid data for uniform "'+t+'"',d.commandStr);}else Q(n)?e=eM(function(e){return e.global.def("[",T(n.length,function(r){return _.command("number"==typeof n[r]||"boolean"==typeof n[r],"invalid uniform "+t,e.commandStr),n[r];}),"]");}):_.commandRaise('invalid or missing data for uniform "'+t+'"',d.commandStr);e.value=n,E[t]=e;}),Object.keys(x).forEach(function(t){var e=x[t];E[t]=eC(e,function(t,n){return t.invoke(n,e);});}),E),X.drawVAO=X.scopeVAO=function(t,e){var n=t.static,r=t.dynamic;if("vao"in n){var i=n.vao;return null!==i&&null===l.getVAO(i)&&(i=l.createVAO(i)),eM(function(t){return t.link(l.getVAO(i));});}if("vao"in r){var o=r.vao;return eC(o,function(t,e){var n=t.invoke(e,o);return e.def(t.shared.vao+".getVAO("+n+")");});}return null;}(t,0),!X.drawVAO&&R.program&&!O&&r.angle_instanced_arrays){var U=!0,H=R.program.attributes.map(function(t){var n=e.static[t];return U=U&&!!n,n;});if(U&&H.length>0){var W=l.getVAO(l.createVAO(H));X.drawVAO=new eE(null,null,null,function(t,e){return t.link(W);}),X.useVAO=!0;}}return O?X.useVAO=!0:X.attributes=(M=e.static,C=e.dynamic,A={},Object.keys(M).forEach(function(t){var e=M[t],r=n.id(t),i=new v;if(ex(e))i.state=1,i.buffer=o.getBuffer(o.create(e,34962,!1,!0)),i.type=0;else{var a=o.getBuffer(e);if(a)i.state=1,i.buffer=a,i.type=0;else if(_.command("object"==typeof e&&e,"invalid data for attribute "+t,d.commandStr),"constant"in e){var s=e.constant;i.buffer="null",i.state=2,"number"==typeof s?i.x=s:(_.command(Q(s)&&s.length>0&&s.length<=4,"invalid constant for attribute "+t,d.commandStr),tk.forEach(function(t,e){e<s.length&&(i[t]=s[e]);}));}else{a=ex(e.buffer)?o.getBuffer(o.create(e.buffer,34962,!1,!0)):o.getBuffer(e.buffer),_.command(!!a,'missing buffer for attribute "'+t+'"',d.commandStr);var u=0|e.offset;_.command(u>=0,'invalid offset for attribute "'+t+'"',d.commandStr);var c=0|e.stride;_.command(c>=0&&c<256,'invalid stride for attribute "'+t+'", must be integer betweeen [0, 255]',d.commandStr);var l=0|e.size;_.command(!("size"in e)||l>0&&l<=4,'invalid size for attribute "'+t+'", must be 1,2,3,4',d.commandStr);var f=!!e.normalized,h=0;"type"in e&&(_.commandParameter(e.type,z,"invalid type for attribute "+t,d.commandStr),h=z[e.type]);var g=0|e.divisor;"divisor"in e&&(_.command(0===g||y,'cannot specify divisor for attribute "'+t+'", instancing not supported',d.commandStr),_.command(g>=0,'invalid divisor for attribute "'+t+'"',d.commandStr)),_.optional(function(){var n=d.commandStr,r=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(e).forEach(function(e){_.command(r.indexOf(e)>=0,'unknown parameter "'+e+'" for attribute pointer "'+t+'" (valid parameters are '+r+")",n);});}),i.buffer=a,i.state=1,i.size=l,i.normalized=f,i.type=h||a.dtype,i.offset=u,i.stride=c,i.divisor=g;}}A[t]=eM(function(t,e){var n=t.attribCache;if(r in n)return n[r];var o={isStream:!1};return Object.keys(i).forEach(function(t){o[t]=i[t];}),i.buffer&&(o.buffer=t.link(i.buffer),o.type=o.type||o.buffer+".dtype"),n[r]=o,o;});}),Object.keys(C).forEach(function(t){var e=C[t];A[t]=eC(e,function(n,r){var i=n.invoke(r,e),o=n.shared,a=n.constants,s=o.isBufferArgs,u=o.buffer;_.optional(function(){n.assert(r,i+"&&(typeof "+i+'==="object"||typeof '+i+'==="function")&&('+s+"("+i+")||"+u+".getBuffer("+i+")||"+u+".getBuffer("+i+".buffer)||"+s+"("+i+'.buffer)||("constant" in '+i+"&&(typeof "+i+'.constant==="number"||'+o.isArrayLike+"("+i+".constant))))",'invalid dynamic attribute "'+t+'"');});var c={isStream:r.def(!1)},l=new v;l.state=1,Object.keys(l).forEach(function(t){c[t]=r.def(""+l[t]);});var f=c.buffer,d=c.type;function h(t){r(c[t],"=",i,".",t,"|0;");}return r("if(",s,"(",i,")){",c.isStream,"=true;",f,"=",u,".createStream(",34962,",",i,");",d,"=",f,".dtype;","}else{",f,"=",u,".getBuffer(",i,");","if(",f,"){",d,"=",f,".dtype;",'}else if("constant" in ',i,"){",c.state,"=",2,";","if(typeof "+i+'.constant === "number"){',c[tk[0]],"=",i,".constant;",tk.slice(1).map(function(t){return c[t];}).join("="),"=0;","}else{",tk.map(function(t,e){return c[t]+"="+i+".constant.length>"+e+"?"+i+".constant["+e+"]:0;";}).join(""),"}}else{","if(",s,"(",i,".buffer)){",f,"=",u,".createStream(",34962,",",i,".buffer);","}else{",f,"=",u,".getBuffer(",i,".buffer);","}",d,'="type" in ',i,"?",a.glTypes,"[",i,".type]:",f,".dtype;",c.normalized,"=!!",i,".normalized;"),h("size"),h("offset"),h("stride"),h("divisor"),r("}}"),r.exit("if(",c.isStream,"){",u,".destroyStream(",f,");","}"),c;});}),A),X.context=(D=c.static,I=c.dynamic,k={},Object.keys(D).forEach(function(t){var e=D[t];k[t]=eM(function(t,n){return"number"==typeof e||"boolean"==typeof e?""+e:t.link(e);});}),Object.keys(I).forEach(function(t){var e=I[t];k[t]=eC(e,function(t,n){return t.invoke(n,e);});}),k),X;}(t,s,c,d,g);return function(t,e){var n=t.proc("draw",1);R(t,n),B(t,n,e.context),P(t,n,e.framebuffer),L(t,n,e),j(t,n,e.state),G(t,n,e,!1,!0);var r=e.shader.progVar.append(t,n);if(n(t.shared.gl,".useProgram(",r,".program);"),e.shader.program)W(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var i=t.global.def("{}"),o=n.def(r,".id"),a=n.def(i,"[",o,"]");n(t.cond(a).then(a,".call(this,a0);").else(a,"=",i,"[",o,"]=",t.link(function(n){return H(W,t,e,n,1);}),"(",r,");",a,".call(this,a0);"));}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;");}(g,p),function(t,e){var r=t.proc("scope",3);t.batchId="a2";var i=t.shared,o=i.current;function a(n){var o=e.shader[n];o&&r.set(i.shader,"."+n,o.append(t,r));}B(t,r,e.context),e.framebuffer&&e.framebuffer.append(t,r),e_(Object.keys(e.state)).forEach(function(n){var o=e.state[n].append(t,r);Q(o)?o.forEach(function(e,i){r.set(t.next[n],"["+i+"]",e);}):r.set(i.next,"."+n,o);}),G(t,r,e,!0,!0),[t9,en,ee,er,et].forEach(function(n){var o=e.draw[n];o&&r.set(i.draw,"."+n,""+o.append(t,r));}),Object.keys(e.uniforms).forEach(function(o){var a=e.uniforms[o].append(t,r);Array.isArray(a)&&(a="["+a.join()+"]"),r.set(i.uniforms,"["+n.id(o)+"]",a);}),Object.keys(e.attributes).forEach(function(n){var i=e.attributes[n].append(t,r),o=t.scopeAttrib(n);Object.keys(new v).forEach(function(t){r.set(o,"."+t,i[t]);});}),e.scopeVAO&&r.set(i.vao,".targetVAO",e.scopeVAO.append(t,r)),a(t4),a(t8),Object.keys(e.state).length>0&&(r(o,".dirty=true;"),r.exit(o,".dirty=true;")),r("a1(",t.shared.context,",a0,",t.batchId,");");}(g,p),function(t,e){var n=t.proc("batch",2);t.batchId="0",R(t,n);var r=!1,i=!0;Object.keys(e.context).forEach(function(t){r=r||e.context[t].propDep;}),r||(B(t,n,e.context),i=!1);var o=e.framebuffer,a=!1;function s(t){return t.contextDep&&r||t.propDep;}o?(o.propDep?r=a=!0:o.contextDep&&r&&(a=!0),a||P(t,n,o)):P(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(r=!0),L(t,n,e),j(t,n,e.state,function(t){return!s(t);}),e.profile&&s(e.profile)||G(t,n,e,!1,"a1"),e.contextDep=r,e.needsContext=i,e.needsFramebuffer=a;var u=e.shader.progVar;if(u.contextDep&&r||u.propDep)Z(t,n,e,null);else{var c=u.append(t,n);if(n(t.shared.gl,".useProgram(",c,".program);"),e.shader.program)Z(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var l=t.global.def("{}"),f=n.def(c,".id"),d=n.def(l,"[",f,"]");n(t.cond(d).then(d,".call(this,a0,a1);").else(d,"=",l,"[",f,"]=",t.link(function(n){return H(Z,t,e,n,2);}),"(",c,");",d,".call(this,a0,a1);"));}}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;");}(g,p),e(g.compile(),{destroy:function(){p.shader.program.destroy();}});}};}(a,l,d,y,b,E,0,F,{},x,w,{elements:null,primitive:4,count:-1,offset:0,instances:-1},m,h,o),R=function(e,n,r,i,o,a,s){function u(u){null===n.next?(_(o.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),c=5121):(_(null!==n.next.colorAttachments[0].texture,"You cannot read from a renderbuffer"),c=n.next.colorAttachments[0].texture._texture.type,a.oes_texture_float?(_(5121===c||5126===c,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),5126===c&&_(s.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):_(5121===c,"Reading from a framebuffer is only allowed for the type 'uint8'"));var c,l=0,f=0,d=i.framebufferWidth,h=i.framebufferHeight,g=null;t(u)?g=u:u&&(_.type(u,"object","invalid arguments to regl.read()"),l=0|u.x,f=0|u.y,_(l>=0&&l<i.framebufferWidth,"invalid x offset for regl.read"),_(f>=0&&f<i.framebufferHeight,"invalid y offset for regl.read"),d=0|(u.width||i.framebufferWidth-l),h=0|(u.height||i.framebufferHeight-f),g=u.data||null),g&&(5121===c?_(g instanceof Uint8Array,"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'"):5126===c&&_(g instanceof Float32Array,"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'")),_(d>0&&d+l<=i.framebufferWidth,"invalid width for read pixels"),_(h>0&&h+f<=i.framebufferHeight,"invalid height for read pixels"),r();var p=d*h*4;return g||(5121===c?g=new Uint8Array(p):5126===c&&(g=g||new Float32Array(p))),_.isTypedArray(g,"data buffer for regl.read() must be a typedarray"),_(g.byteLength>=p,"data buffer for regl.read() too small"),e.pixelStorei(3333,4),e.readPixels(l,f,d,h,6408,c,g),g;}return function(t){var e;return t&&"framebuffer"in t?(n.setFBO({framebuffer:t.framebuffer},function(){e=u(t);}),e):u(t);};}(a,F,j.procs.poll,m,s,d,y),Z=j.next,J=a.canvas,tr=[],tl=[],tf=[],td=[o.onDestroy],t_=null;function ei(){if(0===tr.length){h&&h.update(),t_=null;return;}t_=A.next(ei),ej();for(var t=tr.length-1;t>=0;--t){var e=tr[t];e&&e(m,null,0);}a.flush(),h&&h.update();}function eo(){!t_&&tr.length>0&&(t_=A.next(ei));}function el(){t_&&(A.cancel(ei),t_=null);}function ek(t){t.preventDefault(),u=!0,el(),tl.forEach(function(t){t();});}function eF(t){a.getError(),u=!1,c.restore(),w.restore(),b.restore(),M.restore(),k.restore(),F.restore(),x.restore(),h&&h.restore(),j.procs.refresh(),eo(),tf.forEach(function(t){t();});}function eN(t){function n(t,e){var n={},r={};return Object.keys(t).forEach(function(i){var o=t[i];if(C.isDynamic(o)){r[i]=C.unbox(o,i);return;}if(e&&Array.isArray(o)){for(var a=0;a<o.length;++a)if(C.isDynamic(o[a])){r[i]=C.unbox(o,i);return;}}n[i]=o;}),{dynamic:r,static:n};}_(!!t,"invalid args to regl({...})"),_.type(t,"object","invalid args to regl({...})");var r=n(t.context||{},!0),i=n(t.uniforms||{},!0),o=n(t.attributes||{},!1),a=n(function(t){var n=e({},t);function r(t){if(t in n){var e=n[t];delete n[t],Object.keys(e).forEach(function(r){n[t+"."+r]=e[r];});}}return delete n.uniforms,delete n.attributes,delete n.context,delete n.vao,"stencil"in n&&n.stencil.op&&(n.stencil.opBack=n.stencil.opFront=n.stencil.op,delete n.stencil.op),r("blend"),r("depth"),r("cull"),r("stencil"),r("polygonOffset"),r("scissor"),r("sample"),"vao"in t&&(n.vao=t.vao),n;}(t),!1),s={gpuTime:0,cpuTime:0,count:0},c=j.compile(a,o,i,r,s),l=c.draw,f=c.batch,d=c.scope,h=[];return e(function(t,e){var n;if(u&&_.raise("context lost"),"function"==typeof t)return d.call(this,null,t,0);if("function"==typeof e){if("number"==typeof t)for(n=0;n<t;++n)d.call(this,null,e,n);else if(!Array.isArray(t))return d.call(this,t,e,0);else for(n=0;n<t.length;++n)d.call(this,t[n],e,n);}else if("number"==typeof t){if(t>0)return f.call(this,function(t){for(;h.length<t;)h.push(null);return h;}(0|t),0|t);}else if(!Array.isArray(t))return l.call(this,t);else if(t.length)return f.call(this,t,t.length);},{stats:s,destroy:function(){c.destroy();}});}J&&(J.addEventListener(eD,ek,!1),J.addEventListener(eI,eF,!1));var eO=F.setFBO=eN({framebuffer:C.define.call(null,1,"framebuffer")});function eB(t,e){var n=0;j.procs.poll();var r=e.color;r&&(a.clearColor(+r[0]||0,+r[1]||0,+r[2]||0,+r[3]||0),n|=16384),"depth"in e&&(a.clearDepth(+e.depth),n|=256),"stencil"in e&&(a.clearStencil(0|e.stencil),n|=1024),_(!!n,"called regl.clear with no buffer specified"),a.clear(n);}function eP(t){return _.type(t,"function","regl.frame() callback must be a function"),tr.push(t),eo(),{cancel:function(){var e=eT(tr,t);_(e>=0,"cannot cancel a frame twice"),tr[e]=function t(){var e=eT(tr,t);tr[e]=tr[tr.length-1],tr.length-=1,tr.length<=0&&el();};}};}function eL(){var t=Z.viewport,e=Z.scissor_box;t[0]=t[1]=e[0]=e[1]=0,m.viewportWidth=m.framebufferWidth=m.drawingBufferWidth=t[2]=e[2]=a.drawingBufferWidth,m.viewportHeight=m.framebufferHeight=m.drawingBufferHeight=t[3]=e[3]=a.drawingBufferHeight;}function ej(){m.tick+=1,m.time=ez(),eL(),j.procs.poll();}function eR(){M.refresh(),eL(),j.procs.refresh(),h&&h.update();}function ez(){return(S()-g)/1e3;}eR();var eG=e(eN,{clear:function(t){if(_("object"==typeof t&&t,"regl.clear() takes an object as input"),"framebuffer"in t){if(t.framebuffer&&"framebufferCube"===t.framebuffer_reglType)for(var n=0;n<6;++n)eO(e({framebuffer:t.framebuffer.faces[n]},t),eB);else eO(t,eB);}else eB(null,t);},prop:C.define.bind(null,1),context:C.define.bind(null,2),this:C.define.bind(null,3),draw:eN({}),buffer:function(t){return b.create(t,34962,!1,!1);},elements:function(t){return E.create(t,!1);},texture:M.create2D,cube:M.createCube,renderbuffer:k.create,framebuffer:F.create,framebufferCube:F.createCube,vao:x.createVAO,attributes:s,frame:eP,on:function(t,e){var n;switch(_.type(e,"function","listener callback must be a function"),t){case"frame":return eP(e);case"lost":n=tl;break;case"restore":n=tf;break;case"destroy":n=td;break;default:_.raise("invalid event, must be one of frame,lost,restore,destroy");}return n.push(e),{cancel:function(){for(var t=0;t<n.length;++t)if(n[t]===e){n[t]=n[n.length-1],n.pop();return;}}};},limits:y,hasExtension:function(t){return y.extensions.indexOf(t.toLowerCase())>=0;},read:R,destroy:function(){tr.length=0,el(),J&&(J.removeEventListener(eD,ek),J.removeEventListener(eI,eF)),w.clear(),F.clear(),k.clear(),M.clear(),E.clear(),b.clear(),x.clear(),h&&h.clear(),td.forEach(function(t){t();});},_gl:a,_refresh:eR,poll:function(){ej(),h&&h.update();},now:ez,stats:f});return o.onDone(null,eG),eG;};},"object"==typeof e&&void 0!==t?t.exports=r():this.createREGL=r();},"60e4615f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("18a59a52")),o=r._(n("0aad631c")),a=function(t,e){return void 0===e&&(e=[]),(0,i.default)(t,function(t){return!(0,o.default)(e,t);});};},"60fd7c96":function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6;}function i(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),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,u=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,u);};}n.d(e,"__esModule",{value:!0}),n.e(e,{basis:function(){return r;},default:function(){return i;}});},"6103548e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.MESSAGE=e.ALGORITHM=void 0,e.ALGORITHM={pageRank:"pageRank",breadthFirstSearch:"breadthFirstSearch",connectedComponent:"connectedComponent",depthFirstSearch:"depthFirstSearch",detectCycle:"detectCycle",detectDirectedCycle:"detectDirectedCycle",detectAllCycles:"detectAllCycles",detectAllDirectedCycle:"detectAllDirectedCycle",detectAllUndirectedCycle:"detectAllUndirectedCycle",dijkstra:"dijkstra",findAllPath:"findAllPath",findShortestPath:"findShortestPath",floydWarshall:"floydWarshall",getAdjMatrix:"getAdjMatrix",getDegree:"getDegree",getInDegree:"getInDegree",getNeighbors:"getNeighbors",getOutDegree:"getOutDegree",labelPropagation:"labelPropagation",louvain:"louvain",GADDI:"GADDI",minimumSpanningTree:"minimumSpanningTree",SUCCESS:"SUCCESS",FAILURE:"FAILURE"},e.MESSAGE={SUCCESS:"SUCCESS",FAILURE:"FAILURE"};},"61483c47":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("4c6d310c"),i=n("168feef4"),o=n("22b52967");(0,i.registerNode)("circle",{options:{size:i.BaseGlobal.defaultNode.size,style:{x:0,y:0,stroke:i.BaseGlobal.defaultNode.style.stroke,fill:i.BaseGlobal.defaultNode.style.fill,lineWidth:i.BaseGlobal.defaultNode.style.lineWidth},labelCfg:{style:{fill:i.BaseGlobal.nodeLabel.style.fill,fontSize:i.BaseGlobal.nodeLabel.style.fontSize,fontFamily:i.BaseGlobal.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:i.BaseGlobal.defaultNode.linkPoints.size,lineWidth:i.BaseGlobal.defaultNode.linkPoints.lineWidth,fill:i.BaseGlobal.defaultNode.linkPoints.fill,stroke:i.BaseGlobal.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,r.__assign)({},i.BaseGlobal.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,i=this.getShapeStyle(t),a=(0,o.deepMix)({},void 0===n?{}:n,t.icon),s="".concat(this.type,"-keyShape"),u=e.addShape("circle",{attrs:i,className:s,name:s,draggable:!0});e.shapeMap[s]=u;var c=a.width,l=a.height,f=a.show,d=a.text;if(f){var h="".concat(this.type,"-icon");d?e.shapeMap[h]=e.addShape("text",{attrs:(0,r.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:h,name:h,draggable:!0}):e.shapeMap[h]=e.addShape("image",{attrs:(0,r.__assign)({x:-c/2,y:-l/2},a),className:h,name:h,draggable:!0});}return this.drawLinkPoints(t,e),u;},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints;if(n){var i=n||{},o=i.top,a=i.left,s=i.right,u=i.bottom,c=i.size,l=i.r,f=(0,r.__rest)(i,["top","left","right","bottom","size","r"]),d=this.getSize(t)[0]/2;if(a){var h="link-point-left";e.shapeMap[h]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:-d,y:0,r:c/2||l||5}),className:h,name:h,isAnchorPoint:!0});}if(s){var g="link-point-right";e.shapeMap[g]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:d,y:0,r:c/2||l||5}),className:g,name:g,isAnchorPoint:!0});}if(o){var p="link-point-top";e.shapeMap[p]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:-d,r:c/2||l||5}),className:p,name:p,isAnchorPoint:!0});}if(u){var v="link-point-bottom";e.shapeMap[v]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:d,r:c/2||l||5}),className:v,name:v,isAnchorPoint:!0});}}},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},i=(0,o.deepMix)({},e,n),a=this.getSize(t)[0]/2;return(0,r.__assign)({x:0,y:0,r:a},i);},update:function(t,e,n){var i=e.getContainer(),o=this.getSize(t),a=(0,r.__assign)({},t.style);void 0===t.style.stroke&&t.color&&(a.stroke=t.color),void 0!==t.style.r||isNaN(o[0])||(a.r=o[0]/2),this.updateShape(t,e,a,!0,n),this.updateLinkPoints(t,i);}},"single-node");},"615091c9":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1;};},"61a00822":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return a;},detectConnectedComponents:function(){return i;},detectStrongConnectComponents:function(){return o;}});var r=n("f29fe526"),i=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u=[],c=0;c<n.length;c++){var l=n[c];if(!s[l.id]){!function t(e){u.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o),a=0;a<i.length;++a)!function(e){var r=i[e];if(!s[r]){var o=n.filter(function(t){return t.id===r;});o.length>0&&t(o[0]);}}(a);}(l);for(var f=[];u.length>0;)f.push(u.pop());a.push(f);}}return a;},o=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},u={},c={},l=[],f=0,d=function t(e){u[e.id]=f,c[e.id]=f,f+=1,a.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o,"target").filter(function(t){return n.map(function(t){return t.id;}).indexOf(t)>-1;}),d=0;d<i.length;d++)!function(r){var o=i[r];if(u[o]||0===u[o])s[o]&&(c[e.id]=Math.min(c[e.id],u[o]));else{var a=n.filter(function(t){return t.id===o;});a.length>0&&t(a[0]),c[e.id]=Math.min(c[e.id],c[o]);}}(d);if(c[e.id]===u[e.id]){for(var h=[];a.length>0;){var g=a.pop();if(s[g.id]=!1,h.push(g),g===e)break;}h.length>0&&l.push(h);}},h=0;h<n.length;h++){var g=n[h];u[g.id]||0===u[g.id]||d(g);}return l;};function a(t,e){return e?o(t):i(t);}},"61db1663":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{each:function(){return r.each;},isAllowCapture:function(){return s;},isBrowser:function(){return o;},isFunction:function(){return r.isFunction;},isNil:function(){return r.isNil;},isObject:function(){return r.isObject;},isParent:function(){return a;},isString:function(){return r.isString;},mix:function(){return r.mix;},removeFromArray:function(){return i;},upperFirst:function(){return r.upperFirst;}});var r=n("22b52967");function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1);}var o="undefined"!=typeof window&&void 0!==window.document;function a(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break;}n=n.getParent();}return r;}function s(t){return t.cfg.visible&&t.cfg.capture;}},62164263:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("7048382e"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1});},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,o.each)(e||r,function(e,s){if("path"===s&&(0,o.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s){if(e){var u=(0,o.isObject)(e)?t.addArrow(r,a.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,a.SVG_ATTR_MAP[s]);i.setAttribute(a.SVG_ATTR_MAP[s],"url(#"+u+")");}else i.removeAttribute(a.SVG_ATTR_MAP[s]);}else a.SVG_ATTR_MAP[s]&&i.setAttribute(a.SVG_ATTR_MAP[s],e);});},e.prototype._formatPath=function(t){var e=t.map(function(t){return t.join(" ");}).join("");return~e.indexOf("NaN")?"":e;},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null;},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null;},e;}(r._(n("1bfab17d")).default);},62734055:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return i(e,t),e;}(n("6b75ac3a").Graph);e.Graph=o;},"62ae94f6":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.secondReg=e.dateReg=void 0,e.secondReg=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/,e.dateReg=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;},"62ef0bec":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0}),e.ERLayout=void 0;var a=n("5092cda5"),s=o(n("3114e5c2")),u=function(t){function e(e){var n=t.call(this)||this;return n.width=300,n.height=300,n.nodeMinGap=50,n.onLayoutEnd=function(){},e&&n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{width:300,height:300,nodeMinGap:50};},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges;return null==e||e.forEach(function(t){t.size||(t.size=[50,50]);}),(0,s.default)({nodes:e,edges:n},{width:this.width,height:this.height,nodeMinGap:this.nodeMinGap}).then(function(){t.onLayoutEnd&&t.onLayoutEnd();});},e.prototype.getType=function(){return"er";},e;}(a.Base);e.ERLayout=u;},"6308dac9":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("4c6d310c"),i=n("168feef4"),o=n("22b52967");(0,i.registerNode)("diamond",{options:{size:[80,80],style:{stroke:i.BaseGlobal.defaultNode.style.stroke,fill:i.BaseGlobal.defaultNode.style.fill,lineWidth:i.BaseGlobal.defaultNode.style.lineWidth},labelCfg:{style:{fill:i.BaseGlobal.nodeLabel.style.fill,fontSize:i.BaseGlobal.nodeLabel.style.fontSize,fontFamily:i.BaseGlobal.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:i.BaseGlobal.defaultNode.linkPoints.size,lineWidth:i.BaseGlobal.defaultNode.linkPoints.lineWidth,fill:i.BaseGlobal.defaultNode.linkPoints.fill,stroke:i.BaseGlobal.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,r.__assign)({},i.BaseGlobal.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,i=void 0===n?{}:n,o=this.getShapeStyle(t),a=e.addShape("path",{attrs:o,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=a;var s=i.width,u=i.height,c=i.show,l=i.text;return c&&(l?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,r.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,r.__assign)({x:-s/2,y:-u/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),a;},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,i=void 0===n?{}:n,o=i.top,a=i.left,s=i.right,u=i.bottom,c=i.size,l=i.r,f=(0,r.__rest)(i,["top","left","right","bottom","size","r"]),d=this.getSize(t),h=d[0],g=d[1];a&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:-h/2,y:0,r:c/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:h/2,y:0,r:c/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:-g/2,r:c/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:g/2,r:c/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}));},getPath:function(t){var e=this.getSize(t),n=e[0],r=e[1];return[["M",0,-r/2],["L",n/2,0],["L",0,r/2],["L",-n/2,0],["Z"]];},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},i=(0,o.mix)({},e,n),a=this.getPath(t);return(0,r.__assign)({path:a},i);},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,a=this.getPath(t),s={stroke:t.color,path:a},u=e.get("keyShape"),c=(0,o.mix)({},i,u.attr(),s);c=(0,o.mix)(c,t.style),this.updateShape(t,e,c,!0,n),this.updateLinkPoints(t,r);}},"single-node");},"6319d61e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("d54fbbc1")),o=r._(n("3bc7b30a"));function a(t,e,n,r,a,s,u,c){return(0,i.default)(t+a,e,t+n-a,e,s,u,c)||(0,i.default)(t+n,e+a,t+n,e+r-a,s,u,c)||(0,i.default)(t+n-a,e+r,t+a,e+r,s,u,c)||(0,i.default)(t,e+r-a,t,e+a,s,u,c)||(0,o.default)(t+n-a,e+a,a,1.5*Math.PI,2*Math.PI,s,u,c)||(0,o.default)(t+n-a,e+r-a,a,0,.5*Math.PI,s,u,c)||(0,o.default)(t+a,e+r-a,a,.5*Math.PI,Math.PI,s,u,c)||(0,o.default)(t+a,e+a,a,Math.PI,1.5*Math.PI,s,u,c);}},"633b2151":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe"),i=n("4c6d310c"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.isGroup=function(){return!0;},e.prototype.isEntityGroup=function(){return!1;},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone());}return e;},e;}(r._(n("25877146")).default);},"634a0cd7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getBrowserName",{enumerable:!0,get:function(){return r;}});var r=function(){var t=navigator.userAgent.toLowerCase();return t.indexOf("firefox")>-1?"firefox":t.indexOf("safari")>-1?"safari":t.indexOf("opr")>-1?"opera":t.indexOf("chrome")>-1?"chrome":t.indexOf("trident")>-1?"ie 11":t.indexOf("ie")>-1?"ie":"unknown";};},"63533c0e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return y;}});var r=n("777fffbe"),i=r._(n("bf60a691")),o=r._(n("d39d3698")),a=r._(n("efdec170")),s=r._(n("c6f93d8f")),u=r._(n("08073ef3")),c=r._(n("4df530e7")),l=r._(n("4fea9d48")),f=r._(n("aa8512ed")),d=r._(n("a8f77c5d")),h=r._(n("c54dbb0e")),g=r._(n("4a3e9761")),p=r._(n("b208d868")),v=r._(n("137418b1")),m=r._(n("a90422f6")),y={PluginBase:p.default,Menu:o.default,Grid:i.default,Minimap:a.default,Bundling:s.default,ToolBar:c.default,Tooltip:l.default,Fisheye:u.default,TimeBar:f.default,ImageMinimap:d.default,EdgeFilterLens:h.default,SnapLine:g.default,Legend:v.default,Annotation:m.default};},"6360845b":function(t,e,n){var r,i,o,a,s,u,c,l,f,d,h,g,p,v,m,y=!1;function b(){if(!y){y=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(g=/\b(iPhone|iP[ao]d)/.exec(t),p=/\b(iP[ao]d)/.exec(t),d=/Android/i.exec(t),v=/FBAN\/\w+;/i.exec(t),m=/Mobile/i.exec(t),h=!!/Win64/.exec(t),e){(r=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN)&&document&&document.documentMode&&(r=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);u=b?parseFloat(b[1])+4:r,i=e[2]?parseFloat(e[2]):NaN,o=e[3]?parseFloat(e[3]):NaN,s=(a=e[4]?parseFloat(e[4]):NaN)&&(e=/(?:Chrome\/(\d+\.\d+))/.exec(t))&&e[1]?parseFloat(e[1]):NaN;}else r=i=o=s=a=NaN;if(n){if(n[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);c=!x||parseFloat(x[1].replace("_","."));}else c=!1;l=!!n[2],f=!!n[3];}else c=l=f=!1;}}var x={ie:function(){return b()||r;},ieCompatibilityMode:function(){return b()||u>r;},ie64:function(){return x.ie()&&h;},firefox:function(){return b()||i;},opera:function(){return b()||o;},webkit:function(){return b()||a;},safari:function(){return x.webkit();},chrome:function(){return b()||s;},windows:function(){return b()||l;},osx:function(){return b()||c;},linux:function(){return b()||f;},iphone:function(){return b()||g;},mobile:function(){return b()||g||p||d||m;},nativeApp:function(){return b()||v;},android:function(){return b()||d;},ipad:function(){return b()||p;}};t.exports=x;},"64128a30":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("71b016a7"));function i(t){var e,n,i,o=(0,r.default)(.1);function a(t){for(var r,o=0,a=e.length;o<a;++o)r=e[o],r.vy+=(i[o]-r.y)*n[o]*t;}function s(){if(e){var r,a=e.length;for(r=0,n=Array(a),i=Array(a);r<a;++r)n[r]=isNaN(i[r]=+t(e[r],r,e))?0:+o(e[r],r,e);}}return"function"!=typeof t&&(t=(0,r.default)(null==t?0:+t)),a.initialize=function(t){e=t,s();},a.strength=function(t){return arguments.length?(o="function"==typeof t?t:(0,r.default)(+t),s(),a):o;},a.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),s(),a):t;},a;}},64727459:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e;}return(0,i.__extends)(e,t),e.prototype.scale=function(t){if((0,o.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e);},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,o.head)(e),r=(0,o.last)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),(0,o.isNil)(this.minLimit)||(this.min=n),(0,o.isNil)(this.maxLimit)||(this.max=r);},e.prototype.setDomain=function(){var t=(0,o.getRange)(this.values),e=t.min,n=t.max;(0,o.isNil)(this.min)&&(this.min=e),(0,o.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n);},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,o.filter)(n,function(t){return t>=e.min&&t<=e.max;})),n;},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n);},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());},e;}(r._(n("65691558")).default);},"6495a352":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"parseRadius",{enumerable:!0,get:function(){return i;}});var r=n("22b52967");function i(t){var e=0,n=0,i=0,o=0;return(0,r.isArray)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o};}},64978039:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("300ecc66");function i(t){return new Date(t).getFullYear();}function o(t){return new Date(t).getMonth();}function a(t){var e=t.min,n=t.max,a=t.minTickInterval,s=t.tickCount,u=t.tickInterval,c=[];!u&&(u=(n-e)/s,a&&u<a&&(u=a)),u=Math.max(Math.floor((n-e)/4095),u);var l=i(e);if(u>r.YEAR)for(var f=i(n),d=Math.ceil(u/r.YEAR),h=l;h<=f+d;h+=d)c.push(new Date(h,0,1).getTime());else if(u>r.MONTH)for(var g,p,v,m=Math.ceil(u/r.MONTH),y=o(e),b=(g=i(e),p=i(n),v=o(e),(p-g)*12+(o(n)-v)%12),h=0;h<=b+m;h+=m)c.push(new Date(l,h+y,1).getTime());else if(u>r.DAY)for(var x=new Date(e),_=x.getFullYear(),E=x.getMonth(),w=x.getDate(),M=Math.ceil(u/r.DAY),C=Math.ceil((n-e)/r.DAY),h=0;h<C+M;h+=M)c.push(new Date(_,E,w+h).getTime());else if(u>r.HOUR)for(var x=new Date(e),_=x.getFullYear(),E=x.getMonth(),M=x.getDate(),A=x.getHours(),S=Math.ceil(u/r.HOUR),D=Math.ceil((n-e)/r.HOUR),h=0;h<=D+S;h+=S)c.push(new Date(_,E,M,A+h).getTime());else if(u>r.MINUTE)for(var I=Math.ceil((n-e)/6e4),T=Math.ceil(u/r.MINUTE),h=0;h<=I+T;h+=T)c.push(e+h*r.MINUTE);else{var k=u;k<r.SECOND&&(k=r.SECOND);for(var F=Math.floor(e/r.SECOND)*r.SECOND,N=Math.ceil((n-e)/r.SECOND),O=Math.ceil(k/r.SECOND),h=0;h<N+O;h+=O)c.push(F+h*r.SECOND);}return c.length>=512&&console.warn("Notice: current ticks length("+c.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+u+") is too small, increase the value to solve the problem!"),c;}},"649d4c5d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});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));};},"649d7edf":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,i);}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n];}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n);};Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var o=n("ef785247");Object.defineProperty(e,"registerLayout",{enumerable:!0,get:function(){return o.registerLayout;}}),Object.defineProperty(e,"unRegisterLayout",{enumerable:!0,get:function(){return o.unRegisterLayout;}}),Object.defineProperty(e,"getLayoutByName",{enumerable:!0,get:function(){return o.getLayoutByName;}}),i(n("76d43d1c"),e);},"650800ec":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("dfdb2ac4"),i=function(t,e,n){for(var r,i=n;e.length&&(r=e[e.length-1]).i<=i;)e.pop(),null==t||t.push(r.vs),i++;return i;};e.default=function(t,e,n,o){var a,s,u=(0,r.partition)(t,function(t){var e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return o?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter");}),c=u.lhs,l=u.rhs.sort(function(t,e){return-t.i- -e.i;}),f=[],d=0,h=0,g=0;null==c||c.sort((a=!!e,s=!!n,function(t,e){if(void 0!==t.fixorder&&void 0!==e.fixorder)return t.fixorder-e.fixorder;if(t.barycenter<e.barycenter)return -1;if(t.barycenter>e.barycenter)return 1;if(s&&void 0!==t.order&&void 0!==e.order){if(t.order<e.order)return -1;if(t.order>e.order)return 1;}return a?e.i-t.i:t.i-e.i;})),g=i(f,l,g),null==c||c.forEach(function(t){var e;g+=null===(e=t.vs)||void 0===e?void 0:e.length,f.push(t.vs),d+=t.barycenter*t.weight,h+=t.weight,g=i(f,l,g);});var p={vs:f.flat()};return h&&(p.barycenter=d/h,p.weight=h),p;};},"652a6d72":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{CLS_LABEL_BG_SUFFIX:function(){return v;},shapeBase:function(){return m;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("528465ee")),a=n("f6fd9972"),s=n("22b52967"),u=n("85b3418c");function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t;}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t;})(t);}var l=a.ext.transform,f="-shape",d="-label",h=["startArrow","endArrow"],g={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},p={edge:{lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},node:g,combo:g},v="-label-bg",m={options:{labelCfg:{style:{fontFamily:o.default.windowFontFamily}},descriptionCfg:{style:{fontFamily:o.default.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(t){return{};},getOptions:function(t,e){return"move"===e||(null==e?void 0:e.includes("bbox"))?t:(0,s.deepMix)({},this.options,this.getCustomConfig(t)||{},t);},draw:function(t,e){e.shapeMap={},this.mergeStyle=this.getOptions(t);var n=this.drawShape(t,e);if(n.set("className",this.itemType+f),e.shapeMap[this.itemType+f]=n,t.label){var r=this.drawLabel(t,e);r.set("className",this.itemType+d),e.shapeMap[this.itemType+d]=r;}return n;},afterDraw:function(t,e,n){},drawShape:function(t,e){return null;},drawLabel:function(t,e){var n=(this.mergeStyle||this.getOptions(t)||{}).labelCfg,r=this.getLabelStyle(t,n||{},e),i=r.rotate;delete r.rotate;var o=e.addShape("text",{attrs:r,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&""!==i){var a=o.getBBox(),s=[1,0,0,0,1,0,0,0,1];if(r.rotateCenter)switch(r.rotateCenter){case"center":default:s=l(s,[["t",-a.width/2,-a.height/2],["r",i],["t",a.width/2,a.height/2]]);break;case"lefttop":s=l(s,[["t",-r.x,-r.y],["r",i],["t",r.x,r.y]]);break;case"leftcenter":s=l(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]]);}else s=l(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]]);o.setMatrix(s);}if(r.background){var u=this.drawLabelBg(t,e,o),c=this.itemType+v;u.set("classname",c),e.shapeMap[c]=u,o.toFront();}return o;},drawLabelBg:function(t,e,n){var r=this.options.labelCfg,i=(0,s.mix)({},r,t.labelCfg),o=this.getLabelBgStyleByPosition(n,i),a=e.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return e.shapeMap["text-bg-shape"]=a,a;},getLabelStyleByPosition:function(t,e,n){return{text:t.label};},getLabelBgStyleByPosition:function(t,e){return{};},getLabelStyle:function(t,e,n){var r=this.getLabelStyleByPosition(t,e,n),a="".concat(this.itemType,"Label"),s=o.default[a]?o.default[a].style:null;return(0,i.__assign)((0,i.__assign)((0,i.__assign)({},s),r),e.style);},getShapeStyle:function(t){return t.style;},update:function(t,e,n){this.updateShapeStyle(t,e,n),this.updateLabel(t,e,n);},updateShapeStyle:function(t,e,n){var r,i=e.getContainer(),o=e.getKeyShape(),a=(0,s.mix)({},o.attr(),t.style),u=function(t){var e,n=a[t];if((0,s.isPlainObject)(n)){var u=(null===(r=i.shapeMap)||void 0===r?void 0:r[t])||i.find(function(e){return e.get("name")===t;});null==u||u.attr(n);}else o.attr(((e={})[t]=n,e));};for(var c in a)u(c);},updateLabel:function(t,e,n){var r,o,a=e.getContainer(),u=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,c=void 0===u?{}:u,f=this.itemType+d,h=a.shapeMap[f]||a.find(function(t){return t.get("className")===f;}),g=this.itemType+v,p=a.shapeMap[g]||a.find(function(t){return t.get("className")===g;});if(h&&void 0===t.label&&(a.removeChild(h),delete a.shapeMap[f],p&&(a.removeChild(p),delete a.shapeMap[g])),t.label||""===t.label){if(h){n&&"bbox|label"!==n&&("edge"!==this.itemType||"style"===n)||(c=(0,s.deepMix)(c,t.labelCfg));var m=this.getLabelStyleByPosition(t,c,a),y=null===(r=t.labelCfg)||void 0===r?void 0:r.style,b=(0,i.__assign)((0,i.__assign)({},m),y),x=b.rotate;if(delete b.rotate,isNaN(x)||""===x)(null===(o=h.getMatrix())||void 0===o?void 0:o[4])!==1&&h.resetMatrix(),h.attr(b);else{var _=[1,0,0,0,1,0,0,0,1];_=l(_,[["t",-b.x,-b.y],["r",x],["t",b.x,b.y]]),b.matrix=_,h.attr(b);}if(p){if(b.background){var E=this.getLabelBgStyleByPosition(h,c);p.attr(E);}else a.removeChild(p);}else b.background&&((p=this.drawLabelBg(t,a,h)).set("classname",g),a.shapeMap[g]=p,h.toFront());}else{var w=this.drawLabel(t,a);w.set("className",f),a.shapeMap[f]=w;}}},afterUpdate:function(t,e){},setState:function(t,e,n){var r,i,o,a=n.get("keyShape");if(a&&!a.destroyed){var l=n.getType(),f=(0,s.isBoolean)(e)?t:"".concat(t,":").concat(e),d=this.getStateStyle(f,n),g=n.getStateStyle(f);if(g||d){var v=(0,s.mix)({},g||d),m=n.getContainer(),y={x:1,y:1,cx:1,cy:1,matrix:1};if("combo"===l&&(y.r=1,y.width=1,y.height=1),e){var b=function(t){var e,n=v[t];if((0,s.isPlainObject)(n)&&!h.includes(t)){var r=(null===(o=m.shapeMap)||void 0===o?void 0:o[t])||m.find(function(e){return e.get("name")===t;});null==r||r.attr(n);}else a.attr(((e={})[t]=n,e));};for(var x in v)b(x);}else{var _=(0,u.cloneBesidesImg)(n.getCurrentStatesStyle()),E=n.getModel(),w=(0,s.mix)({},E.style,(0,u.cloneBesidesImg)(n.getOriginStyle())),M=a.get("name"),C=a.attr(),A={};Object.keys(C).forEach(function(t){if("img"!==t){var e=C[t];e&&"object"===c(e)?A[t]=(0,s.clone)(e):A[t]=e;}});var S={},D=function(t){var e=v[t];if((0,s.isPlainObject)(e)&&!h.includes(t)){var n=m.shapeMap[t]||m.find(function(e){return e.get("name")===t;});if(n){var r=(0,u.cloneBesidesImg)(n.attr());(0,s.each)(e,function(e,i){if(t===M&&A[i]&&!y[i]){delete A[i];var o=w[t][i]||p[l][i];a.attr(i,o);}else if(r[i]||0===r[i]){delete r[i];var s=w[t][i]||p[l][i];n.attr(i,s);}}),S[t]=r;}}else if(A[t]&&!y[t]){delete A[t];var i=w[t]||(w[M]?w[M][t]:void 0)||p[l][t];a.attr(t,i);}};for(var I in v)D(I);for(var x in M?S[M]=A:(0,s.mix)(S,A),_)if(!y[x]){var T=_[x];(!(0,s.isPlainObject)(T)||h.includes(x))&&(M?((0,s.mix)(w[M],((i={})[x]=T,i)),delete w[x]):(0,s.mix)(w,((r={})[x]=T,r)),delete _[x]);}var k={};(0,s.deepMix)(k,w,S,_);var F=!1,N=function(t){var e,n,r=k[t];if((0,s.isPlainObject)(r)&&!h.includes(t)){var i=m.shapeMap[t]||m.find(function(e){return e.get("name")===t;});i&&(("text"===i.get("type")||i.get("labelRelated"))&&(delete r.x,delete r.y,delete r.matrix),t===M&&("combo"===l&&(delete r.r,delete r.width,delete r.height),F=!0),i.attr(r));}else if(!F){var o=r||p[l][t];"combo"===l?M||a.attr(((e={})[t]=o,e)):a.attr(((n={})[t]=o,n));}};for(var O in k)N(O);}}}},getStateStyle:function(t,e){var n=e.getModel(),r=e.getType(),i=this.getOptions(n),o=i.stateStyles,a=i.style,u=n.stateStyles?n.stateStyles[t]:o&&o[t];return"combo"===r?(0,s.clone)(u):(0,s.mix)({},void 0===a?{}:a,u);},getControlPoints:function(t){return t.controlPoints;},getAnchorPoints:function(t){var e,n;return(null==t?void 0:t.anchorPoints)||(null===(e=this.getCustomConfig(t))||void 0===e?void 0:e.anchorPoints)||(null===(n=this.options)||void 0===n?void 0:n.anchorPoints);}};},"655215bc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=r._(n("71b016a7")),o=r._(n("3529c69a"));function a(t){return t.index;}function s(t,e){var n=t.get(e);if(!n)throw Error("node not found: "+e);return n;}function u(t){var e,n,r,u,c,l,f=a,d=function(t){return 1/Math.min(u[t.source.index],u[t.target.index]);},h=(0,i.default)(30),g=1;function p(r){for(var i=0,a=t.length;i<g;++i)for(var s,u,f,d,h,p,v,m=0;m<a;++m)u=(s=t[m]).source,p=((p=Math.sqrt((d=(f=s.target).x+f.vx-u.x-u.vx||(0,o.default)(l))*d+(h=f.y+f.vy-u.y-u.vy||(0,o.default)(l))*h))-n[m])/p*r*e[m],d*=p,h*=p,f.vx-=d*(v=c[m]),f.vy-=h*v,u.vx+=d*(v=1-v),u.vy+=h*v;}function v(){if(r){var i,o,a=r.length,l=t.length,d=new Map(r.map((t,e)=>[f(t,e,r),t]));for(i=0,u=Array(a);i<l;++i)(o=t[i]).index=i,"object"!=typeof o.source&&(o.source=s(d,o.source)),"object"!=typeof o.target&&(o.target=s(d,o.target)),u[o.source.index]=(u[o.source.index]||0)+1,u[o.target.index]=(u[o.target.index]||0)+1;for(i=0,c=Array(l);i<l;++i)o=t[i],c[i]=u[o.source.index]/(u[o.source.index]+u[o.target.index]);e=Array(l),m(),n=Array(l),y();}}function m(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+d(t[n],n,t);}function y(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+h(t[e],e,t);}return null==t&&(t=[]),p.initialize=function(t,e){r=t,l=e,v();},p.links=function(e){return arguments.length?(t=e,v(),p):t;},p.id=function(t){return arguments.length?(f=t,p):f;},p.iterations=function(t){return arguments.length?(g=+t,p):g;},p.strength=function(t){return arguments.length?(d="function"==typeof t?t:(0,i.default)(+t),m(),p):d;},p.distance=function(t){return arguments.length?(h="function"==typeof t?t:(0,i.default)(+t),y(),p):h;},p;}},"6555228a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("bd41dba3")),i=function(t){if((0,r.default)(t))return t.reduce(function(t,e){return Math.min(t,e);},t[0]);};},"65579c93":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("d10f4774"),i=function(){function t(t){this.distances=t.distances,this.dimension=t.dimension||2,this.linkDistance=t.linkDistance;}return t.prototype.layout=function(){var t=this.dimension,e=this.distances,n=this.linkDistance;try{var i=r.Matrix.mul(r.Matrix.pow(e,2),-.5),o=i.mean("row"),a=i.mean("column"),s=i.mean();i.add(s).subRowVector(o).subColumnVector(a);var u=new r.SingularValueDecomposition(i),c=r.Matrix.sqrt(u.diagonalMatrix).diagonal();return u.leftSingularVectors.toJSON().map(function(e){return r.Matrix.mul([e],[c]).toJSON()[0].splice(0,t);});}catch(t){for(var l=[],f=0;f<e.length;f++){var d=Math.random()*n,h=Math.random()*n;l.push([d,h]);}return l;}},t;}();e.default=i;},65691558:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("22b52967"),i=n("32a22155"),o=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init();}return t.prototype.translate=function(t){return t;},t.prototype.change=function(t){(0,r.assign)(this.__cfg__,t),this.init();},t.prototype.clone=function(){return this.constructor(this.__cfg__);},t.prototype.getTicks=function(){var t=this;return(0,r.map)(this.ticks,function(e,n){return(0,r.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)};});},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return(0,r.isNil)(i)||!(0,r.isFunction)(i.toString)?"":i.toString();},t.prototype.getConfig=function(t){return this.__cfg__[t];},t.prototype.init=function(){(0,r.assign)(this,this.__cfg__),this.setDomain(),(0,r.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks());},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if((0,r.isString)(t)){var n=(0,i.getTickMethod)(t);if(!n)throw Error("There is no method to to calculate ticks!");e=n(this);}else(0,r.isFunction)(t)&&(e=t(this));return e;},t.prototype.rangeMin=function(){return this.range[0];},t.prototype.rangeMax=function(){return this.range[1];},t.prototype.calcPercent=function(t,e,n){return(0,r.isNumber)(t)?(t-e)/(n-e):NaN;},t.prototype.calcValue=function(t,e,n){return e+t*(n-e);},t;}();},"65ffebb3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("c387d242")),s=r._(n("29fffa42")),u=a.default.calculationItemsBBox,c=function t(e,n){if(!1!==n(e)&&e){var r=e.get("combos");if(0===r.length)return!1;(0,o.each)(r,function(e){t(e,n);});}},l={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0};},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"};},validationCombo:function(t){var e=t.item;return!!(e&&!e.destroyed&&this.shouldUpdate(t,this))&&"combo"===e.getType();},onMouseDown:function(t){this.origin={x:t.x,y:t.y};},onDragStart:function(t){var e=this,n=this.graph,r=t.item;if(this.currentShouldEnd=!0,this.validationCombo(t)){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=r.get("id");0===i.filter(function(t){return o===t.get("id");}).length?this.targets.push(r):this.targets=i;var a=[];this.targets.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;a.push({x:n,y:r,id:i});}),this.set("beforeDragItems",a),this.activeState&&this.targets.map(function(t){var r=t.getModel();if(r.parentId){var i=n.findById(r.parentId);i&&n.setItemState(i,e.activeState,!0);}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],c(r,function(t){if(t.destroyed)return!1;var n=t.getModel();return e.currentItemChildCombos.push(n.id),!0;});}},onDrag:function(t){var e=this;if(this.origin&&this.validationCombo(t)){if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var n=this.graph,r=t.item,i=r.getModel(),a=n.getCombos(),s=r.getBBox(),u=s.centerX,c=s.centerY,l=s.width;a.filter(function(t){var n=t.getModel();return i.parentId,n.id!==i.id&&!e.currentItemChildCombos.includes(n.id);}).map(function(t){var r=t.getBBox(),i=r.centerX,o=r.centerY,a=r.width,s=u-i,f=c-o;l+a-2*Math.sqrt(s*s+f*f)>.8*l?n.setItemState(t,e.activeState,!0):n.setItemState(t,e.activeState,!1);});}(0,o.each)(this.targets,function(n){e.updateCombo(n,t);}),this.onlyChangeComboSize&&this.updateParentCombos();}}},updatePositions:function(t,e){var n=this;(this.enableDelegate||e)&&(0,o.each)(this.targets,function(r){n.updateCombo(r,t,e);});},onDrop:function(t){var e=this,n=t.item;if(this.currentShouldEnd=this.shouldEnd(t,n,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd&&n&&this.targets&&!n.destroyed){var r=this.graph,i=n.getModel();this.targets.map(function(t){t.getModel().parentId!==i.id?(e.activeState&&r.setItemState(n,e.activeState,!1),e.onlyChangeComboSize?r.updateCombo(t):r.updateComboTree(t,i.id,!1)):r.updateCombo(n);}),this.end(n,t),this.endComparison=!0;}},onNodeDrop:function(t){var e,n=this;if(this.targets&&0!==this.targets.length){var r=this.graph,i=t.item.getModel().comboId,o=i?r.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(t,o,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){if(i){if(this.activeState){var a=r.findById(i);r.setItemState(a,this.activeState,!1);}this.targets.map(function(t){n.onlyChangeComboSize?r.updateCombo(t):i!==t.getID()&&(e=r.findById(i),i!==t.getModel().parentId&&r.updateComboTree(t,i,!1));});}else this.targets.map(function(t){n.onlyChangeComboSize?r.updateCombo(t):t.getModel().comboId&&r.updateComboTree(t,void 0,!1);});this.endComparison=!0,this.end(e,t);}}},onDragEnter:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!0);}},onDragLeave:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!1);}},onDragEnd:function(t){if(this.targets&&0!==this.targets.length){var e=t.item;this.currentShouldEnd&&this.updatePositions(t);var n=this.getParentCombo(e.getModel().parentId),r=this.graph;n&&this.activeState&&r.setItemState(n,this.activeState,!1),this.end(void 0,t);}},end:function(t,e){var n=this;if(this.origin){var r=this.graph;if(this.delegateShape&&(r.get("delegateGroup").clear(),this.delegateShape=null),t&&this.activeState&&r.setItemState(t,this.activeState,!1),!t){var i=r.get("enabledStack")&&this.enableStack,o={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(t){if(n.onlyChangeComboSize){r.updateCombo(t);var e=t.getModel(),a=e.x,s=e.y,u=e.id;o.after.combos.push({x:a,y:s,id:u}),r.pushStack("update",o);}else r.updateComboTree(t,void 0,i);});}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0;}},traverse:function(t,e,n){var r=this;if(void 0===n&&(n={}),!1!==e(t,n)&&t){var i=t.get("combos");(0,o.each)(i,function(t){r.traverse(t,e,n);});var a=t.get("nodes");(0,o.each)(a,function(t){r.traverse(t,e,n);});}},updateCombo:function(t,e,n){this.updateSingleItem(t,e,n);var r={};this.traverse(t,function(t,e){return!t.destroyed&&(t.getEdges().forEach(function(t){return e[t.getID()]=t;}),!0);},r),Object.values(r).forEach(function(t){return t.refresh();});},updateSingleItem:function(t,e,n){var r=this.origin,i=this.graph,o=t.getModel(),a=t.get("id");this.point[a]||(this.point[a]={x:o.x,y:o.y});var s=e.x-r.x+this.point[a].x,u=e.y-r.y+this.point[a].y;n&&(s+=r.x-e.x,u+=r.y-e.y),i.updateItem(t,{x:s,y:u},!1);},getParentCombo:function(t){var e=this.graph;if(t){var n=e.findById(t);if(n)return n;}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var n=t.x-this.origin.x+this.originPoint.minX,r=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:n,y:r});}else{var o=e.get("delegateGroup"),a=null,c=(a=this.targets.length>1?u(this.targets):this.targets[0].getBBox()).x,l=a.y,f=a.width,d=a.height,h=a.minX,g=a.minY;this.originPoint={x:c,y:l,width:f,height:d,minX:h,minY:g};var p=(0,i.__assign)((0,i.__assign)({},s.default.delegateStyle),this.delegateStyle);this.delegateShape=o.addShape("rect",{attrs:(0,i.__assign)({width:a.width,height:a.height,x:a.x,y:a.y},p),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape;}},updateParentCombos:function(){var t=this.graph,e=this.targets,n={};null==e||e.forEach(function(e){var r=e.getModel().parentId;r&&(n[r]=t.findById(r));}),Object.values(n).forEach(function(e){e&&t.updateCombo(e);});}};},"660b1875":function(t,e,n){},"663f843d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{angleTo:function(){return i.angleTo;},direction:function(){return o.direction;},transform:function(){return r.transform;},vertical:function(){return a.vertical;}});var r=n("51381487"),i=n("a0a79107"),o=n("712ef330"),a=n("2ba40a20");},"6665ed3f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("071f0c13")),i=function(t){return(0,r.default)(t)?"":t.toString();};},"67d03aef":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{add:function(){return _;},clone:function(){return o;},copy:function(){return a;},create:function(){return i;},determinant:function(){return f;},equals:function(){return A;},exactEquals:function(){return C;},frob:function(){return x;},fromRotation:function(){return v;},fromScaling:function(){return m;},fromTranslation:function(){return y;},fromValues:function(){return u;},identity:function(){return s;},invert:function(){return l;},mul:function(){return S;},multiply:function(){return d;},multiplyScalar:function(){return w;},multiplyScalarAndAdd:function(){return M;},rotate:function(){return h;},scale:function(){return g;},set:function(){return c;},str:function(){return b;},sub:function(){return D;},subtract:function(){return E;},translate:function(){return p;}});var r=n("852bbaa9")._(n("e89ef36f"));function i(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t;}function o(t){var e=new r.ARRAY_TYPE(6);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;}function a(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;}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t;}function u(t,e,n,i,o,a){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s[4]=o,s[5]=a,s;}function c(t,e,n,r,i,o,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t;}function l(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=n*o-r*i;return u?(u=1/u,t[0]=o*u,t[1]=-r*u,t[2]=-i*u,t[3]=n*u,t[4]=(i*s-o*a)*u,t[5]=(r*a-n*s)*u,t):null;}function f(t){return t[0]*t[3]-t[1]*t[2];}function d(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=n[0],l=n[1],f=n[2],d=n[3],h=n[4],g=n[5];return t[0]=r*c+o*l,t[1]=i*c+a*l,t[2]=r*f+o*d,t[3]=i*f+a*d,t[4]=r*h+o*g+s,t[5]=i*h+a*g+u,t;}function h(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*c,t[1]=i*l+a*c,t[2]=-(r*c)+o*l,t[3]=-(i*c)+a*l,t[4]=s,t[5]=u,t;}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=n[0],l=n[1];return t[0]=r*c,t[1]=i*c,t[2]=o*l,t[3]=a*l,t[4]=s,t[5]=u,t;}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=n[0],l=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=r*c+o*l+s,t[5]=i*c+a*l+u,t;}function v(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=0,t[5]=0,t;}function m(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t;}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t;}function b(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")";}function x(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1);}function _(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;}function E(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;}function w(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;}function M(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;}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];}function A(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=e[0],l=e[1],f=e[2],d=e[3],h=e[4],g=e[5];return Math.abs(n-c)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-f)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-d)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(s-h)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(h))&&Math.abs(u-g)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(g));}var S=d,D=E;},"681e86b9":function(t,e,n){"use strict";e.__esModule=!0,e.resizableProps=void 0;var r,i=(r=n("3a7a6ddb"))&&r.__esModule?r:{default:r};n("3d79e8ff");var o={axis:i.default.oneOf(["both","x","y","none"]),className:i.default.string,children:i.default.element.isRequired,draggableOpts:i.default.shape({allowAnyClick:i.default.bool,cancel:i.default.string,children:i.default.node,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:i.default.node,grid:i.default.arrayOf(i.default.number),handle:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number}),height:function(){for(var t,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0];return"both"===o.axis||"y"===o.axis?(t=i.default.number).isRequired.apply(t,n):i.default.number.apply(i.default,n);},handle:i.default.oneOfType([i.default.node,i.default.func]),handleSize:i.default.arrayOf(i.default.number),lockAspectRatio:i.default.bool,maxConstraints:i.default.arrayOf(i.default.number),minConstraints:i.default.arrayOf(i.default.number),onResizeStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,resizeHandles:i.default.arrayOf(i.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:i.default.number,width:function(){for(var t,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0];return"both"===o.axis||"x"===o.axis?(t=i.default.number).isRequired.apply(t,n):i.default.number.apply(i.default,n);}};e.resizableProps=o;},"68235b61":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("22b52967");},"689ba446":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return h;}});var r=n("777fffbe"),i=r._(n("78294f9e")),o=r._(n("21422ae0")),a=r._(n("4af4df40")),s=r._(n("e67082b2")),u=r._(n("d8e63692")),c=n("e06a40df"),l=n("0e8397d7"),f=n("f2fbe439"),d=n("95b60440"),h=function(t){(0,s.default)(n,t);var e=(0,u.default)(n);function n(t,r){(0,o.default)(this,n),(i=e.call(this,t,r)).value=void 0,i.key=void 0,i.path=void 0,i.computedStyle=void 0,i.pathLength=0,i.tweenVars={},i.keys=["x","y","rotate"],i.getAnimStart=function(){var t=(0,a.default)(i),e=t.target,n=t.value,r=t.tweenVars;if(e.tagName){if(i.computedStyle||(i.computedStyle=(0,f.getComputedStyle)(e)),r.style&&r.style.transform)i.start=r.style.transform;else{var o=(0,l.getTransform)(i.computedStyle[(0,l.checkStyleName)("transform")]);i.start=o,r.style=r.style||{},r.style.transform=r.style.transform||o;}var s=n.center;i.value.center=(void 0===s?["50%","50%"]:s).map(function(t,n){return(0,f.startConvertToEndUnit)({target:e,computedStyle:i.computedStyle,style:n?"height":"width",value:parseFloat(t),startUnit:t.toString().replace(/[^a-z|%]/g,""),useCurrentTarget:!0});});}else i.start={},i.keys.forEach(function(t){i.value[t]&&(i.start[t]=0);});},i.getPoint=function(t,e){var n=i.pathLength*t+(e||0);return i.path?i.path.getPointAtLength(n):0;},i.render=function(t){var e=(0,a.default)(i),n=e.value,r=e.target,o=e.getPoint,s=e.tweenVars,u=r.tagName,c=o(t),l=o(t,.5),d=o(t,-.5),h=n.rotate,g=n.x,p=n.y,v=n.center,m=void 0===v?[0,0]:v,y=u?s.style||{}:s;return u?(h&&(y.transform.rotate=180*Math.atan2(d.y-l.y,d.x-l.x)/Math.PI),g&&(y.transform.translateX=c.x-parseFloat(m[0])),p&&(y.transform.translateY=c.y-parseFloat(m[1])),y.transform.text=(0,f.getTransformValue)(y.transform)):(h&&(y.rotate=180*Math.atan2(d.y-l.y,d.x-l.x)/Math.PI),g&&(y.x=c.x-parseFloat(m[0])),p&&(y.y=c.y-parseFloat(m[1]))),y;},i.value=t,i.key=r,"string"==typeof t&&(i.value={path:t}),i.keys.forEach(function(t){t in i.value||(i.value[t]=!0);});var i,s=i.value,u=s.path,h=s.pathVars;return Array.isArray(u)&&(u=0!==h.curviness?(0,d.rawPathToString)((0,d.arrayToRawPath)(u,h||{})):u.map(function(t,e){return"".concat(e?"L":"M").concat(t.x," ").concat(t.y);}).join("")),i.path=new c.svgPathProperties(u),i.pathLength=i.path.getTotalLength(),i;}return(0,i.default)(n);}(r._(n("02aaba42")).default);h.key="style",h.className="PathMotion";},"68d590b8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isPathArray",{enumerable:!0,get:function(){return i;}});var r=n("7a329456");function i(t){return Array.isArray(t)&&t.every(function(t){var e=t[0].toLowerCase();return r.paramsCount[e]===t.length-1&&"achlmqstvz".includes(e);});}},"68d97b2c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("0aff2e87")),i=function(t,e){if(!(0,r.default)(t))return -1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break;}return i;};},"691948ba":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.arrayToTextureData=e.attributesToTextureData=e.buildTextureDataWithTwoEdgeAttr=e.buildTextureData=e.proccessToFunc=void 0;var r=n("38788347"),i=n("d6d41c0b");e.proccessToFunc=function(t,e){return t?(0,r.isNumber)(t)?function(){return t;}:t:function(){return e||1;};},e.buildTextureData=function(t,e){var n=[],r=[],o={},a=0;for(a=0;a<t.length;a++){var s=t[a];o[s.id]=a,n.push(s.x),n.push(s.y),n.push(0),n.push(0),r.push([]);}for(a=0;a<e.length;a++){var u=e[a],c=(0,i.getEdgeTerminal)(u,"source"),l=(0,i.getEdgeTerminal)(u,"target");isNaN(o[c])||isNaN(o[l])||(r[o[c]].push(o[l]),r[o[l]].push(o[c]));}var f=0;for(a=0;a<t.length;a++){var d=n.length,h=r[a],g=h.length;n[4*a+2]=d,n[4*a+3]=g,f=Math.max(f,g);for(var p=0;p<g;++p){var v=h[p];n.push(+v);}}for(;n.length%4!=0;)n.push(0);return{maxEdgePerVetex:f,array:new Float32Array(n)};},e.buildTextureDataWithTwoEdgeAttr=function(t,e,n,r){var o=[],a=[],s={},u=0;for(u=0;u<t.length;u++){var c=t[u];s[c.id]=u,o.push(c.x),o.push(c.y),o.push(0),o.push(0),a.push([]);}for(u=0;u<e.length;u++){var l=e[u],f=(0,i.getEdgeTerminal)(l,"source"),d=(0,i.getEdgeTerminal)(l,"target");a[s[f]].push(s[d]),a[s[f]].push(n(l)),a[s[f]].push(r(l)),a[s[f]].push(0),a[s[d]].push(s[f]),a[s[d]].push(n(l)),a[s[d]].push(r(l)),a[s[d]].push(0);}var h=0;for(u=0;u<t.length;u++){var g=o.length,p=a[u],v=p.length;o[4*u+2]=g+1048576*v/4,o[4*u+3]=0,h=Math.max(h,v/4);for(var m=0;m<v;++m){var y=p[m];o.push(+y);}}for(;o.length%4!=0;)o.push(0);return{maxEdgePerVetex:h,array:new Float32Array(o)};},e.attributesToTextureData=function(t,e){var n=[],r=t.length,i={};return e.forEach(function(e){t.forEach(function(t,o){if(void 0===i[e[t]]&&(i[e[t]]=Object.keys(i).length),n.push(i[e[t]]),o===r-1)for(;n.length%4!=0;)n.push(0);});}),{array:new Float32Array(n),count:Object.keys(i).length};},e.arrayToTextureData=function(t){for(var e=[],n=t.length,r=t[0].length,i=function(r){t.forEach(function(t,i){if(e.push(t[r]),i===n-1)for(;e.length%4!=0;)e.push(0);});},o=0;o<r;o++)i(o);return new Float32Array(e);};},69481062:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=function(t){var e,n={},r=0,i=function(e){var o,a=r;null===(o=t.children(e))||void 0===o||o.forEach(i),n[e]={low:a,lim:r++};};return null===(e=t.children())||void 0===e||e.forEach(i),n;},i=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do a.push(i=t.parent(i));while(i&&(e[i].low>u||c>e[i].lim))for(o=i,i=r;i&&i!==o;)s.push(i),i=t.parent(i);return{lca:o,path:a.concat(s.reverse())};};e.default=function(t){var e,n=r(t);null===(e=t.graph().dummyChains)||void 0===e||e.forEach(function(e){var r,o,a=e,s=t.node(a),u=s.edgeObj;if(u)for(var c=i(t,n,u.v,u.w),l=c.path,f=c.lca,d=0,h=l[0],g=!0;a!==u.w;){if(s=t.node(a),g){for(;h!==f&&(null===(r=t.node(h))||void 0===r?void 0:r.maxRank)<s.rank;)h=l[++d];h===f&&(g=!1);}if(!g){for(;d<l.length-1&&(null===(o=t.node(l[d+1]))||void 0===o?void 0:o.minRank)<=s.rank;)d++;h=l[d];}t.setParent(a,h),a=t.successors(a)[0];}});};},"69679fcd":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("de457467")),i=n("f29fe526"),o=function(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===o&&(o=1e3);var a=t.nodes,s=void 0===a?[]:a,u=t.edges,c={},l={};s.forEach(function(t,e){var n=(0,i.uniqueId)();t.clusterId=n,c[n]={id:n,nodes:[t]},l[t.id]={node:t,idx:e};});var f=(0,r.default)(t,e),d=[],h={};f.forEach(function(t,e){var n=0,r=s[e].id;h[r]={},t.forEach(function(t,e){if(t){n+=t;var i=s[e].id;h[r][i]=t;}}),d.push(n);});for(var g=0;g<o&&"break"!==function(){var t=!1;if(s.forEach(function(e){var n={};Object.keys(h[e.id]).forEach(function(t){var r=h[e.id][t],i=l[t].node.clusterId;n[i]||(n[i]=0),n[i]+=r;});var r=-1/0,i=[];if(Object.keys(n).forEach(function(t){r<n[t]?(r=n[t],i=[t]):r===n[t]&&i.push(t);}),1!==i.length||i[0]!==e.clusterId){var o=i.indexOf(e.clusterId);if(o>=0&&i.splice(o,1),i&&i.length){t=!0;var a=c[e.clusterId],s=a.nodes.indexOf(e);a.nodes.splice(s,1);var u=Math.floor(Math.random()*i.length),f=c[i[u]];f.nodes.push(e),e.clusterId=f.id;}}}),!t)return"break";g++;}(););Object.keys(c).forEach(function(t){var e=c[t];e.nodes&&e.nodes.length||delete c[t];});var p=[],v={};(void 0===u?[]:u).forEach(function(t){var e=t.source,r=t.target,i=t[n]||1,o=l[e].node.clusterId,a=l[r].node.clusterId,s="".concat(o,"---").concat(a);if(v[s])v[s].weight+=i,v[s].count++;else{var u={source:o,target:a,weight:i,count:1};v[s]=u,p.push(u);}});var m=[];return Object.keys(c).forEach(function(t){m.push(c[t]);}),{clusters:m,clusterEdges:p};};},"69dfbbfd":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"skipSpaces",{enumerable:!0,get:function(){return i;}});var r=n("7593267d");function i(t){for(var e=t.pathValue,n=t.max;t.index<n&&(0,r.isSpace)(e.charCodeAt(t.index));)t.index+=1;}},"6a1c931d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=180/Math.PI,i=function(t){return r*t;};},"6a4ad838":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.uniqueId=e.getOutEdgesNodeId=e.getNeighbors=e.getEdgesByNodeId=void 0,e.getNeighbors=function(t,e,n){void 0===e&&(e=[]);var r=e.filter(function(e){return e.source===t||e.target===t;});return"target"===n?r.filter(function(e){return e.source===t;}).map(function(t){return t.target;}):"source"===n?r.filter(function(e){return e.target===t;}).map(function(t){return t.source;}):r.map(function(e){return e.source===t?e.target:e.source;});},e.getOutEdgesNodeId=function(t,e){return e.filter(function(e){return e.source===t;});},e.getEdgesByNodeId=function(t,e){return e.filter(function(e){return e.source===t||e.target===t;});},e.uniqueId=function(t){void 0===t&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),n="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(n);};},"6a672732":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("4c6d310c"),a=n("8d42ebc3"),s=r._(n("235d18ef")),u=r._(n("d54fbbc1")),c=i._(n("b28fb25f")),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,o.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,o.__assign)((0,o.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1});},e.prototype.initAttrs=function(t){this.setArrow();},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow();},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&c.addStartArrow(this,t,r,i,e,n),a&&c.addEndArrow(this,t,e,n,r,i);},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr(),a=o.x1,s=o.y1,c=o.x2,l=o.y2;return(0,u.default)(a,s,c,l,i,t,e);},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,u={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(u=c.getShortenOffset(n,r,i,o,e.startArrow.d)),s&&s.d&&(l=c.getShortenOffset(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-l.dx,o-l.dy);},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t);},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i);},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t);},e;}(s.default);},"6a98abcb":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"segmentQuadFactory",{enumerable:!0,get:function(){return i;}});var r=n("b0fcf145");function i(t,e,n,i,o,a,s,u){var c,l=u.bbox,f=void 0===l||l,d=u.length,h=void 0===d||d,g=u.sampleSize,p=void 0===g?10:g,v="number"==typeof s,m=t,y=e,b=0,x=[m,y,0],_=[m,y],E={x:0,y:0},w=[{x:m,y:y}];v&&s<=0&&(E={x:m,y:y});for(var M=0;M<=p;M+=1){if(m=(c=function(t,e,n,r,i,o,a){var s=1-a;return{x:Math.pow(s,2)*t+2*s*a*n+Math.pow(a,2)*i,y:Math.pow(s,2)*e+2*s*a*r+Math.pow(a,2)*o};}(t,e,n,i,o,a,M/p)).x,y=c.y,f&&w.push({x:m,y:y}),h&&(b+=(0,r.distanceSquareRoot)(_,[m,y])),_=[m,y],v&&b>=s&&s>x[2]){var C=(b-s)/(b-x[2]);E={x:_[0]*(1-C)+x[0]*C,y:_[1]*(1-C)+x[1]*C};}x=[m,y,b];}return v&&s>=b&&(E={x:o,y:a}),{length:b,point:E,min:{x:Math.min.apply(null,w.map(function(t){return t.x;})),y:Math.min.apply(null,w.map(function(t){return t.y;}))},max:{x:Math.max.apply(null,w.map(function(t){return t.x;})),y:Math.max.apply(null,w.map(function(t){return t.y;}))}};}},"6b27bf0a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});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;}();},"6b75ac3a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Graph:function(){return o.default;},GraphWithEvent:function(){return a.GraphWithEvent;},algorithm:function(){return s;},comparision:function(){return u;},essence:function(){return c;},generate:function(){return l;}});var r=n("777fffbe"),i=n("852bbaa9"),o=r._(n("d7fbc71b")),a=n("df7d0731"),s=i._(n("1a34bb6d")),u=i._(n("e9b8d0e5")),c=i._(n("f5de0b23")),l=i._(n("b0b932de"));},"6bc0d57e":function(t,e,n){var r;r=this,function(t){"use strict";function e(t,e){return t._indexes[e];}t.SetArray=class{constructor(){this._indexes={__proto__:null},this.array=[];}},t.get=e,t.pop=function(t){let{array:e,_indexes:n}=t;0!==e.length&&(n[e.pop()]=void 0);},t.put=function(t,n){let r=e(t,n);if(void 0!==r)return r;let{array:i,_indexes:o}=t,a=i.push(n);return o[n]=a-1;},t.remove=function(t,n){let r=e(t,n);if(void 0===r)return;let{array:i,_indexes:o}=t;for(let t=r+1;t<i.length;t++){let e=i[t];i[t-1]=e,o[e]--;}o[n]=void 0,i.pop();},Object.defineProperty(t,"__esModule",{value:!0});}("object"==typeof e&&void 0!==t?e:(r="undefined"!=typeof globalThis?globalThis:r||self).setArray={});},"6bda3d7b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(){};},"6c2e5376":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe")._(n("130ef5a4")),i=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])];}function a(t){var e=(0,r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a<e.length;a++){var s=e[a][0];if(i.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break;}}if(!n)return e;var u=[],c=0,l=0,f=0,d=0,h=0,g=e[0];("M"===g[0]||"m"===g[0])&&(c=+g[1],l=+g[2],f=c,d=l,h++,u[0]=["M",c,l]);for(var a=h,p=e.length;a<p;a++){var v=e[a],m=u[a-1],y=[],s=v[0],b=s.toUpperCase();if(s!==b)switch(y[0]=b,b){case"A":y[1]=v[1],y[2]=v[2],y[3]=v[3],y[4]=v[4],y[5]=v[5],y[6]=+v[6]+c,y[7]=+v[7]+l;break;case"V":y[1]=+v[1]+l;break;case"H":y[1]=+v[1]+c;break;case"M":f=+v[1]+c,d=+v[2]+l,y[1]=f,y[2]=d;break;default:for(var x=1,_=v.length;x<_;x++)y[x]=+v[x]+(x%2?c:l);}else y=e[a];switch(b){case"Z":c=+f,l=+d;break;case"H":y=["L",c=y[1],l];break;case"V":y=["L",c,l=y[1]];break;case"T":c=y[1],l=y[2];var E=o([m[1],m[2]],[m[3],m[4]]);y=["Q",E[0],E[1],c,l];break;case"S":c=y[y.length-2],l=y[y.length-1];var w=m.length,M=o([m[w-4],m[w-3]],[m[w-2],m[w-1]]);y=["C",M[0],M[1],y[1],y[2],c,l];break;case"M":f=y[y.length-2],d=y[y.length-1];break;default:c=y[y.length-2],l=y[y.length-1];}u.push(y);}return u;}},"6cb78cd4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("22b52967");},"6d06ec4c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("04480408")),o=r._(n("aac703c5"));class a{constructor(t,e={}){let n,r,a,s,u;t=o.default.checkMatrix(t);let{Y:c}=e,{scaleScores:l=!1,maxIterations:f=1e3,terminationCriteria:d=1e-10}=e;if(c){if(!(c=Array.isArray(c)&&"number"==typeof c[0]?i.default.columnVector(c):o.default.checkMatrix(c)).isColumnVector()||c.rows!==t.rows)throw Error("Y must be a column vector of length X.rows");n=c;}else n=t.getColumnVector(0);let h=1;for(let e=0;e<f&&h>d;e++)s=(s=t.transpose().mmul(n).div(n.transpose().mmul(n).get(0,0))).div(s.norm()),r=t.mmul(s).div(s.transpose().mmul(s).get(0,0)),e>0&&(h=r.clone().sub(u).pow(2).sum()),u=r.clone(),c?(a=(a=c.transpose().mmul(r).div(r.transpose().mmul(r).get(0,0))).div(a.norm()),n=c.mmul(a).div(a.transpose().mmul(a).get(0,0))):n=r;if(c){let e=t.transpose().mmul(r).div(r.transpose().mmul(r).get(0,0));e=e.div(e.norm());let i=t.clone().sub(r.clone().mmul(e.transpose())),o=n.transpose().mmul(r).div(r.transpose().mmul(r).get(0,0)),u=c.clone().sub(r.clone().mulS(o.get(0,0)).mmul(a.transpose()));this.t=r,this.p=e.transpose(),this.w=s.transpose(),this.q=a,this.u=n,this.s=r.transpose().mmul(r),this.xResidual=i,this.yResidual=u,this.betas=o;}else this.w=s.transpose(),this.s=r.transpose().mmul(r).sqrt(),l?this.t=r.clone().div(this.s.get(0,0)):this.t=r,this.xResidual=t.sub(r.mmul(s.transpose()));}}},"6d183e07":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"extractUniforms",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("8d94efed")),o=r._(n("7a0f2ad8"));function a(t){var e={};return Object.keys(t).forEach(function(n){(function t(e,n,r,a){if(null===n||"number"==typeof n||"boolean"==typeof n||Array.isArray(n)&&"number"==typeof n[0]||(0,i.default)(n)||""===n||void 0!==n.resize){r["".concat(a&&a+".").concat(e)]=n;return;}(0,o.default)(n)&&Object.keys(n).forEach(function(i){t(i,n[i],r,"".concat(a&&a+".").concat(e));}),Array.isArray(n)&&n.forEach(function(n,i){Object.keys(n).forEach(function(o){t(o,n[o],r,"".concat(a&&a+".").concat(e,"[").concat(i,"]"));});});})(n,t[n],e,"");}),e;}},"6d5f4b4d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("960236de"),s=r._(n("528465ee")),u=r._(n("a9d43e9b")),c=n("652a6d72"),l=n("85b3418c"),f={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:s.default.nodeLabel.offset,getSize:function(t){var e,n=(null===(e=this.mergeStyle)||void 0===e?void 0:e.size)||t.size||this.getOptions({}).size||s.default.defaultNode.size;return(0,o.isArray)(n)&&1===n.length&&(n=[n[0],n[0]]),(0,o.isArray)(n)||(n=[n,n]),n;},getLabelStyleByPosition:function(t,e){var n,r=e.maxLength,i=t.label;r&&(i=(0,l.truncateLabelByLength)(i,r));var a=e.position||this.labelPosition;if("center"===a)return{x:0,y:0,text:i,textBaseline:"middle",textAlign:"center"};var s=e.offset;(0,o.isNil)(s)&&(s=this.offset);var u=this.getSize(t);switch(a){case"top":n={x:0,y:-u[1]/2-s,textBaseline:"bottom",textAlign:"center"};break;case"bottom":n={x:0,y:u[1]/2+s,textBaseline:"top",textAlign:"center"};break;case"left":n={x:-u[0]/2-s,y:0,textBaseline:"middle",textAlign:"right"};break;default:n={x:u[0]/2+s,y:0,textBaseline:"middle",textAlign:"left"};}return n.text=i,n;},getLabelBgStyleByPosition:function(t,e){if(!t)return{};var n,r=null===(n=e.style)||void 0===n?void 0:n.background;if(!r)return{};var o=t.getBBox(),s=(0,a.formatPadding)(r.padding),u=o.width+s[1]+s[3],c=o.height+s[0]+s[2];return(0,i.__assign)((0,i.__assign)({x:o.minX-s[3],y:o.minY-s[0]},r),{width:u,height:c});},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r,draggable:!0,name:"node-shape"});return e.shapeMap["node-shape"]=i,i;},updateLinkPoints:function(t,e){var n,r=(this.mergeStyle||this.getOptions(t)).linkPoints,a=e.shapeMap["link-point-left"]||e.find(function(t){return"link-point-left"===t.get("className");}),s=e.shapeMap["link-point-right"]||e.find(function(t){return"link-point-right"===t.get("className");}),u=e.shapeMap["link-point-top"]||e.find(function(t){return"link-point-top"===t.get("className");}),c=e.shapeMap["link-point-bottom"]||e.find(function(t){return"link-point-bottom"===t.get("className");});a&&(n=a.attr()),s&&!n&&(n=s.attr()),u&&!n&&(n=u.attr()),c&&!n&&(n=c.attr()),n||(n=r);var l=(0,o.mix)({},n,t.linkPoints),f=l.fill,d=l.stroke,h=l.lineWidth,g=l.size/2;g||(g=l.r);var p=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},v=p.left,m=p.right,y=p.top,b=p.bottom,x=this.getSize(t),_=x[0],E=x[1],w={r:g,fill:f,stroke:d,lineWidth:h};if(a)v||void 0===v?a.attr((0,i.__assign)((0,i.__assign)({},w),{x:-_/2,y:0})):(a.remove(),delete e.shapeMap["link-point-left"]);else if(v){var M="link-point-left";e.shapeMap[M]=e.addShape("circle",{attrs:(0,i.__assign)((0,i.__assign)({},w),{x:-_/2,y:0}),className:M,name:M,isAnchorPoint:!0});}if(s)m||void 0===m||(s.remove(),delete e.shapeMap["link-point-right"]),s.attr((0,i.__assign)((0,i.__assign)({},w),{x:_/2,y:0}));else if(m){var C="link-point-right";e.shapeMap[C]=e.addShape("circle",{attrs:(0,i.__assign)((0,i.__assign)({},w),{x:_/2,y:0}),className:C,name:C,isAnchorPoint:!0});}if(u)y||void 0===y||(u.remove(),delete e.shapeMap["link-point-top"]),u.attr((0,i.__assign)((0,i.__assign)({},w),{x:0,y:-E/2}));else if(y){var A="link-point-top";e.shapeMap[A]=e.addShape("circle",{attrs:(0,i.__assign)((0,i.__assign)({},w),{x:0,y:-E/2}),className:A,name:A,isAnchorPoint:!0});}if(c)b||void 0===b?c.attr((0,i.__assign)((0,i.__assign)({},w),{x:0,y:E/2})):(c.remove(),delete e.shapeMap["link-point-bottom"]);else if(b){var S="link-point-bottom";e.shapeMap[S]=e.addShape("circle",{attrs:(0,i.__assign)((0,i.__assign)({},w),{x:0,y:E/2}),className:S,name:S,isAnchorPoint:!0});}},updateShape:function(t,e,n,r,o){e.get("keyShape").attr((0,i.__assign)({},n)),this.updateLabel(t,e,o),r&&this.updateIcon(t,e);},updateIcon:function(t,e){var n=this,r=e.getContainer(),a=(this.mergeStyle||this.getOptions(t)).icon,s=t.icon?t.icon:{show:void 0,text:void 0},u=s.show,c=s.text,l=r.shapeMap["".concat(this.type,"-icon")]||r.find(function(t){return t.get("name")==="".concat(n.type,"-icon");});if(l){if(u||void 0===u){var f=(0,o.mix)({},l.attr(),a),d=f.width,h=void 0===d?20:d,g=f.height,p=void 0===g?20:g;("iconfont"===f.fontFamily||f.hasOwnProperty("text"))&&(h=0,p=0),l.attr((0,i.__assign)((0,i.__assign)({},f),{x:-h/2,y:-p/2}));}else l.remove(),delete r.shapeMap["".concat(this.type,"-icon")];}else if(u){var v="".concat(this.type,"-icon");if(c)r.shapeMap[v]=r.addShape("text",{attrs:(0,i.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:v,name:v});else{var h=a.width,p=a.height;r.shapeMap[v]=r.addShape("image",{attrs:(0,i.__assign)((0,i.__assign)({},a),{x:-h/2,y:-p/2}),className:v,name:v});}var m=r.shapeMap["node-label"]||r.find(function(t){return"node-label"===t.get("name");});m&&m.toFront();}}},d=(0,i.__assign)((0,i.__assign)({},c.shapeBase),f);u.default.registerNode("single-node",d);},"6de422fa":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("4c6d310c"),i=n("168feef4"),o=n("22b52967"),a=i.Util.defaultSubjectColors,s="fan-shape-";(0,i.registerNode)("donut",{options:{size:i.BaseGlobal.defaultNode.size,style:{x:0,y:0,stroke:i.BaseGlobal.defaultNode.style.stroke,fill:i.BaseGlobal.defaultNode.style.fill,lineWidth:i.BaseGlobal.defaultNode.style.lineWidth},labelCfg:{style:{fill:i.BaseGlobal.nodeLabel.style.fill,fontSize:i.BaseGlobal.nodeLabel.style.fontSize,fontFamily:i.BaseGlobal.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:i.BaseGlobal.defaultNode.linkPoints.size,lineWidth:i.BaseGlobal.defaultNode.linkPoints.lineWidth,fill:i.BaseGlobal.defaultNode.linkPoints.fill,stroke:i.BaseGlobal.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,r.__assign)({},i.BaseGlobal.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,i=this.getShapeStyle(t),a=(0,o.deepMix)({},void 0===n?{}:n,t.icon),s=e.addShape("circle",{attrs:i,className:"".concat(this.type,"-keyShape"),draggable:!0,name:"".concat(this.type,"-keyShape")});e.shapeMap["".concat(this.type,"-keyShape")]=s;var c=a.width,l=a.height,f=a.show,d=a.text;return f&&(d?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,r.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,r.__assign)({x:-c/2,y:-l/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),u(t,e,s),this.drawLinkPoints(t,e),s;},updateShape:function(t,e,n,i,o){var a=e.get("keyShape");a.attr((0,r.__assign)({},n)),l(t,e,a),this.updateLabel(t,e,o),i&&this.updateIcon(t,e);}},"circle");var u=function(t,e,n){var r=t.donutAttrs,i=void 0===r?{}:r,o=t.donutColorMap,a=Object.keys(i).length;if(i&&a>1){var s=f(i,void 0===o?{}:o),u=s.configs,l=s.totalValue;if(l){var h=d(n),g=h.lineWidth,p=h.arcR,v=[p,0],m=0;if(1===a){c(e,{arcR:p,arcBegin:v,beginAngle:m,config:u[0],fanIndex:0,lineWidth:g,totalValue:l,drawWhole:!0});return;}for(var y=0;y<u.length;y++){var b=c(e,{arcR:p,arcBegin:v,beginAngle:m,config:u[y],fanIndex:y,lineWidth:g,totalValue:l});if(b.shouldEnd)return;v=b.arcBegin,m=b.beginAngle;}}}},c=function(t,e){var n,r,i,o=e.arcR,u=e.arcBegin,c=e.beginAngle,l=e.config,f=e.fanIndex,d=e.lineWidth,h=e.totalValue,g=e.drawWhole,p=void 0!==g&&g,v=e.updateShape,m=void 0===v?void 0:v,y=l.value/h;if(y<.001)return{beginAngle:c,arcBegin:u,shape:void 0,shouldEnd:!1};if(p||y>.999)n=[o,1e-4],i=1;else{var b=y*Math.PI*2;n=[o*Math.cos(r=c+b),-o*Math.sin(r)],i=b>Math.PI?1:0;}var x={path:[["M",u[0],u[1]],["A",o,o,0,i,0,n[0],n[1]]],stroke:l.color||(null==m?void 0:m.attr("stroke"))||a[f%a.length],lineWidth:d};return m?m.attr(x):t.shapeMap["".concat(s).concat(f)]=t.addShape("path",{attrs:x,name:"".concat(s).concat(f),draggable:!0}),{beginAngle:r,arcBegin:n,shape:t.shapeMap["".concat(s).concat(f)],shouldEnd:p||y>.999};},l=function(t,e,n){var r=t.donutAttrs,i=t.donutColorMap,o={},a=e.getContainer();if(r){var u=f(r,void 0===i?{}:i),l=u.configs,h=u.totalValue;if(h)for(var g=d(n),p=g.lineWidth,v=g.arcR,m=[v,0],y=0,b=0;b<l.length;b++){var x="".concat(s).concat(b),_=c(a,{arcR:v,arcBegin:m,beginAngle:y,config:l[b],fanIndex:b,lineWidth:p,totalValue:h,drawWhole:1===l.length,updateShape:a.shapeMap[x]});if(_.shape&&(o[x]=!0),_.shouldEnd)break;m=_.arcBegin,y=_.beginAngle;}}Object.keys(a.shapeMap).filter(function(t){return t.includes(s);}).forEach(function(t){o[t]||(a.shapeMap[t].remove(!0),delete a.shapeMap[t]);});},f=function(t,e){var n=0,r=[];return Object.keys(t).forEach(function(i){var o=+t[i];isNaN(o)||(r.push({key:i,value:o,color:e[i]}),n+=o);}),{totalValue:n,configs:r};},d=function(t){var e=t.attr("r"),n=.6*e;return{lineWidth:e-n,arcR:(e+n)/2};};},"6e628d38":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("1eabf120")),o=r._(n("bd41dba3")),a=function(t,e){for(var n=null,r=0;r<t.length;r++){var a=t[r][e];if(!(0,i.default)(a)){n=(0,o.default)(a)?a[0]:a;break;}}return n;};},"6e7fd2aa":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r={},i=function(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;};},"6e810311":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]";};},"6f727b27":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("29fffa42")),s={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0};},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"};},validationCombo:function(t){return!!this.origin&&!!t&&!t.destroyed&&"combo"===t.getType();},onTouchStart:function(t){if(t.item){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault();}catch(t){console.warn("Touch original event not exist!");}this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},this.dragstart=!0,this.onDragStart(t);}},onTouchMove:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r){this.onDragEnd(t);return;}t.preventDefault();}catch(t){console.warn("Touch original event not exist!");}this.onDrag(t);},onMouseDown:function(t){this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},"undefined"==typeof window||this.windowEventBinded||(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)));},onDragMove:function(t){var e,n;if((null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e))!=="node"){this.onDragEnd();return;}this.mousedown&&(this.dragstart?this.onDrag((0,i.__assign)((0,i.__assign)({},t),this.mousedown)):(this.dragstart=!0,this.onDragStart(t)));},onDragStart:function(t){var e=this;if(this.currentShouldEnd=!0,this.shouldBegin((0,i.__assign)((0,i.__assign)({},t),this.mousedown),this)){var n=this.mousedown,r=n.item,o=n.target;if(!(!r||r.destroyed||r.hasLocked())){if(r.getContainer().set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(r),o&&o.get("isAnchorPoint"))return;var a=this.graph;this.targets=[],this.targetCombo=null;var s=a.findAllByState("node",this.selectedState),u=r.get("id");if(0===s.filter(function(t){return u===t.get("id");}).length?this.targets.push(r):s.length>1?s.forEach(function(t){t.hasLocked()||e.targets.push(t);}):this.targets.push(r),this.graph.get("enabledStack")&&this.enableStack){var c=[];this.targets.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y,i=e.id;c.push({x:n,y:r,id:i});}),this.set("beforeDragNodes",c);}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(t){t.getEdges().forEach(function(t){t.isVisible()&&(e.hidenEdge[t.getID()]=!0,t.hide());});}),this.origin=this.mousedown.origin,this.point={},this.originPoint={};}}},onDrag:function(t){var e=this;if(this.mousedown&&this.origin&&this.shouldUpdate(t,this)){if(this.get("enableDelegate"))this.updateDelegate(t);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var n={};this.targets.map(function(r){e.update(r,t);var i=r.getModel().comboId;i&&(n[i]=e.graph.findById(i));}),this.onlyChangeComboSize&&this.updateParentCombos();}}},onDragEnd:function(t){var e,n=this;if(this.mousedown=!1,this.dragstart=!1,"undefined"!=typeof window&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),this.origin){null===(e=this.cachedCaptureItems)||void 0===e||e.forEach(function(t){t.getContainer().set("capture",!0);}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(t){t.getEdges().forEach(function(t){n.hidenEdge[t.getID()]&&t.show(),t.refresh();});}),this.hidenEdge={};var r=this.graph;if(r.get("enabledStack")&&this.enableStack){var i={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(t){i.before.nodes.push(t);}),this.targets.forEach(function(t){var e=t.getModel(),n=e.x,r=e.y,o=e.id;i.after.nodes.push({x:n,y:r,id:o});}),r.pushStack("update",(0,o.clone)(i));}r.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null;}},onDropCombo:function(t){var e=t.item;if(this.currentShouldEnd=this.shouldEnd(t,e,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd&&this.validationCombo(e)){var n=this.graph;if(this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)n.updateCombos();else{var r=e.getModel();this.targets.map(function(t){t.getModel().comboId!==r.id&&n.updateComboTree(t,r.id);}),n.updateCombo(e);}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo});}},onDropCanvas:function(t){var e=this.graph;this.currentShouldEnd=this.shouldEnd(t,void 0,this),this.updatePositions(t,!this.currentShouldEnd),this.targets&&0!==this.targets.length&&this.currentShouldEnd&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(t){t.getModel().comboId&&e.updateComboTree(t);}));},onDropNode:function(t){if(this.targets&&0!==this.targets.length){var e=t.item,n=this.graph,r=e.getModel().comboId,i=r?n.findById(r):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(r){var o=n.findById(r);this.comboActiveState&&n.setItemState(o,this.comboActiveState,!1),this.targets.map(function(t){r!==t.getModel().comboId&&n.updateComboTree(t,r);}),n.updateCombo(o);}else this.targets.map(function(t){t.getModel().comboId&&n.updateComboTree(t);});n.emit("dragnodeend",{items:this.targets,targetItem:e});}}},onDragEnter:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!0);}},onDragLeave:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1);}},updatePositions:function(t,e){var n=this;this.targets&&0!==this.targets.length&&(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):e||this.targets.map(function(e){return n.update(e,t);}):this.targets.map(function(r){return n.update(r,t,e);}));},update:function(t,e,n){var r=this.origin,i=t.get("model"),o=t.get("id");this.point[o]||(this.point[o]={x:i.x||0,y:i.y||0});var a=e.x-r.x+this.point[o].x,s=e.y-r.y+this.point[o].y;n&&(a+=r.x-e.x,s+=r.y-e.y);var u={x:a,y:s};this.get("updateEdge")?this.graph.updateItem(t,u,!1):t.updatePosition(u);},debounceUpdate:(0,o.debounce)(function(t){var e=t.targets,n=t.graph,r=t.point,i=t.origin,o=t.evt,a=t.updateEdge,s=t.onlyChangeComboSize,u=t.updateParentCombos;e.map(function(t){var e=t.get("model"),s=t.get("id");r[s]||(r[s]={x:e.x||0,y:e.y||0});var u={x:o.x-i.x+r[s].x,y:o.y-i.y+r[s].y};a?n.updateItem(t,u,!1):t.updatePosition(u);}),s&&u(n,e);},50,!0),updateDelegate:function(t){var e=this.graph;if(this.delegateRect){var n=t.x-this.origin.x+this.originPoint.minX,r=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:n,y:r});}else{var s=e.get("group"),u=(0,o.deepMix)({},a.default.delegateStyle,this.delegateStyle),c=this.calculationGroupPosition(t),l=c.x,f=c.y,d=c.width,h=c.height,g=c.minX,p=c.minY;this.originPoint={x:l,y:f,width:d,height:h,minX:g,minY:p},this.delegateRect=s.addShape("rect",{attrs:(0,i.__assign)({width:d,height:h,x:l,y:f},u),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1);}},calculationGroupPosition:function(t){var e=this.targets;0===e.length&&e.push(t.item);for(var n=1/0,r=-1/0,i=1/0,o=-1/0,a=0;a<e.length;a++){var s=e[a].getBBox(),u=s.minX,c=s.minY,l=s.maxX,f=s.maxY;u<n&&(n=u),c<i&&(i=c),l>r&&(r=l),f>o&&(o=f);}return{x:Math.floor(n),y:Math.floor(i),width:Math.ceil(r)-Math.floor(n),height:Math.ceil(o)-Math.floor(i),minX:n,minY:i};},updateParentCombos:function(t,e){var n=t||this.graph,r=e||this.targets,i={};null==r||r.forEach(function(t){var e=t.getModel().comboId;e&&(i[e]=n.findById(e));}),Object.values(i).forEach(function(t){t&&n.updateCombo(t);});}};},"6ff26827":function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i};}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"703e2ad9":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r=n("22b52967"),i=n("7f47c4f4"),o=function(){function t(t,e,n,r,o){this.fromNode=t,this.toNode=e,this.nodeEdgeNodeLabel={nodeLabel1:n||i.VACANT_NODE_LABEL,edgeLabel:r||i.VACANT_EDGE_LABEL,nodeLabel2:o||i.VACANT_NODE_LABEL};}return t.prototype.equalTo=function(t){return this.fromNode===t.formNode&&this.toNode===t.toNode&&this.nodeEdgeNodeLabel===t.nodeEdgeNodeLabel;},t.prototype.notEqualTo=function(t){return!this.equalTo(t);},t;}(),a=function(){function t(){this.rmpath=[],this.dfsEdgeList=[];}return t.prototype.equalTo=function(t){var e=this.dfsEdgeList.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(this.dfsEdgeList[n]!==t[n])return!1;return!0;},t.prototype.notEqualTo=function(t){return!this.equalTo(t);},t.prototype.pushBack=function(t,e,n,r,i){return this.dfsEdgeList.push(new o(t,e,n,r,i)),this.dfsEdgeList;},t.prototype.toGraph=function(t,e){void 0===t&&(t=i.VACANT_GRAPH_ID),void 0===e&&(e=!1);var n=new i.Graph(t,!0,e);return this.dfsEdgeList.forEach(function(t){var e=t.fromNode,r=t.toNode,o=t.nodeEdgeNodeLabel,a=o.nodeLabel1,s=o.edgeLabel,u=o.nodeLabel2;a!==i.VACANT_NODE_LABEL&&n.addNode(e,a),u!==i.VACANT_NODE_LABEL&&n.addNode(r,u),a!==i.VACANT_NODE_LABEL&&u!==a&&n.addEdge(void 0,e,r,s);}),n;},t.prototype.buildRmpath=function(){this.rmpath=[];for(var t=void 0,e=this.dfsEdgeList.length,n=e-1;n>=0;n--){var r=this.dfsEdgeList[n],i=r.fromNode,o=r.toNode;i<o&&(void 0===t||o===t)&&(this.rmpath.push(n),t=i);}return this.rmpath;},t.prototype.getNodeNum=function(){var t={};return this.dfsEdgeList.forEach(function(e){t[e.fromNode]||(t[e.fromNode]=!0),t[e.toNode]||(t[e.toNode]=!0);}),Object.keys(t).length;},t;}(),s=function(){function t(t){if(this.his={},this.nodesUsed={},this.edgesUsed={},this.edges=[],t){for(;t;){var e=t.edge;this.edges.push(e),this.nodesUsed[e.from]=1,this.nodesUsed[e.to]=1,this.edgesUsed[e.id]=1,t=t.preNode;}this.edges=this.edges.reverse();}}return t.prototype.hasNode=function(t){return 1===this.nodesUsed[t.id];},t.prototype.hasEdge=function(t){return 1===this.edgesUsed[t.id];},t;}(),u=function(){function t(t){var e=t.graphs,n=t.minSupport,r=t.minNodeNum,i=t.maxNodeNum,o=t.top,s=t.directed,u=t.verbose;this.graphs=e,this.dfsCode=new a,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=void 0===n?2:n,this.top=void 0===o?10:o,this.directed=void 0!==s&&s,this.counter=0,this.maxNodeNum=void 0===i?4:i,this.minNodeNum=void 0===r?1:r,this.verbose=void 0!==u&&u,this.maxNodeNum<this.minNodeNum&&(this.maxNodeNum=this.minNodeNum),this.reportDF=[];}return t.prototype.findForwardRootEdges=function(t,e){var n=this,r=[],i=t.nodeMap;return e.edges.forEach(function(t){(n.directed||e.label<=i[t.to].label)&&r.push(t);}),r;},t.prototype.findBackwardEdge=function(t,e,n,r){if(!this.directed&&e===n)return null;for(var i=t.nodeMap,o=i[n.to].edges,a=o.length,s=0;s<a;s++){var u=o[s];if(!r.hasEdge(u)&&u.to===e.from){if(this.directed){if(i[e.from].label<i[n.to].label||i[e.from].label===i[n.to].label&&e.label<=u.label)return u;}else if(e.label<u.label||e.label===u.label&&i[e.to].label<=i[n.to].label)return u;}}return null;},t.prototype.findForwardPureEdges=function(t,e,n,r){for(var i=[],o=e.to,a=t.nodeMap[o].edges,s=a.length,u=0;u<s;u++){var c=a[u],l=t.nodeMap[c.to];n<=l.label&&!r.hasNode(l)&&i.push(c);}return i;},t.prototype.findForwardRmpathEdges=function(t,e,n,r){for(var i=[],o=t.nodeMap,a=o[e.to].label,s=o[e.from].edges,u=s.length,c=0;c<u;c++){var l=s[c],f=o[l.to].label;!(e.to===l.to||n>f||r.hasNode(o[l.to]))&&(e.label<l.label||e.label===l.label&&a<=f)&&i.push(l);}return i;},t.prototype.getSupport=function(t){var e={};return t.forEach(function(t){e[t.graphId]||(e[t.graphId]=!0);}),Object.keys(e).length;},t.prototype.findMinLabel=function(t){var e=void 0;return Object.keys(t).forEach(function(n){var r=t[n],i=r.nodeLabel1,o=r.edgeLabel,a=r.nodeLabel2;if(!e){e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a};return;}(i<e.nodeLabel1||i===e.nodeLabel1&&o<e.edgeLabel||i===e.nodeLabel1&&o===e.edgeLabel&&a<e.nodeLabel2)&&(e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a});}),e;},t.prototype.isMin=function(){var t=this,e=this.dfsCode;if(this.verbose&&console.log("isMin checking",e),1===e.dfsEdgeList.length)return!0;var n=this.directed,r=e.toGraph(i.VACANT_GRAPH_ID,n),u=r.nodeMap,c=new a,l={};r.nodes.forEach(function(e){t.findForwardRootEdges(r,e).forEach(function(t){var n=u[t.to],i="".concat(e.label,"-").concat(t.label,"-").concat(n.label);l[i]||(l[i]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:n.label});var o={graphId:r.id,edge:t,preNode:null};l[i].projected.push(o);});});var f=this.findMinLabel(l);if(f)return c.dfsEdgeList.push(new o(0,1,f.nodeLabel1,f.edgeLabel,f.nodeLabel2)),function a(l){for(var f=c.buildRmpath(),d=c.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,h=c.dfsEdgeList[f[0]].toNode,g={},p=!1,v=0,m=n?-1:0,y=function(e){if(p)return"break";l.forEach(function(n){var i=new s(n),o=t.findBackwardEdge(r,i.edges[f[e]],i.edges[f[0]],i);o&&(g[o.label]||(g[o.label]={projected:[],edgeLabel:o.label}),g[o.label].projected.push({graphId:r.id,edge:g,preNode:n}),v=c.dfsEdgeList[f[e]].fromNode,p=!0);});},b=f.length-1;b>m&&"break"!==y(b);b--);if(p){var x=t.findMinLabel(g);c.dfsEdgeList.push(new o(h,v,i.VACANT_NODE_LABEL,x.edgeLabel,i.VACANT_NODE_LABEL));var _=c.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[_]===c.dfsEdgeList[_]&&a(g[x.edgeLabel].projected);}var E={};p=!1;var w=0;l.forEach(function(e){var n=new s(e),i=t.findForwardPureEdges(r,n.edges[f[0]],d,n);i.length>0&&(p=!0,w=h,i.forEach(function(t){var n="".concat(t.label,"-").concat(u[t.to].label);E[n]||(E[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),E[n].projected.push({graphId:r.id,edge:t,preNode:e});}));});for(var M=f.length,b=0;b<M&&"break"!==function(e){if(p)return"break";var n=f[e];l.forEach(function(e){var i=new s(e),o=t.findForwardRmpathEdges(r,i.edges[n],d,i);o.length>0&&(p=!0,w=c.dfsEdgeList[n].fromNode,o.forEach(function(t){var n="".concat(t.label,"-").concat(u[t.to].label);E[n]||(E[n]={projected:[],edgeLabel:t.label,nodeLabel2:u[t.to].label}),E[n].projected.push({graphId:r.id,edge:t,preNode:e});}));});}(b);b++);if(!p)return!0;var C=t.findMinLabel(E);c.dfsEdgeList.push(new o(w,h+1,i.VACANT_NODE_LABEL,C.edgeLabel,C.nodeLabel2));var A=c.dfsEdgeList.length-1;return e.dfsEdgeList[A]===c.dfsEdgeList[A]&&a(E["".concat(C.edgeLabel,"-").concat(C.nodeLabel2)].projected);}(l["".concat(f.nodeLabel1,"-").concat(f.edgeLabel,"-").concat(f.nodeLabel2)].projected);},t.prototype.report=function(){if(!(this.dfsCode.getNodeNum()<this.minNodeNum)){this.counter++;var t=this.dfsCode.toGraph(this.counter,this.directed);this.frequentSubgraphs.push((0,r.clone)(t));}},t.prototype.subGraphMining=function(t){var e=this;if(!(this.getSupport(t)<this.minSupport)&&this.isMin()){this.report();var n=this.dfsCode.getNodeNum(),r=this.dfsCode.buildRmpath(),a=this.dfsCode.dfsEdgeList[r[0]].toNode,u=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,c={},l={};t.forEach(function(t){for(var i=e.graphs[t.graphId],o=i.nodeMap,f=new s(t),d=r.length-1;d>=0;d--){var h=e.findBackwardEdge(i,f.edges[r[d]],f.edges[r[0]],f);if(h){var g="".concat(e.dfsCode.dfsEdgeList[r[d]].fromNode,"-").concat(h.label);l[g]||(l[g]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[r[d]].fromNode,edgeLabel:h.label}),l[g].projected.push({graphId:t.graphId,edge:h,preNode:t});}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(i,f.edges[r[0]],u,f).forEach(function(e){var n="".concat(a,"-").concat(e.label,"-").concat(o[e.to].label);c[n]||(c[n]={projected:[],fromNodeId:a,edgeLabel:e.label,nodeLabel2:o[e.to].label}),c[n].projected.push({graphId:t.graphId,edge:e,preNode:t});});for(var p=function(n){e.findForwardRmpathEdges(i,f.edges[r[n]],u,f).forEach(function(i){var a="".concat(e.dfsCode.dfsEdgeList[r[n]].fromNode,"-").concat(i.label,"-").concat(o[i.to].label);c[a]||(c[a]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[r[n]].fromNode,edgeLabel:i.label,nodeLabel2:o[i.to].label}),c[a].projected.push({graphId:t.graphId,edge:i,preNode:t});});},d=0;d<r.length;d++)p(d);}}),Object.keys(l).forEach(function(t){var n=l[t],r=n.toNodeId,i=n.edgeLabel;e.dfsCode.dfsEdgeList.push(new o(a,r,"-1",i,"-1")),e.subGraphMining(l[t].projected),e.dfsCode.dfsEdgeList.pop();}),Object.keys(c).forEach(function(t){var n=c[t],r=n.fromNodeId,s=n.edgeLabel,u=n.nodeLabel2;e.dfsCode.dfsEdgeList.push(new o(r,a+1,i.VACANT_NODE_LABEL,s,u)),e.subGraphMining(c[t].projected),e.dfsCode.dfsEdgeList.pop();});}},t.prototype.generate1EdgeFrequentSubGraphs=function(){var t=this.graphs,e=this.directed,n=this.minSupport,r=this.frequentSize1Subgraphs,i={},o={},a={},s={};return Object.keys(t).forEach(function(n){var r=t[n],u=r.nodeMap;r.nodes.forEach(function(t,r){var c=t.label,l="".concat(n,"-").concat(c);if(!a[l]){var f=i[c]||0;f++,i[c]=f;}a[l]={graphKey:n,label:c},t.edges.forEach(function(t){var r=c,i=u[t.to].label;if(!e&&r>i){var a=i;i=r,r=a;}var l=t.label,f="".concat(n,"-").concat(r,"-").concat(l,"-").concat(i),d="".concat(r,"-").concat(l,"-").concat(i);if(!o[d]){var h=o[d]||0;h++,o[d]=h;}s[f]={graphId:n,nodeLabel1:r,edgeLabel:l,nodeLabel2:i};});});}),Object.keys(i).forEach(function(t){if(!(i[t]<n)){var e={nodes:[],edges:[]};e.nodes.push({id:"0",label:t}),r.push(e);}}),r;},t.prototype.run=function(){var t=this;if(this.frequentSize1Subgraphs=this.generate1EdgeFrequentSubGraphs(),!(this.maxNodeNum<2)){var e=this.graphs;this.directed;var n={};Object.keys(e).forEach(function(r){var i=e[r],o=i.nodeMap;i.nodes.forEach(function(e){t.findForwardRootEdges(i,e).forEach(function(t){var i=o[t.to],a="".concat(e.label,"-").concat(t.label,"-").concat(i.label);n[a]||(n[a]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:i.label}),n[a].projected.push({graphId:r,edge:t,preNode:null});});});}),Object.keys(n).forEach(function(e){var r=n[e],i=r.projected,a=r.nodeLabel1,s=r.edgeLabel,u=r.nodeLabel2;t.dfsCode.dfsEdgeList.push(new o(0,1,a,s,u)),t.subGraphMining(i),t.dfsCode.dfsEdgeList.pop();});}},t;}(),c=function(t,e,n,r){var o={};return Object.keys(t).forEach(function(a,s){var u=t[a],c=new i.Graph(s,!0,e),l={};u.nodes.forEach(function(t,e){c.addNode(e,t[n]),l[t.id]=e;}),u.edges.forEach(function(t,e){var n=l[t.source],i=l[t.target];c.addEdge(-1,n,i,t[r]);}),c&&c.getNodeNum()&&(o[c.id]=c);}),o;},l=function(t,e,n){var r=[];return t.forEach(function(t){var i={nodes:[],edges:[]};t.nodes.forEach(function(t){var n;i.nodes.push(((n={id:"".concat(t.id)})[e]=t.label,n));}),t.edges.forEach(function(t){var e;i.edges.push(((e={source:"".concat(t.from),target:"".concat(t.to)})[n]=t.label,e));}),r.push(i);}),r;},f="cluster";e.default=function(t){var e=t.graphs,n=t.directed,r=void 0!==n&&n,i=t.nodeLabelProp,o=void 0===i?f:i,a=t.edgeLabelProp,s=void 0===a?f:a,d=c(e,r,o,s),h=t.minSupport,g=t.maxNodeNum,p=t.minNodeNum,v=t.verbose,m=new u({graphs:d,minSupport:h,maxNodeNum:g,minNodeNum:p,top:t.top,verbose:v,directed:r});return m.run(),l(m.frequentSubgraphs,o,s);};},"7048382e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{SHAPE_TO_TAGS:function(){return r;},SVG_ATTR_MAP:function(){return i;}});var r={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},i={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"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"};},"712ef330":function(t,e,n){"use strict";function r(t,e){return t[0]*e[1]-e[0]*t[1];}n.d(e,"__esModule",{value:!0}),n.d(e,"direction",{enumerable:!0,get:function(){return r;}});},"716d9378":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r="click",i=["click","dblclick"],o={getDefaultCfg:function(){return{trigger:r,onChange:function(){}};},getEvents:function(){var t,e;return i.includes(this.trigger)?e=this.trigger:(e=r,console.warn("Behavior collapse-expand \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),(t={})["node:".concat(e)]="onNodeClick",t.touchstart="onNodeClick",t;},onNodeClick:function(t){var e=this;if("click"===this.trigger){if(this.timer){clearTimeout(this.timer),this.timer=0;return;}this.timer=setTimeout(function(){e.toggle(t),clearTimeout(e.timer),e.timer=0;},200);}else this.toggle(t);},toggle:function(t){var e=t.item;if(e){var n=this.graph.findDataById(e.get("id"));if(n){var r=n.children;if(r&&0!==r.length){var i=!n.collapsed;this.shouldBegin(t,i,this)&&(n.collapsed=i,e.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:t.item,collapsed:i}),this.shouldUpdate(t,i,this)&&(this.onChange(e,i,this),this.graph.layout()));}}}}};},"71975e07":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getAllProperties",{enumerable:!0,get:function(){return r;}});var r=function(t,e){void 0===e&&(e=void 0);var n=[];return t.forEach(function(t){void 0===e&&n.push(t),void 0!==t[e]&&n.push(t[e]);}),n;};},"71b016a7":function(t,e,n){"use strict";function r(t){return function(){return t;};}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"71b3b038":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("151aa8ff")),o=r._(n("8b6af789")),a=function(t,e,n,r){(0,o.default)(e)||(n=e,e=t,t=function(){});var a=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=a(e.prototype,t);return t.prototype=(0,i.default)(s,t.prototype),t.superclass=a(e.prototype,e),(0,i.default)(s,n),(0,i.default)(t,r),t;};},"71bd698c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.getFuncByUnknownType=e.getFunc=e.isFunction=void 0;var r=n("38788347"),i=n("10c0d8fc");e.isFunction=function(t){return"function"==typeof t;},e.getFunc=function(t,e,n){return n||((0,i.isNumber)(t)?function(){return t;}:function(){return e;});},e.getFuncByUnknownType=function(t,n,o){return(void 0===o&&(o=!0),n||0===n)?(0,e.isFunction)(n)?n:(0,i.isNumber)(n)?function(){return n;}:(0,r.isArray)(n)?function(){if(o){var e=Math.max.apply(Math,n);return isNaN(e)?t:e;}return n;}:(0,r.isObject)(n)?function(){if(o){var e=Math.max(n.width,n.height);return isNaN(e)?t:e;}return[n.width,n.height];}:function(){return t;}:function(e){return e.size?(0,r.isArray)(e.size)?e.size[0]>e.size[1]?e.size[0]:e.size[1]:(0,r.isObject)(e.size)?e.size.width>e.size.height?e.size.width:e.size.height:e.size:t;};};},"721bd00a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("4c6d310c"),i=n("22b52967"),o=n("f29fe526"),a=function(t,e,n){for(var r,i=1/0,o=0;o<e.length;o++){var a=e[o].id;!n[a]&&t[a]<=i&&(i=t[a],r=e[o]);}return r;},s=function(t,e,n,s){var u=t.nodes,c=void 0===u?[]:u,l=t.edges,f=void 0===l?[]:l,d=[],h={},g={},p={};c.forEach(function(t,n){var r=t.id;d.push(r),g[r]=1/0,r===e&&(g[r]=0);});for(var v=c.length,m=0;m<v;m++)!function(t){var e=a(g,c,h),r=e.id;h[r]=!0,g[r]!==1/0&&(n?(0,o.getOutEdgesNodeId)(r,f):(0,o.getEdgesByNodeId)(r,f)).forEach(function(t){var n=t.target,i=t.source,o=n===r?i:n,a=s&&t[s]?t[s]:1;g[o]>g[e.id]+a?(g[o]=g[e.id]+a,p[o]=[e.id]):g[o]===g[e.id]+a&&p[o].push(e.id);});}(0);p[e]=[e];var y={};for(var b in g)g[b]!==1/0&&function t(e,n,o,a){if(e===n)return[e];if(a[n])return a[n];for(var s=[],u=0,c=o[n];u<c.length;u++){var l=t(e,c[u],o,a);if(!l)return;for(var f=0;f<l.length;f++){var d=l[f];(0,i.isArray)(d)?s.push((0,r.__spreadArray)((0,r.__spreadArray)([],d,!0),[n],!1)):s.push([d,n]);}}return a[n]=s,a[n];}(e,b,p,y);var x={};for(var b in y)x[b]=y[b][0];return{length:g,path:x,allPath:y};};},"72225f68":function(t,e,n){"use strict";function r(t){var e=t.slice(1).map(function(e,n,r){return n?r[n-1].slice(-2).concat(e.slice(1)):t[0].slice(1).concat(e.slice(1));}).map(function(t){return t.map(function(e,n){return t[t.length-n-2*(1-n%2)];});}).reverse();return[["M"].concat(e[0].slice(0,2))].concat(e.map(function(t){return["C"].concat(t.slice(2));}));}n.d(e,"__esModule",{value:!0}),n.d(e,"reverseCurve",{enumerable:!0,get:function(){return r;}});},"726f18af":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("57580e52")),o=r._(n("8b6af789")),a=Object.keys?function(t){return Object.keys(t);}:function(t){var e=[];return(0,i.default)(t,function(n,r){(0,o.default)(t)&&"prototype"===r||e.push(r);}),e;};},"72c22a6b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"normalizePath",{enumerable:!0,get:function(){return u;}});var r=n("4c6d310c"),i=n("172bf417"),o=n("ce1fe40f"),a=n("f9fcb714"),s=n("83bb5564");function u(t){if((0,i.isNormalizedArray)(t))return[].concat(t);for(var e=(0,a.path2Absolute)(t),n=(0,r.__assign)({},o.paramsParser),u=0;u<e.length;u+=1){e[u]=(0,s.normalizeSegment)(e[u],n);var c=e[u],l=c.length;n.x1=+c[l-2],n.y1=+c[l-1],n.x2=+c[l-4]||n.x1,n.y2=+c[l-3]||n.y1;}return e;}},"72cb7894":function(t,e,n){},"72ec38af":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){this.graph=t,this.destroyed=!1,this.initEvents();};},"738ddbea":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("e3a1b1ed")),i=function(t,e){return(0,r.default)(t,function(t,n,r){return e.includes(r)||(t[r]=n),t;},{});};},"73d4723b":function(t,e,n){"use strict";function r(t){return(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;})(t);}function i(t){var e="function"==typeof Map?new Map:void 0;return(i=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n);}function n(){return o(t,arguments,u(this).constructor);}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t);})(t);}function o(t,e,n){return(o=a()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&s(i,n.prototype),i;}).apply(null,arguments);}function a(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0;}catch(t){return!1;}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t;})(t,e);}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t);})(t);}n.d(e,"__esModule",{value:!0}),n.e(e,{CycleException:function(){return c;},default:function(){return l;}});var c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e);}(i,t);var e,n=(e=a(),function(){var t,n=u(i);return t=e?Reflect.construct(n,arguments,u(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t;}(t);}(this,t);});function i(){return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function");}(this,i),n.apply(this,arguments);}return Object.defineProperty(i,"prototype",{writable:!1}),i;}(i(Error)),l=function(t){var e=new Set,n=new Set,r=[];if(t.sinks().forEach(function i(o){if(n.has(o))throw new c;if(!e.has(o)){var a;n.add(o),e.add(o),null===(a=t.predecessors(o))||void 0===a||a.forEach(i),n.delete(o),r.push(o);}}),e.size!==t.nodeCount())throw new c;return r;};},74004889:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("9b1a8ecb")),a=n("206aa8fa"),s=function(t){function e(e){return t.call(this,e)||this;}return(0,i.__extends)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e;},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox();},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t;},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t;},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null);},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var s=(0,a.multiplyVec2)(e,[t.minX,t.minY]),u=(0,a.multiplyVec2)(e,[t.maxX,t.minY]),c=(0,a.multiplyVec2)(e,[t.minX,t.maxY]),l=(0,a.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],u[0],c[0],l[0]),i=Math.max(s[0],u[0],c[0],l[0]),r=Math.min(s[1],u[1],c[1],l[1]),o=Math.max(s[1],u[1],c[1],l[1]);}var f=this.attrs;if(f.shadowColor){var d=f.shadowBlur,h=void 0===d?0:d,g=f.shadowOffsetX,p=void 0===g?0:g,v=f.shadowOffsetY,m=void 0===v?0:v,y=n-h+p,b=i+h+p,x=r-h+m,_=o+h+m;n=Math.min(n,y),i=Math.max(i,b),r=Math.min(r,x),o=Math.max(o,_);}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r};},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null);},e.prototype.isClipShape=function(){return this.get("isClipShape");},e.prototype.isInShape=function(t,e){return!1;},e.prototype.isOnlyHitBox=function(){return!1;},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);return this.isOnlyHitBox()?s:!!(s&&!this.isClipped(o,a)&&(this.isInShape(o,a)||n&&n.isHit(o,a)||r&&r.isHit(o,a)));},e;}(o.default);},"74b0ad4d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return t;};},"74c198b1":function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0));}return n;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"750261c7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("300ecc66");function i(t){var e=t.min,n=t.max,i=t.minTickInterval,o=t.tickInterval,a=t.tickCount;if(o)a=Math.ceil((n-e)/o);else{o=(0,r.getTickInterval)(e,n,a)[1];var s=(n-e)/o/a;s>1&&(o*=Math.ceil(s)),i&&o<i&&(o=i);}o=Math.max(Math.floor((n-e)/4095),o);for(var u=[],c=e;c<n+o;c+=o)u.push(c);return u;}},"75255c5a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("cc6c61ec"));function i(t,e){var n,i={},o={};for(n in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)n in t?i[n]=(0,r.default)(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t);return o;};}},"753d6c16":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("852bbaa9")._(n("73d4723b")),i=function(t){try{(0,r.default)(t);}catch(t){if(t instanceof r.CycleException)return!1;throw t;}return!0;};},"757ff68a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("d53bd7ec"),o=r._(n("71b016a7")),a=r._(n("3529c69a")),s=n("c32702c0");function u(){var t,e,n,r,u,c=(0,o.default)(-30),l=1,f=1/0,d=.81;function h(n){var o,a=t.length,u=(0,i.quadtree)(t,s.x,s.y).visitAfter(p);for(r=n,o=0;o<a;++o)e=t[o],u.visit(v);}function g(){if(t){var e,n,r=t.length;for(e=0,u=Array(r);e<r;++e)u[(n=t[e]).index]=+c(n,e,t);}}function p(t){var e,n,r,i,o,a=0,s=0;if(t.length){for(r=i=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(a+=e.value,s+=n,r+=n*e.x,i+=n*e.y);t.x=r/s,t.y=i/s;}else{(e=t).x=e.data.x,e.y=e.data.y;do a+=u[e.data.index];while(e=e.next)}t.value=a;}function v(t,i,o,s){if(!t.value)return!0;var c=t.x-e.x,h=t.y-e.y,g=s-i,p=c*c+h*h;if(g*g/d<p)return p<f&&(0===c&&(p+=(c=(0,a.default)(n))*c),0===h&&(p+=(h=(0,a.default)(n))*h),p<l&&(p=Math.sqrt(l*p)),e.vx+=c*t.value*r/p,e.vy+=h*t.value*r/p),!0;if(!t.length&&!(p>=f)){(t.data!==e||t.next)&&(0===c&&(p+=(c=(0,a.default)(n))*c),0===h&&(p+=(h=(0,a.default)(n))*h),p<l&&(p=Math.sqrt(l*p)));do t.data!==e&&(g=u[t.data.index]*r/p,e.vx+=c*g,e.vy+=h*g);while(t=t.next)}}return h.initialize=function(e,r){t=e,n=r,g();},h.strength=function(t){return arguments.length?(c="function"==typeof t?t:(0,o.default)(+t),g(),h):c;},h.distanceMin=function(t){return arguments.length?(l=t*t,h):Math.sqrt(l);},h.distanceMax=function(t){return arguments.length?(f=t*t,h):Math.sqrt(f);},h.theta=function(t){return arguments.length?(d=t*t,h):Math.sqrt(d);},h;}},"7593267d":function(t,e,n){"use strict";function r(t){return 10===t||13===t||8232===t||8233===t||32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t);}n.d(e,"__esModule",{value:!0}),n.d(e,"isSpace",{enumerable:!0,get:function(){return r;}});},"760de9e8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("e9abb551")),i=function(t,e,n){var i={};return t.nodes().forEach(function(o){return i[String(o)]=(0,r.default)(t,o,e,n),i;}),i;};},"7630fec3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("071f0c13")),o=r._(n("e9a09e78")),a=function(t){return t;},s=function(t,e){void 0===e&&(e=a);var n={};return(0,o.default)(t)&&!(0,i.default)(t)&&Object.keys(t).forEach(function(r){n[r]=e(t[r],r);}),n;};},"769809e4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{AST_TOKEN_TYPES:function(){return s;},ConfigService:function(){return h.ConfigService;},DefineValuePlaceholder:function(){return g;},STORAGE_CLASS:function(){return c;},Target:function(){return l;},createEntity:function(){return d.createEntity;},gl:function(){return f.gl;}}),n("04ab99e3");var r,i,o,a,s,u,c,l,f=n("2595781d"),d=n("01733cb2"),h=n("603c6687");n("f9d3d7de"),(r=s||(s={})).Void="Void",r.Boolean="Boolean",r.Float="Float",r.Uint32="Uint32",r.Int32="Int32",r.Vector="Vector",r.Vector2Float="vec2<f32>",r.Vector3Float="vec3<f32>",r.Vector4Float="vec4<f32>",r.Vector2Boolean="vec2<bool>",r.Vector3Boolean="vec3<bool>",r.Vector4Boolean="vec4<bool>",r.Vector2Uint="vec2<u32>",r.Vector3Uint="vec3<u32>",r.Vector4Uint="vec4<u32>",r.Vector2Int="vec2<i32>",r.Vector3Int="vec3<i32>",r.Vector4Int="vec4<i32>",r.Matrix="Matrix",r.Matrix3x3Float="mat3x3<f32>",r.Matrix4x4Float="mat4x4<i32>",r.Struct="Struct",r.FloatArray="Float[]",r.Vector4FloatArray="vec4<f32>[]",(i=u||(u={})).Program="Program",i.Identifier="Identifier",i.VariableDeclaration="VariableDeclaration",i.BlockStatement="BlockStatement",i.ReturnStatement="ReturnStatement",i.FunctionDeclaration="FunctionDeclaration",i.VariableDeclarator="VariableDeclarator",i.AssignmentExpression="AssignmentExpression",i.LogicalExpression="LogicalExpression",i.BinaryExpression="BinaryExpression",i.ArrayExpression="ArrayExpression",i.UnaryExpression="UnaryExpression",i.UpdateExpression="UpdateExpression",i.FunctionExpression="FunctionExpression",i.MemberExpression="MemberExpression",i.ConditionalExpression="ConditionalExpression",i.ExpressionStatement="ExpressionStatement",i.CallExpression="CallExpression",i.NumThreadStatement="NumThreadStatement",i.StorageStatement="StorageStatement",i.DoWhileStatement="DoWhileStatement",i.WhileStatement="WhileStatement",i.ForStatement="ForStatement",i.BreakStatement="BreakStatement",i.ContinueStatement="ContinueStatement",i.IfStatement="IfStatement",i.ImportedFunctionStatement="ImportedFunctionStatement",(o=c||(c={})).Input="Input",o.Output="Output",o.Uniform="Uniform",o.Workgroup="Workgroup",o.UniformConstant="UniformConstant",o.Image="Image",o.StorageBuffer="StorageBuffer",o.Private="Private",o.Function="Function",(a=l||(l={})).GLSL100="GLSL100",a.GLSL450="GLSL450",a.WGSL="WGSL";var g="__DefineValuePlaceholder__";},"76d43d1c":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,i);}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n];}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n);};Object.defineProperty(e,"__esModule",{value:!0}),e.ERLayout=e.ForceAtlas2Layout=e.ComboCombinedLayout=e.ComboForceLayout=e.GForceGPULayout=e.FruchtermanGPULayout=e.FruchtermanLayout=e.MDSLayout=e.ConcentricLayout=e.RadialLayout=e.DagreCompoundLayout=e.DagreLayout=e.CircularLayout=e.ForceLayout=e.Force2Layout=e.GForceLayout=e.RandomLayout=e.GridLayout=e.Layouts=e.Layout=void 0;var o=n("b0b078bd");Object.defineProperty(e,"GridLayout",{enumerable:!0,get:function(){return o.GridLayout;}});var a=n("b5d9520f");Object.defineProperty(e,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout;}});var s=n("5043e8ba");Object.defineProperty(e,"GForceLayout",{enumerable:!0,get:function(){return s.GForceLayout;}});var u=n("3d2f45d5");Object.defineProperty(e,"Force2Layout",{enumerable:!0,get:function(){return u.Force2Layout;}});var c=n("e570532a");Object.defineProperty(e,"ForceLayout",{enumerable:!0,get:function(){return c.ForceLayout;}});var l=n("e658ed93");Object.defineProperty(e,"CircularLayout",{enumerable:!0,get:function(){return l.CircularLayout;}});var f=n("86dbbe2a");Object.defineProperty(e,"DagreLayout",{enumerable:!0,get:function(){return f.DagreLayout;}});var d=n("a0f2fb57");Object.defineProperty(e,"DagreCompoundLayout",{enumerable:!0,get:function(){return d.DagreCompoundLayout;}});var h=n("86a82e9b");Object.defineProperty(e,"RadialLayout",{enumerable:!0,get:function(){return h.RadialLayout;}});var g=n("40287b3a");Object.defineProperty(e,"ConcentricLayout",{enumerable:!0,get:function(){return g.ConcentricLayout;}});var p=n("50277de6");Object.defineProperty(e,"MDSLayout",{enumerable:!0,get:function(){return p.MDSLayout;}});var v=n("4b6f939e");Object.defineProperty(e,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout;}});var m=n("405cc890");Object.defineProperty(e,"FruchtermanGPULayout",{enumerable:!0,get:function(){return m.FruchtermanGPULayout;}});var y=n("3c80ed51");Object.defineProperty(e,"GForceGPULayout",{enumerable:!0,get:function(){return y.GForceGPULayout;}});var b=n("32691cb9");Object.defineProperty(e,"ComboForceLayout",{enumerable:!0,get:function(){return b.ComboForceLayout;}});var x=n("f9f31366");Object.defineProperty(e,"ComboCombinedLayout",{enumerable:!0,get:function(){return x.ComboCombinedLayout;}});var _=n("467c7895");Object.defineProperty(e,"ForceAtlas2Layout",{enumerable:!0,get:function(){return _.ForceAtlas2Layout;}});var E=n("62ef0bec");Object.defineProperty(e,"ERLayout",{enumerable:!0,get:function(){return E.ERLayout;}});var w=n("44cdc360");Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return w.Layout;}}),Object.defineProperty(e,"Layouts",{enumerable:!0,get:function(){return w.Layouts;}}),i(n("b3e0ff77"),e);},"7712cd71":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("04480408")),o=r._(n("aac703c5")),a=n("ca8df5f7");class s{constructor(t){let e,n,r,i;let s=(t=o.default.checkMatrix(t)).clone(),u=t.rows,c=t.columns,l=new Float64Array(c);for(r=0;r<c;r++){let t=0;for(e=r;e<u;e++)t=(0,a.hypotenuse)(t,s.get(e,r));if(0!==t){for(0>s.get(r,r)&&(t=-t),e=r;e<u;e++)s.set(e,r,s.get(e,r)/t);for(s.set(r,r,s.get(r,r)+1),n=r+1;n<c;n++){for(i=0,e=r;e<u;e++)i+=s.get(e,r)*s.get(e,n);for(i=-i/s.get(r,r),e=r;e<u;e++)s.set(e,n,s.get(e,n)+i*s.get(e,r));}}l[r]=-t;}this.QR=s,this.Rdiag=l;}solve(t){let e,n,r,o;t=i.default.checkMatrix(t);let a=this.QR,s=a.rows;if(t.rows!==s)throw Error("Matrix row dimensions must agree");if(!this.isFullRank())throw Error("Matrix is rank deficient");let u=t.columns,c=t.clone(),l=a.columns;for(r=0;r<l;r++)for(n=0;n<u;n++){for(o=0,e=r;e<s;e++)o+=a.get(e,r)*c.get(e,n);for(o=-o/a.get(r,r),e=r;e<s;e++)c.set(e,n,c.get(e,n)+o*a.get(e,r));}for(r=l-1;r>=0;r--){for(n=0;n<u;n++)c.set(r,n,c.get(r,n)/this.Rdiag[r]);for(e=0;e<r;e++)for(n=0;n<u;n++)c.set(e,n,c.get(e,n)-c.get(r,n)*a.get(e,r));}return c.subMatrix(0,l-1,0,u-1);}isFullRank(){let t=this.QR.columns;for(let e=0;e<t;e++)if(0===this.Rdiag[e])return!1;return!0;}get upperTriangularMatrix(){let t,e,n=this.QR,r=n.columns,o=new i.default(r,r);for(t=0;t<r;t++)for(e=0;e<r;e++)t<e?o.set(t,e,n.get(t,e)):t===e?o.set(t,e,this.Rdiag[t]):o.set(t,e,0);return o;}get orthogonalMatrix(){let t,e,n,r,o=this.QR,a=o.rows,s=o.columns,u=new i.default(a,s);for(n=s-1;n>=0;n--){for(t=0;t<a;t++)u.set(t,n,0);for(u.set(n,n,1),e=n;e<s;e++)if(0!==o.get(n,n)){for(r=0,t=n;t<a;t++)r+=o.get(t,n)*u.get(t,e);for(r=-r/o.get(n,n),t=n;t<a;t++)u.set(t,e,u.get(t,e)+r*o.get(t,n));}}return u;}}},"77bf7b9a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.dontSetMe=function(t,e,n){if(t[e])return Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."));},e.findInArray=function(t,e){for(let n=0,r=t.length;n<r;n++)if(e.apply(e,[t[n],n,t]))return t[n];},e.int=function(t){return parseInt(t,10);},e.isFunction=function(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t);},e.isNum=function(t){return"number"==typeof t&&!isNaN(t);};},"783a25f0":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("e9a09e78")),o=r._(n("c2d1eb5c")),a=r._(n("501adece")),s=function(t,e,n){var r=t,s=(0,o.default)(e)?e.split("."):e;return s.forEach(function(t,e){e<s.length-1?((0,i.default)(r[t])||(r[t]=(0,a.default)(s[e+1])?[]:{}),r=r[t]):r[t]=n;}),t;};},"78c52d9c":function(t,e,n){var r,i;r=this,i=function(){"use strict";let t=/^[\w+.-]+:\/\//,e=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(t){return t.startsWith("/");}function i(t){return/^[.?#]/.test(t);}function o(t){let n=e.exec(t);return a(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"");}function a(t,e,n,r,i,o,a){return{scheme:t,user:e,host:n,port:r,path:i,query:o,hash:a,type:7};}function s(e){if(e.startsWith("//")){let t=o("http:"+e);return t.scheme="",t.type=6,t;}if(r(e)){let t=o("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t;}if(e.startsWith("file:"))return function(t){let e=n.exec(t),i=e[2];return a("file:","",e[1]||"","",r(i)?i:"/"+i,e[3]||"",e[4]||"");}(e);if(t.test(e))return o(e);let i=o("http://foo.com/"+e);return i.scheme="",i.host="",i.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,i;}function u(t,e){let n=e<=4,r=t.path.split("/"),i=1,o=0,a=!1;for(let t=1;t<r.length;t++){let e=r[t];if(!e){a=!0;continue;}if(a=!1,"."!==e){if(".."===e){o?(a=!0,o--,i--):n&&(r[i++]=e);continue;}r[i++]=e,o++;}}let s="";for(let t=1;t<i;t++)s+="/"+r[t];s&&(!a||s.endsWith("/.."))||(s+="/"),t.path=s;}return function(t,e){if(!t&&!e)return"";let n=s(t),r=n.type;if(e&&7!==r){let t=s(e),i=t.type;switch(r){case 1:n.hash=t.hash;case 2:n.query=t.query;case 3:case 4:u(t,t.type),"/"===n.path?n.path=t.path:n.path=function(t){if(t.endsWith("/.."))return t;let e=t.lastIndexOf("/");return t.slice(0,e+1);}(t.path)+n.path;case 5:n.user=t.user,n.host=t.host,n.port=t.port;case 6:n.scheme=t.scheme;}i>r&&(r=i);}u(n,r);let o=n.query+n.hash;switch(r){case 2:case 3:return o;case 4:{let r=n.path.slice(1);if(!r)return o||".";if(i(e||t)&&!i(r))return"./"+r+o;return r+o;}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o;}};},"object"==typeof e&&void 0!==t?t.exports=i():(r="undefined"!=typeof globalThis?globalThis:r||self).resolveURI=i();},"78f90810":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("e82c7689"));function i(t){return(0,r.default)(t)&&isFinite(t);}},"7973edf4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("1bfab17d")),s=r._(n("e4c72138")),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e;}return(0,i.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker());},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,o.isArray)(t)?t.map(function(t){return t.join(" ");}).join(""):t;},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,a=e.symbol||"circle";return(t=(0,o.isFunction)(a)?a:s.default.get(a))?t(n,r,i):(console.warn(t+" symbol is not exist."),null);},e.symbolsFactory=s.default,e;}(a.default);},"7a016b76":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("155fe01c")),a=function(t,e){if((0,i.default)(t)){for(var n,r=-1/0,a=0;a<t.length;a++){var s=t[a],u=(0,o.default)(e)?e(s):s[e];u>r&&(n=s,r=u);}return n;}};},"7a0ef3de":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("f0b8b26a")),o=r._(n("120583e1")),a=Object.prototype.hasOwnProperty,s=function(t,e){if(null===t||!(0,o.default)(t))return{};var n={};return(0,i.default)(e,function(e){a.call(t,e)&&(n[e]=t[e]);}),n;};},"7a329456":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"paramsCount",{enumerable:!0,get:function(){return r;}});var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};},"7a4726ef":function(t,e,n){let r=n("2a4fe9ac");(function(){var e,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now();}:null!=r&&r.hrtime?(t.exports=function(){return(e()-o)/1e6;},n=r.hrtime,o=(e=function(){var t;return 1e9*(t=n())[0]+t[1];})()-1e9*r.uptime()):Date.now?(t.exports=function(){return Date.now()-i;},i=Date.now()):(t.exports=function(){return new Date().getTime()-i;},i=new Date().getTime());}).call(this);},"7a8ce254":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("22b52967");function i(t){return function(e,n,i,o){for(var a=(0,r.isNil)(i)?0:i,s=(0,r.isNil)(o)?e.length:o;a<s;){var u=a+s>>>1;t(e[u])>n?s=u:a=u+1;}return a;};}},"7af0f380":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("528465ee")),a=r._(n("a9d43e9b")),s=n("22b52967");a.default.registerCombo("circle",{options:{size:[o.default.defaultCombo.size[0],o.default.defaultCombo.size[0]],padding:Math.max.apply(Math,o.default.defaultCombo.padding),animate:!0,style:{stroke:o.default.defaultCombo.style.stroke,fill:o.default.defaultCombo.style.fill,lineWidth:o.default.defaultCombo.style.lineWidth},labelCfg:{style:{fill:o.default.comboLabel.style.fill,fontSize:o.default.comboLabel.style.fontSize},refX:0,refY:0},stateStyles:(0,i.__assign)({},o.default.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},shapeType:"circle",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t);return delete n.height,delete n.width,e.addShape("circle",{attrs:n,className:"circle-combo",name:"circle-combo",draggable:!0});},getShapeStyle:function(t){var e,n=this.options.style,r=t.padding||this.options.padding;(0,s.isArray)(r)&&(r=Math.max.apply(Math,r));var a={stroke:t.color},u=(0,s.mix)({},n,a,t.style),c=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;if(c)e=(0,s.isNumber)(c)?c/2:c[0]/2;else{var l=this.getSize(t);e=!(0,s.isNumber)(u.r)||isNaN(u.r)?l[0]/2||o.default.defaultCombo.style.r:Math.max(u.r,l[0]/2)||l[0]/2;}u.r=e+r;var f=(0,i.__assign)({x:0,y:0},u);return t.style?t.style.r=e:t.style={r:e},f;},update:function(t,e){var n,r=this.getSize(t),i=t.padding||this.options.padding;(0,s.isArray)(i)&&(i=Math.max.apply(Math,i));var o=(0,s.clone)(t.style),a=t.collapsed&&t.fixCollapseSize?t.fixCollapseSize:t.fixSize;n=a?(0,s.isNumber)(a)?a/2:a[0]/2:Math.max(o.r,r[0]/2)||r[0]/2,o.r=n+i;var u=e.get("sizeCache");u&&(u.r=o.r);var c={stroke:t.color},l=e.get("keyShape"),f=(0,s.mix)({},l.attr(),c,o);t.style?t.style.r=n:t.style={r:n},this.updateShape(t,e,f,!0);}},"single-combo");},"7b171369":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"scanParam",{enumerable:!0,get:function(){return i;}});var r=n("1675e698");function i(t){var e,n=t.max,i=t.pathValue,o=t.index,a=o,s=!1,u=!1,c=!1,l=!1;if(a>=n){t.err="[path-util]: Invalid path value at index ".concat(a,', "pathValue" is missing param');return;}if((43===(e=i.charCodeAt(a))||45===e)&&(a+=1,e=i.charCodeAt(a)),!(0,r.isDigit)(e)&&46!==e){t.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(i[a],'" is not a number');return;}if(46!==e){if(s=48===e,a+=1,e=i.charCodeAt(a),s&&a<n&&e&&(0,r.isDigit)(e)){t.err="[path-util]: Invalid path value at index ".concat(o,', "').concat(i[o],'" illegal number');return;}for(;a<n&&(0,r.isDigit)(i.charCodeAt(a));)a+=1,u=!0;e=i.charCodeAt(a);}if(46===e){for(l=!0,a+=1;(0,r.isDigit)(i.charCodeAt(a));)a+=1,c=!0;e=i.charCodeAt(a);}if(101===e||69===e){if(l&&!u&&!c){t.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(i[a],'" invalid float exponent');return;}if(a+=1,(43===(e=i.charCodeAt(a))||45===e)&&(a+=1),a<n&&(0,r.isDigit)(i.charCodeAt(a)))for(;a<n&&(0,r.isDigit)(i.charCodeAt(a));)a+=1;else{t.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(i[a],'" invalid integer exponent');return;}}t.index=a,t.param=+t.pathValue.slice(o,a);}},"7b960f61":function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports;}return n.m=t,n.c=e,n.p="",n(0);}([function(t,e,n){t.exports=n(1);},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(2))&&r.__esModule?r:{default:r};e.default=i.default,t.exports=e.default;},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var 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;};function i(t){return t&&t.__esModule?t:{default:t};}e.default=c;var o=n(3),a=i(n(4)),s=n(14),u=i(n(15));function c(t){var e=t.activeClassName,n=void 0===e?"":e,i=t.activeIndex,a=void 0===i?-1:i,c=t.activeStyle,l=t.autoEscape,f=t.caseSensitive,d=void 0!==f&&f,h=t.className,g=t.findChunks,p=t.highlightClassName,v=void 0===p?"":p,m=t.highlightStyle,y=void 0===m?{}:m,b=t.highlightTag,x=t.sanitize,_=t.searchWords,E=t.textToHighlight,w=t.unhighlightTag,M=void 0===w?"span":w,C=t.unhighlightClassName,A=void 0===C?"":C,S=t.unhighlightStyle,D=function(t,e){var n={};for(var r in t)!(e.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n;}(t,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),I=(0,o.findAll)({autoEscape:l,caseSensitive:d,findChunks:g,sanitize:x,searchWords:_,textToHighlight:E}),T=void 0===b?"mark":b,k=-1,F="",N=void 0,O=(0,u.default)(function(t){var e={};for(var n in t)e[n.toLowerCase()]=t[n];return e;});return(0,s.createElement)("span",r({className:h},D,{children:I.map(function(t,e){var r=E.substr(t.start,t.end-t.start);if(!t.highlight)return(0,s.createElement)(M,{children:r,className:A,key:e,style:S});k++;var i=void 0;i="object"==typeof v?d?v[r]:(v=O(v))[r.toLowerCase()]:v;var o=k===+a;F=i+" "+(o?n:""),N=!0===o&&null!=c?Object.assign({},y,c):y;var u={children:r,className:F,key:e,style:N};return"string"!=typeof T&&(u.highlightIndex=k),(0,s.createElement)(T,u);})}));}c.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},t.exports=e.default;},function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports;}return n.m=t,n.c=e,n.p="",n(0);}([function(t,e,n){t.exports=n(1);},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);Object.defineProperty(e,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks;}}),Object.defineProperty(e,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks;}}),Object.defineProperty(e,"findAll",{enumerable:!0,get:function(){return r.findAll;}}),Object.defineProperty(e,"findChunks",{enumerable:!0,get:function(){return r.findChunks;}});},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findAll=function(t){var e=t.autoEscape,o=t.caseSensitive,a=t.findChunks,s=void 0===a?r:a,u=t.sanitize,c=t.searchWords,l=t.textToHighlight;return i({chunksToHighlight:n({chunks:s({autoEscape:e,caseSensitive:void 0!==o&&o,sanitize:u,searchWords:c,textToHighlight:l})}),totalLength:l?l.length:0});};var n=e.combineChunks=function(t){return t.chunks.sort(function(t,e){return t.start-e.start;}).reduce(function(t,e){if(0===t.length)return[e];var n=t.pop();if(e.start<=n.end){var r=Math.max(n.end,e.end);t.push({start:n.start,end:r});}else t.push(n,e);return t;},[]);},r=function(t){var e=t.autoEscape,n=t.caseSensitive,r=t.sanitize,i=void 0===r?o:r,a=t.searchWords,s=t.textToHighlight;return s=i(s),a.filter(function(t){return t;}).reduce(function(t,r){r=i(r),e&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(r,n?"g":"gi"),a=void 0;a=o.exec(s);){var u=a.index,c=o.lastIndex;c>u&&t.push({start:u,end:c}),a.index==o.lastIndex&&o.lastIndex++;}return t;},[]);};e.findChunks=r;var i=e.fillInChunks=function(t){var e=t.chunksToHighlight,n=t.totalLength,r=[],i=function(t,e,n){e-t>0&&r.push({start:t,end:e,highlight:n});};if(0===e.length)i(0,n,!1);else{var o=0;e.forEach(function(t){i(o,t.start,!1),i(t.start,t.end,!0),o=t.end;}),i(o,n,!1);}return r;};function o(t){return t;}}]);},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n(6)(function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r;},!0);}else t.exports=n(13)();}).call(e,n(5));},function(t,e){var n,r,i,o=t.exports={};function a(){throw Error("setTimeout has not been defined");}function s(){throw Error("clearTimeout has not been defined");}function u(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(){try{n="function"==typeof setTimeout?setTimeout:a;}catch(t){n=a;}try{r="function"==typeof clearTimeout?clearTimeout:s;}catch(t){r=s;}}();var c=[],l=!1,f=-1;function d(){l&&i&&(l=!1,i.length?c=i.concat(c):f=-1,c.length&&h());}function h(){if(!l){var t=u(d);l=!0;for(var e=c.length;e;){for(i=c,c=[];++f<e;)i&&i[f].run();f=-1,e=c.length;}i=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t);}catch(e){try{return r.call(null,t);}catch(e){return r.call(this,t);}}}(t);}}function g(t,e){this.fun=t,this.array=e;}function p(){}o.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new g(t,e)),1!==c.length||l||u(h);},g.prototype.run=function(){this.fun.apply(null,this.array);},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(t){return[];},o.binding=function(t){throw Error("process.binding is not supported");},o.cwd=function(){return"/";},o.chdir=function(t){throw Error("process.chdir is not supported");},o.umask=function(){return 0;};},function(t,e,n){(function(e){"use strict";var r=n(7),i=n(8),o=n(9),a=n(10),s=n(11),u=n(12);t.exports=function(t,n){var c="function"==typeof Symbol&&Symbol.iterator,l="<<anonymous>>",f={array:g("array"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:h(r.thatReturnsNull),arrayOf:function(t){return h(function(e,n,r,i,o){if("function"!=typeof t)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a))return new d("Invalid "+i+" `"+o+"` of type "+("`"+p(a))+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<a.length;u++){var c=t(a,u,r,i,o+"["+u+"]",s);if(c instanceof Error)return c;}return null;});},element:h(function(e,n,r,i,o){var a=e[n];return t(a)?null:new d("Invalid "+i+" `"+o+"` of type "+("`"+p(a))+"` supplied to `"+r+"`, expected a single ReactElement.");}),instanceOf:function(t){return h(function(e,n,r,i,o){if(!(e[n]instanceof t)){var a,s=t.name||l;return new d("Invalid "+i+" `"+o+"` of type "+("`"+((a=e[n]).constructor&&a.constructor.name?a.constructor.name:l))+"` supplied to `"+r+"`, expected instance of `"+s+"`.");}return null;});},node:h(function(e,n,r,i,o){return!function e(n){switch(typeof n){case"number":case"string":case"undefined":return!0;case"boolean":return!n;case"object":if(Array.isArray(n))return n.every(e);if(null===n||t(n))return!0;var r=function(t){var e=t&&(c&&t[c]||t["@@iterator"]);if("function"==typeof e)return e;}(n);if(!r)return!1;var i,o=r.call(n);if(r!==n.entries){for(;!(i=o.next()).done;)if(!e(i.value))return!1;}else for(;!(i=o.next()).done;){var a=i.value;if(a&&!e(a[1]))return!1;}return!0;default:return!1;}}(e[n])?new d("Invalid "+i+" `"+o+"` supplied to `"+r+"`, expected a ReactNode."):null;}),objectOf:function(t){return h(function(e,n,r,i,o){if("function"!=typeof t)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=e[n],u=p(a);if("object"!==u)return new d("Invalid "+i+" `"+o+"` of type "+("`"+u)+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var l=t(a,c,r,i,o+"."+c,s);if(l instanceof Error)return l;}return null;});},oneOf:function(t){return Array.isArray(t)?h(function(e,n,r,i,o){for(var a,s=e[n],u=0;u<t.length;u++)if(s===(a=t[u])?0!==s||1/s==1/a:s!=s&&a!=a)return null;return new d("Invalid "+i+" `"+o+"` of value `"+s+"` "+("supplied to `"+r)+"`, expected one of "+JSON.stringify(t)+".");}):("production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull);},oneOfType:function(t){if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<t.length;n++){var i=t[n];if("function"!=typeof i)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",function(t){var e=v(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e;}}(i),n),r.thatReturnsNull;}return h(function(e,n,r,i,o){for(var a=0;a<t.length;a++)if(null==(0,t[a])(e,n,r,i,o,s))return null;return new d("Invalid "+i+" `"+o+"` supplied to `"+r+"`.");});},shape:function(t){return h(function(e,n,r,i,o){var a=e[n],u=p(a);if("object"!==u)return new d("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var c in t){var l=t[c];if(l){var f=l(a,c,r,i,o+"."+c,s);if(f)return f;}}return null;});},exact:function(t){return h(function(e,n,r,i,o){var u=e[n],c=p(u);if("object"!==c)return new d("Invalid "+i+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var l=a({},e[n],t);for(var f in l){var h=t[f];if(!h)return new d("Invalid "+i+" `"+o+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var g=h(u,f,r,i,o+"."+f,s);if(g)return g;}return null;});}};function d(t){this.message=t,this.stack="";}function h(t){if("production"!==e.env.NODE_ENV)var r={},a=0;function u(u,c,f,h,g,p,v){if(h=h||l,p=p||f,v!==s){if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var m=h+":"+f;!r[m]&&a<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",p,h),r[m]=!0,a++);}}return null!=c[f]?t(c,f,h,g,p):u?new d(null===c[f]?"The "+g+" `"+p+"` is marked as required in `"+h+"`, but its value is `null`.":"The "+g+" `"+p+"` is marked as required in `"+h+"`, but its value is `undefined`."):null;}var c=u.bind(null,!1);return c.isRequired=u.bind(null,!0),c;}function g(t){return h(function(e,n,r,i,o,a){var s=e[n];return p(s)!==t?new d("Invalid "+i+" `"+o+"` of type "+("`"+v(s))+"` supplied to `"+r+"`, expected `"+t+"`."):null;});}function p(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol?"symbol":e;}function v(t){if(null==t)return""+t;var e=p(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp";}return e;}return d.prototype=Error.prototype,f.checkPropTypes=u,f.PropTypes=f,f;};}).call(e,n(5));},function(t,e){"use strict";function n(t){return function(){return t;};}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this;},r.thatReturnsArgument=function(t){return t;},t.exports=r;},function(t,e,n){(function(e){"use strict";var n=function(t){};"production"!==e.env.NODE_ENV&&(n=function(t){if(void 0===t)throw Error("invariant requires an error message argument");}),t.exports=function(t,e,r,i,o,a,s,u){if(n(e),!t){var c;if(void 0===e)c=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,i,o,a,s,u],f=0;(c=Error(e.replace(/%s/g,function(){return l[f++];}))).name="Invariant Violation";}throw c.framesToPop=1,c;}};}).call(e,n(5));},function(t,e,n){(function(e){"use strict";var r=n(7);if("production"!==e.env.NODE_ENV){var i=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,o="Warning: "+t.replace(/%s/g,function(){return n[i++];});"undefined"!=typeof console&&console.error(o);try{throw Error(o);}catch(t){}};r=function(t,e){if(void 0===e)throw Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[e].concat(r));}};}t.exports=r;}).call(e,n(5));},function(t,e){"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=!function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t];});if("0123456789"!==r.join(""))return!1;var i={};if("abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t;}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join(""))return!1;return!0;}catch(t){return!1;}}()?function(t,e){for(var o,a,s=function(t){if(null==t)throw TypeError("Object.assign cannot be called with null or undefined");return Object(t);}(t),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))r.call(o,c)&&(s[c]=o[c]);if(n){a=n(o);for(var l=0;l<a.length;l++)i.call(o,a[l])&&(s[a[l]]=o[a[l]]);}}return s;}:Object.assign;},function(t,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";},function(t,e,n){(function(e){"use strict";if("production"!==e.env.NODE_ENV)var r=n(8),i=n(9),o=n(11),a={};t.exports=function(t,n,s,u,c){if("production"!==e.env.NODE_ENV){for(var l in t)if(t.hasOwnProperty(l)){var f;try{r("function"==typeof t[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",u||"React class",s,l,typeof t[l]),f=t[l](n,l,u,s,null,o);}catch(t){f=t;}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,l,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=c?c():"";i(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"");}}}};}).call(e,n(5));},function(t,e,n){"use strict";var r=n(7),i=n(8),o=n(11);t.exports=function(){function t(t,e,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");}function e(){return t;}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n;};},function(t,e){t.exports=n("5b220c3d");},function(t,e){"use strict";var n=function(t,e){return t===e;};t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=void 0,i=[],o=void 0,a=!1,s=function(t,n){return e(t,i[n]);};return function(){for(var e=arguments.length,n=Array(e),u=0;u<e;u++)n[u]=arguments[u];return a&&r===this&&n.length===i.length&&n.every(s)?o:(a=!0,r=this,i=n,o=t.apply(this,n));};};}]);},"7bb867f3":function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("8919b16e")),o=r(n("86e53343")),a=r(n("b862a8b8")),s=r(n("90ff42bf")),u=r(n("4ea889e5")),c=n("38788347"),l=n("62734055"),f=n("dfdb2ac4"),d=function(t,e,n){return e.map(function(e){return(0,a.default)(t,e,n);});},h=function(t,e,n,r){var i=new l.Graph;null==t||t.forEach(function(t){for(var o,a=t.graph().root,c=(0,u.default)(t,a,i,e,n,r),l=0;l<(null===(o=c.vs)||void 0===o?void 0:o.length);l++){var f=t.node(c.vs[l]);f&&(f.order=l);}(0,s.default)(t,i,c.vs);});},g=function(t,e){null==e||e.forEach(function(e){null==e||e.forEach(function(e,n){t.node(e).order=n;});});};e.default=function(t,e){for(var n,r=(0,f.maxRank)(t),a=[],s=[],u=1;u<r+1;u++)a.push(u);for(var u=r-1;u>-1;u--)s.push(u);var l=d(t,a,"inEdges"),p=d(t,s,"outEdges"),v=(0,i.default)(t);g(t,v);for(var m=Number.POSITIVE_INFINITY,u=0,y=0;y<4;++u,++y){h(u%2?l:p,u%4>=2,!1,e),v=(0,f.buildLayerMatrix)(t);var b=(0,o.default)(t,v);b<m&&(y=0,n=(0,c.clone)(v),m=b);}v=(0,i.default)(t),g(t,v);for(var u=0,y=0;y<4;++u,++y){h(u%2?l:p,u%4>=2,!0,e),v=(0,f.buildLayerMatrix)(t);var b=(0,o.default)(t,v);b<m&&(y=0,n=(0,c.clone)(v),m=b);}g(t,n);};},"7be994de":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(){function t(){this._events={};}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this;},t.prototype.once=function(t,e){return this.on(t,e,!0);},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n);}};a(i),a(o);},t.prototype.off=function(t,e){if(t){if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t];}else delete this._events[t];}else this._events={};return this;},t.prototype.getEvents=function(){return this._events;},t;}();},"7c709ac0":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("47526327")),i=function(t){var e=(0,r.default)(t);return e.charAt(0).toUpperCase()+e.substring(1);};},"7cb31f9e":function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"7d365ff4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("942b4eed")),a=function(t,e){return!!((0,i.default)(t)||(0,o.default)(t))&&t[t.length-1]===e;};},"7da05c33":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null);},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return i=this,o=arguments,l<=0||l>e?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,l)),a;};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null;},c;};},"7dd60bd7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.slack=e.longestPathWithLayer=e.longestPath=void 0;var r=function(t){var e,n={},r=function(e){var i,o,a=t.node(e);return a?n[e]?a.rank:(n[e]=!0,null===(i=t.outEdges(e))||void 0===i||i.forEach(function(e){var n=r(e.w)-t.edge(e).minlen;n&&(void 0===o||n<o)&&(o=n);}),o||(o=0),a.rank=o,o):0;};null===(e=t.sources())||void 0===e||e.forEach(function(t){return r(t);});};e.longestPath=r;var i=function(t){var e,n,r={},i=function(e){var o,a,s=t.node(e);return s?r[e]?s.rank:(r[e]=!0,null===(o=t.outEdges(e))||void 0===o||o.forEach(function(e){var n=i(e.w)-t.edge(e).minlen;n&&(void 0===a||n<a)&&(a=n);}),a||(a=0),(void 0===n||a<n)&&(n=a),s.rank=a,a):0;};null===(e=t.sources())||void 0===e||e.forEach(function(e){t.node(e)&&i(e);}),void 0===n&&(n=0);var o={},a=function(e,n){var r,i=t.node(e),s=isNaN(i.layer)?n:i.layer;(void 0===i.rank||i.rank<s)&&(i.rank=s),o[e]||(o[e]=!0,null===(r=t.outEdges(e))||void 0===r||r.map(function(e){a(e.w,s+t.edge(e).minlen);}));};t.nodes().forEach(function(e){var r=t.node(e);r&&(isNaN(r.layer)?r.rank-=n:a(e,r.layer));});};e.longestPathWithLayer=i;var o=function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen;};e.slack=o,e.default={longestPath:r,longestPathWithLayer:i,slack:o};},"7e05b7c9":function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n("33e7aed3")),a=i(n("4b7b5836")),s=i(n("a262488c")),u=n("dfdb2ac4"),c=i(n("69481062")),l=i(n("ecbe3b4d")),f=i(n("bdb5972e")),d=i(n("dcf08bcf")),h=i(n("7bb867f3")),g=i(n("c2fb7b24")),p=i(n("a69397bb")),v=n("62734055"),m=function(t,e,n){e(" removeSelfEdges",function(){j(t);}),e(" acyclic",function(){o.default.run(t);}),e(" nestingGraph.run",function(){l.default.run(t);}),e(" rank",function(){(0,s.default)((0,u.asNonCompoundGraph)(t));}),e(" injectEdgeLabelProxies",function(){T(t);}),e(" removeEmptyRanks",function(){(0,u.removeEmptyRanks)(t);}),e(" nestingGraph.cleanup",function(){l.default.cleanup(t);}),e(" normalizeRanks",function(){(0,u.normalizeRanks)(t);}),e(" assignRankMinMax",function(){k(t);}),e(" removeEdgeLabelProxies",function(){F(t);}),e(" normalize.run",function(){a.default.run(t);}),e(" parentDummyChains",function(){(0,c.default)(t);}),e(" addBorderSegments",function(){(0,f.default)(t);}),n&&n.keepNodeOrder&&e(" initDataOrder",function(){(0,p.default)(t,n.nodeOrder);}),e(" order",function(){(0,h.default)(t,null==n?void 0:n.keepNodeOrder);}),e(" insertSelfEdges",function(){R(t);}),e(" adjustCoordinateSystem",function(){d.default.adjust(t);}),e(" position",function(){(0,g.default)(t);}),e(" positionSelfEdges",function(){z(t);}),e(" removeBorderNodes",function(){L(t);}),e(" normalize.undo",function(){a.default.undo(t);}),e(" fixupEdgeLabelCoords",function(){B(t);}),e(" undoCoordinateSystem",function(){d.default.undo(t);}),e(" translateGraph",function(){N(t);}),e(" assignNodeIntersects",function(){O(t);}),e(" reversePoints",function(){P(t);}),e(" acyclic.undo",function(){o.default.undo(t);});},y=function(t,e){t.nodes().forEach(function(n){var r=t.node(n),i=e.node(n);void 0!==i?(r.fixorder=i._order,delete i._order):delete r.fixorder;});},b=function(t,e){t.nodes().forEach(function(n){var r,i=t.node(n);if(i){var o=e.node(n);i.x=o.x,i.y=o.y,i._order=o.order,i._rank=o.rank,(null===(r=e.children(n))||void 0===r?void 0:r.length)&&(i.width=o.width,i.height=o.height);}}),t.edges().forEach(function(n){var r=t.edge(n),i=e.edge(n);r.points=i?i.points:[],i&&i.hasOwnProperty("x")&&(r.x=i.x,r.y=i.y);}),t.graph().width=e.graph().width,t.graph().height=e.graph().height;},x=["nodesep","edgesep","ranksep","marginx","marginy"],_={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},E=["acyclicer","ranker","rankdir","align"],w=["width","height","layer","fixorder"],M={width:0,height:0},C=["minlen","weight","width","height","labeloffset"],A={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"],D=function(t){var e=new v.Graph({multigraph:!0,compound:!0}),n=Y(t.graph()),i={};return null==E||E.forEach(function(t){void 0!==n[t]&&(i[t]=n[t]);}),e.setGraph(Object.assign({},_,G(n,x),i)),t.nodes().forEach(function(n){var i=Y(t.node(n)),o=G(r(r({},M),i),w);e.setNode(n,o),e.setParent(n,t.parent(n));}),t.edges().forEach(function(n){var r=Y(t.edge(n)),i={};null==S||S.forEach(function(t){void 0!==r[t]&&(i[t]=r[t]);}),e.setEdgeObj(n,Object.assign({},A,G(r,C),i));}),e;},I=function(t){var e=t.graph();e.ranksep||(e.ranksep=0),e.ranksep/=2,t.nodes().forEach(function(e){var n=t.node(e);isNaN(n.layer)||n.layer||(n.layer=0);}),t.edges().forEach(function(n){var r,i=t.edge(n);i.minlen*=2,(null===(r=i.labelpos)||void 0===r?void 0:r.toLowerCase())!=="c"&&("TB"===e.rankdir||"BT"===e.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset);});},T=function(t){t.edges().forEach(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w),o={e:e,rank:(i.rank-r.rank)/2+r.rank};(0,u.addDummyNode)(t,"edge-proxy",o,"_ep");}});},k=function(t){var e=0;t.nodes().forEach(function(n){var r,i,o=t.node(n);o.borderTop&&(o.minRank=null===(r=t.node(o.borderTop))||void 0===r?void 0:r.rank,o.maxRank=null===(i=t.node(o.borderBottom))||void 0===i?void 0:i.rank,e=Math.max(e,o.maxRank||-1/0));}),t.graph().maxRank=e;},F=function(t){t.nodes().forEach(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e));});},N=function(t){var e,n,r=0,i=0,o=t.graph(),a=o.marginx||0,s=o.marginy||0,u=function(t){if(t){var o=t.x,a=t.y,s=t.width,u=t.height;isNaN(o)||isNaN(s)||(void 0===e&&(e=o-s/2),e=Math.min(e,o-s/2),r=Math.max(r,o+s/2)),isNaN(a)||isNaN(u)||(void 0===n&&(n=a-u/2),n=Math.min(n,a-u/2),i=Math.max(i,a+u/2));}};t.nodes().forEach(function(e){u(t.node(e));}),t.edges().forEach(function(e){var n=t.edge(e);(null==n?void 0:n.hasOwnProperty("x"))&&u(n);}),e-=a,n-=s,t.nodes().forEach(function(r){var i=t.node(r);i&&(i.x-=e,i.y-=n);}),t.edges().forEach(function(r){var i,o=t.edge(r);null===(i=o.points)||void 0===i||i.forEach(function(t){t.x-=e,t.y-=n;}),o.hasOwnProperty("x")&&(o.x-=e),o.hasOwnProperty("y")&&(o.y-=n);}),o.width=r-e+a,o.height=i-n+s;},O=function(t){t.edges().forEach(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift((0,u.intersectRect)(o,n)),i.points.push((0,u.intersectRect)(a,r));});},B=function(t){t.edges().forEach(function(e){var n=t.edge(e);if(null==n?void 0:n.hasOwnProperty("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;}});},P=function(t){t.edges().forEach(function(e){var n,r=t.edge(e);r.reversed&&(null===(n=r.points)||void 0===n||n.reverse());});},L=function(t){t.nodes().forEach(function(e){var n,r,i;if(null===(n=t.children(e))||void 0===n?void 0:n.length){var o=t.node(e),a=t.node(o.borderTop),s=t.node(o.borderBottom),u=t.node(o.borderLeft[(null===(r=o.borderLeft)||void 0===r?void 0:r.length)-1]),c=t.node(o.borderRight[(null===(i=o.borderRight)||void 0===i?void 0:i.length)-1]);o.width=Math.abs((null==c?void 0:c.x)-(null==u?void 0:u.x))||10,o.height=Math.abs((null==s?void 0:s.y)-(null==a?void 0:a.y))||10,o.x=((null==u?void 0:u.x)||0)+o.width/2,o.y=((null==a?void 0:a.y)||0)+o.height/2;}}),t.nodes().forEach(function(e){var n;(null===(n=t.node(e))||void 0===n?void 0:n.dummy)==="border"&&t.removeNode(e);});},j=function(t){t.edges().forEach(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.removeEdgeObj(e);}});},R=function(t){var e=(0,u.buildLayerMatrix)(t);null==e||e.forEach(function(e){var n=0;null==e||e.forEach(function(e,r){var i,o=t.node(e);o.order=r+n,null===(i=o.selfEdges)||void 0===i||i.forEach(function(e){(0,u.addDummyNode)(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:r+ ++n,e:e.e,label:e.label},"_se");}),delete o.selfEdges;});});},z=function(t){t.nodes().forEach(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdgeObj(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{y:o,x:i+a},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y;}});},G=function(t,e){var n={};return null==e||e.forEach(function(e){void 0!==t[e]&&(n[e]=+t[e]);}),n;},Y=function(t){void 0===t&&(t={});var e={};return Object.keys(t).forEach(function(n){e[n.toLowerCase()]=t[n];}),e;};e.default=function(t,e){var n=e&&e.debugTiming?u.time:u.notime;n("layout",function(){e&&!e.keepNodeOrder&&e.prevGraph&&n(" inheritOrder",function(){y(t,e.prevGraph);});var r=n(" buildLayoutGraph",function(){return D(t);});e&&!1===e.edgeLabelSpace||n(" makeSpaceForEdgeLabels",function(){I(r);});try{n(" runLayout",function(){m(r,n,e);});}catch(t){if("Not possible to find intersection inside of the rectangle"===t.message){console.error("The following error may be caused by improper layer setting, please make sure your manual layer setting does not violate the graph's structure:\n",t);return;}throw t;}n(" updateInputGraph",function(){b(t,r);});});};},"7e4a7e66":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("8b6af789")),a=r._(n("461f387d"));function s(t,e){if(!e)return{0:t};if(!(0,o.default)(e)){var n=(0,i.default)(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;};}return(0,a.default)(t,e);}},"7e9790a2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("22b52967"),i=function(){function t(t){this.graph=t,this.destroyed=!1;}return t.prototype.updateState=function(t,e,n){var i=this.graph.get("states"),o=e;(0,r.isString)(n)&&(o="".concat(e,":").concat(n)),i[o]||(i[o]=[]),n?i[o].push(t):i[o]=i[o].filter(function(e){return e!==t;}),this.graph.set("states",i),this.graph.emit("graphstatechange",{states:i});},t.prototype.updateStates=function(t,e,n){var i=this.graph.get("states");((0,r.isString)(e)?[e]:e).forEach(function(e){var o=e;i[o]||(i[o]=[]),(0,r.isString)(n)&&(o="".concat(e,":").concat(n)),n?i[o].push(t):i[o]=i[o].filter(function(e){return e!==t;});}),this.graph.set("states",i),this.graph.emit("graphstatechange",{states:e});},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0;},t;}();},"7efa990a":function(t,e,n){"use strict";function r(t){return t[1];}function i(t){return arguments.length?(this._y=t,this):this._y;}n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return i;},defaultY:function(){return r;}});},"7f47c4f4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.VACANT_NODE_LABEL=e.VACANT_NODE_ID=e.VACANT_GRAPH_ID=e.VACANT_EDGE_LABEL=e.VACANT_EDGE_ID=e.Node=e.Graph=e.Edge=e.AUTO_EDGE_ID=void 0,e.VACANT_EDGE_ID=-1,e.VACANT_NODE_ID=-1,e.VACANT_EDGE_LABEL="-1",e.VACANT_NODE_LABEL="-1",e.VACANT_GRAPH_ID=-1,e.AUTO_EDGE_ID="-1";var r=function(t,e,n,r){void 0===t&&(t=-1),void 0===e&&(e=-1),void 0===n&&(n=-1),void 0===r&&(r="-1"),this.id=t,this.from=e,this.to=n,this.label=r;};e.Edge=r;var i=function(){function t(t,e){void 0===t&&(t=-1),void 0===e&&(e="-1"),this.id=t,this.label=e,this.edges=[],this.edgeMap={};}return t.prototype.addEdge=function(t){this.edges.push(t),this.edgeMap[t.id]=t;},t;}();e.Node=i;var o=function(){function t(t,e,n){void 0===t&&(t=-1),void 0===e&&(e=!0),void 0===n&&(n=!1),this.id=t,this.edgeIdAutoIncrease=e,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=n;}return t.prototype.getNodeNum=function(){return this.nodes.length;},t.prototype.addNode=function(t,e){if(!this.nodeMap[t]){var n=new i(t,e);this.nodes.push(n),this.nodeMap[t]=n,this.nodeLabelMap[e]||(this.nodeLabelMap[e]=[]),this.nodeLabelMap[e].push(t);}},t.prototype.addEdge=function(t,e,n,i){if((this.edgeIdAutoIncrease||void 0===t)&&(t=this.counter++),!this.nodeMap[e]||!this.nodeMap[n]||!this.nodeMap[n].edgeMap[t]){var o=new r(t,e,n,i);if(this.edges.push(o),this.edgeMap[t]=o,this.nodeMap[e].addEdge(o),this.edgeLabelMap[i]||(this.edgeLabelMap[i]=[]),this.edgeLabelMap[i].push(o),!this.directed){var a=new r(t,n,e,i);this.nodeMap[n].addEdge(a),this.edgeLabelMap[i].push(a);}}},t;}();e.Graph=o;},"7f663da5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{CSS:function(){return I;},add:function(){return w;},canUseDOM:function(){return o;},findFirstFocusableNode:function(){return k;},getEventCoordinates:function(){return D;},getOwnerDocument:function(){return d;},getWindow:function(){return u;},hasViewportRelativeCoordinates:function(){return C;},isDocument:function(){return c;},isHTMLElement:function(){return l;},isKeyboardEvent:function(){return A;},isNode:function(){return s;},isSVGElement:function(){return f;},isTouchEvent:function(){return S;},isWindow:function(){return a;},subtract:function(){return M;},useCombinedRefs:function(){return i;},useEvent:function(){return g;},useInterval:function(){return p;},useIsomorphicLayoutEffect:function(){return h;},useLatestValue:function(){return v;},useLazyMemo:function(){return m;},useNodeRef:function(){return y;},usePrevious:function(){return b;},useUniqueId:function(){return _;}});var r=n("5b220c3d");function i(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,r.useMemo)(()=>t=>{e.forEach(e=>e(t));},e);}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(t){let e=Object.prototype.toString.call(t);return"[object Window]"===e||"[object global]"===e;}function s(t){return"nodeType"in t;}function u(t){var e,n;return t?a(t)?t:s(t)&&null!=(e=null==(n=t.ownerDocument)?void 0:n.defaultView)?e:window:window;}function c(t){let{Document:e}=u(t);return t instanceof e;}function l(t){return!a(t)&&t instanceof u(t).HTMLElement;}function f(t){return t instanceof u(t).SVGElement;}function d(t){return t?a(t)?t.document:s(t)?c(t)?t:l(t)||f(t)?t.ownerDocument:document:document:document;}let h=o?r.useLayoutEffect:r.useEffect;function g(t){let e=(0,r.useRef)(t);return h(()=>{e.current=t;}),(0,r.useCallback)(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return null==e.current?void 0:e.current(...n);},[]);}function p(){let t=(0,r.useRef)(null);return[(0,r.useCallback)((e,n)=>{t.current=setInterval(e,n);},[]),(0,r.useCallback)(()=>{null!==t.current&&(clearInterval(t.current),t.current=null);},[])];}function v(t,e){void 0===e&&(e=[t]);let n=(0,r.useRef)(t);return h(()=>{n.current!==t&&(n.current=t);},e),n;}function m(t,e){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let e=t(n.current);return n.current=e,e;},[...e]);}function y(t){let e=g(t),n=(0,r.useRef)(null),i=(0,r.useCallback)(t=>{t!==n.current&&(null==e||e(t,n.current)),n.current=t;},[]);return[n,i];}function b(t){let e=(0,r.useRef)();return(0,r.useEffect)(()=>{e.current=t;},[t]),e.current;}let x={};function _(t,e){return(0,r.useMemo)(()=>{if(e)return e;let n=null==x[t]?0:x[t]+1;return x[t]=n,t+"-"+n;},[t,e]);}function E(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((e,n)=>{for(let[r,i]of Object.entries(n)){let n=e[r];null!=n&&(e[r]=n+t*i);}return e;},{...e});};}let w=E(1),M=E(-1);function C(t){return"clientX"in t&&"clientY"in t;}function A(t){if(!t)return!1;let{KeyboardEvent:e}=u(t.target);return e&&t instanceof e;}function S(t){if(!t)return!1;let{TouchEvent:e}=u(t.target);return e&&t instanceof e;}function D(t){if(S(t)){if(t.touches&&t.touches.length){let{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n};}if(t.changedTouches&&t.changedTouches.length){let{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n};}}return C(t)?{x:t.clientX,y:t.clientY}:null;}let I=Object.freeze({Translate:{toString(t){if(!t)return;let{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)";}},Scale:{toString(t){if(!t)return;let{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")";}},Transform:{toString(t){if(t)return[I.Translate.toString(t),I.Scale.toString(t)].join(" ");}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r;}}}),T="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function k(t){return t.matches(T)?t:t.querySelector(T);}},"800259b1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.exchangeEdges=e.enterEdge=e.leaveEdge=e.initLowLimValues=e.calcCutValue=e.initCutValues=void 0;var r=n("cf034cb6"),i=n("7dd60bd7"),o=n("dfdb2ac4"),a=n("6b75ac3a"),s=a.algorithm.preorder,u=a.algorithm.postorder;e.initCutValues=function(t,e){var n=u(t,t.nodes());null==(n=null==n?void 0:n.slice(0,(null==n?void 0:n.length)-1))||n.forEach(function(n){c(t,e,n);});};var c=function(t,n,r){var i=t.node(r).parent;t.edgeFromArgs(r,i).cutvalue=(0,e.calcCutValue)(t,n,r);};e.calcCutValue=function(t,e,n){var r,i=t.node(n).parent,o=!0,a=e.edgeFromArgs(n,i),s=0;return a||(o=!1,a=e.edgeFromArgs(i,n)),s=a.weight,null===(r=e.nodeEdges(n))||void 0===r||r.forEach(function(r){var a=r.v===n,u=a?r.w:r.v;if(u!==i){var c=a===o,l=e.edge(r).weight;if(s+=c?l:-l,d(t,n,u)){var f=t.edgeFromArgs(n,u).cutvalue;s+=c?-f:f;}}}),s;},e.initLowLimValues=function(t,e){void 0===e&&(e=t.nodes()[0]),l(t,{},1,e);};var l=function(t,e,n,r,i){var o,a=n,s=t.node(r);return e[r]=!0,null===(o=t.neighbors(r))||void 0===o||o.forEach(function(n){e[n]||(a=l(t,e,a,n,r));}),s.low=n,s.lim=a++,i?s.parent=i:delete s.parent,a;};e.leaveEdge=function(t){return t.edges().find(function(e){return t.edge(e).cutvalue<0;});},e.enterEdge=function(t,e,n){var r=n.v,a=n.w;e.hasEdge(r,a)||(r=n.w,a=n.v);var s=t.node(r),u=t.node(a),c=s,l=!1;s.lim>u.lim&&(c=u,l=!0);var f=e.edges().filter(function(e){return l===h(t,t.node(e.v),c)&&l!==h(t,t.node(e.w),c);});return(0,o.minBy)(f,function(t){return(0,i.slack)(e,t);});},e.exchangeEdges=function(t,n,r,i){var o=r.v,a=r.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),(0,e.initLowLimValues)(t),(0,e.initCutValues)(t,n),f(t,n);};var f=function(t,e){var n=t.nodes().find(function(t){var n;return!(null===(n=e.node(t))||void 0===n?void 0:n.parent);}),r=s(t,n);null==(r=null==r?void 0:r.slice(1))||r.forEach(function(n){var r=t.node(n).parent,i=e.edgeFromArgs(n,r),o=!1;i||(i=e.edgeFromArgs(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen);});},d=function(t,e,n){return t.hasEdge(e,n);},h=function(t,e,n){return n.low<=e.lim&&e.lim<=n.lim;};e.default=function(t){var n,a,s=(0,o.simplify)(t);(0,i.longestPath)(s);var u=(0,r.feasibleTree)(s);for((0,e.initLowLimValues)(u),(0,e.initCutValues)(u,s);n=(0,e.leaveEdge)(u);)a=(0,e.enterEdge)(u,s,n),(0,e.exchangeEdges)(u,s,n,a);};},"8109e137":function(t,e,n){var r=[],i=[];function o(t,e){if(e=e||{},void 0===t)throw Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var n,o,a=!0===e.prepend?"prepend":"append",s=void 0!==e.container?e.container:document.querySelector("head"),u=r.indexOf(s);return -1===u&&(i[u=r.push(s)-1]={}),void 0!==i[u]&&void 0!==i[u][a]?o=i[u][a]:(o=i[u][a]=((n=document.createElement("style")).setAttribute("type","text/css"),n),"prepend"===a?s.insertBefore(o,s.childNodes[0]):s.appendChild(o)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),o.styleSheet?o.styleSheet.cssText+=t:o.textContent+=t,o;}t.exports=o,t.exports.insertCss=o;},"818e8129":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("2105a9e4"),s=r._(n("e52a13ca")),u="anchorPointsCache",c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.getNearestPoint=function(t,e){for(var n=0,r=t[0],i=(0,a.distance)(t[0],e),o=0;o<t.length;o++){var s=t[o],u=(0,a.distance)(s,e);u<i&&(r=s,i=u,n=o);}return r.anchorIndex=n,r;},e.prototype.getDefaultCfg=function(){return{type:"node",edges:[]};},e.prototype.getEdges=function(){return this.get("edges");},e.prototype.getInEdges=function(){var t=this;return this.get("edges").filter(function(e){return e.get("target")===t;});},e.prototype.getOutEdges=function(){var t=this;return this.get("edges").filter(function(e){return e.get("source")===t;});},e.prototype.getNeighbors=function(t){var e=this,n=this.get("edges");return"target"===t?n.filter(function(t){return t.getSource()===e;}).map(function(t){return t.getTarget();}):"source"===t?n.filter(function(t){return t.getTarget()===e;}).map(function(t){return t.getSource();}):n.map(function(t){return t.getSource()===e?t.getTarget():t.getSource();});},e.prototype.getLinkPointByAnchor=function(t){return this.getAnchorPoints()[t];},e.prototype.getLinkPoint=function(t){var e,n,r,i=this.get("keyShape").get("type"),o=this.get("type"),s=this.getBBox();"combo"===o?(e=s.centerX||(s.maxX+s.minX)/2,n=s.centerY||(s.maxY+s.minY)/2):(e=s.centerX,n=s.centerY);var u=this.getAnchorPoints();switch(i){case"circle":r=(0,a.getCircleIntersectByPoint)({x:e,y:n,r:s.width/2},t);break;case"ellipse":r=(0,a.getEllipseIntersectByPoint)({x:e,y:n,rx:s.width/2,ry:s.height/2},t);break;default:r=(0,a.getRectIntersectByPoint)(s,t);}var c=r;return u.length&&(c||(c=t),c=this.getNearestPoint(u,c)),c||(c={x:e,y:n}),c;},e.prototype.getAnchorPoints=function(){var t=this.get(u);if(!t){t=[];var e=this.get("shapeFactory"),n=this.getBBox(),r=this.get("model"),i=this.getShapeCfg(r),a=r.type,s=e.getAnchorPoints(a,i)||[];(0,o.each)(s,function(e,r){var i={x:n.minX+e[0]*n.width,y:n.minY+e[1]*n.height,anchorIndex:r};t.push(i);}),this.set(u,t);}return t;},e.prototype.addEdge=function(t){this.get("edges").push(t);},e.prototype.lock=function(){this.set("locked",!0);},e.prototype.unlock=function(){this.set("locked",!1);},e.prototype.hasLocked=function(){return this.get("locked");},e.prototype.removeEdge=function(t){var e=this.getEdges(),n=e.indexOf(t);n>-1&&e.splice(n,1);},e.prototype.clearCache=function(){this.set("bboxCache",null),this.set(u,null);},e.prototype.getUpdateType=function(t){if(t){var e,n,r,i,a,s=!(0,o.isNil)(t.x),u=!(0,o.isNil)(t.y),c=Object.keys(t);return 1===c.length&&(s||u)||2===c.length&&s&&u?"move":(0,o.isNumber)(t.x)||(0,o.isNumber)(t.y)||t.type||t.anchorPoints||t.size||(null==t?void 0:t.style)&&((null===(e=null==t?void 0:t.style)||void 0===e?void 0:e.r)||(null===(n=null==t?void 0:t.style)||void 0===n?void 0:n.width)||(null===(r=null==t?void 0:t.style)||void 0===r?void 0:r.height)||(null===(i=null==t?void 0:t.style)||void 0===i?void 0:i.rx)||(null===(a=null==t?void 0:t.style)||void 0===a?void 0:a.ry))?"bbox|label":c.includes("label")||c.includes("labelCfg")?"style|label":"style";}},e.prototype.setState=function(e,n){var r=this;if(this.optimize){t.prototype.setState.call(this,e,n);return;}this.runWithBBoxAffected(function(){return t.prototype.setState.call(r,e,n);});},e.prototype.clearStates=function(e){var n=this;if(this.optimize){t.prototype.clearStates.call(this,e);return;}this.runWithBBoxAffected(function(){return t.prototype.clearStates.call(n,e);});},e.prototype.runWithBBoxAffected=function(t){var e=["r","width","height","rx","ry","lineWidth"],n=this.getKeyShape().attr(),r={};Object.keys(this.getKeyShape().attr()).forEach(function(t){e.includes(t)&&(r[t]=n[t]);}),t();for(var i=this.getKeyShape().attr(),o=0;o<e.length;o++){var a=e[o];if(i[a]!==r[a]){this.clearCache(),this.getEdges().forEach(function(t){return t.refresh();});break;}}},e;}(s.default);},"81ae0ad8":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.width=e.sep=e.positionX=e.balance=e.alignCoordinates=e.findSmallestWidthAlignment=e.buildBlockGraph=e.horizontalCompaction=e.verticalAlignment=e.hasConflict=e.addConflict=e.findOtherInnerSegmentNode=e.findType2Conflicts=e.findType1Conflicts=void 0;var o=n("6b75ac3a"),a=n("57da0159"),s=n("dfdb2ac4"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return i(e,t),e;}(o.Graph);function c(t,e){var n=Object.values(e),r=(0,a.min)(n),i=(0,a.max)(n);["u","d"].forEach(function(n){["l","r"].forEach(function(o){var s,u=n+o,c=t[u];if(c!==e){var l=Object.values(c);(s="l"===o?r-(0,a.min)(l):i-(0,a.max)(l))&&(t[u]={},Object.keys(c).forEach(function(e){t[u][e]=c[e]+s;}));}});});}e.findType1Conflicts=function(t,n){var r={};return(null==n?void 0:n.length)&&n.reduce(function(n,i){var o=0,a=0,s=n.length,u=null==i?void 0:i[(null==i?void 0:i.length)-1];return null==i||i.forEach(function(n,c){var l,f=(0,e.findOtherInnerSegmentNode)(t,n),d=f?t.node(f).order:s;(f||n===u)&&(null===(l=i.slice(a,c+1))||void 0===l||l.forEach(function(n){var i;null===(i=t.predecessors(n))||void 0===i||i.forEach(function(i){var a,s=t.node(i),u=s.order;(u<o||d<u)&&!(s.dummy&&(null===(a=t.node(n))||void 0===a?void 0:a.dummy))&&(0,e.addConflict)(r,i,n);});}),a=c+1,o=d);}),i;}),r;},e.findType2Conflicts=function(t,n){var r={};function i(n,i,o,a,s){for(var u,c,l,f=i;f<o;f++)l=n[f],(null===(u=t.node(l))||void 0===u?void 0:u.dummy)&&(null===(c=t.predecessors(l))||void 0===c||c.forEach(function(n){var i=t.node(n);i.dummy&&(i.order<a||i.order>s)&&(0,e.addConflict)(r,n,l);}));}function o(t,e){var n=JSON.stringify(t.slice(1));e.get(n)||(i.apply(void 0,t),e.set(n,!0));}return(null==n?void 0:n.length)&&n.reduce(function(e,n){var r,i=-1,a=0,s=new Map;return null==n||n.forEach(function(u,c){var l;if((null===(l=t.node(u))||void 0===l?void 0:l.dummy)==="border"){var f=t.predecessors(u)||[];f.length&&(r=t.node(f[0]).order,o([n,a,c,i,r],s),a=c,i=r);}o([n,a,n.length,r,e.length],s);}),n;}),r;},e.findOtherInnerSegmentNode=function(t,e){var n,r;if(null===(n=t.node(e))||void 0===n?void 0:n.dummy)return null===(r=t.predecessors(e))||void 0===r?void 0:r.find(function(e){return t.node(e).dummy;});},e.addConflict=function(t,e,n){var r=e,i=n;if(r>i){var o=r;r=i,i=o;}var a=t[r];a||(t[r]=a={}),a[i]=!0;},e.hasConflict=function(t,e,n){var r=e,i=n;return r>i&&(r=i,i=e),!!t[r];},e.verticalAlignment=function(t,n,r,i){var o={},a={},s={};return null==n||n.forEach(function(t){null==t||t.forEach(function(t,e){o[t]=t,a[t]=t,s[t]=e;});}),null==n||n.forEach(function(t){var n=-1;null==t||t.forEach(function(t){var u=i(t);if(u.length)for(var c=((u=u.sort(function(t,e){return s[t]-s[e];})).length-1)/2,l=Math.floor(c),f=Math.ceil(c);l<=f;++l){var d=u[l];a[t]===t&&n<s[d]&&!(0,e.hasConflict)(r,t,d)&&(a[d]=t,a[t]=o[t]=o[d],n=s[d]);}});}),{root:o,align:a};},e.horizontalCompaction=function(t,n,r,i,o){var a,s={},u=(0,e.buildBlockGraph)(t,n,r,o),c=o?"borderLeft":"borderRight",l=function(t,e){for(var n=u.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop();};return l(function(t){s[t]=(u.inEdges(t)||[]).reduce(function(t,e){return Math.max(t,(s[e.v]||0)+u.edge(e));},0);},u.predecessors.bind(u)),l(function(e){var n=(u.outEdges(e)||[]).reduce(function(t,e){return Math.min(t,(s[e.w]||0)-u.edge(e));},Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(s[e]=Math.max(s[e],n));},u.successors.bind(u)),null===(a=Object.values(i))||void 0===a||a.forEach(function(t){s[t]=s[r[t]];}),s;},e.buildBlockGraph=function(t,n,r,i){var o=new u,a=t.graph(),s=(0,e.sep)(a.nodesep,a.edgesep,i);return null==n||n.forEach(function(e){var n;null==e||e.forEach(function(e){var i=r[e];if(o.setNode(i),n){var a=r[n],u=o.edgeFromArgs(a,i);o.setEdge(a,i,Math.max(s(t,e,n),u||0));}n=e;});}),o;},e.findSmallestWidthAlignment=function(t,n){return(0,s.minBy)(Object.values(n),function(n){var r,i=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return null===(r=Object.keys(n))||void 0===r||r.forEach(function(r){var a=n[r],s=(0,e.width)(t,r)/2;i=Math.max(a+s,i),o=Math.min(a-s,o);}),i-o;});},e.alignCoordinates=c,e.balance=function(t,e){var n={};return Object.keys(t.ul).forEach(function(r){if(e)n[r]=t[e.toLowerCase()][r];else{var i=Object.values(t).map(function(t){return t[r];});n[r]=(i[0]+i[1])/2;}}),n;},e.positionX=function(t){var n,r=(0,s.buildLayerMatrix)(t),i=Object.assign((0,e.findType1Conflicts)(t,r),(0,e.findType2Conflicts)(t,r)),o={};["u","d"].forEach(function(a){n="u"===a?r:Object.values(r).reverse(),["l","r"].forEach(function(r){"r"===r&&(n=n.map(function(t){return Object.values(t).reverse();}));var s=("u"===a?t.predecessors:t.successors).bind(t),u=(0,e.verticalAlignment)(t,n,i,s),c=(0,e.horizontalCompaction)(t,n,u.root,u.align,"r"===r);"r"===r&&Object.keys(c).forEach(function(t){c[t]=-c[t];}),o[a+r]=c;});});var a=(0,e.findSmallestWidthAlignment)(t,o);return c(o,a),(0,e.balance)(o,t.graph().align);},e.sep=function(t,e,n){return function(r,i,o){var a,s,u=r.node(i),c=r.node(o);if(a=0+u.width/2,u.hasOwnProperty("labelpos"))switch((u.labelpos||"").toLowerCase()){case"l":s=-u.width/2;break;case"r":s=u.width/2;}if(s&&(a+=n?s:-s),s=0,a+=(u.dummy?e:t)/2+(c.dummy?e:t)/2+c.width/2,c.labelpos)switch((c.labelpos||"").toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2;}return s&&(a+=n?s:-s),s=0,a;};},e.width=function(t,e){return t.node(e).width||0;};},"82084c6c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{distance:function(){return i;},getBBoxByArray:function(){return a;},getBBoxRange:function(){return s;},isNumberEqual:function(){return o;},piMod:function(){return u;}});var r=n("22b52967");function i(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o);}function o(t,e){return .001>Math.abs(t-e);}function a(t,e){var n=(0,r.min)(t),i=(0,r.min)(e);return{x:n,y:i,width:(0,r.max)(t)-n,height:(0,r.max)(e)-i};}function s(t,e,n,i){return{minX:(0,r.min)([t,n]),maxX:(0,r.max)([t,n]),minY:(0,r.min)([e,i]),maxY:(0,r.max)([e,i])};}function u(t){return(t+2*Math.PI)%(2*Math.PI);}},"826a2c5f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("4c6d310c"),i=n("22b52967"),o=n("168feef4");(0,o.registerNode)("rect",{options:{size:[100,30],style:{radius:0,stroke:o.BaseGlobal.defaultNode.style.stroke,fill:o.BaseGlobal.defaultNode.style.fill,lineWidth:o.BaseGlobal.defaultNode.style.lineWidth},labelCfg:{style:{fill:o.BaseGlobal.nodeLabel.style.fill,fontSize:o.BaseGlobal.nodeLabel.style.fontSize,fontFamily:o.BaseGlobal.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:o.BaseGlobal.defaultNode.linkPoints.size,lineWidth:o.BaseGlobal.defaultNode.linkPoints.lineWidth,fill:o.BaseGlobal.defaultNode.linkPoints.fill,stroke:o.BaseGlobal.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,r.__assign)({},o.BaseGlobal.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return e.shapeMap["".concat(this.type,"-keyShape")]=r,this.drawLinkPoints(t,e),r;},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,i=void 0===n?{}:n,o=i.top,a=i.left,s=i.right,u=i.bottom,c=i.size,l=i.r,f=(0,r.__rest)(i,["top","left","right","bottom","size","r"]),d=this.getSize(t),h=d[0],g=d[1];a&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:-h/2,y:0,r:c/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:h/2,y:0,r:c/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:-g/2,r:c/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:g/2,r:c/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}));},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},o=(0,i.mix)({},e,n),a=this.getSize(t),s=o.width||a[0],u=o.height||a[1];return(0,r.__assign)({x:-s/2,y:-u/2,width:s,height:u},o);},update:function(t,e,n){var r=e.getContainer(),o=this.getOptions({}).style,a=this.getSize(t),s=e.get("keyShape");t.size||(a[0]=s.attr("width")||o.width,a[1]=s.attr("height")||o.height);var u={stroke:t.color,x:-a[0]/2,y:-a[1]/2,width:a[0],height:a[1]},c=(0,i.mix)({},o,s.attr(),u);c=(0,i.mix)(c,t.style),this.updateShape(t,e,c,!1,n),this.updateLinkPoints(t,r);}},"single-node");},82708807:function(t,e,n){"use strict";let r=n("5b2774e8").Buffer;var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);})(t,e);},function(t,e){function n(){this.constructor=t;}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var a=n("454e307d"),s=function(){};function u(t){return"string"==typeof t?l(t):t;}function c(t,e){var n=t[e];if(!n)throw Error("Unknown type "+e);return n;}function l(t){return new f(t);}e.TType=s,e.name=l;var f=function(t){function e(e){var n=t.call(this)||this;return n.name=e,n._failMsg="is not a "+e,n;}return o(e,t),e.prototype.getChecker=function(t,n,r){var i=this,o=c(t,this.name),a=o.getChecker(t,n,r);return o instanceof C||o instanceof e?a:function(t,e){return!!a(t,e)||e.fail(null,i._failMsg,0);};},e;}(s);e.TName=f,e.lit=function(t){return new d(t);};var d=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n.name=JSON.stringify(e),n._failMsg="is not "+n.name,n;}return o(e,t),e.prototype.getChecker=function(t,e){var n=this;return function(t,e){return t===n.value||e.fail(null,n._failMsg,-1);};},e;}(s);e.TLiteral=d,e.array=function(t){return new h(u(t));};var h=function(t){function e(e){var n=t.call(this)||this;return n.ttype=e,n;}return o(e,t),e.prototype.getChecker=function(t,e){var n=this.ttype.getChecker(t,e);return function(t,e){if(!Array.isArray(t))return e.fail(null,"is not an array",0);for(var r=0;r<t.length;r++)if(!n(t[r],e))return e.fail(r,null,1);return!0;};},e;}(s);e.TArray=h,e.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new g(t.map(function(t){return u(t);}));};var g=function(t){function e(e){var n=t.call(this)||this;return n.ttypes=e,n;}return o(e,t),e.prototype.getChecker=function(t,e){var n=this.ttypes.map(function(n){return n.getChecker(t,e);}),r=function(t,e){if(!Array.isArray(t))return e.fail(null,"is not an array",0);for(var r=0;r<n.length;r++)if(!n[r](t[r],e))return e.fail(r,null,1);return!0;};return e?function(t,e){return!!r(t,e)&&(t.length<=n.length||e.fail(n.length,"is extraneous",2));}:r;},e;}(s);e.TTuple=g,e.union=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new p(t.map(function(t){return u(t);}));};var p=function(t){function e(e){var n=t.call(this)||this;n.ttypes=e;var r=e.map(function(t){return t instanceof f||t instanceof d?t.name:null;}).filter(function(t){return t;}),i=e.length-r.length;return r.length?(i>0&&r.push(i+" more"),n._failMsg="is none of "+r.join(", ")):n._failMsg="is none of "+i+" types",n;}return o(e,t),e.prototype.getChecker=function(t,e){var n=this,r=this.ttypes.map(function(n){return n.getChecker(t,e);});return function(t,e){for(var i=e.unionResolver(),o=0;o<r.length;o++)if(r[o](t,i.createContext()))return!0;return e.resolveUnion(i),e.fail(null,n._failMsg,0);};},e;}(s);e.TUnion=p,e.intersection=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new v(t.map(function(t){return u(t);}));};var v=function(t){function e(e){var n=t.call(this)||this;return n.ttypes=e,n;}return o(e,t),e.prototype.getChecker=function(t,e){var n=new Set,r=this.ttypes.map(function(r){return r.getChecker(t,e,n);});return function(t,e){return!!r.every(function(n){return n(t,e);})||e.fail(null,null,0);};},e;}(s);e.TIntersection=v,e.enumtype=function(t){return new m(t);};var m=function(t){function e(e){var n=t.call(this)||this;return n.members=e,n.validValues=new Set,n._failMsg="is not a valid enum value",n.validValues=new Set(Object.keys(e).map(function(t){return e[t];})),n;}return o(e,t),e.prototype.getChecker=function(t,e){var n=this;return function(t,e){return!!n.validValues.has(t)||e.fail(null,n._failMsg,0);};},e;}(s);e.TEnumType=m,e.enumlit=function(t,e){return new y(t,e);};var y=function(t){function e(e,n){var r=t.call(this)||this;return r.enumName=e,r.prop=n,r._failMsg="is not "+e+"."+n,r;}return o(e,t),e.prototype.getChecker=function(t,e){var n=this,r=c(t,this.enumName);if(!(r instanceof m))throw Error("Type "+this.enumName+" used in enumlit is not an enum type");var i=r.members[this.prop];if(!r.members.hasOwnProperty(this.prop))throw Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(t,e){return t===i||e.fail(null,n._failMsg,-1);};},e;}(s);e.TEnumLiteral=y,e.iface=function(t,e){return new b(t,Object.keys(e).map(function(t){var n;return(n=e[t])instanceof x?new _(t,n.ttype,!0):new _(t,u(n),!1);}));};var b=function(t){function e(e,n){var r=t.call(this)||this;return r.bases=e,r.props=n,r.propSet=new Set(n.map(function(t){return t.name;})),r;}return o(e,t),e.prototype.getChecker=function(t,e,n){var r=this,i=this.bases.map(function(n){return c(t,n).getChecker(t,e);}),o=this.props.map(function(n){return n.ttype.getChecker(t,e);}),s=new a.NoopContext,u=this.props.map(function(t,e){return!t.isOpt&&!o[e](void 0,s);}),l=function(t,e){if("object"!=typeof t||null===t)return e.fail(null,"is not an object",0);for(var n=0;n<i.length;n++)if(!i[n](t,e))return!1;for(var n=0;n<o.length;n++){var a=r.props[n].name,s=t[a];if(void 0===s){if(u[n])return e.fail(a,"is missing",1);}else if(!o[n](s,e))return e.fail(a,null,1);}return!0;};if(!e)return l;var f=this.propSet;return n&&(this.propSet.forEach(function(t){return n.add(t);}),f=n),function(t,e){if(!l(t,e))return!1;for(var n in t)if(!f.has(n))return e.fail(n,"is extraneous",2);return!0;};},e;}(s);e.TIface=b,e.opt=function(t){return new x(u(t));};var x=function(t){function e(e){var n=t.call(this)||this;return n.ttype=e,n;}return o(e,t),e.prototype.getChecker=function(t,e){var n=this.ttype.getChecker(t,e);return function(t,e){return void 0===t||n(t,e);};},e;}(s);e.TOptional=x;var _=function(t,e,n){this.name=t,this.ttype=e,this.isOpt=n;};e.TProp=_,e.func=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new E(new M(e),u(t));};var E=function(t){function e(e,n){var r=t.call(this)||this;return r.paramList=e,r.result=n,r;}return o(e,t),e.prototype.getChecker=function(t,e){return function(t,e){return"function"==typeof t||e.fail(null,"is not a function",0);};},e;}(s);e.TFunc=E,e.param=function(t,e,n){return new w(t,u(e),!!n);};var w=function(t,e,n){this.name=t,this.ttype=e,this.isOpt=n;};e.TParam=w;var M=function(t){function e(e){var n=t.call(this)||this;return n.params=e,n;}return o(e,t),e.prototype.getChecker=function(t,e){var n=this,r=this.params.map(function(n){return n.ttype.getChecker(t,e);}),i=new a.NoopContext,o=this.params.map(function(t,e){return!t.isOpt&&!r[e](void 0,i);}),s=function(t,e){if(!Array.isArray(t))return e.fail(null,"is not an array",0);for(var i=0;i<r.length;i++){var a=n.params[i];if(void 0===t[i]){if(o[i])return e.fail(a.name,"is missing",1);}else if(!r[i](t[i],e))return e.fail(a.name,null,1);}return!0;};return e?function(t,e){return!!s(t,e)&&(t.length<=r.length||e.fail(r.length,"is extraneous",2));}:s;},e;}(s);e.TParamList=M;var C=function(t){function e(e,n){var r=t.call(this)||this;return r.validator=e,r.message=n,r;}return o(e,t),e.prototype.getChecker=function(t,e){var n=this;return function(t,e){return!!n.validator(t)||e.fail(null,n.message,0);};},e;}(s);e.BasicType=C,e.basicTypes={any:new C(function(t){return!0;},"is invalid"),number:new C(function(t){return"number"==typeof t;},"is not a number"),object:new C(function(t){return"object"==typeof t&&t;},"is not an object"),boolean:new C(function(t){return"boolean"==typeof t;},"is not a boolean"),string:new C(function(t){return"string"==typeof t;},"is not a string"),symbol:new C(function(t){return"symbol"==typeof t;},"is not a symbol"),void:new C(function(t){return null==t;},"is not void"),undefined:new C(function(t){return void 0===t;},"is not undefined"),null:new C(function(t){return null===t;},"is not null"),never:new C(function(t){return!1;},"is unexpected"),Date:new C(S("[object Date]"),"is not a Date"),RegExp:new C(S("[object RegExp]"),"is not a RegExp")};var A=Object.prototype.toString;function S(t){return function(e){return"object"==typeof e&&e&&A.call(e)===t;};}void 0!==r&&(e.basicTypes.Buffer=new C(function(t){return r.isBuffer(t);},"is not a Buffer"));for(var D=function(t){e.basicTypes[t.name]=new C(function(e){return e instanceof t;},"is not a "+t.name);},I=0,T=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];I<T.length;I++)D(T[I]);},"82bf6506":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null);},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return i=this,o=arguments,l<=0||l>e?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,l)),a;};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null;},c;};},"833ce629":function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e;}function i(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape");return n&&(e=r(e,n.getCanvasBBox())),i&&(e=r(e,i.getCanvasBBox())),e;}n.d(e,"__esModule",{value:!0}),n.e(e,{mergeArrowBBox:function(){return i;},mergeBBox:function(){return r;}});},83469828:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.getOutDegree=e.getInDegree=e.default=void 0;var r=function(t){var e={},n=t.nodes,r=t.edges;return(void 0===n?[]:n).forEach(function(t){e[t.id]={degree:0,inDegree:0,outDegree:0};}),(void 0===r?[]:r).forEach(function(t){e[t.source].degree++,e[t.source].outDegree++,e[t.target].degree++,e[t.target].inDegree++;}),e;};e.default=r,e.getInDegree=function(t,e){return r(t)[e]?r(t)[e].inDegree:0;},e.getOutDegree=function(t,e){return r(t)[e]?r(t)[e].outDegree:0;};},"836c985c":function(t,e,n){"use strict";function r(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(48===r){t.param=0,t.index+=1;return;}if(49===r){t.param=1,t.index+=1;return;}t.err='[path-util]: invalid Arc flag "'.concat(n[e],'", expecting 0 or 1 at index ').concat(e);}n.d(e,"__esModule",{value:!0}),n.d(e,"scanFlag",{enumerable:!0,get:function(){return r;}});},"83bb5564":function(t,e,n){"use strict";function r(t,e){var n=t[0],r=e.x1,i=e.y1,o=e.x2,a=e.y2,s=t.slice(1).map(Number),u=t;if("TQ".includes(n)||(e.qx=null,e.qy=null),"H"===n)u=["L",t[1],i];else if("V"===n)u=["L",r,t[1]];else if("S"===n){var c=2*r-o,l=2*i-a;e.x1=c,e.y1=l,u=["C",c,l].concat(s);}else if("T"===n){var f=2*r-e.qx,d=2*i-e.qy;e.qx=f,e.qy=d,u=["Q",f,d].concat(s);}else if("Q"===n){var h=s[0],g=s[1];e.qx=h,e.qy=g;}return u;}n.d(e,"__esModule",{value:!0}),n.d(e,"normalizeSegment",{enumerable:!0,get:function(){return r;}});},"83c2e0df":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("04480408")),o=r._(n("aac703c5"));class a{constructor(t){let e,n,r,i,a,s,u,c,l;let f=(t=o.default.checkMatrix(t)).clone(),d=f.rows,h=f.columns,g=new Float64Array(d),p=1;for(e=0;e<d;e++)g[e]=e;for(n=0,c=new Float64Array(d);n<h;n++){for(e=0;e<d;e++)c[e]=f.get(e,n);for(e=0;e<d;e++){for(r=0,l=Math.min(e,n),a=0;r<l;r++)a+=f.get(e,r)*c[r];c[e]-=a,f.set(e,n,c[e]);}for(i=n,e=n+1;e<d;e++)Math.abs(c[e])>Math.abs(c[i])&&(i=e);if(i!==n){for(r=0;r<h;r++)s=f.get(i,r),f.set(i,r,f.get(n,r)),f.set(n,r,s);u=g[i],g[i]=g[n],g[n]=u,p=-p;}if(n<d&&0!==f.get(n,n))for(e=n+1;e<d;e++)f.set(e,n,f.get(e,n)/f.get(n,n));}this.LU=f,this.pivotVector=g,this.pivotSign=p;}isSingular(){let t=this.LU,e=t.columns;for(let n=0;n<e;n++)if(0===t.get(n,n))return!0;return!1;}solve(t){let e,n,r;t=i.default.checkMatrix(t);let o=this.LU;if(o.rows!==t.rows)throw Error("Invalid matrix dimensions");if(this.isSingular())throw Error("LU matrix is singular");let a=t.columns,s=t.subMatrixRow(this.pivotVector,0,a-1),u=o.columns;for(r=0;r<u;r++)for(e=r+1;e<u;e++)for(n=0;n<a;n++)s.set(e,n,s.get(e,n)-s.get(r,n)*o.get(e,r));for(r=u-1;r>=0;r--){for(n=0;n<a;n++)s.set(r,n,s.get(r,n)/o.get(r,r));for(e=0;e<r;e++)for(n=0;n<a;n++)s.set(e,n,s.get(e,n)-s.get(r,n)*o.get(e,r));}return s;}get determinant(){let t=this.LU;if(!t.isSquare())throw Error("Matrix must be square");let e=this.pivotSign,n=t.columns;for(let r=0;r<n;r++)e*=t.get(r,r);return e;}get lowerTriangularMatrix(){let t=this.LU,e=t.rows,n=t.columns,r=new i.default(e,n);for(let i=0;i<e;i++)for(let e=0;e<n;e++)i>e?r.set(i,e,t.get(i,e)):i===e?r.set(i,e,1):r.set(i,e,0);return r;}get upperTriangularMatrix(){let t=this.LU,e=t.rows,n=t.columns,r=new i.default(e,n);for(let i=0;i<e;i++)for(let e=0;e<n;e++)i<=e?r.set(i,e,t.get(i,e)):r.set(i,e,0);return r;}get pivotPermutationVector(){return Array.from(this.pivotVector);}}},"8461cc49":function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b220c3d"),i=r&&"object"==typeof r&&"default"in r?r:{default:r};!function(t){if(!t||"undefined"==typeof window)return;let e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e);}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');let o=r.forwardRef(function({style:t={},className:e="",autoFill:n=!1,play:o=!0,pauseOnHover:a=!1,pauseOnClick:s=!1,direction:u="left",speed:c=50,delay:l=0,loop:f=0,gradient:d=!1,gradientColor:h="white",gradientWidth:g=200,onFinish:p,onCycleComplete:v,onMount:m,children:y},b){let[x,_]=r.useState(0),[E,w]=r.useState(0),[M,C]=r.useState(1),[A,S]=r.useState(!1),D=r.useRef(null),I=b||D,T=r.useRef(null),k=r.useCallback(()=>{if(T.current&&I.current){let t=I.current.getBoundingClientRect(),e=T.current.getBoundingClientRect(),r=t.width,i=e.width;("up"===u||"down"===u)&&(r=t.height,i=e.height),n&&r&&i?C(i<r?Math.ceil(r/i):1):C(1),_(r),w(i);}},[n,I,u]);r.useEffect(()=>{if(A&&(k(),T.current&&I.current)){let t=new ResizeObserver(()=>k());return t.observe(I.current),t.observe(T.current),()=>{t&&t.disconnect();};}},[k,I,A]),r.useEffect(()=>{k();},[k,y]),r.useEffect(()=>{S(!0);},[]),r.useEffect(()=>{"function"==typeof m&&m();},[]);let F=r.useMemo(()=>n?E*M/c:E<x?x/c:E/c,[n,x,E,M,c]),N=r.useMemo(()=>Object.assign(Object.assign({},t),{"--pause-on-hover":!o||a?"paused":"running","--pause-on-click":!o||a&&!s||s?"paused":"running","--width":"up"===u||"down"===u?"100vh":"100%","--transform":"up"===u?"rotate(-90deg)":"down"===u?"rotate(90deg)":"none"}),[t,o,a,s,u]),O=r.useMemo(()=>({"--gradient-color":h,"--gradient-width":"number"==typeof g?`${g}px`:g}),[h,g]),B=r.useMemo(()=>({"--play":o?"running":"paused","--direction":"left"===u?"normal":"reverse","--duration":`${F}s`,"--delay":`${l}s`,"--iteration-count":f?`${f}`:"infinite","--min-width":n?"auto":"100%"}),[o,u,F,l,f,n]),P=r.useMemo(()=>({"--transform":"up"===u?"rotate(90deg)":"down"===u?"rotate(-90deg)":"none"}),[u]),L=r.useCallback(t=>[...Array(Number.isFinite(t)&&t>=0?t:0)].map((t,e)=>i.default.createElement(r.Fragment,{key:e},r.Children.map(y,t=>i.default.createElement("div",{style:P,className:"rfm-child"},t)))),[P,y]);return A?i.default.createElement("div",{ref:I,style:N,className:"rfm-marquee-container "+e},d&&i.default.createElement("div",{style:O,className:"rfm-overlay"}),i.default.createElement("div",{className:"rfm-marquee",style:B,onAnimationIteration:v,onAnimationEnd:p},i.default.createElement("div",{className:"rfm-initial-child-container",ref:T},r.Children.map(y,t=>i.default.createElement("div",{style:P,className:"rfm-child"},t))),L(M-1)),i.default.createElement("div",{className:"rfm-marquee",style:B},L(M))):null;});e.default=o;},"8485cc4c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{nearestPoint:function(){return i;},snapLength:function(){return o;}});var r=n("82084c6c");function i(t,e,n,i,o,a){var s,u=1/0,c=[n,i],l=20;a&&a>200&&(l=a/10);for(var f=1/l,d=f/10,h=0;h<=l;h++){var g=h*f,p=[o.apply(null,t.concat([g])),o.apply(null,e.concat([g]))],v=(0,r.distance)(c[0],c[1],p[0],p[1]);v<u&&(s=g,u=v);}if(0===s)return{x:t[0],y:e[0]};if(1===s){var m=t.length;return{x:t[m-1],y:e[m-1]};}u=1/0;for(var h=0;h<32&&!(d<1e-4);h++){var y=s-d,b=s+d,p=[o.apply(null,t.concat([y])),o.apply(null,e.concat([y]))],v=(0,r.distance)(c[0],c[1],p[0],p[1]);if(y>=0&&v<u)s=y,u=v;else{var x=[o.apply(null,t.concat([b])),o.apply(null,e.concat([b]))],_=(0,r.distance)(c[0],c[1],x[0],x[1]);b<=1&&_<u?(s=b,u=_):d*=.5;}}return{x:o.apply(null,t.concat([s])),y:o.apply(null,e.concat([s]))};}function o(t,e){for(var n=0,i=t.length,o=0;o<i;o++){var a=t[o],s=e[o],u=t[(o+1)%i],c=e[(o+1)%i];n+=(0,r.distance)(a,s,u,c);}return n/2;}},"84b3089e":function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);};Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.cells=[],this.columnNum=0,this.rowNum=0,this.additionColumn=[],this.additionRow=[];}return t.prototype.init=function(e,n,r){this.cells=[],this.CELL_W=r.CELL_W||t.DEFAULT_CELL_W,this.CELL_H=r.CELL_H||t.DEFAULT_CELL_H,this.columnNum=Math.ceil(e/this.CELL_W),this.rowNum=Math.ceil(n/this.CELL_H),t.MIN_DIST=Math.pow(e,2)+Math.pow(n,2);for(var i=0;i<this.columnNum;i++){for(var o=[],a=0;a<this.rowNum;a++){var s={dx:i,dy:a,x:i*this.CELL_W,y:a*this.CELL_H,occupied:!1};o.push(s);}this.cells.push(o);}},t.prototype.findGridByNodeId=function(t){for(var e,n,r=0;r<this.columnNum;r++)for(var i=0;i<this.rowNum;i++)if(this.cells[r][i].node&&(null===(n=null===(e=this.cells[r][i])||void 0===e?void 0:e.node)||void 0===n?void 0:n.id)===t)return{column:r,row:i};return null;},t.prototype.sqdist=function(t,e){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2);},t.prototype.occupyNearest=function(e){for(var n,r=t.MIN_DIST,i=null,o=0;o<this.columnNum;o++)for(var a=0;a<this.rowNum;a++)!this.cells[o][a].occupied&&(n=this.sqdist(e,this.cells[o][a]))<r&&(r=n,i=this.cells[o][a]);return i&&(i.occupied=!0),i;},t.prototype.insertColumn=function(t,e){if(!(e<=0)){for(var n=0;n<e;n++){this.cells[n+this.columnNum]=[];for(var i=0;i<this.rowNum;i++)this.cells[n+this.columnNum][i]={dx:n,dy:i,x:n*this.CELL_W,y:i*this.CELL_H,occupied:!1,node:null};}for(var n=this.columnNum-1;n>t;n--)for(var i=0;i<this.rowNum;i++)this.cells[n+e][i]=r(r({},this.cells[n][i]),{x:(n+e)*this.CELL_W,y:i*this.CELL_H}),this.cells[n][i]={x:n*this.CELL_W,y:i*this.CELL_H,occupied:!0,node:null};for(var i=0;i<this.additionColumn.length;i++)this.additionColumn[i]>=t&&(this.additionColumn[i]+=e);for(var n=0;n<e;n++)this.additionColumn.push(t+n+1);this.columnNum+=e;}},t.prototype.insertRow=function(t,e){if(!(e<=0)){for(var n=0;n<e;n++)for(var i=0;i<this.columnNum;i++)this.cells[i][n+this.rowNum]={dx:i,dy:n,x:i*this.CELL_W,y:n*this.CELL_H,occupied:!1,node:null};for(var i=0;i<this.columnNum;i++)for(var n=this.rowNum-1;n>t;n--)this.cells[i][n+e]=r(r({},this.cells[i][n]),{dx:i,dy:n+e,x:i*this.CELL_W,y:(n+e)*this.CELL_H}),this.cells[i][n]={dx:i,dy:n,x:i*this.CELL_W,y:n*this.CELL_H,occupied:!1,node:null};for(var n=0;n<this.additionRow.length;n++)this.additionRow[n]>=t&&(this.additionRow[n]+=e);for(var i=0;i<e;i++)this.additionRow.push(t+i+1);this.rowNum+=e;}},t.prototype.getNodes=function(){for(var t=[],e=0;e<this.columnNum;e++)for(var n=0;n<this.rowNum;n++)this.cells[e][n].node&&t.push(this.cells[e][n]);return t;},t.MIN_DIST=50,t.DEFAULT_CELL_W=80,t.DEFAULT_CELL_H=80,t;}();e.default=i;},"84d858ba":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=n("22b52967"),o=r._(n("de457467")),a=r._(n("455d8214")),s=n("71975e07"),u=n("47c6e0b5"),c=function(t,e,n,r){for(var i=e.length,o=2*r,a=0,s=0;s<i;s++)for(var u=t[s].clusterId,c=0;c<i;c++)u===t[c].clusterId&&(a+=(e[s][c]||0)-(n[s]||0)*(n[c]||0)/o);return 1/o*a;},l=function(t,e){void 0===t&&(t=[]);for(var n=t.length,r=new a.default([]),i=0;i<n;i++)r=r.add(new a.default(e[i]));var o=r.avg(n);o.normalize();for(var s=0,i=0;i<n;i++){var u=new a.default(e[i]);s+=u.squareEuclideanDistance(o);}var c=[];t.forEach(function(){c.push([]);});for(var i=0;i<n;i++){var u=new a.default(e[i]);t[i].clusterInertial=0;for(var l=0;l<n;l++){if(i===l){c[i][l]=0;continue;}var f=new a.default(e[l]);c[i][l]=u.squareEuclideanDistance(f),t[i].clusterInertial+=c[i][l];}}for(var d=0,h=2*n*s,i=0;i<n;i++)for(var g=t[i].clusterId,l=0;l<n;l++){var p=t[l].clusterId;i!==l&&g===p&&(d+=t[i].clusterInertial*t[l].clusterInertial/Math.pow(h,2)-c[i][l]/h);}return Number(d.toFixed(4));},f=function(t,e,n,r,a,f,d,h,g){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e-4),void 0===a&&(a=!1),void 0===f&&(f=void 0),void 0===d&&(d=[]),void 0===h&&(h=["id"]),void 0===g&&(g=1);var p=t.nodes,v=void 0===p?[]:p,m=t.edges,y=void 0===m?[]:m,b=[];if(a){v.forEach(function(t,e){t.properties=t.properties||{},t.originIndex=e;});var x=[];v.every(function(t){return t.hasOwnProperty("nodeType");})&&(x=Array.from(new Set(v.map(function(t){return t.nodeType;}))),v.forEach(function(t){t.properties.nodeType=x.findIndex(function(e){return e===t.nodeType;});}));var _=(0,s.getAllProperties)(v,f);b=(0,u.oneHot)(_,d,h);}var E=1,w={},M={};v.forEach(function(t,e){var n=String(E++);t.clusterId=n,w[n]={id:n,nodes:[t]},M[t.id]={node:t,idx:e};});var C=(0,o.default)(t,e),A=[],S={},D=0;C.forEach(function(t,e){var n=0,r=v[e].id;S[r]={},t.forEach(function(t,e){if(t){n+=t;var i=v[e].id;S[r][i]=t,D+=t;}}),A.push(n);}),D/=2;for(var I=1/0,T=1/0,k=0,F=[],N={};;){I=a&&v.every(function(t){return t.hasOwnProperty("properties");})?c(v,C,A,D)+l(v,b)*g:c(v,C,A,D),0===k&&(T=I,F=v,N=w);var O=I>0&&I>T&&I-T<r;if(I>T&&(F=v.map(function(t){return{node:t,clusterId:t.clusterId};}),N=(0,i.clone)(w),T=I),O||k>100)break;k++,Object.keys(w).forEach(function(t){var e=0;y.forEach(function(r){var i=r.source,o=r.target,a=M[i].node.clusterId,s=M[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1);}),w[t].sumTot=e;}),v.forEach(function(t,e){var r,i=w[t.clusterId],o=0,s=A[e]/(2*D),u=0,c=i.nodes;c.forEach(function(t){var n=M[t.id].idx;u+=C[e][n]||0;});var f=u-i.sumTot*s,d=c.filter(function(e){return e.id!==t.id;}),h=[];d.forEach(function(t,e){h[e]=b[t.originIndex];});var p=l(d,b)*g;if(Object.keys(S[t.id]).forEach(function(n){var i=M[n].node.clusterId;if(i!==t.clusterId){var u=w[i],c=u.nodes;if(c&&c.length){var d=0;c.forEach(function(t){var n=M[t.id].idx;d+=C[e][n]||0;});var h=d-u.sumTot*s,v=c.concat([t]),m=[];v.forEach(function(t,e){m[e]=b[t.originIndex];});var y=l(v,b)*g,x=h-f;a&&(x=h+y-(f+p)),x>o&&(o=x,r=u);}}}),o>0){r.nodes.push(t);var v=t.clusterId;t.clusterId=r.id;var m=i.nodes.indexOf(t);i.nodes.splice(m,1);var x=0,_=0;y.forEach(function(t){var e=t.source,i=t.target,o=M[e].node.clusterId,a=M[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(x+=t[n]||1),(o===v&&a!==v||a===v&&o!==v)&&(_+=t[n]||1);}),r.sumTot=x,i.sumTot=_;}});}var B={},P=0;Object.keys(N).forEach(function(t){var e=N[t];if(!e.nodes||!e.nodes.length){delete N[t];return;}var n=String(P+1);n!==t&&(e.id=n,e.nodes=e.nodes.map(function(t){return{id:t.id,clusterId:n};}),N[n]=e,B[t]=n,delete N[t],P++);}),F.forEach(function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&B[e.clusterId]&&(e.clusterId=B[e.clusterId]));});var L=[],j={};y.forEach(function(t){var e=t.source,r=t.target,i=t[n]||1,o=M[e].node.clusterId,a=M[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(j[s])j[s].weight+=i,j[s].count++;else{var u={source:o,target:a,weight:i,count:1};j[s]=u,L.push(u);}}});var R=[];return Object.keys(N).forEach(function(t){R.push(N[t]);}),{clusters:R,clusterEdges:L};};},"84e41889":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{isPointInPolygon:function(){return r.isPointInPolygon;},isPolygonsIntersect:function(){return i.isPolygonsIntersect;}});var r=n("c78d7c09"),i=n("f31b465b");},"84e6e408":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return o;},floydWarshall:function(){return i;}});var r=function(){return 1;};function i(t,e,n){var i,o,a,s;return i=e||r,o=n||function(e){return t.outEdges(e);},a={},(s=t.nodes()).forEach(function(t){var e=String(t);a[e]={},a[e][e]={distance:0},s.forEach(function(n){t!==n&&(a[e][String(n)]={distance:Number.POSITIVE_INFINITY});}),o(t).forEach(function(n){var r=n.v===t?n.w:n.v,o=i(n);a[e][String(r)]={distance:o,predecessor:t};});}),s.forEach(function(t){var e=String(t),n=a[e];s.forEach(function(t){var r=a[String(t)];s.forEach(function(t){var i=String(t),o=r[e],a=n[i],s=r[i],u=o.distance+a.distance;u<s.distance&&(s.distance=u,s.predecessor=a.predecessor);});});}),a;}var o=i;},"84ee04f9":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){var e=new Set,n=[];return t.nodes().forEach(function(r){for(var i=[],o=[r];o.length>0;){var a,s,u=o.pop();e.has(u)||(e.add(u),i.push(u),null===(a=t.successors(u))||void 0===a||a.forEach(function(t){return o.push(t);}),null===(s=t.predecessors(u))||void 0===s||s.forEach(function(t){return o.push(t);}));}i.length&&n.push(i);}),n;};},"855dbdf7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e;};},"856cac87":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("d8cf7abe")),i=function(){function t(){this.linkedList=new r.default;}return t.prototype.isEmpty=function(){return!this.linkedList.head;},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null;},t.prototype.enqueue=function(t){this.linkedList.append(t);},t.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null;},t.prototype.toString=function(t){return this.linkedList.toString(t);},t;}();},85853212:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e;}return(0,i.__extends)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t);}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=(0,o.isNumber)(t)?t:NaN),e;},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax());},e.prototype.invert=function(t){var e=Math.round((this.max-this.min)*this.calcPercent(t,this.rangeMin(),this.rangeMax()))+this.min;return e<this.min||e>this.max?NaN:this.values[e];},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=e;return(0,o.isNumber)(e)&&!this.values.includes(e)&&(a=this.values[a]),t.prototype.getText.apply(this,(0,i.__spreadArrays)([a],n));},e.prototype.initCfg=function(){this.tickMethod="cat";},e.prototype.setDomain=function(){if((0,o.isNil)(this.getConfig("min"))&&(this.min=0),(0,o.isNil)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t;}this.translateIndexMap&&(this.translateIndexMap=void 0);},e;}(r._(n("65691558")).default);},"85b3418c":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{cloneBesidesImg:function(){return I;},getAnimateCfgWithCallback:function(){return T;},getBBox:function(){return p;},getComboBBox:function(){return S;},getLabelPosition:function(){return m;},getLetterWidth:function(){return E;},getLoopCfgs:function(){return v;},getTextSize:function(){return w;},plainCombosToTrees:function(){return C;},reconstructTree:function(){return A;},shouldRefreshEdge:function(){return D;},traverseTree:function(){return x;},traverseTreeUp:function(){return _;},truncateLabelByLength:function(){return M;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("f6fd9972"),a=n("22b52967"),s=r._(n("528465ee")),u=r._(n("ceb3e3d7")),c=n("2105a9e4"),l=Math.PI,f=Math.sin,d=Math.cos,h=f(l/8),g=d(l/8),p=function(t,e){var n=t.getBBox(),r={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(e){var o=e.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),r=(0,c.applyMatrix)(r,o),i=(0,c.applyMatrix)(i,o);}var a=r.x,s=r.y,u=i.x,l=i.y;return{x:a,y:s,minX:a,minY:s,maxX:u,maxY:l,width:u-a,height:l-s};},v=function(t){var e=t.sourceNode||t.targetNode,n=e.get("group").getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e.getKeyShape(),i=r.getBBox(),a=t.loopCfg||{},u=a.dist||2*Math.max(i.width,i.height),c=a.position||s.default.defaultLoopPosition,l=[(i.minX+i.maxX)/2+n[6],(i.minY+i.maxY)/2+n[7]],f=[t.startPoint.x,t.startPoint.y],d=[t.endPoint.x,t.endPoint.y],p=i.height/2,v=i.width/2,m=p,y=p,b=m*h,x=m*g,_=y*h,E=y*g,w=r.get("type"),M=Math.min(p/2,v/2),C=Math.min(p,v),A=(null==a?void 0:a.pointPadding)?Math.min(C,null==a?void 0:a.pointPadding):M;if(f[0]===d[0]&&f[1]===d[1]){switch(c){case"top":"circle"===w?(f=[l[0]-b,l[1]-x],d=[l[0]+_,l[1]-E]):(f=[l[0]-A,l[1]-p],d=[l[0]+A,l[1]-p]);break;case"top-right":m=p,y=v,"circle"===w?(b=m*h,x=m*g,_=y*h,E=y*g,f=[l[0]+b,l[1]-x],d=[l[0]+E,l[1]-_]):(f=[l[0]+v-A,l[1]-p],d=[l[0]+v,l[1]-p+A]);break;case"right":m=v,y=v,"circle"===w?(b=m*h,x=m*g,_=y*h,E=y*g,f=[l[0]+x,l[1]-b],d=[l[0]+E,l[1]+_]):(f=[l[0]+v,l[1]-A],d=[l[0]+v,l[1]+A]);break;case"bottom-right":m=v,y=p,"circle"===w?(b=m*h,x=m*g,_=y*h,E=y*g,f=[l[0]+x,l[1]+b],d=[l[0]+_,l[1]+E]):(f=[l[0]+v,l[1]+p-A],d=[l[0]+v-A,l[1]+p]);break;case"bottom":m=p,y=p,"circle"===w?(b=m*h,x=m*g,_=y*h,E=y*g,f=[l[0]+b,l[1]+x],d=[l[0]-_,l[1]+E]):(f=[l[0]-A,l[1]+p],d=[l[0]+A,l[1]+p]);break;case"bottom-left":m=p,y=v,"circle"===w?(b=m*h,x=m*g,_=y*h,E=y*g,f=[l[0]-b,l[1]+x],d=[l[0]-E,l[1]+_]):(f=[l[0]-v,l[1]+p-A],d=[l[0]-v+A,l[1]+p]);break;case"left":m=v,y=v,"circle"===w?(b=m*h,x=m*g,_=y*h,E=y*g,f=[l[0]-x,l[1]+b],d=[l[0]-E,l[1]-_]):(f=[l[0]-v,l[1]-A],d=[l[0]-v,l[1]+A]);break;case"top-left":m=v,y=p,"circle"===w?(b=m*h,x=m*g,_=y*h,E=y*g,f=[l[0]-x,l[1]-b],d=[l[0]-_,l[1]-E]):(f=[l[0]-v+A,l[1]-p],d=[l[0]-v,l[1]-p+A]);break;default:m=v,y=v,b=m*h,x=m*g,_=y*h,E=y*g,f=[l[0]-b,l[1]-x],d=[l[0]+_,l[1]-E];}if(!1===a.clockwise){var S=[f[0],f[1]];f=[d[0],d[1]],d=[S[0],S[1]];}}var D=[f[0]-l[0],f[1]-l[1]],I=(m+u)/m,T=(y+u)/y;!1===a.clockwise&&(I=(y+u)/y,T=(m+u)/m);var k=o.vec2.scale([0,0],D,I),F=[l[0]+k[0],l[1]+k[1]],N=[d[0]-l[0],d[1]-l[1]],O=o.vec2.scale([0,0],N,T),B=[l[0]+O[0],l[1]+O[1]];return t.startPoint={x:f[0],y:f[1]},t.endPoint={x:d[0],y:d[1]},t.controlPoints=[{x:F[0],y:F[1]},{x:B[0],y:B[1]}],t;},m=function(t,e,n,r,o){var a=[],s=null==t?void 0:t.getPoint(e);if(!s)return{x:0,y:0,angle:0};if(e<1e-4)a=t.getStartTangent().reverse();else if(e>.9999)a=t.getEndTangent();else{var u=null==t?void 0:t.getPoint(e+1e-4);a.push([s.x,s.y]),a.push([u.x,u.y]);}var c=Math.atan2(a[1][1]-a[0][1],a[1][0]-a[0][0]);if(c<0&&(c+=2*l),n&&(s.x+=d(c)*n,s.y+=f(c)*n),r){var h=c-l/2;c>.5*l&&c<1.5*l&&(h-=l),s.x+=d(h)*r,s.y+=f(h)*r;}var g={x:s.x,y:s.y,angle:c};return o?(c>.5*l&&c<1.5*l&&(c-=l),(0,i.__assign)({rotate:c},g)):g;},y=function t(e,n,r,i){if(!1===i(e,n,r))return!1;if(e&&e.children){for(var o=e.children.length-1;o>=0;o--)if(!t(e.children[o],e,o,i))return!1;}return!0;},b=function t(e,n,r,i){if(e&&e.children){for(var o=e.children.length-1;o>=0;o--)if(!t(e.children[o],e,o,i))return;}return!1!==i(e,n,r);},x=function(t,e){"function"==typeof e&&y(t,null,-1,e);},_=function(t,e){"function"==typeof e&&b(t,null,-1,e);},E=function(t,e){return e*(u.default[t]||1);},w=function(t,e){var n=0,r=RegExp("[\u4E00-\u9FA5]+");return t.split("").forEach(function(t){r.test(t)?n+=e:n+=E(t,e);}),[n,e];},M=function(t,e){return"number"!=typeof e||e<=0||e>=t.length?t:t.substring(0,e)+"...";},C=function(t,e){var n=[],r={},i={};t.forEach(function(t){i[t.id]=t;}),t.forEach(function(t,e){var o=(0,a.clone)(t);o.itemType="combo",o.children=void 0,o.parentId===o.id?(console.warn("The parentId for combo ".concat(o.id," can not be the same as the combo's id")),delete o.parentId):o.parentId&&!i[o.parentId]&&(console.warn("The parent combo for combo ".concat(o.id," does not exist!")),delete o.parentId);var s=r[o.id];if(s){if(o.children=s.children,r[o.id]=o,!(s=o).parentId){n.push(s);return;}var u=r[s.parentId];if(u)u.children?u.children.push(o):u.children=[o];else{var c={id:s.parentId,children:[s]};r[s.parentId]=c,r[o.id]=o;}return;}if((0,a.isString)(t.parentId)){var l=r[t.parentId];if(l)l.children?l.children.push(o):l.children=[o],r[o.id]=o;else{var f={id:t.parentId,children:[o]};r[f.id]=f,r[o.id]=o;}}else n.push(o),r[o.id]=o;});var o={};(e||[]).forEach(function(t){o[t.id]=t;var e=r[t.comboId];if(e){var n={id:t.id,comboId:t.comboId};e.children?e.children.push(n):e.children=[n],n.itemType="node",r[t.id]=n;}});var s=0;return n.forEach(function(t){t.depth=s+10,x(t,function(t){var e=r[t.id].itemType;("node"===e?r[t.comboId]:r[t.parentId])&&"node"===e?t.depth=s+1:t.depth=s+10,s<t.depth&&(s=t.depth);var n=o[t.id];return n&&(n.depth=t.depth),!0;});}),n;},A=function(t,e,n){var r,i,o=t,a={root:{children:t}},s=!1,u="root";(t||[]).forEach(function(t){if(!s){if(t.id===e){i=t,"combo"===t.itemType?i.parentId=n:i.comboId=n,s=!0;return;}x(t,function(t){var r;return a[t.id]={children:(null==t?void 0:t.children)||[]},o=null===(r=a[t.parentId||t.comboId||"root"])||void 0===r?void 0:r.children,!t||!t.removed&&e!==t.id||!o||(u=t.parentId||t.comboId||"root",i=t,"combo"===t.itemType?i.parentId=n:i.comboId=n,s=!0,!1);});}});var c=(o=null===(r=a[u])||void 0===r?void 0:r.children)?o.indexOf(i):-1;if(c>-1&&o.splice(c,1),s||(i={id:e,itemType:"node",comboId:n},a[e]={children:void 0}),e){var l=!1;if(n){var f=0;(t||[]).forEach(function(t){l||x(t,function(t){return n!==t.id||(l=!0,t.children?t.children.push(i):t.children=[i],f=t.depth,"node"===i.itemType?i.depth=f+2:i.depth=f+1,!1);});});}else n&&l||"node"===i.itemType||t.push(i);var d=i.depth;x(i,function(t){return"node"===t.itemType?d+=2:d+=1,t.depth=d,!0;});}return t;},S=function(t,e,n){var r={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!t||0===t.length){var i=(null==n?void 0:n.getModel())||{},o=i.x,s=i.y,u=i.fixSize,c=i.collapsed,l=i.fixCollapseSize,f=c?l:u,d=(0,a.isArray)(f)?f:[f,f],h=d[0],g=d[1],p=[h/2,g/2];return{minX:o-p[0],minY:s-p[1],maxX:o+p[0],maxY:s+p[1],x:o,y:s,width:h,height:g};}return t.forEach(function(t){var n=e.findById(t.id);if(n&&n.isVisible()){n.set("bboxCanvasCache",void 0);var i=n.getCanvasBBox();i.x&&r.minX>i.minX&&(r.minX=i.minX),i.y&&r.minY>i.minY&&(r.minY=i.minY),i.x&&r.maxX<i.maxX&&(r.maxX=i.maxX),i.y&&r.maxY<i.maxY&&(r.maxY=i.maxY);}}),r.x=(r.minX+r.maxX)/2,r.y=(r.minY+r.maxY)/2,r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.centerX=(r.minX+r.maxX)/2,r.centerY=(r.minY+r.maxY)/2,(null==n?void 0:n.getKeyShape().get("type"))==="circle"&&(r.width=Math.hypot(r.height,r.width),r.height=r.width),Object.keys(r).forEach(function(t){(r[t]===1/0||r[t]===-1/0)&&(r[t]=void 0);}),r;},D=function(t){var e=(0,a.isNumber)(t.x)||(0,a.isNumber)(t.y)||t.type||t.anchorPoints||t.size;return t.style&&(e=e||(0,a.isNumber)(t.style.r)||(0,a.isNumber)(t.style.width)||(0,a.isNumber)(t.style.height)||(0,a.isNumber)(t.style.rx)||(0,a.isNumber)(t.style.ry)),e;},I=function(t){var e={};return Object.keys(t).forEach(function(n){var r=t[n];if("img"!==n||(0,a.isString)(r)){if((0,a.isObject)(r)&&!(0,a.isArray)(r)){var i={};Object.keys(r).forEach(function(t){var e=r[t];("img"!==t||(0,a.isString)(e))&&(i[t]=(0,a.clone)(e));}),e[n]=i;}else e[n]=(0,a.clone)(r);}}),e;},T=function(t){var e,n=t.animateCfg,r=t.callback;if(n){if(e=(0,a.clone)(n),n.callback){var i=n.callback;e.callback=function(){r(),i();};}else e.callback=r;}else e={duration:500,callback:r};return e;};},86383486:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("501adece")),i=function(t){return(0,r.default)(t)&&t<0;};},"86a82e9b":function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,i);}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n];}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n);};Object.defineProperty(e,"__esModule",{value:!0}),i(n("fe5e3654"),e);},"86dbbe2a":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0}),e.DagreLayout=void 0;var a=o(n("3a752a8a")),s=n("38788347"),u=n("5092cda5"),c=n("62734055"),l=function(t){function e(e){var n=t.call(this)||this;return n.rankdir="TB",n.nodesep=50,n.ranksep=50,n.controlPoints=!1,n.sortByCombo=!1,n.edgeLabelSpace=!0,n.radial=!1,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.layoutNode=function(t){var e=n.nodes.find(function(e){return e.id===t;});return!e||!1!==e.layout;},n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1,radial:!1,focusNode:null};},e.prototype.execute=function(){var t,e,n,r,i,o=this,u=this,l=u.nodes,d=u.nodeSize,h=u.rankdir,g=u.combos,p=u.begin,v=u.radial,m=u.comboEdges,y=void 0===m?[]:m,b=u.vedges;if(l){var x=u.edges||[],_=new c.Graph({multigraph:!0,compound:!0});u.nodeMap={};var E={};l.forEach(function(t){u.nodeMap[t.id]=t,t.comboId&&(E[t.comboId]=E[t.comboId]||[],E[t.comboId].push(t.id));});var w=[],M={};(null===(t=u.nodeOrder)||void 0===t?void 0:t.length)?(u.nodeOrder.forEach(function(t){M[t]=!0,w.push(u.nodeMap[t]);}),l.forEach(function(t){M[t.id]||w.push(t);})):w=l,i=d?(0,s.isArray)(d)?function(){return d;}:function(){return[d,d];}:function(t){return t.size?(0,s.isArray)(t.size)?t.size:(0,s.isObject)(t.size)?[t.size.width||40,t.size.height||40]:[t.size,t.size]:[40,40];};var C=(0,s.getFunc)(u.ranksep,50,u.ranksepFunc),A=(0,s.getFunc)(u.nodesep,50,u.nodesepFunc),S=A,D=C;("LR"===h||"RL"===h)&&(S=C,D=A),_.setDefaultEdgeLabel(function(){return{};}),_.setGraph(u);var I={};this.sortByCombo&&g&&g.forEach(function(t){if(I[t.id]=t,t.collapsed){var e=i(t),n=D(t),r=S(t),o=e[0]+2*r,a=e[1]+2*n;_.setNode(t.id,{width:o,height:a});}t.parentId&&(I[t.parentId]||_.setNode(t.parentId,{}),_.setParent(t.id,t.parentId));}),w.filter(function(t){return!1!==t.layout;}).forEach(function(t){var e=i(t),n=D(t),r=S(t),a=e[0]+2*r,u=e[1]+2*n,c=t.layer;(0,s.isNumber)(c)?_.setNode(t.id,{width:a,height:u,layer:c}):_.setNode(t.id,{width:a,height:u}),o.sortByCombo&&t.comboId&&(I[t.comboId]||(I[t.comboId]={id:t.comboId},_.setNode(t.comboId,{})),_.setParent(t.id,t.comboId));}),x.forEach(function(t){var e=(0,s.getEdgeTerminal)(t,"source"),n=(0,s.getEdgeTerminal)(t,"target");o.layoutNode(e)&&o.layoutNode(n)&&_.setEdge(e,n,{weight:t.weight||1});}),null===(e=null==y?void 0:y.concat((void 0===b?[]:b)||[]))||void 0===e||e.forEach(function(t){var e,n,r=t.source,i=t.target,o=(null===(e=I[r])||void 0===e?void 0:e.collapsed)?[r]:E[r]||[r],a=(null===(n=I[i])||void 0===n?void 0:n.collapsed)?[i]:E[i]||[i];o.forEach(function(e){a.forEach(function(n){_.setEdge(e,n,{weight:t.weight||1});});});});var T=void 0;(null===(n=u.preset)||void 0===n?void 0:n.nodes)&&(T=new c.Graph({multigraph:!0,compound:!0}),u.preset.nodes.forEach(function(t){null==T||T.setNode(t.id,t);})),a.default.layout(_,{prevGraph:T,edgeLabelSpace:u.edgeLabelSpace,keepNodeOrder:!!u.nodeOrder,nodeOrder:u.nodeOrder});var k=[0,0];if(p){var F=1/0,N=1/0;_.nodes().forEach(function(t){var e=_.node(t);F>e.x&&(F=e.x),N>e.y&&(N=e.y);}),_.edges().forEach(function(t){var e;null===(e=_.edge(t).points)||void 0===e||e.forEach(function(t){F>t.x&&(F=t.x),N>t.y&&(N=t.y);});}),k[0]=p[0]-F,k[1]=p[1]-N;}var O="LR"===h||"RL"===h;if(v){var B=this.focusNode,P=this.ranksep,L=this.getRadialPos,j=(0,s.isString)(B)?B:null==B?void 0:B.id,R=j?null===(r=_.node(j))||void 0===r?void 0:r._rank:0,z=[],G=O?"y":"x",Y=O?"height":"width",X=1/0,U=-1/0;_.nodes().forEach(function(t){var e=_.node(t);if(u.nodeMap[t]){var n=A(u.nodeMap[t]);if(0===R)z[e._rank]||(z[e._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),z[e._rank].nodes.push(t),z[e._rank].totalWidth+=2*n+e[Y],z[e._rank].maxSize<Math.max(e.width,e.height)&&(z[e._rank].maxSize=Math.max(e.width,e.height));else{var r=e._rank-R;if(0===r)z[r]||(z[r]={nodes:[],totalWidth:0,maxSize:-1/0}),z[r].nodes.push(t),z[r].totalWidth+=2*n+e[Y],z[r].maxSize<Math.max(e.width,e.height)&&(z[r].maxSize=Math.max(e.width,e.height));else{var i=Math.abs(r);z[i]||(z[i]={left:[],right:[],totalWidth:0,maxSize:-1/0}),z[i].totalWidth+=2*n+e[Y],z[i].maxSize<Math.max(e.width,e.height)&&(z[i].maxSize=Math.max(e.width,e.height)),r<0?z[i].left.push(t):z[i].right.push(t);}}var o=e[G]-e[Y]/2-n,a=e[G]+e[Y]/2+n;o<X&&(X=o),a>U&&(U=a);}});var H=P||50,W={},V=(U-X)/.9,q=[(X+U-V)*.5,(X+U+V)*.5],Z=function(t,e,n,r){void 0===n&&(n=-1/0),void 0===r&&(r=[0,1]);var i=n;return t.forEach(function(t){var n=_.node(t);W[t]=e;var o=L(n[G],q,V,e,r),a=o.x,s=o.y;if(u.nodeMap[t]){u.nodeMap[t].x=a+k[0],u.nodeMap[t].y=s+k[1],u.nodeMap[t]._order=n._order;var c=C(u.nodeMap[t]);i<c&&(i=c);}}),i;},J=!0;z.forEach(function(t){if((null===(e=null==t?void 0:t.nodes)||void 0===e?void 0:e.length)||(null===(n=null==t?void 0:t.left)||void 0===n?void 0:n.length)||(null===(r=null==t?void 0:t.right)||void 0===r?void 0:r.length)){if(J&&1===t.nodes.length){var e,n,r,i,o,a,s,c=t.nodes[0];if(!u.nodeMap[c])return;u.nodeMap[c].x=k[0],u.nodeMap[c].y=k[1],W[t.nodes[0]]=0,H=C(u.nodeMap[c]),J=!1;return;}H=Math.max(H,t.totalWidth/(2*Math.PI));var l=-1/0;if(0===R||(null===(i=t.nodes)||void 0===i?void 0:i.length))l=Z(t.nodes,H,l,[0,1]);else{var f=(null===(o=t.left)||void 0===o?void 0:o.length)/((null===(a=t.left)||void 0===a?void 0:a.length)+(null===(s=t.right)||void 0===s?void 0:s.length));l=Z(t.left,H,l,[0,f]),l=Z(t.right,H,l,[f+.05,1]);}H+=l,J=!1,t.maxSize;}}),_.edges().forEach(function(t){var e,n,r,i=_.edge(t),o=x.findIndex(function(e){var n=(0,s.getEdgeTerminal)(e,"source"),r=(0,s.getEdgeTerminal)(e,"target");return n===t.v&&r===t.w;});if(!(o<=-1)&&u.edgeLabelSpace&&u.controlPoints&&"loop"!==x[o].type){var a="x"===G?"y":"x",c=null===(e=null==i?void 0:i.points)||void 0===e?void 0:e.slice(1,i.points.length-1),l=[],f=null===(n=_.node(t.v))||void 0===n?void 0:n[a],d=f-(null===(r=_.node(t.w))||void 0===r?void 0:r[a]),h=W[t.v],g=h-W[t.w];null==c||c.forEach(function(t){var e=(t[a]-f)/d*g+h,n=L(t[G],q,V,e);l.push({x:n.x+k[0],y:n.y+k[1]});}),x[o].controlPoints=l;}});}else{var K=new Set;_.nodes().forEach(function(t){var e=_.node(t);if(e){var n=o.nodeMap[t];n||(n=null==g?void 0:g.find(function(e){return e.id===t;})),n&&(n.x=e.x+k[0],n.y=e.y+k[1],n._order=e._order,K.add(O?n.x:n.y));}});var Q=Array.from(K).sort("BT"===h||"RL"===h?function(t,e){return e-t;}:function(t,e){return t-e;}),$=O?function(t,e){return t.x!==e.x;}:function(t,e){return t.y!==e.y;},tt=O?function(t,e,n){var r=Math.max(e.y,n.y),i=Math.min(e.y,n.y);return t.filter(function(t){return t.y<=r&&t.y>=i;});}:function(t,e,n){var r=Math.max(e.x,n.x),i=Math.min(e.x,n.x);return t.filter(function(t){return t.x<=r&&t.x>=i;});};_.edges().forEach(function(t){var e,n=_.edge(t),r=x.findIndex(function(e){var n=(0,s.getEdgeTerminal)(e,"source"),r=(0,s.getEdgeTerminal)(e,"target");return n===t.v&&r===t.w;});if(!(r<=-1)&&u.edgeLabelSpace&&u.controlPoints&&"loop"!==x[r].type){null===(e=null==n?void 0:n.points)||void 0===e||e.forEach(function(t){t.x+=k[0],t.y+=k[1];});var i=u.nodeMap[t.v],o=u.nodeMap[t.w];x[r].controlPoints=f(null==n?void 0:n.points,i,o,Q,O,$,tt);}});}return u.onLayoutEnd&&u.onLayoutEnd(),{nodes:l,edges:x};}},e.prototype.getRadialPos=function(t,e,n,r,i){void 0===i&&(i=[0,1]);var o=(t-e[0])/n,a=2*(o=o*(i[1]-i[0])+i[0])*Math.PI;return{x:Math.cos(a)*r,y:Math.sin(a)*r};},e.prototype.getType=function(){return"dagre";},e;}(u.Base);e.DagreLayout=l;var f=function(t,e,n,r,i,o,a){var s=(null==t?void 0:t.slice(1,t.length-1))||[];if(e&&n){var u=e.x,c=e.y,l=n.x,f=n.y;if(i&&(u=e.y,c=e.x,l=n.y,f=n.x),f!==c&&u!==l){var d=r.indexOf(c),h=r[d+1];if(h){var g=s[0],p=i?{x:(c+h)/2,y:(null==g?void 0:g.y)||l}:{x:(null==g?void 0:g.x)||l,y:(c+h)/2};(!g||o(g,p))&&s.unshift(p);}var v=r.indexOf(f),m=Math.abs(v-d);if(1===m)(s=a(s,e,n)).length||s.push(i?{x:(c+f)/2,y:u}:{x:u,y:(c+f)/2});else if(m>1){var y=r[v-1];if(y){var b=s[s.length-1],x=i?{x:(f+y)/2,y:(null==b?void 0:b.y)||l}:{x:(null==b?void 0:b.x)||u,y:(f+y)/2};(!b||o(b,x))&&s.push(x);}}}}return s;};},"86e49ca4":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("777fffbe"),i=n("82084c6c"),o=r._(n("8974d3b7"));function a(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t;}function s(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e;}function u(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)};}function c(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r];}var l={box:function(t,e,n,r,i,o,u){for(var c=Math.atan(-r/n*Math.tan(i)),l=1/0,f=-1/0,d=[o,u],h=-(2*Math.PI);h<=2*Math.PI;h+=Math.PI){var g=c+h;o<u?o<g&&g<u&&d.push(g):u<g&&g<o&&d.push(g);}for(var h=0;h<d.length;h++){var p=a(t,e,n,r,i,d[h]);p<l&&(l=p),p>f&&(f=p);}for(var v=Math.atan(r/(n*Math.tan(i))),m=1/0,y=-1/0,b=[o,u],h=-(2*Math.PI);h<=2*Math.PI;h+=Math.PI){var x=v+h;o<u?o<x&&x<u&&b.push(x):u<x&&x<o&&b.push(x);}for(var h=0;h<b.length;h++){var _=s(t,e,n,r,i,b[h]);_<m&&(m=_),_>y&&(y=_);}return{x:l,y:m,width:f-l,height:y-m};},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,a,s,l,f){var d,h=c(l-t,f-e,-i),g=h[0],p=h[1],v=o.default.nearestPoint(0,0,n,r,g,p),m=(d=v.x,(Math.atan2(v.y*n,d*r)+2*Math.PI)%(2*Math.PI));m<a?v=u(n,r,a):m>s&&(v=u(n,r,s));var y=c(v.x,v.y,i);return{x:y[0]+t,y:y[1]+e};},pointDistance:function(t,e,n,r,o,a,s,u,c){var l=this.nearestPoint(t,e,n,r,u,c);return(0,i.distance)(l.x,l.y,u,c);},pointAt:function(t,e,n,r,i,o,u,c){var l=(u-o)*c+o;return{x:a(t,e,n,r,i,l),y:s(t,e,n,r,i,l)};},tangentAngle:function(t,e,n,r,o,a,s,u){var c=(s-a)*u+a,l=-1*n*Math.cos(o)*Math.sin(c)-r*Math.sin(o)*Math.cos(c),f=-1*n*Math.sin(o)*Math.sin(c)+r*Math.cos(o)*Math.cos(c);return(0,i.piMod)(Math.atan2(f,l));}};},"86e53343":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("dfdb2ac4"),i=function(t,e,n){for(var i=(0,r.zipObject)(n,n.map(function(t,e){return e;})),o=e.map(function(e){var n,r=null===(n=t.outEdges(e))||void 0===n?void 0:n.map(function(e){return{pos:i[e.w]||0,weight:t.edge(e).weight};});return null==r?void 0:r.sort(function(t,e){return t.pos-e.pos;});}).flat().filter(function(t){return void 0!==t;}),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var u=Array(s).fill(0,0,s),c=0;return null==o||o.forEach(function(t){if(t){var e=t.pos+a;u[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=u[e+1]),e=e-1>>1,u[e]+=t.weight;c+=t.weight*n;}}),c;};e.default=function(t,e){for(var n=0,r=1;r<(null==e?void 0:e.length);r+=1)n+=i(t,e[r-1],e[r]);return n;};},"877a6d9a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{backIn:function(){return r;},backInOut:function(){return o;},backOut:function(){return i;}});var r=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t);}return e=+e,n.overshoot=t,n;}(1.70158),i=function t(e){function n(t){return--t*t*((t+1)*e+t)+1;}return e=+e,n.overshoot=t,n;}(1.70158),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;}(1.70158);},"87be52f8":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r="dblclick",i=["click","dblclick"],o={getDefaultCfg:function(){return{trigger:r,relayout:!0};},getEvents:function(){var t,e;return i.includes(this.trigger)?e=this.trigger:(e=r,console.warn("Behavior collapse-expand-group \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),(t={})["combo:".concat(e)]="onComboClick",t;},onComboClick:function(t){var e=t.item,n=this.graph,r=this.relayout;if(e&&!e.destroyed&&"combo"===e.getType()){var i=e.getModel().id;i&&(n.collapseExpandCombo(i),r&&n.get("layout")?n.layout():n.refreshPositions());}}};},"87e3fa21":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("3d468e1b")),a=r._(n("6555228a")),s=function(t){var e=t.filter(function(t){return!isNaN(t);});if(!e.length)return{min:0,max:0};if((0,i.default)(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n;}var s=(0,o.default)(e);return{min:(0,a.default)(e),max:s};};},"881988db":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("b6b3d6c6"));class i extends r.default{constructor(t){super(t,t.columns,t.rows);}set(t,e,n){return this.matrix.set(e,t,n),this;}get(t,e){return this.matrix.get(e,t);}}},"88430f34":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"defaultSubjectColors",{enumerable:!0,get:function(){return r;}});var r=["#5F95FF","#61DDAA","#65789B","#F6BD16","#7262FD","#78D3F8","#9661BC","#F6903D","#008685","#F08BB4"];},"889992fe":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=e.LinkedListNode=void 0;var r=function(t,e){return t===e;},i=function(){function t(t,e){void 0===e&&(e=null),this.value=t,this.next=e;}return t.prototype.toString=function(t){return t?t(this.value):"".concat(this.value);},t;}();e.LinkedListNode=i;var o=function(){function t(t){void 0===t&&(t=r),this.head=null,this.tail=null,this.compare=t;}return t.prototype.prepend=function(t){var e=new i(t,this.head);return this.head=e,this.tail||(this.tail=e),this;},t.prototype.append=function(t){var e=new i(t);return this.head?this.tail.next=e:this.head=e,this.tail=e,this;},t.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)for(;n.next;)this.compare(n.next.value,t)?(e=n.next,n.next=n.next.next):n=n.next;return this.compare(this.tail.value,t)&&(this.tail=n),e;},t.prototype.find=function(t){var e=t.value,n=void 0===e?void 0:e,r=t.callback,i=void 0===r?void 0:r;if(!this.head)return null;for(var o=this.head;o;){if(i&&i(o.value)||void 0!==n&&this.compare(o.value,n))return o;o=o.next;}return null;},t.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t;},t.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t;},t.prototype.fromArray=function(t){var e=this;return t.forEach(function(t){return e.append(t);}),this;},t.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t;},t.prototype.reverse=function(){for(var t=this.head,e=null,n=null;t;)n=t.next,t.next=e,e=t,t=n;this.tail=this.head,this.head=e;},t.prototype.toString=function(t){return void 0===t&&(t=void 0),this.toArray().map(function(e){return e.toString(t);}).toString();},t;}();e.default=o;},"88b3e4ac":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("b6b3d6c6"));class i extends r.default{constructor(t){super(t,t.rows,t.columns);}set(t,e,n){return this.matrix.set(t,this.columns-e-1,n),this;}get(t,e){return this.matrix.get(t,this.columns-e-1);}}},"88d36838":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"lineToCubic",{enumerable:!0,get:function(){return o;}});var r=n("4c6d310c"),i=n("ed0d3524"),o=function(t,e,n,o){var a=(0,i.midPoint)([t,e],[n,o],.5);return(0,r.__spreadArray)((0,r.__spreadArray)([],a,!0),[n,o,n,o],!1);};},"8919b16e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("57da0159");e.default=function(t){for(var e={},n=t.nodes().filter(function(e){var n;return!(null===(n=t.children(e))||void 0===n?void 0:n.length);}),i=n.map(function(e){return t.node(e).rank;}),o=(0,r.max)(i),a=[],s=0;s<o+1;s++)a.push([]);var u=function(n){if(!e.hasOwnProperty(n)){e[n]=!0;var r,i=t.node(n);isNaN(i.rank)||a[i.rank].push(n),null===(r=t.successors(n))||void 0===r||r.forEach(function(t){return u(t);});}},c=n.sort(function(e,n){return t.node(e).rank-t.node(n).rank;}),l=c.filter(function(e){return void 0!==t.node(e).fixorder;}).sort(function(e,n){return t.node(e).fixorder-t.node(n).fixorder;});return null==l||l.forEach(function(n){isNaN(t.node(n).rank)||a[t.node(n).rank].push(n),e[n]=!0;}),null==c||c.forEach(u),a;};},"895d617b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"GADDIAsync",{enumerable:!0,get:function(){return r.GADDIAsync;}}),Object.defineProperty(e,"connectedComponentAsync",{enumerable:!0,get:function(){return r.connectedComponentAsync;}}),e.default=void 0,Object.defineProperty(e,"detectAllCyclesAsync",{enumerable:!0,get:function(){return r.detectAllCyclesAsync;}}),Object.defineProperty(e,"detectAllDirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllDirectedCycleAsync;}}),Object.defineProperty(e,"detectAllUndirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllUndirectedCycleAsync;}}),Object.defineProperty(e,"detectCycleAsync",{enumerable:!0,get:function(){return r.detectCycleAsync;}}),e.detectDirectedCycleAsync=void 0,Object.defineProperty(e,"dijkstraAsync",{enumerable:!0,get:function(){return r.dijkstraAsync;}}),Object.defineProperty(e,"findAllPathAsync",{enumerable:!0,get:function(){return r.findAllPathAsync;}}),Object.defineProperty(e,"findShortestPathAsync",{enumerable:!0,get:function(){return r.findShortestPathAsync;}}),Object.defineProperty(e,"floydWarshallAsync",{enumerable:!0,get:function(){return r.floydWarshallAsync;}}),Object.defineProperty(e,"getAdjMatrixAsync",{enumerable:!0,get:function(){return r.getAdjMatrixAsync;}}),Object.defineProperty(e,"getDegreeAsync",{enumerable:!0,get:function(){return r.getDegreeAsync;}}),Object.defineProperty(e,"getInDegreeAsync",{enumerable:!0,get:function(){return r.getInDegreeAsync;}}),Object.defineProperty(e,"getNeighborsAsync",{enumerable:!0,get:function(){return r.getNeighborsAsync;}}),Object.defineProperty(e,"getOutDegreeAsync",{enumerable:!0,get:function(){return r.getOutDegreeAsync;}}),Object.defineProperty(e,"labelPropagationAsync",{enumerable:!0,get:function(){return r.labelPropagationAsync;}}),Object.defineProperty(e,"louvainAsync",{enumerable:!0,get:function(){return r.louvainAsync;}}),Object.defineProperty(e,"minimumSpanningTreeAsync",{enumerable:!0,get:function(){return r.minimumSpanningTreeAsync;}}),Object.defineProperty(e,"pageRankAsync",{enumerable:!0,get:function(){return r.pageRankAsync;}});var r=n("e574e961"),i=r.detectCycleAsync;e.detectDirectedCycleAsync=i;var o={getAdjMatrixAsync:r.getAdjMatrixAsync,connectedComponentAsync:r.connectedComponentAsync,getDegreeAsync:r.getDegreeAsync,getInDegreeAsync:r.getInDegreeAsync,getOutDegreeAsync:r.getOutDegreeAsync,detectCycleAsync:r.detectCycleAsync,detectDirectedCycleAsync:i,detectAllCyclesAsync:r.detectAllCyclesAsync,detectAllDirectedCycleAsync:r.detectAllDirectedCycleAsync,detectAllUndirectedCycleAsync:r.detectAllUndirectedCycleAsync,dijkstraAsync:r.dijkstraAsync,findAllPathAsync:r.findAllPathAsync,findShortestPathAsync:r.findShortestPathAsync,floydWarshallAsync:r.floydWarshallAsync,labelPropagationAsync:r.labelPropagationAsync,louvainAsync:r.louvainAsync,minimumSpanningTreeAsync:r.minimumSpanningTreeAsync,pageRankAsync:r.pageRankAsync,getNeighborsAsync:r.getNeighborsAsync,GADDIAsync:r.GADDIAsync};e.default=o;},"8974d3b7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("82084c6c");function i(t,e){var n=Math.abs(t);return e>0?n:-1*n;}var o={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r};},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)));},nearestPoint:function(t,e,n,r,o,a){if(0===n||0===r)return{x:t,y:e};for(var s,u,c=o-t,l=a-e,f=Math.abs(c),d=Math.abs(l),h=n*n,g=r*r,p=Math.PI/4,v=0;v<4;v++){s=n*Math.cos(p),u=r*Math.sin(p);var m=(h-g)*Math.pow(Math.cos(p),3)/n,y=(g-h)*Math.pow(Math.sin(p),3)/r,b=s-m,x=u-y,_=f-m,E=d-y,w=Math.hypot(x,b),M=Math.hypot(E,_);p+=w*Math.asin((b*E-x*_)/(w*M))/Math.sqrt(h+g-s*s-u*u),p=Math.min(Math.PI/2,Math.max(0,p));}return{x:t+i(s,c),y:e+i(u,l)};},pointDistance:function(t,e,n,i,o,a){var s=this.nearestPoint(t,e,n,i,o,a);return(0,r.distance)(s.x,s.y,o,a);},pointAt:function(t,e,n,r,i){var o=2*Math.PI*i;return{x:t+n*Math.cos(o),y:e+r*Math.sin(o)};},tangentAngle:function(t,e,n,i,o){var a=2*Math.PI*o,s=Math.atan2(i*Math.cos(a),-n*Math.sin(a));return(0,r.piMod)(s);}};},"89d2db1b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("0aff2e87")),o=r._(n("2b787e3d")),a=function(t,e){var n=[];if(!(0,i.default)(t))return n;for(var r=-1,a=[],s=t.length;++r<s;){var u=t[r];e(u,r,t)&&(n.push(u),a.push(r));}return(0,o.default)(t,a),n;};},"8a5e602e":function(t,e,n){"use strict";function r(t){return null===t;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"8a7a4560":function(t,e,n){"use strict";function r(t){var e=Math.round(t).toString(16);return 1===e.length?"0".concat(e):e;}function i(t){return"#".concat(r(t[0])).concat(r(t[1])).concat(r(t[2]));}n.d(e,"__esModule",{value:!0}),n.e(e,{arr2rgb:function(){return i;},toHex:function(){return r;}});},"8a9c481d":function(t,e,n){},"8ae33181":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("777fffbe"),i=n("22b52967"),o=r._(n("c387d242")),a=o.default.cloneEvent,s=o.default.isNaN,u=Math.abs,c=["shift","ctrl","alt","control"],l={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1};},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"};},updateViewport:function(t){var e=this.origin,n=+t.clientX,r=+t.clientY;if(!(s(n)||s(r))){var i=n-e.x,o=r-e.y;"x"===this.get("direction")?o=0:"y"===this.get("direction")&&(i=0),this.origin={x:n,y:r};var a=this.graph.get("width"),u=this.graph.get("height"),c=this.graph.get("canvas").getCanvasBBox(),l=this.scalableRange,f=this.scalableRange;l<1&&l>-1&&(l*=a,f*=u),(c.minX<=a+l&&c.minX+i>a+l||c.maxX+l>=0&&c.maxX+l+i<0)&&(i=0),(c.minY<=u+f&&c.minY+o>u+f||c.maxY+f>=0&&c.maxY+f+o<0)&&(o=0),this.graph.translate(i,o);}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];n&&r||(t.preventDefault(),this.mousedown=!0,this.onDragStart(t));},onMouseDown:function(t){this.mousedown=!0;},onDragMove:function(t){this.mousedown&&(this.dragstart?this.onDrag(t):(this.dragstart=!0,this.onDragStart(t)));},onDragStart:function(t){var e=t.originalEvent;if((!e||"touchstart"===t.name||0===e.button)&&("touchstart"===t.name||"undefined"==typeof window||!window.event||window.event.buttons||window.event.button)&&this.shouldBegin(t,this)&&!this.keydown&&this.allowDrag(t)){if(this.origin={x:t.clientX,y:t.clientY},this.dragging=!1,this.enableOptimize){for(var n=this.graph,r=n.getEdges(),i=0,o=r.length;i<o;i++){var a=r[i].get("group").get("children");a&&a.forEach(function(t){t.set("ori-visibility",t.get("ori-visibility")||t.get("visible")),t.hide();});}for(var s=n.getNodes(),u=0,c=s.length;u<c;u++)for(var l=s[u].getContainer().get("children"),f=0;f<l.length;f++){var d=l[f];d.get("isKeyShape")||(d.set("ori-visibility",d.get("ori-visibility")||d.get("visible")),d.hide());}}if("undefined"!=typeof window){var h=this;this.handleDOMContextMenu=function(t){return h.onMouseUp(t);},document.body.addEventListener("contextmenu",this.handleDOMContextMenu);}}},onTouchMove:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r){this.onMouseUp(t);return;}t.preventDefault(),this.onDrag(t);},onDrag:function(t){if(this.mousedown){var e=this.graph;if(!this.keydown&&this.allowDrag(t)&&(t=a(t),this.origin)){if(this.dragging)t.type="drag",e.emit("canvas:drag",t);else{if(u(this.origin.x-t.clientX)+u(this.origin.y-t.clientY)<10)return;this.shouldBegin(t,this)&&(t.type="dragstart",e.emit("canvas:dragstart",t),this.originPosition={x:t.clientX,y:t.clientY},this.dragging=!0);}this.shouldUpdate(t,this)&&this.updateViewport(t);}}},onMouseUp:function(t){this.mousedown=!1,this.dragstart=!1;var e,n,r=this.graph;if(!this.keydown){var i=r.getZoom(),o=r.get("modeController"),s=null===(n=null===(e=null==o?void 0:o.modes[o.mode])||void 0===e?void 0:e.filter(function(t){return"zoom-canvas"===t.type;}))||void 0===n?void 0:n[0],u=s?s.optimizeZoom||.1:0;if(this.enableOptimize){for(var c=r.getEdges(),l=0,f=c.length;l<f;l++){var d=c[l].get("group").get("children");d&&d.forEach(function(t){var e=t.get("ori-visibility");t.set("ori-visibility",void 0),e&&t.show();});}if(i>u)for(var h=r.getNodes(),g=0,p=h.length;g<p;g++)for(var v=h[g].getContainer().get("children"),m=0;m<v.length;m++){var y=v[m];if(!y.get("isKeyShape")){var b=y.get("ori-visibility");y.set("ori-visibility",void 0),b&&y.show();}}}if(!this.dragging){this.origin=null;return;}t=a(t),this.shouldEnd(t,this)&&this.updateViewport(t),t.type="dragend",t.dx=t.clientX-this.originPosition.x,t.dy=t.clientY-this.originPosition.y,r.emit("canvas:dragend",t),this.endDrag(),"undefined"!=typeof window&&document.body.removeEventListener("contextmenu",this.handleDOMContextMenu);}},endDrag:function(){this.origin=null,this.dragging=!1,this.dragbegin=!1,this.mousedown=!1,this.dragstart=!1;},onKeyDown:function(t){var e=t.key;e&&(c.indexOf(e.toLowerCase())>-1?this.keydown=!0:this.keydown=!1);},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1;},allowDrag:function(t){var e,n,r=t.target,o=r&&r.isCanvas&&r.isCanvas();if((0,i.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!o)return!1;if((0,i.isObject)(this.allowDragOnItem)){var a=this.allowDragOnItem,s=a.node,u=a.edge,c=a.combo,l=null===(n=null===(e=t.item)||void 0===e?void 0:e.getType)||void 0===n?void 0:n.call(e);if(!s&&"node"===l||!u&&"edge"===l||!c&&"combo"===l)return!1;}return!0;}};},"8b56e181":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("f0b8b26a")),o=r._(n("155fe01c")),a=Object.keys?function(t){return Object.keys(t);}:function(t){var e=[];return(0,i.default)(t,function(n,r){(0,o.default)(t)&&"prototype"===r||e.push(r);}),e;};},"8b6af789":function(t,e,n){"use strict";function r(t){return"function"==typeof t;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"8bcf3e79":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){return t.hasOwnProperty(e);};},"8cc35525":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("5ef66b67")),i=function(t,e){return(0,r.default)(t,function(t,n,r){return e.includes(r)||(t[r]=n),t;},{});};},"8cd0d38f":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("c9ae1e54"));function i(t){if((0,r.default)(t))return t[0];}},"8d2bc14d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=function(t,e){return t-e;},i=function(){function t(t){void 0===t&&(t=r),this.compareFn=t,this.list=[];}return t.prototype.getLeft=function(t){return 2*t+1;},t.prototype.getRight=function(t){return 2*t+2;},t.prototype.getParent=function(t){return 0===t?null:Math.floor((t-1)/2);},t.prototype.isEmpty=function(){return this.list.length<=0;},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0];},t.prototype.delMin=function(){var t=this.top(),e=this.list.pop();return this.list.length>0&&(this.list[0]=e,this.moveDown(0)),t;},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0;}return!1;},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t);}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r<o&&this.compareFn(this.list[n],this.list[r])>0?n=r:null!==i&&i<o&&this.compareFn(this.list[n],this.list[i])>0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n));},t;}();},"8d42ebc3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Arc:function(){return s.default;},Cubic:function(){return a.default;},Line:function(){return u.default;},Polyline:function(){return c.default;},Quad:function(){return o.default;},Util:function(){return l;}});var r=n("777fffbe"),i=n("852bbaa9"),o=r._(n("59eaaa59")),a=r._(n("e055eaa1")),s=r._(n("86e49ca4")),u=r._(n("d1ab55b2"));n("a9b68d97");var c=r._(n("312cd984")),l=i._(n("82084c6c"));},"8d46fb8d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return t;};},"8d491414":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("e82c7689"));function i(t){return(0,r.default)(t)&&t%1==0;}},"8daaab2c":function(t,e,n){var r;let i=n("5b2774e8").Buffer;r=this,function(t){"use strict";let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(64),r=new Uint8Array(128);for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);n[t]=i,r[i]=t;}function o(t,e){let n=0,i=0,o=0;do n|=(31&(o=r[t.next()]))<<i,i+=5;while(32&o)let a=1&n;return n>>>=1,a&&(n=-2147483648|-n),e+n;}function a(t,e,r){let i=e-r;i=i<0?-i<<1|1:i<<1;do{let e=31&i;(i>>>=5)>0&&(e|=32),t.write(n[e]);}while(i>0)return e;}function s(t,e){return!(t.pos>=e)&&44!==t.peek();}let u="undefined"!=typeof TextDecoder?new TextDecoder:void 0!==i?{decode:t=>i.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e;}};class c{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384);}write(t){let{buffer:e}=this;e[this.pos++]=t,16384===this.pos&&(this.out+=u.decode(e),this.pos=0);}flush(){let{buffer:t,out:e,pos:n}=this;return n>0?e+u.decode(t.subarray(0,n)):e;}}class l{constructor(t){this.pos=0,this.buffer=t;}next(){return this.buffer.charCodeAt(this.pos++);}peek(){return this.buffer.charCodeAt(this.pos);}indexOf(t){let{buffer:e,pos:n}=this,r=e.indexOf(t,n);return -1===r?e.length:r;}}let f=[];function d(t,e,n){do t.write(59);while(++e<n)}function h(t,e){return t[0]-e[0];}t.decode=function(t){let{length:e}=t,n=new l(t),r=[],i=0,a=0,u=0,c=0,f=0;do{let t=n.indexOf(";"),e=[],l=!0,d=0;for(i=0;n.pos<t;){let r;(i=o(n,i))<d&&(l=!1),d=i,s(n,t)?(a=o(n,a),u=o(n,u),c=o(n,c),r=s(n,t)?[i,a,u,c,f=o(n,f)]:[i,a,u,c]):r=[i],e.push(r),n.pos++;}l||function(t){t.sort(h);}(e),r.push(e),n.pos=t+1;}while(n.pos<=e)return r;},t.decodeGeneratedRanges=function(t){let{length:e}=t,n=new l(t),r=[],i=[],a=0,u=0,c=0,d=0,h=0,g=0,p=0,v=0;do{let t=n.indexOf(";"),e=0;for(;n.pos<t;n.pos++){let l;if(e=o(n,e),!s(n,t)){let t=i.pop();t[2]=a,t[3]=e;continue;}let m=o(n,0),y=1&m,b=2&m,x=4&m,_=null,E=f;if(y){let t=o(n,u);c=o(n,u===t?c:0),u=t,l=[a,e,0,0,t,c];}else l=[a,e,0,0];if(l.isScope=!!x,b){let t=h,e=d===(d=o(n,d));h=o(n,e?h:0),g=o(n,e&&t===h?g:0),_=[d,h,g];}if(l.callsite=_,s(n,t)){E=[];do{let t;p=a,v=e;let r=o(n,0);if(r<-1){t=[[o(n,0)]];for(let e=-1;e>r;e--){let e=p;p=o(n,p),v=o(n,p===e?v:0);let r=o(n,0);t.push([r,p,v]);}}else t=[[r]];E.push(t);}while(s(n,t))}l.bindings=E,r.push(l),i.push(l);}a++,n.pos=t+1;}while(n.pos<e)return r;},t.decodeOriginalScopes=function(t){let{length:e}=t,n=new l(t),r=[],i=[],a=0;for(;n.pos<e;n.pos++){a=o(n,a);let t=o(n,0);if(!s(n,e)){let e=i.pop();e[2]=a,e[3]=t;continue;}let u=o(n,0),c=1&o(n,0)?[a,t,0,0,u,o(n,0)]:[a,t,0,0,u],l=f;if(s(n,e)){l=[];do{let t=o(n,0);l.push(t);}while(s(n,e))}c.vars=l,r.push(c),i.push(c);}return r;},t.encode=function(t){let e=new c,n=0,r=0,i=0,o=0;for(let s=0;s<t.length;s++){let u=t[s];if(s>0&&e.write(59),0===u.length)continue;let c=0;for(let t=0;t<u.length;t++){let s=u[t];t>0&&e.write(44),c=a(e,s[0],c),1!==s.length&&(n=a(e,s[1],n),r=a(e,s[2],r),i=a(e,s[3],i),4!==s.length&&(o=a(e,s[4],o)));}}return e.flush();},t.encodeGeneratedRanges=function(t){if(0===t.length)return"";let e=new c;for(let n=0;n<t.length;)n=function t(e,n,r,i){let o=e[n],{0:s,1:u,2:c,3:l,isScope:f,callsite:h,bindings:g}=o;if(i[0]<s?(d(r,i[0],s),i[0]=s,i[1]=0):n>0&&r.write(44),i[1]=a(r,o[1],i[1]),a(r,(6===o.length?1:0)|(h?2:0)|(f?4:0),0),6===o.length){let{4:t,5:e}=o;t!==i[2]&&(i[3]=0),i[2]=a(r,t,i[2]),i[3]=a(r,e,i[3]);}if(h){let{0:t,1:e,2:n}=o.callsite;t!==i[4]?(i[5]=0,i[6]=0):e!==i[5]&&(i[6]=0),i[4]=a(r,t,i[4]),i[5]=a(r,e,i[5]),i[6]=a(r,n,i[6]);}if(g)for(let t of g){t.length>1&&a(r,-t.length,0),a(r,t[0][0],0);let e=s,n=u;for(let i=1;i<t.length;i++){let o=t[i];e=a(r,o[1],e),n=a(r,o[2],n),a(r,o[0],0);}}for(n++;n<e.length;){let{0:o,1:a}=e[n];if(o>c||o===c&&a>=l)break;n=t(e,n,r,i);}return i[0]<c?(d(r,i[0],c),i[0]=c,i[1]=0):r.write(44),i[1]=a(r,l,i[1]),n;}(t,n,e,[0,0,0,0,0,0,0]);return e.flush();},t.encodeOriginalScopes=function(t){let e=new c;for(let n=0;n<t.length;)n=function t(e,n,r,i){let o=e[n],{0:s,1:u,2:c,3:l,4:f,vars:d}=o;for(let t of(n>0&&r.write(44),i[0]=a(r,s,i[0]),a(r,u,0),a(r,f,0),a(r,6===o.length?1:0,0),6===o.length&&a(r,o[5],0),d))a(r,t,0);for(n++;n<e.length;){let{0:o,1:a}=e[n];if(o>c||o===c&&a>=l)break;n=t(e,n,r,i);}return r.write(44),i[0]=a(r,c,i[0]),a(r,l,0),n;}(t,n,e,[0]);return e.flush();},Object.defineProperty(t,"__esModule",{value:!0});}("object"==typeof e&&void 0!==t?e:(r="undefined"!=typeof globalThis?globalThis:r||self).sourcemapCodec={});},"8ec5c776":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("57580e52")),o=r._(n("8b6af789")),a=Object.values?function(t){return Object.values(t);}:function(t){var e=[];return(0,i.default)(t,function(n,r){(0,o.default)(t)&&"prototype"===r||e.push(n);}),e;};},"8ed42711":function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=1e-5),t===e||Math.abs(t-e)<n;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"8ee4a775":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("1eabf120")),o=r._(n("0aff2e87"));function a(t){return(0,i.default)(t)?0:(0,o.default)(t)?t.length:Object.keys(t).length;}},"8f388c3e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"cloneGElement",{enumerable:!0,get:function(){return r;}});var r=function(t){var e=t.clone();return i(t,e),e;},i=function t(e,n){e.isGroup()&&n.isGroup()&&(null===(r=e.get("children"))||void 0===r||r.forEach(function(e,r){t(e,n.get("children")[r]);}));var r,i=e.get("type"),o=n.get("type");if("image"===i&&"image"===o){var a=e.get("clipShape");a&&n.setClip({type:a.get("type"),attrs:a.attr()});}};},"8f5e5f3d":function(t,e,n){"use strict";function r(){return this._root;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"8f7b109b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{MatrixColumnSelectionView:function(){return o.default;},MatrixColumnView:function(){return i.default;},MatrixFlipColumnView:function(){return a.default;},MatrixFlipRowView:function(){return s.default;},MatrixRowSelectionView:function(){return c.default;},MatrixRowView:function(){return u.default;},MatrixSelectionView:function(){return l.default;},MatrixSubView:function(){return f.default;},MatrixTransposeView:function(){return d.default;}});var r=n("777fffbe"),i=r._(n("a7f229e7")),o=r._(n("d9c6c466")),a=r._(n("88b3e4ac")),s=r._(n("5241b9a9")),u=r._(n("2e5ed0a2")),c=r._(n("602d48e8")),l=r._(n("e0a44ed9")),f=r._(n("cfee4261")),d=r._(n("881988db"));},"8fc0169b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("c9ae1e54")),i=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i));}return n;};},"901a6795":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("9f8bfa32"));function i(t){var e,n=[],i=[];for(this._root&&n.push(new r.default(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var o=e.node;if(o.length){var a,s=e.x0,u=e.y0,c=e.x1,l=e.y1,f=(s+c)/2,d=(u+l)/2;(a=o[0])&&n.push(new r.default(a,s,u,f,d)),(a=o[1])&&n.push(new r.default(a,f,u,c,d)),(a=o[2])&&n.push(new r.default(a,s,d,f,l)),(a=o[3])&&n.push(new r.default(a,f,d,c,l));}i.push(e);}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this;}},"902bc363":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("120583e1")),a=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)!function t(e,n,r,a){for(var s in r=r||0,a=a||5,n)if(n.hasOwnProperty(s)){var u=n[s];null!==u&&(0,o.default)(u)?((0,o.default)(e[s])||(e[s]={}),r<a?t(e[s],u,r+1,a):e[s]=n[s]):(0,i.default)(u)?(e[s]=[],e[s]=e[s].concat(u)):void 0!==u&&(e[s]=u);}}(t,e[r]);return t;};},"906a7e64":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{getColorSetsBySubjectColors:function(){return c;},getColorsWithSubjectColor:function(){return u;},mixColor:function(){return o;}});var r=n("777fffbe")._(n("42f4e1d5")),i=n("015defc5"),o=function(t,e,n){var i=(0,r.default)(t),o=(0,r.default)(e);return(0,r.default)([(1-n)*i.red()+n*o.red(),(1-n)*i.green()+n*o.green(),(1-n)*i.blue()+n*o.blue()]).rgb();},a=function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="rgb(150, 150, 150)");var a=o(e,t,.05).rgb().toString(),s=o(e,t,.1).rgb().toString(),u=o(e,t,.2).rgb().toString(),c=o(e,t,.4).rgb().toString(),l=o(e,n,.02).rgb().toString(),f=o(e,n,.05).rgb().toString(),d=o(e,n,.1).rgb().toString(),h=o(e,n,.2).rgb().toString(),g=o(e,n,.3).rgb().toString(),p=(0,i.generate)(t,{theme:"default",backgroundColor:e}),v=(0,r.default)(t).hex().toLowerCase(),m=p.indexOf(v),y=t;return -1!==m&&(y=p[m+1]),{mainStroke:t,mainFill:s,activeStroke:t,activeFill:a,inactiveStroke:c,inactiveFill:a,selectedStroke:t,selectedFill:e,highlightStroke:y,highlightFill:u,disableStroke:g,disableFill:f,edgeMainStroke:g,edgeActiveStroke:t,edgeInactiveStroke:h,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:d,comboMainStroke:g,comboMainFill:l,comboActiveStroke:t,comboActiveFill:a,comboInactiveStroke:g,comboInactiveFill:l,comboSelectedStroke:t,comboSelectedFill:l,comboHighlightStroke:y,comboHighlightFill:l,comboDisableStroke:h,comboDisableFill:f};},s=function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="#777");var a=o(e,t,.2).rgb().toString(),s=o(e,t,.3).rgb().toString(),u=o(e,t,.6).rgb().toString(),c=o(e,t,.8).rgb().toString(),l=o(e,n,.2).rgb().toString(),f=o(e,n,.25).rgb().toString(),d=o(e,n,.3).rgb().toString(),h=o(e,n,.4).rgb().toString(),g=o(e,n,.5).rgb().toString(),p=(0,i.generate)(t,{theme:"dark",backgroundColor:e}),v=(0,r.default)(t).hex().toLowerCase(),m=p.indexOf(v),y=t;return -1!==m&&(y=p[m+1]),{mainStroke:c,mainFill:a,activeStroke:t,activeFill:s,inactiveStroke:c,inactiveFill:a,selectedStroke:t,selectedFill:a,highlightStroke:t,highlightFill:u,disableStroke:g,disableFill:f,edgeMainStroke:n,edgeActiveStroke:t,edgeInactiveStroke:n,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:d,comboMainStroke:h,comboMainFill:f,comboActiveStroke:t,comboActiveFill:l,comboInactiveStroke:h,comboInactiveFill:f,comboSelectedStroke:t,comboSelectedFill:l,comboHighlightStroke:y,comboHighlightFill:f,comboDisableStroke:h,comboDisableFill:l};},u=function(t,e,n,r){return(void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)"),"default"===n)?a(t,e,"rgb(150, 150, 150)"):s(t,e,"#777");},c=function(t,e,n,r){void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)");var i=[];return t.forEach(function(t){i.push(u(t,e,n,r));}),i;};},"90cd7b57":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("f5b38a88")),i=function(t){return(0,r.default)(t,"Arguments");};},"90ff42bf":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r,i={};null==n||n.forEach(function(n){for(var o,a,s=t.parent(n);s;){if((o=t.parent(s))?(a=i[o],i[o]=s):(a=r,r=s),a&&a!==s){e.setEdge(a,s);return;}s=o;}});};},"9114e155":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("235d18ef")),a=r._(n("3215bdaa")),s=r._(n("31290f85")),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,u=!1;return n&&(u=(0,a.default)(o,i,t,e,!0)),!u&&r&&(u=(0,s.default)(o,t,e)),u;},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1]);}t.closePath();}},e;}(o.default);},"9119fa11":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("855dbdf7")),o=r._(n("942b4eed")),a=r._(n("e82c7689")),s=function(t,e,n){var r=t,s=(0,o.default)(e)?e.split("."):e;return s.forEach(function(t,e){e<s.length-1?((0,i.default)(r[t])||(r[t]=(0,a.default)(s[e+1])?[]:{}),r=r[t]):r[t]=n;}),t;};},"9132cdb3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return y;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("4c6d310c"),a=i._(n("5b220c3d")),s=r._(n("4a03da9b"));function u(t,e,n,r,i){void 0===i&&(i=0);var o=p(e.width,e.height,i),a=o.width,s=o.height;return{x:c(t.x,a,n.width,r),y:c(t.y,s,n.height,r)};}function c(t,e,n,r){var i=e*r/2-n/2;return v(t,-i,i);}function l(t,e){return Math.sqrt(Math.pow(t.y-e.y,2)+Math.pow(t.x-e.x,2));}function f(t,e){return 180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI;}function d(t,e){return Math.min(t,Math.max(0,e));}function h(t,e){return e;}function g(t,e){return{x:(e.x+t.x)/2,y:(e.y+t.y)/2};}function p(t,e,n){var r=n*Math.PI/180;return{width:Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e),height:Math.abs(Math.sin(r)*t)+Math.abs(Math.cos(r)*e)};}function v(t,e,n){return Math.min(Math.max(t,e),n);}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(function(t){return"string"==typeof t&&t.length>0;}).join(" ").trim();}var y=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.imageRef=a.createRef(),n.videoRef=a.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var t=!0;n.resizeObserver=new window.ResizeObserver(function(e){if(t){t=!1;return;}n.computeSizes();}),n.resizeObserver.observe(n.containerRef);}},n.preventZoomSafari=function(t){return t.preventDefault();},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll));},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer);},n.onMediaLoad=function(){var t=n.computeSizes();t&&(n.emitCropData(),n.setInitialCrop(t)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize);},n.setInitialCrop=function(t){if(n.props.initialCroppedAreaPercentages){var e,r,i,o,a,s,u,c=(e=n.props.initialCroppedAreaPercentages,r=n.mediaSize,i=n.props.rotation,o=n.props.minZoom,a=n.props.maxZoom,s=p(r.width,r.height,i),{crop:{x:(u=v(t.width/s.width*(100/e.width),o,a))*s.width/2-t.width/2-s.width*u*(e.x/100),y:u*s.height/2-t.height/2-s.height*u*(e.y/100)},zoom:u}),l=c.crop,f=c.zoom;n.props.onCropChange(l),n.props.onZoomChange&&n.props.onZoomChange(f);}else if(n.props.initialCroppedAreaPixels){var d,h,g,m,y,b,x,_,E,w=(d=n.props.initialCroppedAreaPixels,h=n.mediaSize,g=n.props.rotation,m=n.props.minZoom,y=n.props.maxZoom,void 0===g&&(g=0),b=p(h.naturalWidth,h.naturalHeight,g),_=v((x=h.width>h.height?h.width/h.naturalWidth:h.height/h.naturalHeight,t.height>t.width?t.height/(d.height*x):t.width/(d.width*x)),m,y),E=t.height>t.width?t.height/d.height:t.width/d.width,{crop:{x:((b.width-d.width)/2-d.x)*E,y:((b.height-d.height)/2-d.y)*E},zoom:_}),l=w.crop,f=w.zoom;n.props.onCropChange(l),n.props.onZoomChange&&n.props.onZoomChange(f);}},n.computeSizes=function(){var t,e,r,i,a,s,u=n.imageRef.current||n.videoRef.current;if(u&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var c,l,f,d,h,g,v,m,y,b,x,_=n.containerRect.width/n.containerRect.height,E=(null===(t=n.imageRef.current)||void 0===t?void 0:t.naturalWidth)||(null===(e=n.videoRef.current)||void 0===e?void 0:e.videoWidth)||0,w=(null===(r=n.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(i=n.videoRef.current)||void 0===i?void 0:i.videoHeight)||0,M=u.offsetWidth<E||u.offsetHeight<w,C=E/w,A=void 0;if(M)switch(n.state.mediaObjectFit){default:case"contain":A=_>C?{width:n.containerRect.height*C,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/C};break;case"horizontal-cover":A={width:n.containerRect.width,height:n.containerRect.width/C};break;case"vertical-cover":A={width:n.containerRect.height*C,height:n.containerRect.height};}else A={width:u.offsetWidth,height:u.offsetHeight};n.mediaSize=(0,o.__assign)((0,o.__assign)({},A),{naturalWidth:E,naturalHeight:w}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var S=n.props.cropSize?n.props.cropSize:(c=n.mediaSize.width,l=n.mediaSize.height,f=n.containerRect.width,d=n.containerRect.height,h=n.props.aspect,void 0===(g=n.props.rotation)&&(g=0),m=(v=p(c,l,g)).width,y=v.height,(b=Math.min(m,f))>(x=Math.min(y,d))*h?{width:x*h,height:x}:{width:b,height:b/h});return((null===(a=n.state.cropSize)||void 0===a?void 0:a.height)!==S.height||(null===(s=n.state.cropSize)||void 0===s?void 0:s.width)!==S.width)&&n.props.onCropSizeChange&&n.props.onCropSizeChange(S),n.setState({cropSize:S},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(S),S;}},n.saveContainerPosition=function(){if(n.containerRef){var t=n.containerRef.getBoundingClientRect();n.containerPosition={x:t.left,y:t.top};}},n.onMouseDown=function(t){n.currentDoc&&(t.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(e.getMousePoint(t)));},n.onMouseMove=function(t){return n.onDrag(e.getMousePoint(t));},n.onScroll=function(t){n.currentDoc&&(t.preventDefault(),n.saveContainerPosition());},n.onTouchStart=function(t){n.currentDoc&&(n.isTouching=!0,(!n.props.onTouchRequest||n.props.onTouchRequest(t))&&(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),2===t.touches.length?n.onPinchStart(t):1===t.touches.length&&n.onDragStart(e.getTouchPoint(t.touches[0]))));},n.onTouchMove=function(t){t.preventDefault(),2===t.touches.length?n.onPinchMove(t):1===t.touches.length&&n.onDrag(e.getTouchPoint(t.touches[0]));},n.onGestureStart=function(t){n.currentDoc&&(t.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation);},n.onGestureMove=function(t){if(t.preventDefault(),!n.isTouching){var r=e.getMousePoint(t),i=n.gestureZoomStart-1+t.scale;if(n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var o=n.gestureRotationStart+t.rotation;n.props.onRotationChange(o);}}},n.onGestureEnd=function(t){n.cleanEvents();},n.onDragStart=function(t){var e,r,i=t.x,a=t.y;n.dragStartPosition={x:i,y:a},n.dragStartCrop=(0,o.__assign)({},n.props.crop),null===(r=(e=n.props).onInteractionStart)||void 0===r||r.call(e);},n.onDrag=function(t){var e=t.x,r=t.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame(function(){if(n.state.cropSize&&void 0!==e&&void 0!==r){var t=e-n.dragStartPosition.x,i=r-n.dragStartPosition.y,o={x:n.dragStartCrop.x+t,y:n.dragStartCrop.y+i},a=n.props.restrictPosition?u(o,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):o;n.props.onCropChange(a);}}));},n.onDragStopped=function(){var t,e;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(e=(t=n.props).onInteractionEnd)||void 0===e||e.call(t);},n.onWheel=function(t){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(t))){t.preventDefault();var r=e.getMousePoint(t),i=(0,s.default)(t).pixelY,o=n.props.zoom-i*n.props.zoomSpeed/200;n.setNewZoom(o,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},function(){var t,e;return null===(e=(t=n.props).onInteractionStart)||void 0===e?void 0:e.call(t);}),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout(function(){return n.setState({hasWheelJustStarted:!1},function(){var t,e;return null===(e=(t=n.props).onInteractionEnd)||void 0===e?void 0:e.call(t);});},250);}},n.getPointOnContainer=function(t,e){var r=t.x,i=t.y;if(!n.containerRect)throw Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(r-e.x),y:n.containerRect.height/2-(i-e.y)};},n.getPointOnMedia=function(t){var e=t.x,r=t.y,i=n.props,o=i.crop,a=i.zoom;return{x:(e+o.x)/a,y:(r+o.y)/a};},n.setNewZoom=function(t,e,r){var i=(void 0===r?{}:r).shouldUpdatePosition;if(n.state.cropSize&&n.props.onZoomChange){var o=v(t,n.props.minZoom,n.props.maxZoom);if(void 0===i||i){var a=n.getPointOnContainer(e,n.containerPosition),s=n.getPointOnMedia(a),c={x:s.x*o-a.x,y:s.y*o-a.y},l=n.props.restrictPosition?u(c,n.mediaSize,n.state.cropSize,o,n.props.rotation):c;n.props.onCropChange(l);}n.props.onZoomChange(o);}},n.getCropData=function(){var t,e,r,i,a,s,c,l,f,g,v,m,y,b,x;return n.state.cropSize?(t=n.props.restrictPosition?u(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,e=n.mediaSize,r=n.state.cropSize,i=n.getAspect(),a=n.props.zoom,s=n.props.rotation,c=n.props.restrictPosition,void 0===s&&(s=0),void 0===c&&(c=!0),l=c?d:h,f=p(e.width,e.height,s),g=p(e.naturalWidth,e.naturalHeight,s),v={x:l(100,((f.width-r.width/a)/2-t.x/a)/f.width*100),y:l(100,((f.height-r.height/a)/2-t.y/a)/f.height*100),width:l(100,r.width/f.width*100/a),height:l(100,r.height/f.height*100/a)},m=Math.round(l(g.width,v.width*g.width/100)),y=Math.round(l(g.height,v.height*g.height/100)),b=g.width>=g.height*i?{width:Math.round(y*i),height:y}:{width:m,height:Math.round(m/i)},x=(0,o.__assign)((0,o.__assign)({},b),{x:Math.round(l(g.width-b.width,v.x*g.width/100)),y:Math.round(l(g.height-b.height,v.y*g.height/100))}),{croppedAreaPercentages:v,croppedAreaPixels:x}):null;},n.emitCropData=function(){var t=n.getCropData();if(t){var e=t.croppedAreaPercentages,r=t.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(e,r),n.props.onCropAreaChange&&n.props.onCropAreaChange(e,r);}},n.emitCropAreaChange=function(){var t=n.getCropData();if(t){var e=t.croppedAreaPercentages,r=t.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(e,r);}},n.recomputeCropPosition=function(){if(n.state.cropSize){var t=n.props.restrictPosition?u(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(t),n.emitCropData();}},n.onKeyDown=function(t){var e=n.props,r=e.crop,i=e.onCropChange,a=e.keyboardStep,s=e.zoom,c=e.rotation;if(n.state.cropSize){var l=(0,o.__assign)({},r);switch(t.key){case"ArrowUp":l.y-=a;break;case"ArrowDown":l.y+=a;break;case"ArrowLeft":l.x-=a;break;case"ArrowRight":l.x+=a;break;default:return;}n.props.restrictPosition&&(l=u(l,n.mediaSize,n.state.cropSize,s,c)),i(l);}},n;}return(0,o.__extends)(e,t),e.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef));},e.prototype.componentWillUnmount=function(){var t,e;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent());},e.prototype.componentDidUpdate=function(t){t.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):t.aspect!==this.props.aspect?this.computeSizes():t.objectFit!==this.props.objectFit?this.computeSizes():t.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(e=t.cropSize)||void 0===e?void 0:e.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=t.cropSize)||void 0===r?void 0:r.width)!==(null===(i=this.props.cropSize)||void 0===i?void 0:i.width)?this.computeSizes():((null===(o=t.crop)||void 0===o?void 0:o.x)!==(null===(a=this.props.crop)||void 0===a?void 0:a.x)||(null===(s=t.crop)||void 0===s?void 0:s.y)!==(null===(u=this.props.crop)||void 0===u?void 0:u.y))&&this.emitCropAreaChange(),t.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),t.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load());var e,n,r,i,o,a,s,u,c,l=this.getObjectFit();l!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:l},this.computeSizes);},e.prototype.getAspect=function(){var t=this.props,e=t.cropSize,n=t.aspect;return e?e.width/e.height:n;},e.prototype.getObjectFit=function(){var t,e,n,r;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var i=this.containerRect.width/this.containerRect.height;return((null===(t=this.imageRef.current)||void 0===t?void 0:t.naturalWidth)||(null===(e=this.videoRef.current)||void 0===e?void 0:e.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(r=this.videoRef.current)||void 0===r?void 0:r.videoHeight)||0)<i?"horizontal-cover":"vertical-cover";}return"horizontal-cover";}return this.props.objectFit;},e.prototype.onPinchStart=function(t){var n=e.getTouchPoint(t.touches[0]),r=e.getTouchPoint(t.touches[1]);this.lastPinchDistance=l(n,r),this.lastPinchRotation=f(n,r),this.onDragStart(g(n,r));},e.prototype.onPinchMove=function(t){var n=this;if(this.currentDoc&&this.currentWindow){var r=e.getTouchPoint(t.touches[0]),i=e.getTouchPoint(t.touches[1]),o=g(r,i);this.onDrag(o),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var t=l(r,i),e=n.props.zoom*(t/n.lastPinchDistance);n.setNewZoom(e,o,{shouldUpdatePosition:!1}),n.lastPinchDistance=t;var a=f(r,i),s=n.props.rotation+(a-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(s),n.lastPinchRotation=a;});}},e.prototype.render=function(){var t,e=this,n=this.props,r=n.image,i=n.video,s=n.mediaProps,u=n.transform,c=n.crop,l=c.x,f=c.y,d=n.rotation,h=n.zoom,g=n.cropShape,p=n.showGrid,v=n.style,y=v.containerStyle,b=v.cropAreaStyle,x=v.mediaStyle,_=n.classes,E=_.containerClassName,w=_.cropAreaClassName,M=_.mediaClassName,C=null!==(t=this.state.mediaObjectFit)&&void 0!==t?t:this.getObjectFit();return a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t;},"data-testid":"container",style:y,className:m("reactEasyCrop_Container",E)},r?a.createElement("img",(0,o.__assign)({alt:"",className:m("reactEasyCrop_Image","contain"===C&&"reactEasyCrop_Contain","horizontal-cover"===C&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===C&&"reactEasyCrop_Cover_Vertical",M)},s,{src:r,ref:this.imageRef,style:(0,o.__assign)((0,o.__assign)({},x),{transform:u||"translate(".concat(l,"px, ").concat(f,"px) rotate(").concat(d,"deg) scale(").concat(h,")")}),onLoad:this.onMediaLoad})):i&&a.createElement("video",(0,o.__assign)({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:m("reactEasyCrop_Video","contain"===C&&"reactEasyCrop_Contain","horizontal-cover"===C&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===C&&"reactEasyCrop_Cover_Vertical",M)},s,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:(0,o.__assign)((0,o.__assign)({},x),{transform:u||"translate(".concat(l,"px, ").concat(f,"px) rotate(").concat(d,"deg) scale(").concat(h,")")}),controls:!1}),(Array.isArray(i)?i:[{src:i}]).map(function(t){return a.createElement("source",(0,o.__assign)({key:t.src},t));})),this.state.cropSize&&a.createElement("div",{style:(0,o.__assign)((0,o.__assign)({},b),{width:this.state.cropSize.width,height:this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,"data-testid":"cropper",className:m("reactEasyCrop_CropArea","round"===g&&"reactEasyCrop_CropAreaRound",p&&"reactEasyCrop_CropAreaGrid",w)}));},e.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},e.getMousePoint=function(t){return{x:Number(t.clientX),y:Number(t.clientY)};},e.getTouchPoint=function(t){return{x:Number(t.clientX),y:Number(t.clientY)};},e;}(a.Component);},"915a4463":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{AutoScrollActivator:function(){return u;},DndContext:function(){return tJ;},DragOverlay:function(){return en;},KeyboardCode:function(){return a;},KeyboardSensor:function(){return tv;},MeasuringFrequency:function(){return f;},MeasuringStrategy:function(){return l;},MouseSensor:function(){return tw;},PointerSensor:function(){return t_;},TouchSensor:function(){return tC;},TraversalOrder:function(){return c;},applyModifiers:function(){return tq;},closestCenter:function(){return G;},closestCorners:function(){return Y;},defaultAnnouncements:function(){return I;},defaultCoordinates:function(){return O;},defaultDropAnimation:function(){return et;},defaultDropAnimationSideEffects:function(){return t9;},defaultScreenReaderInstructions:function(){return D;},getClientRect:function(){return Z;},getFirstCollision:function(){return R;},getScrollableAncestors:function(){return K;},pointerWithin:function(){return U;},rectIntersection:function(){return X;},useDndContext:function(){return t0;},useDndMonitor:function(){return S;},useDraggable:function(){return t$;},useDroppable:function(){return t2;},useSensor:function(){return F;},useSensors:function(){return N;}});var r,i,o,a,s,u,c,l,f,d,h,g,p,v,m,y,b,x,_,E=n("852bbaa9")._(n("5b220c3d")),w=n("537ebc91"),M=n("7f663da5"),C=n("2ef9ac2b");let A=(0,E.createContext)(null);function S(t){let e=(0,E.useContext)(A);(0,E.useEffect)(()=>{if(!e)throw Error("useDndMonitor must be used within a children of <DndContext>");return e(t);},[t,e]);}let D={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},I={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+".";},onDragOver(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was moved over droppable area "+n.id+".":"Draggable item "+e.id+" is no longer over a droppable area.";},onDragEnd(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was dropped over droppable area "+n.id:"Draggable item "+e.id+" was dropped.";},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped.";}};function T(t){let{announcements:e=I,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=D}=t,{announce:o,announcement:a}=(0,C.useAnnouncement)(),s=(0,M.useUniqueId)("DndLiveRegion"),[u,c]=(0,E.useState)(!1);if((0,E.useEffect)(()=>{c(!0);},[]),S((0,E.useMemo)(()=>({onDragStart(t){let{active:n}=t;o(e.onDragStart({active:n}));},onDragMove(t){let{active:n,over:r}=t;e.onDragMove&&o(e.onDragMove({active:n,over:r}));},onDragOver(t){let{active:n,over:r}=t;o(e.onDragOver({active:n,over:r}));},onDragEnd(t){let{active:n,over:r}=t;o(e.onDragEnd({active:n,over:r}));},onDragCancel(t){let{active:n,over:r}=t;o(e.onDragCancel({active:n,over:r}));}}),[o,e])),!u)return null;let l=E.default.createElement(E.default.Fragment,null,E.default.createElement(C.HiddenText,{id:r,value:i.draggable}),E.default.createElement(C.LiveRegion,{id:s,announcement:a}));return n?(0,w.createPortal)(l,n):l;}function k(){}function F(t,e){return(0,E.useMemo)(()=>({sensor:t,options:null!=e?e:{}}),[t,e]);}function N(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,E.useMemo)(()=>[...e].filter(t=>null!=t),[...e]);}(h=r||(r={})).DragStart="dragStart",h.DragMove="dragMove",h.DragEnd="dragEnd",h.DragCancel="dragCancel",h.DragOver="dragOver",h.RegisterDroppable="registerDroppable",h.SetDroppableDisabled="setDroppableDisabled",h.UnregisterDroppable="unregisterDroppable";let O=Object.freeze({x:0,y:0});function B(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));}function P(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return n-r;}function L(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return r-n;}function j(t){let{left:e,top:n,height:r,width:i}=t;return[{x:e,y:n},{x:e+i,y:n},{x:e,y:n+r},{x:e+i,y:n+r}];}function R(t,e){if(!t||0===t.length)return null;let[n]=t;return e?n[e]:n;}function z(t,e,n){return void 0===e&&(e=t.left),void 0===n&&(n=t.top),{x:e+.5*t.width,y:n+.5*t.height};}let G=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t,i=z(e,e.left,e.top),o=[];for(let t of r){let{id:e}=t,r=n.get(e);if(r){let n=B(z(r),i);o.push({id:e,data:{droppableContainer:t,value:n}});}}return o.sort(P);},Y=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t,i=j(e),o=[];for(let t of r){let{id:e}=t,r=n.get(e);if(r){let n=j(r),a=Number((i.reduce((t,e,r)=>t+B(n[r],e),0)/4).toFixed(4));o.push({id:e,data:{droppableContainer:t,value:a}});}}return o.sort(P);},X=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t,i=[];for(let t of r){let{id:r}=t,o=n.get(r);if(o){let n=function(t,e){let n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),i=Math.min(e.left+e.width,t.left+t.width),o=Math.min(e.top+e.height,t.top+t.height);if(r<i&&n<o){let a=e.width*e.height,s=t.width*t.height,u=(i-r)*(o-n);return Number((u/(a+s-u)).toFixed(4));}return 0;}(o,e);n>0&&i.push({id:r,data:{droppableContainer:t,value:n}});}}return i.sort(L);},U=t=>{let{droppableContainers:e,droppableRects:n,pointerCoordinates:r}=t;if(!r)return[];let i=[];for(let t of e){let{id:e}=t,o=n.get(e);if(o&&function(t,e){let{top:n,left:r,bottom:i,right:o}=e;return n<=t.y&&t.y<=i&&r<=t.x&&t.x<=o;}(r,o)){let n=Number((j(o).reduce((t,e)=>t+B(r,e),0)/4).toFixed(4));i.push({id:e,data:{droppableContainer:t,value:n}});}}return i.sort(P);};function H(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:O;}let W=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce((t,e)=>({...t,top:t.top+1*e.y,bottom:t.bottom+1*e.y,left:t.left+1*e.x,right:t.right+1*e.x}),{...t});};function V(t){if(t.startsWith("matrix3d(")){let e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]};}if(t.startsWith("matrix(")){let e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]};}return null;}let q={ignoreTransform:!1};function Z(t,e){void 0===e&&(e=q);let n=t.getBoundingClientRect();if(e.ignoreTransform){let{transform:e,transformOrigin:r}=(0,M.getWindow)(t).getComputedStyle(t);e&&(n=function(t,e,n){let r=V(e);if(!r)return t;let{scaleX:i,scaleY:o,x:a,y:s}=r,u=t.left-a-(1-i)*parseFloat(n),c=t.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),l=i?t.width/i:t.width,f=o?t.height/o:t.height;return{width:l,height:f,top:c,right:u+l,bottom:c+f,left:u};}(n,e,r));}let{top:r,left:i,width:o,height:a,bottom:s,right:u}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:u};}function J(t){return Z(t,{ignoreTransform:!0});}function K(t,e){let n=[];return t?function r(i){var o;if(null!=e&&n.length>=e||!i)return n;if((0,M.isDocument)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,M.isHTMLElement)(i)||(0,M.isSVGElement)(i)||n.includes(i))return n;let a=(0,M.getWindow)(t).getComputedStyle(i);return(i!==t&&function(t,e){void 0===e&&(e=(0,M.getWindow)(t).getComputedStyle(t));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(t=>{let r=e[t];return"string"==typeof r&&n.test(r);});}(i,a)&&n.push(i),void 0===(o=a)&&(o=(0,M.getWindow)(i).getComputedStyle(i)),"fixed"===o.position)?n:r(i.parentNode);}(t):n;}function Q(t){let[e]=K(t,1);return null!=e?e:null;}function $(t){return M.canUseDOM&&t?(0,M.isWindow)(t)?t:(0,M.isNode)(t)?(0,M.isDocument)(t)||t===(0,M.getOwnerDocument)(t).scrollingElement?window:(0,M.isHTMLElement)(t)?t:null:null:null;}function tt(t){return(0,M.isWindow)(t)?t.scrollX:t.scrollLeft;}function te(t){return(0,M.isWindow)(t)?t.scrollY:t.scrollTop;}function tn(t){return{x:tt(t),y:te(t)};}function tr(t){return!!M.canUseDOM&&!!t&&t===document.scrollingElement;}function ti(t){let e={x:0,y:0},n=tr(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},r={x:t.scrollWidth-n.width,y:t.scrollHeight-n.height},i=t.scrollTop<=e.y;return{isTop:i,isLeft:t.scrollLeft<=e.x,isBottom:t.scrollTop>=r.y,isRight:t.scrollLeft>=r.x,maxScroll:r,minScroll:e};}(g=i||(i={}))[g.Forward=1]="Forward",g[g.Backward=-1]="Backward";let to={x:.2,y:.2};function ta(t){return t.reduce((t,e)=>(0,M.add)(t,tn(e)),O);}function ts(t,e){if(void 0===e&&(e=Z),!t)return;let{top:n,left:r,bottom:i,right:o}=e(t);Q(t)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"});}let tu=[["x",["left","right"],function(t){return t.reduce((t,e)=>t+tt(e),0);}],["y",["top","bottom"],function(t){return t.reduce((t,e)=>t+te(e),0);}]];class tc{constructor(t,e){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=K(e),r=ta(n);for(let[e,i,o]of(this.rect={...t},this.width=t.width,this.height=t.height,tu))for(let t of i)Object.defineProperty(this,t,{get:()=>{let i=o(n),a=r[e]-i;return this.rect[t]+a;},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1});}}class tl{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var e;return null==(e=this.target)?void 0:e.removeEventListener(...t);});},this.target=t;}add(t,e,n){var r;null==(r=this.target)||r.addEventListener(t,e,n),this.listeners.push([t,e,n]);}}function tf(t,e){let n=Math.abs(t.x),r=Math.abs(t.y);return"number"==typeof e?Math.sqrt(n**2+r**2)>e:"x"in e&&"y"in e?n>e.x&&r>e.y:"x"in e?n>e.x:"y"in e&&r>e.y;}function td(t){t.preventDefault();}function th(t){t.stopPropagation();}(p=o||(o={})).Click="click",p.DragStart="dragstart",p.Keydown="keydown",p.ContextMenu="contextmenu",p.Resize="resize",p.SelectionChange="selectionchange",p.VisibilityChange="visibilitychange",(v=a||(a={})).Space="Space",v.Down="ArrowDown",v.Right="ArrowRight",v.Left="ArrowLeft",v.Up="ArrowUp",v.Esc="Escape",v.Enter="Enter";let tg={start:[a.Space,a.Enter],cancel:[a.Esc],end:[a.Space,a.Enter]},tp=(t,e)=>{let{currentCoordinates:n}=e;switch(t.code){case a.Right:return{...n,x:n.x+25};case a.Left:return{...n,x:n.x-25};case a.Down:return{...n,y:n.y+25};case a.Up:return{...n,y:n.y-25};}};class tv{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:e}}=t;this.props=t,this.listeners=new tl((0,M.getOwnerDocument)(e)),this.windowListeners=new tl((0,M.getWindow)(e)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach();}attach(){this.handleStart(),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(o.Keydown,this.handleKeyDown));}handleStart(){let{activeNode:t,onStart:e}=this.props,n=t.node.current;n&&ts(n),e(O);}handleKeyDown(t){if((0,M.isKeyboardEvent)(t)){let{active:e,context:n,options:r}=this.props,{keyboardCodes:i=tg,coordinateGetter:o=tp,scrollBehavior:s="smooth"}=r,{code:u}=t;if(i.end.includes(u)){this.handleEnd(t);return;}if(i.cancel.includes(u)){this.handleCancel(t);return;}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:O;this.referenceCoordinates||(this.referenceCoordinates=l);let f=o(t,{active:e,context:n.current,currentCoordinates:l});if(f){let e=(0,M.subtract)(f,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=t.code,{isTop:o,isRight:u,isLeft:c,isBottom:l,maxScroll:d,minScroll:h}=ti(n),g=function(t){if(t===document.scrollingElement){let{innerWidth:t,innerHeight:e}=window;return{top:0,left:0,right:t,bottom:e,width:t,height:e};}let{top:e,left:n,right:r,bottom:i}=t.getBoundingClientRect();return{top:e,left:n,right:r,bottom:i,width:t.clientWidth,height:t.clientHeight};}(n),p={x:Math.min(i===a.Right?g.right-g.width/2:g.right,Math.max(i===a.Right?g.left:g.left+g.width/2,f.x)),y:Math.min(i===a.Down?g.bottom-g.height/2:g.bottom,Math.max(i===a.Down?g.top:g.top+g.height/2,f.y))},v=i===a.Right&&!u||i===a.Left&&!c,m=i===a.Down&&!l||i===a.Up&&!o;if(v&&p.x!==f.x){let t=n.scrollLeft+e.x,o=i===a.Right&&t<=d.x||i===a.Left&&t>=h.x;if(o&&!e.y){n.scrollTo({left:t,behavior:s});return;}o?r.x=n.scrollLeft-t:r.x=i===a.Right?n.scrollLeft-d.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break;}if(m&&p.y!==f.y){let t=n.scrollTop+e.y,o=i===a.Down&&t<=d.y||i===a.Up&&t>=h.y;if(o&&!e.x){n.scrollTo({top:t,behavior:s});return;}o?r.y=n.scrollTop-t:r.y=i===a.Down?n.scrollTop-d.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break;}}this.handleMove(t,(0,M.add)((0,M.subtract)(f,this.referenceCoordinates),r));}}}handleMove(t,e){let{onMove:n}=this.props;t.preventDefault(),n(e);}handleEnd(t){let{onEnd:e}=this.props;t.preventDefault(),this.detach(),e();}handleCancel(t){let{onCancel:e}=this.props;t.preventDefault(),this.detach(),e();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll();}}function tm(t){return!!(t&&"distance"in t);}function ty(t){return!!(t&&"delay"in t);}tv.activators=[{eventName:"onKeyDown",handler:(t,e,n)=>{let{keyboardCodes:r=tg,onActivation:i}=e,{active:o}=n,{code:a}=t.nativeEvent;if(r.start.includes(a)){let e=o.activatorNode.current;return(!e||t.target===e)&&(t.preventDefault(),null==i||i({event:t.nativeEvent}),!0);}return!1;}}];class tb{constructor(t,e,n){var r;void 0===n&&(n=function(t){let{EventTarget:e}=(0,M.getWindow)(t);return t instanceof e?t:(0,M.getOwnerDocument)(t);}(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=e;let{event:i}=t,{target:o}=i;this.props=t,this.events=e,this.document=(0,M.getOwnerDocument)(o),this.documentListeners=new tl(this.document),this.listeners=new tl(n),this.windowListeners=new tl((0,M.getWindow)(o)),this.initialCoordinates=null!=(r=(0,M.getEventCoordinates)(i))?r:O,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach();}attach(){let{events:t,props:{options:{activationConstraint:e,bypassActivationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.DragStart,td),this.windowListeners.add(o.VisibilityChange,this.handleCancel),this.windowListeners.add(o.ContextMenu,td),this.documentListeners.add(o.Keydown,this.handleKeydown),e){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ty(e)){this.timeoutId=setTimeout(this.handleStart,e.delay);return;}if(tm(e))return;}this.handleStart();}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);}handleStart(){let{initialCoordinates:t}=this,{onStart:e}=this.props;t&&(this.activated=!0,this.documentListeners.add(o.Click,th,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(o.SelectionChange,this.removeTextSelection),e(t));}handleMove(t){var e;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;let s=null!=(e=(0,M.getEventCoordinates)(t))?e:O,u=(0,M.subtract)(r,s);if(!n&&a){if(tm(a)){if(null!=a.tolerance&&tf(u,a.tolerance))return this.handleCancel();if(tf(u,a.distance))return this.handleStart();}return ty(a)&&tf(u,a.tolerance)?this.handleCancel():void 0;}t.cancelable&&t.preventDefault(),o(s);}handleEnd(){let{onEnd:t}=this.props;this.detach(),t();}handleCancel(){let{onCancel:t}=this.props;this.detach(),t();}handleKeydown(t){t.code===a.Esc&&this.handleCancel();}removeTextSelection(){var t;null==(t=this.document.getSelection())||t.removeAllRanges();}}let tx={move:{name:"pointermove"},end:{name:"pointerup"}};class t_ extends tb{constructor(t){let{event:e}=t;super(t,tx,(0,M.getOwnerDocument)(e.target));}}t_.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0);}}];let tE={move:{name:"mousemove"},end:{name:"mouseup"}};(m=s||(s={}))[m.RightClick=2]="RightClick";class tw extends tb{constructor(t){super(t,tE,(0,M.getOwnerDocument)(t.event.target));}}tw.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return n.button!==s.RightClick&&(null==r||r({event:n}),!0);}}];let tM={move:{name:"touchmove"},end:{name:"touchend"}};class tC extends tb{constructor(t){super(t,tM);}static setup(){return window.addEventListener(tM.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(tM.move.name,t);};function t(){}}}tC.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0);}}],(y=u||(u={}))[y.Pointer=0]="Pointer",y[y.DraggableRect=1]="DraggableRect",(b=c||(c={}))[b.TreeOrder=0]="TreeOrder",b[b.ReversedTreeOrder=1]="ReversedTreeOrder";let tA={x:{[i.Backward]:!1,[i.Forward]:!1},y:{[i.Backward]:!1,[i.Forward]:!1}};(x=l||(l={}))[x.Always=0]="Always",x[x.BeforeDragging=1]="BeforeDragging",x[x.WhileDragging=2]="WhileDragging",(f||(f={})).Optimized="optimized";let tS=new Map;function tD(t,e){return(0,M.useLazyMemo)(n=>t?n||("function"==typeof e?e(t):t):null,[e,t]);}function tI(t){let{callback:e,disabled:n}=t,r=(0,M.useEvent)(e),i=(0,E.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:t}=window;return new t(r);},[n]);return(0,E.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i;}function tT(t){return new tc(Z(t),t);}function tk(t,e,n){void 0===e&&(e=tT);let[r,i]=(0,E.useReducer)(function(r){if(!t)return null;if(!1===t.isConnected){var i;return null!=(i=null!=r?r:n)?i:null;}let o=e(t);return JSON.stringify(r)===JSON.stringify(o)?r:o;},null),o=function(t){let{callback:e,disabled:n}=t,r=(0,M.useEvent)(e),i=(0,E.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:t}=window;return new t(r);},[r,n]);return(0,E.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i;}({callback(e){if(t)for(let n of e){let{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){i();break;}}}}),a=tI({callback:i});return(0,M.useIsomorphicLayoutEffect)(()=>{i(),t?(null==a||a.observe(t),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect());},[t]),r;}let tF=[];function tN(t,e){void 0===e&&(e=[]);let n=(0,E.useRef)(null);return(0,E.useEffect)(()=>{n.current=null;},e),(0,E.useEffect)(()=>{let e=t!==O;e&&!n.current&&(n.current=t),!e&&n.current&&(n.current=null);},[t]),n.current?(0,M.subtract)(t,n.current):O;}function tO(t){return(0,E.useMemo)(()=>t?function(t){let e=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:e,bottom:n,width:e,height:n};}(t):null,[t]);}let tB=[];function tP(t){if(!t)return null;if(t.children.length>1)return t;let e=t.children[0];return(0,M.isHTMLElement)(e)?e:t;}let tL=[{sensor:t_,options:{}},{sensor:tv,options:{}}],tj={current:{}},tR={draggable:{measure:J},droppable:{measure:J,strategy:l.WhileDragging,frequency:f.Optimized},dragOverlay:{measure:Z}};class tz extends Map{get(t){var e;return null!=t&&null!=(e=super.get(t))?e:void 0;}toArray(){return Array.from(this.values());}getEnabled(){return this.toArray().filter(t=>{let{disabled:e}=t;return!e;});}getNodeFor(t){var e,n;return null!=(e=null==(n=this.get(t))?void 0:n.node.current)?e:void 0;}}let tG={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new tz,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:k},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:tR,measureDroppableContainers:k,windowRect:null,measuringScheduled:!1},tY={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:k,draggableNodes:new Map,over:null,measureDroppableContainers:k},tX=(0,E.createContext)(tY),tU=(0,E.createContext)(tG);function tH(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new tz}};}function tW(t,e){switch(e.type){case r.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case r.DragMove:if(!t.draggable.active)return t;return{...t,draggable:{...t.draggable,translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}}};case r.DragEnd:case r.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case r.RegisterDroppable:{let{element:n}=e,{id:r}=n,i=new tz(t.droppable.containers);return i.set(r,n),{...t,droppable:{...t.droppable,containers:i}};}case r.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=e,o=t.droppable.containers.get(n);if(!o||r!==o.key)return t;let a=new tz(t.droppable.containers);return a.set(n,{...o,disabled:i}),{...t,droppable:{...t.droppable,containers:a}};}case r.UnregisterDroppable:{let{id:n,key:r}=e,i=t.droppable.containers.get(n);if(!i||r!==i.key)return t;let o=new tz(t.droppable.containers);return o.delete(n),{...t,droppable:{...t.droppable,containers:o}};}default:return t;}}function tV(t){let{disabled:e}=t,{active:n,activatorEvent:r,draggableNodes:i}=(0,E.useContext)(tX),o=(0,M.usePrevious)(r),a=(0,M.usePrevious)(null==n?void 0:n.id);return(0,E.useEffect)(()=>{if(!e&&!r&&o&&null!=a){if(!(0,M.isKeyboardEvent)(o)||document.activeElement===o.target)return;let t=i.get(a);if(!t)return;let{activatorNode:e,node:n}=t;(e.current||n.current)&&requestAnimationFrame(()=>{for(let t of[e.current,n.current]){if(!t)continue;let e=(0,M.findFirstFocusableNode)(t);if(e){e.focus();break;}}});}},[r,e,i,a,o]),null;}function tq(t,e){let{transform:n,...r}=e;return null!=t&&t.length?t.reduce((t,e)=>e({transform:t,...r}),n):n;}let tZ=(0,E.createContext)({...O,scaleX:1,scaleY:1});(_=d||(d={}))[_.Uninitialized=0]="Uninitialized",_[_.Initializing=1]="Initializing",_[_.Initialized=2]="Initialized";let tJ=(0,E.memo)(function(t){var e,n,o,a,s,f;let{id:h,accessibility:g,autoScroll:p=!0,children:v,sensors:m=tL,collisionDetection:y=X,measuring:b,modifiers:x,..._}=t,[C,S]=(0,E.useReducer)(tW,void 0,tH),[D,I]=function(){let[t]=(0,E.useState)(()=>new Set),e=(0,E.useCallback)(e=>(t.add(e),()=>t.delete(e)),[t]);return[(0,E.useCallback)(e=>{let{type:n,event:r}=e;t.forEach(t=>{var e;return null==(e=t[n])?void 0:e.call(t,r);});},[t]),e];}(),[k,F]=(0,E.useState)(d.Uninitialized),N=k===d.Initialized,{draggable:{active:B,nodes:P,translate:L},droppable:{containers:j}}=C,z=B?P.get(B):null,G=(0,E.useRef)({initial:null,translated:null}),Y=(0,E.useMemo)(()=>{var t;return null!=B?{id:B,data:null!=(t=null==z?void 0:z.data)?t:tj,rect:G}:null;},[B,z]),U=(0,E.useRef)(null),[V,q]=(0,E.useState)(null),[J,tt]=(0,E.useState)(null),te=(0,M.useLatestValue)(_,Object.values(_)),ts=(0,M.useUniqueId)("DndDescribedBy",h),tu=(0,E.useMemo)(()=>j.getEnabled(),[j]),tl=(0,E.useMemo)(()=>({draggable:{...tR.draggable,...null==b?void 0:b.draggable},droppable:{...tR.droppable,...null==b?void 0:b.droppable},dragOverlay:{...tR.dragOverlay,...null==b?void 0:b.dragOverlay}}),[null==b?void 0:b.draggable,null==b?void 0:b.droppable,null==b?void 0:b.dragOverlay]),{droppableRects:tf,measureDroppableContainers:td,measuringScheduled:th}=function(t,e){let{dragging:n,dependencies:r,config:i}=e,[o,a]=(0,E.useState)(null),{frequency:s,measure:u,strategy:c}=i,f=(0,E.useRef)(t),d=function(){switch(c){case l.Always:return!1;case l.BeforeDragging:return n;default:return!n;}}(),h=(0,M.useLatestValue)(d),g=(0,E.useCallback)(function(t){void 0===t&&(t=[]),h.current||a(e=>null===e?t:e.concat(t.filter(t=>!e.includes(t))));},[h]),p=(0,E.useRef)(null),v=(0,M.useLazyMemo)(e=>{if(d&&!n)return tS;if(!e||e===tS||f.current!==t||null!=o){let e=new Map;for(let n of t){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue;}let t=n.node.current,r=t?new tc(u(t),t):null;n.rect.current=r,r&&e.set(n.id,r);}return e;}return e;},[t,o,n,d,u]);return(0,E.useEffect)(()=>{f.current=t;},[t]),(0,E.useEffect)(()=>{d||g();},[n,d]),(0,E.useEffect)(()=>{o&&o.length>0&&a(null);},[JSON.stringify(o)]),(0,E.useEffect)(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{g(),p.current=null;},s));},[s,d,g,...r]),{droppableRects:v,measureDroppableContainers:g,measuringScheduled:null!=o};}(tu,{dragging:N,dependencies:[L.x,L.y],config:tl.droppable}),tg=function(t,e){let n=null!==e?t.get(e):void 0,r=n?n.node.current:null;return(0,M.useLazyMemo)(t=>{var n;return null===e?null:null!=(n=null!=r?r:t)?n:null;},[r,e]);}(P,B),tp=(0,E.useMemo)(()=>J?(0,M.getEventCoordinates)(J):null,[J]),tv=function(){let t=(null==V?void 0:V.autoScrollEnabled)===!1,e="object"==typeof p?!1===p.enabled:!1===p,n=N&&!t&&!e;return"object"==typeof p?{...p,enabled:n}:{enabled:n};}(),tm=tD(tg,tl.draggable.measure);!function(t){let{activeNode:e,measure:n,initialRect:r,config:i=!0}=t,o=(0,E.useRef)(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;(0,M.useIsomorphicLayoutEffect)(()=>{if(!a&&!s||!e){o.current=!1;return;}if(o.current||!r)return;let t=null==e?void 0:e.node.current;if(!t||!1===t.isConnected)return;let i=H(n(t),r);if(a||(i.x=0),s||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let e=Q(t);e&&e.scrollBy({top:i.y,left:i.x});}},[e,a,s,r,n]);}({activeNode:B?P.get(B):null,config:tv.layoutShiftCompensation,initialRect:tm,measure:tl.draggable.measure});let ty=tk(tg,tl.draggable.measure,tm),tb=tk(tg?tg.parentElement:null),tx=(0,E.useRef)({activatorEvent:null,active:null,activeNode:tg,collisionRect:null,collisions:null,droppableRects:tf,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:j,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),t_=j.getNodeFor(null==(e=tx.current.over)?void 0:e.id),tE=function(t){let{measure:e}=t,[n,r]=(0,E.useState)(null),i=tI({callback:(0,E.useCallback)(t=>{for(let{target:n}of t)if((0,M.isHTMLElement)(n)){r(t=>{let r=e(n);return t?{...t,width:r.width,height:r.height}:r;});break;}},[e])}),o=(0,E.useCallback)(t=>{let n=tP(t);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?e(n):null);},[e,i]),[a,s]=(0,M.useNodeRef)(o);return(0,E.useMemo)(()=>({nodeRef:a,rect:n,setRef:s}),[n,a,s]);}({measure:tl.dragOverlay.measure}),tw=null!=(n=tE.nodeRef.current)?n:tg,tM=N?null!=(o=tE.rect)?o:ty:null,tC=!!(tE.nodeRef.current&&tE.rect),tT=function(t){let e=tD(t);return H(t,e);}(tC?null:ty),tz=tO(tw?(0,M.getWindow)(tw):null),tG=function(t){let e=(0,E.useRef)(t),n=(0,M.useLazyMemo)(n=>t?n&&n!==tF&&t&&e.current&&t.parentNode===e.current.parentNode?n:K(t):tF,[t]);return(0,E.useEffect)(()=>{e.current=t;},[t]),n;}(N?null!=t_?t_:tg:null),tY=function(t,e){void 0===e&&(e=Z);let[n]=t,r=tO(n?(0,M.getWindow)(n):null),[i,o]=(0,E.useReducer)(function(){return t.length?t.map(t=>tr(t)?r:new tc(e(t),t)):tB;},tB),a=tI({callback:o});return t.length>0&&i===tB&&o(),(0,M.useIsomorphicLayoutEffect)(()=>{t.length?t.forEach(t=>null==a?void 0:a.observe(t)):(null==a||a.disconnect(),o());},[t]),i;}(tG),tJ=tq(x,{transform:{x:L.x-tT.x,y:L.y-tT.y,scaleX:1,scaleY:1},activatorEvent:J,active:Y,activeNodeRect:ty,containerNodeRect:tb,draggingNodeRect:tM,over:tx.current.over,overlayNodeRect:tE.rect,scrollableAncestors:tG,scrollableAncestorRects:tY,windowRect:tz}),tK=tp?(0,M.add)(tp,L):null,tQ=function(t){let[e,n]=(0,E.useState)(null),r=(0,E.useRef)(t),i=(0,E.useCallback)(t=>{let e=$(t.target);e&&n(t=>t?(t.set(e,tn(e)),new Map(t)):null);},[]);return(0,E.useEffect)(()=>{let e=r.current;if(t!==e){o(e);let a=t.map(t=>{let e=$(t);return e?(e.addEventListener("scroll",i,{passive:!0}),[e,tn(e)]):null;}).filter(t=>null!=t);n(a.length?new Map(a):null),r.current=t;}return()=>{o(t),o(e);};function o(t){t.forEach(t=>{let e=$(t);null==e||e.removeEventListener("scroll",i);});}},[i,t]),(0,E.useMemo)(()=>t.length?e?Array.from(e.values()).reduce((t,e)=>(0,M.add)(t,e),O):ta(t):O,[t,e]);}(tG),t$=tN(tQ),t0=tN(tQ,[ty]),t1=(0,M.add)(tJ,t$),t2=tM?W(tM,tJ):null,t3=Y&&t2?y({active:Y,collisionRect:t2,droppableRects:tf,droppableContainers:tu,pointerCoordinates:tK}):null,t5=R(t3,"id"),[t7,t6]=(0,E.useState)(null),t4=(s=tC?tJ:(0,M.add)(tJ,t0),f=null!=(a=null==t7?void 0:t7.rect)?a:null,{...s,scaleX:f&&ty?f.width/ty.width:1,scaleY:f&&ty?f.height/ty.height:1}),t8=(0,E.useCallback)((t,e)=>{let{sensor:n,options:i}=e;if(null==U.current)return;let o=P.get(U.current);if(!o)return;let a=t.nativeEvent,s=new n({active:U.current,activeNode:o,event:a,options:i,context:tx,onStart(t){let e=U.current;if(null==e)return;let n=P.get(e);if(!n)return;let{onDragStart:i}=te.current,o={active:{id:e,data:n.data,rect:G}};(0,w.unstable_batchedUpdates)(()=>{null==i||i(o),F(d.Initializing),S({type:r.DragStart,initialCoordinates:t,active:e}),D({type:"onDragStart",event:o});});},onMove(t){S({type:r.DragMove,coordinates:t});},onEnd:u(r.DragEnd),onCancel:u(r.DragCancel)});function u(t){return async function(){let{active:e,collisions:n,over:i,scrollAdjustedTranslate:o}=tx.current,s=null;if(e&&o){let{cancelDrop:u}=te.current;s={activatorEvent:a,active:e,collisions:n,delta:o,over:i},t===r.DragEnd&&"function"==typeof u&&await Promise.resolve(u(s))&&(t=r.DragCancel);}U.current=null,(0,w.unstable_batchedUpdates)(()=>{S({type:t}),F(d.Uninitialized),t6(null),q(null),tt(null);let e=t===r.DragEnd?"onDragEnd":"onDragCancel";if(s){let t=te.current[e];null==t||t(s),D({type:e,event:s});}});};}(0,w.unstable_batchedUpdates)(()=>{q(s),tt(t.nativeEvent);});},[P]),t9=(0,E.useCallback)((t,e)=>(n,r)=>{let i=n.nativeEvent,o=P.get(r);null!==U.current||!o||i.dndKit||i.defaultPrevented||!0!==t(n,e.options,{active:o})||(i.dndKit={capturedBy:e.sensor},U.current=r,t8(n,e));},[P,t8]),et=(0,E.useMemo)(()=>m.reduce((t,e)=>{let{sensor:n}=e;return[...t,...n.activators.map(t=>({eventName:t.eventName,handler:t9(t.handler,e)}))];},[]),[m,t9]);(0,E.useEffect)(()=>{if(!M.canUseDOM)return;let t=m.map(t=>{let{sensor:e}=t;return null==e.setup?void 0:e.setup();});return()=>{for(let e of t)null==e||e();};},m.map(t=>{let{sensor:e}=t;return e;})),(0,M.useIsomorphicLayoutEffect)(()=>{ty&&k===d.Initializing&&F(d.Initialized);},[ty,k]),(0,E.useEffect)(()=>{let{onDragMove:t}=te.current,{active:e,activatorEvent:n,collisions:r,over:i}=tx.current;if(!e||!n)return;let o={active:e,activatorEvent:n,collisions:r,delta:{x:t1.x,y:t1.y},over:i};(0,w.unstable_batchedUpdates)(()=>{null==t||t(o),D({type:"onDragMove",event:o});});},[t1.x,t1.y]),(0,E.useEffect)(()=>{let{active:t,activatorEvent:e,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=tx.current;if(!t||null==U.current||!e||!i)return;let{onDragOver:o}=te.current,a=r.get(t5),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,u={active:t,activatorEvent:e,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,w.unstable_batchedUpdates)(()=>{t6(s),null==o||o(u),D({type:"onDragOver",event:u});});},[t5]),(0,M.useIsomorphicLayoutEffect)(()=>{tx.current={activatorEvent:J,active:Y,activeNode:tg,collisionRect:t2,collisions:t3,droppableRects:tf,draggableNodes:P,draggingNode:tw,draggingNodeRect:tM,droppableContainers:j,over:t7,scrollableAncestors:tG,scrollAdjustedTranslate:t1},G.current={initial:tM,translated:t2};},[Y,tg,t3,t2,P,tw,tM,tf,j,t7,tG,t1]),function(t){let{acceleration:e,activator:n=u.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:s=5,order:l=c.TreeOrder,pointerCoordinates:f,scrollableAncestors:d,scrollableAncestorRects:h,delta:g,threshold:p}=t,v=function(t){let{delta:e,disabled:n}=t,r=(0,M.usePrevious)(e);return(0,M.useLazyMemo)(t=>{if(n||!r||!t)return tA;let o={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[i.Backward]:t.x[i.Backward]||-1===o.x,[i.Forward]:t.x[i.Forward]||1===o.x},y:{[i.Backward]:t.y[i.Backward]||-1===o.y,[i.Forward]:t.y[i.Forward]||1===o.y}};},[n,e,r]);}({delta:g,disabled:!a}),[m,y]=(0,M.useInterval)(),b=(0,E.useRef)({x:0,y:0}),x=(0,E.useRef)({x:0,y:0}),_=(0,E.useMemo)(()=>{switch(n){case u.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case u.DraggableRect:return o;}},[n,o,f]),w=(0,E.useRef)(null),C=(0,E.useCallback)(()=>{let t=w.current;if(!t)return;let e=b.current.x*x.current.x,n=b.current.y*x.current.y;t.scrollBy(e,n);},[]),A=(0,E.useMemo)(()=>l===c.TreeOrder?[...d].reverse():d,[l,d]);(0,E.useEffect)(()=>{if(!a||!d.length||!_){y();return;}for(let t of A){if((null==r?void 0:r(t))===!1)continue;let n=h[d.indexOf(t)];if(!n)continue;let{direction:o,speed:a}=function(t,e,n,r,o){let{top:a,left:s,right:u,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=to);let{isTop:l,isBottom:f,isLeft:d,isRight:h}=ti(t),g={x:0,y:0},p={x:0,y:0},v={height:e.height*o.y,width:e.width*o.x};return!l&&a<=e.top+v.height?(g.y=i.Backward,p.y=r*Math.abs((e.top+v.height-a)/v.height)):!f&&c>=e.bottom-v.height&&(g.y=i.Forward,p.y=r*Math.abs((e.bottom-v.height-c)/v.height)),!h&&u>=e.right-v.width?(g.x=i.Forward,p.x=r*Math.abs((e.right-v.width-u)/v.width)):!d&&s<=e.left+v.width&&(g.x=i.Backward,p.x=r*Math.abs((e.left+v.width-s)/v.width)),{direction:g,speed:p};}(t,n,_,e,p);for(let t of["x","y"])v[t][o[t]]||(a[t]=0,o[t]=0);if(a.x>0||a.y>0){y(),w.current=t,m(C,s),b.current=a,x.current=o;return;}}b.current={x:0,y:0},x.current={x:0,y:0},y();},[e,C,r,y,a,s,JSON.stringify(_),JSON.stringify(v),m,d,A,h,JSON.stringify(p)]);}({...tv,delta:L,draggingRect:t2,pointerCoordinates:tK,scrollableAncestors:tG,scrollableAncestorRects:tY});let ee=(0,E.useMemo)(()=>({active:Y,activeNode:tg,activeNodeRect:ty,activatorEvent:J,collisions:t3,containerNodeRect:tb,dragOverlay:tE,draggableNodes:P,droppableContainers:j,droppableRects:tf,over:t7,measureDroppableContainers:td,scrollableAncestors:tG,scrollableAncestorRects:tY,measuringConfiguration:tl,measuringScheduled:th,windowRect:tz}),[Y,tg,ty,J,t3,tb,tE,P,j,tf,t7,td,tG,tY,tl,th,tz]),en=(0,E.useMemo)(()=>({activatorEvent:J,activators:et,active:Y,activeNodeRect:ty,ariaDescribedById:{draggable:ts},dispatch:S,draggableNodes:P,over:t7,measureDroppableContainers:td}),[J,et,Y,ty,S,ts,P,t7,td]);return E.default.createElement(A.Provider,{value:I},E.default.createElement(tX.Provider,{value:en},E.default.createElement(tU.Provider,{value:ee},E.default.createElement(tZ.Provider,{value:t4},v)),E.default.createElement(tV,{disabled:(null==g?void 0:g.restoreFocus)===!1})),E.default.createElement(T,{...g,hiddenTextDescribedById:ts}));}),tK=(0,E.createContext)(null),tQ="button";function t$(t){let{id:e,data:n,disabled:r=!1,attributes:i}=t,o=(0,M.useUniqueId)("Droppable"),{activators:a,activatorEvent:s,active:u,activeNodeRect:c,ariaDescribedById:l,draggableNodes:f,over:d}=(0,E.useContext)(tX),{role:h=tQ,roleDescription:g="draggable",tabIndex:p=0}=null!=i?i:{},v=(null==u?void 0:u.id)===e,m=(0,E.useContext)(v?tZ:tK),[y,b]=(0,M.useNodeRef)(),[x,_]=(0,M.useNodeRef)(),w=(0,E.useMemo)(()=>a.reduce((t,n)=>{let{eventName:r,handler:i}=n;return t[r]=t=>{i(t,e);},t;},{}),[a,e]),C=(0,M.useLatestValue)(n);return(0,M.useIsomorphicLayoutEffect)(()=>(f.set(e,{id:e,key:o,node:y,activatorNode:x,data:C}),()=>{let t=f.get(e);t&&t.key===o&&f.delete(e);}),[f,e]),{active:u,activatorEvent:s,activeNodeRect:c,attributes:(0,E.useMemo)(()=>({role:h,tabIndex:p,"aria-disabled":r,"aria-pressed":!!v&&h===tQ||void 0,"aria-roledescription":g,"aria-describedby":l.draggable}),[r,h,p,v,g,l.draggable]),isDragging:v,listeners:r?void 0:w,node:y,over:d,setNodeRef:b,setActivatorNodeRef:_,transform:m};}function t0(){return(0,E.useContext)(tU);}let t1={timeout:25};function t2(t){let{data:e,disabled:n=!1,id:i,resizeObserverConfig:o}=t,a=(0,M.useUniqueId)("Droppable"),{active:s,dispatch:u,over:c,measureDroppableContainers:l}=(0,E.useContext)(tX),f=(0,E.useRef)({disabled:n}),d=(0,E.useRef)(!1),h=(0,E.useRef)(null),g=(0,E.useRef)(null),{disabled:p,updateMeasurementsFor:v,timeout:m}={...t1,...o},y=(0,M.useLatestValue)(null!=v?v:i),b=tI({callback:(0,E.useCallback)(()=>{if(!d.current){d.current=!0;return;}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{l(Array.isArray(y.current)?y.current:[y.current]),g.current=null;},m);},[m]),disabled:p||!s}),x=(0,E.useCallback)((t,e)=>{b&&(e&&(b.unobserve(e),d.current=!1),t&&b.observe(t));},[b]),[_,w]=(0,M.useNodeRef)(x),C=(0,M.useLatestValue)(e);return(0,E.useEffect)(()=>{b&&_.current&&(b.disconnect(),d.current=!1,b.observe(_.current));},[_,b]),(0,M.useIsomorphicLayoutEffect)(()=>(u({type:r.RegisterDroppable,element:{id:i,key:a,disabled:n,node:_,rect:h,data:C}}),()=>u({type:r.UnregisterDroppable,key:a,id:i})),[i]),(0,E.useEffect)(()=>{n!==f.current.disabled&&(u({type:r.SetDroppableDisabled,id:i,key:a,disabled:n}),f.current.disabled=n);},[i,a,n,u]),{active:s,rect:h,isOver:(null==c?void 0:c.id)===i,node:_,over:c,setNodeRef:w};}function t3(t){let{animation:e,children:n}=t,[r,i]=(0,E.useState)(null),[o,a]=(0,E.useState)(null),s=(0,M.usePrevious)(n);return n||r||!s||i(s),(0,M.useIsomorphicLayoutEffect)(()=>{if(!o)return;let t=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==t||null==n){i(null);return;}Promise.resolve(e(n,o)).then(()=>{i(null);});},[e,r,o]),E.default.createElement(E.default.Fragment,null,n,r?(0,E.cloneElement)(r,{ref:a}):null);}let t5={x:0,y:0,scaleX:1,scaleY:1};function t7(t){let{children:e}=t;return E.default.createElement(tX.Provider,{value:tY},E.default.createElement(tZ.Provider,{value:t5},e));}let t6={position:"fixed",touchAction:"none"},t4=t=>(0,M.isKeyboardEvent)(t)?"transform 250ms ease":void 0,t8=(0,E.forwardRef)((t,e)=>{let{as:n,activatorEvent:r,adjustScale:i,children:o,className:a,rect:s,style:u,transform:c,transition:l=t4}=t;if(!s)return null;let f=i?c:{...c,scaleX:1,scaleY:1},d={...t6,width:s.width,height:s.height,top:s.top,left:s.left,transform:M.CSS.Transform.toString(f),transformOrigin:i&&r?function(t,e){let n=(0,M.getEventCoordinates)(t);if(!n)return"0 0";let r={x:(n.x-e.left)/e.width*100,y:(n.y-e.top)/e.height*100};return r.x+"% "+r.y+"%";}(r,s):void 0,transition:"function"==typeof l?l(r):l,...u};return E.default.createElement(n,{className:a,style:d,ref:e},o);}),t9=t=>e=>{let{active:n,dragOverlay:r}=e,i={},{styles:o,className:a}=t;if(null!=o&&o.active)for(let[t,e]of Object.entries(o.active))void 0!==e&&(i[t]=n.node.style.getPropertyValue(t),n.node.style.setProperty(t,e));if(null!=o&&o.dragOverlay)for(let[t,e]of Object.entries(o.dragOverlay))void 0!==e&&r.node.style.setProperty(t,e);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(let[t,e]of Object.entries(i))n.node.style.setProperty(t,e);null!=a&&a.active&&n.node.classList.remove(a.active);};},et={duration:250,easing:"ease",keyframes:t=>{let{transform:{initial:e,final:n}}=t;return[{transform:M.CSS.Transform.toString(e)},{transform:M.CSS.Transform.toString(n)}];},sideEffects:t9({styles:{active:{opacity:"0"}}})},ee=0,en=E.default.memo(t=>{var e;let{adjustScale:n=!1,children:r,dropAnimation:i,style:o,transition:a,modifiers:s,wrapperElement:u="div",className:c,zIndex:l=999}=t,{activatorEvent:f,active:d,activeNodeRect:h,containerNodeRect:g,draggableNodes:p,droppableContainers:v,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:x,scrollableAncestorRects:_,windowRect:w}=t0(),C=(0,E.useContext)(tZ),A=(e=null==d?void 0:d.id,(0,E.useMemo)(()=>{if(null!=e)return++ee;},[e])),S=tq(s,{activatorEvent:f,active:d,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:x,scrollableAncestorRects:_,transform:C,windowRect:w}),D=tD(h),I=function(t){let{config:e,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=t;return(0,M.useEvent)((t,o)=>{if(null===e)return;let a=n.get(t);if(!a)return;let s=a.node.current;if(!s)return;let u=tP(o);if(!u)return;let{transform:c}=(0,M.getWindow)(o).getComputedStyle(o),l=V(c);if(!l)return;let f="function"==typeof e?e:function(t){let{duration:e,easing:n,sideEffects:r,keyframes:i}={...et,...t};return t=>{let{active:o,dragOverlay:a,transform:s,...u}=t;if(!e)return;let c={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},l={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-c.x,y:s.y-c.y,...l},d=i({...u,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[h]=d,g=d[d.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;let p=null==r?void 0:r({active:o,dragOverlay:a,...u}),v=a.node.animate(d,{duration:e,easing:n,fill:"forwards"});return new Promise(t=>{v.onfinish=()=>{null==p||p(),t();};});};}(e);return ts(s,i.draggable.measure),f({active:{id:t,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:i,transform:l});});}({config:i,draggableNodes:p,droppableContainers:v,measuringConfiguration:b}),T=D?m.setRef:void 0;return E.default.createElement(t7,null,E.default.createElement(t3,{animation:I},d&&A?E.default.createElement(t8,{key:A,id:d.id,ref:T,as:u,activatorEvent:f,adjustScale:n,className:c,transition:a,rect:D,style:{zIndex:l,...o},transform:S},r):null));});},"917c6469":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("501adece")),i=function(t){return(0,r.default)(t)&&t%2!=0;};},"91b69874":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("6c2e5376");},"91cd6a2b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return null===t;};},"91ee6763":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return h;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("324429dd"),s=n("e704bc9f"),u=n("7048382e"),c=r._(n("1bfab17d")),l={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},f={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},d={left:"left",start:"left",center:"middle",right:"end",end:"end"},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"});},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),(0,o.each)(e||r,function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?(0,s.setTransform)(n):u.SVG_ATTR_MAP[e]&&i.setAttribute(u.SVG_ATTR_MAP[e],t);}),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;");},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=(0,a.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",f[n]||"alphabetic"):t.setAttribute("alignment-baseline",l[n]||"baseline"),t.setAttribute("text-anchor",d[r]||"left");},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,a=void 0===i?"bottom":i;if(t){if(~t.indexOf("\n")){var s=t.split("\n"),u=s.length-1,c="";(0,o.each)(s,function(t,e){0===e?"alphabetic"===a?c+='<tspan x="'+r+'" dy="'+-u+'em">'+t+"</tspan>":"top"===a?c+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===a?c+='<tspan x="'+r+'" dy="'+-(u-1)/2+'em">'+t+"</tspan>":"bottom"===a?c+='<tspan x="'+r+'" dy="-'+(u+.3)+'em">'+t+"</tspan>":"hanging"===a&&(c+='<tspan x="'+r+'" dy="'+(-(u-1)-.3)+'em">'+t+"</tspan>"):c+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>";}),e.innerHTML=c;}else e.innerHTML=t;}else e.innerHTML="";},e;}(c.default);},"942b4eed":function(t,e,n){"use strict";function r(t){return"string"==typeof t;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"94a227fe":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{blendEquationMap:function(){return D;},blendFuncMap:function(){return I;},colorSpaceMap:function(){return A;},cullFaceMap:function(){return F;},dataTypeMap:function(){return _;},depthFuncMap:function(){return S;},filterMap:function(){return M;},formatMap:function(){return E;},mipmapMap:function(){return w;},primitiveMap:function(){return b;},stencilFuncMap:function(){return T;},stencilOpMap:function(){return k;},usageMap:function(){return x;},wrapModeMap:function(){return C;}});var r,i,o,a,s,u,c,l,f,d,h,g,p,v,m=n("777fffbe")._(n("54d66dad")),y=n("769809e4"),b=(r={},(0,m.default)(r,y.gl.POINTS,"points"),(0,m.default)(r,y.gl.LINES,"lines"),(0,m.default)(r,y.gl.LINE_LOOP,"line loop"),(0,m.default)(r,y.gl.LINE_STRIP,"line strip"),(0,m.default)(r,y.gl.TRIANGLES,"triangles"),(0,m.default)(r,y.gl.TRIANGLE_FAN,"triangle fan"),(0,m.default)(r,y.gl.TRIANGLE_STRIP,"triangle strip"),r),x=(i={},(0,m.default)(i,y.gl.STATIC_DRAW,"static"),(0,m.default)(i,y.gl.DYNAMIC_DRAW,"dynamic"),(0,m.default)(i,y.gl.STREAM_DRAW,"stream"),i),_=(o={},(0,m.default)(o,y.gl.BYTE,"int8"),(0,m.default)(o,y.gl.UNSIGNED_INT,"int16"),(0,m.default)(o,y.gl.INT,"int32"),(0,m.default)(o,y.gl.UNSIGNED_BYTE,"uint8"),(0,m.default)(o,y.gl.UNSIGNED_SHORT,"uint16"),(0,m.default)(o,y.gl.UNSIGNED_INT,"uint32"),(0,m.default)(o,y.gl.FLOAT,"float"),o),E=(a={},(0,m.default)(a,y.gl.ALPHA,"alpha"),(0,m.default)(a,y.gl.LUMINANCE,"luminance"),(0,m.default)(a,y.gl.LUMINANCE_ALPHA,"luminance alpha"),(0,m.default)(a,y.gl.RGB,"rgb"),(0,m.default)(a,y.gl.RGBA,"rgba"),(0,m.default)(a,y.gl.RGBA4,"rgba4"),(0,m.default)(a,y.gl.RGB5_A1,"rgb5 a1"),(0,m.default)(a,y.gl.RGB565,"rgb565"),(0,m.default)(a,y.gl.DEPTH_COMPONENT,"depth"),(0,m.default)(a,y.gl.DEPTH_STENCIL,"depth stencil"),a),w=(s={},(0,m.default)(s,y.gl.DONT_CARE,"dont care"),(0,m.default)(s,y.gl.NICEST,"nice"),(0,m.default)(s,y.gl.FASTEST,"fast"),s),M=(u={},(0,m.default)(u,y.gl.NEAREST,"nearest"),(0,m.default)(u,y.gl.LINEAR,"linear"),(0,m.default)(u,y.gl.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,m.default)(u,y.gl.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,m.default)(u,y.gl.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,m.default)(u,y.gl.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),u),C=(c={},(0,m.default)(c,y.gl.REPEAT,"repeat"),(0,m.default)(c,y.gl.CLAMP_TO_EDGE,"clamp"),(0,m.default)(c,y.gl.MIRRORED_REPEAT,"mirror"),c),A=(l={},(0,m.default)(l,y.gl.NONE,"none"),(0,m.default)(l,y.gl.BROWSER_DEFAULT_WEBGL,"browser"),l),S=(f={},(0,m.default)(f,y.gl.NEVER,"never"),(0,m.default)(f,y.gl.ALWAYS,"always"),(0,m.default)(f,y.gl.LESS,"less"),(0,m.default)(f,y.gl.LEQUAL,"lequal"),(0,m.default)(f,y.gl.GREATER,"greater"),(0,m.default)(f,y.gl.GEQUAL,"gequal"),(0,m.default)(f,y.gl.EQUAL,"equal"),(0,m.default)(f,y.gl.NOTEQUAL,"notequal"),f),D=(d={},(0,m.default)(d,y.gl.FUNC_ADD,"add"),(0,m.default)(d,y.gl.MIN_EXT,"min"),(0,m.default)(d,y.gl.MAX_EXT,"max"),(0,m.default)(d,y.gl.FUNC_SUBTRACT,"subtract"),(0,m.default)(d,y.gl.FUNC_REVERSE_SUBTRACT,"reverse subtract"),d),I=(h={},(0,m.default)(h,y.gl.ZERO,"zero"),(0,m.default)(h,y.gl.ONE,"one"),(0,m.default)(h,y.gl.SRC_COLOR,"src color"),(0,m.default)(h,y.gl.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,m.default)(h,y.gl.SRC_ALPHA,"src alpha"),(0,m.default)(h,y.gl.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,m.default)(h,y.gl.DST_COLOR,"dst color"),(0,m.default)(h,y.gl.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,m.default)(h,y.gl.DST_ALPHA,"dst alpha"),(0,m.default)(h,y.gl.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,m.default)(h,y.gl.CONSTANT_COLOR,"constant color"),(0,m.default)(h,y.gl.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,m.default)(h,y.gl.CONSTANT_ALPHA,"constant alpha"),(0,m.default)(h,y.gl.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,m.default)(h,y.gl.SRC_ALPHA_SATURATE,"src alpha saturate"),h),T=(g={},(0,m.default)(g,y.gl.NEVER,"never"),(0,m.default)(g,y.gl.ALWAYS,"always"),(0,m.default)(g,y.gl.LESS,"less"),(0,m.default)(g,y.gl.LEQUAL,"lequal"),(0,m.default)(g,y.gl.GREATER,"greater"),(0,m.default)(g,y.gl.GEQUAL,"gequal"),(0,m.default)(g,y.gl.EQUAL,"equal"),(0,m.default)(g,y.gl.NOTEQUAL,"notequal"),g),k=(p={},(0,m.default)(p,y.gl.ZERO,"zero"),(0,m.default)(p,y.gl.KEEP,"keep"),(0,m.default)(p,y.gl.REPLACE,"replace"),(0,m.default)(p,y.gl.INVERT,"invert"),(0,m.default)(p,y.gl.INCR,"increment"),(0,m.default)(p,y.gl.DECR,"decrement"),(0,m.default)(p,y.gl.INCR_WRAP,"increment wrap"),(0,m.default)(p,y.gl.DECR_WRAP,"decrement wrap"),p),F=(v={},(0,m.default)(v,y.gl.FRONT,"front"),(0,m.default)(v,y.gl.BACK,"back"),v);},"950e9369":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("f05a3412")),i=a(n("ba6b6e37")),o=n("6a4ad838");function a(t){return t&&t.__esModule?t:{default:t};}var s=function(t,e){var n=[],r=t.nodes,a=void 0===r?[]:r,s=t.edges,u=void 0===s?[]:s;if(0===a.length)return n;var c=a[0],l=new Set;l.add(c);var f=new i.default(function(t,n){return e?t.weight-n.weight:0;});for((0,o.getEdgesByNodeId)(c.id,u).forEach(function(t){f.insert(t);});!f.isEmpty();){var d=f.delMin(),h=d.source,g=d.target;!(l.has(h)&&l.has(g))&&(n.push(d),l.has(h)||(l.add(h),(0,o.getEdgesByNodeId)(h,u).forEach(function(t){f.insert(t);})),l.has(g)||(l.add(g),(0,o.getEdgesByNodeId)(g,u).forEach(function(t){f.insert(t);})));}return n;},u=function(t,e){var n=[],i=t.nodes,o=void 0===i?[]:i,a=t.edges;if(0===o.length)return n;var s=(void 0===a?[]:a).map(function(t){return t;});e&&s.sort(function(t,e){return t.weight-e.weight;});for(var u=new r.default(o.map(function(t){return t.id;}));s.length>0;){var c=s.shift(),l=c.source,f=c.target;u.connected(l,f)||(n.push(c),u.union(l,f));}return n;};e.default=function(t,e,n){return n?({prim:s,kruskal:u})[n](t,e):u(t,e);};},"956a73c8":function(t,e,n){"use strict";function r(t){return(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;})(t);}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=a(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var u=o?Object.getOwnPropertyDescriptor(t,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=t[s];}return i.default=t,n&&n.set(t,i),i;}(n("ed6ce11b")),o=n("6103548e");function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e;})(t);}var s="undefined"!=typeof self?self:{};s.onmessage=function(t){var e=t.data,n=e._algorithmType,r=e.data;if(n){if("function"==typeof i[n]){var a=i[n].apply(i,r);s.postMessage({_algorithmType:o.MESSAGE.SUCCESS,data:a});return;}s.postMessage({_algorithmType:o.MESSAGE.FAILURE});}},e.default=null;},"95b60440":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{arrayToRawPath:function(){return s;},pointsToSegment:function(){return r;},populateSegmentFromArray:function(){return o;},rawPathToString:function(){return u;}});var r=function(t,e){var n,r=t.length-2,i=+t[0],o=+t[1],a=+t[2],s=+t[3],u=[i,o,i,o],c=a-i,l=s-o,f=.001>Math.abs(t[r]-i)&&.001>Math.abs(t[r+1]-o),d=Math.PI/10;f&&(t.push(a,s),a=i,s=o,i=t[r-2],o=t[r-1],t.unshift(i,o),r+=4),e=e||0===e?+e:1;for(var h=2;h<r;h+=2){var g=i,p=o;i=a,o=s,a=+t[h+2],s=+t[h+3];var v=c,m=l;c=a-i,l=s-o;var y=a-g,b=s-p,x=v*v+m*m,_=c*c+l*l,E=Math.acos((x+_-(y*y+b*b))/Math.sqrt(4*x*_)),w=E/Math.PI*e,M=Math.sqrt(x)*w;w*=Math.sqrt(_),(i!==g||o!==p)&&(E>d?(n=Math.atan2(b,y),u.push(Math.round(i-Math.cos(n)*M),Math.round(o-Math.sin(n)*M),Math.round(i),Math.round(o),Math.round(i+Math.cos(n)*w),Math.round(o+Math.sin(n)*w))):(n=Math.atan2(m,v),u.push(Math.round(i-Math.cos(n)*M),Math.round(o-Math.sin(n)*M)),n=Math.atan2(l,c),u.push(Math.round(i),Math.round(o),Math.round(i+Math.cos(n)*w),Math.round(o+Math.sin(n)*w))));}return u.push(Math.round(a),Math.round(s),Math.round(a),Math.round(s)),f&&(u.splice(0,6),u.length=u.length-6),u;},i=function(t,e){t.unshift(t[0]),e||0===e||(e=1),e*=2/3;for(var n=t[0],r=[n],i=t.length-1,o=1;o<i;o++){var a=n,s={},u={};n={};var c=t[o],l=t[o+1];for(var f in a){var d=a[f],h=c[f];s[f]=d+(h-d)*e,n[f]=d=o===i-1?l[f]:(h+l[f])/2,u[f]=d+(h-d)*e;}r.push(s,u,n);}return r;},o=function(t,e,n,r){for(var i=e.length,o=2===r?0:r,a=0;a<i;a++)t[o]=parseFloat(e[a][n]),2===r&&(t[o+1]=0),o+=2;return t;},a=function(t){for(var e=t[0],n=t[1],r=2;r<t.length;r+=2)e=t[r]+=e,n=t[r+1]+=n;},s=function(t,e){var n,s=e.curviness,u=void 0===s?1:s,c=e.type,l=void 0===c?"thru":c,f=e.relative,d=e.x,h=e.y;t=t.filter(function(t){return t;}),"soft"===l&&(n=!0,t=i(t,u));var g=o(o([],t,void 0===d?"x":d,0),t,void 0===h?"y":h,1);return f&&a(g),["cubic"===l||n?g:r(g,u)];},u=function(t){"number"==typeof t[0]&&(t=[t]);for(var e="",n=t.length,r=0;r<n;r++){var i=t[r];e+="M".concat(Math.round(i[0]),",").concat(Math.round(i[1])," C");for(var o=i.length,a=2;a<o;a++)e+="".concat(Math.round(i[a++]||i[o-2]),",").concat(Math.round(i[a++]||i[o-1])," ").concat(Math.round(i[a++]||i[o-2]),",").concat(Math.round(i[a++]||i[o-1])," ").concat(Math.round(i[a++]||i[o-2]),",").concat(Math.round(i[a]||i[o-1])," \n ");i.closed&&(e+="z");}return e;};},"960236de":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{calculationItemsBBox:function(){return l;},cloneEvent:function(){return s;},formatPadding:function(){return a;},isNaN:function(){return c;},isViewportChanged:function(){return u;},processParallelEdges:function(){return f;},uniqueId:function(){return o;}});var r=n("22b52967"),i=n("e63abf85"),o=function(t){return"".concat(t,"-").concat(Math.random()).concat(Date.now());},a=function(t){if((0,r.isArray)(t))switch(t.length){case 4:return t;case 3:return t.push(t[1]),t;case 2:return t.concat(t);case 1:return[t[0],t[0],t[0],t[0]];default:return[0,0,0,0];}if((0,r.isNumber)(t))return[t,t,t,t];if((0,r.isString)(t)){var e=parseInt(t,10);return[e,e,e,e];}return[0,0,0,0];},s=function(t){var e=new i.G6GraphEvent(t.type,t);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.bubbles=!0,e.item=t.item,e;},u=function(t){if(!t)return!1;for(var e=[1,0,0,0,1,0,0,0,1],n=0;n<9;n++)if(t[n]!==e[n])return!0;return!1;},c=function(t){return Number.isNaN(Number(t));},l=function(t){for(var e=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<t.length;o++){var a=t[o].getBBox(),s=a.minX,u=a.minY,c=a.maxX,l=a.maxY;s<e&&(e=s),u<r&&(r=u),c>n&&(n=c),l>i&&(i=l);}return{x:Math.floor(e),y:Math.floor(r),width:Math.ceil(n)-Math.floor(e),height:Math.ceil(i)-Math.floor(r),minX:e,minY:r,maxX:n,maxY:i};},f=function(t,e,n,r,i){void 0===e&&(e=15),void 0===n&&(n="quadratic"),void 0===r&&(r=void 0),void 0===i&&(i=void 0);for(var o=t.length,a=2*e,s=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],u={},c=[],l={},f=0;f<o;f++){var d=t[f],h=d.source,g=d.target,p="".concat(h,"-").concat(g);if(!c[f]){u[p]||(u[p]=[]),c[f]=!0,u[p].push(d);for(var v=0;v<o;v++)if(f!==v){var m=t[v],y=m.source,b=m.target;c[v]||(h===b&&g===y?(u[p].push(m),c[v]=!0,l["".concat(y,"|").concat(b,"|").concat(u[p].length-1)]=!0):h!==y||g!==b||(u[p].push(m),c[v]=!0));}}}for(var x in u)for(var _=u[x],E=_.length,w=0;w<E;w++){var M=_[w];if(M.source===M.target){i&&(M.type=i),M.loopCfg={position:s[w%8],dist:20*Math.floor(w/8)+50};continue;}if(1===E&&r&&M.source!==M.target){M.type=r;continue;}M.type=n;var C=(w%2==0?1:-1)*(l["".concat(M.source,"|").concat(M.target,"|").concat(w)]?-1:1);E%2==1?M.curveOffset=C*Math.ceil(w/2)*a:M.curveOffset=C*(Math.floor(w/2)*a+e);}return t;};},"96ba28bd":function(t,e,n){!function(n,r){if(void 0!==e&&void 0!==t)r(e,t);else{var i={exports:{}};r(i.exports,i),n.fetchJsonp=i.exports;}}(this,function(t,e){"use strict";var n={timeout:5e3,jsonpCallback:"callback"};function r(t){try{delete window[t];}catch(e){window[t]=void 0;}}function i(t){var e=document.getElementById(t);e&&document.getElementsByTagName("head")[0].removeChild(e);}e.exports=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=t,a=e.timeout||n.timeout,s=e.jsonpCallback||n.jsonpCallback,u=void 0;return new Promise(function(n,c){var l=e.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),f=s+"_"+l;window[l]=function(t){n({ok:!0,json:function(){return Promise.resolve(t);}}),u&&clearTimeout(u),i(f),r(l);},o+=-1===o.indexOf("?")?"?":"&";var d=document.createElement("script");d.setAttribute("src",""+o+s+"="+l),e.charset&&d.setAttribute("charset",e.charset),e.nonce&&d.setAttribute("nonce",e.nonce),e.referrerPolicy&&d.setAttribute("referrerPolicy",e.referrerPolicy),e.crossorigin&&d.setAttribute("crossorigin","true"),d.id=f,document.getElementsByTagName("head")[0].appendChild(d),u=setTimeout(function(){c(Error("JSONP request to "+t+" timed out")),r(l),i(f),window[l]=function(){r(l);};},a),d.onerror=function(){c(Error("JSONP request to "+t+" failed")),r(l),i(f),u&&clearTimeout(u);};});};});},"972cc028":function(t,e,n){"use strict";var r,i,o,a;function s(t){r||(r=document.createElement("table"),i=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")});var e=o.test(t)&&RegExp.$1;e&&e in a||(e="*");var n=a[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var s=n.childNodes[0];return s&&n.contains(s)&&n.removeChild(s),s;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});},"9793154b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{color:function(){return r.default;},rgb:function(){return r.rgb;}});var r=n("852bbaa9")._(n("2c78d2ac"));},"981b4ed1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=function(t,e){if("next"!==t&&"prev"!==t)return e;},i=function(t){t.prev.next=t.next,t.next.prev=t.prev,delete t.next,delete t.prev;},o=function(){function t(){var t={};t.prev=t,t.next=t.prev,this.shortcut=t;}return t.prototype.dequeue=function(){var t=this.shortcut,e=t.prev;if(e&&e!==t)return i(e),e;},t.prototype.enqueue=function(t){var e=this.shortcut;t.prev&&t.next&&i(t),t.next=e.next,e.next.prev=t,e.next=t,t.prev=e;},t.prototype.toString=function(){for(var t=[],e=this.shortcut,n=e.prev;n!==e;)t.push(JSON.stringify(n,r)),n=null==n?void 0:n.prev;return"[".concat(t.join(", "),"]");},t;}();e.default=o;},"983f77c3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("22b52967"),i=n("d5ffb871"),o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function u(t){var e=t.match(s);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0]);}),(0,r.each)(e,function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>';}),n;}var c=function(){function t(t){this.cfg={};var e,n,s,c,l,f,d,h,g,p,v,m,y,b,x,_,E=null,w=(0,r.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?(e=E=(0,i.createSVGElement)("linearGradient"),c=o.exec(t),l=(0,r.mod)((0,r.toRadian)(parseFloat(c[1])),2*Math.PI),f=c[2],l>=0&&l<.5*Math.PI?(n={x:0,y:0},s={x:1,y:1}):.5*Math.PI<=l&&l<Math.PI?(n={x:1,y:0},s={x:0,y:1}):Math.PI<=l&&l<1.5*Math.PI?(n={x:1,y:1},s={x:0,y:0}):(n={x:0,y:1},s={x:1,y:0}),h=(d=Math.tan(l))*d,g=(s.x-n.x+d*(s.y-n.y))/(h+1)+n.x,p=d*(s.x-n.x+d*(s.y-n.y))/(h+1)+n.y,e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",g),e.setAttribute("y2",p),e.innerHTML=u(f)):(v=E=(0,i.createSVGElement)("radialGradient"),y=parseFloat((m=a.exec(t))[1]),b=parseFloat(m[2]),x=parseFloat(m[3]),_=m[4],v.setAttribute("cx",y),v.setAttribute("cy",b),v.setAttribute("r",x),v.innerHTML=u(_)),E.setAttribute("id",w),this.el=E,this.id=w,this.cfg=t,this;}return t.prototype.match=function(t,e){return this.cfg===e;},t;}();},"98a7e844":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp;}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault();},t.prototype.stopPropagation=function(){this.propagationStopped=!0;},t.prototype.toString=function(){return"[Event (type="+this.type+")]";},t.prototype.save=function(){},t.prototype.restore=function(){},t;}();},"98c18c6b":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=n("777fffbe")._(n("e721d551")).default;},"9944ffaa":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{SortableContext:function(){return m;},arrayMove:function(){return a;},arraySwap:function(){return s;},defaultAnimateLayoutChanges:function(){return b;},defaultNewIndexGetter:function(){return y;},hasSortableData:function(){return C;},horizontalListSortingStrategy:function(){return l;},rectSortingStrategy:function(){return f;},rectSwappingStrategy:function(){return d;},sortableKeyboardCoordinates:function(){return S;},useSortable:function(){return M;},verticalListSortingStrategy:function(){return g;}});var r=n("852bbaa9")._(n("5b220c3d")),i=n("915a4463"),o=n("7f663da5");function a(t,e,n){let r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r;}function s(t,e,n){let r=t.slice();return r[e]=t[n],r[n]=t[e],r;}function u(t){return null!==t&&t>=0;}let c={scaleX:1,scaleY:1},l=t=>{var e;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=t,s=null!=(e=n[i])?e:r;if(!s)return null;let u=function(t,e,n){let r=t[e],i=t[e-1],o=t[e+1];return r&&(i||o)?n<e?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width):0;}(n,a,i);if(a===i){let t=n[o];return t?{x:i<o?t.left+t.width-(s.left+s.width):t.left-s.left,y:0,...c}:null;}return a>i&&a<=o?{x:-s.width-u,y:0,...c}:a<i&&a>=o?{x:s.width+u,y:0,...c}:{x:0,y:0,...c};},f=t=>{let{rects:e,activeIndex:n,overIndex:r,index:i}=t,o=a(e,r,n),s=e[i],u=o[i];return u&&s?{x:u.left-s.left,y:u.top-s.top,scaleX:u.width/s.width,scaleY:u.height/s.height}:null;},d=t=>{let e,n,{activeIndex:r,index:i,rects:o,overIndex:a}=t;return(i===r&&(e=o[i],n=o[a]),i===a&&(e=o[i],n=o[r]),n&&e)?{x:n.left-e.left,y:n.top-e.top,scaleX:n.width/e.width,scaleY:n.height/e.height}:null;},h={scaleX:1,scaleY:1},g=t=>{var e;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:a}=t,s=null!=(e=o[n])?e:r;if(!s)return null;if(i===n){let t=o[a];return t?{x:0,y:n<a?t.top+t.height-(s.top+s.height):t.top-s.top,...h}:null;}let u=function(t,e,n){let r=t[e],i=t[e-1],o=t[e+1];return r?n<e?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0;}(o,i,n);return i>n&&i<=a?{x:0,y:-s.height-u,...h}:i<n&&i>=a?{x:0,y:s.height+u,...h}:{x:0,y:0,...h};},p="Sortable",v=r.default.createContext({activeIndex:-1,containerId:p,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:f,disabled:{draggable:!1,droppable:!1}});function m(t){let{children:e,id:n,items:a,strategy:s=f,disabled:u=!1}=t,{active:c,dragOverlay:l,droppableRects:d,over:h,measureDroppableContainers:g}=(0,i.useDndContext)(),m=(0,o.useUniqueId)(p,n),y=null!==l.rect,b=(0,r.useMemo)(()=>a.map(t=>"object"==typeof t&&"id"in t?t.id:t),[a]),x=null!=c,_=c?b.indexOf(c.id):-1,E=h?b.indexOf(h.id):-1,w=(0,r.useRef)(b),M=!function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0;}(b,w.current),C=-1!==E&&-1===_||M,A="boolean"==typeof u?{draggable:u,droppable:u}:u;(0,o.useIsomorphicLayoutEffect)(()=>{M&&x&&g(b);},[M,b,x,g]),(0,r.useEffect)(()=>{w.current=b;},[b]);let S=(0,r.useMemo)(()=>({activeIndex:_,containerId:m,disabled:A,disableTransforms:C,items:b,overIndex:E,useDragOverlay:y,sortedRects:b.reduce((t,e,n)=>{let r=d.get(e);return r&&(t[n]=r),t;},Array(b.length)),strategy:s}),[_,m,A.draggable,A.droppable,C,b,E,d,y,s]);return r.default.createElement(v.Provider,{value:S},e);}let y=t=>{let{id:e,items:n,activeIndex:r,overIndex:i}=t;return a(n,r,i).indexOf(e);},b=t=>{let{containerId:e,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:u,transition:c}=t;return!!c&&!!r&&(s===o||i!==a)&&(!!n||a!==i&&e===u);},x={duration:200,easing:"ease"},_="transform",E=o.CSS.Transition.toString({property:_,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function M(t){var e,n;let{animateLayoutChanges:a=b,attributes:s,disabled:c,data:l,getNewIndex:f=y,id:d,strategy:h,resizeObserverConfig:g,transition:p=x}=t,{items:m,containerId:M,activeIndex:C,disabled:A,disableTransforms:S,sortedRects:D,overIndex:I,useDragOverlay:T,strategy:k}=(0,r.useContext)(v),F="boolean"==typeof c?{draggable:c,droppable:!1}:{draggable:null!=(e=null==c?void 0:c.draggable)?e:A.draggable,droppable:null!=(n=null==c?void 0:c.droppable)?n:A.droppable},N=m.indexOf(d),O=(0,r.useMemo)(()=>({sortable:{containerId:M,index:N,items:m},...l}),[M,l,N,m]),B=(0,r.useMemo)(()=>m.slice(m.indexOf(d)),[m,d]),{rect:P,node:L,isOver:j,setNodeRef:R}=(0,i.useDroppable)({id:d,data:O,disabled:F.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...g}}),{active:z,activatorEvent:G,activeNodeRect:Y,attributes:X,setNodeRef:U,listeners:H,isDragging:W,over:V,setActivatorNodeRef:q,transform:Z}=(0,i.useDraggable)({id:d,data:O,attributes:{...w,...s},disabled:F.draggable}),J=(0,o.useCombinedRefs)(R,U),K=!!z,Q=K&&!S&&u(C)&&u(I),$=!T&&W,tt=$&&Q?Z:null,te=Q?null!=tt?tt:(null!=h?h:k)({rects:D,activeNodeRect:Y,activeIndex:C,overIndex:I,index:N}):null,tn=u(C)&&u(I)?f({id:d,items:m,activeIndex:C,overIndex:I}):N,tr=null==z?void 0:z.id,ti=(0,r.useRef)({activeId:tr,items:m,newIndex:tn,containerId:M}),to=m!==ti.current.items,ta=a({active:z,containerId:M,isDragging:W,isSorting:K,id:d,index:N,items:m,newIndex:ti.current.newIndex,previousItems:ti.current.items,previousContainerId:ti.current.containerId,transition:p,wasDragging:null!=ti.current.activeId}),ts=function(t){let{disabled:e,index:n,node:a,rect:s}=t,[u,c]=(0,r.useState)(null),l=(0,r.useRef)(n);return(0,o.useIsomorphicLayoutEffect)(()=>{if(!e&&n!==l.current&&a.current){let t=s.current;if(t){let e=(0,i.getClientRect)(a.current,{ignoreTransform:!0}),n={x:t.left-e.left,y:t.top-e.top,scaleX:t.width/e.width,scaleY:t.height/e.height};(n.x||n.y)&&c(n);}}n!==l.current&&(l.current=n);},[e,n,a,s]),(0,r.useEffect)(()=>{u&&c(null);},[u]),u;}({disabled:!ta,index:N,node:L,rect:P});return(0,r.useEffect)(()=>{K&&ti.current.newIndex!==tn&&(ti.current.newIndex=tn),M!==ti.current.containerId&&(ti.current.containerId=M),m!==ti.current.items&&(ti.current.items=m);},[K,tn,M,m]),(0,r.useEffect)(()=>{if(tr===ti.current.activeId)return;if(tr&&!ti.current.activeId){ti.current.activeId=tr;return;}let t=setTimeout(()=>{ti.current.activeId=tr;},50);return()=>clearTimeout(t);},[tr]),{active:z,activeIndex:C,attributes:X,data:O,rect:P,index:N,newIndex:tn,items:m,isOver:j,isSorting:K,isDragging:W,listeners:H,node:L,overIndex:I,over:V,setNodeRef:J,setActivatorNodeRef:q,setDroppableNodeRef:R,setDraggableNodeRef:U,transform:null!=ts?ts:te,transition:ts||to&&ti.current.newIndex===N?E:(!$||(0,o.isKeyboardEvent)(G))&&p&&(K||ta)?o.CSS.Transition.toString({...p,property:_}):void 0};}function C(t){if(!t)return!1;let e=t.data.current;return!!e&&"sortable"in e&&"object"==typeof e.sortable&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable;}let A=[i.KeyboardCode.Down,i.KeyboardCode.Right,i.KeyboardCode.Up,i.KeyboardCode.Left],S=(t,e)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:s,over:u,scrollableAncestors:c}}=e;if(A.includes(t.code)){if(t.preventDefault(),!n||!r)return;let e=[];s.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let o=a.get(n.id);if(o)switch(t.code){case i.KeyboardCode.Down:r.top<o.top&&e.push(n);break;case i.KeyboardCode.Up:r.top>o.top&&e.push(n);break;case i.KeyboardCode.Left:r.left>o.left&&e.push(n);break;case i.KeyboardCode.Right:r.left<o.left&&e.push(n);}});let l=(0,i.closestCorners)({active:n,collisionRect:r,droppableRects:a,droppableContainers:e,pointerCoordinates:null}),f=(0,i.getFirstCollision)(l,"id");if(f===(null==u?void 0:u.id)&&l.length>1&&(f=l[1].id),null!=f){let t=s.get(n.id),e=s.get(f),u=e?a.get(e.id):null,l=null==e?void 0:e.node.current;if(l&&u&&t&&e){let n=(0,i.getScrollableAncestors)(l).some((t,e)=>c[e]!==t),a=D(t,e),s=!!(C(t)&&C(e)&&D(t,e))&&t.data.current.sortable.index<e.data.current.sortable.index,f=n||!a?{x:0,y:0}:{x:s?r.width-u.width:0,y:s?r.height-u.height:0},d={x:u.left,y:u.top};return f.x&&f.y?d:(0,o.subtract)(d,f);}}}};function D(t,e){return!!(C(t)&&C(e))&&t.data.current.sortable.containerId===e.data.current.sortable.containerId;}},"9979731d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("22b52967"),i=n("d5ffb871"),o=function(){function t(t){this.type="clip",this.cfg={};var e=(0,i.createSVGElement)("clipPath");this.el=e,this.id=(0,r.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this;}return t.prototype.match=function(){return!1;},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t);},t;}();},99923330:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{compareTwoTarget:function(){return d;},createNodeFromXML:function(){return h;},generateTarget:function(){return f;},getBBox:function(){return l;},parseXML:function(){return c;},xmlDataRenderer:function(){return u;}});var r=n("4c6d310c"),i=n("22b52967"),o=n("85b3418c");function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t;}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t;})(t);}function s(t){if("string"!=typeof t)return t;var e=function(t){if("string"!=typeof t)return t;try{return JSON.parse(t.trim());}catch(e){return t.trim();}},n=e(t);if("string"!=typeof n)return n;for(var r=function(t){return t[t.length-1];},i=t.trim(),o=[],a=[],s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.some(function(t){return r(a)===t;});},u=null,c=0,l="";c<i.length;){var f=i[c],d=s('"',"'");if(!d&&!f.trim()){c+=1;continue;}var h="\\"===i[c-1],g=s("}"),p=s("]"),v=s(","),m=r(o);if(d){if(r(a)!==f||h)l+=f;else{a.pop();var y=e(l);m.push(y),u=y,l="";}}else if(p&&","===f)l&&(m.push(e(l)),l="");else if(g&&":"===f)a.push(","),l&&(m.push(l),l="");else if(v&&","===f)l&&(m.push(e(l)),l=""),a.pop();else if("}"===f&&(g||v)){l&&(m.push(e(l)),l=""),v&&a.pop();for(var b={},x=1;x<m.length;x+=2)b[m[x-1]]=m[x];o.pop(),o.length&&r(o).push(b),a.pop(),u=b;}else"]"===f&&p?(l&&(m.push(e(l)),l=""),o.pop(),o.length&&r(o).push(m),a.pop(),u=m):"{"===f?(o.push([]),a.push("}")):"["===f?(o.push([]),a.push("]")):'"'===f?a.push('"'):"'"===f?a.push("'"):l+=f;c+=1;}return u||l;}var u=function(t){return function(e){for(var n=t.length,r=[],o=0,a="";o<n;)if("{"===t[o]&&"{"===t[o+1])r.push(a),a="",o+=2;else if("}"===t[o]&&"}"===t[o+1]){if(r.length){var s=r.pop();a=(0,i.get)(e,a,s.endsWith("=")?'"{'.concat(a,'}"'):a),r.push(s+a);}o+=2,a="";}else a+=t[o],o+=1;return r.push(a),r.map(function(t,e){return r[e-1]&&r[e-1].endsWith("=")?'"{'.concat(t,'}"'):t;}).join("");};};function c(t,e){var n={},i=t.getAttributeNames&&t.getAttributeNames()||[],o=t.children&&Array.from(t.children).map(function(t){return c(t,e);}),u={},l=t.tagName?t.tagName.toLowerCase():"group";return"text"===l&&(n.text=t.innerText),u.type=l,"img"===l&&(u.type="image"),Array.from(i).forEach(function(e){var i=e.split("-").reduce(function(t,e){return t+e.charAt(0).toUpperCase()+e.slice(1);}),o=t.getAttribute(e);try{if("style"===i||"attrs"===i){var a=s(o);n=(0,r.__assign)((0,r.__assign)({},n),a);}else u[i]=s(o);}catch(t){if("style"===i)throw t;u[i]=o;}}),u.attrs=n,e&&e.style&&u.name&&"object"===a(e.style[u.name])&&(u.attrs=(0,r.__assign)((0,r.__assign)({},u.attrs),e.style[u.name])),e&&e.style&&u.keyshape&&(u.attrs=(0,r.__assign)((0,r.__assign)({},u.attrs),e.style)),o.length&&(u.children=o),u;}function l(t,e,n){var i,a,s=t.attrs,u=void 0===s?{}:s,c={x:e.x||0,y:e.y||0,width:n.width||0,height:n.height||0};switch(t.type){case"maker":case"circle":u.r&&(a=2*u.r,i=2*u.r);break;case"text":u.text&&(a=(0,o.getTextSize)(u.text,u.fontSize||12)[0],i=16,c.y+=i,c.height=i,c.width=a,t.attrs=(0,r.__assign)({fontSize:12,fill:"#000"},u));break;default:u.width&&(a=u.width),u.height&&(i=u.height);}return i>=0&&(c.height=i),a>=0&&(c.width=a),u.marginTop&&(c.y+=u.marginTop),u.marginLeft&&(c.x+=u.marginLeft),c;}function f(t,e){void 0===e&&(e={x:0,y:0});var n,i=(0,r.__assign)({x:0,y:0,width:0,height:0},e);if(null===(n=t.children)||void 0===n?void 0:n.length){var o=t.attrs,a=void 0===o?{}:o,s=a.marginTop,u=(0,r.__assign)({},e);s&&(u.y+=s);for(var c=0;c<t.children.length;c++){t.children[c].attrs.key="".concat(a.key||"root"," -").concat(c," ");var d=f(t.children[c],u);if(d.bbox){var h=d.bbox;"inline"===d.attrs.next?u.x+=d.bbox.width:u.y+=d.bbox.height,h.width+h.x>i.width&&(i.width=h.width+h.x),h.height+h.y>i.height&&(i.height=h.height+h.y);}}}return t.bbox=l(t,e,i),t.attrs=(0,r.__assign)((0,r.__assign)({},t.attrs),t.bbox),t;}function d(t,e){var n,r,i,o,a=(t||{}).type,s=((null==e?void 0:e.attrs)||{}).key;if(s&&t&&(t.attrs.key=s),!t&&e)return{action:"delete",val:e,type:a,key:s};if(t&&!e)return{action:"add",val:t,type:a};if(!t&&!e)return{action:"same",type:a};var u=[];if((null===(n=t.children)||void 0===n?void 0:n.length)>0||(null===(r=e.children)||void 0===r?void 0:r.length)>0)for(var c=Math.max(null===(i=t.children)||void 0===i?void 0:i.length,null===(o=e.children)||void 0===o?void 0:o.length),l=e.children||[],f=t.children||[],h=0;h<c;h+=1)u.push(d(f[h],l[h]));var g=Object.keys(e.attrs),p=Object.keys(t.attrs);return e.type!==t.type?{action:"restructure",nowTarget:t,formerTarget:e,key:s,children:u}:g.filter(function(t){return"children"!==t;}).some(function(n){return t.attrs[n]!==e.attrs[n]||!p.includes(n);})?{action:"change",val:t,children:u,type:a,key:s}:{action:"same",children:u,type:a,key:s};}function h(t){var e={},n=function(e){var n=u("function"==typeof t?t(e):t)(e),r=document.createElement("div");r.innerHTML=n;var i=f(c(r.children[0],e));return r.remove(),i;};return{draw:function(t,i){var o=n(t),a=i;return!function t(e){var n=e.attrs,o=e.bbox,s=e.type,u=e.children,c=(0,r.__rest)(e,["attrs","bbox","type","children"]);if("group"!==e.type){var l=i.addShape(e.type,(0,r.__assign)({attrs:void 0===n?{}:n,origin:{bbox:o,type:s,children:u}},c));e.keyshape&&(a=l);}e.children&&e.children.forEach(function(e){return t(e);});}(o),e[t.id]=[o],a;},update:function(t,i){e[t.id]||(e[t.id]=[]);var o=i.getContainer(),a=o.get("children"),s=n(t),u=d(s,e[t.id].pop()),c=function t(e){var n;"group"!==e.type&&o.addShape(e.type,{attrs:e.attrs}),(null===(n=e.children)||void 0===n?void 0:n.length)&&e.children.map(function(e){return t(e);});},l=function t(e){var n,r=a.find(function(t){return t.attrs.key===e.attrs.key;});r&&o.removeChild(r),(null===(n=e.children)||void 0===n?void 0:n.length)&&e.children.map(function(e){return t(e);});};!function t(e){var n=e.key;if("group"!==e.type){var o=a.find(function(t){return t.attrs.key===n;});switch(e.action){case"change":if(o){var s=e.val.keyshape?i.getOriginStyle():{};o.attr((0,r.__assign)((0,r.__assign)({},s),e.val.attrs));}break;case"add":c(e.val);break;case"delete":l(e.val);break;case"restructure":l(e.formerTarget),c(e.nowTarget);}}e.children&&e.children.forEach(function(e){return t(e);});}(u),e[t.id].push(s);},getAnchorPoints:function(){return[[0,.5],[1,.5],[.5,1],[.5,0]];}};}},"99cf726b":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;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});},"99dbff91":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{angleAtSegments:function(){return u;},distanceAtSegment:function(){return c;},lengthOfSegment:function(){return a;},pointAtSegments:function(){return s;}});var r=n("777fffbe")._(n("d1ab55b2")),i=n("82084c6c");function o(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var o=t[r],a=t[r+1],s=(0,i.distance)(o[0],o[1],a[0],a[1]),u={from:o,to:a,length:s};n.push(u),e+=s;}return{segments:n,totalLength:e};}function a(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],o=t[n+1];e+=(0,i.distance)(r[0],r[1],o[0],o[1]);}return e;}function s(t,e){if(e>1||e<0||t.length<2)return null;var n=o(t),i=n.segments,a=n.totalLength;if(0===a)return{x:t[0][0],y:t[0][1]};for(var s=0,u=null,c=0;c<i.length;c++){var l=i[c],f=l.from,d=l.to,h=l.length/a;if(e>=s&&e<=s+h){var g=(e-s)/h;u=r.default.pointAt(f[0],f[1],d[0],d[1],g);break;}s+=h;}return u;}function u(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=o(t),r=n.segments,i=n.totalLength,a=0,s=0,u=0;u<r.length;u++){var c=r[u],l=c.from,f=c.to,d=c.length/i;if(e>=a&&e<=a+d){s=Math.atan2(f[1]-l[1],f[0]-l[0]);break;}a+=d;}return s;}function c(t,e,n){for(var i=1/0,o=0;o<t.length-1;o++){var a=t[o],s=t[o+1],u=r.default.pointDistance(a[0],a[1],s[0],s[1],e,n);u<i&&(i=u);}return i;}},"99ddfaf3":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n("981b4ed1")),s=n("6b75ac3a"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return i(e,t),e;}(a.default),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return i(e,t),e;}(s.Graph),l=function(){return 1;},f=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)d(t,e,n,r);for(;r=o.dequeue();)d(t,e,n,r);if(t.nodeCount()){for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(d(t,e,n,r,!0));break;}}}return i;},d=function(t,e,n,r,i){var o,a,s=[];return null===(o=t.inEdges(r.v))||void 0===o||o.forEach(function(r){var o=t.edge(r),a=t.node(r.v);i&&s.push({v:r.v,w:r.w,in:0,out:0}),void 0===a.out&&(a.out=0),a.out-=o,g(e,n,a);}),null===(a=t.outEdges(r.v))||void 0===a||a.forEach(function(r){var i=t.edge(r),o=r.w,a=t.node(o);void 0===a.in&&(a.in=0),a.in-=i,g(e,n,a);}),t.removeNode(r.v),i?s:void 0;},h=function(t,e){var n=new c,r=0,i=0;t.nodes().forEach(function(t){n.setNode(t,{v:t,in:0,out:0});}),t.edges().forEach(function(t){var o=n.edge(t)||0,a=(null==e?void 0:e(t))||1;n.setEdge(t.v,t.w,o+a),i=Math.max(i,n.node(t.v).out+=a),r=Math.max(r,n.node(t.w).in+=a);});for(var o=[],a=i+r+3,s=0;s<a;s++)o.push(new u);var l=r+1;return n.nodes().forEach(function(t){g(o,l,n.node(t));}),{buckets:o,zeroIdx:l,graph:n};},g=function(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);};e.default=function(t,e){if(1>=t.nodeCount())return[];var n,r=h(t,e||l);return null===(n=f(r.graph,r.buckets,r.zeroIdx).map(function(e){return t.outEdges(e.v,e.w);}))||void 0===n?void 0:n.flat();};},"9a47d68a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("22b52967"),i={getDefaultCfg:function(){return{};},getEvents:function(){return{};},updateCfg:function(t){return Object.assign(this,t),!0;},shouldBegin:function(){return!0;},shouldUpdate:function(){return!0;},shouldEnd:function(){return!0;},bind:function(t){var e=this,n=this.events;this.graph=t,("drag-canvas"===this.type||"brush-select"===this.type||"lasso-select"===this.type)&&t.get("canvas").set("draggable",!0),(0,r.each)(n,function(e,n){t.on(n,e);}),document.addEventListener("visibilitychange",function(){e.keydown=!1;});},unbind:function(t){var e=this.events,n=t.get("canvas").get("draggable");("drag-canvas"===this.type||"brush-select"===this.type||"lasso-select"===this.type)&&t.get("canvas").set("draggable",!1),(0,r.each)(e,function(e,n){t.off(n,e);}),t.get("canvas").set("draggable",n);},get:function(t){return this[t];},set:function(t,e){return this[t]=e,this;}};},"9a48a41e":function(t,e,n){"use strict";var r;n.d(e,"__esModule",{value:!0}),e.DistanceType=void 0,e.DistanceType=r,(r||(e.DistanceType=r={})).EuclideanDistance="euclideanDistance";},"9a6046d2":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=r._(n("1eabf120")),o=r._(n("0aff2e87")),a=r._(n("c78875f9")),s=r._(n("d49f8c60")),u=Object.prototype.hasOwnProperty,c=function(t){if((0,i.default)(t))return!0;if((0,o.default)(t))return!t.length;var e=(0,a.default)(t);if("Map"===e||"Set"===e)return!t.size;if((0,s.default)(t))return!Object.keys(t).length;for(var n in t)if(u.call(t,n))return!1;return!0;};},"9a8ffbad":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("2df371cc")),o=r._(n("32fd355d")),a=function(t,e){return(0,i.default)((0,o.default)(t),e);};},"9acea899":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("777fffbe"),i=r._(n("21422ae0")),o=r._(n("78294f9e")),a=r._(n("4af4df40")),s=r._(n("e67082b2")),u=r._(n("d8e63692")),c=n("f2fbe439"),l=function(t){(0,s.default)(n,t);var e=(0,u.default)(n);function n(){var t;(0,i.default)(this,n);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return(t=e.call.apply(e,[this].concat(o))).computedStyle=void 0,t.length=0,t.getAnimStart=function(){var e,n,r=(0,a.default)(t),i=r.target,o=r.startAt,s=r.key;if(i){t.computedStyle||(t.computedStyle=(0,c.getComputedStyle)(i));var u=(0,a.default)(t).computedStyle,l=i.tagName,f=function(t){return i.getAttribute(t);};switch(l){case"circle":t.length=2*Math.PI*f("r");break;case"line":t.length=t.getLineLength(f("x1"),f("y1"),f("x2"),f("y2"));break;case"polyline":case"polygon":t.length=t.getPolyLength(l);break;case"ellipse":t.length=t.getEllipseLength();break;case"rect":t.length=2*f("width")+2*f("height");break;case"path":t.length=i.getTotalLength();break;default:throw Error("The label is not a label in the SVG.");}return t.length=parseFloat(t.length.toFixed(3)),o[s]||0===o[s]?n=-(e=t.setVars(o[s])).start:(e="none"!==u.strokeDasharray&&u.strokeDasharray?u.strokeDasharray:"100% 100%",n=parseFloat(u.strokeDashoffset),e=(e=e.split(" ")[0].replace(/\,/i,"")).indexOf("%")>=0?parseFloat(e)/100*t.length:parseFloat(e),e=t.setVars("".concat(-n," ").concat(e-n))),t.start.strokeDasharray=e,t.start.strokeDashoffset=n,t.value=t.setVars(t.value),t.start;}},t.render=function(e){var n=(0,a.default)(t),r=n.value,i=n.start,o=n.length,s=i.strokeDasharray,u=i.strokeDashoffset,c=s.end-s.start+(r.end-s.end-(r.start-s.start))*e;return{strokeDasharray:"".concat(c,"px, ").concat(o,"px"),strokeDashoffset:-((r.start+u)*e-u)};},t;}return(0,o.default)(n,[{key:"setVars",value:function(t){var e={start:0};if("number"==typeof t)return e.end=t,e;var n=t.split(" ");if(n.length>1)e.start=n[0].indexOf("%")>=0?parseFloat(n[0])/100*this.length:parseFloat(n[0]),e.end=n[1].indexOf("%")>=0?parseFloat(n[1])/100*this.length:parseFloat(n[1]);else if(parseFloat(t))e.end=t.indexOf("%")>=0?parseFloat(t)/100*this.length:parseFloat(t);else throw Error("SVGDraw data[".concat(t,"] error."));return e;}},{key:"getPolyLength",value:function(t){var e=this,n=[];(this.target.getAttribute("points")||"").split(/[\s+|,]/).forEach(function(t,e){var r=n[Math.floor(e/2)]||[];r.push(parseFloat(t)),e%2||n.push(r);}),"polygon"===t&&n.push(n[0]);var r=0;return n.forEach(function(t,i){if(i<n.length-1){var o=n[i+1];r+=e.getLineLength(t[0],t[1],o[0],o[1]);}}),r;}},{key:"getEllipseLength",value:function(){var t=parseFloat(this.target.getAttribute("rx")),e=parseFloat(this.target.getAttribute("ry"));if(!t||!e)throw Error("ellipse rx or ry error.");return Math.PI*(3*(t+e)-Math.sqrt((3*t+e)*(3*e+t)));}},{key:"getLineLength",value:function(t,e,n,r){var i=parseFloat(n)-parseFloat(t),o=parseFloat(r)-parseFloat(e);return Math.sqrt(i*i+o*o);}}]),n;}(r._(n("02aaba42")).default);l.key="style",l.className="SVGDraw";},"9b1a8ecb":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return g;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("f6fd9972"),s=n("61db1663"),u=n("206aa8fa"),c=r._(n("0f272cdc")),l=a.ext.transform,f="matrix",d=["zIndex","capture","visible","type"],h=["repeat"],g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,o.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n;}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0};},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1};},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1);},e.prototype.isGroup=function(){return!1;},e.prototype.getParent=function(){return this.get("parent");},e.prototype.getCanvas=function(){return this.get("canvas");},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if((0,o.isObject)(r)){for(var a in r)this.setAttr(a,r[a]);return this.afterAttrsChange(r),this;}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r];},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e);},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n));},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null);},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip");}else this.onCanvasChange("attr");},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this;},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this;},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this;},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.push(this),this.onCanvasChange("zIndex");}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex");}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?((0,s.removeFromArray)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy();},e.prototype.resetMatrix=function(){this.attr(f,this.getDefaultMatrix()),this.onCanvasChange("matrix");},e.prototype.getMatrix=function(){return this.attr(f);},e.prototype.setMatrix=function(t){this.attr(f,t),this.onCanvasChange("matrix");},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?(0,u.multiplyMatrix)(n,e):e||n,this.set("totalMatrix",t);}return t;},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?(0,u.multiplyMatrix)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t);},e.prototype.getDefaultMatrix=function(){return null;},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?(0,u.multiplyVec2)(e,t):t;},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=(0,u.invert)(e);if(n)return(0,u.multiplyVec2)(n,t);}return t;},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[(0,o.upperFirst)(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}));}return this.set("clipShape",n),this.onCanvasChange("clip"),n;},e.prototype.getClip=function(){return this.cfg.clipShape||null;},e.prototype.clone=function(){var t=this,e=this.attrs,n={};(0,o.each)(e,function(t,r){(0,o.isArray)(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)(0,o.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e;}(e[r]):n[r]=e[r];});var r=new this.constructor({attrs:n});return(0,o.each)(d,function(e){r.set(e,t.get(e));}),r;},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this));},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused;},e.prototype.animate=function(){for(var t,e,n,r,i,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var u,c,l,f=this.get("timeline");f||(f=this.get("canvas").get("timeline"),this.set("timeline",f));var d=this.get("animations")||[];f.timer||f.initTimer();var g=a[0],p=a[1],v=a[2],m=void 0===v?"easeLinear":v,y=a[3],b=void 0===y?o.noop:y,x=a[4],_=void 0===x?0:x;(0,o.isFunction)(g)?(t=g,g={}):(0,o.isObject)(g)&&g.onFrame&&(t=g.onFrame,e=g.repeat),(0,o.isObject)(p)?(p=(i=p).duration,m=i.easing||"easeLinear",_=i.delay||0,e=i.repeat||e||!1,b=i.callback||o.noop,n=i.pauseCallback||o.noop,r=i.resumeCallback||o.noop):((0,o.isNumber)(b)&&(_=b,b=null),(0,o.isFunction)(m)?(b=m,m="easeLinear"):m=m||"easeLinear");var E=(u=g,c={},l=this.attr(),(0,o.each)(u,function(t,e){-1!==h.indexOf(e)||(0,o.isEqual)(l[e],t)||(c[e]=t);}),c),w={fromAttrs:function(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n;}(E,this),toAttrs:E,duration:p,easing:m,repeat:e,callback:b,pauseCallback:n,resumeCallback:r,delay:_,startTime:f.getTime(),id:(0,o.uniqueId)(),onFrame:t,pathFormatted:!1};d.length>0?d=function(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,a=Object.prototype.hasOwnProperty;return(0,o.each)(t,function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&(0,o.each)(e.toAttrs,function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n]);});}),t;}(d,w):f.addAnimator(this),d.push(w),this.set("animations",d),this.set("_pause",{isPaused:!1});}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,o.each)(n,function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback();}),this.set("animating",!1),this.set("animations",[]);},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,o.each)(e,function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback();}),this.set("_pause",{isPaused:!0,pauseTime:n}),this;},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,o.each)(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback();}),this.set("_pause",{isPaused:!1}),this.set("animations",e),this;},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents(),"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var a=this,u=0;u<i.length&&"break"!==function(t){var u=i[t],c=u.get("name");if(c){if((u.isGroup()||u.isCanvas&&u.isCanvas())&&n&&(0,s.isParent)(u,n))return"break";(0,o.isArray)(c)?(0,o.each)(c,function(t){r.emitDelegateEvent(u,t,e);}):a.emitDelegateEvent(u,c,e);}}(u);u++);},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n));},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=l(this.getMatrix(),[["t",t,e]]);return this.setMatrix(n),this;},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this;},e.prototype.moveTo=function(t,e){return this.move(t,e);},e.prototype.scale=function(t,e){var n=l(this.getMatrix(),[["s",t,e||t]]);return this.setMatrix(n),this;},e.prototype.rotate=function(t){var e=l(this.getMatrix(),[["r",t]]);return this.setMatrix(e),this;},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=l(this.getMatrix(),[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(i),this;},e.prototype.rotateAtPoint=function(t,e,n){var r=l(this.getMatrix(),[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this;},e;}(c.default);},"9b61cbc5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.addClassName=c,e.addEvent=function(t,e,n,r){if(!t)return;let i={capture:!0,...r};t.addEventListener?t.addEventListener(e,n,i):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n;},e.addUserSelectStyles=function(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||((e=t.createElement("style")).type="text/css",e.id="react-draggable-style-el",e.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",e.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(e)),t.body&&c(t.body,"react-draggable-transparent-selection");},e.createCSSTransform=function(t,e){let n=u(t,e,"px");return{[(0,i.browserPrefixToKey)("transform",i.default)]:n};},e.createSVGTransform=function(t,e){return u(t,e,"");},e.getTouch=function(t,e){return t.targetTouches&&(0,r.findInArray)(t.targetTouches,t=>e===t.identifier)||t.changedTouches&&(0,r.findInArray)(t.changedTouches,t=>e===t.identifier);},e.getTouchIdentifier=function(t){return t.targetTouches&&t.targetTouches[0]?t.targetTouches[0].identifier:t.changedTouches&&t.changedTouches[0]?t.changedTouches[0].identifier:void 0;},e.getTranslation=u,e.innerHeight=function(t){let e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,r.int)(n.paddingTop),e-=(0,r.int)(n.paddingBottom);},e.innerWidth=function(t){let e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=(0,r.int)(n.paddingLeft),e-=(0,r.int)(n.paddingRight);},e.matchesSelector=s,e.matchesSelectorAndParentsTo=function(t,e,n){let r=t;do{if(s(r,e))return!0;if(r===n)break;r=r.parentNode;}while(r)return!1;},e.offsetXYFromParent=function(t,e,n){let r=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect();return{x:(t.clientX+e.scrollLeft-r.left)/n,y:(t.clientY+e.scrollTop-r.top)/n};},e.outerHeight=function(t){let e=t.clientHeight,n=t.ownerDocument.defaultView.getComputedStyle(t);return e+((0,r.int)(n.borderTopWidth)+(0,r.int)(n.borderBottomWidth));},e.outerWidth=function(t){let e=t.clientWidth,n=t.ownerDocument.defaultView.getComputedStyle(t);return e+((0,r.int)(n.borderLeftWidth)+(0,r.int)(n.borderRightWidth));},e.removeClassName=l,e.removeEvent=function(t,e,n,r){if(!t)return;let i={capture:!0,...r};t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null;},e.removeUserSelectStyles=function(t){if(t)try{if(t.body&&l(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{let e=(t.defaultView||window).getSelection();e&&"Caret"!==e.type&&e.removeAllRanges();}}catch(t){}};var r=n("77bf7b9a"),i=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=o(void 0);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a];}return r.default=t,n&&n.set(t,r),r;}(n("521e1f60"));function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e;})(t);}let a="";function s(t,e){return a||(a=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(e){return(0,r.isFunction)(t[e]);})),!!(0,r.isFunction)(t[a])&&t[a](e);}function u(t,e,n){let{x:r,y:i}=t,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(e){let t="".concat("string"==typeof e.x?e.x:e.x+n),r="".concat("string"==typeof e.y?e.y:e.y+n);o="translate(".concat(t,", ").concat(r,")")+o;}return o;}function c(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e));}function l(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"");}},"9b8a07e5":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("f5b38a88")),i=function(t){return(0,r.default)(t,"Boolean");};},"9beab91b":function(t,e,n){"use strict";function r(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"9cd1844d":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{elasticIn:function(){return o;},elasticInOut:function(){return s;},elasticOut:function(){return a;}});var r=n("cb805605"),i=2*Math.PI,o=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return e*(0,r.tpmt)(- --t)*Math.sin((o-t)/n);}return a.amplitude=function(e){return t(e,n*i);},a.period=function(n){return t(e,n);},a;}(1,.3),a=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return 1-e*(0,r.tpmt)(t=+t)*Math.sin((t+o)/n);}return a.amplitude=function(e){return t(e,n*i);},a.period=function(n){return t(e,n);},a;}(1,.3),s=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return((t=2*t-1)<0?e*(0,r.tpmt)(-t)*Math.sin((o-t)/n):2-e*(0,r.tpmt)(t)*Math.sin((o+t)/n))/2;}return a.amplitude=function(e){return t(e,n*i);},a.period=function(n){return t(e,n);},a;}(1,.3);},"9cd1b7c7":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"path2String",{enumerable:!0,get:function(){return i;}});var r=n("dfd2f987");function i(t,e){return void 0===e&&(e="off"),(0,r.roundPath)(t,e).map(function(t){return t[0]+t.slice(1).join(" ");}).join("");}},"9cf49413":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("ddeef58a");function i(t,e,n,i,o,a,s){var u=o/2;return(0,r.inBox)(t-u,e-u,n,o,a,s)||(0,r.inBox)(t+n-u,e-u,o,i,a,s)||(0,r.inBox)(t+u,e+i-u,n,o,a,s)||(0,r.inBox)(t-u,e+u,o,i,a,s);}},"9d40785a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("ee6934bf");function i(t){var e,n=t.base,i=t.tickCount,o=t.min,a=t.max,s=t.values,u=(0,r.log)(n,a);if(o>0)e=Math.floor((0,r.log)(n,o));else{var c=(0,r.getLogPositiveMin)(s,n,a);e=Math.floor((0,r.log)(n,c));}for(var l=Math.ceil((u-e)/i),f=[],d=e;d<u+l;d+=l)f.push(Math.pow(n,d));return o<=0&&f.unshift(0),f;}},"9d78baf1":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("533b8f72")),i=function(t){var e=0,n=0,i=0,o=0;return(0,r.default)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o};};},"9db2e324":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return p;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("5fab14e3"),a=n("ddb380bf"),s=n("168feef4"),u=n("f6fd9972"),c=n("22b52967"),l=n("c966c938"),f=r._(n("29fffa42")),d=n("8f388c3e"),h=n("a419be20"),g=u.ext.transform,p=function(t){function e(e){var n=t.call(this,e)||this,r=n.get("defaultNode");return r||n.set("defaultNode",{type:"circle"}),r.type||(r.type="circle",n.set("defaultNode",r)),n.destroyed=!1,n;}return(0,i.__extends)(e,t),e.prototype.initLayoutController=function(){var t=new h.LayoutController(this);this.set({layoutController:t});},e.prototype.initEventController=function(){var t=new h.EventController(this);this.set({eventController:t});},e.prototype.initCanvas=function(){var t,e=this.get("container");if("string"==typeof e&&(e=document.getElementById(e),this.set("container",e)),!e)throw Error("invalid container");var n=e.clientWidth,r=e.clientHeight,i=this.get("width")||n,s=this.get("height")||r;if(this.get("width")||this.get("height")||(this.set("width",n),this.set("height",r)),"svg"===this.get("renderer"))t=new a.Canvas({container:e,width:i,height:s});else{var u={container:e,width:i,height:s},c=this.get("pixelRatio");c&&(u.pixelRatio=c,window.devicePixelRatio=c),t=new o.Canvas(u);}this.set("canvas",t);},e.prototype.initPlugins=function(){var t=this;(0,c.each)(t.get("plugins"),function(e){!e.destroyed&&e.initPlugin&&e.initPlugin(t);});},e.prototype.downloadImageWatermark=function(t,e,n,r){return(0,i.__awaiter)(this,void 0,void 0,function(){var o,a,s;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return a=(o=t.style.backgroundImage).slice(5,o.length-2),(s=new Image).src=a,[4,new Promise(function(t){s.onload=function(){var i=e.createPattern(s,"repeat");e.rect(0,0,n,r),e.fillStyle=i,e.fill(),t("");};})];case 1:return i.sent(),[2];}});});},e.prototype.asyncToDataUrl=function(t,e,n,r,o,a){var s=this,u=document.querySelector(".g6-graph-watermarker"),c=this.get("canvas"),l=c.getRenderer(),f=a||c.get("el"),d="";t||(t="image/png"),setTimeout(function(){return(0,i.__awaiter)(s,void 0,void 0,function(){var a,s,c,h,g,p,v,m,y,b;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if("svg"!==l)return[3,1];return a=f.cloneNode(!0),s=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(c=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",s)).replaceChild(a,c.documentElement),h=new XMLSerializer().serializeToString(c),d="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(h)),[3,4];case 1:if(g=void 0,p=f.getContext("2d"),v=r||this.get("width"),m=o||this.get("height"),y=void 0,!u)return[3,3];return[4,this.downloadImageWatermark(u,p,v,m)];case 2:i.sent(),i.label=3;case 3:if(e){b="undefined"!=typeof window?window.devicePixelRatio:1;try{g=p.getImageData(0,0,v*b,m*b),y=p.globalCompositeOperation,p.globalCompositeOperation="destination-over",p.fillStyle=e,p.fillRect(0,0,v,m);}catch(t){console.error("Download image failed. Out of memory at ImageData creation");}}d=f.toDataURL(t),e&&(p.clearRect(0,0,v,m),p.putImageData(g,0,0),p.globalCompositeOperation=y),i.label=4;case 4:return n&&n(d),[2];}});});},16);},e.prototype.toDataURL=function(t,e){var n=this.get("canvas"),r=n.getRenderer(),i=n.get("el");t||(t="image/png");var o="";if("svg"===r){var a=i.cloneNode(!0),s=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),u=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",s);u.replaceChild(a,u.documentElement);var c=new XMLSerializer().serializeToString(u);o="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(c));}else{var l=void 0,f=i.getContext("2d"),d=Math.max(this.get("width"),500),h=Math.max(this.get("height"),500),g=void 0;if(e){var p="undefined"!=typeof window&&window.devicePixelRatio||1;try{l=f.getImageData(0,0,d*p,h*p),g=f.globalCompositeOperation,f.globalCompositeOperation="destination-over",f.fillStyle=e,f.fillRect(0,0,d,h);}catch(t){console.error("Download image failed. Out of memory at ImageData creation");}}o=i.toDataURL(t),e&&(f.clearRect(0,0,d,h),f.putImageData(l,0,0),f.globalCompositeOperation=g);}return o;},e.prototype.toFullDataURL=function(t,e,n){var r=this.get("group").getCanvasBBox(),i=r.height,s=r.width,u=this.get("renderer"),f=(0,l.createDom)('<div id="virtual-image"></div>'),d=n?n.backgroundColor:void 0,h=n?n.padding:void 0;h?(0,c.isNumber)(h)&&(h=[h,h,h,h]):h=[0,0,0,0];var p=i+h[0]+h[2],v=s+h[1]+h[3],m={container:f,height:p,width:v,quickHit:!0},y="svg"===u?new a.Canvas(m):new o.Canvas(m),b=this.get("group").clone(),x=(0,c.clone)(b.getMatrix());x||(x=[1,0,0,0,1,0,0,0,1]),x=g(x,[["t",-((r.maxX+r.minX)/2),-((r.maxY+r.minY)/2)],["t",s/2+h[3],i/2+h[0]]]),b.resetMatrix(),b.setMatrix(x),y.add(b);var _=y.get("el"),E="";e||(e="image/png"),setTimeout(function(){if("svg"===u){var n=_.cloneNode(!0),r=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",r);i.replaceChild(n,i.documentElement);var o=new XMLSerializer().serializeToString(i);E="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(o));}else{var a=void 0,s=_.getContext("2d"),c=void 0;if(d){var l="undefined"!=typeof window?window.devicePixelRatio:1;try{a=s.getImageData(0,0,v*l,p*l),c=s.globalCompositeOperation,s.globalCompositeOperation="destination-over",s.fillStyle=d,s.fillRect(0,0,v,p);}catch(t){console.error("Download image failed. Out of memory at ImageData creation");}}E=_.toDataURL(e),d&&(s.clearRect(0,0,v,p),s.putImageData(a,0,0),s.globalCompositeOperation=c);}t&&t(E);},16);},e.prototype.downloadFullImage=function(t,e,n){var r=this,i=this.get("group").getCanvasBBox(),s=i.height,u=i.width,f=this.get("renderer"),h=(0,l.createDom)('<div id="virtual-image"></div>'),p=document.querySelector(".g6-graph-watermarker"),v=n?n.backgroundColor:void 0,m=n?n.padding:void 0;m?(0,c.isNumber)(m)&&(m=[m,m,m,m]):m=[0,0,0,0];var y=s+m[0]+m[2],b=u+m[1]+m[3];if(p){var x=this.get("graphWaterMarker").cfg||{},_=x.width,E=x.height;y=Math.ceil(y/E)*E,b=Math.ceil(b/_)*_;}var w={container:h,height:y,width:b},M="svg"===f?new a.Canvas(w):new o.Canvas(w),C=this.get("group"),A=(0,d.cloneGElement)(C),S=(0,c.clone)(A.getMatrix());S||(S=[1,0,0,0,1,0,0,0,1]),S=g(S,[["t",-((i.maxX+i.minX)/2),-((i.maxY+i.minY)/2)],["t",u/2+m[3],s/2+m[0]]]),A.resetMatrix(),A.setMatrix(S),M.add(A);var D=M.get("el");e||(e="image/png"),this.asyncToDataUrl(e,v,function(n){var i=document.createElement("a"),o=(t||"graph")+("svg"===f?".svg":".".concat(e.split("/")[1]));r.dataURLToImage(n,f,i,o);var a=document.createEvent("MouseEvents");a.initEvent("click",!1,!1),i.dispatchEvent(a);},b,y,D);},e.prototype.downloadImage=function(t,e,n){var r=this;this.stopAnimate();var i=this.get("canvas").getRenderer();e||(e="image/png");var o=(t||"graph")+("svg"===i?".svg":".".concat(e.split("/")[1])),a=document.createElement("a");this.asyncToDataUrl(e,n,function(t){r.dataURLToImage(t,i,a,o);var e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),a.dispatchEvent(e);});},e.prototype.dataURLToImage=function(t,e,n,r){if(!t||"data:"===t){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return;}if("undefined"!=typeof window){if(window.Blob&&window.URL&&"svg"!==e){var i=t.split(","),o="";if(i&&i.length>0){var a=i[0].match(/:(.*?);/);a&&a.length>=2&&(o=a[1]);}for(var s=atob(i[1]),u=s.length,c=new Uint8Array(u);u--;)c[u]=s.charCodeAt(u);var l=new Blob([c],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(l,r):n.addEventListener("click",function(){n.download=r,n.href=window.URL.createObjectURL(l);});}else n.addEventListener("click",function(){n.download=r,n.href=t;});}},e.prototype.addPlugin=function(t){t.destroyed||(this.get("plugins").push(t),t.initPlugin(this));},e.prototype.removePlugin=function(t){var e=this.get("plugins"),n=e.indexOf(t);n>=0&&(t.destroyPlugin(),e.splice(n,1));},e.prototype.setImageWaterMarker=function(t,e){void 0===t&&(t=f.default.waterMarkerImage);var n=this.get("container");(0,c.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=(0,c.deepMix)({},f.default.imageWaterMarkerConfig,e),a=i.width,s=i.height,u=i.compatible,l=i.image;if(!t){var d=u?n:document.querySelector(".g6-graph-watermarker");d&&(d.style.cssText=void 0),r&&r.clear();return;}if(r)r.clear();else{var h={container:n,width:a,height:s,capture:!1},g=this.get("pixelRatio");g&&(h.pixelRatio=g,window.devicePixelRatio=g),r=new o.Canvas(h),this.set("graphWaterMarker",r);}r.get("el").style.display="none";var p=r.get("context"),v=l.rotate,m=l.x,y=l.y;p.rotate(-v*Math.PI/180);var b=new Image;b.crossOrigin="anonymous",b.src=t,b.onload=function(){if(p.drawImage(b,m,y,l.width,l.height),p.rotate(v*Math.PI/180),u)n.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var t=document.querySelector(".g6-graph-watermarker");t||((t=document.createElement("div")).className="g6-graph-watermarker"),t.className="g6-graph-watermarker",r.destroyed||(t.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),n.appendChild(t));}};},e.prototype.setTextWaterMarker=function(t,e){var n=this.get("container");(0,c.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=(0,c.deepMix)({},f.default.textWaterMarkerConfig,e),a=i.width,s=i.height,u=i.compatible,l=i.text;if(!(null==t?void 0:t.length)){var d=u?n:document.querySelector(".g6-graph-watermarker");d&&(d.style.cssText=void 0),r&&r.clear();return;}if(r)r.clear();else{var h={container:n,width:a,height:s,capture:!1},g=this.get("pixelRatio");g&&(h.pixelRatio=g,window.devicePixelRatio=g),r=new o.Canvas(h),this.set("graphWaterMarker",r);}r.get("el").style.display="none";var p=r.get("context"),v=l.rotate,m=l.fill,y=l.fontFamily,b=l.fontSize,x=l.baseline,_=l.x,E=l.y,w=l.lineHeight;p.rotate(-v*Math.PI/180),p.font="".concat(b,"px ").concat(y),p.fillStyle=m,p.textBaseline=x;for(var M=(0,c.isString)(t)?[t]:t,C=M.length-1;C>=0;C--)p.fillText(M[C],_,E+C*w);if(p.rotate(v*Math.PI/180),u)n.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var A=document.querySelector(".g6-graph-watermarker");A||((A=document.createElement("div")).className="g6-graph-watermarker"),A.style.cssText="background-image: url(".concat(r.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),n.appendChild(A);}},e.prototype.destroy=function(){(0,c.each)(this.get("plugins"),function(t){t.destroyPlugin();});var e,n,r,i,o=this.get("tooltips");if(o)for(var a=0;a<o.length;a++){var s=o[a];if(s){var u=s.parentElement;u&&u.removeChild(s);}}null===(e=this.get("eventController"))||void 0===e||e.destroy(),null===(n=this.get("layoutController"))||void 0===n||n.destroy(),null===(r=this.get("graphWaterMarker"))||void 0===r||r.destroy(),null===(i=document.querySelector(".g6-graph-watermarker"))||void 0===i||i.remove(),t.prototype.destroy.call(this);},e;}(s.AbstractGraph);},"9dd59558":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{gradient:function(){return i.gradient;},rgb2arr:function(){return r.rgb2arr;},toCSSGradient:function(){return a.toCSSGradient;},toRGB:function(){return o.toRGB;}});var r=n("0a78b5f4"),i=n("b31b1462"),o=n("2acda869"),a=n("df464bfa");},"9e233233":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("8b6af789")),o=r._(n("b55953a3")),a=function(t,e,n){return(0,i.default)(n)?!!n(t,e):(0,o.default)(t,e);};},"9e958141":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return p;},useStickyBox:function(){return g;}});var r=n("5b220c3d"),i=n("f19d2b93"),o=t=>{let e=t;for(;e=e.parentElement;){let t=getComputedStyle(e,null).getPropertyValue("overflow-y");if(e===document.body)break;if("auto"===t||"scroll"===t||"overlay"===t)return e;}return window;},a=t=>!t.firstChild||t.firstChild.offsetParent===t,s=(t,e)=>{let n=t,r=0;a(e)||(r+=t.offsetTop-e.offsetTop,e=t.offsetParent,r+=-t.offsetTop);do r+=n.offsetTop,n=n.offsetParent;while(n&&n!==e)return r;},u=t=>{let e=t.parentElement;for(;e&&"contents"===getComputedStyle(e,null).getPropertyValue("display");)e=e.parentElement;return e||window;},c=null;"undefined"!=typeof CSS&&CSS.supports&&(CSS.supports("position","sticky")?c="sticky":CSS.supports("position","-webkit-sticky")&&(c="-webkit-sticky"));var l=!1;try{let t=Object.defineProperty({},"passive",{get(){l={passive:!0};}}),e=()=>{};window.addEventListener("testPassive",e,t),window.removeEventListener("testPassive",e,t);}catch(t){}var f=t=>{let{el:e,onChange:n,unsubs:r,measure:i}=t;if(e===window){let t=()=>({top:0,left:0,height:window.innerHeight,width:window.innerWidth}),e=i(t()),o=()=>{Object.assign(e,i(t())),n();};return window.addEventListener("resize",o,l),r.push(()=>window.removeEventListener("resize",o)),e;}{let t=i(e.getBoundingClientRect()),o=new ResizeObserver(()=>{Object.assign(t,i(e.getBoundingClientRect())),n();});return o.observe(e),r.push(()=>o.disconnect()),t;}},d=t=>{let e=getComputedStyle(t,null);return{top:parseInt(e.getPropertyValue("padding-top"),10),bottom:parseInt(e.getPropertyValue("padding-bottom"),10)};},h=(t,e,n)=>{let{bottom:r,offsetBottom:i,offsetTop:h}=n,g=o(t),p=!1,v=()=>{p||requestAnimationFrame(()=>{let e=b();if(e!==S)D(e);else if(1!==e||r){if(2===e){let{height:e,offsetTop:n}=_,{height:o,naturalTop:a}=M,{height:s}=C,u=Math.max(0,n+m+e-(a+s+i));if(r){let e=Math.max(0,o-s-u);t.style.bottom=`${e}px`;}else t.style.top=`${u}px`;}}else{let{height:e}=_,{height:n}=C;t.style.top=`${e-n-i}px`;}p=!1;}),p=!0;},m=g===window?window.scrollY:g.scrollTop,y=t=>{let{offsetTop:e,height:n}=_,{naturalTop:r}=M,{height:o}=C;return t+e+n>=r+o+A+i;},b=()=>{let{height:t}=_,{height:e}=C;return e+h+i<=t?3:y(m)?1:2;},x=g!==window&&a(g),_=f({el:g,onChange:v,unsubs:e,measure:({height:t,top:e})=>({height:t,offsetTop:x?e:0})}),E=u(t),w=E===window?{top:0,bottom:0}:d(E),M=f({el:E,onChange:v,unsubs:e,measure:({height:t})=>({height:t-w.top-w.bottom,naturalTop:E===window?0:s(E,g)+w.top+_.offsetTop})}),C=f({el:t,onChange:v,unsubs:e,measure:({height:t})=>({height:t})}),A=0,S=b(),D=e=>{let n=S;if(S=e,2===n&&(A=-1),3===e){t.style.position=c,r?t.style.bottom=`${i}px`:t.style.top=`${h}px`;return;}let{height:o,offsetTop:a}=_,{height:s,naturalTop:u}=M,{height:l}=C;if(2===e){if(t.style.position="relative",A=0===n?Math.max(0,a+m-u+h):Math.max(0,a+m+o-(u+l+i)),r){let e=Math.max(0,s-l-A);t.style.bottom=`${e}px`;}else t.style.top=`${A}px`;}else t.style.position=c,1===e?r?t.style.bottom=`${i}px`:t.style.top=`${o-l-i}px`:r?t.style.bottom=`${o-l-i}px`:t.style.top=`${h}px`;};D(S);let I=t=>{if(t===m)return;let e=t-m;if(m=t,3===S)return;let{offsetTop:n,height:r}=_,{naturalTop:o,height:a}=M,{height:s}=C;if(e>0){if(0===S){if(t+n+h>o){let e=Math.max(0,n+m-o+h);t+n+r<=o+s+e+i?D(2):D(1);}}else 2===S&&y(t)&&D(1);}else if(1===S){if(n+t+r<o+a+i){let e=Math.max(0,n+m+r-(o+s+i));n+t+h>=o+e?D(2):D(0);}}else 2===S&&n+t+h<o+A&&D(0);},T=g===window?()=>I(window.scrollY):()=>I(g.scrollTop);g.addEventListener("scroll",T,l),g.addEventListener("mousewheel",T,l),e.push(()=>g.removeEventListener("scroll",T),()=>g.removeEventListener("mousewheel",T));},g=({offsetTop:t=0,offsetBottom:e=0,bottom:n=!1}={})=>{let[i,o]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!i||!c)return;let r=[];return h(i,r,{offsetBottom:e,offsetTop:t,bottom:n}),()=>{r.forEach(t=>t());};},[i,e,t,n]),o;},p=t=>{let{offsetTop:e,offsetBottom:n,bottom:r,children:o,className:a,style:s}=t,u=g({offsetTop:e,offsetBottom:n,bottom:r});return(0,i.jsx)("div",{className:a,style:s,ref:u,children:o});};},"9e98119e":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("0aff2e87"));function i(t){if((0,r.default)(t))return t[0];}},"9ec2f18a":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("22b52967"),o=r._(n("a208e0df")),a=r._(n("4b34eb62")),s=r._(n("d700b812"));function u(t){var e=t.min,n=t.max,r=t.tickInterval,u=t.minLimit,c=t.maxLimit,l=(0,o.default)(t);return(0,i.isNil)(u)&&(0,i.isNil)(c)?r?(0,a.default)(e,n,r).ticks:l:(0,s.default)(t,(0,i.head)(l),(0,i.last)(l));}},"9ef64537":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("a679da2f")),a=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)!function t(e,n,r,a){for(var s in r=r||0,a=a||5,n)if(function(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(null==t)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e);}(n,s)){var u=n[s];null!==u&&(0,o.default)(u)?((0,o.default)(e[s])||(e[s]={}),r<a?t(e[s],u,r+1,a):e[s]=n[s]):(0,i.default)(u)?(e[s]=[],e[s]=e[s].concat(u)):void 0!==u&&(e[s]=u);}}(t,e[r]);return t;};},"9f0170dc":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(){};},"9f1bbdf3":function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return d;}});var r=n("777fffbe"),i=r._(n("00b43322")),o=r._(n("6f63505d")),a=r._(n("78294f9e")),s=r._(n("21422ae0")),u=n("0e8397d7"),c=n("f2fbe439"),l=r._(n("03ff4c3d")),f=(0,a.default)(function t(e){var n=this;(0,s.default)(this,t),this.props=void 0,this.computedStyle=void 0,this.root=void 0,this.index=void 0,this.targetIndex=void 0,this.tweenVars={},this.transformName=void 0,this.filterName=void 0,this.target=void 0,this.start={},this.startAt={},this.propsData={data:{},type:{},unit:{},count:{},splitStr:{},isTransform:{}},this.setDefaultData=function(){var t=n.props;for(var e in t){var r=t[e],i=r.split&&r.split(/\s+|,/).length>1||e.match(/color|fill|stroke/i)||e.match(/shadow/i);if(("background"===e||"backgroundImage"===e)&&r.match(/[a-z|-]+\(([\s\S]*?)\)/gi)){n.propsData.data[e]={value:r,plugin:l.default.GradientsPlugin};continue;}if(i){n.propsData.data[e]={value:r,plugin:l.default.ArrayPlugin};continue;}var o=(0,u.getGsapType)(e),a=n.getTweenData(o,t[e]);n.propsData.data[o]=a.data[o],n.propsData.type[o]=a.type[o],n.propsData.unit[o]=a.unit[o],n.propsData.count[o]=a.count[o],n.propsData.isTransform[o]="transform"===(0,u.isConvert)(o),a.splitStr[o]&&(n.propsData.splitStr[o]=a.splitStr[o]);}},this.getTweenData=function(t,e){var n={data:{},isTransform:{},type:{},unit:{},count:{},splitStr:{}};n.data[t]=e;var r="string"==typeof n.data[t];n.unit[t]=r?n.data[t].replace(/[^a-z|%]/g,""):"",n.count[t]=r?n.data[t].replace(/[^+|=|-]/g,""):"";var i=r?parseFloat(n.data[t].replace(/[a-z|%|=]/g,"")):n.data[t];return n.data[t]=i||0===i?i:n.data[t],n;},this.setStartAtValue=function(t,e){return"object"===(0,o.default)(e)?(0,c.getStartAtValue)(t,e):t;},this.getAnimStart=function(){var t=n.target,e=n.root,r=n.targetIndex,a=n.propsData,s=n.startAt,l=n.start,f=n.tweenVars,d={};for(var h in s)d[(0,u.getGsapType)(h)]=s[h];for(var g in n.computedStyle=n.computedStyle||(0,c.getComputedStyle)(t),f.style=f.style||{},a.data){var p=a.data[g];if(p.plugin){var v=new p.plugin(p.value,g);v.target=t,v.root=e,v.parent=parent,v.index=n.index,v.targetIndex=r,v.tweenVars=f,v.startAt=n.startAt,v.computedStyle=n.computedStyle,p.plugin=v,l[g]=v.getAnimStart();continue;}var m=(0,u.isConvert)(g),y="transform"===m?n.transformName:m;y="filter"===m?n.filterName:y;var b=f.style[y],x=null!=b?b:n.computedStyle[m],_=null!==(A=d[g])&&void 0!==A?A:x,E=a.unit[g],w="";if("transform"===m){var M,C,A,S,D,I=(M=M||(_===b?(0,i.default)({},b):(0,u.getTransform)(n.computedStyle[n.transformName])))[g];d&&g in d&&(I=n.setStartAtValue(null!==(S=null!==(D=d[g].vars)&&void 0!==D?D:null==b?void 0:b[g])&&void 0!==S?S:I,d[g]),w=d[g].unit,"scale"===g?(M.scaleX=I,M.scaleY=I):M[g]=I),w!==E&&(I=(0,c.startConvertToEndUnit)({target:t,computedStyle:n.computedStyle,style:m,value:I,startUnit:w,endUnit:E}),"scale"===g?(M.scaleX=I,M.scaleY=I):M[g]=I),l[n.transformName]=M;}else if("filter"===m){var T,k,F=u.cssList.filterConvert[g]||g;(C=C||(_===b?(0,i.default)({},b):(0,u.splitFilterToObject)(x)||{}))[F]=C[F]||c.initFilterValue[F];var N=C[F];d&&g in d&&(N=n.setStartAtValue(null!==(T=d[g].vars)&&void 0!==T?T:N,d[g]),w=d[g].unit,C[F]=N),E!==w&&(C[F]=(0,c.startConvertToEndUnit)({target:t,computedStyle:n.computedStyle,style:m,value:N,startUnit:w,endUnit:E,fixed:(null===(k=n.computedStyle)||void 0===k?void 0:k.position)==="fixed"})),l[n.filterName]=C;}else{(_=null!==(O=d[g])&&void 0!==O?O:x)&&"none"!==_&&"auto"!==_||(_=""),E=a.unit[m],w="object"===(0,o.default)(_)?_.unit:"".concat(_).replace(/[^a-z|%]/g,""),_=n.setStartAtValue(x,d[g]),E!==w&&(_=(0,c.startConvertToEndUnit)({target:t,computedStyle:n.computedStyle,style:m,value:parseFloat(_),startUnit:w,endUnit:E,fixed:(null===(B=n.computedStyle)||void 0===B?void 0:B.position)==="fixed"}));var O,B,P=parseFloat(_);l[m]=isNaN(P)?(0,c.getDefaultStart)(m):P;}}return l;},this.render=function(t){var e=n.propsData,r=n.start,o=n.tweenVars.style||{};r[n.transformName]&&!o[n.transformName]&&(o[n.transformName]=(0,i.default)({},r[n.transformName])),r[n.filterName]&&!o[n.filterName]&&(o[n.filterName]=(0,i.default)({},r[n.filterName]));var a=o[n.transformName],s=o[n.filterName],l=e.data,f=e.unit,d=e.count,h=e.isTransform;for(var g in l){var p=l[g];if(p.plugin){o[g]=p.plugin.render(t);continue;}var v=h[g],m=v?r[n.transformName][g]:r[g],y=f[g],b=d[g];if(v){if("scale"===g){var x=r[n.transformName].scaleX,_=r[n.transformName].scaleY;"="===b.charAt(1)?(a.scaleX=x+p*t,a.scaleY=_+p*t):(a.scaleX=(p-x)*t+x,a.scaleY=(p-_)*t+_);}else a[g]=(0,c.getValue)(parseFloat(m),p,t,b,y);a.text=(0,c.getTransformValue)(o[n.transformName]);}else if(u.cssList.filter.indexOf(g)>=0){var E=u.cssList.filterConvert[g]||g;for(var w in m=parseFloat(r[n.filterName][E])||0,s[E]=(0,c.getValue)(m,p,t,b,y),s.text="",s)"text"!==w&&(s.text="".concat(s.text," ").concat(w,"(").concat(s[w],")").trim());}else{var M=(0,u.stylesToCss)(g,0);M="number"==typeof M?0:M.replace(/[^a-z|%]/g,""),y=y||M,"string"==typeof p?o[g]=p:o[g]=(0,c.getValue)(m,p,t,b,y);}}return o;},this.props=e,this.transformName=(0,u.checkStyleName)("transform"),this.filterName=(0,u.checkStyleName)("filter")||"filter",this.setDefaultData();});f.key="style",f.className="style";var d=f;},"9f8bfa32":function(t,e,n){"use strict";function r(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},"9fc83412":function(t,e,n){"use strict";function r(t){return(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;})(t);}function i(t){try{return structuredClone(t);}catch(e){return function t(e,n){if(void 0===n&&(n=new WeakMap),null===e)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if("object"!==r(e))return e;if(n.get(e))return n.get(e);var i=Array.isArray(e)?[]:{};for(var o in n.set(e,i),e)e.hasOwnProperty(o)&&void 0!==e[o]&&(i[o]=t(e[o],n));return i;}(t);}}n.d(e,"__esModule",{value:!0}),n.d(e,"deepClone",{enumerable:!0,get:function(){return i;}});},a0735234:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("833ce629");function i(t){var e=t.attr(),n=e.x1,i=e.y1,o=e.x2,a=e.y2,s={minX:Math.min(n,o),maxX:Math.max(n,o),minY:Math.min(i,a),maxY:Math.max(i,a)};return{x:(s=(0,r.mergeArrowBBox)(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY};}},a0a79107:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"angleTo",{enumerable:!0,get:function(){return o;}});var r=n("b018614c"),i=n("712ef330");function o(t,e,n){var o=r.vec2.angle(t,e),a=(0,i.direction)(t,e)>=0;return n?a?2*Math.PI-o:o:a?o:2*Math.PI-o;}},a0f2fb57:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},a=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e));};Object.defineProperty(e,"__esModule",{value:!0}),e.DagreCompoundLayout=void 0;var s=n("5092cda5"),u=n("eefea704"),c=n("38788347"),l=function(t){function e(e){var n=t.call(this)||this;return n.rankdir="TB",n.nodesep=50,n.edgesep=5,n.ranksep=50,n.controlPoints=!0,n.anchorPoint=!0,n.nodes=[],n.edges=[],n.combos=[],n.onLayoutEnd=function(){},n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,begin:void 0,nodeSize:void 0,nodesep:50,ranksep:50,controlPoints:!0,anchorPoint:!0};},e.prototype.init=function(t){var e=t.hiddenNodes||[],n=t.hiddenEdges||[],r=t.hiddenCombos||[];this.nodes=this.getDataByOrder((t.nodes||[]).concat(e)),this.edges=this.getDataByOrder((t.edges||[]).concat(n)),this.combos=(t.combos||[]).concat(r.map(function(t){return o(o({},t),{collapsed:!0});}));},e.prototype.execute=function(){var t=this.nodes,e=this.edges;if(t){var n=this.getLayoutConfig(),r=n.graphDef,i=n.graphOption,o=n.graphSettings,a=(0,u.buildGraph)(r,i,o),s=(0,u.flatGraph)(a,!0);return this.updatePosition(s),this.onLayoutEnd&&this.onLayoutEnd(),{nodes:t,edges:e};}},e.prototype.getNodePath=function(t){var e=this.nodes,n=this.combos,r=e.find(function(e){return e.id===t;}),i=function(t,e){void 0===e&&(e=[]);var r=n.find(function(e){return e.id===t;});return r&&(e.unshift(t),r.parentId)?i(r.parentId,e):e;};return r&&r.comboId?i(r.comboId,[t]):[t];},e.prototype.getLayoutConfig=function(){var t,e,n,r,i,s=this.nodes,l=this.edges,f=this.combos,d=this.nodeSize,h=this.rankdir,g=this.align,p=this.edgesep,v=this.nodesep,m=this.ranksep,y=this.settings,b=(f||[]).reduce(function(t,e){var n=s.filter(function(t){return t.comboId===e.id;}).map(function(t){return t.id;}),r=(f||[]).filter(function(t){return t.parentId===e.id;}).map(function(t){return t.id;});return(n.length||r.length)&&(t[e.id]=a(a([],n,!0),r,!0)),t;},{});i=d?(0,c.isArray)(d)?function(){return d;}:function(){return[d,d];}:function(t){return t&&t.size?(0,c.isArray)(t.size)?t.size:(0,c.isObject)(t.size)?[t.size.width||40,t.size.height||40]:[t.size,t.size]:[40,40];};var x=(t=null==f?void 0:f[0])&&t.size?(0,c.isArray)(t.size)?t.size:[t.size,t.size]:[80,40],_=x[0],E=x[1],w=null===(n=null===(e=this.graphSettings)||void 0===e?void 0:e.subScene)||void 0===n?void 0:n.meta,M=(null===(r=f.find(function(t){return!t.collapsed;}))||void 0===r?void 0:r.padding)||[20,20,20,20],C=M[0],A=M[1],S=M[2],D=M[3],I={compound:b,nodes:a([],(s||[]).map(function(t){var e=i(t),n=e[0],r=e[1];return o(o({},t),{width:n,height:r});}),!0),edges:a([],(l||[]).map(function(t){return o(o({},t),{v:t.source,w:t.target});}),!0)},T={expanded:(f||[]).filter(function(t){return!t.collapsed;}).map(function(t){return t.id;})},k={graph:{meta:{align:g,rankDir:h,nodeSep:v,edgeSep:p,rankSep:m}},subScene:{meta:{paddingTop:C||(null==w?void 0:w.paddingTop)||20,paddingRight:A||(null==w?void 0:w.paddingRight)||20,paddingBottom:S||(null==w?void 0:w.paddingBottom)||20,paddingLeft:D||(null==w?void 0:w.paddingLeft)||20,labelHeight:0}},nodeSize:{meta:{width:_,height:E}}},F=(0,u.mergeConfig)(y,o({},(0,u.mergeConfig)(k,u.LAYOUT_CONFIG)));return this.graphSettings=F,{graphDef:I,graphOption:T,graphSettings:F};},e.prototype.updatePosition=function(t){var e=t.nodes,n=t.edges;this.updateNodePosition(e,n),this.updateEdgePosition(e,n);},e.prototype.getBegin=function(t,e){var n=this.begin,r=[0,0];if(n){var i=1/0,o=1/0;t.forEach(function(t){i>t.x&&(i=t.x),o>t.y&&(o=t.y);}),e.forEach(function(t){t.points.forEach(function(t){i>t.x&&(i=t.x),o>t.y&&(o=t.y);});}),r[0]=n[0]-i,r[1]=n[1]-o;}return r;},e.prototype.updateNodePosition=function(t,e){var n=this.combos,r=this.nodes,i=this.edges,o=this.anchorPoint,a=this.graphSettings,s=this.getBegin(t,e);t.forEach(function(t){var c,l=t.x,f=t.y,d=t.id,h=t.type,g=t.coreBox;if(h===u.HierarchyNodeType.META&&d!==u.ROOT_NAME){var p=n.findIndex(function(t){return t.id===d;}),v=null===(c=null==a?void 0:a.subScene)||void 0===c?void 0:c.meta;n[p].offsetX=l+s[0],n[p].offsetY=f+s[1],n[p].fixSize=[g.width,g.height],n[p].fixCollapseSize=[g.width,g.height],t.expanded?n[p].padding=[null==v?void 0:v.paddingTop,null==v?void 0:v.paddingRight,null==v?void 0:v.paddingBottom,null==v?void 0:v.paddingLeft]:n[p].padding=[0,0,0,0];}else if(h===u.HierarchyNodeType.OP){var p=r.findIndex(function(t){return t.id===d;});if(r[p].x=l+s[0],r[p].y=f+s[1],o){var m=[],y=e.filter(function(t){return t.v===d;}),b=e.filter(function(t){return t.w===d;});y.length>0&&y.forEach(function(e){var n=e.points[0],r=(n.x-l)/t.width+.5,o=(n.y-f)/t.height+.5;m.push([r,o]),e.baseEdgeList.forEach(function(t){var e=i.find(function(e){return e.source===t.v&&e.target===t.w;});e&&(e.sourceAnchor=m.length-1);});}),b.length>0&&b.forEach(function(e){var n=e.points[e.points.length-1],r=(n.x-l)/t.width+.5,o=(n.y-f)/t.height+.5;m.push([r,o]),e.baseEdgeList.forEach(function(t){var e=i.find(function(e){return e.source===t.v&&e.target===t.w;});e&&(e.targetAnchor=m.length-1);});}),r[p].anchorPoints=m.length>0?m:r[p].anchorPoints||[];}}});},e.prototype.updateEdgePosition=function(t,e){var n=this,r=n.combos,i=n.edges,s=n.controlPoints,c=this.getBegin(t,e);s&&(r.forEach(function(t){t.inEdges=[],t.outEdges=[];}),i.forEach(function(e){var i,s,l,f,d=t.find(function(t){return t.id===e.source;}),h=t.find(function(t){return t.id===e.target;}),g=[],p=[];if(d&&h)p=(0,u.getEdges)(null==d?void 0:d.id,null==h?void 0:h.id,t);else if(!d||!h){var v=n.getNodePath(e.source),m=n.getNodePath(e.target),y=v.reverse().slice(d?0:1).find(function(e){return t.find(function(t){return t.id===e;});}),b=m.reverse().slice(h?0:1).find(function(e){return t.find(function(t){return t.id===e;});});d=t.find(function(t){return t.id===y;}),h=t.find(function(t){return t.id===b;}),p=(0,u.getEdges)(null==d?void 0:d.id,null==h?void 0:h.id,t,{v:e.source,w:e.target});}if(g=(g=p.reduce(function(t,e){return a(a([],t,!0),e.points.map(function(t){return o(o({},t),{x:t.x+c[0],y:t.y+c[1]});}),!0);},[])).slice(1,-1),e.controlPoints=g,(null==h?void 0:h.type)===u.NodeType.META){var x=r.findIndex(function(t){return t.id===(null==h?void 0:h.id);});if(!r[x]||(null===(i=r[x].inEdges)||void 0===i?void 0:i.some(function(t){return t.source===d.id&&t.target===h.id;})))return;null===(s=r[x].inEdges)||void 0===s||s.push({source:d.id,target:h.id,controlPoints:g});}if((null==d?void 0:d.type)===u.NodeType.META){var x=r.findIndex(function(t){return t.id===(null==d?void 0:d.id);});if(!r[x]||(null===(l=r[x].outEdges)||void 0===l?void 0:l.some(function(t){return t.source===d.id&&t.target===h.id;})))return;null===(f=r[x].outEdges)||void 0===f||f.push({source:d.id,target:h.id,controlPoints:g});}}));},e.prototype.getType=function(){return"dagreCompound";},e.prototype.getDataByOrder=function(t){return t.every(function(t){return void 0!==t.layoutOrder;})||t.forEach(function(t,e){t.layoutOrder=e;}),t.sort(function(t,e){return t.layoutOrder-e.layoutOrder;});},e;}(s.Base);e.DagreCompoundLayout=l;},a0fdd668:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"PathParser",{enumerable:!0,get:function(){return r;}});var r=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err="";};},a1bb866d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("501adece")),i=Number.isInteger?Number.isInteger:function(t){return(0,r.default)(t)&&t%1==0;};},a208e0df:function(t,e,n){"use strict";function r(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new s;return o.domain([e,n]),r&&o.nice(i),o.ticks(i);}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var i=Math.sqrt(50),o=Math.sqrt(10),a=Math.sqrt(2),s=function(){function t(){this._domain=[0,1];}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice();},t.prototype.nice=function(t){void 0===t&&(t=5);var e,n,r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],c=this._domain[a];return c<s&&(s=(e=[c,s])[0],c=e[1],o=(n=[a,o])[0],a=n[1]),(r=u(s,c,t))>0?r=u(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,t):r<0&&(r=u(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(c/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(c*r)/r,this.domain(i)),this;},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=u(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),o=Array(i=Math.ceil((e=Math.floor(e/a))-t+1));++s<i;)o[s]=(t+s)*a;else for(o=Array(i=Math.ceil((t=Math.floor(t*a))-(e=Math.ceil(e*a))+1));++s<i;)o[s]=(t-s)/a;return r&&o.reverse(),o;}(this._domain[0],this._domain[this._domain.length-1],t||5);},t;}();function u(t,e,n){var r=(e-t)/Math.max(0,n),s=Math.floor(Math.log(r)/Math.LN10),u=r/Math.pow(10,s);return s>=0?(u>=i?10:u>=o?5:u>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=i?10:u>=o?5:u>=a?2:1);}},a262488c:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0});var i=n("7dd60bd7"),o=n("cf034cb6"),a=r(n("800259b1")),s=i.longestPath,u=function(t){(0,i.longestPathWithLayer)(t),(0,o.feasibleTreeWithLayer)(t);},c=function(t){(0,a.default)(t);};e.default=function(t){switch(t.graph().ranker){case"network-simplex":c(t);break;case"tight-tree":default:u(t);break;case"longest-path":s(t);}};},a2f77c4e:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=c(void 0);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o];}return r.default=t,n&&n.set(t,r),r;}(n("5b220c3d")),i=u(n("3a7a6ddb")),o=u(n("57627102")),a=n("681e86b9"),s=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function u(t){return t&&t.__esModule?t:{default:t};}function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e;})(t);}function l(){return(l=Object.assign?Object.assign.bind():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;}).apply(this,arguments);}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable;})),n.push.apply(n,r);}return n;}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach(function(e){var r,i;r=e,i=n[e],(r=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}(t,"string");return"symbol"==typeof e?e:String(e);}(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i;}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));});}return t;}function h(t,e){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;})(t,e);}var g=function(t){function e(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var r=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(r,function(){return e.props.onResize&&e.props.onResize(t,n);})):e.setState(r);},e;}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t),e.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null;},e.prototype.render=function(){var t=this.props,e=t.handle,n=t.handleSize,i=(t.onResize,t.onResizeStart),a=t.onResizeStop,u=t.draggableOpts,c=t.minConstraints,f=t.maxConstraints,h=t.lockAspectRatio,g=t.axis,p=(t.width,t.height,t.resizeHandles),v=t.style,m=t.transformScale,y=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i;}(t,s);return r.createElement(o.default,{axis:g,draggableOpts:u,handle:e,handleSize:n,height:this.state.height,lockAspectRatio:h,maxConstraints:f,minConstraints:c,onResizeStart:i,onResize:this.onResize,onResizeStop:a,resizeHandles:p,transformScale:m,width:this.state.width},r.createElement("div",l({},y,{style:d(d({},v),{},{width:this.state.width+"px",height:this.state.height+"px"})})));},e;}(r.Component);e.default=g,g.propTypes=d(d({},a.resizableProps),{},{children:i.default.element});},a3210f79:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{assign:function(){return l;},default:function(){return T;},defaultI18n:function(){return g;},format:function(){return D;},parse:function(){return I;},setGlobalDateI18n:function(){return v;},setGlobalDateMasks:function(){return S;}});var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",o="\\d\\d",a="[^\\s]+",s=/\[([^]*?)\]/gm;function u(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n;}var c=function(t){return function(e,n){var r=n[t].map(function(t){return t.toLowerCase();}).indexOf(e.toLowerCase());return r>-1?r:null;};};function l(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];for(var o in i)t[o]=i[o];}return t;}var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],h=u(d,3),g={dayNamesShort:u(f,3),dayNames:f,monthNamesShort:h,monthNames:d,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10];}},p=l({},g),v=function(t){return p=l(p,t);},m=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&");},y=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t;},b={D:function(t){return String(t.getDate());},DD:function(t){return y(t.getDate());},Do:function(t,e){return e.DoFn(t.getDate());},d:function(t){return String(t.getDay());},dd:function(t){return y(t.getDay());},ddd:function(t,e){return e.dayNamesShort[t.getDay()];},dddd:function(t,e){return e.dayNames[t.getDay()];},M:function(t){return String(t.getMonth()+1);},MM:function(t){return y(t.getMonth()+1);},MMM:function(t,e){return e.monthNamesShort[t.getMonth()];},MMMM:function(t,e){return e.monthNames[t.getMonth()];},YY:function(t){return y(String(t.getFullYear()),4).substr(2);},YYYY:function(t){return y(t.getFullYear(),4);},h:function(t){return String(t.getHours()%12||12);},hh:function(t){return y(t.getHours()%12||12);},H:function(t){return String(t.getHours());},HH:function(t){return y(t.getHours());},m:function(t){return String(t.getMinutes());},mm:function(t){return y(t.getMinutes());},s:function(t){return String(t.getSeconds());},ss:function(t){return y(t.getSeconds());},S:function(t){return String(Math.round(t.getMilliseconds()/100));},SS:function(t){return y(Math.round(t.getMilliseconds()/10),2);},SSS:function(t){return y(t.getMilliseconds(),3);},a:function(t,e){return 12>t.getHours()?e.amPm[0]:e.amPm[1];},A:function(t,e){return 12>t.getHours()?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase();},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4);},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(Math.floor(Math.abs(e)/60),2)+":"+y(Math.abs(e)%60,2);}},x=function(t){return+t-1;},_=[null,i],E=[null,a],w=["isPm",a,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null;}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n;}return 0;}],C={D:["day",i],DD:["day",o],Do:["day",i+a,function(t){return parseInt(t,10);}],M:["month",i,x],MM:["month",o,x],YY:["year",o,function(t){var e=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t);}],h:["hour",i,void 0,"isPm"],hh:["hour",o,void 0,"isPm"],H:["hour",i],HH:["hour",o],m:["minute",i],mm:["minute",o],s:["second",i],ss:["second",o],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t;}],SS:["millisecond",o,function(t){return 10*+t;}],SSS:["millisecond","\\d{3}"],d:_,dd:_,ddd:E,dddd:E,MMM:["month",a,c("monthNamesShort")],MMMM:["month",a,c("monthNames")],a:w,A:w,ZZ:M,Z:M},A={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},S=function(t){return l(A,t);},D=function(t,e,n){if(void 0===e&&(e=A.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw Error("Invalid Date pass to format");e=A[e]||e;var i=[];e=e.replace(s,function(t,e){return i.push(e),"@@@";});var o=l(l({},p),n);return(e=e.replace(r,function(e){return b[e](t,o);})).replace(/@@@/g,function(){return i.shift();});};function I(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw Error("Invalid format in fecha parse");if(e=A[e]||e,t.length>1e3)return null;var i,o={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],u=[],c=e.replace(s,function(t,e){return u.push(m(e)),"@@@";}),f={},d={};c=m(c).replace(r,function(t){var e=C[t],n=e[0],r=e[1],i=e[3];if(f[n])throw Error("Invalid format. "+n+" specified twice in format");return f[n]=!0,i&&(d[i]=!0),a.push(e),"("+r+")";}),Object.keys(d).forEach(function(t){if(!f[t])throw Error("Invalid format. "+t+" is required in specified format");}),c=c.replace(/@@@/g,function(){return u.shift();});var h=t.match(RegExp(c,"i"));if(!h)return null;for(var g=l(l({},p),n),v=1;v<h.length;v++){var y=a[v-1],b=y[0],x=y[2],_=x?x(h[v],g):+h[v];if(null==_)return null;o[b]=_;}if(1===o.isPm&&null!=o.hour&&12!=+o.hour?o.hour=+o.hour+12:0===o.isPm&&12==+o.hour&&(o.hour=0),null==o.timezoneOffset){i=new Date(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond);for(var E=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],v=0,w=E.length;v<w;v++)if(f[E[v][0]]&&o[E[v][0]]!==i[E[v][1]]())return null;}else if(i=new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute-o.timezoneOffset,o.second,o.millisecond)),o.month>11||o.month<0||o.day>31||o.day<1||o.hour>23||o.hour<0||o.minute>59||o.minute<0||o.second>59||o.second<0)return null;return i;}var T={format:D,parse:I,defaultI18n:g,setGlobalDateI18n:v,setGlobalDateMasks:S};},a3b9da61:function(t,e,n){"use strict";function r(t){return t*t;}function i(t){return t*(2-t);}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2;}n.d(e,"__esModule",{value:!0}),n.e(e,{quadIn:function(){return r;},quadInOut:function(){return o;},quadOut:function(){return i;}});},a3e01854:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){var e=0,n=[],r=new Map,i=[];return t.nodes().forEach(function(o){r.has(o)||function o(a){var s={onStack:!0,lowlink:e,index:e};if(r.set(a,s),e+=1,n.push(a),null===(u=t.successors(a))||void 0===u||u.forEach(function(t){var e;if(r.has(t)){if(null===(e=r.get(t))||void 0===e?void 0:e.onStack){var n=r.get(t);s.lowlink=Math.min(s.lowlink,n.index);}}else{o(t);var i=r.get(t);s.lowlink=Math.min(s.lowlink,i.lowlink);}}),s.lowlink===s.index){var u,c,l=[];do c=n.pop(),r.get(c).onStack=!1,l.push(c);while(a!==c)i.push(l);}}(o);}),i;};},a419be20:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{EventController:function(){return i.default;},LayoutController:function(){return o.default;}});var r=n("777fffbe"),i=r._(n("4b39050c")),o=r._(n("a8873221"));},a511e68a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r={},i=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t];};},a66da5d2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("8d42ebc3"),i=n("833ce629");function o(t){for(var e=t.attr().points,n=[],o=[],a=0;a<e.length;a++){var s=e[a];n.push(s[0]),o.push(s[1]);}var u=r.Util.getBBoxByArray(n,o),c=u.x,l=u.y,f={minX:c,minY:l,maxX:c+u.width,maxY:l+u.height};return{x:(f=(0,i.mergeArrowBBox)(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY};}},a679da2f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("5bdfb181")),o=r._(n("f5b38a88")),a=function(t){if(!(0,i.default)(t)||!(0,o.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e;};},a6822745:function(t,e,n){"use strict";e.__esModule=!0,e.cloneElement=function(t,e){return e.style&&t.props.style&&(e.style=a(a({},t.props.style),e.style)),e.className&&t.props.className&&(e.className=t.props.className+" "+e.className),i.default.cloneElement(t,e);};var r,i=(r=n("5b220c3d"))&&r.__esModule?r:{default:r};function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable;})),n.push.apply(n,r);}return n;}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){var r,i;r=e,i=n[e],(r=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}(t,"string");return"symbol"==typeof e?e:String(e);}(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i;}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));});}return t;}},a69397bb:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=t.nodes().filter(function(e){var n;return!(null===(n=t.children(e))||void 0===n?void 0:n.length);}).map(function(e){return t.node(e).rank;}),r=Math.max.apply(Math,n),i=[],o=0;o<r+1;o++)i[o]=[];null==e||e.forEach(function(e){var n=t.node(e);!n||null!=n&&n.dummy||isNaN(n.rank)||(n.fixorder=i[n.rank].length,i[n.rank].push(e));});};},a6d12089:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{catmullRomToBezier:function(){return u;},fillPath:function(){return T;},fillPathByDiff:function(){return N;},formatPath:function(){return P;},intersection:function(){return D;},parsePathArray:function(){return v;},parsePathString:function(){return s;},pathToAbsolute:function(){return l;},pathToCurve:function(){return g;},rectPath:function(){return E;}});var r=n("22b52967"),i=" \n\v\f\r \xa0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029",o=RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if((0,r.isArray)(t))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(o,function(r,i,o){var s=[],u=i.toLowerCase();if(o.replace(a,function(t,e){e&&s.push(+e);}),"m"===u&&s.length>2&&(n.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&n.push([i,s[0]]),"r"===u)n.push([i].concat(s));else for(;s.length>=e[u]&&(n.push([i].concat(s.splice(0,e[u]))),e[u]););return t;}),n;},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{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?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y]);}return n;},c=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a),c=e+n*Math.sin(-r*a),l=e+n*Math.sin(-i*a);o=[["M",s,c],["A",n,n,0,+(i-r>180),0,u,l]];}else o=[["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 o;},l=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,l=0,f=0;"M"===t[0][0]&&(i=+t[0][1],o=+t[0][2],a=i,l=o,f++,r[0]=["M",i,o]);for(var d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),h=void 0,g=void 0,p=f,v=t.length;p<v;p++){if(r.push(h=[]),(e=(g=t[p])[0])!==e.toUpperCase())switch(h[0]=e.toUpperCase(),h[0]){case"A":h[1]=g[1],h[2]=g[2],h[3]=g[3],h[4]=g[4],h[5]=g[5],h[6]=+g[6]+i,h[7]=+g[7]+o;break;case"V":h[1]=+g[1]+o;break;case"H":h[1]=+g[1]+i;break;case"R":n=[i,o].concat(g.slice(1));for(var m=2,y=n.length;m<y;m++)n[m]=+n[m]+i,n[++m]=+n[m]+o;r.pop(),r=r.concat(u(n,d));break;case"O":r.pop(),(n=c(i,o,g[1],g[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),h=["U"].concat((r=r.concat(c(i,o,g[1],g[2],g[3])))[r.length-1].slice(-2));break;case"M":a=+g[1]+i,l=+g[2]+o;break;default:for(var m=1,y=g.length;m<y;m++)h[m]=+g[m]+(m%2?i:o);}else if("R"===e)n=[i,o].concat(g.slice(1)),r.pop(),r=r.concat(u(n,d)),h=["R"].concat(g.slice(-2));else if("O"===e)r.pop(),(n=c(i,o,g[1],g[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),h=["U"].concat((r=r.concat(c(i,o,g[1],g[2],g[3])))[r.length-1].slice(-2));else for(var b=0,x=g.length;b<x;b++)h[b]=g[b];if("O"!==(e=e.toUpperCase()))switch(h[0]){case"Z":i=+a,o=+l;break;case"H":i=h[1];break;case"V":o=h[1];break;case"M":a=h[h.length-2],l=h[h.length-1];break;default:i=h[h.length-2],o=h[h.length-1];}}return r;},f=function(t,e,n,r){return[t,e,n,r,n,r];},d=function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o];},h=function(t,e,n,r,i,o,a,s,u,c){n===r&&(n+=1);var l,f,d,g,p,v=120*Math.PI/180,m=Math.PI/180*(+i||0),y=[],b=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)};};if(c)f=c[0],d=c[1],g=c[2],p=c[3];else{t=(l=b(t,e,-m)).x,e=l.y,s=(l=b(s,u,-m)).x,u=l.y,t===s&&e===u&&(s+=1,u+=1);var x=(t-s)/2,_=(e-u)/2,E=x*x/(n*n)+_*_/(r*r);E>1&&(n*=E=Math.sqrt(E),r*=E);var w=n*n,M=r*r,C=(o===a?-1:1)*Math.sqrt(Math.abs((w*M-w*_*_-M*x*x)/(w*_*_+M*x*x)));g=C*n*_/r+(t+s)/2,p=-(C*r)*x/n+(e+u)/2,f=Math.asin(((e-p)/r).toFixed(9)),d=Math.asin(((u-p)/r).toFixed(9)),f=t<g?Math.PI-f:f,d=s<g?Math.PI-d:d,f<0&&(f=2*Math.PI+f),d<0&&(d=2*Math.PI+d),a&&f>d&&(f-=2*Math.PI),!a&&d>f&&(d-=2*Math.PI);}var A=d-f;if(Math.abs(A)>v){var S=d,D=s,I=u;y=h(s=g+n*Math.cos(d=f+v*(a&&d>f?1:-1)),u=p+r*Math.sin(d),n,r,i,0,a,D,I,[d,S,g,p]);}A=d-f;var T=Math.cos(f),k=Math.cos(d),F=Math.tan(A/4),N=4/3*n*F,O=4/3*r*F,B=[t,e],P=[t+N*Math.sin(f),e-O*T],L=[s+N*Math.sin(d),u-O*k],j=[s,u];if(P[0]=2*B[0]-P[0],P[1]=2*B[1]-P[1],c)return[P,L,j].concat(y);y=[P,L,j].concat(y).join().split(",");for(var R=[],z=0,G=y.length;z<G;z++)R[z]=z%2?b(y[z-1],y[z],m).y:b(y[z],y[z+1],m).x;return R;},g=function(t,e){var n,r=l(t),i=e&&l(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],c="",g="",p=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(h.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(d(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(d(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));}return t;},v=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0);}},m=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.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&&(g=s[y-1])),r[y]=p(r[y],o,g),"A"!==s[y]&&"C"===c&&(s[y]="C"),v(r,y),i&&(i[y]&&(c=i[y][0]),"C"!==c&&(u[y]=c,y&&(g=u[y-1])),i[y]=p(i[y],a,g),"A"!==u[y]&&"C"===c&&(u[y]="C"),v(i,y)),m(r,i,o,a,y),m(i,r,a,o,y);var b=r[y],x=i&&i[y],_=b.length,E=i&&x.length;o.x=b[_-2],o.y=b[_-1],o.bx=parseFloat(b[_-4])||o.x,o.by=parseFloat(b[_-3])||o.y,a.bx=i&&(parseFloat(x[E-4])||a.x),a.by=i&&(parseFloat(x[E-3])||a.y),a.x=i&&x[E-2],a.y=i&&x[E-1];}return i?[r,i]:r;},p=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(p,"$1");},m=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n;},y=function(t,e,n,r,i,o,a,s,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,h=0;h<12;h++){var g=c*l[h]+c,p=m(g,t,n,i,a),v=m(g,e,r,o,s),y=p*p+v*v;d+=f[h]*Math.sqrt(y);}return c*d;},b=function(t,e,n,r,i,o,a,s){for(var u,c,l,f,d,h=[],g=[[],[]],p=0;p<2;++p){if(0===p?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,l=3*n-3*t):(c=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,l=3*r-3*e),1e-12>Math.abs(u)){if(1e-12>Math.abs(c))continue;(f=-l/c)>0&&f<1&&h.push(f);continue;}var v=c*c-4*l*u,m=Math.sqrt(v);if(!(v<0)){var y=(-c+m)/(2*u);y>0&&y<1&&h.push(y);var b=(-c-m)/(2*u);b>0&&b<1&&h.push(b);}}for(var x=h.length,_=x;x--;)d=1-(f=h[x]),g[0][x]=d*d*d*t+3*d*d*f*n+3*d*f*f*i+f*f*f*a,g[1][x]=d*d*d*e+3*d*d*f*r+3*d*f*f*o+f*f*f*s;return g[0][_]=t,g[1][_]=e,g[0][_+1]=a,g[1][_+1]=s,g[0].length=g[1].length=_+2,{min:{x:Math.min.apply(0,g[0]),y:Math.min.apply(0,g[1])},max:{x:Math.max.apply(0,g[0]),y:Math.max.apply(0,g[1])}};},x=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var c=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,l=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,f=+c.toFixed(2),d=+l.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,a).toFixed(2)||f>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:c,y:l};}}},_=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height;},E=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 o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=v,o;},w=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:E(t,e,n,r),vb:[t,e,n,r].join(" ")};},M=function(t,e,n,i,o,a,s,u){(0,r.isArray)(t)||(t=[t,e,n,i,o,a,s,u]);var c=b.apply(null,t);return w(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y);},C=function(t,e,n,r,i,o,a,s,u){var c=1-u,l=Math.pow(c,3),f=Math.pow(c,2),d=u*u,h=d*u,g=t+2*u*(n-t)+d*(i-2*n+t),p=e+2*u*(r-e)+d*(o-2*r+e),v=n+2*u*(i-n)+d*(a-2*i+n),m=r+2*u*(o-r)+d*(s-2*o+r),y=90-180*Math.atan2(g-v,p-m)/Math.PI;return{x:l*t+3*f*u*n+3*c*u*u*i+h*a,y:l*e+3*f*u*r+3*c*u*u*o+h*s,m:{x:g,y:p},n:{x:v,y:m},start:{x:c*t+u*n,y:c*e+u*r},end:{x:c*i+u*a,y:c*o+u*s},alpha:y};},A=function(t,e,n){var r,i,o=M(t),a=M(e);if(r=o,i=a,r=w(r),!(_(i=w(i),r.x,r.y)||_(i,r.x2,r.y)||_(i,r.x,r.y2)||_(i,r.x2,r.y2)||_(r,i.x,i.y)||_(r,i.x2,i.y)||_(r,i.x,i.y2)||_(r,i.x2,i.y2))&&((!(r.x<i.x2)||!(r.x>i.x))&&(!(i.x<r.x2)||!(i.x>r.x))||(!(r.y<i.y2)||!(r.y>i.y))&&(!(i.y<r.y2)||!(i.y>r.y))))return n?0:[];for(var s=y.apply(0,t),u=y.apply(0,e),c=~~(s/8),l=~~(u/8),f=[],d=[],h={},g=n?0:[],p=0;p<c+1;p++){var v=C.apply(0,t.concat(p/c));f.push({x:v.x,y:v.y,t:p/c});}for(var p=0;p<l+1;p++){var v=C.apply(0,e.concat(p/l));d.push({x:v.x,y:v.y,t:p/l});}for(var p=0;p<c;p++)for(var m=0;m<l;m++){var b=f[p],E=f[p+1],A=d[m],S=d[m+1],D=.001>Math.abs(E.x-b.x)?"y":"x",I=.001>Math.abs(S.x-A.x)?"y":"x",T=x(b.x,b.y,E.x,E.y,A.x,A.y,S.x,S.y);if(T){if(h[T.x.toFixed(4)]===T.y.toFixed(4))continue;h[T.x.toFixed(4)]=T.y.toFixed(4);var k=b.t+Math.abs((T[D]-b[D])/(E[D]-b[D]))*(E.t-b.t),F=A.t+Math.abs((T[I]-A[I])/(S[I]-A[I]))*(S.t-A.t);k>=0&&k<=1&&F>=0&&F<=1&&(n?g+=1:g.push({x:T.x,y:T.y,t1:k,t2:F}));}}return g;},S=function(t,e,n){t=g(t),e=g(e);for(var r,i,o,a,s,u,c,l,f,d,h=n?0:[],p=0,v=t.length;p<v;p++){var m=t[p];if("M"===m[0])r=s=m[1],i=u=m[2];else{"C"===m[0]?(r=(f=[r,i].concat(m.slice(1)))[6],i=f[7]):(f=[r,i,r,i,s,u,s,u],r=s,i=u);for(var y=0,b=e.length;y<b;y++){var x=e[y];if("M"===x[0])o=c=x[1],a=l=x[2];else{"C"===x[0]?(o=(d=[o,a].concat(x.slice(1)))[6],a=d[7]):(d=[o,a,o,a,c,l,c,l],o=c,a=l);var _=A(f,d,n);if(n)h+=_;else{for(var E=0,w=_.length;E<w;E++)_[E].segment1=p,_[E].segment2=y,_[E].bez1=f,_[E].bez2=d;h=h.concat(_);}}}}}return h;},D=function(t,e){return S(t,e);},I=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(function(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 o=r,a=1/n,s=0;s<n-1;s++){var u=function(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i);}}(t,e),{left:n,right:r.reverse()};}(o,a/(1-a*s));i.push(u.left),o=u.right;}return i.push(o),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]);});}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i);}return r;},T=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t;}for(var a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1;}var u=o.reduce(function(e,r,i){return i===n?e.concat(t[n]):e.concat(I(t[i],t[i+1],r));},[]);return u.unshift(t[0]),("Z"===e[r]||"z"===e[r])&&u.push("Z"),u;},k=function(t,e){if(t.length!==e.length)return!1;var n=!0;return(0,r.each)(t,function(t,r){if(t!==e[r])return n=!1,!1;}),n;},F=function(t,e){var n,r=t.length,i=e.length,o=0;if(0===r||0===i)return null;for(var a=[],s=0;s<=r;s++)a[s]=[],a[s][0]={min:s};for(var u=0;u<=i;u++)a[0][u]={min:u};for(var s=1;s<=r;s++){n=t[s-1];for(var u=1;u<=i;u++){o=k(n,e[u-1])?0:1;var c=a[s-1][u].min+1,l=a[s][u-1].min+1,f=a[s-1][u-1].min+o;a[s][u]=function(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};}(c,l,f);}}return a;},N=function(t,e){var n=F(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var c=n[u][u].min;s=u;for(var l=a;l<=i;l++)n[u][l].min<c&&(c=n[u][l].min,s=l);a=s,n[u][a].type&&o.push({index:u-1,type:n[u][a].type});}for(var u=o.length-1;u>=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1);}var f=i-(r=t.length);if(r<i)for(var u=0;u<f;u++)"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 O(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=B(e)[0],s=1;s<=n;s++)o*=s,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i;}function B(t){var e=[];switch(t[0]){case"M":case"L":case"T":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":case"S":e.push([t[3],t[4]]),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"H":case"V":e.push([t[1],t[1]]);}return e;}var P=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=B(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)n=O(n,t[r-1],1);else{t[r]=e[r];break;}}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)n=O(n,t[r-1],2);else{t[r]=e[r];break;}}t[r]=["C"].concat(n.reduce(function(t,e){return t.concat(e);},[]));break;case"S":if(n.length<2){if(r>0)n=O(n,t[r-1],1);else{t[r]=e[r];break;}}t[r]=["S"].concat(n.reduce(function(t,e){return t.concat(e);},[]));break;default:t[r]=e[r];}return t;};},a6d2a9b8:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return m;}});var r=n("777fffbe"),i=n("852bbaa9"),o=i._(n("f9c106bb")),a=r._(n("f201aa30")),s=r._(n("41bf3cc6")),u=r._(n("cfce440c")),c=r._(n("4dd0d10d")),l=i._(n("c6ff7e7b")),f=r._(n("8f5e5f3d")),d=r._(n("c6e8429e")),h=r._(n("be414f97")),g=r._(n("901a6795")),p=i._(n("e081e66d")),v=i._(n("7efa990a"));function m(t,e,n){var r=new y(null==e?p.defaultX:e,null==n?v.defaultY:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t);}function y(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0;}function b(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e;}var x=m.prototype=y.prototype;x.copy=function(){var t,e,n=new y(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=b(r),n;for(t=[{source:r,target:n._root=[,,,,]}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=[,,,,]}):r.target[i]=b(e));return n;},x.add=o.default,x.addAll=o.addAll,x.cover=a.default,x.data=s.default,x.extent=u.default,x.find=c.default,x.remove=l.default,x.removeAll=l.removeAll,x.root=f.default,x.size=d.default,x.visit=h.default,x.visitAfter=g.default,x.x=p.default,x.y=v.default;},a71564ad:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6665ed3f")),i=function(t){var e=(0,r.default)(t);return e.charAt(0).toLowerCase()+e.substring(1);};},a74995e0:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e,n){return t<e?e:t>n?n:t;};},a756fe28:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"LAYOUT_MESSAGE",{enumerable:!0,get:function(){return r;}});var r={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};},a7f229e7:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("afb67b89"),o=r._(n("b6b3d6c6"));class a extends o.default{constructor(t,e){(0,i.checkColumnIndex)(t,e),super(t,t.rows,1),this.column=e;}set(t,e,n){return this.matrix.set(t,this.column,n),this;}get(t){return this.matrix.get(t,this.column);}}},a8254035:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("22b52967"),i="shift",o=["shift","ctrl","alt","control"],a={getDefaultCfg:function(){return{multiple:!0,trigger:i,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0};},getEvents:function(){return(o.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=i,console.warn("Behavior click-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.multiple)?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"};},onClick:function(t){var e=this,n=t.item;if(n&&!n.destroyed){var i=n.getType(),o=e.graph,a=e.keydown,s=e.multiple,u=e.shouldUpdate;if((0,e.shouldBegin)(t,e)){if(!a||!s){var c=o.findAllByState("node",e.selectedState).concat(o.findAllByState("edge",e.selectedState)).concat(o.findAllByState("combo",e.selectedState));(0,r.each)(c,function(t){t!==n&&o.setItemState(t,e.selectedState,!1);});}if(!function(){switch(i){case"node":return e.selectNode;case"edge":return e.selectEdge;case"combo":return e.selectCombo;default:return!1;}}()){var l=o.findAllByState("node",e.selectedState),f=o.findAllByState("edge",e.selectedState),d=o.findAllByState("combo",e.selectedState);o.emit("nodeselectchange",{selectedItems:{nodes:l,edges:f,combos:d},select:!1});return;}if(n.hasState(e.selectedState)){u(t,e)&&o.setItemState(n,e.selectedState,!1);var l=o.findAllByState("node",e.selectedState),f=o.findAllByState("edge",e.selectedState),d=o.findAllByState("combo",e.selectedState);o.emit("nodeselectchange",{target:n,selectedItems:{nodes:l,edges:f,combos:d},select:!1});}else{u(t,e)&&o.setItemState(n,e.selectedState,!0);var l=o.findAllByState("node",e.selectedState),f=o.findAllByState("edge",e.selectedState),d=o.findAllByState("combo",e.selectedState);o.emit("nodeselectchange",{target:n,selectedItems:{nodes:l,edges:f,combos:d},select:!0});}}}},onCanvasClick:function(t){var e=this,n=this.graph;if((0,this.shouldBegin)(t,this)){var i=n.findAllByState("node",this.selectedState);(0,r.each)(i,function(t){n.setItemState(t,e.selectedState,!1);});var o=n.findAllByState("edge",this.selectedState);(0,r.each)(o,function(t){n.setItemState(t,e.selectedState,!1);});var a=n.findAllByState("combo",this.selectedState);(0,r.each)(a,function(t){n.setItemState(t,e.selectedState,!1);}),n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1});}},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1);},onKeyUp:function(){this.keydown=!1;}};},a860491c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r={},i=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t];};},a87ceb6d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("dd0ce2fb"))&&r.__esModule?r:{default:r},o=n("6a4ad838");e.default=function(t,e,n,r){void 0===r&&(r=!0);var a,s,u,c,l,f=(void 0===(a=n)&&(a={}),s=a,u=function(){},c={},l=function(t){var e=t.next;return!c[e]&&(c[e]=!0,!0);},s.allowTraversal=a.allowTraversal||l,s.enter=a.enter||u,s.leave=a.leave||u,s),d=new i.default,h=t.edges,g=void 0===h?[]:h;d.enqueue(e);for(var p="";!d.isEmpty();)!function(){var t=d.dequeue();f.enter({current:t,previous:p}),(0,o.getNeighbors)(t,g,r?"target":void 0).forEach(function(e){f.allowTraversal({previous:p,current:t,next:e})&&d.enqueue(e);}),f.leave({current:t,previous:p}),p=t;}();};},a8873221:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return g;}});var r=n("4c6d310c"),i=n("168feef4"),o=n("fb3d3757"),a=n("444c2b3c"),s=n("a756fe28"),u=n("cdecc8a2"),c=n("22b52967");function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t;}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t;})(t);}var f={requestAnimationFrame:function(t){return("undefined"!=typeof window&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16);})(t);},cancelAnimationFrame:function(t){return("undefined"!=typeof window&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||function(t){return clearTimeout(t);})(t);}},d=["fruchterman","gForce"],h=["force","grid","circular"],g=function(t){function e(e){var n=t.call(this,e)||this;return n.graph=e,n.layoutCfg=e.get("layout")||{},n.layoutType=n.getLayoutType(),n.worker=null,n.workerData={},n.initLayout(),n;}return(0,r.__extends)(e,t),e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker||("undefined"==typeof Worker?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=(0,a.LayoutWorker)(this.layoutCfg.workerScriptURL)),this.worker;},e.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(f.cancelAnimationFrame(t.requestId),t.requestId=null),t.requestId2&&(f.cancelAnimationFrame(t.requestId2),t.requestId2=null));},e.prototype.execLayoutMethod=function(t,e){var n=this;return new Promise(function(a,s){return(0,r.__awaiter)(n,void 0,void 0,function(){var n,u,c,l,f,d,h,g,p;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(!(n=this.graph)||n.get("destroyed"))return[2];u=t.type,t.onLayoutEnd=function(){n.emit("aftersublayout",{type:u}),a();},u&&this.isGPU&&(v(u)?u="".concat(u,"-gpu"):console.warn("The '".concat(u,"' layout does not support GPU calculation for now, it will run in CPU."))),i.Util.isForce(u)?(c=t.onTick,f=void 0===(l=t.animate)&&("force"===u||"force2"===u),d=function(){c&&c(),(l||f)&&n.refreshPositions();},t.tick=d):("comboForce"===u||"comboCombined"===u)&&(t.comboTrees=n.get("comboTrees"));try{h=new o.Layout[u](t),this.layoutMethods[e]&&this.layoutMethods[e].destroy(),this.layoutMethods[e]=h;}catch(t){console.warn("The layout method: '".concat(u,"' does not exist! Please specify it first.")),s();}return h.enableTick&&(g=t.onTick,d=function(){g&&g(),n.refreshPositions();},h.tick=d),function(t,e){if(null===(n=null==t?void 0:t.nodes)||void 0===n?void 0:n.length){var n;t.nodes.forEach(function(t){t.layoutOrder=e;});}}(p=this.filterLayoutData(this.data,t),e),h.init(p),n.emit("beforesublayout",{type:u}),[4,h.execute()];case 1:return r.sent(),h.isCustomLayout&&t.onLayoutEnd&&t.onLayoutEnd(),[2];}});});});},e.prototype.updateLayoutMethod=function(t,e){var n=this;return new Promise(function(o,a){return(0,r.__awaiter)(n,void 0,void 0,function(){var n,a,s,u,c,l,f;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return n=this.graph,a=null==e?void 0:e.type,e.onLayoutEnd=function(){n.emit("aftersublayout",{type:a}),o();},i.Util.isForce(a)&&(s=e.onTick,c=void 0===(u=e.animate)&&("force"===a||"force2"===a),l=function(){null==s||s(),(u||c)&&n.refreshPositions();},e.tick=l),f=this.filterLayoutData(this.data,e),t.init(f),t.updateCfg(e),n.emit("beforesublayout",{type:a}),[4,t.execute()];case 1:return r.sent(),t.isCustomLayout&&e.onLayoutEnd&&e.onLayoutEnd(),[2];}});});});},e.prototype.layout=function(t){var e,n=this,i=this.graph;if(!(!i||i.get("destroyed"))){this.data=this.setDataFromGraph();var o=this.data,a=o.nodes,s=o.hiddenNodes;if(!a)return!1;var u=i.get("width"),c=i.get("height"),l={};Object.assign(l,{width:u,height:c,center:[u/2,c/2]},this.layoutCfg),this.layoutCfg=l;var f=l.type,d=!1;null===(e=this.layoutMethods)||void 0===e||e.forEach(function(t){var e;return d=!!(null===(e=t.nodes)||void 0===e?void 0:e.length)||d;});var h=this.destoryLayoutMethods();i.emit("beforelayout");var g=Promise.resolve();d&&f&&(null==h?void 0:h.length)===1&&h[0]===f?this.tweakInit():g=this.initPositions(l.center,a),this.initPositions(l.center,s).then(),this.isGPU=m(l,f);var p=l.onLayoutEnd,v=l.layoutEndFormatted,y=l.adjust;if(v||(l.layoutEndFormatted=!0,l.onAllLayoutEnd=function(){return(0,r.__awaiter)(n,void 0,void 0,function(){return(0,r.__generator)(this,function(t){switch(t.label){case 0:if(p&&p(a),this.refreshLayout(),!(y&&l.pipes))return[3,2];return[4,this.adjustPipesBox(this.data,y)];case 1:t.sent(),this.refreshLayout(),t.label=2;case 2:return i.emit("afterlayout"),[2];}});});}),this.stopWorker(),l.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;var b=!1;return l.type?(b=!0,g=g.then(function(){return(0,r.__awaiter)(n,void 0,void 0,function(){return(0,r.__generator)(this,function(t){switch(t.label){case 0:return[4,this.execLayoutMethod(l,0)];case 1:return[2,t.sent()];}});});})):l.pipes&&(b=!0,l.pipes.forEach(function(t,e){g=g.then(function(){return(0,r.__awaiter)(n,void 0,void 0,function(){return(0,r.__generator)(this,function(n){switch(n.label){case 0:return[4,this.execLayoutMethod(t,e)];case 1:return[2,n.sent()];}});});});})),b?g.then(function(){l.onAllLayoutEnd&&l.onAllLayoutEnd(),t&&t();}).catch(function(t){console.warn("graph layout failed,",t);}):(i.refreshPositions(),null==t||t()),!1;}},e.prototype.tweakInit=function(){var t=this.data,e=this.graph,n=t.nodes,r=t.edges;if(null==n?void 0:n.length){var i={};n.forEach(function(t){var e=t.x,n=t.y;isNaN(e)||isNaN(n)||(i[t.id]={x:e,y:n},t.mass=t.mass||2);}),r.forEach(function(t){var e=t.source,n=t.target,r=i[e],o=i[n];!r&&o?i[e]={x:o.x+(Math.random()-.5)*80,y:o.y+(Math.random()-.5)*80}:!o&&r&&(i[n]={x:r.x+(Math.random()-.5)*80,y:r.y+(Math.random()-.5)*80});});var o=e.get("width"),a=e.get("height");n.forEach(function(t){var e=i[t.id]||{x:o/2+(Math.random()-.5)*20,y:a/2+(Math.random()-.5)*20};t.x=e.x,t.y=e.y;});}},e.prototype.initWithPreset=function(t,e){var n=this;return new Promise(function(i,a){return(0,r.__awaiter)(n,void 0,void 0,function(){var n,a,s,u,c,l;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(n=this,a=n.layoutCfg,s=n.data,!(null==(u=a.preset)?void 0:u.type)||!o.Layout[null==u?void 0:u.type])return null==e||e(),i(),[2,!1];return c=m(u,u.type)?"".concat(u.type,"-gpu"):u.type,l=new o.Layout[c](u),delete a.preset,l.init(s),[4,l.execute()];case 1:return r.sent(),null==t||t(),i(),[2,!0];}});});});},e.prototype.layoutWithWorker=function(t,e){var n=this,r=this.layoutCfg,i=this.graph,o=this.getWorker(),a=this.workerData;if(!o)return!1;a.requestId=null,a.requestId2=null,a.currentTick=null,a.currentTickData=null,i.emit("beforelayout");var s=Promise.resolve(),u=!1;if(r.type)u=!0,s=s.then(function(){return n.runWebworker(o,t,r);});else if(r.pipes){u=!0;for(var c=function(e){s=s.then(function(){return n.runWebworker(o,t,e);});},l=0,f=r.pipes;l<f.length;l++)c(f[l]);}return u&&s.then(function(){r.onAllLayoutEnd&&r.onAllLayoutEnd(),null==e||e();}).catch(function(t){console.error("layout failed",t);}),!0;},e.prototype.runWebworker=function(t,e,n){var r,i,o=this,a=this.isGPU,u=this.filterLayoutData(e,n),c=u.nodes,f=u.edges,d=document.createElement("canvas"),h=a&&"undefined"!=typeof window&&window.navigator&&!navigator.gpu&&"OffscreenCanvas"in window&&"transferControlToOffscreen"in d,g=(r=function(t){return"function"!=typeof t;},i={},n&&"object"===l(n)?(Object.keys(n).forEach(function(t){n.hasOwnProperty(t)&&r(n[t])&&(i[t]=n[t]);}),i):n);if(h){var p=d.transferControlToOffscreen();g.type="".concat(g.type,"-gpu"),t.postMessage({type:s.LAYOUT_MESSAGE.GPURUN,nodes:c,edges:f,layoutCfg:g,canvas:p},[p]);}else t.postMessage({type:s.LAYOUT_MESSAGE.RUN,nodes:c,edges:f,layoutCfg:g});return new Promise(function(e,r){t.onmessage=function(t){o.handleWorkerMessage(e,r,t,u,n);};});},e.prototype.handleWorkerMessage=function(t,e,n,r,i){var o=this.graph,a=this.workerData,u=n.data,c=u.type,l=function(){i.onTick&&i.onTick();};switch(c){case s.LAYOUT_MESSAGE.TICK:a.currentTick=u.currentTick,a.currentTickData=u,a.requestId||(a.requestId=f.requestAnimationFrame(function(){p(r,u),o.refreshPositions(),l(),u.currentTick===u.totalTicks?t():a.currentTick===u.totalTicks&&(a.requestId2=f.requestAnimationFrame(function(){p(r,a.currentTickData),o.refreshPositions(),a.requestId2=null,l(),t();})),a.requestId=null;}));break;case s.LAYOUT_MESSAGE.END:null==a.currentTick&&(p(r,u),t());break;case s.LAYOUT_MESSAGE.GPUEND:null==a.currentTick&&(function(t,e){for(var n=t.nodes,r=e.vertexEdgeData,i=n.length,o=0;o<i;o++){var a=n[o],s=r[4*o],u=r[4*o+1];a.x=s,a.y=u;}}(r,u),t());break;case s.LAYOUT_MESSAGE.ERROR:console.warn("Web-Worker layout error!",u.message),e();break;default:e();}},e.prototype.updateLayoutCfg=function(t){var e=this,n=this.graph,i=this.layoutMethods;if(!(!n||n.get("destroyed"))){var o=t.disableTriggerLayout,a=(0,r.__rest)(t,["disableTriggerLayout"]),s=(0,c.mix)({},this.layoutCfg,a);if(this.layoutCfg=s,!o){if(!(null==i?void 0:i.length)){this.layout();return;}if(this.data=this.setDataFromGraph(),this.stopWorker(),!(a.workerEnabled&&this.layoutWithWorker(this.data,null))){n.emit("beforelayout");var u=Promise.resolve(),l=!1;(null==i?void 0:i.length)===1?(l=!0,u=u.then(function(){return(0,r.__awaiter)(e,void 0,void 0,function(){return(0,r.__generator)(this,function(t){switch(t.label){case 0:return[4,this.updateLayoutMethod(i[0],s)];case 1:return[2,t.sent()];}});});})):(null==i?void 0:i.length)&&(l=!0,i.forEach(function(t,n){var i=s.pipes[n];u=u.then(function(){return(0,r.__awaiter)(e,void 0,void 0,function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,this.updateLayoutMethod(t,i)];case 1:return[2,e.sent()];}});});});})),l&&u.then(function(){s.onAllLayoutEnd&&s.onAllLayoutEnd();}).catch(function(t){console.warn("layout failed",t);});}}}},e.prototype.adjustPipesBox=function(t,e){var n=this;return new Promise(function(r){var i=t.nodes;(null==i?void 0:i.length)||r(),h.includes(e)||(console.warn("The adjust type ".concat(e," is not supported yet, please assign it with 'force', 'grid', or 'circular'.")),r());var a={center:n.layoutCfg.center,nodeSize:function(t){return Math.max(t.height,t.width);},preventOverlap:!0,onLayoutEnd:function(){}},s=n.getLayoutBBox(i),u=s.groupNodes,l=s.layoutNodes,f=(0,c.clone)(l);a.onLayoutEnd=function(){null==l||l.forEach(function(t,e){var n,r,i,o=t.x-(null===(n=f[e])||void 0===n?void 0:n.x),a=t.y-(null===(r=f[e])||void 0===r?void 0:r.y);null===(i=u[e])||void 0===i||i.forEach(function(t){t.x+=o,t.y+=a;});}),r();},new o.Layout[e](a).layout({nodes:l});});},e.prototype.destroy=function(){this.destoryLayoutMethods();var t=this.worker;t&&(t.terminate(),this.worker=null),this.destroyed=!0,this.graph.set("layout",void 0),this.layoutCfg=void 0,this.layoutType=void 0,this.layoutMethods=void 0,this.graph=null;},e;}(i.AbstractLayout);function p(t,e){for(var n=t.nodes,r=e.nodes,i=n.length,o=0;o<i;o++){var a=n[o];a.x=r[o].x,a.y=r[o].y;}}function v(t){return d.includes(t);}function m(t,e){var n=e;e&&"gpu"===e.split("-")[1]&&(n=e.split("-")[0],t.gpuEnabled=!0);var r=!1;return t.gpuEnabled&&(r=!0,(0,u.gpuDetector)().webgl||(console.warn("Your browser does not support webGL or GPGPU. The layout will run in CPU."),r=!1)),r&&!v(n)&&(console.warn("The '".concat(n,"' layout does not support GPU calculation for now, it will run in CPU.")),r=!1),r;}},a8db751a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{dataValidation:function(){return a;},singleDataValidation:function(){return s;}});var r=n("4c6d310c"),i=n("22b52967"),o=n("85b3418c"),a=function(t){if(!t)return console.error("G6 Error Tips: the data must be defined"),!1;var e=t.nodes,n=t.edges,a=t.combos,s=void 0===a?[]:a;if(!e&&!n){var u=!0;return(0,o.traverseTree)(t,function(t){return!!(0,i.isString)(t.id)||(u=!1,!1);}),u;}var c=(e||[]).find(function(t){return!(0,i.isString)(t.id);});if(c)return console.warn("G6 Warning Tips: missing 'id' property, or %c".concat(c.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1;var l=(e||[]).map(function(t){return t.id;}),f=null==s?void 0:s.map(function(t){return t.id;}),d=(0,r.__spreadArray)((0,r.__spreadArray)([],l,!0),f,!0),h=(n||[]).find(function(t){return!d.includes(t.source)||!d.includes(t.target);});return!h||(console.warn("G6 Warning Tips: The source %c".concat(h.source,"%c or the target %c").concat(h.target,"%c of the edge do not exist in the nodes or combos."),"font-size: 20px; color: red;","","font-size: 20px; color: red;",""),!1);},s=function(t,e){if("node"===t||"combo"===t){if(e.id&&!(0,i.isString)(e.id))return console.warn("G6 Warning Tips: missing 'id' property, or the 'id' %c".concat(e.id,"%c is not a string."),"font-size: 20px; color: red;",""),!1;}else if("edge"===t&&(!e.source||!e.target))return console.warn("G6 Warning Tips: missing 'source' or 'target' for the edge."),!1;return!0;};},a8f77c5d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r,i=n("777fffbe")._(n("b208d868")),o=n("22b52967"),a=n("c966c938"),s=n("168feef4"),u=n("f6fd9972"),c=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),l=s.Util.applyMatrix,f=function(t){function e(e){return t.call(this,e)||this;}return c(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0};},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"};},e.prototype.disableRefresh=function(){this.set("refresh",!1);},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas();},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0);},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.graph;if(!this.destroyed){var r=this.get("container");(0,o.isString)(r)&&(r=document.getElementById(r));var i=(0,a.createDom)("<div class=".concat(e.viewportClassName,"\n style='position:absolute;\n left:0;\n top:0;\n box-sizing:border-box;\n border: 2px solid #1980ff;\n cursor:move'\n </div>")),s=0,u=0,c=!1,l=0,f=0,d=0,h=0,g=0,p=0;r.addEventListener("mousedown",function(r){if(e.refresh=!1,r.target===i){var o=i.style;d=parseInt(o.width,10),h=parseInt(o.height,10);var a=t.get("width"),l=t.get("height");d>a||h>l||(p=n.getZoom(),g=t.get("ratio"),c=!0,s=r.clientX,u=r.clientY);}},!1),r.addEventListener("mousemove",function(e){if(!(!c||(0,o.isNil)(e.clientX)||(0,o.isNil)(e.clientY))){var r=t.get("width"),v=t.get("height"),m=i.style;l=parseInt(m.left,10),f=parseInt(m.top,10),d=parseInt(m.width,10),h=parseInt(m.height,10);var y=s-e.clientX,b=u-e.clientY;l-y<0?y=l:l-y+d>=r&&(y=0),f-b<0?b=f:f-b+h>=v&&(b=0),l-=y,f-=b,(0,a.modifyCSS)(i,{left:"".concat(l,"px"),top:"".concat(f,"px")}),n.translate(y*p/g,b*p/g),s=e.clientX,u=e.clientY;}},!1),r.addEventListener("mouseleave",function(){c=!1,e.refresh=!0;},!1),r.addEventListener("mouseup",function(){c=!1,e.refresh=!0;},!1),this.set("viewport",i),r.appendChild(i);}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("width"),n=this.get("height"),r=this.get("graph"),i=r.get("width"),o=i/r.get("height"),s=r.getGroup(),c=s.getCanvasBBox(),f=[(c.minX+c.maxX)/2,(c.minY+c.maxY)/2],d=[c.maxX-c.minX,c.maxY-c.minY],h={centerX:f[0],centerY:f[1],width:0,height:0,minX:0,minY:0};c[0]/c[1]>o?(h.width=d[0],h.height=h.width/o):(h.height=d[1],h.width=h.height*o),h.minX=f[0]-h.width/2,h.minY=f[1]-h.height/2;var g=s.getMatrix();g||(g=[1,0,0,0,1,0,0,0,1]);var p=u.mat3.invert([1,0,0,0,1,0,0,0,1],g),v=l({x:h.minX,y:h.minY},p),m=r.getCanvasByPoint(v.x,v.y),y=this.get("viewport");y||this.initViewport();var b=i/h.width,x=b*e,_=b*n,E=-(e*m.x)/h.width,w=-(n*m.y)/h.height,M=E+x,C=w+_;E<0&&(x+=E,E=0),M>e&&(x-=M-e),w<0&&(_+=w,w=0),C>n&&(_-=C-n),this.set("ratio",t);var A="".concat(E,"px"),S="".concat(w,"px");(0,a.modifyCSS)(y,{left:A,top:S,width:"".concat(x,"px"),height:"".concat(_,"px")});}},e.prototype.init=function(){this.initContainer();},e.prototype.initContainer=function(){var t=this.get("graph"),e=t.get("width"),n=t.get("height")/e,r=this.get("className"),i=this.get("container"),s=this.get("width"),u=this.get("height");s||u||(s=200),s?(u=n*s,this.set("height",u)):(s=1/n*u,this.set("width",s));var c=(0,a.createDom)("<div class='".concat(r,"' style='width: ").concat(s,"px; height: ").concat(u,"px; overflow: hidden; position: relative;'></div>"));(0,o.isString)(i)&&(i=document.getElementById(i)),i?i.appendChild(c):t.get("container").appendChild(c),this.set("container",c);var l=(0,a.createDom)('<div class="g6-minimap-container" style="position: relative; width: 100%; height: 100%; text-align: center; display: table;"></div>');c.appendChild(l);var f=(0,a.createDom)('<span style="display: table-cell; vertical-align: middle; "></span>');l.appendChild(f),this.set("containerDOM",l),this.set("containerSpan",f);var d=(0,a.createDom)('<img alt="" src="'.concat(this.get("graphImg"),'" style="display: inline-block; user-select: none;" draggable="false" />'));this.set("imgDOM",d),this.updateImgSize(),f.appendChild(d),this.updateCanvas();},e.prototype.updateImgSize=function(){var t=this.get("imgDOM"),e=this.get("width"),n=this.get("height");t.onload=function(){var r=function(t,e){var n,r;if(t.naturalWidth)n=t.naturalWidth,r=t.naturalHeight;else{var i=new Image;i.src=t.src,i.onload=function(){};}return[n,r];}(t);r[0]>r[1]?t.width=e:t.height=n;};},e.prototype.updateCanvas=function(){if(this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("width"),n=t.get("canvas").getCanvasBBox().width;this.set("ratio",e/n),this.updateViewport();}}},e.prototype.getViewport=function(){return this.get("viewport");},e.prototype.getContainer=function(){return this.get("container");},e.prototype.updateGraphImg=function(t){this.get("imgDOM").remove(),this.set("graphImg",t);var e=(0,a.createDom)('<img alt="" src="'.concat(t,'" style="display: inline-block;" ondragstart="return false;" onselectstart="return false;"/>'));this.set("imgDOM",e),e.src=t,this.updateImgSize(),this.get("containerSpan").appendChild(e),this.updateCanvas();},e.prototype.destroy=function(){var t=this.get("container");t.parentNode.removeChild(t);},e;}(i.default);},a90422f6:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return p;}});var r,i=n("777fffbe"),o=n("22b52967"),a=n("168feef4"),s=n("c966c938"),u=i._(n("8109e137")),c=n("5fab14e3"),l=i._(n("b208d868")),f=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},h=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n;};"undefined"!=typeof document&&(0,u.default)("\n .g6-annotation-container {\n background-color: rgba(255, 255, 255, 0.3);\n padding: 8px;\n }\n .g6-annotation-wrapper {\n background-color: #fff;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.85);\n }\n .g6-annotation-header-wapper {\n height: fit-content;\n width: 100%;\n background-color: #5B8FF9;\n display: inline-flex;\n cursor: move;\n }\n .g6-annotation-title {\n margin: 4px 40px 4px 8px;\n cursor: text;\n min-width: 32px;\n }\n .g6-annotation-collapse {\n margin: 4px;\n cursor: pointer;\n }\n .g6-annotation-expand {\n margin: 4px;\n cursor: pointer;\n }\n .g6-annotation-close {\n margin: 4px 8px 4px 0;\n cursor: pointer;\n }\n .g6-annotation-content {\n padding: 8px;\n width: fit-content;\n cursor: text;\n word-break: break-all;\n min-width: 32px;\n }\n .g6-annotation-title-input-wrapper {\n margin: 4px 40px 4px 8px;\n }\n .g6-annotation-content-input {\n height: 100%;\n word-break: break-all;\n }\n .g6-annotation-content-input-wrapper {\n margin: 8px;\n height: 100%;\n }\n");var g="canvas-annotation",p=function(t){function e(e){return t.call(this,e)||this;}return f(e,t),e.prototype.getDefaultCfgs=function(){return{trigger:"click",editable:!0,itemHighlightState:"highlight",linkHighlightStyle:{shadowColor:"#5B8FF9",shadowBlur:10},cardCfg:{minHeight:60,width:"fit-content",height:"fit-content",collapseType:"minimize",closeType:"hide",borderRadius:5,maxTitleLength:20}};},e.prototype.getEvents=function(){var t={viewportchange:"updateLinks",afterlayout:"updateLinks",aftergraphrefreshposition:"updateLinks",afterupdateitem:"updateLink",afterchangedata:"onGraphDataChange",afteritemvisibilitychange:"onGraphItemVisibilityChange"};return"click"===this.get("trigger")&&(t=d(d({},t),{"node:click":"showAnnotation","edge:click":"showAnnotation"})),t;},e.prototype.getDOMContent=function(t){if(!this.destroyed){var e=t.collapsed,n=t.maxWidth,r=t.title,i=t.content,o=t.borderRadius,a=void 0===o?5:o,s=e?"".concat(a,"px"):"".concat(a,"px ").concat(a,"px 0 0");return'<div class="g6-annotation-wrapper" style="border-radius: '.concat(a,"px; max-width: ").concat(n,'px">\n <div\n class="g6-annotation-header-wapper"\n style="border-radius: ').concat(s,";\"\n >\n <h4 class='g6-annotation-title'>").concat(void 0===r?"":r,"</h4>\n ").concat(e?"<p class='g6-annotation-expand'>+</p>":"<p class='g6-annotation-collapse'>-</p>","\n ").concat("<p class='g6-annotation-close'>x</p>","\n </div>\n ").concat(e?"":" <p class='g6-annotation-content'>".concat(void 0===i?"":i,"</p>"),"\n </div>");}},e.prototype.init=function(){var t=this;if(!t.destroyed){var e=t.get("graph").getContainer(),n=t.get("container");this.get("containerCfg")?(n=this.createContainer(),e.appendChild(n)):n=e,this.set("container",n);var r=e.getBoundingClientRect(),i=new c.Canvas({container:e,width:r.right-r.left,height:r.bottom-r.top});(0,s.modifyCSS)(i.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",(0,o.debounce)(function(){return t.resizeCanvas(t);},100));var a=i.addGroup({id:"annotation-link-group"});t.set("linkGroup",a),t.set("canvas",i),t.get("getTitle")||t.set("getTitle",function(t){var e,n=(null===(e=null==t?void 0:t.getModel)||void 0===e?void 0:e.call(t))||{},r=n.label,i=n.id;return r||i||"-";}),t.get("getContent")||t.set("getContent",function(t){if(!t)return"-";var e,n,r=(null===(e=t.getModel)||void 0===e?void 0:e.call(t))||{},i=r.label,o=r.id,a=null===(n=t.getType)||void 0===n?void 0:n.call(t);return"".concat(a?"".concat(a,": "):"").concat(i||o||"");});var u=t.get("defaultData");u&&this.readData(u);}},e.prototype.createContainer=function(){var t=this;if(!this.destroyed){var e=this.get("containerCfg"),n=this.get("graph"),r=n.getContainer(),i=r.getBoundingClientRect(),a=i.left,u=i.right,c=i.top,l=i.bottom-c,f=u-a,g=e.position,p=void 0===g?"top":g,v=e.offsetX,m=void 0===v?0:v,y=e.offsetY,b=void 0===y?0:y,x=h(e,["position","offsetX","offsetY"]),_=e.height,E=void 0===_?"fit-content":_,w=e.width,M=void 0===w?n.getWidth():w;"100%"===E&&(E=l),"100%"===M&&(M=f);var C="unset",A="unset",S={};switch(p){case"right":C="".concat(l,"px"),S={top:0,right:0},S.right+=a+m,S.top+=c+b;break;case"bottom":A="".concat(f,"px"),S={bottom:0,left:0},S.left+=a+m,S.bottom+=c+b;break;case"top":A="".concat(f,"px");case"left":C="".concat(l,"px");default:S={top:0,left:0},S.left+=a+m,S.top+=c+b;}Object.keys(S).forEach(function(t){S[t]="".concat(S[t],"px");});var D=(0,s.createDom)("<div class='".concat(e.className," g6-annotation-container'></div>"));return(0,s.modifyCSS)(D,d(d({position:"absolute",display:"top"===p||"bottom"===p?"inline-flex":"unset",width:(0,o.isNumber)(M)?"".concat(M,"px"):M,height:(0,o.isNumber)(E)?"".concat(E,"px"):E,maxHeight:C,maxWidth:A,overflow:"scroll"},S),x)),r.appendChild(D),D.addEventListener("scroll",function(e){t.updateLinks();}),D;}},e.prototype.resizeCanvas=function(t){clearTimeout(t.resizeTimer),t.resizeTimer=setTimeout(function(){if(t&&!t.destroyed){var e=t.get("container").getBoundingClientRect(),n=e.right-e.left,r=e.bottom-e.top;t.get("canvas").changeSize(n,r),t.updateOutsideCards(t);}},250);},e.prototype.updateOutsideCards=function(t){var e=t||this,n=e.get("cardInfoMap")||{},r=e.get("graph"),i=r.getPointByCanvas(0,0),o=r.getPointByCanvas(r.getWidth(),r.getHeight()),a=r.getClientByPoint(i.x,i.y),u=a.x,c=a.y,l=r.getClientByPoint(o.x,o.y),f=l.x,d=l.y;Object.values(n).forEach(function(t){var e=t.card;if(e){var n=e.style,r=y(n.left),i=y(n.top),o=e.getBoundingClientRect(),a=o.width,l=o.height,h=r,g=i;r+a>f-u&&(h=f-u-a),r<0&&(h=0),i+l>d-c&&(g=d-c-l),i<0&&(g=0),(0,s.modifyCSS)(e,{left:"".concat(h,"px"),top:"".concat(g,"px")});}}),e.updateLinks();},e.prototype.showAnnotation=function(t){if(!this.destroyed){var e=t.item;this.toggleAnnotation(e);}},e.prototype.hideCards=function(){var t=this;t.destroyed||Object.keys(t.get("cardInfoMap")||{}).forEach(function(e){t.hideCard(e);});},e.prototype.toggleAnnotation=function(t,e){var n,r,i;if(void 0===e&&(e={}),!this.destroyed){var a=this.get("cardInfoMap")||{},u=this.get("graph"),c=this.get("container"),l=this.get("containerCfg"),f=Object.assign({},this.get("cardCfg")||{},e),p=f.minHeight,v=f.minWidth,y=f.width,b=f.height,x=f.collapsed,_=void 0!==x&&x,E=f.x,w=f.y,M=f.title,C=f.content,A=f.maxTitleLength,S=f.defaultBegin,D=h(f,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),I=this.get("linkGroup"),T=this.get("rows")||[[]],k=null===(n=t.isCanvas)||void 0===n?void 0:n.call(t),F=k?g:t.getID(),N=a[F]||{},O=N.card,B=N.link,P=N.x,L=N.y,j=N.title,R=N.content,z=this.get("getTitle"),G=this.get("getContent"),Y=this.get("getContentPlaceholder")||function(){return"";},X=this.get("getTitlePlaceHolder")||function(){return"";},U=Y(t),H=X(t),W=(0,s.createDom)(this.getDOMContent(d({itemId:F,collapsed:_,title:(null===(r=j||M||(null==z?void 0:z(t)))||void 0===r?void 0:r.substr(0,A))||H,content:R||C||(null==G?void 0:G(t))||U},D))),V=(0,o.isNumber)(p)?"".concat(p,"px"):p;(0,s.modifyCSS)(W,{minHeight:_?"unset":V,minWidth:(0,o.isNumber)(v)?"".concat(v,"px"):v,height:b,width:y});var q=!!O;if(q?(null==B||B.remove(!0),c.replaceChild(W,O)):c.appendChild(W),!l){if(i=c.getBoundingClientRect()||{},void 0!==E&&void 0!==w)P=E,L=w;else if(!q&&!k){var Z=i.top,J=S||{},K=J.left,Q=J.right,$=J.top,tt=J.bottom,te=void 0===Q?16:Q,tn=void 0===$?8:$;isNaN(K)||(te=c.scrollWidth-K),isNaN(tt)||(tn=c.scrollHeight-tt);var tr=(0,o.isNumber)(v)?v:100;P=c.scrollWidth-W.scrollWidth-(T.length-1)*tr-te;var ti=T[T.length-1],to=(ti[ti.length-1]||{}).bbox;L=(null==to?void 0:to.bottom)-Z||tn;}(0,s.modifyCSS)(W,{position:"absolute",left:"".concat(P,"px"),top:"".concat(L,"px"),cusor:l?"unset":"move"});}this.bindListener(W,F);var ta=W.getBoundingClientRect();if(!k){var ts=m(t,ta,u,this.get("canvas")),tu=this.get("linkStyle");B=I.addShape("path",{attrs:d({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:ts},tu)});}if(a[F]=d(d({},a[F]||{}),{id:F,collapsed:_,card:W,link:B,x:P,y:L,cardBBox:ta,content:R||C,title:j||M,contentPlaceholder:U,titlePlaceholder:H,isCanvas:k}),this.set("cardInfoMap",a),l)this.updateCardPositionsInConatainer(),this.updateLinks();else{var tc=!isNaN(E)&&!isNaN(w);if(!q&&!k&&!tc){var tl=i.bottom,Z=i.top;T[T.length-1].push({id:F,bbox:ta}),ta.top>(void 0===tl?0:tl)-Z-ta.height-16&&T.push([]),this.set("rows",T);}}this.updateCardSize(F);var tf=this.get("onAnnotationChange");null==tf||tf(a[F],q?"update":"create");}},e.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var t=this.get("cardInfoMap");if(t){var e=this.get("container"),n=this.get("containerCfg").position,r=e.getBoundingClientRect().width,i=getComputedStyle(e),o=y(i.paddingLeft)+y(i.paddingRight);r-=o,Object.values(t).forEach(function(t){var e=t.card,i=e.getBoundingClientRect().width;switch(n){case"right":(0,s.modifyCSS)(e,{marginLeft:r?"".concat(r-i,"px"):"0px"});break;case"top":case"bottom":(0,s.modifyCSS)(e,{marginLeft:"8px"});}});}}},e.prototype.handleExpandCollapseCard=function(t){if(!this.destroyed){var e=this.get("graph"),n=this.get("cardInfoMap");if(n){var r=n[t].collapsed,i=e.findById(t);i&&("hide"!==this.get("cardCfg").collapseType||r?this.toggleAnnotation(i,{collapsed:!r}):this.hideCard(t),n[t]=d(d({},n[t]),{collapsed:!r}));}}},e.prototype.hideCard=function(t){if(!this.destroyed){var e=this.get("cardInfoMap");if(e&&e[t]){var n=e[t],r=n.card,i=n.link;(0,s.modifyCSS)(r,{display:"none"}),null==i||i.hide(),this.get("onAnnotationChange")(e[t],"hide");}}},e.prototype.removeCard=function(t){if(!this.destroyed){var e=this.get("cardInfoMap");if(e){var n=e[t],r=n.card,i=n.link;this.get("container").removeChild(r),null==i||i.remove(!0),delete e[t],this.get("onAnnotationChange")(n,"remove");}}},e.prototype.bindListener=function(t,e){var n=this;if(!this.destroyed){t.addEventListener("mousemove",function(t){var r;if("g6-annotation-collapse"===t.target.className?r="collapse":"g6-annotation-expand"===t.target.className?r="expand":"g6-annotation-close"===t.target.className&&(r="close"),r){var i=n.get("cardCfg").onMouseEnterIcon;(void 0===i?function(){}:i)(t,e,r);}}),t.addEventListener("mouseout",function(t){var r;if("g6-annotation-collapse"===t.target.className?r="collapse":"g6-annotation-expand"===t.target.className?r="expand":"g6-annotation-close"===t.target.className&&(r="close"),r){var i=n.get("cardCfg").onMouseLeaveIcon;(void 0===i?function(){}:i)(t,e,r);}}),t.addEventListener("mouseenter",function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("graph"),o=i.findById(e);if(o){var a=n.get("itemHighlightState");i.setItemState(o,a,!0);}var s=r[e].link;if(s){var u=n.get("linkHighlightStyle")||{};s.attr(u);}}}),t.addEventListener("mouseleave",function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("graph"),o=i.findById(e);if(o){var a=n.get("itemHighlightState");i.setItemState(o,a,!1);}var s=r[e].link;if(s){Object.keys(n.get("linkHighlightStyle")||{}).forEach(function(t){s.attr(t,void 0),s.attr(t,void 0);});var u=n.get("linkStyle");s.attr(u);}}}),t.addEventListener("click",function(t){var r=(n.get("cardCfg")||{}).onClickIcon;"g6-annotation-collapse"===t.target.className||"g6-annotation-expand"===t.target.className?("hide"===n.get("cardCfg").collapseType?n.hideCard(e):n.handleExpandCollapseCard(e),null==r||r(t,e,"g6-annotation-collapse"===t.target.className?"collapse":"expand")):"g6-annotation-close"===t.target.className&&("remove"===n.get("cardCfg").closeType?n.removeCard(e):n.hideCard(e),null==r||r(t,e,"close"));}),this.get("editable")&&t.addEventListener("dblclick",function(t){var r=n.get("cardInfoMap"),i=(n.get("cardCfg")||{}).maxTitleLength;if(r){var o=t.target,a=o.className;if("g6-annotation-title"===a||"g6-annotation-content"===a){var u="g6-annotation-title"===a?o.getBoundingClientRect():o.parentNode.getBoundingClientRect(),c=u.width,l=u.height,f=getComputedStyle(o),d="g6-annotation-title"===a?"input":"textarea",h=(0,s.createDom)("<".concat(d,' class="').concat(a,'-input" type="textarea" style="width:').concat(c,"px; height: ").concat(l,'px; min-width: 16px;"/>')),g=(0,s.createDom)('<div class="'.concat(a,'-input-wrapper" style="width: ').concat(c,"px; height: ").concat(l,"px; min-width: 16px; margin-right: ").concat(f.marginRight,'" />'));g.appendChild(h),o.parentNode.replaceChild(g,o);var p=r[e],v=p.contentPlaceholder,m=p.titlePlaceholder,y=p.content,b=p.title,x=y;"g6-annotation-title"===a?(h.name="title",h.maxLength=void 0===i?20:i,x=b):h.name="content",x?(h.innerHTML=o.innerHTML,h.value=o.innerHTML):h.placeholder="g6-annotation-title"===a?m:v,h.focus(),h.addEventListener("blur",function(t){h.value&&(o.innerHTML=h.value,p[h.name||"title"]=h.value),g.parentNode.replaceChild(o,g),n.updateCardSize(e);var r=n.get("onAnnotationChange");null==r||r(p,"update");});}}});var r=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];t.draggable=!0,t.addEventListener("dragstart",function(e){var i=e.target.className;if(!r.includes(i)){var o=t.style;n.set("dragging",{card:t,x:e.clientX,y:e.clientY,left:y(o.left),top:y(o.top)});}}),t.addEventListener("drag",function(t){t.preventDefault();var r=n.get("cardInfoMap");if(r){var i=t.clientX,o=t.clientY,a=n.get("dragging");if(!(isNaN(i)||isNaN(o))&&a){var u=a.x,c=a.y,l=a.left,f=a.top,d=a.card,h=i-u,g=o-c;l+=h,f+=g;var p=n.get("graph"),v=p.getPointByCanvas(0,0),y=p.getPointByCanvas(p.getWidth(),p.getHeight()),b=p.getClientByPoint(v.x,v.y),x=b.x,_=b.y,E=p.getClientByPoint(y.x,y.y),w=E.x,M=E.y,C=d.getBoundingClientRect(),A=C.right-C.left,S=C.bottom-C.top;(l>w-x-A&&h>0||l<0&&h<0)&&(l-=h),(f>M-_-S&&g>0||f<0&&g<0)&&(f-=g),(0,s.modifyCSS)(d,{left:"".concat(l,"px"),top:"".concat(f,"px"),visibility:"hidden"}),u=i,c=o;var D=(r[e]||{}).link;if(D){var I=p.findById(e);D.attr("path",m(I,C,p,n.get("canvas")));}n.set("dragging",{x:u,y:c,left:l,top:f,card:d});}}}),t.addEventListener("dragend",function(t){var r=n.get("cardInfoMap");if(r){var i=n.get("dragging");if(i){var o=i.left,a=i.top,u=i.card;r[e].x=o,r[e].y=a,(0,s.modifyCSS)(u,{visibility:"visible"}),n.set("dragging",!1);var c=n.get("rows");null==c||c.forEach(function(t){for(var n=t.length-1;n>=0;n--)t[n].id===e&&t.splice(n,1);});var l=n.get("onAnnotationChange");null==l||l(r[e],"update");}}});}},e.prototype.updateCardSize=function(t){var e=this.get("cardInfoMap");if(e){var n=e[t].card,r=n.getBoundingClientRect().width,i=n.getElementsByClassName("g6-annotation-title")[0];if(i){var o=y(getComputedStyle(i).marginLeft),a=i.getBoundingClientRect().width;(0,s.modifyCSS)(i,{marginRight:"".concat(r-o-24-16-a,"px")});}}},e.prototype.updateLink=function(t){var e=t.item;if(e){var n=this.get("cardInfoMap");if(n){var r=this.get("canvas"),i=this.get("graph"),o=n[e.getID()]||{},a=o.link,s=o.card;if(a){var u=m(e,s.getBoundingClientRect(),i,r);a.attr("path",u);}}}},e.prototype.updateLinks=function(){var t=this;if(!this.destroyed){var e=this.get("cardInfoMap");if(e){var n=this.get("graph");Object.values(e).forEach(function(e){var r=e.id,i=n.findById(r);t.updateLink({item:i});});}}},e.prototype.onGraphDataChange=function(){var t=this,e=this.get("cardInfoMap");if(e){var n=this.get("graph");Object.values(e).forEach(function(e){var r=e.id,i=e.card,o=e.isCanvas;if(i&&!o&&"none"!==i.style.display){var a=n.findById(r);a&&a.isVisible()?t.toggleAnnotation(a):t.hideCard(r);}});}},e.prototype.onGraphItemVisibilityChange=function(t){var e=t.item,n=t.visible;if(e&&!e.destroyed){var r=this.get("cardInfoMap");if(r){var i=e.getID();r[i]&&!n&&this.hideCard(i);}}},e.prototype.saveData=function(t){void 0===t&&(t=!1);var e=this.get("cardInfoMap");if(e){var n=this.get("graph"),r=this.get("getTitle"),i=this.get("getContent"),o=[];return Object.values(e).forEach(function(e){var a=e.title,s=e.content,u=e.x,c=e.y,l=e.id,f=e.collapsed,d=e.card;if(!d||"none"!==d.style.display||t){var h=n.findById(l)||n.get("canvas");o.push({id:l,x:u,y:c,collapsed:f,title:a||(null==r?void 0:r(h)),content:s||(null==i?void 0:i(h)),visible:d&&"none"!==d.style.display});}}),o;}},e.prototype.readData=function(t){var e=this,n=this.get("graph");t.forEach(function(t){var r=t.id,i=t.x,o=t.y,a=t.title,s=t.content,u=t.collapsed,c=t.visible,l=n.findById(r);if(l||r!==g||(l=n.get("canvas")),!l){var f=e.get("cardInfoMap")||{};f[r]=t,e.set("cardInfoMap",f);return;}e.toggleAnnotation(l,{x:i,y:o,title:a,content:s,collapsed:u}),c||e.hideCard(r);});},e.prototype.clear=function(){var t=this.get("cardInfoMap");if(t){var e=this.get("container");Object.values(t).forEach(function(t){var n=t.card,r=t.link;e.removeChild(n),null==r||r.remove(!0);}),this.set("cardInfoMap",{});}},e.prototype.destroy=function(){this.clear(),null===(t=this.get("canvas"))||void 0===t||t.destroy();var t,e=this.get("graph");e&&!e.destroyed&&(this.get("containerCfg")&&e.getContainer().removeChild(this.get("container")),this.destroyed=!0);},e;}(l.default),v=function(t,e){var n,r,i=1/0;Object.keys(t).forEach(function(o){var a=t[o];Object.keys(e).forEach(function(t){var o=e[t],s=a.x-o.x,u=a.y-o.y,c=s*s+u*u;i>c&&(i=c,n=a,r=o);});});var o=a.Util.getControlPoint(n,r,.5,20);return[["M",n.x,n.y],["Q",o.x,o.y,r.x,r.y]];},m=function(t,e,n,r){if("edge"===t.getType())o=[t.getKeyShape().getPoint(.5)];else{var i,o,a=null===(i=t.getKeyShape)||void 0===i?void 0:i.call(t).getBBox(),s=a.minX,u=a.minY,c=a.maxX,l=a.maxY,f=t.getModel(),d=f.x,h=f.y;s+=d,u+=h,c+=d,l+=h,o={left:{x:s,y:(u+l)/2},right:{x:c,y:(u+l)/2},top:{x:(s+c)/2,y:u},bottom:{x:(s+c)/2,y:l}};}Object.keys(o).forEach(function(t){var e=o[t],i=e.x,a=e.y,s=n.getClientByPoint(i,a);o[t]=r.getPointByClient(s.x,s.y);});var g=e.top,p=void 0===g?0:g,m=e.left,y=void 0===m?0:m,b=e.right,x=void 0===b?0:b,_=e.bottom,E=void 0===_?0:_,w={left:r.getPointByClient(y,(p+E)/2),right:r.getPointByClient(x,(p+E)/2),top:r.getPointByClient((y+x)/2,p),bottom:r.getPointByClient((y+x)/2,E)};return v(o,w);},y=function(t){return Number(t.replace(/\s+|px/gi,""))||0;};},a90fd71b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return p;}});var r=n("777fffbe"),i=n("852bbaa9"),o=r._(n("6f63505d")),a=r._(n("00b43322")),s=r._(n("c247dca7")),u=r._(n("73197cf8")),c=i._(n("5b220c3d")),l=n("d6f16b20"),f=n("ed66dedc"),d=r._(n("fbad45a8")),h=["component","componentProps","leave","enter","appear","resetStyle","animatingClassName","onEnd","exclusive"],g=c.default.forwardRef(function(t,e){var n=t.component,r=void 0===n?"div":n,i=t.componentProps,g=void 0===i?{}:i,p=t.leave,v=void 0===p?{x:-50,opacity:0}:p,m=t.enter,y=void 0===m?{x:50,opacity:0,type:"from"}:m,b=t.appear,x=void 0===b||b,_=t.resetStyle,E=void 0===_||_,w=t.animatingClassName,M=void 0===w?["tween-one-entering","tween-one-leaving"]:w,C=t.onEnd,A=void 0===C?function(){}:C,S=t.exclusive,D=void 0!==S&&S,I=(0,u.default)(t,h),T=(0,c.useRef)([]),k=(0,c.useRef)([]),F=(0,c.useRef)({}),N=(0,c.useRef)(!1),O=(0,c.useRef)([]),B=(0,c.useRef)({}),P=(0,l.toArrayChildren)((0,l.getChildrenFromProps)(t)),L=(0,c.useRef)(P),j=(0,c.useState)(P),R=(0,s.default)(j,2),z=R[0],G=R[1],Y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.key;return F.current[n]=c.default.createElement(d.default,(0,a.default)((0,a.default)({},e),{},{key:n,component:null}),t),F.current[n];},X=function(t,e){var n=t.replace(M[e?1:0],"").trim();return -1===n.indexOf(M[e?0:1])&&(n="".concat(n," ").concat(M[e?0:1]).trim()),n;},U=function(t,e){var n=(0,l.mergeChildren)(e,t);return T.current=[],k.current=[],t.forEach(function(t){if(t){var n=t.key,r=(0,l.findChildInChildrenByKey)(e,n);n&&F.current[n]&&(F.current[n]=c.default.cloneElement(F.current[n],{},t)),!r&&n&&T.current.push(n);}}),e.forEach(function(e){if(e){var n=e.key;!(0,l.findChildInChildrenByKey)(t,n)&&n&&(k.current.push(n),delete F.current[n]);}}),n;},H=function(){!Object.keys(B.current).length&&O.current.length&&(G(U(O.current[O.current.length-1],L.current)),O.current=[]);},W=function(t,e,n){var r=n.targets,i="object"===(0,o.default)(r.className)&&"baseVal"in r.className,a="enter"===e||"appear"===e;if(t&&"onTimelineComplete"===n.mode){if(delete B.current[t],i?r.className.baseVal=r.className.baseVal.replace(M[a?0:1],"").trim():r.className=r.className.replace(M[a?0:1],"").trim(),a)T.current.splice(T.current.indexOf(t),1),T.current.length||H();else if("leave"===e&&(k.current.splice(k.current.indexOf(t),1),L.current=L.current.filter(function(e){return t!==e.key;}),!k.current.length)){var s=L.current.map(function(t){return t.key;});Object.keys(F.current).forEach(function(t){-1===s.indexOf(t)&&delete F.current[t];}),G(L.current);}A({key:t,type:e,target:n.targets});}},V=function(t,e,n){var r="leave"===n?v:y;"appear"===n&&(r=(0,l.transformArguments)(x,t.key,e)&&y||null);var i=(0,l.transformArguments)(r,t.key,e),o="appear"!==n||x?X(t.props.className||"","enter"===n||"appear"===n)||void 0:t.props.className,a={key:t.key,animation:i,onChangeTimeline:function(e){W(t.key,n,e);},resetStyle:E,className:o};return(t.key&&T.current.concat(k.current).indexOf(t.key)>=0||!N.current&&r)&&t.key&&!F.current[t.key]&&(B.current[t.key]=n),Y(t,a);};(0,f.useIsomorphicLayoutEffect)(function(){if(N.current){var e=(0,l.toArrayChildren)(t.children).filter(function(t){return t;}),n=(0,l.toArrayChildren)(L.current);Object.keys(B.current).length&&!D?O.current.push(e):G(U(e,n));}},[t.children]),(0,f.useIsomorphicLayoutEffect)(function(){H();}),(0,c.useEffect)(function(){N.current=!0;},[]),L.current=z;var q=z.map(function(t,e){if(!t||!t.key)return t;var n=t.key;return k.current.indexOf(n)>=0?V(t,k.current.indexOf(n),"leave"):(T.current.indexOf(n)>=0||B.current[n]&&-1===k.current.indexOf(n))&&!("enter"===B.current[n]&&F.current[n])?V(t,T.current.indexOf(n),"enter"):N.current?F.current[n]:V(t,e,"appear");});return f.windowIsUndefined?r?(0,c.createElement)(r,(0,a.default)((0,a.default)((0,a.default)({},I),g),{},{ref:e}),t.children):c.default.createElement(c.default.Fragment,null,t.children):r?(0,c.createElement)(r,(0,a.default)((0,a.default)((0,a.default)({},I),g),{},{ref:e}),q):q[0]?(0,c.cloneElement)(q[0],{ref:e}):null;});g.displayName="TweenOneGroup",g.isTweenOneGroup=!0;var p=g;},a927a725:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("22b52967"),i=n("d5ffb871"),o={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},s=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=(0,i.createSVGElement)("filter");return(0,r.each)(a,function(t,n){e.setAttribute(n,t);}),this.el=e,this.id=(0,r.uniqueId)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this;}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return(0,r.each)(Object.keys(i),function(t){if(i[t]!==e[t])return n=!1,!1;}),n;},t.prototype.update=function(t,e){var n=this.cfg;return n[o[t]]=e,this._parseShadow(n,this.el),this;},t.prototype._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;}();},a9b68d97:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("99dbff91"),n("312cd984");},a9d43e9b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{ShapeFactoryBase:function(){return u;},default:function(){return f;}});var r=n("4c6d310c"),i=n("22b52967"),o=n("99923330"),a={};function s(t){return a[t]||(a[t]=(0,i.upperFirst)(t)),a[t];}var u={defaultShapeType:"defaultType",className:null,getShape:function(t){return this[t]||this[this.defaultShapeType]||this["simple-circle"];},draw:function(t,e,n){var r=this.getShape(t);n.shapeMap={};var i=r.draw(e,n);return r.afterDraw&&r.afterDraw(e,n,i),i;},baseUpdate:function(t,e,n,r){var i,o,a=this.getShape(t);a.update&&(a.mergeStyle=null===(i=a.getOptions)||void 0===i?void 0:i.call(a,e,r),null===(o=a.update)||void 0===o||o.call(a,e,n,r)),a.afterUpdate&&a.afterUpdate(e,n);},setState:function(t,e,n,r){this.getShape(t).setState(e,n,r);},shouldUpdate:function(t){return!!this.getShape(t).update;},getControlPoints:function(t,e){return this.getShape(t).getControlPoints(e);},getAnchorPoints:function(t,e){return this.getShape(t).getAnchorPoints(e);}},c={options:{},draw:function(t,e){return this.drawShape(t,e);},drawShape:function(){},afterDraw:function(){},afterUpdate:function(){},setState:function(){},getControlPoints:function(t){return t.controlPoints;},getAnchorPoints:function(t){var e=this.options.anchorPoints;return t.anchorPoints||e;}},l=function(){function t(){}return t.registerFactory=function(e,n){var i=s(e),o=(0,r.__assign)((0,r.__assign)({},u),n);return t[i]=o,o.className=i,o;},t.getFactory=function(e){return t[s(e)];},t.registerNode=function(e,n,i){var a,s=t.Node;if("string"==typeof n||"function"==typeof n){var u=(0,o.createNodeFromXML)(n);a=(0,r.__assign)((0,r.__assign)({},s.getShape("single-node")),u);}else if(n.jsx){var l=n.jsx,u=(0,o.createNodeFromXML)(l);a=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},s.getShape("single-node")),u),n);}else{s.getShape(i);var f=i?s.getShape(i):c;a=(0,r.__assign)((0,r.__assign)({},f),n);}return a.type=e,a.itemType="node",s[e]=a,a;},t.registerEdge=function(e,n,i){var o=t.Edge,a=i?o.getShape(i):c,s=(0,r.__assign)((0,r.__assign)({},a),n);return s.type=e,s.itemType="edge",o[e]=s,s;},t.registerCombo=function(e,n,i){var o=t.Combo,a=i?o.getShape(i):c,s=(0,r.__assign)((0,r.__assign)({},a),n);return s.type=e,s.itemType="combo",o[e]=s,s;},t;}(),f=l;l.registerFactory("node",{defaultShapeType:"circle"}),l.registerFactory("edge",{defaultShapeType:"line"}),l.registerFactory("combo",{defaultShapeType:"circle"});},a9d559a1:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("4c6d310c"),i=n("168feef4"),o=n("22b52967");(0,i.registerNode)("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:i.BaseGlobal.defaultNode.style.stroke,fill:i.BaseGlobal.defaultNode.style.fill,lineWidth:i.BaseGlobal.defaultNode.style.lineWidth},labelCfg:{style:{fill:i.BaseGlobal.nodeLabel.style.fill,fontSize:i.BaseGlobal.nodeLabel.style.fontSize,fontFamily:i.BaseGlobal.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:i.BaseGlobal.defaultNode.linkPoints.size,lineWidth:i.BaseGlobal.defaultNode.linkPoints.lineWidth,fill:i.BaseGlobal.defaultNode.linkPoints.fill,stroke:i.BaseGlobal.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,r.__assign)({},i.BaseGlobal.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).icon,i=void 0===n?{}:n,o=this.getShapeStyle(t),a=e.addShape("ellipse",{attrs:o,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});e.shapeMap["ellipse-keyShape"]=a;var s=i.width,u=i.height,c=i.show,l=i.text;return c&&(l?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,r.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,r.__assign)({x:-s/2,y:-u/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),a;},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,i=void 0===n?{}:n,o=i.top,a=i.left,s=i.right,u=i.bottom,c=i.size,l=i.r,f=(0,r.__rest)(i,["top","left","right","bottom","size","r"]),d=this.getSize(t),h=d[0]/2,g=d[1]/2;a&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:-h,y:0,r:c/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:h,y:0,r:c/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:-g,r:c/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:g,r:c/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}));},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},i=(0,o.mix)({},e,n),a=this.getSize(t),s=a[0]/2,u=a[1]/2;return(0,r.__assign)({x:0,y:0,rx:s,ry:u},i);},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,a=this.getSize(t),s={stroke:t.color,rx:a[0]/2,ry:a[1]/2},u=e.get("keyShape"),c=(0,o.mix)({},i,u.attr(),s);c=(0,o.mix)(c,t.style),this.updateShape(t,e,c,!0,n),this.updateLinkPoints(t,r);}},"single-node");},a9da1bbd:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("c2d1eb5c")),a=r._(n("155fe01c")),s=function(t,e){var n;if((0,a.default)(e))n=function(t,n){return e(t)-e(n);};else{var r=[];(0,o.default)(e)?r.push(e):(0,i.default)(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return -1;}return 0;};}return t.sort(n),t;};},aa8512ed:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return v;}});var r,i=n("777fffbe"),o=n("c966c938"),a=n("5fab14e3"),s=n("ddb380bf"),u=n("22b52967"),c=i._(n("b208d868")),l=n("10f09425"),f=i._(n("116feced")),d=i._(n("127096f8")),h=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),g=this&&this.__assign||function(){return(g=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},p=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n;},v=function(t){function e(e){var n=t.call(this,e)||this;return n.afterrenderListener=function(t){return n.filterData({});},n.valueChangeListener=(0,u.throttle)(function(t){return n.filterData(t);},200,{trailing:!0,leading:!0}),n.changeData=function(t){var e=n.get("graph");n.cacheGraphData=e.get("data"),n.filterData({});},n;}return h(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-component-timebar",padding:10,type:"trend",trend:{data:[],isArea:!1,smooth:!0},controllerCfg:{speed:1,loop:!1},slider:{start:.1,end:.9,minText:"min",maxText:"max"},tick:{start:.1,end:.9,data:[]},textStyle:{},filterEdge:!1,filterItemTypes:["node"],containerCSS:{},putInGraphContainer:!0};},e.prototype.initContainer=function(){var t,e,n=this.get("graph"),r=this._cfgs,i=r.width,c=r.height,l=r.putInGraphContainer,f=this.get("className")||"g6-component-timebar",d=this.get("container");d?((0,u.isString)(d)&&(d=document.getElementById(d)),t=d):(t=(0,o.createDom)("<div class='".concat(f,"'></div>")),(0,o.modifyCSS)(t,{position:"relative"})),l&&this.get("graph").get("container").appendChild(t),this.set("timeBarContainer",t),e="SVG"===n.get("renderer")?new s.Canvas({container:t,width:i,height:c}):new a.Canvas({container:t,width:i,height:c}),this.get("containerCSS")&&(0,o.modifyCSS)(t,this.get("containerCSS")),this.set("canvas",e);},e.prototype.init=function(){this.initContainer();var t=this.get("canvas").addGroup({name:"timebar-group"});this.set("timeBarGroup",t),this.renderTrend(),this.initEvent();var e="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",e);},e.prototype.play=function(){this.togglePlay(!0);},e.prototype.pause=function(){this.togglePlay(!1);},e.prototype.togglePlay=function(t){var e=this.get("timebar");e&&(e.isPlay=!!t,e.changePlayStatus());},e.prototype.renderTrend=function(){var t=this,e=this._cfgs,n=e.width,r=e.x,i=e.y,o=e.padding,a=e.type,s=e.trend,u=e.slider,c=e.controllerCfg,l=e.textStyle,h=e.tick,v=e.backgroundStyle,m=e.foregroundStyle,y=s.data,b=p(s,["data"]),x="trend"===a?26:4,_=this.get("graph"),E=this.get("timeBarGroup"),w=this.get("canvas"),M=null;if("trend"===a||"simple"===a){var C=this.get("getValue");M=new d.default(g(g({graph:_,canvas:w,group:E,type:a,x:r+o,y:"trend"===a?i+o:i+o+15,width:n-2*o,height:x,padding:o,backgroundStyle:v,foregroundStyle:m,trendCfg:g(g({},b),{data:y.map(function(t){return(null==C?void 0:C(t))||t.value;})})},u),{tick:{ticks:y,tickLabelFormatter:h.tickLabelFormatter,tickLabelStyle:h.tickLabelStyle,tickLineStyle:h.tickLineStyle},handlerStyle:g(g({},u.handlerStyle),{height:u.height||x}),controllerCfg:c,textStyle:l}));}else"tick"===a&&(M=new f.default(g({graph:_,canvas:w,group:E,x:r+o,y:i+o,width:n,height:42,padding:2,controllerCfg:c},h)));var A=function e(){var n=t.get("timebar");n.draggingHandler=!1,n.isPlay&&(n.isPlay=!1,n.currentHandler=n.maxHandlerShape,n.changePlayStatus()),document.removeEventListener("mouseup",e);};w.on("mousedown",function(t){("maxHandlerShape-handler"===t.target.get("name")||"minHandlerShape-handler"===t.target.get("name")||t.target===M.foregroundShape)&&document.addEventListener("mouseup",A);}),this.set("timebar",M);},e.prototype.filterData=function(t){var e,n=t.value;if(!n){n=[];var r=this._cfgs.type;r&&"trend"!==r&&"simple"!==r?"tick"===r&&(n[0]=this._cfgs.tick.start,n[1]=this._cfgs.tick.end):(n[0]=this._cfgs.slider.start,n[1]=this._cfgs.slider.end);}var i=null,o=this._cfgs.type;if("trend"===o||"simple"===o?i=this._cfgs.trend.data:"tick"===o&&(i=this._cfgs.tick.data),!i||0===i.length){console.warn("\u8BF7\u914D\u7F6E TimeBar \u7EC4\u4EF6\u7684\u6570\u636E");return;}var a=this.get("rangeChange"),s=this.get("graph"),u=Math.round(i.length*n[0]),c=Math.round(i.length*n[1]);c=c>=i.length?i.length-1:c,u=u>=i.length?i.length-1:u;var l=null===(e=this._cfgs.tick)||void 0===e?void 0:e.tickLabelFormatter,f=l?l(i[u]):i[u].date,d=l?l(i[c]):i[c].date;if("tick"!==o&&this.get("timebar").setText(f,d),a)a(s,f,d);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&0===this.cacheGraphData.nodes.length)&&(this.cacheGraphData=s.get("data"));var h=this.get("filterItemTypes"),g=this.get("changeData"),p=this.get("getDate"),v=this.get("shouldIgnore"),m=i[u].date,y=i[c].date;if(g||void 0===g){var b=this.cacheGraphData.nodes,x=this.cacheGraphData.edges,_={},E={};s.getNodes().forEach(function(t){return _[t.getID()]=!0;}),s.getEdges().forEach(function(t){return E[t.getID()]=!0;}),h.includes("node")&&(null==b||b.forEach(function(t){var e=+((null==p?void 0:p(t))||t.date),n=e>=m&&e<=y||(null==v?void 0:v("node",t,{min:m,max:y})),r=_[t.id];r&&!n?(s.removeItem(t.id),_[t.id]=!1):!r&&n&&(s.addItem("node",t),_[t.id]=!0);}),null==x||x.forEach(function(t){var e=_[t.source]&&_[t.target]||(null==v?void 0:v("edge",t,{min:m,max:y})),n=!!s.findById(t.id);n&&!e?(s.removeItem(t.id),E[t.id]=!1):!n&&e?(s.addItem("edge",t),E[t.id]=!0):n||(E[t.id]=!1);})),(this.get("filterEdge")||h.includes("edge"))&&(null==x||x.filter(function(t){var e=+((null==p?void 0:p(t))||t.date),n=e>=m&&e<=y||(null==v?void 0:v("edge",t,{min:m,max:y})),r=_[t.source]&&_[t.target],i=n&&r,o=E[t.id];o&&!i?(E[t.id]=!1,s.removeItem(t.id)):!o&&i&&(E[t.id]=!0,s.addItem("edge",t));}));}else h.includes("node")&&s.getNodes().forEach(function(t){var e=t.getModel();if(null==v||!v("node",e,{min:m,max:y})){var n=+((null==p?void 0:p(e))||e.date);n<m||n>y?s.hideItem(t):s.showItem(t);}}),(this.get("filterEdge")||h.includes("edge"))&&s.getEdges().forEach(function(t){var e=t.getModel();if(null==v||!v("edge",e,{min:i[u].date,max:i[c].date})){var n=+((null==p?void 0:p(e))||e.date);if(n<i[u].date||n>i[c].date)s.hideItem(t);else{var r=t.getSource().isVisible(),o=t.getTarget().isVisible();r&&o&&s.showItem(t);}}});}},e.prototype.initEvent=function(){var t=this.get("graph");t.on("afterchangedata",this.changeData),t.on("afterrender",this.afterrenderListener),t.on(l.VALUE_CHANGE,this.valueChangeListener);},e.prototype.destroy=function(){var e=this.get("graph");e.off("afterchangedata",this.changeData),e.off("afterrender",this.afterrenderListener),e.off(l.VALUE_CHANGE,this.valueChangeListener);var n=this.get("timebar");n&&n.destory&&n.destory(),t.prototype.destroy.call(this);var r=this.get("timeBarContainer");if(r){var i=this.get("container");i||(i=this.get("graph").get("container")),(0,u.isString)(i)&&(i=document.getElementById(i)),i===r&&(i=i.parentElement),i.removeChild(r);}},e;}(c.default);},aa9c0e59:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{DEFAULT_Q:function(){return o;},default:function(){return s;}});var r=n("22b52967"),i=n("363e6d7b"),o=[1,5,2,2.5,4,3],a=100*Number.EPSILON;function s(t,e,n,s,u,c){void 0===n&&(n=5),void 0===s&&(s=!0),void 0===u&&(u=o),void 0===c&&(c=[.25,.2,.5,.05]);var l=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!l)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===l)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var f=n||5,d=(e-t)/f;return{min:t,max:e,ticks:Array(f).fill(null).map(function(e,n){return(0,i.prettyNumber)(t+d*n);})};}for(var h={score:-2,lmin:0,lmax:0,lstep:0},g=1;g<1/0;){for(var p=0;p<u.length;p+=1){var v=u[p],m=function(t,e,n){var i=(0,r.size)(e);return 1-(0,r.indexOf)(e,t)/(i-1)-n+1;}(v,u,g);if(c[0]*m+c[1]+c[2]+c[3]<h.score){g=1/0;break;}for(var y=2;y<1/0;){var b=(A=y)>=l?2-(A-1)/(l-1):1;if(c[0]*m+c[1]+c[2]*b+c[3]<h.score)break;for(var x=Math.ceil(Math.log10((e-t)/(y+1)/g/v));x<1/0;){var _=g*v*Math.pow(10,x),E=function(t,e,n){var r=e-t;return n>r?1-Math.pow((n-r)/2,2)/Math.pow(.1*r,2):1;}(t,e,_*(y-1));if(c[0]*m+c[1]*E+c[2]*b+c[3]<h.score)break;var w=Math.floor(e/_)*g-(y-1)*g,M=Math.ceil(t/_)*g;if(w<=M)for(var f=M-w,C=0;C<=f;C+=1){var A,S=_/g*(w+C),D=S+_*(y-1),I=function(t,e,n,i,o,s){var u=(0,r.size)(e),c=(0,r.indexOf)(e,t),l=0,f=(i%s+s)%s;return(f<a||s-f<a)&&i<=0&&o>=0&&(l=1),1-c/(u-1)-n+l;}(v,u,g,S,D,_),T=1-.5*(Math.pow(e-D,2)+Math.pow(t-S,2))/Math.pow(.1*(e-t),2),k=function(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a);}(y,l,t,e,S,D),F=c[0]*I+c[1]*T+c[2]*k+1*c[3];F>h.score&&(!s||S<=t&&D>=e)&&(h.lmin=S,h.lmax=D,h.lstep=_,h.score=F);}x+=1;}y+=1;}}g+=1;}var N=(0,i.prettyNumber)(h.lmax),O=(0,i.prettyNumber)(h.lmin),B=(0,i.prettyNumber)(h.lstep),P=Math.floor(Math.round((N-O)/B*1e12)/1e12)+1,L=Array(P);L[0]=(0,i.prettyNumber)(O);for(var p=1;p<P;p++)L[p]=(0,i.prettyNumber)(L[p-1]+B);return{min:Math.min(t,(0,r.head)(L)),max:Math.max(e,(0,r.last)(L)),ticks:L};}},aac703c5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("04480408");class i extends r.AbstractMatrix{constructor(t){super(),this.data=t,this.rows=t.length,this.columns=t[0].length;}set(t,e,n){return this.data[t][e]=n,this;}get(t,e){return this.data[t][e];}}},ab1c48d3:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("84d858ba")),i=function(t,e,n,i,o,a,s,u){return void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===i&&(i=1e-4),void 0===o&&(o=void 0),void 0===a&&(a=[]),void 0===s&&(s=["id"]),void 0===u&&(u=1),(0,r.default)(t,e,n,i,!0,o,a,s,u);};},ab51cd4f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Base:function(){return i.default;},Circle:function(){return o.default;},Dom:function(){return a.default;},Ellipse:function(){return s.default;},Image:function(){return u.default;},Line:function(){return c.default;},Marker:function(){return l.default;},Path:function(){return f.default;},Polygon:function(){return d.default;},Polyline:function(){return h.default;},Rect:function(){return g.default;},Text:function(){return p.default;}});var r=n("777fffbe"),i=r._(n("1bfab17d")),o=r._(n("1b2dab90")),a=r._(n("15c5543e")),s=r._(n("3c2540e8")),u=r._(n("2d2b746a")),c=r._(n("fa0c0f80")),l=r._(n("7973edf4")),f=r._(n("62164263")),d=r._(n("5358c545")),h=r._(n("b5ac46c8")),g=r._(n("cc6f6e29")),p=r._(n("91ee6763"));},acab6c7c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("22b52967"),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},o={fill:"#1890ff",stroke:"#1890ff",type:"trend",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#0050b3"},a={fill:"#fff",stroke:"#1890ff",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#0050b3"},s=function(){function t(t){var e=t.group,n=t.name,r=t.type,s=t.x,u=t.y,c=t.width,l=t.height,f=t.style,d=void 0===f?{}:f;this.group=e,this.name=n,this.handleType=r,this.x=void 0===s?0:s,this.y=void 0===u?0:u,this.width=void 0===c?2:c,this.height=void 0===l?24:l,"trend"===r?this.style=i(i({},o),d):"simple"===r&&(this.style=i(i({},a),d)),this.renderHandle();}return t.prototype.setX=function(t){this.setXY(t,void 0);},t.prototype.setY=function(t){this.setXY(void 0,t);},t.prototype.setXY=function(t,e){(0,r.isNumber)(t)&&(this.x=t),(0,r.isNumber)(e)&&(this.y=e),this.updateXY();},t.prototype.renderHandle=function(){var t=this.width,e=this.height,n=this.style,r=this.name,i=n.fill,o=n.stroke,a=n.radius,s=n.opacity,u=n.cursor;this.handleGroup=this.group.addGroup(),"trend"===this.handleType?(this.verticalLine=this.handleGroup.addShape("rect",{attrs:{x:0,y:0,width:t,height:e,fill:i,stroke:o,radius:a,opacity:s,cursor:u},name:"".concat(r,"-handler")}),this.topCircle=this.handleGroup.addShape("circle",{attrs:{x:t/2,y:0,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:u,lineAppendWidth:12},name:"".concat(r,"-handler")}),this.bottomCircle=this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:u},name:"".concat(r,"-handler")})):"simple"===this.handleType&&(this.topCircle=this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e/2,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:u,lineWidth:2},name:"".concat(r,"-handler")})),this.updateXY(),"trend"===this.handleType?this.bindTrendEvents():"simple"===this.handleType&&this.bindSimpleEvents();},t.prototype.bindSimpleEvents=function(){var t=this,e=this.name;this.handleGroup.on("".concat(e,"-handler:mouseenter"),function(){var e=t.style.highLightFill;t.topCircle.attr("fill",e);}),this.handleGroup.on("".concat(e,"-handler:mouseleave"),function(){var e=t.style.fill;t.topCircle.attr("fill",e);});},t.prototype.bindTrendEvents=function(){var t=this,e=this.name;this.handleGroup.on("".concat(e,"-handler:mouseenter"),function(){var e=t.style.highLightFill;t.verticalLine.attr("fill",e),t.topCircle.attr("fill",e),t.bottomCircle.attr("fill",e);}),this.handleGroup.on("".concat(e,"-handler:mouseleave"),function(){var e=t.style.fill;t.verticalLine.attr("fill",e),t.topCircle.attr("fill",e),t.bottomCircle.attr("fill",e);});},t.prototype.show=function(){this.handleGroup.show();},t.prototype.hide=function(){this.handleGroup.hide();},t.prototype.updateXY=function(){this.handleGroup.setMatrix([1,0,0,0,1,0,this.x,this.y,1]);},t;}();},accef496:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("ff62099c");function i(t){var e,n=t.attr(),i=n.x,o=n.y,a=n.text,s=n.fontSize,u=n.lineHeight,c=n.font;c||(c=(0,r.assembleFont)(n));var l=(0,r.getTextWidth)(a,c);if(l){var f=n.textAlign,d=n.textBaseline,h=(0,r.getTextHeight)(a,s,u),g={x:i,y:o-h};f&&("end"===f||"right"===f?g.x-=l:"center"===f&&(g.x-=l/2)),d&&("top"===d?g.y+=h:"middle"===d&&(g.y+=h/2)),e={x:g.x,y:g.y,width:l,height:h};}else e={x:i,y:o,width:0,height:0};return e;}},acf5b1cd:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("22b52967"),i=n("c966c938"),o=function(){function t(t){var e=t.x,n=t.y,r=t.container,i=t.text,o=t.padding,a=t.className,s=t.backgroundColor,u=t.textColor,c=t.opacity,l=t.fontSize;this.container=r,this.className=void 0===a?"g6-component-timebar-tooltip":a,this.backgroundColor=void 0===s?"#000":s,this.textColor=void 0===u?"#fff":u,this.x=void 0===e?0:e,this.y=void 0===n?0:n,this.text=i,this.padding=void 0===o?[4,4,4,4]:o,this.opacity=void 0===c?.8:c,this.fontSize=void 0===l?12:l,this.render();}return t.prototype.render=function(){var t=this.className,e=(this.x,this.y,this.backgroundColor),n=this.textColor,o=this.text,a=this.padding,s=this.opacity,u=this.fontSize,c=this.container,l=(0,i.createDom)("<div class='".concat(t,"' style=\"position: absolute; width: fit-content; height: fit-content; opacity: ").concat(s,'"></div>'));(0,r.isString)(c)&&(c=document.getElementById(c)),c.appendChild(l),this.parentHeight=c.offsetHeight,this.parentWidth=c.offsetWidth,(0,i.modifyCSS)(l,{visibility:"hidden",top:0,left:0});var f=(0,i.createDom)("\n <div style='position: absolute; white-space:nowrap; background-color: ".concat(e,"; font-size: ").concat(u,"px; border-radius: 4px; width: fit-content; height: fit-content; color: ").concat(n,"; padding: ").concat(a[0],"px ").concat(a[1],"px ").concat(a[2],"px ").concat(a[3],"px'></div>"));f.innerHTML=o,l.appendChild(f),this.backgroundDOM=f;var d=(0,i.createDom)("<div style='position: absolute; width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid ".concat(e,"'></div>"));l.appendChild(d),this.arrowDOM=d,this.container=l;},t.prototype.show=function(t){var e=t.text,n=t.x;t.y,t.clientX,t.clientY,this.backgroundDOM.innerHTML=e;var r=this.backgroundDOM.offsetWidth,o=this.backgroundDOM.offsetHeight,a=this.arrowDOM.offsetWidth,s=this.arrowDOM.offsetHeight;(0,i.modifyCSS)(this.container,{top:"".concat(-o-s,"px"),left:"".concat(n,"px"),visibility:"visible"}),(0,i.modifyCSS)(this.backgroundDOM,{marginLeft:"".concat(-r/2,"px")}),(0,i.modifyCSS)(this.arrowDOM,{marginLeft:"".concat(-a/2,"px"),top:"".concat(o,"px")});var u=n-r/2,c=n+r/2;u<0?(0,i.modifyCSS)(this.backgroundDOM,{marginLeft:"".concat(-r/2-u,"px")}):c>this.parentWidth&&(0,i.modifyCSS)(this.backgroundDOM,{marginLeft:"".concat(-r/2-c+this.parentWidth+12,"px")});},t.prototype.hide=function(){(0,i.modifyCSS)(this.container,{top:0,left:0,visibility:"hidden"});},t;}();},ad0731aa:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{SortedArray:function(){return I;},_costByPoints:function(){return m;},distance:function(){return v;},filterConnectPoints:function(){return o;},getBBoxCrossPointsByPoint:function(){return p;},getBBoxFromPoint:function(){return r;},getBBoxFromPoints:function(){return i;},getBBoxXCrossPoints:function(){return h;},getBBoxYCrossPoints:function(){return g;},getBorderRadiusPoints:function(){return C;},getExpandedBBox:function(){return s;},getExpandedBBoxPoint:function(){return c;},getNeighborPoints:function(){return E;},getPathWithBorderRadiusByPolyline:function(){return A;},getPointsFromBBox:function(){return f;},getPolylinePoints:function(){return S;},heuristicCostEstimate:function(){return y;},isBending:function(){return M;},isHorizontalPort:function(){return u;},isPointOutsideBBox:function(){return d;},isSegmentCrossingBBox:function(){return _;},isSegmentsIntersected:function(){return x;},mergeBBox:function(){return l;},pathFinder:function(){return w;},reconstructPath:function(){return b;},removeRedundantPoint:function(){return D;},simplifyPolyline:function(){return a;}});var r=function(t){var e=t.x,n=t.y;return{x:e,y:n,centerX:e,centerY:n,minX:e,minY:n,maxX:e,maxY:n,height:0,width:0};},i=function(t){void 0===t&&(t=[]);var e=[],n=[];t.forEach(function(t){e.push(t.x),n.push(t.y);});var r=Math.min.apply(Math,e),i=Math.max.apply(Math,e),o=Math.min.apply(Math,n),a=Math.max.apply(Math,n);return{centerX:(r+i)/2,centerY:(o+a)/2,maxX:i,maxY:a,minX:r,minY:o,height:a-o,width:i-r};},o=function(t){for(var e=[],n={},r=t.length,i=r-1;i>=0;i--){var o=t[i];o.id="".concat(o.x,"|||").concat(o.y),n[o.id]||(n[o.id]=o,e.push(o));}return e;},a=function(t){return o(t);},s=function(t,e){return t.width||t.height?{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}:t;},u=function(t,e){var n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return 0===n&&0===r?0:n/e.width>r/e.height;},c=function(t,e,n){var r=u(e,t);if(0===r){var i=t.centerX,o=t.centerY;return n.y<e.y?o=t.minY:n.x>e.x?i=t.maxX:n.x<e.x?i=t.minX:n.x===e.x&&(o=t.maxY),{x:i,y:o};}return r?{x:e.x>t.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY};},l=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i=Math.max(t.maxX,e.maxX),o=Math.max(t.maxY,e.maxY);return{centerX:(n+i)/2,centerY:(r+o)/2,minX:n,minY:r,maxX:i,maxY:o,height:o-r,width:i-n};},f=function(t){return[{x:t.minX,y:t.minY},{x:t.maxX,y:t.minY},{x:t.maxX,y:t.maxY},{x:t.minX,y:t.maxY}];},d=function(t,e){var n=t.x,r=t.y;return n<e.minX||n>e.maxX||r<e.minY||r>e.maxY;},h=function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}];},g=function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}];},p=function(t,e){return h(t,e.x).concat(g(t,e.y));},v=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y);},m=function(t,e){var n=0;return e.forEach(function(e){e&&(t.x===e.x&&(n+=-2),t.y===e.y&&(n+=-2));}),n;},y=function(t,e,n,r,i){return v(t,e)+v(t,n)+m(t,[e,n,r,i]);},b=function t(e,n,r,i,o){void 0===o&&(o=0),e.unshift(n[i]),r[i]&&r[i]!==i&&o<=100&&t(e,n,r,r[i],o+1);},x=function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=r.x-t.x,s=r.y-t.y,u=n.x-e.x,c=n.y-e.y,l=r.x-e.x,f=r.y-e.y;return(i*s-o*a)*(u*f-c*l)<=0&&(i*c-o*u)*(a*f-s*l)<=0;},_=function(t,e,n){if(n.width||n.height){var r=f(n),i=r[0],o=r[1],a=r[2],s=r[3];return x(t,e,i,o)||x(t,e,i,s)||x(t,e,o,a)||x(t,e,a,s);}return!1;},E=function(t,e,n,r){var i=[];return t.forEach(function(t){t===e||t.x!==e.x&&t.y!==e.y||_(t,e,n)||_(t,e,r)||i.push(t);}),o(i);},w=function(t,e,n,r,i,o,a){var s,u,c=[],l=((s={})[e.id]=e,s),f={},d={},h={};d[e.id]=0,h[e.id]=y(e,n,e);var g=new I;g.add({id:e.id,value:h[e.id]});var p={};for(t.forEach(function(t){p[t.id]=t;});Object.keys(l).length;){var m=g.minId(!1);if(m)u=l[m];else break;if(u===n){var x=[];return b(x,p,f,n.id),x;}delete l[u.id],g.remove(u.id),c.push(u),function(t){t.forEach(function(t){if(-1===c.indexOf(t)){var r=t.id;l[r]||(l[r]=t);var i=h[u.id]+v(u,t);if(d[r]&&i>=d[r]){g.add({id:r,value:h[r]});return;}f[r]=u.id,d[r]=i,h[r]=d[r]+y(t,n,e,o,a),g.add({id:r,value:h[r]});}});}(E(t,u,r,i));}return[e,n];},M=function(t,e,n){return!(t.x===e.x&&e.x===n.x||t.y===e.y&&e.y===n.y);},C=function(t,e,n,r){var i=v(t,e),o=v(n,e);return i<r&&(r=i),o<r&&(r=o),[{x:e.x-r/i*(e.x-t.x),y:e.y-r/i*(e.y-t.y)},{x:e.x-r/o*(e.x-n.x),y:e.y-r/o*(e.y-n.y)}];},A=function(t,e){var n=[],r=t[0];return n.push("M".concat(r.x," ").concat(r.y)),t.forEach(function(r,i){var o=t[i+1],a=t[i+2];if(o&&a){if(M(r,o,a)){var s=C(r,o,a,e),u=s[0],c=s[1];n.push("L".concat(u.x," ").concat(u.y)),n.push("Q".concat(o.x," ").concat(o.y," ").concat(c.x," ").concat(c.y)),n.push("L".concat(c.x," ").concat(c.y));}else n.push("L".concat(o.x," ").concat(o.y));}else o&&n.push("L".concat(o.x," ").concat(o.y));}),n.join("");},S=function(t,e,n,u,h){if(n&&n.getType()){if("combo"===n.getType()){var g,v,m=n.getKeyShape().getBBox();if(m){var y=n.getModel(),b=y.x,x=y.y;(g={x:b,y:x,width:m.width,height:m.height,minX:m.minX+b,maxX:m.maxX+b,minY:m.minY+x,maxY:m.maxY+x}).centerX=(g.minX+g.maxX)/2,g.centerY=(g.minY+g.maxY)/2;}else g=r(t);}else g=n&&n.getBBox();}else g=r(t);if(u&&u.getType()){if("combo"===u.getType()){var _=u.getKeyShape().getBBox();if(_){var E=u.getModel(),M=E.x,C=E.y;(v={x:M,y:C,width:_.width,height:_.height,minX:_.minX+M,maxX:_.maxX+M,minY:_.minY+C,maxY:_.maxY+C}).centerX=(v.minX+v.maxX)/2,v.centerY=(v.minY+v.maxY)/2;}else v=r(e);}else v=u&&u.getBBox();}else v=r(e);var A=s(g,h),S=s(v,h),D=c(A,t,e),I=c(S,e,t),T=i([D,I]),k=l(A,T),F=l(S,T),N=[];N=N.concat(f(k)).concat(f(F));var O={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[T,k,F].forEach(function(t){N=N.concat(p(t,O).filter(function(t){return d(t,A)&&d(t,S);}));}),[{x:D.x,y:I.y},{x:I.x,y:D.y}].forEach(function(t){d(t,A)&&d(t,S)&&N.push(t);}),N.unshift(D),N.push(I);var B=w(N=o(N),D,I,g,v,t,e);return B.unshift(t),B.push(e),a(B);},D=function(t){if(!(null==t?void 0:t.length))return t;for(var e=t[t.length-1],n={x:e.x,y:e.y},r=[e],i=[e],o=t.length-2;o>=0;o--){var a=t[o];if(a.x===n.x?r.push(a):(r=[a],n.x=a.x),a.y===n.y?i.push(a):(i=[a],n.y=a.y),r.length>2){var s=t.indexOf(r[1]);s>-1&&t.splice(s,1);continue;}if(i.length>2){var s=t.indexOf(i[1]);s>-1&&t.splice(s,1);}}return t;},I=function(){function t(){this.arr=[],this.map={},this.arr=[],this.map={};}return t.prototype._innerAdd=function(t,e){for(var n=[0,e-1];n[1]-n[0]>1;){var r=Math.floor((n[0]+n[1])/2);if(this.arr[r].value>t.value)n[1]=r;else if(this.arr[r].value<t.value)n[0]=r;else{this.arr.splice(r,0,t),this.map[t.id]=!0;return;}}this.arr.splice(n[1],0,t),this.map[t.id]=!0;},t.prototype.add=function(t){delete this.map[t.id];var e=this.arr.length;if(!e||this.arr[e-1].value<t.value){this.arr.push(t),this.map[t.id]=!0;return;}this._innerAdd(t,e);},t.prototype.remove=function(t){this.map[t]&&delete this.map[t];},t.prototype._clearAndGetMinId=function(){for(var t,e=this.arr.length-1;e>=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t;},t.prototype._findFirstId=function(){for(;this.arr.length;){var t=this.arr.shift();if(this.map[t.id])return t.id;}},t.prototype.minId=function(t){return t?this._clearAndGetMinId():this._findFirstId();},t;}();},ad4a9b63:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.aveMovementBundle=e.aveMovementCode=e.gForceBundle=e.gForceCode=void 0,e.gForceCode="\nimport { globalInvocationID } from 'g-webgpu';\n\nconst MAX_EDGE_PER_VERTEX;\nconst VERTEX_COUNT;\nconst SHIFT_20 = 1048576;\n\n@numthreads(1, 1, 1)\nclass GGForce {\n @in @out\n u_Data: vec4[];\n\n @in\n u_damping: float;\n \n @in\n u_maxSpeed: float;\n\n @in\n u_minMovement: float;\n\n @in\n u_AveMovement: vec4[];\n\n @in\n u_coulombDisScale: float;\n\n @in\n u_factor: float;\n\n @in\n u_NodeAttributeArray1: vec4[];\n\n @in\n u_NodeAttributeArray2: vec4[];\n\n @in\n u_interval: float;\n\n unpack_float(packedValue: float): ivec2 {\n const packedIntValue = int(packedValue);\n const v0 = packedIntValue / SHIFT_20;\n return [v0, packedIntValue - v0 * SHIFT_20];\n }\n\n calcRepulsive(i: int, currentNode: vec4): vec2 {\n let ax = 0, ay = 0;\n for (let j: int = 0; j < VERTEX_COUNT; j++) {\n if (i != j) {\n const nextNode = this.u_Data[j];\n const vx = currentNode[0] - nextNode[0];\n const vy = currentNode[1] - nextNode[1];\n const dist = sqrt(vx * vx + vy * vy) + 0.01;\n const n_dist = (dist + 0.1) * this.u_coulombDisScale;\n const direx = vx / dist;\n const direy = vy / dist;\n const attributesi = this.u_NodeAttributeArray1[i];\n const attributesj = this.u_NodeAttributeArray1[j];\n const massi = attributesi[0];\n const nodeStrengthi = attributesi[2];\n const nodeStrengthj = attributesj[2];\n const nodeStrength = (nodeStrengthi + nodeStrengthj) / 2;\n // const param = nodeStrength * this.u_factor / (n_dist * n_dist * massi);\n const param = nodeStrength * this.u_factor / (n_dist * n_dist);\n ax += direx * param;\n ay += direy * param;\n }\n }\n return [ax, ay];\n }\n\n calcGravity(i: int, currentNode: vec4, attributes2: vec4): vec2 {\n // note: attributes2 = [centerX, centerY, gravity, 0]\n\n const vx = currentNode[0] - attributes2[0];\n const vy = currentNode[1] - attributes2[1];\n \n const ax = vx * attributes2[2];\n const ay = vy * attributes2[2];\n \n return [ax, ay];\n }\n\n calcAttractive(i: int, currentNode: vec4, attributes1: vec4): vec2 {\n // note: attributes1 = [mass, degree, nodeSterngth, 0]\n\n const mass = attributes1[0];\n let ax = 0, ay = 0;\n // const arr_offset = int(floor(currentNode[2] + 0.5));\n // const length = int(floor(currentNode[3] + 0.5));\n\n const compressed = this.unpack_float(currentNode[2]);\n const length = compressed[0];\n const arr_offset = compressed[1];\n\n const node_buffer: vec4;\n for (let p: int = 0; p < MAX_EDGE_PER_VERTEX; p++) {\n if (p >= length) break;\n const arr_idx = arr_offset + 4 * p; // i \u8282\u70B9\u7684\u7B2C p \u6761\u8FB9\u5F00\u59CB\u7684\u5C0F\u683C\u5B50\u4F4D\u7F6E\n const buf_offset = arr_idx - arr_idx / 4 * 4;\n if (p == 0 || buf_offset == 0) {\n node_buffer = this.u_Data[int(arr_idx / 4)]; // \u5927\u683C\u5B50\uFF0C\u5927\u683C\u5B50\u4F4D\u7F6E=\u5C0F\u4E2A\u5B50\u4F4D\u7F6E / 4\uFF0C\n }\n\n let float_j: float = node_buffer[0];\n\n const nextNode = this.u_Data[int(float_j)];\n const vx = nextNode[0] - currentNode[0];\n const vy = nextNode[1] - currentNode[1];\n const dist = sqrt(vx * vx + vy * vy) + 0.01;\n const direx = vx / dist;\n const direy = vy / dist;\n const edgeLength = node_buffer[1];\n const edgeStrength = node_buffer[2];\n const diff: float = edgeLength - dist;//edgeLength\n // const param = diff * this.u_stiffness / mass; //\n const param = diff * edgeStrength / mass; // \n ax -= direx * param;\n ay -= direy * param;\n }\n return [ax, ay];\n }\n\n @main\n compute() {\n const i = globalInvocationID.x;\n const currentNode = this.u_Data[i];\n const movement = u_AveMovement[0];\n let ax = 0, ay = 0;\n\n if (i >= VERTEX_COUNT || movement.x < u_minMovement) {\n this.u_Data[i] = currentNode;\n return;\n }\n\n // \u6BCF\u4E2A\u8282\u70B9\u5C5E\u6027\u5360\u4E24\u4E2A\u6570\u7EC4\u4E2D\u5404\u4E00\u683C\n // [mass, degree, nodeStrength, fx]\n const nodeAttributes1 = this.u_NodeAttributeArray1[i];\n // [centerX, centerY, centerGravity, fy]\n const nodeAttributes2 = this.u_NodeAttributeArray2[i];\n\n // repulsive\n const repulsive = this.calcRepulsive(i, currentNode);\n ax += repulsive[0];\n ay += repulsive[1];\n\n // attractive\n const attractive = this.calcAttractive(i, currentNode, nodeAttributes1);\n ax += attractive[0];\n ay += attractive[1];\n\n // gravity\n const gravity = this.calcGravity(i, currentNode, nodeAttributes2);\n ax -= gravity[0];\n ay -= gravity[1];\n\n // speed\n const param = this.u_interval * this.u_damping;\n let vx = ax * param;\n let vy = ay * param;\n const vlength = sqrt(vx * vx + vy * vy) + 0.0001;\n if (vlength > this.u_maxSpeed) {\n const param2 = this.u_maxSpeed / vlength;\n vx = param2 * vx;\n vy = param2 * vy;\n }\n\n // move\n if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) {\n this.u_Data[i] = [\n nodeAttributes1[3],\n nodeAttributes2[3],\n currentNode[2],\n 0\n ];\n } else {\n const distx = vx * this.u_interval;\n const disty = vy * this.u_interval;\n const distLength = sqrt(distx * distx + disty * disty);\n this.u_Data[i] = [\n currentNode[0] + distx,\n currentNode[1] + disty,\n currentNode[2],\n distLength\n ];\n }\n \n // the avarage move distance\n // need to share memory\n \n }\n}\n",e.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',e.aveMovementCode="\nconst VERTEX_COUNT;\n@numthreads(1, 1, 1)\nclass CalcAveMovement {\n @in\n u_Data: vec4[];\n @in\n u_iter: float;\n @in @out\n u_AveMovement: vec4[];\n @main\n compute() {\n let movement = 0;\n for (let j: int = 0; j < VERTEX_COUNT; j++) {\n const vertex = this.u_Data[j];\n movement += vertex[3];\n }\n movement = movement / float(VERTEX_COUNT);\n this.u_AveMovement[0] = [movement, 0, 0, 0];\n }\n}\n",e.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}';},ad8b3c28:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=r._(n("00b43322")),o=r._(n("6f63505d")),a=r._(n("21422ae0")),s=r._(n("78294f9e")),u=n("f2fbe439"),c=r._(n("e5fcb776")),l=n("c09d83c7"),f=function(){function t(e){var n=this;(0,a.default)(this,t),this.item=void 0,this.vars={},this.start=void 0,this.parent=void 0,this.root=void 0,this.startAt={},this.mode=void 0,this.appearTo=0,this.props={},this.index=void 0,this.register=void 0,this.reverseStart=void 0,this.repeatNum=0,this.prevMoment=void 0,this.easing=void 0,this.changeValueToVars=function(t,e,n){var r=(Array.isArray(e)||t.match(/color|fill|stroke|.*shadow/i)&&"string"==typeof e||"string"==typeof e&&e.split(/[\s|,]/).length>1)&&!(t in l.Plugins);return t in l.Plugins||r?n?e:{value:e,plugins:[],array:r}:{vars:parseFloat(e.toString().replace(/=/g,"")),unit:e.toString().replace(/[^a-z|%]/g,""),count:"="===e.toString().charAt(1)?e.toString().replace(/[^\+\=|\-\=]/gi,""):""};},this.setEase=function(t){if("function"==typeof t){n.easing=t;return;}if(t.match(/,/g)){n.easing=c.default.path(t);return;}n.easing=c.default[t];},this.getTotalTime=function(){var t=n.props,e=t.duration,r=t.delay,i=t.repeat,o=void 0===i?0:i,a=t.repeatDelay;return -1===o?Number.MAX_VALUE:(void 0===r?0:r)+(void 0===e?450:e)*(o+1)+(void 0===a?0:a)*o;},this.getEaseToRatio=function(t,e){var r=n.props.ease,i=void 0===r?"":r;return 0!==t&&1!==t||"function"==typeof i||i.match(/,/g)?n.easing(e?1-t:t,e?1:0,e?0:1,1):t;},this.setRatioToVars=function(t){for(var e=n.vars,r=n.root,i=0;i<r.targets.length;i++)if(r.targets[i])for(var o in e){var a=e[o];if(a.plugins){"PathMotion"===o?r.vars[i].style=a.plugins[i].render(t):r.vars[i][o]=a.plugins[i].render(t);continue;}var s=a.vars,c=a.count,l=a.unit,f=n.start[i][o];r.vars[i][o]=(0,u.getValue)(f,s,t,c,l);}},this.onRegisterAnimate=function(){n.register=!0;for(var t=n.root,e=n.parent,r=n.startAt,i=[],a=0;a<t.targets.length;a++){var s=t.targets[a],c=t.vars[a],f={};for(var d in n.vars){var h=n.vars[d];if(h.plugins){var g=new l.Plugins[h.array?"ArrayPlugin":d](h.value,d);g.target=s,g.root=t,g.parent=e,g.targetIndex=a,g.tweenVars=c,g.index=n.index,g.startAt=r,f[d]=g.getAnimStart(),h.plugins.push(g);}else{var p,v,m=null!==(p=t.attr?s.getAttribute(d):c[d]||s[d])&&void 0!==p?p:(0,u.getDefaultStart)(d),y=null!==(v=r[d])&&void 0!==v?v:m,b="object"===(0,o.default)(y)&&"vars"in y&&"count"in y,x=b?y.unit:"".concat(y).replace(/[^a-z|%]/g,""),_=h.unit;x&&x!==_&&console.warn("Different units, start unit ".concat(x,", to value unit ").concat(_,", remove start unit.")),f[d]=b?(0,u.getStartAtValue)(m,y):parseFloat(y);}}i.push(f);}n.start=i;},this.overflowRatio=function(t){var e=t<0?0:t,r=n.props.duration;return e>r?r:e;},this.render=function(t){var e=t.moment,r=t.fps,i=void 0===r?0:r,o=t.silence,a=t.render,s=n.parent,c=n.root,l=n.props,f=(0,u.flatArray)(c.targets),d=s.onChange,h=l.repeat,g=void 0===h?0:h,p=l.type,v=l.duration,m=void 0===v?450:v,y=l.delay,b=void 0===y?0:y,x=l.repeatDelay,_=void 0===x?0:x,E=l.yoyo,w=e-b,M=Math.floor(w/(m+_))||0;w-=(m+_)*(M=(M=M>(g=-1===g?Number.MAX_VALUE:g)?g:M)<0?0:M);var C=!!(E&&M%2),A="from"===(void 0===p?"to":p),S=(!C||!A)&&(C||A);w=S?m-w:w;var D=A?0:b,I=S?1:0;if(!n.register&&e>=D&&(n.onRegisterAnimate(),(S&&w<=0||!S&&w>=m&&m)&&(n.prevMoment=e,I=S?0:1),n.setRatioToVars(I),d({index:n.index,vars:c.vars})),n.register&&e>b-i&&e<n.totalTime+i){w=n.overflowRatio(w),I=S?1:0,e>=n.totalTime&&"onComplete"!==n.mode&&void 0!==n.prevMoment||void 0===n.prevMoment&&e>=n.totalTime&&m?(I=S?0:1,n.mode="onComplete",n.props.onComplete&&n.props.onComplete({mode:n.mode,index:n.index,moment:w,ratio:I,targets:f,vars:(0,u.flatArray)(c.vars)})):void 0===n.prevMoment||e<=0&&e>-i&&"onStart"!==n.mode&&n.prevMoment>e?(n.mode="onStart",n.props.onStart&&n.props.onStart({mode:n.mode,index:n.index,moment:w,ratio:I,targets:f,vars:(0,u.flatArray)(c.vars)})):(I=w&&m?w/m:0,n.mode="onUpdate",n.props.onUpdate&&n.props.onUpdate({mode:n.mode,index:n.index,moment:w,ratio:I,targets:f,vars:(0,u.flatArray)(c.vars)})),g&&M!==n.repeatNum&&e&&"onUpdate"===n.mode&&(n.mode="onRepeat",n.props.onRepeat&&n.props.onRepeat({mode:n.mode,index:n.index,moment:w,ratio:I,targets:f,vars:(0,u.flatArray)(n.root.vars)})),n.setRatioToVars(n.getEaseToRatio(I,A)),g&&(n.repeatNum=M);var T={mode:n.mode,moment:w,repeat:M,ratio:I,targets:c.targets,vars:c.vars,index:n.index};o&&(T.silence=o),a&&(T.render=a),d(T),n.prevMoment=e;}},this.item=e,this.startAt=(0,i.default)({},e.startAt),Object.keys(this.startAt).forEach(function(t){n.startAt[t]=n.changeValueToVars(t,n.startAt[t],!0);});var r={};for(var s in e){var f=e[s];s in u.initAnimProps?r[s]=f:this.vars[s]=this.changeValueToVars(s,f);}this.props=(0,i.default)((0,i.default)({},u.initAnimProps),r),this.setEase(this.props.ease);}return(0,s.default)(t,[{key:"totalTime",get:function(){return this.getTotalTime();}}]),t;}();},adfb2d30:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("8d42ebc3"),i=n("cf6c8813"),o=n("22b52967"),a=n("833ce629");function s(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,a=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),s=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),u=Math.acos((a+s-(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)))/(2*Math.sqrt(a)*Math.sqrt(s)));if(!u||0===Math.sin(u)||(0,o.isNumberEqual)(u,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),l=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return{xExtra:e/2*(1/Math.sin(u/2))*Math.cos(u/2-(c=c>Math.PI/2?Math.PI-c:c))-e/2||0,yExtra:e/2*(1/Math.sin(u/2))*Math.cos((l=l>Math.PI/2?Math.PI-l:l)-u/2)-e/2||0};}function u(t){var e=t.attr(),n=e.path,u=e.stroke?e.lineWidth:0,c=function(t,e){for(var n=[],i=[],a=[],u=0;u<t.length;u++){var c=t[u],l=c.currentPoint,f=c.params,d=c.prePoint,h=void 0;switch(c.command){case"Q":h=r.Quad.box(d[0],d[1],f[1],f[2],f[3],f[4]);break;case"C":h=r.Cubic.box(d[0],d[1],f[1],f[2],f[3],f[4],f[5],f[6]);break;case"A":var g=c.arcParams;h=r.Arc.box(g.cx,g.cy,g.rx,g.ry,g.xRotation,g.startAngle,g.endAngle);break;default:n.push(l[0]),i.push(l[1]);}h&&(c.box=h,n.push(h.x,h.x+h.width),i.push(h.y,h.y+h.height)),e&&("L"===c.command||"M"===c.command)&&c.prePoint&&c.nextPoint&&a.push(c);}n=n.filter(function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0;}),i=i.filter(function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0;});var p=(0,o.min)(n),v=(0,o.min)(i),m=(0,o.max)(n),y=(0,o.max)(i);if(0===a.length)return{x:p,y:v,width:m-p,height:y-v};for(var u=0;u<a.length;u++){var c=a[u],l=c.currentPoint;l[0]===p?p-=s(c,e).xExtra:l[0]===m&&(m+=s(c,e).xExtra),l[1]===v?v-=s(c,e).yExtra:l[1]===y&&(y+=s(c,e).yExtra);}return{x:p,y:v,width:m-p,height:y-v};}(t.get("segments")||(0,i.path2Segments)(n),u),l=c.x,f=c.y,d={minX:l,minY:f,maxX:l+c.width,maxY:f+c.height};return{x:(d=(0,a.mergeArrowBBox)(t,d)).minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY};}},aead699d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("ee6934bf"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e;}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=(0,o.log)(n,this.max),i=this.rangeMin(),a=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(r-(e=(0,o.log)(n,s/n)))*a;if(t<u)return t/u*s;}else e=(0,o.log)(n,this.min);return Math.pow(n,(t-i)/a*(r-e)+e);},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0;},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=(0,o.getLogPositiveMin)(this.values,this.base,this.max));},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n||t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/((0,o.log)(r,e)-(0,o.log)(r,n)):((0,o.log)(r,t)-(0,o.log)(r,n))/((0,o.log)(r,e)-(0,o.log)(r,n));},e;}(r._(n("64727459")).default);},aebcb855:function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o};}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},af154522:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getRotatedCurve",{enumerable:!0,get:function(){return i;}});var r=n("b0fcf145");function i(t,e){var n,i,o=t.length-1,a=[],s=0,u=(i=(n=t.length)-1,t.map(function(e,r){return t.map(function(e,o){var a=r+o;return 0===o||t[a]&&"M"===t[a][0]?["M"].concat(t[a].slice(-2)):(a>=n&&(a-=i),t[a]);});}));return u.forEach(function(n,i){t.slice(1).forEach(function(n,a){s+=(0,r.distanceSquareRoot)(t[(i+a)%o].slice(-2),e[a%o].slice(-2));}),a[i]=s,s=0;}),u[a.indexOf(Math.min.apply(null,a))];}},af1f45f2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("04480408")),o=r._(n("aac703c5"));class a{constructor(t){let e,n,r;if(!(t=o.default.checkMatrix(t)).isSymmetric())throw Error("Matrix is not symmetric");let a=t,s=a.rows,u=new i.default(s,s),c=!0;for(n=0;n<s;n++){let t=0;for(r=0;r<n;r++){let i=0;for(e=0;e<r;e++)i+=u.get(r,e)*u.get(n,e);i=(a.get(n,r)-i)/u.get(r,r),u.set(n,r,i),t+=i*i;}for(c&=(t=a.get(n,n)-t)>0,u.set(n,n,Math.sqrt(Math.max(t,0))),r=n+1;r<s;r++)u.set(n,r,0);}this.L=u,this.positiveDefinite=!!c;}isPositiveDefinite(){return this.positiveDefinite;}solve(t){let e,n,r;t=o.default.checkMatrix(t);let i=this.L,a=i.rows;if(t.rows!==a)throw Error("Matrix dimensions do not match");if(!1===this.isPositiveDefinite())throw Error("Matrix is not positive definite");let s=t.columns,u=t.clone();for(r=0;r<a;r++)for(n=0;n<s;n++){for(e=0;e<r;e++)u.set(r,n,u.get(r,n)-u.get(e,n)*i.get(r,e));u.set(r,n,u.get(r,n)/i.get(r,r));}for(r=a-1;r>=0;r--)for(n=0;n<s;n++){for(e=r+1;e<a;e++)u.set(r,n,u.get(r,n)-u.get(e,n)*i.get(e,r));u.set(r,n,u.get(r,n)/i.get(r,r));}return u;}get lowerTriangularMatrix(){return this.L;}}},af5a447d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{bounceIn:function(){return h;},bounceInOut:function(){return p;},bounceOut:function(){return g;}});var r=4/11,i=6/11,o=8/11,a=3/4,s=9/11,u=10/11,c=15/16,l=21/22,f=63/64,d=1/(4/11)/(4/11);function h(t){return 1-g(1-t);}function g(t){return(t=+t)<r?d*t*t:t<o?d*(t-=i)*t+a:t<u?d*(t-=s)*t+c:d*(t-=l)*t+f;}function p(t){return((t*=2)<=1?1-g(1-t):g(t-1)+1)/2;}},af9c1423:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"WebGLEngine",{enumerable:!0,get:function(){return r.WebGLEngine;}});var r=n("e27651ea");},afb67b89:function(t,e,n){"use strict";function r(t,e,n){let r=n?t.rows:t.rows-1;if(e<0||e>r)throw RangeError("Row index out of range");}function i(t,e,n){let r=n?t.columns:t.columns-1;if(e<0||e>r)throw RangeError("Column index out of range");}function o(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw RangeError("vector size must be the same as the number of columns");return e;}function a(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw RangeError("vector size must be the same as the number of rows");return e;}function s(t,e,n){return{row:u(t,e),column:c(t,n)};}function u(t,e){if("object"!=typeof e)throw TypeError("unexpected type for row indices");if(e.some(e=>e<0||e>=t.rows))throw RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e;}function c(t,e){if("object"!=typeof e)throw TypeError("unexpected type for column indices");if(e.some(e=>e<0||e>=t.columns))throw RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e;}function l(t,e,n,r,i){if(5!=arguments.length)throw RangeError("expected 4 arguments");if(d("startRow",e),d("endRow",n),d("startColumn",r),d("endColumn",i),e>n||r>i||e<0||e>=t.rows||n<0||n>=t.rows||r<0||r>=t.columns||i<0||i>=t.columns)throw RangeError("Submatrix indices are out of range");}function f(t,e=0){let n=[];for(let r=0;r<t;r++)n.push(e);return n;}function d(t,e){if("number"!=typeof e)throw TypeError(`${t} must be a number`);}n.d(e,"__esModule",{value:!0}),n.e(e,{checkColumnIndex:function(){return i;},checkColumnIndices:function(){return c;},checkColumnVector:function(){return a;},checkIndices:function(){return s;},checkRange:function(){return l;},checkRowIndex:function(){return r;},checkRowIndices:function(){return u;},checkRowVector:function(){return o;},newArray:function(){return f;}});},b018614c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{glMatrix:function(){return i;},mat2:function(){return o;},mat2d:function(){return a;},mat3:function(){return s;},mat4:function(){return u;},quat:function(){return c;},quat2:function(){return l;},vec2:function(){return f;},vec3:function(){return d;},vec4:function(){return h;}});var r=n("852bbaa9"),i=r._(n("e89ef36f")),o=r._(n("437a4445")),a=r._(n("67d03aef")),s=r._(n("0ada5a2e")),u=r._(n("b41ef5bd")),c=r._(n("59625338")),l=r._(n("e880db62")),f=r._(n("5c304557")),d=r._(n("04bb6a31")),h=r._(n("1383492e"));},b070bdb3:function(t,e,n){"use strict";function r(t,e){t.prototype.add=function(t){return"number"==typeof t?this.addS(t):this.addM(t);},t.prototype.addS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t);return this;},t.prototype.addM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t.get(e,n));return this;},t.add=function(t,n){return new e(t).add(n);},t.prototype.sub=function(t){return"number"==typeof t?this.subS(t):this.subM(t);},t.prototype.subS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t);return this;},t.prototype.subM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t.get(e,n));return this;},t.sub=function(t,n){return new e(t).sub(n);},t.prototype.subtract=t.prototype.sub,t.prototype.subtractS=t.prototype.subS,t.prototype.subtractM=t.prototype.subM,t.subtract=t.sub,t.prototype.mul=function(t){return"number"==typeof t?this.mulS(t):this.mulM(t);},t.prototype.mulS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t);return this;},t.prototype.mulM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t.get(e,n));return this;},t.mul=function(t,n){return new e(t).mul(n);},t.prototype.multiply=t.prototype.mul,t.prototype.multiplyS=t.prototype.mulS,t.prototype.multiplyM=t.prototype.mulM,t.multiply=t.mul,t.prototype.div=function(t){return"number"==typeof t?this.divS(t):this.divM(t);},t.prototype.divS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t);return this;},t.prototype.divM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t.get(e,n));return this;},t.div=function(t,n){return new e(t).div(n);},t.prototype.divide=t.prototype.div,t.prototype.divideS=t.prototype.divS,t.prototype.divideM=t.prototype.divM,t.divide=t.div,t.prototype.mod=function(t){return"number"==typeof t?this.modS(t):this.modM(t);},t.prototype.modS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t);return this;},t.prototype.modM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t.get(e,n));return this;},t.mod=function(t,n){return new e(t).mod(n);},t.prototype.modulus=t.prototype.mod,t.prototype.modulusS=t.prototype.modS,t.prototype.modulusM=t.prototype.modM,t.modulus=t.mod,t.prototype.and=function(t){return"number"==typeof t?this.andS(t):this.andM(t);},t.prototype.andS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t);return this;},t.prototype.andM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t.get(e,n));return this;},t.and=function(t,n){return new e(t).and(n);},t.prototype.or=function(t){return"number"==typeof t?this.orS(t):this.orM(t);},t.prototype.orS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t);return this;},t.prototype.orM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t.get(e,n));return this;},t.or=function(t,n){return new e(t).or(n);},t.prototype.xor=function(t){return"number"==typeof t?this.xorS(t):this.xorM(t);},t.prototype.xorS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t);return this;},t.prototype.xorM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t.get(e,n));return this;},t.xor=function(t,n){return new e(t).xor(n);},t.prototype.leftShift=function(t){return"number"==typeof t?this.leftShiftS(t):this.leftShiftM(t);},t.prototype.leftShiftS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t);return this;},t.prototype.leftShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t.get(e,n));return this;},t.leftShift=function(t,n){return new e(t).leftShift(n);},t.prototype.signPropagatingRightShift=function(t){return"number"==typeof t?this.signPropagatingRightShiftS(t):this.signPropagatingRightShiftM(t);},t.prototype.signPropagatingRightShiftS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t);return this;},t.prototype.signPropagatingRightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t.get(e,n));return this;},t.signPropagatingRightShift=function(t,n){return new e(t).signPropagatingRightShift(n);},t.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t);},t.prototype.rightShiftS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t);return this;},t.prototype.rightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t.get(e,n));return this;},t.rightShift=function(t,n){return new e(t).rightShift(n);},t.prototype.zeroFillRightShift=t.prototype.rightShift,t.prototype.zeroFillRightShiftS=t.prototype.rightShiftS,t.prototype.zeroFillRightShiftM=t.prototype.rightShiftM,t.zeroFillRightShift=t.rightShift,t.prototype.not=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,~this.get(t,e));return this;},t.not=function(t){return new e(t).not();},t.prototype.abs=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.abs(this.get(t,e)));return this;},t.abs=function(t){return new e(t).abs();},t.prototype.acos=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.acos(this.get(t,e)));return this;},t.acos=function(t){return new e(t).acos();},t.prototype.acosh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.acosh(this.get(t,e)));return this;},t.acosh=function(t){return new e(t).acosh();},t.prototype.asin=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.asin(this.get(t,e)));return this;},t.asin=function(t){return new e(t).asin();},t.prototype.asinh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.asinh(this.get(t,e)));return this;},t.asinh=function(t){return new e(t).asinh();},t.prototype.atan=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.atan(this.get(t,e)));return this;},t.atan=function(t){return new e(t).atan();},t.prototype.atanh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.atanh(this.get(t,e)));return this;},t.atanh=function(t){return new e(t).atanh();},t.prototype.cbrt=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.cbrt(this.get(t,e)));return this;},t.cbrt=function(t){return new e(t).cbrt();},t.prototype.ceil=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.ceil(this.get(t,e)));return this;},t.ceil=function(t){return new e(t).ceil();},t.prototype.clz32=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.clz32(this.get(t,e)));return this;},t.clz32=function(t){return new e(t).clz32();},t.prototype.cos=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.cos(this.get(t,e)));return this;},t.cos=function(t){return new e(t).cos();},t.prototype.cosh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.cosh(this.get(t,e)));return this;},t.cosh=function(t){return new e(t).cosh();},t.prototype.exp=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.exp(this.get(t,e)));return this;},t.exp=function(t){return new e(t).exp();},t.prototype.expm1=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.expm1(this.get(t,e)));return this;},t.expm1=function(t){return new e(t).expm1();},t.prototype.floor=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.floor(this.get(t,e)));return this;},t.floor=function(t){return new e(t).floor();},t.prototype.fround=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.fround(this.get(t,e)));return this;},t.fround=function(t){return new e(t).fround();},t.prototype.log=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log(this.get(t,e)));return this;},t.log=function(t){return new e(t).log();},t.prototype.log1p=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log1p(this.get(t,e)));return this;},t.log1p=function(t){return new e(t).log1p();},t.prototype.log10=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log10(this.get(t,e)));return this;},t.log10=function(t){return new e(t).log10();},t.prototype.log2=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log2(this.get(t,e)));return this;},t.log2=function(t){return new e(t).log2();},t.prototype.round=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.round(this.get(t,e)));return this;},t.round=function(t){return new e(t).round();},t.prototype.sign=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sign(this.get(t,e)));return this;},t.sign=function(t){return new e(t).sign();},t.prototype.sin=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sin(this.get(t,e)));return this;},t.sin=function(t){return new e(t).sin();},t.prototype.sinh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sinh(this.get(t,e)));return this;},t.sinh=function(t){return new e(t).sinh();},t.prototype.sqrt=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sqrt(this.get(t,e)));return this;},t.sqrt=function(t){return new e(t).sqrt();},t.prototype.tan=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.tan(this.get(t,e)));return this;},t.tan=function(t){return new e(t).tan();},t.prototype.tanh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.tanh(this.get(t,e)));return this;},t.tanh=function(t){return new e(t).tanh();},t.prototype.trunc=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.trunc(this.get(t,e)));return this;},t.trunc=function(t){return new e(t).trunc();},t.pow=function(t,n){return new e(t).pow(n);},t.prototype.pow=function(t){return"number"==typeof t?this.powS(t):this.powM(t);},t.prototype.powS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t));return this;},t.prototype.powM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t.get(e,n)));return this;};}n.d(e,"__esModule",{value:!0}),n.d(e,"installMathOperations",{enumerable:!0,get:function(){return r;}});},b0b078bd:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.GridLayout=void 0;var o=n("38788347"),a=function(t){function e(e){var n=t.call(this)||this;return n.begin=[0,0],n.preventOverlap=!0,n.preventOverlapPadding=10,n.condense=!1,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.row=0,n.col=0,n.cellWidth=0,n.cellHeight=0,n.cellUsed={},n.id2manPos={},n.onLayoutEnd=function(){},n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30};},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=t.begin,i=e.length;if(0===i)return t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};if(1===i)return e[0].x=r[0],e[0].y=r[1],t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};var a=t.sortBy,s=t.width,u=t.height,c=t.condense,l=t.preventOverlapPadding,f=t.preventOverlap,d=t.nodeSpacing,h=t.nodeSize,g=[];e.forEach(function(t){g.push(t);});var p={};if(g.forEach(function(t,e){p[t.id]=e;}),("degree"===a||!(0,o.isString)(a)||void 0===g[0][a])&&(a="degree",(0,o.isNaN)(e[0].degree))){var v=(0,o.getDegree)(g.length,p,n);g.forEach(function(t,e){t.degree=v[e].all;});}g.sort(function(t,e){return e[a]-t[a];}),s||"undefined"==typeof window||(s=window.innerWidth),u||"undefined"==typeof window||(u=window.innerHeight);var m=t.rows,y=null!=t.cols?t.cols:t.columns;if(t.cells=i,null!=m&&null!=y?(t.rows=m,t.cols=y):null!=m&&null==y?(t.rows=m,t.cols=Math.ceil(t.cells/t.rows)):null==m&&null!=y?(t.cols=y,t.rows=Math.ceil(t.cells/t.cols)):(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)),t.rows=Math.max(t.rows,1),t.cols=Math.max(t.cols,1),t.cols*t.rows>t.cells){var b=t.small(),x=t.large();(b-1)*x>=t.cells?t.small(b-1):(x-1)*b>=t.cells&&t.large(x-1);}else for(;t.cols*t.rows<t.cells;){var b=t.small(),x=t.large();(x+1)*b>=t.cells?t.large(x+1):t.small(b+1);}if(t.cellWidth=s/t.cols,t.cellHeight=u/t.rows,c&&(t.cellWidth=0,t.cellHeight=0),f||d){var _=(0,o.getFuncByUnknownType)(10,d),E=(0,o.getFuncByUnknownType)(30,h,!1);g.forEach(function(e){e.x&&e.y||(e.x=0,e.y=0);var n,r,i=E(e)||30;(0,o.isArray)(i)?(n=i[0],r=i[1]):(n=i,r=i);var a=void 0!==_?_(e):l,s=n+a,u=r+a;t.cellWidth=Math.max(t.cellWidth,s),t.cellHeight=Math.max(t.cellHeight,u);});}t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var w=0;w<g.length;w++){var M=g[w],C=void 0;if(t.position&&(C=t.position(M)),C&&(void 0!==C.row||void 0!==C.col)){var A={row:C.row,col:C.col};if(void 0===A.col)for(A.col=0;t.used(A.row,A.col);)A.col++;else if(void 0===A.row)for(A.row=0;t.used(A.row,A.col);)A.row++;t.id2manPos[M.id]=A,t.use(A.row,A.col);}t.getPos(M);}return t.onLayoutEnd&&t.onLayoutEnd(),{edges:n,nodes:g};},e.prototype.small=function(t){var e,n=this.rows||5,r=this.cols||5;return null==t?e=Math.min(n,r):Math.min(n,r)===this.rows?this.rows=t:this.cols=t,e;},e.prototype.large=function(t){var e,n=this.rows||5,r=this.cols||5;return null==t?e=Math.max(n,r):Math.max(n,r)===this.rows?this.rows=t:this.cols=t,e;},e.prototype.used=function(t,e){return this.cellUsed["c-".concat(t,"-").concat(e)]||!1;},e.prototype.use=function(t,e){this.cellUsed["c-".concat(t,"-").concat(e)]=!0;},e.prototype.moveToNextCell=function(){var t=this.cols||5;this.col++,this.col>=t&&(this.col=0,this.row++);},e.prototype.getPos=function(t){var e,n,r=this.begin,i=this.cellWidth,o=this.cellHeight,a=this.id2manPos[t.id];if(a)e=a.col*i+i/2+r[0],n=a.row*o+o/2+r[1];else{for(;this.used(this.row,this.col);)this.moveToNextCell();e=this.col*i+i/2+r[0],n=this.row*o+o/2+r[1],this.use(this.row,this.col),this.moveToNextCell();}t.x=e,t.y=n;},e.prototype.getType=function(){return"grid";},e;}(n("5092cda5").Base);e.GridLayout=a;},b0b932de:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getGraphComplement",{enumerable:!0,get:function(){return r.getGraphComplement;}});var r=n("c1e8ff95");},b0fcf145:function(t,e,n){"use strict";function r(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]));}n.d(e,"__esModule",{value:!0}),n.d(e,"distanceSquareRoot",{enumerable:!0,get:function(){return r;}});},b108c79c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return h;}});var r=n("777fffbe"),i=r._(n("6f63505d")),o=r._(n("54d66dad")),a=r._(n("21422ae0")),s=r._(n("78294f9e")),u=n("769809e4"),c=n("6d183e07"),l=n("94a227fe");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable;})),n.push.apply(n,r);}return n;}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach(function(e){(0,o.default)(t,e,n[e]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));});}return t;}var h=function(){function t(e,n){(0,a.default)(this,t),this.reGl=void 0,this.drawCommand=void 0,this.uniforms={},this.reGl=e;var r=n.vs,i=n.fs,o=n.defines,s=n.attributes,f=n.uniforms,d=n.primitive,h=n.count,g=n.elements,p=n.depth,v=n.blend,m=n.stencil,y=n.cull,b=n.instances,x=n.scissor,_=n.viewport,E={};f&&(this.uniforms=(0,c.extractUniforms)(f),Object.keys(f).forEach(function(t){E[t]=e.prop(t);}));var w={};Object.keys(s).forEach(function(t){w[t]=s[t].get();});var M=o&&this.generateDefines(o)||"",C={attributes:w,frag:"#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n#else\n precision mediump float;\n#endif\n".concat(M,"\n").concat(i),uniforms:E,vert:"\n".concat(M,"\n").concat(r),primitive:l.primitiveMap[void 0===d?u.gl.TRIANGLES:d]};b&&(C.instances=b),h&&(C.count=h),g&&(C.elements=g.get()),x&&(C.scissor=x),_&&(C.viewport=_),this.initDepthDrawParams({depth:p},C),this.initBlendDrawParams({blend:v},C),this.initStencilDrawParams({stencil:m},C),this.initCullDrawParams({cull:y},C),this.drawCommand=e(C);}return(0,s.default)(t,[{key:"addUniforms",value:function(t){this.uniforms=d(d({},this.uniforms),(0,c.extractUniforms)(t));}},{key:"draw",value:function(t){var e=d(d({},this.uniforms),(0,c.extractUniforms)(t.uniforms||{})),n={};Object.keys(e).forEach(function(t){var r=(0,i.default)(e[t]);"boolean"===r||"number"===r||Array.isArray(e[t])||e[t].BYTES_PER_ELEMENT?n[t]=e[t]:"string"===r||(n[t]=e[t].get());}),this.drawCommand(n);}},{key:"destroy",value:function(){}},{key:"initDepthDrawParams",value:function(t,e){var n=t.depth;n&&(e.depth={enable:void 0===n.enable||!!n.enable,mask:void 0===n.mask||!!n.mask,func:l.depthFuncMap[n.func||u.gl.LESS],range:n.range||[0,1]});}},{key:"initBlendDrawParams",value:function(t,e){var n=t.blend;if(n){var r=n.enable,i=n.func,o=n.equation,a=n.color;e.blend={enable:!!r,func:{srcRGB:l.blendFuncMap[i&&i.srcRGB||u.gl.SRC_ALPHA],srcAlpha:l.blendFuncMap[i&&i.srcAlpha||u.gl.SRC_ALPHA],dstRGB:l.blendFuncMap[i&&i.dstRGB||u.gl.ONE_MINUS_SRC_ALPHA],dstAlpha:l.blendFuncMap[i&&i.dstAlpha||u.gl.ONE_MINUS_SRC_ALPHA]},equation:{rgb:l.blendEquationMap[o&&o.rgb||u.gl.FUNC_ADD],alpha:l.blendEquationMap[o&&o.alpha||u.gl.FUNC_ADD]},color:void 0===a?[0,0,0,0]:a};}}},{key:"initStencilDrawParams",value:function(t,e){var n=t.stencil;if(n){var r=n.enable,i=n.mask,o=n.func,a=void 0===o?{cmp:u.gl.ALWAYS,ref:0,mask:-1}:o,s=n.opFront,c=void 0===s?{fail:u.gl.KEEP,zfail:u.gl.KEEP,zpass:u.gl.KEEP}:s,f=n.opBack,h=void 0===f?{fail:u.gl.KEEP,zfail:u.gl.KEEP,zpass:u.gl.KEEP}:f;e.stencil={enable:!!r,mask:void 0===i?-1:i,func:d(d({},a),{},{cmp:l.stencilFuncMap[a.cmp]}),opFront:{fail:l.stencilOpMap[c.fail],zfail:l.stencilOpMap[c.zfail],zpass:l.stencilOpMap[c.zpass]},opBack:{fail:l.stencilOpMap[h.fail],zfail:l.stencilOpMap[h.zfail],zpass:l.stencilOpMap[h.zpass]}};}}},{key:"initCullDrawParams",value:function(t,e){var n=t.cull;if(n){var r=n.enable,i=n.face,o=void 0===i?u.gl.BACK:i;e.cull={enable:!!r,face:l.cullFaceMap[o]};}}},{key:"generateDefines",value:function(t){return Object.keys(t).map(function(e){return"#define ".concat(e," ").concat(Number(t[e]));}).join("\n");}}]),t;}();},b1221bd1:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("852bbaa9"),i=n("4c6d310c"),o=n("be1e82ef"),a=r._(n("5f588eb3")),s=n("11214b3f"),u=n("22b52967"),c=n("ddeef58a"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.onCanvasChange=function(t){(0,s.refreshElement)(this,t);},e.prototype.getShapeBase=function(){return a;},e.prototype.getGroupBase=function(){return e;},e.prototype._applyClip=function(t,e){e&&(t.save(),(0,s.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw());},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];(0,u.each)(t,function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY));});var r=null;if(e.length){var i=(0,u.min)(e),o=(0,u.max)(e),a=(0,u.min)(n),s=(0,u.max)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:s,width:o-i,height:s-a};var l=this.cfg.canvas;if(l){var f=l.getViewRange();this.set("isInView",(0,c.intersectRect)(r,f));}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r);},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),(0,s.applyAttrsToContext)(t,this),this._applyClip(t,this.getClip()),(0,s.drawChildren)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1);},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1);},e;}(o.AbstractGroup);},b14590ab:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("ccc4dfa3")),i=n("f29fe526"),o=function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var o,a=1,s=0,u=1e3,c=t.nodes,l=void 0===c?[]:c,f=t.edges,d=void 0===f?[]:f,h=l.length,g={},p={},v=0;v<h;++v){var m=l[v],y=m.id;g[y]=1/h,p[y]=1/h;}for(var b=(0,r.default)(t);u>0&&a>e;){s=0;for(var v=0;v<h;++v){var m=l[v],y=m.id;if(o=0,0===b[m.id].inDegree)g[y]=0;else{for(var x=(0,i.getNeighbors)(y,d,"source"),_=0;_<x.length;++_){var E=x[_],w=b[E].outDegree;w>0&&(o+=p[E]/w);}g[y]=n*o,s+=g[y];}}s=(1-s)/h,a=0;for(var v=0;v<h;++v){var m=l[v],y=m.id;a+=Math.abs((o=g[y]+s)-p[y]),p[y]=o;}u-=1;}return p;};},b18f4708:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("0aff2e87")),i=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i));}return n;};},b1f36149:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("852bbaa9"),i=n("22b52967"),o=r._(n("3e577758")),a=n("2b42466f"),s=n("5640766a"),u=r._(n("a6d12089")),c=n("41943871"),l=[1,0,0,0,1,0,0,0,1],f=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t;}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=o.timer(function(o){if(r.current=o,r.animators.length>0){for(var f=r.animators.length-1;f>=0;f--){if((t=r.animators[f]).destroyed){r.removeAnimator(f);continue;}if(!t.isAnimatePaused()){e=t.get("animations");for(var d=e.length-1;d>=0;d--)(function(t,e,n){var r,o=e.startTime;if(n<o+e.delay||e._paused)return!1;var f=e.duration,d=e.easing,h=(0,s.getEasing)(d);if(n=n-o-e.delay,e.repeat)r=h(r=n%f/f);else{if(!((r=n/f)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=h(r);}if(e.onFrame){var g=e.onFrame(r);t.attr(g);}else!function(t,e,n){var r,o={},s=e.fromAttrs,f=e.toAttrs;if(!t.destroyed){for(var d in f)if(!(0,i.isEqual)(s[d],f[d])){if("path"===d){var h=f[d],g=s[d];h.length>g.length?(h=u.parsePathString(f[d]),g=u.parsePathString(s[d]),g=u.fillPathByDiff(g,h),g=u.formatPath(g,h),e.fromAttrs.path=g,e.toAttrs.path=h):e.pathFormatted||(h=u.parsePathString(f[d]),g=u.parsePathString(s[d]),g=u.formatPath(g,h),e.fromAttrs.path=g,e.toAttrs.path=h,e.pathFormatted=!0),o[d]=[];for(var p=0;p<h.length;p++){for(var v=h[p],m=g[p],y=[],b=0;b<v.length;b++)(0,i.isNumber)(v[b])&&m&&(0,i.isNumber)(m[b])?(r=(0,a.interpolate)(m[b],v[b]),y.push(r(n))):y.push(v[b]);o[d].push(y);}}else if("matrix"===d){var x=(0,a.interpolateArray)(s[d]||l,f[d]||l)(n);o[d]=x;}else(0,c.isColorProp)(d)&&(0,c.isGradientColor)(f[d])?o[d]=f[d]:(0,i.isFunction)(f[d])||(r=(0,a.interpolate)(s[d],f[d]),o[d]=r(n));}t.attr(o);}}(t,e,r);return!1;})(t,n=e[d],o)&&(e.splice(d,1),n.callback&&n.callback());}0===e.length&&r.removeAnimator(f);}r.canvas.get("autoDraw")||r.canvas.draw();}});},t.prototype.addAnimator=function(t){this.animators.push(t);},t.prototype.removeAnimator=function(t){this.animators.splice(t,1);},t.prototype.isAnimating=function(){return!!this.animators.length;},t.prototype.stop=function(){this.timer&&this.timer.stop();},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach(function(e){e.stopAnimate(t);}),this.animators=[],this.canvas.draw();},t.prototype.getTime=function(){return this.current;},t;}();},b208d868:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("22b52967"),i=function(){function t(t){this._cfgs=(0,r.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1;}return t.prototype.getDefaultCfgs=function(){return{};},t.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var n=e.getEvents(),i={};(0,r.each)(n,function(n,o){var a=(0,r.wrapBehavior)(e,n);i[o]=a,t.on(o,a);}),this._events=i,this.init();},t.prototype.getEvents=function(){return{};},t.prototype.get=function(t){var e;return null===(e=this._cfgs)||void 0===e?void 0:e[t];},t.prototype.set=function(t,e){this._cfgs[t]=e;},t.prototype.destroy=function(){},t.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,r.each)(e,function(e,n){t.off(n,e);}),this._events=null,this._cfgs=null,this.destroyed=!0;},t;}();},b26005cf:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"pseudoInverse",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("d281459f")),o=r._(n("04480408"));function a(t,e=Number.EPSILON){t=o.default.checkMatrix(t);let n=new i.default(t,{autoTranspose:!0}),r=n.leftSingularVectors,s=n.rightSingularVectors,u=n.diagonal;for(let t=0;t<u.length;t++)Math.abs(u[t])>e?u[t]=1/u[t]:u[t]=0;return s.mmul(o.default.diag(u).mmul(r.transpose()));}},b2823dca:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("155fe01c")),a=function(t,e){if((0,i.default)(t)){for(var n,r=1/0,a=0;a<t.length;a++){var s=t[a],u=(0,o.default)(e)?e(s):s[e];u<r&&(n=s,r=u);}return n;}};},b28fb25f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{addEndArrow:function(){return h;},addStartArrow:function(){return d;},getShortenOffset:function(){return f;}});var r=n("4c6d310c"),i=n("5f588eb3"),o=Math.sin,a=Math.cos,s=Math.atan2,u=Math.PI;function c(t,e,n,r,c,l,f){var d=e.stroke,h=e.lineWidth,g=s(r-l,n-c),p=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(u/6)+","+10*o(u/6)+" L0,0 L"+10*a(u/6)+",-"+10*o(u/6),stroke:d,lineWidth:h}});p.translate(c,l),p.rotateAtPoint(c,l,g),t.set(f?"startArrowShape":"endArrowShape",p);}function l(t,e,n,u,c,l,f){var d=e.startArrow,h=e.endArrow,g=e.stroke,p=e.lineWidth,v=f?d:h,m=v.d,y=v.fill,b=v.stroke,x=v.lineWidth,_=(0,r.__rest)(v,["d","fill","stroke","lineWidth"]),E=s(u-l,n-c);m&&(c-=a(E)*m,l-=o(E)*m);var w=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,r.__assign)((0,r.__assign)({},_),{stroke:b||g,lineWidth:x||p,fill:y})});w.translate(c,l),w.rotateAtPoint(c,l,E),t.set(f?"startArrowShape":"endArrowShape",w);}function f(t,e,n,r,i){var u=s(r-e,n-t);return{dx:a(u)*i,dy:o(u)*i};}function d(t,e,n,r,i,o){"object"==typeof e.startArrow?l(t,e,n,r,i,o,!0):e.startArrow?c(t,e,n,r,i,o,!0):t.set("startArrowShape",null);}function h(t,e,n,r,i,o){"object"==typeof e.endArrow?l(t,e,n,r,i,o,!1):e.endArrow?c(t,e,n,r,i,o,!1):t.set("startArrowShape",null);}},b31b1462:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"gradient",{enumerable:!0,get:function(){return s;}});var r=n("0a78b5f4"),i=n("8a7a4560"),o=n("2acda869");function a(t,e,n,r){return t[r]+(e[r]-t[r])*n;}function s(t){var e=("string"==typeof t?t.split("-"):t).map(function(t){return(0,r.rgb2arr)(-1===t.indexOf("#")?(0,o.toRGB)(t):t);});return function(t){var n,r,o,s,u,c;return n=isNaN(Number(t))||t<0?0:t>1?1:Number(t),o=Math.floor((r=e.length-1)*n),s=r*n-o,u=e[o],c=o===r?u:e[o+1],(0,i.arr2rgb)([a(u,c,s,0),a(u,c,s,1),a(u,c,s,2)]);};}},b3c643de:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=180/Math.PI,i=function(t){return r*t;};},b3c7c4bf:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r={triangle:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=15),void 0===n&&(n=0);var r=2*n;return"M ".concat(r,",0 L ").concat(r+e,",-").concat(t/2," L ").concat(r+e,",").concat(t/2," Z");},vee:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=20),void 0===n&&(n=0);var r=2*n;return"M ".concat(r,",0 L ").concat(r+e,",-").concat(t/2,"\n L ").concat(r+2*e/3,",0 L ").concat(r+e,",").concat(t/2," Z");},circle:function(t,e){void 0===t&&(t=5),void 0===e&&(e=0);var n=2*e;return"M ".concat(n,", 0\n a ").concat(t,",").concat(t," 0 1,0 ").concat(2*t,",0\n a ").concat(t,",").concat(t," 0 1,0 ").concat(-(2*t),",0");},rect:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=10),void 0===n&&(n=0);var r=2*n;return"M ".concat(r,",").concat(-t/2," \n L ").concat(r+e,",").concat(-t/2," \n L ").concat(r+e,",").concat(t/2," \n L ").concat(r,",").concat(t/2," Z");},diamond:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=15),void 0===n&&(n=0);var r=2*n;return"M ".concat(r,",0 \n L ").concat(r+e/2,",").concat(-t/2," \n L ").concat(r+e,",0 \n L ").concat(r+e/2,",").concat(t/2," Z");},triangleRect:function(t,e,n,r,i,o){void 0===t&&(t=15),void 0===e&&(e=15),void 0===n&&(n=15),void 0===r&&(r=3),void 0===i&&(i=5),void 0===o&&(o=0);var a=2*o,s=a+e+i;return"M ".concat(a,",0 L ").concat(a+e,",-").concat(t/2," L ").concat(a+e,",").concat(t/2," Z\n M ").concat(s,", -").concat(n/2,"\n L ").concat(s+r," -").concat(n/2,"\n L ").concat(s+r," ").concat(n/2,"\n L ").concat(s," ").concat(n/2,"\n Z");}};},b3cbf566:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){return t["_wrap_"+e];};},b3e0ff77:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});},b3ff52f2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"timer",{enumerable:!0,get:function(){return r.timer;}});var r=n("d262a1ac");},b41ef5bd:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{add:function(){return V;},adjoint:function(){return d;},clone:function(){return o;},copy:function(){return a;},create:function(){return i;},determinant:function(){return h;},equals:function(){return Q;},exactEquals:function(){return K;},frob:function(){return W;},fromQuat:function(){return O;},fromQuat2:function(){return D;},fromRotation:function(){return w;},fromRotationTranslation:function(){return S;},fromRotationTranslationScale:function(){return F;},fromRotationTranslationScaleOrigin:function(){return N;},fromScaling:function(){return E;},fromTranslation:function(){return _;},fromValues:function(){return s;},fromXRotation:function(){return M;},fromYRotation:function(){return C;},fromZRotation:function(){return A;},frustum:function(){return B;},getRotation:function(){return k;},getScaling:function(){return T;},getTranslation:function(){return I;},identity:function(){return c;},invert:function(){return f;},lookAt:function(){return X;},mul:function(){return $;},multiply:function(){return g;},multiplyScalar:function(){return Z;},multiplyScalarAndAdd:function(){return J;},ortho:function(){return G;},orthoNO:function(){return z;},orthoZO:function(){return Y;},perspective:function(){return L;},perspectiveFromFieldOfView:function(){return R;},perspectiveNO:function(){return P;},perspectiveZO:function(){return j;},rotate:function(){return m;},rotateX:function(){return y;},rotateY:function(){return b;},rotateZ:function(){return x;},scale:function(){return v;},set:function(){return u;},str:function(){return H;},sub:function(){return tt;},subtract:function(){return q;},targetTo:function(){return U;},translate:function(){return p;},transpose:function(){return l;}});var r=n("852bbaa9")._(n("e89ef36f"));function i(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t;}function o(t){var e=new r.ARRAY_TYPE(16);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[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e;}function a(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[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t;}function s(t,e,n,i,o,a,s,u,c,l,f,d,h,g,p,v){var m=new r.ARRAY_TYPE(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=i,m[4]=o,m[5]=a,m[6]=s,m[7]=u,m[8]=c,m[9]=l,m[10]=f,m[11]=d,m[12]=h,m[13]=g,m[14]=p,m[15]=v,m;}function u(t,e,n,r,i,o,a,s,u,c,l,f,d,h,g,p,v){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t[9]=l,t[10]=f,t[11]=d,t[12]=h,t[13]=g,t[14]=p,t[15]=v,t;}function c(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t;}function l(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s;}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t;}function f(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],d=e[10],h=e[11],g=e[12],p=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*u-i*a,x=n*c-o*a,_=r*u-i*s,E=r*c-o*s,w=i*c-o*u,M=l*p-f*g,C=l*v-d*g,A=l*m-h*g,S=f*v-d*p,D=f*m-h*p,I=d*m-h*v,T=y*I-b*D+x*S+_*A-E*C+w*M;return T?(T=1/T,t[0]=(s*I-u*D+c*S)*T,t[1]=(i*D-r*I-o*S)*T,t[2]=(p*w-v*E+m*_)*T,t[3]=(d*E-f*w-h*_)*T,t[4]=(u*A-a*I-c*C)*T,t[5]=(n*I-i*A+o*C)*T,t[6]=(v*x-g*w-m*b)*T,t[7]=(l*w-d*x+h*b)*T,t[8]=(a*D-s*A+c*M)*T,t[9]=(r*A-n*D-o*M)*T,t[10]=(g*E-p*x+m*y)*T,t[11]=(f*x-l*E-h*y)*T,t[12]=(s*C-a*S-u*M)*T,t[13]=(n*S-r*C+i*M)*T,t[14]=(p*b-g*_-v*y)*T,t[15]=(l*_-f*b+d*y)*T,t):null;}function d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],d=e[10],h=e[11],g=e[12],p=e[13],v=e[14],m=e[15];return t[0]=s*(d*m-h*v)-f*(u*m-c*v)+p*(u*h-c*d),t[1]=-(r*(d*m-h*v)-f*(i*m-o*v)+p*(i*h-o*d)),t[2]=r*(u*m-c*v)-s*(i*m-o*v)+p*(i*c-o*u),t[3]=-(r*(u*h-c*d)-s*(i*h-o*d)+f*(i*c-o*u)),t[4]=-(a*(d*m-h*v)-l*(u*m-c*v)+g*(u*h-c*d)),t[5]=n*(d*m-h*v)-l*(i*m-o*v)+g*(i*h-o*d),t[6]=-(n*(u*m-c*v)-a*(i*m-o*v)+g*(i*c-o*u)),t[7]=n*(u*h-c*d)-a*(i*h-o*d)+l*(i*c-o*u),t[8]=a*(f*m-h*p)-l*(s*m-c*p)+g*(s*h-c*f),t[9]=-(n*(f*m-h*p)-l*(r*m-o*p)+g*(r*h-o*f)),t[10]=n*(s*m-c*p)-a*(r*m-o*p)+g*(r*c-o*s),t[11]=-(n*(s*h-c*f)-a*(r*h-o*f)+l*(r*c-o*s)),t[12]=-(a*(f*v-d*p)-l*(s*v-u*p)+g*(s*d-u*f)),t[13]=n*(f*v-d*p)-l*(r*v-i*p)+g*(r*d-i*f),t[14]=-(n*(s*v-u*p)-a*(r*v-i*p)+g*(r*u-i*s)),t[15]=n*(s*d-u*f)-a*(r*d-i*f)+l*(r*u-i*s),t;}function h(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],d=t[11],h=t[12],g=t[13],p=t[14],v=t[15];return(e*a-n*o)*(f*v-d*p)-(e*s-r*o)*(l*v-d*g)+(e*u-i*o)*(l*p-f*g)+(n*s-r*a)*(c*v-d*h)-(n*u-i*a)*(c*p-f*h)+(r*u-i*s)*(c*g-l*h);}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],d=e[9],h=e[10],g=e[11],p=e[12],v=e[13],m=e[14],y=e[15],b=n[0],x=n[1],_=n[2],E=n[3];return t[0]=b*r+x*s+_*f+E*p,t[1]=b*i+x*u+_*d+E*v,t[2]=b*o+x*c+_*h+E*m,t[3]=b*a+x*l+_*g+E*y,b=n[4],x=n[5],_=n[6],E=n[7],t[4]=b*r+x*s+_*f+E*p,t[5]=b*i+x*u+_*d+E*v,t[6]=b*o+x*c+_*h+E*m,t[7]=b*a+x*l+_*g+E*y,b=n[8],x=n[9],_=n[10],E=n[11],t[8]=b*r+x*s+_*f+E*p,t[9]=b*i+x*u+_*d+E*v,t[10]=b*o+x*c+_*h+E*m,t[11]=b*a+x*l+_*g+E*y,b=n[12],x=n[13],_=n[14],E=n[15],t[12]=b*r+x*s+_*f+E*p,t[13]=b*i+x*u+_*d+E*v,t[14]=b*o+x*c+_*h+E*m,t[15]=b*a+x*l+_*g+E*y,t;}function p(t,e,n){var r,i,o,a,s,u,c,l,f,d,h,g,p=n[0],v=n[1],m=n[2];return e===t?(t[12]=e[0]*p+e[4]*v+e[8]*m+e[12],t[13]=e[1]*p+e[5]*v+e[9]*m+e[13],t[14]=e[2]*p+e[6]*v+e[10]*m+e[14],t[15]=e[3]*p+e[7]*v+e[11]*m+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],d=e[9],h=e[10],g=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=c,t[7]=l,t[8]=f,t[9]=d,t[10]=h,t[11]=g,t[12]=r*p+s*v+f*m+e[12],t[13]=i*p+u*v+d*m+e[13],t[14]=o*p+c*v+h*m+e[14],t[15]=a*p+l*v+g*m+e[15]),t;}function v(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t;}function m(t,e,n,i){var o,a,s,u,c,l,f,d,h,g,p,v,m,y,b,x,_,E,w,M,C,A,S,D,I=i[0],T=i[1],k=i[2],F=Math.hypot(I,T,k);return F<r.EPSILON?null:(I*=F=1/F,T*=F,k*=F,o=Math.sin(n),s=1-(a=Math.cos(n)),u=e[0],c=e[1],l=e[2],f=e[3],d=e[4],h=e[5],g=e[6],p=e[7],v=e[8],m=e[9],y=e[10],b=e[11],x=I*I*s+a,_=T*I*s+k*o,E=k*I*s-T*o,w=I*T*s-k*o,M=T*T*s+a,C=k*T*s+I*o,A=I*k*s+T*o,S=T*k*s-I*o,D=k*k*s+a,t[0]=u*x+d*_+v*E,t[1]=c*x+h*_+m*E,t[2]=l*x+g*_+y*E,t[3]=f*x+p*_+b*E,t[4]=u*w+d*M+v*C,t[5]=c*w+h*M+m*C,t[6]=l*w+g*M+y*C,t[7]=f*w+p*M+b*C,t[8]=u*A+d*S+v*D,t[9]=c*A+h*S+m*D,t[10]=l*A+g*S+y*D,t[11]=f*A+p*S+b*D,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t);}function y(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+c*r,t[5]=a*i+l*r,t[6]=s*i+f*r,t[7]=u*i+d*r,t[8]=c*i-o*r,t[9]=l*i-a*r,t[10]=f*i-s*r,t[11]=d*i-u*r,t;}function b(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[8],l=e[9],f=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-c*r,t[1]=a*i-l*r,t[2]=s*i-f*r,t[3]=u*i-d*r,t[8]=o*r+c*i,t[9]=a*r+l*i,t[10]=s*r+f*i,t[11]=u*r+d*i,t;}function x(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[4],l=e[5],f=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+c*r,t[1]=a*i+l*r,t[2]=s*i+f*r,t[3]=u*i+d*r,t[4]=c*i-o*r,t[5]=l*i-a*r,t[6]=f*i-s*r,t[7]=d*i-u*r,t;}function _(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t;}function E(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t;}function w(t,e,n){var i,o,a,s=n[0],u=n[1],c=n[2],l=Math.hypot(s,u,c);return l<r.EPSILON?null:(s*=l=1/l,u*=l,c*=l,i=Math.sin(e),a=1-(o=Math.cos(e)),t[0]=s*s*a+o,t[1]=u*s*a+c*i,t[2]=c*s*a-u*i,t[3]=0,t[4]=s*u*a-c*i,t[5]=u*u*a+o,t[6]=c*u*a+s*i,t[7]=0,t[8]=s*c*a+u*i,t[9]=u*c*a-s*i,t[10]=c*c*a+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t);}function M(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t;}function C(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t;}function A(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t;}function S(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,u=i+i,c=o+o,l=r*s,f=r*u,d=r*c,h=i*u,g=i*c,p=o*c,v=a*s,m=a*u,y=a*c;return t[0]=1-(h+p),t[1]=f+y,t[2]=d-m,t[3]=0,t[4]=f-y,t[5]=1-(l+p),t[6]=g+v,t[7]=0,t[8]=d+m,t[9]=g-v,t[10]=1-(l+h),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t;}function D(t,e){var n=new r.ARRAY_TYPE(3),i=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],c=e[5],l=e[6],f=e[7],d=i*i+o*o+a*a+s*s;return d>0?(n[0]=(u*s+f*i+c*a-l*o)*2/d,n[1]=(c*s+f*o+l*i-u*a)*2/d,n[2]=(l*s+f*a+u*o-c*i)*2/d):(n[0]=(u*s+f*i+c*a-l*o)*2,n[1]=(c*s+f*o+l*i-u*a)*2,n[2]=(l*s+f*a+u*o-c*i)*2),S(t,e,n),t;}function I(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t;}function T(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],c=e[9],l=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(u,c,l),t;}function k(t,e){var n=new r.ARRAY_TYPE(3);T(n,e);var i=1/n[0],o=1/n[1],a=1/n[2],s=e[0]*i,u=e[1]*o,c=e[2]*a,l=e[4]*i,f=e[5]*o,d=e[6]*a,h=e[8]*i,g=e[9]*o,p=e[10]*a,v=s+f+p,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(d-g)/m,t[1]=(h-c)/m,t[2]=(u-l)/m):s>f&&s>p?(m=2*Math.sqrt(1+s-f-p),t[3]=(d-g)/m,t[0]=.25*m,t[1]=(u+l)/m,t[2]=(h+c)/m):f>p?(m=2*Math.sqrt(1+f-s-p),t[3]=(h-c)/m,t[0]=(u+l)/m,t[1]=.25*m,t[2]=(d+g)/m):(m=2*Math.sqrt(1+p-s-f),t[3]=(u-l)/m,t[0]=(h+c)/m,t[1]=(d+g)/m,t[2]=.25*m),t;}function F(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,c=o+o,l=a+a,f=i*u,d=i*c,h=i*l,g=o*c,p=o*l,v=a*l,m=s*u,y=s*c,b=s*l,x=r[0],_=r[1],E=r[2];return t[0]=(1-(g+v))*x,t[1]=(d+b)*x,t[2]=(h-y)*x,t[3]=0,t[4]=(d-b)*_,t[5]=(1-(f+v))*_,t[6]=(p+m)*_,t[7]=0,t[8]=(h+y)*E,t[9]=(p-m)*E,t[10]=(1-(f+g))*E,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t;}function N(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],u=e[3],c=o+o,l=a+a,f=s+s,d=o*c,h=o*l,g=o*f,p=a*l,v=a*f,m=s*f,y=u*c,b=u*l,x=u*f,_=r[0],E=r[1],w=r[2],M=i[0],C=i[1],A=i[2],S=(1-(p+m))*_,D=(h+x)*_,I=(g-b)*_,T=(h-x)*E,k=(1-(d+m))*E,F=(v+y)*E,N=(g+b)*w,O=(v-y)*w,B=(1-(d+p))*w;return t[0]=S,t[1]=D,t[2]=I,t[3]=0,t[4]=T,t[5]=k,t[6]=F,t[7]=0,t[8]=N,t[9]=O,t[10]=B,t[11]=0,t[12]=n[0]+M-(S*M+T*C+N*A),t[13]=n[1]+C-(D*M+k*C+O*A),t[14]=n[2]+A-(I*M+F*C+B*A),t[15]=1,t;}function O(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,l=r*a,f=r*s,d=i*a,h=i*s,g=i*u,p=o*a,v=o*s,m=o*u;return t[0]=1-f-g,t[1]=l+m,t[2]=d-v,t[3]=0,t[4]=l-m,t[5]=1-c-g,t[6]=h+p,t[7]=0,t[8]=d+v,t[9]=h-p,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t;}function B(t,e,n,r,i,o,a){var s=1/(n-e),u=1/(i-r),c=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0,t;}function P(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t;}var L=P;function j(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t;}function R(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),c=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-((a-s)*u*.5),t[9]=(i-o)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t;}function z(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*c,t[15]=1,t;}var G=z;function Y(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=c,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=o*c,t[15]=1,t;}function X(t,e,n,i){var o,a,s,u,l,f,d,h,g,p,v=e[0],m=e[1],y=e[2],b=i[0],x=i[1],_=i[2],E=n[0],w=n[1],M=n[2];return Math.abs(v-E)<r.EPSILON&&Math.abs(m-w)<r.EPSILON&&Math.abs(y-M)<r.EPSILON?c(t):(p=1/Math.hypot(d=v-E,h=m-w,g=y-M),d*=p,h*=p,g*=p,(p=Math.hypot(o=x*g-_*h,a=_*d-b*g,s=b*h-x*d))?(o*=p=1/p,a*=p,s*=p):(o=0,a=0,s=0),(p=Math.hypot(u=h*s-g*a,l=g*o-d*s,f=d*a-h*o))?(u*=p=1/p,l*=p,f*=p):(u=0,l=0,f=0),t[0]=o,t[1]=u,t[2]=d,t[3]=0,t[4]=a,t[5]=l,t[6]=h,t[7]=0,t[8]=s,t[9]=f,t[10]=g,t[11]=0,t[12]=-(o*v+a*m+s*y),t[13]=-(u*v+l*m+f*y),t[14]=-(d*v+h*m+g*y),t[15]=1,t);}function U(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=r[0],u=r[1],c=r[2],l=i-n[0],f=o-n[1],d=a-n[2],h=l*l+f*f+d*d;h>0&&(l*=h=1/Math.sqrt(h),f*=h,d*=h);var g=u*d-c*f,p=c*l-s*d,v=s*f-u*l;return(h=g*g+p*p+v*v)>0&&(g*=h=1/Math.sqrt(h),p*=h,v*=h),t[0]=g,t[1]=p,t[2]=v,t[3]=0,t[4]=f*v-d*p,t[5]=d*g-l*v,t[6]=l*p-f*g,t[7]=0,t[8]=l,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t;}function H(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")";}function W(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]);}function V(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[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t;}function q(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[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t;}function Z(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[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t;}function J(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[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t;}function K(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[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15];}function Q(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=t[9],h=t[10],g=t[11],p=t[12],v=t[13],m=t[14],y=t[15],b=e[0],x=e[1],_=e[2],E=e[3],w=e[4],M=e[5],C=e[6],A=e[7],S=e[8],D=e[9],I=e[10],T=e[11],k=e[12],F=e[13],N=e[14],O=e[15];return Math.abs(n-b)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-_)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(a-E)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(s-w)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(u-M)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(M))&&Math.abs(c-C)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(l-A)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-S)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(S))&&Math.abs(d-D)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(D))&&Math.abs(h-I)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(g-T)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(T))&&Math.abs(p-k)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(v-F)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(F))&&Math.abs(m-N)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(N))&&Math.abs(y-O)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(O));}var $=g,tt=q;},b42bfee2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("f5b38a88")),i=function(t){return(0,r.default)(t,"Error");};},b4d4763e:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("0aad631c")),o=r._(n("8ec5c776")),a=function(t,e){return(0,i.default)((0,o.default)(t),e);};},b4e2232d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=r._(n("21422ae0")),o=r._(n("78294f9e")),a=n("769809e4"),s=n("94a227fe"),u=function(){function t(e,n){(0,i.default)(this,t),this.buffer=void 0;var r=n.data,o=n.usage,u=n.type;this.buffer=e.buffer({data:r,usage:s.usageMap[o||a.gl.STATIC_DRAW],type:s.dataTypeMap[u||a.gl.UNSIGNED_BYTE]});}return(0,o.default)(t,[{key:"get",value:function(){return this.buffer;}},{key:"destroy",value:function(){}},{key:"subData",value:function(t){var e=t.data,n=t.offset;this.buffer.subdata(e,n);}}]),t;}();},b5537d71:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"registerScale",{enumerable:!0,get:function(){return i;}}),n("65691558");var r={};function i(t,e){if(r[t])throw Error("type '"+t+"' existed.");r[t]=e;}},b55953a3:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=r._(n("5bdfb181")),o=r._(n("0aff2e87")),a=r._(n("942b4eed")),s=function(t,e){if(t===e)return!0;if(!t||!e||(0,a.default)(t)||(0,a.default)(e))return!1;if((0,o.default)(t)||(0,o.default)(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=s(t[r],e[r]));r++);return n;}if((0,i.default)(t)||(0,i.default)(e)){var u=Object.keys(t),c=Object.keys(e);if(u.length!==c.length)return!1;for(var n=!0,r=0;r<u.length&&(n=s(t[u[r]],e[u[r]]));r++);return n;}return!1;},u=s;},b56156ed:function(t,e,n){"use strict";function r(t){return+t;}n.d(e,"__esModule",{value:!0}),n.d(e,"linear",{enumerable:!0,get:function(){return r;}});},b5782d15:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{arrayToTextureData:function(){return f;},attributesToTextureData:function(){return l;},buildTextureData:function(){return s;},buildTextureDataWithOneEdgeAttr:function(){return u;},buildTextureDataWithTwoEdgeAttr:function(){return c;},proccessToFunc:function(){return a;},radialLayout:function(){return d;}});var r=n("168feef4"),i=n("22b52967"),o=r.Util.traverseTree,a=function(t,e){return t?(0,i.isNumber)(t)?function(e){return t;}:t:function(t){return e||1;};},s=function(t,e){var n=[],r=[],i={},o=0;for(o=0;o<t.length;o++){var a=t[o];i[a.id]=o,n.push(a.x),n.push(a.y),n.push(0),n.push(0),r.push([]);}for(o=0;o<e.length;o++){var s=e[o];r[i[s.source]].push(i[s.target]),r[i[s.target]].push(i[s.source]);}var u=0;for(o=0;o<t.length;o++){var c=n.length,l=r[o],f=l.length;n[4*o+2]=c,n[4*o+3]=l.length,u=Math.max(u,l.length);for(var d=0;d<f;++d){var h=l[d];n.push(+h);}}for(;n.length%4!=0;)n.push(0);return{array:new Float32Array(n),maxEdgePerVetex:u};},u=function(t,e,n){var r=[],i=[],o={},a=0;for(a=0;a<t.length;a++){var s=t[a];o[s.id]=a,r.push(s.x),r.push(s.y),r.push(0),r.push(0),i.push([]);}for(a=0;a<e.length;a++){var u=e[a];i[o[u.source]].push(o[u.target]),i[o[u.source]].push(n(u)),i[o[u.target]].push(o[u.source]),i[o[u.target]].push(n(u));}var c=0;for(a=0;a<t.length;a++){var l=r.length,f=i[a],d=f.length;r[4*a+2]=l,r[4*a+3]=d/2,c=Math.max(c,d/2);for(var h=0;h<d;++h){var g=f[h];r.push(+g);}}for(;r.length%4!=0;)r.push(0);return{array:new Float32Array(r),maxEdgePerVetex:c};},c=function(t,e,n,r){var i=[],o=[],a={},s=0;for(s=0;s<t.length;s++){var u=t[s];a[u.id]=s,i.push(u.x),i.push(u.y),i.push(0),i.push(0),o.push([]);}for(s=0;s<e.length;s++){var c=e[s];o[a[c.source]].push(a[c.target]),o[a[c.source]].push(n(c)),o[a[c.source]].push(r(c)),o[a[c.source]].push(0),o[a[c.target]].push(a[c.source]),o[a[c.target]].push(n(c)),o[a[c.target]].push(r(c)),o[a[c.target]].push(0);}var l=0;for(s=0;s<t.length;s++){var f=i.length,d=o[s],h=d.length;i[4*s+2]=f+1048576*h/4,i[4*s+3]=0,l=Math.max(l,h/4);for(var g=0;g<h;++g){var p=d[g];i.push(+p);}}for(;i.length%4!=0;)i.push(0);return{array:new Float32Array(i),maxEdgePerVetex:l};},l=function(t,e){var n=[],r=t.length,i={};return e.forEach(function(e){t.forEach(function(t,o){if(void 0===i[e[t]]&&(i[e[t]]=Object.keys(i).length),n.push(i[e[t]]),o===r-1)for(;n.length%4!=0;)n.push(0);});}),{array:new Float32Array(n),count:Object.keys(i).length};},f=function(t){for(var e=[],n=t.length,r=t[0].length,i=function(r){t.forEach(function(t,i){if(e.push(t[r]),i===n-1)for(;e.length%4!=0;)e.push(0);});},o=0;o<r;o++)i(o);return new Float32Array(e);},d=function(t,e){var n={x:1/0,y:1/0},r={x:-1/0,y:-1/0},i="x",a="y";e&&["V","TB","BT"].indexOf(e)>=0&&(a="x",i="y");var s=0;o(t,function(t){return s++,t.x>r.x&&(r.x=t.x),t.x<n.x&&(n.x=t.x),t.y>r.y&&(r.y=t.y),t.y<n.y&&(n.y=t.y),!0;});var u=2*Math.PI/s,c=r[a]-n[a];return 0===c||o(t,function(e){var r=(e[a]-n[a])/c*(2*Math.PI-u)+u,o=Math.abs("x"===i?e.x-t.x:e.y-t.y);return e.x=o*Math.cos(r),e.y=o*Math.sin(r),!0;}),t;};},b5ac46c8:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("8d42ebc3"),a=n("22b52967"),s=n("7048382e"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1});},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache();},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null);},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map(function(t){return t[0]+","+t[1];}).join(" ")):s.SVG_ATTR_MAP[e]&&r.setAttribute(s.SVG_ATTR_MAP[e],t);});},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,a.isNil)(e)?(this.set("totalLength",o.Polyline.length(t)),this.get("totalLength")):e;},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,a.each)(i,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i);}),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e);},e.prototype._setTcache=function(){var t,e,n=this.attr().points;if(n&&0!==n.length){var r=this.getTotalLength();if(!(r<=0)){var i=0,s=[];(0,a.each)(n,function(a,u){n[u+1]&&((t=[])[0]=i/r,e=o.Line.length(a[0],a[1],n[u+1][0],n[u+1][1]),i+=e,t[1]=i/r,s.push(t));}),this.set("tCache",s);}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e;},e.prototype.getEndTangent=function(){var t=this.attr().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;},e;}(r._(n("1bfab17d")).default);},b5d9520f:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.RandomLayout=void 0;var o=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300};},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;return t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),e&&e.forEach(function(e){e.x=(Math.random()-.5)*.9*t.width+n[0],e.y=(Math.random()-.5)*.9*t.height+n[1];}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:this.edges};},e.prototype.getType=function(){return"random";},e;}(n("5092cda5").Base);e.RandomLayout=o;},b6b3d6c6:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("04480408");class i extends r.AbstractMatrix{constructor(t,e,n){super(),this.matrix=t,this.rows=e,this.columns=n;}}},b806ec3a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("71b016a7"));function i(t){var e,n,i,o=(0,r.default)(.1);function a(t){for(var r,o=0,a=e.length;o<a;++o)r=e[o],r.vx+=(i[o]-r.x)*n[o]*t;}function s(){if(e){var r,a=e.length;for(r=0,n=Array(a),i=Array(a);r<a;++r)n[r]=isNaN(i[r]=+t(e[r],r,e))?0:+o(e[r],r,e);}}return"function"!=typeof t&&(t=(0,r.default)(null==t?0:+t)),a.initialize=function(t){e=t,s();},a.strength=function(t){return arguments.length?(o="function"==typeof t?t:(0,r.default)(+t),s(),a):o;},a.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),s(),a):t;},a;}},b862a8b8:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("62734055"),i=function(t){for(var e;t.hasNode(e="_root".concat(Math.random())););return e;};e.default=function(t,e,n){var o=i(t),a=new r.Graph({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(e){return t.node(e);});return t.nodes().forEach(function(r){var i,s=t.node(r),u=t.parent(r);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(r),a.setParent(r,u||o),null===(i=t[n](r))||void 0===i||i.forEach(function(e){var n=e.v===r?e.w:e.v,i=a.edgeFromArgs(n,r),o=void 0!==i?i.weight:0;a.setEdge(n,r,{weight:t.edge(e).weight+o});}),s.hasOwnProperty("minRank")&&a.setNode(r,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}));}),a;};},b8744f97:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe")._(n("98a7e844")),i=n("61db1663"),o=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function a(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n);}var s=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t);},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape);}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t);}},this.canvas=t.canvas;}return t.prototype.init=function(){this._bindEvents();},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(o,function(n){e.addEventListener(n,t._eventCallback);}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp));},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(o,function(n){e.removeEventListener(n,t._eventCallback);}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp));},t.prototype._getEventObj=function(t,e,n,i,o,a){var s=new r.default(t,e);return s.fromShape=o,s.toShape=a,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(i),s;},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e);},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y};},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null);}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor");}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null);},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),(!r||r.get("destroyed"))&&(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)));},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r);},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r;},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null);}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0);},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,c=a.clientX-t.clientX,l=a.clientY-t.clientY;u>120||c*c+l*l>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e));}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e);}},t.prototype._emitEvent=function(t,e,n,r,o,s){var u=this._getEventObj(t,e,n,r,o,s);if(r){u.shape=r,a(r,t,u);for(var c=r.getParent();c;)c.emitDelegation(t,u),u.propagationStopped||function(t,e,n){if(n.bubbles){var r=void 0,o=!1;if("mouseenter"===e?(r=n.fromShape,o=!0):"mouseleave"===e&&(o=!0,r=n.toShape),!t.isCanvas()||!o){if(r&&(0,i.isParent)(t,r)){n.bubbles=!1;return;}n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n);}}}(c,t,u),u.propagationPath.push(c),c=c.getParent();}else a(this.canvas,t,u);},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null;},t;}();},b9a68752:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=n("777fffbe")._(n("233dfe4c")).default;},b9c9496c:function(t,e,n){var r;r=function(t){"use strict";function e(t){return t>=48&&t<=57;}function n(t){this.index=0,this.path=t,this.max=t.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[];}function r(t){for(var e;t.index<t.max&&(10===(e=t.path.charCodeAt(t.index))||13===e||8232===e||8233===e||32===e||9===e||11===e||12===e||160===e||e>=5760&&ti.indexOf(e)>=0);)t.index++;}function i(t){n=(e=t.path[t.segmentStart]).toLowerCase();var e,n,r=t.data;if("m"===n&&r.length>2&&(t.result.push([e,r[0],r[1]]),r=r.slice(2),n="l",e="m"===e?"l":"L"),"r"===n)t.result.push([e].concat(r));else for(;r.length>=tr[n]&&(t.result.push([e].concat(r.splice(0,tr[n]))),tr[n]););}function o(){if(!(this instanceof o))return new o;this.queue=[],this.cache=null;}function a(t,e,n,r){var i=Math.sqrt(t*t+e*e),o=Math.sqrt(t*t+e*e),a=(t*n+e*r)/(i*o);return a>1&&(a=1),a<-1&&(a=-1),(t*r-e*n<0?-1:1)*Math.acos(a);}function s(t,e,n){if(!(this instanceof s))return new s(t,e,n);this.rx=t,this.ry=e,this.ax=n;}function u(t){if(!(this instanceof u))return new u(t);var e=to(t);this.segments=e.segments,this.err=e.err,this.__stack=[];}function c(t,e,n,r,i,o,a,s){this.a={x:t,y:e},this.b={x:n,y:r},this.c={x:i,y:o},this.d={x:a,y:s},null!=a&&null!=s?(this.getArcLength=m,this.getPoint=g,this.getDerivative=f):(this.getArcLength=p,this.getPoint=h,this.getDerivative=l),this.init();}function l(t,e,n){return{x:2*(1-n)*(t[1]-t[0])+2*n*(t[2]-t[1]),y:2*(1-n)*(e[1]-e[0])+2*n*(e[2]-e[1])};}function f(t,e,n){return h([3*(t[1]-t[0]),3*(t[2]-t[1]),3*(t[3]-t[2])],[3*(e[1]-e[0]),3*(e[2]-e[1]),3*(e[3]-e[2])],n);}function d(t,e,n,r,i){for(var o=1,a=t/e,s=(t-n(r,i,a))/e;o>.001;){var u=n(r,i,a+s),c=n(r,i,a-s),l=Math.abs(t-u)/e,f=Math.abs(t-c)/e;l<o?(o=l,a+=s):f<o?(o=f,a-=s):s/=2;}return a;}function h(t,e,n){return{x:(1-n)*(1-n)*t[0]+2*(1-n)*n*t[1]+n*n*t[2],y:(1-n)*(1-n)*e[0]+2*(1-n)*n*e[1]+n*n*e[2]};}function g(t,e,n){return{x:(1-n)*(1-n)*(1-n)*t[0]+3*(1-n)*(1-n)*n*t[1]+3*(1-n)*n*n*t[2]+n*n*n*t[3],y:(1-n)*(1-n)*(1-n)*e[0]+3*(1-n)*(1-n)*n*e[1]+3*(1-n)*n*n*e[2]+n*n*n*e[3]};}function p(t,e,n){void 0===n&&(n=1);var r=t[0]-2*t[1]+t[2],i=e[0]-2*e[1]+e[2],o=2*t[1]-2*t[0],a=2*e[1]-2*e[0],s=4*(r*r+i*i);if(0===s)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));var u=4*(r*o+i*a)/(2*s),c=n+u,l=(o*o+a*a)/s-u*u;return Math.sqrt(s)/2*(c*Math.sqrt(c*c+l)-u*Math.sqrt(u*u+l)+l*Math.log(Math.abs((c+Math.sqrt(c*c+l))/(u+Math.sqrt(u*u+l)))));}function v(t,e,n){var r,i,o,a,s=n.length-1;if(0===s)return 0;if(0===t){for(o=0,a=0;a<=s;a++)o+=(r=a,t_[s][r]*Math.pow(1-e,s-a)*Math.pow(e,a)*n[a]);return o;}for(i=Array(s),a=0;a<s;a++)i[a]=s*(n[a+1]-n[a]);return v(t-1,e,i);}function m(t,e,n){var r,i,o,a;for(void 0===n&&(n=1),r=n/2,i=0,o=0;o<20;o++)a=r*tb[20][o]+r,i+=tx[20][o]*function(t,e,n){var r=v(1,n,t),i=v(1,n,e);return Math.sqrt(r*r+i*i);}(t,e,a);return r*i;}function y(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i);}function b(t,e,n,r,i,o,a,s,u){var c=0,l=[],f=[];tw(t,e,n,r,i,o,a,s,u).forEach(function(t){var e=new ty(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),n=e.getTotalLength();c+=n,l.push(n),f.push(e);}),this.length=c,this.partialLengths=l,this.curves=f;}function x(t,e,n,r){this.x0=t,this.x1=e,this.y0=n,this.y1=r;}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]));}function E(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n];}function w(t,e,n){var r=t.map(function(t,n){var r;return r=e[n],function(e){return t.map(function(t,n){return t+e*(r[n]-t);});};});return function(t){var e=r.map(function(e){return e(t);});return n?D(e):e;};}function M(t){return"number"==typeof t&&isFinite(t);}function C(t){return!function(t){for(var e=0;e<t.length-2;e++){var n=t[e],r=t[e+1],i=t[e+2];if(n[0]*(r[1]-i[1])+r[0]*(i[1]-n[1])+i[0]*(n[1]-r[1]))return!0;}return!1;}(t)?[(t[0][0]+t[t.length-1][0])/2,(t[0][1]+t[t.length-1][1])/2]:te(t);}function A(t){return new th(t).abs();}function S(t){return t.toString().split("M").map(function(t,e){return t=t.trim(),e&&t?"M"+t:t;}).filter(function(t){return t;});}function D(t){return"M"+t.join("L")+"Z";}function I(t,e){for(var n=t.length+e,r=tn(t)/e,i=0,o=0,a=r/2;t.length<n;){var s=t[i],u=t[(i+1)%t.length],c=_(s,u);a<=o+c?(t.splice(i+1,0,c?E(s,u,(a-o)/c):s.slice(0)),a+=r):(o+=c,i++);}}function T(t,e){if("string"==typeof t){var n,r,i,o=function(t){var e=t.segments||[],n=[];if(!e.length||"M"!==e[0][0])return!1;for(var r=0;r<e.length;r++){var i=e[r],o=i[0],a=i[1],s=i[2];if("M"===o&&r||"Z"===o)break;if("M"===o||"L"===o)n.push([a,s]);else if("H"===o)n.push([a,n[n.length-1][1]]);else{if("V"!==o)return!1;n.push([n[n.length-1][0],a]);}}return!!n.length&&{ring:n};}(i=A(t))||function(t,e){var n,r,i=S(t)[0],o=[],a=3;if(!i)throw TypeError(tS);n=(r=function(t){if("undefined"!=typeof window&&window&&window.document)try{var e=window.document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttributeNS(null,"d",t),e;}catch(t){}return tA(t);}(i)).getTotalLength(),e&&M(e)&&e>0&&(a=Math.max(a,Math.ceil(n/e)));for(var s=0;s<a;s++){var u=r.getPointAtLength(n*s/a);o.push([u.x,u.y]);}return{ring:o,skipBisect:!0};}(i,e);t=o.ring,r=o.skipBisect;}else if(!Array.isArray(t))throw TypeError(tS);if(!(n=t.slice(0)).every(function(t){return Array.isArray(t)&&t.length>=2&&M(t[0])&&M(t[1]);}))throw TypeError(tS);return n.length>1&&1e-9>_(n[0],n[n.length-1])&&n.pop(),tt(n)>0&&n.reverse(),!r&&e&&M(e)&&e>0&&function(t,e){void 0===e&&(e=1/0);for(var n=0;n<t.length;n++)for(var r=t[n],i=n===t.length-1?t[0]:t[n+1];_(r,i)>e;)i=E(r,i,.5),t.splice(n+1,0,i);}(n,e),n;}function k(t,e,n){var r;return r=t.length-e.length,I(t,r<0?-1*r:0),I(e,r>0?r:0),tD(t,e),w(t,e,n);}function F(t,e,n){n=n||2;var r,i,o,a,s,u,c,l=e&&e.length,f=l?e[0]*n:t.length,d=N(t,0,f,n,!0),h=[];if(!d)return h;if(l&&(d=function(t,e,n,r){var i,o,a,s,u,c=[];for(i=0,o=e.length;i<o;i++)a=e[i]*r,s=i<o-1?e[i+1]*r:t.length,(u=N(t,a,s,r,!1))===u.next&&(u.steiner=!0),c.push(function(t){var e=t,n=t;do e.x<n.x&&(n=e),e=e.next;while(e!==t)return n;}(u));for(c.sort(B),i=0;i<c.length;i++)(function(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next;}n=r.x<r.next.x?r:r.next;}}r=r.next;}while(r!==e)if(!n)return null;if(i===a)return n.prev;var u,c=n,l=n.x,f=n.y,d=1/0;for(r=n.next;r!==c;)i>=r.x&&r.x>=l&&L(o<f?i:a,o,l,f,o<f?a:i,o,r.x,r.y)&&((u=Math.abs(o-r.y)/(i-r.x))<d||u===d&&r.x>n.x)&&G(r,t)&&(n=r,d=u),r=r.next;return n;}(t,e)){var n=Y(e,t);O(n,n.next);}})(c[i],n),n=O(n,n.next);return n;}(t,e,d,n)),t.length>80*n){r=o=t[0],i=a=t[1];for(var g=n;g<f;g+=n)s=t[g],u=t[g+1],s<r&&(r=s),u<i&&(i=u),s>o&&(o=s),u>a&&(a=u);c=Math.max(o-r,a-i);}return function t(e,n,r,i,o,a,s){if(e){!s&&a&&function(t,e,n,r){var i=t;do null===i.z&&(i.z=P(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t)i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,c=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<c&&(s++,r=r.nextZ);e++);for(u=c;s>0||u>0&&r;)0===s?(i=r,r=r.nextZ,u--):0!==u&&r?n.z<=r.z?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,s--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r;}o.nextZ=null,c*=2;}while(a>1)}(i);}(e,i,o,a);for(var u,c,l=e;e.prev!==e.next;)if(u=e.prev,c=e.next,a?function(t,e,n,r){var i=t.prev,o=t.next;if(j(i,t,o)>=0)return!1;for(var a=i.x<t.x?i.x<o.x?i.x:o.x:t.x<o.x?t.x:o.x,s=i.y<t.y?i.y<o.y?i.y:o.y:t.y<o.y?t.y:o.y,u=i.x>t.x?i.x>o.x?i.x:o.x:t.x>o.x?t.x:o.x,c=i.y>t.y?i.y>o.y?i.y:o.y:t.y>o.y?t.y:o.y,l=P(a,s,e,n,r),f=P(u,c,e,n,r),d=t.nextZ;d&&d.z<=f;){if(d!==t.prev&&d!==t.next&&L(i.x,i.y,t.x,t.y,o.x,o.y,d.x,d.y)&&j(d.prev,d,d.next)>=0)return!1;d=d.nextZ;}for(d=t.prevZ;d&&d.z>=l;){if(d!==t.prev&&d!==t.next&&L(i.x,i.y,t.x,t.y,o.x,o.y,d.x,d.y)&&j(d.prev,d,d.next)>=0)return!1;d=d.prevZ;}return!0;}(e,i,o,a):function(t){var e=t.prev,n=t.next;if(j(e,t,n)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(L(e.x,e.y,t.x,t.y,n.x,n.y,r.x,r.y)&&j(r.prev,r,r.next)>=0)return!1;r=r.next;}return!0;}(e))n.push(u.i/r),n.push(e.i/r),n.push(c.i/r),U(e),e=c.next,l=c.next;else if((e=c)===l){s?1===s?t(e=function(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!R(i,o)&&z(i,r,r.next,o)&&G(i,o)&&G(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),U(r),U(r.next),r=t=o),r=r.next;}while(r!==t)return r;}(e,n,r),n,r,i,o,a,2):2===s&&function(e,n,r,i,o,a){var s=e;do{for(var u,c,l=s.next.next;l!==s.prev;){if(s.i!==l.i&&(u=s,c=l,u.next.i!==c.i&&u.prev.i!==c.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&z(n,n.next,t,e))return!0;n=n.next;}while(n!==t)return!1;}(u,c)&&G(u,c)&&G(c,u)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do n.y>o!=n.next.y>o&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==t)return r;}(u,c))){var f=Y(s,l);return s=O(s,s.next),f=O(f,f.next),t(s,n,r,i,o,a),void t(f,n,r,i,o,a);}l=l.next;}s=s.next;}while(s!==e)}(e,n,r,i,o,a):t(O(e),n,r,i,o,a,1);break;}}}(d,h,n,r,i,c),h;}function N(t,e,n,r,i){var o,a;if(i===W(t,e,n,r)>0)for(o=e;o<n;o+=r)a=X(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=X(o,t[o],t[o+1],a);return a&&R(a,a.next)&&(U(a),a=a.next),a;}function O(t,e){if(!t)return t;e||(e=t);var n,r=t;do if(n=!1,r.steiner||!R(r,r.next)&&0!==j(r.prev,r,r.next))r=r.next;else{if(U(r),(r=e=r.prev)===r.next)return null;n=!0;}while(n||r!==e)return e;}function B(t,e){return t.x-e.x;}function P(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)/i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)/i)|e<<8))|e<<4))|e<<2))|e<<1))<<1;}function L(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0;}function j(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y);}function R(t,e){return t.x===e.x&&t.y===e.y;}function z(t,e,n,r){return!!(R(t,e)&&R(n,r)||R(t,r)&&R(n,e))||j(t,e,n)>0!=j(t,e,r)>0&&j(n,r,t)>0!=j(n,r,e)>0;}function G(t,e){return 0>j(t.prev,t,t.next)?j(t,e,t.next)>=0&&j(t,t.prev,e)>=0:0>j(t,e,t.prev)||0>j(t,t.next,e);}function Y(t,e){var n=new H(t.i,t.x,t.y),r=new H(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r;}function X(t,e,n,r){var i=new H(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i;}function U(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ);}function H(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1;}function W(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i;}function V(t,e){var n=e.id,r=e.bbox,i=null==e.properties?{}:e.properties,o=q(t,e);return null==n&&null==r?{type:"Feature",properties:i,geometry:o}:null==r?{type:"Feature",id:n,properties:i,geometry:o}:{type:"Feature",id:n,bbox:r,properties:i,geometry:o};}function q(t,e){function n(t){return a(t);}function r(t){for(var e=[],n=0,r=t.length;n<r;++n)!function(t,e){e.length&&e.pop();for(var n=s[t<0?~t:t],r=0,i=n.length;r<i;++r)e.push(a(n[r],r));t<0&&tk(e,i);}(t[n],e);return e.length<2&&e.push(e[0]),e;}function i(t){for(var e=r(t);e.length<4;)e.push(e[0]);return e;}function o(t){return t.map(i);}var a=tT(t.transform),s=t.arcs;return function t(e){var i,a=e.type;switch(a){case"GeometryCollection":return{type:a,geometries:e.geometries.map(t)};case"Point":i=n(e.coordinates);break;case"MultiPoint":i=e.coordinates.map(n);break;case"LineString":i=r(e.arcs);break;case"MultiLineString":i=e.arcs.map(r);break;case"Polygon":i=o(e.arcs);break;case"MultiPolygon":i=e.arcs.map(o);break;default:return null;}return{type:a,coordinates:i};}(e);}function Z(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=n.single;void 0===o&&(o=!1);var a=T(t,r);a.length<e.length+2&&I(a,e.length+2-a.length);var s,u=tL(a,e.length),c=e.map(function(t){return T(t,r);}),l="string"==typeof t&&t;return o&&!e.every(function(t){return"string"==typeof t;})||(s=e.slice(0)),J(u,c,{match:!0,string:i,single:o,t0:l,t1:s});}function J(t,e,n){void 0===n&&(n={});var r=n.string,i=n.single,o=n.t0,a=n.t1,s=n.match,u=s?tj(t,e):t.map(function(t,e){return e;}),c=u.map(function(n,i){return k(t[n],e[i],r);});if(s&&Array.isArray(o)&&(o=u.map(function(t){return o[t];})),i&&r&&(Array.isArray(o)&&(o=o.join(" ")),Array.isArray(a)&&(a=a.join(" "))),i){var l=r?function(t){return c.map(function(e){return e(t);}).join(" ");}:function(t){return c.map(function(e){return e(t);});};return r&&(o||a)?function(t){return t<1e-4&&o||1-t<1e-4&&a||l(t);}:l;}return r?(o=Array.isArray(o)?o.map(function(t){return"string"==typeof t&&t;}):[],a=Array.isArray(a)?a.map(function(t){return"string"==typeof t&&t;}):[],c.map(function(t,e){return o[e]||a[e]?function(n){return n<1e-4&&o[e]||1-n<1e-4&&a[e]||t(n);}:t;})):c;}function K(t,e,n,r,i){var o,a;return $(function(r){var i=C(r),o=tn(r.concat([r[0]])),a=Math.atan2(r[0][1]-i[1],r[0][0]-i[0]),s=0;return r.map(function(i,u){var c;return u&&(s+=_(i,r[u-1])),[Math.cos(c=a+2*Math.PI*(o?s/o:u/r.length))*n+t,Math.sin(c)*n+e];});},r,"M"+(o=t-n+","+e)+(a="A"+n+","+n+",0,1,1,")+(t+n)+","+e+a+o+"Z",2*Math.PI*n,i);}function Q(t,e,n,r,i,o){var a,s;return $(function(i){var o=C(i),a=tn(i.concat([i[0]])),s=Math.atan2(i[0][1]-o[1],i[0][0]-o[0]),u=0;s<0&&(s=2*Math.PI+s);var c=s/(2*Math.PI);return i.map(function(o,s){s&&(u+=_(o,i[s-1]));var l,f=(l=(c+(a?u/a:s/i.length))%1)<=1/8?[1,.5+4*l]:l<=3/8?[1.5-4*l,1]:l<=5/8?[0,2.5-4*l]:l<=7/8?[4*l-2.5,0]:[1,4*l-3.5];return[t+f[0]*n,e+f[1]*r];});},i,(a=t+n,s=e+r,"M"+t+","+e+"L"+a+","+e+"L"+a+","+s+"L"+t+","+s+"Z"),2*n+2*r,o);}function $(t,e,n,r,i){void 0===i&&(i={});var o=i.maxSegmentLength;void 0===o&&(o=10);var a=i.string;void 0===a&&(a=!0);var s,u=T(e,o);return M(r)&&u.length<r/o&&I(u,Math.ceil(r/o-u.length)),s=w(t(u),u,a),a?function(t){return t<1e-4?n:s(t);}:s;}var tt=function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[1]*i[0]-e[0]*i[1];return o/2;},te=function(t){for(var e,n,r=-1,i=t.length,o=0,a=0,s=t[i-1],u=0;++r<i;)e=s,s=t[r],u+=n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o/(u*=3),a/u];},tn=function(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],s=o[1],u=0;++r<i;)e=a,n=s,a=(o=t[r])[0],s=o[1],e-=a,n-=s,u+=Math.sqrt(e*e+n*n);return u;},tr={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},ti=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],to=function(t){var o=new n(t),a=o.max;for(r(o);o.index<a&&!o.err.length;)!function(t){var n,o,a,s,u=t.max;if(t.segmentStart=t.index,!function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0;}return!1;}(t.path.charCodeAt(t.index)))return void(t.err="SvgPath: bad command "+t.path[t.index]+" (at pos "+t.index+")");if(a=tr[t.path[t.index].toLowerCase()],t.index++,r(t),t.data=[],!a)return void i(t);for(o=!1;;){for(s=a;s>0;s--){if(function(t){var n,r=t.index,i=r,o=t.max,a=!1,s=!1,u=!1,c=!1;if(i>=o)return void(t.err="SvgPath: missed param (at pos "+i+")");if(43!==(n=t.path.charCodeAt(i))&&45!==n||(n=++i<o?t.path.charCodeAt(i):0),!e(n)&&46!==n)return void(t.err="SvgPath: param should start with 0..9 or `.` (at pos "+i+")");if(46!==n){if(a=48===n,n=++i<o?t.path.charCodeAt(i):0,a&&i<o&&n&&e(n))return void(t.err="SvgPath: numbers started with `0` such as `09` are ilegal (at pos "+r+")");for(;i<o&&e(t.path.charCodeAt(i));)i++,s=!0;n=i<o?t.path.charCodeAt(i):0;}if(46===n){for(c=!0,i++;e(t.path.charCodeAt(i));)i++,u=!0;n=i<o?t.path.charCodeAt(i):0;}if(101===n||69===n){if(c&&!s&&!u||(43!==(n=++i<o?t.path.charCodeAt(i):0)&&45!==n||i++,!(i<o&&e(t.path.charCodeAt(i)))))return void(t.err="SvgPath: invalid float exponent (at pos "+i+")");for(;i<o&&e(t.path.charCodeAt(i));)i++;}t.index=i,t.param=parseFloat(t.path.slice(r,i))+0;}(t),t.err.length)return;t.data.push(t.param),r(t),o=!1,t.index<u&&44===t.path.charCodeAt(t.index)&&(t.index++,r(t),o=!0);}if(!o&&(t.index>=t.max||!((n=t.path.charCodeAt(t.index))>=48&&n<=57||43===n||45===n||46===n)))break;}i(t);}(o);return o.err.length?o.result=[]:o.result.length&&(0>"mM".indexOf(o.result[0][0])?(o.err="SvgPath: string should start with `M` or `m`",o.result=[]):o.result[0][0]="M"),{err:o.err,segments:o.result};};o.prototype.matrix=function(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]||(this.cache=null,this.queue.push(t)),this;},o.prototype.translate=function(t,e){return 0===t&&0===e||(this.cache=null,this.queue.push([1,0,0,1,t,e])),this;},o.prototype.scale=function(t,e){return 1===t&&1===e||(this.cache=null,this.queue.push([t,0,0,e,0,0])),this;},o.prototype.rotate=function(t,e,n){var r,i,o;return 0!==t&&(this.translate(e,n),i=Math.cos(r=t*Math.PI/180),o=Math.sin(r),this.queue.push([i,o,-o,i,0,0]),this.cache=null,this.translate(-e,-n)),this;},o.prototype.skewX=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,0,Math.tan(t*Math.PI/180),1,0,0])),this;},o.prototype.skewY=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,Math.tan(t*Math.PI/180),0,1,0,0])),this;},o.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],1===this.queue.length)return this.cache;for(var t,e,n=1;n<this.queue.length;n++)this.cache=(t=this.cache,e=this.queue[n],[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]);return this.cache;},o.prototype.calc=function(t,e,n){var r;return this.queue.length?(this.cache||(this.cache=this.toArray()),[t*(r=this.cache)[0]+e*r[2]+(n?0:r[4]),t*r[1]+e*r[3]+(n?0:r[5])]):[t,e];};var ta={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},ts=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,tu=/[\s,]+/,tc=function(t){var e,n,r=new o;return t.split(ts).forEach(function(t){if(t.length){if(void 0!==ta[t])return void(e=t);switch(n=t.split(tu).map(function(t){return+t||0;}),e){case"matrix":return void(6===n.length&&r.matrix(n));case"scale":return void(1===n.length?r.scale(n[0],n[0]):2===n.length&&r.scale(n[0],n[1]));case"rotate":return void(1===n.length?r.rotate(n[0],0,0):3===n.length&&r.rotate(n[0],n[1],n[2]));case"translate":return void(1===n.length?r.translate(n[0],0):2===n.length&&r.translate(n[0],n[1]));case"skewX":return void(1===n.length&&r.skewX(n[0]));case"skewY":return void(1===n.length&&r.skewY(n[0]));}}}),r;},tl=2*Math.PI,tf=function(t,e,n,r,i,o,s,u,c){var l,f,d,h,g,p,v,m,y,b,x,_,E,w,M,C=Math.sin(c*tl/360),A=Math.cos(c*tl/360),S=A*(t-n)/2+C*(e-r)/2,D=-C*(t-n)/2+A*(e-r)/2;if(0===S&&0===D||0===s||0===u)return[];var I=S*S/((s=Math.abs(s))*s)+D*D/((u=Math.abs(u))*u);I>1&&(s*=Math.sqrt(I),u*=Math.sqrt(I));var T=(l=s,f=u,d=A*(t-n)/2+C*(e-r)/2,h=-C*(t-n)/2+A*(e-r)/2,g=l*l,p=f*f,v=d*d,(y=g*p-g*(m=h*h)-p*v)<0&&(y=0),y/=g*m+p*v,b=(y=Math.sqrt(y)*(i===o?-1:1))*l/f*h,x=-(y*f)/l*d,w=a(1,0,_=(d-b)/l,E=(h-x)/f),M=a(_,E,(-d-b)/l,(-h-x)/f),0===o&&M>0&&(M-=tl),1===o&&M<0&&(M+=tl),[A*b-C*x+(t+n)/2,C*b+A*x+(e+r)/2,w,M]),k=[],F=T[2],N=T[3],O=Math.max(Math.ceil(Math.abs(N)/(tl/4)),1);N/=O;for(var B=0;B<O;B++)k.push(function(t,e){var n=4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[r,i,r-i*n,i+r*n,o+a*n,a-o*n,o,a];}(F,N)),F+=N;return k.map(function(t){for(var e=0;e<t.length;e+=2){var n=t[e+0],r=t[e+1],i=A*(n*=s)-C*(r*=u),o=C*n+A*r;t[e+0]=i+T[0],t[e+1]=o+T[1];}return t;});},td=Math.PI/180;s.prototype.transform=function(t){var e=Math.cos(this.ax*td),n=Math.sin(this.ax*td),r=[this.rx*(t[0]*e+t[2]*n),this.rx*(t[1]*e+t[3]*n),this.ry*(-t[0]*n+t[2]*e),this.ry*(-t[1]*n+t[3]*e)],i=r[0]*r[0]+r[2]*r[2],o=r[1]*r[1]+r[3]*r[3],a=((r[0]-r[3])*(r[0]-r[3])+(r[2]+r[1])*(r[2]+r[1]))*((r[0]+r[3])*(r[0]+r[3])+(r[2]-r[1])*(r[2]-r[1])),s=(i+o)/2;if(a<1e-10*s)return this.rx=this.ry=Math.sqrt(s),this.ax=0,this;var u=r[0]*r[1]+r[2]*r[3],c=s+(a=Math.sqrt(a))/2,l=s-a/2;return this.ax=1e-10>Math.abs(u)&&1e-10>Math.abs(c-o)?90:180*Math.atan(Math.abs(u)>Math.abs(c-o)?(c-i)/u:u/(c-o))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(c),this.ry=Math.sqrt(l)):(this.ax+=90,this.rx=Math.sqrt(l),this.ry=Math.sqrt(c)),this;},s.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx;},u.prototype.__matrix=function(t){var e,n=this;t.queue.length&&this.iterate(function(r,i,o,a){var u,c,l,f;switch(r[0]){case"v":c=0===(u=t.calc(0,r[1],!0))[0]?["v",u[1]]:["l",u[0],u[1]];break;case"V":c=(u=t.calc(o,r[1],!1))[0]===t.calc(o,a,!1)[0]?["V",u[1]]:["L",u[0],u[1]];break;case"h":c=0===(u=t.calc(r[1],0,!0))[1]?["h",u[0]]:["l",u[0],u[1]];break;case"H":c=(u=t.calc(r[1],a,!1))[1]===t.calc(o,a,!1)[1]?["H",u[0]]:["L",u[0],u[1]];break;case"a":case"A":var d=t.toArray(),h=s(r[1],r[2],r[3]).transform(d);if(d[0]*d[3]-d[1]*d[2]<0&&(r[5]=r[5]?"0":"1"),u=t.calc(r[6],r[7],"a"===r[0]),"A"===r[0]&&r[6]===o&&r[7]===a||"a"===r[0]&&0===r[6]&&0===r[7]){c=["a"===r[0]?"l":"L",u[0],u[1]];break;}c=h.isDegenerate()?["a"===r[0]?"l":"L",u[0],u[1]]:[r[0],h.rx,h.ry,h.ax,r[4],r[5],u[0],u[1]];break;case"m":f=i>0,c=["m",(u=t.calc(r[1],r[2],f))[0],u[1]];break;default:for(c=[l=r[0]],f=l.toLowerCase()===l,e=1;e<r.length;e+=2)u=t.calc(r[e],r[e+1],f),c.push(u[0],u[1]);}n.segments[i]=c;},!0);},u.prototype.__evaluateStack=function(){var t,e;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(t=o(),e=this.__stack.length;--e>=0;)t.matrix(this.__stack[e].toArray());this.__matrix(t),this.__stack=[];}},u.prototype.toString=function(){var t,e,n=[];this.__evaluateStack();for(var r=0;r<this.segments.length;r++)e=this.segments[r][0],t=r>0&&"m"!==e&&"M"!==e&&e===this.segments[r-1][0],n=n.concat(t?this.segments[r].slice(1):this.segments[r]);return n.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m");},u.prototype.translate=function(t,e){return this.__stack.push(o().translate(t,e||0)),this;},u.prototype.scale=function(t,e){return this.__stack.push(o().scale(t,e||0===e?e:t)),this;},u.prototype.rotate=function(t,e,n){return this.__stack.push(o().rotate(t,e||0,n||0)),this;},u.prototype.skewX=function(t){return this.__stack.push(o().skewX(t)),this;},u.prototype.skewY=function(t){return this.__stack.push(o().skewY(t)),this;},u.prototype.matrix=function(t){return this.__stack.push(o().matrix(t)),this;},u.prototype.transform=function(t){return t.trim()&&this.__stack.push(tc(t)),this;},u.prototype.round=function(t){var e,n=0,r=0,i=0,o=0;return t=t||0,this.__evaluateStack(),this.segments.forEach(function(a){var s=a[0].toLowerCase()===a[0];switch(a[0]){case"H":case"h":return s&&(a[1]+=i),i=a[1]-a[1].toFixed(t),void(a[1]=+a[1].toFixed(t));case"V":case"v":return s&&(a[1]+=o),o=a[1]-a[1].toFixed(t),void(a[1]=+a[1].toFixed(t));case"Z":case"z":return i=n,void(o=r);case"M":case"m":return s&&(a[1]+=i,a[2]+=o),i=a[1]-a[1].toFixed(t),o=a[2]-a[2].toFixed(t),n=i,r=o,a[1]=+a[1].toFixed(t),void(a[2]=+a[2].toFixed(t));case"A":case"a":return s&&(a[6]+=i,a[7]+=o),i=a[6]-a[6].toFixed(t),o=a[7]-a[7].toFixed(t),a[1]=+a[1].toFixed(t),a[2]=+a[2].toFixed(t),a[3]=+a[3].toFixed(t+2),a[6]=+a[6].toFixed(t),void(a[7]=+a[7].toFixed(t));default:return e=a.length,s&&(a[e-2]+=i,a[e-1]+=o),i=a[e-2]-a[e-2].toFixed(t),o=a[e-1]-a[e-1].toFixed(t),void a.forEach(function(e,n){n&&(a[n]=+a[n].toFixed(t));});}}),this;},u.prototype.iterate=function(t,e){var n,r,i,o=this.segments,a={},s=!1,u=0,c=0,l=0,f=0;if(e||this.__evaluateStack(),o.forEach(function(e,n){var r=t(e,n,u,c);Array.isArray(r)&&(a[n]=r,s=!0);var i=e[0]===e[0].toLowerCase();switch(e[0]){case"m":case"M":return u=e[1]+(i?u:0),c=e[2]+(i?c:0),l=u,void(f=c);case"h":case"H":return void(u=e[1]+(i?u:0));case"v":case"V":return void(c=e[1]+(i?c:0));case"z":case"Z":return u=l,void(c=f);default:u=e[e.length-2]+(i?u:0),c=e[e.length-1]+(i?c:0);}}),!s)return this;for(i=[],n=0;n<o.length;n++)if(void 0!==a[n])for(r=0;r<a[n].length;r++)i.push(a[n][r]);else i.push(o[n]);return this.segments=i,this;},u.prototype.abs=function(){return this.iterate(function(t,e,n,r){var i,o=t[0],a=o.toUpperCase();if(o!==a)switch(t[0]=a,o){case"v":return void(t[1]+=r);case"a":return t[6]+=n,void(t[7]+=r);default:for(i=1;i<t.length;i++)t[i]+=i%2?n:r;}},!0),this;},u.prototype.rel=function(){return this.iterate(function(t,e,n,r){var i,o=t[0],a=o.toLowerCase();if(o!==a&&(0!==e||"M"!==o))switch(t[0]=a,o){case"V":return void(t[1]-=r);case"A":return t[6]-=n,void(t[7]-=r);default:for(i=1;i<t.length;i++)t[i]-=i%2?n:r;}},!0),this;},u.prototype.unarc=function(){return this.iterate(function(t,e,n,r){var i,o,a,s=[],u=t[0];return"A"!==u&&"a"!==u?null:("a"===u?(o=n+t[6],a=r+t[7]):(o=t[6],a=t[7]),0===(i=tf(n,r,o,a,t[4],t[5],t[1],t[2],t[3])).length?[["a"===t[0]?"l":"L",t[6],t[7]]]:(i.forEach(function(t){s.push(["C",t[2],t[3],t[4],t[5],t[6],t[7]]);}),s));}),this;},u.prototype.unshort=function(){var t,e,n,r,i,o=this.segments;return this.iterate(function(a,s,u,c){var l,f=a[0],d=f.toUpperCase();s&&("T"===d?(l="t"===f,"Q"===(n=o[s-1])[0]?(t=n[1]-u,e=n[2]-c):"q"===n[0]?(t=n[1]-n[3],e=n[2]-n[4]):(t=0,e=0),r=-t,i=-e,l||(r+=u,i+=c),o[s]=[l?"q":"Q",r,i,a[1],a[2]]):"S"===d&&(l="s"===f,"C"===(n=o[s-1])[0]?(t=n[3]-u,e=n[4]-c):"c"===n[0]?(t=n[3]-n[5],e=n[4]-n[6]):(t=0,e=0),r=-t,i=-e,l||(r+=u,i+=c),o[s]=[l?"c":"C",r,i,a[1],a[2],a[3],a[4]]));}),this;};var th=u,tg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},tp=/([astvzqmhlc])([^astvzqmhlc]*)/gi,tv=function(t){var e=[];return t.replace(tp,function(t,n,r){var i,o=n.toLowerCase();for(r=(i=r.match(tm))?i.map(Number):[],"m"===o&&r.length>2&&(e.push([n].concat(r.splice(0,2))),o="l",n="m"===n?"l":"L");r.length>=0;){if(r.length===tg[o])return r.unshift(n),e.push(r);if(r.length<tg[o])throw Error("malformed path data");e.push([n].concat(r.splice(0,tg[o])));}}),e;},tm=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,ty=function(t,e,n,r,i,o,a,s){return new c(t,e,n,r,i,o,a,s);};c.prototype={constructor:c,init:function(){this.length=this.getArcLength([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]);},getTotalLength:function(){return this.length;},getPointAtLength:function(t){var e=d(t,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]);return this.getPoint([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],e);},getTangentAtLength:function(t){var e=d(t,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]),n=this.getDerivative([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],e),r=Math.sqrt(n.x*n.x+n.y*n.y);return r>0?{x:n.x/r,y:n.y/r}:{x:0,y:0};},getPropertiesAtLength:function(t){var e,n=d(t,this.length,this.getArcLength,[this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y]),r=this.getDerivative([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],n),i=Math.sqrt(r.x*r.x+r.y*r.y);e=i>0?{x:r.x/i,y:r.y/i}:{x:0,y:0};var o=this.getPoint([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],n);return{x:o.x,y:o.y,tangentX:e.x,tangentY:e.y};}};var tb=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],tx=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],t_=[[1],[1,1],[1,2,1],[1,3,3,1]],tE=2*Math.PI,tw=function(t,e,n,r,i,o,a,s,u){var c,l,f,d,h,g,p,v,m,b,x,_,E,w,M,C=Math.sin(i*tE/360),A=Math.cos(i*tE/360),S=A*(t-s)/2+C*(e-u)/2,D=-C*(t-s)/2+A*(e-u)/2;if(0===S&&0===D||0===n||0===r)return[];var I=S*S/((n=Math.abs(n))*n)+D*D/((r=Math.abs(r))*r);I>1&&(n*=Math.sqrt(I),r*=Math.sqrt(I));var T=(c=n,l=r,f=A*(t-s)/2+C*(e-u)/2,d=-C*(t-s)/2+A*(e-u)/2,h=c*c,g=l*l,p=f*f,(m=h*g-h*(v=d*d)-g*p)<0&&(m=0),m/=h*v+g*p,b=(m=Math.sqrt(m)*(o===a?-1:1))*c/l*d,x=-(m*l)/c*f,w=y(1,0,_=(f-b)/c,E=(d-x)/l),M=y(_,E,(-f-b)/c,(-d-x)/l),0===a&&M>0&&(M-=tE),1===a&&M<0&&(M+=tE),[A*b-C*x+(t+s)/2,C*b+A*x+(e+u)/2,w,M]),k=[],F=T[2],N=T[3],O=Math.max(Math.ceil(Math.abs(N)/(tE/4)),1);N/=O;for(var B=0;B<O;B++)k.push(function(t,e){var n=4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[r,i,r-i*n,i+r*n,o+a*n,a-o*n,o,a];}(F,N)),F+=N;return k.map(function(t){for(var e=0;e<t.length;e+=2){var i=t[e+0],o=t[e+1],a=A*(i*=n)-C*(o*=r),s=C*i+A*o;t[e+0]=a+T[0],t[e+1]=s+T[1];}return t;});},tM=function(t,e,n,r,i,o,a,s,u){return new b(t,e,n,r,i,o,a,s,u);};b.prototype={constructor:b,init:function(){},getTotalLength:function(){return this.length;},getPointAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var e=this.partialLengths.length-1;this.partialLengths[e]>=t&&this.partialLengths[e]>0;)e--;e<this.partialLengths.length-1&&e++;for(var n=0,r=0;r<e;r++)n+=this.partialLengths[r];return this.curves[e].getPointAtLength(t-n);},getTangentAtLength:function(t){t<0?t=0:t>this.length&&(t=this.length);for(var e=this.partialLengths.length-1;this.partialLengths[e]>=t&&this.partialLengths[e]>0;)e--;e<this.partialLengths.length-1&&e++;for(var n=0,r=0;r<e;r++)n+=this.partialLengths[r];return this.curves[e].getTangentAtLength(t-n);},getPropertiesAtLength:function(t){var e=this.getTangentAtLength(t),n=this.getPointAtLength(t);return{x:n.x,y:n.y,tangentX:e.x,tangentY:e.y};}};var tC=function(t,e,n,r){return new x(t,e,n,r);};x.prototype.getTotalLength=function(){return Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2));},x.prototype.getPointAtLength=function(t){var e=t/Math.sqrt(Math.pow(this.x0-this.x1,2)+Math.pow(this.y0-this.y1,2)),n=(this.x1-this.x0)*e,r=(this.y1-this.y0)*e;return{x:this.x0+n,y:this.y0+r};},x.prototype.getTangentAtLength=function(){var t=Math.sqrt((this.x1-this.x0)*(this.x1-this.x0)+(this.y1-this.y0)*(this.y1-this.y0));return{x:(this.x1-this.x0)/t,y:(this.y1-this.y0)/t};},x.prototype.getPropertiesAtLength=function(t){var e=this.getPointAtLength(t),n=this.getTangentAtLength();return{x:e.x,y:e.y,tangentX:n.x,tangentY:n.y};};var tA=function(t){function e(t){if(!t)return null;for(var o,a=tv(t),s=[0,0],u=[0,0],c=0;c<a.length;c++)"M"===a[c][0]?(s=[a[c][1],a[c][2]],i.push(null)):"m"===a[c][0]?(s=[a[c][1]+s[0],a[c][2]+s[1]],i.push(null)):"L"===a[c][0]?(n+=Math.sqrt(Math.pow(s[0]-a[c][1],2)+Math.pow(s[1]-a[c][2],2)),i.push(new tC(s[0],a[c][1],s[1],a[c][2])),s=[a[c][1],a[c][2]]):"l"===a[c][0]?(n+=Math.sqrt(Math.pow(a[c][1],2)+Math.pow(a[c][2],2)),i.push(new tC(s[0],a[c][1]+s[0],s[1],a[c][2]+s[1])),s=[a[c][1]+s[0],a[c][2]+s[1]]):"H"===a[c][0]?(n+=Math.abs(s[0]-a[c][1]),i.push(new tC(s[0],a[c][1],s[1],s[1])),s[0]=a[c][1]):"h"===a[c][0]?(n+=Math.abs(a[c][1]),i.push(new tC(s[0],s[0]+a[c][1],s[1],s[1])),s[0]=a[c][1]+s[0]):"V"===a[c][0]?(n+=Math.abs(s[1]-a[c][1]),i.push(new tC(s[0],s[0],s[1],a[c][1])),s[1]=a[c][1]):"v"===a[c][0]?(n+=Math.abs(a[c][1]),i.push(new tC(s[0],s[0],s[1],s[1]+a[c][1])),s[1]=a[c][1]+s[1]):"z"===a[c][0]||"Z"===a[c][0]?(n+=Math.sqrt(Math.pow(a[0][1]-s[0],2)+Math.pow(a[0][2]-s[1],2)),i.push(new tC(s[0],a[0][1],s[1],a[0][2])),s=[a[0][1],a[0][2]]):"C"===a[c][0]?(o=new ty(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4],a[c][5],a[c][6]),n+=o.getTotalLength(),s=[a[c][5],a[c][6]],i.push(o)):"c"===a[c][0]?(o=new ty(s[0],s[1],s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4],s[0]+a[c][5],s[1]+a[c][6]),n+=o.getTotalLength(),s=[a[c][5]+s[0],a[c][6]+s[1]],i.push(o)):"S"===a[c][0]?(o=c>0&&["C","c","S","s"].indexOf(a[c-1][0])>-1?new ty(s[0],s[1],2*s[0]-a[c-1][a[c-1].length-4],2*s[1]-a[c-1][a[c-1].length-3],a[c][1],a[c][2],a[c][3],a[c][4]):new ty(s[0],s[1],s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4]),n+=o.getTotalLength(),s=[a[c][3],a[c][4]],i.push(o)):"s"===a[c][0]?(o=c>0&&["C","c","S","s"].indexOf(a[c-1][0])>-1?new ty(s[0],s[1],s[0]+o.d.x-o.c.x,s[1]+o.d.y-o.c.y,s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4]):new ty(s[0],s[1],s[0],s[1],s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4]),n+=o.getTotalLength(),s=[a[c][3]+s[0],a[c][4]+s[1]],i.push(o)):"Q"===a[c][0]?(o=new ty(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4]),n+=o.getTotalLength(),i.push(o),s=[a[c][3],a[c][4]],u=[a[c][1],a[c][2]]):"q"===a[c][0]?(o=new ty(s[0],s[1],s[0]+a[c][1],s[1]+a[c][2],s[0]+a[c][3],s[1]+a[c][4]),n+=o.getTotalLength(),u=[s[0]+a[c][1],s[1]+a[c][2]],s=[a[c][3]+s[0],a[c][4]+s[1]],i.push(o)):"T"===a[c][0]?(o=c>0&&["Q","q","T","t"].indexOf(a[c-1][0])>-1?new ty(s[0],s[1],2*s[0]-u[0],2*s[1]-u[1],a[c][1],a[c][2]):new tC(s[0],a[c][1],s[1],a[c][2]),i.push(o),n+=o.getTotalLength(),u=[2*s[0]-u[0],2*s[1]-u[1]],s=[a[c][1],a[c][2]]):"t"===a[c][0]?(o=c>0&&["Q","q","T","t"].indexOf(a[c-1][0])>-1?new ty(s[0],s[1],2*s[0]-u[0],2*s[1]-u[1],s[0]+a[c][1],s[1]+a[c][2]):new tC(s[0],s[0]+a[c][1],s[1],s[1]+a[c][2]),n+=o.getTotalLength(),u=[2*s[0]-u[0],2*s[1]-u[1]],s=[a[c][1]+s[0],a[c][2]+s[0]],i.push(o)):"A"===a[c][0]?(o=new tM(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4],a[c][5],a[c][6],a[c][7]),n+=o.getTotalLength(),s=[a[c][6],a[c][7]],i.push(o)):"a"===a[c][0]&&(o=new tM(s[0],s[1],a[c][1],a[c][2],a[c][3],a[c][4],a[c][5],s[0]+a[c][6],s[1]+a[c][7]),n+=o.getTotalLength(),s=[s[0]+a[c][6],s[1]+a[c][7]],i.push(o)),r.push(n);return e;}var n=0,r=[],i=[];e.getTotalLength=function(){return n;},e.getPointAtLength=function(t){var e=o(t);return i[e.i].getPointAtLength(e.fraction);},e.getTangentAtLength=function(t){var e=o(t);return i[e.i].getTangentAtLength(e.fraction);},e.getPropertiesAtLength=function(t){var e=o(t);return i[e.i].getPropertiesAtLength(e.fraction);};var o=function(t){t<0?t=0:t>n&&(t=n);for(var e=r.length-1;r[e]>=t&&r[e]>0;)e--;return{fraction:t-r[++e-1],i:e};};return e(t);},tS='All shapes must be supplied as arrays of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).\nExample valid ways of supplying a shape would be:\n[[0, 0], [10, 0], [10, 10]]\n"M0,0 L10,0 L10,10Z"\n',tD=function(t,e){for(var n,r,i,o=t.length,a=1/0,s=0;s<o;s++)!function(i){r=0,e.forEach(function(e,n){var a=_(t[(i+n)%o],e);r+=a*a;}),r<a&&(a=r,n=i);}(s);n&&(i=t.splice(0,n),t.splice.apply(t,[t.length,0].concat(i)));};F.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,a=Math.abs(W(t,0,o,n));if(i)for(var s=0,u=e.length;s<u;s++){var c=e[s]*n,l=s<u-1?e[s+1]*n:t.length;a-=Math.abs(W(t,c,l,n));}var f=0;for(s=0;s<r.length;s+=3){var d=r[s]*n,h=r[s+1]*n,g=r[s+2]*n;f+=Math.abs((t[d]-t[g])*(t[h+1]-t[d+1])-(t[d]-t[h])*(t[g+1]-t[d+1]));}return 0===a&&0===f?0:Math.abs((f-a)/a);},F.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r));}return n;};var tI=function(t){return t;},tT=function(t){if(null==t)return tI;var e,n,r=t.scale[0],i=t.scale[1],o=t.translate[0],a=t.translate[1];return function(t,s){s||(e=n=0);var u=2,c=t.length,l=Array(c);for(l[0]=(e+=t[0])*r+o,l[1]=(n+=t[1])*i+a;u<c;)l[u]=t[u],++u;return l;};},tk=function(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n;},tF=function(t,e){function n(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach(function(t){r[t<0?~t:t]=1;}),a.push(i);}}var r={},i={},o={},a=[],s=-1;return e.forEach(function(n,r){var i,o=t.arcs[n<0?~n:n];!(o.length<3)||o[1][0]||o[1][1]||(i=e[++s],e[s]=n,e[r]=i);}),e.forEach(function(e){var n,r,a,s,u,c=(a=(r=t.arcs[e<0?~e:e])[0],t.transform?(n=[0,0],r.forEach(function(t){n[0]+=t[0],n[1]+=t[1];})):n=r[r.length-1],e<0?[n,a]:[a,n]),l=c[0],f=c[1];if(s=o[l]){if(delete o[s.end],s.push(e),s.end=f,u=i[f]){delete i[u.start];var d=u===s?s:s.concat(u);i[d.start=s.start]=o[d.end=u.end]=d;}else i[s.start]=o[s.end]=s;}else if(s=i[f]){if(delete i[s.start],s.unshift(e),s.start=l,u=o[l]){delete o[u.end];var h=u===s?s:u.concat(s);i[h.start=u.start]=o[h.end=s.end]=h;}else i[s.start]=o[s.end]=s;}else i[(s=[e]).start=l]=o[s.end=f]=s;}),n(o,i),n(i,o),e.forEach(function(t){r[t<0?~t:t]||a.push([t]);}),a;},tN=function(t,e){for(var n=0,r=t.length;n<r;){var i=n+r>>>1;t[i]<e?n=i+1:r=i;}return n;},tO=function(t){function e(t,e){t.forEach(function(t){t<0&&(t=~t);var n=r[t];n?n.push(e):r[t]=[e];});}function n(t,n){t.forEach(function(t){e(t,n);});}var r={},i=t.map(function(){return[];}),o={LineString:e,MultiLineString:n,Polygon:n,MultiPolygon:function(t,e){t.forEach(function(t){n(t,e);});}};for(var a in t.forEach(function t(e,n){"GeometryCollection"===e.type?e.geometries.forEach(function(e){t(e,n);}):e.type in o&&o[e.type](e.arcs,n);}),r)for(var s=r[a],u=s.length,c=0;c<u;++c)for(var l=c+1;l<u;++l){var f,d=s[c],h=s[l];(f=i[d])[a=tN(f,h)]!==h&&f.splice(a,0,h),(f=i[h])[a=tN(f,d)]!==d&&f.splice(a,0,d);}return i;},tB=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN;},tP=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return tB(e(t),n);}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;0>t(e[o],n)?r=o+1:i=o;}return r;},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1;}return r;}};},tL=(tP(tB).right,function(t,e){var n,r,i;return function(t,e){for(var n,r=t.objects.triangles.geometries,i=tP(function(t){return t.area;}).left;r.length>e;)!function(){var e=r[0],n=tO(r)[0][0],o=r[n],a=function(t,e){function n(t){t.forEach(function(e){e.forEach(function(e){(i[e=e<0?~e:e]||(i[e]=[])).push(t);});}),o.push(t);}function r(e){return function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[0]*i[1]-e[1]*i[0];return Math.abs(o);}(q(t,{type:"Polygon",arcs:[e]}).coordinates[0]);}var i={},o=[],a=[];return e.forEach(function t(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"Polygon":n(e.arcs);break;case"MultiPolygon":e.arcs.forEach(n);}}),o.forEach(function(t){if(!t._){var e=[],n=[t];for(t._=1,a.push(e);t=n.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){i[t<0?~t:t].forEach(function(t){t._||(t._=1,n.push(t));});});});}}),o.forEach(function(t){delete t._;}),{type:"MultiPolygon",arcs:a.map(function(e){var n,o=[];if(e.forEach(function(t){t.forEach(function(t){t.forEach(function(t){i[t<0?~t:t].length<2&&o.push(t);});});}),(n=(o=tF(t,o)).length)>1)for(var a,s,u=1,c=r(o[0]);u<n;++u)(a=r(o[u]))>c&&(s=o[0],o[0]=o[u],o[u]=s,c=a);return o;})};}(t,[e,o]);a.area=e.area+o.area,a.type="Polygon",a.arcs=a.arcs[0],r.splice(n,1),r.shift(),r.splice(i(r,a.area),0,a);}();if(e>r.length)throw RangeError("Can't collapse topology into "+e+" pieces.");return("GeometryCollection"===(n=t.objects.triangles).type?{type:"FeatureCollection",features:n.geometries.map(function(e){return V(t,e);})}:V(t,n)).features.map(function(t){return t.geometry.coordinates[0].pop(),t.geometry.coordinates[0];});}((n=function(t){for(var e=F(t.reduce(function(t,e){return t.concat([e[0]],[e[1]]);},[])),n=[],r=0,i=e.length;r<i;r+=3)n.push([[e[r],e[r+1]],[e[r+1],e[r+2]],[e[r+2],e[r]]]);return n;}(t),r={},i={type:"Topology",objects:{triangles:{type:"GeometryCollection",geometries:[]}},arcs:[]},n.forEach(function(e){var n=[];e.forEach(function(e,o){var a=e[0]<e[1]?e.join(","):e[1]+","+e[0],s=e.map(function(e){return t[e];});a in r?n.push(~r[a]):(n.push(r[a]=i.arcs.length),i.arcs.push(s));}),i.objects.triangles.geometries.push({type:"Polygon",area:Math.abs(tt(e.map(function(e){return t[e[0]];}))),arcs:[n]});}),i.objects.triangles.geometries.sort(function(t,e){return t.area-e.area;}),i),e);}),tj=function(t,e){if(t.length>8)return t.map(function(t,e){return e;});var n,r,i=t.map(function(t){return e.map(function(e){var n;return(n=_(C(t),C(e)))*n;});});return n=1/0,function t(e,o,a){void 0===o&&(o=[]),void 0===a&&(a=0);for(var s=0;s<e.length;s++){var u=e.splice(s,1),c=i[u[0]][o.length];a+c<n&&(e.length?t(e.slice(),o.concat(u),a+c):(n=a+c,r=o.concat(u))),e.length&&e.splice(s,0,u[0]);}}(r=t.map(function(t,e){return e;})),r;};t.interpolate=function(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=k(T(t,r),T(e,r),i);return i&&("string"==typeof t||"string"==typeof e)?function(n){return n<1e-4&&"string"==typeof t?t:1-n<1e-4&&"string"==typeof e?e:o(n);}:o;},t.separate=Z,t.combine=function(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=n.single;void 0===o&&(o=!1);var a=Z(e,t,{maxSegmentLength:r,string:i,single:o});return o?function(t){return a(1-t);}:a.map(function(t){return function(e){return t(1-e);};});},t.interpolateAll=function(t,e,n){void 0===n&&(n={});var r=n.maxSegmentLength;void 0===r&&(r=10);var i=n.string;void 0===i&&(i=!0);var o=n.single;if(void 0===o&&(o=!1),!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length||!t.length)throw TypeError("flubber.all() expects two arrays of equal length as arguments. Each element in both arrays should be an array of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).");var a,s,u=function(t){return T(t,r);},c=t.map(u),l=e.map(u);return o?(t.every(function(t){return"string"==typeof t;})&&(a=t.slice(0)),e.every(function(t){return"string"==typeof t;})&&(s=e.slice(0))):(a=t.slice(0),s=e.slice(0)),J(c,l,{string:i,single:o,t0:a,t1:s,match:!1});},t.splitPathString=function(t){return S(A(t));},t.toPathString=D,t.fromCircle=K,t.toCircle=function(t,e,n,r,i){var o=K(e,n,r,t,i);return function(t){return o(1-t);};},t.fromRect=Q,t.toRect=function(t,e,n,r,i,o){var a=Q(e,n,r,i,t,o);return function(t){return a(1-t);};},Object.defineProperty(t,"__esModule",{value:!0});},"object"==typeof e&&void 0!==t?r(e):"function"==typeof define&&define.amd?define(["exports"],r):r(this.flubber=this.flubber||{});},ba078028:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("071f0c13")),o=r._(n("c9ae1e54"));function a(t){return(0,i.default)(t)?0:(0,o.default)(t)?t.length:Object.keys(t).length;}},ba6b6e37:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t,e){return t-e;},i=function(){function t(t){void 0===t&&(t=r),this.compareFn=t,this.list=[];}return t.prototype.getLeft=function(t){return 2*t+1;},t.prototype.getRight=function(t){return 2*t+2;},t.prototype.getParent=function(t){return 0===t?null:Math.floor((t-1)/2);},t.prototype.isEmpty=function(){return this.list.length<=0;},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0];},t.prototype.delMin=function(){var t=this.top(),e=this.list.pop();return this.list.length>0&&(this.list[0]=e,this.moveDown(0)),t;},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0;}return!1;},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t);}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r<o&&this.compareFn(this.list[n],this.list[r])>0?n=r:null!==i&&i<o&&this.compareFn(this.list[n],this.list[i])>0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n));},t;}();e.default=i;},ba6ea560:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,o);},e),a&&t.apply(i,o);};};},bb0a4569:function(t,e,n){"use strict";function r(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t);}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},bb29d773:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("99cf726b")),o=r._(n("155fe01c")),a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var a=t[r];(0,o.default)(a)&&(a=a.prototype),(0,i.default)(n.prototype,a);}};},bb819369:function(t,e,n){"use strict";function r(t,e){if(t)return Object.keys(e).forEach(function(n){t.style[n]=e[n];}),t;}n.d(e,"__esModule",{value:!0}),n.d(e,"modifyCSS",{enumerable:!0,get:function(){return r;}});},bb91afb1:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"vec2",{enumerable:!0,get:function(){return r.vec2;}});var r=n("b018614c");},bc1b99d6:function(t,e,n){},bc4ca52b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{forceCenter:function(){return i.default;},forceCollide:function(){return o.default;},forceLink:function(){return a.default;},forceManyBody:function(){return s.default;},forceRadial:function(){return u.default;},forceSimulation:function(){return c.default;},forceX:function(){return l.default;},forceY:function(){return f.default;}});var r=n("777fffbe"),i=r._(n("554e7a39")),o=r._(n("dc8e7880")),a=r._(n("655215bc")),s=r._(n("757ff68a")),u=r._(n("59b733d2")),c=r._(n("c32702c0")),l=r._(n("b806ec3a")),f=r._(n("64128a30"));},bc58b502:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("f5b38a88")),i=function(t){return(0,r.default)(t,"RegExp");};},bd41dba3:function(t,e,n){"use strict";function r(t){return Array.isArray(t);}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},bd5ea0e3:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("852bbaa9")._(n("04db7c9f")),o=r._(n("f7ecdc20"));function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])];}function s(t){t=(0,o.default)(t);for(var e=[],n=null,r=null,s=null,u=0,c=t.length,l=0;l<c;l++){var f=t[l];r=t[l+1];var d=f[0],h={command:d,prePoint:n,params:f,startTangent:null,endTangent:null};switch(d){case"M":s=[f[1],f[2]],u=l;break;case"A":var g=(0,i.default)(n,f);h.arcParams=g;}if("Z"===d)n=s,r=t[u+1];else{var p=f.length;n=[f[p-2],f[p-1]];}r&&"Z"===r[0]&&(r=t[u],e[u]&&(e[u].prePoint=n)),h.currentPoint=n,e[u]&&(0,i.isSamePoint)(n,e[u].currentPoint)&&(e[u].prePoint=h.prePoint);var v=r?[r[r.length-2],r[r.length-1]]:null;h.nextPoint=v;var m=h.prePoint;if(["L","H","V"].includes(d))h.startTangent=[m[0]-n[0],m[1]-n[1]],h.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===d){var y=[f[1],f[2]];h.startTangent=[m[0]-y[0],m[1]-y[1]],h.endTangent=[n[0]-y[0],n[1]-y[1]];}else if("T"===d){var b=e[l-1],y=a(b.currentPoint,m);"Q"===b.command?(h.command="Q",h.startTangent=[m[0]-y[0],m[1]-y[1]],h.endTangent=[n[0]-y[0],n[1]-y[1]]):(h.command="TL",h.startTangent=[m[0]-n[0],m[1]-n[1]],h.endTangent=[n[0]-m[0],n[1]-m[1]]);}else if("C"===d){var x=[f[1],f[2]],_=[f[3],f[4]];h.startTangent=[m[0]-x[0],m[1]-x[1]],h.endTangent=[n[0]-_[0],n[1]-_[1]],0===h.startTangent[0]&&0===h.startTangent[1]&&(h.startTangent=[x[0]-_[0],x[1]-_[1]]),0===h.endTangent[0]&&0===h.endTangent[1]&&(h.endTangent=[_[0]-x[0],_[1]-x[1]]);}else if("S"===d){var b=e[l-1],x=a(b.currentPoint,m),_=[f[1],f[2]];"C"===b.command?(h.command="C",h.startTangent=[m[0]-x[0],m[1]-x[1]]):(h.command="SQ",h.startTangent=[m[0]-_[0],m[1]-_[1]]),h.endTangent=[n[0]-_[0],n[1]-_[1]];}else if("A"===d){var E=.001,w=h.arcParams||{},M=w.cx,C=void 0===M?0:M,A=w.cy,S=void 0===A?0:A,D=w.rx,I=void 0===D?0:D,T=w.ry,k=void 0===T?0:T,F=w.sweepFlag,N=void 0===F?0:F,O=w.startAngle,B=void 0===O?0:O,P=w.endAngle,L=void 0===P?0:P;0===N&&(E*=-1);var j=I*Math.cos(B-E)+C,R=k*Math.sin(B-E)+S;h.startTangent=[j-s[0],R-s[1]];var z=I*Math.cos(B+L+E)+C,G=k*Math.sin(B+L-E)+S;h.endTangent=[m[0]-z,m[1]-G];}e.push(h);}return e;}},bd7b571c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1;};},bd85595f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("5b220c3d"),i=n("5a6d3e87");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable;})),n.push.apply(n,r);}return n;}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){!function(t,e,n){var r;(e="symbol"==typeof(r=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}(e,"string"))?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n;}(t,e,n[e]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));});}return t;}function s(){return(s=Object.assign?Object.assign.bind():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;}).apply(this,arguments);}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i;}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n]);}return i;}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r;}var l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function f(t){var e=r.useRef(t);return l(function(){e.current=t;}),r.useCallback(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.current.apply(void 0,n);},[]);}var d=function(t,e){var n=e.decimal,r=e.decimals,o=e.duration,a=e.easingFn,s=e.end,u=e.formattingFn,c=e.numerals,l=e.prefix,f=e.separator,d=e.start,h=e.suffix,g=e.useEasing,p=e.useGrouping,v=e.useIndianSeparators,m=e.enableScrollSpy,y=e.scrollSpyDelay,b=e.scrollSpyOnce,x=e.plugin;return new i.CountUp(t,s,{startVal:d,duration:o,decimal:n,decimalPlaces:r,easingFn:a,formattingFn:u,numerals:c,separator:f,prefix:l,suffix:h,plugin:x,useEasing:g,useIndianSeparators:v,useGrouping:p,enableScrollSpy:m,scrollSpyDelay:y,scrollSpyOnce:b});},h=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],g={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},p=function(t){var e=Object.fromEntries(Object.entries(t).filter(function(t){return void 0!==(function(t){if(Array.isArray(t))return t;}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{for(o=(n=n.call(t)).next;!(u=(r=o.call(n)).done)&&(s.push(r.value),2!==s.length);u=!0);}catch(t){c=!0,i=t;}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return;}finally{if(c)throw i;}}return s;}}(t,2)||function(t,e){if(t){if("string"==typeof t)return c(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,2);}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}())[1];})),n=r.useMemo(function(){return a(a({},g),e);},[t]),i=n.ref,o=n.startOnMount,s=n.enableReinitialize,l=n.delay,p=n.onEnd,v=n.onStart,m=n.onPauseResume,y=n.onReset,b=n.onUpdate,x=u(n,h),_=r.useRef(),E=r.useRef(),w=r.useRef(!1),M=f(function(){return d("string"==typeof i?i:i.current,x);}),C=f(function(t){var e=_.current;if(e&&!t)return e;var n=M();return _.current=n,n;}),A=f(function(){var t=function(){return C(!0).start(function(){null==p||p({pauseResume:S,reset:D,start:T,update:I});});};l&&l>0?E.current=setTimeout(t,1e3*l):t(),null==v||v({pauseResume:S,reset:D,update:I});}),S=f(function(){C().pauseResume(),null==m||m({reset:D,start:T,update:I});}),D=f(function(){C().el&&(E.current&&clearTimeout(E.current),C().reset(),null==y||y({pauseResume:S,start:T,update:I}));}),I=f(function(t){C().update(t),null==b||b({pauseResume:S,reset:D,start:T});}),T=f(function(){D(),A();}),k=f(function(t){o&&(t&&D(),A());});return r.useEffect(function(){w.current?s&&k(!0):(w.current=!0,k());},[s,w,k,l,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.formattingFn]),r.useEffect(function(){return function(){D();};},[D]),{start:T,pauseResume:S,reset:D,update:I,getCountUp:C};},v=["className","redraw","containerProps","children","style"];e.default=function(t){var e=t.className,n=t.redraw,i=t.containerProps,o=t.children,c=t.style,l=u(t,v),d=r.useRef(null),h=r.useRef(!1),g=p(a(a({},l),{},{ref:d,startOnMount:"function"!=typeof o||0===t.delay,enableReinitialize:!1})),m=g.start,y=g.reset,b=g.update,x=g.pauseResume,_=g.getCountUp,E=f(function(){m();}),w=f(function(e){t.preserveValue||y(),b(e);}),M=f(function(){if("function"==typeof t.children&&!(d.current instanceof Element)){console.error('Couldn\'t find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.');return;}_();});r.useEffect(function(){M();},[M]),r.useEffect(function(){h.current&&w(t.end);},[t.end,w]);var C=n&&t;return(r.useEffect(function(){n&&h.current&&E();},[E,n,C]),r.useEffect(function(){!n&&h.current&&E();},[E,n,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.className,t.formattingFn]),r.useEffect(function(){h.current=!0;},[]),"function"==typeof o)?o({countUpRef:d,start:m,reset:y,update:b,pauseResume:x,getCountUp:_}):r.createElement("span",s({className:e,ref:d,style:c},i),void 0!==t.start?_().formattingFn(t.start):"");},e.useCountUp=p;},bdb5972e:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("dfdb2ac4"),i=function(t,e,n,i,o,a){var s=o[e][a-1],u=(0,r.addDummyNode)(t,"border",{rank:a,borderType:e,width:0,height:0},n);o[e][a]=u,t.setParent(u,i),s&&t.setEdge(s,u,{weight:1});};e.default=function(t){var e,n=function(e){var r=t.children(e),o=t.node(e);if((null==r?void 0:r.length)&&r.forEach(function(t){return n(t);}),o.hasOwnProperty("minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,s=o.maxRank+1;a<s;a+=1)i(t,"borderLeft","_bl",e,o,a),i(t,"borderRight","_br",e,o,a);}};null===(e=t.children())||void 0===e||e.forEach(function(t){return n(t);});};},be146ee0:function(t,e,n){"use strict";function r(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t);}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},be1e82ef:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{AbstractCanvas:function(){return s.default;},AbstractGroup:function(){return u.default;},AbstractShape:function(){return c.default;},Event:function(){return a.default;},PathUtil:function(){return o;},assembleFont:function(){return f.assembleFont;},getBBoxMethod:function(){return l.getBBoxMethod;},getOffScreenContext:function(){return g.getOffScreenContext;},getTextHeight:function(){return f.getTextHeight;},invert:function(){return h.invert;},isAllowCapture:function(){return d.isAllowCapture;},multiplyVec2:function(){return h.multiplyVec2;}});var r=n("d1751d7c"),i=n("777fffbe"),o=n("852bbaa9")._(n("a6d12089"));r._(n("72cb7894"),e),r._(n("d7c77ac7"),e);var a=i._(n("98a7e844"));n("0f272cdc");var s=i._(n("331dbc55")),u=i._(n("633b2151")),c=i._(n("74004889")),l=n("e525a20b"),f=n("ff62099c"),d=n("61db1663"),h=n("206aa8fa"),g=n("f5119026");},be414f97:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("9f8bfa32"));function i(t){var e,n,i,o,a,s,u=[],c=this._root;for(c&&u.push(new r.default(c,this._x0,this._y0,this._x1,this._y1));e=u.pop();)if(!t(c=e.node,i=e.x0,o=e.y0,a=e.x1,s=e.y1)&&c.length){var l=(i+a)/2,f=(o+s)/2;(n=c[3])&&u.push(new r.default(n,l,f,a,s)),(n=c[2])&&u.push(new r.default(n,i,f,l,s)),(n=c[1])&&u.push(new r.default(n,l,o,a,f)),(n=c[0])&&u.push(new r.default(n,i,o,l,f));}return this;}},be7f3872:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("300ecc66"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e;}return(0,i.__extends)(e,t),e.prototype.translate=function(t){t=(0,a.toTimeStamp)(t);var e=this.values.indexOf(t);return -1===e&&(e=(0,o.isNumber)(t)&&t<this.values.length?t:NaN),e;},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return i?i(r,e):(0,a.timeFormat)(r,this.mask);}return t;},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7;},e.prototype.setDomain=function(){var e=this.values;(0,o.each)(e,function(t,n){e[n]=(0,a.toTimeStamp)(t);}),e.sort(function(t,e){return t-e;}),t.prototype.setDomain.call(this);},e;}(r._(n("85853212")).default);},bedb26df:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=function(t,e){return e.map(function(e){var n=t.inEdges(e);if(!(null==n?void 0:n.length))return{v:e};var r={sum:0,weight:0};return null==n||n.forEach(function(e){var n=t.edge(e),i=t.node(e.v);r.sum+=n.weight*i.order,r.weight+=n.weight;}),{v:e,barycenter:r.sum/r.weight,weight:r.weight};});};},bf60a691:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r,i=n("777fffbe"),o=n("c966c938"),a=i._(n("b208d868")),s=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),u="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",c=function(t){function e(e){return t.call(this,e)||this;}return s(e,t),e.prototype.getDefaultCfgs=function(){return{img:u,follow:!0};},e.prototype.init=function(){var t=this.get("graph"),e=t.get("container"),n=t.get("canvas").get("el"),r=this.get("img")||u;r.includes("url(")||(r='url("'.concat(r,'")'));var i=(0,o.createDom)("<div class='g6-grid-container' style=\"position:absolute;overflow:hidden;z-index: -1;\"></div>"),a=(0,o.createDom)("<div\n class='g6-grid'\n style='position:absolute;\n background-image: ".concat(r,";\n user-select: none\n '></div>"));this.set("container",i),this.set("gridContainer",a),this.positionInit(),i.appendChild(a),e.insertBefore(i,n);},e.prototype.positionInit=function(){var t=this.get("graph"),e=t.get("minZoom"),n=t.get("width"),r=t.get("height");(0,o.modifyCSS)(this.get("container"),{width:"".concat(n,"px"),height:"".concat(r,"px")});var i=80*n/e,a=80*r/e;(0,o.modifyCSS)(this.get("gridContainer"),{width:"".concat(i,"px"),height:"".concat(a,"px"),left:"-".concat(i/2,"px"),top:"-".concat(a/2,"px")});},e.prototype.getEvents=function(){return{viewportchange:"updateGrid"};},e.prototype.updateGrid=function(t){var e=this.get("gridContainer"),n=t.matrix;n||(n=[1,0,0,0,1,0,0,0,1]);var r=this.get("follow"),i="matrix(".concat(n[0],", ").concat(n[1],", ").concat(n[3],", ").concat(n[4],", ").concat(r?n[6]:"0",", ").concat(r?n[7]:"0",")");(0,o.modifyCSS)(e,{transform:i});},e.prototype.getContainer=function(){return this.get("container");},e.prototype.destroy=function(){var t=this.get("graph").get("container"),e=this.get("container");t.removeChild(e);},e;}(a.default);},bf6da182:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n);};return t["_wrap_"+e]=n,n;};},bfbaa21e:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("22b52967"),o=n("71975e07"),a=n("47c6e0b5"),s=r._(n("4f024b38")),u=function(t,e,n,r,u){void 0===t&&(t=[]),void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===u&&(u=[]);var c=(0,i.clone)(t.filter(function(t){return t.id!==e.id;})),l=t.findIndex(function(t){return t.id===e.id;}),f=(0,o.getAllProperties)(t,n),d=(0,a.oneHot)(f,r,u),h=d[l],g=[];return c.forEach(function(t,n){if(t.id!==e.id){var r=d[n],i=(0,s.default)(r,h);g.push(i),t.cosineSimilarity=i;}}),c.sort(function(t,e){return e.cosineSimilarity-t.cosineSimilarity;}),{allCosineSimilarity:g,similarNodes:c};};},c034ef9d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return t instanceof Element||t instanceof HTMLDocument;};},c0639b37:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{decrementOrRemoveEntry:function(){return o;},edgeArgsToId:function(){return a;},edgeArgsToObj:function(){return s;},edgeObjToId:function(){return u;},incrementOrInitEntry:function(){return i;},isFunction:function(){return c;}});var r=n("0677a95b");function i(t,e){var n=t.get(e)||0;t.set(e,n+1);}function o(t,e){var n=t.get(e);void 0!==n&&((n-=1)>0?t.set(e,n):t.delete(e));}function a(t,e,n,i){var o=String(e),a=String(n);if(!t&&o>a){var s=o;o=a,a=s;}return o+r.GraphEnum.EDGE_KEY_DELIM+a+r.GraphEnum.EDGE_KEY_DELIM+(void 0===i?r.GraphEnum.DEFAULT_EDGE_NAME:i);}function s(t,e,n,r){var i=String(e),o=String(n),a={v:e,w:n};if(!t&&i>o){var s=a.v;a.v=a.w,a.w=s;}return void 0!==r&&(a.name=r),a;}function u(t,e){return a(t,e.v,e.w,e.name);}function c(t){return"function"==typeof t;}},c0961540:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("235d18ef")),a=n("ddeef58a");function s(t){return t instanceof HTMLElement&&(0,a.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase();}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0});},e.prototype.initAttrs=function(t){this._setImage(t.img);},e.prototype.isStroke=function(){return!1;},e.prototype.isOnlyHitBox=function(){return!0;},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"));}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,a.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e);},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0);}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):s(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,t.getAttribute("height")));},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n);},e.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return;}var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,u=e.sx,c=e.sy,l=e.swidth,f=e.sheight,d=e.img;(d instanceof Image||s(d))&&((0,a.isNil)(u)||(0,a.isNil)(c)||(0,a.isNil)(l)||(0,a.isNil)(f)?t.drawImage(d,n,r,i,o):t.drawImage(d,u,c,l,f,n,r,i,o));},e;}(o.default);},c09d83c7:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Easing:function(){return a.default;},Plugins:function(){return i.default;},Ticker:function(){return o.default;},default:function(){return s;}});var r=n("777fffbe"),i=r._(n("03ff4c3d")),o=r._(n("5a7dbed4")),a=r._(n("e5fcb776")),s=r._(n("3ed4f16f")).default;},c0c2b5c7:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r=n("4c6d310c"),i=u(n("fa411037")),o=u(n("703e2ad9")),a=u(n("e2fd234a")),s=n("6a4ad838");function u(t){return t&&t.__esModule?t:{default:t};}var c=function(t,e,n,r){void 0===n&&(n="cluster"),void 0===r&&(r=2);var i=[],o=t.nodes;return e.forEach(function(t,e){i.push(l(o,t,e,n,r));}),i;},l=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach(function(e,u){if(e<=i&&n!==u){o.push(u),a.push(t[u]);var c=t[u][r];s[c]?(s[c].count++,s[c].dists.push(e)):s[c]={count:1,dists:[e]};}}),Object.keys(s).forEach(function(t){s[t].dists=s[t].dists.sort(function(t,e){return t-e;});}),{nodeIdx:n,nodeId:t[n].id,nodeIdxs:o,neighbors:a,neighborNum:o.length-1,nodeLabelCountMap:s};},f=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach(function(t,r){for(var u=0,c=0,l=t.nodeIdxs,f=t.neighborNum-1;u<o;){for(var d=l[1+Math.floor(Math.random()*f)],h=0;(a["".concat(r,"-").concat(d)]||a["".concat(d,"-").concat(r)])&&(d=Math.floor(Math.random()*e),!(++h>2*e)););if(h<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},u++,++s>=n))return a;if(++c>2*e)break;}if(u<o){var g=o-u;o=(o+g)/(e-r-1);}}),a;},d=function(t,e,n,r){var i=n.nodes;return r||(r={}),Object.keys(t).forEach(function(o){if(!r||!r[o]){r[o]={nodes:[],edges:[]};var a,s,u=t[o],c=null===(a=e[u.start])||void 0===a?void 0:a.nodeIdxs,l=null===(s=e[u.end])||void 0===s?void 0:s.nodeIdxs;if(c&&l){var f=new Set(l),d=c.filter(function(t){return f.has(t);});if(d&&d.length){for(var h={},g=d.length,p=0;p<g;p++){var v=i[d[p]];r[o].nodes.push(v),h[v.id]=!0;}n.edges.forEach(function(t){h[t.source]&&h[t.target]&&r[o].edges.push(t);});}}}}),r;},h=function(t,e,n,r){var i,o,a={};t.nodes.forEach(function(t){a[t.id]=t;});var s=0;return(null===(i=null==e?void 0:e.edges)||void 0===i?void 0:i.length)&&!((null===(o=null==e?void 0:e.nodes)||void 0===o?void 0:o.length)<2)?(t.edges.forEach(function(t){var i=a[t.source][n],o=a[t.target][n],u=null==e?void 0:e.nodes[0][n],c=null==e?void 0:e.nodes[1][n],l=null==e?void 0:e.edges[0][r];t[r]===l&&(i===u&&o===c||i===c&&o===u)&&s++;}),s):0;},g=function(t,e,n){for(var r=1/0,i=0,o=0;o<e;o++)!function(e){var n=t[e],o=Object.keys(n).sort(function(t,e){return n[t]-n[e];}),a=[];o.forEach(function(t,e){a[e%10]||(a[e%10]={graphs:[],totalCount:0,aveCount:0}),a[e%10].graphs.push(t),a[e%10].totalCount+=n[t];});var s=0,u=[];a.forEach(function(t){var e=t.totalCount/t.graphs.length;t.aveCount=e,u.push(e);var r=0,i=t.length;t.graphs.forEach(function(e,i){var o=n[e];t.graphs.forEach(function(t,e){i!==e&&(r+=Math.abs(o-n[t]));});}),r/=i*(i-1)/2,s+=r;}),s/=a.length;var c=0;u.forEach(function(t,e){u.forEach(function(n,r){e!==r&&(c+=Math.abs(t-n));}),c/=u.length*(u.length-1)/2;});var l=c-s;r<l&&(r=l,i=e);}(o);return{structure:n[i],structureCountMap:t[i]};},p=function(t,e){var n={},r={};return t.forEach(function(t,i){n[t.id]={idx:i,node:t,degree:0,inDegree:0,outDegree:0};var o=t[e];r[o]||(r[o]=[]),r[o].push(t);}),{nodeMap:n,nodeLabelMap:r};},v=function(t,e,n){var r={},i={};return t.forEach(function(t,o){r["".concat(s.uniqueId)]={idx:o,edge:t};var a=t[e];i[a]||(i[a]=[]),i[a].push(t);var u=n[t.source];u&&(u.degree++,u.outDegree++);var c=n[t.target];c&&(c.degree++,c.inDegree++);}),{edgeMap:r,edgeLabelMap:i};},m=function(t,e,n){var r=e.length,i={};return e.forEach(function(e,o){for(var a=n?0:o+1,s=t[o].id,u=a;u<r;u++)if(o!==u){var c=t[u].id,l=e[u];i["".concat(s,"-").concat(c)]=l,n||(i["".concat(c,"-").concat(s)]=l);}}),i;},y=function(t,e,n,r,i,o,a,s,u,c,l){var f,g="".concat(e.id,"-").concat(n.id);if(c&&c[g])return c[g];var p=l?l[g]:void 0;return p||(p=(l=d(((f={})[g]={start:r[e.id].idx,end:r[n.id].idx,distance:i},f),o,t,l))[g]),h(p,a,s,u);},b=function(t,e,n,r){var i,o,a,s=null===(i=t[e])||void 0===i?void 0:i.degree,u=null===(o=t[e])||void 0===o?void 0:o.inDegree,c=null===(a=t[e])||void 0===a?void 0:a.outDegree;return void 0===t[e]&&(s=1/0,u=1/0,c=1/0,r[e].forEach(function(t){var e=n[t.id].degree;s>e&&(s=e);var r=n[t.id].inDegree;u>r&&(u=r);var i=n[t.id].outDegree;c>i&&(c=i);}),t[e]={degree:s,inDegree:u,outDegree:c}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:u,minPatternNodeLabelOutDegree:c};};e.default=function(t,e,n,s,u,x,_){if(void 0===n&&(n=!1),void 0===x&&(x="cluster"),void 0===_&&(_="cluster"),t&&t.nodes){var E,w=t.nodes.length;if(w){var M=(0,i.default)(t,n),C=(0,i.default)(e,n),A=m(t.nodes,M,n),S=m(e.nodes,C,n),D=p(t.nodes,x),I=D.nodeMap,T=D.nodeLabelMap,k=p(e.nodes,x),F=k.nodeMap,N=k.nodeLabelMap;v(t.edges,_,I);var O=v(e.edges,_,F).edgeLabelMap,B=[];null==C||C.forEach(function(t){B=B.concat(t);}),u||(u=Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],B,!1),[2],!1))),s||(s=u);var P=c(t,M,x,s),L=c(e,C,x,s),j=Math.min(100,w*(w-1)/2),R=d(f(s,w,j,P,M),P,t),z={graphs:R,nodeLabelProp:x,edgeLabelProp:_,minSupport:1,minNodeNum:1,maxNodeNum:4,directed:n},G=(0,o.default)(z).slice(0,10),Y=G.length,X=[];G.forEach(function(t,e){X[e]={},Object.keys(R).forEach(function(n){var r=h(R[n],t,x,_);X[e][n]=r;});});var U=g(X,Y,G),H=U.structure,W=U.structureCountMap,V=e.nodes[0],q=[],Z=null===(E=e.nodes[0])||void 0===E?void 0:E[x],J=-1/0;e.nodes.forEach(function(t){var e=t[x],n=T[e];(null==n?void 0:n.length)>J&&(J=n.length,q=n,Z=e,V=t);});var K={},Q={},$={},tt={},te={},tn={};Object.keys(N).forEach(function(r,i){te[r]=[],n&&(tn[r]=[]);var o=-1/0,a=N[r],s={};a.forEach(function(t){var e=S["".concat(V.id,"-").concat(t.id)];if(e&&te[r].push(e),o<e&&(o=e),s["".concat(V.id,"-").concat(t.id)]={start:0,end:F[t.id].idx,distance:e},n){var i=S["".concat(t.id,"-").concat(V.id)];i&&tn[r].push(i);}}),te[r]=te[r].sort(function(t,e){return t-e;}),n&&(tn[r]=tn[r].sort(function(t,e){return t-e;})),Q=d(s,L,e,Q);var u=[];if(Object.keys(s).forEach(function(t){if($[t]){u.push($[t]);return;}var e=Q[t];$[t]=h(e,H,x,_),u.push($[t]);}),u=u.sort(function(t,e){return e-t;}),tt["".concat(V.id,"-").concat(r)]=u,r!==Z)for(var c=(null==q?void 0:q.length)||0,l=c-1;l>=0;l--)!function(e){var n=q[e],i=P[I[n.id].idx],o=i.nodeLabelCountMap[r],a=N[r].length;if(!o||o.count<a)return q.splice(e,1);for(var s=!1,c=0;c<a;c++)if(o.dists[c]>te[r][c]){s=!0;break;}if(s)return q.splice(e,1);var l={};i.neighbors.forEach(function(t){var e=A["".concat(n.id,"-").concat(t.id)];l["".concat(n.id,"-").concat(t.id)]={start:I[n.id].idx,end:I[t.id].idx,distance:e};}),R=d(l,P,t,R);var f=[];Object.keys(l).forEach(function(t){if(W[t]){f.push(W[t]);return;}var e=R[t];W[t]=h(e,H,x,_),f.push(W[t]);}),f=f.sort(function(t,e){return e-t;});for(var g=!1,c=0;c<a;c++)if(f[c]<u[c]){g=!0;break;}g&&q.splice(e,1);}(l);});var tr=[];null==q||q.forEach(function(r){for(var i=I[r.id].idx,o=l(t.nodes,M[i],i,x,u).neighbors,a=o.length,s=!1,c=a-1;c>=0;c--){if(o.length+1<e.nodes.length){s=!0;return;}var f=o[c],d=f[x];if(!N[d]||!N[d].length||!te[d]||!te[d].length){o.splice(c,1);continue;}var h="".concat(r.id,"-").concat(f.id),g=A[h],p=te[d].length-1;if(g>te[d][p]){o.splice(c,1);continue;}if(n){var v=A["".concat(f.id,"-").concat(r.id)];if(p=tn[d].length-1,v>tn[d][p]){o.splice(c,1);continue;}}var m=W[h]?W[h]:y(t,r,f,I,g,P,H,x,_,W,R),E="".concat(V.id,"-").concat(d);if(m<tt[E][tt[E].length-1]){o.splice(c,1);continue;}var w=b(K,d,F,N),C=w.minPatternNodeLabelDegree;if(w.minPatternNodeLabelInDegree,w.minPatternNodeLabelOutDegree,I[f.id].degree<C){o.splice(c,1);continue;}}s||tr.push({nodes:[r].concat(o)});});var ti=(0,a.default)(e,V.id,!1).length,to={};n?(Object.keys(ti).forEach(function(t){var e=F[t].node[x];to[e]?to[e].push(ti[t]):to[e]=[ti[t]];}),Object.keys(to).forEach(function(t){to[t].sort(function(t,e){return t-e;});})):to=te;for(var ta=tr.length,ts=ta-1;ts>=0&&"break"!==function(r){var i=tr[r],o=i.nodes[0],s={},u={};i.nodes.forEach(function(t,e){u[t.id]={idx:e,node:t,degree:0,inDegree:0,outDegree:0};var n=t[x];s[n]?s[n]++:s[n]=1;});var c=[],l={};t.edges.forEach(function(t){u[t.source]&&u[t.target]&&(c.push(t),l[t[_]]?l[t[_]]++:l[t[_]]=1,u[t.source].degree++,u[t.target].degree++,u[t.source].outDegree++,u[t.target].inDegree++);});for(var f=Object.keys(O).length,d=!1,h=0;h<f;h++){var g=Object.keys(O)[h];if(!l[g]||l[g]<O[g].length){d=!0;break;}}if(d)return tr.splice(r,1),"continue";var p=c.length;if(p<e.edges.length)return tr.splice(r,1),"break";for(var v=!1,h=p-1;h>=0&&"break"!==function(t){var e=c[t],r=e[_],i=O[r];if(!i||!i.length)return(l[r]--,i&&l[r]<i.length)?(v=!0,"break"):(c.splice(t,1),u[e.source].degree--,u[e.target].degree--,u[e.source].outDegree--,u[e.target].inDegree--,"continue");var o=u[e.source].node[x],a=u[e.target].node[x],s=!1;if(i.forEach(function(t){var e=F[t.source].node,r=F[t.target].node;e[x]===o&&r[x]===a&&(s=!0),n||e[x]!==a||r[x]!==o||(s=!0);}),!s)return(l[r]--,i&&l[r]<i.length)?(v=!0,"break"):(c.splice(t,1),u[e.source].degree--,u[e.target].degree--,u[e.source].outDegree--,u[e.target].inDegree--,"continue");}(h);h--);if(v)return tr.splice(r,1),"continue";i.edges=c;var m=(0,a.default)(i,i.nodes[0].id,!1).length;if(Object.keys(m).reverse().forEach(function(t){if(t!==i.nodes[0].id&&!v){if(m[t]===1/0){var e=u[t].node[x];if(s[e]--,s[e]<N[e].length){v=!0;return;}var n=i.nodes.indexOf(u[t].node);i.nodes.splice(n,1),u[t]=void 0;return;}var r=I[t].node[x];if(!to[r]||!to[r].length||m[t]>to[r][to[r].length-1]){var e=u[t].node[x];if(s[e]--,s[e]<N[e].length){v=!0;return;}var n=i.nodes.indexOf(u[t].node);i.nodes.splice(n,1),u[t]=void 0;}}}),v)return tr.splice(r,1),"continue";for(var y=!0,E=0;y&&!v;){if(y=!1,(n?u[o.id].degree<F[V.id].degree||u[o.id].inDegree<F[V.id].inDegree||u[o.id].outDegree<F[V.id].outDegree:u[o.id].degree<F[V.id].degree)||s[o[x]]<N[o[x]].length){v=!0;break;}for(var w=i.nodes.length,M=w-1;M>=0;M--){var C=i.nodes[M],A=u[C.id].degree,S=u[C.id].inDegree,D=u[C.id].outDegree,T=b(K,C[x],F,N),k=T.minPatternNodeLabelDegree,B=T.minPatternNodeLabelInDegree,P=T.minPatternNodeLabelOutDegree;if(n?A<k||S<B||D<P:A<k){if(s[C[x]]--,s[C[x]]<N[C[x]].length){v=!0;break;}i.nodes.splice(M,1),u[C.id]=void 0,y=!0;}}if(v||!y&&0!==E)break;p=c.length;for(var L=p-1;L>=0;L--){var j=c[L];if(!u[j.source]||!u[j.target]){c.splice(L,1);var R=j[_];if(l[R]--,u[j.source]&&(u[j.source].degree--,u[j.source].outDegree--),u[j.target]&&(u[j.target].degree--,u[j.target].inDegree--),O[R]&&l[R]<O[R].length){v=!0;break;}y=!0;}}E++;}if(v||v||i.nodes.length<e.nodes.length||c.length<e.edges.length)return tr.splice(r,1),"continue";}(ts);ts--);for(var tu=tr.length,ts=0;ts<=tu-1;ts++)!function(t){var e=tr[t],n={};e.edges.forEach(function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1;});for(var r=tu-1;r>t;r--)!function(t){var e=tr[t],r={};e.edges.forEach(function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);r[e]?r[e]++:r[e]=1;});var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach(function(t){r[t]!==n[t]&&(i=!1);}),i&&tr.splice(t,1);}(r);tu=tr.length;}(ts);return tr;}}};},c0f053f1:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{createSnapModifier:function(){return i;},restrictToFirstScrollableAncestor:function(){return u;},restrictToHorizontalAxis:function(){return o;},restrictToParentElement:function(){return s;},restrictToVerticalAxis:function(){return c;},restrictToWindowEdges:function(){return l;},snapCenterToCursor:function(){return f;}});var r=n("7f663da5");function i(t){return e=>{let{transform:n}=e;return{...n,x:Math.ceil(n.x/t)*t,y:Math.ceil(n.y/t)*t};};}let o=t=>{let{transform:e}=t;return{...e,y:0};};function a(t,e,n){let r={...t};return e.top+t.y<=n.top?r.y=n.top-e.top:e.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.bottom),e.left+t.x<=n.left?r.x=n.left-e.left:e.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.right),r;}let s=t=>{let{containerNodeRect:e,draggingNodeRect:n,transform:r}=t;return n&&e?a(r,n,e):r;},u=t=>{let{draggingNodeRect:e,transform:n,scrollableAncestorRects:r}=t,i=r[0];return e&&i?a(n,e,i):n;},c=t=>{let{transform:e}=t;return{...e,x:0};},l=t=>{let{transform:e,draggingNodeRect:n,windowRect:r}=t;return n&&r?a(e,n,r):e;},f=t=>{let{activatorEvent:e,draggingNodeRect:n,transform:i}=t;if(n&&e){let t=(0,r.getEventCoordinates)(e);if(!t)return i;let o=t.x-n.left,a=t.y-n.top;return{...i,x:i.x+o-n.width/2,y:i.y+a-n.height/2};}return i;};},c1036f95:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"covariance",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("04480408"));function i(t,e=t,n={}){t=new r.default(t);let o=!1;if("object"!=typeof e||r.default.isMatrix(e)||Array.isArray(e)?e=new r.default(e):(n=e,e=t,o=!0),t.rows!==e.rows)throw TypeError("Both matrices must have the same number of rows");let{center:a=!0}=n;a&&(t=t.center("column"),o||(e=e.center("column")));let s=t.transpose().mmul(e);for(let e=0;e<s.rows;e++)for(let n=0;n<s.columns;n++)s.set(e,n,s.get(e,n)*(1/(t.rows-1)));return s;}},c1e8ff95:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getGraphComplement",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("f5de0b23"),o=r._(n("d7fbc71b")),a=function(t){if(!(0,i.isSimpleGraph)(t))return null;for(var e=t.nodeCount(),n=new o.default({compound:t.isCompound(),directed:t.isDirected(),multigraph:t.isMultigraph()}),r=t.nodes(),a=0;a<e;a++){var s=r[a];n.setNode(s,t.node(s));for(var u=a+1;u<e;u++){var c=r[u];t.hasEdge(s,c)||n.setEdge(s,c);}}return n;};},c24d47e5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("ea3f8bae")),o=r._(n("c387d242")).default.radialLayout,a=function(){function t(t){this.type=t.type,this.radial=t.radial,this.config=t;}return t.prototype.init=function(t){var e=this;if(this.data=t,this.radial){this.layoutMethod=function(t){var n=i.default[e.type](t,e.config);return o(n),n;};return;}this.layoutMethod=function(t){return i.default[e.type](t,e.config);};},t.prototype.execute=function(){return this.layoutMethod(this.data,this.config);},t.prototype.layout=function(t){return this.init(t),this.execute();},t;}();},c27d65da:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return v;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("d7d39f0f")),s=r._(n("818e8129")),u=r._(n("15d62999")),c=n("85b3418c"),l="node",f="edge",d="vedge",h="combo",g="Mapper",p="stateStyles",v=function(){function t(t){var e=this;this.edgeToBeUpdateMap={},this.throttleRefresh=(0,o.throttle)(function(t){var n=e.graph;if(!(!n||n.get("destroyed"))){var r=e.edgeToBeUpdateMap;if(r){var i=Object.values(r);i.length&&(i.forEach(function(t){var e=t.edge;if(e&&!e.destroyed){var n=e.getSource(),r=e.getTarget();n&&!n.destroyed&&r&&!r.destroyed&&e.refresh(t.updateType);}}),e.edgeToBeUpdateMap={});}}},16,{trailing:!0,leading:!0}),this.graph=t,this.destroyed=!1;}return t.prototype.addItem=function(t,e){var n=this.graph,r=t===d?f:t,i=n.get("".concat(r,"Group"))||n.get("group"),v=(0,o.upperFirst)(r),m=null,y=n.get(r+(0,o.upperFirst)(p))||{},b=n.get("default"+v);e[p]&&(y=e[p]),b&&(0,o.each)(b,function(t,n){(0,o.isObject)(t)&&!(0,o.isArray)(t)?e[n]=(0,o.deepMix)({},t,e[n]):(0,o.isArray)(t)?e[n]=e[n]||(0,o.clone)(b[n]):e[n]=e[n]||b[n];});var x=n.get(r+g);if(x){var _=x(e);_[p]&&(y=_[p],delete _[p]),(0,o.each)(_,function(t,n){(0,o.isObject)(t)&&!(0,o.isArray)(t)?e[n]=(0,o.deepMix)({},e[n],t):e[n]=_[n]||e[n];});}if(n.emit("beforeadditem",{type:t,model:e}),t===f||t===d){var E=void 0,w=void 0;if(E=e.source,w=e.target,E&&(0,o.isString)(E)&&(E=n.findById(E)),w&&(0,o.isString)(w)&&(w=n.findById(w)),!E||!w){console.warn("The source or target node of edge ".concat(e.id," does not exist!"));return;}E.getType&&"combo"===E.getType()&&(e.isComboEdge=!0),w.getType&&"combo"===w.getType()&&(e.isComboEdge=!0),m=new a.default({model:e,source:E,target:w,styles:y,linkCenter:n.get("linkCenter"),group:i.addGroup()});}else if(t===l)m=new s.default({model:e,styles:y,group:i.addGroup()});else if(t===h){var M=e.children,C=(0,c.getComboBBox)(M,n),A=void 0,S=void 0;if(isNaN(C.x)?isNaN(e.x)&&(A=100*Math.random()):A=C.x,isNaN(C.y)?isNaN(e.y)&&(S=100*Math.random()):S=C.y,isNaN(e.x)||isNaN(e.y))e.x=A,e.y=S;else{var D=e.x-A,I=e.y-S;this.updateComboSucceeds(e.id,D,I,M);}var T=i.addGroup();T.setZIndex(e.depth),m=new u.default({model:e,styles:y,animate:n.get("animate"),bbox:e.collapsed?(0,c.getComboBBox)([],n):C,group:T}),e.collapsed||"circle"!==m.getKeyShape().get("type")||(C.width=Math.hypot(C.height,C.width),C.height=C.width,m.set("bbox",C),m.refresh());var k=m.getModel();(M||[]).forEach(function(t){var e=n.findById(t.id);m.addChild(e),t.depth=k.depth+2;});}if(m)return m.setOptimize(n.getNodes().length>n.get("optimizeThreshold")),n.get("".concat(t,"s")).push(m),n.get("itemMap")[m.get("id")]=m,n.emit("afteradditem",{item:m,model:e}),m;},t.prototype.updateItem=function(t,e){var n,r,a=this,s=this.graph;if((0,o.isString)(t)&&(t=s.findById(t)),t&&!t.destroyed){var u="";t.getType&&(u=t.getType());var c=s.get(u+g),d=t.getModel(),v=d.x,m=d.y,y=t.getUpdateType(e);if(c){var b=c((0,o.deepMix)({},d,e)),x=(0,o.deepMix)({},d,b,e);b[p]&&(t.set("styles",x[p]),delete x[p]),(0,o.each)(x,function(t,n){e[n]=t;});}else(0,o.each)(e,function(t,n){d[n]&&(0,o.isObject)(t)&&!(0,o.isArray)(t)&&(e[n]=(0,i.__assign)((0,i.__assign)({},d[n]),e[n]));});if(s.emit("beforeupdateitem",{item:t,cfg:e}),u===f){if(e.source){var _=e.source;(0,o.isString)(_)&&(_=s.findById(_)),t.setSource(_);}if(e.target){var E=e.target;(0,o.isString)(E)&&(E=s.findById(E)),t.setTarget(E);}t.update(e);}else if(u===l){t.update(e,y);var w=t.getEdges();"move"===y?(0,o.each)(w,function(t){a.edgeToBeUpdateMap[t.getID()]={edge:t,updateType:y},a.throttleRefresh();}):(null==y?void 0:y.includes("bbox"))&&(0,o.each)(w,function(t){t.refresh(y);});}else if(u===h){if(t.update(e,y),!isNaN(e.x)||!isNaN(e.y)){var M=e.x-v||0,C=e.y-m||0;this.updateComboSucceeds(d.id,M,C);}var A=t.getEdges();if(((null==y?void 0:y.includes("bbox"))||"move"===y)&&u===h){var S=t.get("shapeFactory"),D=d.type||"circle";(void 0===d.animate||void 0===e.animate?null===(r=null===(n=S[D])||void 0===n?void 0:n.options)||void 0===r?void 0:r.animate:d.animate||e.animate)?setTimeout(function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&(0,o.each)(A,function(t){t&&!t.destroyed&&t.refresh();});}},201):(0,o.each)(A,function(t){t.refresh();});}}t.setOptimize(s.getNodes().length>s.get("optimizeThreshold")),s.emit("afterupdateitem",{item:t,cfg:e});}},t.prototype.updateCombo=function(t,e,n){var r,i,a=this,s=this.graph;if((0,o.isString)(t)&&(t=s.findById(t)),t&&!t.destroyed){var u=t.getModel(),l=(0,c.getComboBBox)(e,s,t),f=l.x,d=l.y;t.set("bbox",l);var h=f,g=d;n?(h=isNaN(u.x)?f:u.x,g=isNaN(u.y)?d:u.y):(h=isNaN(f)?u.x:f,g=isNaN(d)?u.y:d),t.update({x:h,y:g});var p=t.get("shapeFactory"),v=u.type||"circle";(void 0===u.animate?null===(i=null===(r=p[v])||void 0===r?void 0:r.options)||void 0===i?void 0:i.animate:u.animate)?setTimeout(function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&(t.getShapeCfg(u),a.updateComboEdges(t));}},201):this.updateComboEdges(t);}},t.prototype.updateComboEdges=function(t){for(var e,n,r=t.getEdges()||[],i=0;i<r.length;i++){var o=r[i];(null==o?void 0:o.destroyed)||(null===(e=null==o?void 0:o.getSource())||void 0===e?void 0:e.destroyed)||(null===(n=null==o?void 0:o.getTarget())||void 0===n?void 0:n.destroyed)||o.refresh();}},t.prototype.collapseCombo=function(t,e){void 0===e&&(e=!0);var n=this.graph;(0,o.isString)(t)&&(t=n.findById(t));var r=t.getChildren();r.nodes.forEach(function(t){n.hideItem(t,e);}),r.combos.forEach(function(t){n.hideItem(t,e);});},t.prototype.updateComboSucceeds=function(t,e,n,r){var i=this;void 0===r&&(r=[]);var o=this.graph;if(e||n){var a=r;if(!(null==a?void 0:a.length)){var s=o.get("comboTrees");null==s||s.forEach(function(e){(0,c.traverseTree)(e,function(e){return e.id!==t||(a=e.children,!1);});});}null==a||a.forEach(function(t){var r=o.findById(t.id);if(r){var a=r.getModel();i.updateItem(t.id,{x:(a.x||0)+e,y:(a.y||0)+n});}});}},t.prototype.expandCombo=function(t,e){void 0===e&&(e=!0);var n=this.graph;(0,o.isString)(t)&&(t=n.findById(t));var r=t.getChildren(),i=new Set;r.nodes.forEach(function(t){n.showItem(t,e),t.getEdges().forEach(function(t){return i.add(t);});}),r.combos.forEach(function(t){t.getModel().collapsed?t.show():n.showItem(t,e),t.getEdges().forEach(function(t){return i.add(t);});}),i.forEach(function(t){return t.refresh();});},t.prototype.removeItem=function(t){var e=this,n=this.graph;if((0,o.isString)(t)&&(t=n.findById(t)),t&&!t.destroyed){var r=(0,o.clone)(t.getModel()),i="";t.getType&&(i=t.getType()),n.emit("beforeremoveitem",{item:r,type:i});var a=n.get("".concat(i,"s")),s=a.indexOf(t);if(s>-1&&a.splice(s,1),i===f){var u=n.get("v".concat(i,"s")),d=u.indexOf(t);d>-1&&u.splice(d,1);}var g=t.get("id"),p=n.get("itemMap");delete p[g];var v=n.get("comboTrees"),m=t.get("id");if(i===l){var y=t.getModel().comboId;if(v&&y){var b=v,x=!1;v.forEach(function(t){x||(0,c.traverseTree)(t,function(t){if(t.id===m&&b){var e=b.indexOf(t);return b.splice(e,1),x=!0,!1;}return b=t.children,!0;});});}for(var _=t.getEdges(),E=_.length-1;E>=0;E--)n.removeItem(_[E],!1);y&&n.updateCombo(y);}else if(i===h){var w,M=t.getModel().parentId,C=!1;(v||[]).forEach(function(t){C||(0,c.traverseTree)(t,function(t){return t.id!==m||(w=t,C=!0,!1);});}),w.removed=!0,w&&w.children&&w.children.forEach(function(t){e.removeItem(t.id);});for(var _=t.getEdges(),E=_.length;E>=0;E--)n.removeItem(_[E],!1);M&&n.updateCombo(M);}t.destroy(),n.emit("afterremoveitem",{item:r,type:i});}},t.prototype.setItemState=function(t,e,n){var r=this.graph,i=e;(0,o.isString)(n)&&(i="".concat(e,":").concat(n)),t.hasState(i)===n&&n||(0,o.isString)(n)&&t.hasState(i)||(r.emit("beforeitemstatechange",{item:t,state:i,enabled:n}),t.setState(e,n),r.autoPaint(),r.emit("afteritemstatechange",{item:t,state:i,enabled:n}));},t.prototype.priorityState=function(t,e){var n=this.graph,r=t;(0,o.isString)(t)&&(r=n.findById(t)),this.setItemState(r,e,!1),this.setItemState(r,e,!0);},t.prototype.clearItemStates=function(t,e){var n=this.graph;(0,o.isString)(t)&&(t=n.findById(t)),n.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),n.emit("afteritemstatesclear",{item:t,states:e});},t.prototype.refreshItem=function(t){var e=this.graph;(0,o.isString)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t});},t.prototype.addCombos=function(t,e){var n=this,r=this.graph;(t||[]).forEach(function(t){(0,c.traverseTreeUp)(t,function(t){var r;return e.forEach(function(e){e.id===t.id&&(e.children=t.children,e.depth=t.depth,r=e);}),r&&n.addItem("combo",r),!0;});});var i=r.get("comboGroup");i&&i.sort();},t.prototype.changeItemVisibility=function(t,e){var n=this,r=this.graph;if((0,o.isString)(t)&&(t=r.findById(t)),!t){console.warn("The item to be shown or hidden does not exist!");return;}if(r.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&t.getType()===l){var i=t.getEdges();(0,o.each)(i,function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e);});}else if(t.getType&&t.getType()===h){var a=r.get("comboTrees"),s=t.get("id"),u=[],f=!1;(a||[]).forEach(function(t){!f&&t.children&&0!==t.children.length&&(0,c.traverseTree)(t,function(t){return t.id!==s||(u=t.children,f=!0,!1);});}),u&&(!e||e&&!t.getModel().collapsed)&&u.forEach(function(t){var i=r.findById(t.id);n.changeItemVisibility(i,e);});var i=t.getEdges();(0,o.each)(i,function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e);});}return r.emit("afteritemvisibilitychange",{item:t,visible:e}),t;},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0;},t;}();},c2d1eb5c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6e810311")),i=function(t){return(0,r.default)(t,"String");};},c2db3dee:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e;}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,o.last)(e);if(i<0)return(0,o.head)(e);var a=e[i],s=e[i+1],u=i/(n-1);return a+(r-u)/((i+1)/(n-1)-u)*(s-a);},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0;},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,o.last)(e)!==this.max&&e.push(this.max),(0,o.head)(e)!==this.min&&e.unshift(this.min)),e;},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,o.head)(e))return 0;if(t>(0,o.last)(e))return 1;var n=0;return(0,o.each)(e,function(e,r){if(!(t>=e))return!1;n=r;}),n/(e.length-1);},e;}(r._(n("64727459")).default);},c2fb7b24:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e));};Object.defineProperty(e,"__esModule",{value:!0});var i=n("dfdb2ac4"),o=n("81ae0ad8"),a=function(t){var e=(0,i.buildLayerMatrix)(t),n=t.graph().ranksep,o=0;null==e||e.forEach(function(e){var i=e.map(function(e){return t.node(e).height;}),a=Math.max.apply(Math,r(r([],i,!1),[0],!1));null==e||e.forEach(function(e){t.node(e).y=o+a/2;}),o+=a+n;});},s=function(t){var e=(0,i.buildLayerMatrix)(t),n=Object.assign((0,o.findType1Conflicts)(t,e),(0,o.findType2Conflicts)(t,e)),r={},a=[];["u","d"].forEach(function(i){a="u"===i?e:Object.values(e).reverse(),["l","r"].forEach(function(e){"r"===e&&(a=a.map(function(t){return Object.values(t).reverse();}));var s=("u"===i?t.predecessors:t.successors).bind(t),u=(0,o.verticalAlignment)(t,a,n,s),c=(0,o.horizontalCompaction)(t,a,u.root,u.align,"r"===e);"r"===e&&Object.keys(c).forEach(function(t){return c[t]=-c[t];}),r[i+e]=c;});});var s=(0,o.findSmallestWidthAlignment)(t,r);return s&&(0,o.alignCoordinates)(r,s),(0,o.balance)(r,t.graph().align);};e.default=function(t){var e,n=(0,i.asNonCompoundGraph)(t);a(n);var r=s(n);null===(e=Object.keys(r))||void 0===e||e.forEach(function(t){n.node(t).x=r[t];});};},c31be87c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getShape",{enumerable:!0,get:function(){return function t(e,n,r){if(!o(e,n,r))return null;for(var a=null,s=e.getChildren(),u=s.length,c=u-1;c>=0;c--){var l=s[c];if(l.isGroup())a=t(l,n,r);else if(o(l,n,r)){var f=i(l,n,r),d=f[0],h=f[1];l.isInShape(d,h)&&(a=l);}if(a)break;}return a;};}});var r=n("be1e82ef");function i(t,e,n){var i=t.getTotalMatrix();if(i){var o=function(t,e){if(e){var n=(0,r.invert)(e);return(0,r.multiplyVec2)(n,t);}return t;}([e,n,1],i);return[o[0],o[1]];}return[e,n];}function o(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,r.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var o=i(t,e,n),a=o[0],s=o[1];if(t.isClipped(a,s))return!1;}var u=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=u.minX&&e<=u.maxX&&n>=u.minY&&n<=u.maxY;}},c32702c0:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return l;},x:function(){return s;},y:function(){return u;}});var r=n("777fffbe"),i=n("5e7303cb"),o=n("b3ff52f2"),a=r._(n("368c2bda"));function s(t){return t.x;}function u(t){return t.y;}var c=Math.PI*(3-Math.sqrt(5));function l(t){var e,n=1,r=.001,s=1-Math.pow(.001,1/300),u=0,l=.6,f=new Map,d=(0,o.timer)(p),h=(0,i.dispatch)("tick","end"),g=(0,a.default)();function p(){v(),h.call("tick",e),n<r&&(d.stop(),h.call("end",e));}function v(r){var i,o,a=t.length;void 0===r&&(r=1);for(var c=0;c<r;++c)for(n+=(u-n)*s,f.forEach(function(t){t(n);}),i=0;i<a;++i)null==(o=t[i]).fx?o.x+=o.vx*=l:(o.x=o.fx,o.vx=0),null==o.fy?o.y+=o.vy*=l:(o.y=o.fy,o.vy=0);return e;}function m(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(.5+n),o=n*c;e.x=i*Math.cos(o),e.y=i*Math.sin(o);}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0);}}function y(e){return e.initialize&&e.initialize(t,g),e;}return null==t&&(t=[]),m(),e={tick:v,restart:function(){return d.restart(p),e;},stop:function(){return d.stop(),e;},nodes:function(n){return arguments.length?(t=n,m(),f.forEach(y),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?(s=+t,e):+s;},alphaTarget:function(t){return arguments.length?(u=+t,e):u;},velocityDecay:function(t){return arguments.length?(l=1-t,e):1-l;},randomSource:function(t){return arguments.length?(g=t,f.forEach(y),e):g;},force:function(t,n){return arguments.length>1?(null==n?f.delete(t):f.set(t,y(n)),e):f.get(t);},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)(a=(i=e-(s=t[c]).x)*i+(o=n-s.y)*o)<r&&(u=s,r=a);return u;},on:function(t,n){return arguments.length>1?(h.on(t,n),e):h.on(t);}};}},c387d242:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("852bbaa9"),i=n("4c6d310c"),o=r._(n("906a7e64")),a=r._(n("b5782d15")),s=r._(n("cdecc8a2")),u=r._(n("634a0cd7")),c=n("168feef4"),l=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},c.Util),o),a),s),u);},c393d7db:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getPropertiesAtPoint",{enumerable:!0,get:function(){return u;}});var r=n("cb98cfaf"),i=n("72c22a6b"),o=n("4a13cbcf"),a=n("e3f92a43"),s=n("500428c5");function u(t,e){for(var n,u,c,l,f=(0,r.parsePathString)(t),d=(0,i.normalizePath)(f),h=(0,s.getTotalLength)(f),g=function(t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r;},p=8,v=0,m=0,y=1/0,b=0;b<=h;b+=p)(v=g(n=(0,o.getPointAtLength)(d,b)))<y&&(u=n,m=b,y=v);p/=2;for(var x=0,_=0,E=0,w=0;p>.5;)x=m-p,E=g(c=(0,o.getPointAtLength)(d,x)),_=m+p,w=g(l=(0,o.getPointAtLength)(d,_)),x>=0&&E<y?(u=c,m=x,y=E):_<=h&&w<y?(u=l,m=_,y=w):p/=2;return{closest:u,distance:Math.sqrt(y),segment:(0,a.getPropertiesAtLength)(f,m)};}},c4ac62ba:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=r._(n("155fe01c")),o=r._(n("ed0b15cb")),a=r._(n("533b8f72")),s=r._(n("120583e1")),u=function(t,e){if(!(0,a.default)(t))return null;if((0,i.default)(e)&&(n=e),(0,s.default)(e)&&(n=function(t){return(0,o.default)(t,e);}),n){for(var n,r=0;r<t.length;r+=1)if(n(t[r]))return t[r];}return null;};},c4d42f68:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n);};return t["_wrap_"+e]=n,n;};},c513cd98:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"Input",{enumerable:!0,get:function(){return a;}});var r=n("852bbaa9"),i=n("9c86e52a"),o=r._(n("5b220c3d")),a=(0,o.forwardRef)(function(t,e){var n=(0,i.useIntl)(),r=(0,o.useRef)(!1),a=(0,o.useRef)(null);return(0,o.useImperativeHandle)(e,function(){return a.current;}),o.default.createElement("input",{className:"dumi-default-search-bar-input",onCompositionStart:function(){return r.current=!0;},onCompositionEnd:function(e){r.current=!1,t.onChange(e.currentTarget.value);},onFocus:t.onFocus,onBlur:t.onBlur,onMouseEnter:t.onMouseEnter,onKeyDown:function(t){["ArrowDown","ArrowUp"].includes(t.key)&&t.preventDefault(),"Escape"!==t.key||r.current||t.currentTarget.blur();},onChange:function(e){var n=e.target.value;setTimeout(function(){r.current||t.onChange(n);},1);},placeholder:n.formatMessage({id:"header.search.placeholder"}),ref:a});});},c51a05f7:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("c9ae1e54")),i=Array.prototype.splice,o=function(t,e){if(!(0,r.default)(t))return[];for(var n=t?e.length:0,o=n-1;n--;){var a=void 0,s=e[n];(n===o||s!==a)&&(a=s,i.call(t,s,1));}return t;};},c54dbb0e:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return d;}});var r,i=n("777fffbe"),o=n("22b52967"),a=n("168feef4"),s=i._(n("b208d868")),u=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},l=a.Util.distance,f={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:1,fill:"#fff"},d=function(t){function e(e){return t.call(this,e)||this;}return u(e,t),e.prototype.getDefaultCfgs=function(){return{type:"both",trigger:"mousemove",r:60,delegateStyle:(0,o.clone)(f),showLabel:"edge",scaleRBy:"wheel"};},e.prototype.getEvents=function(){var t;switch(this.get("trigger")){case"click":t={click:"filter"};break;case"drag":t={click:"createDelegate"};break;default:t={mousemove:"filter"};}return t;},e.prototype.init=function(){var t=this.get("showLabel");this.set("showNodeLabel","node"===t||"both"===t),this.set("showEdgeLabel","edge"===t||"both"===t),this.get("shouldShow")||this.set("shouldShow",function(){return!0;});},e.prototype.createDelegate=function(t){var e=this,n=e.get("delegate");(!n||n.destroyed)&&(e.filter(t),(n=e.get("delegate")).on("dragstart",function(t){}),n.on("drag",function(t){e.filter(t);}),"wheel"===this.get("scaleRBy")&&n.on("mousewheel",function(t){e.scaleRByWheel(t);}));},e.prototype.scaleRByWheel=function(t){var e;if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var n=this.get("graph"),r=this.get("delegate");(r?{x:r.attr("x"),y:r.attr("y")}:void 0)||n.getPointByClient(t.clientX,t.clientY),e=t.originalEvent.wheelDelta<0?.95:1/.95;var i=this.get("maxR"),o=this.get("minR"),a=this.get("r");(a>(i||n.get("height"))&&e>1||a<(o||.05*n.get("height"))&&e<1)&&(e=1),a*=e,this.set("r",a),this.filter(t);}},e.prototype.filter=function(t){var e=this.get("graph"),n=e.getNodes(),r={},i=this.get("r"),o=this.get("type"),a={x:t.x,y:t.y};this.updateDelegate(a,i);var s=this.get("shouldShow"),u=this.get("vShapes");u&&u.forEach(function(t){t.remove(),t.destroy();}),u=[],n.forEach(function(t){var e=t.getModel();l({x:e.x,y:e.y},a)<i&&(r[e.id]=t);});var c=e.getEdges(),f=[];c.forEach(function(t){var e=t.getModel(),n=e.source,i=e.target;s(e)&&("only-source"===o||"one"===o?r[n]&&!r[i]&&f.push(t):"only-target"===o||"one"===o?r[i]&&!r[n]&&f.push(t):"both"===o&&r[n]&&r[i]&&f.push(t));});var d=this.get("showNodeLabel"),h=this.get("showEdgelabel"),g=e.get("group");f.forEach(function(t){t.get("group").get("children").forEach(function(t){var e=t.get("type"),n=g.addShape(e,{attrs:t.attr()});u.push(n),d&&"text"===e&&n.set("visible",!0);});}),Object.keys(r).forEach(function(t){var e=r[t].get("group").clone();if(g.add(e),u.push(e),h)for(var n=e.get("children"),i=0;i<n.length;i++){var o=n[i];"text"===o.get("type")&&o.set("visible",!0);}}),this.set("vShapes",u);},e.prototype.updateParams=function(t){var e=t.r,n=t.trigger,r=t.minR,i=t.maxR,o=t.scaleRBy,a=t.showLabel,s=t.shouldShow;if(isNaN(t.r)||this.set("r",e),isNaN(i)||this.set("maxR",i),isNaN(r)||this.set("minR",r),("mousemove"===n||"click"===n)&&this.set("trigger",n),"wheel"===o||"unset"===o){this.set("scaleRBy",o),this.get("delegate").remove(),this.get("delegate").destroy();var u=this.get("dPercentText");u&&(u.remove(),u.destroy());}("node"===a||"both"===a)&&this.set("showNodeLabel",!0),("edge"===a||"both"===a)&&this.set("showEdgeLabel",!0),s&&this.set("shouldShow",s);},e.prototype.updateDelegate=function(t,e){var n=this,r=n.get("graph"),i=n.get("delegate");if(!i||i.destroyed){var o=r.get("group"),a=n.get("delegateStyle")||f;i=o.addShape("circle",{attrs:c({r:e,x:t.x,y:t.y},a),name:"lens-shape",draggable:!0}),"drag"!==this.get("trigger")&&"wheel"===this.get("scaleRBy")&&i.on("mousewheel",function(t){n.scaleRByWheel(t);});}else i.attr({x:t.x,y:t.y,r:e});n.set("delegate",i);},e.prototype.clear=function(){var t=this.get("vShapes");t&&t.forEach(function(t){t.remove(),t.destroy();}),t=[],this.set("vShapes",t);var e=this.get("delegate");e&&!e.destroyed&&(e.remove(),e.destroy());},e.prototype.destroy=function(){this.clear();},e;}(s.default);},c60d5509:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("501adece")),i=function(t){return(0,r.default)(t)&&t>0;};},c61fb74f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.getPropertyWeight=e.getAllSortProperties=e.getAllProperties=e.default=void 0;var r=n("62ae94f6"),i=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=100);var n={};t.forEach(function(t){t.properties&&Object.keys(t.properties).forEach(function(e){if("id"===e||!"".concat(t.properties[e]).match(r.secondReg)&&!"".concat(t.properties[e]).match(r.dateReg)&&isNaN(Number(t.properties[e]))){n.hasOwnProperty(e)&&delete n[e];return;}n.hasOwnProperty(e)?n[e]+=1:n[e]=1;});});var i=Object.keys(n).sort(function(t,e){return n[e]-n[t];});return i.length<e?i:i.slice(0,e);};e.getAllSortProperties=i;var o=function(t,e){return e.map(function(e){return t.hasOwnProperty(e)?t[e]:0;});},a=function(t){for(var e=i(t),n=[],r=0;r<t.length;r++)n[r]=o(t[r].properties,e);return n;};e.getPropertyWeight=a;var s=function(t,e){void 0===e&&(e=void 0);var n=[];return t.forEach(function(t){void 0===e&&n.push(t),void 0!==t[e]&&n.push(t[e]);}),n;};e.getAllProperties=s,e.default={getAllSortProperties:i,getPropertyWeight:a,getAllProperties:s};},c64a4ad4:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("b018614c");function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e);}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e);}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e);}function s(t,e){return t[0]*e[1]-e[0]*t[1];}e.leftTranslate=i,e.leftRotate=o,e.leftScale=a,e.transform=function(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,u=e.length;s<u;s++){var c,l=e[s];switch(l[0]){case"t":i(n,n,[l[1],l[2]]);break;case"s":a(n,n,[l[1],l[2]]);break;case"r":o(n,n,l[1]);break;case"m":c=l[1],r.mat3.multiply(n,c,n);}}return n;},e.direction=s,e.angleTo=function(t,e,n){var i=r.vec2.angle(t,e),o=s(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i;},e.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;};},c654f54f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("4c6d310c"),i=n("22b52967"),o=n("168feef4");(0,o.registerNode)("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:o.BaseGlobal.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:o.BaseGlobal.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:o.BaseGlobal.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,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:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).preRect,i=void 0===n?{}:n,o=this.getShapeStyle(t),a=this.getSize(t),s=a[0],u=a[1],c=e.addShape("rect",{attrs:o,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=c;var l=i.show,f=(0,r.__rest)(i,["show"]);return l&&(e.shapeMap["pre-rect"]=e.addShape("rect",{attrs:(0,r.__assign)({x:-s/2,y:-u/2,height:u},f),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),c;},drawLogoIcon:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).logoIcon,i=void 0===n?{}:n,o=this.getSize(t)[0];if(i.show){var a=i.width,s=i.height,u=i.x,c=i.y,l=i.offset,f=i.text,d=(0,r.__rest)(i,["width","height","x","y","offset","text"]);f?e.shapeMap["rect-logo-icon"]=e.addShape("text",{attrs:(0,r.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):e.shapeMap["rect-logo-icon"]=e.addShape("image",{attrs:(0,r.__assign)((0,r.__assign)({},d),{x:u||-o/2+a+l,y:c||-s/2,width:a,height:s}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0});}},drawStateIcon:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).stateIcon,i=void 0===n?{}:n,o=this.getSize(t)[0];if(i.show){var a=i.width,s=i.height,u=i.x,c=i.y,l=i.offset,f=i.text,d=(0,r.__rest)(i,["width","height","x","y","offset","text"]);f?e.shapeMap["rect-state-icon"]=e.addShape("text",{attrs:(0,r.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):e.shapeMap["rect-state-icon"]=e.addShape("image",{attrs:(0,r.__assign)((0,r.__assign)({},d),{x:u||o/2-a+l,y:c||-s/2,width:a,height:s}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0});}},drawLinkPoints:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).linkPoints,i=void 0===n?{}:n,o=i.top,a=i.left,s=i.right,u=i.bottom,c=i.size,l=i.r,f=(0,r.__rest)(i,["top","left","right","bottom","size","r"]),d=this.getSize(t),h=d[0],g=d[1];a&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:-h/2,y:0,r:c/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:h/2,y:0,r:c/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:-g/2,r:c/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},f),{x:0,y:g/2,r:c/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}));},drawLabel:function(t,e){var n=this.getOptions(t),o=n.labelCfg,a=void 0===o?{}:o,s=n.logoIcon,u=void 0===s?{}:s,c=n.descriptionCfg,l=void 0===c?{}:c,f=this.getSize(t)[0],d=null,h=u.show,g=u.width,p=-f/2+a.offset;h&&(p=-f/2+g+a.offset);var v=a.style,m=l.style,y=l.paddingTop;return(0,i.isString)(t.description)?(d=e.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},v),{x:p,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=d,e.shapeMap["rect-description"]=e.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},m),{x:p,y:17+(y||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(d=e.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},v),{x:p,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=d),d;},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},o=(0,i.mix)({},e,n),a=this.getSize(t),s=o.width||a[0],u=o.height||a[1];return(0,r.__assign)({x:-s/2,y:-u/2,width:s,height:u},o);},update:function(t,e){var n=this.mergeStyle||this.getOptions(t),o=n.style,a=n.labelCfg,s=void 0===a?{}:a,u=n.descriptionCfg,c=void 0===u?{}:u,l=this.getSize(t),f=l[0],d=l[1];e.get("keyShape").attr((0,r.__assign)((0,r.__assign)({},void 0===o?{}:o),{x:-f/2,y:-d/2,width:f,height:d}));var h=e.getContainer(),g=h.shapeMap["rect-logo-icon"]||h.find(function(t){return"rect-logo-icon"===t.get("className");}),p=g?g.attr():{},v=(0,i.mix)({},p,t.logoIcon),m=v.width;void 0===m&&(m=this.options.logoIcon.width);var y=t.logoIcon?t.logoIcon.show:void 0,b=s.offset,x=-f/2+m+b;y||void 0===y||(x=-f/2+b);var _=h.shapeMap["node-label"]||h.find(function(t){return"node-label"===t.get("className");}),E=h.shapeMap["rect-description"]||h.find(function(t){return"rect-description"===t.get("className");});if(t.label){if(_){var w=t.labelCfg?t.labelCfg.style:{},M=(0,i.mix)({},_.attr(),w);t.label&&(M.text=t.label),M.x=x,(0,i.isString)(t.description)&&(M.y=-5),E&&(E.resetMatrix(),E.attr({x:x})),_.resetMatrix(),_.attr(M);}else h.shapeMap["node-label"]=h.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},s.style),{x:x,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});}if((0,i.isString)(t.description)){var C=c.paddingTop;if(E){var w=t.descriptionCfg?t.descriptionCfg.style:{},A=(0,i.mix)({},E.attr(),w);(0,i.isString)(t.description)&&(A.text=t.description),A.x=x,E.resetMatrix(),E.attr((0,r.__assign)((0,r.__assign)({},A),{y:17+(C||0)}));}else h.shapeMap["rect-description"]=h.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},c.style),{x:x,y:17+(C||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});}var S=h.shapeMap["pre-rect"]||h.find(function(t){return"pre-rect"===t.get("className");});if(S&&!S.destroyed){var D=(0,i.mix)({},S.attr(),t.preRect);S.attr((0,r.__assign)((0,r.__assign)({},D),{x:-f/2,y:-d/2,height:d}));}if(g&&!g.destroyed){if(y||void 0===y){var I=v.width,T=v.height,k=v.x,F=v.y,N=v.offset,O=(0,r.__rest)(v,["width","height","x","y","offset"]);g.attr((0,r.__assign)((0,r.__assign)({},O),{x:k||-f/2+I+N,y:F||-T/2,width:I,height:T}));}else g.remove(),delete h.shapeMap["pre-rect"];}else y&&this.drawLogoIcon(t,h);var B=h.shapeMap["rect-state-icon"]||h.find(function(t){return"rect-state-icon"===t.get("className");}),P=B?B.attr():{},L=(0,i.mix)({},P,t.stateIcon);if(B){L.show||void 0===L.show||(B.remove(),delete h.shapeMap["rect-state-icon"]);var j=L.width,T=L.height,k=L.x,F=L.y,R=L.offset,z=(0,r.__rest)(L,["width","height","x","y","offset"]);B.attr((0,r.__assign)((0,r.__assign)({},z),{x:k||f/2-j+R,y:F||-T/2,width:j,height:T}));}else L.show&&this.drawStateIcon(t,h);this.updateLinkPoints(t,h);},getOptions:function(t,e){return"move"===e?t:(0,i.deepMix)({},this.options,this.getCustomConfig(t)||{},t);}},"single-node");},c6ab8985:function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0));}return n;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},c6d8399b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6665ed3f")),i=function(t){var e=(0,r.default)(t);return e.charAt(0).toUpperCase()+e.substring(1);};},c6e8429e:function(t,e,n){"use strict";function r(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},c6f93d8f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r,i=n("777fffbe")._(n("b208d868")),o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});function a(t,e,n){var r=t.x-e.x,i=t.y-e.y;return!n||Math.abs(r)>n||Math.abs(i)>n?Math.sqrt(r*r+i*i):n;}function s(t,e){var n=(e.source.y-e.target.y)/(e.source.x-e.target.x),r=(n*n*e.source.x+n*(t.y-e.source.y)+t.x)/(n*n+1),i=n*(r-e.source.x)+e.source.y;return{x:r,y:i};}var u=function(t){function e(e){return t.call(this,e)||this;}return o(e,t),e.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}};},e.prototype.init=function(){var t=this.get("graph"),e=this.get("onTick");this.set("tick",function(){e&&e(),t.refreshPositions();});},e.prototype.bundling=function(t){var e=this;if(e.set("data",t),!e.isTicking()){var n=t.edges||[],r=t.nodes||[],i={},o=!1;if(r.forEach(function(t){(null===t.x||(t.y,0)||void 0===t.x||(t.y,0))&&(o=!0),i[t.id]=t;}),o)throw Error("please layout the graph or assign x and y for nodes first");e.set("nodeIdMap",i);var a=e.get("divisions"),s=e.get("divRate"),u=e.divideEdges(a);e.set("edgePoints",u);var c=e.getEdgeBundles();e.set("edgeBundles",c);for(var l=e.get("cycles"),f=e.get("iterations"),d=e.get("iterRate"),h=e.get("lambda"),g=0;g<l;g++){for(var p=0;p<f;p++)!function(t){var r=[];n.forEach(function(t,n){if(t.source!==t.target){var o=i[t.source],s=i[t.target];r[n]=e.getEdgeForces({source:o,target:s},n,a,h);for(var c=0;c<a+1;c++)u[n][c].x+=r[n][c].x,u[n][c].y+=r[n][c].y;}});}(0);h/=2,a*=s,f*=d,u=e.divideEdges(a),e.set("edgePoints",u);}n.forEach(function(t,e){t.source!==t.target&&(t.type="polyline",t.controlPoints=u[e].slice(1,u[e].length-1));}),e.get("graph").refresh();}},e.prototype.updateBundling=function(t){var e=this,n=t.data;if(n&&e.set("data",n),e.get("ticking")&&e.set("ticking",!1),Object.keys(t).forEach(function(n){e.set(n,t[n]);}),t.onTick){var r=this.get("graph");e.set("tick",function(){t.onTick(),r.refresh();});}e.bundling(n);},e.prototype.divideEdges=function(t){var e=this,n=e.get("data").edges,r=e.get("nodeIdMap"),i=e.get("edgePoints");return i&&void 0!==i||(i=[]),n.forEach(function(n,o){i[o]&&void 0!==i[o]||(i[o]=[]);var s,u=r[n.source],c=r[n.target];if(1===t)i[o].push({x:u.x,y:u.y}),i[o].push({x:.5*(u.x+c.x),y:.5*(u.y+c.y)}),i[o].push({x:c.x,y:c.y});else{var l=((null===(s=i[o])||void 0===s?void 0:s.length)?e.getEdgeLength(i[o]):a({x:u.x,y:u.y},{x:c.x,y:c.y}))/(t+1),f=l,d=[{x:u.x,y:u.y}];i[o].forEach(function(t,e){if(0!==e){for(var n=a(t,i[o][e-1]);n>f;){var r=f/n,s={x:i[o][e-1].x,y:i[o][e-1].y};s.x+=r*(t.x-i[o][e-1].x),s.y+=r*(t.y-i[o][e-1].y),d.push(s),n-=f,f=l;}f-=n;}}),d.push({x:c.x,y:c.y}),i[o]=d;}}),i;},e.prototype.getEdgeLength=function(t){var e=0;return t.forEach(function(n,r){0!==r&&(e+=a(n,t[r-1]));}),e;},e.prototype.getEdgeBundles=function(){var t=this,e=t.get("data").edges||[],n=t.get("bundleThreshold"),r=t.get("nodeIdMap"),i=t.get("edgeBundles");return i||(i=[]),e.forEach(function(t,e){i[e]&&void 0!==i[e]||(i[e]=[]);}),e.forEach(function(o,a){var s=r[o.source],u=r[o.target];e.forEach(function(e,o){if(!(o<=a)){var c=r[e.source],l=r[e.target];t.getBundleScore({source:s,target:u},{source:c,target:l})>=n&&(i[a].push(o),i[o].push(a));}});}),i;},e.prototype.getBundleScore=function(t,e){return t.vx=t.target.x-t.source.x,t.vy=t.target.y-t.source.y,e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,t.length=a({x:t.source.x,y:t.source.y},{x:t.target.x,y:t.target.y}),e.length=a({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),this.getAngleScore(t,e)*this.getScaleScore(t,e)*this.getPositionScore(t,e)*this.getVisibilityScore(t,e);},e.prototype.getAngleScore=function(t,e){var n,r;return n={x:t.vx,y:t.vy},r={x:e.vx,y:e.vy},(n.x*r.x+n.y*r.y)/(t.length*e.length);},e.prototype.getScaleScore=function(t,e){var n=(t.length+e.length)/2;return 2/(n/Math.min(t.length,e.length)+Math.max(t.length,e.length)/n);},e.prototype.getPositionScore=function(t,e){var n=(t.length+e.length)/2;return n/(n+a({x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2},{x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2}));},e.prototype.getVisibilityScore=function(t,e){var n=this.getEdgeVisibility(t,e),r=this.getEdgeVisibility(e,t);return n<r?n:r;},e.prototype.getEdgeVisibility=function(t,e){var n=s(e.source,t),r=s(e.target,t);return Math.max(0,1-2*a({x:(n.x+r.x)/2,y:(n.y+r.y)/2},{x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2})/a(n,r));},e.prototype.getEdgeForces=function(t,e,n,r){for(var i=this.get("edgePoints"),o=this.get("K")/(a(t.source,t.target)*(n+1)),s=[{x:0,y:0}],u=1;u<n;u++){var c={x:0,y:0},l=this.getSpringForce({pre:i[e][u-1],cur:i[e][u],next:i[e][u+1]},o),f=this.getElectrostaticForce(u,e);c.x=r*(l.x+f.x),c.y=r*(l.y+f.y),s.push(c);}return s.push({x:0,y:0}),s;},e.prototype.getSpringForce=function(t,e){var n=t.pre.x+t.next.x-2*t.cur.x,r=t.pre.y+t.next.y-2*t.cur.y;return{x:n*=e,y:r*=e};},e.prototype.getElectrostaticForce=function(t,e){var n=this.get("eps"),r=this.get("edgeBundles"),i=this.get("edgePoints"),o=r[e],s={x:0,y:0};return o.forEach(function(r){var o={x:i[r][t].x-i[e][t].x,y:i[r][t].y-i[e][t].y};if(Math.abs(o.x)>n||Math.abs(o.y)>n){var u=1/a(i[r][t],i[e][t]);s.x+=o.x*u,s.y+=o.y*u;}}),s;},e.prototype.isTicking=function(){return this.get("ticking");},e.prototype.getSimulation=function(){return this.get("forceSimulation");},e.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),t.prototype.destroy.call(this);},e;}(i.default);},c6ff7e7b:function(t,e,n){"use strict";function r(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,s,u,c,l,f,d,h=this._root,g=this._x0,p=this._y0,v=this._x1,m=this._y1;if(!h)return this;if(h.length)for(;;){if((c=o>=(s=(g+v)/2))?g=s:v=s,(l=a>=(u=(p+m)/2))?p=u:m=u,e=h,!(h=h[f=l<<1|c]))return this;if(!h.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,d=f);}for(;h.data!==t;)if(r=h,!(h=h.next))return this;return((i=h.next)&&delete h.next,r)?i?r.next=i:delete r.next:e?(i?e[f]=i:delete e[f],(h=e[0]||e[1]||e[2]||e[3])&&h===(e[3]||e[2]||e[1]||e[0])&&!h.length&&(n?n[d]=h:this._root=h)):this._root=i,this;}function i(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this;}n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return r;},removeAll:function(){return i;}});},c78875f9:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r={}.toString,i=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"");};},c78d7c09:function(t,e,n){"use strict";function r(t){return 1e-6>Math.abs(t)?0:t<0?-1:1;}function i(t,e,n){var i=!1,o=t.length;if(o<=2)return!1;for(var a=0;a<o;a++){var s,u=t[a],c=t[(a+1)%o];if(((s=[e,n])[0]-u[0])*(c[1]-u[1])==(c[0]-u[0])*(s[1]-u[1])&&Math.min(u[0],c[0])<=s[0]&&s[0]<=Math.max(u[0],c[0])&&Math.min(u[1],c[1])<=s[1]&&s[1]<=Math.max(u[1],c[1]))return!0;r(u[1]-n)>0!=r(c[1]-n)>0&&0>r(e-(n-u[1])*(u[0]-c[0])/(u[1]-c[1])-u[0])&&(i=!i);}return i;}n.d(e,"__esModule",{value:!0}),n.d(e,"isPointInPolygon",{enumerable:!0,get:function(){return i;}});},c7fb2db5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{ItemController:function(){return a.default;},ModeController:function(){return i.default;},StateController:function(){return s.default;},ViewController:function(){return o.default;}});var r=n("777fffbe"),i=r._(n("f7cef5ca")),o=r._(n("5085d04f")),a=r._(n("c27d65da")),s=r._(n("7e9790a2"));},c7fe84fd:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("e82c7689")),i=function(t){return(0,r.default)(t)&&t>0;};},c8dc9f53:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getPathBBoxTotalLength",{enumerable:!0,get:function(){return o;}});var r=n("4c6d310c"),i=n("00226c26");function o(t,e){if(!t)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var n=(0,i.pathLengthFactory)(t,void 0,(0,r.__assign)((0,r.__assign)({},e),{bbox:!0,length:!0})),o=n.length,a=n.min,s=a.x,u=a.y,c=n.max,l=c.x,f=c.y,d=l-s,h=f-u;return{length:o,width:d,height:h,x:s,y:u,x2:l,y2:f,cx:s+d/2,cy:u+h/2,cz:Math.max(d,h)+Math.min(d,h)/2};}},c966c938:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{addEventListener:function(){return i.default;},createDom:function(){return o.default;},modifyCSS:function(){return a.default;}});var r=n("777fffbe"),i=r._(n("37756433")),o=r._(n("972cc028")),a=r._(n("9beab91b"));},c9ae1e54:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length);};},ca8df5f7:function(t,e,n){"use strict";function r(t,e){let n=0;return Math.abs(t)>Math.abs(e)?(n=e/t,Math.abs(t)*Math.sqrt(1+n*n)):0!==e?(n=t/e,Math.abs(e)*Math.sqrt(1+n*n)):0;}n.d(e,"__esModule",{value:!0}),n.d(e,"hypotenuse",{enumerable:!0,get:function(){return r;}});},cacfa2b7:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6e810311")),i=function(t){return(0,r.default)(t,"Error");};},cb805605:function(t,e,n){"use strict";function r(t){return(Math.pow(2,-10*t)-9765625e-10)*1.0009775171065494;}n.d(e,"__esModule",{value:!0}),n.d(e,"tpmt",{enumerable:!0,get:function(){return r;}});},cb98cfaf:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"parsePathString",{enumerable:!0,get:function(){return s;}});var r=n("68d590b8"),i=n("d9b45518"),o=n("69dfbbfd"),a=n("a0fdd668");function s(t){if((0,r.isPathArray)(t))return[].concat(t);var e=new a.PathParser(t);for((0,o.skipSpaces)(e);e.index<e.max&&!e.err.length;)(0,i.scanSegment)(e);return e.err?e.err:e.segments;}},cbb3b640:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return d;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("ea3f8bae")),a=n("22b52967"),s=r._(n("c387d242")),u=n("9fc83412"),c=r._(n("9db2e324")),l=s.default.radialLayout,f=s.default.traverseTree,d=function(t){function e(e){var n=t.call(this,e)||this;return n.layoutAnimating=!1,n.set("removeList",[]),n.set("layoutMethod",n.getLayout()),n;}return(0,i.__extends)(e,t),e.prototype.getLayout=function(){var t=this.get("layout");return t?"function"==typeof t?t:(t.type||(t.type="dendrogram"),t.direction||(t.direction="indented"===t.type?"LR":"TB"),t.radial)?function(e){var n=o.default[t.type](e,t);return l(n),n;}:function(e){return o.default[t.type](e,t);}:null;},e.indexOfChild=function(t,e){var n=-1;return(0,a.each)(t,function(t,r){if(e===t.id)return n=r,!1;}),n;},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.animate=!0,e;},e.prototype.innerAddChild=function(t,e,n){var r=this,i=t.data;i&&(i.x=t.x,i.y=t.y,i.depth=t.depth);var o=r.addItem("node",i,!1);if(e){if(o.set("parent",e),n){var s=e.get("originAttrs");if(s)o.set("originAttrs",s);else{var u=e.getModel();o.set("originAttrs",{x:u.x,y:u.y});}}var c=e.get("children");c?c.push(o):e.set("children",[o]),r.addItem("edge",{source:e.get("id"),target:o.get("id"),id:"".concat(e.get("id"),":").concat(o.get("id"))},!1);}return(0,a.each)(t.children||[],function(t){r.innerAddChild(t,o,n);}),r.emit("afteraddchild",{item:o,parent:e}),o;},e.prototype.innerUpdateChild=function(t,n,r){var i,o,s=this,u=s.findById(t.id);if(!u){s.innerAddChild(t,n,r);return;}(0,a.each)(t.children||[],function(t){s.innerUpdateChild(t,u,r);});var c=u.get("children");if(c&&c.length>0)for(var l=c.length-1;l>=0;l--){var f=c[l].getModel();-1===e.indexOfChild(t.children||[],f.id)&&(s.innerRemoveChild(f.id,{x:t.x,y:t.y},r),c.splice(l,1));}u.get("originAttrs")&&(i=u.get("originAttrs").x,o=u.get("originAttrs").y);var d=u.getModel();r&&u.set("originAttrs",{x:d.x,y:d.y}),u.set("model",Object.assign(d,t.data)),(i!==t.x||o!==t.y)&&u.updatePosition({x:t.x,y:t.y});},e.prototype.innerRemoveChild=function(t,e,n){var r=this,i=r.findById(t);if(i){if((0,a.each)(i.get("children"),function(t){r.innerRemoveChild(t.getModel().id,e,n);}),n){var o=i.getModel();i.set("to",e),i.set("originAttrs",{x:o.x,y:o.y}),r.get("removeList").push(i);}else r.removeItem(i,!1);}},e.prototype.changeData=function(t,e){void 0===e&&(e=!0);var n=this;this.getNodes().map(function(t){return n.clearItemStates(t);}),this.getEdges().map(function(t){return n.clearItemStates(t);}),e&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.get("originData"),after:t||n.get("data")}),t?(n.data(t),n.render(!1)):n.layout(this.get("fitView"));},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon"),this.updateLayout(t);},e.prototype.updateLayout=function(t,e,n,r){if(void 0===r&&(r=!0),!t){console.warn("layout cannot be null");return;}if(r&&this.get("enabledStack")&&this.pushStack("layout",{before:this.get("layout"),after:t}),this.set("layout",t),this.set("layoutMethod",this.getLayout()),this.layout(),e){var i=n;i||(i="begin"===e?{x:0,y:0}:{x:this.getWidth()/2,y:this.getHeight()/2}),i=this.getPointByCanvas(i.x,i.y);var o=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];i.x=i.x*o[0]+o[6],i.y=i.y*o[0]+o[7];var a=this.getGroup().getCanvasBBox(),s=a.minX,u=a.maxX,c=a.minY,l={x:(s+u)/2,y:(c+a.maxY)/2};"begin"===e&&(l.x=s,l.y=c),this.translate(i.x-l.x,i.y-l.y);}},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon"),this.layout(t);},e.prototype.layout=function(t){var e=this,n=this.get("data"),r=this.get("layoutMethod"),i=this.get("layout"),o=n;if(null==i?void 0:i.excludeInvisibles){n=(0,a.clone)(this.get("data"));var s={};f(n,function(t){var n=t.children;if(!(null==n?void 0:n.length))return!0;for(var r=n.length-1;r>=0;r--){var i=e.findById(n[r].id);(i?i.isVisible():!1!==n[r].visible)||(s[t.id]=s[t.id]||[],s[t.id].push({idx:r,child:n.splice(r,1)[0]}));}}),f(o=r?r(n,this.get("layout")):n,function(t){var e=s[t.id];if(null==e?void 0:e.length)for(var n=e.length-1;n>=0;n--){var r=e[n],i=r.idx,o=r.child;t.children.splice(i,0,o);}});}else o=r?r(n,this.get("layout")):n;var u=this.get("animate");this.emit("beforerefreshlayout",{data:n,layoutData:o}),this.emit("beforelayout"),this.innerUpdateChild(o,void 0,u),t&&this.get("viewController").fitView(),u?this.layoutAnimate(o):(this.refresh(),this.paint()),this.emit("afterrefreshlayout",{data:n,layoutData:o}),this.emit("afterlayout");},e.prototype.addChild=function(t,e,n){void 0===n&&(n=!0),this.emit("beforeaddchild",{model:t,parent:e}),(0,a.isString)(e)||(e=e.get("id"));var r=this.findDataById(e);r&&(r.children||(r.children=[]),r.children.push(t),this.findById(e).refresh(),this.changeData(void 0,n));},e.prototype.updateChildren=function(t,e,n){void 0===n&&(n=!0);var r=this.findById(e);if(!e||!r){console.warn("Update children failed! There is no node with id '".concat(e,"'"));return;}this.findDataById(e).children=t,r.refresh(),this.changeData(void 0,n);},e.prototype.updateChild=function(t,n,r){if(void 0===r&&(r=!0),!n||!this.findById(n)){this.changeData(t,r);return;}var i=this.findDataById(n),o=this.findById(t.id);if(i.children||(i.children=[]),o){var a=e.indexOfChild(i.children,t.id);a>-1&&(i.children[a]=t);}else i.children.push(t);var s=this.findById(n);null==s||s.refresh(),this.changeData(void 0,r);},e.prototype.removeChild=function(t,n){void 0===n&&(n=!0);var r,i=this.findById(t);if((r=i?null==i?void 0:i.get("parent"):this.getNodes().find(function(e){return!!(e.getModel().children||[]).find(function(e){return e.id===t;});}))&&!r.destroyed){var o=r.get("id"),a=this.findDataById(o),s=a&&a.children||[],u=e.indexOfChild(s,t);s.splice(u,1),r.refresh();}this.changeData(void 0,n);},e.prototype.findDataById=function(t,e){var n=this;if(e||(e=n.get("data")),t===e.id)return e;var r=null;return(0,a.each)(e.children||[],function(e){return e.id===t?(r=e,!1):!(r=n.findDataById(t,e))&&void 0;}),r;},e.prototype.layoutAnimate=function(t,e){var n=this,r=this.get("animateCfg");n.emit("beforeanimate",{data:t}),n.getEdges().forEach(function(t){var e=t.get("model");e.sourceAnchor||(e.sourceAnchor=t.get("sourceAnchorIndex"));}),this.get("canvas").animate(function(r){f(t,function(i){var o=n.findById(i.id);if(o){var a=o.get("originAttrs"),s=o.get("model");if(a||(a={x:s.x,y:s.y},o.set("originAttrs",a)),e){var u=e(o,r,a,t);o.set("model",Object.assign(s,u));}else s.x=a.x+(i.x-a.x)*r,s.y=a.y+(i.y-a.y)*r;}return!0;}),(0,a.each)(n.get("removeList"),function(t){var e=t.getModel(),n=t.get("originAttrs"),i=t.get("to");e.x=n.x+(i.x-n.x)*r,e.y=n.y+(i.y-n.y)*r;}),n.refreshPositions();},{duration:r.duration,easing:r.ease,callback:function(){(0,a.each)(n.getNodes(),function(t){t.set("originAttrs",null);}),(0,a.each)(n.get("removeList"),function(t){n.removeItem(t,!1);}),n.set("removeList",[]),r.callback&&r.callback(),n.emit("afteranimate",{data:t});},delay:r.delay});},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1;},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating;},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this.get("data");if(!e||!(0,a.isObject)(e)||!Object.keys(e).length)throw Error("data must be defined first");this.clear(),t&&this.get("enabledStack")&&this.clearStack(),this.emit("beforerender"),this.layout(this.get("fitView")),this.emit("afterrender");},e.prototype.save=function(){return this.get("data");},e.prototype.data=function(e){t.prototype.data.call(this,e),this.set("originData",(0,u.deepClone)(e));},e;}(c.default);},cc6c61ec:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return g;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("9793154b"),a=r._(n("08e84bc0")),s=n("d3e56c5a"),u=r._(n("4b8c3fdf")),c=r._(n("41d8b444")),l=r._(n("75255c5a")),f=r._(n("1781def1")),d=r._(n("3187df38")),h=i._(n("da2dddeb"));function g(t,e){var n,r=typeof e;return null==e||"boolean"===r?(0,d.default)(e):("number"===r?c.default:"string"===r?(n=(0,o.color)(e))?(e=n,a.default):f.default:e instanceof o.color?a.default:e instanceof Date?u.default:(0,h.isNumberArray)(e)?h.default:Array.isArray(e)?s.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?l.default:c.default)(t,e);}},cc6f6e29:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("1bfab17d")),s=n("7048382e"),u=n("6495a352"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0});},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),a=!1,u=["x","y","width","height","radius"];(0,o.each)(e||r,function(t,e){-1===u.indexOf(e)||a?-1===u.indexOf(e)&&s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t):(i.setAttribute("d",n._assembleRect(r)),a=!0);});},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var s=(0,u.parseRadius)(a);return(0,o.isArray)(a)?1===a.length?s.r1=s.r2=s.r3=s.r4=a[0]:2===a.length?(s.r1=s.r3=a[0],s.r2=s.r4=a[1]):3===a.length?(s.r1=a[0],s.r2=s.r4=a[1],s.r3=a[2]):(s.r1=a[0],s.r2=a[1],s.r3=a[2],s.r4=a[3]):s.r1=s.r2=s.r3=s.r4=a,[["M "+(e+s.r1)+","+n],["l "+(r-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(i-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-r)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-i)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]].join(" ");},e;}(a.default);},ccc4dfa3:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return i;},getInDegree:function(){return o;},getOutDegree:function(){return a;}});var r=function(t){var e={},n=t.nodes,r=t.edges;return(void 0===n?[]:n).forEach(function(t){e[t.id]={degree:0,inDegree:0,outDegree:0};}),(void 0===r?[]:r).forEach(function(t){e[t.source].degree++,e[t.source].outDegree++,e[t.target].degree++,e[t.target].inDegree++;}),e;},i=r,o=function(t,e){return r(t)[e]?r(t)[e].inDegree:0;},a=function(t,e){return r(t)[e]?r(t)[e].outDegree:0;};},cd02f465:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"finalizeSegment",{enumerable:!0,get:function(){return i;}});var r=n("7a329456");function i(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),i=t.data;i.length>=r.paramsCount[n]&&("m"===n&&i.length>2?(t.segments.push([e].concat(i.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(i.splice(0,r.paramsCount[n]))),r.paramsCount[n]););}},cd05318e:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("ee6934bf"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e;}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=(0,o.calBase)(n,this.max),i=(0,o.calBase)(n,this.min),a=e*(r-i)+i;return Math.pow(a,n)*(a>=0?1:-1);},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0;},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return((0,o.calBase)(r,t)-(0,o.calBase)(r,n))/((0,o.calBase)(r,e)-(0,o.calBase)(r,n));},e;}(r._(n("64727459")).default);},cd262dfb:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getDrawDirection",{enumerable:!0,get:function(){return i;}});var r=n("3fb1326f");function i(t){return(0,r.getPathArea)(t)>=0;}},cd2713ae:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.findShortestPath=e.findAllPath=void 0;var r,i=(r=n("e2fd234a"))&&r.__esModule?r:{default:r},o=n("6a4ad838");e.findShortestPath=function(t,e,n,r,o){var a=(0,i.default)(t,e,r,o),s=a.length,u=a.path,c=a.allPath;return{length:s[n],path:u[n],allPath:c[n]};},e.findAllPath=function(t,e,n,r){if(e===n)return[[e]];var i,a=t.edges,s=void 0===a?[]:a,u=[e],c=((i={})[e]=!0,i),l=[],f=[],d=r?(0,o.getNeighbors)(e,s,"target"):(0,o.getNeighbors)(e,s);for(l.push(d);u.length>0&&l.length>0;){var h=l[l.length-1];if(h.length){var g=h.shift();g&&(u.push(g),c[g]=!0,d=r?(0,o.getNeighbors)(g,s,"target"):(0,o.getNeighbors)(g,s),l.push(d.filter(function(t){return!c[t];})));}else{var p=u.pop();c[p]=!1,l.pop();continue;}if(u[u.length-1]===n){var v=u.map(function(t){return t;});f.push(v);var p=u.pop();c[p]=!1,l.pop();}}return f;};},cd662710:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{ChildrenPlugin:function(){return u.default;},Easing:function(){return o.Easing;},PathMotionPlugin:function(){return c.default;},Plugins:function(){return o.Plugins;},SvgDrawPlugin:function(){return l.default;},SvgMorphPlugin:function(){return f.default;},Ticker:function(){return o.Ticker;},TweenOneGroup:function(){return s.default;},default:function(){return d;}});var r=n("d1751d7c"),i=n("777fffbe"),o=n("c09d83c7"),a=i._(n("fbad45a8")),s=i._(n("a90fd71b")),u=i._(n("4e322f45")),c=i._(n("17e2df1a")),l=i._(n("42aa62cf")),f=i._(n("fc209853"));r._(n("660b1875"),e),a.default.plugins=o.Plugins,a.default.ticker=o.Ticker,a.default.easing=o.Easing;var d=a.default;},cda1c657:function(t,e,n){"use strict";var r={linear:function(t,e,n,r){return(n-e)*t/r+e;},easeInQuad:function(t,e,n,r){return(n-e)*(t/=r)*t+e;},easeOutQuad:function(t,e,n,r){return-(n-e)*(t/=r)*(t-2)+e;},easeInOutQuad:function(t,e,n,r){var i=n-e;return(t/=r/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e;},easeInCubic:function(t,e,n,r){return(n-e)*(t/=r)*t*t+e;},easeOutCubic:function(t,e,n,r){return(n-e)*((t=t/r-1)*t*t+1)+e;},easeInOutCubic:function(t,e,n,r){var i=n-e;return(t/=r/2)<1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e;},easeInQuart:function(t,e,n,r){return(n-e)*(t/=r)*t*t*t+e;},easeOutQuart:function(t,e,n,r){return-(n-e)*((t=t/r-1)*t*t*t-1)+e;},easeInOutQuart:function(t,e,n,r){var i=n-e;return(t/=r/2)<1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e;},easeInQuint:function(t,e,n,r){return(n-e)*(t/=r)*t*t*t*t+e;},easeOutQuint:function(t,e,n,r){return(n-e)*((t=t/r-1)*t*t*t*t+1)+e;},easeInOutQuint:function(t,e,n,r){var i=n-e;return(t/=r/2)<1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e;},easeInSine:function(t,e,n,r){var i=n-e;return-i*Math.cos(t/r*(Math.PI/2))+i+e;},easeOutSine:function(t,e,n,r){return(n-e)*Math.sin(t/r*(Math.PI/2))+e;},easeInOutSine:function(t,e,n,r){return-(n-e)/2*(Math.cos(Math.PI*t/r)-1)+e;},easeInExpo:function(t,e,n,r){return 0==t?e:(n-e)*Math.pow(2,10*(t/r-1))+e;},easeOutExpo:function(t,e,n,r){var i=n-e;return t==r?e+i:i*(-Math.pow(2,-10*t/r)+1)+e;},easeInOutExpo:function(t,e,n,r){var i=n-e;return 0===t?e:t===r?e+i:(t/=r/2)<1?i/2*Math.pow(2,10*(t-1))+e:i/2*(-Math.pow(2,-10*--t)+2)+e;},easeInCirc:function(t,e,n,r){return-(n-e)*(Math.sqrt(1-(t/=r)*t)-1)+e;},easeOutCirc:function(t,e,n,r){return(n-e)*Math.sqrt(1-(t=t/r-1)*t)+e;},easeInOutCirc:function(t,e,n,r){var i=n-e;return(t/=r/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+e:i/2*(Math.sqrt(1-(t-=2)*t)+1)+e;},easeInElastic:function(t,e,n,r){var i,o,a,s=n-e;return(a=1.70158,o=0,i=s,0===t)?e:1==(t/=r)?e+s:(o||(o=.3*r),i<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t*r-a)/o))+e);},easeOutElastic:function(t,e,n,r){var i,o,a,s=n-e;return(a=1.70158,o=0,i=s,0===t)?e:1==(t/=r)?e+s:(o||(o=.3*r),i<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),i*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t*r-a)/o)+s+e);},easeInOutElastic:function(t,e,n,r){var i,o,a,s=n-e;return(a=1.70158,o=0,i=s,0===t)?e:2==(t/=r/2)?e+s:(o||(o=.3*1.5*r),i<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),t<1)?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t*r-a)/o))+e:i*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t*r-a)/o)*.5+s+e;},easeInBack:function(t,e,n,r,i){return void 0===i&&(i=1.70158),(n-e)*(t/=r)*t*((i+1)*t-i)+e;},easeOutBack:function(t,e,n,r,i){return void 0===i&&(i=1.70158),(n-e)*((t=t/r-1)*t*((i+1)*t+i)+1)+e;},easeInOutBack:function(t,e,n,r,i){var o=n-e;return(void 0===i&&(i=1.70158),(t/=r/2)<1)?o/2*(t*t*(((i*=1.525)+1)*t-i))+e:o/2*((t-=2)*t*(((i*=1.525)+1)*t+i)+2)+e;},easeInBounce:function(t,e,n,i){var o,a=n-e;return o=r.easeOutBounce(i-t,0,a,i),a-o+e;},easeOutBounce:function(t,e,n,r){var i=n-e;return(t/=r)<1/2.75?7.5625*t*t*i+e:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e;},easeInOutBounce:function(t,e,n,i){var o=n-e;return t<i/2?.5*r.easeInBounce(2*t,0,o,i)+e:.5*r.easeOutBounce(2*t-i,0,o,i)+.5*o+e;}};t.exports=r;},cdb4f6ea:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("528465ee")),s=r._(n("a9d43e9b")),u=n("652a6d72"),c={itemType:"combo",shapeType:"single-combo",labelPosition:"top",refX:a.default.comboLabel.refX,refY:a.default.comboLabel.refY,options:{style:{stroke:a.default.defaultCombo.style.stroke,fill:a.default.defaultCombo.style.fill,lineWidth:a.default.defaultCombo.style.lineWidth},labelCfg:{style:{fill:a.default.comboLabel.style.fill,fontSize:a.default.comboLabel.style.fontSize,fontFamily:a.default.windowFontFamily}},stateStyles:(0,i.__assign)({},a.default.comboStateStyles),collapsedSubstituteIcon:{show:!1,img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RsnHRqLfJn4AAAAAAAAAAAAAARQnAQ"}},getSize:function(t){var e=(0,o.clone)(t.size||this.options.size||a.default.defaultCombo.size);return(0,o.isArray)(e)&&1===e.length&&(e=[e[0],e[0]]),(0,o.isArray)(e)||(e=[e,e]),e;},getLabelStyleByPosition:function(t,e){var n,r=e.position||this.labelPosition,i=t.style,a=t.padding||this.options.padding;(0,o.isArray)(a)&&(a=Math.max.apply(Math,a));var s=e.refX,u=e.refY;(0,o.isNil)(s)&&(s=this.refX),(0,o.isNil)(u)&&(u=this.refY);var c=this.getSize(t),l=(Math.max(i.r,c[0]/2)||c[0]/2)+a;switch(r){case"top":n={x:0,y:-l-u,textBaseline:"bottom",textAlign:"center"};break;case"bottom":n={x:0,y:l+u,textBaseline:"bottom",textAlign:"center"};break;case"left":n={x:-l+s,y:0,textAlign:"left"};break;case"center":n={x:0,y:0,text:t.label,textAlign:"center"};break;default:n={x:l+s,y:0,textAlign:"right"};}return n.text=t.label,n;},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t);return e.addShape(n,{attrs:r,draggable:!0,name:"combo-shape"});},updateCollapsedIcon:function(t,e,n){var r=t.collapsed,o=t.collapsedSubstituteIcon,a=Object.assign({},this.options.collapsedSubstituteIcon,void 0===o?{}:o),s=a.show,u=a.img,c=a.width,l=a.height,f=e.getContainer(),d=f.find(function(t){return"combo-collapsed-substitute-icon"===t.get("name");}),h=d&&!d.destroyed,g=e.get("keyShape");if(r&&s){if(h)d.show();else{var p={width:c||2*n.r||n.width,height:l||2*n.r||n.height};d=f.addShape("image",{attrs:(0,i.__assign)({img:u,x:-p.width/2,y:-p.height/2},p),name:"combo-collapsed-substitute-icon",draggable:!0});}g.hide();}else h&&(d.hide(),g.show());},updateShape:function(t,e,n){var r=this,o=e.get("keyShape");e.get("animate")&&(void 0===t.animate?this.options.animate:t.animate)&&o.animate?(t.collapsed||this.updateCollapsedIcon(t,e,n),o.animate(n,{duration:200,easing:"easeLinear",callback:function(){t.collapsed&&r.updateCollapsedIcon(t,e,n);}})):(o.attr((0,i.__assign)({},n)),this.updateCollapsedIcon(t,e,n)),this.updateLabel(t,e);}},l=(0,i.__assign)((0,i.__assign)({},u.shapeBase),c);s.default.registerCombo("single-combo",l);},cdd0dc1d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=Math.PI/180,i=function(t){return r*t;};},cdecc8a2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"gpuDetector",{enumerable:!0,get:function(){return r;}});var r=function t(){return"undefined"==typeof window||"undefined"==typeof document?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var t=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(t.getContext("webgl")||t.getContext("experimental-webgl")));}catch(t){return!1;}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var t=document.createElement("div");return t.id="webgl-error-message",t.style.fontFamily="monospace",t.style.fontSize="13px",t.style.fontWeight="normal",t.style.textAlign="center",t.style.background="#fff",t.style.color="#000",t.style.padding="1.5em",t.style.width="400px",t.style.margin="5em auto 0",this.webgl||(t.innerHTML=window.WebGLRenderingContext?'Your graphics card does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" rel="external nofollow" rel="external nofollow" style="color:#000">WebGL</a>.<br />\nFind out how to get it <a href="http://get.webgl.org/" rel="external nofollow" rel="external nofollow" style="color:#000">here</a>.':'Your browser does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" rel="external nofollow" rel="external nofollow" style="color:#000">WebGL</a>.<br/>\nFind out how to get it <a href="http://get.webgl.org/" rel="external nofollow" rel="external nofollow" style="color:#000">here</a>.'),t;},addGetWebGLMessage:function(e){var n=void 0!==(e=e||{}).parent?e.parent:document.body,r=void 0!==e.id?e.id:"oldie",i=t().getWebGLErrorMessage();i.id=r,n.appendChild(i);}};};},cdede2eb:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=r._(n("78294f9e")),o=r._(n("21422ae0")),a=r._(n("5a7dbed4")),s=r._(n("ad8b3c28")),u=n("f2fbe439"),c=(0,i.default)(function t(e){var n=this;(0,o.default)(this,t),this.props=void 0,this.id=void 0,this.children=[],this.totalTime=0,this.totalTimeRegion=0,this.childTotalTime=0,this.childRegionTotalTime=0,this.prevMoment=void 0,this.progressTime=0,this.progressMoment=-1,this.startMoment=0,this.startTime=0,this.repeatNum=0,this.mode="onTimelineStart",this.pausedState=void 0,this.reverseState=void 0,this.root=void 0,this.parent=void 0,this.regionStartTime=0,this.regionEndTime=void 0,this.onChangeChild=void 0,this.onChangeTimeline=void 0,this.init=function(){for(var t=n.props,e=t.reverse,r=t.animation,i=t.moment,o=(0,u.dataToArray)(r),a=0;a<o.length;a++){var c=o[a];"set"===c.type&&(c.duration=0);var l=new s.default(c);l.index=a;var f=a?(0,u.getAnimatePos)(c,o[a-1]):0;c.appearTo=f,l.appearTo=f,n.addChild(l);}n.render({time:(e?n.totalTime:0)+n.startTime,elapsed:16.67}),n.totalTime||n.render({time:(e?n.totalTime:0)+n.startTime,elapsed:16.67}),i?n.goto(i):n.play();},this.addChild=function(t){t.parent=n,t.root=n.root,-1===n.children.indexOf(t)&&(n.children.push(t),n.setTotalTime());},this.setTotalTime=function(){n.childTotalTime=0,n.childRegionTotalTime=0;for(var t=0;t<n.children.length;t++){var e=n.children[t];if(e.appearTo!==n.childTotalTime){var r=e.appearTo+e.totalTime;r>n.childTotalTime&&(n.childTotalTime=r,n.childRegionTotalTime=r);}else n.childTotalTime+=e.totalTime,n.childRegionTotalTime+=e.totalTime;}n.regionStartTime&&(n.childRegionTotalTime-=n.regionStartTime),n.regionEndTime&&(n.childRegionTotalTime=n.regionEndTime-n.regionStartTime);var i=n.props,o=i.repeat,a=void 0===o?0:o,s=i.repeatDelay,u=void 0===s?0:s,c=i.delay;n.totalTime=-1===a?Number.MAX_VALUE:c+n.childTotalTime*(a+1)+u*a,n.totalTimeRegion=-1===a?Number.MAX_VALUE:c+n.childRegionTotalTime*(a+1)+u*a;},this.setStartTimeOrMoment=function(t){n.startTime=a.default.time,n.startMoment=t||n.progressMoment;},this.reRenderCall=function(){n.render({time:n.startTime,elapsed:a.default.elapsed||a.default.frameFPS});},this.play=function(t){var e,r;t?null===(r=n.parent)||void 0===r||r.updateTickerState():null===(e=n.parent)||void 0===e||e.addChild(n);},this.paused=function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];n.pausedState=t,n.setStartTimeOrMoment(),n.play(t);},this.reverse=function(t){n.reverseState=t,n.setStartTimeOrMoment(),n.play(n.pausedState);},this.goto=function(t,e){var r=t-n.regionStartTime;n.startTime=a.default.time,n.startMoment=r>n.totalTime?n.totalTime:r,n.progressMoment=n.startMoment,n.progressTime=r,n.play(n.pausedState),n.reRenderCall(),!!e!==n.pausedState&&n.paused(e);},this.kill=function(t){if("number"==typeof t)n.paused(),delete n.children[t],n.setTotalTime(),n.paused(!1);else{var e;n.children=[],null===(e=n.parent)||void 0===e||e.removeChild(n);}},this.onChange=function(t){t.timelineMoment=n.progressMoment,n.onChangeChild(t);},this.render=function(t){var e=t.time,r=t.elapsed||a.default.frameFPS||0,i=n.totalTime,o=n.totalTimeRegion,s=n.childTotalTime,u=n.childRegionTotalTime,c=n.children,l=n.props,f=n.startTime,d=n.reverseState,h=n.pausedState,g=n.startMoment,p=n.onChangeTimeline,v=n.parent,m=n.root,y=n.prevMoment,b=n.regionStartTime,x=l.repeatDelay,_=void 0===x?0:x,E=l.yoyo,w=l.delay,M=l.repeat,C=void 0===M?0:M;C=-1===C?Number.MAX_VALUE:C;var A=e-f-w,S=d?g-A:A+g;if(!(S<-r)){var D=S<0?0:S;D=D>i?i:D,D=g<b?S:D,D=g>o?g:D;var I=C?Math.floor(D/(u+_)):0,T=D-(u+_)*(I=C&&I>C?C:I),k=!!(E&&I%2);T=b+(T=k?u-T:T);var F=d?!k:k;if(n.mode="onTimelineUpdate","number"!=typeof y&&(n.mode="onTimelineStart"),D>=o-w&&"number"==typeof y&&(n.mode="onTimelineComplete"),I!==n.repeatNum&&(n.mode="onTimelineRepeat",D>s*I&&D<s*I+r)){for(var N=F?0:c.length-1;F?N<=c.length-1:N>=0;F?N++:N--){var O=c[N];F||(O.prevMoment=void 0),O.render({moment:F?O.totalTime:0,fps:r});}p({moment:D,totalTime:i,repeat:I,mode:n.mode,targets:m.targets}),n.mode="onTimelineUpdate";}C&&(n.repeatNum=I),n.progressMoment=D,n.prevMoment=D,n.progressTime=A;for(var B=0;B<c.length;B++){var P=c[B],L=P.totalTime+P.appearTo,j=T>=P.appearTo-r&&T<L+r;if(("onComplete"!==P.mode&&T>L+r&&!k&&P.totalTime||void 0===P.mode&&!P.totalTime)&&(P.render({moment:P.totalTime,fps:r}),P.prevMoment=void 0),T<P.appearTo-r&&P.mode&&"onStart"!==P.mode&&(P.render({moment:P.appearTo,fps:r,silence:!0}),P.prevMoment=void 0,P.mode=void 0),j){var R=T<0?0:T;if(T>L&&"onComplete"===P.mode&&!k)return;R=T>L?L:T,P.render({moment:R-P.appearTo,fps:r}),L||(P.render({moment:P.totalTime,fps:r,render:!0}),P.prevMoment=void 0);}}p({moment:D,totalTime:i,repeat:I,mode:n.mode,targets:m.targets}),(h||o&&S+w>=o&&!d||d&&S+w<=0||!c.length)&&(null==v||v.removeChild(n));}},this.props=e;var r=this.props,i=r.paused,c=r.reverse;this.reverseState=c,this.pausedState=i,this.regionStartTime=e.regionStartTime||0,this.regionEndTime=e.regionEndTime;});},ce1fe40f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"paramsParser",{enumerable:!0,get:function(){return r;}});var r={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};},ce61e899:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("bd41dba3")),i=function(t){var e=0,n=0,i=0,o=0;return(0,r.default)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o};};},ce8e694a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r=n("22b52967"),i=u(n("f59804c5")),o=u(n("ed5297b5")),a=n("c61fb74f"),s=n("00077d25");function u(t){return t&&t.__esModule?t:{default:t};}var c=function(t,e,n,r){for(var i=e.length,o=2*r,a=0,s=0;s<i;s++)for(var u=t[s].clusterId,c=0;c<i;c++)u===t[c].clusterId&&(a+=(e[s][c]||0)-(n[s]||0)*(n[c]||0)/o);return 1/o*a;},l=function(t,e){void 0===t&&(t=[]);for(var n=t.length,r=new o.default([]),i=0;i<n;i++)r=r.add(new o.default(e[i]));var a=r.avg(n);a.normalize();for(var s=0,i=0;i<n;i++){var u=new o.default(e[i]);s+=u.squareEuclideanDistance(a);}var c=[];t.forEach(function(){c.push([]);});for(var i=0;i<n;i++){var u=new o.default(e[i]);t[i].clusterInertial=0;for(var l=0;l<n;l++){if(i===l){c[i][l]=0;continue;}var f=new o.default(e[l]);c[i][l]=u.squareEuclideanDistance(f),t[i].clusterInertial+=c[i][l];}}for(var d=0,h=2*n*s,i=0;i<n;i++)for(var g=t[i].clusterId,l=0;l<n;l++){var p=t[l].clusterId;i!==l&&g===p&&(d+=t[i].clusterInertial*t[l].clusterInertial/Math.pow(h,2)-c[i][l]/h);}return Number(d.toFixed(4));};e.default=function(t,e,n,o,u,f,d,h,g){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===o&&(o=1e-4),void 0===u&&(u=!1),void 0===f&&(f=void 0),void 0===d&&(d=[]),void 0===h&&(h=["id"]),void 0===g&&(g=1);var p=t.nodes,v=void 0===p?[]:p,m=t.edges,y=void 0===m?[]:m,b=[];if(u){v.forEach(function(t,e){t.properties=t.properties||{},t.originIndex=e;});var x=[];v.every(function(t){return t.hasOwnProperty("nodeType");})&&(x=Array.from(new Set(v.map(function(t){return t.nodeType;}))),v.forEach(function(t){t.properties.nodeType=x.findIndex(function(e){return e===t.nodeType;});}));var _=(0,a.getAllProperties)(v,f);b=(0,s.oneHot)(_,d,h);}var E=1,w={},M={};v.forEach(function(t,e){var n=String(E++);t.clusterId=n,w[n]={id:n,nodes:[t]},M[t.id]={node:t,idx:e};});var C=(0,i.default)(t,e),A=[],S={},D=0;C.forEach(function(t,e){var n=0,r=v[e].id;S[r]={},t.forEach(function(t,e){if(t){n+=t;var i=v[e].id;S[r][i]=t,D+=t;}}),A.push(n);}),D/=2;for(var I=1/0,T=1/0,k=0,F=[],N={};;){I=u&&v.every(function(t){return t.hasOwnProperty("properties");})?c(v,C,A,D)+l(v,b)*g:c(v,C,A,D),0===k&&(T=I,F=v,N=w);var O=I>0&&I>T&&I-T<o;if(I>T&&(F=v.map(function(t){return{node:t,clusterId:t.clusterId};}),N=(0,r.clone)(w),T=I),O||k>100)break;k++,Object.keys(w).forEach(function(t){var e=0;y.forEach(function(r){var i=r.source,o=r.target,a=M[i].node.clusterId,s=M[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1);}),w[t].sumTot=e;}),v.forEach(function(t,e){var r,i=w[t.clusterId],o=0,a=A[e]/(2*D),s=0,c=i.nodes;c.forEach(function(t){var n=M[t.id].idx;s+=C[e][n]||0;});var f=s-i.sumTot*a,d=c.filter(function(e){return e.id!==t.id;}),h=[];d.forEach(function(t,e){h[e]=b[t.originIndex];});var p=l(d,b)*g;if(Object.keys(S[t.id]).forEach(function(n){var i=M[n].node.clusterId;if(i!==t.clusterId){var s=w[i],c=s.nodes;if(c&&c.length){var d=0;c.forEach(function(t){var n=M[t.id].idx;d+=C[e][n]||0;});var h=d-s.sumTot*a,v=c.concat([t]),m=[];v.forEach(function(t,e){m[e]=b[t.originIndex];});var y=l(v,b)*g,x=h-f;u&&(x=h+y-(f+p)),x>o&&(o=x,r=s);}}}),o>0){r.nodes.push(t);var v=t.clusterId;t.clusterId=r.id;var m=i.nodes.indexOf(t);i.nodes.splice(m,1);var x=0,_=0;y.forEach(function(t){var e=t.source,i=t.target,o=M[e].node.clusterId,a=M[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(x+=t[n]||1),(o===v&&a!==v||a===v&&o!==v)&&(_+=t[n]||1);}),r.sumTot=x,i.sumTot=_;}});}var B={},P=0;Object.keys(N).forEach(function(t){var e=N[t];if(!e.nodes||!e.nodes.length){delete N[t];return;}var n=String(P+1);n!==t&&(e.id=n,e.nodes=e.nodes.map(function(t){return{id:t.id,clusterId:n};}),N[n]=e,B[t]=n,delete N[t],P++);}),F.forEach(function(t){var e=t.node,n=t.clusterId;e&&(e.clusterId=n,e.clusterId&&B[e.clusterId]&&(e.clusterId=B[e.clusterId]));});var L=[],j={};y.forEach(function(t){var e=t.source,r=t.target,i=t[n]||1,o=M[e].node.clusterId,a=M[r].node.clusterId;if(o&&a){var s="".concat(o,"---").concat(a);if(j[s])j[s].weight+=i,j[s].count++;else{var u={source:o,target:a,weight:i,count:1};j[s]=u,L.push(u);}}});var R=[];return Object.keys(N).forEach(function(t){R.push(N[t]);}),{clusters:R,clusterEdges:L};};},ceb3e3d7:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r={" ":.3329986572265625,a:.5589996337890625,A:.6569992065429687,b:.58599853515625,B:.6769989013671875,c:.5469985961914062,C:.7279998779296875,d:.58599853515625,D:.705999755859375,e:.554998779296875,E:.63699951171875,f:.37299957275390627,F:.5769989013671875,g:.5909988403320312,G:.7479995727539063,h:.555999755859375,H:.7199996948242188,i:.255999755859375,I:.23699951171875,j:.26699981689453123,J:.5169998168945312,k:.5289993286132813,K:.6899993896484375,l:.23499908447265624,L:.5879989624023437,m:.854998779296875,M:.8819992065429687,n:.5589996337890625,N:.7189987182617188,o:.58599853515625,O:.7669998168945312,p:.58599853515625,P:.6419998168945312,q:.58599853515625,Q:.7669998168945312,r:.3649993896484375,R:.6759994506835938,s:.504998779296875,S:.6319992065429687,t:.354998779296875,T:.6189987182617187,u:.5599990844726562,U:.7139999389648437,v:.48199920654296874,V:.6389999389648438,w:.754998779296875,W:.929998779296875,x:.5089996337890625,X:.63699951171875,y:.4959991455078125,Y:.66199951171875,z:.48699951171875,Z:.6239990234375,0:.6,1:.40099945068359377,2:.6,3:.6,4:.6,5:.6,6:.6,7:.5469985961914062,8:.6,9:.6,"[":.3329986572265625,"]":.3329986572265625,",":.26399993896484375,".":.26399993896484375,";":.26399993896484375,":":.26399993896484375,"{":.3329986572265625,"}":.3329986572265625,"\\":.5,"|":.19499969482421875,"=":.604998779296875,"+":.604998779296875,"-":.604998779296875,_:.5,"`":.3329986572265625," ~":.8329986572265625,"!":.3329986572265625,"@":.8579986572265625,"#":.6,$:.6,"%":.9699996948242188,"^":.517999267578125,"&":.7259994506835937,"*":.505999755859375,"(":.3329986572265625,")":.3329986572265625,"<":.604998779296875,">":.604998779296875,"/":.5,"?":.53699951171875};},cee2bf5e:function(t,e,n){"use strict";function r(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16);})(t);}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},cf034cb6:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.feasibleTreeWithLayer=e.feasibleTree=void 0;var r=n("7dd60bd7"),i=n("dfdb2ac4"),o=n("62734055"),a=function(t){var e,n,i=new o.Graph({directed:!1}),a=t.nodes()[0],u=t.nodeCount();for(i.setNode(a,{});s(i,t)<u;)e=l(i,t),n=i.hasNode(e.v)?(0,r.slack)(t,e):-(0,r.slack)(t,e),f(i,t,n);return i;};e.feasibleTree=a;var s=function(t,e){var n=function(i){e.nodeEdges(i).forEach(function(o){var a=o.v,s=i===a?o.w:a;t.hasNode(s)||(0,r.slack)(e,o)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s));});};return t.nodes().forEach(n),t.nodeCount();},u=function(t){var e,n,i=new o.Graph({directed:!1}),a=t.nodes()[0],s=t.nodes().filter(function(e){return!!t.node(e);}).length;for(i.setNode(a,{});c(i,t)<s;)e=l(i,t),n=i.hasNode(e.v)?(0,r.slack)(t,e):-(0,r.slack)(t,e),f(i,t,n);return i;};e.feasibleTreeWithLayer=u;var c=function(t,e){var n=function(i){var o;null===(o=e.nodeEdges(i))||void 0===o||o.forEach(function(o){var a=o.v,s=i===a?o.w:a;t.hasNode(s)||void 0===e.node(s).layer&&(0,r.slack)(e,o)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s));});};return t.nodes().forEach(n),t.nodeCount();},l=function(t,e){return(0,i.minBy)(e.edges(),function(n){return t.hasNode(n.v)!==t.hasNode(n.w)?(0,r.slack)(e,n):1/0;});},f=function(t,e,n){t.nodes().forEach(function(t){e.node(t).rank||(e.node(t).rank=0),e.node(t).rank+=n;});};e.default={feasibleTree:a,feasibleTreeWithLayer:u};},cf585742:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"segmentLineFactory",{enumerable:!0,get:function(){return o;}});var r=n("ed0d3524"),i=n("b0fcf145");function o(t,e,n,o,a){var s=(0,i.distanceSquareRoot)([t,e],[n,o]),u={x:0,y:0};if("number"==typeof a){if(a<=0)u={x:t,y:e};else if(a>=s)u={x:n,y:o};else{var c=(0,r.midPoint)([t,e],[n,o],a/s);u={x:c[0],y:c[1]};}}return{length:s,point:u,min:{x:Math.min(t,n),y:Math.min(e,o)},max:{x:Math.max(t,n),y:Math.max(e,o)}};}},cf639ed6:function(t,e,n){"use strict";function r(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16);})(t);}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},cf6c8813:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{catmullRom2Bezier:function(){return i.default;},parsePathString:function(){return o.default;},path2Absolute:function(){return a.default;},path2Segments:function(){return s.default;}});var r=n("777fffbe");n("f7ecdc20");var i=r._(n("d03efaa5"));n("6cb78cd4"),n("1251a8a2");var o=r._(n("130ef5a4"));n("91b69874");var a=r._(n("6c2e5376"));n("04db7c9f");var s=r._(n("bd5ea0e3"));n("68235b61");},cfce440c:function(t,e,n){"use strict";function r(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]];}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},cfee4261:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("afb67b89"),o=r._(n("b6b3d6c6"));class a extends o.default{constructor(t,e,n,r,o){(0,i.checkRange)(t,e,n,r,o),super(t,n-e+1,o-r+1),this.startRow=e,this.startColumn=r;}set(t,e,n){return this.matrix.set(this.startRow+t,this.startColumn+e,n),this;}get(t,e){return this.matrix.get(this.startRow+t,this.startColumn+e);}}},d03efaa5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("bb91afb1"),i=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i,o,a,s=!!e,u=[],c=0,l=t.length;c<l;c+=2)u.push([t[c],t[c+1]]);for(var f=function(t,e,n,i){var o,a,s,u,c,l,f,d=[],h=!!i;if(h){s=i[0],u=i[1];for(var g=0,p=t.length;g<p;g+=1){var v=t[g];s=r.vec2.min([0,0],s,v),u=r.vec2.max([0,0],u,v);}}for(var g=0,m=t.length;g<m;g+=1){var v=t[g];if(0!==g||n){if(g!==m-1||n){o=t[[g?g-1:m-1,g-1][n?0:1]],a=t[n?(g+1)%m:g+1];var y=[0,0];y=r.vec2.sub(y,a,o),y=r.vec2.scale(y,y,.4);var b=r.vec2.distance(v,o),x=r.vec2.distance(v,a),_=b+x;0!==_&&(b/=_,x/=_);var E=r.vec2.scale([0,0],y,-b),w=r.vec2.scale([0,0],y,x);l=r.vec2.add([0,0],v,E),c=r.vec2.add([0,0],v,w),c=r.vec2.min([0,0],c,r.vec2.max([0,0],a,v)),c=r.vec2.max([0,0],c,r.vec2.min([0,0],a,v)),E=r.vec2.sub([0,0],c,v),E=r.vec2.scale([0,0],E,-b/x),l=r.vec2.add([0,0],v,E),l=r.vec2.min([0,0],l,r.vec2.max([0,0],o,v)),l=r.vec2.max([0,0],l,r.vec2.min([0,0],o,v)),w=r.vec2.sub([0,0],v,l),w=r.vec2.scale([0,0],w,x/b),c=r.vec2.add([0,0],v,w),h&&(l=r.vec2.max([0,0],l,s),l=r.vec2.min([0,0],l,u),c=r.vec2.max([0,0],c,s),c=r.vec2.min([0,0],c,u)),d.push(f),d.push(l),f=c;}else l=v,d.push(f),d.push(l);}else f=v;}return n&&d.push(d.shift()),d;}(u,0,s,n),d=u.length,h=[],c=0;c<d-1;c+=1)i=f[2*c],o=f[2*c+1],a=u[c+1],h.push(["C",i[0],i[1],o[0],o[1],a[0],a[1]]);return s&&(i=f[d],o=f[d+1],a=u[0],h.push(["C",i[0],i[1],o[0],o[1],a[0],a[1]])),h;};},d0c88d8a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("4c6d310c"),i=n("22b52967"),o="click",a=["click","drag"],s=void 0,u=["shift","ctrl","control","alt","meta",void 0],c={getDefaultCfg:function(){return{trigger:o,key:s,edgeConfig:{},getEdgeConfig:void 0};},getEvents:function(){var t;return a.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=o,console.warn("Behavior create-edge \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click'\uFF0C'drag'")),this.key&&-1===u.indexOf(this.key.toLowerCase())&&(this.trigger=s,console.warn("Behavior create-edge \u7684 key \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'shift'\uFF0C'ctrl'\uFF0C'alt'\uFF0C'control'\uFF0C\u6216 undefined")),"drag"===this.trigger?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:"click"===this.trigger&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),this.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t;},onDragEnd:function(t){if(!this.key||this.keydown){var e=t.item;e&&e.getID()!==this.source&&"node"===e.getType()||this.cancelCreating({item:this.edge,x:t.x,y:t.y});}},onClick:function(t){if(!this.key||this.keydown){var e=t.item,n=this.graph,o=e.getModel(),a=this.getEdgeConfig;if(this.addingEdge&&this.edge){if(!this.shouldEnd(t,this))return;var s=void 0;s=a&&(0,i.isFunction)(a)?a({source:this.source,target:o.id},this):this.edgeConfig;var u=(0,r.__assign)({target:o.id},s);if(this.source===o.id&&(u.type="loop"),n.emit("beforecreateedge",{}),n.updateItem(this.edge,u,!1),n.get("enabledStack")){var c=(0,r.__assign)((0,r.__assign)({},this.edge.getModel()),{itemType:"edge"}),l={};l.edges=[c],n.pushStack("add",{before:{},after:l});}n.emit("aftercreateedge",{edge:this.edge}),this.edge.getKeyShape().set("capture",!0),this.edge=null,this.addingEdge=!1;}else{if(!this.shouldBegin(t,this))return;var s=void 0;s=a&&(0,i.isFunction)(a)?a({source:o.id,target:o.id},this):this.edgeConfig,this.edge=n.addItem("edge",(0,r.__assign)({source:o.id,target:o.id},s),!1),this.source=o.id,this.addingEdge=!0,this.edge.getKeyShape().set("capture",!1);}}},updateEndPoint:function(t){if(!this.key||this.keydown){this.edge&&this.edge.destroyed&&this.cancelCreating({item:this.edge});var e={x:t.x,y:t.y};if(!this.graph.findById(this.source)){this.addingEdge=!1;return;}this.addingEdge&&this.edge&&this.graph.updateItem(this.edge,{target:e},!1);}},cancelCreating:function(t){var e,n;if(!this.key||this.keydown){var r=this.graph,i=t.item;if(this.addingEdge&&(this.edge===i||(null===(n=null===(e=t.target)||void 0===e?void 0:e.isCanvas)||void 0===n?void 0:n.call(e)))){this.edge&&!this.edge.destroyed&&r.removeItem(this.edge,!1),this.edge=null,this.addingEdge=!1;return;}}},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.key.toLowerCase()?this.keydown=!0:this.keydown=!1);},onKeyUp:function(){this.addingEdge&&this.edge&&(this.graph.removeItem(this.edge,!1),this.addingEdge=!1,this.edge=null),this.keydown=!1;}};},d0f53cc8:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("856cac87")),i=n("f29fe526"),o=function(t,e,n,o){void 0===o&&(o=!0);var a,s,u,c,l,f=(void 0===(a=n)&&(a={}),s=a,u=function(){},c={},l=function(t){var e=t.next;return!c[e]&&(c[e]=!0,!0);},s.allowTraversal=a.allowTraversal||l,s.enter=a.enter||u,s.leave=a.leave||u,s),d=new r.default,h=t.edges,g=void 0===h?[]:h;d.enqueue(e);for(var p="";!d.isEmpty();)!function(){var t=d.dequeue();f.enter({current:t,previous:p}),(0,i.getNeighbors)(t,g,o?"target":void 0).forEach(function(e){f.allowTraversal({previous:p,current:t,next:e})&&d.enqueue(e);}),f.leave({current:t,previous:p}),p=t;}();};},d10f4774:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{AbstractMatrix:function(){return o.AbstractMatrix;},CHO:function(){return m.default;},CholeskyDecomposition:function(){return m.default;},EVD:function(){return v.default;},EigenvalueDecomposition:function(){return v.default;},LU:function(){return y.default;},LuDecomposition:function(){return y.default;},Matrix:function(){return o.default;},NIPALS:function(){return x.default;},Nipals:function(){return x.default;},QR:function(){return b.default;},QrDecomposition:function(){return b.default;},SVD:function(){return p.default;},SingularValueDecomposition:function(){return p.default;},WrapperMatrix1D:function(){return s.default;},WrapperMatrix2D:function(){return u.default;},correlation:function(){return g.correlation;},covariance:function(){return h.covariance;},default:function(){return o.default;},determinant:function(){return l.determinant;},inverse:function(){return c.inverse;},linearDependencies:function(){return f.linearDependencies;},pseudoInverse:function(){return d.pseudoInverse;},solve:function(){return c.solve;},wrap:function(){return a.wrap;}});var r=n("d1751d7c"),i=n("777fffbe"),o=n("852bbaa9")._(n("04480408"));r._(n("8f7b109b"),e);var a=n("e03352a2"),s=i._(n("4230714a")),u=i._(n("aac703c5")),c=n("57e9a921"),l=n("f004b2d2"),f=n("3f818bf2"),d=n("b26005cf"),h=n("c1036f95"),g=n("4e7ab584"),p=i._(n("d281459f")),v=i._(n("59e18c04")),m=i._(n("af1f45f2")),y=i._(n("83c2e0df")),b=i._(n("7712cd71")),x=i._(n("6d06ec4c"));},d1133c7e:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"segmentToCubic",{enumerable:!0,get:function(){return a;}});var r=n("445ca8fb"),i=n("3935ad87"),o=n("88d36838");function a(t,e){var n,a=t[0],s=t.slice(1).map(Number),u=s[0],c=s[1],l=e.x1,f=e.y1,d=e.x,h=e.y;switch("TQ".includes(a)||(e.qx=null,e.qy=null),a){case"M":e.x=u,e.y=c;break;case"A":return n=[l,f].concat(s),["C"].concat((0,r.arcToCubic)(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9]));case"Q":return e.qx=u,e.qy=c,n=[l,f].concat(s),["C"].concat((0,i.quadToCubic)(n[0],n[1],n[2],n[3],n[4],n[5]));case"L":return["C"].concat((0,o.lineToCubic)(l,f,u,c));case"Z":if(l===d&&f===h)return["C",l,f,d,h,d,h];return["C"].concat((0,o.lineToCubic)(l,f,d,h));}return t;}},d1ab55b2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("852bbaa9"),i=n("82084c6c"),o=r._(n("5c304557")),a={box:function(t,e,n,r){return(0,i.getBBoxByArray)([t,n],[e,r]);},length:function(t,e,n,r){return(0,i.distance)(t,e,n,r);},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r};},pointDistance:function(t,e,n,r,o,a){var s=(n-t)*(o-t)+(r-e)*(a-e);return s<0?(0,i.distance)(t,e,o,a):s>(n-t)*(n-t)+(r-e)*(r-e)?(0,i.distance)(n,r,o,a):this.pointToLine(t,e,n,r,o,a);},pointToLine:function(t,e,n,r,i,a){var s=[n-t,r-e];if(o.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(a-e)*(a-e));var u=[-s[1],s[0]];return o.normalize(u,u),Math.abs(o.dot([i-t,a-e],u));},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t);}};},d22fbd23:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("7e4a7e66")),i=function(t,e){if(!e)return[t];var n=(0,r.default)(t,e),i=[];for(var o in n)i.push(n[o]);return i;};},d262a1ac:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Timer:function(){return p;},now:function(){return h;},timer:function(){return v;},timerFlush:function(){return m;}});var r,i,o=0,a=0,s=0,u=0,c=0,l=0,f="object"==typeof performance&&performance.now?performance:Date,d="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17);};function h(){return c||(d(g),c=f.now()+l);}function g(){c=0;}function p(){this._call=this._time=this._next=null;}function v(t,e,n){var r=new p;return r.restart(t,e,n),r;}function m(){h(),++o;for(var t,e=r;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o;}function y(){c=(u=f.now())+l,o=a=0;try{m();}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,x(o);}(),c=0;}}function b(){var t=f.now(),e=t-u;e>1e3&&(l-=e,u=t);}function x(t){!o&&(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-f.now()-l)),s&&(s=clearInterval(s))):(s||(u=f.now(),s=setInterval(b,1e3)),o=1,d(y)));}p.prototype=v.prototype={constructor:p,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?h():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,x();},stop:function(){this._call&&(this._call=null,this._time=1/0,x());}};},d281459f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("04480408")),o=r._(n("aac703c5")),a=n("ca8df5f7");class s{constructor(t,e={}){let n;let r=(t=o.default.checkMatrix(t)).rows,s=t.columns,{computeLeftSingularVectors:u=!0,computeRightSingularVectors:c=!0,autoTranspose:l=!1}=e,f=!!u,d=!!c,h=!1;if(r<s){if(l){r=(n=t.transpose()).rows,s=n.columns,h=!0;let e=f;f=d,d=e;}else n=t.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");}else n=t.clone();let g=Math.min(r,s),p=Math.min(r+1,s),v=new Float64Array(p),m=new i.default(r,g),y=new i.default(s,s),b=new Float64Array(s),x=new Float64Array(r),_=new Float64Array(p);for(let t=0;t<p;t++)_[t]=t;let E=Math.min(r-1,s),w=Math.max(0,Math.min(s-2,r)),M=Math.max(E,w);for(let t=0;t<M;t++){if(t<E){v[t]=0;for(let e=t;e<r;e++)v[t]=(0,a.hypotenuse)(v[t],n.get(e,t));if(0!==v[t]){0>n.get(t,t)&&(v[t]=-v[t]);for(let e=t;e<r;e++)n.set(e,t,n.get(e,t)/v[t]);n.set(t,t,n.get(t,t)+1);}v[t]=-v[t];}for(let e=t+1;e<s;e++){if(t<E&&0!==v[t]){let i=0;for(let o=t;o<r;o++)i+=n.get(o,t)*n.get(o,e);i=-i/n.get(t,t);for(let o=t;o<r;o++)n.set(o,e,n.get(o,e)+i*n.get(o,t));}b[e]=n.get(t,e);}if(f&&t<E)for(let e=t;e<r;e++)m.set(e,t,n.get(e,t));if(t<w){b[t]=0;for(let e=t+1;e<s;e++)b[t]=(0,a.hypotenuse)(b[t],b[e]);if(0!==b[t]){b[t+1]<0&&(b[t]=0-b[t]);for(let e=t+1;e<s;e++)b[e]/=b[t];b[t+1]+=1;}if(b[t]=-b[t],t+1<r&&0!==b[t]){for(let e=t+1;e<r;e++)x[e]=0;for(let e=t+1;e<r;e++)for(let r=t+1;r<s;r++)x[e]+=b[r]*n.get(e,r);for(let e=t+1;e<s;e++){let i=-b[e]/b[t+1];for(let o=t+1;o<r;o++)n.set(o,e,n.get(o,e)+i*x[o]);}}if(d)for(let e=t+1;e<s;e++)y.set(e,t,b[e]);}}let C=Math.min(s,r+1);if(E<s&&(v[E]=n.get(E,E)),r<C&&(v[C-1]=0),w+1<C&&(b[w]=n.get(w,C-1)),b[C-1]=0,f){for(let t=E;t<g;t++){for(let e=0;e<r;e++)m.set(e,t,0);m.set(t,t,1);}for(let t=E-1;t>=0;t--)if(0!==v[t]){for(let e=t+1;e<g;e++){let n=0;for(let i=t;i<r;i++)n+=m.get(i,t)*m.get(i,e);n=-n/m.get(t,t);for(let i=t;i<r;i++)m.set(i,e,m.get(i,e)+n*m.get(i,t));}for(let e=t;e<r;e++)m.set(e,t,-m.get(e,t));m.set(t,t,1+m.get(t,t));for(let e=0;e<t-1;e++)m.set(e,t,0);}else{for(let e=0;e<r;e++)m.set(e,t,0);m.set(t,t,1);}}if(d)for(let t=s-1;t>=0;t--){if(t<w&&0!==b[t])for(let e=t+1;e<s;e++){let n=0;for(let r=t+1;r<s;r++)n+=y.get(r,t)*y.get(r,e);n=-n/y.get(t+1,t);for(let r=t+1;r<s;r++)y.set(r,e,y.get(r,e)+n*y.get(r,t));}for(let e=0;e<s;e++)y.set(e,t,0);y.set(t,t,1);}let A=C-1,S=Number.EPSILON;for(;C>0;){let t,e;for(t=C-2;t>=-1&&-1!==t;t--){let e=Number.MIN_VALUE+S*Math.abs(v[t]+Math.abs(v[t+1]));if(Math.abs(b[t])<=e||Number.isNaN(b[t])){b[t]=0;break;}}if(t===C-2)e=4;else{let n;for(n=C-1;n>=t&&n!==t;n--){let e=(n!==C?Math.abs(b[n]):0)+(n!==t+1?Math.abs(b[n-1]):0);if(Math.abs(v[n])<=S*e){v[n]=0;break;}}n===t?e=3:n===C-1?e=1:(e=2,t=n);}switch(t++,e){case 1:{let e=b[C-2];b[C-2]=0;for(let n=C-2;n>=t;n--){let r=(0,a.hypotenuse)(v[n],e),i=v[n]/r,o=e/r;if(v[n]=r,n!==t&&(e=-o*b[n-1],b[n-1]=i*b[n-1]),d)for(let t=0;t<s;t++)r=i*y.get(t,n)+o*y.get(t,C-1),y.set(t,C-1,-o*y.get(t,n)+i*y.get(t,C-1)),y.set(t,n,r);}break;}case 2:{let e=b[t-1];b[t-1]=0;for(let n=t;n<C;n++){let i=(0,a.hypotenuse)(v[n],e),o=v[n]/i,s=e/i;if(v[n]=i,e=-s*b[n],b[n]=o*b[n],f)for(let e=0;e<r;e++)i=o*m.get(e,n)+s*m.get(e,t-1),m.set(e,t-1,-s*m.get(e,n)+o*m.get(e,t-1)),m.set(e,n,i);}break;}case 3:{let e=Math.max(Math.abs(v[C-1]),Math.abs(v[C-2]),Math.abs(b[C-2]),Math.abs(v[t]),Math.abs(b[t])),n=v[C-1]/e,i=v[C-2]/e,o=b[C-2]/e,u=v[t]/e,c=b[t]/e,l=((i+n)*(i-n)+o*o)/2,h=n*o*(n*o),g=0;(0!==l||0!==h)&&(g=l<0?0-Math.sqrt(l*l+h):Math.sqrt(l*l+h),g=h/(l+g));let p=(u+n)*(u-n)+g,x=u*c;for(let e=t;e<C-1;e++){let n=(0,a.hypotenuse)(p,x);0===n&&(n=Number.MIN_VALUE);let i=p/n,o=x/n;if(e!==t&&(b[e-1]=n),p=i*v[e]+o*b[e],b[e]=i*b[e]-o*v[e],x=o*v[e+1],v[e+1]=i*v[e+1],d)for(let t=0;t<s;t++)n=i*y.get(t,e)+o*y.get(t,e+1),y.set(t,e+1,-o*y.get(t,e)+i*y.get(t,e+1)),y.set(t,e,n);if(0===(n=(0,a.hypotenuse)(p,x))&&(n=Number.MIN_VALUE),i=p/n,o=x/n,v[e]=n,p=i*b[e]+o*v[e+1],v[e+1]=-o*b[e]+i*v[e+1],x=o*b[e+1],b[e+1]=i*b[e+1],f&&e<r-1)for(let t=0;t<r;t++)n=i*m.get(t,e)+o*m.get(t,e+1),m.set(t,e+1,-o*m.get(t,e)+i*m.get(t,e+1)),m.set(t,e,n);}b[C-2]=p;break;}case 4:if(v[t]<=0&&(v[t]=v[t]<0?-v[t]:0,d))for(let e=0;e<=A;e++)y.set(e,t,-y.get(e,t));for(;t<A&&!(v[t]>=v[t+1]);){let e=v[t];if(v[t]=v[t+1],v[t+1]=e,d&&t<s-1)for(let n=0;n<s;n++)e=y.get(n,t+1),y.set(n,t+1,y.get(n,t)),y.set(n,t,e);if(f&&t<r-1)for(let n=0;n<r;n++)e=m.get(n,t+1),m.set(n,t+1,m.get(n,t)),m.set(n,t,e);t++;}C--;}}if(h){let t=y;y=m,m=t;}this.m=r,this.n=s,this.s=v,this.U=m,this.V=y;}solve(t){let e=this.threshold,n=this.s.length,r=i.default.zeros(n,n);for(let t=0;t<n;t++)Math.abs(this.s[t])<=e?r.set(t,t,0):r.set(t,t,1/this.s[t]);let o=this.U,a=this.rightSingularVectors,s=a.mmul(r),u=a.rows,c=o.rows,l=i.default.zeros(u,c);for(let t=0;t<u;t++)for(let e=0;e<c;e++){let r=0;for(let i=0;i<n;i++)r+=s.get(t,i)*o.get(e,i);l.set(t,e,r);}return l.mmul(t);}solveForDiagonal(t){return this.solve(i.default.diag(t));}inverse(){let t=this.V,e=this.threshold,n=t.rows,r=t.columns,o=new i.default(n,this.s.length);for(let i=0;i<n;i++)for(let n=0;n<r;n++)Math.abs(this.s[n])>e&&o.set(i,n,t.get(i,n)/this.s[n]);let a=this.U,s=a.rows,u=a.columns,c=new i.default(n,s);for(let t=0;t<n;t++)for(let e=0;e<s;e++){let n=0;for(let r=0;r<u;r++)n+=o.get(t,r)*a.get(e,r);c.set(t,e,n);}return c;}get condition(){return this.s[0]/this.s[Math.min(this.m,this.n)-1];}get norm2(){return this.s[0];}get rank(){let t=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,e=0,n=this.s;for(let r=0,i=n.length;r<i;r++)n[r]>t&&e++;return e;}get diagonal(){return Array.from(this.s);}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0];}get leftSingularVectors(){return this.U;}get rightSingularVectors(){return this.V;}get diagonalMatrix(){return i.default.diag(this.s);}}},d2caed15:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return y;}});var r=n("777fffbe"),i=r._(n("a886aa58")),o=r._(n("00b43322")),a=r._(n("78294f9e")),s=r._(n("21422ae0")),u=r._(n("4af4df40")),c=r._(n("e67082b2")),l=r._(n("d8e63692")),f=n("f2fbe439"),d=n("0e8397d7"),h=r._(n("02aaba42")),g={linear:{"to top":"0deg","to top right":"45deg","to right top":"45deg","to right":"90deg","to right bottom":"135deg","to bottom right":"135deg","to bottom":"180deg","to bottom left":"225deg","to left bottom":"225deg","to left":"270deg","to left top":"315deg","to top left":"315deg"},radial:{center:"50% 50%",top:"50% 0%","top right":"100% 0%","right top":"100% 0%",right:"100% 50%","right bottom":"100% 100%","bottom right":"100% 100%",bottom:"50% 100%","bottom left":"0% 100%","left bottom":"0% 100%",left:"0% 50%","left top":"0% 0%","top left":"0% 0%"}},p=["closest-side","closest-corner","farthest-side","farthest-corner"],v=function(t,e,n){console.warn("Warning: The gradient ".concat(t,"(").concat(e," => ").concat(n,") is different, which has been automatically converted to animation gradient ").concat(t,"(").concat(n,")."));},m=function(t){return"url"===t||t.indexOf("image")>=0||"paint"===t||"cross-fade"===t||"element"===t;},y=function(t){(0,c.default)(n,t);var e=(0,l.default)(n);function n(t){var r;return(0,s.default)(this,n),(r=e.call(this,t,"backgroundImage")).value=void 0,r.tweenVars={},r.vars=[],r.computedStyle=void 0,r.defaultStartVars=[],r.getPosition=function(t){return t.map(function(t){return{data:parseFloat(t),unit:t.replace(/[^a-z|%]/g,"")};});},r.getAngle=function(t,e){var n,i,o,a;switch(t.replace(/-|gradient|repeating]/g,"")){case"linear":o=r.getPosition((g.linear[e]||e||g.linear["to bottom"]).split(" "));break;case"radial":var s=e.split(" ");n=s.find(function(t){return p.indexOf(t)>=0;})||p[3],i=s.find(function(t){return"circle"===t||"ellipse"===t;})||"ellipse";var u=RegExp("".concat(n,"|").concat(i,"|at"),"g"),c=e.replace(u,"").trim();a=r.getPosition((g.radial[c]||c||g.radial.center).split(" "));break;case"conic":var l=e.split("at").map(function(t){return t.trim();}),f=(l[0]||"").split(" ");i=f[0]||"from",o=r.getPosition([f[1]||"0deg"]),a=r.getPosition((g.radial[l[1]]||l[1]||g.radial.center).split(" "));}return{extent:n,shape:i,angle:o,position:a};},r.valueToIValue=function(t){return t?t.replace(/\),\s+?(url|radial|conic|linear|repeating|image|element|cross|paint)/,")#,#$1").split("#,#").map(function(t){var e=t.replace(/([a-z|-]+)\((.*)\)/,"$1").trim();if("url"===e)return{type:e,values:t};var n=t.replace(/([a-z|-]+)\((.*)\)/,"$2").replace(/#([0-9a-f]{6}|[0-9a-f]{3})|(rgb[a]?|hsl)+\(\d+\,[\s+]?\d+[\%]?\,[\s+]?\d+[\%]?(\,\d+)?\)/gi,function(t){return t.replace(/\s+/g,"");}).replace(/\,([a-z|#|\s+])/g,"#,#$1").split("#,#").map(function(t){return t.trim();}),i=n[0].match(f.colorRegExp)?"":n[0];i&&n.splice(0,1);var o=r.getAngle(e,i);return{type:e,angle:o,values:n.map(function(t){var e,n=t.trim().split(/\s+/),r=(n[0].match(f.colorRegExp),n[0]);return r&&(n.splice(0,1),e=(0,d.parseColor)(r)),{color:e,positions:n.map(function(t){return{data:parseFloat(t),unit:t.toString().replace(/[^a-z|%]/g,"")};})};})};}):[];},r.getAnimStart=function(){var t,e=(0,u.default)(r),n=e.startAt,i=e.key,a=e.computedStyle,s=e.target,c=e.vars,l=e.tweenVars,f=(0,o.default)({},n),d=null!==(t=l[i])&&void 0!==t?t:(a||s)[i];d&&"none"!==d&&"auto"!==d||(d=""),f[i]=f[i]||d,f[i]=f[i]?r.valueToIValue(f[i]):r.defaultStartVars;var h=(Math.max(c.length,f[i].length)===f[i].length?f[i]:c).map(function(t,e){var n,a,s,u,l=f[i][e]||r.defaultStartVars[e],d=c[e]||l;if(l&&l.type===d.type||(l.type!==d.type&&v("type",l.type,d.type),l=r.defaultStartVars[e]),m(d.type)||"string"==typeof d.values||"string"==typeof l.values)return(0,o.default)({},d);(null===(n=d.angle)||void 0===n?void 0:n.extent)!==(null===(a=l.angle)||void 0===a?void 0:a.extent)&&v("extent keyword",null===(s=l.angle)||void 0===s?void 0:s.extent,null===(u=d.angle)||void 0===u?void 0:u.extent);var h=Math.max(l.values.length,d.values.length)===l.values.length?l.values:d.values;return l.values=h.map(function(t,e){var n=l.values[e],r=d.values[e]||n;return(0,o.default)((0,o.default)({},n),{},{positions:(r||n).positions.map(function(t,i){var o=n?n.positions[i]||n.positions[n.positions.length-1]:r.positions[r.positions.length-1],a=t||o;return!o&&n&&l.values.length&&(o={data:100/(l.values.length-1)*e,unit:"%"}),a.unit!==o.unit&&v("units",o.unit,a.unit),{data:o.data,unit:a.unit};})});}),l;});return r.start=h,r.start;},r.render=function(t){var e="";return(Math.max(r.vars.length,r.start.length)===r.vars.length?r.vars:r.start).forEach(function(n,a){var s=r.start[a],u=r.vars[a]||s;if(m(u.type)||"string"==typeof u.values||!u.angle){e+="".concat(e?",":""," ").concat(u.values).trim();return;}var c=(Math.max(s.values.length,u.values.length)===s.values.length?s.values:u.values).map(function(e,n){var r=s.values[n],a=u.values[n];a||(a=r);var c=r.color,l=r.positions;!c&&a.color&&(c=(0,i.default)(a.color)),l||(l=a.positions.map(function(t){return(0,o.default)({},t);}));var h=a.color?a.color.map(function(e,n){return(0,f.getValue)(c[n],e,t);}):a.color,g=a.positions.map(function(e,n){return"".concat((0,f.getValue)(l[n].data,e.data,t)).concat(e.unit);}).join(" ");return"".concat(h?(0,d.getColor)(h):h||""," ").concat(g).trim();}),l=u.angle,h=l.angle&&l.angle.map(function(e,n){return"".concat((0,f.getValue)(s.angle.angle[n].data,e.data,t)).concat(e.unit);}).join(" "),g=l.position&&l.position.map(function(e,n){return"".concat((0,f.getValue)(s.angle.position[n].data,e.data,t)).concat(e.unit);}).join(" "),p="".concat(l.extent||""," ").concat(l.shape||""," ").concat(h||""," ").concat(g?"at ".concat(g):"").trim();e+="".concat(e?",":""," ").concat(u.type,"(").concat(p?"".concat(p,","):"").concat(c.join(","),")").trim();}),e;},r.value=t,r.vars=r.valueToIValue(t),r.defaultStartVars=r.vars.map(function(t){return m(t.type)||"string"==typeof t.values?(0,o.default)({},t):(0,o.default)((0,o.default)({},t),{},{values:t.values.map(function(t){var e;return t.color&&"string"!=typeof t.color?(e=(0,i.default)(t.color))[3]=0:e=t.color,{color:e,positions:(0,i.default)(t.positions)};})});}),r;}return(0,a.default)(n);}(h.default);y.className="GradientsPlugin";},d2d45174:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=f(void 0);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o];}return r.default=t,n&&n.set(t,r),r;}(n("5b220c3d")),i=l(n("3a7a6ddb")),o=l(n("537ebc91")),a=n("9b61cbc5"),s=n("3f784af4"),u=n("77bf7b9a"),c=l(n("55c32f33"));function l(t){return t&&t.__esModule?t:{default:t};}function f(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(f=function(t){return t?n:e;})(t);}function d(t,e,n){var r;return(e="symbol"==typeof(r=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}(e,"string"))?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;}let h={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},g=h.mouse;class p extends r.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;let e=this.findDOMNode();if(!e||!e.ownerDocument||!e.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");let{ownerDocument:n}=e;if(this.props.disabled||!(t.target instanceof n.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(t.target,this.props.handle,e)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(t.target,this.props.cancel,e))return;"touchstart"===t.type&&t.preventDefault();let r=(0,a.getTouchIdentifier)(t);this.touchIdentifier=r;let i=(0,s.getControlPosition)(t,r,this);if(null==i)return;let{x:o,y:u}=i,l=(0,s.createCoreData)(this,o,u);(0,c.default)("DraggableCore: handleDragStart: %j",l),(0,c.default)("calling",this.props.onStart),!1!==this.props.onStart(t,l)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(n),this.dragging=!0,this.lastX=o,this.lastY=u,(0,a.addEvent)(n,g.move,this.handleDrag),(0,a.addEvent)(n,g.stop,this.handleDragStop));}),d(this,"handleDrag",t=>{let e=(0,s.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:n,y:r}=e;if(Array.isArray(this.props.grid)){let t=n-this.lastX,e=r-this.lastY;if([t,e]=(0,s.snapToGrid)(this.props.grid,t,e),!t&&!e)return;n=this.lastX+t,r=this.lastY+e;}let i=(0,s.createCoreData)(this,n,r);if((0,c.default)("DraggableCore: handleDrag: %j",i),!1===this.props.onDrag(t,i)||!1===this.mounted){try{this.handleDragStop(new MouseEvent("mouseup"));}catch(e){let t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t);}return;}this.lastX=n,this.lastY=r;}),d(this,"handleDragStop",t=>{if(!this.dragging)return;let e=(0,s.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:n,y:r}=e;if(Array.isArray(this.props.grid)){let t=n-this.lastX||0,e=r-this.lastY||0;[t,e]=(0,s.snapToGrid)(this.props.grid,t,e),n=this.lastX+t,r=this.lastY+e;}let i=(0,s.createCoreData)(this,n,r);if(!1===this.props.onStop(t,i)||!1===this.mounted)return!1;let o=this.findDOMNode();o&&this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(o.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,o&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(o.ownerDocument,g.move,this.handleDrag),(0,a.removeEvent)(o.ownerDocument,g.stop,this.handleDragStop));}),d(this,"onMouseDown",t=>(g=h.mouse,this.handleDragStart(t))),d(this,"onMouseUp",t=>(g=h.mouse,this.handleDragStop(t))),d(this,"onTouchStart",t=>(g=h.touch,this.handleDragStart(t))),d(this,"onTouchEnd",t=>(g=h.touch,this.handleDragStop(t)));}componentDidMount(){this.mounted=!0;let t=this.findDOMNode();t&&(0,a.addEvent)(t,h.touch.start,this.onTouchStart,{passive:!1});}componentWillUnmount(){this.mounted=!1;let t=this.findDOMNode();if(t){let{ownerDocument:e}=t;(0,a.removeEvent)(e,h.mouse.move,this.handleDrag),(0,a.removeEvent)(e,h.touch.move,this.handleDrag),(0,a.removeEvent)(e,h.mouse.stop,this.handleDragStop),(0,a.removeEvent)(e,h.touch.stop,this.handleDragStop),(0,a.removeEvent)(t,h.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(e);}}findDOMNode(){var t,e;return null!==(t=this.props)&&void 0!==t&&t.nodeRef?null===(e=this.props)||void 0===e||null===(e=e.nodeRef)||void 0===e?void 0:e.current:o.default.findDOMNode(this);}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd});}}e.default=p,d(p,"displayName","DraggableCore"),d(p,"propTypes",{allowAnyClick:i.default.bool,children:i.default.node.isRequired,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.");},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),d(p,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});},d32684ea:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(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;};},d3744cd9:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=r._(n("21422ae0")),o=r._(n("78294f9e")),a=n("769809e4"),s=n("94a227fe"),u=function(){function t(e,n){(0,i.default)(this,t),this.texture=void 0,this.width=void 0,this.height=void 0;var r=n.data,o=n.type,u=void 0===o?a.gl.UNSIGNED_BYTE:o,c=n.width,l=n.height,f=n.flipY,d=n.format,h=void 0===d?a.gl.RGBA:d,g=n.mipmap,p=void 0!==g&&g,v=n.wrapS,m=void 0===v?a.gl.CLAMP_TO_EDGE:v,y=n.wrapT,b=void 0===y?a.gl.CLAMP_TO_EDGE:y,x=n.aniso,_=n.alignment,E=n.premultiplyAlpha,w=n.mag,M=void 0===w?a.gl.NEAREST:w,C=n.min,A=void 0===C?a.gl.NEAREST:C,S=n.colorSpace,D=void 0===S?a.gl.BROWSER_DEFAULT_WEBGL:S;this.width=c,this.height=l;var I={width:c,height:l,type:s.dataTypeMap[u],format:s.formatMap[h],wrapS:s.wrapModeMap[m],wrapT:s.wrapModeMap[b],mag:s.filterMap[M],min:s.filterMap[A],alignment:void 0===_?1:_,flipY:void 0!==f&&f,colorSpace:s.colorSpaceMap[D],premultiplyAlpha:void 0!==E&&E,aniso:void 0===x?0:x};r&&(I.data=r),"number"==typeof p?I.mipmap=s.mipmapMap[p]:"boolean"==typeof p&&(I.mipmap=p),this.texture=e.texture(I);}return(0,o.default)(t,[{key:"get",value:function(){return this.texture;}},{key:"update",value:function(){this.texture._texture.bind();}},{key:"resize",value:function(t){var e=t.width,n=t.height;this.texture.resize(e,n),this.width=e,this.height=n;}},{key:"destroy",value:function(){this.texture.destroy();}}]),t;}();},d39d3698:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r,i=n("777fffbe"),o=n("c966c938"),a=n("22b52967"),s=i._(n("8109e137")),u=i._(n("b208d868")),c=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});"undefined"!=typeof document&&(0,s.default)("\n .g6-component-contextmenu {\n border: 1px solid #e2e2e2;\n border-radius: 4px;\n font-size: 12px;\n color: #545454;\n background-color: rgba(255, 255, 255, 0.9);\n padding: 10px 8px;\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n }\n .g6-contextmenu-ul {\n padding: 0;\n margin: 0;\n list-style: none;\n }\n\n");var l=function(t){function e(e){return t.call(this,e)||this;}return c(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(t){return"\n <ul class='g6-contextmenu-ul'>\n <li>\u83DC\u5355\u98791</li>\n <li>\u83DC\u5355\u98792</li>\n </ul>\n ";},shouldBegin:function(t){return!0;},onHide:function(){return!0;},itemTypes:["node","edge","combo"],trigger:"contextmenu"};},e.prototype.getEvents=function(){return"click"===this.get("trigger")?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"};},e.prototype.init=function(){var t=this.get("className"),e=(0,o.createDom)("<div class=".concat(t||"g6-component-contextmenu","></div>"));(0,o.modifyCSS)(e,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,a.isString)(n)&&(n=document.getElementById(n)),n.appendChild(e),this.set("menu",e);},e.prototype.onMenuShow=function(t){var e=this;t.preventDefault();var n=this.get("itemTypes");if(t.item){if(t.item&&t.item.getType&&-1===n.indexOf(t.item.getType())){e.onMenuHide();return;}}else if(-1===n.indexOf("canvas")){e.onMenuHide();return;}if(this.get("shouldBegin")(t)){var r=this.get("menu"),i=this.get("getContent"),s=this.get("graph"),u=i(t,s);(0,a.isString)(u)?r.innerHTML=u:r.innerHTML=u.outerHTML,this.removeMenuEventListener();var c=this.get("handleMenuClick");if(c){var l=function(e){c(e.target,t.item,s);};this.set("handleMenuClickWrapper",l),r.addEventListener("click",l);}var f=s.get("width"),d=s.get("height"),h=r.getBoundingClientRect(),g=this.get("offsetX")||0,p=this.get("offsetY")||0,v=s.getContainer().offsetTop,m=s.getContainer().offsetLeft,y=t.canvasX+m+g,b=t.canvasY+v+p;y+h.width>f&&(y=t.canvasX-h.width-g+m),b+h.height>d&&(b=t.canvasY-h.height-p+v),b<0&&(b=0),(0,o.modifyCSS)(r,{top:"".concat(b,"px"),left:"".concat(y,"px"),visibility:"visible"});var x="click"===this.get("trigger"),_=function(t){if(x){x=!1;return;}e.onMenuHide();};document.body.addEventListener("click",_),this.set("handler",_);}},e.prototype.removeMenuEventListener=function(){var t=this.get("handleMenuClickWrapper"),e=this.get("handler");t&&(this.get("menu").removeEventListener("click",t),this.set("handleMenuClickWrapper",null)),e&&document.body.removeEventListener("click",e);},e.prototype.onMenuHide=function(){var t=this.get("menu");t&&(0,o.modifyCSS)(t,{visibility:"hidden"}),this.removeMenuEventListener();},e.prototype.destroy=function(){var t=this.get("menu");if(this.removeMenuEventListener(),t){var e=this.get("container");e||(e=this.get("graph").get("container")),(0,a.isString)(e)&&(e=document.getElementById(e)),e.removeChild(t);}},e;}(u.default);},d3c37d15:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=n("22b52967"),o=n("168feef4"),a=r._(n("8ae33181")),s=r._(n("6f727b27")),u=r._(n("f8b04be3")),c=r._(n("3fd3e121")),l=r._(n("a8254035")),f=r._(n("e4cb87f2")),d=r._(n("1183ffe7")),h=r._(n("485acb0b")),g=r._(n("716d9378")),p=r._(n("65ffebb3")),v=r._(n("87be52f8")),m=r._(n("27dc5b05")),y=r._(n("d0c88d8a")),b=r._(n("3871d277")),x=r._(n("27fcc6bf")),_={"drag-canvas":a.default,"zoom-canvas":f.default,"drag-node":s.default,"activate-relations":u.default,"brush-select":c.default,"click-select":l.default,"lasso-select":m.default,tooltip:d.default,"edge-tooltip":h.default,"collapse-expand":g.default,"drag-combo":p.default,"collapse-expand-combo":v.default,"create-edge":y.default,"shortcuts-call":b.default,"scroll-canvas":x.default};(0,i.each)(_,function(t,e){(0,o.registerBehavior)(e,t);});},d3e56c5a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return s;},genericArray:function(){return u;}});var r=n("777fffbe"),i=n("852bbaa9"),o=r._(n("cc6c61ec")),a=i._(n("da2dddeb"));function s(t,e){return((0,a.isNumberArray)(e)?a.default:u)(t,e);}function u(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=Array(i),s=Array(r);for(n=0;n<i;++n)a[n]=(0,o.default)(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<i;++n)s[n]=a[n](t);return s;};}},d4050cae:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"genBubbleSet",{enumerable:!0,get:function(){return l;}});var r=n("2105a9e4"),i={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function o(t,e,n){var r=!1,i=function(t,n){return e.cells[t+n*e.width];},o=function(t,e){var r=0;return i(t-1,e-1)>=n&&(r+=1),i(t,e-1)>n&&(r+=2),i(t-1,e)>n&&(r+=4),i(t,e)>n&&(r+=8),r;},a=function(n,r){for(var i,a,s=n,u=r,c=0;c<e.width*e.height;c++){if(i=s,a=u,t.findIndex(function(t){return t.x===s&&t.y===u;})>-1){if(t[0].x===s&&t[0].y===u)return!0;}else t.push({x:s,y:u});var l=o(s,u);switch(l){case -1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:s++;break;case 12:case 14:case 4:s--;break;case 6:0===i&&(-1===a?s-=1:s+=1);break;case 1:case 13:case 5:u--;break;case 9:1===i&&(0===a?u-=1:u+=1);break;case 10:case 8:case 11:u++;break;default:return console.warn("Marching squares invalid state: ".concat(l)),!0;}}};this.march=function(){for(var t=0;t<e.width&&!r;t+=1)for(var s=0;s<e.height&&!r;s+=1)i(t,s)>n&&15!==o(t,s)&&(r=a(t,s));return r;};}var a=function(t,e,n){var r=Math.ceil(t/n),i=Math.ceil(e/n);return{cells:new Float32Array(Math.max(0,r*i)).fill(0),width:r,height:i};},s=function(t,e,n){var i=null,o=Number.POSITIVE_INFINITY;return e.forEach(function(e){var a={x:t.getModel().x,y:t.getModel().y},s={x:e.getModel().x,y:e.getModel().y},u=(0,r.squareDist)(a,s),c=new r.Line(a.x,a.y,s.x,s.y),l=n.reduce(function(t,e){return(0,r.fractionToLine)(e,c)>0?t+1:t;},0);u*Math.pow(l+1,2)<o&&(i=e,o=u*Math.pow(l+1,2));}),i;},u=function(t,e){var n=Number.POSITIVE_INFINITY,i=null;return t.forEach(function(t){var o=(0,r.fractionToLine)(t,e);o>=0&&o<n&&(i=t,n=o);}),i;},c=function(t,e,n,i){var o=[],a=[];a.push(t);for(var s=!0,c=0,l=function(t,e){var n=!1;return e.forEach(function(e){!n&&((0,r.isPointsOverlap)(t,{x:e.x1,y:e.y1})||(0,r.isPointsOverlap)(t,{x:e.x2,y:e.y2}))&&(n=!0);}),n;},d=function(t,e){for(var n=0;n<e.length;n++){var i=e[n].getBBox(),o=[[i.x,i.y],[i.x+i.width,i.y],[i.x,i.y+i.height],[i.x+i.width,i.y+i.height]];if((0,r.isPointInPolygon)(o,t.x,t.y))return!0;}return!1;};s&&c<n;)for(s=!1;!s&&a.length;)!function(){var t=a.pop(),n=u(e,t);if(n){var h=(0,r.itemIntersectByLine)(n,t),g=h[0];if(2===h[1]){var p=function(u){for(var c=i,h=f(n,c,g,u),p=l(h,a)||l(h,o),v=d(h,e);!p&&v&&c>=1;)c/=1.5,p=l(h=f(n,c,g,u),a)||l(h,o),v=d(h,e);!h||p||u&&v||(a.push(new r.Line(t.x1,t.y1,h.x,h.y)),a.push(new r.Line(h.x,h.y,t.x2,t.y2)),s=!0);};p(!0),s||p(!1);}}s||o.push(t),c+=1;}();for(;a.length;)o.push(a.pop());return o;},l=function(t,e,n){var l=Object.assign(i,n),f=(0,r.getPointsCenter)(t.map(function(t){return{x:t.getModel().x,y:t.getModel().y};}));t=t.sort(function(t,e){return(0,r.squareDist)({x:t.getModel().x,y:t.getModel().y},f)-(0,r.squareDist)({x:e.getModel().x,y:e.getModel().y},f);});var d=[],h=[];t.forEach(function(t){var n,i,o;(n=l.maxRoutingIterations,i=l.morphBuffer,null===(o=s(t,d,e))?[]:function(t){for(var n=[];t.length>0;){var i=t.pop();if(0===t.length){n.push(i);break;}var o=t.pop(),a=new r.Line(i.x1,i.y1,o.x2,o.y2);u(e,a)?(n.push(i),t.push(o)):t.push(a);}return n;}(c(new r.Line(t.getModel().x,t.getModel().y,o.getModel().x,o.getModel().y),e,n,i))).forEach(function(t){h.push(t);}),d.push(t);});for(var g=function(t,e,n){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},i=[];t.forEach(function(t){i.push(t.getBBox());}),e.forEach(function(t){i.push(t.getBBox());});for(var o=0;o<i.length;o++){var a=i[o];r.minX=(a.minX<r.minX?a.minX:r.minX)-n,r.minY=(a.minY<r.minY?a.minY:r.minY)-n,r.maxX=(a.maxX>r.maxX?a.maxX:r.maxX)+n,r.maxY=(a.maxY>r.maxY?a.maxY:r.maxY)+n;}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r;}(t,h,l.nodeR0),p=a(g.width,g.height,l.pixelGroupSize),v=[],m=[],y=0;y<l.maxMarchingIterations;y++)if(function(t,e,n,i,o,a){function s(t,e){var n=Math.floor((t-e)/a.pixelGroupSize);return n<0?0:n;}function u(t,e){return t*a.pixelGroupSize+e;}var c=(a.nodeR0-a.nodeR1)*(a.nodeR0-a.nodeR1),l=(a.edgeR0-a.edgeR1)*(a.edgeR0-a.edgeR1),f=function(t,e){return[Math.min(s(t.minX,e+i.minX),o.width),Math.min(s(t.minY,e+i.minY),o.height),Math.min(s(t.maxX,-e+i.minX),o.width),Math.min(s(t.maxY,-e+i.minY),o.height)];},d=function(t,e){for(var n=t.getBBox(),s=f(n,a.nodeR1),c=s[0],l=s[1],d=s[2],h=s[3],g=l;g<h;g+=1)for(var p=c;p<d;p+=1)if(!(e<0)||!(o[p+g*o.width]<=0)){var v=u(p,i.minX),m=u(g,i.minY),y=(0,r.pointRectSquareDist)({x:v,y:m},{x:n.minX,y:n.minY,width:n.width,height:n.height});if(y<Math.pow(a.nodeR1,2)){var b=Math.sqrt(y)-a.nodeR1;o.cells[p+g*o.width]+=e*b*b;}}},h=function(t,e){for(var n=f(t.getBBox(),a.edgeR1),s=n[0],c=n[1],l=n[2],d=n[3],h=c;h<d;h+=1)for(var g=s;g<l;g+=1)if(!(e<0)||!(o.cells[g+h*o.width]<=0)){var p=u(g,i.minX),v=u(h,i.minY),m=(0,r.pointLineSquareDist)({x:p,y:v},t);if(m<Math.pow(a.edgeR1,2)){var y=Math.sqrt(m)-a.edgeR1;o.cells[g+h*o.width]+=e*y*y;}}};a.nodeInfluenceFactor&&t.forEach(function(t){d(t,a.nodeInfluenceFactor/c);}),a.edgeInfluenceFactor&&n.forEach(function(t){h(t,a.edgeInfluenceFactor/l);}),a.negativeNodeInfluenceFactor&&e.forEach(function(t){d(t,a.negativeNodeInfluenceFactor/c);});}(t,e,h,g,p,l),m=[],new o(v=[],p,l.threshold).march()){var b=v.map(function(t){return{x:Math.round(t.x*l.pixelGroupSize+g.minX),y:Math.round(t.y*l.pixelGroupSize+g.minY)};});if(b){var x=b.length;if(l.skip>1)for(x=Math.floor(b.length/l.skip);x<3&&l.skip>1;)l.skip-=1,x=Math.floor(b.length/l.skip);for(var _=0,E=0;E<x;E+=1,_+=l.skip)m.push({x:b[_].x,y:b[_].y});}if(m&&function(){for(var e=0,n=t;e<n.length;e++){var i=n[e],o=m.map(function(t){return[t.x,t.y];});if(!(0,r.isPointInPolygon)(o,i.getBBox().centerX,i.getBBox().centerY))return!1;}return!0;}())return m;if(l.threshold*=.9,y<=.5*l.maxMarchingIterations)l.memberInfluenceFactor*=1.2,l.edgeInfluenceFactor*=1.2;else if(0!==l.nonMemberInfluenceFactor&&e.length>0)l.nonMemberInfluenceFactor*=.8;else break;}return m;};function f(t,e,n,r){var i=t.getBBox(),o=n[0],a=n[1],s=n[2],u=n[3],c={topLeft:{x:i.minX-e,y:i.minY-e},topRight:{x:i.maxX+e,y:i.minY-e},bottomLeft:{x:i.minX-e,y:i.maxY+e},bottomRight:{x:i.maxX+e,y:i.maxY+e}},l=i.height*i.width;function f(t,e){return i.width*((t.y-i.minY+(e.y-i.minY))*.5);}if(a)return o?r?c.topLeft:c.bottomRight:s?r?c.bottomLeft:c.topRight:f(a,u)<.5*l?a.y>u.y?r?c.topLeft:c.bottomRight:r?c.topRight:c.bottomLeft:a.y<u.y?r?c.bottomLeft:c.topRight:r?c.bottomRight:c.topLeft;if(u){if(o)return r?c.topRight:c.bottomLeft;if(s)return r?c.bottomRight:c.topLeft;}return f(o,s)<.5*l?o.x>s.x?r?c.topLeft:c.bottomRight:r?c.bottomLeft:c.topRight:o.x<s.x?r?c.topRight:c.bottomLeft:r?c.bottomRight:c.topLeft;}},d40d2a91:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("e82c7689"));function i(t){return(0,r.default)(t)&&t%2==0;}},d44c28a9:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0;};},d45274f5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("4c9df34d");function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.isAnyArray)(t))throw TypeError("input must be an array");if(0===t.length)throw TypeError("input must not be empty");var n=e.fromIndex,i=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(i<0||i>=t.length||!Number.isInteger(i))throw Error("fromIndex must be a positive integer smaller than length");if(a<=i||a>t.length||!Number.isInteger(a))throw Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[i],u=i+1;u<a;u++)t[u]>s&&(s=t[u]);return s;}},d49f8c60:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=Object.prototype,i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r);};},d4d2993d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("21422ae0")),o=r._(n("78294f9e")),a=function(){function t(e,n){(0,i.default)(this,t),this.framebuffer=void 0;var r=n.width,o=n.height,a=n.color,s=n.colors;n.depth,n.stencil;var u={width:r,height:o};Array.isArray(s)&&(u.colors=s.map(function(t){return t.get();})),a&&"boolean"!=typeof a&&(u.color=a.get()),this.framebuffer=e.framebuffer(u);}return(0,o.default)(t,[{key:"get",value:function(){return this.framebuffer;}},{key:"destroy",value:function(){this.framebuffer.destroy();}},{key:"resize",value:function(t){var e=t.width,n=t.height;this.framebuffer.resize(e,n);}}]),t;}();},d53abf7c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("f96e2b2f")),a=r._(n("2a1f2db7")),s=function(t){var e=t.filter(function(t){return!isNaN(t);});if(!e.length)return{min:0,max:0};if((0,i.default)(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n;}var s=(0,o.default)(e);return{min:(0,a.default)(e),max:s};};},d53bd7ec:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"quadtree",{enumerable:!0,get:function(){return r.default;}});var r=n("777fffbe")._(n("a6d2a9b8"));},d54fbbc1:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("8d42ebc3");function i(t,e,n,i,o,a,s){var u=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,i),f=Math.max(e,i),d=o/2;return a>=u-d&&a<=c+d&&s>=l-d&&s<=f+d&&r.Line.pointToLine(t,e,n,i,a,s)<=o/2;}},d5d2fbaa:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("4c6d310c"),i=n("168feef4"),o=n("22b52967");(0,i.registerNode)("triangle",{options:{size:40,direction:"up",style:{stroke:i.BaseGlobal.defaultNode.style.stroke,fill:i.BaseGlobal.defaultNode.style.fill,lineWidth:i.BaseGlobal.defaultNode.style.lineWidth},labelCfg:{style:{fill:i.BaseGlobal.nodeLabel.style.fill,fontSize:i.BaseGlobal.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:i.BaseGlobal.defaultNode.linkPoints.size,lineWidth:i.BaseGlobal.defaultNode.linkPoints.lineWidth,fill:i.BaseGlobal.defaultNode.linkPoints.fill,stroke:i.BaseGlobal.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:(0,r.__assign)({},i.BaseGlobal.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var n=this.mergeStyle||this.getOptions(t),i=n.icon,o=void 0===i?{}:i,a=n.direction,s=this.getShapeStyle(t),u=t.direction||a,c=e.addShape("path",{attrs:s,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=c;var l=o.width,f=o.height,d=o.show,h=o.offset,g=o.text;if(d){if(g)e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,r.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-l/2,v=-f/2;("up"===u||"down"===u)&&(v+=h),("left"===u||"right"===u)&&(p+=h),e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,r.__assign)({x:p,y:v},o),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});}}return this.drawLinkPoints(t,e),c;},drawLinkPoints:function(t,e){var n=this.mergeStyle||this.getOptions(t),i=n.linkPoints,o=void 0===i?{}:i,a=n.direction,s=t.direction||a,u=o.top,c=o.left,l=o.right,f=o.bottom,d=o.size,h=o.r,g=(0,r.__rest)(o,["top","left","right","bottom","size","r"]),p=this.getSize(t)[0];if(c){var v=null,m=p*Math.sin(1/3*Math.PI),y=p*Math.sin(1/3*Math.PI);"up"===s?v=[-y,m]:"down"===s?v=[-y,-m]:"left"===s&&(v=[-y,y-m]),v&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},g),{x:v[0],y:v[1],r:d/2||h||5}),className:"link-point-left",name:"link-point-left"}));}if(l){var b=null,m=p*Math.sin(1/3*Math.PI),y=p*Math.sin(1/3*Math.PI);"up"===s?b=[y,m]:"down"===s?b=[y,-m]:"right"===s&&(b=[y,y-m]),b&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},g),{x:b[0],y:b[1],r:d/2||h||5}),className:"link-point-right",name:"link-point-right"}));}if(u){var x=null,m=p*Math.sin(1/3*Math.PI),y=p*Math.sin(1/3*Math.PI);"up"===s?x=[y-m,-m]:"left"===s?x=[y,-m]:"right"===s&&(x=[-y,-m]),x&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},g),{x:x[0],y:x[1],r:d/2||h||5}),className:"link-point-top",name:"link-point-top"}));}if(f){var _=null,m=p*Math.sin(1/3*Math.PI),y=p*Math.sin(1/3*Math.PI);"down"===s?_=[-y+m,m]:"left"===s?_=[y,m]:"right"===s&&(_=[-y,m]),_&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},g),{x:_[0],y:_[1],r:d/2||h||5}),className:"link-point-bottom",name:"link-point-bottom"}));}},getPath:function(t){var e=(this.mergeStyle||this.getOptions(t)).direction,n=t.direction||e,r=this.getSize(t)[0],i=r*Math.sin(1/3*Math.PI),o=r*Math.sin(1/3*Math.PI),a=[["M",-o,i],["L",0,-i],["L",o,i],["Z"]];return"down"===n?a=[["M",-o,-i],["L",o,-i],["L",0,i],["Z"]]:"left"===n?a=[["M",-o,o-i],["L",o,-o],["L",o,o],["Z"]]:"right"===n&&(a=[["M",o,o-i],["L",-o,o],["L",-o,-o],["Z"]]),a;},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,n={stroke:t.color},i=(0,o.mix)({},e,n),a=this.getPath(t);return(0,r.__assign)({path:a},i);},update:function(t,e,n){var r=e.getContainer(),i=this.getOptions({}).style,a=this.getPath(t),s={stroke:t.color,path:a},u=e.get("keyShape"),c=(0,o.mix)({},i,u.attr(),s);c=(0,o.mix)(c,t.style),this.updateShape(t,e,c,!0,n),this.updateLinkPoints(t,r);},updateLinkPoints:function(t,e){var n=this.getOptions({}),i=n.linkPoints,a=n.direction,s=t.direction||a,u=e.shapeMap["link-point-left"]||e.find(function(t){return"link-point-left"===t.get("className");}),c=e.shapeMap["link-point-right"]||e.find(function(t){return"link-point-right"===t.get("className");}),l=e.shapeMap["link-point-top"]||e.find(function(t){return"link-point-top"===t.get("className");}),f=e.shapeMap["link-point-bottom"]||e.find(function(t){return"link-point-bottom"===t.get("className");}),d=i,h=u||c||l||f;h&&(d=h.attr());var g=(0,o.mix)({},d,t.linkPoints),p=g.fill,v=g.stroke,m=g.lineWidth,y=g.size/2;y||(y=g.r);var b=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},x=b.left,_=b.right,E=b.top,w=b.bottom,M=this.getSize(t)[0],C={r:y,fill:p,stroke:v,lineWidth:m},A=null,S=M*Math.sin(1/3*Math.PI),D=M*Math.sin(1/3*Math.PI);"up"===s?A=[-D,S]:"down"===s?A=[-D,-S]:"left"===s&&(A=[-D,D-S]),A&&(u?x||void 0===x?u.attr((0,r.__assign)((0,r.__assign)({},C),{x:A[0],y:A[1]})):(u.remove(),delete e.shapeMap["link-point-left"]):x&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},C),{x:A[0],y:A[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var I=null;"up"===s?I=[D,S]:"down"===s?I=[D,-S]:"right"===s&&(I=[D,D-S]),I&&(c?_||void 0===_?c.attr((0,r.__assign)((0,r.__assign)({},C),{x:I[0],y:I[1]})):(c.remove(),delete e.shapeMap["link-point-right"]):_&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},C),{x:I[0],y:I[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var T=null;"up"===s?T=[D-S,-S]:"left"===s?T=[D,-S]:"right"===s&&(T=[-D,-S]),T&&(l?E||void 0===E?l.attr((0,r.__assign)((0,r.__assign)({},C),{x:T[0],y:T[1]})):(l.remove(),delete e.shapeMap["link-point-top"]):E&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},C),{x:T[0],y:T[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var k=null;"down"===s?k=[-D+S,S]:"left"===s?k=[D,S]:"right"===s&&(k=[-D,S]),k&&(f?w||void 0===w?f.attr((0,r.__assign)((0,r.__assign)({},C),{x:k[0],y:k[1]})):(f.remove(),delete e.shapeMap["link-point-bottom"]):w&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},C),{x:k[0],y:k[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})));}},"single-node");},d5ffb871:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{createDom:function(){return a;},createSVGElement:function(){return o;},moveTo:function(){return u;},sortDom:function(){return s;}});var r=n("22b52967"),i=n("7048382e");function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t);}function a(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r);}return r;}function s(t,e){var n=t.get("el"),i=(0,r.toArray)(n.children).sort(e),o=document.createDocumentFragment();i.forEach(function(t){o.appendChild(t);}),n.appendChild(o);}function u(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter(function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase();}),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t);}}else n.appendChild(t);}},d61ac8e2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{TIME_TYPE:function(){return v;},default:function(){return m;}});var r=n("777fffbe"),i=n("22b52967"),o=n("f6fd9972"),a=r._(n("e1f7de7d")),s=n("10f09425"),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},c=o.ext.transform,l={fill:"#aaa",fillOpacity:.35,stroke:"#aaa"},f={fill:"#fff"},d={fill:"green"},h={pointer:{fill:"#aaa",lineWidth:0},scroller:{stroke:"#aaa",fill:"#aaa",lineWidth:1,lineAppendWidth:5,cursor:"pointer"},text:{fill:"#aaa",textBaseline:"top"}},g={check:{stroke:"green",lineWidth:3},box:{fill:"#fff",stroke:"#aaa",lineWidth:2,radius:3,width:12,height:12},text:{fill:"#aaa",fontSize:12,textBaseline:"top"}},p={speed:1,loop:!1,fill:"#fff",stroke:"#fff",hideTimeTypeController:!1,preBtnStyle:{fill:"#aaa",stroke:"#aaa"},nextBtnStyle:{fill:"#aaa",stroke:"#aaa"},playBtnStyle:{fill:"#aaa",stroke:"#aaa",fillOpacity:.05},speedControllerStyle:h,timeTypeControllerStyle:g},v={SINGLE:"single",RANGE:"range"},m=function(){function t(t){this.controllerCfg=(0,i.deepMix)({},p,t),this.group=t.group,this.controllerGroup=this.group.addGroup({name:"controller-group"}),this.speedAxisY=[],this.currentSpeed=this.controllerCfg.speed,this.currentType=this.controllerCfg.defaultTimeType||v.RANGE,this.fontFamily=t.fontFamily||"Arial, sans-serif",this.init();}return t.prototype.init=function(){this.renderPlayButton();},t.prototype.getNextMarkerPath=function(t,e,n){return[["M",t,e-n],["L",t+n,e],["L",t,e+n],["Z",t,e-n],["M",t,e],["L",t-n,e-n],["L",t-n,e+n],["Z"]];},t.prototype.getPreMarkerPath=function(t,e,n){return[["M",t,e-n],["L",t-n,e],["L",t,e+n],["L",t,e-n],["M",t,e],["L",t+n,e-n],["L",t+n,e+n],["Z"]];},t.prototype.renderPlayButton=function(){var t=this.controllerCfg,e=t.width,n=t.height,r=t.x,i=t.y,o=t.hideTimeTypeController,h=t.fill,g=t.stroke,p=t.containerStyle,v=u(u({},l),t.playBtnStyle||{}),m=u(u({},f),t.preBtnStyle||{}),y=u(u({},d),t.nextBtnStyle||{}),b=n/2-5,x=i+10,_=this.controllerGroup.addShape("rect",{attrs:u({x:r,y:x,width:e,height:n,stroke:void 0===g?"green":g,fill:void 0===h?"#aaa":h},void 0===p?{}:p),name:"container-rect"});this.playButton?this.playButton.update({x:e/2,y:x,r:b}):this.playButton=new a.default({group:this.controllerGroup,x:e/2,y:x+b+5,r:b,isPlay:this.isPlay,style:v});var E=m.offsetX||0,w=m.offsetY||0,M=(m.scale||1)*b;this.controllerGroup.addShape("path",{attrs:u({path:this.getPreMarkerPath(e/2-5*b+E,x+b+5+w,.5*M)},m),name:s.PRE_STEP_BTN});var C=y.offsetX||0,A=y.offsetY||0,S=(y.scale||1)*b;this.controllerGroup.addShape("path",{attrs:u({path:this.getNextMarkerPath(e/2+5*b+C,x+b+5+A,.5*S)},y),name:s.NEXT_STEP_BTN}),_.toBack(),this.renderSpeedBtn(),o||this.renderToggleTime(),this.bindEvent();var D=this.controllerCfg.scale,I=void 0===D?1:D,T=this.controllerGroup.getCanvasBBox(),k=(T.maxX+T.minX)/2,F=(T.maxY+T.minY)/2,N=c([1,0,0,0,1,0,0,0,1],[["t",-k,-F],["s",I,I],["t",k,F]]);this.controllerGroup.setMatrix(N);},t.prototype.renderSpeedBtn=function(){var t=this.controllerCfg,e=t.y,n=t.width,r=t.hideTimeTypeController,i=u(u({},h),this.controllerCfg.speedControllerStyle||{}),o=i.scroller,a=void 0===o?{}:o,s=i.text,l=i.pointer,f=i.scale,d=void 0===f?1:f,g=i.offsetX,p=i.offsetY,v=this.controllerGroup.addGroup({name:"speed-group"});this.speedGroup=v;var m=[],y=5;this.speedAxisY=[19,22,26,32,39];for(var b=0;b<5;b++){var x=e+this.speedAxisY[b],_=n-(r?50:110);v.addShape("line",{attrs:u({x1:_,x2:_+15,y1:x,y2:x},a),speed:y,name:"speed-rect"}),this.speedAxisY[b]=x,m.push(y),y-=1;}this.speedText=v.addShape("text",{attrs:u({x:n-(r?50:110)+20,y:this.speedAxisY[0]+4,text:"1.0X",fontFamily:this.fontFamily||"Arial, sans-serif"},void 0===s?{}:s),name:"speed-text"}),this.speedPoint=v.addShape("path",{attrs:u({path:this.getPointerPath(n-(r?50:110),0),matrix:[1,0,0,0,1,0,0,this.speedAxisY[4],1]},void 0===l?{}:l),name:"speed-pointer"});var E=this.speedGroup.getCanvasBBox(),w=(E.maxX+E.minX)/2,M=(E.maxY+E.minY)/2,C=this.speedGroup.getMatrix()||[1,0,0,0,1,0,0,0,1];C=c(C,[["t",-w,-M],["s",d,d],["t",w+(void 0===g?0:g)*d,M+(void 0===p?0:p)*d]]),this.speedGroup.setMatrix(C);},t.prototype.getPointerPath=function(t,e){return[["M",t,e],["L",t-10,e-4],["L",t-10,e+4],["Z"]];},t.prototype.renderToggleTime=function(){var t,e,n=this.controllerCfg,r=n.width,i=n.defaultTimeType,o=u(u({},g),this.controllerCfg.timeTypeControllerStyle||{}),a=o.scale,s=void 0===a?1:a,l=o.offsetX,f=o.offsetY,d=o.box,h=o.check,p=o.text;this.toggleGroup=this.controllerGroup.addGroup({name:"toggle-group"});var m=i===v.SINGLE;this.toggleGroup.addShape("rect",{attrs:u({x:r-50,y:this.speedAxisY[0]+3.5},void 0===d?{}:d),isChecked:m,name:"toggle-model"}),this.checkedIcon=this.toggleGroup.addShape("path",{attrs:u({path:[["M",r-50+3,this.speedAxisY[1]+6],["L",r-50+7,this.speedAxisY[1]+10],["L",r-50+12,this.speedAxisY[1]+4]]},void 0===h?{}:h),capture:!1,name:"check-icon"}),m||this.checkedIcon.hide(),this.checkedText=this.toggleGroup.addShape("text",{attrs:u({text:m?(null===(t=this.controllerCfg)||void 0===t?void 0:t.timeRangeControllerText)||"\u65F6\u95F4\u8303\u56F4":(null===(e=this.controllerCfg)||void 0===e?void 0:e.timePointControllerText)||"\u5355\u4E00\u65F6\u95F4",x:r-50+15,y:this.speedAxisY[0]+4,fontFamily:"undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"},void 0===p?{}:p),name:"checked-text"});var y=this.toggleGroup.getCanvasBBox(),b=(y.maxX+y.minX)/2,x=(y.maxY+y.minY)/2,_=this.toggleGroup.getMatrix()||[1,0,0,0,1,0,0,0,1];_=c(_,[["t",-b,-x],["s",s,s],["t",b+(void 0===l?0:l)*s,x+(void 0===f?0:f)*s]]),this.toggleGroup.setMatrix(_);},t.prototype.bindEvent=function(){var t=this;this.speedGroup.on("speed-rect:click",function(e){var n=e.target.attr("y1"),r=t.speedPoint.attr("matrix"),i=t.speedAxisY.indexOf(r[7]||0),o=t.speedAxisY.indexOf(n);r=c(r,[["t",0,t.speedAxisY[o]-t.speedAxisY[i]]]),t.speedPoint.setMatrix(r),t.currentSpeed=t.speedAxisY.length-o,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit(s.TIMEBAR_CONFIG_CHANGE,{speed:t.currentSpeed,type:t.currentType});}),this.speedGroup.on("mousewheel",function(e){e.preventDefault();var n=t.speedPoint.attr("matrix")||[1,0,0,0,1,0,0,0,1],r=n[7],i=t.speedAxisY.indexOf(r);if(-1===i){var o=1/0;t.speedAxisY.forEach(function(t,e){var n=Math.abs(t-r);o>n&&(o=n,i=e);});}i=e.originalEvent.deltaY>0?Math.max(0,i-1):Math.min(t.speedAxisY.length-1,i+1),n=c(n,[["t",0,t.speedAxisY[i]-r]]),t.speedPoint.setMatrix(n),t.currentSpeed=t.speedAxisY.length-i,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit(s.TIMEBAR_CONFIG_CHANGE,{speed:t.currentSpeed,type:t.currentType});}),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",function(e){var n,r,i=e.target.get("isChecked");i?(t.checkedIcon.hide(),t.checkedText.attr("text",(null===(r=t.controllerCfg)||void 0===r?void 0:r.timePointControllerText)||"\u5355\u4E00\u65F6\u95F4"),t.currentType=v.RANGE):(t.checkedIcon.show(),t.checkedText.attr("text",(null===(n=t.controllerCfg)||void 0===n?void 0:n.timeRangeControllerText)||"\u65F6\u95F4\u8303\u56F4"),t.currentType=v.SINGLE),e.target.set("isChecked",!i),t.group.emit(s.TIMEBAR_CONFIG_CHANGE,{type:t.currentType,speed:t.currentSpeed});});},t.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy();},t;}();},d6d41c0b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.getCoreNodeAndRelativeLeafNodes=e.getAvgNodePosition=e.getLayoutBBox=e.traverseTreeUp=e.scaleMatrix=e.getAdjMatrix=e.floydWarshall=e.getDegreeMap=e.getDegree=e.getEdgeTerminal=void 0;var r=n("2e2f736c"),i=n("10c0d8fc"),o=n("4efc221b");e.getEdgeTerminal=function(t,e){var n=t[e];return(0,o.isObject)(n)?n.cell:n;},e.getDegree=function(t,n,r){for(var i=[],o=0;o<t;o++)i[o]={in:0,out:0,all:0};return r&&r.forEach(function(t){var r=(0,e.getEdgeTerminal)(t,"source"),o=(0,e.getEdgeTerminal)(t,"target");r&&i[n[r]]&&(i[n[r]].out+=1,i[n[r]].all+=1),o&&i[n[o]]&&(i[n[o]].in+=1,i[n[o]].all+=1);}),i;},e.getDegreeMap=function(t,n){var r={};return t.forEach(function(t){r[t.id]={in:0,out:0,all:0};}),n&&n.forEach(function(t){var n=(0,e.getEdgeTerminal)(t,"source"),i=(0,e.getEdgeTerminal)(t,"target");n&&(r[n].out+=1,r[n].all+=1),i&&(r[i].in+=1,r[i].all+=1);}),r;},e.floydWarshall=function(t){for(var e=[],n=t.length,r=0;r<n;r+=1){e[r]=[];for(var 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(var o=0;o<n;o+=1)for(var r=0;r<n;r+=1)for(var i=0;i<n;i+=1)e[r][i]>e[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e;},e.getAdjMatrix=function(t,n){var r=t.nodes,i=t.edges,o=[],a={};if(!r)throw Error("invalid nodes data!");return r&&r.forEach(function(t,e){a[t.id]=e,o.push([]);}),null==i||i.forEach(function(t){var r=(0,e.getEdgeTerminal)(t,"source"),i=(0,e.getEdgeTerminal)(t,"target"),s=a[r],u=a[i];void 0===s||void 0===u||(o[s][u]=1,n||(o[u][s]=1));}),o;},e.scaleMatrix=function(t,e){var n=[];return t.forEach(function(t){var r=[];t.forEach(function(t){r.push(t*e);}),n.push(r);}),n;};var a=function(t,e){if(t&&t.children){for(var n=t.children.length-1;n>=0;n--)if(!a(t.children[n],e))return;}return!!e(t);};e.traverseTreeUp=function(t,e){"function"==typeof e&&a(t,e);},e.getLayoutBBox=function(t){var e=1/0,n=1/0,o=-1/0,a=-1/0;return t.forEach(function(t){var s=t.size;(0,r.isArray)(s)?1===s.length&&(s=[s[0],s[0]]):(0,i.isNumber)(s)?s=[s,s]:(void 0===s||isNaN(s))&&(s=[30,30]);var u=[s[0]/2,s[1]/2],c=t.x-u[0],l=t.x+u[0],f=t.y-u[1],d=t.y+u[1];e>c&&(e=c),n>f&&(n=f),o<l&&(o=l),a<d&&(a=d);}),{minX:e,minY:n,maxX:o,maxY:a};},e.getAvgNodePosition=function(t){var e={x:0,y:0};t.forEach(function(t){e.x+=t.x||0,e.y+=t.y||0;});var n=t.length||1;return{x:e.x/n,y:e.y/n};};var s=function(t,e,n){var r,i;return"source"===t?(null===(r=null==n?void 0:n.find(function(t){return t.target===e.id;}))||void 0===r?void 0:r.source)||{}:(null===(i=null==n?void 0:n.find(function(t){return t.source===e.id;}))||void 0===i?void 0:i.target)||{};},u=function(t,e,n){var r=[];switch(t){case"source":r=null==n?void 0:n.filter(function(t){return t.source===e.id;}).map(function(t){return t.target;});break;case"target":r=null==n?void 0:n.filter(function(t){return t.target===e.id;}).map(function(t){return t.source;});break;case"both":r=null==n?void 0:n.filter(function(t){return t.source===e.id;}).map(function(t){return t.target;}).concat(null==n?void 0:n.filter(function(t){return t.target===e.id;}).map(function(t){return t.source;}));}return Array.from(new Set(r));},c=function(t,e,n,r,i){var o=n[e]||"",a=(null==r?void 0:r.filter(function(t){return t[e]===o;}))||[];return"leaf"===t&&(a=a.filter(function(t){var e,n;return(null===(e=i[t.id])||void 0===e?void 0:e.in)===0||(null===(n=i[t.id])||void 0===n?void 0:n.out)===0;})),a;};e.getCoreNodeAndRelativeLeafNodes=function(t,e,n,r,i,o){var a=i[e.id],l=a.in,f=a.out,d=e,h=[];0===l?h=u("both",d=s("source",e,n),n).map(function(t){return o[t];}):0===f&&(h=u("both",d=s("target",e,n),n).map(function(t){return o[t];}));var g=c(t,r,e,h=h.filter(function(t){return i[t.id]&&(0===i[t.id].in||0===i[t.id].out);}),i);return{coreNode:d,relativeLeafNodes:h,sameTypeLeafNodes:g};};},d6f16b20:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{findChildInChildrenByKey:function(){return o;},getChildrenFromProps:function(){return u;},mergeChildren:function(){return a;},toArrayChildren:function(){return i;},transformArguments:function(){return s;}});var r=n("777fffbe")._(n("5b220c3d"));function i(t){var e=[];return r.default.Children.forEach(t,function(t){e.push(t);}),e;}function o(t,e){var n=null;return t&&t.forEach(function(t){!n&&t&&t.key===e&&(n=t);}),n;}function a(t,e){var n=[],r={},i=[],a=null;return t.forEach(function(t){t&&(t.key&&o(e,t.key)?(i.length&&(r[t.key]=i,i=[]),a=t.key):t.key&&i.push(t));}),a||(n=n.concat(i)),e.forEach(function(t){t&&(t.key&&r.hasOwnProperty(t.key)&&(n=n.concat(r[t.key])),n.push(t),t.key===a&&(n=n.concat(i)));}),n;}function s(t,e,n){return"function"==typeof t?t({key:e,index:n}):t;}function u(t){return t&&t.children;}},d700b812:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("22b52967");function i(t,e,n){var i,o=t.minLimit,a=t.maxLimit,s=t.min,u=t.max,c=t.tickCount,l=void 0===c?5:c,f=(0,r.isNil)(o)?(0,r.isNil)(e)?s:e:o,d=(0,r.isNil)(a)?(0,r.isNil)(n)?u:n:a;if(f>d&&(d=(i=[f,d])[0],f=i[1]),l<=2)return[f,d];for(var h=(d-f)/(l-1),g=[],p=0;p<l;p++)g.push(f+h*p);return g;}},d71952b4:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Category:function(){return i.default;},Linear:function(){return a.default;}});var r=n("777fffbe");n("65691558");var i=r._(n("85853212")),o=r._(n("be7f3872")),a=r._(n("d988e01b")),s=r._(n("aead699d")),u=r._(n("cd05318e")),c=r._(n("df7f0ab0")),l=r._(n("c2db3dee")),f=r._(n("fcdbca0d")),d=n("b5537d71"),h=r._(n("ec76bab7"));n("2893eb26"),(0,d.registerScale)("cat",i.default),(0,d.registerScale)("category",i.default),(0,d.registerScale)("identity",h.default),(0,d.registerScale)("linear",a.default),(0,d.registerScale)("log",s.default),(0,d.registerScale)("pow",u.default),(0,d.registerScale)("time",c.default),(0,d.registerScale)("timeCat",o.default),(0,d.registerScale)("quantize",l.default),(0,d.registerScale)("quantile",f.default);},d744df48:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(){function t(t){this.count=t.length,this.parent={};for(var e=0;e<t.length;e++){var n=t[e];this.parent[n]=n;}}return t.prototype.find=function(t){for(;this.parent[t]!==t;)t=this.parent[t];return t;},t.prototype.union=function(t,e){var n=this.find(t),r=this.find(e);n!==r&&(n<r?(this.parent[e]!==e&&this.union(this.parent[e],t),this.parent[e]=this.parent[t]):(this.parent[t]!==t&&this.union(this.parent[t],e),this.parent[t]=this.parent[e]));},t.prototype.connected=function(t,e){return this.find(t)===this.find(e);},t;}();},d7c77ac7:function(t,e,n){},d7d39f0f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("e52a13ca")),s={source:"start",target:"end"},u="Node",c="Point",l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1};},e.prototype.setEnd=function(t,e){var n=s[t]+c,r=t+u,i=this.get(r);i&&!i.destroyed&&i.removeEdge(this),(0,o.isPlainObject)(e)?(this.set(n,e),this.set(r,null)):e&&(e.addEdge(this),this.set(r,e),this.set(n,null));},e.prototype.getLinkPoint=function(t,e,n){var r=s[t]+c,i=t+u,a=this.get(r);if(!a){var l=this.get(i),f=t+"Anchor",d=this.getPrePoint(t,n),h=e[f];(0,o.isNil)(h)||(a=l.getLinkPointByAnchor(h)),a=a||l.getLinkPoint(d),(0,o.isNil)(a.index)||this.set("".concat(t,"AnchorIndex"),a.index);}return a;},e.prototype.getPrePoint=function(t,e){if(e&&e.length){var n="source"===t?0:e.length-1;return e[n];}return this.getEndPoint("source"===t?"target":"source");},e.prototype.getEndPoint=function(t){var e=s[t]+c,n=this.get(t+u);return n&&!n.destroyed?n.get("model"):this.get(e);},e.prototype.getControlPointsByCenter=function(t){var e=this.getEndPoint("source"),n=this.getEndPoint("target"),r=this.get("shapeFactory"),i=t.type;return r.getControlPoints(i,{startPoint:e,endPoint:n});},e.prototype.getEndCenter=function(t){var e=s[t]+c,n=this.get(t+u);if(n){var r=n.getBBox();return{x:r.centerX,y:r.centerY};}return this.get(e);},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"));},e.prototype.getShapeCfg=function(e,n){var r=this.get("linkCenter"),i=(null==n?void 0:n.includes("move"))?e:t.prototype.getShapeCfg.call(this,e);if(r)i.startPoint=this.getEndCenter("source"),i.endPoint=this.getEndCenter("target");else{var o=i.controlPoints||this.getControlPointsByCenter(i);i.startPoint=this.getLinkPoint("source",e,o),i.endPoint=this.getLinkPoint("target",e,o);}return i.sourceNode=this.get("sourceNode"),i.targetNode=this.get("targetNode"),i;},e.prototype.getModel=function(){var t=this.get("model"),e=this.get("source".concat(u)),n=this.get("target".concat(u));return e?delete t["source".concat(u)]:t.source=this.get("start".concat(c)),n?delete t["target".concat(u)]:t.target=this.get("end".concat(c)),(0,o.isString)(t.source)||(0,o.isPlainObject)(t.source)||(t.source=t.source.getID()),(0,o.isString)(t.target)||(0,o.isPlainObject)(t.target)||(t.target=t.target.getID()),t;},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t);},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t);},e.prototype.getSource=function(){return this.get("source");},e.prototype.getTarget=function(){return this.get("target");},e.prototype.updatePosition=function(){return!1;},e.prototype.update=function(t,e){void 0===e&&(e=void 0);var n=this.get("model"),r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var a=this.get("source"),s=this.get("target");if(a&&!a.destroyed&&s&&!s.destroyed){var u=this.get("styles");if(t.stateStyles){var c=t.stateStyles;(0,o.mix)(u,c),delete t.stateStyles;}Object.assign(n,t),this.updateShape(e),this.afterUpdate(),this.clearCache();}},e.prototype.destroy=function(){var e=this.get("source".concat(u)),n=this.get("target".concat(u));e&&!e.destroyed&&e.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this);},e;}(a.default);},d7fbc71b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("c0639b37"),i=n("0677a95b"),o=n("e94cd314");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable;})),n.push.apply(n,r);}return n;}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r;}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));});}return t;}var u={compound:!1,multigraph:!1,directed:!0},c=function(){var t;function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function");}(this,e),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=i.GraphEnum.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return t.directed;},this.isMultigraph=function(){return t.multigraph;},this.isCompound=function(){return t.compound;},this.setGraph=function(e){return t.label=e,t;},this.graph=function(){return t.label;},this.setDefaultNodeLabel=function(e){return(0,r.isFunction)(e)?t.defaultNodeLabelFn=e:t.defaultNodeLabelFn=function(){return e;},t;},this.nodeCount=function(){return t.nodeCountNum;},this.node=function(e){return t.nodesLabelMap.get(e);},this.nodes=function(){return Array.from(t.nodesLabelMap.keys());},this.sources=function(){return t.nodes().filter(function(e){var n;return!(null===(n=t.inEdgesMap.get(e))||void 0===n?void 0:n.size);});},this.sinks=function(){return t.nodes().filter(function(e){var n;return!(null===(n=t.outEdgesMap.get(e))||void 0===n?void 0:n.size);});},this.setNodes=function(e,n){return e.map(function(e){return t.setNode(e,n);}),t;},this.hasNode=function(e){return t.nodesLabelMap.has(e);},this.checkCompound=function(){if(!t.isCompound())throw Error("Cannot construct parent-children relations in a non-compound graph");},this.parent=function(e){if(t.isCompound()){var n,r=null===(n=t.parentMap)||void 0===n?void 0:n.get(e);if(r!==t.GRAPH_NODE)return r;}},this.removeFromParentsChildList=function(e){var n=t.parentMap.get(e);t.childrenMap.get(n).delete(e);},this.setParent=function(e,n){t.checkCompound();for(var r,i,o=void 0===n?t.GRAPH_NODE:n,a=t.parent(o);a;){if(e===a)throw Error("Setting "+n+" as parent of "+e+" would create a cycle");a=t.parent(a);}n&&t.setNode(n),t.setNode(e),t.removeFromParentsChildList(e),null===(r=t.parentMap)||void 0===r||r.set(e,o);var s=t.childrenMap.get(o);return s.set(e,!0),null===(i=t.childrenMap)||void 0===i||i.set(o,s),t;},this.children=function(e){var n=void 0===e?t.GRAPH_NODE:e;if(t.isCompound()){var r,i=null===(r=t.childrenMap)||void 0===r?void 0:r.get(n);return i?Array.from(i.keys()):void 0;}return n===t.GRAPH_NODE?t.nodes():e&&t.hasNode(e)?[]:void 0;},this.predecessors=function(e){var n=t.predecessorsMap.get(e);return n?Array.from(n.keys()):void 0;},this.successors=function(e){var n=t.successorsMap.get(e);return n?Array.from(n.keys()):void 0;},this.neighbors=function(e){var n;if(t.hasNode(e))return Array.from(new Set(null===(n=t.predecessors(e))||void 0===n?void 0:n.concat(t.successors(e))));},this.isLeaf=function(e){var n,r;return t.isDirected()?!(null===(r=t.successors(e))||void 0===r?void 0:r.length):!(null===(n=t.neighbors(e))||void 0===n?void 0:n.length);},this.filterNodes=function(n){var r=t.directed,i=t.multigraph,o=t.compound,a=new e({directed:r,multigraph:i,compound:o});if(a.setGraph(t.graph()),t.nodes().forEach(function(e){n(e)&&a.setNode(e,t.node(e));}),t.edges().forEach(function(e){a.hasNode(e.v)&&a.hasNode(e.w)&&a.setEdgeObj(e,t.edge(e));}),o){var s=function(e){for(var n=t.parent(e);void 0!==n&&!a.hasNode(n);)n=t.parent(n);return n;};a.nodes().forEach(function(t){a.setParent(t,s(t));});}return a;},this.setDefaultEdgeLabel=function(e){return(0,r.isFunction)(e)?t.defaultEdgeLabelFn=e:t.defaultEdgeLabelFn=function(){return e;},t;},this.edgeCount=function(){return t.edgeCountNum;},this.setEdgeObj=function(e,n){return t.setEdge(e.v,e.w,n,e.name);},this.setPath=function(e,n){return e.reduce(function(e,r){return t.setEdge(e,r,n),r;}),t;},this.edgeFromArgs=function(e,n,r){return t.edge({v:e,w:n,name:r});},this.edge=function(e){return t.edgesLabelsMap.get((0,r.edgeObjToId)(t.isDirected(),e));},this.hasEdge=function(e,n,i){return t.edgesLabelsMap.has((0,r.edgeObjToId)(t.isDirected(),{v:e,w:n,name:i}));},this.removeEdgeObj=function(e){var n=e.v,r=e.w,i=e.name;return t.removeEdge(n,r,i);},this.edges=function(){return Array.from(t.edgesMap.values());},this.inEdges=function(e,n){var r=t.inEdgesMap.get(e);if(r)return Array.from(r.values()).filter(function(t){return!n||t.v===n;});},this.outEdges=function(e,n){var r=t.outEdgesMap.get(e);if(r)return Array.from(r.values()).filter(function(t){return!n||t.w===n;});},this.nodeEdges=function(e,n){var r;if(t.hasNode(e))return null===(r=t.inEdges(e,n))||void 0===r?void 0:r.concat(t.outEdges(e,n));},this.toJSON=function(){return(0,o.write)(t);},this.nodeInDegree=function(e){var n=t.inEdgesMap.get(e);return n?n.size:0;},this.nodeOutDegree=function(e){var n=t.outEdgesMap.get(e);return n?n.size:0;},this.nodeDegree=function(e){return t.nodeInDegree(e)+t.nodeOutDegree(e);},this.source=function(t){return t.v;},this.target=function(t){return t.w;};var a=s(s({},u),n);this.compound=a.compound,this.directed=a.directed,this.multigraph=a.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map);}return t=[{key:"setNode",value:function(t,e){var n,r=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,a=this.parentMap,s=this.childrenMap,u=this.inEdgesMap,c=this.outEdgesMap,l=this.predecessorsMap,f=this.successorsMap;return r.has(t)?void 0!==e&&r.set(t,e):(r.set(t,e||i(t)),o()&&(null==a||a.set(t,this.GRAPH_NODE),null==s||s.set(t,new Map),(null==s?void 0:s.has(this.GRAPH_NODE))||null==s||s.set(this.GRAPH_NODE,new Map),null==s||null===(n=s.get(this.GRAPH_NODE))||void 0===n||n.set(t,!0)),[u,c,l,f].forEach(function(e){return e.set(t,new Map);}),this.nodeCountNum+=1),this;}},{key:"removeNode",value:function(t){var e=this;if(this.hasNode(t)){var n,r,i,o=function(t){e.removeEdge(t.v,t.w,t.name);},a=this.inEdgesMap,s=this.outEdgesMap,u=this.predecessorsMap,c=this.successorsMap,l=this.nodesLabelMap;this.isCompound()&&(this.removeFromParentsChildList(t),null===(n=this.parentMap)||void 0===n||n.delete(t),null===(r=this.children(t))||void 0===r||r.forEach(function(t){return e.setParent(t);}),null===(i=this.childrenMap)||void 0===i||i.delete(t));var f=a.get(t),d=s.get(t);Array.from(f.values()).forEach(function(t){return o(t);}),Array.from(d.values()).forEach(function(t){return o(t);}),l.delete(t),a.delete(t),s.delete(t),u.delete(t),c.delete(t),this.nodeCountNum-=1;}return this;}},{key:"setEdge",value:function(t,e,n,i){var o,a,s=(0,r.edgeArgsToObj)(this.isDirected(),t,e,i),u=(0,r.edgeObjToId)(this.isDirected(),s),c=s.v,l=s.w;if(this.edgesLabelsMap.has(u))return this.edgesLabelsMap.set(u,n),this;if(void 0!==i&&!this.isMultigraph())throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(l),this.edgesLabelsMap.set(u,n||this.defaultEdgeLabelFn(c,l,i)),Object.freeze(s),this.edgesMap.set(u,s);var f=this.predecessorsMap.get(l),d=this.successorsMap.get(c);return(0,r.incrementOrInitEntry)(f,c),(0,r.incrementOrInitEntry)(d,l),null===(o=this.inEdgesMap.get(l))||void 0===o||o.set(u,s),null===(a=this.outEdgesMap.get(c))||void 0===a||a.set(u,s),this.edgeCountNum+=1,this;}},{key:"removeEdge",value:function(t,e,n){var i=(0,r.edgeArgsToId)(this.isDirected(),t,e,n);if(this.edgesMap.get(i)){var o=(0,r.edgeArgsToObj)(this.isDirected(),t,e,n),a=o.v,s=o.w;this.edgesLabelsMap.delete(i),this.edgesMap.delete(i);var u=this.predecessorsMap.get(s),c=this.successorsMap.get(a);(0,r.decrementOrRemoveEntry)(u,a),(0,r.decrementOrRemoveEntry)(c,s),this.inEdgesMap.get(s).delete(i),this.outEdgesMap.get(a).delete(i),this.edgeCountNum-=1;}return this;}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r);}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}();c.fromJSON=o.read;},d8285e74:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c9df34d"),o=r._(n("d45274f5")),a=r._(n("223f7a51"));function s(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,i.isAnyArray)(t)){if(0===t.length)throw TypeError("input must not be empty");}else throw TypeError("input must be an array");if(void 0!==n.output){if(!(0,i.isAnyArray)(n.output))throw TypeError("output option must be an array if specified");e=n.output;}else e=Array(t.length);var r=(0,a.default)(t),s=(0,o.default)(t);if(r===s)throw RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var u=n.min,c=void 0===u?n.autoMinMax?r:0:u,l=n.max,f=void 0===l?n.autoMinMax?s:1:l;if(c>=f)throw RangeError("min option must be smaller than max option");for(var d=(f-c)/(s-r),h=0;h<t.length;h++)e[h]=(t[h]-r)*d+c;return e;}},d8428bb7:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return h;}});var r=n("777fffbe"),i=r._(n("a886aa58")),o=r._(n("78294f9e")),a=r._(n("21422ae0")),s=r._(n("4af4df40")),u=r._(n("e67082b2")),c=r._(n("d8e63692")),l=n("0e8397d7"),f=n("f2fbe439"),d=function(t){(0,u.default)(n,t);var e=(0,c.default)(n);function n(t,r){(0,a.default)(this,n),(o=e.call(this,t,r)).value=void 0,o.key=void 0,o.start=[],o.tweenVars={},o.vars={},o.computedStyle=void 0,o.propsData={data:[],unit:[],count:[]},o.setDefaultData=function(t,e){var n,r=(0,s.default)(o),a=r.propsData,u=r.value,c=(0,i.default)(u);"color"===t&&(c[3]=null!==(n=c[3])&&void 0!==n?n:1),a.type=t,a.data=c.map(function(t){return parseFloat(t)||0===parseFloat(t)?parseFloat(t):t;}),a.unit=c.map(function(t){return t.toString().replace(/[^a-z|%]/g,"");}),a.count=c.map(function(t){return t.toString().replace(/[^+|=|-]/g,"");}),e&&(a.splitStr=e);},o.convertToMarksArray=function(t,e,n,r){var i=(n||"").toString().replace(/[^a-z|%]/g,""),a="number"==typeof r?t[r]:void 0;return i===a?parseFloat(n):parseFloat(n)||0===parseFloat(n)?(0,f.startConvertToEndUnit)({target:o.target,computedStyle:o.computedStyle,style:e,value:n,startUnit:i,endUnit:a,isOriginWidth:"transformOrigin"===e&&!r}):n;},o.getAnimStart=function(){var t,e,n,r,i,a,u,c,d,h=(0,s.default)(o),g=h.startAt,p=h.target,v=h.key,m=h.propsData,y=h.computedStyle,b=h.tweenVars,x=null!==(t=null!==(e=null!==(n=null==g?void 0:g[v])&&void 0!==n?n:y?null===(r=b.style)||void 0===r?void 0:r[v]:b[v])&&void 0!==e?e:(y||p)[v])&&void 0!==t?t:"",_=m.data.indexOf("inset");-1===_||x.match("inset")||"shadow"!==m.type||(i=x,x=""),x&&"none"!==x&&"auto"!==x||(x=""),x="shadow"===m.type?(0,l.parseShadow)(x,v):x,x="color"===m.type?(0,l.parseColor)(x):x,x="string"===m.type?x.split(/[\s|,]/):x,f.styleValueToArray[v]&&(x[1]=null!==(a=x[1])&&void 0!==a?a:x[0],x[2]=null!==(u=x[2])&&void 0!==u?u:x[0],x[3]=null!==(c=null!==(d=x[3])&&void 0!==d?d:x[1])&&void 0!==c?c:x[0]);var E=m.unit,w=x.map(function(t,e){return"NaN"===parseFloat(t).toString()?t:o.convertToMarksArray(E,v,t,e);});return o.start=w.concat(_>=0?"inset":[]),o.start.oldShadow=i,o.start;},o.render=function(t){var e=(0,s.default)(o),n=e.start,r=e.propsData,i=r.type,a=r.splitStr,u=r.data,c=r.count,d=r.unit,h=u.map(function(e,r){return"string"==typeof e?e:(0,f.getValue)(n[r],e,t,c[r],d[r]);});switch(i){case"string":h=h.join(a);break;case"color":h=(0,l.getColor)(h);break;case"shadow":var g=h.indexOf("inset")>=0,p=g?h.filter(function(t){return"inset"!==t;}):h,v=p.slice(0,p.length-4).map(function(t){return"number"==typeof t?"".concat(t,"px"):t;}),m=(0,l.getColor)(p.slice(p.length-4,p.length));h="".concat(n.oldShadow?"".concat(n.oldShadow,","):"").concat(v.join(" ")," ").concat(m," ").concat(g?"inset":"").trim();}return h;},o.value=t,o.key=r;var o,u="",c="";return"string"==typeof t&&(r.match(f.shadowExp)?(o.value=(0,l.parseShadow)(t,r),u="shadow"):r.match(/color|fill|stroke/i)||t.match(f.colorRegExp)?(o.value=(0,l.parseColor)(t),u="color"):(c=t.replace(/[^\s|,]/g,"").replace(/\s+/g," "),o.value=t.split(/[\s|,]/),u="string")),o.setDefaultData(u,c),o;}return(0,o.default)(n);}(r._(n("02aaba42")).default);d.className="ArrayPlugin";var h=d;},d8bbfbc5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("942b4eed")),a=r._(n("8b6af789")),s=function(t,e){var n;if((0,a.default)(e))n=function(t,n){return e(t)-e(n);};else{var r=[];(0,o.default)(e)?r.push(e):(0,i.default)(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return -1;}return 0;};}return t.sort(n),t;};},d8cf7abe:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=function(t,e){return t===e;},i=function(){function t(t,e){void 0===e&&(e=null),this.value=t,this.next=e;}return t.prototype.toString=function(t){return t?t(this.value):"".concat(this.value);},t;}(),o=function(){function t(t){void 0===t&&(t=r),this.head=null,this.tail=null,this.compare=t;}return t.prototype.prepend=function(t){var e=new i(t,this.head);return this.head=e,this.tail||(this.tail=e),this;},t.prototype.append=function(t){var e=new i(t);return this.head?this.tail.next=e:this.head=e,this.tail=e,this;},t.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)for(;n.next;)this.compare(n.next.value,t)?(e=n.next,n.next=n.next.next):n=n.next;return this.compare(this.tail.value,t)&&(this.tail=n),e;},t.prototype.find=function(t){var e=t.value,n=void 0===e?void 0:e,r=t.callback,i=void 0===r?void 0:r;if(!this.head)return null;for(var o=this.head;o;){if(i&&i(o.value)||void 0!==n&&this.compare(o.value,n))return o;o=o.next;}return null;},t.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t;},t.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t;},t.prototype.fromArray=function(t){var e=this;return t.forEach(function(t){return e.append(t);}),this;},t.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t;},t.prototype.reverse=function(){for(var t=this.head,e=null,n=null;t;)n=t.next,t.next=e,e=t,t=n;this.tail=this.head,this.head=e;},t.prototype.toString=function(t){return void 0===t&&(t=void 0),this.toArray().map(function(e){return e.toString(t);}).toString();},t;}();},d8d98a9e:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});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;}();},d8f1240a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("e82c7689"));function i(t){return(0,r.default)(t)&&t<0;}},d92bfca0:function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r;};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var i=n("82708807"),o=n("454e307d"),a=n("82708807");Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return a.TArray;}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return a.TEnumType;}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return a.TEnumLiteral;}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return a.TFunc;}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return a.TIface;}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return a.TLiteral;}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return a.TName;}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return a.TOptional;}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return a.TParam;}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return a.TParamList;}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return a.TProp;}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return a.TTuple;}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return a.TType;}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return a.TUnion;}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return a.TIntersection;}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return a.array;}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return a.enumlit;}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return a.enumtype;}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return a.func;}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return a.iface;}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return a.lit;}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return a.name;}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return a.opt;}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return a.param;}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return a.tuple;}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return a.union;}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return a.intersection;}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return a.BasicType;}});var s=n("454e307d");Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return s.VError;}}),e.createCheckers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Object.assign.apply(Object,r([{},i.basicTypes],t)),o={},a=0;a<t.length;a++)for(var s=t[a],c=0,l=Object.keys(s);c<l.length;c++){var f=l[c];o[f]=new u(n,s[f]);}return o;};var u=function(){function t(t,e,n){if(void 0===n&&(n="value"),this.suite=t,this.ttype=e,this._path=n,this.props=new Map,e instanceof i.TIface)for(var r=0,o=e.props;r<o.length;r++){var a=o[r];this.props.set(a.name,a.ttype);}this.checkerPlain=this.ttype.getChecker(t,!1),this.checkerStrict=this.ttype.getChecker(t,!0);}return t.prototype.setReportedPath=function(t){this._path=t;},t.prototype.check=function(t){return this._doCheck(this.checkerPlain,t);},t.prototype.test=function(t){return this.checkerPlain(t,new o.NoopContext);},t.prototype.validate=function(t){return this._doValidate(this.checkerPlain,t);},t.prototype.strictCheck=function(t){return this._doCheck(this.checkerStrict,t);},t.prototype.strictTest=function(t){return this.checkerStrict(t,new o.NoopContext);},t.prototype.strictValidate=function(t){return this._doValidate(this.checkerStrict,t);},t.prototype.getProp=function(e){var n=this.props.get(e);if(!n)throw Error("Type has no property "+e);return new t(this.suite,n,this._path+"."+e);},t.prototype.methodArgs=function(e){var n=this._getMethod(e);return new t(this.suite,n.paramList);},t.prototype.methodResult=function(e){var n=this._getMethod(e);return new t(this.suite,n.result);},t.prototype.getArgs=function(){if(!(this.ttype instanceof i.TFunc))throw Error("getArgs() applied to non-function");return new t(this.suite,this.ttype.paramList);},t.prototype.getResult=function(){if(!(this.ttype instanceof i.TFunc))throw Error("getResult() applied to non-function");return new t(this.suite,this.ttype.result);},t.prototype.getType=function(){return this.ttype;},t.prototype._doCheck=function(t,e){if(!t(e,new o.NoopContext)){var n=new o.DetailContext;throw t(e,n),n.getError(this._path);}},t.prototype._doValidate=function(t,e){if(t(e,new o.NoopContext))return null;var n=new o.DetailContext;return t(e,n),n.getErrorDetail(this._path);},t.prototype._getMethod=function(t){var e=this.props.get(t);if(!e)throw Error("Type has no property "+t);if(!(e instanceof i.TFunc))throw Error("Property "+t+" is not a method");return e;},t;}();e.Checker=u;},d95566da:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("7af0f380"),n("097ce85e");},d988e01b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe"),i=n("4c6d310c"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e;}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min);},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1;},e;}(r._(n("64727459")).default);},d9a6595f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("1eabf120")),a=function(t,e){for(var n=[],r={},a=0;a<t.length;a++){var s=t[a][e];if(!(0,o.default)(s)){(0,i.default)(s)||(s=[s]);for(var u=0;u<s.length;u++){var c=s[u];r[c]||(n.push(c),r[c]=!0);}}}return n;};},d9b45518:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"scanSegment",{enumerable:!0,get:function(){return f;}});var r=n("cd02f465"),i=n("7a329456"),o=n("836c985c"),a=n("7b171369"),s=n("69dfbbfd"),u=n("02b3d64c"),c=n("1675e698"),l=n("03ed81b8");function f(t){var e=t.max,n=t.pathValue,f=t.index,d=n.charCodeAt(f),h=i.paramsCount[n[f].toLowerCase()];if(t.segmentStart=f,!(0,u.isPathCommand)(d)){t.err='[path-util]: Invalid path value "'.concat(n[f],'" is not a path command');return;}if(t.index+=1,(0,s.skipSpaces)(t),t.data=[],!h){(0,r.finalizeSegment)(t);return;}for(;;){for(var g=h;g>0;g-=1){if((0,l.isArcCommand)(d)&&(3===g||4===g)?(0,o.scanFlag)(t):(0,a.scanParam)(t),t.err.length)return;t.data.push(t.param),(0,s.skipSpaces)(t),t.index<e&&44===n.charCodeAt(t.index)&&(t.index+=1,(0,s.skipSpaces)(t));}if(t.index>=t.max||!(0,c.isDigitStart)(n.charCodeAt(t.index)))break;}(0,r.finalizeSegment)(t);}},d9c6c466:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("afb67b89"),o=r._(n("b6b3d6c6"));class a extends o.default{constructor(t,e){super(t,t.rows,(e=(0,i.checkColumnIndices)(t,e)).length),this.columnIndices=e;}set(t,e,n){return this.matrix.set(t,this.columnIndices[e],n),this;}get(t,e){return this.matrix.get(t,this.columnIndices[e]);}}},d9d21a9c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("a9d43e9b")),a=r._(n("528465ee"));o.default.registerNode("image",{options:{img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*eD7nT6tmYgAAAAAAAAAAAABkARQnAQ",size:200,labelCfg:{style:{fontFamily:a.default.windowFontFamily}},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}},shapeType:"image",labelPosition:"bottom",drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t);delete r.fill;var i=e.addShape(n,{attrs:r,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return this.drawClip(t,i),i;},drawClip:function(t,e){var n=(this.mergeStyle||this.getOptions(t)).clipCfg;if(n.show){var r=n.type,o=n.x,a=n.y,s=n.style;if("circle"===r){var u=n.r;e.setClip({type:"circle",attrs:(0,i.__assign)({r:u,x:o,y:a},s)});}else if("rect"===r){var c=n.width,l=n.height;e.setClip({type:"rect",attrs:(0,i.__assign)({x:o-c/2,y:a-l/2,width:c,height:l},s)});}else if("ellipse"===r){var f=n.rx,d=n.ry;e.setClip({type:"ellipse",attrs:(0,i.__assign)({x:o,y:a,rx:f,ry:d},s)});}else if("polygon"===r){var h=n.points;e.setClip({type:"polygon",attrs:(0,i.__assign)({points:h},s)});}else if("path"===r){var g=n.path;e.setClip({type:"path",attrs:(0,i.__assign)({path:g},s)});}}},getShapeStyle:function(t){var e=this.mergeStyle||this.getOptions(t),n=e.style,r=e.img,o=this.getSize(t),a=o[0],s=o[1];return n&&(a=n.width||o[0],s=n.height||o[1]),(0,i.__assign)({x:-a/2,y:-s/2,width:a,height:s,img:r},n);},updateShapeStyle:function(t,e){var n=e.getContainer(),r="".concat(this.itemType,"-shape"),i=n.shapeMap[r]||n.find(function(t){return t.get("className")===r;})||e.getKeyShape(),o=this.getShapeStyle(t);i&&!i.destroyed&&i.attr(o);}},"single-node");},da2dddeb:function(t,e,n){"use strict";function r(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i;};}function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView);}n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return r;},isNumberArray:function(){return i;}});},da915cc8:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("235d18ef")),a=n("ddeef58a"),s=n("be1e82ef"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"});},e.prototype.isOnlyHitBox=function(){return!0;},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text);},e.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,s.assembleFont)(t);},e.prototype._setText=function(t){var e=null;(0,a.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e);},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n);},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n;},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,o=i.textBaseline,u=i.x,c=i.y,l=1*i.fontSize,f=this._getSpaceingY(),d=(0,s.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,a.each)(e,function(e,i){r=c+i*(f+l)-d+l,"middle"===o&&(r+=d-l-(d-l)/2),"top"===o&&(r+=d-l),(0,a.isNil)(e)||(n?t.fillText(e,u,r):t.strokeText(e,u,r));});},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var s=n.text;(0,a.isNil)(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i));}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&((0,a.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,a.isNil)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t);},e.prototype.fill=function(t){this._drawText(t,!0);},e.prototype.stroke=function(t){this._drawText(t,!1);},e;}(o.default);},db01b2f7:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r={}.toString,i=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"");};},dc728d10:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=function(){function t(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0;}return t.prototype.distanceTo=function(t){return Math.hypot(this.rx-t.rx,this.ry-t.ry);},t.prototype.setPos=function(t,e){this.rx=t,this.ry=e;},t.prototype.resetForce=function(){this.fx=0,this.fy=0;},t.prototype.addForce=function(t){var e=t.rx-this.rx,n=t.ry-this.ry,r=Math.hypot(e,n);r=r<1e-4?1e-4:r;var i=this.g*(this.degree+1)*(t.degree+1)/r;this.fx+=i*e/r,this.fy+=i*n/r;},t.prototype.in=function(t){return t.contains(this.rx,this.ry);},t.prototype.add=function(e){var n=this.mass+e.mass;return new t({rx:(this.rx*this.mass+e.rx*e.mass)/n,ry:(this.ry*this.mass+e.ry*e.mass)/n,mass:n,degree:this.degree+e.degree});},t;}();e.default=r;},dc8e7880:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=n("d53bd7ec"),o=r._(n("71b016a7")),a=r._(n("3529c69a"));function s(t){return t.x+t.vx;}function u(t){return t.y+t.vy;}function c(t){var e,n,r,c=1,l=1;function f(){for(var t,o,f,h,g,p,v,m=e.length,y=0;y<l;++y)for(t=0,o=(0,i.quadtree)(e,s,u).visitAfter(d);t<m;++t)v=(p=n[(f=e[t]).index])*p,h=f.x+f.vx,g=f.y+f.vy,o.visit(b);function b(t,e,n,i,o){var s=t.data,u=t.r,l=p+u;if(s){if(s.index>f.index){var d=h-s.x-s.vx,m=g-s.y-s.vy,y=d*d+m*m;y<l*l&&(0===d&&(y+=(d=(0,a.default)(r))*d),0===m&&(y+=(m=(0,a.default)(r))*m),y=(l-(y=Math.sqrt(y)))/y*c,f.vx+=(d*=y)*(l=(u*=u)/(v+u)),f.vy+=(m*=y)*l,s.vx-=d*(l=1-l),s.vy-=m*l);}return;}return e>h+l||i<h-l||n>g+l||o<g-l;}}function d(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 h(){if(e){var r,i,o=e.length;for(r=0,n=Array(o);r<o;++r)n[(i=e[r]).index]=+t(i,r,e);}}return"function"!=typeof t&&(t=(0,o.default)(null==t?1:+t)),f.initialize=function(t,n){e=t,r=n,h();},f.iterations=function(t){return arguments.length?(l=+t,f):l;},f.strength=function(t){return arguments.length?(c=+t,f):c;},f.radius=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.default)(+e),h(),f):t;},f;}},dcf08bcf:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=function(t){t.nodes().forEach(function(e){i(t.node(e));}),t.edges().forEach(function(e){i(t.edge(e));});},i=function(t){var e=t.width;t.width=t.height,t.height=e;},o=function(t){t.nodes().forEach(function(e){a(t.node(e));}),t.edges().forEach(function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach(function(t){return a(t);}),r.hasOwnProperty("y")&&a(r);});},a=function(t){(null==t?void 0:t.y)&&(t.y=-t.y);},s=function(t){t.nodes().forEach(function(e){u(t.node(e));}),t.edges().forEach(function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach(function(t){return u(t);}),r.hasOwnProperty("x")&&u(r);});},u=function(t){var e=t.x;t.x=t.y,t.y=e;};e.default={adjust:function(t){var e,n=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();("lr"===n||"rl"===n)&&r(t);},undo:function(t){var e,n=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();("bt"===n||"rl"===n)&&o(t),("lr"===n||"rl"===n)&&(s(t),r(t));}};},dd056852:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("22b52967"),o=r._(n("aa9c0e59")),a=r._(n("4b34eb62")),s=r._(n("d700b812"));function u(t){var e=t.min,n=t.max,r=t.tickCount,u=t.nice,c=t.tickInterval,l=t.minLimit,f=t.maxLimit,d=(0,o.default)(e,n,r,u).ticks;return(0,i.isNil)(l)&&(0,i.isNil)(f)?c?(0,a.default)(e,n,c).ticks:d:(0,s.default)(t,(0,i.head)(d),(0,i.last)(d));}},dd0ce2fb:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("889992fe"))&&r.__esModule?r:{default:r},o=function(){function t(){this.linkedList=new i.default;}return t.prototype.isEmpty=function(){return!this.linkedList.head;},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null;},t.prototype.enqueue=function(t){this.linkedList.append(t);},t.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null;},t.prototype.toString=function(t){return this.linkedList.toString(t);},t;}();e.default=o;},dd1e7e85:function(t,e,n){},dd8eda70:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"path2Curve",{enumerable:!0,get:function(){return c;}});var r=n("4c6d310c"),i=n("ce1fe40f"),o=n("477457a1"),a=n("72c22a6b"),s=n("5997f8f4"),u=n("d1133c7e");function c(t,e){if(void 0===e&&(e=!1),(0,s.isCurveArray)(t)){var n,c,l=[].concat(t);return e?[l,[]]:l;}for(var f=(0,a.normalizePath)(t),d=(0,r.__assign)({},i.paramsParser),h=[],g="",p=f.length,v=[],m=0;m<p;m+=1){f[m]&&(g=f[m][0]),h[m]=g;var y=(0,u.segmentToCubic)(f[m],d);f[m]=y,(0,o.fixArc)(f,h,m),p=f.length,"Z"===g&&v.push(m),c=(n=f[m]).length,d.x1=+n[c-2],d.y1=+n[c-1],d.x2=+n[c-4]||d.x1,d.y2=+n[c-3]||d.y1;}return e?[f,v]:f;}},ddb380bf:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"Canvas",{enumerable:!0,get:function(){return o.default;}});var r=n("d1751d7c"),i=n("777fffbe");n("ab51cd4f"),r._(n("be1e82ef"),e);var o=i._(n("4b590b62"));n("36f00621");},ddeef58a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{clearAnimationFrame:function(){return r.clearAnimationFrame;},distance:function(){return o;},each:function(){return r.each;},getPixelRatio:function(){return i;},inBox:function(){return a;},intersectRect:function(){return s;},isArray:function(){return r.isArray;},isFunction:function(){return r.isFunction;},isNil:function(){return r.isNil;},isSamePoint:function(){return c;},isString:function(){return r.isString;},mergeRegion:function(){return u;},mod:function(){return r.mod;},requestAnimationFrame:function(){return r.requestAnimationFrame;},toRadian:function(){return r.toRadian;}});var r=n("22b52967");function i(){return window?window.devicePixelRatio:1;}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o);}function a(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r;}function s(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY);}function u(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e;}function c(t,e){return t[0]===e[0]&&t[1]===e[1];}},de457467:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw Error("invalid nodes data!");return n&&n.forEach(function(t,e){o[t.id]=e,i.push([]);}),r&&r.forEach(function(t){var n=t.source,r=t.target,a=o[n],s=o[r];(a||0===a)&&(s||0===s)&&(i[a][s]=1,e||(i[s][a]=1));}),i;};},df09585d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return g;}});var r=n("777fffbe"),i=n("852bbaa9"),o=n("4c6d310c"),a=n("be1e82ef"),s=n("8d42ebc3"),u=n("f6fd9972"),c=i._(n("04bb6a31")),l=n("ddeef58a"),f=r._(n("d54fbbc1")),d=r._(n("3bc7b30a")),h=u.ext.transform,g=(0,o.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break;}}return e;},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]]);}return i.length>0&&r.push(i),{polygons:n,polylines:r};},isPointInStroke:function(t,e,n,r,i){for(var o=!1,a=e/2,u=0;u<t.length;u++){var g=t[u],p=g.currentPoint,v=g.params,m=g.prePoint,y=g.box;if(!y||(0,l.inBox)(y.x-a,y.y-a,y.width+e,y.height+e,n,r)){switch(g.command){case"L":case"Z":o=(0,f.default)(m[0],m[1],p[0],p[1],e,n,r);break;case"Q":o=s.Quad.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],n,r)<=e/2;break;case"C":o=s.Cubic.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],v[5],v[6],n,r,i)<=e/2;break;case"A":var b=g.arcParams,x=b.cx,_=b.cy,E=b.rx,w=b.ry,M=b.startAngle,C=b.endAngle,A=b.xRotation,S=[n,r,1],D=E>w?E:w,I=h(null,[["t",-x,-_],["r",-A],["s",1/(E>w?1:E/w),1/(E>w?w/E:1)]]);c.transformMat3(S,S,I),o=(0,d.default)(0,0,D,M,C,e,S[0],S[1]);}if(o)break;}}return o;}},a.PathUtil);},df0f4e4b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("533b8f72")),i=function(t){if(!(0,r.default)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e;};},df464bfa:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"toCSSGradient",{enumerable:!0,get:function(){return a;}});var r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,i=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function a(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var a=r.exec(t),s=+a[1]+90;n=a[2],e="linear-gradient(".concat(s,"deg, ");}else if("r"===t[0]){e="radial-gradient(";var a=i.exec(t);n=a[4];}var u=n.match(o);return u.forEach(function(t,n){var r=t.split(":");e+="".concat(r[1]," ").concat(100*Number(r[0]),"%"),n!==u.length-1&&(e+=", ");}),e+=")";}return t;}},df7d0731:function(t,e,n){"use strict";function r(t){return(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;})(t);}function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t;}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value;}}).apply(this,arguments);}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t;})(t,e);}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t);})(t);}n.d(e,"__esModule",{value:!0}),n.d(e,"GraphWithEvent",{enumerable:!0,get:function(){return s;}});var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e);}(u,t);var e,n,s=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0;}catch(t){return!1;}}(),function(){var t,n=a(u);return t=e?Reflect.construct(n,arguments,a(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t;}(t);}(this,t);});function u(){var t;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function");}(this,u);for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=s.call.apply(s,[this].concat(n))).eventPool={},t;}return n=[{key:"appendEvent",value:function(t,e){this.eventPool[t]||(this.eventPool[t]=[]),this.eventPool[t].push(e);}},{key:"removeEvent",value:function(t,e){if(this.eventPool[t]){var n=this.eventPool[t].indexOf(e);n>-1&&this.eventPool[t].splice(n,1);}}},{key:"emitEvent",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.eventPool[t]&&this.eventPool[t].forEach(function(t){t.apply(void 0,n);});}},{key:"setNode",value:function(t,e){return i(a(u.prototype),"setNode",this).call(this,t,e),this.emitEvent("nodeAdd",t,e),this;}},{key:"removeNode",value:function(t){return i(a(u.prototype),"removeNode",this).call(this,t),this.emitEvent("nodeRemove",t),this;}},{key:"setEdge",value:function(t,e,n,r){return i(a(u.prototype),"setEdge",this).call(this,t,e,n,r),this.emitEvent("edgeAdd",t,e,n,r),this;}},{key:"removeEdge",value:function(t,e,n){return i(a(u.prototype),"removeEdge",this).call(this,t,e,n),this.emitEvent("edgeRemove",t,e,n),this;}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r);}}(u.prototype,n),Object.defineProperty(u,"prototype",{writable:!1}),u;}(n("777fffbe")._(n("d7fbc71b")).default);},df7f0ab0:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("300ecc66"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e;}return(0,i.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):(0,a.timeFormat)(n,this.mask);},e.prototype.scale=function(e){var n=e;return((0,o.isString)(n)||(0,o.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n);},e.prototype.translate=function(t){return(0,a.toTimeStamp)(t);},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1;},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,o.isNil)(e)&&(0,o.isNumber)(e)||(this.min=this.translate(this.min)),(0,o.isNil)(n)&&(0,o.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,s=1/0,u=0;(0,o.each)(t,function(t){var e=(0,a.toTimeStamp)(t);if(isNaN(e))throw TypeError("Invalid Time: "+t+" in time scale!");i>e?(s=i,i=e):s>e&&(s=e),u<e&&(u=e),r.push(e);}),t.length>1&&(this.minTickInterval=s-i),(0,o.isNil)(e)&&(this.min=i),(0,o.isNil)(n)&&(this.max=u);}},e;}(r._(n("d988e01b")).default);},dfd2f987:function(t,e,n){"use strict";function r(t,e){if("off"===e)return[].concat(t);var n="number"==typeof e&&e>=1?Math.pow(10,e):1;return t.map(function(t){var r=t.slice(1).map(Number).map(function(t){return e?Math.round(t*n)/n:Math.round(t);});return[t[0]].concat(r);});}n.d(e,"__esModule",{value:!0}),n.d(e,"roundPath",{enumerable:!0,get:function(){return r;}});},dfdb2ac4:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.minBy=e.notime=e.time=e.partition=e.maxRank=e.addBorderNode=e.removeEmptyRanks=e.normalizeRanks=e.buildLayerMatrix=e.intersectRect=e.predecessorWeights=e.successorWeights=e.zipObject=e.asNonCompoundGraph=e.simplify=e.addDummyNode=void 0;var r=n("38788347"),i=n("62734055");e.addDummyNode=function(t,e,n,r){var i;do i="".concat(r).concat(Math.random());while(t.hasNode(i))return n.dummy=e,t.setNode(i,n),i;},e.simplify=function(t){var e=new i.Graph().setGraph(t.graph());return t.nodes().forEach(function(n){e.setNode(n,t.node(n));}),t.edges().forEach(function(n){var r=e.edgeFromArgs(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;},e.asNonCompoundGraph=function(t){var e=new i.Graph({multigraph:t.isMultigraph()}).setGraph(t.graph());return t.nodes().forEach(function(n){var r;(null===(r=t.children(n))||void 0===r?void 0:r.length)||e.setNode(n,t.node(n));}),t.edges().forEach(function(n){e.setEdgeObj(n,t.edge(n));}),e;},e.zipObject=function(t,e){return null==t?void 0:t.reduce(function(t,n,r){return t[n]=e[r],t;},{});},e.successorWeights=function(t){var e={};return t.nodes().forEach(function(n){var r,i={};null===(r=t.outEdges(n))||void 0===r||r.forEach(function(e){var n;i[e.w]=(i[e.w]||0)+((null===(n=t.edge(e))||void 0===n?void 0:n.weight)||0);}),e[n]=i;}),e;},e.predecessorWeights=function(t){var n=t.nodes(),r=n.map(function(e){var n,r={};return null===(n=t.inEdges(e))||void 0===n||n.forEach(function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight;}),r;});return(0,e.zipObject)(n,r);},e.intersectRect=function(t,e){var n,r,i=Number(t.x),o=Number(t.y),a=Number(e.x)-i,s=Number(e.y)-o,u=Number(t.width)/2,c=Number(t.height)/2;return a||s?(Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}):{x:0,y:0};},e.buildLayerMatrix=function(t){for(var n=[],r=(0,e.maxRank)(t)+1,i=0;i<r;i++)n.push([]);t.nodes().forEach(function(e){var r=t.node(e);if(r){var i=r.rank;void 0!==i&&n[i]&&n[i].push(e);}});for(var i=0;i<r;i++)n[i]=n[i].sort(function(e,n){var r,i,o,a;return o=null===(r=t.node(e))||void 0===r?void 0:r.order,a=null===(i=t.node(n))||void 0===i?void 0:i.order,Number(o)-Number(a);});return n;},e.normalizeRanks=function(t){var e=t.nodes().filter(function(e){var n;return(null===(n=t.node(e))||void 0===n?void 0:n.rank)!==void 0;}).map(function(e){return t.node(e).rank;}),n=Math.min.apply(Math,e);t.nodes().forEach(function(e){var r=t.node(e);r.hasOwnProperty("rank")&&n!==1/0&&(r.rank-=n);});},e.removeEmptyRanks=function(t){var e=t.nodes(),n=e.filter(function(e){var n;return(null===(n=t.node(e))||void 0===n?void 0:n.rank)!==void 0;}).map(function(e){return t.node(e).rank;}),r=Math.min.apply(Math,n),i=[];e.forEach(function(e){var n,o=((null===(n=t.node(e))||void 0===n?void 0:n.rank)||0)-r;i[o]||(i[o]=[]),i[o].push(e);});for(var o=0,a=t.graph().nodeRankFactor||0,s=0;s<i.length;s++){var u=i[s];void 0===u?s%a!=0&&(o-=1):o&&(null==u||u.forEach(function(e){var n=t.node(e);n&&(n.rank=n.rank||0,n.rank+=o);}));}},e.addBorderNode=function(t,n,i,o){var a={width:0,height:0};return(0,r.isNumber)(i)&&(0,r.isNumber)(o)&&(a.rank=i,a.order=o),(0,e.addDummyNode)(t,"border",a,n);},e.maxRank=function(t){var e;return t.nodes().forEach(function(n){var r,i=null===(r=t.node(n))||void 0===r?void 0:r.rank;void 0!==i&&(void 0===e||i>e)&&(e=i);}),e||(e=0),e;},e.partition=function(t,e){var n={lhs:[],rhs:[]};return null==t||t.forEach(function(t){e(t)?n.lhs.push(t):n.rhs.push(t);}),n;},e.time=function(t,e){var n=Date.now();try{return e();}finally{console.log("".concat(t," time: ").concat(Date.now()-n,"ms"));}},e.notime=function(t,e){return e();},e.minBy=function(t,e){return t.reduce(function(t,n){return e(t)>e(n)?n:t;});};},e03352a2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"wrap",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("4230714a")),o=r._(n("aac703c5"));function a(t,e){if(Array.isArray(t))return t[0]&&Array.isArray(t[0])?new o.default(t):new i.default(t,e);throw Error("the argument is not an array");}},e055eaa1:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=n("82084c6c"),o=r._(n("d1ab55b2")),a=n("8485cc4c");function s(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i;}function u(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n));}function c(t,e,n,r){var o,a,s,u=-3*t+9*e-9*n+3*r,c=6*t-12*e+6*n,l=3*e-3*t,f=[];if((0,i.isNumberEqual)(u,0))!(0,i.isNumberEqual)(c,0)&&(o=-l/c)>=0&&o<=1&&f.push(o);else{var d=c*c-4*u*l;(0,i.isNumberEqual)(d,0)?f.push(-c/(2*u)):d>0&&(o=(-c+(s=Math.sqrt(d)))/(2*u),a=(-c-s)/(2*u),o>=0&&o<=1&&f.push(o),a>=0&&a<=1&&f.push(a));}return f;}function l(t,e,n,r,i,a,u,c,l){var f=s(t,n,i,u,l),d=s(e,r,a,c,l),h=o.default.pointAt(t,e,n,r,l),g=o.default.pointAt(n,r,i,a,l),p=o.default.pointAt(i,a,u,c,l),v=o.default.pointAt(h.x,h.y,g.x,g.y,l),m=o.default.pointAt(g.x,g.y,p.x,p.y,l);return[[t,e,h.x,h.y,v.x,v.y,f,d],[f,d,m.x,m.y,p.x,p.y,u,c]];}var f={extrema:c,box:function(t,e,n,r,o,a,u,l){for(var f=[t,u],d=[e,l],h=c(t,n,o,u),g=c(e,r,a,l),p=0;p<h.length;p++)f.push(s(t,n,o,u,h[p]));for(var p=0;p<g.length;p++)d.push(s(e,r,a,l,g[p]));return(0,i.getBBoxByArray)(f,d);},length:function(t,e,n,r,i,o,s,u){return function t(e,n,r,i,o,s,u,c,f){if(0===f)return(0,a.snapLength)([e,r,o,u],[n,i,s,c]);var d=l(e,n,r,i,o,s,u,c,.5),h=d[0],g=d[1];return h.push(f-1),g.push(f-1),t.apply(null,h)+t.apply(null,g);}(t,e,n,r,i,o,s,u,3);},nearestPoint:function(t,e,n,r,i,o,u,c,l,f,d){return(0,a.nearestPoint)([t,n,i,u],[e,r,o,c],l,f,s,d);},pointDistance:function(t,e,n,r,o,a,s,u,c,l,f){var d=this.nearestPoint(t,e,n,r,o,a,s,u,c,l,f);return(0,i.distance)(d.x,d.y,c,l);},interpolationAt:s,pointAt:function(t,e,n,r,i,o,a,u,c){return{x:s(t,n,i,a,c),y:s(e,r,o,u,c)};},divide:function(t,e,n,r,i,o,a,s,u){return l(t,e,n,r,i,o,a,s,u);},tangentAngle:function(t,e,n,r,o,a,s,c,l){var f=u(t,n,o,s,l),d=u(e,r,a,c,l);return(0,i.piMod)(Math.atan2(d,f));}};},e06a40df:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r);}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;}function o(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;}function a(t){return function(t){if(Array.isArray(t))return s(t);}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t);}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,void 0);}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}();}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r;}function u(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}(t,"string");return"symbol"==typeof e?e:String(e);}n.d(e,"__esModule",{value:!0}),n.d(e,"svgPathProperties",{enumerable:!0,get:function(){return B;}});var c={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},l=/([astvzqmhlc])([^astvzqmhlc]*)/gi,f=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,d=function(t){var e=t.match(f);return e?e.map(Number):[];},h=i(function(t,e,n,r){var i=this;o(this,"x0",void 0),o(this,"x1",void 0),o(this,"y0",void 0),o(this,"y1",void 0),o(this,"getTotalLength",function(){return Math.sqrt(Math.pow(i.x0-i.x1,2)+Math.pow(i.y0-i.y1,2));}),o(this,"getPointAtLength",function(t){var e=t/Math.sqrt(Math.pow(i.x0-i.x1,2)+Math.pow(i.y0-i.y1,2));e=Number.isNaN(e)?1:e;var n=(i.x1-i.x0)*e,r=(i.y1-i.y0)*e;return{x:i.x0+n,y:i.y0+r};}),o(this,"getTangentAtLength",function(t){var e=Math.sqrt((i.x1-i.x0)*(i.x1-i.x0)+(i.y1-i.y0)*(i.y1-i.y0));return{x:(i.x1-i.x0)/e,y:(i.y1-i.y0)/e};}),o(this,"getPropertiesAtLength",function(t){var e=i.getPointAtLength(t),n=i.getTangentAtLength(t);return{x:e.x,y:e.y,tangentX:n.x,tangentY:n.y};}),this.x0=t,this.x1=e,this.y0=n,this.y1=r;}),g=i(function(t,e,n,r,i,a,s,u,c){var l=this;o(this,"x0",void 0),o(this,"y0",void 0),o(this,"rx",void 0),o(this,"ry",void 0),o(this,"xAxisRotate",void 0),o(this,"LargeArcFlag",void 0),o(this,"SweepFlag",void 0),o(this,"x1",void 0),o(this,"y1",void 0),o(this,"length",void 0),o(this,"getTotalLength",function(){return l.length;}),o(this,"getPointAtLength",function(t){t<0?t=0:t>l.length&&(t=l.length);var e=p({x:l.x0,y:l.y0},l.rx,l.ry,l.xAxisRotate,l.LargeArcFlag,l.SweepFlag,{x:l.x1,y:l.y1},t/l.length);return{x:e.x,y:e.y};}),o(this,"getTangentAtLength",function(t){t<0?t=0:t>l.length&&(t=l.length);var e,n=l.getPointAtLength(t);t<0?t=0:t>l.length&&(t=l.length);var r=(e=t<l.length-.05?l.getPointAtLength(t+.05):l.getPointAtLength(t-.05)).x-n.x,i=e.y-n.y,o=Math.sqrt(r*r+i*i);return t<l.length-.05?{x:-r/o,y:-i/o}:{x:r/o,y:i/o};}),o(this,"getPropertiesAtLength",function(t){var e=l.getTangentAtLength(t),n=l.getPointAtLength(t);return{x:n.x,y:n.y,tangentX:e.x,tangentY:e.y};}),this.x0=t,this.y0=e,this.rx=n,this.ry=r,this.xAxisRotate=i,this.LargeArcFlag=a,this.SweepFlag=s,this.x1=u,this.y1=c;var f=v(300,function(o){return p({x:t,y:e},n,r,i,a,s,{x:u,y:c},o);});this.length=f.arcLength;}),p=function(t,e,n,r,i,o,a,s){e=Math.abs(e),n=Math.abs(n);var u=y(r=m(r,360));if(t.x===a.x&&t.y===a.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(0===e||0===n)return{x:0,y:0,ellipticalArcAngle:0};var c=(t.x-a.x)/2,l=(t.y-a.y)/2,f={x:Math.cos(u)*c+Math.sin(u)*l,y:-Math.sin(u)*c+Math.cos(u)*l},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=(Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2))/(Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2)),g=(i!==o?1:-1)*Math.sqrt(h=h<0?0:h),p=g*(e*f.y/n),v=g*(-n*f.x/e),b={x:Math.cos(u)*p-Math.sin(u)*v+(t.x+a.x)/2,y:Math.sin(u)*p+Math.cos(u)*v+(t.y+a.y)/2},x={x:(f.x-p)/e,y:(f.y-v)/n},E=_({x:1,y:0},x),w=_(x,{x:(-f.x-p)/e,y:(-f.y-v)/n});!o&&w>0?w-=2*Math.PI:o&&w<0&&(w+=2*Math.PI);var M=E+(w%=2*Math.PI)*s,C=e*Math.cos(M),A=n*Math.sin(M);return{x:Math.cos(u)*C-Math.sin(u)*A+b.x,y:Math.sin(u)*C+Math.cos(u)*A+b.y,ellipticalArcStartAngle:E,ellipticalArcEndAngle:E+w,ellipticalArcAngle:M,ellipticalArcCenter:b,resultantRx:e,resultantRy:n};},v=function(t,e){t=t||500;for(var n,r=0,i=[],o=[],a=e(0),s=0;s<t;s++){var u=x(1/t*s,0,1);r+=b(a,n=e(u)),o.push([a,n]),i.push({t:u,arcLength:r}),a=n;}return n=e(1),o.push([a,n]),r+=b(a,n),i.push({t:1,arcLength:r}),{arcLength:r,arcLengthMap:i,approximationLines:o};},m=function(t,e){return(t%e+e)%e;},y=function(t){return Math.PI/180*t;},b=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));},x=function(t,e,n){return Math.min(Math.max(t,e),n);},_=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2)));return(t.x*e.y-t.y*e.x<0?-1:1)*Math.acos(n/r);},E=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],w=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],M=[[1],[1,1],[1,2,1],[1,3,3,1]],C=function(t,e,n){return{x:(1-n)*(1-n)*(1-n)*t[0]+3*(1-n)*(1-n)*n*t[1]+3*(1-n)*n*n*t[2]+n*n*n*t[3],y:(1-n)*(1-n)*(1-n)*e[0]+3*(1-n)*(1-n)*n*e[1]+3*(1-n)*n*n*e[2]+n*n*n*e[3]};},A=function(t,e,n){return D([3*(t[1]-t[0]),3*(t[2]-t[1]),3*(t[3]-t[2])],[3*(e[1]-e[0]),3*(e[2]-e[1]),3*(e[3]-e[2])],n);},S=function(t,e,n){var r,i,o;r=n/2,i=0;for(var a=0;a<20;a++)o=r*E[20][a]+r,i+=w[20][a]*function(t,e,n){var r=k(1,n,t),i=k(1,n,e);return Math.sqrt(r*r+i*i);}(t,e,o);return r*i;},D=function(t,e,n){return{x:(1-n)*(1-n)*t[0]+2*(1-n)*n*t[1]+n*n*t[2],y:(1-n)*(1-n)*e[0]+2*(1-n)*n*e[1]+n*n*e[2]};},I=function(t,e,n){void 0===n&&(n=1);var r=t[0]-2*t[1]+t[2],i=e[0]-2*e[1]+e[2],o=2*t[1]-2*t[0],a=2*e[1]-2*e[0],s=4*(r*r+i*i);if(0===s)return n*Math.sqrt(Math.pow(t[2]-t[0],2)+Math.pow(e[2]-e[0],2));var u=4*(r*o+i*a)/(2*s),c=n+u,l=(o*o+a*a)/s-u*u,f=c*c+l>0?Math.sqrt(c*c+l):0,d=u*u+l>0?Math.sqrt(u*u+l):0,h=u+Math.sqrt(u*u+l)!==0&&(c+f)/(u+d)!=0?l*Math.log(Math.abs((c+f)/(u+d))):0;return Math.sqrt(s)/2*(c*f-u*d+h);},T=function(t,e,n){return{x:2*(1-n)*(t[1]-t[0])+2*n*(t[2]-t[1]),y:2*(1-n)*(e[1]-e[0])+2*n*(e[2]-e[1])};},k=function t(e,n,r){var i,o,a=r.length-1;if(0===a)return 0;if(0===e){o=0;for(var s=0;s<=a;s++)o+=M[a][s]*Math.pow(1-n,a-s)*Math.pow(n,s)*r[s];return o;}i=Array(a);for(var u=0;u<a;u++)i[u]=a*(r[u+1]-r[u]);return t(e-1,n,i);},F=function(t,e,n){for(var r=1,i=t/e,o=(t-n(i))/e,a=0;r>.001;){var s=Math.abs(t-n(i+o))/e;if(s<r)r=s,i+=o;else{var u=Math.abs(t-n(i-o))/e;u<r?(r=u,i-=o):o/=2;}if(++a>500)break;}return i;},N=i(function(t,e,n,r,i,a,s,u){var c=this;o(this,"a",void 0),o(this,"b",void 0),o(this,"c",void 0),o(this,"d",void 0),o(this,"length",void 0),o(this,"getArcLength",void 0),o(this,"getPoint",void 0),o(this,"getDerivative",void 0),o(this,"getTotalLength",function(){return c.length;}),o(this,"getPointAtLength",function(t){var e=[c.a.x,c.b.x,c.c.x,c.d.x],n=[c.a.y,c.b.y,c.c.y,c.d.y],r=F(t,c.length,function(t){return c.getArcLength(e,n,t);});return c.getPoint(e,n,r);}),o(this,"getTangentAtLength",function(t){var e=[c.a.x,c.b.x,c.c.x,c.d.x],n=[c.a.y,c.b.y,c.c.y,c.d.y],r=F(t,c.length,function(t){return c.getArcLength(e,n,t);}),i=c.getDerivative(e,n,r),o=Math.sqrt(i.x*i.x+i.y*i.y);return o>0?{x:i.x/o,y:i.y/o}:{x:0,y:0};}),o(this,"getPropertiesAtLength",function(t){var e,n=[c.a.x,c.b.x,c.c.x,c.d.x],r=[c.a.y,c.b.y,c.c.y,c.d.y],i=F(t,c.length,function(t){return c.getArcLength(n,r,t);}),o=c.getDerivative(n,r,i),a=Math.sqrt(o.x*o.x+o.y*o.y);e=a>0?{x:o.x/a,y:o.y/a}:{x:0,y:0};var s=c.getPoint(n,r,i);return{x:s.x,y:s.y,tangentX:e.x,tangentY:e.y};}),o(this,"getC",function(){return c.c;}),o(this,"getD",function(){return c.d;}),this.a={x:t,y:e},this.b={x:n,y:r},this.c={x:i,y:a},void 0!==s&&void 0!==u?(this.getArcLength=S,this.getPoint=C,this.getDerivative=A,this.d={x:s,y:u}):(this.getArcLength=I,this.getPoint=D,this.getDerivative=T,this.d={x:0,y:0}),this.length=this.getArcLength([this.a.x,this.b.x,this.c.x,this.d.x],[this.a.y,this.b.y,this.c.y,this.d.y],1);}),O=i(function(t){var e=this;o(this,"length",0),o(this,"partial_lengths",[]),o(this,"functions",[]),o(this,"initial_point",null),o(this,"getPartAtLength",function(t){t<0?t=0:t>e.length&&(t=e.length);for(var n=e.partial_lengths.length-1;e.partial_lengths[n]>=t&&n>0;)n--;return n++,{fraction:t-e.partial_lengths[n-1],i:n};}),o(this,"getTotalLength",function(){return e.length;}),o(this,"getPointAtLength",function(t){var n=e.getPartAtLength(t),r=e.functions[n.i];if(r)return r.getPointAtLength(n.fraction);if(e.initial_point)return e.initial_point;throw Error("Wrong function at this part.");}),o(this,"getTangentAtLength",function(t){var n=e.getPartAtLength(t),r=e.functions[n.i];if(r)return r.getTangentAtLength(n.fraction);if(e.initial_point)return{x:0,y:0};throw Error("Wrong function at this part.");}),o(this,"getPropertiesAtLength",function(t){var n=e.getPartAtLength(t),r=e.functions[n.i];if(r)return r.getPropertiesAtLength(n.fraction);if(e.initial_point)return{x:e.initial_point.x,y:e.initial_point.y,tangentX:0,tangentY:0};throw Error("Wrong function at this part.");}),o(this,"getParts",function(){for(var t=[],n=0;n<e.functions.length;n++)if(null!==e.functions[n]){e.functions[n]=e.functions[n];var r={start:e.functions[n].getPointAtLength(0),end:e.functions[n].getPointAtLength(e.partial_lengths[n]-e.partial_lengths[n-1]),length:e.partial_lengths[n]-e.partial_lengths[n-1],getPointAtLength:e.functions[n].getPointAtLength,getTangentAtLength:e.functions[n].getTangentAtLength,getPropertiesAtLength:e.functions[n].getPropertiesAtLength};t.push(r);}return t;});for(var n,r=Array.isArray(t)?t:function(t){var e=(t&&t.length>0?t:"M0,0").match(l);if(!e)throw Error("No path elements found in string ".concat(t));return e.reduce(function(t,e){var n=e.charAt(0),r=n.toLowerCase(),i=d(e.substring(1));if("m"===r&&i.length>2&&(t.push([n].concat(a(i.splice(0,2)))),r="l",n="m"===n?"l":"L"),"a"===r.toLowerCase()&&(5===i.length||6===i.length)){var o=e.substring(1).trim().split(" ");i=[Number(o[0]),Number(o[1]),Number(o[2]),Number(o[3].charAt(0)),Number(o[3].charAt(1)),Number(o[3].substring(2)),Number(o[4])];}for(;i.length>=0;){if(i.length===c[r]){t.push([n].concat(a(i.splice(0,c[r]))));break;}if(i.length<c[r])throw Error('Malformed path data: "'.concat(n,'" must have ').concat(c[r]," elements and has ").concat(i.length,": ").concat(e));t.push([n].concat(a(i.splice(0,c[r]))));}return t;},[]);}(t),i=[0,0],s=[0,0],u=[0,0],f=0;f<r.length;f++){if("M"===r[f][0])u=[(i=[r[f][1],r[f][2]])[0],i[1]],this.functions.push(null),0===f&&(this.initial_point={x:r[f][1],y:r[f][2]});else if("m"===r[f][0])u=[(i=[r[f][1]+i[0],r[f][2]+i[1]])[0],i[1]],this.functions.push(null);else if("L"===r[f][0])this.length+=Math.sqrt(Math.pow(i[0]-r[f][1],2)+Math.pow(i[1]-r[f][2],2)),this.functions.push(new h(i[0],r[f][1],i[1],r[f][2])),i=[r[f][1],r[f][2]];else if("l"===r[f][0])this.length+=Math.sqrt(Math.pow(r[f][1],2)+Math.pow(r[f][2],2)),this.functions.push(new h(i[0],r[f][1]+i[0],i[1],r[f][2]+i[1])),i=[r[f][1]+i[0],r[f][2]+i[1]];else if("H"===r[f][0])this.length+=Math.abs(i[0]-r[f][1]),this.functions.push(new h(i[0],r[f][1],i[1],i[1])),i[0]=r[f][1];else if("h"===r[f][0])this.length+=Math.abs(r[f][1]),this.functions.push(new h(i[0],i[0]+r[f][1],i[1],i[1])),i[0]=r[f][1]+i[0];else if("V"===r[f][0])this.length+=Math.abs(i[1]-r[f][1]),this.functions.push(new h(i[0],i[0],i[1],r[f][1])),i[1]=r[f][1];else if("v"===r[f][0])this.length+=Math.abs(r[f][1]),this.functions.push(new h(i[0],i[0],i[1],i[1]+r[f][1])),i[1]=r[f][1]+i[1];else if("z"===r[f][0]||"Z"===r[f][0])this.length+=Math.sqrt(Math.pow(u[0]-i[0],2)+Math.pow(u[1]-i[1],2)),this.functions.push(new h(i[0],u[0],i[1],u[1])),i=[u[0],u[1]];else if("C"===r[f][0])n=new N(i[0],i[1],r[f][1],r[f][2],r[f][3],r[f][4],r[f][5],r[f][6]),this.length+=n.getTotalLength(),i=[r[f][5],r[f][6]],this.functions.push(n);else if("c"===r[f][0])(n=new N(i[0],i[1],i[0]+r[f][1],i[1]+r[f][2],i[0]+r[f][3],i[1]+r[f][4],i[0]+r[f][5],i[1]+r[f][6])).getTotalLength()>0?(this.length+=n.getTotalLength(),this.functions.push(n),i=[r[f][5]+i[0],r[f][6]+i[1]]):this.functions.push(new h(i[0],i[0],i[1],i[1]));else if("S"===r[f][0]){if(f>0&&["C","c","S","s"].indexOf(r[f-1][0])>-1){if(n){var p=n.getC();n=new N(i[0],i[1],2*i[0]-p.x,2*i[1]-p.y,r[f][1],r[f][2],r[f][3],r[f][4]);}}else n=new N(i[0],i[1],i[0],i[1],r[f][1],r[f][2],r[f][3],r[f][4]);n&&(this.length+=n.getTotalLength(),i=[r[f][3],r[f][4]],this.functions.push(n));}else if("s"===r[f][0]){if(f>0&&["C","c","S","s"].indexOf(r[f-1][0])>-1){if(n){var v=n.getC(),m=n.getD();n=new N(i[0],i[1],i[0]+m.x-v.x,i[1]+m.y-v.y,i[0]+r[f][1],i[1]+r[f][2],i[0]+r[f][3],i[1]+r[f][4]);}}else n=new N(i[0],i[1],i[0],i[1],i[0]+r[f][1],i[1]+r[f][2],i[0]+r[f][3],i[1]+r[f][4]);n&&(this.length+=n.getTotalLength(),i=[r[f][3]+i[0],r[f][4]+i[1]],this.functions.push(n));}else if("Q"===r[f][0]){if(i[0]==r[f][1]&&i[1]==r[f][2]){var y=new h(r[f][1],r[f][3],r[f][2],r[f][4]);this.length+=y.getTotalLength(),this.functions.push(y);}else n=new N(i[0],i[1],r[f][1],r[f][2],r[f][3],r[f][4],void 0,void 0),this.length+=n.getTotalLength(),this.functions.push(n);i=[r[f][3],r[f][4]],s=[r[f][1],r[f][2]];}else if("q"===r[f][0]){if(0!=r[f][1]||0!=r[f][2])n=new N(i[0],i[1],i[0]+r[f][1],i[1]+r[f][2],i[0]+r[f][3],i[1]+r[f][4],void 0,void 0),this.length+=n.getTotalLength(),this.functions.push(n);else{var b=new h(i[0]+r[f][1],i[0]+r[f][3],i[1]+r[f][2],i[1]+r[f][4]);this.length+=b.getTotalLength(),this.functions.push(b);}s=[i[0]+r[f][1],i[1]+r[f][2]],i=[r[f][3]+i[0],r[f][4]+i[1]];}else if("T"===r[f][0]){if(f>0&&["Q","q","T","t"].indexOf(r[f-1][0])>-1)n=new N(i[0],i[1],2*i[0]-s[0],2*i[1]-s[1],r[f][1],r[f][2],void 0,void 0),this.functions.push(n),this.length+=n.getTotalLength();else{var x=new h(i[0],r[f][1],i[1],r[f][2]);this.functions.push(x),this.length+=x.getTotalLength();}s=[2*i[0]-s[0],2*i[1]-s[1]],i=[r[f][1],r[f][2]];}else if("t"===r[f][0]){if(f>0&&["Q","q","T","t"].indexOf(r[f-1][0])>-1)n=new N(i[0],i[1],2*i[0]-s[0],2*i[1]-s[1],i[0]+r[f][1],i[1]+r[f][2],void 0,void 0),this.length+=n.getTotalLength(),this.functions.push(n);else{var _=new h(i[0],i[0]+r[f][1],i[1],i[1]+r[f][2]);this.length+=_.getTotalLength(),this.functions.push(_);}s=[2*i[0]-s[0],2*i[1]-s[1]],i=[r[f][1]+i[0],r[f][2]+i[1]];}else if("A"===r[f][0]){var E=new g(i[0],i[1],r[f][1],r[f][2],r[f][3],1===r[f][4],1===r[f][5],r[f][6],r[f][7]);this.length+=E.getTotalLength(),i=[r[f][6],r[f][7]],this.functions.push(E);}else if("a"===r[f][0]){var w=new g(i[0],i[1],r[f][1],r[f][2],r[f][3],1===r[f][4],1===r[f][5],i[0]+r[f][6],i[1]+r[f][7]);this.length+=w.getTotalLength(),i=[i[0]+r[f][6],i[1]+r[f][7]],this.functions.push(w);}this.partial_lengths.push(this.length);}}),B=i(function(t){var e=this;if(o(this,"inst",void 0),o(this,"getTotalLength",function(){return e.inst.getTotalLength();}),o(this,"getPointAtLength",function(t){return e.inst.getPointAtLength(t);}),o(this,"getTangentAtLength",function(t){return e.inst.getTangentAtLength(t);}),o(this,"getPropertiesAtLength",function(t){return e.inst.getPropertiesAtLength(t);}),o(this,"getParts",function(){return e.inst.getParts();}),this.inst=new O(t),!(this instanceof B))return new B(t);});},e081e66d:function(t,e,n){"use strict";function r(t){return t[0];}function i(t){return arguments.length?(this._x=t,this):this._x;}n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return i;},defaultX:function(){return r;}});},e0a44ed9:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("afb67b89"),o=r._(n("b6b3d6c6"));class a extends o.default{constructor(t,e,n){let r=(0,i.checkIndices)(t,e,n);super(t,r.row.length,r.column.length),this.rowIndices=r.row,this.columnIndices=r.column;}set(t,e,n){return this.matrix.set(this.rowIndices[t],this.columnIndices[e],n),this;}get(t,e){return this.matrix.get(this.rowIndices[t],this.columnIndices[e]);}}},e0f519a2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=function(){function t(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,null!=t&&(this.quad=t);}return t.prototype.insert=function(e){if(null==this.body){this.body=e;return;}this._isExternal()?(this.quad&&(this.NW=new t(this.quad.NW()),this.NE=new t(this.quad.NE()),this.SW=new t(this.quad.SW()),this.SE=new t(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e));},t.prototype._putBody=function(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t));},t.prototype._isExternal=function(){return null==this.NW&&null==this.NE&&null==this.SW&&null==this.SE;},t.prototype.updateForce=function(t){null!=this.body&&t!==this.body&&(this._isExternal()?t.addForce(this.body):(this.quad?this.quad.getLength():0)/this.body.distanceTo(t)<this.theta?t.addForce(this.body):(this.NW&&this.NW.updateForce(t),this.NE&&this.NE.updateForce(t),this.SW&&this.SW.updateForce(t),this.SE&&this.SE.updateForce(t)));},t;}();e.default=r;},e1924b3c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=n("777fffbe")._(n("f0b8b26a")).default;},e1f7de7d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("22b52967"),i=n("10f09425"),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},a=function(){function t(t){this.config=(0,r.deepMix)({},t),this.init();}return t.prototype.update=function(t){this.config=(0,r.deepMix)({},this.config,t),this.updateElement(),this.renderMarker();},t.prototype.init=function(){this.initElement(),this.renderMarker();},t.prototype.initElement=function(){var t=this.config,e=t.group,n=t.style,r=n.scale,a=void 0===r?1:r,s=n.offsetX,u=n.offsetY,c=this.config.x+(void 0===s?0:s),l=this.config.y+(void 0===u?0:u),f=e.addGroup({name:i.PLAY_PAUSE_BTN});this.startMarkerGroup=f.addGroup({name:i.PLAY_PAUSE_BTN}),this.circle=e.addShape("circle",{attrs:o({x:c,y:l,r:this.config.r*a},n),name:i.PLAY_PAUSE_BTN}),this.startMarker=this.startMarkerGroup.addShape("path",{attrs:{path:this.getStartMarkerPath(c,l,a),fill:n.stroke||"#aaa"},name:"start-marker"}),this.pauseMarkerGroup=f.addGroup({name:i.PLAY_PAUSE_BTN});var d=.25*this.config.r*a,h=.5*this.config.r*Math.sqrt(3)*a;this.pauseLeftMarker=this.pauseMarkerGroup.addShape("rect",{attrs:{x:c-.375*this.config.r*a,y:l-h/2,width:d,height:h,fill:n.stroke||"#aaa",lineWidth:0}}),this.pauseRightMarker=this.pauseMarkerGroup.addShape("rect",{attrs:{x:c+1/8*this.config.r*a,y:l-h/2,width:d,height:h,fill:n.stroke||"#aaa",lineWidth:0}});},t.prototype.updateElement=function(){var t=this.config.style,e=t.scale,n=void 0===e?1:e,r=t.offsetX,i=t.offsetY,o=this.config.x+(void 0===r?0:r),a=this.config.y+(void 0===i?0:i);this.circle.attr("x",o),this.circle.attr("y",a),this.circle.attr("r",this.config.r*n),this.startMarker.attr("path",this.getStartMarkerPath(o,a,n));var s=.25*this.config.r*n,u=.5*this.config.r*Math.sqrt(3)*n;this.pauseLeftMarker.attr("x",o-(1/4+1/8)*this.config.r*n),this.pauseLeftMarker.attr("y",a-u/2),this.pauseLeftMarker.attr("width",s),this.pauseLeftMarker.attr("height",u),this.pauseRightMarker.attr("x",o+1/8*this.config.r*n),this.pauseRightMarker.attr("y",a-u/2),this.pauseRightMarker.attr("width",s),this.pauseRightMarker.attr("height",u);},t.prototype.renderMarker=function(){this.config.isPlay?(this.startMarkerGroup.hide(),this.pauseMarkerGroup.show()):(this.startMarkerGroup.show(),this.pauseMarkerGroup.hide());},t.prototype.getStartMarkerPath=function(t,e,n){var r=.5*this.config.r*Math.sqrt(3)*n;return[["M",t-r/Math.sqrt(3)/2,e-r/2],["L",t+r/Math.sqrt(3),e],["L",t-r/Math.sqrt(3)/2,e+r/2]];},t;}();},e27651ea:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"WebGLEngine",{enumerable:!0,get:function(){return m;}});var r=n("777fffbe"),i=r._(n("c3d456ca")),o=r._(n("21422ae0")),a=r._(n("78294f9e")),s=r._(n("611917f7")),u=n("769809e4"),c=r._(n("60c702b0")),l=r._(n("2becae4d")),f=r._(n("b4e2232d")),d=r._(n("40ef983d")),h=r._(n("26bc5a85")),g=r._(n("d4d2993d")),p=r._(n("b108c79c")),v=r._(n("d3744cd9")),m=function(){var t;function e(){var t,n,r=this;(0,o.default)(this,e),this.supportWebGPU=!1,this.useWGSL=!1,this.$canvas=void 0,this.gl=void 0,this.inited=void 0,this.createModel=(t=(0,i.default)(s.default.mark(function t(e){return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.uniforms){t.next=3;break;}return t.next=3,Promise.all(Object.keys(e.uniforms).map(function(){var t=(0,i.default)(s.default.mark(function t(n){var r;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.uniforms[n]&&void 0!==e.uniforms[n].load)){t.next=5;break;}return t.next=3,e.uniforms[n].load();case 3:r=t.sent,e.uniforms[n]=r;case 5:case"end":return t.stop();}},t);}));return function(e){return t.apply(this,arguments);};}()));case 3:return t.abrupt("return",new p.default(r.gl,e));case 4:case"end":return t.stop();}},t);})),function(e){return t.apply(this,arguments);}),this.createAttribute=function(t){return new l.default(r.gl,t);},this.createBuffer=function(t){return new f.default(r.gl,t);},this.createElements=function(t){return new h.default(r.gl,t);},this.createTexture2D=function(t){return new v.default(r.gl,t);},this.createFramebuffer=function(t){return new g.default(r.gl,t);},this.useFramebuffer=function(t,e){r.gl({framebuffer:t?t.get():null})(e);},this.createComputeModel=(n=(0,i.default)(s.default.mark(function t(e){return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new d.default(r.gl,e));case 1:case"end":return t.stop();}},t);})),function(t){return n.apply(this,arguments);}),this.clear=function(t){var e=t.color,n=t.depth,i=t.stencil,o=t.framebuffer,a=void 0===o?null:o,s={color:e,depth:n,stencil:i};s.framebuffer=null===a?a:a.get(),r.gl.clear(s);},this.setScissor=function(t){r.gl&&r.gl._gl&&(t.enable&&t.box?(r.gl._gl.enable(u.gl.SCISSOR_TEST),r.gl._gl.scissor(t.box.x,t.box.y,t.box.width,t.box.height)):r.gl._gl.disable(u.gl.SCISSOR_TEST),r.gl._refresh());},this.viewport=function(t){var e=t.x,n=t.y,i=t.width,o=t.height;r.gl&&r.gl._gl&&(r.gl._gl.viewport(e,n,i,o),r.gl._refresh());},this.readPixels=function(t){var e=t.framebuffer,n={x:t.x,y:t.y,width:t.width,height:t.height};return e&&(n.framebuffer=e.get()),r.gl.read(n);},this.getCanvas=function(){return r.$canvas;},this.getGLContext=function(){return r.gl._gl;},this.destroy=function(){r.gl&&(r.gl.destroy(),r.inited=!1);};}return(0,a.default)(e,[{key:"init",value:(t=(0,i.default)(s.default.mark(function t(e){return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.inited){t.next=2;break;}return t.abrupt("return");case 2:return this.$canvas=e.canvas,t.next=5,new Promise(function(t,n){(0,c.default)({canvas:e.canvas,attributes:{alpha:!0,antialias:e.antialias,premultipliedAlpha:!0},pixelRatio:1,extensions:["OES_element_index_uint","OES_texture_float","OES_standard_derivatives","angle_instanced_arrays"],optionalExtensions:["EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture"],profile:!0,onDone:function(e,r){(e||!r)&&n(e),t(r);}});});case 5:this.gl=t.sent,this.inited=!0;case 7:case"end":return t.stop();}},t,this);})),function(e){return t.apply(this,arguments);})},{key:"isFloatSupported",value:function(){return this.gl.limits.readFloat;}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),e;}();},e288102e:function(t,e,n){},e29a6735:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("071f0c13")),o=r._(n("533b8f72")),a=function(t,e){for(var n=null,r=0;r<t.length;r++){var a=t[r][e];if(!(0,i.default)(a)){n=(0,o.default)(a)?a[0]:a;break;}}return n;};},e2fd234a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r=n("4c6d310c"),i=n("22b52967"),o=n("6a4ad838"),a=function(t,e,n){for(var r,i=1/0,o=0;o<e.length;o++){var a=e[o].id;!n[a]&&t[a]<=i&&(i=t[a],r=e[o]);}return r;};e.default=function(t,e,n,s){var u=t.nodes,c=void 0===u?[]:u,l=t.edges,f=void 0===l?[]:l,d=[],h={},g={},p={};c.forEach(function(t,n){var r=t.id;d.push(r),g[r]=1/0,r===e&&(g[r]=0);});for(var v=c.length,m=0;m<v;m++)!function(t){var e=a(g,c,h),r=e.id;h[r]=!0,g[r]!==1/0&&(n?(0,o.getOutEdgesNodeId)(r,f):(0,o.getEdgesByNodeId)(r,f)).forEach(function(t){var n=t.target,i=t.source,o=n===r?i:n,a=s&&t[s]?t[s]:1;g[o]>g[e.id]+a?(g[o]=g[e.id]+a,p[o]=[e.id]):g[o]===g[e.id]+a&&p[o].push(e.id);});}(0);p[e]=[e];var y={};for(var b in g)g[b]!==1/0&&function t(e,n,o,a){if(e===n)return[e];if(a[n])return a[n];for(var s=[],u=0,c=o[n];u<c.length;u++){var l=t(e,c[u],o,a);if(!l)return;for(var f=0;f<l.length;f++){var d=l[f];(0,i.isArray)(d)?s.push((0,r.__spreadArray)((0,r.__spreadArray)([],d,!0),[n],!1)):s.push([d,n]);}}return a[n]=s,a[n];}(e,b,p,y);var x={};for(var b in y)x[b]=y[b][0];return{length:g,path:x,allPath:y};};},e3a1b1ed:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("f0b8b26a")),o=r._(n("533b8f72")),a=r._(n("120583e1")),s=function(t,e,n){if(!(0,o.default)(t)&&!(0,a.default)(t))return t;var r=n;return(0,i.default)(t,function(t,n){r=e(r,t,n);}),r;};},e3b32e43:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("84b3089e"));e.default=function(t,e){if(!t.nodes||0===t.nodes.length)return t;var n=e.width,r=e.height,o=e.nodeMinGap,a=1e4,s=1e4;t.nodes.forEach(function(t){var e=t.size[0]||50,n=t.size[1]||50;a=Math.min(e,a),s=Math.min(n,s);});var u=new i.default;u.init(n,r,{CELL_H:s,CELL_W:a}),t.nodes.forEach(function(t){var e=u.occupyNearest(t);e&&(e.node={id:t.id,size:t.size},t.x=e.x,t.y=e.y,t.dx=e.dx,t.dy=e.dy);});for(var c=0;c<t.nodes.length;c++){var l=t.nodes[c],f=u.findGridByNodeId(l.id);if(!f)throw Error("can not find node cell");var d=f.column,h=f.row;if(l.size[0]+o>a){for(var g=Math.ceil((l.size[0]+o)/a)-1,p=g,v=0;v<g;v++){var m=u.additionColumn.indexOf(d+v+1)>-1;if(m&&!u.cells[d+v+1][h].node)p--;else break;}u.insertColumn(d,p);}if(l.size[1]+o>s){for(var g=Math.ceil((l.size[1]+o)/s)-1,p=g,v=0;v<g;v++){var m=u.additionRow.indexOf(h+v+1)>-1;if(m&&!u.cells[d][h+v+1].node)p--;else break;}u.insertRow(h,p);}}for(var c=0;c<u.columnNum;c++)for(var v=0;v<u.rowNum;v++)!function(e){var n=u.cells[c][e];if(n.node){var r=t.nodes.find(function(t){var e;return t.id===(null===(e=null==n?void 0:n.node)||void 0===e?void 0:e.id);});r&&(r.x=n.x+r.size[0]/2,r.y=n.y+r.size[1]/2);}}(v);};},e3e7cc1f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=r._(n("8b6af789")),o=r._(n("0386d7ea")),a=r._(n("bd41dba3")),s=r._(n("a679da2f")),u=function(t,e){if(!(0,a.default)(t))return null;if((0,i.default)(e)&&(n=e),(0,s.default)(e)&&(n=function(t){return(0,o.default)(t,e);}),n){for(var n,r=0;r<t.length;r+=1)if(n(t[r]))return t[r];}return null;};},e3f92a43:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getPropertiesAtLength",{enumerable:!0,get:function(){return o;}});var r=n("cb98cfaf"),i=n("500428c5");function o(t,e){var n=(0,r.parsePathString)(t);if("string"==typeof n)throw TypeError(n);var o=n.slice(),a=(0,i.getTotalLength)(o),s=o.length-1,u=0,c=0,l=n[0],f=l.slice(-2),d=f[0],h=f[1];if(s<=0||!e||!Number.isFinite(e))return{segment:l,index:0,length:c,point:{x:d,y:h},lengthAtSegment:u};if(e>=a)return o=n.slice(0,-1),c=a-(u=(0,i.getTotalLength)(o)),{segment:n[s],index:s,length:c,lengthAtSegment:u};for(var g=[];s>0;)l=o[s],o=o.slice(0,-1),c=a-(u=(0,i.getTotalLength)(o)),a=u,g.push({segment:l,index:s,length:c,lengthAtSegment:u}),s-=1;return g.find(function(t){return t.lengthAtSegment<=e;});}},e483958d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return f;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=n("cf6c8813"),s=r._(n("235d18ef")),u=n("ddeef58a"),c=n("11214b3f"),l={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]];},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"]];}},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache();},e.prototype._resetParamsCache=function(){this.set("paramsCache",{});},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache();},e.prototype.isOnlyHitBox=function(){return!0;},e.prototype._getR=function(t){return(0,o.isNil)(t.r)?t.radius:t.r;},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,s=r.symbol||"circle",c=this._getR(r);if((0,u.isFunction)(s))n=(t=s)(i,o,c),n=(0,a.path2Absolute)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,o,c);}return n;},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");(0,c.drawPath)(this,t,{path:e},n);},e.Symbols=l,e;}(s.default);},e4c47149:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6665ed3f")),i=function(t){return(0,r.default)(t).toUpperCase();};},e4c72138:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r={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"]];},triangleDown: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"]];}},i={get:function(t){return r[t];},register:function(t,e){r[t]=e;},remove:function(t){delete r[t];},getAll:function(){return r;}};},e4cb87f2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("f6fd9972"),i=n("22b52967"),o=n("634a0cd7"),a=r.ext.transform,s={getDefaultCfg:function(){return this.isFireFox="firefox"===(0,o.getBrowserName)(),{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}};},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"};},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];t.preventDefault(),r&&(!this.shouldBegin||this.shouldBegin(t,this))&&(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,r&&(this.endPoint={pageX:r.pageX,pageY:r.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1);},onTouchMove:function(t){if(this.moveable){t.preventDefault();var e=t.originalEvent.touches,n=e[0],r=e[1];if(r){this.endPoint||(this.endPoint={pageX:r.pageX,pageY:r.pageY});var i=function(t,e){return Math.hypot(e.x-t.x,e.y-t.y);},o=i({x:n.pageX,y:n.pageY},{x:r.pageX,y:r.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),a=this.originScale*o;this.currentScale=a;var s=this.get("minZoom")||this.graph.get("minZoom");if(!(a>(this.get("maxZoom")||this.graph.get("maxZoom")))&&!(a<s)){var u=this.get("animate"),c=this.get("animateCfg"),l=this.graph.get("canvas").getPointByClient(t.clientX,t.clientY);this.graph.zoomTo(a,{x:l.x,y:l.y},u,c),this.graph.emit("wheelzoom",t);}}}},onTouchEnd:function(){this.moveable=!1,this.endPoint=null;},onWheel:function(t){var e=this,n=this.graph,r=this.fixSelectedItems;if((!this.shouldBegin||this.shouldBegin(t,this))&&this.shouldUpdate(t,this)){t.preventDefault();var o=n.get("canvas").getPointByClient(t.clientX,t.clientY),s=this.get("sensitivity"),u=n.getZoom(),c=u;c=u*(this.isFireFox?t.deltaY>0||t.wheelDelta<0?1-.05*s:1/(1-.05*s):t.wheelDelta<0?1-.05*s:1/(1-.05*s));var l=this.get("minZoom")||n.get("minZoom"),f=this.get("maxZoom")||n.get("maxZoom");if(c>f?c=f:c<l&&(c=l),this.get("enableOptimize")){var d=this.get("optimizeZoom"),h=this.get("optimized"),g=n.getNodes(),p=n.getEdges(),v=g.length,m=p.length;if(!h){for(var y=0;y<v;y++){var b=g[y];if(!b.destroyed)for(var x=b.get("group").get("children"),_=x.length,E=0;E<_;E++){var w=x[E];w.destoryed||w.get("isKeyShape")||(w.set("ori-visibility",w.get("ori-visibility")||w.get("visible")),w.hide());}}for(var M=0;M<m;M++)for(var C=p[M],x=C.get("group").get("children"),_=x.length,E=0;E<_;E++){var w=x[E];w.set("ori-visibility",w.get("ori-visibility")||w.get("visible")),w.hide();}this.set("optimized",!0);}clearTimeout(this.get("timeout"));var A=setTimeout(function(){var t=n.getZoom();if(e.get("optimized")){e.set("optimized",!1);for(var r=0;r<v;r++){var i=g[r],o=i.get("group").get("children"),a=o.length;if(t<d){var s=i.getKeyShape(),u=s.get("ori-visibility");s.set("ori-visibility",void 0),u&&s.show();}else for(var c=0;c<a;c++){var l=o[c],u=l.get("ori-visibility");l.set("ori-visibility",void 0),!l.get("visible")&&u&&u&&l.show();}}for(var f=0;f<m;f++){var h=p[f],o=h.get("group").get("children"),a=o.length;if(t<d){var s=h.getKeyShape(),u=s.get("ori-visibility");s.set("ori-visibility",void 0),u&&s.show();}else for(var c=0;c<a;c++){var l=o[c];if(!l.get("visible")){var u=l.get("ori-visibility");l.set("ori-visibility",void 0),u&&l.show();}}}}},100);this.set("timeout",A);}if(u<=1){var S=void 0,D=void 0;if(r.fixAll||r.fixLineWidth||r.fixLabel){S=n.findAllByState("node",r.fixState),D=n.findAllByState("edge",r.fixState);for(var I=u/c,T=S.length,k=0;k<T;k++){var b=S[k],F=b.getContainer(),N=b.getModel(),O=b.getOriginStyle(),B=b.getStateStyle(r.fixState),P=b.get("shapeFactory").getShape(N.type).getStateStyle(r.fixState,b)[r.fixState];if(r.fixAll){if(c<=1){var L=(0,i.clone)(F.getMatrix());L||(L=[1,0,0,0,1,0,0,0,1]);var j=b.getModel(),R=j.x,z=j.y;L=a(L,[["t",-R,-z],["s",I,I],["t",R,z]]),F.setMatrix(L);}}else for(var x=F.get("children"),_=x.length,E=0;E<_;E++){var w=x[E],G=void 0,Y=void 0;if(r.fixLabel){var X=w.get("type");if("text"===X){G=w.attr("fontSize")||12;var U=B[w.get("name")],H=P[w.get("name")],W=U?U.fontSize:12,V=H?H.fontSize:12,q=W||V||12;if(c<=1&&w.attr("fontSize",q/c),Y)break;}}if(r.fixLineWidth&&w.get("isKeyShape")){Y=w.attr("lineWidth")||0;var Z=B.lineWidth||P.lineWidth||O.lineWidth||0;if(c<=1&&w.attr("lineWidth",Z/c),G)break;}}}for(var J=D.length,K=0;K<J;K++)for(var C=D[K],F=C.getContainer(),x=F.get("children"),N=C.getModel(),B=C.getStateStyle(r.fixState),P=C.get("shapeFactory").getShape(N.type).getStateStyle(r.fixState,C)[r.fixState],_=x.length,E=0;E<_;E++){var w=x[E],G=void 0,Y=void 0;if(r.fixLabel||r.fixAll){var X=w.get("type");if("text"===X){G=w.attr("fontSize")||12;var U=B[w.get("name")],H=P[w.get("name")],W=U?U.fontSize:12,V=H?H.fontSize:12,q=W||V||12;if(c<=1&&w.attr("fontSize",q/c),Y)break;}}if((r.fixLineWidth||r.fixAll)&&w.get("isKeyShape")){Y=w.attr("lineWidth")||0;var Z=B.lineWidth||P.lineWidth||1;if(c<=1&&w.attr("lineWidth",Z/c),G)break;}}}}var Q=this.get("animate"),$=this.get("animateCfg");n.zoomTo(c,{x:o.x,y:o.y},Q,$),n.emit("wheelzoom",t);}}};},e525a20b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod;}});var r=n("777fffbe"),i=n("2677af17"),o=r._(n("1462d240")),a=r._(n("6ff26827")),s=r._(n("a66da5d2")),u=r._(n("fea2b47c")),c=r._(n("accef496")),l=r._(n("adfb2d30")),f=r._(n("a0735234")),d=r._(n("aebcb855"));(0,i.register)("rect",o.default),(0,i.register)("image",o.default),(0,i.register)("circle",a.default),(0,i.register)("marker",a.default),(0,i.register)("polyline",s.default),(0,i.register)("polygon",u.default),(0,i.register)("text",c.default),(0,i.register)("path",l.default),(0,i.register)("line",f.default),(0,i.register)("ellipse",d.default);},e52a13ca:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return d;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=r._(n("a9d43e9b")),s=n("85b3418c"),u=n("2105a9e4"),c=n("960236de"),l="bboxCache",f="bboxCanvasCache",d=function(){function t(t){this._cfg={},this.destroyed=!1,this.optimize=!1,this._cfg=Object.assign({id:void 0,type:"item",model:{},group:void 0,animate:!1,visible:!0,locked:!1,event:!0,keyShape:void 0,states:[]},this.getDefaultCfg(),t);var e=this.get("model"),n=e.id,r=this.get("type");void 0===n?n=(0,c.uniqueId)(r):"string"!=typeof n&&(n=String(n)),this.get("model").id=n,this.set("id",n);var i=t.group;i&&(i.set("item",this),i.set("id",n)),this.init(),this.draw();var a=e.shape||e.type||("edge"===r?"line":"circle"),s=this.get("shapeFactory");if(s&&s[a]){var u=s[a].options;if(u&&u.stateStyles){var l=this.get("styles")||e.stateStyles;l=(0,o.deepMix)({},u.stateStyles,l),this.set("styles",l);}}}return t.prototype.calculateBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=(0,s.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;},t.prototype.calculateCanvasBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=(0,s.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;},t.prototype.drawInner=function(){var t=this.get("shapeFactory"),e=this.get("group"),n=this.get("model");e.clear();var r=n.visible;if(void 0===r||r||this.changeVisibility(r),t){this.updatePosition(n);var i=this.getShapeCfg(n),o=i.type,a=t.draw(o,i,e);a&&(this.set("keyShape",a),a.set("isKeyShape",!0),a.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",o),this.restoreStates(t,o);}},t.prototype.setOriginStyle=function(){var t=this.get("group"),e=t.get("children"),n=this.getKeyShape(),r=this,i=n.get("name");if(this.get("originStyle")){var a=this.get("originStyle");i&&!a[i]&&(a[i]={});for(var s=this.getCurrentStatesStyle(),u=0;u<e.length;u++)!function(t){var n=e[t],u=n.get("name"),c=n.attr();if(u&&u!==i){var l=s[u];a[u]||(a[u]={}),l?Object.keys(c).forEach(function(t){var e=c[t];e!==l[t]&&(a[u][t]=e);}):a[u]="image"!==n.get("type")?(0,o.clone)(c):r.getShapeStyleByName(u);}else{var f=n.attr(),d={};Object.keys(s).forEach(function(t){var e=s[t];t!==i&&(0,o.isPlainObject)(e)||(d[t]=e);}),Object.keys(f).forEach(function(t){var e=f[t];d[t]!==e&&(i?a[i][t]=e:a[t]=e);});}}(u);delete a.path,delete a.matrix,delete a.x,delete a.y,a[i]&&(delete a[i].x,delete a[i].y,delete a[i].matrix,delete a[i].path),r.set("originStyle",a);}else{for(var l={},u=0;u<e.length;u++){var f=e[u],d=f.get("type"),h=f.get("name");if(h&&h!==i)l[h]="image"!==d?(0,o.clone)(f.attr()):r.getShapeStyleByName(h),"text"===d&&l[h]&&(delete l[h].x,delete l[h].y,delete l[h].matrix);else{var g=r.getShapeStyleByName();if(delete g.path,delete g.matrix,i){if(h)l[i]=g;else{var p=(0,c.uniqueId)("shape");f.set("name",p),t.shapeMap[p]=f,l[p]="image"!==d?(0,o.clone)(f.attr()):r.getShapeStyleByName(h);}}else Object.assign(l,g);}}r.set("originStyle",l);}},t.prototype.restoreStates=function(t,e){var n=this,r=n.get("states");(0,o.each)(r,function(r){t.setState(e,r,!0,n);});},t.prototype.init=function(){var t=a.default.getFactory(this.get("type"));this.set("shapeFactory",t);},t.prototype.get=function(t){return this._cfg[t];},t.prototype.set=function(t,e){(0,o.isPlainObject)(t)?this._cfg=(0,i.__assign)((0,i.__assign)({},this._cfg),t):this._cfg[t]=e;},t.prototype.getDefaultCfg=function(){return{};},t.prototype.clearCache=function(){this.set(l,null),this.set(f,null);},t.prototype.beforeDraw=function(){},t.prototype.afterDraw=function(){},t.prototype.afterUpdate=function(){},t.prototype.draw=function(){this.beforeDraw(),this.drawInner(),this.afterDraw();},t.prototype.getShapeStyleByName=function(t){var e,n=this.get("group");if(e=t?n.shapeMap[t]||n.find(function(e){return e.get("name")===t;}):this.getKeyShape()){var r={};return(0,o.each)(e.attr(),function(t,e){("img"!==e||(0,o.isString)(t))&&(r[e]=t);}),r;}return{};},t.prototype.getShapeCfg=function(t,e){var n=this.get("styles");return n&&(t.style=(0,i.__assign)((0,i.__assign)({},n),t.style)),t;},t.prototype.getStateStyle=function(t){var e=this.get("styles");return e&&e[t];},t.prototype.getOriginStyle=function(){return this.get("originStyle");},t.prototype.getCurrentStatesStyle=function(){var t=this,e={},n=t.getStates();return n&&n.length?((0,o.each)(t.getStates(),function(n){e=Object.assign(e,t.getStateStyle(n));}),e):this.get("originStyle");},t.prototype.setState=function(t,e){var n=this.get("states"),r=this.get("shapeFactory"),i=t,a=t;(0,o.isString)(e)&&(i="".concat(t,":").concat(e),a="".concat(t,":"));var s=n;if((0,o.isBoolean)(e)){var u=n.indexOf(a);if(e){if(u>-1)return;n.push(i);}else u>-1&&n.splice(u,1);}else if((0,o.isString)(e)){var c=n.filter(function(t){return t.includes(a);});c.length>0&&this.clearStates(c),(s=s.filter(function(t){return!t.includes(a);})).push(i),this.set("states",s);}if(r){var l=this.get("model").type;r.setState(l,t,e,this);}},t.prototype.clearStates=function(t){var e=this,n=e.getStates(),r=e.get("shapeFactory"),i=e.get("model").type;t||(t=n),(0,o.isString)(t)&&(t=[t]);var a=n.filter(function(e){return -1===t.indexOf(e);});e.set("states",a),t.forEach(function(t){r.setState(i,t,!1,e);});},t.prototype.setOptimize=function(t){this.optimize=t;},t.prototype.getContainer=function(){return this.get("group");},t.prototype.getKeyShape=function(){return this.get("keyShape");},t.prototype.getModel=function(){return this.get("model");},t.prototype.getType=function(){return this.get("type");},t.prototype.getID=function(){return this.get("id");},t.prototype.isItem=function(){return!0;},t.prototype.getStates=function(){return this.get("states");},t.prototype.hasState=function(t){return this.getStates().indexOf(t)>=0;},t.prototype.refresh=function(t){var e=this.get("model");this.updatePosition(e),this.updateShape(t),this.afterUpdate(),this.clearCache();},t.prototype.getUpdateType=function(t){},t.prototype.update=function(t,e){void 0===e&&(e=void 0);var n=this.get("model");if("move"===e)this.updatePosition(t);else{var r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var a={x:n.x,y:n.y};t.x=isNaN(+t.x)?n.x:+t.x,t.y=isNaN(+t.y)?n.y:+t.y;var s=this.get("styles");if(t.stateStyles){var u=t.stateStyles;(0,o.mix)(s,u),delete t.stateStyles;}Object.assign(n,t),(a.x!==t.x||a.y!==t.y)&&this.updatePosition(t),this.updateShape(e);}this.afterUpdate(),this.clearCache();},t.prototype.updateShape=function(t){var e=this.get("shapeFactory"),n=this.get("model"),r=n.type;if(e.shouldUpdate(r)&&r===this.get("currentShape")){var i=this.getShapeCfg(n,t);e.baseUpdate(r,i,this,t),"move"!==t&&this.setOriginStyle();}else this.draw();this.restoreStates(e,r);},t.prototype.updatePosition=function(t){var e=this.get("model"),n=isNaN(+t.x)?+e.x:+t.x,r=isNaN(+t.y)?+e.y:+t.y,i=this.get("group");if(isNaN(n)||isNaN(r))return!1;e.x=n,e.y=r;var o=i.getMatrix();return(!o||o[6]!==n||o[7]!==r)&&(i.resetMatrix(),(0,u.translate)(i,{x:n,y:r}),this.clearCache(),!0);},t.prototype.getBBox=function(){var t=this.get(l);return t||(t=this.calculateBBox(),this.set(l,t)),t;},t.prototype.getCanvasBBox=function(){var t=this.get(f);return t||(t=this.calculateCanvasBBox(),this.set(f,t)),t;},t.prototype.toFront=function(){this.get("group").toFront();},t.prototype.toBack=function(){this.get("group").toBack();},t.prototype.show=function(){this.changeVisibility(!0);},t.prototype.hide=function(){this.changeVisibility(!1);},t.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t);},t.prototype.isVisible=function(){return this.get("visible");},t.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t);},t.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0;}},t;}();},e570532a:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,i);}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n];}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n);};Object.defineProperty(e,"__esModule",{value:!0}),i(n("27ff5dba"),e);},e574e961:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.pageRankAsync=e.minimumSpanningTreeAsync=e.louvainAsync=e.labelPropagationAsync=e.getOutDegreeAsync=e.getNeighborsAsync=e.getInDegreeAsync=e.getDegreeAsync=e.getAdjMatrixAsync=e.floydWarshallAsync=e.findShortestPathAsync=e.findAllPathAsync=e.dijkstraAsync=e.detectCycleAsync=e.detectAllUndirectedCycleAsync=e.detectAllDirectedCycleAsync=e.detectAllCyclesAsync=e.connectedComponentAsync=e.GADDIAsync=void 0;var r,i=(r=n("eb8c5eef"))&&r.__esModule?r:{default:r},o=n("6103548e");e.getAdjMatrixAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getAdjMatrix).apply(void 0,[t,e]);},e.connectedComponentAsync=function(t,e){return(0,i.default)(o.ALGORITHM.connectedComponent).apply(void 0,[t,e]);},e.getDegreeAsync=function(t){return(0,i.default)(o.ALGORITHM.getDegree)(t);},e.getInDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getInDegree)(t,e);},e.getOutDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getOutDegree)(t,e);},e.detectCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectCycle)(t);},e.detectAllCyclesAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllCycles)(t);},e.detectAllDirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllDirectedCycle)(t);},e.detectAllUndirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllUndirectedCycle)(t);},e.dijkstraAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.dijkstra).apply(void 0,[t,e,n,r]);},e.findAllPathAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.findAllPath).apply(void 0,[t,e,n,r]);},e.findShortestPathAsync=function(t,e,n,r,a){return(0,i.default)(o.ALGORITHM.findShortestPath).apply(void 0,[t,e,n,r,a]);},e.floydWarshallAsync=function(t,e){return(0,i.default)(o.ALGORITHM.floydWarshall).apply(void 0,[t,e]);},e.labelPropagationAsync=function(t,e,n,r){return void 0===r&&(r=1e3),(0,i.default)(o.ALGORITHM.labelPropagation)(t,e,n,r);},e.louvainAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.louvain)(t,e,n,r);},e.minimumSpanningTreeAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.minimumSpanningTree).apply(void 0,[t,e,n]);},e.pageRankAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.pageRank).apply(void 0,[t,e,n]);},e.getNeighborsAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.getNeighbors).apply(void 0,[t,e,n]);},e.GADDIAsync=function(t,e,n,r,a,s,u){return void 0===n&&(n=!1),void 0===s&&(s="cluster"),void 0===u&&(u="cluster"),(0,i.default)(o.ALGORITHM.GADDI).apply(void 0,[t,e,n,r,a,s,u]);};},e5962d40:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6e810311")),i=function(t){return(0,r.default)(t,"Boolean");};},e5fcb776:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe")._(n("cda1c657")),i=n("f2fbe439");r.default.path=function(t,e){var n=e||{};if(i.windowIsUndefined)return"linear";for(var o=(0,i.parsePath)(t),a=o.getTotalLength(),s=n.rect||100,u=n.lengthPixel||200,c=[],l=0;l<u-1;l++)c.push(o.getPointAtLength(a/(u-1)*l));return c.push(o.getPointAtLength(u)),function(t,e,n,i){var u=r.default.linear(t,e,n,i),l=s*u;return 1-(c.filter(function(t){return t.x>=l;})[0]||o.getPointAtLength(u*a)).y/s;};};var o=r.default;},e60492e4:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});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));};},e63abf85:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"G6GraphEvent",{enumerable:!0,get:function(){return i;}});var r=n("4c6d310c"),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.item=n.item,r.canvasX=n.canvasX,r.canvasY=n.canvasY,r.wheelDelta=n.wheelDelta,r.detail=n.detail,r;}return(0,r.__extends)(e,t),e;}(n("be1e82ef").Event);},e658ed93:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.CircularLayout=void 0;var o=n("5092cda5"),a=n("38788347");function s(t,e){var n=t.degree,r=e.degree;return n<r?-1:n>r?1:0;}var u=function(t){function e(e){var n=t.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1};},e.prototype.execute=function(){var t,e=this.nodes,n=this.edges,r=e.length;if(0===r){this.onLayoutEnd&&this.onLayoutEnd();return;}this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight),this.center||(this.center=[this.width/2,this.height/2]);var i=this.center;if(1===r){e[0].x=i[0],e[0].y=i[1],this.onLayoutEnd&&this.onLayoutEnd();return;}var o=this.radius,s=this.startRadius,u=this.endRadius,c=this.divisions,l=this.startAngle,f=this.endAngle,d=this.angleRatio,h=this.ordering,g=this.clockwise,p=this.nodeSpacing,v=this.nodeSize,m={};e.forEach(function(t,e){m[t.id]=e;}),this.nodeMap=m;var y=(0,a.getDegree)(e.length,m,n);if(this.degrees=y,p){var b=(0,a.getFuncByUnknownType)(10,p),x=(0,a.getFuncByUnknownType)(10,v),_=-1/0;e.forEach(function(t){var e=x(t);_<e&&(_=e);});var E=0;e.forEach(function(t,e){0===e?E+=_||10:E+=(b(t)||0)+(_||10);}),o=E/(2*Math.PI);}else o||s||u?!s&&u?s=u:s&&!u&&(u=s):o=this.height>this.width?this.width/2:this.height/2;var w=(f-l)/r*d,M=[];M="topology"===h?this.topologyOrdering():"topology-directed"===h?this.topologyOrdering(!0):"degree"===h?this.degreeOrdering():e;for(var C=Math.ceil(r/c),A=0;A<r;++A){var S=o;S||null===s||null===u||(S=s+A*(u-s)/(r-1)),S||(S=10+100*A/(r-1));var D=l+A%C*w+2*Math.PI/c*Math.floor(A/C);g||(D=f-A%C*w-2*Math.PI/c*Math.floor(A/C)),M[A].x=i[0]+Math.cos(D)*S,M[A].y=i[1]+Math.sin(D)*S,M[A].weight=y[A].all;}return null===(t=this.onLayoutEnd)||void 0===t||t.call(this),{nodes:M,edges:this.edges};},e.prototype.topologyOrdering=function(t){void 0===t&&(t=!1);var e,n=this.degrees,r=this.edges,i=this.nodes,o=(0,a.clone)(i),s=this.nodeMap,u=[o[0]],c=[i[0]],l=[],f=i.length;l[0]=!0,e=t,o.forEach(function(t,e){o[e].children=[],o[e].parent=[];}),e?r.forEach(function(t){var e=(0,a.getEdgeTerminal)(t,"source"),n=(0,a.getEdgeTerminal)(t,"target"),r=0;e&&(r=s[e]);var i=0;n&&(i=s[n]);var u=o[r].children,c=o[i].parent;u.push(o[i].id),c.push(o[r].id);}):r.forEach(function(t){var e=(0,a.getEdgeTerminal)(t,"source"),n=(0,a.getEdgeTerminal)(t,"target"),r=0;e&&(r=s[e]);var i=0;n&&(i=s[n]);var u=o[r].children,c=o[i].children;u.push(o[i].id),c.push(o[r].id);});var d=0;return o.forEach(function(t,e){if(0!==e){if((e===f-1||n[e].all!==n[e+1].all||function(t,e,n){for(var r=n.length,i=0;i<r;i++){var o=(0,a.getEdgeTerminal)(n[i],"source"),s=(0,a.getEdgeTerminal)(n[i],"target");if(t.id===o&&e.id===s||e.id===o&&t.id===s)return!0;}return!1;}(u[d],t,r))&&!l[e])u.push(t),c.push(i[s[t.id]]),l[e]=!0,d++;else{for(var h=u[d].children,g=!1,p=0;p<h.length;p++){var v=s[h[p]];if(n[v].all===n[e].all&&!l[v]){u.push(o[v]),c.push(i[s[o[v].id]]),l[v]=!0,g=!0;break;}}for(var m=0;!g&&(l[m]||(u.push(o[m]),c.push(i[s[o[m].id]]),l[m]=!0,g=!0),++m!==f););}}}),c;},e.prototype.degreeOrdering=function(){var t=this.nodes,e=[],n=this.degrees;return t.forEach(function(t,r){t.degree=n[r].all,e.push(t);}),e.sort(s),e;},e.prototype.getType=function(){return"circular";},e;}(o.Base);e.CircularLayout=u;},e6fac422:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("c966c938"),i={onMouseEnter:function(t){var e=t.item;this.currentTarget=e,this.showTooltip(t),this.graph.emit("tooltipchange",{item:t.item,action:"show"});},onMouseMove:function(t){if(!this.shouldUpdate(t,this)){this.hideTooltip();return;}this.currentTarget&&t.item===this.currentTarget&&this.updatePosition(t);},onMouseLeave:function(t){this.shouldEnd(t,this)&&(this.hideTooltip(),this.graph.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null);},showTooltip:function(t){var e=this.container;if(t.item&&!t.item.destroyed){e||(e=this.createTooltip(this.graph.get("canvas")),this.container=e);var n=this.formatText(t.item.get("model"),t);e.innerHTML=n,(0,r.modifyCSS)(this.container,{visibility:"visible"}),this.updatePosition(t);}},hideTooltip:function(){(0,r.modifyCSS)(this.container,{visibility:"hidden"});},updatePosition:function(t){var e=this.get("shouldBegin"),n=this.width,i=this.height,o=this.container,a=this.graph;if(!e(t,this)){(0,r.modifyCSS)(o,{visibility:"hidden"});return;}var s=a.getPointByClient(t.clientX,t.clientY),u=a.getCanvasByPoint(s.x,s.y),c=u.x,l=u.y,f=o.getBoundingClientRect();c>n/2?c-=f.width:c+=this.offset,l>i/2?l-=f.height:l+=this.offset;var d="".concat(c,"px"),h="".concat(l,"px");(0,r.modifyCSS)(this.container,{left:d,top:h,visibility:"visible"});},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var n=(0,r.createDom)('<div class="g6-tooltip g6-'.concat(this.item,'-tooltip"></div>'));return e.parentNode.appendChild(n),(0,r.modifyCSS)(n,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=n,this.graph.get("tooltips").push(n),n;}};},e704bc9f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{setClip:function(){return a;},setShadow:function(){return i;},setTransform:function(){return o;}});var r=n("d5ffb871");function i(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")");}else n.removeAttribute("filter");}function o(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e);}}function a(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){(0,r.createDom)(n),n.createPath(e);var o=e.addClip(n);i.setAttribute("clip-path","url(#"+o+")");}}else i.removeAttribute("clip-path");}},e721d551:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){return t.hasOwnProperty(e);};},e7803c8d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("22b52967"),o=r._(n("ccc4dfa3")),a=function(t,e){void 0===e&&(e=1);for(var n,r=(0,i.clone)(t),a=r.nodes,s=void 0===a?[]:a,u=r.edges,c=void 0===u?[]:u;"break"!==function(){var t=(0,o.default)({nodes:s,edges:c}),r=Object.keys(t);r.sort(function(e,n){var r,i;return(null===(r=t[e])||void 0===r?void 0:r.degree)-(null===(i=t[n])||void 0===i?void 0:i.degree);});var i=r[0];if(!s.length||(null===(n=t[i])||void 0===n?void 0:n.degree)>=e)return"break";var a=s.findIndex(function(t){return t.id===i;});s.splice(a,1),c=c.filter(function(t){return!(t.source===i||t.target===i);});}(););return{nodes:s,edges:c};};},e804c7b5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{AREA_STYLE:function(){return a;},LINE_STYLE:function(){return o;},default:function(){return s;}});var r=n("f48683ab"),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},o={stroke:"#C5C5C5",strokeOpacity:.85},a={fill:"#CACED4",opacity:.85},s=function(){function t(t){var e=t.x,n=t.y,r=t.width,i=t.height,s=t.smooth,u=t.isArea,c=t.data,l=t.lineStyle,f=t.areaStyle,d=t.group,h=t.interval;this.group=d,this.x=void 0===e?0:e,this.y=void 0===n?0:n,this.width=void 0===r?200:r,this.height=void 0===i?26:i,this.data=void 0===c?[]:c,this.smooth=void 0===s||s,this.isArea=void 0!==u&&u,this.lineStyle=Object.assign({},o,l),this.areaStyle=Object.assign({},a,f),this.intervalConfig=void 0===h?null:h,this.renderLine();}return t.prototype.renderLine=function(){var t=this.x,e=this.y,n=this.width,o=this.height,a=(this.barWidth,this.data),s=this.smooth,u=this.isArea,c=this.lineStyle,l=this.areaStyle,f=this.group.addGroup({name:"trend-group"});if(a){var d=(0,r.dataToPath)(a,n,o,s);if(f.addShape("path",{attrs:i({path:d},c),name:"trend-line"}),u){var h=(0,r.linePathToAreaPath)(d,n,o,a);f.addShape("path",{attrs:i({path:h},l),name:"trend-area"});}}this.intervalConfig&&f.addShape("path",{attrs:i({path:(0,r.dataToRectPath)(this.intervalConfig.data,n,o,this.intervalConfig.style.barWidth)},this.intervalConfig.style),name:"trend-interval"}),f.move(t,e);},t.prototype.destory=function(){this.group.destroy();},t;}();},e80da673:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r={collapse:function(t,e,n){return[["M",t-n,e],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,-(2*n),0],["M",t-n+4,e],["L",t+n-4,e]];},expand:function(t,e,n){return[["M",t-n,e],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,-(2*n),0],["M",t-n+4,e],["L",t-n+2*n-4,e],["M",t-n+n,e-n+4],["L",t,e+n-4]];},upTriangle:function(t,e,n){var r=n*Math.cos(Math.PI/6),i=n*Math.sin(Math.PI/6);return[["M",t-r,e+i],["L",t+r,e+i],["L",t,e-n],["Z"]];},downTriangle:function(t,e,n){var r=n*Math.cos(Math.PI/6),i=n*Math.sin(Math.PI/6);return[["M",t-r,e-i],["L",t+r,e-i],["L",t,e+n],["Z"]];}};},e82c7689:function(t,e,n){"use strict";function r(t){return"number"==typeof t;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},e84a312f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("4c6d310c"),i=n("22b52967"),o=n("cf6c8813"),a=n("4e4cdeae"),s=n("2105a9e4"),u=n("3c9681f0"),c=n("d4050cae"),l=function(){function t(t,e){this.cfg=(0,i.deepMix)(this.getDefaultCfg(),e),this.graph=t,this.id=this.cfg.id,this.group=this.cfg.group,this.members=this.cfg.members.map(function(e){return(0,i.isString)(e)?t.findById(e):e;}),this.nonMembers=this.cfg.nonMembers.map(function(e){return(0,i.isString)(e)?t.findById(e):e;}),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render();}return t.prototype.getDefaultCfg=function(){return{id:"g6-hull",type:"round-convex",members:[],nonMembers:[],style:{fill:"lightblue",stroke:"blue",opacity:.2},padding:10};},t.prototype.setPadding=function(){var t=this.members.length&&this.members[0].getKeyShape().getCanvasBBox().width/2;this.padding=this.cfg.padding>0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t};},t.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),"round-convex"!==this.type&&"smooth-convex"!==this.type&&"bubble"!==this.type&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex");},t.prototype.calcPath=function(t,e){var n,r,i;switch(this.type){case"round-convex":n=(0,u.genConvexHull)(t),i=(0,a.roundedHull)(n.map(function(t){return[t.x,t.y];}),this.padding),r=(0,o.parsePathString)(i);break;case"smooth-convex":2===(n=(0,u.genConvexHull)(t)).length?(i=(0,a.roundedHull)(n.map(function(t){return[t.x,t.y];}),this.padding),r=(0,o.parsePathString)(i)):n.length>2&&(i=(0,a.paddedHull)(n.map(function(t){return[t.x,t.y];}),this.padding),r=(0,a.getClosedSpline)(i));break;case"bubble":r=(n=(0,c.genBubbleSet)(t,e,this.cfg.bubbleCfg)).length>=2&&(0,a.getClosedSpline)(n);}return r;},t.prototype.render=function(){this.group.addShape("path",{attrs:(0,r.__assign)({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack();},t.prototype.addMember=function(t){if(t){(0,i.isString)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0;}},t.prototype.addNonMember=function(t){if(t){(0,i.isString)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0;}},t.prototype.removeMember=function(t){if(t){(0,i.isString)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1&&(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0);}},t.prototype.removeNonMember=function(t){if(t){(0,i.isString)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1&&(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0);}},t.prototype.updateData=function(t,e){var n=this;this.group.findById(this.id).remove(),t&&(this.members=t.map(function(t){return(0,i.isString)(t)?n.graph.findById(t):t;})),e&&(this.nonMembers=e.map(function(t){return(0,i.isString)(t)?n.graph.findById(t):t;})),this.path=this.calcPath(this.members,this.nonMembers),this.render();},t.prototype.updateStyle=function(t){this.group.findById(this.id).attr((0,r.__assign)({},t));},t.prototype.updateCfg=function(t){var e=this;this.cfg=(0,i.deepMix)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map(function(t){return(0,i.isString)(t)?e.graph.findById(t):t;})),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(t){return(0,i.isString)(t)?e.graph.findById(t):t;})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render();},t.prototype.contain=function(t){var e,n,r=this,o=(e=(0,i.isString)(t)?this.graph.findById(t):t).getKeyShape();if("path"===e.get("type"))n=(0,a.pathToPoints)(o.attr("path"));else{var u=o.getCanvasBBox();n=[[u.minX,u.minY],[u.maxX,u.minY],[u.maxX,u.maxY],[u.minX,u.maxY]];}return n=n.map(function(t){var e=r.graph.getPointByCanvas(t[0],t[1]);return[e.x,e.y];}),(0,s.isPolygonsIntersect)(n,(0,a.pathToPoints)(this.path));},t.prototype.destroy=function(){this.group.remove(),this.cfg=null;},t;}();},e880db62:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{add:function(){return T;},clone:function(){return u;},conjugate:function(){return L;},copy:function(){return p;},create:function(){return s;},dot:function(){return O;},equals:function(){return H;},exactEquals:function(){return U;},fromMat4:function(){return g;},fromRotation:function(){return h;},fromRotationTranslation:function(){return f;},fromRotationTranslationValues:function(){return l;},fromTranslation:function(){return d;},fromValues:function(){return c;},getDual:function(){return b;},getReal:function(){return y;},getTranslation:function(){return E;},identity:function(){return v;},invert:function(){return P;},len:function(){return R;},length:function(){return j;},lerp:function(){return B;},mul:function(){return F;},multiply:function(){return k;},normalize:function(){return Y;},rotateAroundAxis:function(){return I;},rotateByQuatAppend:function(){return S;},rotateByQuatPrepend:function(){return D;},rotateX:function(){return M;},rotateY:function(){return C;},rotateZ:function(){return A;},scale:function(){return N;},set:function(){return m;},setDual:function(){return _;},setReal:function(){return x;},sqrLen:function(){return G;},squaredLength:function(){return z;},str:function(){return X;},translate:function(){return w;}});var r=n("852bbaa9"),i=r._(n("e89ef36f")),o=r._(n("59625338")),a=r._(n("b41ef5bd"));function s(){var t=new i.ARRAY_TYPE(8);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t;}function u(t){var e=new i.ARRAY_TYPE(8);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;}function c(t,e,n,r,o,a,s,u){var c=new i.ARRAY_TYPE(8);return c[0]=t,c[1]=e,c[2]=n,c[3]=r,c[4]=o,c[5]=a,c[6]=s,c[7]=u,c;}function l(t,e,n,r,o,a,s){var u=new i.ARRAY_TYPE(8);u[0]=t,u[1]=e,u[2]=n,u[3]=r;var c=.5*o,l=.5*a,f=.5*s;return u[4]=c*r+l*n-f*e,u[5]=l*r+f*t-c*n,u[6]=f*r+c*e-l*t,u[7]=-c*t-l*e-f*n,u;}function f(t,e,n){var r=.5*n[0],i=.5*n[1],o=.5*n[2],a=e[0],s=e[1],u=e[2],c=e[3];return t[0]=a,t[1]=s,t[2]=u,t[3]=c,t[4]=r*c+i*u-o*s,t[5]=i*c+o*a-r*u,t[6]=o*c+r*s-i*a,t[7]=-r*a-i*s-o*u,t;}function d(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t;}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t;}function g(t,e){var n=o.create();a.getRotation(n,e);var r=new i.ARRAY_TYPE(3);return a.getTranslation(r,e),f(t,n,r),t;}function p(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;}function v(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t;}function m(t,e,n,r,i,o,a,s,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t;}var y=o.copy;function b(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t;}var x=o.copy;function _(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t;}function E(t,e){var n=e[4],r=e[5],i=e[6],o=e[7],a=-e[0],s=-e[1],u=-e[2],c=e[3];return t[0]=(n*c+o*a+r*u-i*s)*2,t[1]=(r*c+o*s+i*a-n*u)*2,t[2]=(i*c+o*u+n*s-r*a)*2,t;}function w(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=.5*n[0],u=.5*n[1],c=.5*n[2],l=e[4],f=e[5],d=e[6],h=e[7];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=a*s+i*c-o*u+l,t[5]=a*u+o*s-r*c+f,t[6]=a*c+r*u-i*s+d,t[7]=-r*s-i*u-o*c+h,t;}function M(t,e,n){var r=-e[0],i=-e[1],a=-e[2],s=e[3],u=e[4],c=e[5],l=e[6],f=e[7],d=u*s+f*r+c*a-l*i,h=c*s+f*i+l*r-u*a,g=l*s+f*a+u*i-c*r,p=f*s-u*r-c*i-l*a;return o.rotateX(t,e,n),r=t[0],i=t[1],a=t[2],s=t[3],t[4]=d*s+p*r+h*a-g*i,t[5]=h*s+p*i+g*r-d*a,t[6]=g*s+p*a+d*i-h*r,t[7]=p*s-d*r-h*i-g*a,t;}function C(t,e,n){var r=-e[0],i=-e[1],a=-e[2],s=e[3],u=e[4],c=e[5],l=e[6],f=e[7],d=u*s+f*r+c*a-l*i,h=c*s+f*i+l*r-u*a,g=l*s+f*a+u*i-c*r,p=f*s-u*r-c*i-l*a;return o.rotateY(t,e,n),r=t[0],i=t[1],a=t[2],s=t[3],t[4]=d*s+p*r+h*a-g*i,t[5]=h*s+p*i+g*r-d*a,t[6]=g*s+p*a+d*i-h*r,t[7]=p*s-d*r-h*i-g*a,t;}function A(t,e,n){var r=-e[0],i=-e[1],a=-e[2],s=e[3],u=e[4],c=e[5],l=e[6],f=e[7],d=u*s+f*r+c*a-l*i,h=c*s+f*i+l*r-u*a,g=l*s+f*a+u*i-c*r,p=f*s-u*r-c*i-l*a;return o.rotateZ(t,e,n),r=t[0],i=t[1],a=t[2],s=t[3],t[4]=d*s+p*r+h*a-g*i,t[5]=h*s+p*i+g*r-d*a,t[6]=g*s+p*a+d*i-h*r,t[7]=p*s-d*r-h*i-g*a,t;}function S(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],c=e[2],l=e[3];return t[0]=s*a+l*r+u*o-c*i,t[1]=u*a+l*i+c*r-s*o,t[2]=c*a+l*o+s*i-u*r,t[3]=l*a-s*r-u*i-c*o,s=e[4],u=e[5],c=e[6],l=e[7],t[4]=s*a+l*r+u*o-c*i,t[5]=u*a+l*i+c*r-s*o,t[6]=c*a+l*o+s*i-u*r,t[7]=l*a-s*r-u*i-c*o,t;}function D(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],c=n[2],l=n[3];return t[0]=r*l+a*s+i*c-o*u,t[1]=i*l+a*u+o*s-r*c,t[2]=o*l+a*c+r*u-i*s,t[3]=a*l-r*s-i*u-o*c,s=n[4],u=n[5],c=n[6],l=n[7],t[4]=r*l+a*s+i*c-o*u,t[5]=i*l+a*u+o*s-r*c,t[6]=o*l+a*c+r*u-i*s,t[7]=a*l-r*s-i*u-o*c,t;}function I(t,e,n,r){if(Math.abs(r)<i.EPSILON)return p(t,e);var o=Math.hypot(n[0],n[1],n[2]),a=Math.sin(r*=.5),s=a*n[0]/o,u=a*n[1]/o,c=a*n[2]/o,l=Math.cos(r),f=e[0],d=e[1],h=e[2],g=e[3];t[0]=f*l+g*s+d*c-h*u,t[1]=d*l+g*u+h*s-f*c,t[2]=h*l+g*c+f*u-d*s,t[3]=g*l-f*s-d*u-h*c;var v=e[4],m=e[5],y=e[6],b=e[7];return t[4]=v*l+b*s+m*c-y*u,t[5]=m*l+b*u+y*s-v*c,t[6]=y*l+b*c+v*u-m*s,t[7]=b*l-v*s-m*u-y*c,t;}function T(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;}function k(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[4],u=n[5],c=n[6],l=n[7],f=e[4],d=e[5],h=e[6],g=e[7],p=n[0],v=n[1],m=n[2],y=n[3];return t[0]=r*y+a*p+i*m-o*v,t[1]=i*y+a*v+o*p-r*m,t[2]=o*y+a*m+r*v-i*p,t[3]=a*y-r*p-i*v-o*m,t[4]=r*l+a*s+i*c-o*u+f*y+g*p+d*m-h*v,t[5]=i*l+a*u+o*s-r*c+d*y+g*v+h*p-f*m,t[6]=o*l+a*c+r*u-i*s+h*y+g*m+f*v-d*p,t[7]=a*l-r*s-i*u-o*c+g*y-f*p-d*v-h*m,t;}var F=k;function N(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;}var O=o.dot;function B(t,e,n,r){var i=1-r;return 0>O(e,n)&&(r=-r),t[0]=e[0]*i+n[0]*r,t[1]=e[1]*i+n[1]*r,t[2]=e[2]*i+n[2]*r,t[3]=e[3]*i+n[3]*r,t[4]=e[4]*i+n[4]*r,t[5]=e[5]*i+n[5]*r,t[6]=e[6]*i+n[6]*r,t[7]=e[7]*i+n[7]*r,t;}function P(t,e){var n=z(e);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;}function L(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;}var j=o.length,R=j,z=o.squaredLength,G=z;function Y(t,e){var n=z(e);if(n>0){n=Math.sqrt(n);var r=e[0]/n,i=e[1]/n,o=e[2]/n,a=e[3]/n,s=e[4],u=e[5],c=e[6],l=e[7],f=r*s+i*u+o*c+a*l;t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=(s-r*f)/n,t[5]=(u-i*f)/n,t[6]=(c-o*f)/n,t[7]=(l-a*f)/n;}return t;}function X(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")";}function U(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];}function H(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=e[0],d=e[1],h=e[2],g=e[3],p=e[4],v=e[5],m=e[6],y=e[7];return Math.abs(n-f)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-d)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(o-h)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-g)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-p)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-v)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(c-m)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(l-y)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(y));}},e89ef36f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{ARRAY_TYPE:function(){return i;},EPSILON:function(){return r;},RANDOM:function(){return o;},equals:function(){return c;},setMatrixArrayType:function(){return a;},toRadian:function(){return u;}});var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;function a(t){i=t;}var s=Math.PI/180;function u(t){return t*s;}function c(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e));}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t);});},e8b19236:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n];}}),Object.defineProperty(t,r,i);}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n];}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e});}:function(t,e){t.default=e;}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e;};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n("bc4ca52b")),s=n("38788347");e.default=function(){function t(t){return function(){return t;};}var e,n=function(t){return t.cluster;},r=t(1),i=t(-1),o=t(100),u=t(.1),c=[0,0],l=[],f={},d=[],h=100,g=100,p={none:{x:0,y:0}},v=[],m="force",y=!0,b=.1;function x(t){if(!y)return x;e.tick(),E();for(var r=0,i=l.length,o=void 0,a=t*b;r<i;++r)o=l[r],o.vx+=(p[n(o)].x-o.x)*a,o.vy+=(p[n(o)].y-o.y)*a;}function _(){l&&function(){if(l&&l.length){if(void 0===n(l[0]))throw Error("Couldnt find the grouping attribute for the nodes. Make sure to set it up with forceInABox.groupBy('clusterAttr') before calling .links()");var t,c,p,m,y,b,x,_,w,M=(t=[],c=[],p={},m={},y=[],x={},(b=l).forEach(function(t){var e=n(t);x[e]||(x[e]={count:0,sumforceNodeSize:0});}),b.forEach(function(t){var e=n(t),i=r(t),o=x[e];o.count=o.count+1,o.sumforceNodeSize=o.sumforceNodeSize+i*i*Math.PI*1.3,x[e]=o;}),m=x,_={},w=[],d.forEach(function(t){var e,r,i,o,a=(e=(0,s.getEdgeTerminal)(t,"source"),r=(0,s.getEdgeTerminal)(t,"target"),(i=n(f[e]))<=(o=n(f[r]))?"".concat(i,"~").concat(o):"".concat(o,"~").concat(i)),u=0;void 0!==_[a]&&(u=_[a]),u+=1,_[a]=u;}),Object.entries(_).forEach(function(t){var e=t[0],n=t[1],r=e.split("~")[0],i=e.split("~")[1];void 0!==r&&void 0!==i&&w.push({source:r,target:i,count:n});}),y=w,Object.keys(m).forEach(function(e,n){var r=m[e];t.push({id:e,size:r.count,r:Math.sqrt(r.sumforceNodeSize/Math.PI)}),p[e]=n;}),y.forEach(function(t){var e=(0,s.getEdgeTerminal)(t,"source"),n=(0,s.getEdgeTerminal)(t,"target"),r=p[e],i=p[n];void 0!==r&&void 0!==i&&c.push({source:r,target:i,count:t.count});}),{nodes:t,links:c});v=(e=a.forceSimulation(M.nodes).force("x",a.forceX(h).strength(.1)).force("y",a.forceY(g).strength(.1)).force("collide",a.forceCollide(function(t){return t.r;}).iterations(4)).force("charge",a.forceManyBody().strength(i)).force("links",a.forceLink(M.nodes.length?M.links:[]).distance(o).strength(u))).nodes(),E();}}();}function E(){return p={none:{x:0,y:0}},v.forEach(function(t){p[t.id]={x:t.x-c[0],y:t.y-c[1]};}),p;}return x.initialize=function(t){l=t,_();},x.template=function(t){return arguments.length?(m=t,_(),x):m;},x.groupBy=function(t){return arguments.length?(n="string"==typeof t?function(e){return e[t];}:t,x):n;},x.enableGrouping=function(t){return arguments.length?(y=t,x):y;},x.strength=function(t){return arguments.length?(b=t,x):b;},x.centerX=function(t){return arguments.length?(h=t,x):h;},x.centerY=function(t){return arguments.length?(g=t,x):g;},x.nodes=function(t){return arguments.length?(f={},(t||[]).forEach(function(t){f[t.id]=t;}),l=t||[],x):l;},x.links=function(t){return arguments.length?(d=t||[],_(),x):d;},x.forceNodeSize=function(e){return arguments.length?(r="function"==typeof e?e:t(+e),_(),x):r;},x.nodeSize=x.forceNodeSize,x.forceCharge=function(e){return arguments.length?(i="function"==typeof e?e:t(+e),_(),x):i;},x.forceLinkDistance=function(e){return arguments.length?(o="function"==typeof e?e:t(+e),_(),x):o;},x.forceLinkStrength=function(e){return arguments.length?(u="function"==typeof e?e:t(+e),_(),x):u;},x.offset=function(t){return arguments.length?(c=t,x):c;},x.getFocis=E,x;};},e8dd75ac:function(t,e,n){"use strict";function r(t){return(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;})(t);}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var i,o,a,s=/^\s+/,u=/\s+$/;function c(t,e){if(e=e||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,e);var n,i,o,a,l,f,d,h,g,p,v,m,y,b,x,_,E,w,M,C,S=(i={r:0,g:0,b:0},o=1,a=null,l=null,f=null,d=!1,h=!1,"string"==typeof(n=t)&&(n=function(t){t=t.replace(s,"").replace(u,"").toLowerCase();var e,n=!1;if(A[t])t=A[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=B.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=B.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=B.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=B.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=B.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=B.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=B.hex8.exec(t))?{r:k(e[1]),g:k(e[2]),b:k(e[3]),a:k(e[4])/255,format:n?"name":"hex8"}:(e=B.hex6.exec(t))?{r:k(e[1]),g:k(e[2]),b:k(e[3]),format:n?"name":"hex"}:(e=B.hex4.exec(t))?{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),a:k(e[4]+""+e[4])/255,format:n?"name":"hex8"}:!!(e=B.hex3.exec(t))&&{r:k(e[1]+""+e[1]),g:k(e[2]+""+e[2]),b:k(e[3]+""+e[3]),format:n?"name":"hex"};}(n)),"object"==r(n)&&(P(n.r)&&P(n.g)&&P(n.b)?(g=n.r,p=n.g,v=n.b,i={r:255*I(g,255),g:255*I(p,255),b:255*I(v,255)},d=!0,h="%"===String(n.r).substr(-1)?"prgb":"rgb"):P(n.h)&&P(n.s)&&P(n.v)?(a=N(n.s),l=N(n.v),m=n.h,y=a,b=l,m=6*I(m,360),y=I(y,100),b=I(b,100),x=Math.floor(m),_=m-x,E=b*(1-y),w=b*(1-_*y),M=b*(1-(1-_)*y),i={r:255*[b,w,E,E,M,b][C=x%6],g:255*[M,b,b,w,E,E][C],b:255*[E,E,M,b,b,w][C]},d=!0,h="hsv"):P(n.h)&&P(n.s)&&P(n.l)&&(a=N(n.s),f=N(n.l),i=function(t,e,n){var r,i,o;function a(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t;}if(t=I(t,360),e=I(e,100),n=I(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3);}return{r:255*r,g:255*i,b:255*o};}(n.h,a,f),d=!0,h="hsl"),n.hasOwnProperty("a")&&(o=n.a)),o=D(o),{ok:d,format:n.format||h,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o});this._originalInput=t,this._r=S.r,this._g=S.g,this._b=S.b,this._a=S.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||S.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=S.ok;}function l(t,e,n){var r,i,o=Math.max(t=I(t,255),e=I(e,255),n=I(n,255)),a=Math.min(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4;}r/=6;}return{h:r,s:i,l:s};}function f(t,e,n){var r,i,o=Math.max(t=I(t,255),e=I(e,255),n=I(n,255)),a=Math.min(t,e,n),s=o-a;if(i=0===o?0:s/o,o==a)r=0;else{switch(o){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4;}r/=6;}return{h:r,s:i,v:o};}function d(t,e,n,r){var i=[F(Math.round(t).toString(16)),F(Math.round(e).toString(16)),F(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("");}function h(t,e,n,r){return[F(O(r)),F(Math.round(t).toString(16)),F(Math.round(e).toString(16)),F(Math.round(n).toString(16))].join("");}function g(t,e){e=0===e?0:e||10;var n=c(t).toHsl();return n.s-=e/100,n.s=T(n.s),c(n);}function p(t,e){e=0===e?0:e||10;var n=c(t).toHsl();return n.s+=e/100,n.s=T(n.s),c(n);}function v(t){return c(t).desaturate(100);}function m(t,e){e=0===e?0:e||10;var n=c(t).toHsl();return n.l+=e/100,n.l=T(n.l),c(n);}function y(t,e){e=0===e?0:e||10;var n=c(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(e/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(e/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(e/100*255)))),c(n);}function b(t,e){e=0===e?0:e||10;var n=c(t).toHsl();return n.l-=e/100,n.l=T(n.l),c(n);}function x(t,e){var n=c(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,c(n);}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e);}function E(t,e){if(isNaN(e)||e<=0)throw Error("Argument to polyad must be a positive number");for(var n=c(t).toHsl(),r=[c(t)],i=360/e,o=1;o<e;o++)r.push(c({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r;}function w(t){var e=c(t).toHsl(),n=e.h;return[c(t),c({h:(n+72)%360,s:e.s,l:e.l}),c({h:(n+216)%360,s:e.s,l:e.l})];}function M(t,e,n){e=e||6,n=n||30;var r=c(t).toHsl(),i=360/n,o=[c(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(c(r));return o;}function C(t,e){e=e||6;for(var n=c(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(c({h:r,s:i,v:o})),o=(o+s)%1;return a;}c.prototype={isDark:function(){return 128>this.getBrightness();},isLight:function(){return!this.isDark();},isValid:function(){return this._ok;},getOriginalInput:function(){return this._originalInput;},getFormat:function(){return this._format;},getAlpha:function(){return this._a;},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3;},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*((e=r.g/255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*((n=r.b/255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4));},setAlpha:function(t){return this._a=D(t),this._roundA=Math.round(100*this._a)/100,this;},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a};},toHsvString:function(){var t=f(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")";},toHsl:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a};},toHslString:function(){var t=l(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")";},toHex:function(t){return d(this._r,this._g,this._b,t);},toHexString:function(t){return"#"+this.toHex(t);},toHex8:function(t){var e,n,r,i,o;return e=this._r,n=this._g,r=this._b,i=this._a,o=[F(Math.round(e).toString(16)),F(Math.round(n).toString(16)),F(Math.round(r).toString(16)),F(O(i))],t&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("");},toHex8String:function(t){return"#"+this.toHex8(t);},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a};},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")";},toPercentageRgb:function(){return{r:Math.round(100*I(this._r,255))+"%",g:Math.round(100*I(this._g,255))+"%",b:Math.round(100*I(this._b,255))+"%",a:this._a};},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*I(this._r,255))+"%, "+Math.round(100*I(this._g,255))+"%, "+Math.round(100*I(this._b,255))+"%)":"rgba("+Math.round(100*I(this._r,255))+"%, "+Math.round(100*I(this._g,255))+"%, "+Math.round(100*I(this._b,255))+"%, "+this._roundA+")";},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[d(this._r,this._g,this._b,!0)]||!1);},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=c(t);n="#"+h(i._r,i._g,i._b,i._a);}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")";},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return!e&&r&&("hex"===t||"hex6"===t||"hex3"===t||"hex4"===t||"hex8"===t||"name"===t)?"name"===t&&0===this._a?this.toName():this.toRgbString():("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),("hex"===t||"hex6"===t)&&(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString());},clone:function(){return c(this.toString());},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this;},lighten:function(){return this._applyModification(m,arguments);},brighten:function(){return this._applyModification(y,arguments);},darken:function(){return this._applyModification(b,arguments);},desaturate:function(){return this._applyModification(g,arguments);},saturate:function(){return this._applyModification(p,arguments);},greyscale:function(){return this._applyModification(v,arguments);},spin:function(){return this._applyModification(x,arguments);},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)));},analogous:function(){return this._applyCombination(M,arguments);},complement:function(){return this._applyCombination(_,arguments);},monochromatic:function(){return this._applyCombination(C,arguments);},splitcomplement:function(){return this._applyCombination(w,arguments);},triad:function(){return this._applyCombination(E,[3]);},tetrad:function(){return this._applyCombination(E,[4]);}},c.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var i in t)t.hasOwnProperty(i)&&("a"===i?n[i]=t[i]:n[i]=N(t[i]));t=n;}return c(t,e);},c.equals=function(t,e){return!!t&&!!e&&c(t).toRgbString()==c(e).toRgbString();},c.random=function(){return c.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()});},c.mix=function(t,e,n){n=0===n?0:n||50;var r=c(t).toRgb(),i=c(e).toRgb(),o=n/100;return c({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a});},c.readability=function(t,e){var n=c(t),r=c(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05);},c.isReadable=function(t,e,n){var r,i,o,a,s,u=c.readability(t,e);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),a={level:i,size:o}).level+a.size){case"AAsmall":case"AAAlarge":s=u>=4.5;break;case"AAlarge":s=u>=3;break;case"AAAsmall":s=u>=7;}return s;},c.mostReadable=function(t,e,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var l=0;l<e.length;l++)(r=c.readability(t,e[l]))>u&&(u=r,s=c(e[l]));return c.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],n));};var A=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=c.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e;}(A);function D(t){return(isNaN(t=parseFloat(t))||t<0||t>1)&&(t=1),t;}function I(t,e){"string"==typeof(n=t)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(t="100%");var n,r,i="string"==typeof(r=t)&&-1!=r.indexOf("%");return(t=Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(t*e,10)/100),1e-6>Math.abs(t-e))?1:t%e/parseFloat(e);}function T(t){return Math.min(1,Math.max(0,t));}function k(t){return parseInt(t,16);}function F(t){return 1==t.length?"0"+t:""+t;}function N(t){return t<=1&&(t=100*t+"%"),t;}function O(t){return Math.round(255*parseFloat(t)).toString(16);}var B=(o="[\\s|\\(]+("+(i="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",{CSS_UNIT:new RegExp(i),rgb:RegExp("rgb"+o),rgba:RegExp("rgba"+a),hsl:RegExp("hsl"+o),hsla:RegExp("hsla"+a),hsv:RegExp("hsv"+o),hsva:RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function P(t){return!!B.CSS_UNIT.exec(t);}},e8e2570b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){return(t%e+e)%e;};},e94cd314:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{read:function(){return o;},write:function(){return i;}});var r=n("777fffbe")._(n("d7fbc71b")),i=function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:t.nodes().map(function(e){var n=t.node(e),r=t.parent(e),i={id:e,value:n,parent:r};return void 0===i.value&&delete i.value,void 0===i.parent&&delete i.parent,i;}),edges:t.edges().map(function(e){var n=t.edge(e),r={v:e.v,w:e.w,value:n,name:e.name};return void 0===r.name&&delete r.name,void 0===r.value&&delete r.value,r;}),value:t.graph()};return void 0===e.value&&delete e.value,e;},o=function(t){var e=new r.default(t.options);return void 0!==t.value&&e.setGraph(t.value),t.nodes.forEach(function(t){e.setNode(t.id,t.value),t.parent&&e.setParent(t.id,t.parent);}),t.edges.forEach(function(t){e.setEdge(t.v,t.w,t.value,t.name);}),e;};},e9a09e78:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e;};},e9abb551:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe")._(n("16047361"));function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r;}var o=function(){return 1;},a=function(t,e,n,o){var a,s,u=new Map,c=new r.default,l=function(t){var e=t.v!==a?t.v:t.w,r=u.get(e),i=n(t),o=s.distance+i;if(i<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);o<r.distance&&(r.distance=o,r.predecessor=a,c.decrease(e,o));};for(t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;u.set(t,{distance:n}),c.add(t,n);});c.size()>0&&(a=c.removeMin(),!(s=u.get(a))||s.distance!==Number.POSITIVE_INFINITY);)o(a).forEach(l);var f={};return Array.from(u.entries()).forEach(function(t){var e=function(t){if(Array.isArray(t))return t;}(t)||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(t){s=!0,r=t;}finally{try{a||null==i.return||i.return();}finally{if(s)throw r;}}return o;}}(t,2)||function(t,e){if(t){if("string"==typeof t)return i(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,2);}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}(),n=e[0],r=e[1];return f[String(n)]=r,f;}),f;},s=function(t,e,n,r){return a(t,e,n||o,r||function(e){return t.outEdges(e);});};},e9b8d0e5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{containAllSameEdges:function(){return r.containAllSameEdges;},containAllSameNodes:function(){return r.containAllSameNodes;},containSameEdges:function(){return r.containSameEdges;},containSameNodes:function(){return r.containSameNodes;},getSameEdges:function(){return r.getSameEdges;},getSameNodes:function(){return r.getSameNodes;},isGraphComplement:function(){return i.isGraphComplement;},isGraphContainsAnother:function(){return r.isGraphContainsAnother;},isGraphOptionSame:function(){return r.isGraphOptionSame;},isGraphSame:function(){return r.isGraphSame;}});var r=n("009ff3f4"),i=n("2696f96f");},e9e57b09:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n("0330be41"),n("207519f7"),n("d9d21a9c");},ea3f8bae:function(t,e,n){var r,i;r="undefined"!=typeof self?self:this,i=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=5);}([function(t,e){t.exports={assign:Object.assign,getHeight:function(t,e,n,r){return void 0===r&&(r="height"),"center"===n?(t[r]+e[r])/2:t.height;}};},function(t,e,n){var r=n(3),i=function(){function t(t,e){void 0===e&&(e={}),this.options=e,this.rootNode=r(t,e);}return t.prototype.execute=function(){throw Error("please override this method");},t;}();t.exports=i;},function(t,e,n){var r=n(4),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=i[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=o.indexOf(s)>-1,s&&-1===i.indexOf(s))throw TypeError("Invalid direction: "+s);if(s===i[0])n(t,e);else if(s===i[1])n(t,e),t.right2left();else if(s===i[2])n(t,e);else if(s===i[3])n(t,e),t.bottom2top();else if(s===i[4]||s===i[5]){var u=r(t,e),c=u.left,l=u.right;n(c,e),n(l,e),e.isHorizontal?c.right2left():c.bottom2top(),l.translate(c.x-l.x,c.y-l.y),t.x=c.x,t.y=l.y;var f=t.getBoundingBox();e.isHorizontal?f.top<0&&t.translate(0,-f.top):f.left<0&&t.translate(-f.left,0);}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),function(t,e){if(e.radial){var n=e.isHorizontal?["x","y"]:["y","x"],r=n[0],i=n[1],o={x:1/0,y:1/0},a={x:-1/0,y:-1/0},s=0;t.DFTraverse(function(t){s++;var e=t.x,n=t.y;o.x=Math.min(o.x,e),o.y=Math.min(o.y,n),a.x=Math.max(a.x,e),a.y=Math.max(a.y,n);});var u=a[i]-o[i];if(0!==u){var c=2*Math.PI/s;t.DFTraverse(function(e){var n=(e[i]-o[i])/u*(2*Math.PI-c)+c,a=e[r]-t[r];e.x=Math.cos(n)*a,e.y=Math.sin(n)*a;});}}}(t,e),t;};},function(t,e,n){var r=n(0),i={getId:function(t){return t.id||t.name;},getPreH:function(t){return t.preH||0;},getPreV:function(t){return t.preV||0;},getHGap:function(t){return t.hgap||18;},getVGap:function(t){return t.vgap||18;},getChildren:function(t){return t.children;},getHeight:function(t){return t.height||36;},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length;}};function o(t,e){if(this.vgap=this.hgap=0,t instanceof o)return t;this.data=t;var n=e.getHGap(t),r=e.getVGap(t);return this.preH=e.getPreH(t),this.preV=e.getPreV(t),this.width=e.getWidth(t),this.height=e.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=e.getId(t),this.x=this.y=0,this.depth=0,this.children||(this.children=[]),this.addGap(n,r),this;}r.assign(o.prototype,{isRoot:function(){return 0===this.depth;},isLeaf:function(){return 0===this.children.length;},addGap:function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e;},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n);},DFTraverse:function(t){this.eachNode(t);},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.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,n.x+=n.preH,n.y+=n.preV;});},right2left:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.x=e.x-(e.x-t.left)*2-e.width;}),this.translate(t.width,0);},bottom2top:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.y=e.y-(e.y-t.top)*2-e.height;}),this.translate(0,t.height);}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=r.assign({},i,e)),u=[s];if(!n&&!t.collapsed){for(;a=u.shift();)if(!a.data.collapsed){var c=e.getChildren(a.data),l=c?c.length:0;if(a.children=Array(l),c&&l)for(var f=0;f<l;f++){var d=new o(c[f],e);a.children[f]=d,u.push(d),d.parent=a,d.depth=a.depth+1;}}}return s;};},function(t,e,n){var r=n(3);t.exports=function(t,e){for(var n=r(t.data,e,!0),i=r(t.data,e,!0),o=t.children.length,a=Math.round(o/2),s=e.getSide||function(t,e){return e<a?"right":"left";},u=0;u<o;u++){var c=t.children[u];"right"===s(c,u)?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(6),dendrogram:n(8),indented:n(10),mindmap:n(12)};t.exports=r;},function(t,e,n){function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;})(t,e);}var i=n(1),o=n(7),a=n(2),s=n(0),u=function(t){function e(){return t.apply(this,arguments)||this;}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t),e.prototype.execute=function(){return a(this.rootNode,this.options,o);},e;}(i),c={};t.exports=function(t,e){return new u(t,e=s.assign({},c,e)).execute();};},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]),this.w=t||0,this.h=e||0,this.y=n||0,this.x=0,this.c=r||[],this.cs=r.length,this.prelim=0,this.mod=0,this.shift=0,this.change=0,this.tl=null,this.tr=null,this.el=null,this.er=null,this.msel=0,this.mser=0;}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,i=e.isHorizontal;function o(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 a(t){return t.y+t.h;}function s(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n};}!function t(e,n,r){void 0===r&&(r=0),n?(e.x=r,r+=e.width):(e.y=r,r+=e.height),e.children.forEach(function(e){t(e,n,r);});}(t,i);var u=n.fromNode(t,i);return function t(e){if(0===e.cs){o(e);return;}t(e.c[0]);for(var n=s(a(e.c[0].el),0,null),r=1;r<e.cs;++r){t(e.c[r]);var i=a(e.c[r].er);(function(t,e,n){for(var r=t.c[e-1],i=r.mod,o=t.c[e],s=o.mod;null!==r&&null!==o;){a(r)>n.low&&(n=n.nxt);var u,c,l,f=i+r.prelim+r.w-(s+o.prelim);f>0&&(s+=f,u=n.index,t.c[e].mod+=f,t.c[e].msel+=f,t.c[e].mser+=f,function(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;}}(t,e,u,f));var d=a(r),h=a(o);d<=h&&null!==(r=0===(c=r).cs?c.tr:c.c[c.cs-1])&&(i+=r.mod),d>=h&&null!==(o=0===(l=o).cs?l.tl:l.c[0])&&(s+=o.mod);}!r&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel;}(t,e,o,s):r&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser;}(t,e,r,i);})(e,r,n),n=s(i,r,n);}e.prelim=(e.c[0].prelim+e.c[0].mod+e.c[e.cs-1].mod+e.c[e.cs-1].prelim+e.c[e.cs-1].w)/2-e.w/2,o(e);}(u),function t(e,n){n+=e.mod,e.x=e.prelim+n,function(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;}(e);for(var r=0;r<e.cs;r++)t(e.c[r],n);}(u,0),function t(e,n,r){r?n.y=e.x:n.x=e.x,e.c.forEach(function(e,i){t(e,n.children[i],r);});}(u,t,i),r=function t(e,n){var r=n?e.y:e.x;return e.children.forEach(function(e){r=Math.min(t(e,n),r);}),r;}(t,i),function t(e,n,r){r?e.y+=n:e.x+=n,e.children.forEach(function(e){t(e,n,r);});}(t,-r,i),t;};},function(t,e,n){function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;})(t,e);}var i=n(1),o=n(9),a=n(2),s=n(0),u=function(t){function e(){return t.apply(this,arguments)||this;}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t),e.prototype.execute=function(){return this.rootNode.width=0,a(this.rootNode,this.options,o);},e;}(i),c={};t.exports=function(t,e){return new u(t,e=s.assign({},c,e)).execute();};},function(t,e,n){var r=n(0);function i(t,e){void 0===t&&(t=0),void 0===e&&(e=[]),this.x=this.y=0,this.leftChild=this.rightChild=null,this.height=0,this.children=e;}var o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e);var n,a=0,s=function t(e){if(!e)return null;e.width=0,e.depth&&e.depth>a&&(a=e.depth);var n=e.children,r=n.length,o=new i(e.height,[]);return n.forEach(function(e,n){var i=t(e);o.children.push(i),0===n&&(o.leftChild=i),n===r-1&&(o.rightChild=i);}),o.originNode=e,o.isLeaf=e.isLeaf(),o;}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=a;else{var n=e.children.map(function(e){return t(e);}),r=Math.min.apply(null,n);e.drawingDepth=r-1;}return e.drawingDepth;}(s),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach(function(e){t(e);}),r.y=(r.leftChild.y+r.rightChild.y)/2);}(s),function t(e,n,r){r?(n.x=e.x,n.y=e.y):(n.x=e.y,n.y=e.x),e.children.forEach(function(e,i){t(e,n.children[i],r);});}(s,t,e.isHorizontal),t;};},function(t,e,n){function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;})(t,e);}var i=n(1),o=n(11),a=n(4),s=n(0),u=["LR","RL","H"],c=u[0],l=function(t){function e(){return t.apply(this,arguments)||this;}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t),e.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=void 0===n?20:n,i=t.dropCap,s=void 0===i||i,l=t.direction,f=void 0===l?c:l,d=t.align;if(f&&-1===u.indexOf(f))throw TypeError("Invalid direction: "+f);if(f===u[0])o(e,r,s,d);else if(f===u[1])o(e,r,s,d),e.right2left();else if(f===u[2]){var h=a(e,t),g=h.left,p=h.right;o(g,r,s,d),g.right2left(),o(p,r,s,d);var v=g.getBoundingBox();p.translate(v.width,0),e.x=p.x-e.width/2;}return e;},e;}(i),f={};t.exports=function(t,e){return new l(t,e=s.assign({},f,e)).execute();};},function(t,e,n){var r=n(0);t.exports=function(t,e,n,i){var o=null;t.eachNode(function(t){(function(t,e,n,i,o){var a=("function"==typeof n?n(t):n)*t.depth;if(!i)try{if(t.id===t.parent.children[0].id){t.x+=a,t.y=e?e.y:0;return;}}catch(t){}if(t.x+=a,e){if(t.y=e.y+r.getHeight(e,t,o),e.parent&&t.parent.id!==e.parent.id){var s=e.parent,u=s.y+r.getHeight(s,t,o);t.y=u>t.y?u:t.y;}}else t.y=0;})(t,o,e,n,i),o=t;});};},function(t,e,n){function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;})(t,e);}var i=n(1),o=n(13),a=n(2),s=n(0),u=function(t){function e(){return t.apply(this,arguments)||this;}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t),e.prototype.execute=function(){return a(this.rootNode,this.options,o);},e;}(i),c={};t.exports=function(t,e){return new u(t,e=s.assign({},c,e)).execute();};},function(t,e,n){var r=n(0),i={getSubTreeSep:function(){return 0;}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},i,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,function t(e,n){var r=0;return e.children.length?e.children.forEach(function(e){r+=t(e,n);}):r=e.height,e._subTreeSep=n.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,r)+2*e._subTreeSep,e.totalHeight;}(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 o=e[i];o.startY=e[i-1].startY+e[i-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2;}}}}),function t(e){var n=e.children,r=n.length;if(r){n.forEach(function(e){t(e);});var i=n[0],o=n[r-1],a=o.y-i.y+o.height,s=0;if(n.forEach(function(t){s+=t.totalHeight;}),a>e.height)e.y=i.y+a/2-e.height/2;else if(1!==n.length||e.height>s){var u=e.y+(e.height-a)/2-i.y;n.forEach(function(t){t.translate(0,u);});}else e.y=(i.y+i.height/2+o.y+o.height/2)/2-e.height/2;}}(t);};}]);},"object"==typeof e&&"object"==typeof t?t.exports=i():"object"==typeof e?e.Hierarchy=i():r.Hierarchy=i();},ea6f023d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("6e810311")),i=function(t){return(0,r.default)(t,"Date");};},ea87a61c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("235d18ef")),a=n("ddeef58a"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0});},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=o.x,u=o.y,c=o.r,l=i/2,f=(0,a.distance)(s,u,t,e);return r&&n?f<=c+l:r?f<=c:!!n&&f>=c-l&&f<=c+l;},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath();},e;}(o.default);},eac91f5f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return v;}});var r=n("777fffbe"),i=n("4c6d310c"),o=r._(n("7be994de")),a=n("f6fd9972"),s=n("22b52967"),u=n("fb79bacd"),c=n("2105a9e4"),l=n("a8db751a"),f=r._(n("528465ee")),d=n("c7fb2db5"),h=n("85b3418c"),g=r._(n("e84a312f")),p=a.ext.transform,v=function(t){function e(e){var n=t.call(this)||this;return n.sortCombos=(0,s.debounce)(function(){var t=n.get("comboSorted");if(n&&!n.destroyed&&!t){n.set("comboSorted",!0);var e=[],r={};(n.get("comboTrees")||[]).forEach(function(t){(0,h.traverseTree)(t,function(t){return e[t.depth]?e[t.depth].push(t.id):e[t.depth]=[t.id],r[t.id]=t.depth,!0;});}),(n.getEdges().concat(n.get("vedges"))||[]).forEach(function(t){var n=t.getModel(),i=Math.max(r[n.source]||0,r[n.target]||0);e[i]?e[i].push(n.id):e[i]=[n.id];}),e.forEach(function(t){if(t&&t.length)for(var e=t.length-1;e>=0;e--){var r=n.findById(t[e]);r&&r.toFront();}});}},500,!1),n.cfg=(0,s.deepMix)(n.getDefaultCfg(),e),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new u.Stack(n.cfg.maxStep),n.redoStack=new u.Stack(n.cfg.maxStep)),n;}return(0,i.__extends)(e,t),e.prototype.init=function(){this.initCanvas();var t=new d.ViewController(this),e=new d.ModeController(this),n=new d.ItemController(this),r=new d.StateController(this);this.set({viewController:t,modeController:e,itemController:n,stateController:r}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins();},e.prototype.initGroups=function(){var t=this.get("canvas");if(t){var e=(t.get("el")||{}).id,n=void 0===e?"g6":e,r=t.addGroup({id:"".concat(n,"-root"),className:f.default.rootContainerClassName});if(this.get("groupByTypes")){var i=r.addGroup({id:"".concat(n,"-edge"),className:f.default.edgeContainerClassName}),o=r.addGroup({id:"".concat(n,"-node"),className:f.default.nodeContainerClassName}),a=r.addGroup({id:"".concat(n,"-combo"),className:f.default.comboContainerClassName});a.toBack(),this.set({nodeGroup:o,edgeGroup:i,comboGroup:a});}var s=r.addGroup({id:"".concat(n,"-delegate"),className:f.default.delegateContainerClassName});this.set({delegateGroup:s}),this.set("group",r);}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3};},e.prototype.set=function(t,e){return(0,s.isPlainObject)(t)?this.cfg=(0,i.__assign)((0,i.__assign)({},this.cfg),t):this.cfg[t]=e,"enabledStack"!==t||!e||this.undoStack||this.redoStack||(this.undoStack=new u.Stack(this.cfg.maxStep),this.redoStack=new u.Stack(this.cfg.maxStep)),this;},e.prototype.get=function(t){var e;return null===(e=this.cfg)||void 0===e?void 0:e[t];},e.prototype.getGroup=function(){return this.get("group");},e.prototype.getContainer=function(){return this.get("container");},e.prototype.getMinZoom=function(){return this.get("minZoom");},e.prototype.setMinZoom=function(t){return this.set("minZoom",t);},e.prototype.getMaxZoom=function(){return this.get("maxZoom");},e.prototype.setMaxZoom=function(t){return this.set("maxZoom",t);},e.prototype.getWidth=function(){return this.get("width");},e.prototype.getHeight=function(){return this.get("height");},e.prototype.clearItemStates=function(t,e){(0,s.isString)(t)&&(t=this.findById(t));var n=this.get("itemController");e||(e=t.get("states")),n.clearItemStates(t,e),this.get("stateController").updateStates(t,e,!1);},e.prototype.node=function(t){"function"==typeof t&&this.set("nodeMapper",t);},e.prototype.edge=function(t){"function"==typeof t&&this.set("edgeMapper",t);},e.prototype.combo=function(t){"function"==typeof t&&this.set("comboMapper",t);},e.prototype.findById=function(t){return this.get("itemMap")[t];},e.prototype.find=function(t,e){var n,r=this.get("".concat(t,"s"));return(0,s.each)(r,function(t,r){if(e(t,r))return n=t;}),n;},e.prototype.findAll=function(t,e){var n=[];return(0,s.each)(this.get("".concat(t,"s")),function(t,r){e(t,r)&&n.push(t);}),n;},e.prototype.findAllByState=function(t,e,n){return n?this.findAll(t,function(t){return t.hasState(e)&&n(t);}):this.findAll(t,function(t){return t.hasState(e);});},e.prototype.translate=function(t,e,n,r){var i=this,o=this.get("group"),a=(0,s.clone)(o.getMatrix());if(a||(a=[1,0,0,0,1,0,0,0,1]),n){var u=(0,h.getAnimateCfgWithCallback)({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"translate",matrix:o.getMatrix()});}});(0,c.move)(o,{x:o.getCanvasBBox().x+t,y:o.getCanvasBBox().y+e},n,u||{duration:500,easing:"easeCubic"});}else a=p(a,[["t",t,e]]),o.setMatrix(a),this.emit("viewportchange",{action:"translate",matrix:a}),this.autoPaint();},e.prototype.moveTo=function(t,e,n,r){var i=this.get("group");(0,c.move)(i,{x:t,y:e},n,r||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:i.getMatrix()});},e.prototype.fitView=function(t,e,n,r){t&&this.set("fitViewPadding",t);var i=this.get("viewController");e?i.fitViewByRules(e,n,r):i.fitView(n,r),this.autoPaint();},e.prototype.fitCenter=function(t,e){this.get("viewController").fitCenter(t,e),this.autoPaint();},e.prototype.addBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!0),this;},e.prototype.removeBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!1),this;},e.prototype.updateBehavior=function(t,e,n){return this.get("modeController").updateBehavior(t,e,n),this;},e.prototype.zoom=function(t,e,n,r){var i=this,o=this.get("group"),a=(0,s.clone)(o.getMatrix())||[1,0,0,0,1,0,0,0,1],u=this.get("minZoom"),l=this.get("maxZoom"),f=this.getZoom()||1,d=f*t,g=t,v=!1;if(u&&d<u?(g=u/f,v=!0):l&&d>l&&(g=l/f,v=!0),a=e?p(a,[["t",-e.x,-e.y],["s",g,g],["t",e.x,e.y]]):p(a,[["s",g,g]]),n){var m=(0,s.clone)(o.getMatrix());m||(m=[1,0,0,0,1,0,0,0,1]);var y=m[0],b=y*g,x=(0,h.getAnimateCfgWithCallback)({animateCfg:r,callback:function(){return i.emit("viewportchange",{action:"zoom",matrix:o.getMatrix()});}});o.animate(function(t){if(1===t)m=a;else{var n=(0,c.lerp)(y,b,t)/m[0];m=e?p(m,[["t",-e.x,-e.y],["s",n,n],["t",e.x,e.y]]):p(m,[["s",n,n]]);}return{matrix:m};},x);}else o.setMatrix(a),this.emit("viewportchange",{action:"zoom",matrix:a}),this.autoPaint();return!v;},e.prototype.zoomTo=function(t,e,n,r){var i=t/this.getZoom();return this.zoom(i,e,n,r);},e.prototype.focusItem=function(t,e,n){var r=this.get("viewController"),i=!1;e?i=!0:void 0===e&&(i=this.get("animate"));var o={};n?o=n:void 0===n&&(o=this.get("animateCfg")),r.focus(t,i,o),this.autoPaint();},e.prototype.focusItems=function(t,e,n,r){this.get("viewController").focusItems(t,e,n,r);},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint();},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint");},e.prototype.getPointByClient=function(t,e){return this.get("viewController").getPointByClient(t,e);},e.prototype.getClientByPoint=function(t,e){return this.get("viewController").getClientByPoint(t,e);},e.prototype.getPointByCanvas=function(t,e){return this.get("viewController").getPointByCanvas(t,e);},e.prototype.getCanvasByPoint=function(t,e){return this.get("viewController").getCanvasByPoint(t,e);},e.prototype.getGraphCenterPoint=function(){var t=this.get("group").getCanvasBBox();return{x:(t.minX+t.maxX)/2,y:(t.minY+t.maxY)/2};},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2);},e.prototype.showItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!0);if(e&&this.get("enabledStack")){var r=n.getID(),i=n.getType(),o={},a={};switch(i){case"node":o.nodes=[{id:r,visible:!1}],a.nodes=[{id:r,visible:!0}];break;case"edge":o.nodes=[{id:r,visible:!1}],a.edges=[{id:r,visible:!0}];break;case"combo":o.nodes=[{id:r,visible:!1}],a.combos=[{id:r,visible:!0}];}this.pushStack("visible",{before:o,after:a});}},e.prototype.hideItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!1);if(e&&this.get("enabledStack")){var r=n.getID(),i=n.getType(),o={},a={};switch(i){case"node":o.nodes=[{id:r,visible:!0}],a.nodes=[{id:r,visible:!1}];break;case"edge":o.nodes=[{id:r,visible:!0}],a.edges=[{id:r,visible:!1}];break;case"combo":o.nodes=[{id:r,visible:!0}],a.combos=[{id:r,visible:!1}];}this.pushStack("visible",{before:o,after:a});}},e.prototype.refreshItem=function(t){this.get("itemController").refreshItem(t);},e.prototype.setAutoPaint=function(t){this.set("autoPaint",t),this.get("canvas").set("autoDraw",t);},e.prototype.remove=function(t,e){void 0===e&&(e=!0),this.removeItem(t,e);},e.prototype.removeItem=function(t,e){void 0===e&&(e=!0);var n=t;if((0,s.isString)(t)&&(n=this.findById(t)),!n&&(0,s.isString)(t))console.warn("The item ".concat(t," to be removed does not exist!"));else if(n){var r="";if(n.getType&&(r=n.getType()),e&&this.get("enabledStack")){var o=(0,i.__assign)((0,i.__assign)({},n.getModel()),{itemType:r}),a={};switch(r){case"node":a.nodes=[o],a.edges=[];for(var u=n.getEdges(),c=u.length-1;c>=0;c--)a.edges.push((0,i.__assign)((0,i.__assign)({},u[c].getModel()),{itemType:"edge"}));break;case"edge":a.edges=[o];break;case"combo":a.combos=[o];}this.pushStack("delete",{before:a,after:{}});}if("node"===r&&n.getModel().comboId&&this.updateComboTree(n,void 0,!1),this.get("itemController").removeItem(n),"combo"===r){var l=(0,h.reconstructTree)(this.get("comboTrees"));this.set("comboTrees",l);}}},e.prototype.innerAddItem=function(t,e,n){if(!(0,l.singleDataValidation)(t,e))return!1;if(e.id&&this.findById(e.id)){console.warn("This item exists already. Be sure the id %c".concat(e.id,"%c is unique."),"font-size: 20px; color: red;","");return;}var r,o=this.get("comboTrees")||[];if("combo"===t){var a=this.get("itemMap"),u=!1;if(o.forEach(function(o){u||(0,h.traverseTreeUp)(o,function(o){if(e.parentId===o.id){u=!0;var s=(0,i.__assign)({id:e.id,depth:o.depth+2},e);o.children?o.children.push(s):o.children=[s],e.depth=s.depth,r=n.addItem(t,e);}var c=a[o.id];return u&&c&&c.getType&&"combo"===c.getType()&&n.updateCombo(c,o.children),!0;});}),!u){var c=(0,i.__assign)({id:e.id,depth:0},e);e.depth=c.depth,o.push(c),r=n.addItem(t,e);}this.set("comboTrees",o),e.collapsed&&(this.collapseCombo(r,!1),this.updateCombo(r));}else if("node"===t&&(0,s.isString)(e.comboId)&&o){var f=this.findById(e.comboId);f&&f.getType&&"combo"!==f.getType()&&console.warn("'".concat(e.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),r=n.addItem(t,e);var d=this.get("itemMap"),g=!1,p=!1;o.forEach(function(t){p||g||(0,h.traverseTreeUp)(t,function(t){if(t.id===e.id)return p=!0,!1;if(e.comboId===t.id&&!p){g=!0;var r=(0,s.clone)(e);r.itemType="node",t.children?t.children.push(r):t.children=[r],r.depth=t.depth+1;}return g&&d[t.id].getType&&"combo"===d[t.id].getType()&&n.updateCombo(d[t.id],t.children),!0;});});}else r=n.addItem(t,e);if("node"===t&&e.comboId||"combo"===t&&e.parentId){var f=this.findById(e.comboId||e.parentId);f&&f.getType&&"combo"===f.getType()&&f.addChild(r);}return r;},e.prototype.addItem=function(t,e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0);var o=this.get("comboSorted");this.set("comboSorted",o&&!r);var a=this.get("itemController"),s=this.innerAddItem(t,e,a);if(!1===s||!0===s)return s;var u=this.get("combos");if(u&&u.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var c=(0,i.__assign)((0,i.__assign)({},s.getModel()),{itemType:t}),l={};switch(t){case"node":l.nodes=[c];break;case"edge":l.edges=[c];break;case"combo":l.combos=[c];}this.pushStack("add",{before:{},after:l});}return s;},e.prototype.addItems=function(t,e,n){void 0===t&&(t=[]),void 0===e&&(e=!0),void 0===n&&(n=!0);var r=this.get("comboSorted");this.set("comboSorted",r&&!n);for(var o=this.get("itemController"),a=[],s=0;s<t.length;s++){var u=t[s];"edge"!==u.type&&"vedge"!==u.type?a.push(this.innerAddItem(u.type,u.model,o)):a.push(void 0);}for(var s=0;s<t.length;s++){var u=t[s];("edge"===u.type||"vedge"===u.type)&&(a[s]=this.innerAddItem(u.type,u.model,o));}if(n){var c=this.get("combos");c&&c.length>0&&this.sortCombos();}if(this.autoPaint(),e&&this.get("enabledStack")){for(var l={nodes:[],edges:[],combos:[]},s=0;s<t.length;s++){var f=t[s].type,d=a[s];if(d&&!0!==d){var h=(0,i.__assign)((0,i.__assign)({},d.getModel()),{itemType:f});switch(f){case"node":l.nodes.push(h);break;case"edge":l.edges.push(h);break;case"combo":l.combos.push(h);}}}this.pushStack("addItems",{before:{},after:l});}return a;},e.prototype.add=function(t,e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!0),this.addItem(t,e,n,r);},e.prototype.updateItem=function(t,e,n){var r,o,a=this;void 0===n&&(n=!0);var u=this.get("itemController");r=(0,s.isString)(t)?this.findById(t):t;var c=n&&this.get("enabledStack");c&&(o=(0,s.clone)(r.getModel()));var l="";r.getType&&(l=r.getType());var f=(0,i.__spreadArray)([],r.getStates(),!0);if("combo"===l&&(0,s.each)(f,function(t){return a.setItemState(r,t,!1);}),u.updateItem(r,e),"combo"===l&&(0,s.each)(f,function(t){return a.setItemState(r,t,!0);}),c){var d={nodes:[],edges:[],combos:[]},h={nodes:[],edges:[],combos:[]},g=(0,i.__assign)({id:o.id},e);switch(l){case"node":d.nodes.push(o),h.nodes.push(g);break;case"edge":d.edges.push(o),h.edges.push(g);break;case"combo":d.combos.push(o),h.combos.push(g);}this.pushStack("update",{before:d,after:h});}},e.prototype.update=function(t,e,n){void 0===n&&(n=!0),this.updateItem(t,e,n);},e.prototype.setItemState=function(t,e,n){(0,s.isString)(t)&&(t=this.findById(t)),this.get("itemController").setItemState(t,e,n),this.get("stateController").updateState(t,e,n);},e.prototype.priorityState=function(t,e){this.get("itemController").priorityState(t,e);},e.prototype.data=function(t){(0,l.dataValidation)(t),this.set("data",t);},e.prototype.render=function(){var t=this;this.set("comboSorted",!1);var e=this.get("data");if(this.get("enabledStack")&&this.clearStack(),!e)throw Error("data must be defined first");var n=e.nodes,r=void 0===n?[]:n,i=e.edges,o=e.combos,a=void 0===o?[]:o;if(this.clear(!0),this.emit("beforerender"),t.addItems(r.map(function(t){return{type:"node",model:t};}),!1,!1),(null==a?void 0:a.length)!==0){var s=(0,h.plainCombosToTrees)(a,r);this.set("comboTrees",s),t.addCombos(a);}t.addItems((void 0===i?[]:i).map(function(t){return{type:"edge",model:t};}),!1,!1);var u=t.get("animate");(t.get("fitView")||t.get("fitCenter"))&&t.set("animate",!1);var c=t.get("layoutController");if(c){if(c.layout(l),this.destroyed)return;}else l();function l(){(t.get("comboTrees")||[]).forEach(function(e){(0,h.traverseTreeUp)(e,function(e){var n=t.findById(e.id);return"combo"===n.getType()&&e.collapsed&&(t.collapseCombo(e.id,!1),t.updateCombo(n)),!0;});}),t.get("fitView")?t.fitView():t.get("fitCenter")&&t.fitCenter(),t.autoPaint(),t.emit("afterrender"),(t.get("fitView")||t.get("fitCenter"))&&t.set("animate",u),setTimeout(function(){var e;null===(e=t.getCombos())||void 0===e||e.forEach(function(t){t.set("animate",!0);});},0);}this.get("groupByTypes")||(a&&0!==a.length?this.sortCombos():e.nodes&&e.edges&&e.nodes.length<e.edges.length?this.getNodes().forEach(function(t){t.toFront();}):this.getEdges().forEach(function(t){t.toBack();}));},e.prototype.read=function(t){this.data(t),this.render();},e.prototype.diffItems=function(t,e,n){var r,i=this,o=this.get("itemMap");(0,s.each)(n,function(n){if(r=o[n.id]){if(i.get("animate")&&"node"===t){var a=r.getContainer().getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]),r.set("originAttrs",{x:a[6],y:a[7]});}i.updateItem(r,n,!1);}else r=i.addItem(t,n,!1);r&&e["".concat(t,"s")].push(r);});},e.prototype.changeData=function(t,e){var n,r=this;void 0===e&&(e=!0);var i=this,o=t||i.get("data");if(!(0,l.dataValidation)(o))return this;this.emit("beforechangedata"),e&&this.get("enabledStack")&&this.pushStack("changedata",{before:i.save(),after:o}),this.set("comboSorted",!1),this.removeHulls(),this.getNodes().map(function(t){return i.clearItemStates(t);}),this.getEdges().map(function(t){return i.clearItemStates(t);});var a=this.get("canvas"),u=a.get("localRefresh");a.set("localRefresh",!1),i.get("data")||(i.data(o),i.render());var c=this.get("itemMap"),f={nodes:[],edges:[]},d=o.combos;if(d){var g=(0,h.plainCombosToTrees)(d,o.nodes);this.set("comboTrees",g);}else this.set("comboTrees",[]);this.diffItems("node",f,o.nodes),(0,s.each)(c,function(t,e){c[e].getModel().depth=0,(!t.getType||"edge"!==t.getType())&&(t.getType&&"combo"===t.getType()?(delete c[e],t.destroy()):0>f.nodes.indexOf(t)&&(delete c[e],i.remove(t,!1)));});for(var p=this.getCombos(),v=p.length,m=v-1;m>=0;m--)p[m].destroyed&&p.splice(m,1);d&&(i.addCombos(d),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",f,o.edges),(0,s.each)(c,function(t,e){(!t.getType||"node"!==t.getType()&&"combo"!==t.getType())&&0>f.edges.indexOf(t)&&(delete c[e],i.remove(t,!1));}),(this.get("comboTrees")||[]).forEach(function(t){(0,h.traverseTreeUp)(t,function(t){return"combo"===r.findById(t.id).getType()&&t.collapsed&&r.collapseCombo(t.id,!1),!0;});}),this.set({nodes:f.nodes,edges:f.edges});var y=(this.get("layout")||{}).relayoutAtChangeData,b=this.get("layoutController");return(void 0===y||y)&&b&&(b.changeData(function(){setTimeout(function(){var t;null===(t=i.getCombos())||void 0===t||t.forEach(function(t){t.set("animate",!0);});},0);}),i.get("animate")&&!b.getLayoutType()?(i.positionsAnimate(),null===(n=i.getCombos())||void 0===n||n.forEach(function(t){return t.set("animate",!0);})):i.autoPaint()),setTimeout(function(){a.set("localRefresh",u);},16),this.set("data",o),this.emit("afterchangedata"),this;},e.prototype.addCombos=function(t){var e=this.get("comboTrees");this.get("itemController").addCombos(e,t);},e.prototype.createCombo=function(t,e,n){var r,i=this;void 0===n&&(n=!0);var o=this.get("itemController");this.set("comboSorted",!1);var a="";if(t){if((0,s.isString)(t))a=t,r={id:t};else{if(!(a=t.id)){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return;}r=t;}var u=n&&this.get("enabledStack"),c={nodes:[],combos:[]};u&&e.forEach(function(t){var e=i.findById(t),n=e.getType();if("node"===n||"combo"===n){var r=e.getModel();c["".concat(n,"s")].push({id:t,parentId:"node"===n?r.comboId:r.parentId});}});var l=this.get("comboTrees"),f=new Set(e),d=new Map;l&&(l.forEach(function(t){(0,h.traverseTreeUp)(t,function(t,e,n){if(f.has(t.id)){if(e){var r=i.findById(e.id),a=i.findById(t.id);e.children.splice(n,1),r.removeChild(a),o.updateCombo(r,e.children);}"combo"===t.itemType&&d.set(t.id,t);}return!0;});}),l=l.filter(function(t){return!f.has(t.id);}),this.set("comboTrees",l));var g={nodes:[],combos:[]},p=e.map(function(t){var e=i.findById(t),n=e.getModel(),r="";e.getType&&(r=e.getType());var o=d.get(t)||{id:e.getID(),itemType:r};return"combo"===r?(o.parentId=a,n.parentId=a):"node"===r&&(o.comboId=a,n.comboId=a),u&&g["".concat(r,"s")].push({id:n.id,parentId:a}),o;});r.children=p,this.addItem("combo",r,!1),this.set("comboSorted",!1),l&&(l.forEach(function(t){(0,h.traverseTree)(t,function(t){return t.id!==a||(t.itemType="combo",t.children=p,!1);});}),this.sortCombos()),u&&(g.combos.push(r),this.pushStack("createCombo",{before:c,after:g}));var v=this.findById(a);!v.getModel().parentId&&v.getChildren().combos.length&&this.updateComboTree(v,void 0,!1),setTimeout(function(){v.set("animate",!0);},0);}},e.prototype.uncombo=function(t,e){var n,r,i,o=this;void 0===e&&(e=!0);var a=t;if((0,s.isString)(t)&&(a=this.findById(t)),!a||a.getType&&"combo"!==a.getType()){console.warn("The item is not a combo!");return;}var u=a.getModel(),c=a.getModel().parentId,l=this.get("comboTrees");l||(l=[]);var f=this.get("itemMap"),d=a.get("id"),g=[],p=this.get("combos"),v=this.findById(c),m=e&&this.get("enabledStack"),y={};if(m&&((y=(0,s.clone)(u)).children=[]),l.forEach(function(t){i||(0,h.traverseTreeUp)(t,function(t){var e;if(t.id===d){i=t,a.getEdges().map(function(t){return t.getID();}).forEach(function(t){o.removeItem(t,!1);});var n=p.indexOf(a);p.splice(n,1),delete f[d];var r=(0,s.clone)(a.getModel());a.destroy(),o.emit("afterremoveitem",{item:r,type:"combo"});}if(c&&i&&t.id===c){v.removeCombo(a);var n=(g=t.children).indexOf(i);return -1!==n&&g.splice(n,1),null===(e=i.children)||void 0===e||e.forEach(function(t){var e=o.findById(t.id),n=e.getModel();e.getType&&"combo"===e.getType()?(t.parentId=c,delete t.comboId,n.parentId=c,delete n.comboId):e.getType&&"node"===e.getType()&&(t.comboId=c,n.comboId=c),v.addChild(e),g.push(t);}),o.updateCombo(v),!1;}return!0;});}),!c&&i){var b=l.indexOf(i);l.splice(b,1),null===(n=i.children)||void 0===n||n.forEach(function(t){t.parentId=void 0;var e=o.findById(t.id).getModel();delete e.parentId,delete e.comboId,"node"!==t.itemType&&l.push(t);});}if(m){var x={nodes:[],combos:[]},_={nodes:[],combos:[]};null===(r=i.children)||void 0===r||r.forEach(function(t){var e=o.findById(t.id).getType();("node"===e||"combo"===e)&&(x["".concat(e,"s")].push({id:t.id,parentId:d}),_["".concat(e,"s")].push({id:t.id,parentId:c}));}),x.combos.push(y),this.pushStack("uncombo",{before:x,after:_});}},e.prototype.updateCombos=function(t){var e=this;void 0===t&&(t=!1);var n=this.get("comboTrees"),r=this.get("itemController"),o=this.get("itemMap");(n||[]).forEach(function(n){(0,h.traverseTreeUp)(n,function(n){if(!n)return!0;var a,u=o[n.id];if((null===(a=null==u?void 0:u.getType)||void 0===a?void 0:a.call(u))==="combo"){var c=(0,i.__spreadArray)([],u.getStates(),!0);(0,s.each)(c,function(t){return e.setItemState(u,t,!1);}),r.updateCombo(u,n.children,t),(0,s.each)(c,function(t){return e.setItemState(u,t,!0);});}return!0;});}),this.sortCombos();},e.prototype.updateCombo=function(t){var e,n=this,r=t;if((0,s.isString)(t)&&(r=this.findById(t)),!r||r.getType&&"combo"!==r.getType()){console.warn("The item to be updated is not a combo!");return;}e=r.get("id");var o=this.get("comboTrees"),a=this.get("itemController"),u=this.get("itemMap");(o||[]).forEach(function(t){(0,h.traverseTreeUp)(t,function(t){if(!t)return!0;var r=u[t.id];if(e===t.id&&r&&r.getType&&"combo"===r.getType()){var o=(0,i.__spreadArray)([],r.getStates(),!0);(0,s.each)(o,function(t){r.getStateStyle(t)&&n.setItemState(r,t,!1);}),a.updateCombo(r,t.children),(0,s.each)(o,function(t){r.getStateStyle(t)&&n.setItemState(r,t,!0);}),e&&(e=t.parentId);}return!0;});});},e.prototype.updateComboTree=function(t,e,n){void 0===n&&(n=!0),this.set("comboSorted",!1);var r=(a=(0,s.isString)(t)?this.findById(t):t).getModel(),i=r.comboId||r.parentId,o="";if(a.getType&&(o=a.getType()),e&&"combo"===o){var a,u,c=this.get("comboTrees"),l=!0;if((c||[]).forEach(function(t){u||(0,h.traverseTree)(t,function(t){if(!u)return t.id===a.getID()&&(u=t),!0;});}),(0,h.traverseTree)(u,function(t){return t.id!==e||(l=!1,!1);}),!l){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return;}}if(n&&this.get("enabledStack")){var f={},d={};"combo"===o?(f.combos=[{id:r.id,parentId:r.parentId}],d.combos=[{id:r.id,parentId:e}]):"node"===o&&(f.nodes=[{id:r.id,parentId:r.comboId}],d.nodes=[{id:r.id,parentId:e}]),this.pushStack("updateComboTree",{before:f,after:d});}if(r.parentId||r.comboId){var g=this.findById(r.parentId||r.comboId);g&&g.removeChild(a);}if("combo"===o?r.parentId=e:"node"===o&&(r.comboId=e),e){var p=this.findById(e);p&&p.addChild(a);}if(i){var p=this.findById(i);p&&p.removeChild(a);}var v=(0,h.reconstructTree)(this.get("comboTrees"),r.id,e);this.set("comboTrees",v),this.updateCombos();},e.prototype.save=function(){var t=[],e=[],n=[];return(0,s.each)(this.get("nodes"),function(e){t.push(e.getModel());}),(0,s.each)(this.get("edges"),function(t){e.push(t.getModel());}),(0,s.each)(this.get("combos"),function(t){n.push(t.getModel());}),{nodes:t,edges:e,combos:n};},e.prototype.changeSize=function(t,e){return this.get("viewController").changeSize(t,e),this;},e.prototype.refresh=function(){if(this.emit("beforegraphrefresh"),this.get("animate"))this.positionsAnimate();else{var t=this.get("nodes"),e=this.get("edges"),n=this.get("edges");(0,s.each)(t,function(t){t.refresh();}),(0,s.each)(e,function(t){t.refresh();}),(0,s.each)(n,function(t){t.refresh();});}this.emit("aftergraphrefresh"),this.autoPaint();},e.prototype.getNodes=function(){return this.get("nodes");},e.prototype.getEdges=function(){return this.get("edges");},e.prototype.getCombos=function(){return this.get("combos");},e.prototype.getComboChildren=function(t){if((0,s.isString)(t)&&(t=this.findById(t)),!t||t.getType&&"combo"!==t.getType()){console.warn("The combo does not exist!");return;}return t.getChildren();},e.prototype.positionsAnimate=function(t){var e=this;e.emit("beforeanimate");var n=e.get("animateCfg"),r=n.onFrame,i=t?e.getNodes().concat(e.getCombos()):e.getNodes(),o=i.map(function(t){var e=t.getModel();return{id:e.id,x:e.x,y:e.y};});e.stopAnimate();var a=e.get("canvas");e.animating=!0,setTimeout(function(){a.animate(function(n){(0,s.each)(o,function(t){var i=e.findById(t.id);if(i&&!i.destroyed){var o=i.get("originAttrs"),a=i.get("model"),s=i.getContainer().getMatrix();if(null==o&&(s&&(o={x:s[6],y:s[7]}),i.set("originAttrs",o||0)),r){var u=r(i,n,t,o||{x:0,y:0});i.set("model",Object.assign(a,u));}else o?(a.x=o.x+(t.x-o.x)*n,a.y=o.y+(t.y-o.y)*n):(a.x=t.x,a.y=t.y);}}),e.refreshPositions(t);},{duration:n.duration,easing:n.easing,callback:function(){(0,s.each)(i,function(t){t.set("originAttrs",null);}),n.callback&&n.callback(),e.emit("afteranimate"),e.animating=!1;}});},0);},e.prototype.refreshPositions=function(t){this.emit("beforegraphrefreshposition");var e,n=this.get("nodes"),r=this.get("edges"),i=this.get("vedges"),o=this.get("combos"),a={},u=function(t){(0,s.each)(t,function(t){e=t.getModel();var n=t.get("originAttrs");if(!n||e.x!==n.x||e.y!==n.y){var r=t.updatePosition({x:e.x,y:e.y});a[e.id]=r,e.comboId&&(a[e.comboId]=a[e.comboId]||r),e.parentId&&(a[e.parentId]=a[e.parentId]||r);}});};u(o),u(n),o&&0!==o.length&&(t&&u(o),this.updateCombos()),(0,s.each)(r,function(t){var e=t.getSource().getModel(),n=t.getTarget();if(!(0,s.isPlainObject)(n)){var r=n.getModel();(a[e.id]||a[r.id]||t.getModel().isComboEdge)&&t.refresh();}}),(0,s.each)(i,function(t){t.refresh();}),this.emit("aftergraphrefreshposition"),this.autoPaint();},e.prototype.stopAnimate=function(){var t=this.get("canvas").cfg.timeline;t&&t.stopAllAnimations();},e.prototype.isAnimating=function(){return this.animating;},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1;},e.prototype.getCurrentMode=function(){return this.get("modeController").getMode();},e.prototype.setMode=function(t){return this.get("modeController").setMode(t),this;},e.prototype.clear=function(t){var e;return void 0===t&&(t=!1),null===(e=this.get("canvas"))||void 0===e||e.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),t||this.emit("afterrender"),this;},e.prototype.updateLayout=function(t,e,n,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=!0);var a=this.get("layoutController");if((0,s.isString)(t)&&(t={type:t}),e){var u=n;u||(u="begin"===e?{x:0,y:0}:{x:this.getWidth()/2,y:this.getHeight()/2}),u=this.getPointByCanvas(u.x,u.y);var c=["force","gForce","fruchterman","force2"];c.includes(t.type)||!t.type&&c.includes(null==a?void 0:a.layoutType)?t.center=[u.x,u.y]:this.once("afterlayout",function(t){var n=o.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];u.x=u.x*n[0]+n[6],u.y=u.y*n[0]+n[7];var r=o.getGroup().getCanvasBBox(),i=r.minX,a=r.maxX,s=r.minY,c={x:(i+a)/2,y:(s+r.maxY)/2};"begin"===e&&(c.x=i,c.y=s),o.translate(u.x-c.x,u.y-c.y);});}var l=(0,i.__assign)({},this.get("layout")),f={};Object.assign(f,l,t),t.pipes&&!t.type?delete f.type:!t.pipes&&f.type&&delete f.pipes,this.set("layout",f),a&&(a.isLayoutTypeSame(f)&&f.gpuEnabled===l.gpuEnabled?a.updateLayoutCfg(f):a.changeLayout(f),r&&this.get("enabledStack")&&this.pushStack("layout",{before:l,after:f}));},e.prototype.destroyLayout=function(){var t=this.get("layoutController");null==t||t.destroyLayout();},e.prototype.layout=function(){var t,e=this.get("layoutController"),n=this.get("layout");if(n&&e){if(n.workerEnabled){e.layout();return;}(null===(t=e.layoutMethods)||void 0===t?void 0:t.length)?e.relayout(!0):e.layout();}},e.prototype.collapseCombo=function(t,e){var n=this;if(void 0===e&&(e=!0),!this.destroyed){if((0,s.isString)(t)&&(t=this.findById(t)),!t){console.warn("The combo to be collapsed does not exist!");return;}this.emit("beforecollapseexpandcombo",{action:"collapse",item:t});var r=t.getModel();this.get("itemController").collapseCombo(t,e),r.collapsed=!0;var i=this.getEdges().concat(this.get("vedges")),o=[],a=this.get("comboTrees"),u=!1;(a||[]).forEach(function(t){u||(0,h.traverseTree)(t,function(t){if(u&&t.depth<=r.depth)return!1;if(r.id===t.id&&(u=!0),u){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(o=(o=o.concat(e.getNodes())).concat(e.getCombos()));}return!0;});});var c={};i.forEach(function(t){var e,i=t.getModel(),a=i.isVEdge,s=i.size,u=void 0===s?1:s;if(!t.isVisible()||a){var l=t.getSource(),f=t.getTarget(),d=null;if(l.getModel().id===r.id||o.includes(l)&&!o.includes(f)?(d=f,e=!1):(f.getModel().id===r.id||!o.includes(l)&&o.includes(f))&&(d=l,e=!0),d){if(a){n.removeItem(t,!1);return;}for(var h=d.getModel();!d.isVisible();){var g=h.parentId,p=h.comboId,v=g||p;if(!(d=n.findById(v))||!v)return;h=d.getModel();}var m=h.id,y=e?{source:m,target:r.id,size:u,isVEdge:!0}:{source:r.id,target:m,size:u,isVEdge:!0},b="".concat(y.source,"-").concat(y.target);if(c[b]){c[b].size+=u;return;}c[b]=y;}}}),this.addItems(Object.values(c).map(function(t){return{type:"vedge",model:t};}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:t});}},e.prototype.expandCombo=function(t,e){var n=this;if(void 0===e&&(e=!0),(0,s.isString)(t)&&(t=this.findById(t)),!t||t.getType&&"combo"!==t.getType()){console.warn("The combo to be collapsed does not exist!");return;}this.emit("beforecollapseexpandcombo",{action:"expand",item:t});var r=t.getModel();this.get("itemController").expandCombo(t,e),r.collapsed=!1;var i=this.getEdges().concat(this.get("vedges")),o=[],a=this.get("comboTrees"),u=!1;(a||[]).forEach(function(t){u||(0,h.traverseTree)(t,function(t){if(u&&t.depth<=r.depth)return!1;if(r.id===t.id&&(u=!0),u){var e=n.findById(t.id);e&&e.getType&&"combo"===e.getType()&&(o=(o=o.concat(e.getNodes())).concat(e.getCombos()));}return!0;});});var c={};i.forEach(function(t){if(!t.isVisible()||t.getModel().isVEdge){var e,i=t.getSource(),a=t.getTarget(),s=i.get("id"),u=a.get("id"),l=null;if(s===r.id||o.includes(i)&&!o.includes(a)?(l=a,e=!1):u===r.id||!o.includes(i)&&o.includes(a)?(l=i,e=!0):o.includes(i)&&o.includes(a)&&i.isVisible()&&a.isVisible()&&t.show(),l){var f=t.getModel(),d=f.isVEdge,h=f.size,g=void 0===h?1:h;if(d){n.removeItem(t,!1);return;}for(var p=l.getModel();!l.isVisible();){var v=p.parentId,m=p.comboId,y=v||m;if(!(l=n.findById(y))||!y)return;p=l.getModel();}for(var b=p.id,x=e?a:i,_=x.getModel();!x.isVisible();){var E=_.parentId,w=_.comboId,M=E||w;if(!(x=n.findById(M))||!M)return;if(_.comboId===r.id||_.parentId===r.id)break;_=x.getModel();}var C=_.id;if(b){var A=e?{source:b,target:C,isVEdge:!0,size:g}:{source:C,target:b,isVEdge:!0,size:g},S="".concat(A.source,"-").concat(A.target);if(c[S]){c[S].size+=g;return;}c[S]=A;}}}}),this.addItems(Object.values(c).map(function(t){return{type:"vedge",model:t};}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:t});},e.prototype.collapseExpandCombo=function(t,e){if(void 0===e&&(e=!0),(0,s.isString)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType())){for(var n=t.getModel(),r=this.findById(n.parentId);r;){var i=r.getModel();if(i.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),r=void 0;return;}r=this.findById(i.parentId);}n.collapsed?this.expandCombo(t,e):this.collapseCombo(t,e),this.updateCombo(t);}},e.prototype.getNeighbors=function(t,e){var n=t;return(0,s.isString)(t)&&(n=this.findById(t)),n.getNeighbors(e);},e.prototype.getNodeDegree=function(t,e,n){void 0===e&&(e=void 0),void 0===n&&(n=!1);var r=t;(0,s.isString)(t)&&(r=this.findById(t));var i=this.get("degrees");(!i||n)&&(i=(0,u.getDegree)(this.save()),this.set("degrees",i));var o=i[r.getID()],a=0;if(!o)return 0;switch(e){case"in":a=o.inDegree;break;case"out":a=o.outDegree;break;case"all":a=o;break;default:a=o.degree;}return a;},e.prototype.getUndoStack=function(){return this.undoStack;},e.prototype.getRedoStack=function(){return this.redoStack;},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null;},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}));},e.prototype.pushStack=function(t,e,n){if(void 0===t&&(t="update"),void 0===n&&(n="undo"),!this.get("enabledStack")){console.warn("\u8BF7\u5148\u542F\u7528 undo & redo \u529F\u80FD\uFF0C\u5728\u5B9E\u4F8B\u5316 Graph \u65F6\u5019\u914D\u7F6E enabledStack: true !");return;}var r=e?(0,s.clone)(e):{before:{},after:(0,s.clone)(this.save())};"redo"===n?this.redoStack.push({action:t,data:r}):this.undoStack.push({action:t,data:r}),this.emit("stackchange",{action:t,stackType:n,undoStack:this.undoStack,redoStack:this.redoStack});},e.prototype.getAdjMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix");return n&&t||(n=(0,u.getAdjMatrix)(this.save(),e),this.set("adjMatrix",n)),n;},e.prototype.getShortestPathMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix"),r=this.get("shortestPathMatrix");return n&&t||(n=(0,u.getAdjMatrix)(this.save(),e),this.set("adjMatrix",n)),r&&t||(r=(0,u.floydWarshall)(this.save(),e),this.set("shortestPathMatrix",r)),r;},e.prototype.on=function(e,n,r){return t.prototype.on.call(this,e,n,r);},e.prototype.destroy=function(){var t,e,n,r,i;this.emit("beforedestroy"),this.clear(),this.clearStack(),null===(t=this.get("itemController"))||void 0===t||t.destroy(),null===(e=this.get("modeController"))||void 0===e||e.destroy(),null===(n=this.get("viewController"))||void 0===n||n.destroy(),null===(r=this.get("stateController"))||void 0===r||r.destroy(),null===(i=this.get("canvas"))||void 0===i||i.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy");},e.prototype.createHull=function(t){if(!t.members||t.members.length<1){console.warn("Create hull failed! The members is empty.");return;}var e=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),(!e||e.get("destroyed"))&&((e=this.get("group").addGroup({id:"hullGroup"})).toBack(),this.set("hullGroup",e)),n[t.id])return console.warn("Existed hull id."),n[t.id];var r=e.addGroup({id:"".concat(t.id,"-container")}),o=new g.default(this,(0,i.__assign)((0,i.__assign)({},t),{group:r}));return n[o.id]=o,o;},e.prototype.getHulls=function(){return this.get("hullMap");},e.prototype.getHullById=function(t){return this.get("hullMap")[t];},e.prototype.removeHull=function(t){var e,n;n=(0,s.isString)(t)?this.getHullById(t):t,null===(e=this.get("hullMap"))||void 0===e||delete e[n.id],n.destroy();},e.prototype.removeHulls=function(){var t=this.getHulls();t&&Object.keys(t).length&&(Object.keys(t).forEach(function(e){t[e].destroy();}),this.set("hullMap",{}));},e;}(o.default);},eb70b9de:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("942b4eed")),i=function(t,e,n){for(var i=0,o=(0,r.default)(e)?e.split("."):e;t&&i<o.length;)t=t[o[i++]];return void 0===t||i<o.length?n:t;};},eb8c5eef:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r,i=n("6103548e"),o=(r=n("956a73c8"))&&r.__esModule?r:{default:r};e.default=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise(function(n,r){var a=new o.default;a.postMessage({_algorithmType:t,data:e}),a.onmessage=function(t){var e=t.data,o=e.data,s=e._algorithmType;i.MESSAGE.SUCCESS===s?n(o):r(),a.terminate();};});};};},ec76bab7:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("22b52967"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e;}return(0,i.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values;},e.prototype.scale=function(t){return this.values[0]!==t&&(0,o.isNumber)(t)?t:this.range[0];},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0];},e;}(r._(n("65691558")).default);},ecbe3b4d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0});var r=n("dfdb2ac4"),i=function(t,e,n,o,a,s,u){var c=t.children(u);if(!(null==c?void 0:c.length)){u!==e&&t.setEdge(e,u,{weight:0,minlen:n});return;}var l=(0,r.addBorderNode)(t,"_bt"),f=(0,r.addBorderNode)(t,"_bb"),d=t.node(u);t.setParent(l,u),d.borderTop=l,t.setParent(f,u),d.borderBottom=f,null==c||c.forEach(function(r){i(t,e,n,o,a,s,r);var c=t.node(r),d=c.borderTop?c.borderTop:r,h=c.borderBottom?c.borderBottom:r,g=c.borderTop?o:2*o,p=d!==h?1:a-s[u]+1;t.setEdge(l,d,{minlen:p,weight:g,nestingEdge:!0}),t.setEdge(h,f,{minlen:p,weight:g,nestingEdge:!0});}),t.parent(u)||t.setEdge(e,l,{weight:0,minlen:a+s[u]});},o=function(t){var e,n={},r=function(e,i){var o=t.children(e);null==o||o.forEach(function(t){return r(t,i+1);}),n[e]=i;};return null===(e=t.children())||void 0===e||e.forEach(function(t){return r(t,1);}),n;},a=function(t){var e=0;return t.edges().forEach(function(n){e+=t.edge(n).weight;}),e;};e.default={run:function(t){var e,n=(0,r.addDummyNode)(t,"root",{},"_root"),s=o(t),u=Math.max.apply(Math,Object.values(s));Math.abs(u)===1/0&&(u=1);var c=u-1,l=2*c+1;t.graph().nestingRoot=n,t.edges().forEach(function(e){t.edge(e).minlen*=l;});var f=a(t)+1;null===(e=t.children())||void 0===e||e.forEach(function(e){i(t,n,l,f,c,s,e);}),t.graph().nodeRankFactor=l;},cleanup:function(t){var e=t.graph();e.nestingRoot&&t.removeNode(e.nestingRoot),delete e.nestingRoot,t.edges().forEach(function(e){t.edge(e).nestingEdge&&t.removeEdgeObj(e);});}};},ecf73862:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(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;};},ed0b15cb:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("071f0c13")),o=r._(n("8b56e181")),a=function(t,e){var n=(0,o.default)(e),r=n.length;if((0,i.default)(t))return!r;for(var a=0;a<r;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1;}return!0;};},ed0d3524:function(t,e,n){"use strict";function r(t,e,n){var r=t[0],i=t[1];return[r+(e[0]-r)*n,i+(e[1]-i)*n];}n.d(e,"__esModule",{value:!0}),n.d(e,"midPoint",{enumerable:!0,get:function(){return r;}});},ed5297b5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r=n("22b52967"),i=function(){function t(t){this.arr=t;}return t.prototype.getArr=function(){return this.arr||[];},t.prototype.add=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null==r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]+r[o];return new t(i);}},t.prototype.subtract=function(e){var n,r=e.arr;if(!(null===(n=this.arr)||void 0===n?void 0:n.length))return new t(r);if(!(null==r?void 0:r.length))return new t(this.arr);if(this.arr.length===r.length){var i=[];for(var o in this.arr)i[o]=this.arr[o]-r[o];return new t(i);}},t.prototype.avg=function(e){var n=[];if(0!==e)for(var r in this.arr)n[r]=this.arr[r]/e;return new t(n);},t.prototype.negate=function(){var e=[];for(var n in this.arr)e[n]=-this.arr[n];return new t(e);},t.prototype.squareEuclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return r;}},t.prototype.euclideanDistance=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=Math.pow(this.arr[i]-t.arr[i],2);return Math.sqrt(r);}console.error("The two vectors are unequal in length.");},t.prototype.normalize=function(){var e=[],n=(0,r.clone)(this.arr);n.sort(function(t,e){return t-e;});var i=n[n.length-1],o=n[0];for(var a in this.arr)e[a]=(this.arr[a]-o)/(i-o);return new t(e);},t.prototype.norm2=function(){if(!(null===(t=this.arr)||void 0===t?void 0:t.length))return 0;var t,e=0;for(var n in this.arr)e+=Math.pow(this.arr[n],2);return Math.sqrt(e);},t.prototype.dot=function(t){var e,n=t.arr;if(!(null===(e=this.arr)||void 0===e?void 0:e.length)||!(null==n?void 0:n.length))return 0;if(this.arr.length===n.length){var r=0;for(var i in this.arr)r+=this.arr[i]*t.arr[i];return r;}console.error("The two vectors are unequal in length.");},t.prototype.equal=function(t){var e,n=t.arr;if((null===(e=this.arr)||void 0===e?void 0:e.length)!==(null==n?void 0:n.length))return!1;for(var r in this.arr)if(this.arr[r]!==n[r])return!1;return!0;},t;}();e.default=i;},ed66dedc:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{useIsomorphicLayoutEffect:function(){return o;},windowIsUndefined:function(){return i;}});var r=n("777fffbe")._(n("5b220c3d")),i=!("undefined"!=typeof window&&window.document&&window.document.createElement),o=i?r.default.useEffect:r.default.useLayoutEffect;},ed6ce11b:function(t,e,n){"use strict";function r(t){return(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;})(t);}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"GADDI",{enumerable:!0,get:function(){return m.default;}}),Object.defineProperty(e,"breadthFirstSearch",{enumerable:!0,get:function(){return o.default;}}),Object.defineProperty(e,"connectedComponent",{enumerable:!0,get:function(){return a.default;}}),Object.defineProperty(e,"depthFirstSearch",{enumerable:!0,get:function(){return c.default;}}),Object.defineProperty(e,"detectCycle",{enumerable:!0,get:function(){return u.default;}}),Object.defineProperty(e,"dijkstra",{enumerable:!0,get:function(){return l.default;}}),Object.defineProperty(e,"findAllPath",{enumerable:!0,get:function(){return f.findAllPath;}}),Object.defineProperty(e,"findShortestPath",{enumerable:!0,get:function(){return f.findShortestPath;}}),Object.defineProperty(e,"floydWarshall",{enumerable:!0,get:function(){return d.default;}}),Object.defineProperty(e,"getAdjMatrix",{enumerable:!0,get:function(){return i.default;}}),Object.defineProperty(e,"getDegree",{enumerable:!0,get:function(){return s.default;}}),Object.defineProperty(e,"getInDegree",{enumerable:!0,get:function(){return s.getInDegree;}}),Object.defineProperty(e,"getNeighbors",{enumerable:!0,get:function(){return y.getNeighbors;}}),Object.defineProperty(e,"getOutDegree",{enumerable:!0,get:function(){return s.getOutDegree;}}),Object.defineProperty(e,"labelPropagation",{enumerable:!0,get:function(){return h.default;}}),Object.defineProperty(e,"louvain",{enumerable:!0,get:function(){return g.default;}}),Object.defineProperty(e,"minimumSpanningTree",{enumerable:!0,get:function(){return p.default;}}),Object.defineProperty(e,"pageRank",{enumerable:!0,get:function(){return v.default;}});var i=x(n("f59804c5")),o=x(n("a87ceb6d")),a=x(n("3dbcbb94")),s=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=b(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a];}return i.default=t,n&&n.set(t,i),i;}(n("83469828")),u=x(n("30dd8503")),c=x(n("2ba22957")),l=x(n("e2fd234a")),f=n("cd2713ae"),d=x(n("fa411037")),h=x(n("fe0893d6")),g=x(n("ce8e694a")),p=x(n("950e9369")),v=x(n("2b26c989")),m=x(n("c0c2b5c7")),y=n("6a4ad838");function b(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(b=function(t){return t?n:e;})(t);}function x(t){return t&&t.__esModule?t:{default:t};}},ed978296:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return l;}});var r=n("777fffbe"),i=n("22b52967"),o=n("71975e07"),a=n("47c6e0b5"),s=r._(n("455d8214")),u=n("3b9ee2eb"),c=function(t,e,n){var r=[];return t===u.DistanceType.EuclideanDistance?e[n]:[];},l=function(t,e,n,r,l,f){void 0===e&&(e=3),void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===l&&(l=["id"]),void 0===f&&(f=u.DistanceType.EuclideanDistance);var d=t.nodes,h=void 0===d?[]:d,g=t.edges,p={clusters:[{id:"0",nodes:h}],clusterEdges:[]};if(f===u.DistanceType.EuclideanDistance&&!h.every(function(t){return t.hasOwnProperty(n);}))return p;var v=[],m=[];if(f===u.DistanceType.EuclideanDistance&&(v=(0,o.getAllProperties)(h,n),m=(0,a.oneHot)(v,r,l)),!m.length)return p;for(var y=(0,i.uniq)(m.map(function(t){return t.join("");})),b=Math.min(e,h.length,y.length),x=0;x<h.length;x++)h[x].originIndex=x;for(var _=[],E=[],w=[],x=0;x<b;x++)if(0===x){var M=Math.floor(Math.random()*h.length);f===u.DistanceType.EuclideanDistance?_[x]=m[M]:_[x]=[],E.push(M),w[x]=[h[M]],h[M].clusterId=String(x);}else{for(var C=-1/0,A=0,S=function(t){if(!E.includes(t)){for(var e=0,n=0;n<_.length;n++){var r=0;f===u.DistanceType.EuclideanDistance&&(r=(0,a.getDistance)(m[h[t].originIndex],_[n],f)),e+=r;}var o=e/_.length;o>C&&!_.find(function(e){return(0,i.isEqual)(e,c(f,m,h[t].originIndex));})&&(C=o,A=t);}},D=0;D<h.length;D++)S(D);_[x]=c(f,m,A),E.push(A),w[x]=[h[A]],h[A].clusterId=String(x);}for(var I=0;;){for(var x=0;x<h.length;x++){var T=0,k=1/0;if(!(0===I&&E.includes(x))){for(var F=0;F<_.length;F++){var N=0;f===u.DistanceType.EuclideanDistance&&(N=(0,a.getDistance)(m[x],_[F],f)),N<k&&(k=N,T=F);}if(void 0!==h[x].clusterId)for(var O=w[Number(h[x].clusterId)].length-1;O>=0;O--)w[Number(h[x].clusterId)][O].id===h[x].id&&w[Number(h[x].clusterId)].splice(O,1);h[x].clusterId=String(T),w[T].push(h[x]);}}for(var B=!1,x=0;x<w.length;x++){for(var P=w[x],L=new s.default([]),F=0;F<P.length;F++)L=L.add(new s.default(m[P[F].originIndex]));var j=L.avg(P.length);j.equal(new s.default(_[x]))||(B=!0,_[x]=j.getArr());}if(I++,h.every(function(t){return void 0!==t.clusterId;})&&B||I>=1e3)break;}var R=[],z={};return(void 0===g?[]:g).forEach(function(t){var e,n,r=t.source,i=t.target,o=null===(e=h.find(function(t){return t.id===r;}))||void 0===e?void 0:e.clusterId,a=null===(n=h.find(function(t){return t.id===i;}))||void 0===n?void 0:n.clusterId,s="".concat(o,"---").concat(a);if(z[s])z[s].count++;else{var u={source:o,target:a,count:1};z[s]=u,R.push(u);}}),{clusters:w,clusterEdges:R};};},ee36a3fc:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=r._(n("d744df48")),o=r._(n("8d2bc14d")),a=n("f29fe526"),s=function(t,e){var n=[],r=t.nodes,i=void 0===r?[]:r,s=t.edges,u=void 0===s?[]:s;if(0===i.length)return n;var c=i[0],l=new Set;l.add(c);var f=new o.default(function(t,n){return e?t.weight-n.weight:0;});for((0,a.getEdgesByNodeId)(c.id,u).forEach(function(t){f.insert(t);});!f.isEmpty();){var d=f.delMin(),h=d.source,g=d.target;!(l.has(h)&&l.has(g))&&(n.push(d),l.has(h)||(l.add(h),(0,a.getEdgesByNodeId)(h,u).forEach(function(t){f.insert(t);})),l.has(g)||(l.add(g),(0,a.getEdgesByNodeId)(g,u).forEach(function(t){f.insert(t);})));}return n;},u=function(t,e){var n=[],r=t.nodes,o=void 0===r?[]:r,a=t.edges;if(0===o.length)return n;var s=(void 0===a?[]:a).map(function(t){return t;});e&&s.sort(function(t,e){return t.weight-e.weight;});for(var u=new i.default(o.map(function(t){return t.id;}));s.length>0;){var c=s.shift(),l=c.source,f=c.target;u.connected(l,f)||(n.push(c),u.union(l,f));}return n;},c=function(t,e,n){return n?({prim:s,kruskal:u})[n](t,e):u(t,e);};},ee6934bf:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{calBase:function(){return i;},getLogPositiveMin:function(){return a;},log:function(){return o;}});var r=n("22b52967");function i(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t);}function o(t,e){return 1===t?1:Math.log(e)/Math.log(t);}function a(t,e,n){(0,r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return(0,r.each)(t,function(t){t>0&&t<i&&(i=t);}),i===n&&(i=n/e),i>1&&(i=1),i;}},ee85e949:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isForce",{enumerable:!0,get:function(){return r;}});var r=function(t){return"force"===t||"g6force"===t||"gForce"===t||"force2"===t;};},eefea704:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{BRIDGE_GRAPH_NAME:function(){return u;},GraphType:function(){return M;},HierarchyNodeType:function(){return C;},InclusionType:function(){return w;},LAYOUT_CONFIG:function(){return i;},NodeType:function(){return E;},ROOT_NAME:function(){return s;},buildGraph:function(){return ob;},flatGraph:function(){return ox;},getEdges:function(){return o_;},mergeConfig:function(){return o;}});let r=n("29cb47c1"),i={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function o(t={},e=i){var n,r,a,s;let u=JSON.parse(JSON.stringify(e)),c=(null===(n=null==t?void 0:t.graph)||void 0===n?void 0:n.meta)||{},l=(null===(r=null==t?void 0:t.subScene)||void 0===r?void 0:r.meta)||{},f=(null===(a=null==t?void 0:t.nodeSize)||void 0===a?void 0:a.meta)||{},d=(null===(s=null==t?void 0:t.nodeSize)||void 0===s?void 0:s.node)||{},h=u.nodeSize.bridge;return{graph:{meta:Object.assign(u.graph.meta,c)},subScene:{meta:Object.assign(u.subScene.meta,l)},nodeSize:{meta:Object.assign(u.nodeSize.meta,f),node:Object.assign(u.nodeSize.node,d),bridge:h}};}function a(t){return`\u{25EC}${t}\u{25EC}`;}let s=a("ROOT"),u=a("BRIDGE_GRAPH");(y=E||(E={}))[y.META=0]="META",y[y.NODE=1]="NODE",y[y.BRIDGE=2]="BRIDGE",(b=w||(w={}))[b.INCLUDE=0]="INCLUDE",b[b.EXCLUDE=1]="EXCLUDE",b[b.UNSPECIFIED=2]="UNSPECIFIED",(x=M||(M={}))[x.META=0]="META",x[x.CORE=1]="CORE",x[x.BRIDGE=2]="BRIDGE",(_=C||(C={}))[_.META=0]="META",_[_.OP=1]="OP",_[_.SERIES=2]="SERIES";var c,l,f,d,h,g,p,v,m,y,b,x,_,E,w,M,C,A,S,D,I,T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{};function k(t,e){return t(e={exports:{}},e.exports),e.exports;}var F=function(t,e){return t===e||t!=t&&e!=e;},N=function(t,e){for(var n=t.length;n--;)if(F(t[n][0],e))return n;return -1;},O=Array.prototype.splice;function B(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}B.prototype.clear=function(){this.__data__=[],this.size=0;},B.prototype.delete=function(t){var e=this.__data__,n=N(e,t);return!(n<0)&&(n==e.length-1?e.pop():O.call(e,n,1),--this.size,!0);},B.prototype.get=function(t){var e=this.__data__,n=N(e,t);return n<0?void 0:e[n][1];},B.prototype.has=function(t){return N(this.__data__,t)>-1;},B.prototype.set=function(t,e){var n=this.__data__,r=N(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this;};var P="object"==typeof T&&T&&T.Object===Object&&T,L="object"==typeof self&&self&&self.Object===Object&&self,j=P||L||Function("return this")(),R=j.Symbol,z=Object.prototype,G=z.hasOwnProperty,Y=z.toString,X=R?R.toStringTag:void 0,U=function(t){var e=G.call(t,X),n=t[X];try{t[X]=void 0;var r=!0;}catch(t){}var i=Y.call(t);return r&&(e?t[X]=n:delete t[X]),i;},H=Object.prototype.toString,W=R?R.toStringTag:void 0,V=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":W&&W in Object(t)?U(t):H.call(t);},q=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e);},Z=function(t){if(!q(t))return!1;var e=V(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e;},J=j["__core-js_shared__"],K=(A=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",Q=Function.prototype.toString,$=function(t){if(null!=t){try{return Q.call(t);}catch(t){}try{return t+"";}catch(t){}}return"";},tt=/^\[object .+?Constructor\]$/,te=Object.prototype,tn=Function.prototype.toString,tr=te.hasOwnProperty,ti=RegExp("^"+tn.call(tr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),to=function(t,e){var n,r=null==t?void 0:t[e];return!(!q(n=r)||K&&K in n)&&(Z(n)?ti:tt).test($(n))?r:void 0;},ta=to(j,"Map"),ts=to(Object,"create"),tu=Object.prototype.hasOwnProperty,tc=Object.prototype.hasOwnProperty;function tl(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}tl.prototype.clear=function(){this.__data__=ts?ts(null):{},this.size=0;},tl.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e;},tl.prototype.get=function(t){var e=this.__data__;if(ts){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n;}return tu.call(e,t)?e[t]:void 0;},tl.prototype.has=function(t){var e=this.__data__;return ts?void 0!==e[t]:tc.call(e,t);},tl.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ts&&void 0===e?"__lodash_hash_undefined__":e,this;};var tf=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t;},td=function(t,e){var n=t.__data__;return tf(e)?n["string"==typeof e?"string":"hash"]:n.map;};function th(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}function tg(t){var e=this.__data__=new B(t);this.size=e.size;}th.prototype.clear=function(){this.size=0,this.__data__={hash:new tl,map:new(ta||B),string:new tl};},th.prototype.delete=function(t){var e=td(this,t).delete(t);return this.size-=e?1:0,e;},th.prototype.get=function(t){return td(this,t).get(t);},th.prototype.has=function(t){return td(this,t).has(t);},th.prototype.set=function(t,e){var n=td(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this;},tg.prototype.clear=function(){this.__data__=new B,this.size=0;},tg.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n;},tg.prototype.get=function(t){return this.__data__.get(t);},tg.prototype.has=function(t){return this.__data__.has(t);},tg.prototype.set=function(t,e){var n=this.__data__;if(n instanceof B){var r=n.__data__;if(!ta||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new th(r);}return n.set(t,e),this.size=n.size,this;};var tp=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t;},tv=function(){try{var t=to(Object,"defineProperty");return t({},"",{}),t;}catch(t){}}(),tm=function(t,e,n){"__proto__"==e&&tv?tv(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n;},ty=Object.prototype.hasOwnProperty,tb=function(t,e,n){var r=t[e];ty.call(t,e)&&F(r,n)&&(void 0!==n||e in t)||tm(t,e,n);},tx=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?tm(n,s,u):tb(n,s,u);}return n;},t_=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r;},tE=function(t){return null!=t&&"object"==typeof t;},tw=function(t){return tE(t)&&"[object Arguments]"==V(t);},tM=Object.prototype,tC=tM.hasOwnProperty,tA=tM.propertyIsEnumerable,tS=tw(function(){return arguments;}())?tw:function(t){return tE(t)&&tC.call(t,"callee")&&!tA.call(t,"callee");},tD=Array.isArray,tI=function(){return!1;},tT=k(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?j.Buffer:void 0,o=(i?i.isBuffer:void 0)||tI;t.exports=o;}),tk=/^(?:0|[1-9]\d*)$/,tF=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&tk.test(t))&&t>-1&&t%1==0&&t<e;},tN=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991;},tO={};tO["[object Float32Array]"]=tO["[object Float64Array]"]=tO["[object Int8Array]"]=tO["[object Int16Array]"]=tO["[object Int32Array]"]=tO["[object Uint8Array]"]=tO["[object Uint8ClampedArray]"]=tO["[object Uint16Array]"]=tO["[object Uint32Array]"]=!0,tO["[object Arguments]"]=tO["[object Array]"]=tO["[object ArrayBuffer]"]=tO["[object Boolean]"]=tO["[object DataView]"]=tO["[object Date]"]=tO["[object Error]"]=tO["[object Function]"]=tO["[object Map]"]=tO["[object Number]"]=tO["[object Object]"]=tO["[object RegExp]"]=tO["[object Set]"]=tO["[object String]"]=tO["[object WeakMap]"]=!1;var tB=function(t){return function(e){return t(e);};},tP=k(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&P.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util");}catch(t){}}();t.exports=o;}),tL=tP&&tP.isTypedArray,tj=tL?tB(tL):function(t){return tE(t)&&tN(t.length)&&!!tO[V(t)];},tR=Object.prototype.hasOwnProperty,tz=function(t,e){var n=tD(t),r=!n&&tS(t),i=!n&&!r&&tT(t),o=!n&&!r&&!i&&tj(t),a=n||r||i||o,s=a?t_(t.length,String):[],u=s.length;for(var c in t)!e&&!tR.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||tF(c,u))||s.push(c);return s;},tG=Object.prototype,tY=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||tG);},tX=function(t,e){return function(n){return t(e(n));};},tU=tX(Object.keys,Object),tH=Object.prototype.hasOwnProperty,tW=function(t){if(!tY(t))return tU(t);var e=[];for(var n in Object(t))tH.call(t,n)&&"constructor"!=n&&e.push(n);return e;},tV=function(t){return null!=t&&tN(t.length)&&!Z(t);},tq=function(t){return tV(t)?tz(t):tW(t);},tZ=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e;},tJ=Object.prototype.hasOwnProperty,tK=function(t){if(!q(t))return tZ(t);var e=tY(t),n=[];for(var r in t)("constructor"!=r||!e&&tJ.call(t,r))&&n.push(r);return n;},tQ=function(t){return tV(t)?tz(t,!0):tK(t);},t$=k(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?j.Buffer:void 0,o=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=o?o(n):new t.constructor(n);return t.copy(r),r;};}),t0=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e;},t1=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a);}return o;},t2=function(){return[];},t3=Object.prototype.propertyIsEnumerable,t5=Object.getOwnPropertySymbols,t7=t5?function(t){return null==t?[]:t1(t5(t=Object(t)),function(e){return t3.call(t,e);});}:t2,t6=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t;},t4=tX(Object.getPrototypeOf,Object),t8=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)t6(e,t7(t)),t=t4(t);return e;}:t2,t9=function(t,e,n){var r=e(t);return tD(t)?r:t6(r,n(t));},et=function(t){return t9(t,tq,t7);},ee=to(j,"DataView"),en=to(j,"Promise"),er=to(j,"Set"),ei=to(j,"WeakMap"),eo=$(ee),ea=$(ta),es=$(en),eu=$(er),ec=$(ei),el=V;(ee&&"[object DataView]"!=el(new ee(new ArrayBuffer(1)))||ta&&"[object Map]"!=el(new ta)||en&&"[object Promise]"!=el(en.resolve())||er&&"[object Set]"!=el(new er)||ei&&"[object WeakMap]"!=el(new ei))&&(el=function(t){var e=V(t),n="[object Object]"==e?t.constructor:void 0,r=n?$(n):"";if(r)switch(r){case eo:return"[object DataView]";case ea:return"[object Map]";case es:return"[object Promise]";case eu:return"[object Set]";case ec:return"[object WeakMap]";}return e;});var ef=el,ed=Object.prototype.hasOwnProperty,eh=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ed.call(t,"index")&&(n.index=t.index,n.input=t.input),n;},eg=j.Uint8Array,ep=function(t){var e=new t.constructor(t.byteLength);return new eg(e).set(new eg(t)),e;},ev=function(t,e){var n=e?ep(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength);},em=/\w*$/,ey=function(t){var e=new t.constructor(t.source,em.exec(t));return e.lastIndex=t.lastIndex,e;},eb=R?R.prototype:void 0,ex=eb?eb.valueOf:void 0,e_=function(t,e){var n=e?ep(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length);},eE=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return ep(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return ev(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return e_(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return ey(t);case"[object Symbol]":return ex?Object(ex.call(t)):{};}},ew=Object.create,eM=function(){function t(){}return function(e){if(!q(e))return{};if(ew)return ew(e);t.prototype=e;var n=new t;return t.prototype=void 0,n;};}(),eC=function(t){return"function"!=typeof t.constructor||tY(t)?{}:eM(t4(t));},eA=tP&&tP.isMap,eS=eA?tB(eA):function(t){return tE(t)&&"[object Map]"==ef(t);},eD=tP&&tP.isSet,eI=eD?tB(eD):function(t){return tE(t)&&"[object Set]"==ef(t);},eT={};eT["[object Arguments]"]=eT["[object Array]"]=eT["[object ArrayBuffer]"]=eT["[object DataView]"]=eT["[object Boolean]"]=eT["[object Date]"]=eT["[object Float32Array]"]=eT["[object Float64Array]"]=eT["[object Int8Array]"]=eT["[object Int16Array]"]=eT["[object Int32Array]"]=eT["[object Map]"]=eT["[object Number]"]=eT["[object Object]"]=eT["[object RegExp]"]=eT["[object Set]"]=eT["[object String]"]=eT["[object Symbol]"]=eT["[object Uint8Array]"]=eT["[object Uint8ClampedArray]"]=eT["[object Uint16Array]"]=eT["[object Uint32Array]"]=!0,eT["[object Error]"]=eT["[object Function]"]=eT["[object WeakMap]"]=!1;var ek=function t(e,n,r,i,o,a){var s,u=1&n,c=2&n,l=4&n;if(r&&(s=o?r(e,i,o,a):r(e)),void 0!==s)return s;if(!q(e))return e;var f=tD(e);if(f){if(s=eh(e),!u)return t0(e,s);}else{var d,h,g,p,v=ef(e),m="[object Function]"==v||"[object GeneratorFunction]"==v;if(tT(e))return t$(e,u);if("[object Object]"==v||"[object Arguments]"==v||m&&!o){if(s=c||m?{}:eC(e),!u)return c?(h=(d=s)&&tx(e,tQ(e),d),tx(e,t8(e),h)):(p=(g=s)&&tx(e,tq(e),g),tx(e,t7(e),p));}else{if(!eT[v])return o?e:{};s=eE(e,v,u);}}a||(a=new tg);var y=a.get(e);if(y)return y;a.set(e,s),eI(e)?e.forEach(function(i){s.add(t(i,n,r,i,e,a));}):eS(e)&&e.forEach(function(i,o){s.set(o,t(i,n,r,o,e,a));});var b=f?void 0:(l?c?function(t){return t9(t,tQ,t8);}:et:c?tQ:tq)(e);return tp(b||e,function(i,o){b&&(i=e[o=i]),tb(s,o,t(i,n,r,o,e,a));}),s;},eF=function(t){return function(){return t;};},eN=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),a=o.length;a--;){var s=o[++r];if(!1===e(i[s],s,i))break;}return t;},eO=function(t,e){return t&&eN(t,e,tq);},eB=function(t,e){if(null==t)return t;if(!tV(t))return eO(t,e);for(var n=t.length,r=-1,i=Object(t);(c?r--:++r<n)&&!1!==e(i[r],r,i););return t;},eP=function(t){return t;},eL=function(t){return"function"==typeof t?t:eP;},ej=function(t,e){return(tD(t)?tp:eB)(t,eL(e));},eR=function(t,e){var n=[];return eB(t,function(t,r,i){e(t,r,i)&&n.push(t);}),n;};function ez(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new th;++e<n;)this.add(t[e]);}ez.prototype.add=ez.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this;},ez.prototype.has=function(t){return this.__data__.has(t);};var eG=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1;},eY=function(t,e){return t.has(e);},eX=function(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var f=-1,d=!0,h=2&n?new ez:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var g=t[f],p=e[f];if(r)var v=a?r(p,g,f,e,t,o):r(g,p,f,t,e,o);if(void 0!==v){if(v)continue;d=!1;break;}if(h){if(!eG(e,function(t,e){if(!eY(h,e)&&(g===t||i(g,t,n,r,o)))return h.push(e);})){d=!1;break;}}else if(g!==p&&!i(g,p,n,r,o)){d=!1;break;}}return o.delete(t),o.delete(e),d;},eU=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t];}),n;},eH=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t;}),n;},eW=R?R.prototype:void 0,eV=eW?eW.valueOf:void 0,eq=function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new eg(t),new eg(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return F(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=eU;case"[object Set]":var u=1&r;if(s||(s=eH),t.size!=e.size&&!u)break;var c=a.get(t);if(c)return c==e;r|=2,a.set(t,e);var l=eX(s(t),s(e),r,i,o,a);return a.delete(t),l;case"[object Symbol]":if(eV)return eV.call(t)==eV.call(e);}return!1;},eZ=Object.prototype.hasOwnProperty,eJ=function(t,e,n,r,i,o){var a=1&n,s=et(t),u=s.length;if(u!=et(e).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in e:eZ.call(e,l)))return!1;}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var h=!0;o.set(t,e),o.set(e,t);for(var g=a;++c<u;){var p=t[l=s[c]],v=e[l];if(r)var m=a?r(v,p,l,e,t,o):r(p,v,l,t,e,o);if(!(void 0===m?p===v||i(p,v,n,r,o):m)){h=!1;break;}g||(g="constructor"==l);}if(h&&!g){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1);}return o.delete(t),o.delete(e),h;},eK=Object.prototype.hasOwnProperty,eQ=function(t,e,n,r,i,o){var a=tD(t),s=tD(e),u=a?"[object Array]":ef(t),c=s?"[object Array]":ef(e),l="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),f="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),d=u==c;if(d&&tT(t)){if(!tT(e))return!1;a=!0,l=!1;}if(d&&!l)return o||(o=new tg),a||tj(t)?eX(t,e,n,r,i,o):eq(t,e,u,n,r,i,o);if(!(1&n)){var h=l&&eK.call(t,"__wrapped__"),g=f&&eK.call(e,"__wrapped__");if(h||g){var p=h?t.value():t,v=g?e.value():e;return o||(o=new tg),i(p,v,n,r,o);}}return!!d&&(o||(o=new tg),eJ(t,e,n,r,i,o));},e$=function t(e,n,r,i,o){return e===n||(null!=e&&null!=n&&(tE(e)||tE(n))?eQ(e,n,r,i,t,o):e!=e&&n!=n);},e0=function(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1;}for(;++i<o;){var u=(s=n[i])[0],c=t[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in t))return!1;}else{var f=new tg;if(r)var d=r(c,l,u,t,e,f);if(!(void 0===d?e$(l,c,3,r,f):d))return!1;}}return!0;},e1=function(t){return t==t&&!q(t);},e2=function(t){for(var e=tq(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,e1(i)];}return e;},e3=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n));};},e5=function(t){var e=e2(t);return 1==e.length&&e[0][2]?e3(e[0][0],e[0][1]):function(n){return n===t||e0(n,t,e);};},e7=function(t){return"symbol"==typeof t||tE(t)&&"[object Symbol]"==V(t);},e6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e4=/^\w*$/,e8=function(t,e){if(tD(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!e7(t))||e4.test(t)||!e6.test(t)||null!=e&&t in Object(e);};function e9(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a;};return n.cache=new(e9.Cache||th),n;}e9.Cache=th;var nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/\\(\\)?/g,nn=(f=(l=e9(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(nt,function(t,n,r,i){e.push(r?i.replace(ne,"$1"):n||t);}),e;},function(t){return 500===f.size&&f.clear(),t;})).cache,l),nr=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i;},ni=R?R.prototype:void 0,no=ni?ni.toString:void 0,na=function t(e){if("string"==typeof e)return e;if(tD(e))return nr(e,t)+"";if(e7(e))return no?no.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n;},ns=function(t){return null==t?"":na(t);},nu=function(t,e){return tD(t)?t:e8(t,e)?[t]:nn(ns(t));},nc=function(t){if("string"==typeof t||e7(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e;},nl=function(t,e){for(var n=0,r=(e=nu(e,t)).length;null!=t&&n<r;)t=t[nc(e[n++])];return n&&n==r?t:void 0;},nf=function(t,e,n){var r=null==t?void 0:nl(t,e);return void 0===r?n:r;},nd=function(t,e){return null!=t&&e in Object(t);},nh=function(t,e,n){for(var r=-1,i=(e=nu(e,t)).length,o=!1;++r<i;){var a=nc(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a];}return o||++r!=i?o:!!(i=null==t?0:t.length)&&tN(i)&&tF(a,i)&&(tD(t)||tS(t));},ng=function(t,e){return null!=t&&nh(t,e,nd);},np=function(t){return function(e){return null==e?void 0:e[t];};},nv=function(t){var e,n,r;return"function"==typeof t?t:null==t?eP:"object"==typeof t?tD(t)?(e=t[0],n=t[1],e8(e)&&e1(n)?e3(nc(e),n):function(t){var r=nf(t,e);return void 0===r&&r===n?ng(t,e):e$(n,r,3);}):e5(t):e8(r=t)?np(nc(r)):function(t){return nl(t,r);};},nm=function(t,e){return(tD(t)?t1:eR)(t,nv(e));},ny=Object.prototype.hasOwnProperty,nb=function(t,e){return null!=t&&ny.call(t,e);},nx=function(t,e){return null!=t&&nh(t,e,nb);},n_=Object.prototype.hasOwnProperty,nE=function(t){return void 0===t;},nw=function(t,e){var n=-1,r=tV(t)?Array(t.length):[];return eB(t,function(t,i,o){r[++n]=e(t,i,o);}),r;},nM=function(t,e){return(tD(t)?nr:nw)(t,nv(e));},nC=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n;},nA=function(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o);}),n;},nS=function(t,e,n){var r=tD(t)?nC:nA,i=arguments.length<3;return r(t,nv(e),n,i,eB);},nD=np("length"),nI=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),nT="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nk="\ud83c[\udffb-\udfff]",nF="[^\ud800-\udfff]",nN="(?:\ud83c[\udde6-\uddff]){2}",nO="[\ud800-\udbff][\udc00-\udfff]",nB="(?:"+nT+"|"+nk+")?",nP="[\\ufe0e\\ufe0f]?"+nB+("(?:\\u200d(?:"+[nF,nN,nO].join("|"))+")[\\ufe0e\\ufe0f]?"+nB+")*",nL=RegExp(nk+"(?="+nk+")|(?:"+[nF+nT+"?",nT,nN,nO,"[\ud800-\udfff]"].join("|")+")"+nP,"g"),nj=function(t){for(var e=nL.lastIndex=0;nL.test(t);)++e;return e;},nR=R?R.isConcatSpreadable:void 0,nz=function(t){return tD(t)||tS(t)||!!(nR&&t&&t[nR]);},nG=function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=nz),o||(o=[]);++a<s;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,i,o):t6(o,u):i||(o[o.length]=u);}return o;},nY=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2]);}return t.apply(e,n);},nX=Math.max,nU=function(t,e,n){return e=nX(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=nX(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),nY(t,this,s);};},nH=Date.now,nW=(d=tv?function(t,e){return tv(t,"toString",{configurable:!0,enumerable:!1,value:eF(e),writable:!0});}:eP,h=0,g=0,function(){var t=nH(),e=16-(t-g);if(g=t,e>0){if(++h>=800)return arguments[0];}else h=0;return d.apply(void 0,arguments);}),nV=function(t,e){return nW(nU(t,e,eP),t+"");},nq=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return -1;},nZ=function(t){return t!=t;},nJ=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return -1;},nK=function(t,e){return!!(null==t?0:t.length)&&(e==e?nJ(t,e,0):nq(t,nZ,0))>-1;},nQ=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1;},n$=er&&1/eH(new er([,-0]))[1]==1/0?function(t){return new er(t);}:function(){},n0=function(t,e,n){var r=-1,i=nK,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=nQ;else if(o>=200){var c=e?null:n$(t);if(c)return eH(c);a=!1,i=eY,u=new ez;}else u=e?[]:s;t:for(;++r<o;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue t;e&&u.push(f),s.push(l);}else i(u,f,n)||(u!==s&&u.push(f),s.push(l));}return s;},n1=function(t){return tE(t)&&tV(t);},n2=nV(function(t){return n0(nG(t,1,n1,!0));}),n3=function(t){return null==t?[]:nr(tq(t),function(e){return t[e];});};try{S={clone:function(t){return ek(t,4);},constant:eF,each:ej,filter:nm,has:nx,isArray:tD,isEmpty:function(t){if(null==t)return!0;if(tV(t)&&(tD(t)||"string"==typeof t||"function"==typeof t.splice||tT(t)||tj(t)||tS(t)))return!t.length;var e=ef(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(tY(t))return!tW(t).length;for(var n in t)if(n_.call(t,n))return!1;return!0;},isFunction:Z,isUndefined:nE,keys:tq,map:nM,reduce:nS,size:function(t){if(null==t)return 0;if(tV(t)){var e;return"string"==typeof t||!tD(t)&&tE(t)&&"[object String]"==V(t)?(e=t,nI.test(e)?nj(e):nD(e)):t.length;}var n=ef(t);return"[object Map]"==n||"[object Set]"==n?t.size:tW(t).length;},transform:function(t,e,n){var r=tD(t),i=r||tT(t)||tj(t);if(e=nv(e),null==n){var o=t&&t.constructor;n=i?r?new o:[]:q(t)&&Z(o)?eM(t4(t)):{};}return(i?tp:eO)(t,function(t,r,i){return e(n,t,r,i);}),n;},union:n2,values:n3};}catch(t){}S||(S=window._);var n5=S;function n7(t){this._isDirected=!n5.has(t,"directed")||t.directed,this._isMultigraph=!!n5.has(t,"multigraph")&&t.multigraph,this._isCompound=!!n5.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=n5.constant(void 0),this._defaultEdgeLabelFn=n5.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={};}function n6(t,e){t[e]?t[e]++:t[e]=1;}function n4(t,e){--t[e]||delete t[e];}function n8(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a;}return i+"\x01"+o+"\x01"+(n5.isUndefined(r)?"\0":r);}function n9(t,e){return n8(t,e.v,e.w,e.name);}function rt(){this._arr=[],this._keyIndices={};}n7.prototype._nodeCount=0,n7.prototype._edgeCount=0,n7.prototype.isDirected=function(){return this._isDirected;},n7.prototype.isMultigraph=function(){return this._isMultigraph;},n7.prototype.isCompound=function(){return this._isCompound;},n7.prototype.setGraph=function(t){return this._label=t,this;},n7.prototype.graph=function(){return this._label;},n7.prototype.setDefaultNodeLabel=function(t){return n5.isFunction(t)||(t=n5.constant(t)),this._defaultNodeLabelFn=t,this;},n7.prototype.nodeCount=function(){return this._nodeCount;},n7.prototype.nodes=function(){return n5.keys(this._nodes);},n7.prototype.sources=function(){var t=this;return n5.filter(this.nodes(),function(e){return n5.isEmpty(t._in[e]);});},n7.prototype.sinks=function(){var t=this;return n5.filter(this.nodes(),function(e){return n5.isEmpty(t._out[e]);});},n7.prototype.setNodes=function(t,e){var n=arguments,r=this;return n5.each(t,function(t){n.length>1?r.setNode(t,e):r.setNode(t);}),this;},n7.prototype.setNode=function(t,e){return n5.has(this._nodes,t)?arguments.length>1&&(this._nodes[t]=e):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this;},n7.prototype.node=function(t){return this._nodes[t];},n7.prototype.hasNode=function(t){return n5.has(this._nodes,t);},n7.prototype.removeNode=function(t){var e=this;if(n5.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],n5.each(this.children(t),function(t){e.setParent(t);}),delete this._children[t]),n5.each(n5.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],n5.each(n5.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount;}return this;},n7.prototype.setParent=function(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(n5.isUndefined(e))e="\0";else{for(var n=e+="";!n5.isUndefined(n);n=this.parent(n))if(n===t)throw 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;},n7.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t];},n7.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e;}},n7.prototype.children=function(t){if(n5.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return n5.keys(e);}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[];}},n7.prototype.predecessors=function(t){var e=this._preds[t];if(e)return n5.keys(e);},n7.prototype.successors=function(t){var e=this._sucs[t];if(e)return n5.keys(e);},n7.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return n5.union(e,this.successors(t));},n7.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length;},n7.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;n5.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n);}),n5.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t));});var r={};return this._isCompound&&n5.each(e.nodes(),function(t){e.setParent(t,function t(i){var o=n.parent(i);return void 0===o||e.hasNode(o)?(r[i]=o,o):o in r?r[o]:t(o);}(t));}),e;},n7.prototype.setDefaultEdgeLabel=function(t){return n5.isFunction(t)||(t=n5.constant(t)),this._defaultEdgeLabelFn=t,this;},n7.prototype.edgeCount=function(){return this._edgeCount;},n7.prototype.edges=function(){return n5.values(this._edgeObjs);},n7.prototype.setPath=function(t,e){var n=this,r=arguments;return n5.reduce(t,function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i;}),this;},n7.prototype.setEdge=function(){var t,e,n,r,i=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2==arguments.length&&(r=arguments[1],i=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,n5.isUndefined(n)||(n=""+n);var a=n8(this._isDirected,t,e,n);if(n5.has(this._edgeLabels,a))return i&&(this._edgeLabels[a]=r),this;if(!n5.isUndefined(n)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[a]=i?r:this._defaultEdgeLabelFn(t,e,n);var s=function(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a;}var s={v:i,w:o};return r&&(s.name=r),s;}(this._isDirected,t,e,n);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[a]=s,n6(this._preds[e],t),n6(this._sucs[t],e),this._in[e][a]=s,this._out[t][a]=s,this._edgeCount++,this;},n7.prototype.edge=function(t,e,n){var r=1==arguments.length?n9(this._isDirected,arguments[0]):n8(this._isDirected,t,e,n);return this._edgeLabels[r];},n7.prototype.hasEdge=function(t,e,n){var r=1==arguments.length?n9(this._isDirected,arguments[0]):n8(this._isDirected,t,e,n);return n5.has(this._edgeLabels,r);},n7.prototype.removeEdge=function(t,e,n){var r=1==arguments.length?n9(this._isDirected,arguments[0]):n8(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],n4(this._preds[e],t),n4(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this;},n7.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=n5.values(n);return e?n5.filter(r,function(t){return t.v===e;}):r;}},n7.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=n5.values(n);return e?n5.filter(r,function(t){return t.w===e;}):r;}},n7.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e));},rt.prototype.size=function(){return this._arr.length;},rt.prototype.keys=function(){return this._arr.map(function(t){return t.key;});},rt.prototype.has=function(t){return n5.has(this._keyIndices,t);},rt.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority;},rt.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key;},rt.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!n5.has(n,t)){var r=this._arr,i=r.length;return n[t]=i,r.push({key:t,priority:e}),this._decrease(i),!0;}return!1;},rt.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;},rt.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw 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);},rt.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)));},rt.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e;},rt.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e;};var re=function(t,e,n,r){return function(t,e,n,r){var i,o,a={},s=new rt,u=function(t){var e=t.v!==i?t.v:t.w,r=a[e],u=n(t),c=o.distance+u;if(u<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+u);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(e,c));};for(t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;a[t]={distance:n},s.add(t,n);});s.size()>0&&(o=a[i=s.removeMin()]).distance!==Number.POSITIVE_INFINITY;)r(i).forEach(u);return a;}(t,String(e),n||rn,r||function(e){return t.outEdges(e);});},rn=n5.constant(1),rr=function(t){var e=0,n=[],r={},i=[];return t.nodes().forEach(function(o){n5.has(r,o)||function o(a){var s=r[a]={onStack:!0,lowlink:e,index:e++};if(n.push(a),t.successors(a).forEach(function(t){n5.has(r,t)?r[t].onStack&&(s.lowlink=Math.min(s.lowlink,r[t].index)):(o(t),s.lowlink=Math.min(s.lowlink,r[t].lowlink));}),s.lowlink===s.index){var u,c=[];do r[u=n.pop()].onStack=!1,c.push(u);while(a!==u)i.push(c);}}(o);}),i;},ri=n5.constant(1),ro=ra;function ra(t){var e={},n={},r=[];if(n5.each(t.sinks(),function i(o){if(n5.has(n,o))throw new rs;n5.has(e,o)||(n[o]=!0,e[o]=!0,n5.each(t.predecessors(o),i),delete n[o],r.push(o));}),n5.size(e)!==t.nodeCount())throw new rs;return r;}function rs(){}ra.CycleException=rs,rs.prototype=Error();var ru=function(t,e,n){n5.isArray(e)||(e=[e]);var r=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],o={};return n5.each(e,function(e){if(!t.hasNode(e))throw Error("Graph does not have node: "+e);(function t(e,n,r,i,o,a){n5.has(i,n)||(i[n]=!0,r||a.push(n),n5.each(o(n),function(n){t(e,n,r,i,o,a);}),r&&a.push(n));})(t,e,"post"===n,o,r,i);}),i;};try{D={Graph:n7,json:{write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:n5.map(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return n5.isUndefined(n)||(i.value=n),n5.isUndefined(r)||(i.parent=r),i;}),edges:n5.map(t.edges(),function(e){var n=t.edge(e),r={v:e.v,w:e.w};return n5.isUndefined(e.name)||(r.name=e.name),n5.isUndefined(n)||(r.value=n),r;})};return n5.isUndefined(t.graph())||(e.value=n5.clone(t.graph())),e;},read:function(t){var e=new n7(t.options).setGraph(t.value);return n5.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent);}),n5.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value);}),e;}},alg:{components:function(t){var e,n={},r=[];return n5.each(t.nodes(),function(i){e=[],function r(i){n5.has(n,i)||(n[i]=!0,e.push(i),n5.each(t.successors(i),r),n5.each(t.predecessors(i),r));}(i),e.length&&r.push(e);}),r;},dijkstra:re,dijkstraAll:function(t,e,n){return n5.transform(t.nodes(),function(r,i){r[i]=re(t,i,e,n);},{});},findCycles:function(t){return n5.filter(rr(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0]);});},floydWarshall:function(t,e,n){var r,i,o,a;return r=e||ri,i=n||function(e){return t.outEdges(e);},o={},(a=t.nodes()).forEach(function(t){o[t]={},o[t][t]={distance:0},a.forEach(function(e){t!==e&&(o[t][e]={distance:Number.POSITIVE_INFINITY});}),i(t).forEach(function(e){var n=e.v===t?e.w:e.v,i=r(e);o[t][n]={distance:i,predecessor:t};});}),a.forEach(function(t){var e=o[t];a.forEach(function(n){var r=o[n];a.forEach(function(n){var i=r[t],o=e[n],a=r[n],s=i.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor);});});}),o;},isAcyclic:function(t){try{ro(t);}catch(t){if(t instanceof ro.CycleException)return!1;throw t;}return!0;},postorder:function(t,e){return ru(t,e,"post");},preorder:function(t,e){return ru(t,e,"pre");},prim:function(t,e){var n,r=new n7,i={},o=new rt;function a(t){var r=t.v===n?t.w:t.v,a=o.priority(r);if(void 0!==a){var s=e(t);s<a&&(i[r]=n,o.decrease(r,s));}}if(0===t.nodeCount())return r;n5.each(t.nodes(),function(t){o.add(t,Number.POSITIVE_INFINITY),r.setNode(t);}),o.decrease(t.nodes()[0],0);for(var s=!1;o.size()>0;){if(n=o.removeMin(),n5.has(i,n))r.setEdge(n,i[n]);else{if(s)throw Error("Input graph is not connected: "+t);s=!0;}t.nodeEdges(n).forEach(a);}return r;},tarjan:rr,topsort:ro},version:"2.1.8"};}catch(t){}D||(D=window.graphlib);var rc=D,rl=function(t,e,n){if(!q(n))return!1;var r=typeof e;return!!("number"==r?tV(n)&&tF(e,n.length):"string"==r&&e in n)&&F(n[e],t);},rf=Object.prototype,rd=rf.hasOwnProperty,rh=nV(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&rl(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=tQ(o),s=-1,u=a.length;++s<u;){var c=a[s],l=t[c];(void 0===l||F(l,rf[c])&&!rd.call(t,c))&&(t[c]=o[c]);}return t;}),rg=/^\s+|\s+$/g,rp=/^[-+]0x[0-9a-f]+$/i,rv=/^0b[01]+$/i,rm=/^0o[0-7]+$/i,ry=parseInt,rb=function(t){if("number"==typeof t)return t;if(e7(t))return NaN;if(q(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=q(e)?e+"":e;}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(rg,"");var n=rv.test(t);return n||rm.test(t)?ry(t.slice(2),n?2:8):rp.test(t)?NaN:+t;},rx=function(t){return t?1/0===(t=rb(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0;},r_=function(t){var e=rx(t),n=e%1;return e==e?n?e-n:e:0;},rE=Math.max,rw=(p=function(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var i=null==n?0:r_(n);return i<0&&(i=rE(r+i,0)),nq(t,nv(e),i);},function(t,e,n){var r=Object(t);if(!tV(t)){var i=nv(e);t=tq(t),e=function(t){return i(r[t],t,r);};}var o=p(t,e,n);return o>-1?r[i?t[o]:o]:void 0;}),rM=function(t){return(null==t?0:t.length)?nG(t,1):[];},rC=function(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!e7(a):n(a,s)))var s=a,u=o;}return u;},rA=function(t,e){return t>e;},rS=function(t,e,n){(void 0===n||F(t[e],n))&&(void 0!==n||e in t)||tm(t,e,n);},rD=Object.prototype,rI=Function.prototype.toString,rT=rD.hasOwnProperty,rk=rI.call(Object),rF=function(t){if(!tE(t)||"[object Object]"!=V(t))return!1;var e=t4(t);if(null===e)return!0;var n=rT.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&rI.call(n)==rk;},rN=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e];},rO=function(t,e,n,r,i,o,a){var s=rN(t,n),u=rN(e,n),c=a.get(u);if(c)rS(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,f=void 0===l;if(f){var d=tD(u),h=!d&&tT(u),g=!d&&!h&&tj(u);l=u,d||h||g?tD(s)?l=s:n1(s)?l=t0(s):h?(f=!1,l=t$(u,!0)):g?(f=!1,l=e_(u,!0)):l=[]:rF(u)||tS(u)?(l=s,tS(s)?l=tx(s,tQ(s)):q(s)&&!Z(s)||(l=eC(u))):f=!1;}f&&(a.set(u,l),i(l,u,r,o,a),a.delete(u)),rS(t,n,l);}},rB=function t(e,n,r,i,o){e!==n&&eN(n,function(a,s){if(o||(o=new tg),q(a))rO(e,n,s,r,t,i,o);else{var u=i?i(rN(e,s),a,s+"",e,n,o):void 0;void 0===u&&(u=a),rS(e,s,u);}},tQ);},rP=(v=function(t,e,n){rB(t,e,n);},nV(function(t,e){var n=-1,r=e.length,i=r>1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=v.length>3&&"function"==typeof i?(r--,i):void 0,o&&rl(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var a=e[n];a&&v(t,a,n,i);}return t;})),rL=function(t,e){return t<e;},rj=function(t,e,n,r){if(!q(t))return t;for(var i=-1,o=(e=nu(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=nc(e[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(i!=a){var l=s[u];void 0===(c=r?r(l,u,s):void 0)&&(c=q(l)?l:tF(e[i+1])?[]:{});}tb(s,u,c),s=s[u];}return t;},rR=function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=nl(t,a);n(s,a)&&rj(o,nu(a,t),s);}return o;},rz=nW(nU(m=function(t,e){return null==t?{}:rR(t,e,function(e,n){return ng(t,n);});},void 0,rM),m+""),rG=Math.ceil,rY=Math.max,rX=function(t,e,n,r){for(var i=-1,o=rY(rG((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a;},rU=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t;},rH=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=e7(t),a=void 0!==e,s=null===e,u=e==e,c=e7(e);if(!s&&!c&&!o&&t>e||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&t<e||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return -1;}return 0;},rW=function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var u=rH(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1);}return t.index-e.index;},rV=function(t,e,n){e=e.length?nr(e,function(t){return tD(t)?function(e){return nl(e,1===t.length?t[0]:t);}:t;}):[eP];var r=-1;return e=nr(e,tB(nv)),rU(nw(t,function(t,n,i){return{criteria:nr(e,function(e){return e(t);}),index:++r,value:t};}),function(t,e){return rW(t,e,n);});},rq=nV(function(t,e){if(null==t)return[];var n=e.length;return n>1&&rl(t,e[0],e[1])?e=[]:n>2&&rl(e[0],e[1],e[2])&&(e=[e[0]]),rV(t,nG(e,1),[]);}),rZ=0,rJ=function(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s);}return a;};try{I={cloneDeep:function(t){return ek(t,5);},constant:eF,defaults:rh,each:ej,filter:nm,find:rw,flatten:rM,forEach:ej,forIn:function(t,e){return null==t?t:eN(t,eL(e),tQ);},has:nx,isUndefined:nE,last:function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0;},map:nM,mapValues:function(t,e){var n={};return e=nv(e),eO(t,function(t,r,i){tm(n,r,e(t,r,i));}),n;},max:function(t){return t&&t.length?rC(t,eP,rA):void 0;},merge:rP,min:function(t){return t&&t.length?rC(t,eP,rL):void 0;},minBy:function(t,e){return t&&t.length?rC(t,nv(e),rL):void 0;},now:function(){return j.Date.now();},pick:rz,range:function(t,e,n){return n&&"number"!=typeof n&&rl(t,e,n)&&(e=n=void 0),t=rx(t),void 0===e?(e=t,t=0):e=rx(e),n=void 0===n?t<e?1:-1:rx(n),rX(t,e,n,void 0);},reduce:nS,sortBy:rq,uniqueId:function(t){var e=++rZ;return ns(t)+e;},values:n3,zipObject:function(t,e){return rJ(t||[],e||[],tb);}};}catch(t){}I||(I=window._);var rK=I;function rQ(){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 r0(t,e){if("_next"!==t&&"_prev"!==t)return e;}rQ.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r$(e),e;},rQ.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;},rQ.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r0)),n=n._prev;return"["+t.join(", ")+"]";};var r1=rc.Graph,r2=function(t,e){if(1>=t.nodeCount())return[];var n,r,i,o,a,s,u=(n=e||r3,r=new r1,i=0,o=0,rK.forEach(t.nodes(),function(t){r.setNode(t,{v:t,in:0,out:0});}),rK.forEach(t.edges(),function(t){var e=r.edge(t.v,t.w)||0,a=n(t);r.setEdge(t.v,t.w,e+a),o=Math.max(o,r.node(t.v).out+=a),i=Math.max(i,r.node(t.w).in+=a);}),a=rK.range(o+i+3).map(function(){return new rQ;}),s=i+1,rK.forEach(r.nodes(),function(t){r7(a,s,r.node(t));}),{graph:r,buckets:a,zeroIdx:s}),c=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)r5(t,e,n,r);for(;r=o.dequeue();)r5(t,e,n,r);if(t.nodeCount()){for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(r5(t,e,n,r,!0));break;}}}return i;}(u.graph,u.buckets,u.zeroIdx);return rK.flatten(rK.map(c,function(e){return t.outEdges(e.v,e.w);}),!0);},r3=rK.constant(1);function r5(t,e,n,r,i){var o=i?[]:void 0;return rK.forEach(t.inEdges(r.v),function(r){var a=t.edge(r),s=t.node(r.v);i&&o.push({v:r.v,w:r.w}),s.out-=a,r7(e,n,s);}),rK.forEach(t.outEdges(r.v),function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,r7(e,n,a);}),t.removeNode(r.v),o;}function r7(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);}var r6=function(t){var e,n,r,i="greedy"===t.graph().acyclicer?r2(t,function(e){return t.edge(e).weight;}):(e=[],n={},r={},rK.forEach(t.nodes(),function i(o){rK.has(r,o)||(r[o]=!0,n[o]=!0,rK.forEach(t.outEdges(o),function(t){rK.has(n,t.w)?e.push(t):i(t.w);}),delete n[o]);}),e);rK.forEach(i,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,rK.uniqueId("rev"));});},r4=function(t){rK.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);}});},r8=rc.Graph,r9={addDummyNode:it,simplify:function(t){var e=(new r8).setGraph(t.graph());return rK.forEach(t.nodes(),function(n){e.setNode(n,t.node(n));}),rK.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)});}),e;},asNonCompoundGraph:function(t){var e=new r8({multigraph:t.isMultigraph()}).setGraph(t.graph());return rK.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n));}),rK.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n));}),e;},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r};},buildLayerMatrix:function(t){var e=rK.map(rK.range(ie(t)+1),function(){return[];});return rK.forEach(t.nodes(),function(n){var r=t.node(n),i=r.rank;rK.isUndefined(i)||(e[i][r.order]=n);}),e;},normalizeRanks:function(t){var e=rK.min(rK.map(t.nodes(),function(e){return t.node(e).rank;}));rK.forEach(t.nodes(),function(n){var r=t.node(n);rK.has(r,"rank")&&(r.rank-=e);});},removeEmptyRanks:function(t){var e=rK.min(rK.map(t.nodes(),function(e){return t.node(e).rank;})),n=[];rK.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r);});var r=0,i=t.graph().nodeRankFactor;rK.forEach(n,function(e,n){rK.isUndefined(e)&&n%i!=0?--r:r&&rK.forEach(e,function(e){t.node(e).rank+=r;});});},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),it(t,"border",i,e);},maxRank:ie,partition:function(t,e){var n={lhs:[],rhs:[]};return rK.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t);}),n;},time:function(t,e){var n=rK.now();try{return e();}finally{console.log(t+" time: "+(rK.now()-n)+"ms");}},notime:function(t,e){return e();}};function it(t,e,n,r){var i;do i=rK.uniqueId(r);while(t.hasNode(i))return n.dummy=e,t.setNode(i,n),i;}function ie(t){return rK.max(rK.map(t.nodes(),function(e){var n=t.node(e).rank;if(!rK.isUndefined(n))return n;}));}var ir=function(t){t.graph().dummyChains=[],rK.forEach(t.edges(),function(e){!function(t,e){var n,r,i,o=e.v,a=t.node(o).rank,s=e.w,u=t.node(s).rank,c=e.name,l=t.edge(e),f=l.labelRank;if(u!==a+1){for(t.removeEdge(e),i=0,++a;a<u;++i,++a)l.points=[],r={width:0,height:0,edgeLabel:l,edgeObj:e,rank:a},n=r9.addDummyNode(t,"edge",r,"_d"),a===f&&(r.width=l.width,r.height=l.height,r.dummy="edge-label",r.labelpos=l.labelpos),t.setEdge(o,n,{weight:l.weight},c),0===i&&t.graph().dummyChains.push(n),o=n;t.setEdge(o,s,{weight:l.weight},c);}}(t,e);});},ii=function(t){rK.forEach(t.graph().dummyChains,function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e);});},io=function(t){var e={};rK.forEach(t.sources(),function n(r){var i=t.node(r);if(rK.has(e,r))return i.rank;e[r]=!0;var o=rK.min(rK.map(t.outEdges(r),function(e){return n(e.w)-t.edge(e).minlen;}));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),i.rank=o;});},ia=function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen;},is=rc.Graph,iu=function(t){var e,n,r=new is({directed:!1}),i=t.nodes()[0],o=t.nodeCount();for(r.setNode(i,{});rK.forEach(r.nodes(),function e(n){rK.forEach(t.nodeEdges(n),function(i){var o=i.v,a=n===o?i.w:o;r.hasNode(a)||ia(t,i)||(r.setNode(a,{}),r.setEdge(n,a,{}),e(a));});}),r.nodeCount()<o;)e=function(t,e){return rK.minBy(e.edges(),function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return ia(e,n);});}(r,t),n=r.hasNode(e.v)?ia(t,e):-ia(t,e),function(t,e,n){rK.forEach(t.nodes(),function(t){e.node(t).rank+=n;});}(r,t,n);return r;},ic=rc.alg.preorder,il=rc.alg.postorder,id=r9.simplify;function ih(t){io(t=id(t));var e,n=iu(t);for(iv(n),ig(n,t);e=im(n);)ib(n,t,e,iy(n,t,e));}function ig(t,e){var n=il(t,t.nodes());n=n.slice(0,n.length-1),rK.forEach(n,function(n){var r;r=t.node(n).parent,t.edge(n,r).cutvalue=ip(t,e,n);});}function ip(t,e,n){var r=t.node(n).parent,i=!0,o=e.edge(n,r),a=0;return o||(i=!1,o=e.edge(r,n)),a=o.weight,rK.forEach(e.nodeEdges(n),function(o){var s=o.v===n,u=s?o.w:o.v;if(u!==r){var c=s===i,l=e.edge(o).weight;if(a+=c?l:-l,t.hasEdge(n,u)){var f=t.edge(n,u).cutvalue;a+=c?-f:f;}}}),a;}function iv(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,n,r,i,o){var a=r,s=e.node(i);return n[i]=!0,rK.forEach(e.neighbors(i),function(o){rK.has(n,o)||(r=t(e,n,r,o,i));}),s.low=a,s.lim=r++,o?s.parent=o:delete s.parent,r;}(t,{},1,e);}function im(t){return rK.find(t.edges(),function(e){return t.edge(e).cutvalue<0;});}function iy(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var o=t.node(r),a=t.node(i),s=o,u=!1;o.lim>a.lim&&(s=a,u=!0);var c=rK.filter(e.edges(),function(e){return u===ix(t,t.node(e.v),s)&&u!==ix(t,t.node(e.w),s);});return rK.minBy(c,function(t){return ia(e,t);});}function ib(t,e,n,r){var i,o,a=n.v,s=n.w;t.removeEdge(a,s),t.setEdge(r.v,r.w,{}),iv(t),ig(t,e),i=rK.find(t.nodes(),function(t){return!e.node(t).parent;}),o=(o=ic(t,i)).slice(1),rK.forEach(o,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen);});}function ix(t,e,n){return n.low<=e.lim&&e.lim<=n.lim;}ih.initLowLimValues=iv,ih.initCutValues=ig,ih.calcCutValue=ip,ih.leaveEdge=im,ih.enterEdge=iy,ih.exchangeEdges=ib;var i_=function(t){switch(t.graph().ranker){case"network-simplex":default:ih(t);break;case"tight-tree":io(t),iu(t);break;case"longest-path":iE(t);}},iE=io,iw=function(t){var e,n,r=(e={},n=0,rK.forEach(t.children(),function r(i){var o=n;rK.forEach(t.children(i),r),e[i]={low:o,lim:n++};}),e);rK.forEach(t.graph().dummyChains,function(e){for(var n=t.node(e),i=n.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do a.push(i=t.parent(i));while(i&&(e[i].low>u||c>e[i].lim))for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o};}(t,r,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;e!==i.w;){if(n=t.node(e),l){for(;(c=a[u])!==s&&t.node(c).maxRank<n.rank;)u++;c===s&&(l=!1);}if(!l){for(;u<a.length-1&&t.node(c=a[u+1]).minRank<=n.rank;)u++;c=a[u];}t.setParent(e,c),e=t.successors(e)[0];}});},iM=function(t){var e,n=r9.addDummyNode(t,"root",{},"_root"),r=(e={},rK.forEach(t.children(),function(n){(function n(r,i){var o=t.children(r);o&&o.length&&rK.forEach(o,function(t){n(t,i+1);}),e[r]=i;})(n,1);}),e),i=rK.max(rK.values(r))-1,o=2*i+1;t.graph().nestingRoot=n,rK.forEach(t.edges(),function(e){t.edge(e).minlen*=o;});var a=rK.reduce(t.edges(),function(e,n){return e+t.edge(n).weight;},0)+1;rK.forEach(t.children(),function(e){(function t(e,n,r,i,o,a,s){var u=e.children(s);if(u.length){var c=r9.addBorderNode(e,"_bt"),l=r9.addBorderNode(e,"_bb"),f=e.node(s);e.setParent(c,s),f.borderTop=c,e.setParent(l,s),f.borderBottom=l,rK.forEach(u,function(u){t(e,n,r,i,o,a,u);var f=e.node(u),d=f.borderTop?f.borderTop:u,h=f.borderBottom?f.borderBottom:u,g=f.borderTop?i:2*i,p=d!==h?1:o-a[s]+1;e.setEdge(c,d,{weight:g,minlen:p,nestingEdge:!0}),e.setEdge(h,l,{weight:g,minlen:p,nestingEdge:!0});}),e.parent(s)||e.setEdge(n,c,{weight:0,minlen:o+a[s]});}else s!==n&&e.setEdge(n,s,{weight:0,minlen:r});})(t,n,o,a,i,r,e);}),t.graph().nodeRankFactor=o;},iC=function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,rK.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e);});},iA=function(t){rK.forEach(t.children(),function e(n){var r=t.children(n),i=t.node(n);if(r.length&&rK.forEach(r,e),rK.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)iS(t,"borderLeft","_bl",n,i,o),iS(t,"borderRight","_br",n,i,o);}});};function iS(t,e,n,r,i,o){var a=i[e][o-1],s=r9.addDummyNode(t,"border",{width:0,height:0,rank:o,borderType:e},n);i[e][o]=s,t.setParent(s,r),a&&t.setEdge(a,s,{weight:1});}var iD=function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||iT(t);},iI=function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||(rK.forEach(t.nodes(),function(e){iF(t.node(e));}),rK.forEach(t.edges(),function(e){var n=t.edge(e);rK.forEach(n.points,iF),rK.has(n,"y")&&iF(n);})),"lr"!==e&&"rl"!==e||(rK.forEach(t.nodes(),function(e){iN(t.node(e));}),rK.forEach(t.edges(),function(e){var n=t.edge(e);rK.forEach(n.points,iN),rK.has(n,"x")&&iN(n);}),iT(t));};function iT(t){rK.forEach(t.nodes(),function(e){ik(t.node(e));}),rK.forEach(t.edges(),function(e){ik(t.edge(e));});}function ik(t){var e=t.width;t.width=t.height,t.height=e;}function iF(t){t.y=-t.y;}function iN(t){var e=t.x;t.x=t.y,t.y=e;}var iO=function(t){var e={},n=rK.filter(t.nodes(),function(e){return!t.children(e).length;}),r=rK.max(rK.map(n,function(e){return t.node(e).rank;})),i=rK.map(rK.range(r+1),function(){return[];}),o=rK.sortBy(n,function(e){return t.node(e).rank;});return rK.forEach(o,function n(r){rK.has(e,r)||(e[r]=!0,i[t.node(r).rank].push(r),rK.forEach(t.successors(r),n));}),i;},iB=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=function(t,e,n){for(var r=rK.zipObject(n,rK.map(n,function(t,e){return e;})),i=rK.flatten(rK.map(e,function(e){return rK.sortBy(rK.map(t.outEdges(e),function(e){return{pos:r[e.w],weight:t.edge(e).weight};}),"pos");}),!0),o=1;o<n.length;)o<<=1;var a=2*o-1;o-=1;var s=rK.map(Array(a),function(){return 0;}),u=0;return rK.forEach(i.forEach(function(t){var e=t.pos+o;s[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=s[e+1]),s[e=e-1>>1]+=t.weight;u+=t.weight*n;})),u;}(t,e[r-1],e[r]);return n;},iP=function(t,e){var n={};return rK.forEach(t,function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};rK.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight);}),rK.forEach(e.edges(),function(t){var e=n[t.v],r=n[t.w];rK.isUndefined(e)||rK.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]));}),function(t){for(var e=[];t.length;){var n=t.pop();e.push(n),rK.forEach(n.in.reverse(),function(t){return function(e){var n,r;e.merged||(rK.isUndefined(e.barycenter)||rK.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(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);};}(n)),rK.forEach(n.out,function(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n);};}(n));}return rK.map(rK.filter(e,function(t){return!t.merged;}),function(t){return rK.pick(t,["vs","i","barycenter","weight"]);});}(rK.filter(n,function(t){return!t.indegree;}));},iL=function(t,e){var n,r=r9.partition(t,function(t){return rK.has(t,"barycenter");}),i=r.lhs,o=rK.sortBy(r.rhs,function(t){return-t.i;}),a=[],s=0,u=0,c=0;i.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i;})),c=ij(a,o,c),rK.forEach(i,function(t){c+=t.vs.length,a.push(t.vs),s+=t.barycenter*t.weight,u+=t.weight,c=ij(a,o,c);});var l={vs:rK.flatten(a,!0)};return u&&(l.barycenter=s/u,l.weight=u),l;};function ij(t,e,n){for(var r;e.length&&(r=rK.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n;}var iR=function t(e,n,r,i){var o,a=e.children(n),s=e.node(n),u=s?s.borderLeft:void 0,c=s?s.borderRight:void 0,l={};u&&(a=rK.filter(a,function(t){return t!==u&&t!==c;}));var f=(o=a,rK.map(o,function(t){var n=e.inEdges(t);if(n.length){var r=rK.reduce(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight};},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight};}return{v:t};}));rK.forEach(f,function(n){if(e.children(n.v).length){var o=t(e,n.v,r,i);l[n.v]=o,rK.has(o,"barycenter")&&(rK.isUndefined(n.barycenter)?(n.barycenter=o.barycenter,n.weight=o.weight):(n.barycenter=(n.barycenter*n.weight+o.barycenter*o.weight)/(n.weight+o.weight),n.weight+=o.weight));}});var d=iP(f,r);rK.forEach(d,function(t){t.vs=rK.flatten(t.vs.map(function(t){return l[t]?l[t].vs:t;}),!0);});var h=iL(d,i);if(u&&(h.vs=rK.flatten([u,h.vs,c],!0),e.predecessors(u).length)){var g=e.node(e.predecessors(u)[0]),p=e.node(e.predecessors(c)[0]);rK.has(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+g.order+p.order)/(h.weight+2),h.weight+=2;}return h;},iz=rc.Graph,iG=function(t,e,n){var r=function(t){for(var e;t.hasNode(e=rK.uniqueId("_root")););return e;}(t),i=new iz({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(e){return t.node(e);});return rK.forEach(t.nodes(),function(o){var a=t.node(o),s=t.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,s||r),rK.forEach(t[n](o),function(e){var n=e.v===o?e.w:e.v,r=i.edge(n,o),a=rK.isUndefined(r)?0:r.weight;i.setEdge(n,o,{weight:t.edge(e).weight+a});}),rK.has(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}));}),i;},iY=function(t,e,n){var r,i={};rK.forEach(n,function(n){for(var o,a,s=t.parent(n);s;){if((o=t.parent(s))?(a=i[o],i[o]=s):(a=r,r=s),a&&a!==s)return void e.setEdge(a,s);s=o;}});},iX=rc.Graph,iU=function(t){var e=r9.maxRank(t),n=iH(t,rK.range(1,e+1),"inEdges"),r=iH(t,rK.range(e-1,-1,-1),"outEdges"),i=iO(t);iW(t,i);for(var o,a=Number.POSITIVE_INFINITY,s=0,u=0;u<4;++s,++u){(function(t,e){var n=new iX;rK.forEach(t,function(t){var r=t.graph().root,i=iR(t,r,n,e);rK.forEach(i.vs,function(e,n){t.node(e).order=n;}),iY(t,n,i.vs);});})(s%2?n:r,s%4>=2),i=r9.buildLayerMatrix(t);var c=iB(t,i);c<a&&(u=0,o=rK.cloneDeep(i),a=c);}iW(t,o);};function iH(t,e,n){return rK.map(e,function(e){return iG(t,e,n);});}function iW(t,e){rK.forEach(e,function(e){rK.forEach(e,function(e,n){t.node(e).order=n;});});}var iV=rc.Graph;function iq(t,e,n){if(e>n){var r=e;e=n,n=r;}var i=t[e];i||(t[e]=i={}),i[n]=!0;}var iZ=function(t){var e,n,r,i,o,a,s=r9.buildLayerMatrix(t),u=rK.merge((o={},rK.reduce(s,function(e,n){var r=0,i=0,a=e.length,s=rK.last(n);return rK.forEach(n,function(e,u){var c=function(t,e){if(t.node(e).dummy)return rK.find(t.predecessors(e),function(e){return t.node(e).dummy;});}(t,e),l=c?t.node(c).order:a;(c||e===s)&&(rK.forEach(n.slice(i,u+1),function(e){rK.forEach(t.predecessors(e),function(n){var i=t.node(n),a=i.order;!(a<r||l<a)||i.dummy&&t.node(e).dummy||iq(o,n,e);});}),i=u+1,r=l);}),n;}),o),function(t,e){var n={};function r(e,r,i,o,a){var s;rK.forEach(rK.range(r,i),function(r){s=e[r],t.node(s).dummy&&rK.forEach(t.predecessors(s),function(e){var r=t.node(e);r.dummy&&(r.order<o||r.order>a)&&iq(n,e,s);});});}return rK.reduce(e,function(e,n){var i,o=-1,a=0;return rK.forEach(n,function(s,u){if("border"===t.node(s).dummy){var c=t.predecessors(s);c.length&&(i=t.node(c[0]).order,r(n,a,u,o,i),a=u,o=i);}r(n,a,n.length,i,e.length);}),n;}),n;}(t,s)),c={};rK.forEach(["u","d"],function(e){a="u"===e?s:rK.values(s).reverse(),rK.forEach(["l","r"],function(n){"r"===n&&(a=rK.map(a,function(t){return rK.values(t).reverse();}));var r,i,o,s,l=("u"===e?t.predecessors:t.successors).bind(t),f=(r=a,i={},o={},s={},rK.forEach(r,function(t){rK.forEach(t,function(t,e){i[t]=t,o[t]=t,s[t]=e;});}),rK.forEach(r,function(t){var e=-1;rK.forEach(t,function(t){var n=l(t);if(n.length)for(var r=((n=rK.sortBy(n,function(t){return s[t];})).length-1)/2,a=Math.floor(r),c=Math.ceil(r);a<=c;++a){var f=n[a];o[t]===t&&e<s[f]&&!function(t,e,n){if(e>n){var r=e;e=n,n=r;}return rK.has(t[e],n);}(u,t,f)&&(o[f]=t,o[t]=i[t]=i[f],e=s[f]);}});}),{root:i,align:o}),d=function(t,e,n,r,i){var o,a,s,u,c,l={},f=(s=new iV,o=(u=t.graph()).nodesep,a=u.edgesep,c=function(t,e,n){var r,s,u=t.node(e),c=t.node(n);if(s=0+u.width/2,rK.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":r=-u.width/2;break;case"r":r=u.width/2;}if(r&&(s+=i?r:-r),r=0,s+=(u.dummy?a:o)/2+(c.dummy?a:o)/2+c.width/2,rK.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":r=c.width/2;break;case"r":r=-c.width/2;}return r&&(s+=i?r:-r),r=0,s;},rK.forEach(e,function(e){var r;rK.forEach(e,function(e){var i=n[e];if(s.setNode(i),r){var o=n[r],a=s.edge(o,i);s.setEdge(o,i,Math.max(c(t,e,r),a||0));}r=e;});}),s),d=i?"borderLeft":"borderRight";function h(t,e){for(var n=f.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop();}return h(function(t){l[t]=f.inEdges(t).reduce(function(t,e){return Math.max(t,l[e.v]+f.edge(e));},0);},f.predecessors.bind(f)),h(function(e){var n=f.outEdges(e).reduce(function(t,e){return Math.min(t,l[e.w]-f.edge(e));},Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==d&&(l[e]=Math.max(l[e],n));},f.successors.bind(f)),rK.forEach(r,function(t){l[t]=l[n[t]];}),l;}(t,a,f.root,f.align,"r"===n);"r"===n&&(d=rK.mapValues(d,function(t){return-t;})),c[e+n]=d;});});var l=rK.minBy(rK.values(c),function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return rK.forIn(e,function(e,i){var o=t.node(i).width/2;n=Math.max(e+o,n),r=Math.min(e-o,r);}),n-r;});return e=rK.values(l),n=rK.min(e),r=rK.max(e),rK.forEach(["u","d"],function(t){rK.forEach(["l","r"],function(e){var i,o=t+e,a=c[o];if(a!==l){var s=rK.values(a);(i="l"===e?n-rK.min(s):r-rK.max(s))&&(c[o]=rK.mapValues(a,function(t){return t+i;}));}});}),i=t.graph().align,rK.mapValues(c.ul,function(t,e){if(i)return c[i.toLowerCase()][e];var n=rK.sortBy(rK.map(c,e));return(n[1]+n[2])/2;});},iJ=function(t){var e,n,r,i;e=t=r9.asNonCompoundGraph(t),n=r9.buildLayerMatrix(e),r=e.graph().ranksep,i=0,rK.forEach(n,function(t){var n=rK.max(rK.map(t,function(t){return e.node(t).height;}));rK.forEach(t,function(t){e.node(t).y=i+n/2;}),i+=n+r;}),rK.forEach(iZ(t),function(e,n){t.node(n).x=e;});},iK=r9.normalizeRanks,iQ=r9.removeEmptyRanks,i$=rc.Graph,i0=["nodesep","edgesep","ranksep","marginx","marginy"],i1={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},i2=["acyclicer","ranker","rankdir","align"],i3=["width","height"],i5={width:0,height:0},i7=["minlen","weight","width","height","labeloffset"],i6={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},i4=["labelpos"];function i8(t,e){return rK.mapValues(rK.pick(t,e),Number);}function i9(t){var e={};return rK.forEach(t,function(t,n){e[n.toLowerCase()]=t;}),e;}var ot=rc.Graph,oe={graphlib:rc,layout:function(t,e){var n=e&&e.debugTiming?r9.time:r9.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){var e,n;return e=new i$({multigraph:!0,compound:!0}),n=i9(t.graph()),e.setGraph(rK.merge({},i1,i8(n,i0),rK.pick(n,i2))),rK.forEach(t.nodes(),function(n){var r=i9(t.node(n));e.setNode(n,rK.defaults(i8(r,i3),i5)),e.setParent(n,t.parent(n));}),rK.forEach(t.edges(),function(n){var r=i9(t.edge(n));e.setEdge(n,rK.merge({},i6,i8(r,i7),rK.pick(r,i4)));}),e;});n(" runLayout",function(){n(" makeSpaceForEdgeLabels",function(){var t;t=e.graph(),t.ranksep/=2,rK.forEach(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset);});}),n(" removeSelfEdges",function(){rK.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t);}});}),n(" acyclic",function(){r6(e);}),n(" nestingGraph.run",function(){iM(e);}),n(" rank",function(){i_(r9.asNonCompoundGraph(e));}),n(" injectEdgeLabelProxies",function(){rK.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};r9.addDummyNode(e,"edge-proxy",i,"_ep");}});}),n(" removeEmptyRanks",function(){iQ(e);}),n(" nestingGraph.cleanup",function(){iC(e);}),n(" normalizeRanks",function(){iK(e);}),n(" assignRankMinMax",function(){var t;t=0,rK.forEach(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=rK.max(t,r.maxRank));}),e.graph().maxRank=t;}),n(" removeEdgeLabelProxies",function(){rK.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t));});}),n(" normalize.run",function(){ir(e);}),n(" parentDummyChains",function(){iw(e);}),n(" addBorderSegments",function(){iA(e);}),n(" order",function(){iU(e);}),n(" insertSelfEdges",function(){var t;t=r9.buildLayerMatrix(e),rK.forEach(t,function(t){var n=0;rK.forEach(t,function(t,r){var i=e.node(t);i.order=r+n,rK.forEach(i.selfEdges,function(t){r9.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},"_se");}),delete i.selfEdges;});});}),n(" adjustCoordinateSystem",function(){iD(e);}),n(" position",function(){iJ(e);}),n(" positionSelfEdges",function(){rK.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y;}});}),n(" removeBorderNodes",function(){rK.forEach(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),o=e.node(rK.last(n.borderLeft)),a=e.node(rK.last(n.borderRight));n.width=Math.abs(a.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2;}}),rK.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t);});}),n(" normalize.undo",function(){ii(e);}),n(" fixupEdgeLabelCoords",function(){rK.forEach(e.edges(),function(t){var n=e.edge(t);if(rK.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;}});}),n(" undoCoordinateSystem",function(){iI(e);}),n(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,o=t.graph(),a=o.marginx||0,s=o.marginy||0;function u(t){var o=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,o-s/2),n=Math.max(n,o+s/2),r=Math.min(r,a-u/2),i=Math.max(i,a+u/2);}rK.forEach(t.nodes(),function(e){u(t.node(e));}),rK.forEach(t.edges(),function(e){var n=t.edge(e);rK.has(n,"x")&&u(n);}),e-=a,r-=s,rK.forEach(t.nodes(),function(n){var i=t.node(n);i.x-=e,i.y-=r;}),rK.forEach(t.edges(),function(n){var i=t.edge(n);rK.forEach(i.points,function(t){t.x-=e,t.y-=r;}),rK.has(i,"x")&&(i.x-=e),rK.has(i,"y")&&(i.y-=r);}),o.width=n-e+a,o.height=i-r+s;}(e);}),n(" assignNodeIntersects",function(){rK.forEach(e.edges(),function(t){var n,r,i=e.edge(t),o=e.node(t.v),a=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(r9.intersectRect(o,n)),i.points.push(r9.intersectRect(a,r));});}),n(" reversePoints",function(){rK.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse();});}),n(" acyclic.undo",function(){r4(e);});}),n(" updateInputGraph",function(){rK.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));}),rK.forEach(t.edges(),function(n){var r=t.edge(n),i=e.edge(n);r.points=i.points,rK.has(i,"x")&&(r.x=i.x,r.y=i.y);}),t.graph().width=e.graph().width,t.graph().height=e.graph().height;});});},debug:{debugOrdering:function(t){var e=r9.buildLayerMatrix(t),n=new ot({compound:!0,multigraph:!0}).setGraph({});return rK.forEach(t.nodes(),function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank);}),rK.forEach(t.edges(),function(t){n.setEdge(t.v,t.w,{},t.name);}),rK.forEach(e,function(t,e){n.setNode("layer"+e,{rank:"same"}),rK.reduce(t,function(t,e){return n.setEdge(t,e,{style:"invis"}),e;});}),n;}},util:{time:r9.time,notime:r9.notime},version:"0.8.5"},on=oe.graphlib,or=oe.layout;class oi{constructor(t){this.cardinality=1,this.include=w.UNSPECIFIED,this.isGroupNode=!1,this.parentNode=null,this.type=E.NODE,this.name=t.name,this.attr=t.attr||{},this.inputs=t.inputs,this.path=t.path||[],this.width=t.width,this.height=t.height;}}class oo{constructor(){this.nodes={},this.edges=[],this.nodes={},this.edges=[];}}class oa{constructor(t,e={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=w.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=E.META,this.path=[],this.name=t,this.metaGraph=oc(t,M.META,e);}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0]);}getChildren(){return this.metaGraph.nodes().map(t=>this.metaGraph.node(t));}leaves(){let t,e=[],n=[this];for(;n.length;){let r=n.shift();r.isGroupNode?(t=r.metaGraph).nodes().forEach(e=>n.push(t.node(e))):e.push(r.name);}return e;}}class os{constructor(t,e){this.v=t,this.w=e,this.baseEdgeList=[],this.inbound=null,this.name=null;}addBaseEdge(t,e){this.baseEdgeList.push(t);}}function ou(t,e={}){return new oa(t,e);}function oc(t,e,n){let r=n||{},i=new on.Graph(r);return i.setGraph({name:t,rankdir:r.rankdir,type:e,align:r.align}),i;}class ol{constructor(t={}){this.graphOptions=t,this.index={},this.graphOptions.compound=!0,this.root=ou(s,this.graphOptions),this.index[s]=this.root;}getNodeMap(){return this.index;}node(t){return this.index[t];}setNode(t,e){this.index[t]=e;}getBridgeGraph(t){let e=this.index[t];if(!e)throw Error("Could not find node in hierarchy: "+t);if(!("metaGraph"in e))return null;if(e.bridgeGraph)return e.bridgeGraph;let n=oc(u,M.BRIDGE,this.graphOptions);if(e.bridgeGraph=n,!e.parentNode||!("metaGraph"in e.parentNode))return n;let r=e.parentNode;return[r.metaGraph,this.getBridgeGraph(r.name)].forEach(e=>{e.edges().filter(e=>e.v===t||e.w===t).forEach(r=>{let i=r.w===t;e.edge(r).baseEdgeList.forEach(e=>{let[o,a]=i?[e.w,r.v]:[e.v,r.w],s=this.getChildName(t,o),u={v:i?a:s,w:i?s:a},c=n.edge(u);c||((c=new os(u.v,u.w)).inbound=i,n.setEdge(u.v,u.w,c)),c.addBaseEdge(e,this);});});}),n;}getChildName(t,e){let n=this.index[e];for(;n;){if(n.parentNode&&n.parentNode.name===t)return n.name;n=n.parentNode;}throw Error("Could not find immediate child for descendant: "+e);}getPredecessors(t){let e=this.index[t];if(!e)throw Error("Could not find node with name: "+t);return this.getOneWayEdges(e,!0);}getSuccessors(t){let e=this.index[t];if(!e)throw Error("Could not find node with name: "+t);return this.getOneWayEdges(e,!1);}getOneWayEdges(t,e){let n=[];if(!t.parentNode||!t.parentNode.isGroupNode)return n;let r=t.parentNode,i=r.metaGraph,o=this.getBridgeGraph(r.name);return of(i,t,e,n),of(o,t,e,n),n;}}function of(t,e,n,r){(n?t.inEdges(e.name):t.outEdges(e.name)).forEach(e=>{let n=t.edge(e);r.push(n);});}class od{constructor(t){this.hierarchy=t,this.index={},this.hasSubHierarchy={},this.root=new op(this.hierarchy.root,this.hierarchy.graphOptions),this.index[t.root.name]=this.root,this.buildSubHierarchy(t.root.name),this.root.expanded=!0;}getRenderInfoNodes(){return Object.values(this.index);}getSubHierarchy(){return this.hasSubHierarchy;}buildSubHierarchy(t){if(t in this.hasSubHierarchy)return;this.hasSubHierarchy[t]=!0;let e=this.index[t];if(e.node.type!==E.META)return;let n=e.node.metaGraph,r=e.coreGraph;n.nodes().forEach(t=>{let e=this.getOrCreateRenderNodeByName(t);r.setNode(t,e);}),n.edges().forEach(t=>{let e=new og(n.edge(t));r.setEdge(t.v,t.w,e);});let i=e.node.parentNode;if(!i)return;let o=this.getRenderNodeByName(i.name),a=(t,...e)=>e.concat([t?"IN":"OUT"]).join("~~"),s=this.hierarchy.getBridgeGraph(t);s.edges().forEach(e=>{let u=s.edge(e),c=!!n.node(e.w),[l,f]=c?[e.w,e.v]:[e.v,e.w],d=e=>{let n=c?{v:e,w:t}:{v:t,w:e};return o.coreGraph.edge(n);},h=d(f);h||(h=d(a(c,f,i.name)));let g=a(c,t),p=a(c,f,t),v=r.node(p);if(!v){let t=r.node(g);t||(t=new oh({name:g,type:E.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:w.UNSPECIFIED,inbound:c,attr:{}}),this.index[g]=t,r.setNode(g,t)),v=new oh({name:p,type:E.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:w.UNSPECIFIED,inbound:c,attr:{}}),this.index[p]=v,r.setNode(p,v),r.setParent(p,g),t.node.cardinality++;}let m=new og(u);m.adjoiningMetaEdge=h,c?r.setEdge(p,l,m):r.setEdge(l,p,m);});}getOrCreateRenderNodeByName(t){if(!t)return null;if(t in this.index)return this.index[t];let e=this.getNodeByName(t);return e?(this.index[t]=e.isGroupNode?new op(e,this.hierarchy.graphOptions):new oh(e),this.index[t]):null;}getRenderNodeByName(t){return this.index[t];}getNodeByName(t){return this.hierarchy.node(t);}}class oh{constructor(t){this.node=t,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=t.width||0,this.height=t.height||0,this.displayName=t.name,this.attr=t.attr;}}class og{constructor(t){this.metaEdge=t,this.adjoiningMetaEdge=null,this.weight=1,this.points=[];}}class op extends oh{constructor(t,e){super(t);let n=t.metaGraph.graph();e.compound=!0,this.coreGraph=oc(n.name,M.CORE,e);}}function ov(t,e){let n=e.x-t.x;return 180*Math.atan((e.y-t.y)/n)/Math.PI;}function om(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2;}function oy(t,e){let n=e.expanded?e.x:om(e),r=e.y,i=t.x-n,o=t.y-r,a,s,u=e.expanded?e.width:e.coreBox.width,c=e.expanded?e.height:e.coreBox.height;return Math.abs(o)*u/2>Math.abs(i)*c/2?(o<0&&(c=-c),a=0===o?0:c/2*i/o,s=c/2):(i<0&&(u=-u),a=u/2,s=0===i?0:u/2*o/i),{x:n+a,y:r+s};}function ob(t,e,n){var r,a,s,u,c;let l=t.nodes.filter((t,e,n)=>n.findIndex(e=>e.id===t.id)!==e).map(t=>t.id);if(l.length)throw Error(`Duplicated ids found: ${l.join(", ")}`);let f=function(t){let e={nodes:[]},n=t.compound,r=Object.keys(n||{}),i=new Map,o=(t,e=[])=>{if(i.has(t))return i.get(t);for(let i=0;i<r.length;i++){let a=r[i];if(n&&-1!==n[a].indexOf(t))return e.unshift(a),o(a,e);}return 0===e.length&&i.set(t,e),e;},a=e=>t.edges.filter(t=>t.w===e).map(t=>({name:t.v}));return t.nodes.forEach(t=>{let n=t.id,r=[...o(n),n],i=a(n);e.nodes.push({name:n,path:r,inputs:i,width:t.width,height:t.height,attr:Object.assign({},t)});}),e;}(t),d=function(t,e){let n=(t,e)=>{for(let n of e.values())if(n.includes(t))return!0;return!1;},r=(t,e=[])=>{if(0===Object.keys(t).length)return[...new Set(e)];let i=new Map(Object.keys(t).map(e=>[e,t[e]])),o={};for(let[t,r]of i)n(t,i)?o[t]=r:e=e.concat(t,r);return r(o,e);};return r(t).filter(t=>e.includes(t));}(t.compound||{},(null==e?void 0:e.expanded)||[]),h=(c={rankDirection:(null===(a=null===(r=null==n?void 0:n.graph)||void 0===r?void 0:r.meta)||void 0===a?void 0:a.rankDir)||(null==e?void 0:e.rankDirection)||i.graph.meta.rankDir,align:(null===(u=null===(s=null==n?void 0:n.graph)||void 0===s?void 0:s.meta)||void 0===u?void 0:u.align)||i.graph.meta.align},new od(function(t,e){let{rankDirection:n,align:r}=e,i=new ol({rankdir:n,align:r});return function(t,e){Object.keys(e.nodes).forEach(n=>{let r=e.nodes[n],i=r.path,o=t.root;o.depth=Math.max(i.length,o.depth);for(let e=0;e<i.length&&(o.depth=Math.max(o.depth,i.length-e),o.cardinality+=r.cardinality,e!==i.length-1);e++){let n=i[e],a=t.node(n);a||((a=ou(n,t.graphOptions)).path=r.path.slice(0,e+1),a.parentNode=o,t.setNode(n,a),o.metaGraph.setNode(n,a)),o=a;}t.setNode(r.name,r),r.parentNode=o,o.metaGraph.setNode(r.name,r);});}(i,t),function(t,e){let n=t.getNodeMap(),r=[],i=[],o=(t,e)=>{let n=0;for(;t;)e[n++]=t.name,t=t.parentNode;return n-1;};e.edges.forEach(a=>{r=[],i=[];let s=o(e.nodes[a.v],r),u=o(e.nodes[a.w],i);for(;r[s]===i[u];)if(s--,u--,s<0||u<0)throw Error("No difference found between ancestor paths.");let c=n[r[s+1]],l=r[s],f=i[u],d=c.metaGraph.edge(l,f);d||(d=new os(l,f),c.metaGraph.setEdge(l,f,d)),d.addBaseEdge(a,t);});}(i,t),i;}(function(t){let e=new oo;return t.nodes.map(t=>new oi(t)).forEach(t=>{e.nodes[t.name]=t,t.inputs.forEach(n=>{n.name!==t.name&&e.edges.push(Object.assign(Object.assign({},n.attr),{v:n.name,w:t.name}));});}),e;}(f),c)));return function(t,e){e.forEach(e=>{let n=t.getRenderInfoNodes().find(t=>t.displayName===e),r=n&&n.node&&n.node.name||"",i=t.getRenderNodeByName(r);if(!i)throw Error(`No nodes found: ${r}`);i.expanded=!0,t.buildSubHierarchy(r);});}(h,d),function t(e,n){e.node.isGroupNode&&function(e,n){let r=o(n);e.coreGraph.nodes().map(t=>e.coreGraph.node(t)).forEach(e=>{var i,o,a,s,u,c;let{height:l,width:f}=e;switch(e.node.type){case E.NODE:Object.assign(e,r.nodeSize.node),e.height=l||r.nodeSize.node.height,e.width=f||r.nodeSize.node.width;break;case E.BRIDGE:Object.assign(e,r.nodeSize.bridge);break;case E.META:e.expanded?t(e,n):(Object.assign(e,r.nodeSize.meta),e.height=r.nodeSize.meta.height,e.width=r.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+e.node.type);}if(!e.expanded){let t=e.attr;!function(t,e=!1){if(t.coreBox.width=t.width,t.coreBox.height=t.height,!e){let e=`${t.displayName}`.length;t.width=Math.max(t.coreBox.width,3*e);}}(e,n&&(0===e.node.type&&!!(null===(o=null===(i=null==n?void 0:n.nodeSize)||void 0===i?void 0:i.meta)||void 0===o?void 0:o.width)||1===e.node.type&&(!!(null===(s=null===(a=null==n?void 0:n.nodeSize)||void 0===a?void 0:a.node)||void 0===s?void 0:s.width)||!!t.width)||2===e.node.type&&!!(null===(c=null===(u=null==n?void 0:n.nodeSize)||void 0===u?void 0:u.bridge)||void 0===c?void 0:c.width)));}});}(e,n),e.node.type===E.META&&function(t,e){let n=o(e),r=n.subScene.meta;Object.assign(t,r);let{nodeSep:i,rankSep:a,edgeSep:s,align:u}=n.graph.meta;Object.assign(t.coreBox,function(t,e){let{ranksep:n,nodesep:r,edgesep:i,align:o}=e;Object.assign(t.graph(),{ranksep:n,nodesep:r,edgesep:i,align:o});let a=[];if(t.nodes().forEach(e=>{t.node(e).node.type!==E.BRIDGE&&a.push(e);}),!a.length)return{width:0,height:0};or(t);let s=1/0,u=1/0,c=-1/0,l=-1/0;return a.forEach(e=>{let n=t.node(e),r=.5*n.width,i=n.x-r,o=n.x+r;s=i<s?i:s,c=o>c?o:c;let a=.5*n.height,f=n.y-a,d=n.y+a;u=f<u?f:u,l=d>l?d:l;}),t.edges().forEach(e=>{let n=t.edge(e),r=t.node(n.metaEdge.v),i=t.node(n.metaEdge.w);if(3===n.points.length&&function(t){let e=ov(t[0],t[1]);for(let n=1;n<t.length-1;n++){let r=ov(t[n],t[n+1]);if(Math.abs(r-e)>1)return!1;e=r;}return!0;}(n.points)){if(null!=r){let t=r.expanded?r.x:om(r);n.points[0].x=t;}if(null!=i){let t=i.expanded?i.x:om(i);n.points[2].x=t;}n.points=[n.points[0],n.points[1]];}let o=n.points[n.points.length-2];null!=i&&(n.points[n.points.length-1]=oy(o,i));let a=n.points[1];null!=r&&(n.points[0]=oy(a,r)),n.points.forEach(t=>{s=t.x<s?t.x:s,c=t.x>c?t.x:c,u=t.y<u?t.y:u,l=t.y>l?t.y:l;});}),t.nodes().forEach(e=>{let n=t.node(e);n.x-=s,n.y-=u;}),t.edges().forEach(e=>{t.edge(e).points.forEach(t=>{t.x-=s,t.y-=u;});}),{width:c-s,height:l-u};}(t.coreGraph,{nodesep:i,ranksep:a,edgesep:s,align:u}));let c=0;t.coreGraph.nodeCount()>0&&c++;let l=c<=1?0:c;t.coreBox.width+=l+l,t.coreBox.height=r.labelHeight+t.coreBox.height,t.width=t.coreBox.width+r.paddingLeft+r.paddingRight,t.height=t.paddingTop+t.coreBox.height+t.paddingBottom;}(e,n);}(h.root,n),function t(e){let n=e.coreGraph.nodes().map(t=>e.coreGraph.node(t));return Object.assign(Object.assign({},oE(e)),{expanded:e.expanded,nodes:e.expanded?n.map(e=>e.node.type===E.META?t(e):oE(e)):[],edges:e.expanded?e.coreGraph.edges().map(t=>({renderInfoEdge:e.coreGraph.edge(t),edge:t})).filter(({renderInfoEdge:t})=>t.metaEdge).map(({edge:t,renderInfoEdge:n})=>{let r=function(t,e){let n=e.points.map(t=>Object.assign({},t));if(e.adjoiningMetaEdge){let r=e.adjoiningMetaEdge.points,i=e.metaEdge.inbound,o=i?r[r.length-1]:r[0],a=n[i?0:n.length-1],s=t.x-t.width/2,u=t.y-t.height/2,c=o.x-s,l=o.y-u,f=-t.paddingLeft,d=-(t.paddingTop+t.labelHeight);a.x=c+f,a.y=l+d;}return n;}(e,n);return{adjoiningEdge:n.adjoiningMetaEdge?{w:n.adjoiningMetaEdge.metaEdge.w,v:n.adjoiningMetaEdge.metaEdge.v}:null,inbound:n.metaEdge.inbound,w:t.w,v:t.v,points:r,weight:n.weight,baseEdgeList:n.metaEdge.baseEdgeList,parentNodeName:e.node.name};}):[]});}(h.root);}function ox(t,e=!1){let n=JSON.parse(JSON.stringify(t)),r={nodes:[n],edges:[...n.edges]};return n.nodes.forEach(function t(e){(0===e.type||1===e.type)&&r.nodes.push(e),0===e.type&&(r.edges=r.edges.concat(e.edges)),Array.isArray(e.nodes)&&e.nodes.forEach(t);}),e&&r.nodes.forEach(t=>{let e=r.nodes.find(e=>e.id===t.parentNodeName);if(e){let n=e.x-e.width/2+e.paddingLeft,r=e.y-e.height/2+e.labelHeight+e.paddingTop;e.id!==s&&(t.x+=n,t.y+=r),0===t.type&&t.edges.forEach(e=>{e.points.forEach(e=>{e.x+=t.x-t.width/2+t.paddingLeft,e.y+=t.y-t.height/2+t.labelHeight+t.paddingTop;});});}}),r;}function o_(t,e,n,r){var i,o;let a=[],u=(null===(i=n.find(e=>e.id===t))||void 0===i?void 0:i.path)||[],c=(null===(o=n.find(t=>t.id===e))||void 0===o?void 0:o.path)||[],l=[s,...u].slice(0,u.length).reverse(),f=[s,...c].slice(0,c.length);return l.forEach(i=>{let o=n.find(t=>t.id===i);a=a.concat(o.edges.filter(n=>n.baseEdgeList.some(n=>n.v===((null==r?void 0:r.v)||t)&&n.w===((null==r?void 0:r.w)||e))));}),f.filter(t=>!l.includes(t)).forEach(i=>{let o=n.find(t=>t.id===i);a=a.concat(o.edges.filter(n=>n.baseEdgeList.some(n=>n.v===((null==r?void 0:r.v)||t)&&n.w===((null==r?void 0:r.w)||e))));}),a;}function oE(t){return{id:t.node.name,name:t.node.name,type:t.node.type,cardinality:t.node.cardinality,attr:t.attr,parentNodeName:t.node.parentNode?t.node.parentNode.name:null,coreBox:Object.assign({},t.coreBox),x:t.x,y:t.y,width:t.width,height:t.height,radius:t.radius,labelHeight:t.labelHeight,labelOffset:t.labelOffset,outboxWidth:t.outboxWidth,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,path:t.node.path};}},ef785247:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);});Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var o=n("5092cda5"),a=n("38788347"),s=new Map;e.registerLayout=function(t,e){if(s.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,a.isObject)(e)){var n=function(t){function n(n){var r,i=this,o=i=t.call(this)||this,a={};return Object.assign(a,Object.assign({},o.getDefaultCfg(),(null===(r=e.getDefaultCfg)||void 0===r?void 0:r.call(e))||{}),e,n),Object.keys(a).forEach(function(t){var e=a[t];o[t]=e;}),i;}return i(n,t),n;}(o.Base);s.set(t,n);}else s.set(t,e);return s.get(t);},e.unRegisterLayout=function(t){s.has(t)&&s.delete(t);},e.getLayoutByName=function(t){return s.has(t)?s.get(t):null;};},ef907e7f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=n("777fffbe")._(n("57580e52")).default;},efdec170:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return p;}});var r,i=n("777fffbe"),o=n("5fab14e3"),a=n("ddb380bf"),s=n("22b52967"),u=n("c966c938"),c=n("f6fd9972"),l=i._(n("b208d868")),f=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);},h=Math.max,g=c.ext.transform,p=function(t){function e(e){var n=t.call(this,e)||this;return n.handleUpdateCanvas=(0,s.debounce)(function(t){n.destroyed||n.updateCanvas();},100,!1),n;}return f(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",type:"default",padding:50,size:[200,120],delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0,hideEdge:!1};},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"};},e.prototype.disableRefresh=function(){this.set("refresh",!1);},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas();},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0);},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.size,r=e.graph;if(!this.destroyed){var i=this.get("canvas").get("container"),o=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,a=navigator.userAgent.toLowerCase().indexOf("safari")>-1,c=(0,u.createDom)("\n <div\n class=".concat(e.viewportClassName,"\n style='position:absolute;\n left:0;\n top:0;\n box-sizing:border-box;\n outline: 2px solid #1980ff;\n cursor:move'\n draggable=").concat(!a&&!o,"\n </div>")),l=0,f=0,d=!1,h=0,g=0,p=0,v=0,m=0,y=0,b=a||o?"mousedown":"dragstart";c.addEventListener(b,function(i){if(i.dataTransfer){var o,a,s=new Image;s.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",null===(a=(o=i.dataTransfer).setDragImage)||void 0===a||a.call(o,s,0,0);try{i.dataTransfer.setData("text/html","view-port-minimap");}catch(t){i.dataTransfer.setData("text","view-port-minimap");}}if(e.refresh=!1,i.target===c){var u=c.style;h=parseInt(u.left,10),g=parseInt(u.top,10),p=parseInt(u.width,10),v=parseInt(u.height,10),p>n[0]||v>n[1]||(y=r.getZoom(),m=t.get("ratio"),d=!0,l=i.clientX,f=i.clientY);}},!1);var x=function(t){if(!(!d||(0,s.isNil)(t.clientX)||(0,s.isNil)(t.clientY))){var e=l-t.clientX,i=f-t.clientY;(h-e<0||h-e+p>=n[0])&&(e=0),(g-i<0||g-i+v>=n[1])&&(i=0),h-=e,g-=i,(0,u.modifyCSS)(c,{left:"".concat(h,"px"),top:"".concat(g,"px")}),r.translate(e*y/m,i*y/m),l=t.clientX,f=t.clientY;}};a||o||c.addEventListener("drag",x,!1);var _=function(){d=!1,e.refresh=!0;},E=a||o?"mouseup":"dragend";c.addEventListener(E,_,!1),i.addEventListener("mouseleave",_),i.addEventListener("mouseup",_),(a||o)&&i.addEventListener("mousemove",x,!1),this.set("viewport",c),i.appendChild(c);}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("totaldx"),n=this.get("totaldy"),r=this.get("graph"),i=this.get("size"),o=r.get("canvas").get("el"),a=r.get("width")||o.scrollWidth||500,s=r.get("height")||o.scrollHeight||500,c=r.getPointByCanvas(0,0),l=r.getPointByCanvas(a,s),f=this.get("viewport");f||this.initViewport();var d=(l.x-c.x)*t,h=(l.y-c.y)*t,g=c.x*t+e,p=c.y*t+n,v=g+d,m=p+h;g<0&&(d+=g,g=0),v>i[0]&&(d-=v-i[0]),p<0&&(h+=p,p=0),m>i[1]&&(h-=m-i[1]),this.set("ratio",t);var y="".concat(g,"px"),b="".concat(p,"px");(0,u.modifyCSS)(f,{left:y,top:b,width:"".concat(d,"px"),height:"".concat(h,"px")});}},e.prototype.updateGraphShapes=function(){var t,e=this._cfgs.graph,n=this.get("canvas"),r=e.get("group");r.destroyed||(n.clear(),this.get("hideEdge")?(t=n.addGroup(),r.get("children").forEach(function(e){e.get("id").includes("-edge")||t.add(e.clone());})):((t=r.clone()).resetMatrix(),n.add(t)),"svg"===e.get("renderer")&&this.updateVisible(t));},e.prototype.updateVisible=function(t){var e=this;if(t.isGroup()||t.get("visible")){var n=t.get("children");if(!n||!n.length)return;n.forEach(function(t){t.get("visible")||t.hide(),e.updateVisible(t);});}else t.hide();},e.prototype.updateKeyShapes=function(){var t=this,e=this._cfgs.graph,n=this.get("canvas"),r=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,s.each)(e.getEdges(),function(e){t.updateOneEdgeKeyShape(e,r);}),(0,s.each)(e.getNodes(),function(e){t.updateOneNodeKeyShape(e,r);});var i=e.getCombos();if(i&&i.length){var o=r.find(function(t){return"comboGroup"===t.get("name");})||r.addGroup({name:"comboGroup"});setTimeout(function(){t.destroyed||((0,s.each)(i,function(e){t.updateOneComboKeyShape(e,o);}),null==o||o.sort(),null==o||o.toBack(),t.updateCanvas());},250);}this.clearDestroyedShapes();},e.prototype.updateOneComboKeyShape=function(t,e){if(!this.destroyed){var n=this.get("itemMap")||{},r=n[t.get("id")],i=t.getBBox(),o=t.get("keyShape").clone(),a=o.attr(),s={x:i.centerX,y:i.centerY};r?s=Object.assign(a,s):(r=o,e.add(r));var u=r.get("type");("rect"===u||"image"===u)&&(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var c=t.getModel().depth;isNaN(c)||r.set("zIndex",c),n[t.get("id")]=r,this.set("itemMap",n);}},e.prototype.updateOneNodeKeyShape=function(t,e){var n=this.get("itemMap")||{},r=n[t.get("id")],i=t.getBBox(),o=t.get("keyShape").clone(),a=o.attr(),s={x:i.centerX,y:i.centerY};r?(s=Object.assign(a,s),r.toFront()):(r=o,e.add(r));var u=r.get("type");("rect"===u||"image"===u)&&(s.x=i.minX,s.y=i.minY),r.attr(s),t.isVisible()?r.show():r.hide(),r.exist=!0;var c=t.getModel().depth;isNaN(c)||r.set("zIndex",c),n[t.get("id")]=r,this.set("itemMap",n);},e.prototype.updateDelegateShapes=function(){var t=this,e=this._cfgs.graph,n=this.get("canvas"),r=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,s.each)(e.getEdges(),function(e){t.updateOneEdgeKeyShape(e,r);}),(0,s.each)(e.getNodes(),function(e){t.updateOneNodeDelegateShape(e,r);});var i=e.getCombos();if(i&&i.length){var o=r.find(function(t){return"comboGroup"===t.get("name");})||r.addGroup({name:"comboGroup"});setTimeout(function(){t.destroyed||((0,s.each)(i,function(e){t.updateOneComboKeyShape(e,o);}),null==o||o.sort(),null==o||o.toBack(),t.updateCanvas());},250);}this.clearDestroyedShapes();},e.prototype.clearDestroyedShapes=function(){var t=this.get("itemMap")||{},e=Object.keys(t);if(e&&0!==e.length)for(var n=e.length-1;n>=0;n--){var r=t[e[n]],i=r.exist;r.exist=!1,i||(r.remove(),delete t[e[n]]);}},e.prototype.updateOneEdgeKeyShape=function(t,e){var n=this.get("itemMap")||{},r=n[t.get("id")];if(r){var i=t.get("keyShape").attr("path");r.attr("path",i);}else r=t.get("keyShape").clone(),e.add(r);t.isVisible()?r.show():r.hide(),r.exist=!0,n[t.get("id")]=r,this.set("itemMap",n);},e.prototype.updateOneNodeDelegateShape=function(t,e){var n=this.get("delegateStyle"),r=this.get("itemMap")||{},i=r[t.get("id")],o=t.getBBox();if(i){var a={x:o.minX,y:o.minY,width:o.width,height:o.height};i.attr(a),i.toFront();}else i=e.addShape("rect",{attrs:d({x:o.minX,y:o.minY,width:o.width,height:o.height},n),name:"minimap-node-shape"});t.isVisible()?i.show():i.hide(),i.exist=!0,r[t.get("id")]=i,this.set("itemMap",r);},e.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas);},e.prototype.initContainer=function(){var t,e=this.get("graph"),n=this.get("size"),r=this.get("className"),i=this.get("container"),c=(0,u.createDom)("<div class='".concat(r,"' style='width: ").concat(n[0],"px; height: ").concat(n[1],"px; overflow: hidden'></div>"));(0,s.isString)(i)&&(i=document.getElementById(i)),i?i.appendChild(c):e.get("container").appendChild(c),this.set("container",c);var l=(0,u.createDom)('<div class="g6-minimap-container" style="position: relative;"></div>');c.appendChild(l),l.addEventListener("dragenter",function(t){t.preventDefault();}),l.addEventListener("dragover",function(t){t.preventDefault();}),t="svg"===e.get("renderer")?new a.Canvas({container:l,width:n[0],height:n[1]}):new o.Canvas({container:l,width:n[0],height:n[1]}),this.set("canvas",t),this.updateCanvas();},e.prototype.updateCanvas=function(){if(!this.destroyed&&this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("size"),n=this.get("canvas"),r=this.get("type"),i=this.get("padding");if(!n.destroyed){switch(r){case"default":this.updateGraphShapes();break;case"keyShape":this.updateKeyShapes();break;case"delegate":this.updateDelegateShapes();}var o=n.get("children")[0];if(o){o.resetMatrix();var a=o.getCanvasBBox(),s=t.get("canvas").getCanvasBBox(),u=t.getZoom()||1,c=s.width/u,l=s.height/u;Number.isFinite(a.width)&&(c=h(a.width,c),l=h(a.height,l)),c+=2*i,l+=2*i;var f=Math.min(e[0]/c,e[1]/l),d=[1,0,0,0,1,0,0,0,1],p=0,v=0;Number.isFinite(a.minX)&&(p=-a.minX),Number.isFinite(a.minY)&&(v=-a.minY);var m=(e[0]-(c-2*i)*f)/2,y=(e[1]-(l-2*i)*f)/2;d=g(d,[["t",p,v],["s",f,f],["t",m,y]]),o.setMatrix(d),this.set("ratio",f),this.set("totaldx",m+p*f),this.set("totaldy",y+v*f),this.set("dx",m),this.set("dy",y),this.updateViewport();}}}}},e.prototype.getCanvas=function(){return this.get("canvas");},e.prototype.getViewport=function(){return this.get("viewport");},e.prototype.getContainer=function(){return this.get("container");},e.prototype.destroy=function(){null===(t=this.get("canvas"))||void 0===t||t.destroy();var t,e=this.get("container");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e);},e;}(l.default);},f004b2d2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"determinant",{enumerable:!0,get:function(){return function t(e){if((e=o.default.checkMatrix(e)).isSquare()){let n,r,o;if(2===e.columns)return n=e.get(0,0),r=e.get(0,1),o=e.get(1,0),n*e.get(1,1)-r*o;if(3!==e.columns)return new i.default(e).determinant;{let i,s,u;return i=new a.default(e,[1,2],[1,2]),s=new a.default(e,[1,2],[0,2]),u=new a.default(e,[1,2],[0,1]),n=e.get(0,0),r=e.get(0,1),o=e.get(0,2),n*t(i)-r*t(s)+o*t(u);}}throw Error("determinant can only be calculated for a square matrix");};}});var r=n("777fffbe"),i=r._(n("83c2e0df")),o=r._(n("04480408")),a=r._(n("e0a44ed9"));},f04c5082:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("47526327")),i=function(t){var e=(0,r.default)(t);return e.charAt(0).toLowerCase()+e.substring(1);};},f05a3412:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){function t(t){this.count=t.length,this.parent={};for(var e=0;e<t.length;e++){var n=t[e];this.parent[n]=n;}}return t.prototype.find=function(t){for(;this.parent[t]!==t;)t=this.parent[t];return t;},t.prototype.union=function(t,e){var n=this.find(t),r=this.find(e);n!==r&&(n<r?(this.parent[e]!==e&&this.union(this.parent[e],t),this.parent[e]=this.parent[t]):(this.parent[t]!==t&&this.union(this.parent[t],e),this.parent[t]=this.parent[e]));},t.prototype.connected=function(t,e){return this.find(t)===this.find(e);},t;}();e.default=r;},f0b8b26a:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("e9a09e78")),a=function(t,e){if(t){if((0,i.default)(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if((0,o.default)(t)){for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break;}}};},f1140149:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=r._(n("bd41dba3")),o=r._(n("8b6af789")),a=function(t,e){if((0,i.default)(t)){for(var n,r=-1/0,a=0;a<t.length;a++){var s=t[a],u=(0,o.default)(e)?e(s):s[e];u>r&&(n=s,r=u);}return n;}};},f1d77e6b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("f2a74934")),i=function(t,e){return(0,r.default)(t,e,"pre");};},f1dce1f8:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("d8cf7abe")),i=function(){function t(t){void 0===t&&(t=10),this.linkedList=new r.default,this.maxStep=t;}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length;},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head;},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep;},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value;},t.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail();},t.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null;},t.prototype.toArray=function(){return this.linkedList.toArray().map(function(t){return t.value;});},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop();},t;}();},f201aa30:function(t,e,n){"use strict";function r(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a,s,u=i-n||1,c=this._root;n>t||t>=i||r>e||e>=o;)switch(s=(e<r)<<1|t<n,(a=[,,,,])[s]=c,c=a,u*=2,s){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u;}this._root&&this._root.length&&(this._root=c);}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this;}n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});},f2905faf:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=Array.prototype,i=r.splice,o=r.indexOf,a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var a=e[r],s=-1;(s=o.call(t,a))>-1;)i.call(t,s,1);return t;};},f29fe526:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{getEdgesByNodeId:function(){return o;},getNeighbors:function(){return r;},getOutEdgesNodeId:function(){return i;},uniqueId:function(){return a;}});var r=function(t,e,n){void 0===e&&(e=[]);var r=e.filter(function(e){return e.source===t||e.target===t;});return"target"===n?r.filter(function(e){return e.source===t;}).map(function(t){return t.target;}):"source"===n?r.filter(function(e){return e.target===t;}).map(function(t){return t.source;}):r.map(function(e){return e.source===t?e.target:e.source;});},i=function(t,e){return e.filter(function(e){return e.source===t;});},o=function(t,e){return e.filter(function(e){return e.source===t||e.target===t;});},a=function(t){void 0===t&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),n="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(n);};},f2a74934:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=function t(e,n,r,i,o,a){!i.includes(n)&&(i.push(n),r||a.push(n),o(n).forEach(function(n){return t(e,n,r,i,o,a);}),r&&a.push(n));},i=function(t,e,n){var i=Array.isArray(e)?e:[e],o=function(e){return t.isDirected()?t.successors(e):t.neighbors(e);},a=[],s=[];return i.forEach(function(e){if(t.hasNode(e))r(t,e,"post"===n,s,o,a);else throw Error("Graph does not have node: "+e);}),a;};},f2fbe439:function(t,e,n){"use strict";function r(){}n.d(e,"__esModule",{value:!0}),n.e(e,{colorRegExp:function(){return i;},dataToArray:function(){return d;},flatArray:function(){return h;},getAnimatePos:function(){return g;},getComputedStyle:function(){return y;},getDefaultStart:function(){return p;},getInitProps:function(){return f;},getStartAtValue:function(){return v;},getTime:function(){return s;},getTransformValue:function(){return _;},getValue:function(){return m;},initAnimProps:function(){return c;},initFilterValue:function(){return E;},initProps:function(){return l;},noop:function(){return r;},parsePath:function(){return u;},shadowExp:function(){return o;},startConvertToEndUnit:function(){return x;},styleValueToArray:function(){return b;},windowIsUndefined:function(){return a;}});var i=n("0e8397d7").colorRegExp,o=/.*shadow$/gi,a=!("undefined"!=typeof window&&window.document&&window.document.createElement),s=Date.now;function u(t){if("string"==typeof t){if(t.charAt(0).match(/m/i)){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttributeNS(null,"d",t),e;}return document.querySelector(t);}if(t.style)return t;throw Error("Error while parsing the path");}var c={type:"to",duration:450,delay:0,repeat:0,repeatDelay:0,appearTo:0,yoyo:!1,ease:"easeInOutQuad",onStart:r,onUpdate:r,onComplete:r,onRepeat:r,startAt:{}},l={animation:{},paused:!1,reverse:!1,delay:0,repeat:0,repeatDelay:0,yoyo:!1,moment:null,resetStyle:!1,regionStartTime:0,regionEndTime:void 0,onChange:r,onChangeTimeline:r},f=function(t){var e={};return Object.keys(l).forEach(function(n){e[n]=void 0===t[n]?l[n]:t[n];}),e.delay&&(e.delay=Math.round(e.delay)),t.repeatDelay&&(e.repeatDelay=Math.round(e.repeatDelay)),e;},d=function(t){if(Array.isArray(t)||!t)return t;if(t.length){var e=Array.prototype.slice.call(t);return e.length?[t]:e;}return[t];},h=function(t){return 1===t.length?t[0]:t;},g=function(t,e){var n,r=e.appearTo,i=void 0===r?0:r,o=e.delay,a=void 0===o?0:o,s=e.duration,u=void 0===s?450:s,c=e.repeat,l=e.repeatDelay;if("string"==typeof i)return 0;var f=0;return"number"==typeof t.appearTo?t.appearTo:("string"==typeof t.appearTo&&"="===t.appearTo.charAt(1)&&(f=parseFloat(t.appearTo.replace("=",""))),n=i+a+u+f,-1===c?n=Number.MAX_VALUE:c&&(n=i+a+u*(c+1)+(l||0)*c+f),n);},p=function(t){switch(t){case"opacity":case"scaleX":case"scaleY":case"scale":return 1;default:return 0;}},v=function(t,e){return m("string"==typeof t?parseFloat(t):t,e.vars,1,e.count,e.unit);},m=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0;return"+="===r||"-="===r?t+e*n+(i||0):(e-t)*n+t+(i||0);},y=function(t){return t&&"undefined"!=typeof window&&document.defaultView?document.defaultView.getComputedStyle(t):{};},b={margin:1,padding:1,borderWidth:1,borderRadius:1};function x(t){var e,n,r,i=t.target,o=t.computedStyle,s=t.style,u=t.value,c=t.startUnit,l=t.endUnit,f=t.fixed,d=t.isOriginWidth,h=t.useCurrentTarget;if(a)return u;var g=/(?:Left|Right|Width|X)/i.test(s)||d;g="padding"===s||"marign"===s||g;var p=-1!==s.indexOf("border")||-1!==s.indexOf("translate")||"transformOrigin"===s||h?i:i.parentNode||document.body;switch(p=f?document.body:p,c){case"%":e=parseFloat(u)/100*(g?p.clientWidth:p.clientHeight);break;case"vw":e=parseFloat(u)*document.body.clientWidth/100;break;case"vh":e=parseFloat(u)*document.body.clientHeight/100;break;case"em":o?e=parseFloat(u)*parseFloat(o.fontSize):(r="em",e=parseFloat(u));break;case"rem":o?(n=window.getComputedStyle(document.getElementsByTagName("html")[0]),e=parseFloat(u)*parseFloat(n.fontSize)):(r="rem",e=parseFloat(u));break;default:e=parseFloat(u);}switch(l){case"%":e=e?100*e/(g?p.clientWidth:p.clientHeight):0;break;case"vw":e=parseFloat(u)/document.body.clientWidth*100;break;case"vh":e=parseFloat(u)/document.body.clientHeight*100;break;case"em":o?e=parseFloat(u)/parseFloat(o.fontSize):(r="em",e=parseFloat(u));break;case"rem":o?(n=n||window.getComputedStyle(document.getElementsByTagName("html")[0]),e=parseFloat(u)/parseFloat(n.fontSize)):(r="rem",e=parseFloat(u));}return r&&console.warn("Warning: Element is not 'DOM, can not use '".concat(r,"', automatically convert to animation units.")),e;}function _(t){if("string"==typeof t)return t;var e=t.perspective,n=t.rotate,r=t.rotateX,i=t.rotateY,o=t.scaleX,a=t.scaleY,s=t.scaleZ,u=t.skewX,c=t.skewY,l="string"==typeof t.translateX?t.translateX:"".concat(t.translateX,"px"),f="string"==typeof t.translateY?t.translateY:"".concat(t.translateY,"px"),d="string"==typeof t.translateZ?t.translateZ:"".concat(t.translateZ,"px"),h=u||c?"skew(".concat(u,"deg,").concat(c,"deg)"):"",g=n?"rotate(".concat(n,"deg)"):"",p=1!==o||1!==a||1!==s?"scale3d(".concat(o,",").concat(a,",").concat(s,")"):"",v=r?"rotateX(".concat(r,"deg)"):"",m=i?"rotateY(".concat(i,"deg)"):"",y=t.translateZ?"translate3d(".concat(l,",").concat(f,",").concat(d,")"):(t.translateX||t.translateY)&&"translate(".concat(l,",").concat(f,")")||(p||g||v||m||h?"":"translate(0px, 0px)");return"".concat(e?"perspective(".concat(e,"px)"):""," ").concat(y," ").concat(p," ").concat(g," ").concat(v," ").concat(m," ").concat(h).trim();}var E={brightness:1,saturate:1,contrast:1,grayScale:0,hueRotate:"0deg",sepia:0,invert:0};},f31a3a23:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=n("777fffbe")._(n("63533c0e")).default;},f31b465b:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return s;}});var r=n("c78d7c09"),i=function(t,e,n){return t>=e&&t<=n;};function o(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}});}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}});}return e;}function a(t){var e=t.map(function(t){return t[0];}),n=t.map(function(t){return t[1];});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)};}function s(t,e){if(t.length<2||e.length<2)return!1;var n=a(t),s=a(e);if(s.minX>n.maxX||s.maxX<n.minX||s.minY>n.maxY||s.maxY<n.minY)return!1;var u=!1;if(e.forEach(function(e){if((0,r.isPointInPolygon)(t,e[0],e[1]))return u=!0,!1;}),u||(t.forEach(function(t){if((0,r.isPointInPolygon)(e,t[0],t[1]))return u=!0,!1;}),u))return!0;var c=o(t),l=o(e),f=!1;return l.forEach(function(t){var e;if(e=!1,c.forEach(function(n){if(function(t,e,n,r){var o={x:n.x-t.x,y:n.y-t.y},a={x:e.x-t.x,y:e.y-t.y},s={x:r.x-n.x,y:r.y-n.y},u=a.x*s.y-a.y*s.x,c=a.x*a.x+a.y*a.y,l=s.x*s.x+s.y*s.y,f=null;if(u*u>.001*c*l){var d=(o.x*s.y-o.y*s.x)/u,h=(o.x*a.y-o.y*a.x)/u;i(d,0,1)&&i(h,0,1)&&(f={x:t.x+d*a.x,y:t.y+d*a.y});}return f;}(n.from,n.to,t.from,t.to))return e=!0,!1;}),e)return f=!0,!1;}),f;}},f41eef67:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return s;}});var r=n("777fffbe"),i=r._(n("533b8f72")),o=r._(n("155fe01c")),a=Object.prototype.hasOwnProperty,s=function(t,e){if(!e||!(0,i.default)(t))return{};for(var n,r={},s=(0,o.default)(e)?e:function(t){return t[e];},u=0;u<t.length;u++){var c=t[u];n=s(c),a.call(r,n)?r[n].push(c):r[n]=[c];}return r;};},f44b7b58:function(t,e,n){"use strict";var r,i,o,a;n.d(e,"__esModule",{value:!0}),n.e(e,{EnumCodeUnits:function(){return i;},EnumRunesCode:function(){return r;},GRAPHEMES:function(){return s;},betweenInclusive:function(){return x;},codePointFromSurrogatePair:function(){return b;},default:function(){return u;},isDiacriticalMark:function(){return p;},isFirstOfSurrogatePair:function(){return l;},isFitzpatrickModifier:function(){return h;},isGrapheme:function(){return m;},isRegionalIndicator:function(){return f;},isSubdivisionFlag:function(){return d;},isSupplementarySpecialpurposePlane:function(){return v;},isVariationSelector:function(){return g;},isZeroWidthJoiner:function(){return y;},nextUnits:function(){return c;},runes:function(){return u;},substr:function(){return _;},substring:function(){return _;}}),(o=r||(r={}))[o.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",o[o.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",o[o.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",o[o.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",o[o.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",o[o.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",o[o.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",o[o.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",o[o.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",o[o.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",o[o.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",o[o.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",o[o.TAGS_START=917504]="TAGS_START",o[o.TAGS_END=917631]="TAGS_END",o[o.ZWJ=8205]="ZWJ";let s=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);function u(t){if("string"!=typeof t)throw TypeError("string cannot be undefined or null");let e=[],n=0,r=0;for(;n<t.length;)r+=c(n+r,t),m(t[n+r])&&r++,g(t[n+r])&&r++,p(t[n+r])&&r++,y(t[n+r])?r++:(e.push(t.substring(n,n+r)),n+=r,r=0);return e;}function c(t,e){let n=e[t];if(!l(n)||t===e.length-1)return 1;let r=n+e[t+1],i=e.substring(t+2,t+5);return f(r)&&f(i)?4:d(r)&&v(i)?e.slice(t).indexOf(String.fromCodePoint(917631))+2:h(i)?4:2;}function l(t){return t&&x(t[0].charCodeAt(0),55296,56319);}function f(t){return x(b(t),127462,127487);}function d(t){return x(b(t),127988,127988);}function h(t){return x(b(t),127995,127999);}function g(t){return"string"==typeof t&&x(t.charCodeAt(0),65024,65039);}function p(t){return"string"==typeof t&&x(t.charCodeAt(0),8400,8447);}function v(t){let e=t.codePointAt(0);return"string"==typeof t&&"number"==typeof e&&x(e,917504,917631);}function m(t){return"string"==typeof t&&s.includes(t.charCodeAt(0));}function y(t){return"string"==typeof t&&8205===t.charCodeAt(0);}function b(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536;}function x(t,e,n){return t>=e&&t<=n;}function _(t,e,n){let r=u(t);if(void 0===e)return t;if(e>=r.length)return"";let i=r.length-e,o=e+(void 0===n?i:n);return o>e+i&&(o=void 0),r.slice(e,o).join("");}(a=i||(i={}))[a.unit_1=1]="unit_1",a[a.unit_2=2]="unit_2",a[a.unit_4=4]="unit_4";},f48683ab:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{dataToPath:function(){return c;},dataToRectPath:function(){return l;},getAreaLineY:function(){return f;},getLinePath:function(){return s;},getRectPath:function(){return g;},getRectPoints:function(){return h;},getSmoothLinePath:function(){return u;},linePathToAreaPath:function(){return d;}});var r=n("852bbaa9")._(n("cf6c8813")),i=n("d71952b4"),o=n("22b52967"),a=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e));};function s(t){return(0,o.map)(t,function(t,e){return[0===e?"M":"L",t[0],t[1]];});}function u(t){if(t.length<=2)return s(t);var e=[];(0,o.each)(t,function(t){(0,o.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1]);});var n=r.catmullRom2Bezier(e,!1),i=(0,o.head)(t),a=i[0],u=i[1];return n.unshift(["M",a,u]),n;}function c(t,e,n,r){void 0===r&&(r=!0);var a=new i.Linear({values:t}),c=new i.Category({values:(0,o.map)(t,function(t,e){return e;})}),l=(0,o.map)(t,function(t,r){return[c.scale(r)*e,n-a.scale(t)*n];});return r?u(l):s(l);}function l(t,e,n,r){void 0===r&&(r=5);for(var a=new i.Linear({values:t}),s=new i.Category({values:(0,o.map)(t,function(t,e){return e;})}),u=(0,o.map)(t,function(t,r){return[s.scale(r)*e,n-a.scale(t)*n];}),c=[],l=0;l<u.length;l++){var f=u[l],d=h({x:f[0],y:f[1],y0:n,size:r});c.push.apply(c,d);}return g(c);}function f(t,e){var n=new i.Linear({values:t}),r=Math.max(0,n.min);return e-n.scale(r)*e;}function d(t,e,n,r){var i=a([],t,!0),o=f(r,n);return i.push(["L",e,o]),i.push(["L",0,o]),i.push(["Z"]),i;}function h(t){var e,n,r,i,a=t.x,s=t.y,u=t.y0,c=t.size;(0,o.isArray)(s)?(e=s[0],n=s[1]):(e=u,n=s),(0,o.isArray)(a)?(r=a[0],i=a[1]):(r=a-c/2,i=a+c/2);var l=[{x:r,y:e},{x:r,y:n}];return l.push({x:i,y:n},{x:i,y:e}),l;}function g(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;i<o;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n;}},f49718ea:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{sinIn:function(){return o;},sinInOut:function(){return s;},sinOut:function(){return a;}});var r=Math.PI,i=r/2;function o(t){return 1==+t?1:1-Math.cos(t*i);}function a(t){return Math.sin(t*i);}function s(t){return(1-Math.cos(r*t))/2;}},f5119026:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"getOffScreenContext",{enumerable:!0,get:function(){return i;}});var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d");}return r;}},f517d45c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"DraggableCore",{enumerable:!0,get:function(){return l.default;}}),e.default=void 0;var r=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=h(void 0);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o];}return r.default=t,n&&n.set(t,r),r;}(n("5b220c3d")),i=d(n("3a7a6ddb")),o=d(n("537ebc91")),a=d(n("580b457d")),s=n("9b61cbc5"),u=n("3f784af4"),c=n("77bf7b9a"),l=d(n("d2d45174")),f=d(n("55c32f33"));function d(t){return t&&t.__esModule?t:{default:t};}function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e;})(t);}function g(){return(g=Object.assign?Object.assign.bind():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;}).apply(this,arguments);}function p(t,e,n){var r;return(e="symbol"==typeof(r=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}(e,"string"))?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;}class v extends r.Component{static getDerivedStateFromProps(t,e){let{position:n}=t,{prevPropsPosition:r}=e;return n&&(!r||n.x!==r.x||n.y!==r.y)?((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}}):null;}constructor(t){super(t),p(this,"onDragStart",(t,e)=>{if((0,f.default)("Draggable: onDragStart: %j",e),!1===this.props.onStart(t,(0,u.createDraggableData)(this,e)))return!1;this.setState({dragging:!0,dragged:!0});}),p(this,"onDrag",(t,e)=>{if(!this.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",e);let n=(0,u.createDraggableData)(this,e),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:t,y:e}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,o]=(0,u.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(t-r.x),r.slackY=this.state.slackY+(e-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y;}if(!1===this.props.onDrag(t,n))return!1;this.setState(r);}),p(this,"onDragStop",(t,e)=>{if(!this.state.dragging||!1===this.props.onStop(t,(0,u.createDraggableData)(this,e)))return!1;(0,f.default)("Draggable: onDragStop: %j",e);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:t,y:e}=this.props.position;n.x=t,n.y=e;}this.setState(n);}),this.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:{...t.position},slackX:0,slackY:0,isElementSVG:!1},t.position&&!(t.onDrag||t.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode() instanceof window.SVGElement&&this.setState({isElementSVG:!0});}componentWillUnmount(){this.setState({dragging:!1});}findDOMNode(){var t,e;return null!==(t=null===(e=this.props)||void 0===e||null===(e=e.nodeRef)||void 0===e?void 0:e.current)&&void 0!==t?t:o.default.findDOMNode(this);}render(){let{axis:t,bounds:e,children:n,defaultPosition:i,defaultClassName:o,defaultClassNameDragging:c,defaultClassNameDragged:f,position:d,positionOffset:h,scale:p,...v}=this.props,m={},y=null,b=!d||this.state.dragging,x=d||i,_={x:(0,u.canDragX)(this)&&b?this.state.x:x.x,y:(0,u.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(_,h):m=(0,s.createCSSTransform)(_,h);let E=(0,a.default)(n.props.className||"",o,{[c]:this.state.dragging,[f]:this.state.dragged});return r.createElement(l.default,g({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:E,style:{...n.props.style,...m},transform:y}));}}e.default=v,p(v,"displayName","Draggable"),p(v,"propTypes",{...l.default.propTypes,axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),p(v,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1});},f59804c5:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw Error("invalid nodes data!");return n&&n.forEach(function(t,e){o[t.id]=e,i.push([]);}),r&&r.forEach(function(t){var n=t.source,r=t.target,a=o[n],s=o[r];(a||0===a)&&(s||0===s)&&(i[a][s]=1,e||(i[s][a]=1));}),i;};},f5b38a88:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]";};},f5de0b23:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{hasSelfLoop:function(){return u;},isGraph:function(){return o;},isNullGraph:function(){return s;},isSimpleGraph:function(){return a;}});var r=n("777fffbe")._(n("d7fbc71b"));function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r;}function o(t){return t instanceof r.default;}function a(t){if(t.isMultigraph())return!1;for(var e=t.edges(),n=new Map,r=0;r<e.length;r++){var o,a=e[r];if(a.v===a.w)return!1;var s=function(t){if(Array.isArray(t))return t;}(o=[a.v,a.w].sort())||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(t){s=!0,r=t;}finally{try{a||null==i.return||i.return();}finally{if(s)throw r;}}return o;}}(o,2)||function(t,e){if(t){if("string"==typeof t)return i(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,2);}}(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}(),u=s[0],c=s[1],l="".concat(u,"-").concat(c);if(n.has(l))return!1;n.set(l,!0);}return!0;}function s(t){return 0===t.nodes().length;}function u(t){for(var e=t.edges(),n=0;n<e.length;n++){var r=e[n];if(r.v===r.w)return!0;}return!1;}},f671c984:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("f2a74934")),i=function(t,e){return(0,r.default)(t,e,"post");};},f6fd9972:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{ext:function(){return o;},mat3:function(){return i.mat3;},vec2:function(){return i.vec2;},vec3:function(){return i.vec3;}});var r=n("852bbaa9"),i=n("b018614c"),o=r._(n("5c0b3490"));},f7cef5ca:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("777fffbe"),i=n("22b52967"),o=r._(n("233dfe4c")),a=function(){function t(t){this.graph=t,this.destroyed=!1,this.modes=t.get("modes")||{default:[]},this.formatModes(),this.mode=t.get("defaultMode")||"default",this.currentBehaves=[],this.setMode(this.mode);}return t.prototype.formatModes=function(){var t=this.modes;(0,i.each)(t,function(t){(0,i.each)(t,function(e,n){(0,i.isString)(e)&&(t[n]={type:e});});});},t.prototype.setBehaviors=function(t){var e,n=this.graph,r=this.modes[t],a=[];(0,i.each)(r||[],function(t){var r=o.default.getBehavior(t.type||t);r&&((e=new r(t)).bind(n),a.push(e));}),this.currentBehaves=a;},t.mergeBehaviors=function(t,e){return(0,i.each)(e,function(e){0>t.indexOf(e)&&((0,i.isString)(e)&&(e={type:e}),t.push(e));}),t;},t.filterBehaviors=function(t,e){var n=[];return t.forEach(function(t){var r="";r=(0,i.isString)(t)?t:t.type,0>e.indexOf(r)&&n.push(t);}),n;},t.prototype.setMode=function(t){var e=this.modes,n=this.graph;e[t]&&(n.emit("beforemodechange",{mode:t}),(0,i.each)(this.currentBehaves,function(t){t.delegate&&t.delegate.remove(),t.unbind(n);}),this.setBehaviors(t),n.emit("aftermodechange",{mode:t}),this.mode=t);},t.prototype.getMode=function(){return this.mode;},t.prototype.manipulateBehaviors=function(e,n,r){var o,a=this;if(o=(0,i.isArray)(e)?e:[e],(0,i.isArray)(n))return(0,i.each)(n,function(e){a.modes[e]?r?a.modes[e]=t.mergeBehaviors(a.modes[e]||[],o):a.modes[e]=t.filterBehaviors(a.modes[e]||[],o):r&&(a.modes[e]=o);}),this;var s=n;return n||(s=this.mode),!this.modes[s]&&r&&(this.modes[s]=o),r?this.modes[s]=t.mergeBehaviors(this.modes[s]||[],o):this.modes[s]=t.filterBehaviors(this.modes[s]||[],o),this.formatModes(),this.setMode(this.mode),this;},t.prototype.updateBehavior=function(t,e,n){(0,i.isString)(t)&&(t={type:t});var r=[];if(n&&n!==this.mode&&"default"!==n){if(!(r=this.modes[n])||!r.length)return console.warn("Update behavior failed! There is no behaviors in this mode on the graph."),this;for(var o=r.length,a=0;a<o;a++){var s=r[a];if(s.type===t.type||s===t.type){s===t.type&&(s={type:s}),Object.assign(s,e),r[a]=s;break;}a===o-1&&console.warn("Update behavior failed! There is no such behavior in the mode");}}else{if(!(r=this.currentBehaves)||!r.length)return console.warn("Update behavior failed! There is no behaviors in this mode on the graph."),this;for(var u=r.length,a=0;a<u;a++){var s=r[a];if(s.type===t.type){s.updateCfg(e);break;}a===u-1&&console.warn("Update behavior failed! There is no such behavior in the mode");}}return this;},t.prototype.destroy=function(){this.graph=null,this.modes=null,this.currentBehaves=null,this.destroyed=!0;},t;}();},f7ecdc20:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return a;}});var r=n("22b52967"),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,o=/[^\s\,]+/ig,a=function(t){var e=t||[];return(0,r.isArray)(e)?e:(0,r.isString)(e)?(e=e.match(i),(0,r.each)(e,function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i;}(0,r.each)(t,function(e,n){isNaN(e)||(t[n]=+e);}),e[n]=t;}),e):void 0;};},f8288ad6:function(t,e,n){"use strict";function r(t){return t*t*t;}function i(t){return--t*t*t+1;}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2;}n.d(e,"__esModule",{value:!0}),n.e(e,{cubicIn:function(){return r;},cubicInOut:function(){return o;},cubicOut:function(){return i;}});},f8b04be3:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("22b52967"),i=null,o={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0;}};},getEvents:function(){return"mouseenter"===this.get("trigger")?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"};},setOnTouchStart:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault();}catch(t){console.warn("Touch original event not exist!");}this.setAllItemStates(t);},clearOnTouchStart:function(t){try{var e=t.originalEvent.touches,n=e[0],r=e[1];if(n&&r)return;t.preventDefault();}catch(t){console.warn("Touch original event not exist!");}this.clearActiveState(t);},setAllItemStates:function(t){clearTimeout(this.timer),this.throttleSetAllItemStates(t,this);},clearActiveState:function(t){var e=this;this.shouldClearStatusOnSecond&&(i=null),this.timer=setTimeout(function(){e.throttleClearActiveState(t,e);},50);},throttleSetAllItemStates:(0,r.throttle)(function(t,e){var n=t.item,r=e.graph;if(r&&!r.destroyed&&(e.item=n,e.shouldUpdate(t.item,{event:t,action:"activate"},e))){var o=e.shouldClearStatusOnSecond,a=n.getModel().id;if(i===a&&o){e.throttleClearActiveState(t,e),i=null;return;}for(var s=e.activeState,u=e.inactiveState,c=r.getNodes(),l=r.getCombos(),f=r.getEdges(),d=r.get("vedges"),h=c.length,g=l.length,p=f.length,v=d.length,m=e.inactiveItems||{},y=e.activeItems||{},b=0;b<h;b++){var x=c[b],_=x.getID(),E=x.hasState("selected");e.resetSelected&&E&&r.setItemState(x,"selected",!1),y[_]&&(r.setItemState(x,s,!1),delete y[_]),u&&!m[_]&&(r.setItemState(x,u,!0),m[_]=x);}for(var b=0;b<g;b++){var w=l[b],M=w.getID(),E=w.hasState("selected");e.resetSelected&&E&&r.setItemState(w,"selected",!1),y[M]&&(r.setItemState(w,s,!1),delete y[M]),u&&!m[M]&&(r.setItemState(w,u,!0),m[M]=w);}for(var b=0;b<p;b++){var C=f[b],A=C.getID();y[A]&&(r.setItemState(C,s,!1),delete y[A]),u&&!m[A]&&(r.setItemState(C,u,!0),m[A]=C);}for(var b=0;b<v;b++){var S=d[b],D=S.getID();y[D]&&(r.setItemState(S,s,!1),delete y[D]),u&&!m[D]&&(r.setItemState(S,u,!0),m[D]=S);}if(n&&!n.destroyed){u&&(r.setItemState(n,u,!1),delete m[n.getID()]),y[n.getID()]||(r.setItemState(n,s,!0),y[n.getID()]=n);for(var I=n.getEdges(),T=I.length,b=0;b<T;b++){var C=I[b],A=C.getID(),k=void 0,F=(k=C.getSource()===n?C.getTarget():C.getSource()).getID();u&&m[F]&&(r.setItemState(k,u,!1),delete m[F]),y[F]||(r.setItemState(k,s,!0),y[F]=k),m[A]&&(r.setItemState(C,u,!1),delete m[A]),y[A]||(r.setItemState(C,s,!0),y[A]=C),C.toFront();}}e.activeItems=y,e.inactiveItems=m,o&&(i=n.getModel().id),r.emit("afteractivaterelations",{item:t.item,action:"activate"});}},50,{trailing:!0,leading:!0}),throttleClearActiveState:(0,r.throttle)(function(t,e){var n=e.get("graph");if(n&&!n.destroyed&&e.shouldUpdate(t.item,{event:t,action:"deactivate"},e)){var r=e.activeState,i=e.inactiveState,o=e.activeItems||{},a=e.inactiveItems||{};Object.values(o).filter(function(t){return!t.destroyed;}).forEach(function(t){n.clearItemStates(t,r);}),Object.values(a).filter(function(t){return!t.destroyed;}).forEach(function(t){n.clearItemStates(t,i);}),e.activeItems={},e.inactiveItems={},n.emit("afteractivaterelations",{item:t.item||e.get("item"),action:"deactivate"});}},50,{trailing:!0,leading:!0})};},f96e2b2f:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("533b8f72")),i=function(t){if((0,r.default)(t))return t.reduce(function(t,e){return Math.max(t,e);},t[0]);};},f9c106bb:function(t,e,n){"use strict";function r(t){let e=+this._x.call(null,t),n=+this._y.call(null,t);return i(this.cover(e,n),e,n,t);}function i(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,u,c,l,f,d,h=t._root,g={data:r},p=t._x0,v=t._y0,m=t._x1,y=t._y1;if(!h)return t._root=g,t;for(;h.length;)if((c=e>=(o=(p+m)/2))?p=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a,i=h,!(h=h[f=l<<1|c]))return i[f]=g,t;if(s=+t._x.call(null,h.data),u=+t._y.call(null,h.data),e===s&&n===u)return g.next=h,i?i[f]=g:t._root=g,t;do i=i?i[f]=[,,,,]:t._root=[,,,,],(c=e>=(o=(p+m)/2))?p=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a;while((f=l<<1|c)==(d=(u>=a)<<1|s>=o))return i[d]=h,i[f]=g,t;}function o(t){var e,n,r,o,a=t.length,s=Array(a),u=Array(a),c=1/0,l=1/0,f=-1/0,d=-1/0;for(n=0;n<a;++n)!(isNaN(r=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e)))&&(s[n]=r,u[n]=o,r<c&&(c=r),r>f&&(f=r),o<l&&(l=o),o>d&&(d=o));if(c>f||l>d)return this;for(this.cover(c,l).cover(f,d),n=0;n<a;++n)i(this,s[n],u[n],t[n]);return this;}n.d(e,"__esModule",{value:!0}),n.e(e,{addAll:function(){return o;},default:function(){return r;}});},f9d3d7de:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"isSafari",{enumerable:!0,get:function(){return r;}});var r="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);},f9f31366:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t;}).apply(this,arguments);};Object.defineProperty(e,"__esModule",{value:!0}),e.ComboCombinedLayout=void 0;var a=n("19dcb3fc"),s=n("5092cda5"),u=n("38788347"),c=n("76d43d1c"),l=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.nodes=[],n.edges=[],n.combos=[],n.comboEdges=[],n.comboPadding=10,n.comboTrees=[],n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{};},e.prototype.execute=function(){var t=this.nodes,e=this.center;if(!t||0===t.length){this.onLayoutEnd&&this.onLayoutEnd();return;}if(1===t.length){t[0].x=e[0],t[0].y=e[1],this.onLayoutEnd&&this.onLayoutEnd();return;}this.initVals(),this.run(),this.onLayoutEnd&&this.onLayoutEnd();},e.prototype.run=function(){var t,e=this.nodes,n=this.edges,r=this.combos,i=this.comboEdges,s=this.center,l={};e.forEach(function(t){l[t.id]=t;});var f={};r.forEach(function(t){f[t.id]=t;});var d=this.getInnerGraphs(l),h=[],g=[],p={},v=!0;this.comboTrees.forEach(function(t){var e=d[t.id];if(e){var n=o(o({},t),{x:e.x||f[t.id].x,y:e.y||f[t.id].y,fx:e.fx||f[t.id].fx,fy:e.fy||f[t.id].fy,mass:e.mass||f[t.id].mass,size:e.size});g.push(n),isNaN(n.x)||0===n.x||isNaN(n.y)||0===n.y?(n.x=100*Math.random(),n.y=100*Math.random()):v=!1,h.push(t.id),(0,u.traverseTreeUp)(t,function(e){return e.id!==t.id&&(p[e.id]=t.id),!0;});}}),e.forEach(function(t){if(!t.comboId||!f[t.comboId]){var e=o({},t);g.push(e),isNaN(e.x)||0===e.x||isNaN(e.y)||0===e.y?(e.x=100*Math.random(),e.y=100*Math.random()):v=!1,h.push(t.id);}});var m=[];if(n.concat(i).forEach(function(t){var e=p[t.source]||t.source,n=p[t.target]||t.target;e!==n&&h.includes(e)&&h.includes(n)&&m.push({source:e,target:n});}),null==g?void 0:g.length){if(1===g.length)g[0].x=s[0],g[0].y=s[1];else{var y={nodes:g,edges:m},b=this.outerLayout||new c.GForceLayout({gravity:1,factor:4,linkDistance:function(t,e,n){var r,i;return Math.min(1.5*((((null===(r=e.size)||void 0===r?void 0:r[0])||30)+((null===(i=n.size)||void 0===i?void 0:i[0])||30))/2),700);}}),x=null===(t=b.getType)||void 0===t?void 0:t.call(b);b.updateCfg({center:s,kg:5,preventOverlap:!0,animate:!1}),v&&a.FORCE_LAYOUT_TYPE_MAP[x]&&(g.length<100?new c.MDSLayout:new c.GridLayout).layout(y),b.layout(y);}g.forEach(function(t){var e=d[t.id];if(!e){var n=l[t.id];n&&(n.x=t.x,n.y=t.y);return;}e.visited=!0,e.x=t.x,e.y=t.y,e.nodes.forEach(function(e){e.x+=t.x,e.y+=t.y;});});}for(var _=Object.keys(d),E=_.length-1;E>=0;E--)!function(t){var e=_[t],n=d[e];n&&(n.nodes.forEach(function(t){n.visited||(t.x+=n.x||0,t.y+=n.y||0),l[t.id]&&(l[t.id].x=t.x,l[t.id].y=t.y);}),f[e]&&(f[e].x=n.x,f[e].y=n.y));}(E);return{nodes:e,edges:n,combos:r,comboEdges:i};},e.prototype.getInnerGraphs=function(t){var e=this.comboTrees,n=this.nodeSize,r=this.edges,i=this.comboPadding,a=this.spacing,s={},l=this.innerLayout||new c.ConcentricLayout({type:"concentric",sortBy:"id"});return l.center=[0,0],l.preventOverlap=!0,l.nodeSpacing=a,(e||[]).forEach(function(e){(0,u.traverseTreeUp)(e,function(e){var a,c=(null==i?void 0:i(e))||10;if((0,u.isArray)(c)&&(c=Math.max.apply(Math,c)),null===(a=e.children)||void 0===a?void 0:a.length){var f=e.children.map(function(e){if("combo"===e.itemType)return s[e.id];var n=t[e.id]||{};return o(o({},n),e);}),d=f.map(function(t){return t.id;}),h={nodes:f,edges:r.filter(function(t){return d.includes(t.source)&&d.includes(t.target);})},g=1/0;f.forEach(function(t){var e;t.size||(t.size=(null===(e=s[t.id])||void 0===e?void 0:e.size)||(null==n?void 0:n(t))||[30,30]),(0,u.isNumber)(t.size)&&(t.size=[t.size,t.size]),g>t.size[0]&&(g=t.size[0]),g>t.size[1]&&(g=t.size[1]);}),l.layout(h);var p=(0,u.getLayoutBBox)(f),v=p.minX,m=p.minY,y=p.maxX,b=p.maxY,x={x:(y+v)/2,y:(b+m)/2};h.nodes.forEach(function(t){t.x-=x.x,t.y-=x.y;});var _=Math.max(y-v,g)+2*c,E=Math.max(b-m,g)+2*c;s[e.id]={id:e.id,nodes:f,size:[_,E]};}else if("combo"===e.itemType){var w=c?[2*c,2*c]:[30,30];s[e.id]={id:e.id,nodes:[],size:w};}return!0;});}),s;},e.prototype.initVals=function(){var t,e,n,r=this.nodeSize,i=this.spacing;if(e=(0,u.isNumber)(i)?function(){return i;}:(0,u.isFunction)(i)?i:function(){return 0;},this.spacing=e,r){if((0,u.isFunction)(r))t=function(t){var n=r(t),i=e(t);return(0,u.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+i)/2:((n||10)+i)/2;};else if((0,u.isArray)(r)){var o=(r[0]>r[1]?r[0]:r[1])/2;t=function(t){return o+e(t)/2;};}else{var a=r/2;t=function(t){return a+e(t)/2;};}}else t=function(t){var n=e(t);if(t.size){if((0,u.isArray)(t.size)){var r=t.size[0]>t.size[1]?t.size[0]:t.size[1];return(r+n)/2;}if((0,u.isObject)(t.size)){var r=t.size.width>t.size.height?t.size.width:t.size.height;return(r+n)/2;}return(t.size+n)/2;}return 10+n/2;};this.nodeSize=t;var s=this.comboPadding;n=(0,u.isNumber)(s)?function(){return s;}:(0,u.isArray)(s)?function(){return Math.max.apply(null,s);}:(0,u.isFunction)(s)?s:function(){return 0;},this.comboPadding=n;},e.prototype.getType=function(){return"comboCombined";},e;}(s.Base);e.ComboCombinedLayout=l;},f9f4a5de:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("363e6d7b");function i(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var o=(e-t)/i,a=Math.pow(10,Math.floor(Math.log10(o))),s=a;2*a-o<1.5*(o-s)&&(s=2*a,5*a-o<2.75*(o-s)&&(s=5*a,10*a-o<1.5*(o-s)&&(s=10*a)));for(var u=Math.ceil(e/s),c=Math.floor(t/s),l=Math.max(u*s,e),f=Math.min(c*s,t),d=Math.floor((l-f)/s)+1,h=Array(d),g=0;g<d;g++)h[g]=(0,r.prettyNumber)(f+g*s);return{min:f,max:l,ticks:h};}},f9fcb714:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"path2Absolute",{enumerable:!0,get:function(){return o;}});var r=n("3cdc68da"),i=n("cb98cfaf");function o(t){if((0,r.isAbsoluteArray)(t))return[].concat(t);var e=(0,i.parsePathString)(t),n=0,o=0,a=0,s=0;return e.map(function(t){var e,r=t.slice(1).map(Number),i=t[0],u=i.toUpperCase();if("M"===i)return n=r[0],o=r[1],a=n,s=o,["M",n,o];if(i!==u)switch(u){case"A":e=[u,r[0],r[1],r[2],r[3],r[4],r[5]+n,r[6]+o];break;case"V":e=[u,r[0]+o];break;case"H":e=[u,r[0]+n];break;default:e=[u].concat(r.map(function(t,e){return t+(e%2?o:n);}));}else e=[u].concat(r);var c=e.length;switch(u){case"Z":n=a,o=s;break;case"H":n=e[1];break;case"V":o=e[1];break;default:n=e[c-2],o=e[c-1],"M"===u&&(a=n,s=o);}return e;});}},fa0c0f80:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return u;}});var r=n("777fffbe"),i=n("4c6d310c"),o=n("8d42ebc3"),a=n("22b52967"),s=n("7048382e"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e;}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1});},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,function(e,i){if("startArrow"===i||"endArrow"===i){if(e){var o=(0,a.isObject)(e)?t.addArrow(n,s.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,s.SVG_ATTR_MAP[i]);r.setAttribute(s.SVG_ATTR_MAP[i],"url(#"+o+")");}else r.removeAttribute(s.SVG_ATTR_MAP[i]);}else s.SVG_ATTR_MAP[i]&&r.setAttribute(s.SVG_ATTR_MAP[i],e);});},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return o.Line.length(e,n,r,i);},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2;return o.Line.pointAt(n,r,i,a,t);},e;}(r._(n("1bfab17d")).default);},fa411037:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("f59804c5"))&&r.__esModule?r:{default:r};e.default=function(t,e){for(var n=(0,i.default)(t,e),r=[],o=n.length,a=0;a<o;a+=1){r[a]=[];for(var s=0;s<o;s+=1)a===s?r[a][s]=0:0!==n[a][s]&&n[a][s]?r[a][s]=n[a][s]:r[a][s]=1/0;}for(var u=0;u<o;u+=1)for(var a=0;a<o;a+=1)for(var s=0;s<o;s+=1)r[a][s]>r[a][u]+r[u][s]&&(r[a][s]=r[a][u]+r[u][s]);return r;};},fb0b94ef:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("777fffbe")._(n("74c198b1")),i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.default)([].concat.apply([],t));};},fb3d3757:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{Layout:function(){return i.Layouts;},TreeLayout:function(){return o.default;},registerLayout:function(){return a;}});var r=n("777fffbe"),i=n("649d7edf"),o=r._(n("c24d47e5"));(0,i.registerLayout)("grid",i.GridLayout),(0,i.registerLayout)("random",i.RandomLayout),(0,i.registerLayout)("force",i.ForceLayout),(0,i.registerLayout)("circular",i.CircularLayout),(0,i.registerLayout)("dagre",i.DagreLayout),(0,i.registerLayout)("dagreCompound",i.DagreCompoundLayout),(0,i.registerLayout)("radial",i.RadialLayout),(0,i.registerLayout)("concentric",i.ConcentricLayout),(0,i.registerLayout)("mds",i.MDSLayout),(0,i.registerLayout)("fruchterman",i.FruchtermanLayout),(0,i.registerLayout)("fruchterman-gpu",i.FruchtermanGPULayout),(0,i.registerLayout)("gForce",i.GForceLayout),(0,i.registerLayout)("force2",i.Force2Layout),(0,i.registerLayout)("gForce-gpu",i.GForceGPULayout),(0,i.registerLayout)("comboForce",i.ComboForceLayout),(0,i.registerLayout)("comboCombined",i.ComboCombinedLayout),(0,i.registerLayout)("forceAtlas2",i.ForceAtlas2Layout);var a=function(t,e){e.isCustomLayout=!0,i.Layouts[t]=(0,i.registerLayout)(t,e);};},fb4f4acf:function(t,e,n){"use strict";function r(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n;}n.d(e,"__esModule",{value:!0}),n.d(e,"createDOM",{enumerable:!0,get:function(){return r;}});},fb79bacd:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{GADDI:function(){return w.default;},Stack:function(){return M.default;},breadthFirstSearch:function(){return a.default;},connectedComponent:function(){return s.default;},cosineSimilarity:function(){return b.default;},default:function(){return S;},depthFirstSearch:function(){return l.default;},detectAllCycles:function(){return c.detectAllCycles;},detectAllDirectedCycle:function(){return c.detectAllDirectedCycle;},detectAllUndirectedCycle:function(){return c.detectAllUndirectedCycle;},detectCycle:function(){return c.default;},detectDirectedCycle:function(){return A;},dijkstra:function(){return f.default;},findAllPath:function(){return d.findAllPath;},findShortestPath:function(){return d.findShortestPath;},floydWarshall:function(){return h.default;},getAdjMatrix:function(){return o.default;},getDegree:function(){return u.default;},getInDegree:function(){return u.getInDegree;},getNeighbors:function(){return C.getNeighbors;},getOutDegree:function(){return u.getOutDegree;},iLouvain:function(){return v.default;},kCore:function(){return m.default;},kMeans:function(){return y.default;},labelPropagation:function(){return g.default;},louvain:function(){return p.default;},minimumSpanningTree:function(){return _.default;},nodesCosineSimilarity:function(){return x.default;},pageRank:function(){return E.default;}});var r=n("777fffbe"),i=n("852bbaa9"),o=r._(n("de457467")),a=r._(n("d0f53cc8")),s=r._(n("61a00822")),u=i._(n("ccc4dfa3")),c=i._(n("51202462")),l=r._(n("17ebea90")),f=r._(n("721bd00a")),d=n("07041b9a"),h=r._(n("02127527")),g=r._(n("69679fcd")),p=r._(n("84d858ba")),v=r._(n("ab1c48d3")),m=r._(n("e7803c8d")),y=r._(n("ed978296")),b=r._(n("4f024b38")),x=r._(n("bfbaa21e")),_=r._(n("ee36a3fc")),E=r._(n("b14590ab")),w=r._(n("5ca14ea6")),M=r._(n("f1dce1f8")),C=n("f29fe526"),A=c.default,S={getAdjMatrix:o.default,breadthFirstSearch:a.default,connectedComponent:s.default,getDegree:u.default,getInDegree:u.getInDegree,getOutDegree:u.getOutDegree,detectCycle:c.default,detectDirectedCycle:A,detectAllCycles:c.detectAllCycles,detectAllDirectedCycle:c.detectAllDirectedCycle,detectAllUndirectedCycle:c.detectAllUndirectedCycle,depthFirstSearch:l.default,dijkstra:f.default,findAllPath:d.findAllPath,findShortestPath:d.findShortestPath,floydWarshall:h.default,labelPropagation:g.default,louvain:p.default,iLouvain:v.default,kCore:m.default,kMeans:y.default,cosineSimilarity:b.default,nodesCosineSimilarity:x.default,minimumSpanningTree:_.default,pageRank:E.default,getNeighbors:C.getNeighbors,Stack:M.default,GADDI:w.default};},fbad45a8:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return v;}});var r=n("777fffbe"),i=n("852bbaa9"),o=r._(n("a886aa58")),a=r._(n("00b43322")),s=r._(n("73197cf8")),u=i._(n("5b220c3d")),c=n("537ebc91"),l=r._(n("c09d83c7")),f=n("0e8397d7"),d=n("0accb1b0"),h=n("ed66dedc"),g=["component","componentProps","animation","attr","paused","reverse","repeat","repeatDelay","yoyo","moment","onChange","onChangeTimeline","resetStyle","killPrevAnim"],p=u.default.forwardRef(function(t,e){var n=t.component,r=void 0===n?"div":n,i=t.componentProps,p=t.animation,v=t.attr,m=t.paused,y=t.reverse,b=t.repeat,x=t.repeatDelay,_=t.yoyo,E=t.moment,w=t.onChange,M=t.onChangeTimeline,C=t.resetStyle,A=t.killPrevAnim,S=void 0===A||A,D=(0,s.default)(t,g),I=D||{},T=I.children,k=I.className,F=I.style,N=void 0===F?{}:F,O=(0,u.useRef)(),B=(0,u.useRef)(),P=(0,u.useRef)(),L=function(t,e){var n=P.current;if(n){if("moment"===t){"number"==typeof e&&n.goto(e,m);return;}n[t]=!!e;}};(0,h.useIsomorphicLayoutEffect)(function(){L("paused",m);},[m]),(0,h.useIsomorphicLayoutEffect)(function(){L("moment",E);},[E]),(0,h.useIsomorphicLayoutEffect)(function(){L("reverse",y);},[y]),(0,h.useIsomorphicLayoutEffect)(function(){if(!O.current)return console.warn("Warning: TweenOne domRef is error.");if(!(0,d.objectEqual)(p,B.current)){var t=(0,d.dataToArray)(O.current).map(function(t){return t instanceof Element||!(t instanceof u.default.Component)?t:(0,c.findDOMNode)(t);}).filter(function(t,e){return t instanceof Element?t:(console.warn("Warning: TweenOne tag[".concat(e,"] is not dom.")),!1);});if(P.current&&S&&P.current.kill(),C&&P.current){var e=r?N:(0,a.default)((0,a.default)({},N),T.props.style),n=Object.keys(e).map(function(t){return"".concat((0,f.toStyleUpperCase)(t),":").concat((0,f.stylesToCss)(t,e[t]));}).join(";");t.forEach(function(t){t.setAttribute("style",n),delete t._tweenOneVars;});}P.current=p&&(0,l.default)(t,{animation:p,attr:v,yoyo:_,moment:E,repeat:b,reverse:y,paused:m,repeatDelay:x,onChange:w,onChangeTimeline:M}),B.current=p;}},[p]),(0,u.useEffect)(function(){return function(){P.current&&P.current.kill&&P.current.kill();};},[]);var j=function(t){O.current=t,e&&"current"in e?e.current=t:"function"==typeof e&&e(t);};if(!r&&T&&"string"!=typeof T&&"boolean"!=typeof T&&"number"!=typeof T){var R=T.props||{},z=R.style,G=R.className,Y=void 0===G?"":G,X=(0,a.default)((0,a.default)({},z),N),U=k?"".concat(k," ").concat(Y).trim():Y;return u.default.cloneElement(T,{style:X,ref:j,className:(0,o.default)(new Set(U.split(/\s+/))).join(" ").trim()||void 0});}return r?(0,u.createElement)(r,(0,a.default)((0,a.default)({ref:j},D),i)):(console.warn("Warning: component is null, children must be ReactElement."),T);});p.isTweenOne=!0,p.displayName="TweenOne";var v=p;},fc209853:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=n("777fffbe")._(n("2a56d5d2")).default;},fc48e500:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return r;}});var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0;};},fc76fc5c:function(t,e,n){var r,i;r=this,i=function(t,e,n,r){"use strict";class i{constructor({file:t,sourceRoot:n}={}){this._names=new e.SetArray,this._sources=new e.SetArray,this._sourcesContent=[],this._mappings=[],this.file=t,this.sourceRoot=n,this._ignoreList=new e.SetArray;}}function o(t){let{_mappings:e,_sources:n,_sourcesContent:r,_names:i,_ignoreList:o}=t;return function(t){let{length:e}=t,n=e;for(let e=n-1;e>=0&&!(t[e].length>0);n=e,e--);n<e&&(t.length=n);}(e),{version:3,file:t.file||void 0,names:i.array,sourceRoot:t.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:e,ignoreList:o.array};}function a(t,n,r,i,o,a,u,c,l){let{_mappings:f,_sources:d,_sourcesContent:h,_names:g}=n,p=function(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e];}(f,r),v=function(t,e){let n=t.length;for(let r=n-1;r>=0&&!(e>=t[r][0]);n=r--);return n;}(p,i);if(!o){if(t&&(0===v||1===p[v-1].length))return;return s(p,v,[i]);}let m=e.put(d,o),y=c?e.put(g,c):-1;if(m===h.length&&(h[m]=null!=l?l:null),!(t&&function(t,e,n,r,i,o){if(0===e)return!1;let a=t[e-1];return 1!==a.length&&n===a[1]&&r===a[2]&&i===a[3]&&o===(5===a.length?a[4]:-1);}(p,v,m,a,u,y)))return s(p,v,c?[i,m,a,u,y]:[i,m,a,u]);}function s(t,e,n){for(let n=t.length;n>e;n--)t[n]=t[n-1];t[e]=n;}function u(t,n){for(let r=0;r<n.length;r++)e.put(t,n[r]);}function c(t,e,n){let{generated:r,source:i,original:o,name:s,content:u}=n;return i?a(t,e,r.line-1,r.column,i,o.line-1,o.column,s,u):a(t,e,r.line-1,r.column,null,null,null,null,null);}t.GenMapping=i,t.addMapping=function(t,e){return c(!1,t,e);},t.addSegment=function(t,e,n,r,i,o,s,u){return a(!1,t,e,n,r,i,o,s,u);},t.allMappings=function(t){let e=[],{_mappings:n,_sources:r,_names:i}=t;for(let t=0;t<n.length;t++){let o=n[t];for(let n=0;n<o.length;n++){let a,s,u;let c=o[n],l={line:t+1,column:c[0]};1!==c.length&&(a=r.array[c[1]],s={line:c[2]+1,column:c[3]},5===c.length&&(u=i.array[c[4]])),e.push({generated:l,source:a,original:s,name:u});}}return e;},t.fromMap=function(t){let e=new r.TraceMap(t),n=new i({file:e.file,sourceRoot:e.sourceRoot});return u(n._names,e.names),u(n._sources,e.sources),n._sourcesContent=e.sourcesContent||e.sources.map(()=>null),n._mappings=r.decodedMappings(e),e.ignoreList&&u(n._ignoreList,e.ignoreList),n;},t.maybeAddMapping=(t,e)=>c(!0,t,e),t.maybeAddSegment=(t,e,n,r,i,o,s,u)=>a(!0,t,e,n,r,i,o,s,u),t.setIgnore=function(t,n,r=!0){let{_sources:i,_sourcesContent:o,_ignoreList:a}=t,s=e.put(i,n);s===o.length&&(o[s]=null),r?e.put(a,s):e.remove(a,s);},t.setSourceContent=function(t,n,r){let{_sources:i,_sourcesContent:o}=t;o[e.put(i,n)]=r;},t.toDecodedMap=o,t.toEncodedMap=function(t){let e=o(t);return Object.assign(Object.assign({},e),{mappings:n.encode(e.mappings)});},Object.defineProperty(t,"__esModule",{value:!0});},"object"==typeof e&&void 0!==t?i(e,n("6bc0d57e"),n("8daaab2c"),n("27f14eb4")):i((r="undefined"!=typeof globalThis?globalThis:r||self).genMapping={},r.setArray,r.sourcemapCodec,r.traceMapping);},fc84b712:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{default:function(){return o;},gamma:function(){return i;}});var r=n("777fffbe")._(n("3187df38"));function i(t){return 1==(t=+t)?o:function(e,n){var i,o,a;return n-e?(i=e,o=n,i=Math.pow(i,a=t),o=Math.pow(o,a)-i,a=1/a,function(t){return Math.pow(i+t*o,a);}):(0,r.default)(isNaN(e)?n:e);};}function o(t,e){var n=e-t;return n?function(e){return t+e*n;}:(0,r.default)(isNaN(t)?e:t);}},fcdbca0d:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return o;}});var r=n("777fffbe"),i=n("4c6d310c"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e;}return(0,i.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0;},e;}(r._(n("c2db3dee")).default);},fd114b89:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{centerAll:function(){return p;},centerByColumn:function(){return g;},centerByRow:function(){return h;},getScaleAll:function(){return x;},getScaleByColumn:function(){return y;},getScaleByRow:function(){return v;},productAll:function(){return c;},productByColumn:function(){return u;},productByRow:function(){return s;},scaleAll:function(){return _;},scaleByColumn:function(){return b;},scaleByRow:function(){return m;},sumAll:function(){return a;},sumByColumn:function(){return o;},sumByRow:function(){return i;},varianceAll:function(){return d;},varianceByColumn:function(){return f;},varianceByRow:function(){return l;}});var r=n("afb67b89");function i(t){let e=(0,r.newArray)(t.rows);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[n]+=t.get(n,r);return e;}function o(t){let e=(0,r.newArray)(t.columns);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[r]+=t.get(n,r);return e;}function a(t){let e=0;for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)e+=t.get(n,r);return e;}function s(t){let e=(0,r.newArray)(t.rows,1);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[n]*=t.get(n,r);return e;}function u(t){let e=(0,r.newArray)(t.columns,1);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[r]*=t.get(n,r);return e;}function c(t){let e=1;for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)e*=t.get(n,r);return e;}function l(t,e,n){let r=t.rows,i=t.columns,o=[];for(let a=0;a<r;a++){let r=0,s=0,u=0;for(let e=0;e<i;e++)r+=u=t.get(a,e)-n[a],s+=u*u;e?o.push((s-r*r/i)/(i-1)):o.push((s-r*r/i)/i);}return o;}function f(t,e,n){let r=t.rows,i=t.columns,o=[];for(let a=0;a<i;a++){let i=0,s=0,u=0;for(let e=0;e<r;e++)i+=u=t.get(e,a)-n[a],s+=u*u;e?o.push((s-i*i/r)/(r-1)):o.push((s-i*i/r)/r);}return o;}function d(t,e,n){let r=t.rows,i=t.columns,o=r*i,a=0,s=0,u=0;for(let e=0;e<r;e++)for(let r=0;r<i;r++)a+=u=t.get(e,r)-n,s+=u*u;return e?(s-a*a/o)/(o-1):(s-a*a/o)/o;}function h(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e[n]);}function g(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e[r]);}function p(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e);}function v(t){let e=[];for(let n=0;n<t.rows;n++){let r=0;for(let e=0;e<t.columns;e++)r+=Math.pow(t.get(n,e),2)/(t.columns-1);e.push(Math.sqrt(r));}return e;}function m(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e[n]);}function y(t){let e=[];for(let n=0;n<t.columns;n++){let r=0;for(let e=0;e<t.rows;e++)r+=Math.pow(t.get(e,n),2)/(t.rows-1);e.push(Math.sqrt(r));}return e;}function b(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e[r]);}function x(t){let e=t.size-1,n=0;for(let r=0;r<t.columns;r++)for(let i=0;i<t.rows;i++)n+=Math.pow(t.get(i,r),2)/e;return Math.sqrt(n);}function _(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e);}},fe0893d6:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n("f59804c5"))&&r.__esModule?r:{default:r},o=n("6a4ad838");e.default=function(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===r&&(r=1e3);var a=t.nodes,s=void 0===a?[]:a,u=t.edges,c={},l={};s.forEach(function(t,e){var n=(0,o.uniqueId)();t.clusterId=n,c[n]={id:n,nodes:[t]},l[t.id]={node:t,idx:e};});var f=(0,i.default)(t,e),d=[],h={};f.forEach(function(t,e){var n=0,r=s[e].id;h[r]={},t.forEach(function(t,e){if(t){n+=t;var i=s[e].id;h[r][i]=t;}}),d.push(n);});for(var g=0;g<r&&"break"!==function(){var t=!1;if(s.forEach(function(e){var n={};Object.keys(h[e.id]).forEach(function(t){var r=h[e.id][t],i=l[t].node.clusterId;n[i]||(n[i]=0),n[i]+=r;});var r=-1/0,i=[];if(Object.keys(n).forEach(function(t){r<n[t]?(r=n[t],i=[t]):r===n[t]&&i.push(t);}),1!==i.length||i[0]!==e.clusterId){var o=i.indexOf(e.clusterId);if(o>=0&&i.splice(o,1),i&&i.length){t=!0;var a=c[e.clusterId],s=a.nodes.indexOf(e);a.nodes.splice(s,1);var u=Math.floor(Math.random()*i.length),f=c[i[u]];f.nodes.push(e),e.clusterId=f.id;}}}),!t)return"break";g++;}(););Object.keys(c).forEach(function(t){var e=c[t];e.nodes&&e.nodes.length||delete c[t];});var p=[],v={};(void 0===u?[]:u).forEach(function(t){var e=t.source,r=t.target,i=t[n]||1,o=l[e].node.clusterId,a=l[r].node.clusterId,s="".concat(o,"---").concat(a);if(v[s])v[s].weight+=i,v[s].count++;else{var u={source:o,target:a,weight:i,count:1};v[s]=u,p.push(u);}});var m=[];return Object.keys(c).forEach(function(t){m.push(c[t]);}),{clusters:m,clusterEdges:p};};},fe0dfdf2:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return c;}});var r=n("777fffbe"),i=r._(n("071f0c13")),o=r._(n("c9ae1e54")),a=r._(n("db01b2f7")),s=r._(n("51dbb462")),u=Object.prototype.hasOwnProperty,c=function(t){if((0,i.default)(t))return!0;if((0,o.default)(t))return!t.length;var e=(0,a.default)(t);if("Map"===e||"Set"===e)return!t.size;if((0,s.default)(t))return!Object.keys(t).length;for(var n in t)if(u.call(t,n))return!1;return!0;};},fe5e3654:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);})(t,e);},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t;}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n);}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t};};Object.defineProperty(e,"__esModule",{value:!0}),e.RadialLayout=void 0;var a=n("38788347"),s=n("5092cda5"),u=o(n("65579c93")),c=o(n("13ff8ce6"));function l(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]));}var f=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.focusNode=null,n.unitRadius=null,n.linkDistance=50,n.preventOverlap=!1,n.strictRadial=!0,n.maxPreventOverlapIteration=200,n.sortStrength=10,n.nodes=[],n.edges=[],n.updateCfg(e),n;}return i(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200,sortBy:void 0,sortStrength:10};},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges||[];if(!e||0===e.length){t.onLayoutEnd&&t.onLayoutEnd();return;}t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var r=t.center;if(1===e.length){e[0].x=r[0],e[0].y=r[1],t.onLayoutEnd&&t.onLayoutEnd();return;}var i=t.linkDistance,o=null;if((0,a.isString)(t.focusNode)){for(var s=!1,l=0;l<e.length;l++)e[l].id===t.focusNode&&(o=e[l],t.focusNode=o,s=!0,l=e.length);s||(o=null);}else o=t.focusNode;o||(o=e[0],t.focusNode=o);var f=(I=o.id,T=-1,e.forEach(function(t,e){t.id===I&&(T=e);}),T);f<0&&(f=0),t.focusIndex=f;var d=(0,a.getAdjMatrix)({nodes:e,edges:n},!1),h=(0,a.floydWarshall)(d),g=t.maxToFocus(h,f);t.handleInfinity(h,f,g+1),t.distances=h;var p=h[f],v=t.width||500,m=t.height||500,y=v-r[0]>r[0]?r[0]:v-r[0],b=m-r[1]>r[1]?r[1]:m-r[1];0===y&&(y=v/2),0===b&&(b=m/2);var x=b>y?y:b,_=Math.max.apply(Math,p),E=[];p.forEach(function(e,n){t.unitRadius||(t.unitRadius=x/_),E[n]=e*t.unitRadius;}),t.radii=E;var w=t.eIdealDisMatrix();t.eIdealDistances=w;var M=function(t){for(var e=t.length,n=t[0].length,r=[],i=0;i<e;i++){for(var o=[],a=0;a<n;a++)0!==t[i][a]?o.push(1/(t[i][a]*t[i][a])):o.push(0);r.push(o);}return r;}(w);t.weights=M;var C=new u.default({linkDistance:i,distances:w}).layout();C.forEach(function(t){(0,a.isNaN)(t[0])&&(t[0]=Math.random()*i),(0,a.isNaN)(t[1])&&(t[1]=Math.random()*i);}),t.positions=C,C.forEach(function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1];}),C.forEach(function(t){t[0]-=C[f][0],t[1]-=C[f][1];}),t.run();var A=t.preventOverlap,S=t.nodeSize,D=t.strictRadial;if(A){var I,T,k,F=t.nodeSpacing;k=(0,a.isNumber)(F)?function(){return F;}:(0,a.isFunction)(F)?F:function(){return 0;};var N={nodes:e,nodeSizeFunc:S?(0,a.isArray)(S)?function(t){return(S[0]>S[1]?S[0]:S[1])+k(t);}:function(t){return S+k(t);}:function(t){if(t.size){if((0,a.isArray)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e+k(t);}if((0,a.isObject)(t.size)){var e=t.size.width>t.size.height?t.size.width:t.size.height;return e+k(t);}return t.size+k(t);}return 10+k(t);},adjMatrix:d,positions:C,radii:E,height:m,width:v,strictRadial:D,focusID:f,iterations:t.maxPreventOverlapIteration||200,k:C.length/4.5};C=new c.default(N).layout();}return C.forEach(function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1];}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n};},e.prototype.run=function(){for(var t=this.maxIteration,e=this.positions||[],n=this.weights||[],r=this.eIdealDistances||[],i=this.radii||[],o=0;o<=t;o++){var a=o/t;this.oneIteration(a,e,i,r,n);}},e.prototype.oneIteration=function(t,e,n,r,i){var o=1-t,a=this.focusIndex;e.forEach(function(s,u){var c=l(s,[0,0]),f=0===c?0:1/c;if(u!==a){var d=0,h=0,g=0;e.forEach(function(t,e){if(u!==e){var n=l(s,t),o=0===n?0:1/n,a=r[e][u];g+=i[u][e],d+=i[u][e]*(t[0]+a*(s[0]-t[0])*o),h+=i[u][e]*(t[1]+a*(s[1]-t[1])*o);}});var p=0===n[u]?0:1/n[u];g*=o,g+=t*p*p,d*=o,d+=t*p*s[0]*f,s[0]=d/g,h*=o,h+=t*p*s[1]*f,s[1]=h/g;}});},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,r=t.linkDistance,i=t.radii||[],o=t.unitRadius||50,s=[];return n&&n.forEach(function(n,u){var c=[];n.forEach(function(n,s){if(u===s)c.push(0);else if(i[u]===i[s]){if("data"===t.sortBy)c.push(n*(Math.abs(u-s)*t.sortStrength)/(i[u]/o));else if(t.sortBy){var l=e[u][t.sortBy]||0,f=e[s][t.sortBy]||0;(0,a.isString)(l)&&(l=l.charCodeAt(0)),(0,a.isString)(f)&&(f=f.charCodeAt(0)),c.push(n*(Math.abs(l-f)*t.sortStrength)/(i[u]/o));}else c.push(n*r/(i[u]/o));}else c.push((r+o)/2*n);}),s.push(c);}),s;},e.prototype.handleInfinity=function(t,e,n){for(var r=t.length,i=0;i<r;i++)if(t[e][i]===1/0){t[e][i]=n,t[i][e]=n;for(var o=0;o<r;o++)t[i][o]!==1/0&&t[e][o]===1/0&&(t[e][o]=n+t[i][o],t[o][e]=n+t[i][o]);}for(var i=0;i<r;i++)if(i!==e){for(var o=0;o<r;o++)if(t[i][o]===1/0){var a=Math.abs(t[e][i]-t[e][o]);a=0===a?1:a,t[i][o]=a;}}},e.prototype.maxToFocus=function(t,e){for(var n=0,r=0;r<t[e].length;r++)t[e][r]!==1/0&&(n=t[e][r]>n?t[e][r]:n);return n;},e.prototype.getType=function(){return"radial";},e;}(s.Base);e.RadialLayout=f;},fe803fdd:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"segmentCubicFactory",{enumerable:!0,get:function(){return i;}});var r=n("b0fcf145");function i(t,e,n,i,o,a,s,u,c,l){var f,d=l.bbox,h=void 0===d||d,g=l.length,p=void 0===g||g,v=l.sampleSize,m=void 0===v?10:v,y="number"==typeof c,b=t,x=e,_=0,E=[b,x,0],w=[b,x],M={x:0,y:0},C=[{x:b,y:x}];y&&c<=0&&(M={x:b,y:x});for(var A=0;A<=m;A+=1){if(b=(f=function(t,e,n,r,i,o,a,s,u){var c=1-u;return{x:Math.pow(c,3)*t+3*Math.pow(c,2)*u*n+3*c*Math.pow(u,2)*i+Math.pow(u,3)*a,y:Math.pow(c,3)*e+3*Math.pow(c,2)*u*r+3*c*Math.pow(u,2)*o+Math.pow(u,3)*s};}(t,e,n,i,o,a,s,u,A/m)).x,x=f.y,h&&C.push({x:b,y:x}),p&&(_+=(0,r.distanceSquareRoot)(w,[b,x])),w=[b,x],y&&_>=c&&c>E[2]){var S=(_-c)/(_-E[2]);M={x:w[0]*(1-S)+E[0]*S,y:w[1]*(1-S)+E[1]*S};}E=[b,x,_];}return y&&c>=_&&(M={x:s,y:u}),{length:_,point:M,min:{x:Math.min.apply(null,C.map(function(t){return t.x;})),y:Math.min.apply(null,C.map(function(t){return t.y;}))},max:{x:Math.max.apply(null,C.map(function(t){return t.x;})),y:Math.max.apply(null,C.map(function(t){return t.y;}))}};}},fea2b47c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.d(e,"default",{enumerable:!0,get:function(){return i;}});var r=n("8d42ebc3");function i(t){for(var e=t.attr().points,n=[],i=[],o=0;o<e.length;o++){var a=e[o];n.push(a[0]),i.push(a[1]);}return r.Util.getBBoxByArray(n,i);}},ff62099c:function(t,e,n){"use strict";n.d(e,"__esModule",{value:!0}),n.e(e,{assembleFont:function(){return u;},getLineSpaceing:function(){return a;},getTextHeight:function(){return o;},getTextWidth:function(){return s;}});var r=n("61db1663"),i=n("f5119026");function o(t,e,n){var i=1;if((0,r.isString)(t)&&(i=t.split("\n").length),i>1){var o=a(e,n);return e*i+o*(i-1);}return e;}function a(t,e){return e?e-t:.14*t;}function s(t,e){var n=(0,i.getOffScreenContext)(),o=0;if((0,r.isNil)(t)||""===t)return o;if(n.save(),n.font=e,(0,r.isString)(t)&&t.includes("\n")){var a=t.split("\n");(0,r.each)(a,function(t){var e=n.measureText(t).width;o<e&&(o=e);});}else o=n.measureText(t).width;return n.restore(),o;}function u(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim();}}}]);