diff --git a/.gitignore b/.gitignore index f5cb6f369..6fb7e1e71 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,7 @@ venv/ tmp CLAUDE.md +pnpm-lock.yaml +package-lock.json +yarn.lock + diff --git a/cli/Cargo.toml b/cli/Cargo.toml index d04882710..bc1b10fa3 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -10,19 +10,13 @@ license = { workspace = true } authors = { workspace = true } repository = { workspace = true } -[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dependencies] -duckdb = { version = "=1.2.2", features = ["bundled"] } - -[target.'cfg(all(target_arch = "aarch64", target_os = "macos"))'.dependencies] -duckdb = { version = "=1.2.2", features = ["bundled"] } - [dependencies] chrono = { workspace = true } databend-client = { workspace = true } databend-driver = { workspace = true, features = ["rustls", "flight-sql"] } tokio-stream = { workspace = true } -actix-web = "4.10" +actix-web = "4.11" anyhow = "1.0" arrow = { workspace = true } async-recursion = "1.1.1" diff --git a/cli/frontend/build/asset-manifest.json b/cli/frontend/build/asset-manifest.json index 4575b8abe..8c8732e87 100644 --- a/cli/frontend/build/asset-manifest.json +++ b/cli/frontend/build/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { - "main.css": "/static/css/main.a94f3081.css", - "main.js": "/static/js/main.900dc5c4.js", + "main.css": "/static/css/main.926ec5e8.css", + "main.js": "/static/js/main.23ca657c.js", "static/media/download.svg": "/static/media/download.1a2f96254a617a2765b0fca418a3e5bf.svg", "static/media/zoom-in.svg": "/static/media/zoom-in.b8e914df4e9fbb889ceec372b13f62d1.svg", "static/media/full-screen.svg": "/static/media/full-screen.972c352cc40ca74a17222b04ad2b1316.svg", @@ -9,7 +9,7 @@ "static/media/zoom-out.svg": "/static/media/zoom-out.9600557781b9acd42f24eddad00f6f36.svg" }, "entrypoints": [ - "static/css/main.a94f3081.css", - "static/js/main.900dc5c4.js" + "static/css/main.926ec5e8.css", + "static/js/main.23ca657c.js" ] } \ No newline at end of file diff --git a/cli/frontend/build/index.html b/cli/frontend/build/index.html index b30880288..7779f237f 100644 --- a/cli/frontend/build/index.html +++ b/cli/frontend/build/index.html @@ -1 +1 @@ -
>e,t.height>>e,0,t.internalformat,t.type,null);else for(var r=0;r<6;++r)n.texImage2D(vn+r,e,t.internalformat,t.width>>e,t.height>>e,0,t.internalformat,t.type,null);H(t.texInfo,t.target)})}function ot(){for(var t=0;t0)continue;i.unit=-1}K[r]=t,e=r;break}e>=q&&nt.raise("insufficient number of texture units"),l.profile&&s.maxTextureUnits=2,"invalid renderbuffer shape"),s=0|f[0],l=0|f[1]}else"radius"in d&&(s=l=0|d.radius),"width"in d&&(s=0|d.width),"height"in d&&(l=0|d.height);"format"in d&&(nt.parameter(d.format,o,"invalid renderbuffer format"),u=o[d.format])}else"number"===typeof e?(s=0|e,l="number"===typeof r?0|r:s):e?nt.raise("invalid arguments to renderbuffer constructor"):s=l=1;if(nt(s>0&&l>0&&s<=n.maxRenderbufferSize&&l<=n.maxRenderbufferSize,"invalid renderbuffer size"),s!==c.width||l!==c.height||u!==c.format)return h.width=c.width=s,h.height=c.height=l,c.format=u,t.bindRenderbuffer(Qr,c.renderbuffer),t.renderbufferStorage(Qr,u,s,l),nt(0===t.getError(),"invalid render buffer format"),i.profile&&(c.stats.size=li(c.format,c.width,c.height)),h.format=a[c.format],h}function d(e,r){var o=0|e,a=0|r||o;return o===c.width&&a===c.height||(nt(o>0&&a>0&&o<=n.maxRenderbufferSize&&a<=n.maxRenderbufferSize,"invalid renderbuffer size"),h.width=c.width=o,h.height=c.height=a,t.bindRenderbuffer(Qr,c.renderbuffer),t.renderbufferStorage(Qr,c.format,o,a),nt(0===t.getError(),"invalid render buffer format"),i.profile&&(c.stats.size=li(c.format,c.width,c.height))),h}return l[c.id]=c,r.renderbufferCount++,h(e,s),h.resize=d,h._reglType="renderbuffer",h._renderbuffer=c,i.profile&&(h.stats=c.stats),h.destroy=function(){c.decRef()},h}function d(){Ee(l).forEach(function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(Qr,e.renderbuffer),t.renderbufferStorage(Qr,e.format,e.width,e.height)}),t.bindRenderbuffer(Qr,null)}return u.prototype.decRef=function(){--this.refCount<=0&&c(this)},i.profile&&(r.getTotalRenderbufferSize=function(){var t=0;return Object.keys(l).forEach(function(e){t+=l[e].stats.size}),t}),{create:h,clear:function(){Ee(l).forEach(c)},restore:d}},ci=36160,hi=36161,di=3553,fi=34069,pi=36064,gi=36096,vi=36128,mi=33306,yi=36053,bi=36054,xi=36055,wi=36057,Si=36061,ki=36193,Ei=5121,Mi=5126,_i=6407,Ci=6408,Ai=6402,Oi=[_i,Ci],Ti=[];Ti[Ci]=4,Ti[_i]=3;var Ii=[];Ii[Ei]=1,Ii[Mi]=4,Ii[ki]=2;var Ni=33189,Pi=36168,Di=34041,Li=[32854,32855,36194,35907,34842,34843,34836],Ri={};function ji(t,n,r,i,o,a){var s={cur:null,next:null,dirty:!1,setFBO:null},l=["rgba"],u=["rgba4","rgb565","rgb5 a1"];n.ext_srgb&&u.push("srgba"),n.ext_color_buffer_half_float&&u.push("rgba16f","rgb16f"),n.webgl_color_buffer_float&&u.push("rgba32f");var c=["uint8"];function h(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 f(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);nt(i===e&&o===n,"inconsistent width/height for supplied texture"),r.refCount+=1}else{var a=t.renderbuffer._renderbuffer;nt(a.width===e&&a.height===n,"inconsistent width/height for renderbuffer"),a.refCount+=1}}function p(e,n){n&&(n.texture?t.framebufferTexture2D(ci,e,n.target,n.texture._texture.texture,0):t.framebufferRenderbuffer(ci,e,hi,n.renderbuffer._renderbuffer.renderbuffer))}function g(t){var e=di,n=null,r=null,i=t;"object"===typeof t&&(i=t.data,"target"in t&&(e=0|t.target)),nt.type(i,"function","invalid attachment data");var o=i._reglType;return"texture2d"===o?(n=i,nt(e===di)):"textureCube"===o?(n=i,nt(e>=fi&&e =2,"invalid shape for framebuffer"),a=I[0],d=I[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)&&(b=T.color||T.colors,Array.isArray(b)&&nt(1===b.length||n.webgl_draw_buffers,"multiple render targets not supported")),b||("colorCount"in T&&(M=0|T.colorCount,nt(M>0,"invalid color buffer count")),"colorTexture"in T&&(x=!!T.colorTexture,w="rgba4"),"colorType"in T&&(k=T.colorType,x?(nt(n.oes_texture_float||!("float"===k||"float32"===k),"you must enable OES_texture_float in order to use floating point framebuffer objects"),nt(n.oes_texture_half_float||!("half float"===k||"float16"===k),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):"half float"===k||"float16"===k?(nt(n.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),w="rgba16f"):"float"!==k&&"float32"!==k||(nt(n.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),w="rgba32f"),nt.oneOf(k,c,"invalid color type")),"colorFormat"in T&&(w=T.colorFormat,l.indexOf(w)>=0?x=!0:u.indexOf(w)>=0?x=!1:x?nt.oneOf(T.colorFormat,l,"invalid color format for texture"):nt.oneOf(T.colorFormat,u,"invalid color format for renderbuffer"))),("depthTexture"in T||"depthStencilTexture"in T)&&(O=!(!T.depthTexture&&!T.depthStencilTexture),nt(!O||n.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in T&&("boolean"===typeof T.depth?p=T.depth:(_=T.depth,y=!1)),"stencil"in T&&("boolean"===typeof T.stencil?y=T.stencil:(C=T.stencil,p=!1)),"depthStencil"in T&&("boolean"===typeof T.depthStencil?p=y=T.depthStencil:(A=T.depthStencil,p=!1,y=!1))}else a=d=1;var N=null,P=null,D=null,L=null;if(Array.isArray(b))N=b.map(g);else if(b)N=[g(b)];else for(N=new Array(M),i=0;i =0||N[i].renderbuffer&&Li.indexOf(N[i].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+i+" is invalid"),N[i]&&N[i].texture){var j=Ti[N[i].texture._texture.format]*Ii[N[i].texture._texture.type];null===R?R=j:nt(R===j,"all color attachments much have the same number of bits per pixel.")}return f(P,a,d),nt(!P||P.texture&&P.texture._texture.format===Ai||P.renderbuffer&&P.renderbuffer._renderbuffer.format===Ni,"invalid depth attachment for framebuffer object"),f(D,a,d),nt(!D||D.renderbuffer&&D.renderbuffer._renderbuffer.format===Pi,"invalid stencil attachment for framebuffer object"),f(L,a,d),nt(!L||L.texture&&L.texture._texture.format===Di||L.renderbuffer&&L.renderbuffer._renderbuffer.format===Di,"invalid depth-stencil attachment for framebuffer object"),S(o),o.width=a,o.height=d,o.colorAttachments=N,o.depthAttachment=P,o.stencilAttachment=D,o.depthStencilAttachment=L,h.color=N.map(m),h.depth=m(P),h.stencil=m(D),h.depthStencil=m(L),h.width=o.width,h.height=o.height,E(o),h}function d(t,e){nt(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 h;for(var i=o.colorAttachments,a=0;a =2,"invalid shape for framebuffer"),nt(y[0]===y[1],"cube framebuffer must be square"),d=y[0]}else"radius"in m&&(d=0|m.radius),"width"in m?(d=0|m.width,"height"in m&&nt(m.height===d,"must be square")):"height"in m&&(d=0|m.height);("color"in m||"colors"in m)&&(f=m.color||m.colors,Array.isArray(f)&&nt(1===f.length||n.webgl_draw_buffers,"multiple render targets not supported")),f||("colorCount"in m&&(v=0|m.colorCount,nt(v>0,"invalid color buffer count")),"colorType"in m&&(nt.oneOf(m.colorType,c,"invalid color type"),g=m.colorType),"colorFormat"in m&&(p=m.colorFormat,nt.oneOf(m.colorFormat,l,"invalid color format for texture"))),"depth"in m&&(h.depth=m.depth),"stencil"in m&&(h.stencil=m.stencil),"depthStencil"in m&&(h.depthStencil=m.depthStencil)}else d=1;if(f)if(Array.isArray(f))for(u=[],r=0;r 0&&(h.depth=o[0].depth,h.stencil=o[0].stencil,h.depthStencil=o[0].depthStencil),o[r]?o[r](h):o[r]=M(h)}return e(a,{width:d,height:d,color:u})}function u(t){var e,n=0|t;if(nt(n>0&&n<=r.maxCubeMapSize,"invalid radius for cube fbo"),n===a.width)return a;var i=a.color;for(e=0;e 0,"must specify at least one attribute");var i={},l=r.attributes;l.length=e.length;for(var u=0;u =f.byteLength?c.subdata(f):(c.destroy(),r.buffers[u]=null)),r.buffers[u]||(c=r.buffers[u]=o.create(h,zi,!1,!0)),d.buffer=o.getBuffer(c),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[u]=1):o.getBuffer(h)?(d.buffer=o.getBuffer(h),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(h.buffer)?(d.buffer=o.getBuffer(h.buffer),d.size=0|(+h.size||d.buffer.dimension),d.normalized=!!h.normalized||!1,"type"in h?(nt.parameter(h.type,Pe,"invalid buffer type"),d.type=Pe[h.type]):d.type=d.buffer.dtype,d.offset=0|(h.offset||0),d.stride=0|(h.stride||0),d.divisor=0|(h.divisor||0),d.state=1,nt(d.size>=1&&d.size<=4,"size must be between 1 and 4"),nt(d.offset>=0,"invalid offset"),nt(d.stride>=0&&d.stride<=255,"stride must be between 0 and 255"),nt(d.divisor>=0,"divisor must be positive"),nt(!d.divisor||!!n.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in h?(nt(u>0,"first attribute must not be a constant"),d.x=+h.x||0,d.y=+h.y||0,d.z=+h.z||0,d.w=+h.w||0,d.state=2):nt(!1,"invalid attribute spec for location "+u)}for(var p=0;p 1)for(var m=0;m t&&(t=e.stats.uniformsCount)}),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach(function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)}),t}),{clear:function(){var e=t.deleteShader.bind(t);Ee(o).forEach(e),o={},Ee(a).forEach(e),a={},h.forEach(function(e){t.deleteProgram(e.program)}),h.length=0,c={},r.shaderCount=0},program:function(n,i,s,l){nt.command(n>=0,"missing vertex shader",s),nt.command(i>=0,"missing fragment shader",s);var u=c[i];u||(u=c[i]={});var d=u[n];if(d&&(d.refCount++,!l))return d;var g=new f(i,n);return r.shaderCount++,p(g,s,l),d||(u[n]=g),h.push(g),e(g,{destroy:function(){if(g.refCount--,g.refCount<=0){t.deleteProgram(g.program);var e=h.indexOf(g);h.splice(e,1),r.shaderCount--}u[g.vertId].refCount<=0&&(t.deleteShader(a[g.vertId]),delete a[g.vertId],delete c[g.fragId][g.vertId]),Object.keys(c[g.fragId]).length||(t.deleteShader(o[g.fragId]),delete o[g.fragId],delete c[g.fragId])}})},restore:g,shader:u,frag:-1,vert:-1}}var Xi=6408,qi=5121,Ki=3333,Qi=5126;function Zi(e,n,r,i,o,a,s){function l(l){var u;null===n.next?(nt(o.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),u=qi):(nt(null!==n.next.colorAttachments[0].texture,"You cannot read from a renderbuffer"),u=n.next.colorAttachments[0].texture._texture.type,a.oes_texture_float?(nt(u===qi||u===Qi,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),u===Qi&&nt(s.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):nt(u===qi,"Reading from a framebuffer is only allowed for the type 'uint8'"));var c=0,h=0,d=i.framebufferWidth,f=i.framebufferHeight,p=null;t(l)?p=l:l&&(nt.type(l,"object","invalid arguments to regl.read()"),c=0|l.x,h=0|l.y,nt(c>=0&&c =0&&h 0&&d+c<=i.framebufferWidth,"invalid width for read pixels"),nt(f>0&&f+h<=i.framebufferHeight,"invalid height for read pixels"),r();var g=d*f*4;return p||(u===qi?p=new Uint8Array(g):u===Qi&&(p=p||new Float32Array(g))),nt.isTypedArray(p,"data buffer for regl.read() must be a typedarray"),nt(p.byteLength>=g,"data buffer for regl.read() too small"),e.pixelStorei(Ki,4),e.readPixels(c,h,d,f,Xi,u,p),p}function u(t){var e;return n.setFBO({framebuffer:t.framebuffer},function(){e=l(t)}),e}function c(t){return t&&"framebuffer"in t?u(t):l(t)}return c}function $i(t){return Array.prototype.slice.call(t)}function Ji(t){return $i(t).join("")}function to(){var t=0,n=[],r=[];function i(e){for(var i=0;i 0&&(n.push(e,"="),n.push.apply(n,$i(arguments)),n.push(";")),e}return e(r,{def:o,toString:function(){return Ji([i.length>0?"var "+i.join(",")+";":"",Ji(n)])}})}function a(){var t=o(),n=o(),r=t.toString,i=n.toString;function a(e,r){n(e,r,"=",t.def(e,r),";")}return e(function(){t.apply(t,$i(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()+i()}})}function s(){var t=Ji(arguments),n=a(),r=a(),i=n.toString,o=r.toString;return e(n,{then:function(){return n.apply(n,$i(arguments)),this},else:function(){return r.apply(r,$i(arguments)),this},toString:function(){var e=o();return e&&(e="else{"+e+"}"),Ji(["if(",t,"){",i(),"}",e])}})}var l=o(),u={};function c(t,n){var r=[];function i(){var t="a"+r.length;return r.push(t),t}n=n||0;for(var o=0;o ":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ts={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},es={frag:35632,vert:35633},ns={cw:za,ccw:Fa};function rs(e){return Array.isArray(e)||t(e)||ke(e)}function is(t){return t.sort(function(t,e){return t===zo?-1:e===zo?1:t =1,r>=2,e)}if(n===uo){var i=t.data;return new os(i.thisDep,i.contextDep,i.propDep,e)}if(n===co)return new os(!1,!1,!1,e);if(n===ho){for(var o=!1,a=!1,s=!1,l=0;l =1&&(a=!0),c>=2&&(s=!0)}else u.type===uo&&(o=o||u.data.thisDep,a=a||u.data.contextDep,s=s||u.data.propDep)}return new os(o,a,s,e)}return new os(n===lo,n===so,n===ao,e)}var us=new os(!1,!1,!1,function(){});function cs(t,n,r,i,o,a,s,l,u,c,h,d,f,p,g){var v=c.Record,m={add:32774,subtract:32778,"reverse subtract":32779};r.ext_blend_minmax&&(m.min=Ga,m.max=Ua);var y=r.angle_instanced_arrays,b=r.webgl_draw_buffers,x={dirty:!0,profile:g.profile},w={},S=[],k={},E={};function M(t){return t.replace(".","_")}function _(t,e,n){var r=M(t);S.push(t),w[r]=x[r]=!!n,k[r]=e}function C(t,e,n){var r=M(t);S.push(t),Array.isArray(n)?(x[r]=n.slice(),w[r]=n.slice()):x[r]=w[r]=n,E[r]=e}_(fo,da),_(po,ha),C(go,"blendColor",[0,0,0,0]),C(vo,"blendEquationSeparate",[Xa,Xa]),C(mo,"blendFuncSeparate",[Ya,Ha,Ya,Ha]),_(yo,pa,!0),C(bo,"depthFunc",qa),C(xo,"depthRange",[0,1]),C(wo,"depthMask",!0),C(So,So,[!0,!0,!0,!0]),_(ko,ca),C(Eo,"cullFace",Ba),C(Mo,Mo,Fa),C(_o,_o,1),_(Co,va),C(Ao,"polygonOffset",[0,0]),_(Oo,ma),_(To,ya),C(Io,"sampleCoverage",[1,!1]),_(No,fa),C(Po,"stencilMask",-1),C(Do,"stencilFunc",[Wa,0,-1]),C(Lo,"stencilOpSeparate",[ja,Va,Va,Va]),C(Ro,"stencilOpSeparate",[Ba,Va,Va,Va]),_(jo,ga),C(Bo,"scissor",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),C(zo,zo,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var A={gl:t,context:f,strings:n,next:w,current:x,draw:d,elements:a,buffer:o,shader:h,attributes:c.state,vao:c,uniforms:u,framebuffer:l,extensions:r,timer:p,isBufferArgs:rs},O={primTypes:Ye,compareFuncs:Ja,blendFuncs:Za,blendEquations:m,stencilOps:ts,glTypes:Pe,orientationType:ns};nt.optional(function(){A.isArrayLike=hn}),b&&(O.backBuffer=[Ba],O.drawBuffer=_t(i.maxDrawbuffers,function(t){return 0===t?[0]:_t(t,function(t){return Qa+t})}));var T=0;function I(){var t=to(),e=t.link,r=t.global;t.id=T++,t.batchId="0";var i=e(A),o=t.shared={props:"a0"};Object.keys(A).forEach(function(t){o[t]=r.def(i,".",t)}),nt.optional(function(){t.CHECK=e(nt),t.commandStr=nt.guessCommand(),t.command=e(t.commandStr),t.assert=function(t,n,r){t("if(!(",n,"))",this.CHECK,".commandRaise(",e(r),",",this.command,");")},O.invalidBlendCombinations=$a});var a=t.next={},s=t.current={};Object.keys(E).forEach(function(t){Array.isArray(x[t])&&(a[t]=r.def(o.next,".",t),s[t]=r.def(o.current,".",t))});var l=t.constants={};Object.keys(O).forEach(function(t){l[t]=r.def(JSON.stringify(O[t]))}),t.invoke=function(n,r){switch(r.type){case oo:var i=["this",o.context,o.props,t.batchId];return n.def(e(r.data),".call(",i.slice(0,Math.max(r.data.length+1,4)),")");case ao:return n.def(o.props,r.data);case so:return n.def(o.context,r.data);case lo:return n.def("this",r.data);case uo:return r.data.append(t,n),r.data.ref;case co:return r.data.toString();case ho:return r.data.map(function(e){return t.invoke(n,e)})}},t.attribCache={};var u={};return t.scopeAttrib=function(t){var r=n.id(t);if(r in u)return u[r];var i=c.scope[r];return i||(i=c.scope[r]=new v),u[r]=e(i)},t}function N(t){var e,n=t.static,r=t.dynamic;if(Fo in n){var i=!!n[Fo];(e=ss(function(t,e){return i})).enable=i}else if(Fo in r){var o=r[Fo];e=ls(o,function(t,e){return t.invoke(e,o)})}return e}function P(t,e){var n=t.static,r=t.dynamic;if(Go in n){var i=n[Go];return i?(i=l.getFramebuffer(i),nt.command(i,"invalid framebuffer object"),ss(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,"."+$o,n+".width"),e.set(o,"."+Jo,n+".height"),n})):ss(function(t,e){var n=t.shared;e.set(n.framebuffer,".next","null");var r=n.context;return e.set(r,"."+$o,r+"."+ra),e.set(r,"."+Jo,r+"."+ia),"null"})}if(Go in r){var o=r[Go];return ls(o,function(t,e){var n=t.invoke(e,o),r=t.shared,i=r.framebuffer,a=e.def(i,".getFramebuffer(",n,")");nt.optional(function(){t.assert(e,"!"+n+"||"+a,"invalid framebuffer object")}),e.set(i,".next",a);var s=r.context;return e.set(s,"."+$o,a+"?"+a+".width:"+s+"."+ra),e.set(s,"."+Jo,a+"?"+a+".height:"+s+"."+ia),a})}return null}function D(t,e,n){var r=t.static,i=t.dynamic;function o(t){if(t in r){var o=r[t];nt.commandType(o,"object","invalid "+t,n.commandStr);var a,s,l=!0,u=0|o.x,c=0|o.y;return"width"in o?(a=0|o.width,nt.command(a>=0,"invalid "+t,n.commandStr)):l=!1,"height"in o?(s=0|o.height,nt.command(s>=0,"invalid "+t,n.commandStr)):l=!1,new os(!l&&e&&e.thisDep,!l&&e&&e.contextDep,!l&&e&&e.propDep,function(t,e){var n=t.shared.context,r=a;"width"in o||(r=e.def(n,".",$o,"-",u));var i=s;return"height"in o||(i=e.def(n,".",Jo,"-",c)),[u,c,r,i]})}if(t in i){var h=i[t],d=ls(h,function(e,n){var r=e.invoke(n,h);nt.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,".",$o,"-",o,")"),l=n.def('"height" in ',r,"?",r,".height|0:","(",i,".",Jo,"-",a,")");return nt.optional(function(){e.assert(n,s+">=0&&"+l+">=0","invalid "+t)}),[o,a,s,l]});return e&&(d.thisDep=d.thisDep||e.thisDep,d.contextDep=d.contextDep||e.contextDep,d.propDep=d.propDep||e.propDep),d}return e?new os(e.thisDep,e.contextDep,e.propDep,function(t,e){var n=t.shared.context;return[0,0,e.def(n,".",$o),e.def(n,".",Jo)]}):null}var a=o(zo);if(a){var s=a;a=new os(a.thisDep,a.contextDep,a.propDep,function(t,e){var n=s.append(t,e),r=t.shared.context;return e.set(r,"."+ta,n[2]),e.set(r,"."+ea,n[3]),n})}return{viewport:a,scissor_box:o(Bo)}}function L(t,e){var n=t.static;if("string"===typeof n[Wo]&&"string"===typeof n[Uo]){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 =0,"invalid "+t,e.commandStr),ss(function(t,e){return i&&(t.OFFSET=a),a})}if(t in r){var s=r[t];return ls(s,function(e,n){var r=e.invoke(n,s);return i&&(e.OFFSET=r,nt.optional(function(){e.assert(n,r+">=0","invalid "+t)})),r})}return i&&o?ss(function(t,e){return t.OFFSET="0",0}):null}var u=l(Xo,!0);function c(){if(Yo in n){var t=0|n[Yo];return nt.command("number"===typeof t&&t>=0,"invalid vertex count",e.commandStr),ss(function(){return t})}if(Yo in r){var i=r[Yo];return ls(i,function(t,e){var n=t.invoke(e,i);return nt.optional(function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">=0&&"+n+"===("+n+"|0)","invalid vertex count")}),n})}if(o){if(as(o)){if(o)return u?new os(u.thisDep,u.contextDep,u.propDep,function(t,e){var n=e.def(t.ELEMENTS,".vertCount-",t.OFFSET);return nt.optional(function(){t.assert(e,n+">=0","invalid vertex offset/element buffer too small")}),n}):ss(function(t,e){return e.def(t.ELEMENTS,".vertCount")});var a=ss(function(){return-1});return nt.optional(function(){a.MISSING=!0}),a}var s=new os(o.thisDep||u.thisDep,o.contextDep||u.contextDep,o.propDep||u.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 nt.optional(function(){s.DYNAMIC=!0}),s}return null}return{elements:o,primitive:s(),count:c(),instances:l(qo,!1),offset:u}}function B(t,e){var n=t.static,r=t.dynamic,o={};return S.forEach(function(t){var a=M(t);function s(e,i){if(t in n){var s=e(n[t]);o[a]=ss(function(){return s})}else if(t in r){var l=r[t];o[a]=ls(l,function(t,e){return i(t,e,t.invoke(e,l))})}}switch(t){case ko:case po:case fo:case No:case yo:case jo:case Co:case Oo:case To:case wo:return s(function(n){return nt.commandType(n,"boolean",t,e.commandStr),n},function(e,n,r){return nt.optional(function(){e.assert(n,"typeof "+r+'==="boolean"',"invalid flag "+t,e.commandStr)}),r});case bo:return s(function(n){return nt.commandParameter(n,Ja,"invalid "+t,e.commandStr),Ja[n]},function(e,n,r){var i=e.constants.compareFuncs;return nt.optional(function(){e.assert(n,r+" in "+i,"invalid "+t+", must be one of "+Object.keys(Ja))}),n.def(i,"[",r,"]")});case xo:return s(function(t){return nt.command(hn(t)&&2===t.length&&"number"===typeof t[0]&&"number"===typeof t[1]&&t[0]<=t[1],"depth range is 2d array",e.commandStr),t},function(t,e,n){return nt.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 mo:return s(function(t){nt.commandType(t,"object","blend.func",e.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 nt.commandParameter(n,Za,a+".srcRGB",e.commandStr),nt.commandParameter(r,Za,a+".srcAlpha",e.commandStr),nt.commandParameter(i,Za,a+".dstRGB",e.commandStr),nt.commandParameter(o,Za,a+".dstAlpha",e.commandStr),nt.command(-1===$a.indexOf(n+", "+i),"unallowed blending combination (srcRGB, dstRGB) = ("+n+", "+i+")",e.commandStr),[Za[n],Za[i],Za[r],Za[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 nt.optional(function(){e.assert(n,s+" in "+i,"invalid "+t+"."+o+a+", must be one of "+Object.keys(Za))}),s}nt.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");nt.optional(function(){var t=e.constants.invalidBlendCombinations;e.assert(n,t+".indexOf("+a+'+", "+'+s+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var l=n.def(i,"[",a,"]"),u=n.def(i,"[",o("src","Alpha"),"]");return[l,n.def(i,"[",s,"]"),u,n.def(i,"[",o("dst","Alpha"),"]")]});case vo:return s(function(n){return"string"===typeof n?(nt.commandParameter(n,m,"invalid "+t,e.commandStr),[m[n],m[n]]):"object"===typeof n?(nt.commandParameter(n.rgb,m,t+".rgb",e.commandStr),nt.commandParameter(n.alpha,m,t+".alpha",e.commandStr),[m[n.rgb],m[n.alpha]]):void nt.commandRaise("invalid blend.equation",e.commandStr)},function(e,n,r){var i=e.constants.blendEquations,o=n.def(),a=n.def(),s=e.cond("typeof ",r,'==="string"');return nt.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 go:return s(function(t){return nt.command(hn(t)&&4===t.length,"blend.color must be a 4d array",e.commandStr),_t(4,function(e){return+t[e]})},function(t,e,n){return nt.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 Po:return s(function(t){return nt.commandType(t,"number",a,e.commandStr),0|t},function(t,e,n){return nt.optional(function(){t.assert(e,"typeof "+n+'==="number"',"invalid stencil.mask")}),e.def(n,"|0")});case Do:return s(function(n){nt.commandType(n,"object",a,e.commandStr);var r=n.cmp||"keep",i=n.ref||0,o="mask"in n?n.mask:-1;return nt.commandParameter(r,Ja,t+".cmp",e.commandStr),nt.commandType(i,"number",t+".ref",e.commandStr),nt.commandType(o,"number",t+".mask",e.commandStr),[Ja[r],i,o]},function(t,e,n){var r=t.constants.compareFuncs;return nt.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]",":",Va),e.def(n,".ref|0"),e.def('"mask" in ',n,"?",n,".mask|0:-1")]});case Lo:case Ro:return s(function(n){nt.commandType(n,"object",a,e.commandStr);var r=n.fail||"keep",i=n.zfail||"keep",o=n.zpass||"keep";return nt.commandParameter(r,ts,t+".fail",e.commandStr),nt.commandParameter(i,ts,t+".zfail",e.commandStr),nt.commandParameter(o,ts,t+".zpass",e.commandStr),[t===Ro?Ba:ja,ts[r],ts[i],ts[o]]},function(e,n,r){var i=e.constants.stencilOps;function o(o){return nt.optional(function(){e.assert(n,'!("'+o+'" in '+r+")||("+r+"."+o+" in "+i+")","invalid "+t+"."+o+", must be one of "+Object.keys(ts))}),n.def('"',o,'" in ',r,"?",i,"[",r,".",o,"]:",Va)}return nt.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)}),[t===Ro?Ba:ja,o("fail"),o("zfail"),o("zpass")]});case Ao:return s(function(t){nt.commandType(t,"object",a,e.commandStr);var n=0|t.factor,r=0|t.units;return nt.commandType(n,"number",a+".factor",e.commandStr),nt.commandType(r,"number",a+".units",e.commandStr),[n,r]},function(e,n,r){return nt.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)}),[n.def(r,".factor|0"),n.def(r,".units|0")]});case Eo:return s(function(t){var n=0;return"front"===t?n=ja:"back"===t&&(n=Ba),nt.command(!!n,a,e.commandStr),n},function(t,e,n){return nt.optional(function(){t.assert(e,n+'==="front"||'+n+'==="back"',"invalid cull.face")}),e.def(n,'==="front"?',ja,":",Ba)});case _o:return s(function(t){return nt.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],e.commandStr),t},function(t,e,n){return nt.optional(function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">="+i.lineWidthDims[0]+"&&"+n+"<="+i.lineWidthDims[1],"invalid line width")}),n});case Mo:return s(function(t){return nt.commandParameter(t,ns,a,e.commandStr),ns[t]},function(t,e,n){return nt.optional(function(){t.assert(e,n+'==="cw"||'+n+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),e.def(n+'==="cw"?'+za+":"+Fa)});case So:return s(function(t){return nt.command(hn(t)&&4===t.length,"color.mask must be length 4 array",e.commandStr),t.map(function(t){return!!t})},function(t,e,n){return nt.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","invalid color.mask")}),_t(4,function(t){return"!!"+n+"["+t+"]"})});case Io:return s(function(t){nt.command("object"===typeof t&&t,a,e.commandStr);var n="value"in t?t.value:1,r=!!t.invert;return nt.command("number"===typeof n&&n>=0&&n<=1,"sample.coverage.value must be a number between 0 and 1",e.commandStr),[n,r]},function(t,e,n){return nt.optional(function(){t.assert(e,n+"&&typeof "+n+'==="object"',"invalid sample.coverage")}),[e.def('"value" in ',n,"?+",n,".value:1"),e.def("!!",n,".invert")]})}}),o}function z(t,e){var n=t.static,r=t.dynamic,i={};return Object.keys(n).forEach(function(t){var r,o=n[t];if("number"===typeof o||"boolean"===typeof o)r=ss(function(){return o});else if("function"===typeof o){var a=o._reglType;"texture2d"===a||"textureCube"===a?r=ss(function(t){return t.link(o)}):"framebuffer"===a||"framebufferCube"===a?(nt.command(o.color.length>0,'missing color attachment for framebuffer sent to uniform "'+t+'"',e.commandStr),r=ss(function(t){return t.link(o.color[0])})):nt.commandRaise('invalid data for uniform "'+t+'"',e.commandStr)}else hn(o)?r=ss(function(e){return e.global.def("[",_t(o.length,function(n){return nt.command("number"===typeof o[n]||"boolean"===typeof o[n],"invalid uniform "+t,e.commandStr),o[n]}),"]")}):nt.commandRaise('invalid or missing data for uniform "'+t+'"',e.commandStr);r.value=o,i[t]=r}),Object.keys(r).forEach(function(t){var e=r[t];i[t]=ls(e,function(t,n){return t.invoke(n,e)})}),i}function F(t,e){var r=t.static,i=t.dynamic,a={};return Object.keys(r).forEach(function(t){var i=r[t],s=n.id(t),l=new v;if(rs(i))l.state=ro,l.buffer=o.getBuffer(o.create(i,aa,!1,!0)),l.type=0;else{var u=o.getBuffer(i);if(u)l.state=ro,l.buffer=u,l.type=0;else if(nt.command("object"===typeof i&&i,"invalid data for attribute "+t,e.commandStr),"constant"in i){var c=i.constant;l.buffer="null",l.state=io,"number"===typeof c?l.x=c:(nt.command(hn(c)&&c.length>0&&c.length<=4,"invalid constant for attribute "+t,e.commandStr),eo.forEach(function(t,e){e =0,'invalid offset for attribute "'+t+'"',e.commandStr);var d=0|i.stride;nt.command(d>=0&&d<256,'invalid stride for attribute "'+t+'", must be integer betweeen [0, 255]',e.commandStr);var f=0|i.size;nt.command(!("size"in i)||f>0&&f<=4,'invalid size for attribute "'+t+'", must be 1,2,3,4',e.commandStr);var p=!!i.normalized,g=0;"type"in i&&(nt.commandParameter(i.type,Pe,"invalid type for attribute "+t,e.commandStr),g=Pe[i.type]);var m=0|i.divisor;"divisor"in i&&(nt.command(0===m||y,'cannot specify divisor for attribute "'+t+'", instancing not supported',e.commandStr),nt.command(m>=0,'invalid divisor for attribute "'+t+'"',e.commandStr)),nt.optional(function(){var n=e.commandStr,r=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(i).forEach(function(e){nt.command(r.indexOf(e)>=0,'unknown parameter "'+e+'" for attribute pointer "'+t+'" (valid parameters are '+r+")",n)})}),l.buffer=u,l.state=ro,l.size=f,l.normalized=p,l.type=g||u.dtype,l.offset=h,l.stride=d,l.divisor=m}}a[t]=ss(function(t,e){var n=t.attribCache;if(s in n)return n[s];var r={isStream:!1};return Object.keys(l).forEach(function(t){r[t]=l[t]}),l.buffer&&(r.buffer=t.link(l.buffer),r.type=r.type||r.buffer+".dtype"),n[s]=r,r})}),Object.keys(i).forEach(function(t){var e=i[t];function n(n,r){var i=n.invoke(r,e),o=n.shared,a=n.constants,s=o.isBufferArgs,l=o.buffer;nt.optional(function(){n.assert(r,i+"&&(typeof "+i+'==="object"||typeof '+i+'==="function")&&('+s+"("+i+")||"+l+".getBuffer("+i+")||"+l+".getBuffer("+i+".buffer)||"+s+"("+i+'.buffer)||("constant" in '+i+"&&(typeof "+i+'.constant==="number"||'+o.isArrayLike+"("+i+".constant))))",'invalid dynamic attribute "'+t+'"')});var u={isStream:r.def(!1)},c=new v;c.state=ro,Object.keys(c).forEach(function(t){u[t]=r.def(""+c[t])});var h=u.buffer,d=u.type;function f(t){r(u[t],"=",i,".",t,"|0;")}return r("if(",s,"(",i,")){",u.isStream,"=true;",h,"=",l,".createStream(",aa,",",i,");",d,"=",h,".dtype;","}else{",h,"=",l,".getBuffer(",i,");","if(",h,"){",d,"=",h,".dtype;",'}else if("constant" in ',i,"){",u.state,"=",io,";","if(typeof "+i+'.constant === "number"){',u[eo[0]],"=",i,".constant;",eo.slice(1).map(function(t){return u[t]}).join("="),"=0;","}else{",eo.map(function(t,e){return u[t]+"="+i+".constant.length>"+e+"?"+i+".constant["+e+"]:0;"}).join(""),"}}else{","if(",s,"(",i,".buffer)){",h,"=",l,".createStream(",aa,",",i,".buffer);","}else{",h,"=",l,".getBuffer(",i,".buffer);","}",d,'="type" in ',i,"?",a.glTypes,"[",i,".type]:",h,".dtype;",u.normalized,"=!!",i,".normalized;"),f("size"),f("offset"),f("stride"),f("divisor"),r("}}"),r.exit("if(",u.isStream,"){",l,".destroyStream(",h,");","}"),u}a[t]=ls(e,n)}),a}function G(t,e){var n=t.static,r=t.dynamic;if(Ko in n){var i=n[Ko];return null!==i&&null===c.getVAO(i)&&(i=c.createVAO(i)),ss(function(t){return t.link(c.getVAO(i))})}if(Ko in r){var o=r[Ko];return ls(o,function(t,e){var n=t.invoke(e,o);return e.def(t.shared.vao+".getVAO("+n+")")})}return null}function U(t){var e=t.static,n=t.dynamic,r={};return Object.keys(e).forEach(function(t){var n=e[t];r[t]=ss(function(t,e){return"number"===typeof n||"boolean"===typeof n?""+n:t.link(n)})}),Object.keys(n).forEach(function(t){var e=n[t];r[t]=ls(e,function(t,n){return t.invoke(n,e)})}),r}function W(t,e,n,i,o){var a=t.static,s=t.dynamic;nt.optional(function(){var t=[Go,Uo,Wo,Vo,Ho,Xo,Yo,qo,Fo,Ko].concat(S);function e(e){Object.keys(e).forEach(function(e){nt.command(t.indexOf(e)>=0,'unknown parameter "'+e+'"',o.commandStr)})}e(a),e(s)});var l=L(t,e),u=P(t,o),h=D(t,u,o),d=j(t,o),f=B(t,o),p=R(t,o,l);function g(t){var e=h[t];e&&(f[t]=e)}g(zo),g(M(Bo));var v=Object.keys(f).length>0,m={framebuffer:u,draw:d,shader:p,state:f,dirty:v,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(m.profile=N(t,o),m.uniforms=z(n,o),m.drawVAO=m.scopeVAO=G(t,o),!m.drawVAO&&p.program&&!l&&r.angle_instanced_arrays){var y=!0,b=p.program.attributes.map(function(t){var n=e.static[t];return y=y&&!!n,n});if(y&&b.length>0){var x=c.getVAO(c.createVAO(b));m.drawVAO=new os(null,null,null,function(t,e){return t.link(x)}),m.useVAO=!0}}return l?m.useVAO=!0:m.attributes=F(e,o),m.context=U(i,o),m}function V(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 H(t,e,n,r){var i,o=t.shared,a=o.gl,s=o.framebuffer;b&&(i=e.def(o.extensions,".webgl_draw_buffers"));var l,u=t.constants,c=u.drawBuffer,h=u.backBuffer;l=n?n.append(t,e):e.def(s,".next"),r||e("if(",l,"!==",s,".cur){"),e("if(",l,"){",a,".bindFramebuffer(",Ka,",",l,".framebuffer);"),b&&e(i,".drawBuffersWEBGL(",c,"[",l,".colorAttachments.length]);"),e("}else{",a,".bindFramebuffer(",Ka,",null);"),b&&e(i,".drawBuffersWEBGL(",h,");"),e("}",s,".cur=",l,";"),r||e("}")}function Y(t,e,n){var r=t.shared,i=r.gl,o=t.current,a=t.next,s=r.current,l=r.next,u=t.cond(s,".dirty");S.forEach(function(e){var r,c,h=M(e);if(!(h in n.state))if(h in a){r=a[h],c=o[h];var d=_t(x[h].length,function(t){return u.def(r,"[",t,"]")});u(t.cond(d.map(function(t,e){return t+"!=="+c+"["+e+"]"}).join("||")).then(i,".",E[h],"(",d,");",d.map(function(t,e){return c+"["+e+"]="+t}).join(";"),";"))}else{r=u.def(l,".",h);var f=t.cond(r,"!==",s,".",h);u(f),h in k?f(t.cond(r).then(i,".enable(",k[h],");").else(i,".disable(",k[h],");"),s,".",h,"=",r,";"):f(i,".",E[h],"(",r,");",s,".",h,"=",r,";")}}),0===Object.keys(n.state).length&&u(s,".dirty=false;"),e(u)}function X(t,e,n,r){var i=t.shared,o=t.current,a=i.current,s=i.gl;is(Object.keys(n)).forEach(function(i){var l=n[i];if(!r||r(l)){var u=l.append(t,e);if(k[i]){var c=k[i];as(l)?e(s,u?".enable(":".disable(",c,");"):e(t.cond(u).then(s,".enable(",c,");").else(s,".disable(",c,");")),e(a,".",i,"=",u,";")}else if(hn(u)){var h=o[i];e(s,".",E[i],"(",u,");",u.map(function(t,e){return h+"["+e+"]="+t}).join(";"),";")}else e(s,".",E[i],"(",u,");",a,".",i,"=",u,";")}})}function q(t,e){y&&(t.instancing=e.def(t.shared.extensions,".angle_instanced_arrays"))}function K(t,e,n,r,i){var o,a,s,l=t.shared,u=t.stats,c=l.current,h=l.timer,d=n.profile;function f(){return"undefined"===typeof performance?"Date.now()":"performance.now()"}function g(t){t(o=e.def(),"=",f(),";"),"string"===typeof i?t(u,".count+=",i,";"):t(u,".count++;"),p&&(r?t(a=e.def(),"=",h,".getNumPendingQueries();"):t(h,".beginQuery(",u,");"))}function v(t){t(u,".cpuTime+=",f(),"-",o,";"),p&&(r?t(h,".pushScopeStats(",a,",",h,".getNumPendingQueries(),",u,");"):t(h,".endQuery();"))}function m(t){var n=e.def(c,".profile");e(c,".profile=",t,";"),e.exit(c,".profile=",n,";")}if(d){if(as(d))return void(d.enable?(g(e),v(e.exit),m("true")):m("false"));m(s=d.append(t,e))}else s=e.def(c,".profile");var y=t.block();g(y),e("if(",s,"){",y,"}");var b=t.block();v(b),e.exit("if(",s,"){",b,"}")}function Q(t,e,n,r,i){var o=t.shared;function a(t){switch(t){case xa:case Ea:case Aa:return 2;case wa:case Ma:case Oa:return 3;case Sa:case _a:case Ta:return 4;default:return 1}}function s(n,r,i){var a=o.gl,s=e.def(n,".location"),l=e.def(o.attributes,"[",s,"]"),u=i.state,c=i.buffer,h=[i.x,i.y,i.z,i.w],d=["buffer","normalized","offset","stride"];function f(){e("if(!",l,".buffer){",a,".enableVertexAttribArray(",s,");}");var n,o=i.type;if(n=i.size?e.def(i.size,"||",r):r,e("if(",l,".type!==",o,"||",l,".size!==",n,"||",d.map(function(t){return l+"."+t+"!=="+i[t]}).join("||"),"){",a,".bindBuffer(",aa,",",c,".buffer);",a,".vertexAttribPointer(",[s,n,o,i.normalized,i.stride,i.offset],");",l,".type=",o,";",l,".size=",n,";",d.map(function(t){return l+"."+t+"="+i[t]+";"}).join(""),"}"),y){var u=i.divisor;e("if(",l,".divisor!==",u,"){",t.instancing,".vertexAttribDivisorANGLE(",[s,u],");",l,".divisor=",u,";}")}}function p(){e("if(",l,".buffer){",a,".disableVertexAttribArray(",s,");",l,".buffer=null;","}if(",eo.map(function(t,e){return l+"."+t+"!=="+h[e]}).join("||"),"){",a,".vertexAttrib4f(",s,",",h,");",eo.map(function(t,e){return l+"."+t+"="+h[e]+";"}).join(""),"}")}u===ro?f():u===io?p():(e("if(",u,"===",ro,"){"),f(),e("}else{"),p(),e("}"))}r.forEach(function(r){var o,l=r.name,u=n.attributes[l];if(u){if(!i(u))return;o=u.append(t,e)}else{if(!i(us))return;var c=t.scopeAttrib(l);nt.optional(function(){t.assert(e,c+".state","missing attribute "+l)}),o={},Object.keys(new v).forEach(function(t){o[t]=e.def(c,".",t)})}s(t.link(r),a(r.info.type),o)})}function Z(t,e,r,i,o){for(var a,s=t.shared,l=s.gl,u=0;u 1?e(_t(x,function(t){return Array.isArray(c)?c[t]:c+"["+t+"]"})):(nt(!Array.isArray(c),"uniform value must not be an array"),e(c));e(");")}}function $(t,e,n,r){var i=t.shared,o=i.gl,a=i.draw,s=r.draw;function l(){var i,l=s.elements,u=e;return l?((l.contextDep&&r.contextDynamic||l.propDep)&&(u=n),i=l.append(t,u)):i=u.def(a,".",Vo),i&&u("if("+i+")"+o+".bindBuffer("+sa+","+i+".buffer.buffer);"),i}function u(){var i,o=s.count,l=e;return o?((o.contextDep&&r.contextDynamic||o.propDep)&&(l=n),i=o.append(t,l),nt.optional(function(){o.MISSING&&t.assert(e,"false","missing vertex count"),o.DYNAMIC&&t.assert(l,i+">=0","missing vertex count")})):(i=l.def(a,".",Yo),nt.optional(function(){t.assert(l,i+">=0","missing vertex count")})),i}var c=l();function h(i){var o=s[i];return o?o.contextDep&&r.contextDynamic||o.propDep?o.append(t,n):o.append(t,e):e.def(a,".",i)}var d,f,p=h(Ho),g=h(Xo),v=u();if("number"===typeof v){if(0===v)return}else n("if(",v,"){"),n.exit("}");y&&(d=h(qo),f=t.instancing);var m=c+".type",b=s.elements&&as(s.elements);function x(){function t(){n(f,".drawElementsInstancedANGLE(",[p,v,m,g+"<<(("+m+"-"+no+")>>1)",d],");")}function e(){n(f,".drawArraysInstancedANGLE(",[p,g,v,d],");")}c?b?t():(n("if(",c,"){"),t(),n("}else{"),e(),n("}")):e()}function w(){function t(){n(o+".drawElements("+[p,v,m,g+"<<(("+m+"-"+no+")>>1)"]+");")}function e(){n(o+".drawArrays("+[p,g,v]+");")}c?b?t():(n("if(",c,"){"),t(),n("}else{"),e(),n("}")):e()}y&&("number"!==typeof d||d>=0)?"string"===typeof d?(n("if(",d,">0){"),x(),n("}else if(",d,"<0){"),w(),n("}")):x():w()}function J(t,e,n,r,i){var o=I(),a=o.proc("body",i);return nt.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 tt(t,e,n,r){q(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);"),Q(t,e,n,r.attributes,function(){return!0})),Z(t,e,n,r.uniforms,function(){return!0}),$(t,e,e,n)}function et(t,e){var n=t.proc("draw",1);q(t,n),V(t,n,e.context),H(t,n,e.framebuffer),Y(t,n,e),X(t,n,e.state),K(t,n,e,!1,!0);var r=e.shader.progVar.append(t,n);if(n(t.shared.gl,".useProgram(",r,".program);"),e.shader.program)tt(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 J(tt,t,e,n,1)}),"(",r,");",a,".call(this,a0);"))}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}function rt(t,e,n,r){function i(){return!0}t.batchId="a1",q(t,e),Q(t,e,n,r.attributes,i),Z(t,e,n,r.uniforms,i),$(t,e,e,n)}function it(t,e,n,r){q(t,e);var i=n.contextDep,o=e.def(),a="a0",s="a1",l=e.def();t.shared.props=l,t.batchId=o;var u=t.scope(),c=t.scope();function h(t){return t.contextDep&&i||t.propDep}function d(t){return!h(t)}if(e(u.entry,"for(",o,"=0;",o,"<",s,";++",o,"){",l,"=",a,"[",o,"];",c,"}",u.exit),n.needsContext&&V(t,c,n.context),n.needsFramebuffer&&H(t,c,n.framebuffer),X(t,c,n.state,h),n.profile&&h(n.profile)&&K(t,c,n,!1,!0),r)n.useVAO?n.drawVAO?h(n.drawVAO)?c(t.shared.vao,".setVAO(",n.drawVAO.append(t,c),");"):u(t.shared.vao,".setVAO(",n.drawVAO.append(t,u),");"):u(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(u(t.shared.vao,".setVAO(null);"),Q(t,u,n,r.attributes,d),Q(t,c,n,r.attributes,h)),Z(t,u,n,r.uniforms,d),Z(t,c,n,r.uniforms,h),$(t,u,c,n);else{var f=t.global.def("{}"),p=n.shader.progVar.append(t,c),g=c.def(p,".id"),v=c.def(f,"[",g,"]");c(t.shared.gl,".useProgram(",p,".program);","if(!",v,"){",v,"=",f,"[",g,"]=",t.link(function(e){return J(rt,t,n,e,2)}),"(",p,");}",v,".call(this,a0[",o,"],",o,");")}}function ot(t,e){var n=t.proc("batch",2);t.batchId="0",q(t,n);var r=!1,i=!0;Object.keys(e.context).forEach(function(t){r=r||e.context[t].propDep}),r||(V(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||H(t,n,o)):H(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(r=!0),Y(t,n,e),X(t,n,e.state,function(t){return!s(t)}),e.profile&&s(e.profile)||K(t,n,e,!1,"a1"),e.contextDep=r,e.needsContext=i,e.needsFramebuffer=a;var l=e.shader.progVar;if(l.contextDep&&r||l.propDep)it(t,n,e,null);else{var u=l.append(t,n);if(n(t.shared.gl,".useProgram(",u,".program);"),e.shader.program)it(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var c=t.global.def("{}"),h=n.def(u,".id"),d=n.def(c,"[",h,"]");n(t.cond(d).then(d,".call(this,a0,a1);").else(d,"=",c,"[",h,"]=",t.link(function(n){return J(it,t,e,n,2)}),"(",u,");",d,".call(this,a0,a1);"))}}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}function at(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))}V(t,r,e.context),e.framebuffer&&e.framebuffer.append(t,r),is(Object.keys(e.state)).forEach(function(n){var o=e.state[n].append(t,r);hn(o)?o.forEach(function(e,i){r.set(t.next[n],"["+i+"]",e)}):r.set(i.next,"."+n,o)}),K(t,r,e,!0,!0),[Vo,Xo,Yo,qo,Ho].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(Uo),a(Wo),Object.keys(e.state).length>0&&(r(o,".dirty=true;"),r.exit(o,".dirty=true;")),r("a1(",t.shared.context,",a0,",t.batchId,");")}function st(t){if("object"===typeof t&&!hn(t)){for(var e=Object.keys(t),n=0;n =0;--t){var e=T[t];e&&e(p,null,0)}r.flush(),c&&c.update()}function R(){!D&&T.length>0&&(D=gt.next(L))}function j(){D&&(gt.cancel(L),D=null)}function B(t){t.preventDefault(),o=!0,j(),I.forEach(function(t){t()})}function z(t){r.getError(),o=!1,a.restore(),S.restore(),y.restore(),k.restore(),E.restore(),M.restore(),b.restore(),c&&c.restore(),_.procs.refresh(),R(),N.forEach(function(t){t()})}function F(){T.length=0,j(),O&&(O.removeEventListener(xs,B),O.removeEventListener(ws,z)),S.clear(),M.clear(),E.clear(),k.clear(),w.clear(),y.clear(),b.clear(),c&&c.clear(),P.forEach(function(t){t()})}function G(t){function n(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}function r(t,e){var n={},r={};return Object.keys(t).forEach(function(i){var o=t[i];if(pt.isDynamic(o))r[i]=pt.unbox(o,i);else{if(e&&Array.isArray(o))for(var a=0;a 0)return d.call(this,g(0|t),0|t)}else{if(!Array.isArray(t))return h.call(this,t);if(t.length)return d.call(this,t,t.length)}}return e(v,{stats:u,destroy:function(){c.destroy()}})}O&&(O.addEventListener(xs,B,!1),O.addEventListener(ws,z,!1));var U=M.setFBO=G({framebuffer:pt.define.call(null,Ss,"framebuffer")});function W(t,e){var n=0;_.procs.poll();var i=e.color;i&&(r.clearColor(+i[0]||0,+i[1]||0,+i[2]||0,+i[3]||0),n|=vs),"depth"in e&&(r.clearDepth(+e.depth),n|=ms),"stencil"in e&&(r.clearStencil(0|e.stencil),n|=ys),nt(!!n,"called regl.clear with no buffer specified"),r.clear(n)}function V(t){if(nt("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)U(e({framebuffer:t.framebuffer.faces[n]},t),W);else U(t,W);else W(null,t)}function H(t){function e(){var e=Ms(T,t);function n(){var t=Ms(T,n);T[t]=T[T.length-1],T.length-=1,T.length<=0&&j()}nt(e>=0,"cannot cancel a frame twice"),T[e]=n}return nt.type(t,"function","regl.frame() callback must be a function"),T.push(t),R(),{cancel:e}}function Y(){var t=A.viewport,e=A.scissor_box;t[0]=t[1]=e[0]=e[1]=0,p.viewportWidth=p.framebufferWidth=p.drawingBufferWidth=t[2]=e[2]=r.drawingBufferWidth,p.viewportHeight=p.framebufferHeight=p.drawingBufferHeight=t[3]=e[3]=r.drawingBufferHeight}function X(){p.tick+=1,p.time=K(),Y(),_.procs.poll()}function q(){k.refresh(),Y(),_.procs.refresh(),c&&c.update()}function K(){return(vt()-h)/1e3}function Q(t,e){var n;switch(nt.type(e,"function","listener callback must be a function"),t){case"frame":return H(e);case"lost":n=I;break;case"restore":n=N;break;case"destroy":n=P;break;default:nt.raise("invalid event, must be one of frame,lost,restore,destroy")}return n.push(e),{cancel:function(){for(var t=0;t =0},read:C,destroy:F,_gl:r,_refresh:q,poll:function(){X(),c&&c.update()},now:K,stats:l});return n.onDone(null,Z),Z}return _s}()},649:(t,e,n)=>{"use strict";var r=n(6116),i=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var e=[],n=0,a=t.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(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(4714),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},675:(t,e)=>{"use strict";Object.defineProperty(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 n=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=n;var r=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=r;var i=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 r(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,r,i){if((this.edgeIdAutoIncrease||void 0===t)&&(t=this.counter++),!(this.nodeMap[e]&&this.nodeMap[r]&&this.nodeMap[r].edgeMap[t])){var o=new n(t,e,r,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 n(t,r,e,i);this.nodeMap[r].addEdge(a),this.edgeLabelMap[i].push(a)}}},t}();e.Graph=i},708:(t,e)=>{"use strict";Object.defineProperty(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});if("target"===n){return r.filter(function(e){return e.source===t}).map(function(t){return t.target})}if("source"===n){return r.filter(function(e){return e.target===t}).map(function(t){return t.source})}return 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)}},755:function(t){var e;"undefined"!==typeof self&&self,e=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 new 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=function(t){return o.indexOf(t)>-1}(s),s&&-1===i.indexOf(s))throw new 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 l=r(t,e),u=l.left,c=l.right;n(u,e),n(c,e),e.isHorizontal?u.right2left():u.bottom2top(),c.translate(u.x-c.x,u.y-c.y),t.x=u.x,t.y=c.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.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 l=a[i]-o[i];if(0===l)return;var u=2*Math.PI/s;t.DFTraverse(function(e){var n=(e[i]-o[i])/l*(2*Math.PI-u)+u,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){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.preH=e.getPreH(t),n.preV=e.getPreV(t),n.width=e.getWidth(t),n.height=e.getHeight(t),n.width+=n.preH,n.height+=n.preV,n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}r.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){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,e=t.getBoundingBox();t.eachNode(function(t){t.x=t.x-2*(t.x-e.left)-t.width}),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode(function(t){t.y=t.y-2*(t.y-e.top)-t.height}),t.translate(0,e.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=r.assign({},i,e)),l=[s];if(!n&&!t.collapsed)for(;a=l.shift();)if(!a.data.collapsed){var u=e.getChildren(a.data),c=u?u.length:0;if(a.children=new Array(c),u&&c)for(var h=0;h n.low&&(n=n.nxt);var s=i+r.prelim+r.w-(a+o.prelim);s>0&&(a+=s,u(t,e,n.index,s));var l=d(r),f=d(o);l<=f&&null!==(r=h(r))&&(i+=r.mod),l>=f&&null!==(o=c(o))&&(a+=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,a):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)}function u(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,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,n,r)}function c(t){return 0===t.cs?t.tl:t.c[0]}function h(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function f(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var p=n.fromNode(t,r);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=f(d(e.c[0].el),0,null),r=1;r s&&(s=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=s;else{var n=e.children.map(function(e){return t(e)}),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(l),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)}(l),a(l,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},r(t,e)}var i=n(1),o=n(11),a=n(4),s=n(0),l=["LR","RL","H"],u=l[0],c=function(t){function e(){return t.apply(this,arguments)||this}var n,i;return i=t,(n=e).prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i),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,c=t.direction,h=void 0===c?u:c,d=t.align;if(h&&-1===l.indexOf(h))throw new TypeError("Invalid direction: "+h);if(h===l[0])o(e,r,s,d);else if(h===l[1])o(e,r,s,d),e.right2left();else if(h===l[2]){var f=a(e,t),p=f.left,g=f.right;o(p,r,s,d),p.right2left(),o(g,r,s,d);var v=p.getBoundingBox();g.translate(v.width,0),e.x=g.x-e.width/2}return e},e}(i),h={};t.exports=function(t,e){return e=s.assign({},h,e),new c(t,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)return t.x+=a,void(t.y=e?e.y:0)}catch(u){}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,l=s.y+r.getHeight(s,t,o);t.y=l>t.y?l: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},r(t,e)}var i=n(1),o=n(13),a=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}var n,i;return i=t,(n=e).prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i),e.prototype.execute=function(){return a(this.rootNode,this.options,o)},e}(i),u={};t.exports=function(t,e){return e=s.assign({},u,e),new l(t,e).execute()}},function(t,e,n){var r=n(0);function i(t,e){var n=0;return t.children.length?t.children.forEach(function(t){n+=i(t,e)}):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function o(t){var e=t.children,n=e.length;if(n){e.forEach(function(t){o(t)});var r=e[0],i=e[n-1],a=i.y-r.y+i.height,s=0;if(e.forEach(function(t){s+=t.totalHeight}),a>t.height)t.y=r.y+a/2-t.height/2;else if(1!==e.length||t.height>s){var l=t.y+(t.height-a)/2-r.y;e.forEach(function(t){t.translate(0,l)})}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var a={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),t.parent=null,i(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i {var r=n(2202),i=n(5084),o=n(6588),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},855:(t,e,n)=>{var r=n(5139).Symbol;t.exports=r},863:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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){null!=this.body?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)):this.body=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()||(this.quad?this.quad.getLength():0)/this.body.distanceTo(t) {"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?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(40)),s=r(n(9720)),l=r(n(3948));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){return a.createElement(l.default,(0,o.default)((0,o.default)({},t),{},{ref:e,icon:s.default}))},h=a.forwardRef(c);e.default=h},902:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"}},906:t=>{function e(n){return t.exports=e="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.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},944:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exchangeEdges=e.enterEdge=e.leaveEdge=e.initLowLimValues=e.calcCutValue=e.initCutValues=void 0;var r=n(6637),i=n(8901),o=n(2872),a=n(1925),s=a.algorithm.preorder,l=a.algorithm.postorder;e.initCutValues=function(t,e){var n=l(t,t.nodes());null===(n=null===n||void 0===n?void 0:n.slice(0,(null===n||void 0===n?void 0:n.length)-1))||void 0===n||n.forEach(function(n){u(t,e,n)})};var u=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,l=a?r.w:r.v;if(l!==i){var u=a===o,c=e.edge(r).weight;if(s+=u?c:-c,d(t,n,l)){var h=t.edgeFromArgs(n,l).cutvalue;s+=u?-h:h}}}),s};e.initLowLimValues=function(t,e){void 0===e&&(e=t.nodes()[0]),c(t,{},1,e)};var c=function(t,e,n,r,i){var o,a=n,s=n,l=t.node(r);return e[r]=!0,null===(o=t.neighbors(r))||void 0===o||o.forEach(function(n){e[n]||(s=c(t,e,s,n,r))}),l.low=a,l.lim=s++,i?l.parent=i:delete l.parent,s};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),l=t.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var h=e.edges().filter(function(e){return c===f(t,t.node(e.v),u)&&c!==f(t,t.node(e.w),u)});return(0,o.minBy)(h,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),h(t,n)};var h=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?void 0:r.slice(1))||void 0===r||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)},f=function(t,e,n){return n.low<=e.lim&&e.lim<=n.lim};e.default=function(t){var n=(0,o.simplify)(t);(0,i.longestPath)(n);var a,s,l=(0,r.feasibleTree)(n);for((0,e.initLowLimValues)(l),(0,e.initCutValues)(l,n);a=(0,e.leaveEdge)(l);)s=(0,e.enterEdge)(l,n,a),(0,e.exchangeEdges)(l,n,a,s)}},994:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})},o=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(l){return function(s){if(n)throw new 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]-1||(e[r]=t[r])}),e}),e.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){f=l.forceLink().id(function(t){return t.id}).links(r);e.edgeStrength&&f.strength(e.edgeStrength),e.linkDistance&&f.distance(e.linkDistance),e.edgeForce=f,i.force("link",f)}e.preventOverlap&&e.overlapProcess(i),i.alpha(s).restart(),this.ticking=!0}else try{var c=l.forceManyBody();if(e.nodeStrength&&c.strength(e.nodeStrength),i=l.forceSimulation().nodes(n),e.clustering){var h=(0,u.default)();h.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),r&&h.links(r),n&&h.nodes(n),h.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=h,i.force("group",h)}if(i.force("center",l.forceCenter(e.center[0],e.center[1])).force("charge",c).alpha(s).alphaDecay(a).alphaMin(o),e.preventOverlap&&e.overlapProcess(i),r){var f=l.forceLink().id(function(t){return t.id}).links(r);e.edgeStrength&&f.strength(e.edgeStrength),e.linkDistance&&f.distance(e.linkDistance),e.edgeForce=f,i.force("link",f)}if(e.workerEnabled&&!p()&&(e.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),e.workerEnabled){i.stop();for(var g=function(t){var e=t.alphaMin(),n=t.alphaTarget(),r=t.alpha(),i=Math.log((e-n)/(r-n))/Math.log(1-t.alphaDecay()),o=Math.ceil(i);return o}(i),v=1;v<=g;v++)i.tick(),postMessage({nodes:n,currentTick:v,totalTicks:g,type:d.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(m){e.ticking=!1,console.warn(m)}}},e.prototype.overlapProcess=function(t){var e,n,r=this,i=r.nodeSize,o=r.nodeSpacing,a=r.collideStrength;if(n=(0,c.isNumber)(o)?function(){return o}:(0,c.isFunction)(o)?o:function(){return 0},i)if((0,c.isFunction)(i))e=function(t){return i(t)+n(t)};else if((0,c.isArray)(i)){var s=(i[0]>i[1]?i[0]:i[1])/2;e=function(t){return s+n(t)}}else if((0,c.isNumber)(i)){var u=i/2;e=function(t){return u+n(t)}}else e=function(){return 10};else e=function(t){return t.size?(0,c.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+n(t):(0,c.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2+n(t):t.size/2+n(t):10+n(t)};t.force("collisionForce",l.forceCollide(e).strength(a))},e.prototype.updateCfg=function(t){var e=this;e.ticking&&(e.forceSimulation.stop(),e.ticking=!1),e.forceSimulation=null,Object.assign(e,t)},e.prototype.destroy=function(){var t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0},e}(h.Base);function p(){return"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}e.ForceLayout=f},1093:t=>{t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},1208:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var i=n(2080),o=n(7007),a=new Map;e.registerLayout=function(t,e){if(a.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,o.isObject)(e)){var n=function(t){function n(n){var r,i,o=r=t.call(this)||this,a={},s=Object.assign({},o.getDefaultCfg(),(null===(i=e.getDefaultCfg)||void 0===i?void 0:i.call(e))||{});return Object.assign(a,s,e,n),Object.keys(a).forEach(function(t){var e=a[t];o[t]=e}),r}return r(n,t),n}(i.Base);a.set(t,n)}else a.set(t,e);return a.get(t)};e.unRegisterLayout=function(t){a.has(t)&&a.delete(t)};e.getLayoutByName=function(t){return a.has(t)?a.get(t):null}},1229:t=>{t.exports=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports},1241:(t,e,n)=>{var r=n(1880),i=n(266),o=n(8507),a=RegExp("['\u2019]","g");t.exports=function(t){return function(e){return r(o(i(e).replace(a,"")),t,"")}}},1418:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?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(40)),s=r(n(4100)),l=r(n(3948));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){return a.createElement(l.default,(0,o.default)((0,o.default)({},t),{},{ref:e,icon:s.default}))},h=a.forwardRef(c);e.default=h},1428:(t,e)=>{"use strict";Object.defineProperty(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"}},1441:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.GForceLayout=void 0;var i=n(2080),o=n(7007),a=function(t,e){return t?(0,o.isNumber)(t)?function(e){return t}:t:function(t){return e||1}},s=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 r(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t,e,n=this,r=n.nodes;if(void 0!==n.timeInterval&&"undefined"!==typeof window&&window.clearInterval(n.timeInterval),r&&0!==r.length){n.width||"undefined"===typeof window||(n.width=window.innerWidth),n.height||"undefined"===typeof window||(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var i=n.center;if(1===r.length)return r[0].x=i[0],r[0].y=i[1],void(null===(e=n.onLayoutEnd)||void 0===e||e.call(n));var s={},l={};r.forEach(function(t,e){(0,o.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,o.isNumber)(t.y)||(t.y=Math.random()*n.height),s[t.id]=t,l[t.id]=e}),n.nodeMap=s,n.nodeIdxMap=l,n.linkDistance=a(n.linkDistance,1),n.nodeStrength=a(n.nodeStrength,1),n.edgeStrength=a(n.edgeStrength,1);var u,c=n.nodeSize;if(n.preventOverlap){var h,d=n.nodeSpacing;h=(0,o.isNumber)(d)?function(){return d}:(0,o.isFunction)(d)?d:function(){return 0},u=c?(0,o.isArray)(c)?function(t){return Math.max(c[0],c[1])+h(t)}:function(t){return c+h(t)}:function(t){return t.size?(0,o.isArray)(t.size)?Math.max(t.size[0],t.size[1])+h(t):(0,o.isObject)(t.size)?Math.max(t.size.width,t.size.height)+h(t):t.size+h(t):10+h(t)}}n.nodeSize=u;var f=n.edges;n.degrees=(0,o.getDegree)(r.length,n.nodeIdxMap,f),n.getMass||(n.getMass=function(t){return t.mass||n.degrees[n.nodeIdxMap[t.id]].all||1}),n.run()}else null===(t=n.onLayoutEnd)||void 0===t||t.call(n)},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&&(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) =d)){var f=n.x-e.x,p=n.y-e.y;0===f&&0===p&&(f=.01*Math.random(),p=.01*Math.random());var g=f*f+p*p,v=Math.sqrt(g),m=(v+.1)*o,y=f/v,b=p/v,x=.5*(u(n)+u(e))*i/(m*m),w=r?r(e):1;if(t[2*s]+=y*x,t[2*s+1]+=b*x,t[2*d]-=y*x,t[2*d+1]-=b*x,a&&(c(n)+c(e))/2>v){var S=l*(u(n)+u(e))*.5/g;t[2*s]+=y*S/h,t[2*s+1]+=b*S/h,t[2*d]-=y*S/w,t[2*d+1]-=b*S/w}}})})},e.prototype.calAttractive=function(t,e){var n=this,r=n.nodeMap,i=n.nodeIdxMap,a=n.linkDistance,s=n.edgeStrength,l=n.nodeSize,u=n.getMass;e.forEach(function(e,n){var c=(0,o.getEdgeTerminal)(e,"source"),h=(0,o.getEdgeTerminal)(e,"target"),d=r[c],f=r[h],p=f.x-d.x,g=f.y-d.y;0===p&&0===g&&(p=.01*Math.random(),g=.01*Math.random());var v=Math.sqrt(p*p+g*g),m=p/v,y=g/v,b=((a(e,d,f)||1+(l(d)+l(f)||0)/2)-v)*s(e),x=i[c],w=i[h],S=u?u(d):1,k=u?u(f):1;t[2*x]-=m*b/S,t[2*x+1]-=y*b/S,t[2*w]+=m*b/k,t[2*w+1]+=y*b/k})},e.prototype.calGravity=function(t,e){for(var n=this,r=n.center,i=n.gravity,a=n.degrees,s=e.length,l=0;l i.maxSpeed){var u=i.maxSpeed/l;a*=u,s*=u}e[2*r]=a,e[2*r+1]=s})},e.prototype.updatePosition=function(t,e,n){n.forEach(function(n,r){if((0,o.isNumber)(n.fx)&&(0,o.isNumber)(n.fy))return n.x=n.fx,void(n.y=n.fy);var i=t[2*r]*e,a=t[2*r+1]*e;n.x+=i,n.y+=a})},e.prototype.stop=function(){this.timeInterval&&"undefined"!==typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(i.Base);e.GForceLayout=s},1484: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{"use strict";n.r(e),n.d(e,{BRIDGE_GRAPH_NAME:()=>s,GraphType:()=>c,HierarchyNodeType:()=>h,InclusionType:()=>u,LAYOUT_CONFIG:()=>r,NodeType:()=>l,ROOT_NAME:()=>a,buildGraph:()=>da,flatGraph:()=>fa,getEdges:()=>pa,mergeConfig:()=>i});const r={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 i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;var n,i,o,a;const s=JSON.parse(JSON.stringify(e)),l=(null===(n=null==t?void 0:t.graph)||void 0===n?void 0:n.meta)||{},u=(null===(i=null==t?void 0:t.subScene)||void 0===i?void 0:i.meta)||{},c=(null===(o=null==t?void 0:t.nodeSize)||void 0===o?void 0:o.meta)||{},h=(null===(a=null==t?void 0:t.nodeSize)||void 0===a?void 0:a.node)||{},d=s.nodeSize.bridge;return{graph:{meta:Object.assign(s.graph.meta,l)},subScene:{meta:Object.assign(s.subScene.meta,u)},nodeSize:{meta:Object.assign(s.nodeSize.meta,c),node:Object.assign(s.nodeSize.node,h),bridge:d}}}function o(t){return"\u25ec".concat(t,"\u25ec")}const a=o("ROOT"),s=o("BRIDGE_GRAPH");var l,u,c,h;!function(t){t[t.META=0]="META",t[t.NODE=1]="NODE",t[t.BRIDGE=2]="BRIDGE"}(l||(l={})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(u||(u={})),function(t){t[t.META=0]="META",t[t.CORE=1]="CORE",t[t.BRIDGE=2]="BRIDGE"}(c||(c={})),function(t){t[t.META=0]="META",t[t.OP=1]="OP",t[t.SERIES=2]="SERIES"}(h||(h={}));var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function f(t,e){return t(e={exports:{}},e.exports),e.exports}var p=function(t,e){return t===e||t!=t&&e!=e},g=function(t,e){for(var n=t.length;n--;)if(p(t[n][0],e))return n;return-1},v=Array.prototype.splice;function m(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e -1},m.prototype.set=function(t,e){var n=this.__data__,r=g(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var y,b=m,x="object"==typeof d&&d&&d.Object===Object&&d,w="object"==typeof self&&self&&self.Object===Object&&self,S=x||w||Function("return this")(),k=S.Symbol,E=Object.prototype,M=E.hasOwnProperty,_=E.toString,C=k?k.toStringTag:void 0,A=Object.prototype.toString,O=k?k.toStringTag:void 0,T=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":O&&O in Object(t)?function(t){var e=M.call(t,C),n=t[C];try{t[C]=void 0;var r=!0}catch(t){}var i=_.call(t);return r&&(e?t[C]=n:delete t[C]),i}(t):function(t){return A.call(t)}(t)},I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},N=function(t){if(!I(t))return!1;var e=T(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},P=S["__core-js_shared__"],D=(y=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",L=Function.prototype.toString,R=function(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""},j=/^\[object .+?Constructor\]$/,B=Function.prototype,z=Object.prototype,F=B.toString,G=z.hasOwnProperty,U=RegExp("^"+F.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=function(t){return!(!I(t)||function(t){return!!D&&D in t}(t))&&(N(t)?U:j).test(R(t))},V=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return W(n)?n:void 0},H=V(S,"Map"),Y=V(Object,"create"),X=Object.prototype.hasOwnProperty,q=Object.prototype.hasOwnProperty;function K(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e -1&&t%1==0&&t -1&&t%1==0&&t<=9007199254740991},xt={};xt["[object Float32Array]"]=xt["[object Float64Array]"]=xt["[object Int8Array]"]=xt["[object Int16Array]"]=xt["[object Int32Array]"]=xt["[object Uint8Array]"]=xt["[object Uint8ClampedArray]"]=xt["[object Uint16Array]"]=xt["[object Uint32Array]"]=!0,xt["[object Arguments]"]=xt["[object Array]"]=xt["[object ArrayBuffer]"]=xt["[object Boolean]"]=xt["[object DataView]"]=xt["[object Date]"]=xt["[object Error]"]=xt["[object Function]"]=xt["[object Map]"]=xt["[object Number]"]=xt["[object Object]"]=xt["[object RegExp]"]=xt["[object Set]"]=xt["[object String]"]=xt["[object WeakMap]"]=!1;var wt=function(t){return function(e){return t(e)}},St=f(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&x.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=o}),kt=St&&St.isTypedArray,Et=kt?wt(kt):function(t){return lt(t)&&bt(t.length)&&!!xt[T(t)]},Mt=Object.prototype.hasOwnProperty,_t=function(t,e){var n=pt(t),r=!n&&ft(t),i=!n&&!r&&vt(t),o=!n&&!r&&!i&&Et(t),a=n||r||i||o,s=a?function(t,e){for(var n=-1,r=Array(t);++n s))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var h=-1,d=!0,f=2&n?new Le:void 0;for(o.set(t,e),o.set(e,t);++h 0&&r(l)?n>1?t(l,n-1,r,i,o):Ht(o,l):i||(o[o.length]=l)}return o},Kn=Math.max,Qn=function(t,e,n){return e=Kn(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Kn(r.length-e,0),a=Array(o);++i0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Zn),tr=function(t,e){return Jn(Qn(t,e,Oe),t+"")},er=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o-1},ir=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r=200){var u=e?null:or(t);if(u)return Fe(u);a=!1,i=je,l=new Le}else l=e?[]:s;t:for(;++r o){var a=i;i=o,o=a}return i+"\x01"+o+"\x01"+(ur.isUndefined(r)?"\0":r)}function gr(t,e){return pr(t,e.v,e.w,e.name)}hr.prototype._nodeCount=0,hr.prototype._edgeCount=0,hr.prototype.isDirected=function(){return this._isDirected},hr.prototype.isMultigraph=function(){return this._isMultigraph},hr.prototype.isCompound=function(){return this._isCompound},hr.prototype.setGraph=function(t){return this._label=t,this},hr.prototype.graph=function(){return this._label},hr.prototype.setDefaultNodeLabel=function(t){return ur.isFunction(t)||(t=ur.constant(t)),this._defaultNodeLabelFn=t,this},hr.prototype.nodeCount=function(){return this._nodeCount},hr.prototype.nodes=function(){return ur.keys(this._nodes)},hr.prototype.sources=function(){var t=this;return ur.filter(this.nodes(),function(e){return ur.isEmpty(t._in[e])})},hr.prototype.sinks=function(){var t=this;return ur.filter(this.nodes(),function(e){return ur.isEmpty(t._out[e])})},hr.prototype.setNodes=function(t,e){var n=arguments,r=this;return ur.each(t,function(t){n.length>1?r.setNode(t,e):r.setNode(t)}),this},hr.prototype.setNode=function(t,e){return ur.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},hr.prototype.node=function(t){return this._nodes[t]},hr.prototype.hasNode=function(t){return ur.has(this._nodes,t)},hr.prototype.removeNode=function(t){var e=this;if(ur.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],ur.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),ur.each(ur.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],ur.each(ur.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},hr.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ur.isUndefined(e))e="\0";else{for(var n=e+="";!ur.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},hr.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},hr.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},hr.prototype.children=function(t){if(ur.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return ur.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},hr.prototype.predecessors=function(t){var e=this._preds[t];if(e)return ur.keys(e)},hr.prototype.successors=function(t){var e=this._sucs[t];if(e)return ur.keys(e)},hr.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return ur.union(e,this.successors(t))},hr.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},hr.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;ur.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),ur.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var r={};function i(t){var o=n.parent(t);return void 0===o||e.hasNode(o)?(r[t]=o,o):o in r?r[o]:i(o)}return this._isCompound&&ur.each(e.nodes(),function(t){e.setParent(t,i(t))}),e},hr.prototype.setDefaultEdgeLabel=function(t){return ur.isFunction(t)||(t=ur.constant(t)),this._defaultEdgeLabelFn=t,this},hr.prototype.edgeCount=function(){return this._edgeCount},hr.prototype.edges=function(){return ur.values(this._edgeObjs)},hr.prototype.setPath=function(t,e){var n=this,r=arguments;return ur.reduce(t,function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i}),this},hr.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,ur.isUndefined(n)||(n=""+n);var a=pr(this._isDirected,t,e,n);if(ur.has(this._edgeLabels,a))return i&&(this._edgeLabels[a]=r),this;if(!ur.isUndefined(n)&&!this._isMultigraph)throw new 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,dr(this._preds[e],t),dr(this._sucs[t],e),this._in[e][a]=s,this._out[t][a]=s,this._edgeCount++,this},hr.prototype.edge=function(t,e,n){var r=1===arguments.length?gr(this._isDirected,arguments[0]):pr(this._isDirected,t,e,n);return this._edgeLabels[r]},hr.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?gr(this._isDirected,arguments[0]):pr(this._isDirected,t,e,n);return ur.has(this._edgeLabels,r)},hr.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?gr(this._isDirected,arguments[0]):pr(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],fr(this._preds[e],t),fr(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},hr.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=ur.values(n);return e?ur.filter(r,function(t){return t.v===e}):r}},hr.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=ur.values(n);return e?ur.filter(r,function(t){return t.w===e}):r}},hr.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))};var vr={Graph:cr,version:"2.1.8"},mr={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:yr(t),edges:br(t)};return ur.isUndefined(t.graph())||(e.value=ur.clone(t.graph())),e},read:function(t){var e=new cr(t.options).setGraph(t.value);return ur.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),ur.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}};function yr(t){return ur.map(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return ur.isUndefined(n)||(i.value=n),ur.isUndefined(r)||(i.parent=r),i})}function br(t){return ur.map(t.edges(),function(e){var n=t.edge(e),r={v:e.v,w:e.w};return ur.isUndefined(e.name)||(r.name=e.name),ur.isUndefined(n)||(r.value=n),r})}var xr=wr;function wr(){this._arr=[],this._keyIndices={}}wr.prototype.size=function(){return this._arr.length},wr.prototype.keys=function(){return this._arr.map(function(t){return t.key})},wr.prototype.has=function(t){return ur.has(this._keyIndices,t)},wr.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},wr.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},wr.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!ur.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},wr.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},wr.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},wr.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n >1].priority 0&&(i=s.removeMin(),(o=a[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(l);return a}(t,String(e),n||kr,r||function(e){return t.outEdges(e)})},kr=ur.constant(1),Er=function(t){var e=0,n=[],r={},i=[];function o(a){var s=r[a]={onStack:!0,lowlink:e,index:e++};if(n.push(a),t.successors(a).forEach(function(t){ur.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 l,u=[];do{l=n.pop(),r[l].onStack=!1,u.push(l)}while(a!==l);i.push(u)}}return t.nodes().forEach(function(t){ur.has(r,t)||o(t)}),i},Mr=ur.constant(1),_r=Cr;function Cr(t){var e={},n={},r=[];if(ur.each(t.sinks(),function i(o){if(ur.has(n,o))throw new Ar;ur.has(e,o)||(n[o]=!0,e[o]=!0,ur.each(t.predecessors(o),i),delete n[o],r.push(o))}),ur.size(e)!==t.nodeCount())throw new Ar;return r}function Ar(){}Cr.CycleException=Ar,Ar.prototype=new Error;var Or=function(t,e,n){ur.isArray(e)||(e=[e]);var r=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],o={};return ur.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);Tr(t,e,"post"===n,o,r,i)}),i};function Tr(t,e,n,r,i,o){ur.has(r,e)||(r[e]=!0,n||o.push(e),ur.each(i(e),function(e){Tr(t,e,n,r,i,o)}),n&&o.push(e))}var Ir,Nr={Graph:vr.Graph,json:mr,alg:{components:function(t){var e,n={},r=[];function i(r){ur.has(n,r)||(n[r]=!0,e.push(r),ur.each(t.successors(r),i),ur.each(t.predecessors(r),i))}return ur.each(t.nodes(),function(t){e=[],i(t),e.length&&r.push(e)}),r},dijkstra:Sr,dijkstraAll:function(t,e,n){return ur.transform(t.nodes(),function(r,i){r[i]=Sr(t,i,e,n)},{})},findCycles:function(t){return ur.filter(Er(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})},floydWarshall:function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=o[t],i=e[n],a=o[n],s=r.distance+i.distance;s 0;){if(n=o.removeMin(),ur.has(i,n))r.setEdge(n,i[n]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(n).forEach(a)}return r},tarjan:Er,topsort:_r},version:vr.version};try{Ir=Nr}catch(r){}Ir||(Ir=window.graphlib);var Pr,Dr=Ir,Lr=function(t,e,n){if(!I(n))return!1;var r=typeof e;return!!("number"==r?Pt(n)&&yt(e,n.length):"string"==r&&e in n)&&p(n[e],t)},Rr=Object.prototype,jr=Rr.hasOwnProperty,Br=tr(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&Lr(e[0],e[1],i)&&(r=1);++n -1?i[o?e[a]:a]:void 0}}(function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:function(t){var e=Vr(t),n=e%1;return e==e?n?e-n:e:0}(n);return i<0&&(i=Hr(r+i,0)),er(t,Sn(e),i)}),Xr=function(t){return null!=t&&t.length?qn(t,1):[]},qr=function(t,e,n){for(var r=-1,i=t.length;++re},Qr=function(t,e,n){(void 0!==n&&!p(t[e],n)||void 0===n&&!(e in t))&&it(t,e,n)},Zr=Function.prototype,$r=Object.prototype,Jr=Zr.toString,ti=$r.hasOwnProperty,ei=Jr.call(Object),ni=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},ri=function(t,e,n,r,i,o,a){var s=ni(t,n),l=ni(e,n),u=a.get(l);if(u)Qr(t,n,u);else{var c=o?o(s,l,n+"",t,e,a):void 0,h=void 0===c;if(h){var d=pt(l),f=!d&&vt(l),p=!d&&!f&&Et(l);c=l,d||f||p?pt(s)?c=s:ar(s)?c=zt(s):f?(h=!1,c=Bt(l,!0)):p?(h=!1,c=pe(l,!0)):c=[]:function(t){if(!lt(t)||"[object Object]"!=T(t))return!1;var e=Yt(t);if(null===e)return!0;var n=ti.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Jr.call(n)==ei}(l)||ft(l)?(c=s,ft(s)?c=function(t){return st(t,jt(t))}(s):I(s)&&!N(s)||(c=ye(l))):h=!1}h&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Qr(t,n,c)}},ii=function t(e,n,r,i,o){e!==n&&_e(n,function(a,s){if(o||(o=new et),I(a))ri(e,n,s,r,t,i,o);else{var l=i?i(ni(e,s),a,s+"",e,n,o):void 0;void 0===l&&(l=a),Qr(e,s,l)}},jt)},oi=function(t){return tr(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&Lr(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++re||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&t =s?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})},gi=tr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Lr(t,e[0],e[1])?e=[]:n>2&&Lr(e[0],e[1],e[2])&&(e=[e[0]]),pi(t,qn(e,1),[])}),vi=0;try{Pr={cloneDeep:function(t){return Ee(t,5)},constant:Me,defaults:Br,each:Ne,filter:kn,find:Yr,flatten:Xr,forEach:Ie,forIn:function(t,e){return null==t?t:_e(t,Te(e),jt)},has:_n,isUndefined:An,last:function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},map:Tn,mapValues:function(t,e){var n={};return e=Sn(e),Ce(t,function(t,r,i){it(n,r,e(t,r,i))}),n},max:function(t){return t&&t.length?qr(t,Oe,Kr):void 0},merge:oi,min:function(t){return t&&t.length?qr(t,Oe,ai):void 0},minBy:function(t,e){return t&&t.length?qr(t,Sn(e),ai):void 0},now:function(){return S.Date.now()},pick:ui,range:di,reduce:Pn,sortBy:gi,uniqueId:function(t){var e=++vi;return dn(t)+e},values:lr,zipObject:function(t,e){return function(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r0;--s)if(r=e[s].dequeue()){i=i.concat(Ei(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return mi.flatten(mi.map(r,function(e){return t.outEdges(e.v,e.w)}),!0)}(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},r={};return mi.forEach(t.nodes(),function i(o){mi.has(r,o)||(r[o]=!0,n[o]=!0,mi.forEach(t.outEdges(o),function(t){mi.has(n,t.w)?e.push(t):i(t.w)}),delete n[o])}),e}(t);mi.forEach(e,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,mi.uniqueId("rev"))})},Ci=function(t){mi.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)}})},Ai=Dr.Graph,Oi={addDummyNode:Ti,simplify:function(t){var e=(new Ai).setGraph(t.graph());return mi.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),mi.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 Ai({multigraph:t.isMultigraph()}).setGraph(t.graph());return mi.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),mi.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=mi.map(t.nodes(),function(e){var n={};return mi.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return mi.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=mi.map(t.nodes(),function(e){var n={};return mi.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return mi.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,l=t.width/2,u=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=mi.map(mi.range(Ii(t)+1),function(){return[]});return mi.forEach(t.nodes(),function(n){var r=t.node(n),i=r.rank;mi.isUndefined(i)||(e[i][r.order]=n)}),e},normalizeRanks:function(t){var e=mi.min(mi.map(t.nodes(),function(e){return t.node(e).rank}));mi.forEach(t.nodes(),function(n){var r=t.node(n);mi.has(r,"rank")&&(r.rank-=e)})},removeEmptyRanks:function(t){var e=mi.min(mi.map(t.nodes(),function(e){return t.node(e).rank})),n=[];mi.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;mi.forEach(n,function(e,n){mi.isUndefined(e)&&n%i!=0?--r:r&&mi.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),Ti(t,"border",i,e)},maxRank:Ii,partition:function(t,e){var n={lhs:[],rhs:[]};return mi.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=mi.now();try{return e()}finally{console.log(t+" time: "+(mi.now()-n)+"ms")}},notime:function(t,e){return e()}};function Ti(t,e,n,r){var i;do{i=mi.uniqueId(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function Ii(t){return mi.max(mi.map(t.nodes(),function(e){var n=t.node(e).rank;if(!mi.isUndefined(n))return n}))}var Ni=function(t){t.graph().dummyChains=[],mi.forEach(t.edges(),function(e){!function(t,e){var n,r,i,o=e.v,a=t.node(o).rank,s=e.w,l=t.node(s).rank,u=e.name,c=t.edge(e),h=c.labelRank;if(l!==a+1){for(t.removeEdge(e),i=0,++a;a a.lim&&(s=a,l=!0);var u=mi.filter(e.edges(),function(e){return l===no(t,t.node(e.v),s)&&l!==no(t,t.node(e.w),s)});return mi.minBy(u,function(t){return Ui(e,t)})}function eo(t,e,n,r){var i=n.v,o=n.w;t.removeEdge(i,o),t.setEdge(r.v,r.w,{}),Zi(t),Ki(t,e),function(t,e){var n=mi.find(t.nodes(),function(t){return!e.node(t).parent}),r=Vi(t,n);r=r.slice(1),mi.forEach(r,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function no(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}qi.initLowLimValues=Zi,qi.initCutValues=Ki,qi.calcCutValue=Qi,qi.leaveEdge=Ji,qi.enterEdge=to,qi.exchangeEdges=eo;var ro=Di,io=ro;function oo(t){Xi(t)}var ao=function(t){var e=Oi.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(r,i){var o=t.children(r);o&&o.length&&mi.forEach(o,function(t){n(t,i+1)}),e[r]=i}return mi.forEach(t.children(),function(t){n(t,1)}),e}(t),r=mi.max(mi.values(n))-1,i=2*r+1;t.graph().nestingRoot=e,mi.forEach(t.edges(),function(e){t.edge(e).minlen*=i});var o=function(t){return mi.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;mi.forEach(t.children(),function(a){lo(t,e,i,o,r,n,a)}),t.graph().nodeRankFactor=i},so=function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,mi.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})};function lo(t,e,n,r,i,o,a){var s=t.children(a);if(s.length){var l=Oi.addBorderNode(t,"_bt"),u=Oi.addBorderNode(t,"_bb"),c=t.node(a);t.setParent(l,a),c.borderTop=l,t.setParent(u,a),c.borderBottom=u,mi.forEach(s,function(s){lo(t,e,n,r,i,o,s);var c=t.node(s),h=c.borderTop?c.borderTop:s,d=c.borderBottom?c.borderBottom:s,f=c.borderTop?r:2*r,p=h!==d?1:i-o[a]+1;t.setEdge(l,h,{weight:f,minlen:p,nestingEdge:!0}),t.setEdge(d,u,{weight:f,minlen:p,nestingEdge:!0})}),t.parent(a)||t.setEdge(e,l,{weight:0,minlen:i+o[a]})}else a!==e&&t.setEdge(e,a,{weight:0,minlen:n})}function uo(t,e,n,r,i,o){var a={width:0,height:0,rank:o,borderType:e},s=i[e][o-1],l=Oi.addDummyNode(t,"border",a,n);i[e][o]=l,t.setParent(l,r),s&&t.setEdge(s,l,{weight:1})}var co=function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||fo(t)},ho=function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){mi.forEach(t.nodes(),function(e){go(t.node(e))}),mi.forEach(t.edges(),function(e){var n=t.edge(e);mi.forEach(n.points,go),mi.has(n,"y")&&go(n)})}(t),"lr"!==e&&"rl"!==e||(function(t){mi.forEach(t.nodes(),function(e){vo(t.node(e))}),mi.forEach(t.edges(),function(e){var n=t.edge(e);mi.forEach(n.points,vo),mi.has(n,"x")&&vo(n)})}(t),fo(t))};function fo(t){mi.forEach(t.nodes(),function(e){po(t.node(e))}),mi.forEach(t.edges(),function(e){po(t.edge(e))})}function po(t){var e=t.width;t.width=t.height,t.height=e}function go(t){t.y=-t.y}function vo(t){var e=t.x;t.x=t.y,t.y=e}var mo=function(t,e){for(var n=0,r=1;r 0;)e%2&&(n+=s[e+1]),s[e=e-1>>1]+=t.weight;l+=t.weight*n})),l}function bo(t,e,n){for(var r;e.length&&(r=mi.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}var xo=function t(e,n,r,i){var o=e.children(n),a=e.node(n),s=a?a.borderLeft:void 0,l=a?a.borderRight:void 0,u={};s&&(o=mi.filter(o,function(t){return t!==s&&t!==l}));var c=function(t,e){return mi.map(e,function(e){var n=t.inEdges(e);if(n.length){var r=mi.reduce(n,function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}})}(e,o);mi.forEach(c,function(n){if(e.children(n.v).length){var o=t(e,n.v,r,i);u[n.v]=o,mi.has(o,"barycenter")&&(a=n,s=o,mi.isUndefined(a.barycenter)?(a.barycenter=s.barycenter,a.weight=s.weight):(a.barycenter=(a.barycenter*a.weight+s.barycenter*s.weight)/(a.weight+s.weight),a.weight+=s.weight))}var a,s});var h=function(t,e){var n={};return mi.forEach(t,function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};mi.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),mi.forEach(e.edges(),function(t){var e=n[t.v],r=n[t.w];mi.isUndefined(e)||mi.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]))}),function(t){var e=[];function n(t){return function(e){e.merged||(mi.isUndefined(e.barycenter)||mi.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function r(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var i=t.pop();e.push(i),mi.forEach(i.in.reverse(),n(i)),mi.forEach(i.out,r(i))}return mi.map(mi.filter(e,function(t){return!t.merged}),function(t){return mi.pick(t,["vs","i","barycenter","weight"])})}(mi.filter(n,function(t){return!t.indegree}))}(c,r);!function(t,e){mi.forEach(t,function(t){t.vs=mi.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(h,u);var d=function(t,e){var n,r=Oi.partition(t,function(t){return mi.has(t,"barycenter")}),i=r.lhs,o=mi.sortBy(r.rhs,function(t){return-t.i}),a=[],s=0,l=0,u=0;i.sort((n=!!e,function(t,e){return t.barycenter e.barycenter?1:n?e.i-t.i:t.i-e.i})),u=bo(a,o,u),mi.forEach(i,function(t){u+=t.vs.length,a.push(t.vs),s+=t.barycenter*t.weight,l+=t.weight,u=bo(a,o,u)});var c={vs:mi.flatten(a,!0)};return l&&(c.barycenter=s/l,c.weight=l),c}(h,i);if(s&&(d.vs=mi.flatten([s,d.vs,l],!0),e.predecessors(s).length)){var f=e.node(e.predecessors(s)[0]),p=e.node(e.predecessors(l)[0]);mi.has(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+f.order+p.order)/(d.weight+2),d.weight+=2}return d},wo=Dr.Graph,So=Dr.Graph,ko=function(t){var e=Oi.maxRank(t),n=Eo(t,mi.range(1,e+1),"inEdges"),r=Eo(t,mi.range(e-1,-1,-1),"outEdges"),i=function(t){var e={},n=mi.filter(t.nodes(),function(e){return!t.children(e).length}),r=mi.max(mi.map(n,function(e){return t.node(e).rank})),i=mi.map(mi.range(r+1),function(){return[]}),o=mi.sortBy(n,function(e){return t.node(e).rank});return mi.forEach(o,function n(r){if(!mi.has(e,r)){e[r]=!0;var o=t.node(r);i[o.rank].push(r),mi.forEach(t.successors(r),n)}}),i}(t);_o(t,i);for(var o,a=Number.POSITIVE_INFINITY,s=0,l=0;l<4;++s,++l){Mo(s%2?n:r,s%4>=2),i=Oi.buildLayerMatrix(t);var u=mo(t,i);un){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function Oo(t,e,n){if(e>n){var r=e;e=n,n=r}return mi.has(t[e],n)}var To=function(t){var e,n=Oi.buildLayerMatrix(t),r=mi.merge(function(t,e){var n={};return mi.reduce(e,function(e,r){var i=0,o=0,a=e.length,s=mi.last(r);return mi.forEach(r,function(e,l){var u=function(t,e){if(t.node(e).dummy)return mi.find(t.predecessors(e),function(e){return t.node(e).dummy})}(t,e),c=u?t.node(u).order:a;(u||e===s)&&(mi.forEach(r.slice(o,l+1),function(e){mi.forEach(t.predecessors(e),function(r){var o=t.node(r),a=o.order;!(aa)&&Ao(n,e,s)})})}return mi.reduce(e,function(e,n){var i,o=-1,a=0;return mi.forEach(n,function(s,l){if("border"===t.node(s).dummy){var u=t.predecessors(s);u.length&&(i=t.node(u[0]).order,r(n,a,l,o,i),a=l,o=i)}r(n,a,n.length,i,e.length)}),n}),n}(t,n)),i={};mi.forEach(["u","d"],function(o){e="u"===o?n:mi.values(n).reverse(),mi.forEach(["l","r"],function(n){"r"===n&&(e=mi.map(e,function(t){return mi.values(t).reverse()}));var a=("u"===o?t.predecessors:t.successors).bind(t),s=function(t,e,n,r){var i={},o={},a={};return mi.forEach(e,function(t){mi.forEach(t,function(t,e){i[t]=t,o[t]=t,a[t]=e})}),mi.forEach(e,function(t){var e=-1;mi.forEach(t,function(t){var s=r(t);if(s.length)for(var l=((s=mi.sortBy(s,function(t){return a[t]})).length-1)/2,u=Math.floor(l),c=Math.ceil(l);u<=c;++u){var h=s[u];o[t]===t&&el||u>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,e,i.v,i.w),a=o.path,s=o.lca,l=0,u=a[l],c=!0;n!==i.w;){if(r=t.node(n),c){for(;(u=a[l])!==s&&t.node(u).maxRank 1&&void 0!==arguments[1]?arguments[1]:{};this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=u.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=l.META,this.path=[],this.name=t,this.metaGraph=ea(t,c.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,t.nodes().forEach(e=>n.push(t.node(e)))):e.push(r.name)}return e}}class $o{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 Jo(t){return new Zo(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function ta(t,e){return new $o(t,e)}function ea(t,e,n){const r=n||{},i=new Xo.Graph(r);return i.setGraph({name:t,rankdir:r.rankdir,type:e,align:r.align}),i}class na{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.graphOptions=t,this.index={},this.graphOptions.compound=!0,this.root=Jo(a,this.graphOptions),this.index[a]=this.root}getNodeMap(){return this.index}node(t){return this.index[t]}setNode(t,e){this.index[t]=e}getBridgeGraph(t){const e=this.index[t];if(!e)throw Error("Could not find node in hierarchy: "+t);if(!("metaGraph"in e))return null;const n=e;if(n.bridgeGraph)return n.bridgeGraph;const r=ea(s,c.BRIDGE,this.graphOptions);if(n.bridgeGraph=r,!e.parentNode||!("metaGraph"in e.parentNode))return r;const i=e.parentNode;return[i.metaGraph,this.getBridgeGraph(i.name)].forEach(e=>{e.edges().filter(e=>e.v===t||e.w===t).forEach(n=>{const i=n.w===t;e.edge(n).baseEdgeList.forEach(e=>{const[o,a]=i?[e.w,n.v]:[e.v,n.w],s=this.getChildName(t,o),l={v:i?a:s,w:i?s:a};let u=r.edge(l);u||(u=ta(l.v,l.w),u.inbound=i,r.setEdge(l.v,l.w,u)),u.addBaseEdge(e,this)})})}),r}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){const e=this.index[t];if(!e)throw Error("Could not find node with name: "+t);return this.getOneWayEdges(e,!0)}getSuccessors(t){const e=this.index[t];if(!e)throw Error("Could not find node with name: "+t);return this.getOneWayEdges(e,!1)}getOneWayEdges(t,e){const n=[];if(!t.parentNode||!t.parentNode.isGroupNode)return n;const r=t.parentNode,i=r.metaGraph,o=this.getBridgeGraph(r.name);return ra(i,t,e,n),ra(o,t,e,n),n}}function ra(t,e,n,r){(n?t.inEdges(e.name):t.outEdges(e.name)).forEach(e=>{const n=t.edge(e);r.push(n)})}class ia{constructor(t){this.hierarchy=t,this.index={},this.hasSubHierarchy={},this.root=new sa(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;const e=this.index[t];if(e.node.type!==l.META)return;const n=e,r=n.node.metaGraph,i=n.coreGraph;r.nodes().forEach(t=>{const e=this.getOrCreateRenderNodeByName(t);i.setNode(t,e)}),r.edges().forEach(t=>{const e=r.edge(t),n=new aa(e);i.setEdge(t.v,t.w,n)});const o=n.node.parentNode;if(!o)return;const a=this.getRenderNodeByName(o.name),s=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r {const n=c.edge(e),h=!!r.node(e.w),[d,f]=h?[e.w,e.v]:[e.v,e.w],p=e=>{const n=h?{v:e,w:t}:{v:t,w:e};return a.coreGraph.edge(n)};let g=p(f);g||(g=p(s(h,f,o.name)));const v=s(h,t),m=s(h,f,t);let y=i.node(m);if(!y){let t=i.node(v);if(!t){const e={name:v,type:l.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:u.UNSPECIFIED,inbound:h,attr:{}};t=new oa(e),this.index[v]=t,i.setNode(v,t)}const e={name:m,type:l.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:u.UNSPECIFIED,inbound:h,attr:{}};y=new oa(e),this.index[m]=y,i.setNode(m,y),i.setParent(m,v),t.node.cardinality++}const b=new aa(n);b.adjoiningMetaEdge=g,h?i.setEdge(m,d,b):i.setEdge(d,m,b)})}getOrCreateRenderNodeByName(t){if(!t)return null;if(t in this.index)return this.index[t];const e=this.getNodeByName(t);return e?(this.index[t]=e.isGroupNode?new sa(e,this.hierarchy.graphOptions):new oa(e),this.index[t]):null}getRenderNodeByName(t){return this.index[t]}getNodeByName(t){return this.hierarchy.node(t)}}class oa{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 aa{constructor(t){this.metaEdge=t,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class sa extends oa{constructor(t,e){super(t);const n=t.metaGraph.graph();e.compound=!0,this.coreGraph=ea(n.name,c.CORE,e)}}function la(t,e){t.node.isGroupNode&&function(t,e){const n=i(e);t.coreGraph.nodes().map(e=>t.coreGraph.node(e)).forEach(t=>{var r,i,o,a,s,u;const{height:c,width:h}=t;switch(t.node.type){case l.NODE:Object.assign(t,n.nodeSize.node),t.height=c||n.nodeSize.node.height,t.width=h||n.nodeSize.node.width;break;case l.BRIDGE:Object.assign(t,n.nodeSize.bridge);break;case l.META:t.expanded?la(t,e):(Object.assign(t,n.nodeSize.meta),t.height=n.nodeSize.meta.height,t.width=n.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+t.node.type)}if(!t.expanded){const n=t.attr;!function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.coreBox.width=t.width,t.coreBox.height=t.height,!e){const e="".concat(t.displayName).length,n=3;t.width=Math.max(t.coreBox.width,e*n)}}(t,e&&(0===t.node.type&&!!(null===(i=null===(r=null==e?void 0:e.nodeSize)||void 0===r?void 0:r.meta)||void 0===i?void 0:i.width)||1===t.node.type&&(!!(null===(a=null===(o=null==e?void 0:e.nodeSize)||void 0===o?void 0:o.node)||void 0===a?void 0:a.width)||!!n.width)||2===t.node.type&&!!(null===(u=null===(s=null==e?void 0:e.nodeSize)||void 0===s?void 0:s.bridge)||void 0===u?void 0:u.width)))}})}(t,e),t.node.type===l.META&&function(t,e){const n=i(e),r=n.subScene.meta;Object.assign(t,r);const{nodeSep:o,rankSep:a,edgeSep:s,align:u}=n.graph.meta,c={nodesep:o,ranksep:a,edgesep:s,align:u};Object.assign(t.coreBox,function(t,e){const{ranksep:n,nodesep:r,edgesep:i,align:o}=e;Object.assign(t.graph(),{ranksep:n,nodesep:r,edgesep:i,align:o});const a=[];if(t.nodes().forEach(e=>{t.node(e).node.type!==l.BRIDGE&&a.push(e)}),!a.length)return{width:0,height:0};qo(t);let s=1/0,u=1/0,c=-1/0,h=-1/0;return a.forEach(e=>{const n=t.node(e),r=.5*n.width,i=n.x-r,o=n.x+r;s=i c?o:c;const a=.5*n.height,l=n.y-a,d=n.y+a;u=lh?d:h}),t.edges().forEach(e=>{const 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=ua(t[0],t[1]);for(let n=1;n1)return!1;e=r}return!0}(n.points)){if(null!=r){const t=r.expanded?r.x:ca(r);n.points[0].x=t}if(null!=i){const t=i.expanded?i.x:ca(i);n.points[2].x=t}n.points=[n.points[0],n.points[1]]}const o=n.points[n.points.length-2];null!=i&&(n.points[n.points.length-1]=ha(o,i));const a=n.points[1];null!=r&&(n.points[0]=ha(a,r)),n.points.forEach(t=>{s=t.x c?t.x:c,u=t.yh?t.y:h})}),t.nodes().forEach(e=>{const 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:h-u}}(t.coreGraph,c));let h=0;t.coreGraph.nodeCount()>0&&h++;const d=h<=1?0:h;t.coreBox.width+=d+d,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}(t,e)}function ua(t,e){const n=e.x-t.x,r=e.y-t.y;return 180*Math.atan(r/n)/Math.PI}function ca(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2}function ha(t,e){const n=e.expanded?e.x:ca(e),r=e.y,i=t.x-n,o=t.y-r;let a,s,l=e.expanded?e.width:e.coreBox.width,u=e.expanded?e.height:e.coreBox.height;return Math.abs(o)*l/2>Math.abs(i)*u/2?(o<0&&(u=-u),a=0===o?0:u/2*i/o,s=u/2):(i<0&&(l=-l),a=l/2,s=0===i?0:l/2*o/i),{x:n+a,y:r+s}}function da(t,e,n){var i,o,a,s;const l=t.nodes.filter((t,e,n)=>n.findIndex(e=>e.id===t.id)!==e).map(t=>t.id);if(l.length)throw new Error("Duplicated ids found: ".concat(l.join(", ")));const u=function(t){const e={nodes:[]},n=t.compound,r=Object.keys(n||{}),i=new Map,o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(i.has(t))return i.get(t);for(let i=0;it.edges.filter(t=>t.w===e).map(t=>({name:t.v}));return t.nodes.forEach(t=>{const n=t.id,r=[...o(n),n];let i=a(n);e.nodes.push({name:n,path:r,inputs:i,width:t.width,height:t.height,attr:Object.assign({},t)})}),e}(t),c=function(t,e){const n=(t,e)=>{for(let n of e.values())if(n.includes(t))return!0;return!1},r=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===Object.keys(t).length)return[...new Set(e)];const i=new Map(Object.keys(t).map(e=>[e,t[e]])),o={};for(let[r,a]of i)n(r,i)?o[r]=a:e=e.concat(r,a);return r(o,e)};return r(t).filter(t=>e.includes(t))}(t.compound||{},(null==e?void 0:e.expanded)||[]),h=function(t,e){return function(t){return new ia(t)}(function(t,e){const{rankDirection:n,align:r}=e,i=new na({rankdir:n,align:r});return function(t,e){Object.keys(e.nodes).forEach(n=>{const r=e.nodes[n],i=r.path;let o=t.root;o.depth=Math.max(i.length,o.depth);for(let e=0;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),l=o(e.nodes[a.w],i);for(;r[s]===i[l];)if(s--,l--,s<0||l<0)throw Error("No difference found between ancestor paths.");const u=n[r[s+1]],c=r[s],h=i[l];let d=u.metaGraph.edge(c,h);d||(d=ta(c,h),u.metaGraph.setEdge(c,h,d)),d.addBaseEdge(a,t)})}(i,t),i}(function(t){const e=new Qo;return t.nodes.map(t=>new Ko(t)).forEach(t=>{e.nodes[t.name]=t,t.inputs.forEach(n=>{!function(t,e,n){n.name!==e.name&&t.edges.push(Object.assign(Object.assign({},n.attr),{v:n.name,w:e.name}))}(e,t,n)})}),e}(t),e))}(u,{rankDirection:(null===(o=null===(i=null==n?void 0:n.graph)||void 0===i?void 0:i.meta)||void 0===o?void 0:o.rankDir)||(null==e?void 0:e.rankDirection)||r.graph.meta.rankDir,align:(null===(s=null===(a=null==n?void 0:n.graph)||void 0===a?void 0:a.meta)||void 0===s?void 0:s.align)||r.graph.meta.align});return function(t,e){e.forEach(e=>{const n=t.getRenderInfoNodes().find(t=>t.displayName===e);let r=n&&n.node&&n.node.name||"";const i=t.getRenderNodeByName(r);if(!i)throw new Error("No nodes found: ".concat(r));i.expanded=!0,t.buildSubHierarchy(r)})}(h,c),la(h.root,n),ga(h.root)}function fa(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const 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=>{const e=r.nodes.find(e=>e.id===t.parentNodeName);if(e){const n=e.x-e.width/2+e.paddingLeft,r=e.y-e.height/2+e.labelHeight+e.paddingTop;e.id!==a&&(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 pa(t,e,n,r){var i,o;let s=[];const l=(null===(i=n.find(e=>e.id===t))||void 0===i?void 0:i.path)||[],u=(null===(o=n.find(t=>t.id===e))||void 0===o?void 0:o.path)||[],c=[a,...l].slice(0,l.length).reverse(),h=[a,...u].slice(0,u.length);return c.forEach(i=>{const o=n.find(t=>t.id===i);s=s.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))))}),h.filter(t=>!c.includes(t)).forEach(i=>{const o=n.find(t=>t.id===i);s=s.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))))}),s}function ga(t){const e=t.coreGraph.nodes().map(e=>t.coreGraph.node(e));return Object.assign(Object.assign({},va(t)),{expanded:t.expanded,nodes:t.expanded?(n=e,n.map(t=>t.node.type===l.META?ga(t):va(t))):[],edges:t.expanded?ma(t):[]});var n}function va(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}}function ma(t){return t.coreGraph.edges().map(e=>({renderInfoEdge:t.coreGraph.edge(e),edge:e})).filter(t=>{let{renderInfoEdge:e}=t;return e.metaEdge}).map(e=>{let{edge:n,renderInfoEdge:r}=e;const i=function(t,e){const n=e.points.map(t=>Object.assign({},t));if(e.adjoiningMetaEdge){const 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,l=t.y-t.height/2,u=o.x-s,c=o.y-l,h=-t.paddingLeft,d=-(t.paddingTop+t.labelHeight);a.x=u+h,a.y=c+d}return n}(t,r);return{adjoiningEdge:r.adjoiningMetaEdge?{w:r.adjoiningMetaEdge.metaEdge.w,v:r.adjoiningMetaEdge.metaEdge.v}:null,inbound:r.metaEdge.inbound,w:n.w,v:n.v,points:i,weight:r.weight,baseEdgeList:r.metaEdge.baseEdgeList,parentNodeName:t.node.name}})}},1562:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=1e7,r=3.141592653589793,i=1.5707963267948966,o=.375*r,a=.625*r,s=new Map,l=.8;function u(t,e){var r=(s.get(t.id)||[]).find(function(t){return t.source===e.id||t.target===e.id}),l=t.size[0]*t.size[1],u=e.size[0]*e.size[1],c=l>u?e:t,h=l>u?t:e,d=c.x-c.size[0]/2,f=c.y-c.size[1]/2,p=c.x+c.size[0]/2,g=c.y+c.size[1]/2,v=h.x-h.size[0]/2,m=h.y-h.size[1]/2,y=h.x+h.size[0]/2,b=h.y+h.size[1]/2,x=c.x,w=c.y,S=h.x,k=h.y,E=0,M=0;if(p>=v&&y>=d&&g>=m&&b>=f){0===(M=Math.sqrt(Math.pow(S-x,2)+Math.pow(k-w,2)))&&(M=1e-7),E=10/M*100+((p v?d:v))*((gm?f:m)),E*=n}else{var _=!1,C=function(t,e,n){var r=t.x-t.size[0]/2,s=t.y-t.size[1]/2,l=t.x+t.size[0]/2,u=t.y+t.size[1]/2,c=e.x-e.size[0]/2,h=e.y-e.size[1]/2,d=e.x+e.size[0]/2,f=e.y+e.size[1]/2,p=t.x,g=t.y,v=e.x,m=e.y,y=v-p,b=Math.atan2(y,m-g),x=0,w=0,S=0,k=0;b>i?(w=s-f,x=c-l,S=parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)),k=parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2))):S=k=0(x=c-l)?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2)):b<-i?(w=s-f)>(x=-(d-r))?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2)):(w=h-u)>(x=Math.abs(y)>(l-r)/2?r-d:y)?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x&&0!==b?(x/Math.sin(b)).toFixed(2):w.toFixed(2));var E=parseFloat(b.toFixed(2)),M=n;return n&&(M=o 1200||r.y>800)&&(e+=1e12);for(var i=n+1;i 70&&c<110,f=h>70&&h<110;if((c<30||c>150)&&!(h<30||h>150)||c*h<0){s=!1;break}if(d&&!f||c*h<0){s=!1;break}if((u.x-t.x)*(u.x-e.x)<0){s=!1;break}if((u.y-t.y)*(u.y-e.y)<0){s=!1;break}}return s}function d(t,e){for(var n=!1,r=[10,-10,0,0],i=[0,0,10,-10],o=0;o .1?(s=d,n=!0):(a.x-=r[u],a.y-=i[u])}}return l>.1&&(l*=.5),n?c(t):0}function f(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 0&&!(++a>=50);){var l=d(t,e);0!==l&&(o=l),i=o-n,n=o,0===i?--r:r=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}}},1576:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(9476);function i(t){var e=function(t,e){if("object"!=(0,r.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==(0,r.A)(e)?e:e+""}},1624:(t,e,n)=>{var r=n(7846);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},1653:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(9040),i=l(n(3904)),o=l(n(9869)),a=l(n(6882)),s=n(708);function l(t){return t&&t.__esModule?t:{default:t}}var u=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(c(o,t,e,n,r))}),i},c=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach(function(e,l){if(e<=i&&n!==l){o.push(l),a.push(t[l]);var u=t[l][r];s[u]?(s[u].count++,s[u].dists.push(e)):s[u]={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}},h=function(t,e,n,r){var i=n.nodes;return r||(r={}),Object.keys(t).forEach(function(o){var a,s;if(!r||!r[o]){r[o]={nodes:[],edges:[]};var l=t[o],u=null===(a=e[l.start])||void 0===a?void 0:a.nodeIdxs,c=null===(s=e[l.end])||void 0===s?void 0:s.nodeIdxs;if(u&&c){var h=new Set(c),d=u.filter(function(t){return h.has(t)});if(d&&d.length){for(var f={},p=d.length,g=0;g e&&(s=e);var r=n[t.id].inDegree;l>r&&(l=r);var i=n[t.id].outDegree;u>i&&(u=i)}),t[e]={degree:s,inDegree:l,outDegree:u}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:l,minPatternNodeLabelOutDegree:u}},y=function(t,e,n,s,l,y,b){var x;if(void 0===n&&(n=!1),void 0===y&&(y="cluster"),void 0===b&&(b="cluster"),t&&t.nodes){var w=t.nodes.length;if(w){var S=(0,i.default)(t,n),k=(0,i.default)(e,n),E=g(t.nodes,S,n),M=g(e.nodes,k,n),_=f(t.nodes,y),C=_.nodeMap,A=_.nodeLabelMap,O=f(e.nodes,y),T=O.nodeMap,I=O.nodeLabelMap;p(t.edges,b,C);var N=p(e.edges,b,T).edgeLabelMap,P=[];null===k||void 0===k||k.forEach(function(t){P=P.concat(t)}),l||(l=Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],P,!1),[2],!1))),s||(s=l);var D=u(t,S,y,s),L=u(e,k,y,s),R=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach(function(t,r){for(var l=0,u=0,c=t.nodeIdxs,h=t.neighborNum-1;l
2*e)););if(f<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},l++,++s>=n))return a;if(++u>2*e)break}l q&&(q=n.length,Y=n,X=e,H=t)});var K={},Q={},Z={},$={},J={},tt={};Object.keys(I).forEach(function(r,i){J[r]=[],n&&(tt[r]=[]);var o=-1/0,a=I[r],s={};a.forEach(function(t){var e=M["".concat(H.id,"-").concat(t.id)];if(e&&J[r].push(e),o J[r][u]){s=!0;break}if(s)return Y.splice(e,1),"continue";var c={};i.neighbors.forEach(function(t){var e=E["".concat(n.id,"-").concat(t.id)];c["".concat(n.id,"-").concat(t.id)]={start:C[n.id].idx,end:C[t.id].idx,distance:e}}),j=h(c,D,t,j);var f=[];Object.keys(c).forEach(function(t){if(V[t])f.push(V[t]);else{var e=j[t];V[t]=d(e,W,y,b),f.push(V[t])}}),f=f.sort(function(t,e){return e-t});var p=!1;for(u=0;u=0;c--)u(c)});var et=[];null===Y||void 0===Y||Y.forEach(function(r){for(var i=C[r.id].idx,o=c(t.nodes,S[i],i,y,l).neighbors,a=!1,s=o.length-1;s>=0;s--){if(o.length+1 J[h][p])o.splice(s,1);else{if(n){var g="".concat(u.id,"-").concat(r.id),x=E[g];if(p=tt[h].length-1,x>tt[h][p]){o.splice(s,1);continue}}var w=V[d]?V[d]:v(t,r,u,C,f,D,W,y,b,V,j),k="".concat(H.id,"-").concat(h);if(w<$[k][$[k].length-1])o.splice(s,1);else{var M=m(K,h,T,I),_=M.minPatternNodeLabelDegree;M.minPatternNodeLabelInDegree,M.minPatternNodeLabelOutDegree;C[u.id].degree<_&&o.splice(s,1)}}}else o.splice(s,1);else o.splice(s,1)}a||et.push({nodes:[r].concat(o)})});var nt=(0,a.default)(e,H.id,!1).length,rt={};n?(Object.keys(nt).forEach(function(t){var e=T[t].node[y];rt[e]?rt[e].push(nt[t]):rt[e]=[nt[t]]}),Object.keys(rt).forEach(function(t){rt[t].sort(function(t,e){return t-e})})):rt=J;for(var it=function(r){var i=et[r],o=i.nodes[0],s={},l={};i.nodes.forEach(function(t,e){l[t.id]={idx:e,node:t,degree:0,inDegree:0,outDegree:0};var n=t[y];s[n]?s[n]++:s[n]=1});var u=[],c={};t.edges.forEach(function(t){l[t.source]&&l[t.target]&&(u.push(t),c[t[b]]?c[t[b]]++:c[t[b]]=1,l[t.source].degree++,l[t.target].degree++,l[t.source].outDegree++,l[t.target].inDegree++)});for(var h=Object.keys(N).length,d=!1,f=0;f =0;f--){if("break"===x(f))break}if(v)return et.splice(r,1),"continue";i.edges=u;var w=(0,a.default)(i,i.nodes[0].id,!1).length;if(Object.keys(w).reverse().forEach(function(t){if(t!==i.nodes[0].id&&!v){if(w[t]===1/0){var e=l[t].node[y];if(s[e]--,s[e]rt[r][rt[r].length-1]){e=l[t].node[y];if(s[e]--,s[e]=0;E--){var M=i.nodes[E],_=l[M.id].degree,A=l[M.id].inDegree,O=l[M.id].outDegree,P=M[y],D=m(K,P,T,I),L=D.minPatternNodeLabelDegree,R=D.minPatternNodeLabelInDegree,j=D.minPatternNodeLabelOutDegree;if(n?_ =0;B--){var z=u[B];if(!l[z.source]||!l[z.target]){u.splice(B,1);var F=z[b];if(c[F]--,l[z.source]&&(l[z.source].degree--,l[z.source].outDegree--),l[z.target]&&(l[z.target].degree--,l[z.target].inDegree--),N[F]&&c[F] =0;ot--){if("break"===it(ot))break}var at=et.length,st=function(t){var e=et[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=function(t){var e=et[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&&et.splice(t,1)},i=at-1;i>t;i--)r(i);at=et.length};for(ot=0;ot<=at-1;ot++)st(ot);return et}}};e.default=y},1703:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(n(1925).Graph);e.Graph=i},1772:(t,e)=>{"use strict";Object.defineProperty(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}},1780:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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){var e=this.rx-t.rx,n=this.ry-t.ry;return Math.hypot(e,n)},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=n},1822: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(6149));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 l=new i.default;l.init(n,r,{CELL_H:s,CELL_W:a}),t.nodes.forEach(function(t){var e=l.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 u=0;u a){for(var p=v=Math.ceil((c.size[0]+o)/a)-1,g=0;g -1)||l.cells[d+g+1][f].node)break;p--}l.insertColumn(d,p)}if(c.size[1]+o>s){var v;for(p=v=Math.ceil((c.size[1]+o)/s)-1,g=0;g -1)||l.cells[d][f+g+1].node)break;p--}l.insertRow(f,p)}}for(u=0;u {"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(870))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},1877:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n 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,r=n.combos,i=n.nodes,o=n.edges,a=n.anchorPoint,l=n.graphSettings,u=this.getBegin(t,e);t.forEach(function(t){var n,c=t.x,h=t.y,d=t.id,f=t.type,p=t.coreBox;if(f===s.HierarchyNodeType.META&&d!==s.ROOT_NAME){var g=r.findIndex(function(t){return t.id===d}),v=null===(n=null===l||void 0===l?void 0:l.subScene)||void 0===n?void 0:n.meta;r[g].offsetX=c+u[0],r[g].offsetY=h+u[1],r[g].fixSize=[p.width,p.height],r[g].fixCollapseSize=[p.width,p.height],t.expanded?r[g].padding=[null===v||void 0===v?void 0:v.paddingTop,null===v||void 0===v?void 0:v.paddingRight,null===v||void 0===v?void 0:v.paddingBottom,null===v||void 0===v?void 0:v.paddingLeft]:r[g].padding=[0,0,0,0]}else if(f===s.HierarchyNodeType.OP){g=i.findIndex(function(t){return t.id===d});if(i[g].x=c+u[0],i[g].y=h+u[1],a){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-c)/t.width+.5,i=(n.y-h)/t.height+.5;m.push([r,i]),e.baseEdgeList.forEach(function(t){var e=o.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-c)/t.width+.5,i=(n.y-h)/t.height+.5;m.push([r,i]),e.baseEdgeList.forEach(function(t){var e=o.find(function(e){return e.source===t.v&&e.target===t.w});e&&(e.targetAnchor=m.length-1)})}),i[g].anchorPoints=m.length>0?m:i[g].anchorPoints||[]}}})},e.prototype.updateEdgePosition=function(t,e){var n=this,r=n.combos,a=n.edges,l=n.controlPoints,u=this.getBegin(t,e);l&&(r.forEach(function(t){t.inEdges=[],t.outEdges=[]}),a.forEach(function(e){var a,l,c,h,d=t.find(function(t){return t.id===e.source}),f=t.find(function(t){return t.id===e.target}),p=[],g=[];if(d&&f)g=(0,s.getEdges)(null===d||void 0===d?void 0:d.id,null===f||void 0===f?void 0:f.id,t);else if(!d||!f){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(f?0:1).find(function(e){return t.find(function(t){return t.id===e})});d=t.find(function(t){return t.id===y}),f=t.find(function(t){return t.id===b}),g=(0,s.getEdges)(null===d||void 0===d?void 0:d.id,null===f||void 0===f?void 0:f.id,t,{v:e.source,w:e.target})}if(p=(p=g.reduce(function(t,e){return o(o([],t,!0),e.points.map(function(t){return i(i({},t),{x:t.x+u[0],y:t.y+u[1]})}),!0)},[])).slice(1,-1),e.controlPoints=p,(null===f||void 0===f?void 0:f.type)===s.NodeType.META){var x=r.findIndex(function(t){return t.id===(null===f||void 0===f?void 0:f.id)});if(!r[x]||(null===(a=r[x].inEdges)||void 0===a?void 0:a.some(function(t){return t.source===d.id&&t.target===f.id})))return;null===(l=r[x].inEdges)||void 0===l||l.push({source:d.id,target:f.id,controlPoints:p})}if((null===d||void 0===d?void 0:d.type)===s.NodeType.META){x=r.findIndex(function(t){return t.id===(null===d||void 0===d?void 0:d.id)});if(!r[x]||(null===(c=r[x].outEdges)||void 0===c?void 0:c.some(function(t){return t.source===d.id&&t.target===f.id})))return;null===(h=r[x].outEdges)||void 0===h||h.push({source:d.id,target:f.id,controlPoints:p})}}))},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}(a.Base);e.DagreCompoundLayout=u},1880:t=>{t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i 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 f=new h.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}).layout({nodes:s,edges:d}).nodes;n.forEach(function(t){var e=(f||[]).find(function(e){return e.id===t.id});t.x=(null===e||void 0===e?void 0:e.x)||o/2,t.y=(null===e||void 0===e?void 0:e.y)||a/2});var p=JSON.parse(JSON.stringify(n)),g=JSON.parse(JSON.stringify(i)),v=l.forceSimulation().nodes(p).force("link",l.forceLink(g).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",l.forceManyBody()).force("center",l.forceCenter(o/2,a/2)).force("x",l.forceX(o/2)).force("y",l.forceY(a/2)).alpha(.3).alphaDecay(.08).alphaMin(.001);return new Promise(function(t){v.on("end",function(){n.forEach(function(t){var e=p.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})),l=Math.min.apply(Math,n.map(function(t){return t.y})),h=Math.max.apply(Math,n.map(function(t){return t.y})),d=o/(s-r),f=a/(h-l);n.forEach(function(t){void 0!==t.x&&d<1&&(t.x=(t.x-r)*d),void 0!==t.y&&f<1&&(t.y=(t.y-l)*f)}),n.forEach(function(t){t.sizeTemp=t.size,t.size=[10,10]}),(0,c.default)(n,i),n.forEach(function(t){t.size=t.sizeTemp||[],delete t.sizeTemp}),(0,u.default)({nodes:n,edges:i},e),t()})})}},1912:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e,n=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}(t);null===(e=t.graph().dummyChains)||void 0===e||e.forEach(function(e){var r,i,o=e,a=t.node(o),s=a.edgeObj;if(s)for(var l=function(t,e,n,r){var i,o,a=[],s=[],l=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>l||u>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())}}(t,n,s.v,s.w),u=l.path,c=l.lca,h=0,d=u[h],f=!0;o!==s.w;){if(a=t.node(o),f){for(;d!==c&&(null===(r=t.node(d))||void 0===r?void 0:r.maxRank) {"use strict";n.r(e),n.d(e,{Graph:()=>w,GraphWithEvent:()=>A,algorithm:()=>r,comparision:()=>o,essence:()=>i,generate:()=>s});var r={};n.r(r),n.d(r,{components:()=>P,dfs:()=>L,dijkstra:()=>F,dijkstraAll:()=>G,findCycles:()=>W,floydWarshall:()=>it,isAcyclic:()=>tt,postorder:()=>et,preorder:()=>nt,prim:()=>N,tarjan:()=>U,topsort:()=>J});var i={};n.r(i),n.d(i,{hasSelfLoop:()=>bt,isGraph:()=>vt,isNullGraph:()=>yt,isSimpleGraph:()=>mt});var o={};n.r(o),n.d(o,{containAllSameEdges:()=>ht,containAllSameNodes:()=>ct,containSameEdges:()=>at,containSameNodes:()=>ot,getSameEdges:()=>lt,getSameNodes:()=>st,isGraphComplement:()=>xt,isGraphContainsAnother:()=>ft,isGraphOptionSame:()=>ut,isGraphSame:()=>dt});var a,s={};function l(t,e){var n=t.get(e)||0;t.set(e,n+1)}function u(t,e){var n=t.get(e);void 0!==n&&((n-=1)>0?t.set(e,n):t.delete(e))}function c(t,e,n,r){var i=String(e),o=String(n);if(!t&&i>o){var s=i;i=o,o=s}return i+a.EDGE_KEY_DELIM+o+a.EDGE_KEY_DELIM+(void 0===r?a.DEFAULT_EDGE_NAME:r)}function h(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 d(t,e){return c(t,e.v,e.w,e.name)}function f(t){return"function"===typeof t}n.r(s),n.d(s,{getGraphComplement:()=>wt}),function(t){t.DEFAULT_EDGE_NAME="\0",t.GRAPH_NODE="\0",t.EDGE_KEY_DELIM="\x01"}(a||(a={}));var p=function(t){return t.nodes().map(function(e){var n={id:e,value:t.node(e),parent:t.parent(e)};return void 0===n.value&&delete n.value,void 0===n.parent&&delete n.parent,n})},g=function(t){return 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})};function v(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 m(t){for(var e=1;e 0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=a.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 e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(t){return e.label=t,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(t){return f(t)?e.defaultNodeLabelFn=t:e.defaultNodeLabelFn=function(){return t},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(t){return e.nodesLabelMap.get(t)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter(function(t){var n;return!(null===(n=e.inEdgesMap.get(t))||void 0===n?void 0:n.size)})},this.sinks=function(){return e.nodes().filter(function(t){var n;return!(null===(n=e.outEdgesMap.get(t))||void 0===n?void 0:n.size)})},this.setNodes=function(t,n){return t.map(function(t){return e.setNode(t,n)}),e},this.hasNode=function(t){return e.nodesLabelMap.has(t)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(t){if(e.isCompound()){var n,r=null===(n=e.parentMap)||void 0===n?void 0:n.get(t);if(r!==e.GRAPH_NODE)return r}},this.removeFromParentsChildList=function(t){var n=e.parentMap.get(t);e.childrenMap.get(n).delete(t)},this.setParent=function(t,n){var r,i;e.checkCompound();for(var o=void 0===n?e.GRAPH_NODE:n,a=e.parent(o);a;){if(t===a)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");a=e.parent(a)}n&&e.setNode(n),e.setNode(t),e.removeFromParentsChildList(t),null===(r=e.parentMap)||void 0===r||r.set(t,o);var s=e.childrenMap.get(o);return s.set(t,!0),null===(i=e.childrenMap)||void 0===i||i.set(o,s),e},this.children=function(t){var n=void 0===t?e.GRAPH_NODE:t;if(e.isCompound()){var r,i=null===(r=e.childrenMap)||void 0===r?void 0:r.get(n);return i?Array.from(i.keys()):void 0}return n===e.GRAPH_NODE?e.nodes():t&&e.hasNode(t)?[]:void 0},this.predecessors=function(t){var n=e.predecessorsMap.get(t);return n?Array.from(n.keys()):void 0},this.successors=function(t){var n=e.successorsMap.get(t);return n?Array.from(n.keys()):void 0},this.neighbors=function(t){var n;if(e.hasNode(t))return Array.from(new Set(null===(n=e.predecessors(t))||void 0===n?void 0:n.concat(e.successors(t))))},this.isLeaf=function(t){var n,r;return e.isDirected()?!(null===(r=e.successors(t))||void 0===r?void 0:r.length):!(null===(n=e.neighbors(t))||void 0===n?void 0:n.length)},this.filterNodes=function(n){var r=e.directed,i=e.multigraph,o=e.compound,a=new t({directed:r,multigraph:i,compound:o});if(a.setGraph(e.graph()),e.nodes().forEach(function(t){n(t)&&a.setNode(t,e.node(t))}),e.edges().forEach(function(t){a.hasNode(t.v)&&a.hasNode(t.w)&&a.setEdgeObj(t,e.edge(t))}),o){a.nodes().forEach(function(t){a.setParent(t,function(t){for(var n=e.parent(t);void 0!==n&&!a.hasNode(n);)n=e.parent(n);return n}(t))})}return a},this.setDefaultEdgeLabel=function(t){return f(t)?e.defaultEdgeLabelFn=t:e.defaultEdgeLabelFn=function(){return t},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(t,n){return e.setEdge(t.v,t.w,n,t.name)},this.setPath=function(t,n){return t.reduce(function(t,r){return e.setEdge(t,r,n),r}),e},this.edgeFromArgs=function(t,n,r){return e.edge({v:t,w:n,name:r})},this.edge=function(t){return e.edgesLabelsMap.get(d(e.isDirected(),t))},this.hasEdge=function(t,n,r){return e.edgesLabelsMap.has(d(e.isDirected(),{v:t,w:n,name:r}))},this.removeEdgeObj=function(t){var n=t.v,r=t.w,i=t.name;return e.removeEdge(n,r,i)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(t,n){var r=e.inEdgesMap.get(t);if(r)return Array.from(r.values()).filter(function(t){return!n||t.v===n})},this.outEdges=function(t,n){var r=e.outEdgesMap.get(t);if(r)return Array.from(r.values()).filter(function(t){return!n||t.w===n})},this.nodeEdges=function(t,n){var r;if(e.hasNode(t))return null===(r=e.inEdges(t,n))||void 0===r?void 0:r.concat(e.outEdges(t,n))},this.toJSON=function(){return function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:p(t),edges:g(t),value:t.graph()};return void 0===e.value&&delete e.value,e}(e)},this.nodeInDegree=function(t){var n=e.inEdgesMap.get(t);return n?n.size:0},this.nodeOutDegree=function(t){var n=e.outEdgesMap.get(t);return n?n.size:0},this.nodeDegree=function(t){return e.nodeInDegree(t)+e.nodeOutDegree(t)},this.source=function(t){return t.v},this.target=function(t){return t.w};var r=m(m({},x),n);this.compound=r.compound,this.directed=r.directed,this.multigraph=r.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}var e,n,r;return e=t,(n=[{key:"setNode",value:function(t,e){var n,r=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,a=this.parentMap,s=this.childrenMap,l=this.inEdgesMap,u=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;return r.has(t)?(void 0!==e&&r.set(t,e),this):(r.set(t,e||i(t)),o()&&(null===a||void 0===a||a.set(t,this.GRAPH_NODE),null===s||void 0===s||s.set(t,new Map),(null===s||void 0===s?void 0:s.has(this.GRAPH_NODE))||null===s||void 0===s||s.set(this.GRAPH_NODE,new Map),null===s||void 0===s||null===(n=s.get(this.GRAPH_NODE))||void 0===n||n.set(t,!0)),[l,u,c,h].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,l=this.predecessorsMap,u=this.successorsMap,c=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 h=a.get(t),d=s.get(t);Array.from(h.values()).forEach(function(t){return o(t)}),Array.from(d.values()).forEach(function(t){return o(t)}),c.delete(t),a.delete(t),s.delete(t),l.delete(t),u.delete(t),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(t,e,n,r){var i,o,a=h(this.isDirected(),t,e,r),s=d(this.isDirected(),a),u=a.v,c=a.w;if(this.edgesLabelsMap.has(s))return this.edgesLabelsMap.set(s,n),this;if(void 0!==r&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(c),this.edgesLabelsMap.set(s,n||this.defaultEdgeLabelFn(u,c,r)),Object.freeze(a),this.edgesMap.set(s,a);var f=this.predecessorsMap.get(c),p=this.successorsMap.get(u);return l(f,u),l(p,c),null===(i=this.inEdgesMap.get(c))||void 0===i||i.set(s,a),null===(o=this.outEdgesMap.get(u))||void 0===o||o.set(s,a),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(t,e,n){var r=c(this.isDirected(),t,e,n);if(this.edgesMap.get(r)){var i=h(this.isDirected(),t,e,n),o=i.v,a=i.w;this.edgesLabelsMap.delete(r),this.edgesMap.delete(r);var s=this.predecessorsMap.get(a),l=this.successorsMap.get(o);u(s,o),u(l,a),this.inEdgesMap.get(a).delete(r),this.outEdgesMap.get(o).delete(r),this.edgeCountNum-=1}return this}}])&&b(e.prototype,n),r&&b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function S(t){return S="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},S(t)}function k(t,e){for(var n=0;n -1&&this.eventPool[t].splice(n,1)}}},{key:"emitEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r >1])||void 0===a?void 0:a.priority)e.arr[r].priority)throw new 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)}});const N=function(t,e){var n,r=new w,i=new Map,o=new I;function a(t){var r=t.v===n?t.w:t.v,a=o.priority(r);if(void 0!==a){var s=e(t);s0;){var l;if(n=o.removeMin(),i.has(n))r.setEdge(n,i.get(n));else{if(s)throw new Error("Input graph is not connected: "+t.graph());s=!0}null===(l=t.nodeEdges(n))||void 0===l||l.forEach(a)}return r};const P=function(t){var e=new Set,n=[];return t.nodes().forEach(function(r){for(var i=[],o=[r];o.length>0;){var a,s,l=o.pop();if(!e.has(l))e.add(l),i.push(l),null===(a=t.successors(l))||void 0===a||a.forEach(function(t){return o.push(t)}),null===(s=t.predecessors(l))||void 0===s||s.forEach(function(t){return o.push(t)})}i.length&&n.push(i)}),n};var D=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))};const L=function(t,e,n){var r=Array.isArray(e)?e:[e],i=function(e){return t.isDirected()?t.successors(e):t.neighbors(e)},o=[],a=[];return r.forEach(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);D(t,e,"post"===n,a,i,o)}),o};function R(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n 0&&(i=s.removeMin(),!(o=a.get(i))||o.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(l);var u={};return Array.from(a.entries()).forEach(function(t){var e=R(t,2),n=e[0],r=e[1];return u[String(n)]=r,u}),u};const F=function(t,e,n,r){return z(t,e,n||B,r||function(e){return t.outEdges(e)})};const G=function(t,e,n){var r={};return t.nodes().forEach(function(i){return r[String(i)]=F(t,i,e,n),r}),r};const U=function(t){var e=0,n=[],r=new Map,i=[];function o(a){var s,l={onStack:!0,lowlink:e,index:e};if(r.set(a,l),e+=1,n.push(a),null===(s=t.successors(a))||void 0===s||s.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);l.lowlink=Math.min(l.lowlink,n.index)}}else{o(t);var i=r.get(t);l.lowlink=Math.min(l.lowlink,i.lowlink)}}),l.lowlink===l.index){var u,c=[];do{u=n.pop(),r.get(u).onStack=!1,c.push(u)}while(a!==u);i.push(c)}}return t.nodes().forEach(function(t){r.has(t)||o(t)}),i};const W=function(t){return U(t).filter(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})};function V(t){return V="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},V(t)}function H(t,e){for(var n=0;n t.length)&&(e=t.length);for(var n=0,r=new Array(e);n {function e(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}t.exports=e=function(t,n,r,i){function o(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[n]=r:(o("next",0),o("throw",1),o("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,i,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2021:(t,e,n)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(6404))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},2080:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Base=void 0;var n=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=n},2162:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forceNBody=void 0;var r=n(9666);function i(t){var e=0,n=0,r=0;if(t.length){for(var i=0;i<4;i++){(o=t[i])&&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 l=n/a,u=t.map(function(t,n){var r=e[t.id],i=r.data,o=r.x,a=r.y,s=r.size,u=i.layout.force.nodeStrength;return{x:o,y:a,size:s,index:n,vx:0,vy:0,weight:l*u}}),c=(0,r.quadtree)(u,function(t){return t.x},function(t){return t.y}).visitAfter(i);return u.forEach(function(t){!function(t,e){e.visit(function(e,n,r,i,a){return o(e,n,r,i,a,t)})}(t,c)}),u.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,l=r-e,u=a*a+s*s,c=Math.sqrt(u)*u;if(l*l*.81{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(3310)),i=a(n(3205)),o=n(708);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,l=void 0===s?[]:s;if(0===a.length)return n;var u=a[0],c=new Set;c.add(u);var h=new i.default(function(t,n){return e?t.weight-n.weight:0});for((0,o.getEdgesByNodeId)(u.id,l).forEach(function(t){h.insert(t)});!h.isEmpty();){var d=h.delMin(),f=d.source,p=d.target;c.has(f)&&c.has(p)||(n.push(d),c.has(f)||(c.add(f),(0,o.getEdgesByNodeId)(f,l).forEach(function(t){h.insert(t)})),c.has(p)||(c.add(p),(0,o.getEdgesByNodeId)(p,l).forEach(function(t){h.insert(t)})))}return n},l=function(t,e){var n=[],i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a;if(0===o.length)return n;var l=s.map(function(t){return t});e&&l.sort(function(t,e){return t.weight-e.weight});for(var u=new r.default(o.map(function(t){return t.id}));l.length>0;){var c=l.shift(),h=c.source,d=c.target;u.connected(h,d)||(n.push(c),u.union(h,d))}return n},u=function(t,e,n){return n?{prim:s,kruskal:l}[n](t,e):l(t,e)};e.default=u},2202:(t,e,n)=>{var r=n(855),i=n(2793),o=n(2396),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},2212:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n =0;E--)k(E);return{nodes:n,edges:r,combos:a,comboEdges:u}},e.prototype.getInnerGraphs=function(t){var e=this,n=e.comboTrees,r=e.nodeSize,o=e.edges,a=e.comboPadding,u=e.spacing,c={},h=this.innerLayout||new l.ConcentricLayout({type:"concentric",sortBy:"id"});return h.center=[0,0],h.preventOverlap=!0,h.nodeSpacing=u,(n||[]).forEach(function(e){(0,s.traverseTreeUp)(e,function(e){var n,l=(null===a||void 0===a?void 0:a(e))||10;if((0,s.isArray)(l)&&(l=Math.max.apply(Math,l)),null===(n=e.children)||void 0===n?void 0:n.length){var u=e.children.map(function(e){if("combo"===e.itemType)return c[e.id];var n=t[e.id]||{};return i(i({},n),e)}),d=u.map(function(t){return t.id}),f={nodes:u,edges:o.filter(function(t){return d.includes(t.source)&&d.includes(t.target)})},p=1/0;u.forEach(function(t){var e;t.size||(t.size=(null===(e=c[t.id])||void 0===e?void 0:e.size)||(null===r||void 0===r?void 0:r(t))||[30,30]),(0,s.isNumber)(t.size)&&(t.size=[t.size,t.size]),p>t.size[0]&&(p=t.size[0]),p>t.size[1]&&(p=t.size[1])}),h.layout(f);var g=(0,s.getLayoutBBox)(u),v=g.minX,m=g.minY,y=g.maxX,b=g.maxY,x={x:(y+v)/2,y:(b+m)/2};f.nodes.forEach(function(t){t.x-=x.x,t.y-=x.y});var w=Math.max(y-v,p)+2*l,S=Math.max(b-m,p)+2*l;c[e.id]={id:e.id,nodes:u,size:[w,S]}}else if("combo"===e.itemType){var k=l?[2*l,2*l]:[30,30];c[e.id]={id:e.id,nodes:[],size:k}}return!0})}),c},e.prototype.initVals=function(){var t,e,n=this,r=n.nodeSize,i=n.spacing;if(e=(0,s.isNumber)(i)?function(){return i}:(0,s.isFunction)(i)?i:function(){return 0},this.spacing=e,r)if((0,s.isFunction)(r))t=function(t){var n=r(t),i=e(t);return(0,s.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+i)/2:((n||10)+i)/2};else if((0,s.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);return t.size?(0,s.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+n)/2:(0,s.isObject)(t.size)?((t.size.width>t.size.height?t.size.width:t.size.height)+n)/2:(t.size+n)/2:10+n/2};this.nodeSize=t;var l,u=n.comboPadding;l=(0,s.isNumber)(u)?function(){return u}:(0,s.isArray)(u)?function(){return Math.max.apply(null,u)}:(0,s.isFunction)(u)?u:function(){return 0},this.comboPadding=l},e.prototype.getType=function(){return"comboCombined"},e}(a.Base);e.ComboCombinedLayout=u},2361:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},2389:(t,e,n)=>{var r=n(906).default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},2396:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},2407:(t,e,n)=>{"use strict";var r=n(8898);Object.defineProperty(e,"__esModule",{value:!0}),e.getTwoToneColor=function(){var t=o.default.getTwoToneColors();if(!t.calculated)return t.primaryColor;return[t.primaryColor,t.secondaryColor]},e.setTwoToneColor=function(t){var e=(0,a.normalizeTwoToneColors)(t),n=(0,i.default)(e,2),r=n[0],s=n[1];return o.default.setTwoToneColors({primaryColor:r,secondaryColor:s})};var i=r(n(8115)),o=r(n(9562)),a=n(598)},2418:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.RandomLayout=void 0;var i=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 r(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=.9*(Math.random()-.5)*t.width+n[0],e.y=.9*(Math.random()-.5)*t.height+n[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(n(2080).Base);e.RandomLayout=i},2423:(t,e,n)=>{var r=n(1229);t.exports=function(t,e){if(null==t)return{};var n,i,o=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i {"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=void 0,e.isArray=Array.isArray},2545:(t,e,n)=>{var r=n(2361)(Object.getPrototypeOf,Object);t.exports=r},2563:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2872),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?void 0:r.sort(function(t,e){return t.pos-e.pos})}).flat().filter(function(t){return void 0!==t}),a=1;a 0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;u+=t.weight*n}}),u};e.default=function(t,e){for(var n=0,r=1;r<(null===e||void 0===e?void 0:e.length);r+=1)n+=i(t,e[r-1],e[r]);return n}},2605:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2872),i=function(t,e,n){for(var r,i=n;e.length&&(r=e[e.length-1]).i<=i;)e.pop(),null===t||void 0===t||t.push(r.vs),i++;return i},o=function(t,e){return function(n,r){if(void 0!==n.fixorder&&void 0!==r.fixorder)return n.fixorder-r.fixorder;if(n.barycenter r.barycenter)return 1;if(e&&void 0!==n.order&&void 0!==r.order){if(n.order r.order)return 1}return t?r.i-n.i:n.i-r.i}};e.default=function(t,e,n,a){var s=(0,r.partition)(t,function(t){var e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return a?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter")}),l=s.lhs,u=s.rhs.sort(function(t,e){return-t.i- -e.i}),c=[],h=0,d=0,f=0;null===l||void 0===l||l.sort(o(!!e,!!n)),f=i(c,u,f),null===l||void 0===l||l.forEach(function(t){var e;f+=null===(e=t.vs)||void 0===e?void 0:e.length,c.push(t.vs),h+=t.barycenter*t.weight,d+=t.weight,f=i(c,u,f)});var p={vs:c.flat()};return d&&(p.barycenter=h/d,p.weight=d),p}},2656:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?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(40)),s=r(n(4074)),l=r(n(3948));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){return a.createElement(l.default,(0,o.default)((0,o.default)({},t),{},{ref:e,icon:s.default}))},h=a.forwardRef(c);e.default=h},2659:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2872),i=function(t,e,n,i,o,a){var s={rank:a,borderType:e,width:0,height:0},l=o[e][a-1],u=(0,r.addDummyNode)(t,"border",s,n);o[e][a]=u,t.setParent(u,i),l&&t.setEdge(l,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?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 {var e=[],n=[];function r(t,r){if(r=r||{},void 0===t)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var i,o=!0===r.prepend?"prepend":"append",a=void 0!==r.container?r.container:document.querySelector("head"),s=e.indexOf(a);return-1===s&&(s=e.push(a)-1,n[s]={}),void 0!==n[s]&&void 0!==n[s][o]?i=n[s][o]:(i=n[s][o]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===o?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),i.styleSheet?i.styleSheet.cssText+=t:i.textContent+=t,i}t.exports=r,t.exports.insertCss=r},2731:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},2793:(t,e,n)=>{var r=n(855),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(l){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},2872:(t,e,n)=>{"use strict";Object.defineProperty(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(7007),i=n(1703);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?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,l=Number(t.width)/2,u=Number(t.height)/2;return a||s?(Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*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;ie)&&(e=i)}),e||(e=0),e};e.partition=function(t,e){var n={lhs:[],rhs:[]};return null===t||void 0===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})}},2886:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RadialLayout=void 0;var o=n(7007),a=n(2080),s=i(n(6443)),l=i(n(4693));function u(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var c=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 r(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.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)return e[0].x=r[0],e[0].y=r[1],void(t.onLayoutEnd&&t.onLayoutEnd());var i=t.linkDistance,a=null;if((0,o.isString)(t.focusNode)){for(var u=!1,c=0;c 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,w=Math.max.apply(Math,g),S=[];g.forEach(function(e,n){t.unitRadius||(t.unitRadius=x/w),S[n]=e*t.unitRadius}),t.radii=S;var k=t.eIdealDisMatrix();t.eIdealDistances=k;var E=function(t){for(var e=t.length,n=t[0].length,r=[],i=0;i A[1]?A[0]:A[1])+T(t)}:function(t){return A+T(t)}:function(t){return t.size?(0,o.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])+T(t):(0,o.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)+T(t):t.size+T(t):10+T(t)};var N={nodes:e,nodeSizeFunc:_,adjMatrix:d,positions:M,radii:S,height:m,width:v,strictRadial:O,focusID:h,iterations:t.maxPreventOverlapIteration||200,k:M.length/4.5},P=new l.default(N);M=P.layout()}return M.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}}t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.run=function(){for(var t=this,e=t.maxIteration,n=t.positions||[],r=t.weights||[],i=t.eIdealDistances||[],o=t.radii||[],a=0;a<=e;a++){var s=a/e;t.oneIteration(s,n,o,i,r)}},e.prototype.oneIteration=function(t,e,n,r,i){var o=1-t,a=this.focusIndex;e.forEach(function(s,l){var c=u(s,[0,0]),h=0===c?0:1/c;if(l!==a){var d=0,f=0,p=0;e.forEach(function(t,e){if(l!==e){var n=u(s,t),o=0===n?0:1/n,a=r[e][l];p+=i[l][e],d+=i[l][e]*(t[0]+a*(s[0]-t[0])*o),f+=i[l][e]*(t[1]+a*(s[1]-t[1])*o)}});var g=0===n[l]?0:1/n[l];p*=o,p+=t*g*g,d*=o,d+=t*g*s[0]*h,s[0]=d/p,f*=o,f+=t*g*s[1]*h,s[1]=f/p}})},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,r=t.linkDistance,i=t.radii||[],a=t.unitRadius||50,s=[];return n&&n.forEach(function(n,l){var u=[];n.forEach(function(n,s){if(l===s)u.push(0);else if(i[l]===i[s])if("data"===t.sortBy)u.push(n*(Math.abs(l-s)*t.sortStrength)/(i[l]/a));else if(t.sortBy){var c=e[l][t.sortBy]||0,h=e[s][t.sortBy]||0;(0,o.isString)(c)&&(c=c.charCodeAt(0)),(0,o.isString)(h)&&(h=h.charCodeAt(0)),u.push(n*(Math.abs(c-h)*t.sortStrength)/(i[l]/a))}else u.push(n*r/(i[l]/a));else{var d=(r+a)/2;u.push(n*d)}}),s.push(u)}),s},e.prototype.handleInfinity=function(t,e,n){for(var r=t.length,i=0;i n?t[e][r]:n);return n},e.prototype.getType=function(){return"radial"},e}(a.Base);e.RadialLayout=c},2963:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Cache:()=>Ce,assign:()=>Xt,augment:()=>qt,clamp:()=>et,clearAnimationFrame:()=>Ht,clone:()=>Qt,contains:()=>i,debounce:()=>Zt,deepMix:()=>te,difference:()=>a,each:()=>f,endsWith:()=>W,every:()=>V,extend:()=>ee,filter:()=>o,find:()=>y,findIndex:()=>b,firstValue:()=>x,fixedBase:()=>nt,flatten:()=>w,flattenDeep:()=>k,forIn:()=>xt,get:()=>he,getEllipsisText:()=>_e,getRange:()=>_,getType:()=>Nt,getWrapBehavior:()=>Q,group:()=>K,groupBy:()=>X,groupToMap:()=>q,has:()=>wt,hasKey:()=>St,hasValue:()=>Et,head:()=>F,identity:()=>we,includes:()=>i,indexOf:()=>ne,isArguments:()=>Pt,isArray:()=>h,isArrayLike:()=>r,isBoolean:()=>Dt,isDate:()=>Lt,isDecimal:()=>it,isElement:()=>Wt,isEmpty:()=>ie,isEqual:()=>ae,isEqualWith:()=>se,isError:()=>Rt,isEven:()=>ot,isFinite:()=>jt,isFunction:()=>u,isInteger:()=>at,isMatch:()=>g,isNegative:()=>st,isNil:()=>c,isNull:()=>Bt,isNumber:()=>rt,isNumberEqual:()=>ut,isObject:()=>d,isObjectLike:()=>v,isOdd:()=>ct,isPlainObject:()=>m,isPositive:()=>ht,isPrototype:()=>Ft,isRegExp:()=>Gt,isString:()=>L,isType:()=>l,isUndefined:()=>Ut,keys:()=>p,last:()=>G,lowerCase:()=>_t,lowerFirst:()=>Ct,map:()=>le,mapValues:()=>ce,max:()=>E,maxBy:()=>dt,measureTextWidth:()=>Me,memoize:()=>$t,min:()=>M,minBy:()=>ft,mix:()=>Xt,mod:()=>pt,noop:()=>xe,number2color:()=>J,omit:()=>ge,parseRadius:()=>tt,pick:()=>pe,pull:()=>T,pullAt:()=>N,reduce:()=>P,remove:()=>D,requestAnimationFrame:()=>Vt,set:()=>de,size:()=>Se,some:()=>H,sortBy:()=>R,startsWith:()=>U,substitute:()=>At,throttle:()=>ve,toArray:()=>me,toDegree:()=>vt,toInteger:()=>mt,toRadian:()=>bt,toString:()=>Mt,union:()=>B,uniq:()=>j,uniqueId:()=>be,upperCase:()=>Ot,upperFirst:()=>Tt,values:()=>kt,valuesOfKey:()=>z,wrapBehavior:()=>Z});const r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};const i=function(t,e){return!!r(t)&&t.indexOf(e)>-1};const o=function(t,e){if(!r(t))return t;for(var n=[],i=0;i -1;)A.call(t,o,1);return t};var I=Array.prototype.splice;const N=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,I.call(t,a,1))}return t};const P=function(t,e,n){if(!h(t)&&!m(t))return t;var r=n;return f(t,function(t,n){r=e(r,t,n)}),r};const D=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++ie[i])return 1;if(t[i] n?n:t};const nt=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))};const rt=function(t){return l(t,"Number")};const it=function(t){return rt(t)&&t%1!==0};const ot=function(t){return rt(t)&&t%2===0};const at=Number.isInteger?Number.isInteger:function(t){return rt(t)&&t%1===0};const st=function(t){return rt(t)&&t<0};var lt=1e-5;function ut(t,e,n){return void 0===n&&(n=lt),Math.abs(t-e) 0},dt=function(t,e){if(h(t)){for(var n,r=-1/0,i=0;i r&&(n=o,r=a)}return n}},ft=function(t,e){if(h(t)){for(var n,r=1/0,i=0;i e?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u},me=function(t){return r(t)?Array.prototype.slice.call(t):[]};var ye={};const be=function(t){return ye[t=t||"g"]?ye[t]+=1:ye[t]=1,t+ye[t]},xe=function(){},we=function(t){return t};function Se(t){return c(t)?0:r(t)?t.length:Object.keys(t).length}var ke,Ee=n(9040);const Me=$t(function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return ke||(ke=document.createElement("canvas").getContext("2d")),ke.font=[o,a,i,n+"px",r].join(" "),ke.measureText(L(t)?t:"").width},function(t,e){return void 0===e&&(e={}),(0,Ee.__spreadArrays)([t],kt(e)).join("")}),_e=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Me(r,n),s=L(t)?t:Mt(t),l=e,u=[];if(Me(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=Me(i,n))+a>l&&o>l);)if(u.push(i),l-=o,!(s=s.substr(16)))return u.join("");for(;i=s.substr(0,1),!((o=Me(i,n))+a>l);)if(u.push(i),l-=o,!(s=s.substr(1)))return u.join("");return""+u.join("")+r};const Ce=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}()},2983:(t,e,n)=>{"use strict";function r(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,l,u,c,h,d,f=t._root,p={data:r},g=t._x0,v=t._y0,m=t._x1,y=t._y1;if(!f)return t._root=p,t;for(;f.length;)if((u=e>=(o=(g+m)/2))?g=o:m=o,(c=n>=(a=(v+y)/2))?v=a:y=a,i=f,!(f=f[h=c<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,f.data),l=+t._y.call(null,f.data),e===s&&n===l)return p.next=f,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(o=(g+m)/2))?g=o:m=o,(c=n>=(a=(v+y)/2))?v=a:y=a}while((h=c<<1|u)===(d=(l>=a)<<1|s>=o));return i[d]=f,i[h]=p,t}function i(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function o(t){return t[0]}function a(t){return t[1]}function s(t,e,n){var r=new l(null==e?o:e,null==n?a:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function l(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 u(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}n.d(e,{A:()=>s});var c=s.prototype=l.prototype;c.copy=function(){var t,e,n=new l(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=u(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=u(e));return n},c.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)},c.addAll=function(t){var e,n,i,o,a=t.length,s=new Array(a),l=new Array(a),u=1/0,c=1/0,h=-1/0,d=-1/0;for(n=0;nh&&(h=i),o d&&(d=o));if(u>h||c>d)return this;for(this.cover(u,c).cover(h,d),n=0;nt||t>=i||r>e||e>=o;)switch(s=(e f||(a=u.y0)>p||(s=u.x1) =y)<<1|t>=m)&&(u=g[g.length-1],g[g.length-1]=g[g.length-1-c],g[g.length-1-c]=u)}else{var b=t-+this._x.call(null,v.data),x=e-+this._y.call(null,v.data),w=b*b+x*x;if(w =(s=(p+v)/2))?p=s:v=s,(c=a>=(l=(g+m)/2))?g=l:m=l,e=f,!(f=f[h=c<<1|u]))return this;if(!f.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,d=h)}for(;f.data!==t;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=i,this)},c.removeAll=function(t){for(var e=0,n=t.length;e {var r=n(78)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});t.exports=r},3133:(t,e,n)=>{var r=n(1624),i=n(5340),o=n(9090),a=n(5700);t.exports=function(t){return function(e){e=a(e);var n=i(e)?o(e):void 0,s=n?n[0]:e.charAt(0),l=n?r(n,1).join(""):e.slice(1);return s[t]()+l}}},3136:(t,e,n)=>{"use strict";n.r(e),n.d(e,{add:()=>u,angle:()=>R,ceil:()=>f,clone:()=>o,copy:()=>s,create:()=>i,cross:()=>A,dist:()=>Y,distance:()=>x,div:()=>H,divide:()=>d,dot:()=>C,equals:()=>G,exactEquals:()=>F,floor:()=>p,forEach:()=>K,fromValues:()=>a,inverse:()=>M,len:()=>U,length:()=>S,lerp:()=>O,max:()=>v,min:()=>g,mul:()=>V,multiply:()=>h,negate:()=>E,normalize:()=>_,random:()=>T,rotate:()=>L,round:()=>m,scale:()=>y,scaleAndAdd:()=>b,set:()=>l,signedAngle:()=>j,sqrDist:()=>X,sqrLen:()=>q,squaredDistance:()=>w,squaredLength:()=>k,str:()=>z,sub:()=>W,subtract:()=>c,transformMat2:()=>I,transformMat2d:()=>N,transformMat3:()=>P,transformMat4:()=>D,zero:()=>B});var r=n(7705);function i(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function l(t,e,n){return t[0]=e,t[1]=n,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function c(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 d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function f(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 g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function m(t,e){return t[0]=r.round(e[0]),t[1]=r.round(e[1]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function S(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function k(t){var e=t[0],n=t[1];return e*e+n*n}function E(t,e){return t[0]=-e[0],t[1]=-e[1],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function _(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 C(t,e){return t[0]*e[0]+t[1]*e[1]}function A(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function O(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function T(t,e){e=void 0===e?1:e;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function I(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 P(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 D(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 L(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 R(t,e){var n=t[0],r=t[1],i=e[0],o=e[1];return Math.abs(Math.atan2(r*i-n*o,n*i+r*o))}function j(t,e){var n=t[0],r=t[1],i=e[0],o=e[1];return Math.atan2(n*o-r*i,n*i+r*o)}function B(t){return t[0]=0,t[1]=0,t}function z(t){return"vec2("+t[0]+", "+t[1]+")"}function F(t,e){return t[0]===e[0]&&t[1]===e[1]}function G(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))}var U=S,W=c,V=h,H=d,Y=x,X=w,q=k,K=function(){var t=i();return function(e,n,r,i,o,a){var s,l;for(n||(n=2),r||(r=0),l=i?Math.min(i*n+r,e.length):e.length,s=r;s {"use strict";function n(t,e){var n=t.length;t.push(e);t:for(;0 >>1,i=t[r];if(!(0 >>1;ro(l,n))uo(c,l)?(t[r]=c,t[u]=n,r=u):(t[r]=l,t[s]=n,r=s);else{if(!(uo(c,n)))break t;t[r]=c,t[u]=n,r=u}}}return e}function o(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],c=[],h=1,d=null,f=3,p=!1,g=!1,v=!1,m="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(t){for(var e=r(c);null!==e;){if(null===e.callback)i(c);else{if(!(e.startTime<=t))break;i(c),e.sortIndex=e.expirationTime,n(u,e)}e=r(c)}}function w(t){if(v=!1,x(t),!g)if(null!==r(u))g=!0,P(S);else{var e=r(c);null!==e&&D(w,e.startTime-t)}}function S(t,n){g=!1,v&&(v=!1,y(_),_=-1),p=!0;var o=f;try{for(x(n),d=r(u);null!==d&&(!(d.expirationTime>n)||t&&!O());){var a=d.callback;if("function"===typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=n);n=e.unstable_now(),"function"===typeof s?d.callback=s:d===r(u)&&i(u),x(n)}else i(u);d=r(u)}if(null!==d)var l=!0;else{var h=r(c);null!==h&&D(w,h.startTime-n),l=!1}return l}finally{d=null,f=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,E=!1,M=null,_=-1,C=5,A=-1;function O(){return!(e.unstable_now()-A t||125 a?(t.sortIndex=o,n(c,t),null===r(u)&&t===r(c)&&(v?(y(_),_=-1):v=!0,D(w,o-a))):(t.sortIndex=s,n(u,t),g||p||(g=!0,P(S))),t},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(t){var e=f;return function(){var n=f;f=e;try{return t.apply(this,arguments)}finally{f=n}}}},3205:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){return t-e},r=function(){function t(t){void 0===t&&(t=n),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 0?n=r:null!==i&&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=r},3250:(t,e,n)=>{var r=n(855),i=n(4734),o=n(8403),a=n(9252),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},3310:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e {"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(1418))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},3439:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?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(40)),s=r(n(8757)),l=r(n(3948));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){return a.createElement(l.default,(0,o.default)((0,o.default)({},t),{},{ref:e,icon:s.default}))},h=a.forwardRef(c);e.default=h},3521:(t,e,n)=>{var r=n(2202),i=n(6588);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},3574:(t,e,n)=>{"use strict";var r=n(6397);e.H=r.createRoot,r.hydrateRoot},3629:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2872),i=function(t,e,n,o,a,s,l){var u=t.children(l);if(null===u||void 0===u?void 0:u.length){var c=(0,r.addBorderNode)(t,"_bt"),h=(0,r.addBorderNode)(t,"_bb"),d=t.node(l);t.setParent(c,l),d.borderTop=c,t.setParent(h,l),d.borderBottom=h,null===u||void 0===u||u.forEach(function(r){i(t,e,n,o,a,s,r);var u=t.node(r),d=u.borderTop?u.borderTop:r,f=u.borderBottom?u.borderBottom:r,p=u.borderTop?o:2*o,g=d!==f?1:a-s[l]+1;t.setEdge(c,d,{minlen:g,weight:p,nestingEdge:!0}),t.setEdge(f,h,{minlen:g,weight:p,nestingEdge:!0})}),t.parent(l)||t.setEdge(e,c,{weight:0,minlen:a+s[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})},o=function(t){var e,n={},r=function(e,i){var o=t.children(e);null===o||void 0===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),l=Math.max.apply(Math,Object.values(s));Math.abs(l)===1/0&&(l=1);var u=l-1,c=2*u+1;t.graph().nestingRoot=n,t.edges().forEach(function(e){t.edge(e).minlen*=c});var h=a(t)+1;null===(e=t.children())||void 0===e||e.forEach(function(e){i(t,n,c,h,u,s,e)}),t.graph().nodeRankFactor=c},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)})}}},3650:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})},o=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(l){return function(s){if(n)throw new 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]{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){t.nodes().forEach(function(e){r(t.node(e))}),t.edges().forEach(function(e){r(t.edge(e))})},r=function(t){var e=t.width;t.width=t.height,t.height=e},i=function(t){t.nodes().forEach(function(e){o(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 o(t)}),r.hasOwnProperty("y")&&o(r)})},o=function(t){(null===t||void 0===t?void 0:t.y)&&(t.y=-t.y)},a=function(t){t.nodes().forEach(function(e){s(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 s(t)}),r.hasOwnProperty("x")&&s(r)})},s=function(t){var e=t.x;t.x=t.y,t.y=e};e.default={adjust:function(t){var e,r=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"lr"!==r&&"rl"!==r||n(t)},undo:function(t){var e,r=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"bt"!==r&&"rl"!==r||i(t),"lr"!==r&&"rl"!==r||(a(t),n(t))}}},3657:(t,e,n)=>{var r=n(2202),i=n(2545),o=n(6588),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},3679:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},3781: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(7809);Object.defineProperty(e,"GridLayout",{enumerable:!0,get:function(){return o.GridLayout}});var a=n(2418);Object.defineProperty(e,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var s=n(1441);Object.defineProperty(e,"GForceLayout",{enumerable:!0,get:function(){return s.GForceLayout}});var l=n(5101);Object.defineProperty(e,"Force2Layout",{enumerable:!0,get:function(){return l.Force2Layout}});var u=n(1973);Object.defineProperty(e,"ForceLayout",{enumerable:!0,get:function(){return u.ForceLayout}});var c=n(584);Object.defineProperty(e,"CircularLayout",{enumerable:!0,get:function(){return c.CircularLayout}});var h=n(7e3);Object.defineProperty(e,"DagreLayout",{enumerable:!0,get:function(){return h.DagreLayout}});var d=n(1877);Object.defineProperty(e,"DagreCompoundLayout",{enumerable:!0,get:function(){return d.DagreCompoundLayout}});var f=n(9845);Object.defineProperty(e,"RadialLayout",{enumerable:!0,get:function(){return f.RadialLayout}});var p=n(4229);Object.defineProperty(e,"ConcentricLayout",{enumerable:!0,get:function(){return p.ConcentricLayout}});var g=n(4907);Object.defineProperty(e,"MDSLayout",{enumerable:!0,get:function(){return g.MDSLayout}});var v=n(9004);Object.defineProperty(e,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout}});var m=n(994);Object.defineProperty(e,"FruchtermanGPULayout",{enumerable:!0,get:function(){return m.FruchtermanGPULayout}});var y=n(3650);Object.defineProperty(e,"GForceGPULayout",{enumerable:!0,get:function(){return y.GForceGPULayout}});var b=n(4e3);Object.defineProperty(e,"ComboForceLayout",{enumerable:!0,get:function(){return b.ComboForceLayout}});var x=n(2212);Object.defineProperty(e,"ComboCombinedLayout",{enumerable:!0,get:function(){return x.ComboCombinedLayout}});var w=n(4054);Object.defineProperty(e,"ForceAtlas2Layout",{enumerable:!0,get:function(){return w.ForceAtlas2Layout}});var S=n(6137);Object.defineProperty(e,"ERLayout",{enumerable:!0,get:function(){return S.ERLayout}});var k=n(6823);Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return k.Layout}}),Object.defineProperty(e,"Layouts",{enumerable:!0,get:function(){return k.Layouts}}),i(n(588),e)},3803:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(143)),a=n(1925),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o.default),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(a.Graph),u=function(){return 1},c=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)h(t,e,n,r);for(;r=o.dequeue();)h(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(h(t,e,n,r,!0));break}}return i},h=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,f(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,f(e,n,a)}),t.removeNode(r.v),i?s:void 0},d=function(t,e){var n=new l,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?void 0:e(t))||1,s=o+a;n.setEdge(t.v,t.w,s),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,u=0;u{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},3896:t=>{t.exports=function(t){return t.split("")}},3904:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(190))&&r.__esModule?r:{default:r};var o=function(t,e){for(var n=(0,i.default)(t,e),r=[],o=n.length,a=0;a r[a][l]+r[l][s]&&(r[a][s]=r[a][l]+r[l][s]);return r};e.default=o},3905:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n r})},3912:(t,e,n)=>{"use strict";var r=n(40),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(c=e.ref),e)a.call(e,r)&&!l.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:u,ref:c,props:o,_owner:s.current}}e.Fragment=o,e.jsx=u,e.jsxs=u},3948:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=r(n(8115)),s=r(n(9901)),l=r(n(2423)),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=v(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?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(40)),c=r(n(6170)),h=r(n(5239)),d=r(n(9562)),f=n(2407),p=n(598),g=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(v=function(t){return t?n:e})(t)}(0,f.setTwoToneColor)("#1890ff");var m=u.forwardRef(function(t,e){var n=t.className,r=t.icon,i=t.spin,f=t.rotate,v=t.tabIndex,m=t.onClick,y=t.twoToneColor,b=(0,l.default)(t,g),x=u.useContext(h.default),w=x.prefixCls,S=void 0===w?"anticon":w,k=x.rootClassName,E=(0,c.default)(k,S,(0,s.default)((0,s.default)({},"".concat(S,"-").concat(r.name),!!r.name),"".concat(S,"-spin"),!!i||"loading"===r.name),n),M=v;void 0===M&&m&&(M=-1);var _=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,C=(0,p.normalizeTwoToneColors)(y),A=(0,a.default)(C,2),O=A[0],T=A[1];return u.createElement("span",(0,o.default)((0,o.default)({role:"img","aria-label":r.name},b),{},{ref:e,tabIndex:M,onClick:m,className:E}),u.createElement(d.default,{icon:r,primaryColor:O,secondaryColor:T,style:_}))});m.displayName="AntdIcon",m.getTwoToneColor=f.getTwoToneColor,m.setTwoToneColor=f.setTwoToneColor;e.default=m},3994:(t,e,n)=>{var r=n(3133)("toUpperCase");t.exports=r},4e3:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ComboForceLayout=void 0;var i=n(2080),o=n(7007),a=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 r(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,e=t.nodes,n=t.center;if(t.comboTree={id:"comboTreeRoot",depth:-1,children:t.comboTrees},e&&0!==e.length){if(1===e.length)return e[0].x=n[0],e[0].y=n[1],void(t.onLayoutEnd&&t.onLayoutEnd());t.initVals(),t.run(),t.onLayoutEnd&&t.onLayoutEnd()}else t.onLayoutEnd&&t.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,a=t.comboMap;t.previousLayouted||t.initPos(a);for(var 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,o.isNumber)(t.x)&&(0,o.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()},l=0;l m[1]?m[0]:m[1])/2;g=function(t){return b}}else{var x=m/2;g=function(t){return x}}else g=function(t){return t.size?(0,o.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2:(0,o.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2:t.size/2:10};this.nodeSize=g;var w,S=t.comboSpacing;w=(0,o.isNumber)(S)?function(){return S}:(0,o.isFunction)(S)?S:function(){return 0},this.comboSpacing=w;var k,E=t.comboPadding;k=(0,o.isNumber)(E)?function(){return E}:(0,o.isArray)(E)?function(){return Math.max.apply(null,E)}:(0,o.isFunction)(E)?E:function(){return 0},this.comboPadding=k;var M,_=this.linkDistance;_||(_=10),M=(0,o.isNumber)(_)?function(t){return _}:_,this.linkDistance=M;var C,A=this.edgeStrength;A||(A=1),C=(0,o.isNumber)(A)?function(t){return A}:A,this.edgeStrength=C;var O,T=this.nodeStrength;T||(T=30),O=(0,o.isNumber)(T)?function(t){return T}:T,this.nodeStrength=O},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 a=[];(0,o.traverseTreeUp)(n,function(n){if("node"===n.itemType)return!0;if(!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 l=n.children;l&&l.forEach(function(t){if(!i[t.id]&&!e[t.id])return!0;a.push(t)});var u=i[n.id];if(u.cx=0,u.cy=0,0===a.length){u.empty=!0;var c=r[n.id];u.cx=c.x,u.cy=c.y}return a.forEach(function(t){if(u.count++,"node"!==t.itemType){var n=i[t.id];return(0,o.isNumber)(n.cx)&&(u.cx+=n.cx),void((0,o.isNumber)(n.cy)&&(u.cy+=n.cy))}var r=e[t.id];r&&((0,o.isNumber)(r.x)&&(u.cx+=r.x),(0,o.isNumber)(r.y)&&(u.cy+=r.y))}),u.cx/=u.count||1,u.cy/=u.count||1,u.children=a,!0})}),i},e.prototype.applyComboCenterForce=function(t){var e=this,n=e.gravity,r=e.comboGravity||n,i=this.alpha,a=e.comboTrees,s=e.indexMap,l=e.nodeMap,u=e.comboMap;(a||[]).forEach(function(e){(0,o.traverseTreeUp)(e,function(e){if("node"===e.itemType)return!0;if(!u[e.id])return!0;var n=u[e.id],a=(n.depth+1)/10*.5,c=n.cx,h=n.cy;return n.cx=0,n.cy=0,n.children.forEach(function(e){if("node"!==e.itemType){var d=u[e.id];return d&&(0,o.isNumber)(d.cx)&&(n.cx+=d.cx),void(d&&(0,o.isNumber)(d.cy)&&(n.cy+=d.cy))}var f=l[e.id],p=f.x-c||.005,g=f.y-h||.005,v=Math.sqrt(p*p+g*g),m=s[f.id],y=r*i/v*a;t[m].x-=p*y,t[m].y-=g*y,(0,o.isNumber)(f.x)&&(n.cx+=f.x),(0,o.isNumber)(f.y)&&(n.cy+=f.y)}),n.cx/=n.count||1,n.cy/=n.count||1,!0})})},e.prototype.applyCalculate=function(t){var e=this,n=e.comboMap,r=e.nodes,i={};r.forEach(function(t,e){r.forEach(function(n,r){if(!(e o&&(u.minX=o),u.minY>a&&(u.minY=a),u.maxX 1&&r.forEach(function(n,o){if("node"===n.itemType)return!1;var l=e[n.id];l&&r.forEach(function(r,u){if(o<=u)return!1;if("node"===r.itemType)return!1;var c=e[r.id];if(!c)return!1;var h=l.cx-c.cx||.005,d=l.cy-c.cy||.005,f=h*h+d*d,p=l.r||1,g=c.r||1,v=p+g,m=g*g,y=p*p;if(fi)){var m=e["".concat(f.id,"-").concat(n.id)],y=m.vx,b=m.vy,x=Math.log(Math.abs(n.depth-f.depth)/10)+1||1;x=x<1?1:x,n.comboId!==f.comboId&&(x+=1);var w=x?Math.pow(h,x):1,S=o(n)*a/g*w;if(t[p].x+=y*S,t[p].y+=b*S,p {var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},4054:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceAtlas2Layout=void 0;var o=n(2080),a=n(7007),s=i(n(1780)),l=i(n(527)),u=i(n(863)),c=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 r(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.onLayoutEnd,r=t.prune,i=t.maxIteration;t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight);for(var o=[],s=e.length,l=0;l 250&&(t.barnesHut=!0),void 0===t.prune&&s>100&&(t.prune=!0),0!==this.maxIteration||t.prune?0===this.maxIteration&&r&&(i=100,s<=200&&s>100?i=500:s>200&&(i=950),this.maxIteration=i):(i=250,s<=200&&s>100?i=1e3:s>200&&(i=1200),this.maxIteration=i),t.kr||(t.kr=50,s>100&&s<=500?t.kr=20:s>500&&(t.kr=1)),t.kg||(t.kg=20,s>100&&s<=500?t.kg=10:s>500&&(t.kg=1)),this.nodes=t.updateNodesByForces(o),n()},e.prototype.updateNodesByForces=function(t){for(var e=this,n=e.edges,r=e.maxIteration,i=e.nodes,o=n.filter(function(t){return(0,a.getEdgeTerminal)(t,"source")!==(0,a.getEdgeTerminal)(t,"target")}),s=i.length,l=o.length,u=[],c={},h={},d=[],f=0;f0;){for(y=0;y50||!c)?this.getOptRepGraForces(g,m,i):this.getRepGraForces(p,50,g,100,o,i);var x=this.updatePos(g,v,f,i);l=x.nodes,f=x.sg,p--,a.tick&&a.tick()}return l},e.prototype.getAttrForces=function(t,e,n,r,i,o,a,s){for(var l=this,u=l.nodes,c=l.preventOverlap,h=l.dissuadeHubs,d=l.mode,f=l.prune,p=0;p 0&&(w=x,S=x),s[2*r[g.id]]+=w*b[0],s[2*r[m.id]]-=S*b[0],s[2*r[g.id]+1]+=w*b[1],s[2*r[m.id]+1]-=S*b[1]}}return s},e.prototype.getRepGraForces=function(t,e,n,r,i,o){for(var a=this,s=a.nodes,l=a.preventOverlap,u=a.kr,c=a.kg,h=a.center,d=a.prune,f=s.length,p=0;p 0&&(y=u*(o[p]+1)*(o[g]+1)/m),n[2*p]-=y*v[0],n[2*g]+=y*v[0],n[2*p+1]-=y*v[1],n[2*g+1]+=y*v[1]}var b=[s[p].x-h[0],s[p].y-h[1]],x=Math.hypot(b[0],b[1]);b[0]=b[0]/x,b[1]=b[1]/x;var w=c*(o[p]+1);n[2*p]-=w*b[0],n[2*p+1]-=w*b[1]}return n},e.prototype.getOptRepGraForces=function(t,e,n){for(var r=this,i=r.nodes,o=r.kg,a=r.center,s=r.prune,c=i.length,h=9e10,d=-9e10,f=9e10,p=-9e10,g=0;g =d&&(d=i[g].x),i[g].x<=h&&(h=i[g].x),i[g].y>=p&&(p=i[g].y),i[g].y<=f&&(f=i[g].y));var v={xmid:(d+h)/2,ymid:(p+f)/2,length:Math.max(d-h,p-f),massCenter:a,mass:c},m=new l.default(v),y=new u.default(m);for(g=0;g 1.5*w?1.5*w:n);for(v=0;v E?E:S)*t[2*v],_=S*t[2*v+1];o[v].x+=M,o[v].y+=_}return{nodes:o,sg:n}},e}(o.Base);e.ForceAtlas2Layout=c},4074:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}},4100:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"}},4155:(t,e,n)=>{t=n.nmd(t);var r=n(4046),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=s},4229:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ConcentricLayout=void 0;var i=n(7007),o=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 r(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=this,r=n.nodes,o=n.edges,a=r.length;if(0!==a){n.width||"undefined"===typeof window||(n.width=window.innerWidth),n.height||"undefined"===typeof window||(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var s=n.center;if(1===a)return r[0].x=s[0],r[0].y=s[1],void(null===(e=n.onLayoutEnd)||void 0===e||e.call(n));var l,u=n.nodeSize,c=n.nodeSpacing,h=[],d=0;l=(0,i.isArray)(u)?Math.max(u[0],u[1]):u,(0,i.isArray)(c)?d=Math.max(c[0],c[1]):(0,i.isNumber)(c)&&(d=c),r.forEach(function(t){h.push(t);var e=l;(0,i.isArray)(t.size)?e=Math.max(t.size[0],t.size[1]):(0,i.isNumber)(t.size)?e=t.size:(0,i.isObject)(t.size)&&(e=Math.max(t.size.width,t.size.height)),l=Math.max(l,e),(0,i.isFunction)(c)&&(d=Math.max(c(t),d))}),n.clockwise=void 0!==n.counterclockwise?!n.counterclockwise:n.clockwise;var f={},p={};if(h.forEach(function(t,e){f[t.id]=t,p[t.id]=e}),("degree"===n.sortBy||!(0,i.isString)(n.sortBy)||void 0===h[0][n.sortBy])&&(n.sortBy="degree",!(0,i.isNumber)(r[0].degree))){var g=(0,i.getDegree)(r.length,p,o);h.forEach(function(t,e){t.degree=g[e].all})}h.sort(function(t,e){return e[n.sortBy]-t[n.sortBy]}),n.maxValueNode=h[0],n.maxLevelDiff=n.maxLevelDiff||n.maxValueNode[n.sortBy]/4;var v=[[]],m=v[0];h.forEach(function(t){if(m.length>0){var e=Math.abs(m[0][n.sortBy]-t[n.sortBy]);n.maxLevelDiff&&e>=n.maxLevelDiff&&(m=[],v.push(m))}m.push(t)});var y=l+(d||n.minNodeSpacing);if(!n.preventOverlap){var b=v.length>0&&v[0].length>1,x=(Math.min(n.width,n.height)/2-y)/(v.length+(b?1:0));y=Math.min(y,x)}var w=0;if(v.forEach(function(t){var e=n.sweep;void 0===e&&(e=2*Math.PI-2*Math.PI/t.length);var r=t.dTheta=e/Math.max(1,t.length-1);if(t.length>1&&n.preventOverlap){var i=Math.cos(r)-Math.cos(0),o=Math.sin(r)-Math.sin(0),a=Math.sqrt(y*y/(i*i+o*o));w=Math.max(a,w)}t.r=w,w+=y}),n.equidistant){for(var S=0,k=0,E=0;E {"use strict";t.exports=n(3139)},4503:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findShortestPath=e.findAllPath=void 0;var r,i=(r=n(6882))&&r.__esModule?r:{default:r},o=n(708);e.findShortestPath=function(t,e,n,r,o){var a=(0,i.default)(t,e,r,o),s=a.length,l=a.path,u=a.allPath;return{length:s[n],path:l[n],allPath:u[n]}};e.findAllPath=function(t,e,n,r){var i;if(e===n)return[[e]];var a=t.edges,s=void 0===a?[]:a,l=[e],u=((i={})[e]=!0,i),c=[],h=[],d=r?(0,o.getNeighbors)(e,s,"target"):(0,o.getNeighbors)(e,s);for(c.push(d);l.length>0&&c.length>0;){var f=c[c.length-1];if(f.length){var p=f.shift();if(p&&(l.push(p),u[p]=!0,d=r?(0,o.getNeighbors)(p,s,"target"):(0,o.getNeighbors)(p,s),c.push(d.filter(function(t){return!u[t]}))),l[l.length-1]===n){var g=l.map(function(t){return t});h.push(g);v=l.pop();u[v]=!1,c.pop()}}else{var v=l.pop();u[v]=!1,c.pop()}}return h}},4516:t=>{t.exports=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=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports},4580:(t,e,n)=>{var r=n(7498),i=n(1241)(function(t,e,n){return e=e.toLowerCase(),t+(n?r(e):e)});t.exports=i},4631:(t,e,n)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(7208))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},4665: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(6770)),o=r(n(2563)),a=r(n(7544)),s=r(n(6932)),l=r(n(8580)),u=n(7007),c=n(1703),h=n(2872),d=function(t,e,n){return e.map(function(e){return(0,a.default)(t,e,n)})},f=function(t,e,n,r){var i=new c.Graph;null===t||void 0===t||t.forEach(function(t){for(var o,a=t.graph().root,u=(0,l.default)(t,a,i,e,n,r),c=0;c<(null===(o=u.vs)||void 0===o?void 0:o.length);c++){var h=t.node(u.vs[c]);h&&(h.order=c)}(0,s.default)(t,i,u.vs)})},p=function(t,e){null===e||void 0===e||e.forEach(function(e){null===e||void 0===e||e.forEach(function(e,n){t.node(e).order=n})})};e.default=function(t,e){for(var n=(0,h.maxRank)(t),r=[],a=[],s=1;s -1;s--)a.push(s);var l=d(t,r,"inEdges"),c=d(t,a,"outEdges"),g=(0,i.default)(t);p(t,g);for(var v,m=Number.POSITIVE_INFINITY,y=(s=0,0);y<4;++s,++y){f(s%2?l:c,s%4>=2,!1,e),g=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,g)) =2,!0,e),g=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,g)) {t.exports=function(t){return function(e){return t(e)}}},4693:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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,e=t.positions,n=[],r=t.iterations,i=t.width/10;t.maxDisplace=i,t.disp=n;for(var o=0;o l?1:-1;u=.01*d,c=.01*d}if(h Math.PI/2&&(c-=Math.PI/2,s*=-1,l*=-1);var h=Math.cos(c)*u;t.x=s*h,t.y=l*h});var s=t.radii;e.forEach(function(t,l){if(l!==o){var u=Math.sqrt(n[l].x*n[l].x+n[l].y*n[l].y);if(u>0&&l!==o){var c=Math.min(a*(r/800),u);if(t[0]+=n[l].x/u*c,t[1]+=n[l].y/u*c,i){var h=t[0]-e[o][0],d=t[1]-e[o][1],f=Math.sqrt(h*h+d*d);h=h/f*s[l],d=d/f*s[l],t[0]=e[o][0]+h,t[1]=e[o][1]+d}}}})},t}();e.default=n},4714:(t,e,n)=>{"use strict";Object.defineProperty(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(26))&&r.__esModule?r:{default:r},o=n(1428);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,l){return void 0===n&&(n=!1),void 0===s&&(s="cluster"),void 0===l&&(l="cluster"),(0,i.default)(o.ALGORITHM.GADDI).apply(void 0,[t,e,n,r,a,s,l])}},4734:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n {"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},4864:(t,e)=>{"use strict";Object.defineProperty(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?void 0:n.length))return{v:e};var r={sum:0,weight:0};return null===n||void 0===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}})}},4906:(t,e,n)=>{"use strict";var r=n(8898).default;Object.defineProperty(e,"__esModule",{value:!0}),e.clearContainerCache=function(){c.clear()},e.injectCSS=p,e.removeCSS=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=g(t,e);if(n){d(e).removeChild(n)}},e.updateCSS=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=d(n),o=f(r),s=(0,i.default)((0,i.default)({},n),{},{styles:o});!function(t,e){var n=c.get(t);if(!n||!(0,a.default)(document,n)){var r=p("",e),i=r.parentNode;c.set(t,i),t.removeChild(r)}}(r,s);var l=g(e,s);if(l){var u,v,m;if(null!==(u=s.csp)&&void 0!==u&&u.nonce&&l.nonce!==(null===(v=s.csp)||void 0===v?void 0:v.nonce))l.nonce=null===(m=s.csp)||void 0===m?void 0:m.nonce;return l.innerHTML!==t&&(l.innerHTML=t),l}var y=p(t,s);return y.setAttribute(h(s),e),y};var i=r(n(8545)),o=r(n(427)),a=r(n(6883)),s="data-rc-order",l="data-rc-priority",u="rc-util-key",c=new Map;function h(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):u}function d(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function f(t){return Array.from((c.get(t)||t).children).filter(function(t){return"STYLE"===t.tagName})}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var n=e.csp,r=e.prepend,i=e.priority,a=void 0===i?0:i,u=function(t){return"queue"===t?"prependQueue":t?"prepend":"append"}(r),c="prependQueue"===u,h=document.createElement("style");h.setAttribute(s,u),c&&a&&h.setAttribute(l,"".concat(a)),null!==n&&void 0!==n&&n.nonce&&(h.nonce=null===n||void 0===n?void 0:n.nonce),h.innerHTML=t;var p=d(e),g=p.firstChild;if(r){if(c){var v=(e.styles||f(p)).filter(function(t){if(!["prepend","prependQueue"].includes(t.getAttribute(s)))return!1;var e=Number(t.getAttribute(l)||0);return a>=e});if(v.length)return p.insertBefore(h,v[v.length-1].nextSibling),h}p.insertBefore(h,g)}else p.appendChild(h);return h}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(e);return(e.styles||f(n)).find(function(n){return n.getAttribute(h(e))===t})}},4907:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.MDSLayout=void 0;var i=n(7049),o=n(7007),a=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 r(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],linkDistance:50}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=void 0===n?[]:n,i=t.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=i[0],e[0].y=i[1],void(t.onLayoutEnd&&t.onLayoutEnd());var a=t.linkDistance,s=(0,o.getAdjMatrix)({nodes:e,edges:r},!1),l=(0,o.floydWarshall)(s);t.handleInfinity(l);var u=(0,o.scaleMatrix)(l,a);t.scaledDistances=u;var c=t.runMDS();return t.positions=c,c.forEach(function(t,n){e[n].x=t[0]+i[0],e[n].y=t[1]+i[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:r}}t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.runMDS=function(){var t=this.scaledDistances,e=i.Matrix.mul(i.Matrix.pow(t,2),-.5),n=e.mean("row"),r=e.mean("column"),o=e.mean();e.add(o).subRowVector(n).subColumnVector(r);var a=new i.SingularValueDecomposition(e),s=i.Matrix.sqrt(a.diagonalMatrix).diagonal();return a.leftSingularVectors.toJSON().map(function(t){return i.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.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5101:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n 1&&(o=(0,a.getAvgNodePosition)(u))}else o=void 0;return{x:null===o||void 0===o?void 0:o.x,y:null===o||void 0===o?void 0:o.y}}}}if(r){t||(t=this.getSameTypeLeafMap());var f=Array.from(new Set(s.map(function(t,e){return t[o]}))).filter(function(t){return void 0!==t}),p={};f.forEach(function(t){var e=s.filter(function(e){return e[o]===t}).map(function(t){return l[t.id]});p[t]=(0,a.getAvgNodePosition)(e)}),h={single:function(t){return c(t)},leaf:function(t){return c(t)},others:function(t){return c(t)},center:function(t,e,n){var r=p[t[o]];return{x:null===r||void 0===r?void 0:r.x,y:null===r||void 0===r?void 0:r.y}}}}this.centripetalOptions=i(i({},this.centripetalOptions),h);var g=this.centripetalOptions,v=g.leaf,m=g.single,y=g.others;v&&"function"!==typeof v&&(this.centripetalOptions.leaf=function(){return v}),m&&"function"!==typeof m&&(this.centripetalOptions.single=function(){return m}),y&&"function"!==typeof y&&(this.centripetalOptions.others=function(){return y})},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.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 o=t.center;if(1===e.length)return e[0].x=o[0],e[0].y=o[1],void t.onLayoutEnd([i({},e[0])]);t.degreesMap=(0,a.getDegreeMap)(e,n),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(e){var n=1;(0,a.isNumber)(e.mass)&&(n=e.mass);var r=t.degreesMap[e.id].all;return!r||r<5?n:5*r*n};var s,u=t.nodeSize;if(t.preventOverlap){var c,h=t.nodeSpacing;c=(0,a.isNumber)(h)?function(){return h}:(0,a.isFunction)(h)?h:function(){return 0},s=u?(0,a.isArray)(u)?function(t){return Math.max(u[0],u[1])+c(t)}:function(t){return u+c(t)}:function(t){return t.size?(0,a.isArray)(t.size)?Math.max(t.size[0],t.size[1])+c(t):(0,a.isObject)(t.size)?Math.max(t.size.width,t.size.height)+c(t):t.size+c(t):10+c(t)}}t.nodeSize=s,t.linkDistance=l(t.linkDistance,1),t.nodeStrength=l(t.nodeStrength,1),t.edgeStrength=l(t.edgeStrength,1);var d={},f={};e.forEach(function(e,r){(0,a.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,a.isNumber)(e.y)||(e.y=Math.random()*t.height);var o=t.degreesMap[e.id];d[e.id]=i(i({},e),{data:i(i({},e.data),{size:t.nodeSize(e)||30,layout:{inDegree:o.in,outDegree:o.out,degree:o.all,tDegree:o.in,sDegree:o.out,force:{mass:t.getMass(e),nodeStrength:t.nodeStrength(e,n)}}})}),f[e.id]=r}),t.nodeMap=d,t.nodeIdxMap=f,t.edgeInfos=[],null===n||void 0===n||n.forEach(function(e){var n=d[e.source],o=d[e.target];n&&o?t.edgeInfos.push({edgeStrength:t.edgeStrength(e),linkDistance:r?r(i(i({},e),{source:n,target:o}),n,o):t.linkDistance(e,n,o)||1+(u(n)+u(n)||0)/2}):elf.edgeInfos.push({})}),this.getCentripetalOptions(),t.onLayoutEnd=t.onLayoutEnd||function(){},t.run()}else t.onLayoutEnd([])},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,l=t.height;if(t.currentMinY=0,t.currentMaxY=l,n){var u=[];if(n.forEach(function(t,e){u[2*e]=0,u[2*e+1]=0}),this.defSideCoe&&"function"===typeof this.defSideCoe){var c={};r.forEach(function(t){var e=t.source,n=t.target;c[e]=c[e]||[],c[e].push(t),c[n]=c[n]||[],c[n].push(t)}),this.relatedEdges=c}var h=e;if(i||!a){for(var d=0;(t.judgingDistance>o||d<1)&&d =h||t.judgingDistance a){var c=a/u;s*=c,l*=c}e[2*i]=s,e[2*i+1]=l})},e.prototype.updatePosition=function(t,e){var n=this,r=n.nodes,i=n.distanceThresholdMode,o=n.nodeMap;if(null===r||void 0===r?void 0:r.length){var s=0;"max"===i?n.judgingDistance=-1/0:"min"===i&&(n.judgingDistance=1/0);var l=1/0,u=-1/0;r.forEach(function(r,c){var h=o[r.id];if((0,a.isNumber)(r.fx)&&(0,a.isNumber)(r.fy))return r.x=r.fx,r.y=r.fy,h.x=r.x,void(h.y=r.y);var d=t[2*c]*e,f=t[2*c+1]*e;r.x+=d,r.y+=f,h.x=r.x,h.y=r.y,r.y u&&(u=r.y);var p=Math.sqrt(d*d+f*f);switch(i){case"max":n.judgingDistance p&&(n.judgingDistance=p);break;default:s+=p}}),this.currentMinY=l,this.currentMaxY=u,i&&"mean"!==i||(n.judgingDistance=s/r.length)}else this.judgingDistance=0},e.prototype.stop=function(){this.timeInterval&&"undefined"!==typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var t=this,e=t.nodeClusterBy,n=t.nodes,r=t.edges,i=t.nodeMap,o=t.degreesMap;if(null===n||void 0===n?void 0:n.length){var s={};return n.forEach(function(t,n){1===o[t.id].all&&(s[t.id]=(0,a.getCoreNodeAndRelativeLeafNodes)("leaf",t,r,e,o,i))}),s}},e}(o.Base);e.Force2Layout=u},5114:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(3905);var i=n(6944);function o(t){return function(t){if(Array.isArray(t))return(0,r.A)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,i.A)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5139:(t,e,n)=>{var r=n(4046),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},5227:(t,e,n)=>{"use strict";var r=n(40),i=n(4282);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n
e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!h.call(p,t)||!h.call(f,t)&&(d.test(t)?p[t]=!0:(f[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(m,y);v[e]=new g(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(m,y);v[e]=new g(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(m,y);v[e]=new g(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){v[t]=new g(t,1,!1,t.toLowerCase(),null,!1,!1)}),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){v[t]=new g(t,1,!1,t.toLowerCase(),null,!0,!0)});var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),C=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function L(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=D&&t[D]||t["@@iterator"])?t:null}var R,j=Object.assign;function B(t){if(void 0===R)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);R=e&&e[1]||""}return"\n"+R+t}var z=!1;function F(t,e){if(!t||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return t.displayName&&l.includes(" ")&&(l=l.replace(" ",t.displayName)),l}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?B(t):""}function G(t){switch(t.tag){case 5:return B(t.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return t=F(t.type,!1);case 11:return t=F(t.type.render,!1);case 1:return t=F(t.type,!0);default:return""}}function U(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case k:return"Fragment";case S:return"Portal";case M:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case T:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case C:return(t.displayName||"Context")+".Consumer";case _:return(t._context.displayName||"Context")+".Provider";case A:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case I:return null!==(e=t.displayName||null)?e:U(t.type)||"Memo";case N:e=t._payload,t=t._init;try{return U(t(e))}catch(n){}}return null}function W(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(e);case 8:return e===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e}return null}function V(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function H(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Y(t){t._valueTracker||(t._valueTracker=function(t){var e=H(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function X(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=H(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function q(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function K(t,e){var n=e.checked;return j({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Q(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=V(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Z(t,e){null!=(e=e.checked)&&b(t,"checked",e,!1)}function $(t,e){Z(t,e);var n=V(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&tt(t,e.type,V(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function J(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function tt(t,e,n){"number"===e&&q(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var et=Array.isArray;function nt(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i "+e.valueOf().toString()+"",e=ut.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction(function(){return ct(t,e)})}:ct);function dt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!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},pt=["Webkit","ms","Moz","O"];function gt(t,e,n){return null==e||"boolean"===typeof e||""===e?"":n||"number"!==typeof e||0===e||ft.hasOwnProperty(t)&&ft[t]?(""+e).trim():e+"px"}function vt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=gt(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(ft).forEach(function(t){pt.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ft[e]=ft[t]})});var mt=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yt(t,e){if(e){if(mt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(o(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(o(60));if("object"!==typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(o(62))}}function bt(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xt=null;function wt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var St=null,kt=null,Et=null;function Mt(t){if(t=bi(t)){if("function"!==typeof St)throw Error(o(280));var e=t.stateNode;e&&(e=wi(e),St(t.stateNode,t.type,e))}}function _t(t){kt?Et?Et.push(t):Et=[t]:kt=t}function Ct(){if(kt){var t=kt,e=Et;if(Et=kt=null,Mt(t),e)for(t=0;t >>=0,0===t?32:31-(se(t)/le|0)|0},se=Math.log,le=Math.LN2;var ue=64,ce=4194304;function he(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function de(t,e){var n=t.pendingLanes;if(0===n)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=he(s):0!==(o&=a)&&(r=he(o))}else 0!==(a=n&~i)?r=he(a):0!==o&&(r=he(o));if(0===r)return 0;if(0!==e&&e!==r&&0===(e&i)&&((i=r&-r)>=(o=e&-e)||16===i&&0!==(4194240&o)))return e;if(0!==(4&r)&&(r|=16&n),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=r;0 n;n++)e.push(t);return e}function me(t,e,n){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-ae(e)]=n}function ye(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-ae(n),i=1< =Ln),Bn=String.fromCharCode(32),zn=!1;function Fn(t,e){switch(t){case"keyup":return-1!==Pn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gn(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var Un=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Wn[t.type]:"textarea"===e}function Hn(t,e,n,r){_t(r),0<(e=Yr(e,"onChange")).length&&(n=new cn("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Yn=null,Xn=null;function qn(t){Br(t,0)}function Kn(t){if(X(xi(t)))return t}function Qn(t,e){if("change"===t)return e}var Zn=!1;if(c){var $n;if(c){var Jn="oninput"in document;if(!Jn){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),Jn="function"===typeof tr.oninput}$n=Jn}else $n=!1;Zn=$n&&(!document.documentMode||9 =e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=ur(r)}}function hr(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?hr(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function dr(){for(var t=window,e=q();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=q((t=e.contentWindow).document)}return e}function fr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function pr(t){var e=dr(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(e=r.start,void 0===(t=r.end)&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if((t=(e=n.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&((e=e.createRange()).setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n =document.documentMode,vr=null,mr=null,yr=null,br=!1;function xr(t,e,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==q(r)||("selectionStart"in(r=vr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Yr(mr,"onSelect")).length&&(e=new cn("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=vr)))}function wr(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Er={};function Mr(t){if(kr[t])return kr[t];if(!Sr[t])return t;var e,n=Sr[t];for(e in n)if(n.hasOwnProperty(e)&&e in Er)return kr[t]=n[e];return t}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var _r=Mr("animationend"),Cr=Mr("animationiteration"),Ar=Mr("animationstart"),Or=Mr("transitionend"),Tr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(t,e){Tr.set(t,e),l(e,[t])}for(var Pr=0;Pr ki||(t.current=Si[ki],Si[ki]=null,ki--)}function _i(t,e){ki++,Si[ki]=t.current,t.current=e}var Ci={},Ai=Ei(Ci),Oi=Ei(!1),Ti=Ci;function Ii(t,e){var n=t.type.contextTypes;if(!n)return Ci;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Ni(t){return null!==(t=t.childContextTypes)&&void 0!==t}function Pi(){Mi(Oi),Mi(Ai)}function Di(t,e,n){if(Ai.current!==Ci)throw Error(o(168));_i(Ai,e),_i(Oi,n)}function Li(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(o(108,W(t)||"Unknown",i));return j({},n,r)}function Ri(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ci,Ti=Ai.current,_i(Ai,t),_i(Oi,Oi.current),!0}function ji(t,e,n){var r=t.stateNode;if(!r)throw Error(o(169));n?(t=Li(t,e,Ti),r.__reactInternalMemoizedMergedChildContext=t,Mi(Oi),Mi(Ai),_i(Ai,t)):Mi(Oi),_i(Oi,n)}var Bi=null,zi=!1,Fi=!1;function Gi(t){null===Bi?Bi=[t]:Bi.push(t)}function Ui(){if(!Fi&&null!==Bi){Fi=!0;var t=0,e=be;try{var n=Bi;for(be=1;t >=a,i-=a,Qi=1<<32-ae(e)+i|n<g?(v=h,h=null):v=h.sibling;var m=f(i,h,s[g],l);if(null===m){null===h&&(h=v);break}t&&h&&null===m.alternate&&e(i,h),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m,h=v}if(g===s.length)return n(i,h),io&&$i(i,g),u;if(null===h){for(;g v?(m=g,g=null):m=g.sibling;var b=f(i,g,y.value,u);if(null===b){null===g&&(g=m);break}t&&g&&null===b.alternate&&e(i,g),s=a(b,s,v),null===h?c=b:h.sibling=b,h=b,g=m}if(y.done)return n(i,g),io&&$i(i,v),c;if(null===g){for(;!y.done;v++,y=l.next())null!==(y=d(i,y.value,u))&&(s=a(y,s,v),null===h?c=y:h.sibling=y,h=y);return io&&$i(i,v),c}for(g=r(i,g);!y.done;v++,y=l.next())null!==(y=p(g,i,v,y.value,u))&&(t&&null!==y.alternate&&g.delete(null===y.key?v:y.key),s=a(y,s,v),null===h?c=y:h.sibling=y,h=y);return t&&g.forEach(function(t){return e(i,t)}),io&&$i(i,v),c}return function t(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:t:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break t}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===N&&bo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=mo(r,c,a),o.return=r,r=o;break t}n(r,c);break}e(r,c),c=c.sibling}a.type===k?((o=Lu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Du(a.type,a.key,a.props,null,r.mode,l)).ref=mo(r,o,a),l.return=r,r=l)}return s(r);case S:t:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break t}n(r,o);break}e(r,o),o=o.sibling}(o=Bu(a,r.mode,l)).return=r,r=o}return s(r);case N:return t(r,o,(c=a._init)(a._payload),l)}if(et(a))return g(r,o,a,l);if(L(a))return v(r,o,a,l);yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=ju(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=xo(!0),So=xo(!1),ko=Ei(null),Eo=null,Mo=null,_o=null;function Co(){_o=Mo=Eo=null}function Ao(t){var e=ko.current;Mi(ko),t._currentValue=e}function Oo(t,e,n){for(;null!==t;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==r&&(r.childLanes|=e)):null!==r&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function To(t,e){Eo=t,_o=Mo=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!==(t.lanes&e)&&(bs=!0),t.firstContext=null)}function Io(t){var e=t._currentValue;if(_o!==t)if(t={context:t,memoizedValue:e,next:null},null===Mo){if(null===Eo)throw Error(o(308));Mo=t,Eo.dependencies={lanes:0,firstContext:t}}else Mo=Mo.next=t;return e}var No=null;function Po(t){null===No?No=[t]:No.push(t)}function Do(t,e,n,r){var i=e.interleaved;return null===i?(n.next=n,Po(e)):(n.next=i.next,i.next=n),e.interleaved=n,Lo(t,r)}function Lo(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}var Ro=!1;function jo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function zo(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Fo(t,e,n){var r=t.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Al)){var i=r.pending;return null===i?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Lo(t,n)}return null===(i=r.interleaved)?(e.next=e,Po(r)):(e.next=i.next,i.next=e),r.interleaved=e,Lo(t,n)}function Go(t,e,n){if(null!==(e=e.updateQueue)&&(e=e.shared,0!==(4194240&n))){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,ye(t,n)}}function Uo(t,e){var n=t.updateQueue,r=t.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=e:o=o.next=e}else i=o=e;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Wo(t,e,n,r){var i=t.updateQueue;Ro=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=t.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var h=i.baseState;for(a=0,c=u=l=null,s=o;;){var d=s.lane,f=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});t:{var p=t,g=s;switch(d=e,f=n,g.tag){case 1:if("function"===typeof(p=g.payload)){h=p.call(f,h,d);break t}h=p;break t;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=g.payload)?p.call(f,h,d):p)||void 0===d)break t;h=j({},h,d);break t;case 2:Ro=!0}}null!==s.callback&&0!==s.lane&&(t.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else f={eventTime:f,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=h):c=c.next=f,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(e=i.shared.interleaved)){i=e;do{a|=i.lane,i=i.next}while(i!==e)}else null===o&&(i.shared.lanes=0);Rl|=a,t.lanes=a,t.memoizedState=h}}function Vo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e n?n:4,t(!0);var r=oa.transition;oa.transition={};try{t(!1),e()}finally{be=n,oa.transition=r}}function Ya(){return ba().memoizedState}function Xa(t,e,n){var r=eu(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(t))Qa(e,n);else if(null!==(n=Do(t,e,n,r))){nu(n,t,r,tu()),Za(n,e,r)}}function qa(t,e,n){var r=eu(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(t))Qa(e,i);else{var o=t.alternate;if(0===t.lanes&&(null===o||0===o.lanes)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=e.interleaved;return null===l?(i.next=i,Po(e)):(i.next=l.next,l.next=i),void(e.interleaved=i)}}catch(u){}null!==(n=Do(t,e,i,r))&&(nu(n,t,r,i=tu()),Za(n,e,r))}}function Ka(t){var e=t.alternate;return t===sa||null!==e&&e===sa}function Qa(t,e){ha=ca=!0;var n=t.pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Za(t,e,n){if(0!==(4194240&n)){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,ye(t,n)}}var $a={readContext:Io,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Io,useCallback:function(t,e){return ya().memoizedState=[t,void 0===e?null:e],t},useContext:Io,useEffect:La,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,Pa(4194308,4,za.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Pa(4194308,4,t,e)},useInsertionEffect:function(t,e){return Pa(4,2,t,e)},useMemo:function(t,e){var n=ya();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ya();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Xa.bind(null,sa,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},ya().memoizedState=t},useState:Ta,useDebugValue:Ga,useDeferredValue:function(t){return ya().memoizedState=t},useTransition:function(){var t=Ta(!1),e=t[0];return t=Ha.bind(null,t[1]),ya().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=e(),null===Ol)throw Error(o(349));0!==(30&aa)||Ma(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,La(Ca.bind(null,r,a,t),[t]),r.flags|=2048,Ia(9,_a.bind(null,r,a,n,e),void 0,null),n},useId:function(){var t=ya(),e=Ol.identifierPrefix;if(io){var n=Zi;e=":"+e+"R"+(n=(Qi&~(1<<32-ae(Qi)-1)).toString(32)+n),0<(n=da++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=fa++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:Ua,useContext:Io,useEffect:Ra,useImperativeHandle:Fa,useInsertionEffect:ja,useLayoutEffect:Ba,useMemo:Wa,useReducer:wa,useRef:Na,useState:function(){return wa(xa)},useDebugValue:Ga,useDeferredValue:function(t){return Va(ba(),la.memoizedState,t)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ea,useId:Ya,unstable_isNewReconciler:!1},es={readContext:Io,useCallback:Ua,useContext:Io,useEffect:Ra,useImperativeHandle:Fa,useInsertionEffect:ja,useLayoutEffect:Ba,useMemo:Wa,useReducer:Sa,useRef:Na,useState:function(){return Sa(xa)},useDebugValue:Ga,useDeferredValue:function(t){var e=ba();return null===la?e.memoizedState=t:Va(e,la.memoizedState,t)},useTransition:function(){return[Sa(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ea,useId:Ya,unstable_isNewReconciler:!1};function ns(t,e){if(t&&t.defaultProps){for(var n in e=j({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}function rs(t,e,n,r){n=null===(n=n(r,e=t.memoizedState))||void 0===n?e:j({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var is={isMounted:function(t){return!!(t=t._reactInternals)&&Ut(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=tu(),i=eu(t),o=zo(r,i);o.payload=e,void 0!==n&&null!==n&&(o.callback=n),null!==(e=Fo(t,o,i))&&(nu(e,t,i,r),Go(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=tu(),i=eu(t),o=zo(r,i);o.tag=1,o.payload=e,void 0!==n&&null!==n&&(o.callback=n),null!==(e=Fo(t,o,i))&&(nu(e,t,i,r),Go(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=tu(),r=eu(t),i=zo(n,r);i.tag=2,void 0!==e&&null!==e&&(i.callback=e),null!==(e=Fo(t,i,r))&&(nu(e,t,r,n),Go(e,t,r))}};function os(t,e,n,r,i,o,a){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(t,e,n){var r=!1,i=Ci,o=e.contextType;return"object"===typeof o&&null!==o?o=Io(o):(i=Ni(e)?Ti:Ai.current,o=(r=null!==(r=e.contextTypes)&&void 0!==r)?Ii(t,i):Ci),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=is,t.stateNode=e,e._reactInternals=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function ss(t,e,n,r){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&is.enqueueReplaceState(e,e.state,null)}function ls(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},jo(t);var o=e.contextType;"object"===typeof o&&null!==o?i.context=Io(o):(o=Ni(e)?Ti:Ai.current,i.context=Ii(t,o)),i.state=t.memoizedState,"function"===typeof(o=e.getDerivedStateFromProps)&&(rs(t,e,o,n),i.state=t.memoizedState),"function"===typeof e.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(e=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&is.enqueueReplaceState(i,i.state,null),Wo(t,n,i,r),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4194308)}function us(t,e){try{var n="",r=e;do{n+=G(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:t,source:e,stack:i,digest:null}}function cs(t,e,n){return{value:t,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function hs(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var ds="function"===typeof WeakMap?WeakMap:Map;function fs(t,e,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Vl||(Vl=!0,Hl=r),hs(0,e)},n}function ps(t,e,n){(n=zo(-1,n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"===typeof r){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){hs(0,e)}}var o=t.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){hs(0,e),"function"!==typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}function gs(t,e,n){var r=t.pingCache;if(null===r){r=t.pingCache=new ds;var i=new Set;r.set(e,i)}else void 0===(i=r.get(e))&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=Mu.bind(null,t,e,n),e.then(t,t))}function vs(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function ms(t,e,n,r,i){return 0===(1&t.mode)?(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=zo(-1,1)).tag=2,Fo(n,e,1))),n.lanes|=1),t):(t.flags|=65536,t.lanes=i,t)}var ys=x.ReactCurrentOwner,bs=!1;function xs(t,e,n,r){e.child=null===t?So(e,null,n,r):wo(e,t.child,n,r)}function ws(t,e,n,r,i){n=n.render;var o=e.ref;return To(e,i),r=va(t,e,n,r,o,i),n=ma(),null===t||bs?(io&&n&&to(e),e.flags|=1,xs(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Vs(t,e,i))}function Ss(t,e,n,r,i){if(null===t){var o=n.type;return"function"!==typeof o||Nu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Du(n.type,null,r,e,e.mode,i)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=o,ks(t,e,o,r,i))}if(o=t.child,0===(t.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&t.ref===e.ref)return Vs(t,e,i)}return e.flags|=1,(t=Pu(o,r)).ref=e.ref,t.return=e,e.child=t}function ks(t,e,n,r,i){if(null!==t){var o=t.memoizedProps;if(lr(o,r)&&t.ref===e.ref){if(bs=!1,e.pendingProps=r=o,0===(t.lanes&i))return e.lanes=t.lanes,Vs(t,e,i);0!==(131072&t.flags)&&(bs=!0)}}return _s(t,e,n,r,i)}function Es(t,e,n){var r=e.pendingProps,i=r.children,o=null!==t?t.memoizedState:null;if("hidden"===r.mode)if(0===(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},_i(Pl,Nl),Nl|=n;else{if(0===(1073741824&n))return t=null!==o?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,_i(Pl,Nl),Nl|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,_i(Pl,Nl),Nl|=r}else null!==o?(r=o.baseLanes|n,e.memoizedState=null):r=n,_i(Pl,Nl),Nl|=r;return xs(t,e,i,n),e.child}function Ms(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function _s(t,e,n,r,i){var o=Ni(n)?Ti:Ai.current;return o=Ii(e,o),To(e,i),n=va(t,e,n,r,o,i),r=ma(),null===t||bs?(io&&r&&to(e),e.flags|=1,xs(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Vs(t,e,i))}function Cs(t,e,n,r,i){if(Ni(n)){var o=!0;Ri(e)}else o=!1;if(To(e,i),null===e.stateNode)Ws(t,e),as(e,n,r),ls(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Io(u):u=Ii(e,u=Ni(n)?Ti:Ai.current);var c=n.getDerivedStateFromProps,h="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;h||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(e,a,r,u),Ro=!1;var d=e.memoizedState;a.state=d,Wo(e,r,a,i),l=e.memoizedState,s!==r||d!==l||Oi.current||Ro?("function"===typeof c&&(rs(e,n,c,r),l=e.memoizedState),(s=Ro||os(e,n,s,r,d,l,u))?(h||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(e.flags|=4194308)):("function"===typeof a.componentDidMount&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,Bo(t,e),s=e.memoizedProps,u=e.type===e.elementType?s:ns(e.type,s),a.props=u,h=e.pendingProps,d=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Io(l):l=Ii(e,l=Ni(n)?Ti:Ai.current);var f=n.getDerivedStateFromProps;(c="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==h||d!==l)&&ss(e,a,r,l),Ro=!1,d=e.memoizedState,a.state=d,Wo(e,r,a,i);var p=e.memoizedState;s!==h||d!==p||Oi.current||Ro?("function"===typeof f&&(rs(e,n,f,r),p=e.memoizedState),(u=Ro||os(e,n,u,r,d,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(e.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),r=!1)}return As(t,e,n,r,o,i)}function As(t,e,n,r,i,o){Ms(t,e);var a=0!==(128&e.flags);if(!r&&!a)return i&&ji(e,n,!1),Vs(t,e,o);r=e.stateNode,ys.current=e;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return e.flags|=1,null!==t&&a?(e.child=wo(e,t.child,null,o),e.child=wo(e,null,s,o)):xs(t,e,s,o),e.memoizedState=r.state,i&&ji(e,n,!0),e.child}function Os(t){var e=t.stateNode;e.pendingContext?Di(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Di(0,e.context,!1),Qo(t,e.containerInfo)}function Ts(t,e,n,r,i){return po(),go(i),e.flags|=256,xs(t,e,n,r),e.child}var Is,Ns,Ps,Ds,Ls={dehydrated:null,treeContext:null,retryLane:0};function Rs(t){return{baseLanes:t,cachePool:null,transitions:null}}function js(t,e,n){var r,i=e.pendingProps,a=ta.current,s=!1,l=0!==(128&e.flags);if((r=l)||(r=(null===t||null!==t.memoizedState)&&0!==(2&a)),r?(s=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(a|=1),_i(ta,1&a),null===t)return uo(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(0===(1&e.mode)?e.lanes=1:"$!"===t.data?e.lanes=8:e.lanes=1073741824,null):(l=i.children,t=i.fallback,s?(i=e.mode,s=e.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Ru(l,i,0,null),t=Lu(t,i,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Rs(n),e.memoizedState=Ls,t):Bs(e,l));if(null!==(a=t.memoizedState)&&null!==(r=a.dehydrated))return function(t,e,n,r,i,a,s){if(n)return 256&e.flags?(e.flags&=-257,zs(t,e,s,r=cs(Error(o(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(a=r.fallback,i=e.mode,r=Ru({mode:"visible",children:r.children},i,0,null),(a=Lu(a,i,s,null)).flags|=2,r.return=e,a.return=e,r.sibling=a,e.child=r,0!==(1&e.mode)&&wo(e,t.child,null,s),e.child.memoizedState=Rs(s),e.memoizedState=Ls,a);if(0===(1&e.mode))return zs(t,e,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,zs(t,e,s,r=cs(a=Error(o(419)),r,void 0))}if(l=0!==(s&t.childLanes),bs||l){if(null!==(r=Ol)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Lo(t,i),nu(r,t,i,-1))}return gu(),zs(t,e,s,r=cs(Error(o(421))))}return"$?"===i.data?(e.flags|=128,e.child=t.child,e=Cu.bind(null,t),i._reactRetry=e,null):(t=a.treeContext,ro=ui(i.nextSibling),no=e,io=!0,oo=null,null!==t&&(Xi[qi++]=Qi,Xi[qi++]=Zi,Xi[qi++]=Ki,Qi=t.id,Zi=t.overflow,Ki=e),e=Bs(e,r.children),e.flags|=4096,e)}(t,e,l,i,r,a,n);if(s){s=i.fallback,l=e.mode,r=(a=t.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&l)&&e.child!==a?((i=e.child).childLanes=0,i.pendingProps=u,e.deletions=null):(i=Pu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Pu(r,s):(s=Lu(s,l,n,null)).flags|=2,s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,l=null===(l=t.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=t.childLanes&~n,e.memoizedState=Ls,i}return t=(s=t.child).sibling,i=Pu(s,{mode:"visible",children:i.children}),0===(1&e.mode)&&(i.lanes=n),i.return=e,i.sibling=null,null!==t&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function Bs(t,e){return(e=Ru({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function zs(t,e,n,r){return null!==r&&go(r),wo(e,t.child,null,n),(t=Bs(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function Fs(t,e,n){t.lanes|=e;var r=t.alternate;null!==r&&(r.lanes|=e),Oo(t.return,e,n)}function Gs(t,e,n,r,i){var o=t.memoizedState;null===o?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Us(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(xs(t,e,r.children,n),0!==(2&(r=ta.current)))r=1&r|2,e.flags|=128;else{if(null!==t&&0!==(128&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Fs(t,n,e);else if(19===t.tag)Fs(t,n,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(_i(ta,r),0===(1&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===ea(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Gs(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===ea(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Gs(e,!0,n,null,o);break;case"together":Gs(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Ws(t,e){0===(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Vs(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),Rl|=e.lanes,0===(n&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(o(153));if(null!==e.child){for(n=Pu(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Pu(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Hs(t,e){if(!io)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Ys(t){var e=null!==t.alternate&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=t,i=i.sibling;else for(i=t.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Xs(t,e,n){var r=e.pendingProps;switch(eo(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(e),null;case 1:case 17:return Ni(e.type)&&Pi(),Ys(e),null;case 3:return r=e.stateNode,Zo(),Mi(Oi),Mi(Ai),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(ho(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&0===(256&e.flags)||(e.flags|=1024,null!==oo&&(au(oo),oo=null))),Ns(t,e),Ys(e),null;case 5:Jo(e);var i=Ko(qo.current);if(n=e.type,null!==t&&null!=e.stateNode)Ps(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(null===e.stateNode)throw Error(o(166));return Ys(e),null}if(t=Ko(Yo.current),ho(e)){r=e.stateNode,n=e.type;var a=e.memoizedProps;switch(r[di]=e,r[fi]=a,t=0!==(1&e.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i <\/script>",t=t.removeChild(t.firstChild)):"string"===typeof r.is?t=l.createElement(n,{is:r.is}):(t=l.createElement(n),"select"===n&&(l=t,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):t=l.createElementNS(t,n),t[di]=e,t[fi]=r,Is(t,e,!1,!1),e.stateNode=t;t:{switch(l=bt(n,r),n){case"dialog":zr("cancel",t),zr("close",t),i=r;break;case"iframe":case"object":case"embed":zr("load",t),i=r;break;case"video":case"audio":for(i=0;i Ul&&(e.flags|=128,r=!0,Hs(a,!1),e.lanes=4194304)}else{if(!r)if(null!==(t=ea(l))){if(e.flags|=128,r=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),Hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ys(e),null}else 2*Zt()-a.renderingStartTime>Ul&&1073741824!==n&&(e.flags|=128,r=!0,Hs(a,!1),e.lanes=4194304);a.isBackwards?(l.sibling=e.child,e.child=l):(null!==(n=a.last)?n.sibling=l:e.child=l,a.last=l)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Zt(),e.sibling=null,n=ta.current,_i(ta,r?1&n|2:1&n),e):(Ys(e),null);case 22:case 23:return hu(),r=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==r&&(e.flags|=8192),r&&0!==(1&e.mode)?0!==(1073741824&Nl)&&(Ys(e),6&e.subtreeFlags&&(e.flags|=8192)):Ys(e),null;case 24:case 25:return null}throw Error(o(156,e.tag))}function qs(t,e){switch(eo(e),e.tag){case 1:return Ni(e.type)&&Pi(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return Zo(),Mi(Oi),Mi(Ai),ra(),0!==(65536&(t=e.flags))&&0===(128&t)?(e.flags=-65537&t|128,e):null;case 5:return Jo(e),null;case 13:if(Mi(ta),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(o(340));po()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Mi(ta),null;case 4:return Zo(),null;case 10:return Ao(e.type._context),null;case 22:case 23:return hu(),null;default:return null}}Is=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},Ps=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Ko(Yo.current);var o,a=null;switch(n){case"input":i=K(t,i),r=K(t,r),a=[];break;case"select":i=j({},i,{value:void 0}),r=j({},r,{value:void 0}),a=[];break;case"textarea":i=rt(t,i),r=rt(t,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(t.onclick=Jr)}for(c in yt(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",t),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(e.updateQueue=c)&&(e.flags|=4)}},Ds=function(t,e,n,r){n!==r&&(e.flags|=4)};var Ks=!1,Qs=!1,Zs="function"===typeof WeakSet?WeakSet:Set,$s=null;function Js(t,e){var n=t.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Eu(t,e,r)}else n.current=null}function tl(t,e,n){try{n()}catch(r){Eu(t,e,r)}}var el=!1;function nl(t,e,n){var r=e.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(e,n,o)}i=i.next}while(i!==r)}}function rl(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function il(t){var e=t.ref;if(null!==e){var n=t.stateNode;t.tag,t=n,"function"===typeof e?e(t):e.current=t}}function ol(t){var e=t.alternate;null!==e&&(t.alternate=null,ol(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&(null!==(e=t.stateNode)&&(delete e[di],delete e[fi],delete e[gi],delete e[vi],delete e[mi])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function al(t){return 5===t.tag||3===t.tag||4===t.tag}function sl(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||al(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function ll(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!==(n=n._reactRootContainer)&&void 0!==n||null!==e.onclick||(e.onclick=Jr));else if(4!==r&&null!==(t=t.child))for(ll(t,e,n),t=t.sibling;null!==t;)ll(t,e,n),t=t.sibling}function ul(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(ul(t,e,n),t=t.sibling;null!==t;)ul(t,e,n),t=t.sibling}var cl=null,hl=!1;function dl(t,e,n){for(n=n.child;null!==n;)fl(t,e,n),n=n.sibling}function fl(t,e,n){if(oe&&"function"===typeof oe.onCommitFiberUnmount)try{oe.onCommitFiberUnmount(ie,n)}catch(s){}switch(n.tag){case 5:Qs||Js(n,e);case 6:var r=cl,i=hl;cl=null,dl(t,e,n),hl=i,null!==(cl=r)&&(hl?(t=cl,n=n.stateNode,8===t.nodeType?t.parentNode.removeChild(n):t.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(hl?(t=cl,n=n.stateNode,8===t.nodeType?li(t.parentNode,n):1===t.nodeType&&li(t,n),Ue(t)):li(cl,n.stateNode));break;case 4:r=cl,i=hl,cl=n.stateNode.containerInfo,hl=!0,dl(t,e,n),cl=r,hl=i;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&tl(n,e,a),i=i.next}while(i!==r)}dl(t,e,n);break;case 1:if(!Qs&&(Js(n,e),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Eu(n,e,s)}dl(t,e,n);break;case 21:dl(t,e,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,dl(t,e,n),Qs=r):dl(t,e,n);break;default:dl(t,e,n)}}function pl(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Zs),e.forEach(function(e){var r=Au.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))})}}function gl(t,e){var n=e.deletions;if(null!==n)for(var r=0;r i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Zt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){t.timeoutHandle=ri(wu.bind(null,t,Fl,Wl),r);break}wu(t,Fl,Wl);break;default:throw Error(o(329))}}}return ru(t,Zt()),t.callbackNode===n?iu.bind(null,t):null}function ou(t,e){var n=zl;return t.current.memoizedState.isDehydrated&&(du(t,e).flags|=256),2!==(t=vu(t,e))&&(e=Fl,Fl=n,null!==e&&au(e)),t}function au(t){null===Fl?Fl=t:Fl.push.apply(Fl,t)}function su(t,e){for(e&=~Bl,e&=~jl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0 t?16:t,null===ql)var r=!1;else{if(t=ql,ql=null,Kl=0,0!==(6&Al))throw Error(o(331));var i=Al;for(Al|=4,$s=t.current;null!==$s;){var a=$s,s=a.child;if(0!==(16&$s.flags)){var l=a.deletions;if(null!==l){for(var u=0;u Zt()-Gl?du(t,0):Bl|=n),ru(t,e)}function _u(t,e){0===e&&(0===(1&t.mode)?e=1:(e=ce,0===(130023424&(ce<<=1))&&(ce=4194304)));var n=tu();null!==(t=Lo(t,e))&&(me(t,e,n),ru(t,n))}function Cu(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane),_u(t,n)}function Au(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(e),_u(t,n)}function Ou(t,e){return Xt(t,e)}function Tu(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(t,e,n,r){return new Tu(t,e,n,r)}function Nu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Pu(t,e){var n=t.alternate;return null===n?((n=Iu(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&t.flags,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Du(t,e,n,r,i,a){var s=2;if(r=t,"function"===typeof t)Nu(t)&&(s=1);else if("string"===typeof t)s=5;else t:switch(t){case k:return Lu(n.children,i,a,e);case E:s=8,i|=8;break;case M:return(t=Iu(12,n,e,2|i)).elementType=M,t.lanes=a,t;case O:return(t=Iu(13,n,e,i)).elementType=O,t.lanes=a,t;case T:return(t=Iu(19,n,e,i)).elementType=T,t.lanes=a,t;case P:return Ru(n,i,a,e);default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case _:s=10;break t;case C:s=9;break t;case A:s=11;break t;case I:s=14;break t;case N:s=16,r=null;break t}throw Error(o(130,null==t?t:typeof t,""))}return(e=Iu(s,n,e,i)).elementType=t,e.type=r,e.lanes=a,e}function Lu(t,e,n,r){return(t=Iu(7,t,r,e)).lanes=n,t}function Ru(t,e,n,r){return(t=Iu(22,t,r,e)).elementType=P,t.lanes=n,t.stateNode={isHidden:!1},t}function ju(t,e,n){return(t=Iu(6,t,null,e)).lanes=n,t}function Bu(t,e,n){return(e=Iu(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function zu(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ve(0),this.expirationTimes=ve(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ve(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fu(t,e,n,r,i,o,a,s,l){return t=new zu(t,e,n,s,l),1===e?(e=1,!0===o&&(e|=8)):e=0,o=Iu(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jo(o),t}function Gu(t){if(!t)return Ci;t:{if(Ut(t=t._reactInternals)!==t||1!==t.tag)throw Error(o(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Ni(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(o(171))}if(1===t.tag){var n=t.type;if(Ni(n))return Li(t,n,e)}return e}function Uu(t,e,n,r,i,o,a,s,l){return(t=Fu(n,r,!0,t,0,o,0,s,l)).context=Gu(null),n=t.current,(o=zo(r=tu(),i=eu(n))).callback=void 0!==e&&null!==e?e:null,Fo(n,o,i),t.current.lanes=i,me(t,i,r),ru(t,r),t}function Wu(t,e,n,r){var i=e.current,o=tu(),a=eu(i);return n=Gu(n),null===e.context?e.context=n:e.pendingContext=n,(e=zo(o,a)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),null!==(t=Fo(i,e,a))&&(nu(t,i,a,o),Go(t,i,a)),a}function Vu(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function Hu(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n {"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=(0,n(40).createContext)({});e.default=r},5340:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},5429:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayToTextureData=e.attributesToTextureData=e.buildTextureDataWithTwoEdgeAttr=e.buildTextureData=e.proccessToFunc=void 0;var r=n(7007),i=n(8613);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 {var r=n(8951),i=n(8439),o={};Object.keys(r).forEach(function(t){o[t]={},Object.defineProperty(o[t],"channels",{value:r[t].channels}),Object.defineProperty(o[t],"labels",{value:r[t].labels});var e=i(t);Object.keys(e).forEach(function(n){var r=e[n];o[t][n]=function(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===typeof n)for(var r=n.length,i=0;i 1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)})}),t.exports=o},5517:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(1576);function i(t,e){for(var n=0;n {"use strict";function r(t,e){var n,r=1;function i(){var i,o,a=n.length,s=0,l=0;for(i=0;ir,forceCollide:()=>u,forceLink:()=>d,forceManyBody:()=>V,forceRadial:()=>H,forceSimulation:()=>W,forceX:()=>Y,forceY:()=>X});var i=n(2983);function o(t){return function(){return t}}function a(t){return 1e-6*(t()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function u(t){var e,n,r,u=1,c=1;function h(){for(var t,o,h,f,p,g,v,m=e.length,y=0;y f+c||i p+c||o h.index){var d=f-s.x-s.vx,m=p-s.y-s.vy,y=d*d+m*m;y t.r&&(t.r=t[e].r)}function f(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r [u(t,e,r),t]));for(o=0,i=new Array(l);o {}};function p(){for(var t,e=0,n=arguments.length,r={};e =0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);for(;++a 0)for(var n,r,i=new Array(n),o=0;o=0&&e._call.call(null,t),e=e._next;--w}()}finally{w=0,function(){var t,e,n=b,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:b=e);x=t,L(r)}(),M=0}}function D(){var t=C.now(),e=t-E;e>1e3&&(_-=e,E=t)}function L(t){w||(S&&(S=clearTimeout(S)),t-M>24?(t<1/0&&(S=setTimeout(P,t-C.now()-_)),k&&(k=clearInterval(k))):(k||(E=C.now(),k=setInterval(D,1e3)),w=1,A(P)))}I.prototype=N.prototype={constructor:I,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?O():+n)+(null==e?0:+e),this._next||x===this||(x?x._next=this:b=this,x=this),this._call=t,this._time=n,L()},stop:function(){this._call&&(this._call=null,this._time=1/0,L())}};const R=1664525,j=1013904223,B=4294967296;function z(t){return t.x}function F(t){return t.y}var G=10,U=Math.PI*(3-Math.sqrt(5));function W(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,l=N(h),u=y("tick","end"),c=function(){let t=1;return()=>(t=(R*t+j)%B)/B}();function h(){d(),u.call("tick",e),n 1?(null==n?s.delete(t):s.set(t,p(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,l,u=0,c=t.length;for(null==r?r=1/0:r*=r,u=0;u 1?(u.on(t,n),e):u.on(t)}}}function V(){var t,e,n,r,s,l=o(-30),u=1,c=1/0,h=.81;function d(n){var o,a=t.length,s=(0,i.A)(t,z,F).visitAfter(p);for(r=n,o=0;o=c)){(t.data!==e||t.next)&&(0===d&&(g+=(d=a(n))*d),0===f&&(g+=(f=a(n))*f),g{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(2656))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},5579:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){for(var e,n,i=[],o=function(){var o=t.pop();i.push(o),null===(e=o.in.reverse())||void 0===e||e.forEach(function(t){return(e=o,function(t){t.merged||(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&r(e,t)})(t);var e}),null===(n=o.out)||void 0===n||n.forEach(function(e){return(n=o,function(e){e.in.push(n),0===--e.indegree&&t.push(e)})(e);var n})};null===t||void 0===t?void 0:t.length;)o();var a=i.filter(function(t){return!t.merged}),s=["vs","i","barycenter","weight"];return a.map(function(t){var e={};return null===s||void 0===s||s.forEach(function(n){void 0!==t[n]&&(e[n]=t[n])}),e})},r=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 r,i,o,a={};null===t||void 0===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===(r=e.edges())||void 0===r||r.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]))});var s=null===(o=(i=Object.values(a)).filter)||void 0===o?void 0:o.call(i,function(t){return!t.indegree});return n(s)}},5599:(t,e)=>{"use strict";Object.defineProperty(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})$/},5628:(t,e,n)=>{var r=n(3679),i=n(649),o=Object.hasOwnProperty,a=Object.create(null);for(var s in r)o.call(r,s)&&(a[r[s]]=s);var l=t.exports={to:{},get:{}};function u(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}l.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=l.get.hsl(t),n="hsl";break;case"hwb":e=l.get.hwb(t),n="hwb";break;default:e=l.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},l.get.rgb=function(t){if(!t)return null;var e,n,i,a=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=e[2],e=e[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(e.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(i=(e=e[1])[3],n=0;n<3;n++)a[n]=parseInt(e[n]+e[n],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(e[n+1],0);e[4]&&(e[5]?a[3]=.01*parseFloat(e[4]):a[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:o.call(r,e[1])?((a=r[e[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(e[5]?a[3]=.01*parseFloat(e[4]):a[3]=parseFloat(e[4]))}for(n=0;n<3;n++)a[n]=u(a[n],0,255);return a[3]=u(a[3],0,1),a},l.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var t=i(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},l.to.rgb=function(){var t=i(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},l.to.rgb.percent=function(){var t=i(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},l.to.hsl=function(){var t=i(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},l.to.hwb=function(){var t=i(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},l.to.keyword=function(t){return a[t.slice(0,3)]}},5679:t=>{var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},5700:(t,e,n)=>{var r=n(3250);t.exports=function(t){return null==t?"":r(t)}},5778: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(3803)),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(t){return function(e){var n;return(null===(n=t.edge(e))||void 0===n?void 0:n.weight)||1}}(t)):o(t);null===e||void 0===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)}})}}},5805:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2872),i=function(t,e){var n=e.v,i=t.node(n).rank,o=e.w,a=t.node(o).rank,s=e.name,l=t.edge(e),u=l.labelRank;if(a!==i+1){t.removeEdgeObj(e);var c,h,d,f=t.graph();for(d=0,++i;i{var r=n(625),i=n(9775);t.exports=function(t,e,n,o,a){return new i(r().w(t,e,n,o),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},6058:(t,e,n)=>{"use strict";var r=n(9937);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,n){return r.mat3.multiply(t,n,e)}function l(t,e){return t[0]*e[1]-e[0]*t[1]}e.pd=function(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,l=e.length;r {t.exports=function(t){return!(!t||"string"===typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},6121:(t,e,n)=>{var r=n(8532),i=n(625),o=n(9037),a=n(6007),s=n(9775),l=n(1093),u=n(6419);function c(){"use strict";var e=i(),n=e.m(c),h=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))}var f={throw:1,return:2,break:3,continue:3};function p(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,f[t],e)},delegateYield:function(t,i,o){return e.resultName=i,n(r.d,u(t),o)},finish:function(t){return n(r.f,t)}},n=function(t,n,i){r.p=e.prev,r.n=e.next;try{return t(n,i)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=c=function(){return{wrap:function(t,n,r,i){return e.w(p(t),n,r,i&&i.reverse())},isGeneratorFunction:d,mark:e.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:s,async:function(t,e,n,r,i){return(d(e)?a:o)(p(t),e,n,r,i)},keys:l,values:u}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports},6137:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ERLayout=void 0;var o=n(2080),a=i(n(1902)),s=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 r(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||void 0===e||e.forEach(function(t){t.size||(t.size=[50,50])}),(0,a.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}(o.Base);e.ERLayout=s},6149:function(t,e){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n t;r--)for(i=0;i =t&&(this.additionColumn[i]+=e);for(r=0;r t;r--)this.cells[i][r+e]=n(n({},this.cells[i][r]),{dx:i,dy:r+e,x:i*this.CELL_W,y:(r+e)*this.CELL_H}),this.cells[i][r]={dx:i,dy:r,x:i*this.CELL_W,y:r*this.CELL_H,occupied:!1,node:null};for(r=0;r =t&&(this.additionRow[r]+=e);for(i=0;i {var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t="",e=0;e {t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n {"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFuncByUnknownType=e.getFunc=e.isFunction=void 0;var r=n(7007),i=n(7942);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}}},6397:(t,e,n)=>{"use strict";!function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}(),t.exports=n(5227)},6404:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?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(40)),s=r(n(902)),l=r(n(3948));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){return a.createElement(l.default,(0,o.default)((0,o.default)({},t),{},{ref:e,icon:s.default}))},h=a.forwardRef(c);e.default=h},6419:(t,e,n)=>{var r=n(906).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},6443:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7049),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,e=t.dimension,n=t.distances,i=t.linkDistance;try{var o=r.Matrix.mul(r.Matrix.pow(n,2),-.5),a=o.mean("row"),s=o.mean("column"),l=o.mean();o.add(l).subRowVector(a).subColumnVector(s);var u=new r.SingularValueDecomposition(o),c=r.Matrix.sqrt(u.diagonalMatrix).diagonal();return u.leftSingularVectors.toJSON().map(function(t){return r.Matrix.mul([t],[c]).toJSON()[0].splice(0,e)})}catch(g){for(var h=[],d=0;d {"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(8926))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},6576:(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},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.detectAllUndirectedCycle=e.detectAllDirectedCycle=e.detectAllCycles=e.default=void 0;var i,o=(i=n(7961))&&i.__esModule?i:{default:i},a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var n=l(e);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]}i.default=t,n&&n.set(t,i);return i}(n(6923)),s=n(708);function l(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=function(t,e,n){var r,i;void 0===n&&(n=!0);for(var o=[],l=0,u=(0,a.default)(t,!1);l 0;)for(var v=f.pop(),m=v.id,y=(0,s.getNeighbors)(m,t.edges),b=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 g){if(!g[m].has(s)){for(var l=!0,u=[s,v],c=p[m];g[a].size&&!g[a].has(c)&&(u.push(c),c!==p[c.id]);)c=p[c.id];if(u.push(c),e&&n?(l=!1,u.findIndex(function(t){return e.indexOf(t.id)>-1})>-1&&(l=!0)):e&&!n&&u.findIndex(function(t){return e.indexOf(t.id)>-1})>-1&&(l=!1),l){for(var h={},d=1;d -1)return h;r.push(a),i.add(a);for(var d=c[a.id],f=0;f 0;){var n=e.pop();i.has(n)&&(i.delete(n),o[n.id].forEach(function(t){e.push(t)}),o[n.id].clear())}}(a);else for(f=0;f -1});m -1?g[v.id].push(c[b]):l.push(((i={})[v.id]=v,i))}}return{component:p,adjList:g,minIdx:a}},b=0;b =b}),w=(0,a.detectStrongConnectComponents)({nodes:x,edges:t.edges}).filter(function(t){return t.length>1});if(0===w.length)break;var S=y(w),k=S.minIdx,E=S.adjList,M=S.component;if(!(M.length>1))break;M.forEach(function(t){o[t.id]=new Set});var _=u[k];if(e&&n&&-1===e.indexOf(_.id))return l;h(_,_,E),b=k+1}return l};e.detectAllDirectedCycle=c;e.detectAllCycles=function(t,e,n,r){return void 0===r&&(r=!0),e?c(t,n,r):u(t,n,r)};var h=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 l={enter:function(t){var n=t.current,o=t.previous;if(a[n]){e={};for(var s=n,l=o;l!==n;)e[s]=l,s=l,l=r[l];e[s]=l}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 u=Object.keys(i)[0];(0,o.default)(t,u,l)}return e};e.default=h},6588:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},6606:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelize=e.isString=void 0;e.isString=function(t){return"string"===typeof t};var n=/-(\w)/g;e.camelize=function(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}(function(t){return t.replace(n,function(t,e){return e?e.toUpperCase():""})})},6637:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.feasibleTreeWithLayer=e.feasibleTree=void 0;var r=n(8901),i=n(2872),o=n(1703),a=function(t){var e,n,i=new o.Graph({directed:!1}),a=t.nodes()[0],l=t.nodeCount();for(i.setNode(a,{});s(i,t) {var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return e.test(t)}},6770:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7309);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 {"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Layouts=e.Layout=void 0;var r=n(1208),i=n(7809),o=n(2418),a=n(5101),s=n(1441),l=n(1973),u=n(584),c=n(7e3),h=n(9845),d=n(4229),f=n(4907),p=n(9004),g=n(994),v=n(3650),m=n(4e3),y=n(2212),b=n(4054),x=n(6137),w=n(1877),S=n(7007),k=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?void 0:t.length){var e=1/0,n=[];if(t.forEach(function(t){(0,S.isString)(t.layer)&&(t.layer=parseInt(t.layer,10)),void 0===t.layer||isNaN(t.layer)||(n.push(t),t.layer {"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(9040),i=n(2963),o=n(708),a=function(t,e,n,r){var i=t.nodes,a=void 0===i?[]:i,l=t.edges,u=void 0===l?[]:l,c=[],h={},d={},f={};a.forEach(function(t,n){var r=t.id;c.push(r),d[r]=1/0,r===e&&(d[r]=0)});for(var p=a.length,g=function(t){var e=function(t,e,n){for(var r,i=1/0,o=0;o d[e.id]+s?(d[a]=d[e.id]+s,f[a]=[e.id]):d[a]===d[e.id]+s&&f[a].push(e.id)})},v=0;v {"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(!t)return!1;if(t.contains)return t.contains(e);var n=e;for(;n;){if(n===t)return!0;n=n.parentNode}return!1}},6895: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(6918)),o=n(2872);e.default={layout:i.default,util:{time:o.time,notime:o.notime}}},6918: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
{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return e?o(t):i(t)},e.detectStrongConnectComponents=e.detectConnectedComponents=void 0;var r=n(708),i=function(t){for(var e=t.nodes,n=void 0===e?[]:e,i=t.edges,o=void 0===i?[]:i,a=[],s={},l=[],u=function t(e){l.push(e),s[e.id]=!0;for(var i=(0,r.getNeighbors)(e.id,o),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])}},u=0;u 0;)d.push(l.pop());a.push(d)}}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={},l={},u={},c=[],h=0,d=function t(e){l[e.id]=h,u[e.id]=h,h+=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=function(r){var o=i[r];if(l[o]||0===l[o])s[o]&&(u[e.id]=Math.min(u[e.id],l[o]));else{var a=n.filter(function(t){return t.id===o});a.length>0&&t(a[0]),u[e.id]=Math.min(u[e.id],u[o])}},f=0;f 0;){var g=a.pop();if(s[g.id]=!1,p.push(g),g===e)break}p.length>0&&c.push(p)}},f=0,p=n;f {"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){var r,i={};null===n||void 0===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)return void e.setEdge(a,s);s=o}})}},6944:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3905);function i(t,e){if(t){if("string"==typeof t)return(0,r.A)(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(t,e):void 0}}},7e3:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=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,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DagreLayout=void 0;var o=i(n(6895)),a=n(7007),s=n(2080),l=n(1703),u=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 r(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=this,s=this,u=s.nodes,h=s.nodeSize,d=s.rankdir,f=s.combos,p=s.begin,g=s.radial,v=s.comboEdges,m=void 0===v?[]:v,y=s.vedges,b=void 0===y?[]:y;if(u){var x=s.edges||[],w=new l.Graph({multigraph:!0,compound:!0});s.nodeMap={};var S={};u.forEach(function(t){s.nodeMap[t.id]=t,t.comboId&&(S[t.comboId]=S[t.comboId]||[],S[t.comboId].push(t.id))});var k,E=[],M={};(null===(t=s.nodeOrder)||void 0===t?void 0:t.length)?(s.nodeOrder.forEach(function(t){M[t]=!0,E.push(s.nodeMap[t])}),u.forEach(function(t){M[t.id]||E.push(t)})):E=u,k=h?(0,a.isArray)(h)?function(){return h}:function(){return[h,h]}:function(t){return t.size?(0,a.isArray)(t.size)?t.size:(0,a.isObject)(t.size)?[t.size.width||40,t.size.height||40]:[t.size,t.size]:[40,40]};var _=(0,a.getFunc)(s.ranksep,50,s.ranksepFunc),C=(0,a.getFunc)(s.nodesep,50,s.nodesepFunc),A=C,O=_;"LR"!==d&&"RL"!==d||(A=_,O=C),w.setDefaultEdgeLabel(function(){return{}}),w.setGraph(s);var T={};this.sortByCombo&&f&&f.forEach(function(t){if(T[t.id]=t,t.collapsed){var e=k(t),n=O(t),r=A(t),i=e[0]+2*r,o=e[1]+2*n;w.setNode(t.id,{width:i,height:o})}t.parentId&&(T[t.parentId]||w.setNode(t.parentId,{}),w.setParent(t.id,t.parentId))}),E.filter(function(t){return!1!==t.layout}).forEach(function(t){var e=k(t),n=O(t),r=A(t),o=e[0]+2*r,s=e[1]+2*n,l=t.layer;(0,a.isNumber)(l)?w.setNode(t.id,{width:o,height:s,layer:l}):w.setNode(t.id,{width:o,height:s}),i.sortByCombo&&t.comboId&&(T[t.comboId]||(T[t.comboId]={id:t.comboId},w.setNode(t.comboId,{})),w.setParent(t.id,t.comboId))}),x.forEach(function(t){var e=(0,a.getEdgeTerminal)(t,"source"),n=(0,a.getEdgeTerminal)(t,"target");i.layoutNode(e)&&i.layoutNode(n)&&w.setEdge(e,n,{weight:t.weight||1})}),null===(e=null===m||void 0===m?void 0:m.concat(b||[]))||void 0===e||e.forEach(function(t){var e,n,r=t.source,i=t.target,o=(null===(e=T[r])||void 0===e?void 0:e.collapsed)?[r]:S[r]||[r],a=(null===(n=T[i])||void 0===n?void 0:n.collapsed)?[i]:S[i]||[i];o.forEach(function(e){a.forEach(function(n){w.setEdge(e,n,{weight:t.weight||1})})})});var I=void 0;(null===(n=s.preset)||void 0===n?void 0:n.nodes)&&(I=new l.Graph({multigraph:!0,compound:!0}),s.preset.nodes.forEach(function(t){null===I||void 0===I||I.setNode(t.id,t)})),o.default.layout(w,{prevGraph:I,edgeLabelSpace:s.edgeLabelSpace,keepNodeOrder:Boolean(!!s.nodeOrder),nodeOrder:s.nodeOrder});var N=[0,0];if(p){var P=1/0,D=1/0;w.nodes().forEach(function(t){var e=w.node(t);P>e.x&&(P=e.x),D>e.y&&(D=e.y)}),w.edges().forEach(function(t){var e;null===(e=w.edge(t).points)||void 0===e||e.forEach(function(t){P>t.x&&(P=t.x),D>t.y&&(D=t.y)})}),N[0]=p[0]-P,N[1]=p[1]-D}var L="LR"===d||"RL"===d;if(g){var R=this,j=R.focusNode,B=R.ranksep,z=R.getRadialPos,F=(0,a.isString)(j)?j:null===j||void 0===j?void 0:j.id,G=F?null===(r=w.node(F))||void 0===r?void 0:r._rank:0,U=[],W=L?"y":"x",V=L?"height":"width",H=1/0,Y=-1/0;w.nodes().forEach(function(t){var e=w.node(t);if(s.nodeMap[t]){var n=C(s.nodeMap[t]);if(0===G)U[e._rank]||(U[e._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),U[e._rank].nodes.push(t),U[e._rank].totalWidth+=2*n+e[V],U[e._rank].maxSize Y&&(Y=a)}});var X=B||50,q={},K=(Y-H)/.9,Q=[.5*(H+Y-K),.5*(H+Y+K)],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=w.node(t);q[t]=e;var o=z(n[W],Q,K,e,r),a=o.x,l=o.y;if(s.nodeMap[t]){s.nodeMap[t].x=a+N[0],s.nodeMap[t].y=l+N[1],s.nodeMap[t]._order=n._order;var u=_(s.nodeMap[t]);i=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})};w.edges().forEach(function(t){var e,n=w.edge(t),r=x.findIndex(function(e){var n=(0,a.getEdgeTerminal)(e,"source"),r=(0,a.getEdgeTerminal)(e,"target");return n===t.v&&r===t.w});if(!(r<=-1)&&s.edgeLabelSpace&&s.controlPoints&&"loop"!==x[r].type){null===(e=null===n||void 0===n?void 0:n.points)||void 0===e||e.forEach(function(t){t.x+=N[0],t.y+=N[1]});var i=s.nodeMap[t.v],o=s.nodeMap[t.w];x[r].controlPoints=c(null===n||void 0===n?void 0:n.points,i,o,et,L,nt,rt)}})}return s.onLayoutEnd&&s.onLayoutEnd(),{nodes:u,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}(s.Base);e.DagreLayout=u;var c=function(t,e,n,r,i,o,a){var s=(null===t||void 0===t?void 0:t.slice(1,t.length-1))||[];if(e&&n){var l=e.x,u=e.y,c=n.x,h=n.y;if(i&&(l=e.y,u=e.x,c=n.y,h=n.x),h!==u&&l!==c){var d=r.indexOf(u),f=r[d+1];if(f){var p=s[0],g=i?{x:(u+f)/2,y:(null===p||void 0===p?void 0:p.y)||c}:{x:(null===p||void 0===p?void 0:p.x)||c,y:(u+f)/2};p&&!o(p,g)||s.unshift(g)}var v=r.indexOf(h),m=Math.abs(v-d);if(1===m)(s=a(s,e,n)).length||s.push(i?{x:(u+h)/2,y:l}:{x:l,y:(u+h)/2});else if(m>1){var y=r[v-1];if(y){var b=s[s.length-1],x=i?{x:(h+y)/2,y:(null===b||void 0===b?void 0:b.y)||c}:{x:(null===b||void 0===b?void 0:b.x)||l,y:(h+y)/2};b&&!o(b,x)||s.push(x)}}}}return s}},7007: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(6606),e),i(n(2458),e),i(n(7942),e),i(n(8613),e),i(n(9936),e),i(n(6227),e)},7049:(t,e,n)=>{"use strict";n.r(e),n.d(e,{AbstractMatrix:()=>x,CHO:()=>Z,CholeskyDecomposition:()=>Z,EVD:()=>K,EigenvalueDecomposition:()=>K,LU:()=>R,LuDecomposition:()=>R,Matrix:()=>S,MatrixColumnSelectionView:()=>M,MatrixColumnView:()=>E,MatrixFlipColumnView:()=>_,MatrixFlipRowView:()=>C,MatrixRowSelectionView:()=>O,MatrixRowView:()=>A,MatrixSelectionView:()=>T,MatrixSubView:()=>I,MatrixTransposeView:()=>N,NIPALS:()=>$,Nipals:()=>$,QR:()=>B,QrDecomposition:()=>B,SVD:()=>z,SingularValueDecomposition:()=>z,WrapperMatrix1D:()=>P,WrapperMatrix2D:()=>D,correlation:()=>q,covariance:()=>X,default:()=>S,determinant:()=>U,inverse:()=>F,linearDependencies:()=>H,pseudoInverse:()=>Y,solve:()=>G,wrap:()=>L});const r=Object.prototype.toString;function i(t){const e=r.call(t);return e.endsWith("Array]")&&!e.includes("Big")}function o(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");if(void 0!==n.output){if(!i(n.output))throw new TypeError("output option must be an array if specified");e=n.output}else e=new Array(t.length);var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],l=r+1;l1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],l=r+1;ls&&(s=t[l]);return s}(t);if(r===o)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var a=n.min,s=void 0===a?n.autoMinMax?r:0:a,l=n.max,u=void 0===l?n.autoMinMax?o:1:l;if(s>=u)throw new RangeError("min option must be smaller than max option");for(var c=(u-s)/(o-r),h=0;h 1&&void 0!==arguments[1]?arguments[1]:{};const{maxRows:n=15,maxColumns:r=10,maxNumSize:i=8}=e;return"".concat(t.constructor.name," {\n").concat(a,"[\n").concat(s).concat(function(t,e,n,r){const{rows:i,columns:o}=t,a=Math.min(i,e),l=Math.min(o,n),c=[];for(let s=0;s